OLD | NEW |
1 library svg; | 1 library svg; |
2 | 2 |
3 import 'dart:html'; | 3 import 'dart:html'; |
4 import 'dart:nativewrappers'; | 4 import 'dart:nativewrappers'; |
5 // DO NOT EDIT | 5 // DO NOT EDIT |
6 // Auto-generated dart:svg library. | 6 // Auto-generated dart:svg library. |
7 | 7 |
8 | 8 |
9 | 9 |
10 | 10 |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 } | 491 } |
492 | 492 |
493 int indexOf(SVGAnimatedLength element, [int start = 0]) => | 493 int indexOf(SVGAnimatedLength element, [int start = 0]) => |
494 _Lists.indexOf(this, element, start, this.length); | 494 _Lists.indexOf(this, element, start, this.length); |
495 | 495 |
496 int lastIndexOf(SVGAnimatedLength element, [int start]) { | 496 int lastIndexOf(SVGAnimatedLength element, [int start]) { |
497 if (start == null) start = length - 1; | 497 if (start == null) start = length - 1; |
498 return _Lists.lastIndexOf(this, element, start); | 498 return _Lists.lastIndexOf(this, element, start); |
499 } | 499 } |
500 | 500 |
| 501 SVGAnimatedLength get first => this[0]; |
| 502 |
501 SVGAnimatedLength get last => this[length - 1]; | 503 SVGAnimatedLength get last => this[length - 1]; |
502 | 504 |
503 SVGAnimatedLength removeLast() { | 505 SVGAnimatedLength removeLast() { |
504 throw new UnsupportedError("Cannot removeLast on immutable List."); | 506 throw new UnsupportedError("Cannot removeLast on immutable List."); |
505 } | 507 } |
506 | 508 |
507 void setRange(int start, int rangeLength, List<SVGAnimatedLength> from, [int s
tartFrom]) { | 509 void setRange(int start, int rangeLength, List<SVGAnimatedLength> from, [int s
tartFrom]) { |
508 throw new UnsupportedError("Cannot setRange on immutable List."); | 510 throw new UnsupportedError("Cannot setRange on immutable List."); |
509 } | 511 } |
510 | 512 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 } | 620 } |
619 | 621 |
620 int indexOf(SVGAnimatedNumber element, [int start = 0]) => | 622 int indexOf(SVGAnimatedNumber element, [int start = 0]) => |
621 _Lists.indexOf(this, element, start, this.length); | 623 _Lists.indexOf(this, element, start, this.length); |
622 | 624 |
623 int lastIndexOf(SVGAnimatedNumber element, [int start]) { | 625 int lastIndexOf(SVGAnimatedNumber element, [int start]) { |
624 if (start == null) start = length - 1; | 626 if (start == null) start = length - 1; |
625 return _Lists.lastIndexOf(this, element, start); | 627 return _Lists.lastIndexOf(this, element, start); |
626 } | 628 } |
627 | 629 |
| 630 SVGAnimatedNumber get first => this[0]; |
| 631 |
628 SVGAnimatedNumber get last => this[length - 1]; | 632 SVGAnimatedNumber get last => this[length - 1]; |
629 | 633 |
630 SVGAnimatedNumber removeLast() { | 634 SVGAnimatedNumber removeLast() { |
631 throw new UnsupportedError("Cannot removeLast on immutable List."); | 635 throw new UnsupportedError("Cannot removeLast on immutable List."); |
632 } | 636 } |
633 | 637 |
634 void setRange(int start, int rangeLength, List<SVGAnimatedNumber> from, [int s
tartFrom]) { | 638 void setRange(int start, int rangeLength, List<SVGAnimatedNumber> from, [int s
tartFrom]) { |
635 throw new UnsupportedError("Cannot setRange on immutable List."); | 639 throw new UnsupportedError("Cannot setRange on immutable List."); |
636 } | 640 } |
637 | 641 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 } | 789 } |
786 | 790 |
787 int indexOf(SVGAnimateTransformElement element, [int start = 0]) => | 791 int indexOf(SVGAnimateTransformElement element, [int start = 0]) => |
788 _Lists.indexOf(this, element, start, this.length); | 792 _Lists.indexOf(this, element, start, this.length); |
789 | 793 |
790 int lastIndexOf(SVGAnimateTransformElement element, [int start]) { | 794 int lastIndexOf(SVGAnimateTransformElement element, [int start]) { |
791 if (start == null) start = length - 1; | 795 if (start == null) start = length - 1; |
792 return _Lists.lastIndexOf(this, element, start); | 796 return _Lists.lastIndexOf(this, element, start); |
793 } | 797 } |
794 | 798 |
| 799 SVGAnimateTransformElement get first => this[0]; |
| 800 |
795 SVGAnimateTransformElement get last => this[length - 1]; | 801 SVGAnimateTransformElement get last => this[length - 1]; |
796 | 802 |
797 SVGAnimateTransformElement removeLast() { | 803 SVGAnimateTransformElement removeLast() { |
798 throw new UnsupportedError("Cannot removeLast on immutable List."); | 804 throw new UnsupportedError("Cannot removeLast on immutable List."); |
799 } | 805 } |
800 | 806 |
801 void setRange(int start, int rangeLength, List<SVGAnimateTransformElement> fro
m, [int startFrom]) { | 807 void setRange(int start, int rangeLength, List<SVGAnimateTransformElement> fro
m, [int startFrom]) { |
802 throw new UnsupportedError("Cannot setRange on immutable List."); | 808 throw new UnsupportedError("Cannot setRange on immutable List."); |
803 } | 809 } |
804 | 810 |
(...skipping 3044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3849 } | 3855 } |
3850 | 3856 |
3851 int indexOf(SVGLength element, [int start = 0]) => | 3857 int indexOf(SVGLength element, [int start = 0]) => |
3852 _Lists.indexOf(this, element, start, this.length); | 3858 _Lists.indexOf(this, element, start, this.length); |
3853 | 3859 |
3854 int lastIndexOf(SVGLength element, [int start]) { | 3860 int lastIndexOf(SVGLength element, [int start]) { |
3855 if (start == null) start = length - 1; | 3861 if (start == null) start = length - 1; |
3856 return _Lists.lastIndexOf(this, element, start); | 3862 return _Lists.lastIndexOf(this, element, start); |
3857 } | 3863 } |
3858 | 3864 |
| 3865 SVGLength get first => this[0]; |
| 3866 |
3859 SVGLength get last => this[length - 1]; | 3867 SVGLength get last => this[length - 1]; |
3860 | 3868 |
3861 SVGLength removeLast() { | 3869 SVGLength removeLast() { |
3862 throw new UnsupportedError("Cannot removeLast on immutable List."); | 3870 throw new UnsupportedError("Cannot removeLast on immutable List."); |
3863 } | 3871 } |
3864 | 3872 |
3865 void setRange(int start, int rangeLength, List<SVGLength> from, [int startFrom
]) { | 3873 void setRange(int start, int rangeLength, List<SVGLength> from, [int startFrom
]) { |
3866 throw new UnsupportedError("Cannot setRange on immutable List."); | 3874 throw new UnsupportedError("Cannot setRange on immutable List."); |
3867 } | 3875 } |
3868 | 3876 |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4496 } | 4504 } |
4497 | 4505 |
4498 int indexOf(SVGNumber element, [int start = 0]) => | 4506 int indexOf(SVGNumber element, [int start = 0]) => |
4499 _Lists.indexOf(this, element, start, this.length); | 4507 _Lists.indexOf(this, element, start, this.length); |
4500 | 4508 |
4501 int lastIndexOf(SVGNumber element, [int start]) { | 4509 int lastIndexOf(SVGNumber element, [int start]) { |
4502 if (start == null) start = length - 1; | 4510 if (start == null) start = length - 1; |
4503 return _Lists.lastIndexOf(this, element, start); | 4511 return _Lists.lastIndexOf(this, element, start); |
4504 } | 4512 } |
4505 | 4513 |
| 4514 SVGNumber get first => this[0]; |
| 4515 |
4506 SVGNumber get last => this[length - 1]; | 4516 SVGNumber get last => this[length - 1]; |
4507 | 4517 |
4508 SVGNumber removeLast() { | 4518 SVGNumber removeLast() { |
4509 throw new UnsupportedError("Cannot removeLast on immutable List."); | 4519 throw new UnsupportedError("Cannot removeLast on immutable List."); |
4510 } | 4520 } |
4511 | 4521 |
4512 void setRange(int start, int rangeLength, List<SVGNumber> from, [int startFrom
]) { | 4522 void setRange(int start, int rangeLength, List<SVGNumber> from, [int startFrom
]) { |
4513 throw new UnsupportedError("Cannot setRange on immutable List."); | 4523 throw new UnsupportedError("Cannot setRange on immutable List."); |
4514 } | 4524 } |
4515 | 4525 |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5563 } | 5573 } |
5564 | 5574 |
5565 int indexOf(SVGPathSeg element, [int start = 0]) => | 5575 int indexOf(SVGPathSeg element, [int start = 0]) => |
5566 _Lists.indexOf(this, element, start, this.length); | 5576 _Lists.indexOf(this, element, start, this.length); |
5567 | 5577 |
5568 int lastIndexOf(SVGPathSeg element, [int start]) { | 5578 int lastIndexOf(SVGPathSeg element, [int start]) { |
5569 if (start == null) start = length - 1; | 5579 if (start == null) start = length - 1; |
5570 return _Lists.lastIndexOf(this, element, start); | 5580 return _Lists.lastIndexOf(this, element, start); |
5571 } | 5581 } |
5572 | 5582 |
| 5583 SVGPathSeg get first => this[0]; |
| 5584 |
5573 SVGPathSeg get last => this[length - 1]; | 5585 SVGPathSeg get last => this[length - 1]; |
5574 | 5586 |
5575 SVGPathSeg removeLast() { | 5587 SVGPathSeg removeLast() { |
5576 throw new UnsupportedError("Cannot removeLast on immutable List."); | 5588 throw new UnsupportedError("Cannot removeLast on immutable List."); |
5577 } | 5589 } |
5578 | 5590 |
5579 void setRange(int start, int rangeLength, List<SVGPathSeg> from, [int startFro
m]) { | 5591 void setRange(int start, int rangeLength, List<SVGPathSeg> from, [int startFro
m]) { |
5580 throw new UnsupportedError("Cannot setRange on immutable List."); | 5592 throw new UnsupportedError("Cannot setRange on immutable List."); |
5581 } | 5593 } |
5582 | 5594 |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6717 } | 6729 } |
6718 | 6730 |
6719 int indexOf(String element, [int start = 0]) => | 6731 int indexOf(String element, [int start = 0]) => |
6720 _Lists.indexOf(this, element, start, this.length); | 6732 _Lists.indexOf(this, element, start, this.length); |
6721 | 6733 |
6722 int lastIndexOf(String element, [int start]) { | 6734 int lastIndexOf(String element, [int start]) { |
6723 if (start == null) start = length - 1; | 6735 if (start == null) start = length - 1; |
6724 return _Lists.lastIndexOf(this, element, start); | 6736 return _Lists.lastIndexOf(this, element, start); |
6725 } | 6737 } |
6726 | 6738 |
| 6739 String get first => this[0]; |
| 6740 |
6727 String get last => this[length - 1]; | 6741 String get last => this[length - 1]; |
6728 | 6742 |
6729 String removeLast() { | 6743 String removeLast() { |
6730 throw new UnsupportedError("Cannot removeLast on immutable List."); | 6744 throw new UnsupportedError("Cannot removeLast on immutable List."); |
6731 } | 6745 } |
6732 | 6746 |
6733 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ | 6747 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ |
6734 throw new UnsupportedError("Cannot setRange on immutable List."); | 6748 throw new UnsupportedError("Cannot setRange on immutable List."); |
6735 } | 6749 } |
6736 | 6750 |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7448 } | 7462 } |
7449 | 7463 |
7450 int indexOf(SVGTransform element, [int start = 0]) => | 7464 int indexOf(SVGTransform element, [int start = 0]) => |
7451 _Lists.indexOf(this, element, start, this.length); | 7465 _Lists.indexOf(this, element, start, this.length); |
7452 | 7466 |
7453 int lastIndexOf(SVGTransform element, [int start]) { | 7467 int lastIndexOf(SVGTransform element, [int start]) { |
7454 if (start == null) start = length - 1; | 7468 if (start == null) start = length - 1; |
7455 return _Lists.lastIndexOf(this, element, start); | 7469 return _Lists.lastIndexOf(this, element, start); |
7456 } | 7470 } |
7457 | 7471 |
| 7472 SVGTransform get first => this[0]; |
| 7473 |
7458 SVGTransform get last => this[length - 1]; | 7474 SVGTransform get last => this[length - 1]; |
7459 | 7475 |
7460 SVGTransform removeLast() { | 7476 SVGTransform removeLast() { |
7461 throw new UnsupportedError("Cannot removeLast on immutable List."); | 7477 throw new UnsupportedError("Cannot removeLast on immutable List."); |
7462 } | 7478 } |
7463 | 7479 |
7464 void setRange(int start, int rangeLength, List<SVGTransform> from, [int startF
rom]) { | 7480 void setRange(int start, int rangeLength, List<SVGTransform> from, [int startF
rom]) { |
7465 throw new UnsupportedError("Cannot setRange on immutable List."); | 7481 throw new UnsupportedError("Cannot setRange on immutable List."); |
7466 } | 7482 } |
7467 | 7483 |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7931 } | 7947 } |
7932 | 7948 |
7933 int indexOf(SVGElementInstance element, [int start = 0]) => | 7949 int indexOf(SVGElementInstance element, [int start = 0]) => |
7934 _Lists.indexOf(this, element, start, this.length); | 7950 _Lists.indexOf(this, element, start, this.length); |
7935 | 7951 |
7936 int lastIndexOf(SVGElementInstance element, [int start]) { | 7952 int lastIndexOf(SVGElementInstance element, [int start]) { |
7937 if (start == null) start = length - 1; | 7953 if (start == null) start = length - 1; |
7938 return _Lists.lastIndexOf(this, element, start); | 7954 return _Lists.lastIndexOf(this, element, start); |
7939 } | 7955 } |
7940 | 7956 |
| 7957 SVGElementInstance get first => this[0]; |
| 7958 |
7941 SVGElementInstance get last => this[length - 1]; | 7959 SVGElementInstance get last => this[length - 1]; |
7942 | 7960 |
7943 SVGElementInstance removeLast() { | 7961 SVGElementInstance removeLast() { |
7944 throw new UnsupportedError("Cannot removeLast on immutable List."); | 7962 throw new UnsupportedError("Cannot removeLast on immutable List."); |
7945 } | 7963 } |
7946 | 7964 |
7947 void setRange(int start, int rangeLength, List<SVGElementInstance> from, [int
startFrom]) { | 7965 void setRange(int start, int rangeLength, List<SVGElementInstance> from, [int
startFrom]) { |
7948 throw new UnsupportedError("Cannot setRange on immutable List."); | 7966 throw new UnsupportedError("Cannot setRange on immutable List."); |
7949 } | 7967 } |
7950 | 7968 |
7951 void removeRange(int start, int rangeLength) { | 7969 void removeRange(int start, int rangeLength) { |
7952 throw new UnsupportedError("Cannot removeRange on immutable List."); | 7970 throw new UnsupportedError("Cannot removeRange on immutable List."); |
7953 } | 7971 } |
7954 | 7972 |
7955 void insertRange(int start, int rangeLength, [SVGElementInstance initialValue]
) { | 7973 void insertRange(int start, int rangeLength, [SVGElementInstance initialValue]
) { |
7956 throw new UnsupportedError("Cannot insertRange on immutable List."); | 7974 throw new UnsupportedError("Cannot insertRange on immutable List."); |
7957 } | 7975 } |
7958 | 7976 |
7959 List<SVGElementInstance> getRange(int start, int rangeLength) => | 7977 List<SVGElementInstance> getRange(int start, int rangeLength) => |
7960 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]); | 7978 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]); |
7961 | 7979 |
7962 // -- end List<SVGElementInstance> mixins. | 7980 // -- end List<SVGElementInstance> mixins. |
7963 | 7981 |
7964 | 7982 |
7965 /** @domName SVGElementInstanceList.item */ | 7983 /** @domName SVGElementInstanceList.item */ |
7966 SVGElementInstance item(int index) native "SVGElementInstanceList_item_Callbac
k"; | 7984 SVGElementInstance item(int index) native "SVGElementInstanceList_item_Callbac
k"; |
7967 | 7985 |
7968 } | 7986 } |
OLD | NEW |