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. |
4807 @DomName('SVGElement.abortEvent') | 4808 @DomName('SVGElement.abortEvent') |
4808 @DocsEditable() | 4809 @DocsEditable() |
4809 @Experimental() // untriaged | 4810 @Experimental() // untriaged |
4810 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); | 4811 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); |
4811 | 4812 |
4812 @DomName('SVGElement.blurEvent') | 4813 @DomName('SVGElement.blurEvent') |
4813 @DocsEditable() | 4814 @DocsEditable() |
4814 @Experimental() // untriaged | 4815 @Experimental() // untriaged |
4815 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); | 4816 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); |
4816 | 4817 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5056 | 5057 |
5057 @DomName('SVGElement.volumechangeEvent') | 5058 @DomName('SVGElement.volumechangeEvent') |
5058 @DocsEditable() | 5059 @DocsEditable() |
5059 @Experimental() // untriaged | 5060 @Experimental() // untriaged |
5060 static const EventStreamProvider<Event> volumeChangeEvent = const EventStreamP
rovider<Event>('volumechange'); | 5061 static const EventStreamProvider<Event> volumeChangeEvent = const EventStreamP
rovider<Event>('volumechange'); |
5061 | 5062 |
5062 @DomName('SVGElement.waitingEvent') | 5063 @DomName('SVGElement.waitingEvent') |
5063 @DocsEditable() | 5064 @DocsEditable() |
5064 @Experimental() // untriaged | 5065 @Experimental() // untriaged |
5065 static const EventStreamProvider<Event> waitingEvent = const EventStreamProvid
er<Event>('waiting'); | 5066 static const EventStreamProvider<Event> waitingEvent = const EventStreamProvid
er<Event>('waiting'); |
| 5067 */ |
| 5068 |
5066 /** | 5069 /** |
5067 * Constructor instantiated by the DOM when a custom element has been created. | 5070 * Constructor instantiated by the DOM when a custom element has been created. |
5068 * | 5071 * |
5069 * This can only be called by subclasses from their created constructor. | 5072 * This can only be called by subclasses from their created constructor. |
5070 */ | 5073 */ |
5071 SvgElement.created() : super.created(); | 5074 SvgElement.created() : super.created(); |
5072 | 5075 |
5073 // Shadowing definition. | 5076 // Shadowing definition. |
5074 AnimatedString get _svgClassName => JS("AnimatedString", "#.className", this); | 5077 AnimatedString get _svgClassName => JS("AnimatedString", "#.className", this); |
5075 | 5078 |
(...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6450 * Constructor instantiated by the DOM when a custom element has been created. | 6453 * Constructor instantiated by the DOM when a custom element has been created. |
6451 * | 6454 * |
6452 * This can only be called by subclasses from their created constructor. | 6455 * This can only be called by subclasses from their created constructor. |
6453 */ | 6456 */ |
6454 _SVGMPathElement.created() : super.created(); | 6457 _SVGMPathElement.created() : super.created(); |
6455 | 6458 |
6456 // From SVGURIReference | 6459 // From SVGURIReference |
6457 | 6460 |
6458 } | 6461 } |
6459 | 6462 |
OLD | NEW |