Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Polymer (library)

From Wikipedia, the free encyclopedia
Open-source JavaScript library of Web Components
Polymer
Polymer Project logo
DevelopersGoogle[1] and contributors[2]
Initial releaseMay 29, 2015; 10 years ago (2015-05-29)[3]
Stable release
1.x 1.12.0 / 21 May 2019; 6 years ago (2019-05-21)[4]
2.x2.8.0 / 24 June 2019; 6 years ago (2019-06-24)[4]
3.x3.5.2[5] Edit this on Wikidata / 7 October 2024; 13 months ago (7 October 2024)
Repositorypolymer
Written inJavaScript,HTML
TypeJavaScript library
License3-Clause BSD[6]
Websitewww.polymer-project.org

Polymer is anopen-sourceJavaScript library for buildingweb applications usingWeb Components. The library is being developed byGoogle developers and contributors onGitHub. Modern design principles are implemented as a separate project usingGoogle'sMaterial Design design principles.

Polymer is used by a number of Google services and websites, includingYouTube, YouTube Gaming, the redesignedGoogle Earth (since 2017),[7]Google I/O 2015 and 2016 websites,Google Play Music, redesign ofGoogle Sites[8] andAllo for web (until its shutdown in 2019).[9]

Other notable users includeNetflix,Electronics Arts,Comcast,Nuxeo,Coca-Cola,McDonald's,BBVA,IBM,Interxion andGeneral Electric.

History

[edit]

Public development of Polymer began in November 2013 with the release of a PromisesPolyfill. This steadily expanded into a web design library covering visual styling guidelines (via Material Design),data binding, and a large number of "Core" and "Paper" Web Components.Core components were originally envisioned to encompass generic functionality that would be essential to most websites, whilePaper components were intended to provide more specialized components withMaterial Design concepts forming a key part of their design. A major milestone was reached with the release of Version 0.5, which was considered the first version of the project ready for use by early adopters.[10]

Google continued to revise the design of Polymer after the release of 0.5, with special consideration given to the performance issues a number of developers found. This culminated with the release of Polymer 1.0 in 2015, which was the first "production ready" version of the library.[11] Version 1.0 significantly improved the performance of Polymer, reducing load times by up to 7 times.[12] With version 1.0 Google split the elements from the Polymer project to clearly distinguish the elements catalog from the Polymer polyfill & webcomponents-sugaring library.

On 14–15 September 2015, Google organized a Polymer Summit inAmsterdam.

On 17–18 October 2016, Google organized a Polymer Summit inLondon.

On 22–23 August 2017, Google organized a Polymer Summit inCopenhagen.

On 2 May 2018, the Polymer team announced that any future development in Polymer will shift away from its two-way binding and its template system, and will focus on LitElement[13] (still part of Polymer[14]) and one-way bindings.[15]

Features

[edit]

Polymer provides a number of features overvanilla Web Components:

  • Simplified way of creating custom elements
  • Both One-way and Two-way data binding
  • Computed properties
  • Conditional and repeat templates
  • Gesture events

Usage

[edit]

Polymer has begun to gain increasing recognition in the market, with spikes in use in 2015 and 2016 as documented by the website BuiltWith.[16] Special attention has been paid to its structured design process, allowing for aninteroperable "Lego Block" structure.[17] LitElement was developed by the Google Chrome team as part of the Polymer project in 2018. LitElement was designed to be a lightweight and easy-to-use framework for creating web components that can be used with any front-end framework or library.

Custom elements

[edit]

Custom elements can be created usingES (ECMAScript, most commonlyJavaScript) modules with classes. Custom element definition comprisesCSS style, HTML template of the element's localDOM, element properties, lifecycle callbacks and JavaScript methods:

import{PolymerElement,html}from'@polymer/polymer'classHelloElementextendsPolymerElement{// Define the element's templatestaticgettemplate(){returnhtml`        <style>        /* Local DOM CSS style */        </style>        <!-- Local DOM -->        Hello {{name}}!        `;}staticgetis(){return'hello-element';}// Define public API propertiesstaticgetproperties(){return{name:{type:String}};}}window.customElements.define(HelloElement.is,HelloElement);

The element defined above can be used in HTML code:

<hello-elementname="World"></hello-element>

See also

[edit]

References

[edit]
  1. ^"AUTHORS.txt". Retrieved18 August 2017.
  2. ^"CONTRIBUTORS.txt". Retrieved18 August 2017.
  3. ^"1.0".Polymer Project. Retrieved18 August 2017.
  4. ^ab"Releases · Polymer/polymer".GitHub. Retrieved4 September 2019.
  5. ^"Release 3.5.2". 7 October 2024. Retrieved24 October 2024.
  6. ^"polymer/LICENSE.txt at master".GitHub. Retrieved24 April 2017.
  7. ^Bidelman, Eric (2017-04-18)."Mission accomplished: has been componentized. New @googleearth is built w/ #WebComponents using @polymer.pic.twitter.com/h76ztfynYy".@ebidel. Retrieved2017-07-08.
  8. ^"Meet Google Drive – One place for all your files".accounts.google.com. Retrieved2021-06-21.
  9. ^"Who's using Polymer?".GitHub. Retrieved4 June 2016.
  10. ^"Polymer gives us a closer look at Google's Material Design UI".Android Authority. Archived fromthe original on 2021-08-05. Retrieved2015-08-21.
  11. ^Steven Max Patterson (29 May 2015)."Google's Polymer 1.0 brings reuse and better branding to Web development".CIO. Archived fromthe original on 9 December 2018. Retrieved21 August 2015.
  12. ^"Welcome - Polymer 1.0". Archived fromthe original on 2015-08-14.
  13. ^"Roadmap update, part 1: 3.0 and beyond".
  14. ^"Justin Fagnani on Twitter".Twitter. Retrieved2018-05-14.
  15. ^"Roadmap update, part 2: FAQ - Polymer Project".www.polymer-project.org. Retrieved2018-05-14.
  16. ^"Polymer Usage Statistics".BuiltWith. March 2019. Retrieved30 May 2019.
  17. ^Allie Coyne (13 August 2015)."Inside ING Direct's new lego block app architecture".iTnews.

External links

[edit]
Google free and open-source software
Software
Applications
Programming languages
Frameworks and
development tools
Operating systems
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Polymer_(library)&oldid=1312877118"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp