// DO NOT EDIT - unless you are editing documentation as per: // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation // Auto-generated dart:svg library. /// Scalable Vector Graphics: /// Two-dimensional vector graphics with support for events and animation. /// /// > [!Note] /// > This core library is deprecated, and scheduled for removal in late 2025. /// > It has been replaced by [package:web](https://pub.dev/packages/web). /// > The [migration guide](https://dart.dev/go/package-web) has more details. /// /// For details about the features and syntax of SVG, a W3C standard, /// refer to the /// [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). /// /// {@category Web (Legacy)} @Deprecated('Use package:web and dart:js_interop instead.') library dart.dom.svg; import 'dart:async'; import 'dart:collection' hide LinkedList, LinkedListEntry; import 'dart:_internal' show FixedLengthListMixin; import 'dart:html'; import 'dart:html_common'; import 'dart:_js_helper' show Creates, Returns, JSName, Native; import 'dart:_foreign_helper' show JS; import 'dart:_interceptors' show JavaScriptObject; // 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. class _SvgElementFactoryProvider { static SvgElement createSvgElement_tag(String tag) { final Element temp = document.createElementNS( "http://www.w3.org/2000/svg", tag, ); return temp as SvgElement; } } // 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. @Unstable() @Native("SVGAElement") class AElement extends GraphicsElement implements UriReference { // To suppress missing implicit constructor warnings. factory AElement._() { throw new UnsupportedError("Not supported"); } factory AElement() => _SvgElementFactoryProvider.createSvgElement_tag("a") as AElement; AnimatedString get target native; // From SVGURIReference AnimatedString? get href 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. @Unstable() @Native("SVGAngle") class Angle extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory Angle._() { throw new UnsupportedError("Not supported"); } static const int SVG_ANGLETYPE_DEG = 2; static const int SVG_ANGLETYPE_GRAD = 4; static const int SVG_ANGLETYPE_RAD = 3; static const int SVG_ANGLETYPE_UNKNOWN = 0; static const int SVG_ANGLETYPE_UNSPECIFIED = 1; int? get unitType native; num? get value native; set value(num? value) native; String? get valueAsString native; set valueAsString(String? value) native; num? get valueInSpecifiedUnits native; set valueInSpecifiedUnits(num? value) native; void convertToSpecifiedUnits(int unitType) native; void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGAnimateElement") class AnimateElement extends AnimationElement { // To suppress missing implicit constructor warnings. factory AnimateElement._() { throw new UnsupportedError("Not supported"); } factory AnimateElement() => _SvgElementFactoryProvider.createSvgElement_tag("animate") as AnimateElement; /// 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 // BSD-style license that can be found in the LICENSE file. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGAnimateMotionElement") class AnimateMotionElement extends AnimationElement { // To suppress missing implicit constructor warnings. factory AnimateMotionElement._() { throw new UnsupportedError("Not supported"); } factory AnimateMotionElement() => _SvgElementFactoryProvider.createSvgElement_tag("animateMotion") as AnimateMotionElement; /// 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 // BSD-style license that can be found in the LICENSE file. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGAnimateTransformElement") class AnimateTransformElement extends AnimationElement { // To suppress missing implicit constructor warnings. factory AnimateTransformElement._() { throw new UnsupportedError("Not supported"); } factory AnimateTransformElement() => _SvgElementFactoryProvider.createSvgElement_tag("animateTransform") as AnimateTransformElement; /// 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 // BSD-style license that can be found in the LICENSE file. @Unstable() @Native("SVGAnimatedAngle") class AnimatedAngle extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedAngle._() { throw new UnsupportedError("Not supported"); } Angle? get animVal native; Angle? get baseVal 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. @Unstable() @Native("SVGAnimatedBoolean") class AnimatedBoolean extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedBoolean._() { throw new UnsupportedError("Not supported"); } bool? get animVal native; bool? get baseVal native; set baseVal(bool? value) 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. @Unstable() @Native("SVGAnimatedEnumeration") class AnimatedEnumeration extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedEnumeration._() { throw new UnsupportedError("Not supported"); } int? get animVal native; int? get baseVal native; set baseVal(int? value) 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. @Unstable() @Native("SVGAnimatedInteger") class AnimatedInteger extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedInteger._() { throw new UnsupportedError("Not supported"); } int? get animVal native; int? get baseVal native; set baseVal(int? value) 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. @Unstable() @Native("SVGAnimatedLength") class AnimatedLength extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedLength._() { throw new UnsupportedError("Not supported"); } Length? get animVal native; Length? get baseVal 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. @Unstable() @Native("SVGAnimatedLengthList") class AnimatedLengthList extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedLengthList._() { throw new UnsupportedError("Not supported"); } LengthList? get animVal native; LengthList? get baseVal 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. @Unstable() @Native("SVGAnimatedNumber") class AnimatedNumber extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedNumber._() { throw new UnsupportedError("Not supported"); } num? get animVal native; num? get baseVal native; set baseVal(num? value) 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. @Unstable() @Native("SVGAnimatedNumberList") class AnimatedNumberList extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedNumberList._() { throw new UnsupportedError("Not supported"); } NumberList? get animVal native; NumberList? get baseVal 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. @Unstable() @Native("SVGAnimatedPreserveAspectRatio") class AnimatedPreserveAspectRatio extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedPreserveAspectRatio._() { throw new UnsupportedError("Not supported"); } PreserveAspectRatio? get animVal native; PreserveAspectRatio? get baseVal 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. @Unstable() @Native("SVGAnimatedRect") class AnimatedRect extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedRect._() { throw new UnsupportedError("Not supported"); } Rect? get animVal native; Rect? get baseVal 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. @Unstable() @Native("SVGAnimatedString") class AnimatedString extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedString._() { throw new UnsupportedError("Not supported"); } String? get animVal native; String? get baseVal native; set baseVal(String? value) 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. @Unstable() @Native("SVGAnimatedTransformList") class AnimatedTransformList extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory AnimatedTransformList._() { throw new UnsupportedError("Not supported"); } TransformList? get animVal native; TransformList? get baseVal 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. @Unstable() @Native("SVGAnimationElement") class AnimationElement extends SvgElement implements Tests { // To suppress missing implicit constructor warnings. factory AnimationElement._() { throw new UnsupportedError("Not supported"); } factory AnimationElement() => _SvgElementFactoryProvider.createSvgElement_tag("animation") as AnimationElement; SvgElement? get targetElement native; void beginElement() native; void beginElementAt(num offset) native; void endElement() native; void endElementAt(num offset) native; double getCurrentTime() native; double getSimpleDuration() native; double getStartTime() native; // From SVGTests StringList? get requiredExtensions native; StringList? get systemLanguage 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. @Unstable() @Native("SVGCircleElement") class CircleElement extends GeometryElement { // To suppress missing implicit constructor warnings. factory CircleElement._() { throw new UnsupportedError("Not supported"); } factory CircleElement() => _SvgElementFactoryProvider.createSvgElement_tag("circle") as CircleElement; AnimatedLength? get cx native; AnimatedLength? get cy native; AnimatedLength? get r 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. @Unstable() @Native("SVGClipPathElement") class ClipPathElement extends GraphicsElement { // To suppress missing implicit constructor warnings. factory ClipPathElement._() { throw new UnsupportedError("Not supported"); } factory ClipPathElement() => _SvgElementFactoryProvider.createSvgElement_tag("clipPath") as ClipPathElement; AnimatedEnumeration? get clipPathUnits 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. @Unstable() @Native("SVGDefsElement") class DefsElement extends GraphicsElement { // To suppress missing implicit constructor warnings. factory DefsElement._() { throw new UnsupportedError("Not supported"); } factory DefsElement() => _SvgElementFactoryProvider.createSvgElement_tag("defs") as DefsElement; } // 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. @Unstable() @Native("SVGDescElement") class DescElement extends SvgElement { // To suppress missing implicit constructor warnings. factory DescElement._() { throw new UnsupportedError("Not supported"); } factory DescElement() => _SvgElementFactoryProvider.createSvgElement_tag("desc") as DescElement; } // 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. @Native("SVGDiscardElement") class DiscardElement extends SvgElement { // To suppress missing implicit constructor warnings. factory DiscardElement._() { throw new UnsupportedError("Not supported"); } } // 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. @Unstable() @Native("SVGEllipseElement") class EllipseElement extends GeometryElement { // To suppress missing implicit constructor warnings. factory EllipseElement._() { throw new UnsupportedError("Not supported"); } factory EllipseElement() => _SvgElementFactoryProvider.createSvgElement_tag("ellipse") as EllipseElement; AnimatedLength? get cx native; AnimatedLength? get cy native; AnimatedLength? get rx native; AnimatedLength? get ry 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEBlendElement") class FEBlendElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEBlendElement._() { throw new UnsupportedError("Not supported"); } factory FEBlendElement() => _SvgElementFactoryProvider.createSvgElement_tag("feBlend") as FEBlendElement; /// 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; static const int SVG_FEBLEND_MODE_MULTIPLY = 2; static const int SVG_FEBLEND_MODE_NORMAL = 1; static const int SVG_FEBLEND_MODE_SCREEN = 3; static const int SVG_FEBLEND_MODE_UNKNOWN = 0; AnimatedString? get in1 native; AnimatedString? get in2 native; AnimatedEnumeration? get mode native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEColorMatrixElement") class FEColorMatrixElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEColorMatrixElement._() { throw new UnsupportedError("Not supported"); } factory FEColorMatrixElement() => _SvgElementFactoryProvider.createSvgElement_tag("feColorMatrix") as FEColorMatrixElement; /// 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; static const int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; static const int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; static const int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; AnimatedString get in1 native; AnimatedEnumeration? get type native; AnimatedNumberList? get values native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEComponentTransferElement") class FEComponentTransferElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEComponentTransferElement._() { throw new UnsupportedError("Not supported"); } factory FEComponentTransferElement() => _SvgElementFactoryProvider.createSvgElement_tag("feComponentTransfer") as FEComponentTransferElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feComponentTransfer') && (new SvgElement.tag('feComponentTransfer') is FEComponentTransferElement); AnimatedString? get in1 native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @Unstable() @Native("SVGFECompositeElement") class FECompositeElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FECompositeElement._() { throw new UnsupportedError("Not supported"); } static const int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; static const int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; static const int SVG_FECOMPOSITE_OPERATOR_IN = 2; static const int SVG_FECOMPOSITE_OPERATOR_OUT = 3; static const int SVG_FECOMPOSITE_OPERATOR_OVER = 1; static const int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; static const int SVG_FECOMPOSITE_OPERATOR_XOR = 5; AnimatedString? get in1 native; AnimatedString? get in2 native; AnimatedNumber? get k1 native; AnimatedNumber? get k2 native; AnimatedNumber? get k3 native; AnimatedNumber? get k4 native; AnimatedEnumeration? get operator native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEConvolveMatrixElement") class FEConvolveMatrixElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEConvolveMatrixElement._() { throw new UnsupportedError("Not supported"); } factory FEConvolveMatrixElement() => _SvgElementFactoryProvider.createSvgElement_tag("feConvolveMatrix") as FEConvolveMatrixElement; /// 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; static const int SVG_EDGEMODE_UNKNOWN = 0; static const int SVG_EDGEMODE_WRAP = 2; AnimatedNumber? get bias native; AnimatedNumber? get divisor native; AnimatedEnumeration? get edgeMode native; AnimatedString? get in1 native; AnimatedNumberList? get kernelMatrix native; AnimatedNumber? get kernelUnitLengthX native; AnimatedNumber? get kernelUnitLengthY native; AnimatedInteger? get orderX native; AnimatedInteger? get orderY native; AnimatedBoolean? get preserveAlpha native; AnimatedInteger? get targetX native; AnimatedInteger? get targetY native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEDiffuseLightingElement") class FEDiffuseLightingElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEDiffuseLightingElement._() { throw new UnsupportedError("Not supported"); } factory FEDiffuseLightingElement() => _SvgElementFactoryProvider.createSvgElement_tag("feDiffuseLighting") as FEDiffuseLightingElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feDiffuseLighting') && (new SvgElement.tag('feDiffuseLighting') is FEDiffuseLightingElement); AnimatedNumber? get diffuseConstant native; AnimatedString? get in1 native; AnimatedNumber? get kernelUnitLengthX native; AnimatedNumber? get kernelUnitLengthY native; AnimatedNumber? get surfaceScale native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEDisplacementMapElement") class FEDisplacementMapElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEDisplacementMapElement._() { throw new UnsupportedError("Not supported"); } factory FEDisplacementMapElement() => _SvgElementFactoryProvider.createSvgElement_tag("feDisplacementMap") as FEDisplacementMapElement; /// 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; static const int SVG_CHANNEL_G = 2; static const int SVG_CHANNEL_R = 1; static const int SVG_CHANNEL_UNKNOWN = 0; AnimatedString? get in1 native; AnimatedString? get in2 native; AnimatedNumber? get scale native; AnimatedEnumeration? get xChannelSelector native; AnimatedEnumeration? get yChannelSelector native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEDistantLightElement") class FEDistantLightElement extends SvgElement { // To suppress missing implicit constructor warnings. factory FEDistantLightElement._() { throw new UnsupportedError("Not supported"); } factory FEDistantLightElement() => _SvgElementFactoryProvider.createSvgElement_tag("feDistantLight") as FEDistantLightElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feDistantLight') && (new SvgElement.tag('feDistantLight') is FEDistantLightElement); AnimatedNumber? get azimuth native; AnimatedNumber? get elevation 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEFloodElement") class FEFloodElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEFloodElement._() { throw new UnsupportedError("Not supported"); } factory FEFloodElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFlood") as FEFloodElement; /// 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 AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEFuncAElement") class FEFuncAElement extends _SVGComponentTransferFunctionElement { // To suppress missing implicit constructor warnings. factory FEFuncAElement._() { throw new UnsupportedError("Not supported"); } factory FEFuncAElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFuncA") as FEFuncAElement; /// 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 // BSD-style license that can be found in the LICENSE file. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEFuncBElement") class FEFuncBElement extends _SVGComponentTransferFunctionElement { // To suppress missing implicit constructor warnings. factory FEFuncBElement._() { throw new UnsupportedError("Not supported"); } factory FEFuncBElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFuncB") as FEFuncBElement; /// 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 // BSD-style license that can be found in the LICENSE file. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEFuncGElement") class FEFuncGElement extends _SVGComponentTransferFunctionElement { // To suppress missing implicit constructor warnings. factory FEFuncGElement._() { throw new UnsupportedError("Not supported"); } factory FEFuncGElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFuncG") as FEFuncGElement; /// 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 // BSD-style license that can be found in the LICENSE file. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEFuncRElement") class FEFuncRElement extends _SVGComponentTransferFunctionElement { // To suppress missing implicit constructor warnings. factory FEFuncRElement._() { throw new UnsupportedError("Not supported"); } factory FEFuncRElement() => _SvgElementFactoryProvider.createSvgElement_tag("feFuncR") as FEFuncRElement; /// 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 // BSD-style license that can be found in the LICENSE file. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEGaussianBlurElement") class FEGaussianBlurElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEGaussianBlurElement._() { throw new UnsupportedError("Not supported"); } factory FEGaussianBlurElement() => _SvgElementFactoryProvider.createSvgElement_tag("feGaussianBlur") as FEGaussianBlurElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feGaussianBlur') && (new SvgElement.tag('feGaussianBlur') is FEGaussianBlurElement); AnimatedString? get in1 native; AnimatedNumber? get stdDeviationX native; AnimatedNumber? get stdDeviationY native; void setStdDeviation(num stdDeviationX, num stdDeviationY) native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEImageElement") class FEImageElement extends SvgElement implements FilterPrimitiveStandardAttributes, UriReference { // To suppress missing implicit constructor warnings. factory FEImageElement._() { throw new UnsupportedError("Not supported"); } factory FEImageElement() => _SvgElementFactoryProvider.createSvgElement_tag("feImage") as FEImageElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feImage') && (new SvgElement.tag('feImage') is FEImageElement); AnimatedPreserveAspectRatio? get preserveAspectRatio native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y native; // From SVGURIReference AnimatedString? get href 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEMergeElement") class FEMergeElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEMergeElement._() { throw new UnsupportedError("Not supported"); } factory FEMergeElement() => _SvgElementFactoryProvider.createSvgElement_tag("feMerge") as FEMergeElement; /// 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 AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEMergeNodeElement") class FEMergeNodeElement extends SvgElement { // To suppress missing implicit constructor warnings. factory FEMergeNodeElement._() { throw new UnsupportedError("Not supported"); } factory FEMergeNodeElement() => _SvgElementFactoryProvider.createSvgElement_tag("feMergeNode") as FEMergeNodeElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feMergeNode') && (new SvgElement.tag('feMergeNode') is FEMergeNodeElement); AnimatedString? get in1 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEMorphologyElement") class FEMorphologyElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEMorphologyElement._() { throw new UnsupportedError("Not supported"); } static const int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; static const int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; static const int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; AnimatedString? get in1 native; AnimatedEnumeration? get operator native; AnimatedNumber? get radiusX native; AnimatedNumber? get radiusY native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEOffsetElement") class FEOffsetElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FEOffsetElement._() { throw new UnsupportedError("Not supported"); } factory FEOffsetElement() => _SvgElementFactoryProvider.createSvgElement_tag("feOffset") as FEOffsetElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feOffset') && (new SvgElement.tag('feOffset') is FEOffsetElement); AnimatedNumber? get dx native; AnimatedNumber? get dy native; AnimatedString? get in1 native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFEPointLightElement") class FEPointLightElement extends SvgElement { // To suppress missing implicit constructor warnings. factory FEPointLightElement._() { throw new UnsupportedError("Not supported"); } factory FEPointLightElement() => _SvgElementFactoryProvider.createSvgElement_tag("fePointLight") as FEPointLightElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('fePointLight') && (new SvgElement.tag('fePointLight') is FEPointLightElement); AnimatedNumber? get x native; AnimatedNumber? get y native; AnimatedNumber? get z 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFESpecularLightingElement") class FESpecularLightingElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FESpecularLightingElement._() { throw new UnsupportedError("Not supported"); } factory FESpecularLightingElement() => _SvgElementFactoryProvider.createSvgElement_tag("feSpecularLighting") as FESpecularLightingElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feSpecularLighting') && (new SvgElement.tag('feSpecularLighting') is FESpecularLightingElement); AnimatedString? get in1 native; AnimatedNumber? get kernelUnitLengthX native; AnimatedNumber? get kernelUnitLengthY native; AnimatedNumber? get specularConstant native; AnimatedNumber? get specularExponent native; AnimatedNumber? get surfaceScale native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFESpotLightElement") class FESpotLightElement extends SvgElement { // To suppress missing implicit constructor warnings. factory FESpotLightElement._() { throw new UnsupportedError("Not supported"); } factory FESpotLightElement() => _SvgElementFactoryProvider.createSvgElement_tag("feSpotLight") as FESpotLightElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feSpotLight') && (new SvgElement.tag('feSpotLight') is FESpotLightElement); AnimatedNumber? get limitingConeAngle native; AnimatedNumber? get pointsAtX native; AnimatedNumber? get pointsAtY native; AnimatedNumber? get pointsAtZ native; AnimatedNumber? get specularExponent native; AnimatedNumber? get x native; AnimatedNumber? get y native; AnimatedNumber? get z 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFETileElement") class FETileElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FETileElement._() { throw new UnsupportedError("Not supported"); } factory FETileElement() => _SvgElementFactoryProvider.createSvgElement_tag("feTile") as FETileElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('feTile') && (new SvgElement.tag('feTile') is FETileElement); AnimatedString? get in1 native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFETurbulenceElement") class FETurbulenceElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory FETurbulenceElement._() { throw new UnsupportedError("Not supported"); } factory FETurbulenceElement() => _SvgElementFactoryProvider.createSvgElement_tag("feTurbulence") as FETurbulenceElement; /// 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; static const int SVG_STITCHTYPE_UNKNOWN = 0; static const int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; static const int SVG_TURBULENCE_TYPE_TURBULENCE = 2; static const int SVG_TURBULENCE_TYPE_UNKNOWN = 0; AnimatedNumber? get baseFrequencyX native; AnimatedNumber? get baseFrequencyY native; AnimatedInteger? get numOctaves native; AnimatedNumber? get seed native; AnimatedEnumeration? get stitchTiles native; AnimatedEnumeration? get type native; // From SVGFilterPrimitiveStandardAttributes AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGFilterElement") class FilterElement extends SvgElement implements UriReference { // To suppress missing implicit constructor warnings. factory FilterElement._() { throw new UnsupportedError("Not supported"); } factory FilterElement() => _SvgElementFactoryProvider.createSvgElement_tag("filter") as FilterElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('filter') && (new SvgElement.tag('filter') is FilterElement); AnimatedEnumeration? get filterUnits native; AnimatedLength? get height native; AnimatedEnumeration? get primitiveUnits native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y native; // From SVGURIReference AnimatedString? get href 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. @Unstable() abstract class FilterPrimitiveStandardAttributes extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory FilterPrimitiveStandardAttributes._() { throw new UnsupportedError("Not supported"); } AnimatedLength? get height native; AnimatedString? get result native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @Unstable() abstract class FitToViewBox extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory FitToViewBox._() { throw new UnsupportedError("Not supported"); } AnimatedPreserveAspectRatio? get preserveAspectRatio native; AnimatedRect? get viewBox 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGForeignObjectElement") class ForeignObjectElement extends GraphicsElement { // To suppress missing implicit constructor warnings. factory ForeignObjectElement._() { throw new UnsupportedError("Not supported"); } factory ForeignObjectElement() => _SvgElementFactoryProvider.createSvgElement_tag("foreignObject") as ForeignObjectElement; /// Checks if this type is supported on the current platform. static bool get supported => SvgElement.isTagSupported('foreignObject') && (new SvgElement.tag('foreignObject') is ForeignObjectElement); AnimatedLength? get height native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @Unstable() @Native("SVGGElement") class GElement extends GraphicsElement { // To suppress missing implicit constructor warnings. factory GElement._() { throw new UnsupportedError("Not supported"); } factory GElement() => _SvgElementFactoryProvider.createSvgElement_tag("g") as GElement; } // 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. @Native("SVGGeometryElement") class GeometryElement extends GraphicsElement { // To suppress missing implicit constructor warnings. factory GeometryElement._() { throw new UnsupportedError("Not supported"); } AnimatedNumber? get pathLength native; Point getPointAtLength(num distance) native; double getTotalLength() native; bool isPointInFill(Point point) native; bool isPointInStroke(Point point) 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. @Native("SVGGraphicsElement") class GraphicsElement extends SvgElement implements Tests { // To suppress missing implicit constructor warnings. factory GraphicsElement._() { throw new UnsupportedError("Not supported"); } SvgElement? get farthestViewportElement native; SvgElement? get nearestViewportElement native; AnimatedTransformList? get transform native; Rect getBBox() native; @JSName('getCTM') Matrix getCtm() native; @JSName('getScreenCTM') Matrix getScreenCtm() native; // From SVGTests StringList? get requiredExtensions native; StringList? get systemLanguage 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. @Unstable() @Native("SVGImageElement") class ImageElement extends GraphicsElement implements UriReference { // To suppress missing implicit constructor warnings. factory ImageElement._() { throw new UnsupportedError("Not supported"); } factory ImageElement() => _SvgElementFactoryProvider.createSvgElement_tag("image") as ImageElement; String? get async native; set async(String? value) native; AnimatedLength? get height native; AnimatedPreserveAspectRatio? get preserveAspectRatio native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y native; Future decode() => promiseToFuture(JS("", "#.decode()", this)); // From SVGURIReference AnimatedString? get href 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. @Unstable() @Native("SVGLength") class Length extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory Length._() { throw new UnsupportedError("Not supported"); } static const int SVG_LENGTHTYPE_CM = 6; static const int SVG_LENGTHTYPE_EMS = 3; static const int SVG_LENGTHTYPE_EXS = 4; static const int SVG_LENGTHTYPE_IN = 8; static const int SVG_LENGTHTYPE_MM = 7; static const int SVG_LENGTHTYPE_NUMBER = 1; static const int SVG_LENGTHTYPE_PC = 10; static const int SVG_LENGTHTYPE_PERCENTAGE = 2; static const int SVG_LENGTHTYPE_PT = 9; static const int SVG_LENGTHTYPE_PX = 5; static const int SVG_LENGTHTYPE_UNKNOWN = 0; int? get unitType native; num? get value native; set value(num? value) native; String? get valueAsString native; set valueAsString(String? value) native; num? get valueInSpecifiedUnits native; set valueInSpecifiedUnits(num? value) native; void convertToSpecifiedUnits(int unitType) native; void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) 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. @Unstable() @Native("SVGLengthList") class LengthList extends JavaScriptObject with ListMixin, ImmutableListMixin implements List { // To suppress missing implicit constructor warnings. factory LengthList._() { throw new UnsupportedError("Not supported"); } int get length => JS("int", "#.length", this); int? get numberOfItems native; Length operator [](int index) { if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length)) throw new IndexError.withLength(index, length, indexable: this); return this.getItem(index); } void operator []=(int index, Length value) { throw new UnsupportedError("Cannot assign element of immutable List."); } // -- start List mixins. // Length is the element type. set length(int newLength) { throw new UnsupportedError("Cannot resize immutable List."); } Length get first { if (this.length > 0) { return JS('Length', '#[0]', this); } throw new StateError("No elements"); } Length get last { int len = this.length; if (len > 0) { return JS('Length', '#[#]', this, len - 1); } throw new StateError("No elements"); } Length get single { int len = this.length; if (len == 1) { return JS('Length', '#[0]', this); } if (len == 0) throw new StateError("No elements"); throw new StateError("More than one element"); } Length elementAt(int index) => this[index]; // -- end List mixins. void __setter__(int index, Length newItem) native; Length appendItem(Length newItem) native; void clear() native; Length getItem(int index) native; Length initialize(Length newItem) native; Length insertItemBefore(Length newItem, int index) native; Length removeItem(int index) native; Length replaceItem(Length newItem, 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. @Unstable() @Native("SVGLineElement") class LineElement extends GeometryElement { // To suppress missing implicit constructor warnings. factory LineElement._() { throw new UnsupportedError("Not supported"); } factory LineElement() => _SvgElementFactoryProvider.createSvgElement_tag("line") as LineElement; AnimatedLength? get x1 native; AnimatedLength? get x2 native; AnimatedLength? get y1 native; AnimatedLength? get y2 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. @Unstable() @Native("SVGLinearGradientElement") class LinearGradientElement extends _GradientElement { // To suppress missing implicit constructor warnings. factory LinearGradientElement._() { throw new UnsupportedError("Not supported"); } factory LinearGradientElement() => _SvgElementFactoryProvider.createSvgElement_tag("linearGradient") as LinearGradientElement; AnimatedLength? get x1 native; AnimatedLength? get x2 native; AnimatedLength? get y1 native; AnimatedLength? get y2 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. @Unstable() @Native("SVGMarkerElement") class MarkerElement extends SvgElement implements FitToViewBox { // To suppress missing implicit constructor warnings. factory MarkerElement._() { throw new UnsupportedError("Not supported"); } factory MarkerElement() => _SvgElementFactoryProvider.createSvgElement_tag("marker") as MarkerElement; static const int SVG_MARKERUNITS_STROKEWIDTH = 2; static const int SVG_MARKERUNITS_UNKNOWN = 0; static const int SVG_MARKERUNITS_USERSPACEONUSE = 1; static const int SVG_MARKER_ORIENT_ANGLE = 2; static const int SVG_MARKER_ORIENT_AUTO = 1; static const int SVG_MARKER_ORIENT_UNKNOWN = 0; AnimatedLength get markerHeight native; AnimatedEnumeration get markerUnits native; AnimatedLength get markerWidth native; AnimatedAngle? get orientAngle native; AnimatedEnumeration? get orientType native; AnimatedLength get refX native; AnimatedLength get refY native; void setOrientToAngle(Angle angle) native; void setOrientToAuto() native; // From SVGFitToViewBox AnimatedPreserveAspectRatio? get preserveAspectRatio native; AnimatedRect? get viewBox 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. @Unstable() @Native("SVGMaskElement") class MaskElement extends SvgElement implements Tests { // To suppress missing implicit constructor warnings. factory MaskElement._() { throw new UnsupportedError("Not supported"); } factory MaskElement() => _SvgElementFactoryProvider.createSvgElement_tag("mask") as MaskElement; AnimatedLength? get height native; AnimatedEnumeration? get maskContentUnits native; AnimatedEnumeration? get maskUnits native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y native; // From SVGTests StringList? get requiredExtensions native; StringList? get systemLanguage 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. @Unstable() @Native("SVGMatrix") class Matrix extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory Matrix._() { throw new UnsupportedError("Not supported"); } num? get a native; set a(num? value) native; num? get b native; set b(num? value) native; num? get c native; set c(num? value) native; num? get d native; set d(num? value) native; num? get e native; set e(num? value) native; num? get f native; set f(num? value) native; Matrix flipX() native; Matrix flipY() native; Matrix inverse() native; Matrix multiply(Matrix secondMatrix) native; Matrix rotate(num angle) native; Matrix rotateFromVector(num x, num y) native; Matrix scale(num scaleFactor) native; Matrix scaleNonUniform(num scaleFactorX, num scaleFactorY) native; Matrix skewX(num angle) native; Matrix skewY(num angle) native; Matrix translate(num x, num y) 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. @Unstable() @Native("SVGMetadataElement") class MetadataElement extends SvgElement { // To suppress missing implicit constructor warnings. factory MetadataElement._() { throw new UnsupportedError("Not supported"); } } // 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. @Unstable() @Native("SVGNumber") class Number extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory Number._() { throw new UnsupportedError("Not supported"); } num? get value native; set value(num? value) 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. @Unstable() @Native("SVGNumberList") class NumberList extends JavaScriptObject with ListMixin, ImmutableListMixin implements List { // To suppress missing implicit constructor warnings. factory NumberList._() { throw new UnsupportedError("Not supported"); } int get length => JS("int", "#.length", this); int? get numberOfItems native; Number operator [](int index) { if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length)) throw new IndexError.withLength(index, length, indexable: this); return this.getItem(index); } void operator []=(int index, Number value) { throw new UnsupportedError("Cannot assign element of immutable List."); } // -- start List mixins. // Number is the element type. set length(int newLength) { throw new UnsupportedError("Cannot resize immutable List."); } Number get first { if (this.length > 0) { return JS('Number', '#[0]', this); } throw new StateError("No elements"); } Number get last { int len = this.length; if (len > 0) { return JS('Number', '#[#]', this, len - 1); } throw new StateError("No elements"); } Number get single { int len = this.length; if (len == 1) { return JS('Number', '#[0]', this); } if (len == 0) throw new StateError("No elements"); throw new StateError("More than one element"); } Number elementAt(int index) => this[index]; // -- end List mixins. void __setter__(int index, Number newItem) native; Number appendItem(Number newItem) native; void clear() native; Number getItem(int index) native; Number initialize(Number newItem) native; Number insertItemBefore(Number newItem, int index) native; Number removeItem(int index) native; Number replaceItem(Number newItem, 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. @Unstable() @Native("SVGPathElement") class PathElement extends GeometryElement { // To suppress missing implicit constructor warnings. factory PathElement._() { throw new UnsupportedError("Not supported"); } factory PathElement() => _SvgElementFactoryProvider.createSvgElement_tag("path") as PathElement; } // 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. @Unstable() @Native("SVGPatternElement") class PatternElement extends SvgElement implements FitToViewBox, UriReference, Tests { // To suppress missing implicit constructor warnings. factory PatternElement._() { throw new UnsupportedError("Not supported"); } factory PatternElement() => _SvgElementFactoryProvider.createSvgElement_tag("pattern") as PatternElement; AnimatedLength? get height native; AnimatedEnumeration? get patternContentUnits native; AnimatedTransformList? get patternTransform native; AnimatedEnumeration? get patternUnits native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y native; // From SVGFitToViewBox AnimatedPreserveAspectRatio? get preserveAspectRatio native; AnimatedRect? get viewBox native; // From SVGTests StringList? get requiredExtensions native; StringList? get systemLanguage native; // From SVGURIReference AnimatedString? get href 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. @Unstable() @Native("SVGPoint") class Point extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory Point._() { throw new UnsupportedError("Not supported"); } num? get x native; set x(num? value) native; num? get y native; set y(num? value) native; Point matrixTransform(Matrix matrix) 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. @Unstable() @Native("SVGPointList") class PointList extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory PointList._() { throw new UnsupportedError("Not supported"); } int? get length native; int? get numberOfItems native; void __setter__(int index, Point newItem) native; Point appendItem(Point newItem) native; void clear() native; Point getItem(int index) native; Point initialize(Point newItem) native; Point insertItemBefore(Point newItem, int index) native; Point removeItem(int index) native; Point replaceItem(Point newItem, 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. @Unstable() @Native("SVGPolygonElement") class PolygonElement extends GeometryElement { // To suppress missing implicit constructor warnings. factory PolygonElement._() { throw new UnsupportedError("Not supported"); } factory PolygonElement() => _SvgElementFactoryProvider.createSvgElement_tag("polygon") as PolygonElement; PointList? get animatedPoints native; PointList get points 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. @Unstable() @Native("SVGPolylineElement") class PolylineElement extends GeometryElement { // To suppress missing implicit constructor warnings. factory PolylineElement._() { throw new UnsupportedError("Not supported"); } factory PolylineElement() => _SvgElementFactoryProvider.createSvgElement_tag("polyline") as PolylineElement; PointList? get animatedPoints native; PointList get points 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. @Unstable() @Native("SVGPreserveAspectRatio") class PreserveAspectRatio extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory PreserveAspectRatio._() { throw new UnsupportedError("Not supported"); } static const int SVG_MEETORSLICE_MEET = 1; static const int SVG_MEETORSLICE_SLICE = 2; static const int SVG_MEETORSLICE_UNKNOWN = 0; static const int SVG_PRESERVEASPECTRATIO_NONE = 1; static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; static const int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; static const int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; static const int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; static const int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; static const int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; static const int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; static const int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; static const int SVG_PRESERVEASPECTRATIO_XMINYMID = 5; static const int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; int? get align native; set align(int? value) native; int? get meetOrSlice native; set meetOrSlice(int? value) 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. @Unstable() @Native("SVGRadialGradientElement") class RadialGradientElement extends _GradientElement { // To suppress missing implicit constructor warnings. factory RadialGradientElement._() { throw new UnsupportedError("Not supported"); } factory RadialGradientElement() => _SvgElementFactoryProvider.createSvgElement_tag("radialGradient") as RadialGradientElement; AnimatedLength? get cx native; AnimatedLength? get cy native; AnimatedLength? get fr native; AnimatedLength? get fx native; AnimatedLength? get fy native; AnimatedLength? get r 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. @Unstable() @Native("SVGRect") class Rect extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory Rect._() { throw new UnsupportedError("Not supported"); } num? get height native; set height(num? value) native; num? get width native; set width(num? value) native; num? get x native; set x(num? value) native; num? get y native; set y(num? value) 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. @Unstable() @Native("SVGRectElement") class RectElement extends GeometryElement { // To suppress missing implicit constructor warnings. factory RectElement._() { throw new UnsupportedError("Not supported"); } factory RectElement() => _SvgElementFactoryProvider.createSvgElement_tag("rect") as RectElement; AnimatedLength? get height native; AnimatedLength? get rx native; AnimatedLength? get ry native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y 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. @Unstable() @Native("SVGScriptElement") class ScriptElement extends SvgElement implements UriReference { // To suppress missing implicit constructor warnings. factory ScriptElement._() { throw new UnsupportedError("Not supported"); } factory ScriptElement() => _SvgElementFactoryProvider.createSvgElement_tag("script") as ScriptElement; String? get type native; set type(String? value) native; // From SVGURIReference AnimatedString? get href 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. @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.SAFARI) @Unstable() @Native("SVGSetElement") class SetElement extends AnimationElement { // To suppress missing implicit constructor warnings. factory SetElement._() { throw new UnsupportedError("Not supported"); } factory SetElement() => _SvgElementFactoryProvider.createSvgElement_tag("set") as SetElement; /// 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 // BSD-style license that can be found in the LICENSE file. @Unstable() @Native("SVGStopElement") class StopElement extends SvgElement { // To suppress missing implicit constructor warnings. factory StopElement._() { throw new UnsupportedError("Not supported"); } factory StopElement() => _SvgElementFactoryProvider.createSvgElement_tag("stop") as StopElement; @JSName('offset') AnimatedNumber get gradientOffset 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. @Unstable() @Native("SVGStringList") class StringList extends JavaScriptObject with ListMixin, ImmutableListMixin implements List { // To suppress missing implicit constructor warnings. factory StringList._() { throw new UnsupportedError("Not supported"); } int get length => JS("int", "#.length", this); int? get numberOfItems native; String operator [](int index) { if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length)) throw new IndexError.withLength(index, length, indexable: this); return this.getItem(index); } void operator []=(int index, String value) { throw new UnsupportedError("Cannot assign element of immutable List."); } // -- start List mixins. // String is the element type. set length(int newLength) { throw new UnsupportedError("Cannot resize immutable List."); } String get first { if (this.length > 0) { return JS('String', '#[0]', this); } throw new StateError("No elements"); } String get last { int len = this.length; if (len > 0) { return JS('String', '#[#]', this, len - 1); } throw new StateError("No elements"); } String get single { int len = this.length; if (len == 1) { return JS('String', '#[0]', this); } if (len == 0) throw new StateError("No elements"); throw new StateError("More than one element"); } String elementAt(int index) => this[index]; // -- end List mixins. void __setter__(int index, String newItem) native; String appendItem(String newItem) native; void clear() native; String getItem(int index) native; String initialize(String newItem) native; String insertItemBefore(String item, int index) native; String removeItem(int index) native; String replaceItem(String newItem, 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. @Native("SVGStyleElement") class StyleElement extends SvgElement { // To suppress missing implicit constructor warnings. factory StyleElement._() { throw new UnsupportedError("Not supported"); } factory StyleElement() => _SvgElementFactoryProvider.createSvgElement_tag("style") as StyleElement; bool? get disabled native; set disabled(bool? value) native; String? get media native; set media(String? value) native; StyleSheet? get sheet native; // Use implementation from Element. // String? get title native; // void set title(String? value) native; String? get type native; set type(String? value) native; } // Copyright (c) 2011, 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. class AttributeClassSet extends CssClassSetImpl { final Element _element; AttributeClassSet(this._element); Set readClasses() { var classname = _element.attributes['class']; if (classname is AnimatedString) { classname = (classname as AnimatedString).baseVal; } Set s = new LinkedHashSet(); if (classname == null) { return s; } for (String name in classname.split(' ')) { String trimmed = name.trim(); if (!trimmed.isEmpty) { s.add(trimmed); } } return s; } void writeClasses(Set s) { _element.setAttribute('class', s.join(' ')); } } @Unstable() @Native("SVGElement") class SvgElement extends Element implements GlobalEventHandlers, NoncedElement { static final _START_TAG_REGEXP = new RegExp('<(\\w+)'); factory SvgElement.tag(String tag) => document.createElementNS("http://www.w3.org/2000/svg", tag) as SvgElement; factory SvgElement.svg( String svg, { NodeValidator? validator, NodeTreeSanitizer? treeSanitizer, }) { if (validator == null && treeSanitizer == null) { validator = new NodeValidatorBuilder.common()..allowSvg(); } final match = _START_TAG_REGEXP.firstMatch(svg); Element parentElement; if (match != null && match.group(1)!.toLowerCase() == 'svg') { parentElement = document.body!; } else { parentElement = new SvgSvgElement(); } var fragment = parentElement.createFragment( svg, validator: validator, treeSanitizer: treeSanitizer, ); return fragment.nodes.where((e) => e is SvgElement).single as SvgElement; } CssClassSet get classes => new AttributeClassSet(this); List get children => new FilteredElementList(this); set children(List value) { final children = this.children; children.clear(); children.addAll(value); } String? get outerHtml { final container = new DivElement(); final SvgElement cloned = this.clone(true) as SvgElement; container.children.add(cloned); return container.innerHtml; } String? get innerHtml { final container = new DivElement(); final SvgElement cloned = this.clone(true) as SvgElement; container.children.addAll(cloned.children); return container.innerHtml; } set innerHtml(String? value) { this.setInnerHtml(value); } DocumentFragment createFragment( String? svg, { NodeValidator? validator, NodeTreeSanitizer? treeSanitizer, }) { if (treeSanitizer == null) { if (validator == null) { validator = new NodeValidatorBuilder.common()..allowSvg(); } treeSanitizer = new NodeTreeSanitizer(validator); } // We create a fragment which will parse in the HTML parser var html = '$svg'; var fragment = document.body!.createFragment( html, treeSanitizer: treeSanitizer, ); var svgFragment = new DocumentFragment(); // The root is the element, need to pull out the contents. var root = fragment.nodes.single; while (root.firstChild != null) { svgFragment.append(root.firstChild!); } return svgFragment; } // Unsupported methods inherited from Element. void insertAdjacentText(String where, String text) { throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG."); } void insertAdjacentHtml( String where, String text, { NodeValidator? validator, NodeTreeSanitizer? treeSanitizer, }) { throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); } Element insertAdjacentElement(String where, Element element) { throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); } HtmlCollection get _children { throw new UnsupportedError("Cannot get _children on SVG."); } bool get isContentEditable => false; void click() { 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); } // To suppress missing implicit constructor warnings. factory SvgElement._() { throw new UnsupportedError("Not supported"); } static const EventStreamProvider abortEvent = const EventStreamProvider('abort'); static const EventStreamProvider blurEvent = const EventStreamProvider('blur'); static const EventStreamProvider canPlayEvent = const EventStreamProvider('canplay'); static const EventStreamProvider canPlayThroughEvent = const EventStreamProvider('canplaythrough'); static const EventStreamProvider changeEvent = const EventStreamProvider('change'); static const EventStreamProvider clickEvent = const EventStreamProvider('click'); static const EventStreamProvider contextMenuEvent = const EventStreamProvider('contextmenu'); @DomName('SVGElement.dblclickEvent') static const EventStreamProvider doubleClickEvent = const EventStreamProvider('dblclick'); static const EventStreamProvider dragEvent = const EventStreamProvider('drag'); static const EventStreamProvider dragEndEvent = const EventStreamProvider('dragend'); static const EventStreamProvider dragEnterEvent = const EventStreamProvider('dragenter'); static const EventStreamProvider dragLeaveEvent = const EventStreamProvider('dragleave'); static const EventStreamProvider dragOverEvent = const EventStreamProvider('dragover'); static const EventStreamProvider dragStartEvent = const EventStreamProvider('dragstart'); static const EventStreamProvider dropEvent = const EventStreamProvider('drop'); static const EventStreamProvider durationChangeEvent = const EventStreamProvider('durationchange'); static const EventStreamProvider emptiedEvent = const EventStreamProvider('emptied'); static const EventStreamProvider endedEvent = const EventStreamProvider('ended'); static const EventStreamProvider errorEvent = const EventStreamProvider('error'); static const EventStreamProvider focusEvent = const EventStreamProvider('focus'); static const EventStreamProvider inputEvent = const EventStreamProvider('input'); static const EventStreamProvider invalidEvent = const EventStreamProvider('invalid'); static const EventStreamProvider keyDownEvent = const EventStreamProvider('keydown'); static const EventStreamProvider keyPressEvent = const EventStreamProvider('keypress'); static const EventStreamProvider keyUpEvent = const EventStreamProvider('keyup'); static const EventStreamProvider loadEvent = const EventStreamProvider('load'); static const EventStreamProvider loadedDataEvent = const EventStreamProvider('loadeddata'); static const EventStreamProvider loadedMetadataEvent = const EventStreamProvider('loadedmetadata'); static const EventStreamProvider mouseDownEvent = const EventStreamProvider('mousedown'); static const EventStreamProvider mouseEnterEvent = const EventStreamProvider('mouseenter'); static const EventStreamProvider mouseLeaveEvent = const EventStreamProvider('mouseleave'); static const EventStreamProvider mouseMoveEvent = const EventStreamProvider('mousemove'); static const EventStreamProvider mouseOutEvent = const EventStreamProvider('mouseout'); static const EventStreamProvider mouseOverEvent = const EventStreamProvider('mouseover'); static const EventStreamProvider mouseUpEvent = const EventStreamProvider('mouseup'); static const EventStreamProvider mouseWheelEvent = const EventStreamProvider('mousewheel'); static const EventStreamProvider pauseEvent = const EventStreamProvider('pause'); static const EventStreamProvider playEvent = const EventStreamProvider('play'); static const EventStreamProvider playingEvent = const EventStreamProvider('playing'); static const EventStreamProvider rateChangeEvent = const EventStreamProvider('ratechange'); static const EventStreamProvider resetEvent = const EventStreamProvider('reset'); static const EventStreamProvider resizeEvent = const EventStreamProvider('resize'); static const EventStreamProvider scrollEvent = const EventStreamProvider('scroll'); static const EventStreamProvider seekedEvent = const EventStreamProvider('seeked'); static const EventStreamProvider seekingEvent = const EventStreamProvider('seeking'); static const EventStreamProvider selectEvent = const EventStreamProvider('select'); static const EventStreamProvider stalledEvent = const EventStreamProvider('stalled'); static const EventStreamProvider submitEvent = const EventStreamProvider('submit'); static const EventStreamProvider suspendEvent = const EventStreamProvider('suspend'); static const EventStreamProvider timeUpdateEvent = const EventStreamProvider('timeupdate'); static const EventStreamProvider touchCancelEvent = const EventStreamProvider('touchcancel'); static const EventStreamProvider touchEndEvent = const EventStreamProvider('touchend'); static const EventStreamProvider touchMoveEvent = const EventStreamProvider('touchmove'); static const EventStreamProvider touchStartEvent = const EventStreamProvider('touchstart'); static const EventStreamProvider volumeChangeEvent = const EventStreamProvider('volumechange'); static const EventStreamProvider waitingEvent = const EventStreamProvider('waiting'); static const EventStreamProvider wheelEvent = const EventStreamProvider('wheel'); // Shadowing definition. @JSName('className') AnimatedString get _svgClassName native; @JSName('ownerSVGElement') SvgSvgElement? get ownerSvgElement native; // Use implementation from Element. // CssStyleDeclaration get style native; // void set style(CssStyleDeclaration value) native; // Use implementation from Element. // int? get tabIndex native; // void set tabIndex(int? value) native; SvgElement? get viewportElement native; void blur() native; void focus() native; // From NoncedElement String? get nonce native; set nonce(String? value) native; ElementStream get onAbort => abortEvent.forElement(this); ElementStream get onBlur => blurEvent.forElement(this); ElementStream get onCanPlay => canPlayEvent.forElement(this); ElementStream get onCanPlayThrough => canPlayThroughEvent.forElement(this); ElementStream get onChange => changeEvent.forElement(this); ElementStream get onClick => clickEvent.forElement(this); ElementStream get onContextMenu => contextMenuEvent.forElement(this); @DomName('SVGElement.ondblclick') ElementStream get onDoubleClick => doubleClickEvent.forElement(this); ElementStream get onDrag => dragEvent.forElement(this); ElementStream get onDragEnd => dragEndEvent.forElement(this); ElementStream get onDragEnter => dragEnterEvent.forElement(this); ElementStream get onDragLeave => dragLeaveEvent.forElement(this); ElementStream get onDragOver => dragOverEvent.forElement(this); ElementStream get onDragStart => dragStartEvent.forElement(this); ElementStream get onDrop => dropEvent.forElement(this); ElementStream get onDurationChange => durationChangeEvent.forElement(this); ElementStream get onEmptied => emptiedEvent.forElement(this); ElementStream get onEnded => endedEvent.forElement(this); ElementStream get onError => errorEvent.forElement(this); ElementStream get onFocus => focusEvent.forElement(this); ElementStream get onInput => inputEvent.forElement(this); ElementStream get onInvalid => invalidEvent.forElement(this); ElementStream get onKeyDown => keyDownEvent.forElement(this); ElementStream get onKeyPress => keyPressEvent.forElement(this); ElementStream get onKeyUp => keyUpEvent.forElement(this); ElementStream get onLoad => loadEvent.forElement(this); ElementStream get onLoadedData => loadedDataEvent.forElement(this); ElementStream get onLoadedMetadata => loadedMetadataEvent.forElement(this); ElementStream get onMouseDown => mouseDownEvent.forElement(this); ElementStream get onMouseEnter => mouseEnterEvent.forElement(this); ElementStream get onMouseLeave => mouseLeaveEvent.forElement(this); ElementStream get onMouseMove => mouseMoveEvent.forElement(this); ElementStream get onMouseOut => mouseOutEvent.forElement(this); ElementStream get onMouseOver => mouseOverEvent.forElement(this); ElementStream get onMouseUp => mouseUpEvent.forElement(this); ElementStream get onMouseWheel => mouseWheelEvent.forElement(this); ElementStream get onPause => pauseEvent.forElement(this); ElementStream get onPlay => playEvent.forElement(this); ElementStream get onPlaying => playingEvent.forElement(this); ElementStream get onRateChange => rateChangeEvent.forElement(this); ElementStream get onReset => resetEvent.forElement(this); ElementStream get onResize => resizeEvent.forElement(this); ElementStream get onScroll => scrollEvent.forElement(this); ElementStream get onSeeked => seekedEvent.forElement(this); ElementStream get onSeeking => seekingEvent.forElement(this); ElementStream get onSelect => selectEvent.forElement(this); ElementStream get onStalled => stalledEvent.forElement(this); ElementStream get onSubmit => submitEvent.forElement(this); ElementStream get onSuspend => suspendEvent.forElement(this); ElementStream get onTimeUpdate => timeUpdateEvent.forElement(this); ElementStream get onTouchCancel => touchCancelEvent.forElement(this); ElementStream get onTouchEnd => touchEndEvent.forElement(this); ElementStream get onTouchMove => touchMoveEvent.forElement(this); ElementStream get onTouchStart => touchStartEvent.forElement(this); ElementStream get onVolumeChange => volumeChangeEvent.forElement(this); ElementStream get onWaiting => waitingEvent.forElement(this); ElementStream get onWheel => wheelEvent.forElement(this); } // 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. @Unstable() @Native("SVGSVGElement") class SvgSvgElement extends GraphicsElement implements FitToViewBox, ZoomAndPan { factory SvgSvgElement() { final el = new SvgElement.tag("svg"); // The SVG spec requires the version attribute to match the spec version el.attributes['version'] = "1.1"; return el as SvgSvgElement; } // To suppress missing implicit constructor warnings. factory SvgSvgElement._() { throw new UnsupportedError("Not supported"); } num? get currentScale native; set currentScale(num? value) native; Point? get currentTranslate native; AnimatedLength? get height native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y native; bool animationsPaused() native; bool checkEnclosure(SvgElement element, Rect rect) native; bool checkIntersection(SvgElement element, Rect rect) native; @JSName('createSVGAngle') Angle createSvgAngle() native; @JSName('createSVGLength') Length createSvgLength() native; @JSName('createSVGMatrix') Matrix createSvgMatrix() native; @JSName('createSVGNumber') Number createSvgNumber() native; @JSName('createSVGPoint') Point createSvgPoint() native; @JSName('createSVGRect') Rect createSvgRect() native; @JSName('createSVGTransform') Transform createSvgTransform() native; @JSName('createSVGTransformFromMatrix') Transform createSvgTransformFromMatrix(Matrix matrix) native; void deselectAll() native; void forceRedraw() native; double getCurrentTime() native; Element getElementById(String elementId) native; @Returns('NodeList') @Creates('NodeList') List getEnclosureList(Rect rect, SvgElement? referenceElement) native; @Returns('NodeList') @Creates('NodeList') List getIntersectionList( Rect rect, SvgElement? referenceElement, ) native; void pauseAnimations() native; void setCurrentTime(num seconds) native; int suspendRedraw(int maxWaitMilliseconds) native; void unpauseAnimations() native; void unsuspendRedraw(int suspendHandleId) native; void unsuspendRedrawAll() native; // From SVGFitToViewBox AnimatedPreserveAspectRatio? get preserveAspectRatio native; AnimatedRect? get viewBox native; // From SVGZoomAndPan int? get zoomAndPan native; set zoomAndPan(int? value) 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. @Unstable() @Native("SVGSwitchElement") class SwitchElement extends GraphicsElement { // To suppress missing implicit constructor warnings. factory SwitchElement._() { throw new UnsupportedError("Not supported"); } factory SwitchElement() => _SvgElementFactoryProvider.createSvgElement_tag("switch") as SwitchElement; } // 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. @Unstable() @Native("SVGSymbolElement") class SymbolElement extends SvgElement implements FitToViewBox { // To suppress missing implicit constructor warnings. factory SymbolElement._() { throw new UnsupportedError("Not supported"); } factory SymbolElement() => _SvgElementFactoryProvider.createSvgElement_tag("symbol") as SymbolElement; // From SVGFitToViewBox AnimatedPreserveAspectRatio? get preserveAspectRatio native; AnimatedRect? get viewBox 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. @Unstable() @Native("SVGTSpanElement") class TSpanElement extends TextPositioningElement { // To suppress missing implicit constructor warnings. factory TSpanElement._() { throw new UnsupportedError("Not supported"); } factory TSpanElement() => _SvgElementFactoryProvider.createSvgElement_tag("tspan") as TSpanElement; } // 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. @Unstable() abstract class Tests extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory Tests._() { throw new UnsupportedError("Not supported"); } StringList? get requiredExtensions native; StringList? get systemLanguage 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. @Unstable() @Native("SVGTextContentElement") class TextContentElement extends GraphicsElement { // To suppress missing implicit constructor warnings. factory TextContentElement._() { throw new UnsupportedError("Not supported"); } static const int LENGTHADJUST_SPACING = 1; static const int LENGTHADJUST_SPACINGANDGLYPHS = 2; static const int LENGTHADJUST_UNKNOWN = 0; AnimatedEnumeration? get lengthAdjust native; AnimatedLength? get textLength native; int getCharNumAtPosition(Point point) native; double getComputedTextLength() native; Point getEndPositionOfChar(int charnum) native; Rect getExtentOfChar(int charnum) native; int getNumberOfChars() native; double getRotationOfChar(int charnum) native; Point getStartPositionOfChar(int charnum) native; double getSubStringLength(int charnum, int nchars) native; void selectSubString(int charnum, int nchars) 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. @Unstable() @Native("SVGTextElement") class TextElement extends TextPositioningElement { // To suppress missing implicit constructor warnings. factory TextElement._() { throw new UnsupportedError("Not supported"); } factory TextElement() => _SvgElementFactoryProvider.createSvgElement_tag("text") as TextElement; } // 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. @Unstable() @Native("SVGTextPathElement") class TextPathElement extends TextContentElement implements UriReference { // To suppress missing implicit constructor warnings. factory TextPathElement._() { throw new UnsupportedError("Not supported"); } static const int TEXTPATH_METHODTYPE_ALIGN = 1; static const int TEXTPATH_METHODTYPE_STRETCH = 2; static const int TEXTPATH_METHODTYPE_UNKNOWN = 0; static const int TEXTPATH_SPACINGTYPE_AUTO = 1; static const int TEXTPATH_SPACINGTYPE_EXACT = 2; static const int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; AnimatedEnumeration? get method native; AnimatedEnumeration? get spacing native; AnimatedLength? get startOffset native; // From SVGURIReference AnimatedString? get href 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. @Unstable() @Native("SVGTextPositioningElement") class TextPositioningElement extends TextContentElement { // To suppress missing implicit constructor warnings. factory TextPositioningElement._() { throw new UnsupportedError("Not supported"); } AnimatedLengthList? get dx native; AnimatedLengthList? get dy native; AnimatedNumberList? get rotate native; AnimatedLengthList? get x native; AnimatedLengthList? get y 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. @Unstable() @Native("SVGTitleElement") class TitleElement extends SvgElement { // To suppress missing implicit constructor warnings. factory TitleElement._() { throw new UnsupportedError("Not supported"); } factory TitleElement() => _SvgElementFactoryProvider.createSvgElement_tag("title") as TitleElement; } // 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. @Unstable() @Native("SVGTransform") class Transform extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory Transform._() { throw new UnsupportedError("Not supported"); } static const int SVG_TRANSFORM_MATRIX = 1; static const int SVG_TRANSFORM_ROTATE = 4; static const int SVG_TRANSFORM_SCALE = 3; static const int SVG_TRANSFORM_SKEWX = 5; static const int SVG_TRANSFORM_SKEWY = 6; static const int SVG_TRANSFORM_TRANSLATE = 2; static const int SVG_TRANSFORM_UNKNOWN = 0; num? get angle native; Matrix? get matrix native; int? get type native; void setMatrix(Matrix matrix) native; void setRotate(num angle, num cx, num cy) native; void setScale(num sx, num sy) native; void setSkewX(num angle) native; void setSkewY(num angle) native; void setTranslate(num tx, num ty) 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. @Unstable() @Native("SVGTransformList") class TransformList extends JavaScriptObject with ListMixin, ImmutableListMixin implements List { // To suppress missing implicit constructor warnings. factory TransformList._() { throw new UnsupportedError("Not supported"); } int get length => JS("int", "#.length", this); int? get numberOfItems native; Transform operator [](int index) { if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length)) throw new IndexError.withLength(index, length, indexable: this); return this.getItem(index); } void operator []=(int index, Transform value) { throw new UnsupportedError("Cannot assign element of immutable List."); } // -- start List mixins. // Transform is the element type. set length(int newLength) { throw new UnsupportedError("Cannot resize immutable List."); } Transform get first { if (this.length > 0) { return JS('Transform', '#[0]', this); } throw new StateError("No elements"); } Transform get last { int len = this.length; if (len > 0) { return JS('Transform', '#[#]', this, len - 1); } throw new StateError("No elements"); } Transform get single { int len = this.length; if (len == 1) { return JS('Transform', '#[0]', this); } if (len == 0) throw new StateError("No elements"); throw new StateError("More than one element"); } Transform elementAt(int index) => this[index]; // -- end List mixins. void __setter__(int index, Transform newItem) native; Transform appendItem(Transform newItem) native; void clear() native; Transform? consolidate() native; @JSName('createSVGTransformFromMatrix') Transform createSvgTransformFromMatrix(Matrix matrix) native; Transform getItem(int index) native; Transform initialize(Transform newItem) native; Transform insertItemBefore(Transform newItem, int index) native; Transform removeItem(int index) native; Transform replaceItem(Transform newItem, 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. @Unstable() @Native("SVGUnitTypes") class UnitTypes extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory UnitTypes._() { throw new UnsupportedError("Not supported"); } static const int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; static const int SVG_UNIT_TYPE_UNKNOWN = 0; static const int SVG_UNIT_TYPE_USERSPACEONUSE = 1; } // 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. @Unstable() abstract class UriReference extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory UriReference._() { throw new UnsupportedError("Not supported"); } AnimatedString? get href 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. @Unstable() @Native("SVGUseElement") class UseElement extends GraphicsElement implements UriReference { // To suppress missing implicit constructor warnings. factory UseElement._() { throw new UnsupportedError("Not supported"); } factory UseElement() => _SvgElementFactoryProvider.createSvgElement_tag("use") as UseElement; AnimatedLength? get height native; AnimatedLength? get width native; AnimatedLength? get x native; AnimatedLength? get y native; // From SVGURIReference AnimatedString? get href 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. @Unstable() @Native("SVGViewElement") class ViewElement extends SvgElement implements FitToViewBox, ZoomAndPan { // To suppress missing implicit constructor warnings. factory ViewElement._() { throw new UnsupportedError("Not supported"); } factory ViewElement() => _SvgElementFactoryProvider.createSvgElement_tag("view") as ViewElement; // From SVGFitToViewBox AnimatedPreserveAspectRatio? get preserveAspectRatio native; AnimatedRect? get viewBox native; // From SVGZoomAndPan int? get zoomAndPan native; set zoomAndPan(int? value) 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. @Unstable() abstract class ZoomAndPan extends JavaScriptObject { // To suppress missing implicit constructor warnings. factory ZoomAndPan._() { throw new UnsupportedError("Not supported"); } static const int SVG_ZOOMANDPAN_DISABLE = 1; static const int SVG_ZOOMANDPAN_MAGNIFY = 2; static const int SVG_ZOOMANDPAN_UNKNOWN = 0; int? get zoomAndPan native; set zoomAndPan(int? value) 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. @Unstable() @Native("SVGGradientElement") class _GradientElement extends SvgElement implements UriReference { // To suppress missing implicit constructor warnings. factory _GradientElement._() { throw new UnsupportedError("Not supported"); } 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; AnimatedTransformList? get gradientTransform native; AnimatedEnumeration? get gradientUnits native; AnimatedEnumeration? get spreadMethod native; // From SVGURIReference AnimatedString? get href 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. @Unstable() @Native("SVGComponentTransferFunctionElement") abstract class _SVGComponentTransferFunctionElement extends SvgElement { // To suppress missing implicit constructor warnings. factory _SVGComponentTransferFunctionElement._() { throw new UnsupportedError("Not supported"); } } // 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. @Native("SVGFEDropShadowElement") abstract class _SVGFEDropShadowElement extends SvgElement implements FilterPrimitiveStandardAttributes { // To suppress missing implicit constructor warnings. factory _SVGFEDropShadowElement._() { throw new UnsupportedError("Not supported"); } // From SVGFilterPrimitiveStandardAttributes } // 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. @Native("SVGMPathElement") abstract class _SVGMPathElement extends SvgElement implements UriReference { // To suppress missing implicit constructor warnings. factory _SVGMPathElement._() { throw new UnsupportedError("Not supported"); } factory _SVGMPathElement() => _SvgElementFactoryProvider.createSvgElement_tag("mpath") as _SVGMPathElement; // From SVGURIReference }