OLD | NEW |
1 /** | 1 /** |
2 * Scalable Vector Graphics: | 2 * Scalable Vector Graphics: |
3 * Two-dimensional vector graphics with support for events and animation. | 3 * Two-dimensional vector graphics with support for events and animation. |
4 * | 4 * |
5 * For details about the features and syntax of SVG, a W3C standard, | 5 * For details about the features and syntax of SVG, a W3C standard, |
6 * refer to the | 6 * refer to the |
7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). | 7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). |
8 */ | 8 */ |
9 library dart.dom.svg; | 9 library dart.dom.svg; |
10 | 10 |
(...skipping 5430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5441 } else { | 5441 } else { |
5442 parentElement = new SvgSvgElement(); | 5442 parentElement = new SvgSvgElement(); |
5443 } | 5443 } |
5444 var fragment = parentElement.createFragment(svg, validator: validator, | 5444 var fragment = parentElement.createFragment(svg, validator: validator, |
5445 treeSanitizer: treeSanitizer); | 5445 treeSanitizer: treeSanitizer); |
5446 return fragment.nodes.where((e) => e is SvgElement).single; | 5446 return fragment.nodes.where((e) => e is SvgElement).single; |
5447 } | 5447 } |
5448 | 5448 |
5449 CssClassSet get classes => new _AttributeClassSet(this); | 5449 CssClassSet get classes => new _AttributeClassSet(this); |
5450 | 5450 |
5451 List<Element> get children => new FilteredElementList<Element>(this); | 5451 List<Element> get children => new FilteredElementList(this); |
5452 | 5452 |
5453 void set children(List<Element> value) { | 5453 void set children(List<Element> value) { |
5454 final children = this.children; | 5454 final children = this.children; |
5455 children.clear(); | 5455 children.clear(); |
5456 children.addAll(value); | 5456 children.addAll(value); |
5457 } | 5457 } |
5458 | 5458 |
5459 String get outerHtml { | 5459 String get outerHtml { |
5460 final container = new Element.tag("div"); | 5460 final container = new Element.tag("div"); |
5461 final SvgElement cloned = this.clone(true); | 5461 final SvgElement cloned = this.clone(true); |
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7531 @DocsEditable() | 7531 @DocsEditable() |
7532 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 7532 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
7533 /** | 7533 /** |
7534 * Constructor instantiated by the DOM when a custom element has been created. | 7534 * Constructor instantiated by the DOM when a custom element has been created. |
7535 * | 7535 * |
7536 * This can only be called by subclasses from their created constructor. | 7536 * This can only be called by subclasses from their created constructor. |
7537 */ | 7537 */ |
7538 _SVGVKernElement.created() : super.created(); | 7538 _SVGVKernElement.created() : super.created(); |
7539 | 7539 |
7540 } | 7540 } |
OLD | NEW |