| 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 bool hasExtension(String extension) native; | 575 bool hasExtension(String extension) native; |
| 576 } | 576 } |
| 577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 578 // for details. All rights reserved. Use of this source code is governed by a | 578 // for details. All rights reserved. Use of this source code is governed by a |
| 579 // BSD-style license that can be found in the LICENSE file. | 579 // BSD-style license that can be found in the LICENSE file. |
| 580 | 580 |
| 581 | 581 |
| 582 @DocsEditable() | 582 @DocsEditable() |
| 583 @DomName('SVGCircleElement') | 583 @DomName('SVGCircleElement') |
| 584 @Unstable() | 584 @Unstable() |
| 585 class CircleElement extends GraphicsElement implements ExternalResourcesRequired
native "SVGCircleElement" { | 585 class CircleElement extends GeometryElement implements ExternalResourcesRequired
native "SVGCircleElement" { |
| 586 // To suppress missing implicit constructor warnings. | 586 // To suppress missing implicit constructor warnings. |
| 587 factory CircleElement._() { throw new UnsupportedError("Not supported"); } | 587 factory CircleElement._() { throw new UnsupportedError("Not supported"); } |
| 588 | 588 |
| 589 @DomName('SVGCircleElement.SVGCircleElement') | 589 @DomName('SVGCircleElement.SVGCircleElement') |
| 590 @DocsEditable() | 590 @DocsEditable() |
| 591 factory CircleElement() => _SvgElementFactoryProvider.createSvgElement_tag("ci
rcle"); | 591 factory CircleElement() => _SvgElementFactoryProvider.createSvgElement_tag("ci
rcle"); |
| 592 /** | 592 /** |
| 593 * Constructor instantiated by the DOM when a custom element has been created. | 593 * Constructor instantiated by the DOM when a custom element has been created. |
| 594 * | 594 * |
| 595 * This can only be called by subclasses from their created constructor. | 595 * This can only be called by subclasses from their created constructor. |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 Stream<Event> get onUnload => unloadEvent.forTarget(this); | 1381 Stream<Event> get onUnload => unloadEvent.forTarget(this); |
| 1382 } | 1382 } |
| 1383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1384 // for details. All rights reserved. Use of this source code is governed by a | 1384 // for details. All rights reserved. Use of this source code is governed by a |
| 1385 // BSD-style license that can be found in the LICENSE file. | 1385 // BSD-style license that can be found in the LICENSE file. |
| 1386 | 1386 |
| 1387 | 1387 |
| 1388 @DocsEditable() | 1388 @DocsEditable() |
| 1389 @DomName('SVGEllipseElement') | 1389 @DomName('SVGEllipseElement') |
| 1390 @Unstable() | 1390 @Unstable() |
| 1391 class EllipseElement extends GraphicsElement implements ExternalResourcesRequire
d native "SVGEllipseElement" { | 1391 class EllipseElement extends GeometryElement implements ExternalResourcesRequire
d native "SVGEllipseElement" { |
| 1392 // To suppress missing implicit constructor warnings. | 1392 // To suppress missing implicit constructor warnings. |
| 1393 factory EllipseElement._() { throw new UnsupportedError("Not supported"); } | 1393 factory EllipseElement._() { throw new UnsupportedError("Not supported"); } |
| 1394 | 1394 |
| 1395 @DomName('SVGEllipseElement.SVGEllipseElement') | 1395 @DomName('SVGEllipseElement.SVGEllipseElement') |
| 1396 @DocsEditable() | 1396 @DocsEditable() |
| 1397 factory EllipseElement() => _SvgElementFactoryProvider.createSvgElement_tag("e
llipse"); | 1397 factory EllipseElement() => _SvgElementFactoryProvider.createSvgElement_tag("e
llipse"); |
| 1398 /** | 1398 /** |
| 1399 * Constructor instantiated by the DOM when a custom element has been created. | 1399 * Constructor instantiated by the DOM when a custom element has been created. |
| 1400 * | 1400 * |
| 1401 * This can only be called by subclasses from their created constructor. | 1401 * This can only be called by subclasses from their created constructor. |
| (...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3115 @DomName('SVGGElement.externalResourcesRequired') | 3115 @DomName('SVGGElement.externalResourcesRequired') |
| 3116 @DocsEditable() | 3116 @DocsEditable() |
| 3117 final AnimatedBoolean externalResourcesRequired; | 3117 final AnimatedBoolean externalResourcesRequired; |
| 3118 } | 3118 } |
| 3119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3120 // for details. All rights reserved. Use of this source code is governed by a | 3120 // for details. All rights reserved. Use of this source code is governed by a |
| 3121 // BSD-style license that can be found in the LICENSE file. | 3121 // BSD-style license that can be found in the LICENSE file. |
| 3122 | 3122 |
| 3123 | 3123 |
| 3124 @DocsEditable() | 3124 @DocsEditable() |
| 3125 @DomName('SVGGeometryElement') |
| 3126 @Experimental() // untriaged |
| 3127 class GeometryElement extends GraphicsElement native "SVGGeometryElement" { |
| 3128 // To suppress missing implicit constructor warnings. |
| 3129 factory GeometryElement._() { throw new UnsupportedError("Not supported"); } |
| 3130 /** |
| 3131 * Constructor instantiated by the DOM when a custom element has been created. |
| 3132 * |
| 3133 * This can only be called by subclasses from their created constructor. |
| 3134 */ |
| 3135 GeometryElement.created() : super.created(); |
| 3136 |
| 3137 @DomName('SVGGeometryElement.isPointInFill') |
| 3138 @DocsEditable() |
| 3139 @Experimental() // untriaged |
| 3140 bool isPointInFill(Point point) native; |
| 3141 |
| 3142 @DomName('SVGGeometryElement.isPointInStroke') |
| 3143 @DocsEditable() |
| 3144 @Experimental() // untriaged |
| 3145 bool isPointInStroke(Point point) native; |
| 3146 } |
| 3147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3148 // for details. All rights reserved. Use of this source code is governed by a |
| 3149 // BSD-style license that can be found in the LICENSE file. |
| 3150 |
| 3151 |
| 3152 @DocsEditable() |
| 3125 @DomName('SVGGraphicsElement') | 3153 @DomName('SVGGraphicsElement') |
| 3126 @Experimental() // untriaged | 3154 @Experimental() // untriaged |
| 3127 class GraphicsElement extends SvgElement implements Tests native "SVGGraphicsEle
ment" { | 3155 class GraphicsElement extends SvgElement implements Tests native "SVGGraphicsEle
ment" { |
| 3128 // To suppress missing implicit constructor warnings. | 3156 // To suppress missing implicit constructor warnings. |
| 3129 factory GraphicsElement._() { throw new UnsupportedError("Not supported"); } | 3157 factory GraphicsElement._() { throw new UnsupportedError("Not supported"); } |
| 3130 /** | 3158 /** |
| 3131 * Constructor instantiated by the DOM when a custom element has been created. | 3159 * Constructor instantiated by the DOM when a custom element has been created. |
| 3132 * | 3160 * |
| 3133 * This can only be called by subclasses from their created constructor. | 3161 * This can only be called by subclasses from their created constructor. |
| 3134 */ | 3162 */ |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3423 Length replaceItem(Length item, int index) native; | 3451 Length replaceItem(Length item, int index) native; |
| 3424 } | 3452 } |
| 3425 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3426 // for details. All rights reserved. Use of this source code is governed by a | 3454 // for details. All rights reserved. Use of this source code is governed by a |
| 3427 // BSD-style license that can be found in the LICENSE file. | 3455 // BSD-style license that can be found in the LICENSE file. |
| 3428 | 3456 |
| 3429 | 3457 |
| 3430 @DocsEditable() | 3458 @DocsEditable() |
| 3431 @DomName('SVGLineElement') | 3459 @DomName('SVGLineElement') |
| 3432 @Unstable() | 3460 @Unstable() |
| 3433 class LineElement extends GraphicsElement implements ExternalResourcesRequired n
ative "SVGLineElement" { | 3461 class LineElement extends GeometryElement implements ExternalResourcesRequired n
ative "SVGLineElement" { |
| 3434 // To suppress missing implicit constructor warnings. | 3462 // To suppress missing implicit constructor warnings. |
| 3435 factory LineElement._() { throw new UnsupportedError("Not supported"); } | 3463 factory LineElement._() { throw new UnsupportedError("Not supported"); } |
| 3436 | 3464 |
| 3437 @DomName('SVGLineElement.SVGLineElement') | 3465 @DomName('SVGLineElement.SVGLineElement') |
| 3438 @DocsEditable() | 3466 @DocsEditable() |
| 3439 factory LineElement() => _SvgElementFactoryProvider.createSvgElement_tag("line
"); | 3467 factory LineElement() => _SvgElementFactoryProvider.createSvgElement_tag("line
"); |
| 3440 /** | 3468 /** |
| 3441 * Constructor instantiated by the DOM when a custom element has been created. | 3469 * Constructor instantiated by the DOM when a custom element has been created. |
| 3442 * | 3470 * |
| 3443 * This can only be called by subclasses from their created constructor. | 3471 * This can only be called by subclasses from their created constructor. |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3877 Number replaceItem(Number item, int index) native; | 3905 Number replaceItem(Number item, int index) native; |
| 3878 } | 3906 } |
| 3879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3880 // for details. All rights reserved. Use of this source code is governed by a | 3908 // for details. All rights reserved. Use of this source code is governed by a |
| 3881 // BSD-style license that can be found in the LICENSE file. | 3909 // BSD-style license that can be found in the LICENSE file. |
| 3882 | 3910 |
| 3883 | 3911 |
| 3884 @DocsEditable() | 3912 @DocsEditable() |
| 3885 @DomName('SVGPathElement') | 3913 @DomName('SVGPathElement') |
| 3886 @Unstable() | 3914 @Unstable() |
| 3887 class PathElement extends GraphicsElement implements ExternalResourcesRequired n
ative "SVGPathElement" { | 3915 class PathElement extends GeometryElement implements ExternalResourcesRequired n
ative "SVGPathElement" { |
| 3888 // To suppress missing implicit constructor warnings. | 3916 // To suppress missing implicit constructor warnings. |
| 3889 factory PathElement._() { throw new UnsupportedError("Not supported"); } | 3917 factory PathElement._() { throw new UnsupportedError("Not supported"); } |
| 3890 | 3918 |
| 3891 @DomName('SVGPathElement.SVGPathElement') | 3919 @DomName('SVGPathElement.SVGPathElement') |
| 3892 @DocsEditable() | 3920 @DocsEditable() |
| 3893 factory PathElement() => _SvgElementFactoryProvider.createSvgElement_tag("path
"); | 3921 factory PathElement() => _SvgElementFactoryProvider.createSvgElement_tag("path
"); |
| 3894 /** | 3922 /** |
| 3895 * Constructor instantiated by the DOM when a custom element has been created. | 3923 * Constructor instantiated by the DOM when a custom element has been created. |
| 3896 * | 3924 * |
| 3897 * This can only be called by subclasses from their created constructor. | 3925 * This can only be called by subclasses from their created constructor. |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4840 Point replaceItem(Point item, int index) native; | 4868 Point replaceItem(Point item, int index) native; |
| 4841 } | 4869 } |
| 4842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4870 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4843 // for details. All rights reserved. Use of this source code is governed by a | 4871 // for details. All rights reserved. Use of this source code is governed by a |
| 4844 // BSD-style license that can be found in the LICENSE file. | 4872 // BSD-style license that can be found in the LICENSE file. |
| 4845 | 4873 |
| 4846 | 4874 |
| 4847 @DocsEditable() | 4875 @DocsEditable() |
| 4848 @DomName('SVGPolygonElement') | 4876 @DomName('SVGPolygonElement') |
| 4849 @Unstable() | 4877 @Unstable() |
| 4850 class PolygonElement extends GraphicsElement implements ExternalResourcesRequire
d native "SVGPolygonElement" { | 4878 class PolygonElement extends GeometryElement implements ExternalResourcesRequire
d native "SVGPolygonElement" { |
| 4851 // To suppress missing implicit constructor warnings. | 4879 // To suppress missing implicit constructor warnings. |
| 4852 factory PolygonElement._() { throw new UnsupportedError("Not supported"); } | 4880 factory PolygonElement._() { throw new UnsupportedError("Not supported"); } |
| 4853 | 4881 |
| 4854 @DomName('SVGPolygonElement.SVGPolygonElement') | 4882 @DomName('SVGPolygonElement.SVGPolygonElement') |
| 4855 @DocsEditable() | 4883 @DocsEditable() |
| 4856 factory PolygonElement() => _SvgElementFactoryProvider.createSvgElement_tag("p
olygon"); | 4884 factory PolygonElement() => _SvgElementFactoryProvider.createSvgElement_tag("p
olygon"); |
| 4857 /** | 4885 /** |
| 4858 * Constructor instantiated by the DOM when a custom element has been created. | 4886 * Constructor instantiated by the DOM when a custom element has been created. |
| 4859 * | 4887 * |
| 4860 * This can only be called by subclasses from their created constructor. | 4888 * This can only be called by subclasses from their created constructor. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4876 final AnimatedBoolean externalResourcesRequired; | 4904 final AnimatedBoolean externalResourcesRequired; |
| 4877 } | 4905 } |
| 4878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4879 // for details. All rights reserved. Use of this source code is governed by a | 4907 // for details. All rights reserved. Use of this source code is governed by a |
| 4880 // BSD-style license that can be found in the LICENSE file. | 4908 // BSD-style license that can be found in the LICENSE file. |
| 4881 | 4909 |
| 4882 | 4910 |
| 4883 @DocsEditable() | 4911 @DocsEditable() |
| 4884 @DomName('SVGPolylineElement') | 4912 @DomName('SVGPolylineElement') |
| 4885 @Unstable() | 4913 @Unstable() |
| 4886 class PolylineElement extends GraphicsElement implements ExternalResourcesRequir
ed native "SVGPolylineElement" { | 4914 class PolylineElement extends GeometryElement implements ExternalResourcesRequir
ed native "SVGPolylineElement" { |
| 4887 // To suppress missing implicit constructor warnings. | 4915 // To suppress missing implicit constructor warnings. |
| 4888 factory PolylineElement._() { throw new UnsupportedError("Not supported"); } | 4916 factory PolylineElement._() { throw new UnsupportedError("Not supported"); } |
| 4889 | 4917 |
| 4890 @DomName('SVGPolylineElement.SVGPolylineElement') | 4918 @DomName('SVGPolylineElement.SVGPolylineElement') |
| 4891 @DocsEditable() | 4919 @DocsEditable() |
| 4892 factory PolylineElement() => _SvgElementFactoryProvider.createSvgElement_tag("
polyline"); | 4920 factory PolylineElement() => _SvgElementFactoryProvider.createSvgElement_tag("
polyline"); |
| 4893 /** | 4921 /** |
| 4894 * Constructor instantiated by the DOM when a custom element has been created. | 4922 * Constructor instantiated by the DOM when a custom element has been created. |
| 4895 * | 4923 * |
| 4896 * This can only be called by subclasses from their created constructor. | 4924 * This can only be called by subclasses from their created constructor. |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5062 num y; | 5090 num y; |
| 5063 } | 5091 } |
| 5064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5065 // for details. All rights reserved. Use of this source code is governed by a | 5093 // for details. All rights reserved. Use of this source code is governed by a |
| 5066 // BSD-style license that can be found in the LICENSE file. | 5094 // BSD-style license that can be found in the LICENSE file. |
| 5067 | 5095 |
| 5068 | 5096 |
| 5069 @DocsEditable() | 5097 @DocsEditable() |
| 5070 @DomName('SVGRectElement') | 5098 @DomName('SVGRectElement') |
| 5071 @Unstable() | 5099 @Unstable() |
| 5072 class RectElement extends GraphicsElement implements ExternalResourcesRequired n
ative "SVGRectElement" { | 5100 class RectElement extends GeometryElement implements ExternalResourcesRequired n
ative "SVGRectElement" { |
| 5073 // To suppress missing implicit constructor warnings. | 5101 // To suppress missing implicit constructor warnings. |
| 5074 factory RectElement._() { throw new UnsupportedError("Not supported"); } | 5102 factory RectElement._() { throw new UnsupportedError("Not supported"); } |
| 5075 | 5103 |
| 5076 @DomName('SVGRectElement.SVGRectElement') | 5104 @DomName('SVGRectElement.SVGRectElement') |
| 5077 @DocsEditable() | 5105 @DocsEditable() |
| 5078 factory RectElement() => _SvgElementFactoryProvider.createSvgElement_tag("rect
"); | 5106 factory RectElement() => _SvgElementFactoryProvider.createSvgElement_tag("rect
"); |
| 5079 /** | 5107 /** |
| 5080 * Constructor instantiated by the DOM when a custom element has been created. | 5108 * Constructor instantiated by the DOM when a custom element has been created. |
| 5081 * | 5109 * |
| 5082 * This can only be called by subclasses from their created constructor. | 5110 * This can only be called by subclasses from their created constructor. |
| (...skipping 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7579 @DomName('SVGVKernElement.SVGVKernElement') | 7607 @DomName('SVGVKernElement.SVGVKernElement') |
| 7580 @DocsEditable() | 7608 @DocsEditable() |
| 7581 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 7609 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
| 7582 /** | 7610 /** |
| 7583 * Constructor instantiated by the DOM when a custom element has been created. | 7611 * Constructor instantiated by the DOM when a custom element has been created. |
| 7584 * | 7612 * |
| 7585 * This can only be called by subclasses from their created constructor. | 7613 * This can only be called by subclasses from their created constructor. |
| 7586 */ | 7614 */ |
| 7587 _SVGVKernElement.created() : super.created(); | 7615 _SVGVKernElement.created() : super.created(); |
| 7588 } | 7616 } |
| OLD | NEW |