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 4868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4879 | 4879 |
4880 /** | 4880 /** |
4881 * Checks to see if the SVG element type is supported by the current platform. | 4881 * Checks to see if the SVG element type is supported by the current platform. |
4882 * | 4882 * |
4883 * The tag should be a valid SVG element tag name. | 4883 * The tag should be a valid SVG element tag name. |
4884 */ | 4884 */ |
4885 static bool isTagSupported(String tag) { | 4885 static bool isTagSupported(String tag) { |
4886 var e = new SvgElement.tag(tag); | 4886 var e = new SvgElement.tag(tag); |
4887 return e is SvgElement && !(e is UnknownElement); | 4887 return e is SvgElement && !(e is UnknownElement); |
4888 } | 4888 } |
| 4889 |
4889 // To suppress missing implicit constructor warnings. | 4890 // To suppress missing implicit constructor warnings. |
4890 factory SvgElement._() { throw new UnsupportedError("Not supported"); } | 4891 factory SvgElement._() { throw new UnsupportedError("Not supported"); } |
4891 | 4892 |
4892 @DomName('SVGElement.abortEvent') | 4893 @DomName('SVGElement.abortEvent') |
4893 @DocsEditable() | 4894 @DocsEditable() |
4894 @Experimental() // untriaged | 4895 @Experimental() // untriaged |
4895 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); | 4896 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); |
4896 | 4897 |
4897 @DomName('SVGElement.blurEvent') | 4898 @DomName('SVGElement.blurEvent') |
4898 @DocsEditable() | 4899 @DocsEditable() |
(...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6798 @DomName('SVGVKernElement.SVGVKernElement') | 6799 @DomName('SVGVKernElement.SVGVKernElement') |
6799 @DocsEditable() | 6800 @DocsEditable() |
6800 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 6801 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
6801 /** | 6802 /** |
6802 * Constructor instantiated by the DOM when a custom element has been created. | 6803 * Constructor instantiated by the DOM when a custom element has been created. |
6803 * | 6804 * |
6804 * This can only be called by subclasses from their created constructor. | 6805 * This can only be called by subclasses from their created constructor. |
6805 */ | 6806 */ |
6806 _SVGVKernElement.created() : super.created(); | 6807 _SVGVKernElement.created() : super.created(); |
6807 } | 6808 } |
OLD | NEW |