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 4786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4797 * The tag should be a valid SVG element tag name. | 4797 * The tag should be a valid SVG element tag name. |
4798 */ | 4798 */ |
4799 static bool isTagSupported(String tag) { | 4799 static bool isTagSupported(String tag) { |
4800 var e = new SvgElement.tag(tag); | 4800 var e = new SvgElement.tag(tag); |
4801 return e is SvgElement && !(e is UnknownElement); | 4801 return e is SvgElement && !(e is UnknownElement); |
4802 } | 4802 } |
4803 | 4803 |
4804 // To suppress missing implicit constructor warnings. | 4804 // To suppress missing implicit constructor warnings. |
4805 factory SvgElement._() { throw new UnsupportedError("Not supported"); } | 4805 factory SvgElement._() { throw new UnsupportedError("Not supported"); } |
4806 | 4806 |
4807 /* TODO(vsm): see bug 522 which requires us to comment out this code. | |
4808 @DomName('SVGElement.abortEvent') | 4807 @DomName('SVGElement.abortEvent') |
4809 @DocsEditable() | 4808 @DocsEditable() |
4810 @Experimental() // untriaged | 4809 @Experimental() // untriaged |
4811 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); | 4810 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); |
4812 | 4811 |
4813 @DomName('SVGElement.blurEvent') | 4812 @DomName('SVGElement.blurEvent') |
4814 @DocsEditable() | 4813 @DocsEditable() |
4815 @Experimental() // untriaged | 4814 @Experimental() // untriaged |
4816 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); | 4815 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); |
4817 | 4816 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5057 | 5056 |
5058 @DomName('SVGElement.volumechangeEvent') | 5057 @DomName('SVGElement.volumechangeEvent') |
5059 @DocsEditable() | 5058 @DocsEditable() |
5060 @Experimental() // untriaged | 5059 @Experimental() // untriaged |
5061 static const EventStreamProvider<Event> volumeChangeEvent = const EventStreamP
rovider<Event>('volumechange'); | 5060 static const EventStreamProvider<Event> volumeChangeEvent = const EventStreamP
rovider<Event>('volumechange'); |
5062 | 5061 |
5063 @DomName('SVGElement.waitingEvent') | 5062 @DomName('SVGElement.waitingEvent') |
5064 @DocsEditable() | 5063 @DocsEditable() |
5065 @Experimental() // untriaged | 5064 @Experimental() // untriaged |
5066 static const EventStreamProvider<Event> waitingEvent = const EventStreamProvid
er<Event>('waiting'); | 5065 static const EventStreamProvider<Event> waitingEvent = const EventStreamProvid
er<Event>('waiting'); |
5067 */ | |
5068 | 5066 |
5069 /** | 5067 /** |
5070 * Constructor instantiated by the DOM when a custom element has been created. | 5068 * Constructor instantiated by the DOM when a custom element has been created. |
5071 * | 5069 * |
5072 * This can only be called by subclasses from their created constructor. | 5070 * This can only be called by subclasses from their created constructor. |
5073 */ | 5071 */ |
5074 SvgElement.created() : super.created(); | 5072 SvgElement.created() : super.created(); |
5075 | 5073 |
5076 // Shadowing definition. | 5074 // Shadowing definition. |
5077 AnimatedString get _svgClassName => JS("AnimatedString", "#.className", this); | 5075 AnimatedString get _svgClassName => JS("AnimatedString", "#.className", this); |
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6453 * Constructor instantiated by the DOM when a custom element has been created. | 6451 * Constructor instantiated by the DOM when a custom element has been created. |
6454 * | 6452 * |
6455 * This can only be called by subclasses from their created constructor. | 6453 * This can only be called by subclasses from their created constructor. |
6456 */ | 6454 */ |
6457 _SVGMPathElement.created() : super.created(); | 6455 _SVGMPathElement.created() : super.created(); |
6458 | 6456 |
6459 // From SVGURIReference | 6457 // From SVGURIReference |
6460 | 6458 |
6461 } | 6459 } |
6462 | 6460 |
OLD | NEW |