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 4781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4792 } else { | 4792 } else { |
4793 parentElement = new SvgSvgElement(); | 4793 parentElement = new SvgSvgElement(); |
4794 } | 4794 } |
4795 var fragment = parentElement.createFragment(svg, validator: validator, | 4795 var fragment = parentElement.createFragment(svg, validator: validator, |
4796 treeSanitizer: treeSanitizer); | 4796 treeSanitizer: treeSanitizer); |
4797 return fragment.nodes.where((e) => e is SvgElement).single; | 4797 return fragment.nodes.where((e) => e is SvgElement).single; |
4798 } | 4798 } |
4799 | 4799 |
4800 CssClassSet get classes => new _AttributeClassSet(this); | 4800 CssClassSet get classes => new _AttributeClassSet(this); |
4801 | 4801 |
4802 List<Element> get children => new FilteredElementList<Element>(this); | 4802 List<Element> get children => new FilteredElementList(this); |
4803 | 4803 |
4804 void set children(List<Element> value) { | 4804 void set children(List<Element> value) { |
4805 final children = this.children; | 4805 final children = this.children; |
4806 children.clear(); | 4806 children.clear(); |
4807 children.addAll(value); | 4807 children.addAll(value); |
4808 } | 4808 } |
4809 | 4809 |
4810 String get outerHtml { | 4810 String get outerHtml { |
4811 final container = new Element.tag("div"); | 4811 final container = new Element.tag("div"); |
4812 final SvgElement cloned = this.clone(true); | 4812 final SvgElement cloned = this.clone(true); |
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6798 @DomName('SVGVKernElement.SVGVKernElement') | 6798 @DomName('SVGVKernElement.SVGVKernElement') |
6799 @DocsEditable() | 6799 @DocsEditable() |
6800 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 6800 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
6801 /** | 6801 /** |
6802 * Constructor instantiated by the DOM when a custom element has been created. | 6802 * Constructor instantiated by the DOM when a custom element has been created. |
6803 * | 6803 * |
6804 * This can only be called by subclasses from their created constructor. | 6804 * This can only be called by subclasses from their created constructor. |
6805 */ | 6805 */ |
6806 _SVGVKernElement.created() : super.created(); | 6806 _SVGVKernElement.created() : super.created(); |
6807 } | 6807 } |
OLD | NEW |