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 2665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2676 @Experimental() // untriaged | 2676 @Experimental() // untriaged |
2677 int get length => JS("int", "#.length", this); | 2677 int get length => JS("int", "#.length", this); |
2678 | 2678 |
2679 @DomName('SVGLengthList.numberOfItems') | 2679 @DomName('SVGLengthList.numberOfItems') |
2680 @DocsEditable() | 2680 @DocsEditable() |
2681 final int numberOfItems; | 2681 final int numberOfItems; |
2682 | 2682 |
2683 Length operator[](int index) { | 2683 Length operator[](int index) { |
2684 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 2684 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
2685 index, index, length)) | 2685 index, index, length)) |
2686 throw new RangeError.range(index, 0, length); | 2686 throw new RangeError.index(index, this); |
2687 return this.getItem(index); | 2687 return this.getItem(index); |
2688 } | 2688 } |
2689 void operator[]=(int index, Length value) { | 2689 void operator[]=(int index, Length value) { |
2690 throw new UnsupportedError("Cannot assign element of immutable List."); | 2690 throw new UnsupportedError("Cannot assign element of immutable List."); |
2691 } | 2691 } |
2692 // -- start List<Length> mixins. | 2692 // -- start List<Length> mixins. |
2693 // Length is the element type. | 2693 // Length is the element type. |
2694 | 2694 |
2695 | 2695 |
2696 void set length(int value) { | 2696 void set length(int value) { |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3128 @Experimental() // untriaged | 3128 @Experimental() // untriaged |
3129 int get length => JS("int", "#.length", this); | 3129 int get length => JS("int", "#.length", this); |
3130 | 3130 |
3131 @DomName('SVGNumberList.numberOfItems') | 3131 @DomName('SVGNumberList.numberOfItems') |
3132 @DocsEditable() | 3132 @DocsEditable() |
3133 final int numberOfItems; | 3133 final int numberOfItems; |
3134 | 3134 |
3135 Number operator[](int index) { | 3135 Number operator[](int index) { |
3136 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 3136 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
3137 index, index, length)) | 3137 index, index, length)) |
3138 throw new RangeError.range(index, 0, length); | 3138 throw new RangeError.index(index, this); |
3139 return this.getItem(index); | 3139 return this.getItem(index); |
3140 } | 3140 } |
3141 void operator[]=(int index, Number value) { | 3141 void operator[]=(int index, Number value) { |
3142 throw new UnsupportedError("Cannot assign element of immutable List."); | 3142 throw new UnsupportedError("Cannot assign element of immutable List."); |
3143 } | 3143 } |
3144 // -- start List<Number> mixins. | 3144 // -- start List<Number> mixins. |
3145 // Number is the element type. | 3145 // Number is the element type. |
3146 | 3146 |
3147 | 3147 |
3148 void set length(int value) { | 3148 void set length(int value) { |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3915 @Experimental() // untriaged | 3915 @Experimental() // untriaged |
3916 int get length => JS("int", "#.length", this); | 3916 int get length => JS("int", "#.length", this); |
3917 | 3917 |
3918 @DomName('SVGPathSegList.numberOfItems') | 3918 @DomName('SVGPathSegList.numberOfItems') |
3919 @DocsEditable() | 3919 @DocsEditable() |
3920 final int numberOfItems; | 3920 final int numberOfItems; |
3921 | 3921 |
3922 PathSeg operator[](int index) { | 3922 PathSeg operator[](int index) { |
3923 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 3923 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
3924 index, index, length)) | 3924 index, index, length)) |
3925 throw new RangeError.range(index, 0, length); | 3925 throw new RangeError.index(index, this); |
3926 return this.getItem(index); | 3926 return this.getItem(index); |
3927 } | 3927 } |
3928 void operator[]=(int index, PathSeg value) { | 3928 void operator[]=(int index, PathSeg value) { |
3929 throw new UnsupportedError("Cannot assign element of immutable List."); | 3929 throw new UnsupportedError("Cannot assign element of immutable List."); |
3930 } | 3930 } |
3931 // -- start List<PathSeg> mixins. | 3931 // -- start List<PathSeg> mixins. |
3932 // PathSeg is the element type. | 3932 // PathSeg is the element type. |
3933 | 3933 |
3934 | 3934 |
3935 void set length(int value) { | 3935 void set length(int value) { |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4610 @Experimental() // untriaged | 4610 @Experimental() // untriaged |
4611 int get length => JS("int", "#.length", this); | 4611 int get length => JS("int", "#.length", this); |
4612 | 4612 |
4613 @DomName('SVGStringList.numberOfItems') | 4613 @DomName('SVGStringList.numberOfItems') |
4614 @DocsEditable() | 4614 @DocsEditable() |
4615 final int numberOfItems; | 4615 final int numberOfItems; |
4616 | 4616 |
4617 String operator[](int index) { | 4617 String operator[](int index) { |
4618 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 4618 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
4619 index, index, length)) | 4619 index, index, length)) |
4620 throw new RangeError.range(index, 0, length); | 4620 throw new RangeError.index(index, this); |
4621 return this.getItem(index); | 4621 return this.getItem(index); |
4622 } | 4622 } |
4623 void operator[]=(int index, String value) { | 4623 void operator[]=(int index, String value) { |
4624 throw new UnsupportedError("Cannot assign element of immutable List."); | 4624 throw new UnsupportedError("Cannot assign element of immutable List."); |
4625 } | 4625 } |
4626 // -- start List<String> mixins. | 4626 // -- start List<String> mixins. |
4627 // String is the element type. | 4627 // String is the element type. |
4628 | 4628 |
4629 | 4629 |
4630 void set length(int value) { | 4630 void set length(int value) { |
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6070 @Experimental() // untriaged | 6070 @Experimental() // untriaged |
6071 int get length => JS("int", "#.length", this); | 6071 int get length => JS("int", "#.length", this); |
6072 | 6072 |
6073 @DomName('SVGTransformList.numberOfItems') | 6073 @DomName('SVGTransformList.numberOfItems') |
6074 @DocsEditable() | 6074 @DocsEditable() |
6075 final int numberOfItems; | 6075 final int numberOfItems; |
6076 | 6076 |
6077 Transform operator[](int index) { | 6077 Transform operator[](int index) { |
6078 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 6078 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
6079 index, index, length)) | 6079 index, index, length)) |
6080 throw new RangeError.range(index, 0, length); | 6080 throw new RangeError.index(index, this); |
6081 return this.getItem(index); | 6081 return this.getItem(index); |
6082 } | 6082 } |
6083 void operator[]=(int index, Transform value) { | 6083 void operator[]=(int index, Transform value) { |
6084 throw new UnsupportedError("Cannot assign element of immutable List."); | 6084 throw new UnsupportedError("Cannot assign element of immutable List."); |
6085 } | 6085 } |
6086 // -- start List<Transform> mixins. | 6086 // -- start List<Transform> mixins. |
6087 // Transform is the element type. | 6087 // Transform is the element type. |
6088 | 6088 |
6089 | 6089 |
6090 void set length(int value) { | 6090 void set length(int value) { |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6803 @DomName('SVGVKernElement.SVGVKernElement') | 6803 @DomName('SVGVKernElement.SVGVKernElement') |
6804 @DocsEditable() | 6804 @DocsEditable() |
6805 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 6805 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
6806 /** | 6806 /** |
6807 * Constructor instantiated by the DOM when a custom element has been created. | 6807 * Constructor instantiated by the DOM when a custom element has been created. |
6808 * | 6808 * |
6809 * This can only be called by subclasses from their created constructor. | 6809 * This can only be called by subclasses from their created constructor. |
6810 */ | 6810 */ |
6811 _SVGVKernElement.created() : super.created(); | 6811 _SVGVKernElement.created() : super.created(); |
6812 } | 6812 } |
OLD | NEW |