diff --git a/README.md b/README.md index 9a684c4..b151fc7 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,44 @@ -# \ - -A polymer 2.0 element to scroll between a list of images +[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/Klaudeta/the-carousel/blob/master/LICENSE) +[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/Klaudeta/the-carousel) -## Install the Polymer-CLI +# \ -First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your element locally. +A polymer 2.0 element used to scroll between a list of images -## Viewing Your Element +## Installation ``` -$ polymer serve + bower i --save the-carousel ``` -## Running Tests - + +```html + +``` + + +## License -Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally. +MIT License \ No newline at end of file diff --git a/analysis.json b/analysis.json new file mode 100644 index 0000000..6bad643 --- /dev/null +++ b/analysis.json @@ -0,0 +1,4198 @@ +{ + "schema_version": "1.0.0", + "elements": [ + { + "description": "`` purpose is to scroll between a list of images by user interaction\n or by itself using a interval defined in ms\n\n Use `images` to set list of image URLs to load on carousel\n\n Example:\n\n \n \n \n \n Use `autoplay` and `duration` to automatically scroll between images on defined ms interval by `duration`\n\n Example:\n\n \n \n \n\nPolymer boilerplate to register the example-template element", + "summary": "", + "path": "the-carousel.html", + "properties": [ + { + "name": "__dataClientsReady", + "type": "boolean", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1147, + "column": 8 + }, + "end": { + "line": 1147, + "column": 32 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataPendingClients", + "type": "Array", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1149, + "column": 8 + }, + "end": { + "line": 1149, + "column": 34 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataToNotify", + "type": "Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1151, + "column": 8 + }, + "end": { + "line": 1151, + "column": 28 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataLinkedPaths", + "type": "Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1153, + "column": 8 + }, + "end": { + "line": 1153, + "column": 31 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataHasPaths", + "type": "boolean", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1155, + "column": 8 + }, + "end": { + "line": 1155, + "column": 28 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataCompoundStorage", + "type": "Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1157, + "column": 8 + }, + "end": { + "line": 1157, + "column": 35 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataHost", + "type": "Polymer_PropertyEffects", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1159, + "column": 8 + }, + "end": { + "line": 1159, + "column": 24 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataTemp", + "type": "!Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1161, + "column": 8 + }, + "end": { + "line": 1161, + "column": 24 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataClientsInitialized", + "type": "boolean", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1163, + "column": 8 + }, + "end": { + "line": 1163, + "column": 38 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__data", + "type": "!Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1165, + "column": 8 + }, + "end": { + "line": 1165, + "column": 20 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataPending", + "type": "!Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1167, + "column": 8 + }, + "end": { + "line": 1167, + "column": 27 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__dataOld", + "type": "!Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1169, + "column": 8 + }, + "end": { + "line": 1169, + "column": 23 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__computeEffects", + "type": "Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1171, + "column": 8 + }, + "end": { + "line": 1171, + "column": 30 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__reflectEffects", + "type": "Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1173, + "column": 8 + }, + "end": { + "line": 1173, + "column": 30 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__notifyEffects", + "type": "Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1175, + "column": 8 + }, + "end": { + "line": 1175, + "column": 29 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__propagateEffects", + "type": "Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1177, + "column": 8 + }, + "end": { + "line": 1177, + "column": 32 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__observeEffects", + "type": "Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1179, + "column": 8 + }, + "end": { + "line": 1179, + "column": 30 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__readOnly", + "type": "Object", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1181, + "column": 8 + }, + "end": { + "line": 1181, + "column": 24 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__templateInfo", + "type": "!TemplateInfo", + "description": "", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1183, + "column": 8 + }, + "end": { + "line": 1183, + "column": 28 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "PROPERTY_EFFECT_TYPES", + "type": "?", + "description": "", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1186, + "column": 6 + }, + "end": { + "line": 1188, + "column": 7 + } + }, + "metadata": { + "polymer": { + "readOnly": true + } + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_template", + "type": "HTMLTemplateElement", + "description": "", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 421, + "column": 8 + }, + "end": { + "line": 421, + "column": 23 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "_importPath", + "type": "string", + "description": "", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 423, + "column": 8 + }, + "end": { + "line": 423, + "column": 25 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "rootPath", + "type": "string", + "description": "", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 425, + "column": 8 + }, + "end": { + "line": 425, + "column": 22 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "importPath", + "type": "string", + "description": "", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 427, + "column": 8 + }, + "end": { + "line": 427, + "column": 24 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "root", + "type": "(StampedTemplate | HTMLElement | ShadowRoot)", + "description": "", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 429, + "column": 8 + }, + "end": { + "line": 429, + "column": 18 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "$", + "type": "!Object.", + "description": "", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 431, + "column": 8 + }, + "end": { + "line": 431, + "column": 15 + } + }, + "metadata": { + "polymer": { + "readOnly": false + } + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "images", + "type": "Array | null | undefined", + "description": "List of image URLs to play on the carousel", + "privacy": "public", + "sourceRange": { + "start": { + "line": 99, + "column": 14 + }, + "end": { + "line": 102, + "column": 15 + } + }, + "metadata": { + "polymer": { + "attributeType": "Array" + } + } + }, + { + "name": "autoplay", + "type": "boolean | null | undefined", + "description": "Whether images play by themselves.", + "privacy": "public", + "sourceRange": { + "start": { + "line": 104, + "column": 11 + }, + "end": { + "line": 108, + "column": 18 + } + }, + "metadata": { + "polymer": { + "observer": "\"_autoAnimate\"", + "attributeType": "Boolean" + } + }, + "defaultValue": "false" + }, + { + "name": "duration", + "type": "number | null | undefined", + "description": "Duration in milliseconds for an image to be on the stage.", + "privacy": "public", + "sourceRange": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 116, + "column": 16 + } + }, + "metadata": { + "polymer": { + "notify": true, + "observer": "\"_setDuration\"", + "attributeType": "Number" + } + }, + "defaultValue": "2000" + }, + { + "name": "selected", + "type": "Object | null | undefined", + "description": "", + "privacy": "public", + "sourceRange": { + "start": { + "line": 117, + "column": 13 + }, + "end": { + "line": 120, + "column": 18 + } + }, + "metadata": { + "polymer": { + "observer": "\"_selectedChanged\"", + "attributeType": "Object" + } + } + }, + { + "name": "selectedIndex", + "type": "number | null | undefined", + "description": "", + "privacy": "public", + "sourceRange": { + "start": { + "line": 121, + "column": 13 + }, + "end": { + "line": 123, + "column": 20 + } + }, + "metadata": { + "polymer": { + "attributeType": "Number" + } + } + } + ], + "methods": [ + { + "name": "_stampTemplate", + "description": "Stamps the provided template and performs instance-time setup for\nPolymer template features, including data bindings, declarative event\nlisteners, and the `this.$` map of `id`'s to nodes. A document fragment\nis returned containing the stamped DOM, ready for insertion into the\nDOM.\n\nThis method may be called more than once; however note that due to\n`shadycss` polyfill limitations, only styles from templates prepared\nusing `ShadyCSS.prepareTemplate` will be correctly polyfilled (scoped\nto the shadow root and support CSS custom properties), and note that\n`ShadyCSS.prepareTemplate` may only be called once per element. As such,\nany styles required by in runtime-stamped templates must be included\nin the main element template.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2423, + "column": 6 + }, + "end": { + "line": 2448, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "template", + "type": "!HTMLTemplateElement", + "description": "Template to stamp" + } + ], + "return": { + "type": "!StampedTemplate", + "desc": "Cloned template content" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_addMethodEventListenerToNode", + "description": "Adds an event listener by method name for the event provided.\n\nThis method generates a handler function that looks up the method\nname at handling time.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/template-stamp.html", + "start": { + "line": 452, + "column": 6 + }, + "end": { + "line": 457, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "node", + "type": "!Node", + "description": "Node to add listener on" + }, + { + "name": "eventName", + "type": "string", + "description": "Name of event" + }, + { + "name": "methodName", + "type": "string", + "description": "Name of method" + }, + { + "name": "context", + "type": "*=", + "description": "Context the method will be called on (defaults\n to `node`)" + } + ], + "return": { + "type": "Function", + "desc": "Generated handler function" + }, + "inheritedFrom": "Polymer.TemplateStamp" + }, + { + "name": "_addEventListenerToNode", + "description": "Override point for adding custom or simulated event handling.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/template-stamp.html", + "start": { + "line": 467, + "column": 6 + }, + "end": { + "line": 469, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "node", + "type": "!Node", + "description": "Node to add event listener to" + }, + { + "name": "eventName", + "type": "string", + "description": "Name of event" + }, + { + "name": "handler", + "type": "function (!Event): void", + "description": "Listener function to add" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.TemplateStamp" + }, + { + "name": "_removeEventListenerFromNode", + "description": "Override point for adding custom or simulated event handling.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/template-stamp.html", + "start": { + "line": 479, + "column": 6 + }, + "end": { + "line": 481, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "node", + "type": "Node", + "description": "Node to remove event listener from" + }, + { + "name": "eventName", + "type": "string", + "description": "Name of event" + }, + { + "name": "handler", + "type": "function (!Event): void", + "description": "Listener function to remove" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.TemplateStamp" + }, + { + "name": "_createPropertyAccessor", + "description": "Creates a setter/getter pair for the named property with its own\nlocal storage. The getter returns the value in the local storage,\nand the setter calls `_setProperty`, which updates the local storage\nfor the property and enqueues a `_propertiesChanged` callback.\n\nThis method may be called on a prototype or an instance. Calling\nthis method may overwrite a property value that already exists on\nthe prototype/instance by creating the accessor.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 115, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Name of the property" + }, + { + "name": "readOnly", + "type": "boolean=", + "description": "When true, no setter is created; the\n protected `_setProperty` function must be used to set the property" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_addPropertyToAttributeMap", + "description": "Adds the given `property` to a map matching attribute names\nto property names, using `attributeNameForProperty`. This map is\nused when deserializing attribute values to properties.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 132, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Name of the property" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_definePropertyAccessor", + "description": "Defines a property accessor for the given property.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 140, + "column": 9 + }, + "end": { + "line": 153, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Name of the property" + }, + { + "name": "readOnly", + "type": "boolean=", + "description": "When true, no setter is created" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "ready", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 233, + "column": 12 + }, + "end": { + "line": 243, + "column": 14 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + } + }, + { + "name": "_initializeProperties", + "description": "Overrides the default `Polymer.PropertyAccessors` to ensure class\nmetaprogramming related to property accessors and effects has\ncompleted (calls `finalize`).\n\nIt also initializes any property defaults provided via `value` in\n`properties` metadata.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 446, + "column": 6 + }, + "end": { + "line": 480, + "column": 7 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "_initializeInstanceProperties", + "description": "Called at ready time with bag of instance properties that overwrote\naccessors when the element upgraded.\n\nThe default implementation sets these properties back into the\nsetter at ready time. This method is provided as an override\npoint for customizing or providing more efficient initialization.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 222, + "column": 8 + }, + "end": { + "line": 224, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "props", + "type": "Object", + "description": "Bag of property values that were overwritten\n when creating property accessors." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_setProperty", + "description": "Updates the local storage for a property (via `_setPendingProperty`)\nand enqueues a `_proeprtiesChanged` callback.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 235, + "column": 8 + }, + "end": { + "line": 239, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Name of the property" + }, + { + "name": "value", + "type": "*", + "description": "Value to set" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_getProperty", + "description": "Returns the value for the given property.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 249, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Name of property" + } + ], + "return": { + "type": "*", + "desc": "Value for the given property" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_setPendingProperty", + "description": "Updates the local storage for a property, records the previous value,\nand adds it to the set of \"pending changes\" that will be passed to the\n`_propertiesChanged` callback. This method does not enqueue the\n`_propertiesChanged` callback.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 264, + "column": 8 + }, + "end": { + "line": 280, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Name of the property" + }, + { + "name": "value", + "type": "*", + "description": "Value to set" + }, + { + "name": "ext", + "type": "boolean=", + "description": "Not used here; affordance for closure" + } + ], + "return": { + "type": "boolean", + "desc": "Returns true if the property changed" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_invalidateProperties", + "description": "Marks the properties as invalid, and enqueues an async\n`_propertiesChanged` callback.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 290, + "column": 8 + }, + "end": { + "line": 300, + "column": 9 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_enableProperties", + "description": "Call to enable property accessor processing. Before this method is\ncalled accessor values will be set but side effects are\nqueued. When called, any pending side effects occur immediately.\nFor elements, generally `connectedCallback` is a normal spot to do so.\nIt is safe to call this method multiple times as it only turns on\nproperty accessors once.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 313, + "column": 8 + }, + "end": { + "line": 322, + "column": 9 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_flushProperties", + "description": "Calls the `_propertiesChanged` callback with the current set of\npending changes (and old values recorded when pending changes were\nset), and resets the pending set of changes. Generally, this method\nshould not be called in user code.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 333, + "column": 8 + }, + "end": { + "line": 342, + "column": 9 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_shouldPropertiesChange", + "description": "Called in `_flushProperties` to determine if `_propertiesChanged`\nshould be called. The default implementation returns true if\nproperties are pending. Override to customize when\n`_propertiesChanged` is called.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 356, + "column": 8 + }, + "end": { + "line": 358, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "currentProps", + "type": "!Object", + "description": "Bag of all current accessor values" + }, + { + "name": "changedProps", + "type": "!Object", + "description": "Bag of properties changed since the last\n call to `_propertiesChanged`" + }, + { + "name": "oldProps", + "type": "!Object", + "description": "Bag of previous values for each property\n in `changedProps`" + } + ], + "return": { + "type": "boolean", + "desc": "true if changedProps is truthy" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_propertiesChanged", + "description": "Callback called when any properties with accessors created via\n`_createPropertyAccessor` have been set.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 372, + "column": 8 + }, + "end": { + "line": 373, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "currentProps", + "type": "!Object", + "description": "Bag of all current accessor values" + }, + { + "name": "changedProps", + "type": "!Object", + "description": "Bag of properties changed since the last\n call to `_propertiesChanged`" + }, + { + "name": "oldProps", + "type": "!Object", + "description": "Bag of previous values for each property\n in `changedProps`" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_shouldPropertyChange", + "description": "Method called to determine whether a property value should be\nconsidered as a change and cause the `_propertiesChanged` callback\nto be enqueued.\n\nThe default implementation returns `true` if a strict equality\ncheck fails. The method always returns false for `NaN`.\n\nOverride this method to e.g. provide stricter checking for\nObjects/Arrays when using immutable patterns.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 393, + "column": 8 + }, + "end": { + "line": 400, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + }, + { + "name": "value", + "type": "*", + "description": "New property value" + }, + { + "name": "old", + "type": "*", + "description": "Previous property value" + } + ], + "return": { + "type": "boolean", + "desc": "Whether the property should be considered a change\n and enqueue a `_proeprtiesChanged` callback" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "attributeChangedCallback", + "description": "Implements native Custom Elements `attributeChangedCallback` to\nset an attribute value to a property via `_attributeToProperty`.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 412, + "column": 8 + }, + "end": { + "line": 419, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "name", + "type": "string", + "description": "Name of attribute that changed" + }, + { + "name": "old", + "type": "?string", + "description": "Old attribute value" + }, + { + "name": "value", + "type": "?string", + "description": "New attribute value" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_attributeToProperty", + "description": "Deserializes an attribute to its associated property.\n\nThis method calls the `_deserializeValue` method to convert the string to\na typed value.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 433, + "column": 8 + }, + "end": { + "line": 440, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "attribute", + "type": "string", + "description": "Name of attribute to deserialize." + }, + { + "name": "value", + "type": "?string", + "description": "of the attribute." + }, + { + "name": "type", + "type": "*=", + "description": "type to deserialize to, defaults to the value\nreturned from `typeForProperty`" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_propertyToAttribute", + "description": "Serializes a property to its associated attribute.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 452, + "column": 8 + }, + "end": { + "line": 458, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name to reflect." + }, + { + "name": "attribute", + "type": "string=", + "description": "Attribute name to reflect to." + }, + { + "name": "value", + "type": "*=", + "description": "Property value to refect." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_valueToNodeAttribute", + "description": "Sets a typed value to an HTML attribute on a node.\n\nThis method calls the `_serializeValue` method to convert the typed\nvalue to a string. If the `_serializeValue` method returns `undefined`,\nthe attribute will be removed (this is the default for boolean\ntype `false`).", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 473, + "column": 8 + }, + "end": { + "line": 480, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "node", + "type": "Element", + "description": "Element to set attribute to." + }, + { + "name": "value", + "type": "*", + "description": "Value to serialize." + }, + { + "name": "attribute", + "type": "string", + "description": "Attribute name to serialize to." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_serializeValue", + "description": "Converts a typed JavaScript value to a string.\n\nThis method is called when setting JS property values to\nHTML attributes. Users may override this method to provide\nserialization for custom types.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 493, + "column": 8 + }, + "end": { + "line": 500, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "value", + "type": "*", + "description": "Property value to serialize." + } + ], + "return": { + "type": "(string | undefined)", + "desc": "String serialized from the provided\nproperty value." + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_deserializeValue", + "description": "Converts a string to a typed JavaScript value.\n\nThis method is called when reading HTML attribute values to\nJS properties. Users may override this method to provide\ndeserialization for custom `type`s. Types for `Boolean`, `String`,\nand `Number` convert attributes to the expected types.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-changed.html", + "start": { + "line": 514, + "column": 8 + }, + "end": { + "line": 523, + "column": 9 + } + }, + "metadata": {}, + "params": [ + { + "name": "value", + "type": "?string", + "description": "Value to deserialize." + }, + { + "name": "type", + "type": "*=", + "description": "Type to deserialize the string to." + } + ], + "return": { + "type": "*", + "desc": "Typed value deserialized from the provided string." + }, + "inheritedFrom": "Polymer.PropertiesChanged" + }, + { + "name": "_initializeProtoProperties", + "description": "Overrides `Polymer.PropertyAccessors` implementation to provide a\nmore efficient implementation of initializing properties from\nthe prototype on the instance.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1217, + "column": 6 + }, + "end": { + "line": 1221, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "props", + "type": "Object", + "description": "Properties to initialize on the prototype" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_ensureAttribute", + "description": "Ensures the element has the given attribute. If it does not,\nassigns the given value to the attribute.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-accessors.html", + "start": { + "line": 192, + "column": 6 + }, + "end": { + "line": 197, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "attribute", + "type": "string", + "description": "Name of attribute to ensure is set." + }, + { + "name": "value", + "type": "string", + "description": "of the attribute." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyAccessors" + }, + { + "name": "_hasAccessor", + "description": "Returns true if this library created an accessor for the given property.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-accessors.html", + "start": { + "line": 299, + "column": 6 + }, + "end": { + "line": 301, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + } + ], + "return": { + "type": "boolean", + "desc": "True if an accessor was created" + }, + "inheritedFrom": "Polymer.PropertyAccessors" + }, + { + "name": "_isPropertyPending", + "description": "Returns true if the specified property has a pending change.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-accessors.html", + "start": { + "line": 310, + "column": 6 + }, + "end": { + "line": 312, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "prop", + "type": "string", + "description": "Property name" + } + ], + "return": { + "type": "boolean", + "desc": "True if property has a pending change" + }, + "inheritedFrom": "Polymer.PropertyAccessors" + }, + { + "name": "_addPropertyEffect", + "description": "Equivalent to static `addPropertyEffect` API but can be called on\nan instance to add effects at runtime. See that method for\nfull API docs.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1255, + "column": 6 + }, + "end": { + "line": 1263, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property that should trigger the effect" + }, + { + "name": "type", + "type": "string", + "description": "Effect type, from this.PROPERTY_EFFECT_TYPES" + }, + { + "name": "effect", + "type": "Object=", + "description": "Effect metadata object" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_removePropertyEffect", + "description": "Removes the given property effect.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1273, + "column": 6 + }, + "end": { + "line": 1279, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property the effect was associated with" + }, + { + "name": "type", + "type": "string", + "description": "Effect type, from this.PROPERTY_EFFECT_TYPES" + }, + { + "name": "effect", + "type": "Object=", + "description": "Effect metadata object to remove" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_hasPropertyEffect", + "description": "Returns whether the current prototype/instance has a property effect\nof a certain type.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1290, + "column": 6 + }, + "end": { + "line": 1293, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + }, + { + "name": "type", + "type": "string=", + "description": "Effect type, from this.PROPERTY_EFFECT_TYPES" + } + ], + "return": { + "type": "boolean", + "desc": "True if the prototype/instance has an effect of this type" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_hasReadOnlyEffect", + "description": "Returns whether the current prototype/instance has a \"read only\"\naccessor for the given property.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1303, + "column": 6 + }, + "end": { + "line": 1305, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + } + ], + "return": { + "type": "boolean", + "desc": "True if the prototype/instance has an effect of this type" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_hasNotifyEffect", + "description": "Returns whether the current prototype/instance has a \"notify\"\nproperty effect for the given property.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1315, + "column": 6 + }, + "end": { + "line": 1317, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + } + ], + "return": { + "type": "boolean", + "desc": "True if the prototype/instance has an effect of this type" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_hasReflectEffect", + "description": "Returns whether the current prototype/instance has a \"reflect to attribute\"\nproperty effect for the given property.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1327, + "column": 6 + }, + "end": { + "line": 1329, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + } + ], + "return": { + "type": "boolean", + "desc": "True if the prototype/instance has an effect of this type" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_hasComputedEffect", + "description": "Returns whether the current prototype/instance has a \"computed\"\nproperty effect for the given property.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1339, + "column": 6 + }, + "end": { + "line": 1341, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + } + ], + "return": { + "type": "boolean", + "desc": "True if the prototype/instance has an effect of this type" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_setPendingPropertyOrPath", + "description": "Sets a pending property or path. If the root property of the path in\nquestion had no accessor, the path is set, otherwise it is enqueued\nvia `_setPendingProperty`.\n\nThis function isolates relatively expensive functionality necessary\nfor the public API (`set`, `setProperties`, `notifyPath`, and property\nchange listeners via {{...}} bindings), such that it is only done\nwhen paths enter the system, and not at every propagation step. It\nalso sets a `__dataHasPaths` flag on the instance which is used to\nfast-path slower path-matching code in the property effects host paths.\n\n`path` can be a path string or array of path parts as accepted by the\npublic API.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1373, + "column": 6 + }, + "end": { + "line": 1405, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "(string | !Array.<(number | string)>)", + "description": "Path to set" + }, + { + "name": "value", + "type": "*", + "description": "Value to set" + }, + { + "name": "shouldNotify", + "type": "boolean=", + "description": "Set to true if this change should\n cause a property notification event dispatch" + }, + { + "name": "isPathNotification", + "type": "boolean=", + "description": "If the path being set is a path\n notification of an already changed value, as opposed to a request\n to set and notify the change. In the latter `false` case, a dirty\n check is performed and then the value is set to the path before\n enqueuing the pending property change." + } + ], + "return": { + "type": "boolean", + "desc": "Returns true if the property/path was enqueued in\n the pending changes bag." + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_setUnmanagedPropertyToNode", + "description": "Applies a value to a non-Polymer element/node's property.\n\nThe implementation makes a best-effort at binding interop:\nSome native element properties have side-effects when\nre-setting the same value (e.g. setting `.value` resets the\ncursor position), so we do a dirty-check before setting the value.\nHowever, for better interop with non-Polymer custom elements that\naccept objects, we explicitly re-set object changes coming from the\nPolymer world (which may include deep object changes without the\ntop reference changing), erring on the side of providing more\ninformation.\n\nUsers may override this method to provide alternate approaches.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1428, + "column": 6 + }, + "end": { + "line": 1436, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "node", + "type": "!Node", + "description": "The node to set a property on" + }, + { + "name": "prop", + "type": "string", + "description": "The property to set" + }, + { + "name": "value", + "type": "*", + "description": "The value to set" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_enqueueClient", + "description": "Enqueues the given client on a list of pending clients, whose\npending property changes can later be flushed via a call to\n`_flushClients`.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1543, + "column": 6 + }, + "end": { + "line": 1548, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "client", + "type": "Object", + "description": "PropertyEffects client to enqueue" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_flushClients", + "description": "Flushes any clients previously enqueued via `_enqueueClient`, causing\ntheir `_flushProperties` method to run.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1569, + "column": 6 + }, + "end": { + "line": 1580, + "column": 7 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "__enableOrFlushClients", + "description": "(c) the stamped dom enables.", + "privacy": "private", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1594, + "column": 6 + }, + "end": { + "line": 1607, + "column": 7 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_readyClients", + "description": "Implements `PropertyEffects`'s `_readyClients` call. Attaches\nelement dom by calling `_attachDom` with the dom stamped from the\nelement's template via `_stampTemplate`. Note that this allows\nclient dom to be attached to the element prior to any observers\nrunning.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 558, + "column": 6 + }, + "end": { + "line": 567, + "column": 7 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "setProperties", + "description": "Sets a bag of property changes to this instance, and\nsynchronously processes all effects of the properties as a batch.\n\nProperty names must be simple properties, not paths. Batched\npath propagation is not supported.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1636, + "column": 6 + }, + "end": { + "line": 1647, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "props", + "type": "Object", + "description": "Bag of one or more key-value pairs whose key is\n a property and value is the new value to set for that property." + }, + { + "name": "setReadOnly", + "type": "boolean=", + "description": "When true, any private values set in\n `props` will be set. By default, `setProperties` will not set\n `readOnly: true` root properties." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_propagatePropertyChanges", + "description": "Called to propagate any property changes to stamped template nodes\nmanaged by this element.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1734, + "column": 6 + }, + "end": { + "line": 1744, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "changedProps", + "type": "Object", + "description": "Bag of changed properties" + }, + { + "name": "oldProps", + "type": "Object", + "description": "Bag of previous values for changed properties" + }, + { + "name": "hasPaths", + "type": "boolean", + "description": "True with `props` contains one or more paths" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "linkPaths", + "description": "Aliases one data path as another, such that path notifications from one\nare routed to the other.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1755, + "column": 6 + }, + "end": { + "line": 1760, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "to", + "type": "(string | !Array.<(string | number)>)", + "description": "Target path to link." + }, + { + "name": "from", + "type": "(string | !Array.<(string | number)>)", + "description": "Source path to link." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "unlinkPaths", + "description": "Removes a data path alias previously established with `_linkPaths`.\n\nNote, the path to unlink should be the target (`to`) used when\nlinking the paths.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1772, + "column": 6 + }, + "end": { + "line": 1777, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "(string | !Array.<(string | number)>)", + "description": "Target path to unlink." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "notifySplices", + "description": "Notify that an array has changed.\n\nExample:\n\n this.items = [ {name: 'Jim'}, {name: 'Todd'}, {name: 'Bill'} ];\n ...\n this.items.splice(1, 1, {name: 'Sam'});\n this.items.push({name: 'Bob'});\n this.notifySplices('items', [\n { index: 1, removed: [{name: 'Todd'}], addedCount: 1, object: this.items, type: 'splice' },\n { index: 3, removed: [], addedCount: 1, object: this.items, type: 'splice'}\n ]);", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1809, + "column": 6 + }, + "end": { + "line": 1813, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "string", + "description": "Path that should be notified." + }, + { + "name": "splices", + "type": "Array", + "description": "Array of splice records indicating ordered\n changes that occurred to the array. Each record should have the\n following fields:\n * index: index at which the change occurred\n * removed: array of items that were removed from this index\n * addedCount: number of new items added at this index\n * object: a reference to the array in question\n * type: the string literal 'splice'\n\n Note that splice records _must_ be normalized such that they are\n reported in index order (raw results from `Object.observe` are not\n ordered and must be normalized/merged before notifying)." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "get", + "description": "Convenience method for reading a value from a path.\n\nNote, if any part in the path is undefined, this method returns\n`undefined` (this method does not throw when dereferencing undefined\npaths).", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1834, + "column": 6 + }, + "end": { + "line": 1836, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "(string | !Array.<(string | number)>)", + "description": "Path to the value\n to read. The path may be specified as a string (e.g. `foo.bar.baz`)\n or an array of path parts (e.g. `['foo.bar', 'baz']`). Note that\n bracketed expressions are not supported; string-based path parts\n *must* be separated by dots. Note that when dereferencing array\n indices, the index may be used as a dotted part directly\n (e.g. `users.12.name` or `['users', 12, 'name']`)." + }, + { + "name": "root", + "type": "Object=", + "description": "Root object from which the path is evaluated." + } + ], + "return": { + "type": "*", + "desc": "Value at the path, or `undefined` if any part of the path\n is undefined." + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "set", + "description": "Convenience method for setting a value to a path and notifying any\nelements bound to the same path.\n\nNote, if any part in the path except for the last is undefined,\nthis method does nothing (this method does not throw when\ndereferencing undefined paths).", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1859, + "column": 6 + }, + "end": { + "line": 1869, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "(string | !Array.<(string | number)>)", + "description": "Path to the value\n to write. The path may be specified as a string (e.g. `'foo.bar.baz'`)\n or an array of path parts (e.g. `['foo.bar', 'baz']`). Note that\n bracketed expressions are not supported; string-based path parts\n *must* be separated by dots. Note that when dereferencing array\n indices, the index may be used as a dotted part directly\n (e.g. `'users.12.name'` or `['users', 12, 'name']`)." + }, + { + "name": "value", + "type": "*", + "description": "Value to set at the specified path." + }, + { + "name": "root", + "type": "Object=", + "description": "Root object from which the path is evaluated.\n When specified, no notification will occur." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "push", + "description": "Adds items onto the end of the array at the path specified.\n\nThe arguments after `path` and return value match that of\n`Array.prototype.push`.\n\nThis method notifies other paths to the same array that a\nsplice occurred to the array.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1885, + "column": 6 + }, + "end": { + "line": 1894, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "(string | !Array.<(string | number)>)", + "description": "Path to array." + }, + { + "name": "items", + "type": "...*", + "rest": true, + "description": "Items to push onto array" + } + ], + "return": { + "type": "number", + "desc": "New length of the array." + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "pop", + "description": "Removes an item from the end of array at the path specified.\n\nThe arguments after `path` and return value match that of\n`Array.prototype.pop`.\n\nThis method notifies other paths to the same array that a\nsplice occurred to the array.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1909, + "column": 6 + }, + "end": { + "line": 1918, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "(string | !Array.<(string | number)>)", + "description": "Path to array." + } + ], + "return": { + "type": "*", + "desc": "Item that was removed." + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "splice", + "description": "Starting from the start index specified, removes 0 or more items\nfrom the array and inserts 0 or more new items in their place.\n\nThe arguments after `path` and return value match that of\n`Array.prototype.splice`.\n\nThis method notifies other paths to the same array that a\nsplice occurred to the array.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1937, + "column": 6 + }, + "end": { + "line": 1974, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "(string | !Array.<(string | number)>)", + "description": "Path to array." + }, + { + "name": "start", + "type": "number", + "description": "Index from which to start removing/inserting." + }, + { + "name": "deleteCount", + "type": "number", + "description": "Number of items to remove." + }, + { + "name": "items", + "type": "...*", + "rest": true, + "description": "Items to insert into array." + } + ], + "return": { + "type": "Array", + "desc": "Array of removed items." + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "shift", + "description": "Removes an item from the beginning of array at the path specified.\n\nThe arguments after `path` and return value match that of\n`Array.prototype.pop`.\n\nThis method notifies other paths to the same array that a\nsplice occurred to the array.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 1989, + "column": 6 + }, + "end": { + "line": 1998, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "(string | !Array.<(string | number)>)", + "description": "Path to array." + } + ], + "return": { + "type": "*", + "desc": "Item that was removed." + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "unshift", + "description": "Adds items onto the beginning of the array at the path specified.\n\nThe arguments after `path` and return value match that of\n`Array.prototype.push`.\n\nThis method notifies other paths to the same array that a\nsplice occurred to the array.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2014, + "column": 6 + }, + "end": { + "line": 2022, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "(string | !Array.<(string | number)>)", + "description": "Path to array." + }, + { + "name": "items", + "type": "...*", + "rest": true, + "description": "Items to insert info array" + } + ], + "return": { + "type": "number", + "desc": "New length of the array." + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "notifyPath", + "description": "Notify that a path has changed.\n\nExample:\n\n this.item.user.name = 'Bob';\n this.notifyPath('item.user.name');", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2037, + "column": 6 + }, + "end": { + "line": 2054, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "path", + "type": "string", + "description": "Path that should be notified." + }, + { + "name": "value", + "type": "*=", + "description": "Value at the path (optional)." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_createReadOnlyProperty", + "description": "Equivalent to static `createReadOnlyProperty` API but can be called on\nan instance to add effects at runtime. See that method for\nfull API docs.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2067, + "column": 6 + }, + "end": { + "line": 2074, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + }, + { + "name": "protectedSetter", + "type": "boolean=", + "description": "Creates a custom protected setter\n when `true`." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_createPropertyObserver", + "description": "Equivalent to static `createPropertyObserver` API but can be called on\nan instance to add effects at runtime. See that method for\nfull API docs.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2088, + "column": 6 + }, + "end": { + "line": 2098, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + }, + { + "name": "method", + "type": "(string | function (*, *))", + "description": "Function or name of observer method to call" + }, + { + "name": "dynamicFn", + "type": "boolean=", + "description": "Whether the method name should be included as\n a dependency to the effect." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_createMethodObserver", + "description": "Equivalent to static `createMethodObserver` API but can be called on\nan instance to add effects at runtime. See that method for\nfull API docs.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2111, + "column": 6 + }, + "end": { + "line": 2117, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "expression", + "type": "string", + "description": "Method expression" + }, + { + "name": "dynamicFn", + "type": "(boolean | Object)=", + "description": "Boolean or object map indicating\n whether method names should be included as a dependency to the effect." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_createNotifyingProperty", + "description": "Equivalent to static `createNotifyingProperty` API but can be called on\nan instance to add effects at runtime. See that method for\nfull API docs.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2128, + "column": 6 + }, + "end": { + "line": 2136, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_createReflectedProperty", + "description": "Equivalent to static `createReflectedProperty` API but can be called on\nan instance to add effects at runtime. See that method for\nfull API docs.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2147, + "column": 6 + }, + "end": { + "line": 2160, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Property name" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_createComputedProperty", + "description": "Equivalent to static `createComputedProperty` API but can be called on\nan instance to add effects at runtime. See that method for\nfull API docs.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2174, + "column": 6 + }, + "end": { + "line": 2180, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "property", + "type": "string", + "description": "Name of computed property to set" + }, + { + "name": "expression", + "type": "string", + "description": "Method expression" + }, + { + "name": "dynamicFn", + "type": "(boolean | Object)=", + "description": "Boolean or object map indicating\n whether method names should be included as a dependency to the effect." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_bindTemplate", + "description": "Equivalent to static `bindTemplate` API but can be called on\nan instance to add effects at runtime. See that method for\nfull API docs.\n\nThis method may be called on the prototype (for prototypical template\nbinding, to avoid creating accessors every instance) once per prototype,\nand will be called with `runtimeBinding: true` by `_stampTemplate` to\ncreate and link an instance of the template metadata associated with a\nparticular stamping.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2357, + "column": 6 + }, + "end": { + "line": 2380, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "template", + "type": "!HTMLTemplateElement", + "description": "Template containing binding\n bindings" + }, + { + "name": "instanceBinding", + "type": "boolean=", + "description": "When false (default), performs\n \"prototypical\" binding of the template and overwrites any previously\n bound template for the class. When true (as passed from\n `_stampTemplate`), the template info is instanced and linked into\n the list of bound templates." + } + ], + "return": { + "type": "!TemplateInfo", + "desc": "Template metadata object; for `runtimeBinding`,\n this is an instance of the prototypical template info" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "_removeBoundDom", + "description": "Removes and unbinds the nodes previously contained in the provided\nDocumentFragment returned from `_stampTemplate`.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/property-effects.html", + "start": { + "line": 2459, + "column": 6 + }, + "end": { + "line": 2480, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "dom", + "type": "!StampedTemplate", + "description": "DocumentFragment previously returned\n from `_stampTemplate` associated with the nodes to be removed" + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertyEffects" + }, + { + "name": "connectedCallback", + "description": "", + "privacy": "public", + "sourceRange": { + "start": { + "line": 203, + "column": 12 + }, + "end": { + "line": 209, + "column": 14 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + } + }, + { + "name": "disconnectedCallback", + "description": "Called when the element is removed from a document", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/properties-mixin.html", + "start": { + "line": 215, + "column": 6 + }, + "end": { + "line": 219, + "column": 7 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.PropertiesMixin" + }, + { + "name": "_attachDom", + "description": "Attaches an element's stamped dom to itself. By default,\nthis method creates a `shadowRoot` and adds the dom to it.\nHowever, this method may be overridden to allow an element\nto put its dom in another location.", + "privacy": "protected", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 581, + "column": 6 + }, + "end": { + "line": 597, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "dom", + "type": "StampedTemplate", + "description": "to attach to the element." + } + ], + "return": { + "type": "ShadowRoot", + "desc": "node to which the dom has been attached." + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "updateStyles", + "description": "When using the ShadyCSS scoping and custom property shim, causes all\nshimmed styles in this element (and its subtree) to be updated\nbased on current custom property values.\n\nThe optional parameter overrides inline custom property styles with an\nobject of properties where the keys are CSS properties, and the values\nare strings.\n\nExample: `this.updateStyles({'--color': 'blue'})`\n\nThese properties are retained unless a value of `null` is set.\n\nNote: This function does not support updating CSS mixins.\nYou can not dynamically change the value of an `@apply`.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 620, + "column": 6 + }, + "end": { + "line": 624, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "properties", + "type": "Object=", + "description": "Bag of custom property key/values to\n apply to this element." + } + ], + "return": { + "type": "void" + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "resolveUrl", + "description": "Rewrites a given URL relative to a base URL. The base URL defaults to\nthe original location of the document containing the `dom-module` for\nthis element. This method will return the same URL before and after\nbundling.\n\nNote that this function performs no resolution for URLs that start\nwith `/` (absolute URLs) or `#` (hash identifiers). For general purpose\nURL resolution, use `window.URL`.", + "privacy": "public", + "sourceRange": { + "file": "../polymer/lib/mixins/element-mixin.html", + "start": { + "line": 641, + "column": 6 + }, + "end": { + "line": 646, + "column": 7 + } + }, + "metadata": {}, + "params": [ + { + "name": "url", + "type": "string", + "description": "URL to resolve." + }, + { + "name": "base", + "type": "string=", + "description": "Optional base URL to resolve against, defaults\nto the element's `importPath`" + } + ], + "return": { + "type": "string", + "desc": "Rewritten URL relative to base" + }, + "inheritedFrom": "Polymer.ElementMixin" + }, + { + "name": "_setDuration", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 128, + "column": 12 + }, + "end": { + "line": 131, + "column": 13 + } + }, + "metadata": {}, + "params": [ + { + "name": "duration" + } + ], + "return": { + "type": "void" + } + }, + { + "name": "_autoAnimate", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 133, + "column": 12 + }, + "end": { + "line": 141, + "column": 15 + } + }, + "metadata": {}, + "params": [ + { + "name": "autoplay" + } + ], + "return": { + "type": "void" + } + }, + { + "name": "previous", + "description": "", + "privacy": "public", + "sourceRange": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 157, + "column": 14 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + } + }, + { + "name": "next", + "description": "", + "privacy": "public", + "sourceRange": { + "start": { + "line": 159, + "column": 13 + }, + "end": { + "line": 178, + "column": 14 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + } + }, + { + "name": "_loadImage", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 180, + "column": 13 + }, + "end": { + "line": 184, + "column": 15 + } + }, + "metadata": {}, + "params": [ + { + "name": "img" + } + ], + "return": { + "type": "void" + } + }, + { + "name": "_selectedChanged", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 186, + "column": 13 + }, + "end": { + "line": 202, + "column": 11 + } + }, + "metadata": {}, + "params": [ + { + "name": "selected" + }, + { + "name": "oldSelected" + } + ], + "return": { + "type": "void" + } + }, + { + "name": "_getNodeArray", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 211, + "column": 12 + }, + "end": { + "line": 214, + "column": 13 + } + }, + "metadata": {}, + "params": [] + }, + { + "name": "_resetSelected", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 215, + "column": 12 + }, + "end": { + "line": 224, + "column": 14 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + } + }, + { + "name": "_translateX", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 226, + "column": 12 + }, + "end": { + "line": 230, + "column": 14 + } + }, + "metadata": {}, + "params": [ + { + "name": "elem" + }, + { + "name": "x" + }, + { + "name": "transition" + } + ], + "return": { + "type": "void" + } + }, + { + "name": "_installListeners", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 245, + "column": 13 + }, + "end": { + "line": 247, + "column": 14 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + } + }, + { + "name": "_resetChildrenStyles", + "description": "", + "privacy": "protected", + "sourceRange": { + "start": { + "line": 249, + "column": 13 + }, + "end": { + "line": 260, + "column": 14 + } + }, + "metadata": {}, + "params": [], + "return": { + "type": "void" + } + } + ], + "staticMethods": [ + { + "name": "_parseTemplate", + "description": "Scans a template to produce template metadata.\n\nTemplate-specific metadata are stored in the object returned, and node-\nspecific metadata are stored in objects in its flattened `nodeInfoList`\narray. Only nodes in the template that were parsed as nodes of\ninterest contain an object in `nodeInfoList`. Each `nodeInfo` object\ncontains an `index` (`childNodes` index in parent) and optionally\n`parent`, which points to node info of its parent (including its index).\n\nThe template metadata object returned from this method has the following\nstructure (many fields optional):\n\n```js\n {\n // Flattened list of node metadata (for nodes that generated metadata)\n nodeInfoList: [\n {\n // `id` attribute for any nodes with id's for generating `$` map\n id: {string},\n // `on-event=\"handler\"` metadata\n events: [\n {\n name: {string}, // event name\n value: {string}, // handler method name\n }, ...\n ],\n // Notes when the template contained a `` for shady DOM\n // optimization purposes\n hasInsertionPoint: {boolean},\n // For nested `