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 6622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6633 } | 6633 } |
6634 | 6634 |
6635 List<Element> get elements => new FilteredElementList(this); | 6635 List<Element> get elements => new FilteredElementList(this); |
6636 | 6636 |
6637 void set elements(Collection<Element> value) { | 6637 void set elements(Collection<Element> value) { |
6638 final elements = this.elements; | 6638 final elements = this.elements; |
6639 elements.clear(); | 6639 elements.clear(); |
6640 elements.addAll(value); | 6640 elements.addAll(value); |
6641 } | 6641 } |
6642 | 6642 |
| 6643 List<Element> get children => new FilteredElementList(this); |
| 6644 |
| 6645 void set children(Collection<Element> value) { |
| 6646 final children = this.children; |
| 6647 children.clear(); |
| 6648 children.addAll(value); |
| 6649 } |
| 6650 |
6643 String get outerHTML { | 6651 String get outerHTML { |
6644 final container = new Element.tag("div"); | 6652 final container = new Element.tag("div"); |
6645 final SvgElement cloned = this.clone(true); | 6653 final SvgElement cloned = this.clone(true); |
6646 container.elements.add(cloned); | 6654 container.children.add(cloned); |
6647 return container.innerHTML; | 6655 return container.innerHTML; |
6648 } | 6656 } |
6649 | 6657 |
6650 String get innerHTML { | 6658 String get innerHTML { |
6651 final container = new Element.tag("div"); | 6659 final container = new Element.tag("div"); |
6652 final SvgElement cloned = this.clone(true); | 6660 final SvgElement cloned = this.clone(true); |
6653 container.elements.addAll(cloned.elements); | 6661 container.children.addAll(cloned.children); |
6654 return container.innerHTML; | 6662 return container.innerHTML; |
6655 } | 6663 } |
6656 | 6664 |
6657 void set innerHTML(String svg) { | 6665 void set innerHTML(String svg) { |
6658 final container = new Element.tag("div"); | 6666 final container = new Element.tag("div"); |
6659 // Wrap the SVG string in <svg> so that SvgElements are created, rather than | 6667 // Wrap the SVG string in <svg> so that SvgElements are created, rather than |
6660 // HTMLElements. | 6668 // HTMLElements. |
6661 container.innerHTML = '<svg version="1.1">$svg</svg>'; | 6669 container.innerHTML = '<svg version="1.1">$svg</svg>'; |
6662 this.elements = container.elements[0].elements; | 6670 this.children = container.children[0].children; |
6663 } | 6671 } |
6664 | 6672 |
6665 SvgElement.internal(): super.internal(); | 6673 SvgElement.internal(): super.internal(); |
6666 | 6674 |
6667 | 6675 |
6668 /** @domName SVGElement.id */ | 6676 /** @domName SVGElement.id */ |
6669 String get id native "SVGElement_id_Getter"; | 6677 String get id native "SVGElement_id_Getter"; |
6670 | 6678 |
6671 | 6679 |
6672 /** @domName SVGElement.id */ | 6680 /** @domName SVGElement.id */ |
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8073 List<ElementInstance> getRange(int start, int rangeLength) => | 8081 List<ElementInstance> getRange(int start, int rangeLength) => |
8074 _Lists.getRange(this, start, rangeLength, <ElementInstance>[]); | 8082 _Lists.getRange(this, start, rangeLength, <ElementInstance>[]); |
8075 | 8083 |
8076 // -- end List<ElementInstance> mixins. | 8084 // -- end List<ElementInstance> mixins. |
8077 | 8085 |
8078 | 8086 |
8079 /** @domName SVGElementInstanceList.item */ | 8087 /** @domName SVGElementInstanceList.item */ |
8080 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback"; | 8088 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback"; |
8081 | 8089 |
8082 } | 8090 } |
OLD | NEW |