| OLD | NEW |
| 1 library dart.dom.svg; | 1 library dart.dom.svg; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:_collection-dev' hide deprecated; | 5 import 'dart:_collection-dev' hide deprecated; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:nativewrappers'; | 8 import 'dart:nativewrappers'; |
| 9 // DO NOT EDIT | 9 // DO NOT EDIT |
| 10 // Auto-generated dart:svg library. | 10 // Auto-generated dart:svg library. |
| (...skipping 2952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2963 | 2963 |
| 2964 // SVG Collections expose numberOfItems rather than length. | 2964 // SVG Collections expose numberOfItems rather than length. |
| 2965 int get length => numberOfItems; | 2965 int get length => numberOfItems; |
| 2966 | 2966 |
| 2967 void set length(int value) { | 2967 void set length(int value) { |
| 2968 throw new UnsupportedError("Cannot resize immutable List."); | 2968 throw new UnsupportedError("Cannot resize immutable List."); |
| 2969 } | 2969 } |
| 2970 | 2970 |
| 2971 Length get first { | 2971 Length get first { |
| 2972 if (this.length > 0) { | 2972 if (this.length > 0) { |
| 2973 return this[0]; | 2973 return getItem(0); |
| 2974 } | 2974 } |
| 2975 throw new StateError("No elements"); | 2975 throw new StateError("No elements"); |
| 2976 } | 2976 } |
| 2977 | 2977 |
| 2978 Length get last { | 2978 Length get last { |
| 2979 int len = this.length; | 2979 int len = this.length; |
| 2980 if (len > 0) { | 2980 if (len > 0) { |
| 2981 return this[len - 1]; | 2981 return getItem(len - 1); |
| 2982 } | 2982 } |
| 2983 throw new StateError("No elements"); | 2983 throw new StateError("No elements"); |
| 2984 } | 2984 } |
| 2985 | 2985 |
| 2986 Length get single { | 2986 Length get single { |
| 2987 int len = this.length; | 2987 int len = this.length; |
| 2988 if (len == 1) { | 2988 if (len == 1) { |
| 2989 return this[0]; | 2989 return getItem(0); |
| 2990 } | 2990 } |
| 2991 if (len == 0) throw new StateError("No elements"); | 2991 if (len == 0) throw new StateError("No elements"); |
| 2992 throw new StateError("More than one element"); | 2992 throw new StateError("More than one element"); |
| 2993 } | 2993 } |
| 2994 | 2994 |
| 2995 Length elementAt(int index) => this[index]; | 2995 Length elementAt(int index) => this[index]; |
| 2996 // -- end List<Length> mixins. | 2996 // -- end List<Length> mixins. |
| 2997 | 2997 |
| 2998 @DomName('SVGLengthList.appendItem') | 2998 @DomName('SVGLengthList.appendItem') |
| 2999 @DocsEditable() | 2999 @DocsEditable() |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3423 | 3423 |
| 3424 // SVG Collections expose numberOfItems rather than length. | 3424 // SVG Collections expose numberOfItems rather than length. |
| 3425 int get length => numberOfItems; | 3425 int get length => numberOfItems; |
| 3426 | 3426 |
| 3427 void set length(int value) { | 3427 void set length(int value) { |
| 3428 throw new UnsupportedError("Cannot resize immutable List."); | 3428 throw new UnsupportedError("Cannot resize immutable List."); |
| 3429 } | 3429 } |
| 3430 | 3430 |
| 3431 Number get first { | 3431 Number get first { |
| 3432 if (this.length > 0) { | 3432 if (this.length > 0) { |
| 3433 return this[0]; | 3433 return getItem(0); |
| 3434 } | 3434 } |
| 3435 throw new StateError("No elements"); | 3435 throw new StateError("No elements"); |
| 3436 } | 3436 } |
| 3437 | 3437 |
| 3438 Number get last { | 3438 Number get last { |
| 3439 int len = this.length; | 3439 int len = this.length; |
| 3440 if (len > 0) { | 3440 if (len > 0) { |
| 3441 return this[len - 1]; | 3441 return getItem(len - 1); |
| 3442 } | 3442 } |
| 3443 throw new StateError("No elements"); | 3443 throw new StateError("No elements"); |
| 3444 } | 3444 } |
| 3445 | 3445 |
| 3446 Number get single { | 3446 Number get single { |
| 3447 int len = this.length; | 3447 int len = this.length; |
| 3448 if (len == 1) { | 3448 if (len == 1) { |
| 3449 return this[0]; | 3449 return getItem(0); |
| 3450 } | 3450 } |
| 3451 if (len == 0) throw new StateError("No elements"); | 3451 if (len == 0) throw new StateError("No elements"); |
| 3452 throw new StateError("More than one element"); | 3452 throw new StateError("More than one element"); |
| 3453 } | 3453 } |
| 3454 | 3454 |
| 3455 Number elementAt(int index) => this[index]; | 3455 Number elementAt(int index) => this[index]; |
| 3456 // -- end List<Number> mixins. | 3456 // -- end List<Number> mixins. |
| 3457 | 3457 |
| 3458 @DomName('SVGNumberList.appendItem') | 3458 @DomName('SVGNumberList.appendItem') |
| 3459 @DocsEditable() | 3459 @DocsEditable() |
| (...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4433 | 4433 |
| 4434 // SVG Collections expose numberOfItems rather than length. | 4434 // SVG Collections expose numberOfItems rather than length. |
| 4435 int get length => numberOfItems; | 4435 int get length => numberOfItems; |
| 4436 | 4436 |
| 4437 void set length(int value) { | 4437 void set length(int value) { |
| 4438 throw new UnsupportedError("Cannot resize immutable List."); | 4438 throw new UnsupportedError("Cannot resize immutable List."); |
| 4439 } | 4439 } |
| 4440 | 4440 |
| 4441 PathSeg get first { | 4441 PathSeg get first { |
| 4442 if (this.length > 0) { | 4442 if (this.length > 0) { |
| 4443 return this[0]; | 4443 return getItem(0); |
| 4444 } | 4444 } |
| 4445 throw new StateError("No elements"); | 4445 throw new StateError("No elements"); |
| 4446 } | 4446 } |
| 4447 | 4447 |
| 4448 PathSeg get last { | 4448 PathSeg get last { |
| 4449 int len = this.length; | 4449 int len = this.length; |
| 4450 if (len > 0) { | 4450 if (len > 0) { |
| 4451 return this[len - 1]; | 4451 return getItem(len - 1); |
| 4452 } | 4452 } |
| 4453 throw new StateError("No elements"); | 4453 throw new StateError("No elements"); |
| 4454 } | 4454 } |
| 4455 | 4455 |
| 4456 PathSeg get single { | 4456 PathSeg get single { |
| 4457 int len = this.length; | 4457 int len = this.length; |
| 4458 if (len == 1) { | 4458 if (len == 1) { |
| 4459 return this[0]; | 4459 return getItem(0); |
| 4460 } | 4460 } |
| 4461 if (len == 0) throw new StateError("No elements"); | 4461 if (len == 0) throw new StateError("No elements"); |
| 4462 throw new StateError("More than one element"); | 4462 throw new StateError("More than one element"); |
| 4463 } | 4463 } |
| 4464 | 4464 |
| 4465 PathSeg elementAt(int index) => this[index]; | 4465 PathSeg elementAt(int index) => this[index]; |
| 4466 // -- end List<PathSeg> mixins. | 4466 // -- end List<PathSeg> mixins. |
| 4467 | 4467 |
| 4468 @DomName('SVGPathSegList.appendItem') | 4468 @DomName('SVGPathSegList.appendItem') |
| 4469 @DocsEditable() | 4469 @DocsEditable() |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5145 | 5145 |
| 5146 // SVG Collections expose numberOfItems rather than length. | 5146 // SVG Collections expose numberOfItems rather than length. |
| 5147 int get length => numberOfItems; | 5147 int get length => numberOfItems; |
| 5148 | 5148 |
| 5149 void set length(int value) { | 5149 void set length(int value) { |
| 5150 throw new UnsupportedError("Cannot resize immutable List."); | 5150 throw new UnsupportedError("Cannot resize immutable List."); |
| 5151 } | 5151 } |
| 5152 | 5152 |
| 5153 String get first { | 5153 String get first { |
| 5154 if (this.length > 0) { | 5154 if (this.length > 0) { |
| 5155 return this[0]; | 5155 return getItem(0); |
| 5156 } | 5156 } |
| 5157 throw new StateError("No elements"); | 5157 throw new StateError("No elements"); |
| 5158 } | 5158 } |
| 5159 | 5159 |
| 5160 String get last { | 5160 String get last { |
| 5161 int len = this.length; | 5161 int len = this.length; |
| 5162 if (len > 0) { | 5162 if (len > 0) { |
| 5163 return this[len - 1]; | 5163 return getItem(len - 1); |
| 5164 } | 5164 } |
| 5165 throw new StateError("No elements"); | 5165 throw new StateError("No elements"); |
| 5166 } | 5166 } |
| 5167 | 5167 |
| 5168 String get single { | 5168 String get single { |
| 5169 int len = this.length; | 5169 int len = this.length; |
| 5170 if (len == 1) { | 5170 if (len == 1) { |
| 5171 return this[0]; | 5171 return getItem(0); |
| 5172 } | 5172 } |
| 5173 if (len == 0) throw new StateError("No elements"); | 5173 if (len == 0) throw new StateError("No elements"); |
| 5174 throw new StateError("More than one element"); | 5174 throw new StateError("More than one element"); |
| 5175 } | 5175 } |
| 5176 | 5176 |
| 5177 String elementAt(int index) => this[index]; | 5177 String elementAt(int index) => this[index]; |
| 5178 // -- end List<String> mixins. | 5178 // -- end List<String> mixins. |
| 5179 | 5179 |
| 5180 @DomName('SVGStringList.appendItem') | 5180 @DomName('SVGStringList.appendItem') |
| 5181 @DocsEditable() | 5181 @DocsEditable() |
| (...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6097 | 6097 |
| 6098 // SVG Collections expose numberOfItems rather than length. | 6098 // SVG Collections expose numberOfItems rather than length. |
| 6099 int get length => numberOfItems; | 6099 int get length => numberOfItems; |
| 6100 | 6100 |
| 6101 void set length(int value) { | 6101 void set length(int value) { |
| 6102 throw new UnsupportedError("Cannot resize immutable List."); | 6102 throw new UnsupportedError("Cannot resize immutable List."); |
| 6103 } | 6103 } |
| 6104 | 6104 |
| 6105 Transform get first { | 6105 Transform get first { |
| 6106 if (this.length > 0) { | 6106 if (this.length > 0) { |
| 6107 return this[0]; | 6107 return getItem(0); |
| 6108 } | 6108 } |
| 6109 throw new StateError("No elements"); | 6109 throw new StateError("No elements"); |
| 6110 } | 6110 } |
| 6111 | 6111 |
| 6112 Transform get last { | 6112 Transform get last { |
| 6113 int len = this.length; | 6113 int len = this.length; |
| 6114 if (len > 0) { | 6114 if (len > 0) { |
| 6115 return this[len - 1]; | 6115 return getItem(len - 1); |
| 6116 } | 6116 } |
| 6117 throw new StateError("No elements"); | 6117 throw new StateError("No elements"); |
| 6118 } | 6118 } |
| 6119 | 6119 |
| 6120 Transform get single { | 6120 Transform get single { |
| 6121 int len = this.length; | 6121 int len = this.length; |
| 6122 if (len == 1) { | 6122 if (len == 1) { |
| 6123 return this[0]; | 6123 return getItem(0); |
| 6124 } | 6124 } |
| 6125 if (len == 0) throw new StateError("No elements"); | 6125 if (len == 0) throw new StateError("No elements"); |
| 6126 throw new StateError("More than one element"); | 6126 throw new StateError("More than one element"); |
| 6127 } | 6127 } |
| 6128 | 6128 |
| 6129 Transform elementAt(int index) => this[index]; | 6129 Transform elementAt(int index) => this[index]; |
| 6130 // -- end List<Transform> mixins. | 6130 // -- end List<Transform> mixins. |
| 6131 | 6131 |
| 6132 @DomName('SVGTransformList.appendItem') | 6132 @DomName('SVGTransformList.appendItem') |
| 6133 @DocsEditable() | 6133 @DocsEditable() |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6472 // -- start List<ElementInstance> mixins. | 6472 // -- start List<ElementInstance> mixins. |
| 6473 // ElementInstance is the element type. | 6473 // ElementInstance is the element type. |
| 6474 | 6474 |
| 6475 | 6475 |
| 6476 void set length(int value) { | 6476 void set length(int value) { |
| 6477 throw new UnsupportedError("Cannot resize immutable List."); | 6477 throw new UnsupportedError("Cannot resize immutable List."); |
| 6478 } | 6478 } |
| 6479 | 6479 |
| 6480 ElementInstance get first { | 6480 ElementInstance get first { |
| 6481 if (this.length > 0) { | 6481 if (this.length > 0) { |
| 6482 return this[0]; | 6482 return _nativeIndexedGetter(0); |
| 6483 } | 6483 } |
| 6484 throw new StateError("No elements"); | 6484 throw new StateError("No elements"); |
| 6485 } | 6485 } |
| 6486 | 6486 |
| 6487 ElementInstance get last { | 6487 ElementInstance get last { |
| 6488 int len = this.length; | 6488 int len = this.length; |
| 6489 if (len > 0) { | 6489 if (len > 0) { |
| 6490 return this[len - 1]; | 6490 return _nativeIndexedGetter(len - 1); |
| 6491 } | 6491 } |
| 6492 throw new StateError("No elements"); | 6492 throw new StateError("No elements"); |
| 6493 } | 6493 } |
| 6494 | 6494 |
| 6495 ElementInstance get single { | 6495 ElementInstance get single { |
| 6496 int len = this.length; | 6496 int len = this.length; |
| 6497 if (len == 1) { | 6497 if (len == 1) { |
| 6498 return this[0]; | 6498 return _nativeIndexedGetter(0); |
| 6499 } | 6499 } |
| 6500 if (len == 0) throw new StateError("No elements"); | 6500 if (len == 0) throw new StateError("No elements"); |
| 6501 throw new StateError("More than one element"); | 6501 throw new StateError("More than one element"); |
| 6502 } | 6502 } |
| 6503 | 6503 |
| 6504 ElementInstance elementAt(int index) => this[index]; | 6504 ElementInstance elementAt(int index) => this[index]; |
| 6505 // -- end List<ElementInstance> mixins. | 6505 // -- end List<ElementInstance> mixins. |
| 6506 | 6506 |
| 6507 @DomName('SVGElementInstanceList.item') | 6507 @DomName('SVGElementInstanceList.item') |
| 6508 @DocsEditable() | 6508 @DocsEditable() |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6892 @Unstable() | 6892 @Unstable() |
| 6893 abstract class _SVGVKernElement extends SvgElement { | 6893 abstract class _SVGVKernElement extends SvgElement { |
| 6894 // To suppress missing implicit constructor warnings. | 6894 // To suppress missing implicit constructor warnings. |
| 6895 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } | 6895 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } |
| 6896 | 6896 |
| 6897 @DomName('SVGVKernElement.SVGVKernElement') | 6897 @DomName('SVGVKernElement.SVGVKernElement') |
| 6898 @DocsEditable() | 6898 @DocsEditable() |
| 6899 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 6899 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
| 6900 | 6900 |
| 6901 } | 6901 } |
| OLD | NEW |