Index: sdk/lib/svg/dart2js/svg_dart2js.dart |
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart |
index c49a2858254542f49b61ea825d4560105b44a28d..943828f1371a0eeb280848d409a8273b89e2d2b1 100644 |
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart |
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart |
@@ -150,18 +150,18 @@ class AElement extends StyledElement implements UriReference, Tests, Transformab |
@DocsEditable |
-@DomName('SVGAltGlyphDefElement') |
-class AltGlyphDefElement extends SvgElement native "*SVGAltGlyphDefElement" { |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
@DomName('SVGAltGlyphElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class AltGlyphElement extends TextPositioningElement implements UriReference native "*SVGAltGlyphElement" { |
+ @DocsEditable |
+ factory AltGlyphElement() => _SvgElementFactoryProvider.createSvgElement_tag("altGlyph"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('altGlyph') && (new SvgElement.tag('altGlyph') is AltGlyphElement); |
+ |
@DomName('SVGAltGlyphElement.format') |
@DocsEditable |
String format; |
@@ -182,15 +182,6 @@ class AltGlyphElement extends TextPositioningElement implements UriReference nat |
@DocsEditable |
-@DomName('SVGAltGlyphItemElement') |
-class AltGlyphItemElement extends SvgElement native "*SVGAltGlyphItemElement" { |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
@DomName('SVGAngle') |
class Angle native "*SVGAngle" { |
@@ -234,23 +225,17 @@ class Angle native "*SVGAngle" { |
@DocsEditable |
-@DomName('SVGAnimateColorElement') |
-class AnimateColorElement extends AnimationElement native "*SVGAnimateColorElement" { |
- |
- @DocsEditable |
- factory AnimateColorElement() => _SvgElementFactoryProvider.createSvgElement_tag("animateColor"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
@DomName('SVGAnimateElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class AnimateElement extends AnimationElement native "*SVGAnimateElement" { |
@DocsEditable |
factory AnimateElement() => _SvgElementFactoryProvider.createSvgElement_tag("animate"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('animate') && (new SvgElement.tag('animate') is AnimateElement); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -259,10 +244,16 @@ class AnimateElement extends AnimationElement native "*SVGAnimateElement" { |
@DocsEditable |
@DomName('SVGAnimateMotionElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class AnimateMotionElement extends AnimationElement native "*SVGAnimateMotionElement" { |
@DocsEditable |
factory AnimateMotionElement() => _SvgElementFactoryProvider.createSvgElement_tag("animateMotion"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('animateMotion') && (new SvgElement.tag('animateMotion') is AnimateMotionElement); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -271,10 +262,16 @@ class AnimateMotionElement extends AnimationElement native "*SVGAnimateMotionEle |
@DocsEditable |
@DomName('SVGAnimateTransformElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class AnimateTransformElement extends AnimationElement native "*SVGAnimateTransformElement" { |
@DocsEditable |
factory AnimateTransformElement() => _SvgElementFactoryProvider.createSvgElement_tag("animateTransform"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('animateTransform') && (new SvgElement.tag('animateTransform') is AnimateTransformElement); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -771,105 +768,6 @@ class Color extends CssValue native "*SVGColor" { |
@DocsEditable |
-@DomName('SVGComponentTransferFunctionElement') |
-class ComponentTransferFunctionElement extends SvgElement native "*SVGComponentTransferFunctionElement" { |
- |
- static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; |
- |
- static const int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; |
- |
- static const int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; |
- |
- static const int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; |
- |
- static const int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; |
- |
- static const int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; |
- |
- @DomName('SVGComponentTransferFunctionElement.amplitude') |
- @DocsEditable |
- final AnimatedNumber amplitude; |
- |
- @DomName('SVGComponentTransferFunctionElement.exponent') |
- @DocsEditable |
- final AnimatedNumber exponent; |
- |
- @DomName('SVGComponentTransferFunctionElement.intercept') |
- @DocsEditable |
- final AnimatedNumber intercept; |
- |
- @DomName('SVGComponentTransferFunctionElement.offset') |
- @DocsEditable |
- final AnimatedNumber offset; |
- |
- @DomName('SVGComponentTransferFunctionElement.slope') |
- @DocsEditable |
- final AnimatedNumber slope; |
- |
- @DomName('SVGComponentTransferFunctionElement.tableValues') |
- @DocsEditable |
- final AnimatedNumberList tableValues; |
- |
- @DomName('SVGComponentTransferFunctionElement.type') |
- @DocsEditable |
- final AnimatedEnumeration type; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
-@DomName('SVGCursorElement') |
-class CursorElement extends SvgElement implements UriReference, Tests, ExternalResourcesRequired native "*SVGCursorElement" { |
- |
- @DocsEditable |
- factory CursorElement() => _SvgElementFactoryProvider.createSvgElement_tag("cursor"); |
- |
- @DomName('SVGCursorElement.x') |
- @DocsEditable |
- final AnimatedLength x; |
- |
- @DomName('SVGCursorElement.y') |
- @DocsEditable |
- final AnimatedLength y; |
- |
- // From SVGExternalResourcesRequired |
- |
- @DomName('SVGCursorElement.externalResourcesRequired') |
- @DocsEditable |
- final AnimatedBoolean externalResourcesRequired; |
- |
- // From SVGTests |
- |
- @DomName('SVGCursorElement.requiredExtensions') |
- @DocsEditable |
- final StringList requiredExtensions; |
- |
- @DomName('SVGCursorElement.requiredFeatures') |
- @DocsEditable |
- final StringList requiredFeatures; |
- |
- @DomName('SVGCursorElement.systemLanguage') |
- @DocsEditable |
- final StringList systemLanguage; |
- |
- @DomName('SVGCursorElement.hasExtension') |
- @DocsEditable |
- bool hasExtension(String extension) native; |
- |
- // From SVGURIReference |
- |
- @DomName('SVGCursorElement.href') |
- @DocsEditable |
- final AnimatedString href; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
@DomName('SVGDefsElement') |
class DefsElement extends StyledElement implements Transformable, Tests, ExternalResourcesRequired, LangSpace native "*SVGDefsElement" { |
@@ -1582,6 +1480,9 @@ class EllipseElement extends StyledElement implements Transformable, Tests, Exte |
@DomName('SVGExternalResourcesRequired') |
abstract class ExternalResourcesRequired { |
+ /// Checks if this type is supported on the current platform. |
+ static bool supported(SvgElement element) => JS('bool', '#.externalResourcesRequired !== undefined && #.externalResourcesRequired.animVal !== undefined', element, element); |
+ |
AnimatedBoolean externalResourcesRequired; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -1591,8 +1492,18 @@ abstract class ExternalResourcesRequired { |
@DocsEditable |
@DomName('SVGFEBlendElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEBlendElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEBlendElement" { |
+ @DocsEditable |
+ factory FEBlendElement() => _SvgElementFactoryProvider.createSvgElement_tag("feBlend"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feBlend') && (new SvgElement.tag('feBlend') is FEBlendElement); |
+ |
static const int SVG_FEBLEND_MODE_DARKEN = 4; |
static const int SVG_FEBLEND_MODE_LIGHTEN = 5; |
@@ -1646,8 +1557,18 @@ class FEBlendElement extends StyledElement implements FilterPrimitiveStandardAtt |
@DocsEditable |
@DomName('SVGFEColorMatrixElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEColorMatrixElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEColorMatrixElement" { |
+ @DocsEditable |
+ factory FEColorMatrixElement() => _SvgElementFactoryProvider.createSvgElement_tag("feColorMatrix"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feColorMatrix') && (new SvgElement.tag('feColorMatrix') is FEColorMatrixElement); |
+ |
static const int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; |
static const int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; |
@@ -1699,8 +1620,18 @@ class FEColorMatrixElement extends StyledElement implements FilterPrimitiveStand |
@DocsEditable |
@DomName('SVGFEComponentTransferElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEComponentTransferElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEComponentTransferElement" { |
+ @DocsEditable |
+ factory FEComponentTransferElement() => _SvgElementFactoryProvider.createSvgElement_tag("feComponentTransfer"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feComponentTransfer') && (new SvgElement.tag('feComponentTransfer') is FEComponentTransferElement); |
+ |
@DomName('SVGFEComponentTransferElement.in1') |
@DocsEditable |
final AnimatedString in1; |
@@ -1807,8 +1738,18 @@ class FECompositeElement extends StyledElement implements FilterPrimitiveStandar |
@DocsEditable |
@DomName('SVGFEConvolveMatrixElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEConvolveMatrixElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEConvolveMatrixElement" { |
+ @DocsEditable |
+ factory FEConvolveMatrixElement() => _SvgElementFactoryProvider.createSvgElement_tag("feConvolveMatrix"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feConvolveMatrix') && (new SvgElement.tag('feConvolveMatrix') is FEConvolveMatrixElement); |
+ |
static const int SVG_EDGEMODE_DUPLICATE = 1; |
static const int SVG_EDGEMODE_NONE = 3; |
@@ -1894,8 +1835,18 @@ class FEConvolveMatrixElement extends StyledElement implements FilterPrimitiveSt |
@DocsEditable |
@DomName('SVGFEDiffuseLightingElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEDiffuseLightingElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEDiffuseLightingElement" { |
+ @DocsEditable |
+ factory FEDiffuseLightingElement() => _SvgElementFactoryProvider.createSvgElement_tag("feDiffuseLighting"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feDiffuseLighting') && (new SvgElement.tag('feDiffuseLighting') is FEDiffuseLightingElement); |
+ |
@DomName('SVGFEDiffuseLightingElement.diffuseConstant') |
@DocsEditable |
final AnimatedNumber diffuseConstant; |
@@ -1945,8 +1896,18 @@ class FEDiffuseLightingElement extends StyledElement implements FilterPrimitiveS |
@DocsEditable |
@DomName('SVGFEDisplacementMapElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEDisplacementMapElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEDisplacementMapElement" { |
+ @DocsEditable |
+ factory FEDisplacementMapElement() => _SvgElementFactoryProvider.createSvgElement_tag("feDisplacementMap"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feDisplacementMap') && (new SvgElement.tag('feDisplacementMap') is FEDisplacementMapElement); |
+ |
static const int SVG_CHANNEL_A = 4; |
static const int SVG_CHANNEL_B = 3; |
@@ -2006,8 +1967,18 @@ class FEDisplacementMapElement extends StyledElement implements FilterPrimitiveS |
@DocsEditable |
@DomName('SVGFEDistantLightElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEDistantLightElement extends SvgElement native "*SVGFEDistantLightElement" { |
+ @DocsEditable |
+ factory FEDistantLightElement() => _SvgElementFactoryProvider.createSvgElement_tag("feDistantLight"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feDistantLight') && (new SvgElement.tag('feDistantLight') is FEDistantLightElement); |
+ |
@DomName('SVGFEDistantLightElement.azimuth') |
@DocsEditable |
final AnimatedNumber azimuth; |
@@ -2022,63 +1993,18 @@ class FEDistantLightElement extends SvgElement native "*SVGFEDistantLightElement |
@DocsEditable |
-@DomName('SVGFEDropShadowElement') |
-class FEDropShadowElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEDropShadowElement" { |
- |
- @DomName('SVGFEDropShadowElement.dx') |
- @DocsEditable |
- final AnimatedNumber dx; |
- |
- @DomName('SVGFEDropShadowElement.dy') |
- @DocsEditable |
- final AnimatedNumber dy; |
- |
- @DomName('SVGFEDropShadowElement.in1') |
- @DocsEditable |
- final AnimatedString in1; |
- |
- @DomName('SVGFEDropShadowElement.stdDeviationX') |
- @DocsEditable |
- final AnimatedNumber stdDeviationX; |
- |
- @DomName('SVGFEDropShadowElement.stdDeviationY') |
- @DocsEditable |
- final AnimatedNumber stdDeviationY; |
- |
- @DomName('SVGFEDropShadowElement.setStdDeviation') |
- @DocsEditable |
- void setStdDeviation(num stdDeviationX, num stdDeviationY) native; |
- |
- // From SVGFilterPrimitiveStandardAttributes |
- |
- @DomName('SVGFEDropShadowElement.height') |
- @DocsEditable |
- final AnimatedLength height; |
- |
- @DomName('SVGFEDropShadowElement.result') |
- @DocsEditable |
- final AnimatedString result; |
- |
- @DomName('SVGFEDropShadowElement.width') |
- @DocsEditable |
- final AnimatedLength width; |
- |
- @DomName('SVGFEDropShadowElement.x') |
- @DocsEditable |
- final AnimatedLength x; |
+@DomName('SVGFEFloodElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
+class FEFloodElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEFloodElement" { |
- @DomName('SVGFEDropShadowElement.y') |
@DocsEditable |
- final AnimatedLength y; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
+ factory FEFloodElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFlood"); |
-@DocsEditable |
-@DomName('SVGFEFloodElement') |
-class FEFloodElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEFloodElement" { |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feFlood') && (new SvgElement.tag('feFlood') is FEFloodElement); |
// From SVGFilterPrimitiveStandardAttributes |
@@ -2109,7 +2035,17 @@ class FEFloodElement extends StyledElement implements FilterPrimitiveStandardAtt |
@DocsEditable |
@DomName('SVGFEFuncAElement') |
-class FEFuncAElement extends ComponentTransferFunctionElement native "*SVGFEFuncAElement" { |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
+class FEFuncAElement extends _SVGComponentTransferFunctionElement native "*SVGFEFuncAElement" { |
+ |
+ @DocsEditable |
+ factory FEFuncAElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFuncA"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feFuncA') && (new SvgElement.tag('feFuncA') is FEFuncAElement); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2118,7 +2054,17 @@ class FEFuncAElement extends ComponentTransferFunctionElement native "*SVGFEFunc |
@DocsEditable |
@DomName('SVGFEFuncBElement') |
-class FEFuncBElement extends ComponentTransferFunctionElement native "*SVGFEFuncBElement" { |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
+class FEFuncBElement extends _SVGComponentTransferFunctionElement native "*SVGFEFuncBElement" { |
+ |
+ @DocsEditable |
+ factory FEFuncBElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFuncB"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feFuncB') && (new SvgElement.tag('feFuncB') is FEFuncBElement); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2127,7 +2073,17 @@ class FEFuncBElement extends ComponentTransferFunctionElement native "*SVGFEFunc |
@DocsEditable |
@DomName('SVGFEFuncGElement') |
-class FEFuncGElement extends ComponentTransferFunctionElement native "*SVGFEFuncGElement" { |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
+class FEFuncGElement extends _SVGComponentTransferFunctionElement native "*SVGFEFuncGElement" { |
+ |
+ @DocsEditable |
+ factory FEFuncGElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFuncG"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feFuncG') && (new SvgElement.tag('feFuncG') is FEFuncGElement); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2136,7 +2092,17 @@ class FEFuncGElement extends ComponentTransferFunctionElement native "*SVGFEFunc |
@DocsEditable |
@DomName('SVGFEFuncRElement') |
-class FEFuncRElement extends ComponentTransferFunctionElement native "*SVGFEFuncRElement" { |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
+class FEFuncRElement extends _SVGComponentTransferFunctionElement native "*SVGFEFuncRElement" { |
+ |
+ @DocsEditable |
+ factory FEFuncRElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFuncR"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feFuncR') && (new SvgElement.tag('feFuncR') is FEFuncRElement); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2145,8 +2111,18 @@ class FEFuncRElement extends ComponentTransferFunctionElement native "*SVGFEFunc |
@DocsEditable |
@DomName('SVGFEGaussianBlurElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEGaussianBlurElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEGaussianBlurElement" { |
+ @DocsEditable |
+ factory FEGaussianBlurElement() => _SvgElementFactoryProvider.createSvgElement_tag("feGaussianBlur"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feGaussianBlur') && (new SvgElement.tag('feGaussianBlur') is FEGaussianBlurElement); |
+ |
@DomName('SVGFEGaussianBlurElement.in1') |
@DocsEditable |
final AnimatedString in1; |
@@ -2192,8 +2168,18 @@ class FEGaussianBlurElement extends StyledElement implements FilterPrimitiveStan |
@DocsEditable |
@DomName('SVGFEImageElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEImageElement extends StyledElement implements FilterPrimitiveStandardAttributes, UriReference, ExternalResourcesRequired, LangSpace native "*SVGFEImageElement" { |
+ @DocsEditable |
+ factory FEImageElement() => _SvgElementFactoryProvider.createSvgElement_tag("feImage"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feImage') && (new SvgElement.tag('feImage') is FEImageElement); |
+ |
@DomName('SVGFEImageElement.preserveAspectRatio') |
@DocsEditable |
final AnimatedPreserveAspectRatio preserveAspectRatio; |
@@ -2249,8 +2235,18 @@ class FEImageElement extends StyledElement implements FilterPrimitiveStandardAtt |
@DocsEditable |
@DomName('SVGFEMergeElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEMergeElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEMergeElement" { |
+ @DocsEditable |
+ factory FEMergeElement() => _SvgElementFactoryProvider.createSvgElement_tag("feMerge"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feMerge') && (new SvgElement.tag('feMerge') is FEMergeElement); |
+ |
// From SVGFilterPrimitiveStandardAttributes |
@DomName('SVGFEMergeElement.height') |
@@ -2280,8 +2276,18 @@ class FEMergeElement extends StyledElement implements FilterPrimitiveStandardAtt |
@DocsEditable |
@DomName('SVGFEMergeNodeElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEMergeNodeElement extends SvgElement native "*SVGFEMergeNodeElement" { |
+ @DocsEditable |
+ factory FEMergeNodeElement() => _SvgElementFactoryProvider.createSvgElement_tag("feMergeNode"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feMergeNode') && (new SvgElement.tag('feMergeNode') is FEMergeNodeElement); |
+ |
@DomName('SVGFEMergeNodeElement.in1') |
@DocsEditable |
final AnimatedString in1; |
@@ -2350,8 +2356,18 @@ class FEMorphologyElement extends StyledElement implements FilterPrimitiveStanda |
@DocsEditable |
@DomName('SVGFEOffsetElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEOffsetElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEOffsetElement" { |
+ @DocsEditable |
+ factory FEOffsetElement() => _SvgElementFactoryProvider.createSvgElement_tag("feOffset"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feOffset') && (new SvgElement.tag('feOffset') is FEOffsetElement); |
+ |
@DomName('SVGFEOffsetElement.dx') |
@DocsEditable |
final AnimatedNumber dx; |
@@ -2393,8 +2409,18 @@ class FEOffsetElement extends StyledElement implements FilterPrimitiveStandardAt |
@DocsEditable |
@DomName('SVGFEPointLightElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FEPointLightElement extends SvgElement native "*SVGFEPointLightElement" { |
+ @DocsEditable |
+ factory FEPointLightElement() => _SvgElementFactoryProvider.createSvgElement_tag("fePointLight"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('fePointLight') && (new SvgElement.tag('fePointLight') is FEPointLightElement); |
+ |
@DomName('SVGFEPointLightElement.x') |
@DocsEditable |
final AnimatedNumber x; |
@@ -2414,8 +2440,18 @@ class FEPointLightElement extends SvgElement native "*SVGFEPointLightElement" { |
@DocsEditable |
@DomName('SVGFESpecularLightingElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FESpecularLightingElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFESpecularLightingElement" { |
+ @DocsEditable |
+ factory FESpecularLightingElement() => _SvgElementFactoryProvider.createSvgElement_tag("feSpecularLighting"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feSpecularLighting') && (new SvgElement.tag('feSpecularLighting') is FESpecularLightingElement); |
+ |
@DomName('SVGFESpecularLightingElement.in1') |
@DocsEditable |
final AnimatedString in1; |
@@ -2461,8 +2497,18 @@ class FESpecularLightingElement extends StyledElement implements FilterPrimitive |
@DocsEditable |
@DomName('SVGFESpotLightElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FESpotLightElement extends SvgElement native "*SVGFESpotLightElement" { |
+ @DocsEditable |
+ factory FESpotLightElement() => _SvgElementFactoryProvider.createSvgElement_tag("feSpotLight"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feSpotLight') && (new SvgElement.tag('feSpotLight') is FESpotLightElement); |
+ |
@DomName('SVGFESpotLightElement.limitingConeAngle') |
@DocsEditable |
final AnimatedNumber limitingConeAngle; |
@@ -2502,8 +2548,18 @@ class FESpotLightElement extends SvgElement native "*SVGFESpotLightElement" { |
@DocsEditable |
@DomName('SVGFETileElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FETileElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFETileElement" { |
+ @DocsEditable |
+ factory FETileElement() => _SvgElementFactoryProvider.createSvgElement_tag("feTile"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feTile') && (new SvgElement.tag('feTile') is FETileElement); |
+ |
@DomName('SVGFETileElement.in1') |
@DocsEditable |
final AnimatedString in1; |
@@ -2537,8 +2593,18 @@ class FETileElement extends StyledElement implements FilterPrimitiveStandardAttr |
@DocsEditable |
@DomName('SVGFETurbulenceElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FETurbulenceElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFETurbulenceElement" { |
+ @DocsEditable |
+ factory FETurbulenceElement() => _SvgElementFactoryProvider.createSvgElement_tag("feTurbulence"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('feTurbulence') && (new SvgElement.tag('feTurbulence') is FETurbulenceElement); |
+ |
static const int SVG_STITCHTYPE_NOSTITCH = 2; |
static const int SVG_STITCHTYPE_STITCH = 1; |
@@ -2604,11 +2670,18 @@ class FETurbulenceElement extends StyledElement implements FilterPrimitiveStanda |
@DocsEditable |
@DomName('SVGFilterElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.IE, '10') |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class FilterElement extends StyledElement implements UriReference, ExternalResourcesRequired, LangSpace native "*SVGFilterElement" { |
@DocsEditable |
factory FilterElement() => _SvgElementFactoryProvider.createSvgElement_tag("filter"); |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('filter') && (new SvgElement.tag('filter') is FilterElement); |
+ |
@DomName('SVGFilterElement.filterResX') |
@DocsEditable |
final AnimatedInteger filterResX; |
@@ -2703,83 +2776,17 @@ abstract class FitToViewBox { |
@DocsEditable |
-@DomName('SVGFontElement') |
-class FontElement extends SvgElement native "*SVGFontElement" { |
+@DomName('SVGForeignObjectElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
+class ForeignObjectElement extends StyledElement implements Transformable, Tests, ExternalResourcesRequired, LangSpace native "*SVGForeignObjectElement" { |
@DocsEditable |
- factory FontElement() => _SvgElementFactoryProvider.createSvgElement_tag("font"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
+ factory ForeignObjectElement() => _SvgElementFactoryProvider.createSvgElement_tag("foreignObject"); |
- |
-@DocsEditable |
-@DomName('SVGFontFaceElement') |
-class FontFaceElement extends SvgElement native "*SVGFontFaceElement" { |
- |
- @DocsEditable |
- factory FontFaceElement() => _SvgElementFactoryProvider.createSvgElement_tag("font-face"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
-@DomName('SVGFontFaceFormatElement') |
-class FontFaceFormatElement extends SvgElement native "*SVGFontFaceFormatElement" { |
- |
- @DocsEditable |
- factory FontFaceFormatElement() => _SvgElementFactoryProvider.createSvgElement_tag("font-face-format"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
-@DomName('SVGFontFaceNameElement') |
-class FontFaceNameElement extends SvgElement native "*SVGFontFaceNameElement" { |
- |
- @DocsEditable |
- factory FontFaceNameElement() => _SvgElementFactoryProvider.createSvgElement_tag("font-face-name"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
-@DomName('SVGFontFaceSrcElement') |
-class FontFaceSrcElement extends SvgElement native "*SVGFontFaceSrcElement" { |
- |
- @DocsEditable |
- factory FontFaceSrcElement() => _SvgElementFactoryProvider.createSvgElement_tag("font-face-src"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
-@DomName('SVGFontFaceUriElement') |
-class FontFaceUriElement extends SvgElement native "*SVGFontFaceUriElement" { |
- |
- @DocsEditable |
- factory FontFaceUriElement() => _SvgElementFactoryProvider.createSvgElement_tag("font-face-uri"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
-@DomName('SVGForeignObjectElement') |
-class ForeignObjectElement extends StyledElement implements Transformable, Tests, ExternalResourcesRequired, LangSpace native "*SVGForeignObjectElement" { |
- |
- @DocsEditable |
- factory ForeignObjectElement() => _SvgElementFactoryProvider.createSvgElement_tag("foreignObject"); |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('foreignObject') && (new SvgElement.tag('foreignObject') is ForeignObjectElement); |
@DomName('SVGForeignObjectElement.height') |
@DocsEditable |
@@ -2951,110 +2958,6 @@ class GElement extends StyledElement implements Transformable, Tests, ExternalRe |
@DocsEditable |
-@DomName('SVGGlyphElement') |
-class GlyphElement extends SvgElement native "*SVGGlyphElement" { |
- |
- @DocsEditable |
- factory GlyphElement() => _SvgElementFactoryProvider.createSvgElement_tag("glyph"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
-@DomName('SVGGlyphRefElement') |
-class GlyphRefElement extends StyledElement implements UriReference native "*SVGGlyphRefElement" { |
- |
- @DomName('SVGGlyphRefElement.dx') |
- @DocsEditable |
- num dx; |
- |
- @DomName('SVGGlyphRefElement.dy') |
- @DocsEditable |
- num dy; |
- |
- @DomName('SVGGlyphRefElement.format') |
- @DocsEditable |
- String format; |
- |
- @DomName('SVGGlyphRefElement.glyphRef') |
- @DocsEditable |
- String glyphRef; |
- |
- @DomName('SVGGlyphRefElement.x') |
- @DocsEditable |
- num x; |
- |
- @DomName('SVGGlyphRefElement.y') |
- @DocsEditable |
- num y; |
- |
- // From SVGURIReference |
- |
- @DomName('SVGGlyphRefElement.href') |
- @DocsEditable |
- final AnimatedString href; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
-@DomName('SVGGradientElement') |
-class GradientElement extends StyledElement implements UriReference, ExternalResourcesRequired native "*SVGGradientElement" { |
- |
- static const int SVG_SPREADMETHOD_PAD = 1; |
- |
- static const int SVG_SPREADMETHOD_REFLECT = 2; |
- |
- static const int SVG_SPREADMETHOD_REPEAT = 3; |
- |
- static const int SVG_SPREADMETHOD_UNKNOWN = 0; |
- |
- @DomName('SVGGradientElement.gradientTransform') |
- @DocsEditable |
- final AnimatedTransformList gradientTransform; |
- |
- @DomName('SVGGradientElement.gradientUnits') |
- @DocsEditable |
- final AnimatedEnumeration gradientUnits; |
- |
- @DomName('SVGGradientElement.spreadMethod') |
- @DocsEditable |
- final AnimatedEnumeration spreadMethod; |
- |
- // From SVGExternalResourcesRequired |
- |
- @DomName('SVGGradientElement.externalResourcesRequired') |
- @DocsEditable |
- final AnimatedBoolean externalResourcesRequired; |
- |
- // From SVGURIReference |
- |
- @DomName('SVGGradientElement.href') |
- @DocsEditable |
- final AnimatedString href; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
-@DomName('SVGHKernElement') |
-class HKernElement extends SvgElement native "*SVGHKernElement" { |
- |
- @DocsEditable |
- factory HKernElement() => _SvgElementFactoryProvider.createSvgElement_tag("hkern"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
@DomName('SVGImageElement') |
class ImageElement extends StyledElement implements UriReference, Tests, Transformable, ExternalResourcesRequired, LangSpace native "*SVGImageElement" { |
@@ -3163,6 +3066,9 @@ class ImageElement extends StyledElement implements UriReference, Tests, Transfo |
@DomName('SVGLangSpace') |
abstract class LangSpace { |
+ /// Checks if this type is supported on the current platform. |
+ static bool supported(SvgElement element) => JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', element, element); |
+ |
String xmllang; |
String xmlspace; |
@@ -3546,7 +3452,7 @@ class LineElement extends StyledElement implements Transformable, Tests, Externa |
@DocsEditable |
@DomName('SVGLinearGradientElement') |
-class LinearGradientElement extends GradientElement native "*SVGLinearGradientElement" { |
+class LinearGradientElement extends _SVGGradientElement native "*SVGLinearGradientElement" { |
@DocsEditable |
factory LinearGradientElement() => _SvgElementFactoryProvider.createSvgElement_tag("linearGradient"); |
@@ -3593,30 +3499,6 @@ abstract class Locatable { |
@DocsEditable |
-@DomName('SVGMPathElement') |
-class MPathElement extends SvgElement implements UriReference, ExternalResourcesRequired native "*SVGMPathElement" { |
- |
- @DocsEditable |
- factory MPathElement() => _SvgElementFactoryProvider.createSvgElement_tag("mpath"); |
- |
- // From SVGExternalResourcesRequired |
- |
- @DomName('SVGMPathElement.externalResourcesRequired') |
- @DocsEditable |
- final AnimatedBoolean externalResourcesRequired; |
- |
- // From SVGURIReference |
- |
- @DomName('SVGMPathElement.href') |
- @DocsEditable |
- final AnimatedString href; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
@DomName('SVGMarkerElement') |
class MarkerElement extends StyledElement implements FitToViewBox, ExternalResourcesRequired, LangSpace native "*SVGMarkerElement" { |
@@ -3859,15 +3741,6 @@ class MetadataElement extends SvgElement native "*SVGMetadataElement" { |
@DocsEditable |
-@DomName('SVGMissingGlyphElement') |
-class MissingGlyphElement extends StyledElement native "*SVGMissingGlyphElement" { |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
@DomName('SVGNumber') |
class Number native "*SVGNumber" { |
@@ -5409,7 +5282,7 @@ class PreserveAspectRatio native "*SVGPreserveAspectRatio" { |
@DocsEditable |
@DomName('SVGRadialGradientElement') |
-class RadialGradientElement extends GradientElement native "*SVGRadialGradientElement" { |
+class RadialGradientElement extends _SVGGradientElement native "*SVGRadialGradientElement" { |
@DocsEditable |
factory RadialGradientElement() => _SvgElementFactoryProvider.createSvgElement_tag("radialGradient"); |
@@ -5623,10 +5496,16 @@ class ScriptElement extends SvgElement implements UriReference, ExternalResource |
@DocsEditable |
@DomName('SVGSetElement') |
+@SupportedBrowser(SupportedBrowser.CHROME) |
+@SupportedBrowser(SupportedBrowser.FIREFOX) |
+@SupportedBrowser(SupportedBrowser.SAFARI) |
class SetElement extends AnimationElement native "*SVGSetElement" { |
@DocsEditable |
factory SetElement() => _SvgElementFactoryProvider.createSvgElement_tag("set"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('set') && (new SvgElement.tag('set') is SetElement); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -6056,6 +5935,15 @@ class SvgElement extends Element native "*SVGElement" { |
throw new UnsupportedError("Cannot invoke click SVG."); |
} |
+ /** |
+ * Checks to see if the SVG element type is supported by the current platform. |
+ * |
+ * The tag should be a valid SVG element tag name. |
+ */ |
+ static bool isTagSupported(String tag) { |
+ var e = new SvgElement.tag(tag); |
+ return e is SvgElement && !(e is UnknownElement); |
+ } |
// Shadowing definition. |
String get id => JS("String", "#.id", this); |
@@ -6492,24 +6380,6 @@ class SymbolElement extends StyledElement implements FitToViewBox, ExternalResou |
@DocsEditable |
-@DomName('SVGTRefElement') |
-class TRefElement extends TextPositioningElement implements UriReference native "*SVGTRefElement" { |
- |
- @DocsEditable |
- factory TRefElement() => _SvgElementFactoryProvider.createSvgElement_tag("tref"); |
- |
- // From SVGURIReference |
- |
- @DomName('SVGTRefElement.href') |
- @DocsEditable |
- final AnimatedString href; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
@DomName('SVGTSpanElement') |
class TSpanElement extends TextPositioningElement native "*SVGTSpanElement" { |
@@ -7215,18 +7085,6 @@ class UseElement extends StyledElement implements UriReference, Tests, Transform |
@DocsEditable |
-@DomName('SVGVKernElement') |
-class VKernElement extends SvgElement native "*SVGVKernElement" { |
- |
- @DocsEditable |
- factory VKernElement() => _SvgElementFactoryProvider.createSvgElement_tag("vkern"); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable |
@DomName('SVGViewElement') |
class ViewElement extends SvgElement implements FitToViewBox, ExternalResourcesRequired, ZoomAndPan native "*SVGViewElement" { |
@@ -7546,3 +7404,408 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn |
@DocsEditable |
ElementInstance item(int index) native; |
} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGAltGlyphDefElement') |
+class _SVGAltGlyphDefElement extends SvgElement native "*SVGAltGlyphDefElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGAltGlyphItemElement') |
+class _SVGAltGlyphItemElement extends SvgElement native "*SVGAltGlyphItemElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGAnimateColorElement') |
+class _SVGAnimateColorElement extends AnimationElement native "*SVGAnimateColorElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGComponentTransferFunctionElement') |
+class _SVGComponentTransferFunctionElement extends SvgElement native "*SVGComponentTransferFunctionElement" { |
+ |
+ static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; |
+ |
+ static const int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; |
+ |
+ static const int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; |
+ |
+ static const int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; |
+ |
+ static const int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; |
+ |
+ static const int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; |
+ |
+ @DomName('SVGComponentTransferFunctionElement.amplitude') |
+ @DocsEditable |
+ final AnimatedNumber amplitude; |
+ |
+ @DomName('SVGComponentTransferFunctionElement.exponent') |
+ @DocsEditable |
+ final AnimatedNumber exponent; |
+ |
+ @DomName('SVGComponentTransferFunctionElement.intercept') |
+ @DocsEditable |
+ final AnimatedNumber intercept; |
+ |
+ @DomName('SVGComponentTransferFunctionElement.offset') |
+ @DocsEditable |
+ final AnimatedNumber offset; |
+ |
+ @DomName('SVGComponentTransferFunctionElement.slope') |
+ @DocsEditable |
+ final AnimatedNumber slope; |
+ |
+ @DomName('SVGComponentTransferFunctionElement.tableValues') |
+ @DocsEditable |
+ final AnimatedNumberList tableValues; |
+ |
+ @DomName('SVGComponentTransferFunctionElement.type') |
+ @DocsEditable |
+ final AnimatedEnumeration type; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGCursorElement') |
+class _SVGCursorElement extends SvgElement implements UriReference, Tests, ExternalResourcesRequired native "*SVGCursorElement" { |
+ |
+ @DocsEditable |
+ factory _SVGCursorElement() => _SvgElementFactoryProvider.createSvgElement_tag("cursor"); |
+ |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => SvgElement.isTagSupported('cursor') && (new SvgElement.tag('cursor') is _SVGCursorElement); |
+ |
+ @DomName('SVGCursorElement.x') |
+ @DocsEditable |
+ final AnimatedLength x; |
+ |
+ @DomName('SVGCursorElement.y') |
+ @DocsEditable |
+ final AnimatedLength y; |
+ |
+ // From SVGExternalResourcesRequired |
+ |
+ @DomName('SVGCursorElement.externalResourcesRequired') |
+ @DocsEditable |
+ final AnimatedBoolean externalResourcesRequired; |
+ |
+ // From SVGTests |
+ |
+ @DomName('SVGCursorElement.requiredExtensions') |
+ @DocsEditable |
+ final StringList requiredExtensions; |
+ |
+ @DomName('SVGCursorElement.requiredFeatures') |
+ @DocsEditable |
+ final StringList requiredFeatures; |
+ |
+ @DomName('SVGCursorElement.systemLanguage') |
+ @DocsEditable |
+ final StringList systemLanguage; |
+ |
+ @DomName('SVGCursorElement.hasExtension') |
+ @DocsEditable |
+ bool hasExtension(String extension) native; |
+ |
+ // From SVGURIReference |
+ |
+ @DomName('SVGCursorElement.href') |
+ @DocsEditable |
+ final AnimatedString href; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGFEDropShadowElement') |
+class _SVGFEDropShadowElement extends StyledElement implements FilterPrimitiveStandardAttributes native "*SVGFEDropShadowElement" { |
+ |
+ @DomName('SVGFEDropShadowElement.dx') |
+ @DocsEditable |
+ final AnimatedNumber dx; |
+ |
+ @DomName('SVGFEDropShadowElement.dy') |
+ @DocsEditable |
+ final AnimatedNumber dy; |
+ |
+ @DomName('SVGFEDropShadowElement.in1') |
+ @DocsEditable |
+ final AnimatedString in1; |
+ |
+ @DomName('SVGFEDropShadowElement.stdDeviationX') |
+ @DocsEditable |
+ final AnimatedNumber stdDeviationX; |
+ |
+ @DomName('SVGFEDropShadowElement.stdDeviationY') |
+ @DocsEditable |
+ final AnimatedNumber stdDeviationY; |
+ |
+ @DomName('SVGFEDropShadowElement.setStdDeviation') |
+ @DocsEditable |
+ void setStdDeviation(num stdDeviationX, num stdDeviationY) native; |
+ |
+ // From SVGFilterPrimitiveStandardAttributes |
+ |
+ @DomName('SVGFEDropShadowElement.height') |
+ @DocsEditable |
+ final AnimatedLength height; |
+ |
+ @DomName('SVGFEDropShadowElement.result') |
+ @DocsEditable |
+ final AnimatedString result; |
+ |
+ @DomName('SVGFEDropShadowElement.width') |
+ @DocsEditable |
+ final AnimatedLength width; |
+ |
+ @DomName('SVGFEDropShadowElement.x') |
+ @DocsEditable |
+ final AnimatedLength x; |
+ |
+ @DomName('SVGFEDropShadowElement.y') |
+ @DocsEditable |
+ final AnimatedLength y; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGFontElement') |
+class _SVGFontElement extends SvgElement native "*SVGFontElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGFontFaceElement') |
+class _SVGFontFaceElement extends SvgElement native "*SVGFontFaceElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGFontFaceFormatElement') |
+class _SVGFontFaceFormatElement extends SvgElement native "*SVGFontFaceFormatElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGFontFaceNameElement') |
+class _SVGFontFaceNameElement extends SvgElement native "*SVGFontFaceNameElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGFontFaceSrcElement') |
+class _SVGFontFaceSrcElement extends SvgElement native "*SVGFontFaceSrcElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGFontFaceUriElement') |
+class _SVGFontFaceUriElement extends SvgElement native "*SVGFontFaceUriElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGGlyphElement') |
+class _SVGGlyphElement extends SvgElement native "*SVGGlyphElement" { |
+ |
+ @DocsEditable |
+ factory _SVGGlyphElement() => _SvgElementFactoryProvider.createSvgElement_tag("glyph"); |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGGlyphRefElement') |
+class _SVGGlyphRefElement extends StyledElement implements UriReference native "*SVGGlyphRefElement" { |
+ |
+ @DomName('SVGGlyphRefElement.dx') |
+ @DocsEditable |
+ num dx; |
+ |
+ @DomName('SVGGlyphRefElement.dy') |
+ @DocsEditable |
+ num dy; |
+ |
+ @DomName('SVGGlyphRefElement.format') |
+ @DocsEditable |
+ String format; |
+ |
+ @DomName('SVGGlyphRefElement.glyphRef') |
+ @DocsEditable |
+ String glyphRef; |
+ |
+ @DomName('SVGGlyphRefElement.x') |
+ @DocsEditable |
+ num x; |
+ |
+ @DomName('SVGGlyphRefElement.y') |
+ @DocsEditable |
+ num y; |
+ |
+ // From SVGURIReference |
+ |
+ @DomName('SVGGlyphRefElement.href') |
+ @DocsEditable |
+ final AnimatedString href; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGGradientElement') |
+class _SVGGradientElement extends StyledElement implements UriReference, ExternalResourcesRequired native "*SVGGradientElement" { |
+ |
+ static const int SVG_SPREADMETHOD_PAD = 1; |
+ |
+ static const int SVG_SPREADMETHOD_REFLECT = 2; |
+ |
+ static const int SVG_SPREADMETHOD_REPEAT = 3; |
+ |
+ static const int SVG_SPREADMETHOD_UNKNOWN = 0; |
+ |
+ @DomName('SVGGradientElement.gradientTransform') |
+ @DocsEditable |
+ final AnimatedTransformList gradientTransform; |
+ |
+ @DomName('SVGGradientElement.gradientUnits') |
+ @DocsEditable |
+ final AnimatedEnumeration gradientUnits; |
+ |
+ @DomName('SVGGradientElement.spreadMethod') |
+ @DocsEditable |
+ final AnimatedEnumeration spreadMethod; |
+ |
+ // From SVGExternalResourcesRequired |
+ |
+ @DomName('SVGGradientElement.externalResourcesRequired') |
+ @DocsEditable |
+ final AnimatedBoolean externalResourcesRequired; |
+ |
+ // From SVGURIReference |
+ |
+ @DomName('SVGGradientElement.href') |
+ @DocsEditable |
+ final AnimatedString href; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGHKernElement') |
+class _SVGHKernElement extends SvgElement native "*SVGHKernElement" { |
+ |
+ @DocsEditable |
+ factory _SVGHKernElement() => _SvgElementFactoryProvider.createSvgElement_tag("hkern"); |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGMPathElement') |
+class _SVGMPathElement extends SvgElement implements UriReference, ExternalResourcesRequired native "*SVGMPathElement" { |
+ |
+ @DocsEditable |
+ factory _SVGMPathElement() => _SvgElementFactoryProvider.createSvgElement_tag("mpath"); |
+ |
+ // From SVGExternalResourcesRequired |
+ |
+ @DomName('SVGMPathElement.externalResourcesRequired') |
+ @DocsEditable |
+ final AnimatedBoolean externalResourcesRequired; |
+ |
+ // From SVGURIReference |
+ |
+ @DomName('SVGMPathElement.href') |
+ @DocsEditable |
+ final AnimatedString href; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGMissingGlyphElement') |
+class _SVGMissingGlyphElement extends StyledElement native "*SVGMissingGlyphElement" { |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGTRefElement') |
+class _SVGTRefElement extends TextPositioningElement implements UriReference native "*SVGTRefElement" { |
+ |
+ @DocsEditable |
+ factory _SVGTRefElement() => _SvgElementFactoryProvider.createSvgElement_tag("tref"); |
+ |
+ // From SVGURIReference |
+ |
+ @DomName('SVGTRefElement.href') |
+ @DocsEditable |
+ final AnimatedString href; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable |
+@DomName('SVGVKernElement') |
+class _SVGVKernElement extends SvgElement native "*SVGVKernElement" { |
+ |
+ @DocsEditable |
+ factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag("vkern"); |
+} |