| OLD | NEW |
| 1 library svg; | 1 library svg; |
| 2 | 2 |
| 3 import 'dart:html'; | 3 import 'dart:html'; |
| 4 // DO NOT EDIT | 4 // DO NOT EDIT |
| 5 // Auto-generated dart:svg library. | 5 // Auto-generated dart:svg library. |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 List<Element> get elements => new FilteredElementList(this); | 1153 List<Element> get elements => new FilteredElementList(this); |
| 1154 | 1154 |
| 1155 void set elements(Collection<Element> value) { | 1155 void set elements(Collection<Element> value) { |
| 1156 final elements = this.elements; | 1156 final elements = this.elements; |
| 1157 elements.clear(); | 1157 elements.clear(); |
| 1158 elements.addAll(value); | 1158 elements.addAll(value); |
| 1159 } | 1159 } |
| 1160 | 1160 |
| 1161 List<Element> get children => new FilteredElementList(this); |
| 1162 |
| 1163 void set children(Collection<Element> value) { |
| 1164 final children = this.children; |
| 1165 children.clear(); |
| 1166 children.addAll(value); |
| 1167 } |
| 1168 |
| 1161 String get outerHTML { | 1169 String get outerHTML { |
| 1162 final container = new Element.tag("div"); | 1170 final container = new Element.tag("div"); |
| 1163 final SVGElement cloned = this.clone(true); | 1171 final SVGElement cloned = this.clone(true); |
| 1164 container.elements.add(cloned); | 1172 container.children.add(cloned); |
| 1165 return container.innerHTML; | 1173 return container.innerHTML; |
| 1166 } | 1174 } |
| 1167 | 1175 |
| 1168 String get innerHTML { | 1176 String get innerHTML { |
| 1169 final container = new Element.tag("div"); | 1177 final container = new Element.tag("div"); |
| 1170 final SVGElement cloned = this.clone(true); | 1178 final SVGElement cloned = this.clone(true); |
| 1171 container.elements.addAll(cloned.elements); | 1179 container.children.addAll(cloned.children); |
| 1172 return container.innerHTML; | 1180 return container.innerHTML; |
| 1173 } | 1181 } |
| 1174 | 1182 |
| 1175 void set innerHTML(String svg) { | 1183 void set innerHTML(String svg) { |
| 1176 final container = new Element.tag("div"); | 1184 final container = new Element.tag("div"); |
| 1177 // Wrap the SVG string in <svg> so that SVGElements are created, rather than | 1185 // Wrap the SVG string in <svg> so that SVGElements are created, rather than |
| 1178 // HTMLElements. | 1186 // HTMLElements. |
| 1179 container.innerHTML = '<svg version="1.1">$svg</svg>'; | 1187 container.innerHTML = '<svg version="1.1">$svg</svg>'; |
| 1180 this.elements = container.elements[0].elements; | 1188 this.children = container.children[0].children; |
| 1181 } | 1189 } |
| 1182 | 1190 |
| 1183 | 1191 |
| 1184 // Shadowing definition. | 1192 // Shadowing definition. |
| 1185 /** @domName SVGElement.id */ | 1193 /** @domName SVGElement.id */ |
| 1186 String get id => JS("String", "#.id", this); | 1194 String get id => JS("String", "#.id", this); |
| 1187 | 1195 |
| 1188 /** @domName SVGElement.id */ | 1196 /** @domName SVGElement.id */ |
| 1189 void set id(String value) { | 1197 void set id(String value) { |
| 1190 JS("void", "#.id = #", this, value); | 1198 JS("void", "#.id = #", this, value); |
| (...skipping 4951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6142 } | 6150 } |
| 6143 | 6151 |
| 6144 List<SVGElementInstance> getRange(int start, int rangeLength) => | 6152 List<SVGElementInstance> getRange(int start, int rangeLength) => |
| 6145 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]); | 6153 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]); |
| 6146 | 6154 |
| 6147 // -- end List<SVGElementInstance> mixins. | 6155 // -- end List<SVGElementInstance> mixins. |
| 6148 | 6156 |
| 6149 /** @domName SVGElementInstanceList.item */ | 6157 /** @domName SVGElementInstanceList.item */ |
| 6150 SVGElementInstance item(int index) native; | 6158 SVGElementInstance item(int index) native; |
| 6151 } | 6159 } |
| OLD | NEW |