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:html'; | 5 import 'dart:html'; |
6 import 'dart:html_common'; | 6 import 'dart:html_common'; |
7 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa
me; | 7 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa
me; |
8 import 'dart:_foreign_helper' show JS; | 8 import 'dart:_foreign_helper' show JS; |
9 // DO NOT EDIT - unless you are editing documentation as per: | 9 // DO NOT EDIT - unless you are editing documentation as per: |
10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
(...skipping 3055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3066 // for consistency. | 3066 // for consistency. |
3067 return new FixedSizeListIterator<Length>(this); | 3067 return new FixedSizeListIterator<Length>(this); |
3068 } | 3068 } |
3069 | 3069 |
3070 // SVG Collections expose numberOfItems rather than length. | 3070 // SVG Collections expose numberOfItems rather than length. |
3071 int get length => numberOfItems; | 3071 int get length => numberOfItems; |
3072 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Length)) { | 3072 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Length)) { |
3073 return IterableMixinWorkaround.reduce(this, initialValue, combine); | 3073 return IterableMixinWorkaround.reduce(this, initialValue, combine); |
3074 } | 3074 } |
3075 | 3075 |
| 3076 dynamic fold(dynamic initialValue, dynamic combine(dynamic, Length)) { |
| 3077 return IterableMixinWorkaround.fold(this, initialValue, combine); |
| 3078 } |
| 3079 |
3076 bool contains(Length element) => IterableMixinWorkaround.contains(this, elemen
t); | 3080 bool contains(Length element) => IterableMixinWorkaround.contains(this, elemen
t); |
3077 | 3081 |
3078 void forEach(void f(Length element)) => IterableMixinWorkaround.forEach(this,
f); | 3082 void forEach(void f(Length element)) => IterableMixinWorkaround.forEach(this,
f); |
3079 | 3083 |
3080 String join([String separator]) => | 3084 String join([String separator]) => |
3081 IterableMixinWorkaround.joinList(this, separator); | 3085 IterableMixinWorkaround.joinList(this, separator); |
3082 | 3086 |
3083 Iterable map(f(Length element)) => | 3087 Iterable map(f(Length element)) => |
3084 IterableMixinWorkaround.mapList(this, f); | 3088 IterableMixinWorkaround.mapList(this, f); |
3085 | 3089 |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3700 // for consistency. | 3704 // for consistency. |
3701 return new FixedSizeListIterator<Number>(this); | 3705 return new FixedSizeListIterator<Number>(this); |
3702 } | 3706 } |
3703 | 3707 |
3704 // SVG Collections expose numberOfItems rather than length. | 3708 // SVG Collections expose numberOfItems rather than length. |
3705 int get length => numberOfItems; | 3709 int get length => numberOfItems; |
3706 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Number)) { | 3710 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Number)) { |
3707 return IterableMixinWorkaround.reduce(this, initialValue, combine); | 3711 return IterableMixinWorkaround.reduce(this, initialValue, combine); |
3708 } | 3712 } |
3709 | 3713 |
| 3714 dynamic fold(dynamic initialValue, dynamic combine(dynamic, Number)) { |
| 3715 return IterableMixinWorkaround.fold(this, initialValue, combine); |
| 3716 } |
| 3717 |
3710 bool contains(Number element) => IterableMixinWorkaround.contains(this, elemen
t); | 3718 bool contains(Number element) => IterableMixinWorkaround.contains(this, elemen
t); |
3711 | 3719 |
3712 void forEach(void f(Number element)) => IterableMixinWorkaround.forEach(this,
f); | 3720 void forEach(void f(Number element)) => IterableMixinWorkaround.forEach(this,
f); |
3713 | 3721 |
3714 String join([String separator]) => | 3722 String join([String separator]) => |
3715 IterableMixinWorkaround.joinList(this, separator); | 3723 IterableMixinWorkaround.joinList(this, separator); |
3716 | 3724 |
3717 Iterable map(f(Number element)) => | 3725 Iterable map(f(Number element)) => |
3718 IterableMixinWorkaround.mapList(this, f); | 3726 IterableMixinWorkaround.mapList(this, f); |
3719 | 3727 |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4610 // for consistency. | 4618 // for consistency. |
4611 return new FixedSizeListIterator<PathSeg>(this); | 4619 return new FixedSizeListIterator<PathSeg>(this); |
4612 } | 4620 } |
4613 | 4621 |
4614 // SVG Collections expose numberOfItems rather than length. | 4622 // SVG Collections expose numberOfItems rather than length. |
4615 int get length => numberOfItems; | 4623 int get length => numberOfItems; |
4616 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, PathSeg)) { | 4624 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, PathSeg)) { |
4617 return IterableMixinWorkaround.reduce(this, initialValue, combine); | 4625 return IterableMixinWorkaround.reduce(this, initialValue, combine); |
4618 } | 4626 } |
4619 | 4627 |
| 4628 dynamic fold(dynamic initialValue, dynamic combine(dynamic, PathSeg)) { |
| 4629 return IterableMixinWorkaround.fold(this, initialValue, combine); |
| 4630 } |
| 4631 |
4620 bool contains(PathSeg element) => IterableMixinWorkaround.contains(this, eleme
nt); | 4632 bool contains(PathSeg element) => IterableMixinWorkaround.contains(this, eleme
nt); |
4621 | 4633 |
4622 void forEach(void f(PathSeg element)) => IterableMixinWorkaround.forEach(this,
f); | 4634 void forEach(void f(PathSeg element)) => IterableMixinWorkaround.forEach(this,
f); |
4623 | 4635 |
4624 String join([String separator]) => | 4636 String join([String separator]) => |
4625 IterableMixinWorkaround.joinList(this, separator); | 4637 IterableMixinWorkaround.joinList(this, separator); |
4626 | 4638 |
4627 Iterable map(f(PathSeg element)) => | 4639 Iterable map(f(PathSeg element)) => |
4628 IterableMixinWorkaround.mapList(this, f); | 4640 IterableMixinWorkaround.mapList(this, f); |
4629 | 4641 |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5505 // for consistency. | 5517 // for consistency. |
5506 return new FixedSizeListIterator<String>(this); | 5518 return new FixedSizeListIterator<String>(this); |
5507 } | 5519 } |
5508 | 5520 |
5509 // SVG Collections expose numberOfItems rather than length. | 5521 // SVG Collections expose numberOfItems rather than length. |
5510 int get length => numberOfItems; | 5522 int get length => numberOfItems; |
5511 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, String)) { | 5523 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, String)) { |
5512 return IterableMixinWorkaround.reduce(this, initialValue, combine); | 5524 return IterableMixinWorkaround.reduce(this, initialValue, combine); |
5513 } | 5525 } |
5514 | 5526 |
| 5527 dynamic fold(dynamic initialValue, dynamic combine(dynamic, String)) { |
| 5528 return IterableMixinWorkaround.fold(this, initialValue, combine); |
| 5529 } |
| 5530 |
5515 bool contains(String element) => IterableMixinWorkaround.contains(this, elemen
t); | 5531 bool contains(String element) => IterableMixinWorkaround.contains(this, elemen
t); |
5516 | 5532 |
5517 void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this,
f); | 5533 void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this,
f); |
5518 | 5534 |
5519 String join([String separator]) => | 5535 String join([String separator]) => |
5520 IterableMixinWorkaround.joinList(this, separator); | 5536 IterableMixinWorkaround.joinList(this, separator); |
5521 | 5537 |
5522 Iterable map(f(String element)) => | 5538 Iterable map(f(String element)) => |
5523 IterableMixinWorkaround.mapList(this, f); | 5539 IterableMixinWorkaround.mapList(this, f); |
5524 | 5540 |
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6677 // for consistency. | 6693 // for consistency. |
6678 return new FixedSizeListIterator<Transform>(this); | 6694 return new FixedSizeListIterator<Transform>(this); |
6679 } | 6695 } |
6680 | 6696 |
6681 // SVG Collections expose numberOfItems rather than length. | 6697 // SVG Collections expose numberOfItems rather than length. |
6682 int get length => numberOfItems; | 6698 int get length => numberOfItems; |
6683 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Transform)) { | 6699 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Transform)) { |
6684 return IterableMixinWorkaround.reduce(this, initialValue, combine); | 6700 return IterableMixinWorkaround.reduce(this, initialValue, combine); |
6685 } | 6701 } |
6686 | 6702 |
| 6703 dynamic fold(dynamic initialValue, dynamic combine(dynamic, Transform)) { |
| 6704 return IterableMixinWorkaround.fold(this, initialValue, combine); |
| 6705 } |
| 6706 |
6687 bool contains(Transform element) => IterableMixinWorkaround.contains(this, ele
ment); | 6707 bool contains(Transform element) => IterableMixinWorkaround.contains(this, ele
ment); |
6688 | 6708 |
6689 void forEach(void f(Transform element)) => IterableMixinWorkaround.forEach(thi
s, f); | 6709 void forEach(void f(Transform element)) => IterableMixinWorkaround.forEach(thi
s, f); |
6690 | 6710 |
6691 String join([String separator]) => | 6711 String join([String separator]) => |
6692 IterableMixinWorkaround.joinList(this, separator); | 6712 IterableMixinWorkaround.joinList(this, separator); |
6693 | 6713 |
6694 Iterable map(f(Transform element)) => | 6714 Iterable map(f(Transform element)) => |
6695 IterableMixinWorkaround.mapList(this, f); | 6715 IterableMixinWorkaround.mapList(this, f); |
6696 | 6716 |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7204 // Note: NodeLists are not fixed size. And most probably length shouldn't | 7224 // Note: NodeLists are not fixed size. And most probably length shouldn't |
7205 // be cached in both iterator _and_ forEach method. For now caching it | 7225 // be cached in both iterator _and_ forEach method. For now caching it |
7206 // for consistency. | 7226 // for consistency. |
7207 return new FixedSizeListIterator<ElementInstance>(this); | 7227 return new FixedSizeListIterator<ElementInstance>(this); |
7208 } | 7228 } |
7209 | 7229 |
7210 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, ElementInstance)
) { | 7230 dynamic reduce(dynamic initialValue, dynamic combine(dynamic, ElementInstance)
) { |
7211 return IterableMixinWorkaround.reduce(this, initialValue, combine); | 7231 return IterableMixinWorkaround.reduce(this, initialValue, combine); |
7212 } | 7232 } |
7213 | 7233 |
| 7234 dynamic fold(dynamic initialValue, dynamic combine(dynamic, ElementInstance))
{ |
| 7235 return IterableMixinWorkaround.fold(this, initialValue, combine); |
| 7236 } |
| 7237 |
7214 bool contains(ElementInstance element) => IterableMixinWorkaround.contains(thi
s, element); | 7238 bool contains(ElementInstance element) => IterableMixinWorkaround.contains(thi
s, element); |
7215 | 7239 |
7216 void forEach(void f(ElementInstance element)) => IterableMixinWorkaround.forEa
ch(this, f); | 7240 void forEach(void f(ElementInstance element)) => IterableMixinWorkaround.forEa
ch(this, f); |
7217 | 7241 |
7218 String join([String separator]) => | 7242 String join([String separator]) => |
7219 IterableMixinWorkaround.joinList(this, separator); | 7243 IterableMixinWorkaround.joinList(this, separator); |
7220 | 7244 |
7221 Iterable map(f(ElementInstance element)) => | 7245 Iterable map(f(ElementInstance element)) => |
7222 IterableMixinWorkaround.mapList(this, f); | 7246 IterableMixinWorkaround.mapList(this, f); |
7223 | 7247 |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7789 | 7813 |
7790 | 7814 |
7791 @DocsEditable | 7815 @DocsEditable |
7792 @DomName('SVGVKernElement') | 7816 @DomName('SVGVKernElement') |
7793 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" { | 7817 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" { |
7794 | 7818 |
7795 @DomName('SVGVKernElement.SVGVKernElement') | 7819 @DomName('SVGVKernElement.SVGVKernElement') |
7796 @DocsEditable | 7820 @DocsEditable |
7797 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 7821 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
7798 } | 7822 } |
OLD | NEW |