OLD | NEW |
1 /** | 1 /** |
2 * Scalable Vector Graphics: | 2 * Scalable Vector Graphics: |
3 * Two-dimensional vector graphics with support for events and animation. | 3 * Two-dimensional vector graphics with support for events and animation. |
4 * | 4 * |
5 * For details about the features and syntax of SVG, a W3C standard, | 5 * For details about the features and syntax of SVG, a W3C standard, |
6 * refer to the | 6 * refer to the |
7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). | 7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). |
8 */ | 8 */ |
9 library dart.dom.svg; | 9 library dart.dom.svg; |
10 | 10 |
(...skipping 6923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6934 // BSD-style license that can be found in the LICENSE file. | 6934 // BSD-style license that can be found in the LICENSE file. |
6935 | 6935 |
6936 | 6936 |
6937 @DocsEditable() | 6937 @DocsEditable() |
6938 @DomName('SVGElementInstanceList') | 6938 @DomName('SVGElementInstanceList') |
6939 @Unstable() | 6939 @Unstable() |
6940 class _ElementInstanceList extends Interceptor with ListMixin<ElementInstance>,
ImmutableListMixin<ElementInstance> implements List<ElementInstance> native "SVG
ElementInstanceList" { | 6940 class _ElementInstanceList extends Interceptor with ListMixin<ElementInstance>,
ImmutableListMixin<ElementInstance> implements List<ElementInstance> native "SVG
ElementInstanceList" { |
6941 // To suppress missing implicit constructor warnings. | 6941 // To suppress missing implicit constructor warnings. |
6942 factory _ElementInstanceList._() { throw new UnsupportedError("Not supported")
; } | 6942 factory _ElementInstanceList._() { throw new UnsupportedError("Not supported")
; } |
6943 | 6943 |
| 6944 @DomName('SVGElementInstanceList.length') |
| 6945 @DocsEditable() |
| 6946 int get length => JS("int", "#.length", this); |
| 6947 |
6944 ElementInstance operator[](int index) { | 6948 ElementInstance operator[](int index) { |
6945 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 6949 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
6946 index, index, length)) | 6950 index, index, length)) |
6947 throw new RangeError.range(index, 0, length); | 6951 throw new RangeError.range(index, 0, length); |
6948 return this.item(index); | 6952 return this.item(index); |
6949 } | 6953 } |
6950 void operator[]=(int index, ElementInstance value) { | 6954 void operator[]=(int index, ElementInstance value) { |
6951 throw new UnsupportedError("Cannot assign element of immutable List."); | 6955 throw new UnsupportedError("Cannot assign element of immutable List."); |
6952 } | 6956 } |
6953 // -- start List<ElementInstance> mixins. | 6957 // -- start List<ElementInstance> mixins. |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7372 @DomName('SVGVKernElement.SVGVKernElement') | 7376 @DomName('SVGVKernElement.SVGVKernElement') |
7373 @DocsEditable() | 7377 @DocsEditable() |
7374 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 7378 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
7375 /** | 7379 /** |
7376 * Constructor instantiated by the DOM when a custom element has been created. | 7380 * Constructor instantiated by the DOM when a custom element has been created. |
7377 * | 7381 * |
7378 * This can only be called by subclasses from their created constructor. | 7382 * This can only be called by subclasses from their created constructor. |
7379 */ | 7383 */ |
7380 _SVGVKernElement.created() : super.created(); | 7384 _SVGVKernElement.created() : super.created(); |
7381 } | 7385 } |
OLD | NEW |