| Index: third_party/polymer/v0_8/components/iron-iconset/iron-iconset.html
|
| diff --git a/third_party/polymer/v0_8/components/iron-iconset/iron-iconset.html b/third_party/polymer/v0_8/components/iron-iconset/iron-iconset.html
|
| index e77f3aefa8ef7cf57d0a709e386b22bb517cb5b9..1fbc6286b5b4a0683f6e5922795a5c3afc925435 100644
|
| --- a/third_party/polymer/v0_8/components/iron-iconset/iron-iconset.html
|
| +++ b/third_party/polymer/v0_8/components/iron-iconset/iron-iconset.html
|
| @@ -1,4 +1,5 @@
|
| <!--
|
| +@license
|
| Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
| This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
| The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
| @@ -7,57 +8,54 @@ Code distributed by Google as part of the polymer project is also
|
| subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
| -->
|
|
|
| -<!--
|
| -/**
|
| - * @group Iron Elements
|
| - *
|
| - * The `iron-iconset` element allows users to define their own icon sets.
|
| - * The `src` property specifies the url of the icon image. Multiple icons may
|
| - * be included in this image and they may be organized into rows.
|
| - * The `icons` property is a space separated list of names corresponding to the
|
| - * icons. The names must be ordered as the icons are ordered in the icon image.
|
| - * Icons are expected to be square and are the size specified by the `size`
|
| - * property. The `width` property corresponds to the width of the icon image
|
| - * and must be specified if icons are arranged into multiple rows in the image.
|
| - *
|
| - * All `iron-iconset` elements are available for use by other `iron-iconset`
|
| - * elements via a database keyed by id. Typically, an element author that wants
|
| - * to support a set of custom icons uses a `iron-iconset` to retrieve
|
| - * and use another, user-defined iconset.
|
| - *
|
| - * Example:
|
| - *
|
| - * <iron-iconset id="my-icons" src="my-icons.png" width="96" size="24"
|
| - * icons="location place starta stopb bus car train walk">
|
| - * </iron-iconset>
|
| - *
|
| - * This will automatically register the icon set "my-icons" to the iconset
|
| - * database. To use these icons from within another element, make a
|
| - * `iron-iconset` element and call the `byId` method to retrieve a
|
| - * given iconset. To apply a particular icon to an element, use the
|
| - * `applyIcon` method. For example:
|
| - *
|
| - * iconset.applyIcon(iconNode, 'car');
|
| - *
|
| - * Themed icon sets are also supported. The `iron-iconset` can contain child
|
| - * `property` elements that specify a theme with an offsetX and offsetY of the
|
| - * theme within the icon resource. For example.
|
| - *
|
| - * <iron-iconset id="my-icons" src="my-icons.png" width="96" size="24"
|
| - * icons="location place starta stopb bus car train walk">
|
| - * <property theme="special" offsetX="256" offsetY="24"></property>
|
| - * </iron-iconset>
|
| - *
|
| - * Then a themed icon can be applied like this:
|
| - *
|
| - * iconset.applyIcon(iconNode, 'car', 'special');
|
| - *
|
| - * @element iron-iconset
|
| - */
|
| --->
|
| <link rel="import" href="../polymer/polymer.html">
|
| <link rel="import" href="../iron-meta/iron-meta.html">
|
|
|
| +<!--
|
| +The `iron-iconset` element allows users to define their own icon sets.
|
| +The `src` property specifies the url of the icon image. Multiple icons may
|
| +be included in this image and they may be organized into rows.
|
| +The `icons` property is a space separated list of names corresponding to the
|
| +icons. The names must be ordered as the icons are ordered in the icon image.
|
| +Icons are expected to be square and are the size specified by the `size`
|
| +property. The `width` property corresponds to the width of the icon image
|
| +and must be specified if icons are arranged into multiple rows in the image.
|
| +
|
| +All `iron-iconset` elements are available for use by other `iron-iconset`
|
| +elements via a database keyed by id. Typically, an element author that wants
|
| +to support a set of custom icons uses a `iron-iconset` to retrieve
|
| +and use another, user-defined iconset.
|
| +
|
| +Example:
|
| +
|
| + <iron-iconset id="my-icons" src="my-icons.png" width="96" size="24"
|
| + icons="location place starta stopb bus car train walk">
|
| + </iron-iconset>
|
| +
|
| +This will automatically register the icon set "my-icons" to the iconset
|
| +database. To use these icons from within another element, make a
|
| +`iron-iconset` element and call the `byId` method to retrieve a
|
| +given iconset. To apply a particular icon to an element, use the
|
| +`applyIcon` method. For example:
|
| +
|
| + iconset.applyIcon(iconNode, 'car');
|
| +
|
| +Themed icon sets are also supported. The `iron-iconset` can contain child
|
| +`property` elements that specify a theme with an offsetX and offsetY of the
|
| +theme within the icon resource. For example.
|
| +
|
| + <iron-iconset id="my-icons" src="my-icons.png" width="96" size="24"
|
| + icons="location place starta stopb bus car train walk">
|
| + <property theme="special" offsetX="256" offsetY="24"></property>
|
| + </iron-iconset>
|
| +
|
| +Then a themed icon can be applied like this:
|
| +
|
| + iconset.applyIcon(iconNode, 'car', 'special');
|
| +
|
| +@element iron-iconset
|
| +-->
|
| +
|
| <script>
|
|
|
| Polymer({
|
|
|