Index: sdk/lib/svg/dart2js/svg_dart2js.dart |
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart |
index 117dd03a1b7dd9e3d992cf42a8f42c948dc354fb..a9fede0869f899739d1285c29b7af006d571d4c1 100644 |
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart |
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart |
@@ -15,20 +15,20 @@ import 'dart:html'; |
final _START_TAG_REGEXP = const RegExp('<(\\w+)'); |
-class _SVGElementFactoryProvider { |
- static SVGElement createSVGElement_tag(String tag) { |
+class _SvgElementFactoryProvider { |
+ static SvgElement createSvgElement_tag(String tag) { |
final Element temp = |
document.$dom_createElementNS("http://www.w3.org/2000/svg", tag); |
return temp; |
} |
- static SVGElement createSVGElement_svg(String svg) { |
+ static SvgElement createSvgElement_svg(String svg) { |
Element parentTag; |
final match = _START_TAG_REGEXP.firstMatch(svg); |
if (match != null && match.group(1).toLowerCase() == 'svg') { |
parentTag = new Element.tag('div'); |
} else { |
- parentTag = new SVGSVGElement(); |
+ parentTag = new SvgSvgElement(); |
} |
parentTag.innerHTML = svg; |
@@ -40,9 +40,9 @@ class _SVGElementFactoryProvider { |
} |
} |
-class _SVGSVGElementFactoryProvider { |
- static SVGSVGElement createSVGSVGElement() { |
- final el = new SVGElement.tag("svg"); |
+class _SvgSvgElementFactoryProvider { |
+ static SvgSvgElement createSvgSvgElement() { |
+ 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; |
@@ -54,15 +54,15 @@ class _SVGSVGElementFactoryProvider { |
/// @domName SVGAElement |
-class SVGAElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable native "*SVGAElement" { |
+class AElement extends SvgElement implements Transformable, Tests, UriReference, Stylable, ExternalResourcesRequired, LangSpace native "*SVGAElement" { |
/** @domName SVGAElement.target */ |
- final SVGAnimatedString target; |
+ final AnimatedString target; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -75,27 +75,27 @@ class SVGAElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStyla |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -106,13 +106,13 @@ class SVGAElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStyla |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -120,12 +120,12 @@ class SVGAElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStyla |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -133,7 +133,7 @@ class SVGAElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStyla |
/// @domName SVGAltGlyphDefElement |
-class SVGAltGlyphDefElement extends SVGElement native "*SVGAltGlyphDefElement" { |
+class AltGlyphDefElement extends SvgElement native "*SVGAltGlyphDefElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -141,7 +141,7 @@ class SVGAltGlyphDefElement extends SVGElement native "*SVGAltGlyphDefElement" { |
/// @domName SVGAltGlyphElement |
-class SVGAltGlyphElement extends SVGTextPositioningElement implements SVGURIReference native "*SVGAltGlyphElement" { |
+class AltGlyphElement extends TextPositioningElement implements UriReference native "*SVGAltGlyphElement" { |
/** @domName SVGAltGlyphElement.format */ |
String format; |
@@ -152,7 +152,7 @@ class SVGAltGlyphElement extends SVGTextPositioningElement implements SVGURIRefe |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -160,7 +160,7 @@ class SVGAltGlyphElement extends SVGTextPositioningElement implements SVGURIRefe |
/// @domName SVGAltGlyphItemElement |
-class SVGAltGlyphItemElement extends SVGElement native "*SVGAltGlyphItemElement" { |
+class AltGlyphItemElement extends SvgElement native "*SVGAltGlyphItemElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -168,7 +168,7 @@ class SVGAltGlyphItemElement extends SVGElement native "*SVGAltGlyphItemElement" |
/// @domName SVGAngle |
-class SVGAngle native "*SVGAngle" { |
+class Angle native "*SVGAngle" { |
static const int SVG_ANGLETYPE_DEG = 2; |
@@ -204,7 +204,7 @@ class SVGAngle native "*SVGAngle" { |
/// @domName SVGAnimateColorElement |
-class SVGAnimateColorElement extends SVGAnimationElement native "*SVGAnimateColorElement" { |
+class AnimateColorElement extends AnimationElement native "*SVGAnimateColorElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -212,7 +212,7 @@ class SVGAnimateColorElement extends SVGAnimationElement native "*SVGAnimateColo |
/// @domName SVGAnimateElement |
-class SVGAnimateElement extends SVGAnimationElement native "*SVGAnimateElement" { |
+class AnimateElement extends AnimationElement native "*SVGAnimateElement" { |
} |
// 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 |
@@ -220,7 +220,7 @@ class SVGAnimateElement extends SVGAnimationElement native "*SVGAnimateElement" |
/// @domName SVGAnimateMotionElement |
-class SVGAnimateMotionElement extends SVGAnimationElement native "*SVGAnimateMotionElement" { |
+class AnimateMotionElement extends AnimationElement native "*SVGAnimateMotionElement" { |
} |
// 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 |
@@ -228,7 +228,7 @@ class SVGAnimateMotionElement extends SVGAnimationElement native "*SVGAnimateMot |
/// @domName SVGAnimateTransformElement |
-class SVGAnimateTransformElement extends SVGAnimationElement native "*SVGAnimateTransformElement" { |
+class AnimateTransformElement extends AnimationElement native "*SVGAnimateTransformElement" { |
} |
// 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 |
@@ -236,13 +236,13 @@ class SVGAnimateTransformElement extends SVGAnimationElement native "*SVGAnimate |
/// @domName SVGAnimatedAngle |
-class SVGAnimatedAngle native "*SVGAnimatedAngle" { |
+class AnimatedAngle native "*SVGAnimatedAngle" { |
/** @domName SVGAnimatedAngle.animVal */ |
- final SVGAngle animVal; |
+ final Angle animVal; |
/** @domName SVGAnimatedAngle.baseVal */ |
- final SVGAngle baseVal; |
+ final Angle baseVal; |
} |
// 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 |
@@ -250,7 +250,7 @@ class SVGAnimatedAngle native "*SVGAnimatedAngle" { |
/// @domName SVGAnimatedBoolean |
-class SVGAnimatedBoolean native "*SVGAnimatedBoolean" { |
+class AnimatedBoolean native "*SVGAnimatedBoolean" { |
/** @domName SVGAnimatedBoolean.animVal */ |
final bool animVal; |
@@ -264,7 +264,7 @@ class SVGAnimatedBoolean native "*SVGAnimatedBoolean" { |
/// @domName SVGAnimatedEnumeration |
-class SVGAnimatedEnumeration native "*SVGAnimatedEnumeration" { |
+class AnimatedEnumeration native "*SVGAnimatedEnumeration" { |
/** @domName SVGAnimatedEnumeration.animVal */ |
final int animVal; |
@@ -278,7 +278,7 @@ class SVGAnimatedEnumeration native "*SVGAnimatedEnumeration" { |
/// @domName SVGAnimatedInteger |
-class SVGAnimatedInteger native "*SVGAnimatedInteger" { |
+class AnimatedInteger native "*SVGAnimatedInteger" { |
/** @domName SVGAnimatedInteger.animVal */ |
final int animVal; |
@@ -292,13 +292,13 @@ class SVGAnimatedInteger native "*SVGAnimatedInteger" { |
/// @domName SVGAnimatedLength |
-class SVGAnimatedLength native "*SVGAnimatedLength" { |
+class AnimatedLength native "*SVGAnimatedLength" { |
/** @domName SVGAnimatedLength.animVal */ |
- final SVGLength animVal; |
+ final Length animVal; |
/** @domName SVGAnimatedLength.baseVal */ |
- final SVGLength baseVal; |
+ final Length baseVal; |
} |
// 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 |
@@ -306,81 +306,81 @@ class SVGAnimatedLength native "*SVGAnimatedLength" { |
/// @domName SVGAnimatedLengthList |
-class SVGAnimatedLengthList implements JavaScriptIndexingBehavior, List<SVGAnimatedLength> native "*SVGAnimatedLengthList" { |
+class AnimatedLengthList implements JavaScriptIndexingBehavior, List<AnimatedLength> native "*SVGAnimatedLengthList" { |
/** @domName SVGAnimatedLengthList.animVal */ |
- final SVGLengthList animVal; |
+ final LengthList animVal; |
/** @domName SVGAnimatedLengthList.baseVal */ |
- final SVGLengthList baseVal; |
+ final LengthList baseVal; |
- SVGAnimatedLength operator[](int index) => JS("SVGAnimatedLength", "#[#]", this, index); |
+ AnimatedLength operator[](int index) => JS("AnimatedLength", "#[#]", this, index); |
- void operator[]=(int index, SVGAnimatedLength value) { |
+ void operator[]=(int index, AnimatedLength value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
} |
- // -- start List<SVGAnimatedLength> mixins. |
- // SVGAnimatedLength is the element type. |
+ // -- start List<AnimatedLength> mixins. |
+ // AnimatedLength is the element type. |
- // From Iterable<SVGAnimatedLength>: |
+ // From Iterable<AnimatedLength>: |
- Iterator<SVGAnimatedLength> iterator() { |
+ Iterator<AnimatedLength> iterator() { |
// Note: NodeLists are not fixed size. And most probably length shouldn't |
// be cached in both iterator _and_ forEach method. For now caching it |
// for consistency. |
- return new FixedSizeListIterator<SVGAnimatedLength>(this); |
+ return new FixedSizeListIterator<AnimatedLength>(this); |
} |
- // From Collection<SVGAnimatedLength>: |
+ // From Collection<AnimatedLength>: |
- void add(SVGAnimatedLength value) { |
+ void add(AnimatedLength value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addLast(SVGAnimatedLength value) { |
+ void addLast(AnimatedLength value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addAll(Collection<SVGAnimatedLength> collection) { |
+ void addAll(Collection<AnimatedLength> collection) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- bool contains(SVGAnimatedLength element) => _Collections.contains(this, element); |
+ bool contains(AnimatedLength element) => _Collections.contains(this, element); |
- void forEach(void f(SVGAnimatedLength element)) => _Collections.forEach(this, f); |
+ void forEach(void f(AnimatedLength element)) => _Collections.forEach(this, f); |
- Collection map(f(SVGAnimatedLength element)) => _Collections.map(this, [], f); |
+ Collection map(f(AnimatedLength element)) => _Collections.map(this, [], f); |
- Collection<SVGAnimatedLength> filter(bool f(SVGAnimatedLength element)) => |
- _Collections.filter(this, <SVGAnimatedLength>[], f); |
+ Collection<AnimatedLength> filter(bool f(AnimatedLength element)) => |
+ _Collections.filter(this, <AnimatedLength>[], f); |
- bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f); |
+ bool every(bool f(AnimatedLength element)) => _Collections.every(this, f); |
- bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f); |
+ bool some(bool f(AnimatedLength element)) => _Collections.some(this, f); |
bool get isEmpty => this.length == 0; |
- // From List<SVGAnimatedLength>: |
+ // From List<AnimatedLength>: |
- void sort([Comparator<SVGAnimatedLength> compare = Comparable.compare]) { |
+ void sort([Comparator<AnimatedLength> compare = Comparable.compare]) { |
throw new UnsupportedError("Cannot sort immutable List."); |
} |
- int indexOf(SVGAnimatedLength element, [int start = 0]) => |
+ int indexOf(AnimatedLength element, [int start = 0]) => |
_Lists.indexOf(this, element, start, this.length); |
- int lastIndexOf(SVGAnimatedLength element, [int start]) { |
+ int lastIndexOf(AnimatedLength element, [int start]) { |
if (start == null) start = length - 1; |
return _Lists.lastIndexOf(this, element, start); |
} |
- SVGAnimatedLength get last => this[length - 1]; |
+ AnimatedLength get last => this[length - 1]; |
- SVGAnimatedLength removeLast() { |
+ AnimatedLength removeLast() { |
throw new UnsupportedError("Cannot removeLast on immutable List."); |
} |
- void setRange(int start, int rangeLength, List<SVGAnimatedLength> from, [int startFrom]) { |
+ void setRange(int start, int rangeLength, List<AnimatedLength> from, [int startFrom]) { |
throw new UnsupportedError("Cannot setRange on immutable List."); |
} |
@@ -388,14 +388,14 @@ class SVGAnimatedLengthList implements JavaScriptIndexingBehavior, List<SVGAnima |
throw new UnsupportedError("Cannot removeRange on immutable List."); |
} |
- void insertRange(int start, int rangeLength, [SVGAnimatedLength initialValue]) { |
+ void insertRange(int start, int rangeLength, [AnimatedLength initialValue]) { |
throw new UnsupportedError("Cannot insertRange on immutable List."); |
} |
- List<SVGAnimatedLength> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <SVGAnimatedLength>[]); |
+ List<AnimatedLength> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <AnimatedLength>[]); |
- // -- end List<SVGAnimatedLength> mixins. |
+ // -- end List<AnimatedLength> mixins. |
} |
// 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 |
@@ -403,7 +403,7 @@ class SVGAnimatedLengthList implements JavaScriptIndexingBehavior, List<SVGAnima |
/// @domName SVGAnimatedNumber |
-class SVGAnimatedNumber native "*SVGAnimatedNumber" { |
+class AnimatedNumber native "*SVGAnimatedNumber" { |
/** @domName SVGAnimatedNumber.animVal */ |
final num animVal; |
@@ -417,81 +417,81 @@ class SVGAnimatedNumber native "*SVGAnimatedNumber" { |
/// @domName SVGAnimatedNumberList |
-class SVGAnimatedNumberList implements JavaScriptIndexingBehavior, List<SVGAnimatedNumber> native "*SVGAnimatedNumberList" { |
+class AnimatedNumberList implements JavaScriptIndexingBehavior, List<AnimatedNumber> native "*SVGAnimatedNumberList" { |
/** @domName SVGAnimatedNumberList.animVal */ |
- final SVGNumberList animVal; |
+ final NumberList animVal; |
/** @domName SVGAnimatedNumberList.baseVal */ |
- final SVGNumberList baseVal; |
+ final NumberList baseVal; |
- SVGAnimatedNumber operator[](int index) => JS("SVGAnimatedNumber", "#[#]", this, index); |
+ AnimatedNumber operator[](int index) => JS("AnimatedNumber", "#[#]", this, index); |
- void operator[]=(int index, SVGAnimatedNumber value) { |
+ void operator[]=(int index, AnimatedNumber value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
} |
- // -- start List<SVGAnimatedNumber> mixins. |
- // SVGAnimatedNumber is the element type. |
+ // -- start List<AnimatedNumber> mixins. |
+ // AnimatedNumber is the element type. |
- // From Iterable<SVGAnimatedNumber>: |
+ // From Iterable<AnimatedNumber>: |
- Iterator<SVGAnimatedNumber> iterator() { |
+ Iterator<AnimatedNumber> iterator() { |
// Note: NodeLists are not fixed size. And most probably length shouldn't |
// be cached in both iterator _and_ forEach method. For now caching it |
// for consistency. |
- return new FixedSizeListIterator<SVGAnimatedNumber>(this); |
+ return new FixedSizeListIterator<AnimatedNumber>(this); |
} |
- // From Collection<SVGAnimatedNumber>: |
+ // From Collection<AnimatedNumber>: |
- void add(SVGAnimatedNumber value) { |
+ void add(AnimatedNumber value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addLast(SVGAnimatedNumber value) { |
+ void addLast(AnimatedNumber value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addAll(Collection<SVGAnimatedNumber> collection) { |
+ void addAll(Collection<AnimatedNumber> collection) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- bool contains(SVGAnimatedNumber element) => _Collections.contains(this, element); |
+ bool contains(AnimatedNumber element) => _Collections.contains(this, element); |
- void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f); |
+ void forEach(void f(AnimatedNumber element)) => _Collections.forEach(this, f); |
- Collection map(f(SVGAnimatedNumber element)) => _Collections.map(this, [], f); |
+ Collection map(f(AnimatedNumber element)) => _Collections.map(this, [], f); |
- Collection<SVGAnimatedNumber> filter(bool f(SVGAnimatedNumber element)) => |
- _Collections.filter(this, <SVGAnimatedNumber>[], f); |
+ Collection<AnimatedNumber> filter(bool f(AnimatedNumber element)) => |
+ _Collections.filter(this, <AnimatedNumber>[], f); |
- bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f); |
+ bool every(bool f(AnimatedNumber element)) => _Collections.every(this, f); |
- bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f); |
+ bool some(bool f(AnimatedNumber element)) => _Collections.some(this, f); |
bool get isEmpty => this.length == 0; |
- // From List<SVGAnimatedNumber>: |
+ // From List<AnimatedNumber>: |
- void sort([Comparator<SVGAnimatedNumber> compare = Comparable.compare]) { |
+ void sort([Comparator<AnimatedNumber> compare = Comparable.compare]) { |
throw new UnsupportedError("Cannot sort immutable List."); |
} |
- int indexOf(SVGAnimatedNumber element, [int start = 0]) => |
+ int indexOf(AnimatedNumber element, [int start = 0]) => |
_Lists.indexOf(this, element, start, this.length); |
- int lastIndexOf(SVGAnimatedNumber element, [int start]) { |
+ int lastIndexOf(AnimatedNumber element, [int start]) { |
if (start == null) start = length - 1; |
return _Lists.lastIndexOf(this, element, start); |
} |
- SVGAnimatedNumber get last => this[length - 1]; |
+ AnimatedNumber get last => this[length - 1]; |
- SVGAnimatedNumber removeLast() { |
+ AnimatedNumber removeLast() { |
throw new UnsupportedError("Cannot removeLast on immutable List."); |
} |
- void setRange(int start, int rangeLength, List<SVGAnimatedNumber> from, [int startFrom]) { |
+ void setRange(int start, int rangeLength, List<AnimatedNumber> from, [int startFrom]) { |
throw new UnsupportedError("Cannot setRange on immutable List."); |
} |
@@ -499,14 +499,14 @@ class SVGAnimatedNumberList implements JavaScriptIndexingBehavior, List<SVGAnima |
throw new UnsupportedError("Cannot removeRange on immutable List."); |
} |
- void insertRange(int start, int rangeLength, [SVGAnimatedNumber initialValue]) { |
+ void insertRange(int start, int rangeLength, [AnimatedNumber initialValue]) { |
throw new UnsupportedError("Cannot insertRange on immutable List."); |
} |
- List<SVGAnimatedNumber> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <SVGAnimatedNumber>[]); |
+ List<AnimatedNumber> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <AnimatedNumber>[]); |
- // -- end List<SVGAnimatedNumber> mixins. |
+ // -- end List<AnimatedNumber> mixins. |
} |
// 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 |
@@ -514,13 +514,13 @@ class SVGAnimatedNumberList implements JavaScriptIndexingBehavior, List<SVGAnima |
/// @domName SVGAnimatedPreserveAspectRatio |
-class SVGAnimatedPreserveAspectRatio native "*SVGAnimatedPreserveAspectRatio" { |
+class AnimatedPreserveAspectRatio native "*SVGAnimatedPreserveAspectRatio" { |
/** @domName SVGAnimatedPreserveAspectRatio.animVal */ |
- final SVGPreserveAspectRatio animVal; |
+ final PreserveAspectRatio animVal; |
/** @domName SVGAnimatedPreserveAspectRatio.baseVal */ |
- final SVGPreserveAspectRatio baseVal; |
+ final PreserveAspectRatio baseVal; |
} |
// 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 |
@@ -528,13 +528,13 @@ class SVGAnimatedPreserveAspectRatio native "*SVGAnimatedPreserveAspectRatio" { |
/// @domName SVGAnimatedRect |
-class SVGAnimatedRect native "*SVGAnimatedRect" { |
+class AnimatedRect native "*SVGAnimatedRect" { |
/** @domName SVGAnimatedRect.animVal */ |
- final SVGRect animVal; |
+ final Rect animVal; |
/** @domName SVGAnimatedRect.baseVal */ |
- final SVGRect baseVal; |
+ final Rect baseVal; |
} |
// 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 |
@@ -542,7 +542,7 @@ class SVGAnimatedRect native "*SVGAnimatedRect" { |
/// @domName SVGAnimatedString |
-class SVGAnimatedString native "*SVGAnimatedString" { |
+class AnimatedString native "*SVGAnimatedString" { |
/** @domName SVGAnimatedString.animVal */ |
final String animVal; |
@@ -556,81 +556,81 @@ class SVGAnimatedString native "*SVGAnimatedString" { |
/// @domName SVGAnimatedTransformList |
-class SVGAnimatedTransformList implements JavaScriptIndexingBehavior, List<SVGAnimateTransformElement> native "*SVGAnimatedTransformList" { |
+class AnimatedTransformList implements JavaScriptIndexingBehavior, List<AnimateTransformElement> native "*SVGAnimatedTransformList" { |
/** @domName SVGAnimatedTransformList.animVal */ |
- final SVGTransformList animVal; |
+ final TransformList animVal; |
/** @domName SVGAnimatedTransformList.baseVal */ |
- final SVGTransformList baseVal; |
+ final TransformList baseVal; |
- SVGAnimateTransformElement operator[](int index) => JS("SVGAnimateTransformElement", "#[#]", this, index); |
+ AnimateTransformElement operator[](int index) => JS("AnimateTransformElement", "#[#]", this, index); |
- void operator[]=(int index, SVGAnimateTransformElement value) { |
+ void operator[]=(int index, AnimateTransformElement value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
} |
- // -- start List<SVGAnimateTransformElement> mixins. |
- // SVGAnimateTransformElement is the element type. |
+ // -- start List<AnimateTransformElement> mixins. |
+ // AnimateTransformElement is the element type. |
- // From Iterable<SVGAnimateTransformElement>: |
+ // From Iterable<AnimateTransformElement>: |
- Iterator<SVGAnimateTransformElement> iterator() { |
+ Iterator<AnimateTransformElement> iterator() { |
// Note: NodeLists are not fixed size. And most probably length shouldn't |
// be cached in both iterator _and_ forEach method. For now caching it |
// for consistency. |
- return new FixedSizeListIterator<SVGAnimateTransformElement>(this); |
+ return new FixedSizeListIterator<AnimateTransformElement>(this); |
} |
- // From Collection<SVGAnimateTransformElement>: |
+ // From Collection<AnimateTransformElement>: |
- void add(SVGAnimateTransformElement value) { |
+ void add(AnimateTransformElement value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addLast(SVGAnimateTransformElement value) { |
+ void addLast(AnimateTransformElement value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addAll(Collection<SVGAnimateTransformElement> collection) { |
+ void addAll(Collection<AnimateTransformElement> collection) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- bool contains(SVGAnimateTransformElement element) => _Collections.contains(this, element); |
+ bool contains(AnimateTransformElement element) => _Collections.contains(this, element); |
- void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEach(this, f); |
+ void forEach(void f(AnimateTransformElement element)) => _Collections.forEach(this, f); |
- Collection map(f(SVGAnimateTransformElement element)) => _Collections.map(this, [], f); |
+ Collection map(f(AnimateTransformElement element)) => _Collections.map(this, [], f); |
- Collection<SVGAnimateTransformElement> filter(bool f(SVGAnimateTransformElement element)) => |
- _Collections.filter(this, <SVGAnimateTransformElement>[], f); |
+ Collection<AnimateTransformElement> filter(bool f(AnimateTransformElement element)) => |
+ _Collections.filter(this, <AnimateTransformElement>[], f); |
- bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(this, f); |
+ bool every(bool f(AnimateTransformElement element)) => _Collections.every(this, f); |
- bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(this, f); |
+ bool some(bool f(AnimateTransformElement element)) => _Collections.some(this, f); |
bool get isEmpty => this.length == 0; |
- // From List<SVGAnimateTransformElement>: |
+ // From List<AnimateTransformElement>: |
- void sort([Comparator<SVGAnimateTransformElement> compare = Comparable.compare]) { |
+ void sort([Comparator<AnimateTransformElement> compare = Comparable.compare]) { |
throw new UnsupportedError("Cannot sort immutable List."); |
} |
- int indexOf(SVGAnimateTransformElement element, [int start = 0]) => |
+ int indexOf(AnimateTransformElement element, [int start = 0]) => |
_Lists.indexOf(this, element, start, this.length); |
- int lastIndexOf(SVGAnimateTransformElement element, [int start]) { |
+ int lastIndexOf(AnimateTransformElement element, [int start]) { |
if (start == null) start = length - 1; |
return _Lists.lastIndexOf(this, element, start); |
} |
- SVGAnimateTransformElement get last => this[length - 1]; |
+ AnimateTransformElement get last => this[length - 1]; |
- SVGAnimateTransformElement removeLast() { |
+ AnimateTransformElement removeLast() { |
throw new UnsupportedError("Cannot removeLast on immutable List."); |
} |
- void setRange(int start, int rangeLength, List<SVGAnimateTransformElement> from, [int startFrom]) { |
+ void setRange(int start, int rangeLength, List<AnimateTransformElement> from, [int startFrom]) { |
throw new UnsupportedError("Cannot setRange on immutable List."); |
} |
@@ -638,14 +638,14 @@ class SVGAnimatedTransformList implements JavaScriptIndexingBehavior, List<SVGAn |
throw new UnsupportedError("Cannot removeRange on immutable List."); |
} |
- void insertRange(int start, int rangeLength, [SVGAnimateTransformElement initialValue]) { |
+ void insertRange(int start, int rangeLength, [AnimateTransformElement initialValue]) { |
throw new UnsupportedError("Cannot insertRange on immutable List."); |
} |
- List<SVGAnimateTransformElement> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <SVGAnimateTransformElement>[]); |
+ List<AnimateTransformElement> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <AnimateTransformElement>[]); |
- // -- end List<SVGAnimateTransformElement> mixins. |
+ // -- end List<AnimateTransformElement> mixins. |
} |
// 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 |
@@ -653,10 +653,10 @@ class SVGAnimatedTransformList implements JavaScriptIndexingBehavior, List<SVGAn |
/// @domName SVGAnimationElement |
-class SVGAnimationElement extends SVGElement implements ElementTimeControl, SVGTests, SVGExternalResourcesRequired native "*SVGAnimationElement" { |
+class AnimationElement extends SvgElement implements Tests, ElementTimeControl, ExternalResourcesRequired native "*SVGAnimationElement" { |
/** @domName SVGAnimationElement.targetElement */ |
- final SVGElement targetElement; |
+ final SvgElement targetElement; |
/** @domName SVGAnimationElement.getCurrentTime */ |
num getCurrentTime() native; |
@@ -684,18 +684,18 @@ class SVGAnimationElement extends SVGElement implements ElementTimeControl, SVGT |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -706,21 +706,21 @@ class SVGAnimationElement extends SVGElement implements ElementTimeControl, SVGT |
/// @domName SVGCircleElement |
-class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGCircleElement" { |
+class CircleElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGCircleElement" { |
/** @domName SVGCircleElement.cx */ |
- final SVGAnimatedLength cx; |
+ final AnimatedLength cx; |
/** @domName SVGCircleElement.cy */ |
- final SVGAnimatedLength cy; |
+ final AnimatedLength cy; |
/** @domName SVGCircleElement.r */ |
- final SVGAnimatedLength r; |
+ final AnimatedLength r; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -733,27 +733,27 @@ class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -764,13 +764,13 @@ class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -778,7 +778,7 @@ class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -786,15 +786,15 @@ class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable, |
/// @domName SVGClipPathElement |
-class SVGClipPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGClipPathElement" { |
+class ClipPathElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGClipPathElement" { |
/** @domName SVGClipPathElement.clipPathUnits */ |
- final SVGAnimatedEnumeration clipPathUnits; |
+ final AnimatedEnumeration clipPathUnits; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -807,27 +807,27 @@ class SVGClipPathElement extends SVGElement implements SVGLangSpace, SVGStylable |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -838,13 +838,13 @@ class SVGClipPathElement extends SVGElement implements SVGLangSpace, SVGStylable |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -852,7 +852,7 @@ class SVGClipPathElement extends SVGElement implements SVGLangSpace, SVGStylable |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -860,7 +860,7 @@ class SVGClipPathElement extends SVGElement implements SVGLangSpace, SVGStylable |
/// @domName SVGColor |
-class SVGColor extends CSSValue native "*SVGColor" { |
+class Color extends CSSValue native "*SVGColor" { |
static const int SVG_COLORTYPE_CURRENTCOLOR = 3; |
@@ -891,7 +891,7 @@ class SVGColor extends CSSValue native "*SVGColor" { |
/// @domName SVGComponentTransferFunctionElement |
-class SVGComponentTransferFunctionElement extends SVGElement native "*SVGComponentTransferFunctionElement" { |
+class ComponentTransferFunctionElement extends SvgElement native "*SVGComponentTransferFunctionElement" { |
static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; |
@@ -906,25 +906,25 @@ class SVGComponentTransferFunctionElement extends SVGElement native "*SVGCompone |
static const int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; |
/** @domName SVGComponentTransferFunctionElement.amplitude */ |
- final SVGAnimatedNumber amplitude; |
+ final AnimatedNumber amplitude; |
/** @domName SVGComponentTransferFunctionElement.exponent */ |
- final SVGAnimatedNumber exponent; |
+ final AnimatedNumber exponent; |
/** @domName SVGComponentTransferFunctionElement.intercept */ |
- final SVGAnimatedNumber intercept; |
+ final AnimatedNumber intercept; |
/** @domName SVGComponentTransferFunctionElement.offset */ |
- final SVGAnimatedNumber offset; |
+ final AnimatedNumber offset; |
/** @domName SVGComponentTransferFunctionElement.slope */ |
- final SVGAnimatedNumber slope; |
+ final AnimatedNumber slope; |
/** @domName SVGComponentTransferFunctionElement.tableValues */ |
- final SVGAnimatedNumberList tableValues; |
+ final AnimatedNumberList tableValues; |
/** @domName SVGComponentTransferFunctionElement.type */ |
- final SVGAnimatedEnumeration type; |
+ final AnimatedEnumeration type; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -932,29 +932,29 @@ class SVGComponentTransferFunctionElement extends SVGElement native "*SVGCompone |
/// @domName SVGCursorElement |
-class SVGCursorElement extends SVGElement implements SVGURIReference, SVGTests, SVGExternalResourcesRequired native "*SVGCursorElement" { |
+class CursorElement extends SvgElement implements UriReference, Tests, ExternalResourcesRequired native "*SVGCursorElement" { |
/** @domName SVGCursorElement.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGCursorElement.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -962,7 +962,7 @@ class SVGCursorElement extends SVGElement implements SVGURIReference, SVGTests, |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -970,12 +970,12 @@ class SVGCursorElement extends SVGElement implements SVGURIReference, SVGTests, |
/// @domName SVGDefsElement |
-class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGDefsElement" { |
+class DefsElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGDefsElement" { |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -988,27 +988,27 @@ class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1019,13 +1019,13 @@ class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -1033,7 +1033,7 @@ class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -1041,7 +1041,7 @@ class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
/// @domName SVGDescElement |
-class SVGDescElement extends SVGElement implements SVGLangSpace, SVGStylable native "*SVGDescElement" { |
+class DescElement extends SvgElement implements Stylable, LangSpace native "*SVGDescElement" { |
// From SVGLangSpace |
@@ -1054,7 +1054,7 @@ class SVGDescElement extends SVGElement implements SVGLangSpace, SVGStylable nat |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1067,147 +1067,42 @@ class SVGDescElement extends SVGElement implements SVGLangSpace, SVGStylable nat |
// BSD-style license that can be found in the LICENSE file. |
-/// @domName SVGDocument |
-class SVGDocument extends Document native "*SVGDocument" { |
- |
- /** @domName SVGDocument.rootElement */ |
- final SVGSVGElement rootElement; |
- |
- /** @domName SVGDocument.createEvent */ |
- Event $dom_createEvent(String eventType) native "createEvent"; |
-} |
-// 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 CssClassSet { |
- final Element _element; |
- |
- _AttributeClassSet(this._element); |
- |
- Set<String> readClasses() { |
- var classname = _element.attributes['class']; |
- |
- Set<String> s = new Set<String>(); |
- for (String name in classname.split(' ')) { |
- String trimmed = name.trim(); |
- if (!trimmed.isEmpty) { |
- s.add(trimmed); |
- } |
- } |
- return s; |
- } |
- |
- void writeClasses(Set s) { |
- _element.attributes['class'] = _formatSet(s); |
- } |
-} |
- |
-class SVGElement extends Element native "*SVGElement" { |
- factory SVGElement.tag(String tag) => |
- _SVGElementFactoryProvider.createSVGElement_tag(tag); |
- factory SVGElement.svg(String svg) => |
- _SVGElementFactoryProvider.createSVGElement_svg(svg); |
- |
- CssClassSet get classes { |
- if (_cssClassSet == null) { |
- _cssClassSet = new _AttributeClassSet(_ptr); |
- } |
- return _cssClassSet; |
- } |
- |
- List<Element> get elements => new FilteredElementList(this); |
- |
- void set elements(Collection<Element> value) { |
- final elements = this.elements; |
- elements.clear(); |
- elements.addAll(value); |
- } |
- |
- String get outerHTML { |
- final container = new Element.tag("div"); |
- final SVGElement cloned = this.clone(true); |
- container.elements.add(cloned); |
- return container.innerHTML; |
- } |
- |
- String get innerHTML { |
- final container = new Element.tag("div"); |
- final SVGElement cloned = this.clone(true); |
- container.elements.addAll(cloned.elements); |
- return container.innerHTML; |
- } |
- |
- void set innerHTML(String svg) { |
- final container = new Element.tag("div"); |
- // Wrap the SVG string in <svg> so that SVGElements are created, rather than |
- // HTMLElements. |
- container.innerHTML = '<svg version="1.1">$svg</svg>'; |
- this.elements = container.elements[0].elements; |
- } |
- |
- |
- // Shadowing definition. |
- /** @domName SVGElement.id */ |
- String get id => JS("String", "#.id", this); |
- |
- /** @domName SVGElement.id */ |
- void set id(String value) { |
- JS("void", "#.id = #", this, value); |
- } |
- |
- /** @domName SVGElement.ownerSVGElement */ |
- final SVGSVGElement ownerSVGElement; |
- |
- /** @domName SVGElement.viewportElement */ |
- final SVGElement viewportElement; |
- |
- /** @domName SVGElement.xmlbase */ |
- String xmlbase; |
- |
-} |
-// 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. |
- |
- |
/// @domName SVGElementInstance |
-class SVGElementInstance extends EventTarget native "*SVGElementInstance" { |
+class ElementInstance extends EventTarget native "*SVGElementInstance" { |
/** |
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent |
*/ |
- SVGElementInstanceEvents get on => |
- new SVGElementInstanceEvents(this); |
+ ElementInstanceEvents get on => |
+ new ElementInstanceEvents(this); |
/** @domName SVGElementInstance.childNodes */ |
- final List<SVGElementInstance> childNodes; |
+ final List<ElementInstance> childNodes; |
/** @domName SVGElementInstance.correspondingElement */ |
- final SVGElement correspondingElement; |
+ final SvgElement correspondingElement; |
/** @domName SVGElementInstance.correspondingUseElement */ |
- final SVGUseElement correspondingUseElement; |
+ final UseElement correspondingUseElement; |
/** @domName SVGElementInstance.firstChild */ |
- final SVGElementInstance firstChild; |
+ final ElementInstance firstChild; |
/** @domName SVGElementInstance.lastChild */ |
- final SVGElementInstance lastChild; |
+ final ElementInstance lastChild; |
/** @domName SVGElementInstance.nextSibling */ |
- final SVGElementInstance nextSibling; |
+ final ElementInstance nextSibling; |
/** @domName SVGElementInstance.parentNode */ |
- final SVGElementInstance parentNode; |
+ final ElementInstance parentNode; |
/** @domName SVGElementInstance.previousSibling */ |
- final SVGElementInstance previousSibling; |
+ final ElementInstance previousSibling; |
} |
-class SVGElementInstanceEvents extends Events { |
- SVGElementInstanceEvents(EventTarget _ptr) : super(_ptr); |
+class ElementInstanceEvents extends Events { |
+ ElementInstanceEvents(EventTarget _ptr) : super(_ptr); |
EventListenerList get abort => this['abort']; |
@@ -1295,24 +1190,24 @@ class SVGElementInstanceEvents extends Events { |
/// @domName SVGEllipseElement |
-class SVGEllipseElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGEllipseElement" { |
+class EllipseElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGEllipseElement" { |
/** @domName SVGEllipseElement.cx */ |
- final SVGAnimatedLength cx; |
+ final AnimatedLength cx; |
/** @domName SVGEllipseElement.cy */ |
- final SVGAnimatedLength cy; |
+ final AnimatedLength cy; |
/** @domName SVGEllipseElement.rx */ |
- final SVGAnimatedLength rx; |
+ final AnimatedLength rx; |
/** @domName SVGEllipseElement.ry */ |
- final SVGAnimatedLength ry; |
+ final AnimatedLength ry; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -1325,27 +1220,27 @@ class SVGEllipseElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1356,13 +1251,13 @@ class SVGEllipseElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -1370,7 +1265,7 @@ class SVGEllipseElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -1378,7 +1273,7 @@ class SVGEllipseElement extends SVGElement implements SVGLangSpace, SVGStylable, |
/// @domName SVGException |
-class SVGException native "*SVGException" { |
+class Exception native "*SVGException" { |
static const int SVG_INVALID_VALUE_ERR = 1; |
@@ -1404,9 +1299,9 @@ class SVGException native "*SVGException" { |
/// @domName SVGExternalResourcesRequired |
-abstract class SVGExternalResourcesRequired { |
+abstract class ExternalResourcesRequired { |
- SVGAnimatedBoolean externalResourcesRequired; |
+ AnimatedBoolean externalResourcesRequired; |
} |
// 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 |
@@ -1414,7 +1309,7 @@ abstract class SVGExternalResourcesRequired { |
/// @domName SVGFEBlendElement |
-class SVGFEBlendElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEBlendElement" { |
+class FeBlendElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEBlendElement" { |
static const int SVG_FEBLEND_MODE_DARKEN = 4; |
@@ -1429,35 +1324,35 @@ class SVGFEBlendElement extends SVGElement implements SVGFilterPrimitiveStandard |
static const int SVG_FEBLEND_MODE_UNKNOWN = 0; |
/** @domName SVGFEBlendElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFEBlendElement.in2 */ |
- final SVGAnimatedString in2; |
+ final AnimatedString in2; |
/** @domName SVGFEBlendElement.mode */ |
- final SVGAnimatedEnumeration mode; |
+ final AnimatedEnumeration mode; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1471,7 +1366,7 @@ class SVGFEBlendElement extends SVGElement implements SVGFilterPrimitiveStandard |
/// @domName SVGFEColorMatrixElement |
-class SVGFEColorMatrixElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEColorMatrixElement" { |
+class FeColorMatrixElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEColorMatrixElement" { |
static const int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; |
@@ -1484,35 +1379,35 @@ class SVGFEColorMatrixElement extends SVGElement implements SVGFilterPrimitiveSt |
static const int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; |
/** @domName SVGFEColorMatrixElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFEColorMatrixElement.type */ |
- final SVGAnimatedEnumeration type; |
+ final AnimatedEnumeration type; |
/** @domName SVGFEColorMatrixElement.values */ |
- final SVGAnimatedNumberList values; |
+ final AnimatedNumberList values; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1526,32 +1421,32 @@ class SVGFEColorMatrixElement extends SVGElement implements SVGFilterPrimitiveSt |
/// @domName SVGFEComponentTransferElement |
-class SVGFEComponentTransferElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEComponentTransferElement" { |
+class FeComponentTransferElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEComponentTransferElement" { |
/** @domName SVGFEComponentTransferElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1565,7 +1460,7 @@ class SVGFEComponentTransferElement extends SVGElement implements SVGFilterPrimi |
/// @domName SVGFECompositeElement |
-class SVGFECompositeElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFECompositeElement" { |
+class FeCompositeElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFECompositeElement" { |
static const int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; |
@@ -1582,47 +1477,47 @@ class SVGFECompositeElement extends SVGElement implements SVGFilterPrimitiveStan |
static const int SVG_FECOMPOSITE_OPERATOR_XOR = 5; |
/** @domName SVGFECompositeElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFECompositeElement.in2 */ |
- final SVGAnimatedString in2; |
+ final AnimatedString in2; |
/** @domName SVGFECompositeElement.k1 */ |
- final SVGAnimatedNumber k1; |
+ final AnimatedNumber k1; |
/** @domName SVGFECompositeElement.k2 */ |
- final SVGAnimatedNumber k2; |
+ final AnimatedNumber k2; |
/** @domName SVGFECompositeElement.k3 */ |
- final SVGAnimatedNumber k3; |
+ final AnimatedNumber k3; |
/** @domName SVGFECompositeElement.k4 */ |
- final SVGAnimatedNumber k4; |
+ final AnimatedNumber k4; |
/** @domName SVGFECompositeElement.operator */ |
- final SVGAnimatedEnumeration operator; |
+ final AnimatedEnumeration operator; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1636,7 +1531,7 @@ class SVGFECompositeElement extends SVGElement implements SVGFilterPrimitiveStan |
/// @domName SVGFEConvolveMatrixElement |
-class SVGFEConvolveMatrixElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEConvolveMatrixElement" { |
+class FeConvolveMatrixElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEConvolveMatrixElement" { |
static const int SVG_EDGEMODE_DUPLICATE = 1; |
@@ -1647,62 +1542,62 @@ class SVGFEConvolveMatrixElement extends SVGElement implements SVGFilterPrimitiv |
static const int SVG_EDGEMODE_WRAP = 2; |
/** @domName SVGFEConvolveMatrixElement.bias */ |
- final SVGAnimatedNumber bias; |
+ final AnimatedNumber bias; |
/** @domName SVGFEConvolveMatrixElement.divisor */ |
- final SVGAnimatedNumber divisor; |
+ final AnimatedNumber divisor; |
/** @domName SVGFEConvolveMatrixElement.edgeMode */ |
- final SVGAnimatedEnumeration edgeMode; |
+ final AnimatedEnumeration edgeMode; |
/** @domName SVGFEConvolveMatrixElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFEConvolveMatrixElement.kernelMatrix */ |
- final SVGAnimatedNumberList kernelMatrix; |
+ final AnimatedNumberList kernelMatrix; |
/** @domName SVGFEConvolveMatrixElement.kernelUnitLengthX */ |
- final SVGAnimatedNumber kernelUnitLengthX; |
+ final AnimatedNumber kernelUnitLengthX; |
/** @domName SVGFEConvolveMatrixElement.kernelUnitLengthY */ |
- final SVGAnimatedNumber kernelUnitLengthY; |
+ final AnimatedNumber kernelUnitLengthY; |
/** @domName SVGFEConvolveMatrixElement.orderX */ |
- final SVGAnimatedInteger orderX; |
+ final AnimatedInteger orderX; |
/** @domName SVGFEConvolveMatrixElement.orderY */ |
- final SVGAnimatedInteger orderY; |
+ final AnimatedInteger orderY; |
/** @domName SVGFEConvolveMatrixElement.preserveAlpha */ |
- final SVGAnimatedBoolean preserveAlpha; |
+ final AnimatedBoolean preserveAlpha; |
/** @domName SVGFEConvolveMatrixElement.targetX */ |
- final SVGAnimatedInteger targetX; |
+ final AnimatedInteger targetX; |
/** @domName SVGFEConvolveMatrixElement.targetY */ |
- final SVGAnimatedInteger targetY; |
+ final AnimatedInteger targetY; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1716,44 +1611,44 @@ class SVGFEConvolveMatrixElement extends SVGElement implements SVGFilterPrimitiv |
/// @domName SVGFEDiffuseLightingElement |
-class SVGFEDiffuseLightingElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEDiffuseLightingElement" { |
+class FeDiffuseLightingElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEDiffuseLightingElement" { |
/** @domName SVGFEDiffuseLightingElement.diffuseConstant */ |
- final SVGAnimatedNumber diffuseConstant; |
+ final AnimatedNumber diffuseConstant; |
/** @domName SVGFEDiffuseLightingElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFEDiffuseLightingElement.kernelUnitLengthX */ |
- final SVGAnimatedNumber kernelUnitLengthX; |
+ final AnimatedNumber kernelUnitLengthX; |
/** @domName SVGFEDiffuseLightingElement.kernelUnitLengthY */ |
- final SVGAnimatedNumber kernelUnitLengthY; |
+ final AnimatedNumber kernelUnitLengthY; |
/** @domName SVGFEDiffuseLightingElement.surfaceScale */ |
- final SVGAnimatedNumber surfaceScale; |
+ final AnimatedNumber surfaceScale; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1767,7 +1662,7 @@ class SVGFEDiffuseLightingElement extends SVGElement implements SVGFilterPrimiti |
/// @domName SVGFEDisplacementMapElement |
-class SVGFEDisplacementMapElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEDisplacementMapElement" { |
+class FeDisplacementMapElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEDisplacementMapElement" { |
static const int SVG_CHANNEL_A = 4; |
@@ -1780,41 +1675,41 @@ class SVGFEDisplacementMapElement extends SVGElement implements SVGFilterPrimiti |
static const int SVG_CHANNEL_UNKNOWN = 0; |
/** @domName SVGFEDisplacementMapElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFEDisplacementMapElement.in2 */ |
- final SVGAnimatedString in2; |
+ final AnimatedString in2; |
/** @domName SVGFEDisplacementMapElement.scale */ |
- final SVGAnimatedNumber scale; |
+ final AnimatedNumber scale; |
/** @domName SVGFEDisplacementMapElement.xChannelSelector */ |
- final SVGAnimatedEnumeration xChannelSelector; |
+ final AnimatedEnumeration xChannelSelector; |
/** @domName SVGFEDisplacementMapElement.yChannelSelector */ |
- final SVGAnimatedEnumeration yChannelSelector; |
+ final AnimatedEnumeration yChannelSelector; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1828,13 +1723,13 @@ class SVGFEDisplacementMapElement extends SVGElement implements SVGFilterPrimiti |
/// @domName SVGFEDistantLightElement |
-class SVGFEDistantLightElement extends SVGElement native "*SVGFEDistantLightElement" { |
+class FeDistantLightElement extends SvgElement native "*SVGFEDistantLightElement" { |
/** @domName SVGFEDistantLightElement.azimuth */ |
- final SVGAnimatedNumber azimuth; |
+ final AnimatedNumber azimuth; |
/** @domName SVGFEDistantLightElement.elevation */ |
- final SVGAnimatedNumber elevation; |
+ final AnimatedNumber elevation; |
} |
// 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 |
@@ -1842,22 +1737,22 @@ class SVGFEDistantLightElement extends SVGElement native "*SVGFEDistantLightElem |
/// @domName SVGFEDropShadowElement |
-class SVGFEDropShadowElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEDropShadowElement" { |
+class FeDropShadowElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEDropShadowElement" { |
/** @domName SVGFEDropShadowElement.dx */ |
- final SVGAnimatedNumber dx; |
+ final AnimatedNumber dx; |
/** @domName SVGFEDropShadowElement.dy */ |
- final SVGAnimatedNumber dy; |
+ final AnimatedNumber dy; |
/** @domName SVGFEDropShadowElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFEDropShadowElement.stdDeviationX */ |
- final SVGAnimatedNumber stdDeviationX; |
+ final AnimatedNumber stdDeviationX; |
/** @domName SVGFEDropShadowElement.stdDeviationY */ |
- final SVGAnimatedNumber stdDeviationY; |
+ final AnimatedNumber stdDeviationY; |
/** @domName SVGFEDropShadowElement.setStdDeviation */ |
void setStdDeviation(num stdDeviationX, num stdDeviationY) native; |
@@ -1865,24 +1760,24 @@ class SVGFEDropShadowElement extends SVGElement implements SVGFilterPrimitiveSta |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1896,29 +1791,29 @@ class SVGFEDropShadowElement extends SVGElement implements SVGFilterPrimitiveSta |
/// @domName SVGFEFloodElement |
-class SVGFEFloodElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEFloodElement" { |
+class FeFloodElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEFloodElement" { |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -1932,7 +1827,7 @@ class SVGFEFloodElement extends SVGElement implements SVGFilterPrimitiveStandard |
/// @domName SVGFEFuncAElement |
-class SVGFEFuncAElement extends SVGComponentTransferFunctionElement native "*SVGFEFuncAElement" { |
+class FeFuncAElement extends ComponentTransferFunctionElement native "*SVGFEFuncAElement" { |
} |
// 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 |
@@ -1940,7 +1835,7 @@ class SVGFEFuncAElement extends SVGComponentTransferFunctionElement native "*SVG |
/// @domName SVGFEFuncBElement |
-class SVGFEFuncBElement extends SVGComponentTransferFunctionElement native "*SVGFEFuncBElement" { |
+class FeFuncBElement extends ComponentTransferFunctionElement native "*SVGFEFuncBElement" { |
} |
// 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 |
@@ -1948,7 +1843,7 @@ class SVGFEFuncBElement extends SVGComponentTransferFunctionElement native "*SVG |
/// @domName SVGFEFuncGElement |
-class SVGFEFuncGElement extends SVGComponentTransferFunctionElement native "*SVGFEFuncGElement" { |
+class FeFuncGElement extends ComponentTransferFunctionElement native "*SVGFEFuncGElement" { |
} |
// 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 |
@@ -1956,7 +1851,7 @@ class SVGFEFuncGElement extends SVGComponentTransferFunctionElement native "*SVG |
/// @domName SVGFEFuncRElement |
-class SVGFEFuncRElement extends SVGComponentTransferFunctionElement native "*SVGFEFuncRElement" { |
+class FeFuncRElement extends ComponentTransferFunctionElement native "*SVGFEFuncRElement" { |
} |
// 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 |
@@ -1964,16 +1859,16 @@ class SVGFEFuncRElement extends SVGComponentTransferFunctionElement native "*SVG |
/// @domName SVGFEGaussianBlurElement |
-class SVGFEGaussianBlurElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEGaussianBlurElement" { |
+class FeGaussianBlurElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEGaussianBlurElement" { |
/** @domName SVGFEGaussianBlurElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFEGaussianBlurElement.stdDeviationX */ |
- final SVGAnimatedNumber stdDeviationX; |
+ final AnimatedNumber stdDeviationX; |
/** @domName SVGFEGaussianBlurElement.stdDeviationY */ |
- final SVGAnimatedNumber stdDeviationY; |
+ final AnimatedNumber stdDeviationY; |
/** @domName SVGFEGaussianBlurElement.setStdDeviation */ |
void setStdDeviation(num stdDeviationX, num stdDeviationY) native; |
@@ -1981,24 +1876,24 @@ class SVGFEGaussianBlurElement extends SVGElement implements SVGFilterPrimitiveS |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2012,32 +1907,32 @@ class SVGFEGaussianBlurElement extends SVGElement implements SVGFilterPrimitiveS |
/// @domName SVGFEImageElement |
-class SVGFEImageElement extends SVGElement implements SVGURIReference, SVGLangSpace, SVGFilterPrimitiveStandardAttributes, SVGExternalResourcesRequired native "*SVGFEImageElement" { |
+class FeImageElement extends SvgElement implements FilterPrimitiveStandardAttributes, UriReference, ExternalResourcesRequired, LangSpace native "*SVGFEImageElement" { |
/** @domName SVGFEImageElement.preserveAspectRatio */ |
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio; |
+ final AnimatedPreserveAspectRatio preserveAspectRatio; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGLangSpace |
@@ -2050,7 +1945,7 @@ class SVGFEImageElement extends SVGElement implements SVGURIReference, SVGLangSp |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2061,7 +1956,7 @@ class SVGFEImageElement extends SVGElement implements SVGURIReference, SVGLangSp |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2069,29 +1964,29 @@ class SVGFEImageElement extends SVGElement implements SVGURIReference, SVGLangSp |
/// @domName SVGFEMergeElement |
-class SVGFEMergeElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEMergeElement" { |
+class FeMergeElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEMergeElement" { |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2105,10 +2000,10 @@ class SVGFEMergeElement extends SVGElement implements SVGFilterPrimitiveStandard |
/// @domName SVGFEMergeNodeElement |
-class SVGFEMergeNodeElement extends SVGElement native "*SVGFEMergeNodeElement" { |
+class FeMergeNodeElement extends SvgElement native "*SVGFEMergeNodeElement" { |
/** @domName SVGFEMergeNodeElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
} |
// 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 |
@@ -2116,7 +2011,7 @@ class SVGFEMergeNodeElement extends SVGElement native "*SVGFEMergeNodeElement" { |
/// @domName SVGFEMorphologyElement |
-class SVGFEMorphologyElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEMorphologyElement" { |
+class FeMorphologyElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEMorphologyElement" { |
static const int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; |
@@ -2125,16 +2020,16 @@ class SVGFEMorphologyElement extends SVGElement implements SVGFilterPrimitiveSta |
static const int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; |
/** @domName SVGFEMorphologyElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFEMorphologyElement.operator */ |
- final SVGAnimatedEnumeration operator; |
+ final AnimatedEnumeration operator; |
/** @domName SVGFEMorphologyElement.radiusX */ |
- final SVGAnimatedNumber radiusX; |
+ final AnimatedNumber radiusX; |
/** @domName SVGFEMorphologyElement.radiusY */ |
- final SVGAnimatedNumber radiusY; |
+ final AnimatedNumber radiusY; |
/** @domName SVGFEMorphologyElement.setRadius */ |
void setRadius(num radiusX, num radiusY) native; |
@@ -2142,24 +2037,24 @@ class SVGFEMorphologyElement extends SVGElement implements SVGFilterPrimitiveSta |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2173,38 +2068,38 @@ class SVGFEMorphologyElement extends SVGElement implements SVGFilterPrimitiveSta |
/// @domName SVGFEOffsetElement |
-class SVGFEOffsetElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEOffsetElement" { |
+class FeOffsetElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFEOffsetElement" { |
/** @domName SVGFEOffsetElement.dx */ |
- final SVGAnimatedNumber dx; |
+ final AnimatedNumber dx; |
/** @domName SVGFEOffsetElement.dy */ |
- final SVGAnimatedNumber dy; |
+ final AnimatedNumber dy; |
/** @domName SVGFEOffsetElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2218,16 +2113,16 @@ class SVGFEOffsetElement extends SVGElement implements SVGFilterPrimitiveStandar |
/// @domName SVGFEPointLightElement |
-class SVGFEPointLightElement extends SVGElement native "*SVGFEPointLightElement" { |
+class FePointLightElement extends SvgElement native "*SVGFEPointLightElement" { |
/** @domName SVGFEPointLightElement.x */ |
- final SVGAnimatedNumber x; |
+ final AnimatedNumber x; |
/** @domName SVGFEPointLightElement.y */ |
- final SVGAnimatedNumber y; |
+ final AnimatedNumber y; |
/** @domName SVGFEPointLightElement.z */ |
- final SVGAnimatedNumber z; |
+ final AnimatedNumber z; |
} |
// 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 |
@@ -2235,41 +2130,41 @@ class SVGFEPointLightElement extends SVGElement native "*SVGFEPointLightElement" |
/// @domName SVGFESpecularLightingElement |
-class SVGFESpecularLightingElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFESpecularLightingElement" { |
+class FeSpecularLightingElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFESpecularLightingElement" { |
/** @domName SVGFESpecularLightingElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
/** @domName SVGFESpecularLightingElement.specularConstant */ |
- final SVGAnimatedNumber specularConstant; |
+ final AnimatedNumber specularConstant; |
/** @domName SVGFESpecularLightingElement.specularExponent */ |
- final SVGAnimatedNumber specularExponent; |
+ final AnimatedNumber specularExponent; |
/** @domName SVGFESpecularLightingElement.surfaceScale */ |
- final SVGAnimatedNumber surfaceScale; |
+ final AnimatedNumber surfaceScale; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2283,31 +2178,31 @@ class SVGFESpecularLightingElement extends SVGElement implements SVGFilterPrimit |
/// @domName SVGFESpotLightElement |
-class SVGFESpotLightElement extends SVGElement native "*SVGFESpotLightElement" { |
+class FeSpotLightElement extends SvgElement native "*SVGFESpotLightElement" { |
/** @domName SVGFESpotLightElement.limitingConeAngle */ |
- final SVGAnimatedNumber limitingConeAngle; |
+ final AnimatedNumber limitingConeAngle; |
/** @domName SVGFESpotLightElement.pointsAtX */ |
- final SVGAnimatedNumber pointsAtX; |
+ final AnimatedNumber pointsAtX; |
/** @domName SVGFESpotLightElement.pointsAtY */ |
- final SVGAnimatedNumber pointsAtY; |
+ final AnimatedNumber pointsAtY; |
/** @domName SVGFESpotLightElement.pointsAtZ */ |
- final SVGAnimatedNumber pointsAtZ; |
+ final AnimatedNumber pointsAtZ; |
/** @domName SVGFESpotLightElement.specularExponent */ |
- final SVGAnimatedNumber specularExponent; |
+ final AnimatedNumber specularExponent; |
/** @domName SVGFESpotLightElement.x */ |
- final SVGAnimatedNumber x; |
+ final AnimatedNumber x; |
/** @domName SVGFESpotLightElement.y */ |
- final SVGAnimatedNumber y; |
+ final AnimatedNumber y; |
/** @domName SVGFESpotLightElement.z */ |
- final SVGAnimatedNumber z; |
+ final AnimatedNumber z; |
} |
// 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 |
@@ -2315,32 +2210,32 @@ class SVGFESpotLightElement extends SVGElement native "*SVGFESpotLightElement" { |
/// @domName SVGFETileElement |
-class SVGFETileElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFETileElement" { |
+class FeTileElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFETileElement" { |
/** @domName SVGFETileElement.in1 */ |
- final SVGAnimatedString in1; |
+ final AnimatedString in1; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2354,7 +2249,7 @@ class SVGFETileElement extends SVGElement implements SVGFilterPrimitiveStandardA |
/// @domName SVGFETurbulenceElement |
-class SVGFETurbulenceElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFETurbulenceElement" { |
+class FeTurbulenceElement extends SvgElement implements FilterPrimitiveStandardAttributes native "*SVGFETurbulenceElement" { |
static const int SVG_STITCHTYPE_NOSTITCH = 2; |
@@ -2369,44 +2264,44 @@ class SVGFETurbulenceElement extends SVGElement implements SVGFilterPrimitiveSta |
static const int SVG_TURBULENCE_TYPE_UNKNOWN = 0; |
/** @domName SVGFETurbulenceElement.baseFrequencyX */ |
- final SVGAnimatedNumber baseFrequencyX; |
+ final AnimatedNumber baseFrequencyX; |
/** @domName SVGFETurbulenceElement.baseFrequencyY */ |
- final SVGAnimatedNumber baseFrequencyY; |
+ final AnimatedNumber baseFrequencyY; |
/** @domName SVGFETurbulenceElement.numOctaves */ |
- final SVGAnimatedInteger numOctaves; |
+ final AnimatedInteger numOctaves; |
/** @domName SVGFETurbulenceElement.seed */ |
- final SVGAnimatedNumber seed; |
+ final AnimatedNumber seed; |
/** @domName SVGFETurbulenceElement.stitchTiles */ |
- final SVGAnimatedEnumeration stitchTiles; |
+ final AnimatedEnumeration stitchTiles; |
/** @domName SVGFETurbulenceElement.type */ |
- final SVGAnimatedEnumeration type; |
+ final AnimatedEnumeration type; |
// From SVGFilterPrimitiveStandardAttributes |
/** @domName SVGFilterPrimitiveStandardAttributes.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterPrimitiveStandardAttributes.result */ |
- final SVGAnimatedString result; |
+ final AnimatedString result; |
/** @domName SVGFilterPrimitiveStandardAttributes.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterPrimitiveStandardAttributes.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterPrimitiveStandardAttributes.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2420,31 +2315,31 @@ class SVGFETurbulenceElement extends SVGElement implements SVGFilterPrimitiveSta |
/// @domName SVGFilterElement |
-class SVGFilterElement extends SVGElement implements SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable native "*SVGFilterElement" { |
+class FilterElement extends SvgElement implements UriReference, ExternalResourcesRequired, Stylable, LangSpace native "*SVGFilterElement" { |
/** @domName SVGFilterElement.filterResX */ |
- final SVGAnimatedInteger filterResX; |
+ final AnimatedInteger filterResX; |
/** @domName SVGFilterElement.filterResY */ |
- final SVGAnimatedInteger filterResY; |
+ final AnimatedInteger filterResY; |
/** @domName SVGFilterElement.filterUnits */ |
- final SVGAnimatedEnumeration filterUnits; |
+ final AnimatedEnumeration filterUnits; |
/** @domName SVGFilterElement.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGFilterElement.primitiveUnits */ |
- final SVGAnimatedEnumeration primitiveUnits; |
+ final AnimatedEnumeration primitiveUnits; |
/** @domName SVGFilterElement.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGFilterElement.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGFilterElement.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
/** @domName SVGFilterElement.setFilterRes */ |
void setFilterRes(int filterResX, int filterResY) native; |
@@ -2452,7 +2347,7 @@ class SVGFilterElement extends SVGElement implements SVGURIReference, SVGLangSpa |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -2465,7 +2360,7 @@ class SVGFilterElement extends SVGElement implements SVGURIReference, SVGLangSpa |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2476,7 +2371,7 @@ class SVGFilterElement extends SVGElement implements SVGURIReference, SVGLangSpa |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2484,21 +2379,21 @@ class SVGFilterElement extends SVGElement implements SVGURIReference, SVGLangSpa |
/// @domName SVGFilterPrimitiveStandardAttributes |
-abstract class SVGFilterPrimitiveStandardAttributes implements SVGStylable { |
+abstract class FilterPrimitiveStandardAttributes implements Stylable { |
- SVGAnimatedLength height; |
+ AnimatedLength height; |
- SVGAnimatedString result; |
+ AnimatedString result; |
- SVGAnimatedLength width; |
+ AnimatedLength width; |
- SVGAnimatedLength x; |
+ AnimatedLength x; |
- SVGAnimatedLength y; |
+ AnimatedLength y; |
// From SVGStylable |
- SVGAnimatedString className; |
+ AnimatedString className; |
CSSStyleDeclaration style; |
@@ -2511,11 +2406,11 @@ abstract class SVGFilterPrimitiveStandardAttributes implements SVGStylable { |
/// @domName SVGFitToViewBox |
-abstract class SVGFitToViewBox { |
+abstract class FitToViewBox { |
- SVGAnimatedPreserveAspectRatio preserveAspectRatio; |
+ AnimatedPreserveAspectRatio preserveAspectRatio; |
- SVGAnimatedRect viewBox; |
+ AnimatedRect viewBox; |
} |
// 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 |
@@ -2523,7 +2418,7 @@ abstract class SVGFitToViewBox { |
/// @domName SVGFontElement |
-class SVGFontElement extends SVGElement native "*SVGFontElement" { |
+class FontElement extends SvgElement native "*SVGFontElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2531,7 +2426,7 @@ class SVGFontElement extends SVGElement native "*SVGFontElement" { |
/// @domName SVGFontFaceElement |
-class SVGFontFaceElement extends SVGElement native "*SVGFontFaceElement" { |
+class FontFaceElement extends SvgElement native "*SVGFontFaceElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2539,7 +2434,7 @@ class SVGFontFaceElement extends SVGElement native "*SVGFontFaceElement" { |
/// @domName SVGFontFaceFormatElement |
-class SVGFontFaceFormatElement extends SVGElement native "*SVGFontFaceFormatElement" { |
+class FontFaceFormatElement extends SvgElement native "*SVGFontFaceFormatElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2547,7 +2442,7 @@ class SVGFontFaceFormatElement extends SVGElement native "*SVGFontFaceFormatElem |
/// @domName SVGFontFaceNameElement |
-class SVGFontFaceNameElement extends SVGElement native "*SVGFontFaceNameElement" { |
+class FontFaceNameElement extends SvgElement native "*SVGFontFaceNameElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2555,7 +2450,7 @@ class SVGFontFaceNameElement extends SVGElement native "*SVGFontFaceNameElement" |
/// @domName SVGFontFaceSrcElement |
-class SVGFontFaceSrcElement extends SVGElement native "*SVGFontFaceSrcElement" { |
+class FontFaceSrcElement extends SvgElement native "*SVGFontFaceSrcElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2563,7 +2458,7 @@ class SVGFontFaceSrcElement extends SVGElement native "*SVGFontFaceSrcElement" { |
/// @domName SVGFontFaceUriElement |
-class SVGFontFaceUriElement extends SVGElement native "*SVGFontFaceUriElement" { |
+class FontFaceUriElement extends SvgElement native "*SVGFontFaceUriElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2571,24 +2466,24 @@ class SVGFontFaceUriElement extends SVGElement native "*SVGFontFaceUriElement" { |
/// @domName SVGForeignObjectElement |
-class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGForeignObjectElement" { |
+class ForeignObjectElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGForeignObjectElement" { |
/** @domName SVGForeignObjectElement.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGForeignObjectElement.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGForeignObjectElement.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGForeignObjectElement.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -2601,27 +2496,27 @@ class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGSty |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2632,13 +2527,13 @@ class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGSty |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -2646,7 +2541,7 @@ class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGSty |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -2654,12 +2549,12 @@ class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGSty |
/// @domName SVGGElement |
-class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGGElement" { |
+class GElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGGElement" { |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -2672,27 +2567,27 @@ class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTe |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2703,13 +2598,13 @@ class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTe |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -2717,7 +2612,7 @@ class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTe |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -2725,7 +2620,7 @@ class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTe |
/// @domName SVGGlyphElement |
-class SVGGlyphElement extends SVGElement native "*SVGGlyphElement" { |
+class GlyphElement extends SvgElement native "*SVGGlyphElement" { |
} |
// 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 |
@@ -2733,7 +2628,7 @@ class SVGGlyphElement extends SVGElement native "*SVGGlyphElement" { |
/// @domName SVGGlyphRefElement |
-class SVGGlyphRefElement extends SVGElement implements SVGURIReference, SVGStylable native "*SVGGlyphRefElement" { |
+class GlyphRefElement extends SvgElement implements UriReference, Stylable native "*SVGGlyphRefElement" { |
/** @domName SVGGlyphRefElement.dx */ |
num dx; |
@@ -2756,7 +2651,7 @@ class SVGGlyphRefElement extends SVGElement implements SVGURIReference, SVGStyla |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2767,7 +2662,7 @@ class SVGGlyphRefElement extends SVGElement implements SVGURIReference, SVGStyla |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2775,7 +2670,7 @@ class SVGGlyphRefElement extends SVGElement implements SVGURIReference, SVGStyla |
/// @domName SVGGradientElement |
-class SVGGradientElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired, SVGStylable native "*SVGGradientElement" { |
+class GradientElement extends SvgElement implements UriReference, ExternalResourcesRequired, Stylable native "*SVGGradientElement" { |
static const int SVG_SPREADMETHOD_PAD = 1; |
@@ -2786,23 +2681,23 @@ class SVGGradientElement extends SVGElement implements SVGURIReference, SVGExter |
static const int SVG_SPREADMETHOD_UNKNOWN = 0; |
/** @domName SVGGradientElement.gradientTransform */ |
- final SVGAnimatedTransformList gradientTransform; |
+ final AnimatedTransformList gradientTransform; |
/** @domName SVGGradientElement.gradientUnits */ |
- final SVGAnimatedEnumeration gradientUnits; |
+ final AnimatedEnumeration gradientUnits; |
/** @domName SVGGradientElement.spreadMethod */ |
- final SVGAnimatedEnumeration spreadMethod; |
+ final AnimatedEnumeration spreadMethod; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2813,7 +2708,7 @@ class SVGGradientElement extends SVGElement implements SVGURIReference, SVGExter |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2821,7 +2716,7 @@ class SVGGradientElement extends SVGElement implements SVGURIReference, SVGExter |
/// @domName SVGHKernElement |
-class SVGHKernElement extends SVGElement native "*SVGHKernElement" { |
+class HKernElement extends SvgElement native "*SVGHKernElement" { |
} |
// 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 |
@@ -2829,27 +2724,40 @@ class SVGHKernElement extends SVGElement native "*SVGHKernElement" { |
/// @domName SVGImageElement |
-class SVGImageElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable native "*SVGImageElement" { |
+class ImageElement extends SvgElement implements Transformable, Tests, UriReference, Stylable, ExternalResourcesRequired, LangSpace native "*SVGImageElement" { |
+ |
+ factory ImageElement({String src, int width, int height}) { |
+ if (!?src) { |
+ return _Elements.createImageElement(); |
+ } |
+ if (!?width) { |
+ return _Elements.createImageElement(src); |
+ } |
+ if (!?height) { |
+ return _Elements.createImageElement(src, width); |
+ } |
+ return _Elements.createImageElement(src, width, height); |
+ } |
/** @domName SVGImageElement.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGImageElement.preserveAspectRatio */ |
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio; |
+ final AnimatedPreserveAspectRatio preserveAspectRatio; |
/** @domName SVGImageElement.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGImageElement.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGImageElement.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -2862,27 +2770,27 @@ class SVGImageElement extends SVGElement implements SVGLangSpace, SVGTests, SVGS |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -2893,13 +2801,13 @@ class SVGImageElement extends SVGElement implements SVGLangSpace, SVGTests, SVGS |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -2907,12 +2815,12 @@ class SVGImageElement extends SVGElement implements SVGLangSpace, SVGTests, SVGS |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -2920,7 +2828,7 @@ class SVGImageElement extends SVGElement implements SVGLangSpace, SVGTests, SVGS |
/// @domName SVGLangSpace |
-abstract class SVGLangSpace { |
+abstract class LangSpace { |
String xmllang; |
@@ -2932,7 +2840,7 @@ abstract class SVGLangSpace { |
/// @domName SVGLength |
-class SVGLength native "*SVGLength" { |
+class Length native "*SVGLength" { |
static const int SVG_LENGTHTYPE_CM = 6; |
@@ -2980,78 +2888,78 @@ class SVGLength native "*SVGLength" { |
/// @domName SVGLengthList |
-class SVGLengthList implements JavaScriptIndexingBehavior, List<SVGLength> native "*SVGLengthList" { |
+class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SVGLengthList" { |
/** @domName SVGLengthList.numberOfItems */ |
final int numberOfItems; |
- SVGLength operator[](int index) => JS("SVGLength", "#[#]", this, index); |
+ Length operator[](int index) => JS("Length", "#[#]", this, index); |
- void operator[]=(int index, SVGLength value) { |
+ void operator[]=(int index, Length value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
} |
- // -- start List<SVGLength> mixins. |
- // SVGLength is the element type. |
+ // -- start List<Length> mixins. |
+ // Length is the element type. |
- // From Iterable<SVGLength>: |
+ // From Iterable<Length>: |
- Iterator<SVGLength> iterator() { |
+ Iterator<Length> iterator() { |
// Note: NodeLists are not fixed size. And most probably length shouldn't |
// be cached in both iterator _and_ forEach method. For now caching it |
// for consistency. |
- return new FixedSizeListIterator<SVGLength>(this); |
+ return new FixedSizeListIterator<Length>(this); |
} |
- // From Collection<SVGLength>: |
+ // From Collection<Length>: |
- void add(SVGLength value) { |
+ void add(Length value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addLast(SVGLength value) { |
+ void addLast(Length value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addAll(Collection<SVGLength> collection) { |
+ void addAll(Collection<Length> collection) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- bool contains(SVGLength element) => _Collections.contains(this, element); |
+ bool contains(Length element) => _Collections.contains(this, element); |
- void forEach(void f(SVGLength element)) => _Collections.forEach(this, f); |
+ void forEach(void f(Length element)) => _Collections.forEach(this, f); |
- Collection map(f(SVGLength element)) => _Collections.map(this, [], f); |
+ Collection map(f(Length element)) => _Collections.map(this, [], f); |
- Collection<SVGLength> filter(bool f(SVGLength element)) => |
- _Collections.filter(this, <SVGLength>[], f); |
+ Collection<Length> filter(bool f(Length element)) => |
+ _Collections.filter(this, <Length>[], f); |
- bool every(bool f(SVGLength element)) => _Collections.every(this, f); |
+ bool every(bool f(Length element)) => _Collections.every(this, f); |
- bool some(bool f(SVGLength element)) => _Collections.some(this, f); |
+ bool some(bool f(Length element)) => _Collections.some(this, f); |
bool get isEmpty => this.length == 0; |
- // From List<SVGLength>: |
+ // From List<Length>: |
- void sort([Comparator<SVGLength> compare = Comparable.compare]) { |
+ void sort([Comparator<Length> compare = Comparable.compare]) { |
throw new UnsupportedError("Cannot sort immutable List."); |
} |
- int indexOf(SVGLength element, [int start = 0]) => |
+ int indexOf(Length element, [int start = 0]) => |
_Lists.indexOf(this, element, start, this.length); |
- int lastIndexOf(SVGLength element, [int start]) { |
+ int lastIndexOf(Length element, [int start]) { |
if (start == null) start = length - 1; |
return _Lists.lastIndexOf(this, element, start); |
} |
- SVGLength get last => this[length - 1]; |
+ Length get last => this[length - 1]; |
- SVGLength removeLast() { |
+ Length removeLast() { |
throw new UnsupportedError("Cannot removeLast on immutable List."); |
} |
- void setRange(int start, int rangeLength, List<SVGLength> from, [int startFrom]) { |
+ void setRange(int start, int rangeLength, List<Length> from, [int startFrom]) { |
throw new UnsupportedError("Cannot setRange on immutable List."); |
} |
@@ -3059,35 +2967,35 @@ class SVGLengthList implements JavaScriptIndexingBehavior, List<SVGLength> nativ |
throw new UnsupportedError("Cannot removeRange on immutable List."); |
} |
- void insertRange(int start, int rangeLength, [SVGLength initialValue]) { |
+ void insertRange(int start, int rangeLength, [Length initialValue]) { |
throw new UnsupportedError("Cannot insertRange on immutable List."); |
} |
- List<SVGLength> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <SVGLength>[]); |
+ List<Length> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <Length>[]); |
- // -- end List<SVGLength> mixins. |
+ // -- end List<Length> mixins. |
/** @domName SVGLengthList.appendItem */ |
- SVGLength appendItem(SVGLength item) native; |
+ Length appendItem(Length item) native; |
/** @domName SVGLengthList.clear */ |
void clear() native; |
/** @domName SVGLengthList.getItem */ |
- SVGLength getItem(int index) native; |
+ Length getItem(int index) native; |
/** @domName SVGLengthList.initialize */ |
- SVGLength initialize(SVGLength item) native; |
+ Length initialize(Length item) native; |
/** @domName SVGLengthList.insertItemBefore */ |
- SVGLength insertItemBefore(SVGLength item, int index) native; |
+ Length insertItemBefore(Length item, int index) native; |
/** @domName SVGLengthList.removeItem */ |
- SVGLength removeItem(int index) native; |
+ Length removeItem(int index) native; |
/** @domName SVGLengthList.replaceItem */ |
- SVGLength replaceItem(SVGLength item, int index) native; |
+ Length replaceItem(Length item, int index) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -3095,24 +3003,24 @@ class SVGLengthList implements JavaScriptIndexingBehavior, List<SVGLength> nativ |
/// @domName SVGLineElement |
-class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGLineElement" { |
+class LineElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGLineElement" { |
/** @domName SVGLineElement.x1 */ |
- final SVGAnimatedLength x1; |
+ final AnimatedLength x1; |
/** @domName SVGLineElement.x2 */ |
- final SVGAnimatedLength x2; |
+ final AnimatedLength x2; |
/** @domName SVGLineElement.y1 */ |
- final SVGAnimatedLength y1; |
+ final AnimatedLength y1; |
/** @domName SVGLineElement.y2 */ |
- final SVGAnimatedLength y2; |
+ final AnimatedLength y2; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -3125,27 +3033,27 @@ class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -3156,13 +3064,13 @@ class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -3170,7 +3078,7 @@ class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -3178,19 +3086,19 @@ class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
/// @domName SVGLinearGradientElement |
-class SVGLinearGradientElement extends SVGGradientElement native "*SVGLinearGradientElement" { |
+class LinearGradientElement extends GradientElement native "*SVGLinearGradientElement" { |
/** @domName SVGLinearGradientElement.x1 */ |
- final SVGAnimatedLength x1; |
+ final AnimatedLength x1; |
/** @domName SVGLinearGradientElement.x2 */ |
- final SVGAnimatedLength x2; |
+ final AnimatedLength x2; |
/** @domName SVGLinearGradientElement.y1 */ |
- final SVGAnimatedLength y1; |
+ final AnimatedLength y1; |
/** @domName SVGLinearGradientElement.y2 */ |
- final SVGAnimatedLength y2; |
+ final AnimatedLength y2; |
} |
// 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 |
@@ -3198,23 +3106,23 @@ class SVGLinearGradientElement extends SVGGradientElement native "*SVGLinearGrad |
/// @domName SVGLocatable |
-abstract class SVGLocatable { |
+abstract class Locatable { |
- SVGElement farthestViewportElement; |
+ SvgElement farthestViewportElement; |
- SVGElement nearestViewportElement; |
+ SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox(); |
+ Rect getBBox(); |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM(); |
+ Matrix getCTM(); |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM(); |
+ Matrix getScreenCTM(); |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element); |
+ Matrix getTransformToElement(SvgElement element); |
} |
// 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 |
@@ -3222,17 +3130,17 @@ abstract class SVGLocatable { |
/// @domName SVGMPathElement |
-class SVGMPathElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired native "*SVGMPathElement" { |
+class MPathElement extends SvgElement implements UriReference, ExternalResourcesRequired native "*SVGMPathElement" { |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -3240,7 +3148,7 @@ class SVGMPathElement extends SVGElement implements SVGURIReference, SVGExternal |
/// @domName SVGMarkerElement |
-class SVGMarkerElement extends SVGElement implements SVGLangSpace, SVGFitToViewBox, SVGExternalResourcesRequired, SVGStylable native "*SVGMarkerElement" { |
+class MarkerElement extends SvgElement implements FitToViewBox, ExternalResourcesRequired, Stylable, LangSpace native "*SVGMarkerElement" { |
static const int SVG_MARKERUNITS_STROKEWIDTH = 2; |
@@ -3255,28 +3163,28 @@ class SVGMarkerElement extends SVGElement implements SVGLangSpace, SVGFitToViewB |
static const int SVG_MARKER_ORIENT_UNKNOWN = 0; |
/** @domName SVGMarkerElement.markerHeight */ |
- final SVGAnimatedLength markerHeight; |
+ final AnimatedLength markerHeight; |
/** @domName SVGMarkerElement.markerUnits */ |
- final SVGAnimatedEnumeration markerUnits; |
+ final AnimatedEnumeration markerUnits; |
/** @domName SVGMarkerElement.markerWidth */ |
- final SVGAnimatedLength markerWidth; |
+ final AnimatedLength markerWidth; |
/** @domName SVGMarkerElement.orientAngle */ |
- final SVGAnimatedAngle orientAngle; |
+ final AnimatedAngle orientAngle; |
/** @domName SVGMarkerElement.orientType */ |
- final SVGAnimatedEnumeration orientType; |
+ final AnimatedEnumeration orientType; |
/** @domName SVGMarkerElement.refX */ |
- final SVGAnimatedLength refX; |
+ final AnimatedLength refX; |
/** @domName SVGMarkerElement.refY */ |
- final SVGAnimatedLength refY; |
+ final AnimatedLength refY; |
/** @domName SVGMarkerElement.setOrientToAngle */ |
- void setOrientToAngle(SVGAngle angle) native; |
+ void setOrientToAngle(Angle angle) native; |
/** @domName SVGMarkerElement.setOrientToAuto */ |
void setOrientToAuto() native; |
@@ -3284,15 +3192,15 @@ class SVGMarkerElement extends SVGElement implements SVGLangSpace, SVGFitToViewB |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGFitToViewBox |
/** @domName SVGFitToViewBox.preserveAspectRatio */ |
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio; |
+ final AnimatedPreserveAspectRatio preserveAspectRatio; |
/** @domName SVGFitToViewBox.viewBox */ |
- final SVGAnimatedRect viewBox; |
+ final AnimatedRect viewBox; |
// From SVGLangSpace |
@@ -3305,7 +3213,7 @@ class SVGMarkerElement extends SVGElement implements SVGLangSpace, SVGFitToViewB |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -3319,30 +3227,30 @@ class SVGMarkerElement extends SVGElement implements SVGLangSpace, SVGFitToViewB |
/// @domName SVGMaskElement |
-class SVGMaskElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGExternalResourcesRequired native "*SVGMaskElement" { |
+class MaskElement extends SvgElement implements Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGMaskElement" { |
/** @domName SVGMaskElement.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGMaskElement.maskContentUnits */ |
- final SVGAnimatedEnumeration maskContentUnits; |
+ final AnimatedEnumeration maskContentUnits; |
/** @domName SVGMaskElement.maskUnits */ |
- final SVGAnimatedEnumeration maskUnits; |
+ final AnimatedEnumeration maskUnits; |
/** @domName SVGMaskElement.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGMaskElement.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGMaskElement.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -3355,7 +3263,7 @@ class SVGMaskElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -3366,13 +3274,13 @@ class SVGMaskElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -3383,7 +3291,7 @@ class SVGMaskElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
/// @domName SVGMatrix |
-class SVGMatrix native "*SVGMatrix" { |
+class Matrix native "*SVGMatrix" { |
/** @domName SVGMatrix.a */ |
num a; |
@@ -3404,37 +3312,37 @@ class SVGMatrix native "*SVGMatrix" { |
num f; |
/** @domName SVGMatrix.flipX */ |
- SVGMatrix flipX() native; |
+ Matrix flipX() native; |
/** @domName SVGMatrix.flipY */ |
- SVGMatrix flipY() native; |
+ Matrix flipY() native; |
/** @domName SVGMatrix.inverse */ |
- SVGMatrix inverse() native; |
+ Matrix inverse() native; |
/** @domName SVGMatrix.multiply */ |
- SVGMatrix multiply(SVGMatrix secondMatrix) native; |
+ Matrix multiply(Matrix secondMatrix) native; |
/** @domName SVGMatrix.rotate */ |
- SVGMatrix rotate(num angle) native; |
+ Matrix rotate(num angle) native; |
/** @domName SVGMatrix.rotateFromVector */ |
- SVGMatrix rotateFromVector(num x, num y) native; |
+ Matrix rotateFromVector(num x, num y) native; |
/** @domName SVGMatrix.scale */ |
- SVGMatrix scale(num scaleFactor) native; |
+ Matrix scale(num scaleFactor) native; |
/** @domName SVGMatrix.scaleNonUniform */ |
- SVGMatrix scaleNonUniform(num scaleFactorX, num scaleFactorY) native; |
+ Matrix scaleNonUniform(num scaleFactorX, num scaleFactorY) native; |
/** @domName SVGMatrix.skewX */ |
- SVGMatrix skewX(num angle) native; |
+ Matrix skewX(num angle) native; |
/** @domName SVGMatrix.skewY */ |
- SVGMatrix skewY(num angle) native; |
+ Matrix skewY(num angle) native; |
/** @domName SVGMatrix.translate */ |
- SVGMatrix translate(num x, num y) 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 |
@@ -3442,7 +3350,7 @@ class SVGMatrix native "*SVGMatrix" { |
/// @domName SVGMetadataElement |
-class SVGMetadataElement extends SVGElement native "*SVGMetadataElement" { |
+class MetadataElement extends SvgElement native "*SVGMetadataElement" { |
} |
// 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 |
@@ -3450,7 +3358,7 @@ class SVGMetadataElement extends SVGElement native "*SVGMetadataElement" { |
/// @domName SVGMissingGlyphElement |
-class SVGMissingGlyphElement extends SVGElement native "*SVGMissingGlyphElement" { |
+class MissingGlyphElement extends SvgElement native "*SVGMissingGlyphElement" { |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -3458,7 +3366,7 @@ class SVGMissingGlyphElement extends SVGElement native "*SVGMissingGlyphElement" |
/// @domName SVGNumber |
-class SVGNumber native "*SVGNumber" { |
+class Number native "*SVGNumber" { |
/** @domName SVGNumber.value */ |
num value; |
@@ -3469,78 +3377,78 @@ class SVGNumber native "*SVGNumber" { |
/// @domName SVGNumberList |
-class SVGNumberList implements JavaScriptIndexingBehavior, List<SVGNumber> native "*SVGNumberList" { |
+class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SVGNumberList" { |
/** @domName SVGNumberList.numberOfItems */ |
final int numberOfItems; |
- SVGNumber operator[](int index) => JS("SVGNumber", "#[#]", this, index); |
+ Number operator[](int index) => JS("Number", "#[#]", this, index); |
- void operator[]=(int index, SVGNumber value) { |
+ void operator[]=(int index, Number value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
} |
- // -- start List<SVGNumber> mixins. |
- // SVGNumber is the element type. |
+ // -- start List<Number> mixins. |
+ // Number is the element type. |
- // From Iterable<SVGNumber>: |
+ // From Iterable<Number>: |
- Iterator<SVGNumber> iterator() { |
+ Iterator<Number> iterator() { |
// Note: NodeLists are not fixed size. And most probably length shouldn't |
// be cached in both iterator _and_ forEach method. For now caching it |
// for consistency. |
- return new FixedSizeListIterator<SVGNumber>(this); |
+ return new FixedSizeListIterator<Number>(this); |
} |
- // From Collection<SVGNumber>: |
+ // From Collection<Number>: |
- void add(SVGNumber value) { |
+ void add(Number value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addLast(SVGNumber value) { |
+ void addLast(Number value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addAll(Collection<SVGNumber> collection) { |
+ void addAll(Collection<Number> collection) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- bool contains(SVGNumber element) => _Collections.contains(this, element); |
+ bool contains(Number element) => _Collections.contains(this, element); |
- void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f); |
+ void forEach(void f(Number element)) => _Collections.forEach(this, f); |
- Collection map(f(SVGNumber element)) => _Collections.map(this, [], f); |
+ Collection map(f(Number element)) => _Collections.map(this, [], f); |
- Collection<SVGNumber> filter(bool f(SVGNumber element)) => |
- _Collections.filter(this, <SVGNumber>[], f); |
+ Collection<Number> filter(bool f(Number element)) => |
+ _Collections.filter(this, <Number>[], f); |
- bool every(bool f(SVGNumber element)) => _Collections.every(this, f); |
+ bool every(bool f(Number element)) => _Collections.every(this, f); |
- bool some(bool f(SVGNumber element)) => _Collections.some(this, f); |
+ bool some(bool f(Number element)) => _Collections.some(this, f); |
bool get isEmpty => this.length == 0; |
- // From List<SVGNumber>: |
+ // From List<Number>: |
- void sort([Comparator<SVGNumber> compare = Comparable.compare]) { |
+ void sort([Comparator<Number> compare = Comparable.compare]) { |
throw new UnsupportedError("Cannot sort immutable List."); |
} |
- int indexOf(SVGNumber element, [int start = 0]) => |
+ int indexOf(Number element, [int start = 0]) => |
_Lists.indexOf(this, element, start, this.length); |
- int lastIndexOf(SVGNumber element, [int start]) { |
+ int lastIndexOf(Number element, [int start]) { |
if (start == null) start = length - 1; |
return _Lists.lastIndexOf(this, element, start); |
} |
- SVGNumber get last => this[length - 1]; |
+ Number get last => this[length - 1]; |
- SVGNumber removeLast() { |
+ Number removeLast() { |
throw new UnsupportedError("Cannot removeLast on immutable List."); |
} |
- void setRange(int start, int rangeLength, List<SVGNumber> from, [int startFrom]) { |
+ void setRange(int start, int rangeLength, List<Number> from, [int startFrom]) { |
throw new UnsupportedError("Cannot setRange on immutable List."); |
} |
@@ -3548,35 +3456,35 @@ class SVGNumberList implements JavaScriptIndexingBehavior, List<SVGNumber> nativ |
throw new UnsupportedError("Cannot removeRange on immutable List."); |
} |
- void insertRange(int start, int rangeLength, [SVGNumber initialValue]) { |
+ void insertRange(int start, int rangeLength, [Number initialValue]) { |
throw new UnsupportedError("Cannot insertRange on immutable List."); |
} |
- List<SVGNumber> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <SVGNumber>[]); |
+ List<Number> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <Number>[]); |
- // -- end List<SVGNumber> mixins. |
+ // -- end List<Number> mixins. |
/** @domName SVGNumberList.appendItem */ |
- SVGNumber appendItem(SVGNumber item) native; |
+ Number appendItem(Number item) native; |
/** @domName SVGNumberList.clear */ |
void clear() native; |
/** @domName SVGNumberList.getItem */ |
- SVGNumber getItem(int index) native; |
+ Number getItem(int index) native; |
/** @domName SVGNumberList.initialize */ |
- SVGNumber initialize(SVGNumber item) native; |
+ Number initialize(Number item) native; |
/** @domName SVGNumberList.insertItemBefore */ |
- SVGNumber insertItemBefore(SVGNumber item, int index) native; |
+ Number insertItemBefore(Number item, int index) native; |
/** @domName SVGNumberList.removeItem */ |
- SVGNumber removeItem(int index) native; |
+ Number removeItem(int index) native; |
/** @domName SVGNumberList.replaceItem */ |
- SVGNumber replaceItem(SVGNumber item, int index) native; |
+ Number replaceItem(Number item, int index) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -3584,7 +3492,7 @@ class SVGNumberList implements JavaScriptIndexingBehavior, List<SVGNumber> nativ |
/// @domName SVGPaint |
-class SVGPaint extends SVGColor native "*SVGPaint" { |
+class Paint extends Color native "*SVGPaint" { |
static const int SVG_PAINTTYPE_CURRENTCOLOR = 102; |
@@ -3624,85 +3532,85 @@ class SVGPaint extends SVGColor native "*SVGPaint" { |
/// @domName SVGPathElement |
-class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGPathElement" { |
+class PathElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGPathElement" { |
/** @domName SVGPathElement.animatedNormalizedPathSegList */ |
- final SVGPathSegList animatedNormalizedPathSegList; |
+ final PathSegList animatedNormalizedPathSegList; |
/** @domName SVGPathElement.animatedPathSegList */ |
- final SVGPathSegList animatedPathSegList; |
+ final PathSegList animatedPathSegList; |
/** @domName SVGPathElement.normalizedPathSegList */ |
- final SVGPathSegList normalizedPathSegList; |
+ final PathSegList normalizedPathSegList; |
/** @domName SVGPathElement.pathLength */ |
- final SVGAnimatedNumber pathLength; |
+ final AnimatedNumber pathLength; |
/** @domName SVGPathElement.pathSegList */ |
- final SVGPathSegList pathSegList; |
+ final PathSegList pathSegList; |
/** @domName SVGPathElement.createSVGPathSegArcAbs */ |
- SVGPathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native; |
+ PathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native; |
/** @domName SVGPathElement.createSVGPathSegArcRel */ |
- SVGPathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native; |
+ PathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native; |
/** @domName SVGPathElement.createSVGPathSegClosePath */ |
- SVGPathSegClosePath createSVGPathSegClosePath() native; |
+ PathSegClosePath createSVGPathSegClosePath() native; |
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicAbs */ |
- SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1, num y1, num x2, num y2) native; |
+ PathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1, num y1, num x2, num y2) native; |
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicRel */ |
- SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1, num y1, num x2, num y2) native; |
+ PathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1, num y1, num x2, num y2) native; |
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs */ |
- SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, num y, num x2, num y2) native; |
+ PathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, num y, num x2, num y2) native; |
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel */ |
- SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, num y, num x2, num y2) native; |
+ PathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, num y, num x2, num y2) native; |
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticAbs */ |
- SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y, num x1, num y1) native; |
+ PathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y, num x1, num y1) native; |
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticRel */ |
- SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y, num x1, num y1) native; |
+ PathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y, num x1, num y1) native; |
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs */ |
- SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(num x, num y) native; |
+ PathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(num x, num y) native; |
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel */ |
- SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(num x, num y) native; |
+ PathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(num x, num y) native; |
/** @domName SVGPathElement.createSVGPathSegLinetoAbs */ |
- SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y) native; |
+ PathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y) native; |
/** @domName SVGPathElement.createSVGPathSegLinetoHorizontalAbs */ |
- SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x) native; |
+ PathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x) native; |
/** @domName SVGPathElement.createSVGPathSegLinetoHorizontalRel */ |
- SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x) native; |
+ PathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x) native; |
/** @domName SVGPathElement.createSVGPathSegLinetoRel */ |
- SVGPathSegLinetoRel createSVGPathSegLinetoRel(num x, num y) native; |
+ PathSegLinetoRel createSVGPathSegLinetoRel(num x, num y) native; |
/** @domName SVGPathElement.createSVGPathSegLinetoVerticalAbs */ |
- SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y) native; |
+ PathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y) native; |
/** @domName SVGPathElement.createSVGPathSegLinetoVerticalRel */ |
- SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y) native; |
+ PathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y) native; |
/** @domName SVGPathElement.createSVGPathSegMovetoAbs */ |
- SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y) native; |
+ PathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y) native; |
/** @domName SVGPathElement.createSVGPathSegMovetoRel */ |
- SVGPathSegMovetoRel createSVGPathSegMovetoRel(num x, num y) native; |
+ PathSegMovetoRel createSVGPathSegMovetoRel(num x, num y) native; |
/** @domName SVGPathElement.getPathSegAtLength */ |
int getPathSegAtLength(num distance) native; |
/** @domName SVGPathElement.getPointAtLength */ |
- SVGPoint getPointAtLength(num distance) native; |
+ Point getPointAtLength(num distance) native; |
/** @domName SVGPathElement.getTotalLength */ |
num getTotalLength() native; |
@@ -3710,7 +3618,7 @@ class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -3723,27 +3631,27 @@ class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -3754,13 +3662,13 @@ class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -3768,7 +3676,7 @@ class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -3776,7 +3684,7 @@ class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
/// @domName SVGPathSeg |
-class SVGPathSeg native "*SVGPathSeg" { |
+class PathSeg native "*SVGPathSeg" { |
static const int PATHSEG_ARC_ABS = 10; |
@@ -3830,7 +3738,7 @@ class SVGPathSeg native "*SVGPathSeg" { |
/// @domName SVGPathSegArcAbs |
-class SVGPathSegArcAbs extends SVGPathSeg native "*SVGPathSegArcAbs" { |
+class PathSegArcAbs extends PathSeg native "*SVGPathSegArcAbs" { |
/** @domName SVGPathSegArcAbs.angle */ |
num angle; |
@@ -3859,7 +3767,7 @@ class SVGPathSegArcAbs extends SVGPathSeg native "*SVGPathSegArcAbs" { |
/// @domName SVGPathSegArcRel |
-class SVGPathSegArcRel extends SVGPathSeg native "*SVGPathSegArcRel" { |
+class PathSegArcRel extends PathSeg native "*SVGPathSegArcRel" { |
/** @domName SVGPathSegArcRel.angle */ |
num angle; |
@@ -3888,7 +3796,7 @@ class SVGPathSegArcRel extends SVGPathSeg native "*SVGPathSegArcRel" { |
/// @domName SVGPathSegClosePath |
-class SVGPathSegClosePath extends SVGPathSeg native "*SVGPathSegClosePath" { |
+class PathSegClosePath extends PathSeg native "*SVGPathSegClosePath" { |
} |
// 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 |
@@ -3896,7 +3804,7 @@ class SVGPathSegClosePath extends SVGPathSeg native "*SVGPathSegClosePath" { |
/// @domName SVGPathSegCurvetoCubicAbs |
-class SVGPathSegCurvetoCubicAbs extends SVGPathSeg native "*SVGPathSegCurvetoCubicAbs" { |
+class PathSegCurvetoCubicAbs extends PathSeg native "*SVGPathSegCurvetoCubicAbs" { |
/** @domName SVGPathSegCurvetoCubicAbs.x */ |
num x; |
@@ -3922,7 +3830,7 @@ class SVGPathSegCurvetoCubicAbs extends SVGPathSeg native "*SVGPathSegCurvetoCub |
/// @domName SVGPathSegCurvetoCubicRel |
-class SVGPathSegCurvetoCubicRel extends SVGPathSeg native "*SVGPathSegCurvetoCubicRel" { |
+class PathSegCurvetoCubicRel extends PathSeg native "*SVGPathSegCurvetoCubicRel" { |
/** @domName SVGPathSegCurvetoCubicRel.x */ |
num x; |
@@ -3948,7 +3856,7 @@ class SVGPathSegCurvetoCubicRel extends SVGPathSeg native "*SVGPathSegCurvetoCub |
/// @domName SVGPathSegCurvetoCubicSmoothAbs |
-class SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg native "*SVGPathSegCurvetoCubicSmoothAbs" { |
+class PathSegCurvetoCubicSmoothAbs extends PathSeg native "*SVGPathSegCurvetoCubicSmoothAbs" { |
/** @domName SVGPathSegCurvetoCubicSmoothAbs.x */ |
num x; |
@@ -3968,7 +3876,7 @@ class SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg native "*SVGPathSegCurv |
/// @domName SVGPathSegCurvetoCubicSmoothRel |
-class SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg native "*SVGPathSegCurvetoCubicSmoothRel" { |
+class PathSegCurvetoCubicSmoothRel extends PathSeg native "*SVGPathSegCurvetoCubicSmoothRel" { |
/** @domName SVGPathSegCurvetoCubicSmoothRel.x */ |
num x; |
@@ -3988,7 +3896,7 @@ class SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg native "*SVGPathSegCurv |
/// @domName SVGPathSegCurvetoQuadraticAbs |
-class SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg native "*SVGPathSegCurvetoQuadraticAbs" { |
+class PathSegCurvetoQuadraticAbs extends PathSeg native "*SVGPathSegCurvetoQuadraticAbs" { |
/** @domName SVGPathSegCurvetoQuadraticAbs.x */ |
num x; |
@@ -4008,7 +3916,7 @@ class SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg native "*SVGPathSegCurvet |
/// @domName SVGPathSegCurvetoQuadraticRel |
-class SVGPathSegCurvetoQuadraticRel extends SVGPathSeg native "*SVGPathSegCurvetoQuadraticRel" { |
+class PathSegCurvetoQuadraticRel extends PathSeg native "*SVGPathSegCurvetoQuadraticRel" { |
/** @domName SVGPathSegCurvetoQuadraticRel.x */ |
num x; |
@@ -4028,7 +3936,7 @@ class SVGPathSegCurvetoQuadraticRel extends SVGPathSeg native "*SVGPathSegCurvet |
/// @domName SVGPathSegCurvetoQuadraticSmoothAbs |
-class SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg native "*SVGPathSegCurvetoQuadraticSmoothAbs" { |
+class PathSegCurvetoQuadraticSmoothAbs extends PathSeg native "*SVGPathSegCurvetoQuadraticSmoothAbs" { |
/** @domName SVGPathSegCurvetoQuadraticSmoothAbs.x */ |
num x; |
@@ -4042,7 +3950,7 @@ class SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg native "*SVGPathSeg |
/// @domName SVGPathSegCurvetoQuadraticSmoothRel |
-class SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg native "*SVGPathSegCurvetoQuadraticSmoothRel" { |
+class PathSegCurvetoQuadraticSmoothRel extends PathSeg native "*SVGPathSegCurvetoQuadraticSmoothRel" { |
/** @domName SVGPathSegCurvetoQuadraticSmoothRel.x */ |
num x; |
@@ -4056,7 +3964,7 @@ class SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg native "*SVGPathSeg |
/// @domName SVGPathSegLinetoAbs |
-class SVGPathSegLinetoAbs extends SVGPathSeg native "*SVGPathSegLinetoAbs" { |
+class PathSegLinetoAbs extends PathSeg native "*SVGPathSegLinetoAbs" { |
/** @domName SVGPathSegLinetoAbs.x */ |
num x; |
@@ -4070,7 +3978,7 @@ class SVGPathSegLinetoAbs extends SVGPathSeg native "*SVGPathSegLinetoAbs" { |
/// @domName SVGPathSegLinetoHorizontalAbs |
-class SVGPathSegLinetoHorizontalAbs extends SVGPathSeg native "*SVGPathSegLinetoHorizontalAbs" { |
+class PathSegLinetoHorizontalAbs extends PathSeg native "*SVGPathSegLinetoHorizontalAbs" { |
/** @domName SVGPathSegLinetoHorizontalAbs.x */ |
num x; |
@@ -4081,7 +3989,7 @@ class SVGPathSegLinetoHorizontalAbs extends SVGPathSeg native "*SVGPathSegLineto |
/// @domName SVGPathSegLinetoHorizontalRel |
-class SVGPathSegLinetoHorizontalRel extends SVGPathSeg native "*SVGPathSegLinetoHorizontalRel" { |
+class PathSegLinetoHorizontalRel extends PathSeg native "*SVGPathSegLinetoHorizontalRel" { |
/** @domName SVGPathSegLinetoHorizontalRel.x */ |
num x; |
@@ -4092,7 +4000,7 @@ class SVGPathSegLinetoHorizontalRel extends SVGPathSeg native "*SVGPathSegLineto |
/// @domName SVGPathSegLinetoRel |
-class SVGPathSegLinetoRel extends SVGPathSeg native "*SVGPathSegLinetoRel" { |
+class PathSegLinetoRel extends PathSeg native "*SVGPathSegLinetoRel" { |
/** @domName SVGPathSegLinetoRel.x */ |
num x; |
@@ -4106,7 +4014,7 @@ class SVGPathSegLinetoRel extends SVGPathSeg native "*SVGPathSegLinetoRel" { |
/// @domName SVGPathSegLinetoVerticalAbs |
-class SVGPathSegLinetoVerticalAbs extends SVGPathSeg native "*SVGPathSegLinetoVerticalAbs" { |
+class PathSegLinetoVerticalAbs extends PathSeg native "*SVGPathSegLinetoVerticalAbs" { |
/** @domName SVGPathSegLinetoVerticalAbs.y */ |
num y; |
@@ -4117,7 +4025,7 @@ class SVGPathSegLinetoVerticalAbs extends SVGPathSeg native "*SVGPathSegLinetoVe |
/// @domName SVGPathSegLinetoVerticalRel |
-class SVGPathSegLinetoVerticalRel extends SVGPathSeg native "*SVGPathSegLinetoVerticalRel" { |
+class PathSegLinetoVerticalRel extends PathSeg native "*SVGPathSegLinetoVerticalRel" { |
/** @domName SVGPathSegLinetoVerticalRel.y */ |
num y; |
@@ -4128,78 +4036,78 @@ class SVGPathSegLinetoVerticalRel extends SVGPathSeg native "*SVGPathSegLinetoVe |
/// @domName SVGPathSegList |
-class SVGPathSegList implements JavaScriptIndexingBehavior, List<SVGPathSeg> native "*SVGPathSegList" { |
+class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*SVGPathSegList" { |
/** @domName SVGPathSegList.numberOfItems */ |
final int numberOfItems; |
- SVGPathSeg operator[](int index) => JS("SVGPathSeg", "#[#]", this, index); |
+ PathSeg operator[](int index) => JS("PathSeg", "#[#]", this, index); |
- void operator[]=(int index, SVGPathSeg value) { |
+ void operator[]=(int index, PathSeg value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
} |
- // -- start List<SVGPathSeg> mixins. |
- // SVGPathSeg is the element type. |
+ // -- start List<PathSeg> mixins. |
+ // PathSeg is the element type. |
- // From Iterable<SVGPathSeg>: |
+ // From Iterable<PathSeg>: |
- Iterator<SVGPathSeg> iterator() { |
+ Iterator<PathSeg> iterator() { |
// Note: NodeLists are not fixed size. And most probably length shouldn't |
// be cached in both iterator _and_ forEach method. For now caching it |
// for consistency. |
- return new FixedSizeListIterator<SVGPathSeg>(this); |
+ return new FixedSizeListIterator<PathSeg>(this); |
} |
- // From Collection<SVGPathSeg>: |
+ // From Collection<PathSeg>: |
- void add(SVGPathSeg value) { |
+ void add(PathSeg value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addLast(SVGPathSeg value) { |
+ void addLast(PathSeg value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addAll(Collection<SVGPathSeg> collection) { |
+ void addAll(Collection<PathSeg> collection) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- bool contains(SVGPathSeg element) => _Collections.contains(this, element); |
+ bool contains(PathSeg element) => _Collections.contains(this, element); |
- void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f); |
+ void forEach(void f(PathSeg element)) => _Collections.forEach(this, f); |
- Collection map(f(SVGPathSeg element)) => _Collections.map(this, [], f); |
+ Collection map(f(PathSeg element)) => _Collections.map(this, [], f); |
- Collection<SVGPathSeg> filter(bool f(SVGPathSeg element)) => |
- _Collections.filter(this, <SVGPathSeg>[], f); |
+ Collection<PathSeg> filter(bool f(PathSeg element)) => |
+ _Collections.filter(this, <PathSeg>[], f); |
- bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f); |
+ bool every(bool f(PathSeg element)) => _Collections.every(this, f); |
- bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f); |
+ bool some(bool f(PathSeg element)) => _Collections.some(this, f); |
bool get isEmpty => this.length == 0; |
- // From List<SVGPathSeg>: |
+ // From List<PathSeg>: |
- void sort([Comparator<SVGPathSeg> compare = Comparable.compare]) { |
+ void sort([Comparator<PathSeg> compare = Comparable.compare]) { |
throw new UnsupportedError("Cannot sort immutable List."); |
} |
- int indexOf(SVGPathSeg element, [int start = 0]) => |
+ int indexOf(PathSeg element, [int start = 0]) => |
_Lists.indexOf(this, element, start, this.length); |
- int lastIndexOf(SVGPathSeg element, [int start]) { |
+ int lastIndexOf(PathSeg element, [int start]) { |
if (start == null) start = length - 1; |
return _Lists.lastIndexOf(this, element, start); |
} |
- SVGPathSeg get last => this[length - 1]; |
+ PathSeg get last => this[length - 1]; |
- SVGPathSeg removeLast() { |
+ PathSeg removeLast() { |
throw new UnsupportedError("Cannot removeLast on immutable List."); |
} |
- void setRange(int start, int rangeLength, List<SVGPathSeg> from, [int startFrom]) { |
+ void setRange(int start, int rangeLength, List<PathSeg> from, [int startFrom]) { |
throw new UnsupportedError("Cannot setRange on immutable List."); |
} |
@@ -4207,35 +4115,35 @@ class SVGPathSegList implements JavaScriptIndexingBehavior, List<SVGPathSeg> nat |
throw new UnsupportedError("Cannot removeRange on immutable List."); |
} |
- void insertRange(int start, int rangeLength, [SVGPathSeg initialValue]) { |
+ void insertRange(int start, int rangeLength, [PathSeg initialValue]) { |
throw new UnsupportedError("Cannot insertRange on immutable List."); |
} |
- List<SVGPathSeg> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <SVGPathSeg>[]); |
+ List<PathSeg> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <PathSeg>[]); |
- // -- end List<SVGPathSeg> mixins. |
+ // -- end List<PathSeg> mixins. |
/** @domName SVGPathSegList.appendItem */ |
- SVGPathSeg appendItem(SVGPathSeg newItem) native; |
+ PathSeg appendItem(PathSeg newItem) native; |
/** @domName SVGPathSegList.clear */ |
void clear() native; |
/** @domName SVGPathSegList.getItem */ |
- SVGPathSeg getItem(int index) native; |
+ PathSeg getItem(int index) native; |
/** @domName SVGPathSegList.initialize */ |
- SVGPathSeg initialize(SVGPathSeg newItem) native; |
+ PathSeg initialize(PathSeg newItem) native; |
/** @domName SVGPathSegList.insertItemBefore */ |
- SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index) native; |
+ PathSeg insertItemBefore(PathSeg newItem, int index) native; |
/** @domName SVGPathSegList.removeItem */ |
- SVGPathSeg removeItem(int index) native; |
+ PathSeg removeItem(int index) native; |
/** @domName SVGPathSegList.replaceItem */ |
- SVGPathSeg replaceItem(SVGPathSeg newItem, int index) native; |
+ PathSeg replaceItem(PathSeg 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 |
@@ -4243,7 +4151,7 @@ class SVGPathSegList implements JavaScriptIndexingBehavior, List<SVGPathSeg> nat |
/// @domName SVGPathSegMovetoAbs |
-class SVGPathSegMovetoAbs extends SVGPathSeg native "*SVGPathSegMovetoAbs" { |
+class PathSegMovetoAbs extends PathSeg native "*SVGPathSegMovetoAbs" { |
/** @domName SVGPathSegMovetoAbs.x */ |
num x; |
@@ -4257,7 +4165,7 @@ class SVGPathSegMovetoAbs extends SVGPathSeg native "*SVGPathSegMovetoAbs" { |
/// @domName SVGPathSegMovetoRel |
-class SVGPathSegMovetoRel extends SVGPathSeg native "*SVGPathSegMovetoRel" { |
+class PathSegMovetoRel extends PathSeg native "*SVGPathSegMovetoRel" { |
/** @domName SVGPathSegMovetoRel.x */ |
num x; |
@@ -4271,41 +4179,41 @@ class SVGPathSegMovetoRel extends SVGPathSeg native "*SVGPathSegMovetoRel" { |
/// @domName SVGPatternElement |
-class SVGPatternElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGFitToViewBox, SVGExternalResourcesRequired native "*SVGPatternElement" { |
+class PatternElement extends SvgElement implements FitToViewBox, Tests, UriReference, Stylable, ExternalResourcesRequired, LangSpace native "*SVGPatternElement" { |
/** @domName SVGPatternElement.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGPatternElement.patternContentUnits */ |
- final SVGAnimatedEnumeration patternContentUnits; |
+ final AnimatedEnumeration patternContentUnits; |
/** @domName SVGPatternElement.patternTransform */ |
- final SVGAnimatedTransformList patternTransform; |
+ final AnimatedTransformList patternTransform; |
/** @domName SVGPatternElement.patternUnits */ |
- final SVGAnimatedEnumeration patternUnits; |
+ final AnimatedEnumeration patternUnits; |
/** @domName SVGPatternElement.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGPatternElement.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGPatternElement.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGFitToViewBox |
/** @domName SVGFitToViewBox.preserveAspectRatio */ |
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio; |
+ final AnimatedPreserveAspectRatio preserveAspectRatio; |
/** @domName SVGFitToViewBox.viewBox */ |
- final SVGAnimatedRect viewBox; |
+ final AnimatedRect viewBox; |
// From SVGLangSpace |
@@ -4318,7 +4226,7 @@ class SVGPatternElement extends SVGElement implements SVGLangSpace, SVGTests, SV |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -4329,13 +4237,13 @@ class SVGPatternElement extends SVGElement implements SVGLangSpace, SVGTests, SV |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -4343,15 +4251,17 @@ class SVGPatternElement extends SVGElement implements SVGLangSpace, SVGTests, SV |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+// WARNING: Do not edit - generated code. |
-/// @domName SVGPoint |
-class SVGPoint native "*SVGPoint" { |
+ |
+class Point native "*SVGPoint" { |
+ factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y); |
/** @domName SVGPoint.x */ |
num x; |
@@ -4360,7 +4270,8 @@ class SVGPoint native "*SVGPoint" { |
num y; |
/** @domName SVGPoint.matrixTransform */ |
- SVGPoint matrixTransform(SVGMatrix matrix) 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 |
@@ -4368,31 +4279,31 @@ class SVGPoint native "*SVGPoint" { |
/// @domName SVGPointList |
-class SVGPointList native "*SVGPointList" { |
+class PointList native "*SVGPointList" { |
/** @domName SVGPointList.numberOfItems */ |
final int numberOfItems; |
/** @domName SVGPointList.appendItem */ |
- SVGPoint appendItem(SVGPoint item) native; |
+ Point appendItem(Point item) native; |
/** @domName SVGPointList.clear */ |
void clear() native; |
/** @domName SVGPointList.getItem */ |
- SVGPoint getItem(int index) native; |
+ Point getItem(int index) native; |
/** @domName SVGPointList.initialize */ |
- SVGPoint initialize(SVGPoint item) native; |
+ Point initialize(Point item) native; |
/** @domName SVGPointList.insertItemBefore */ |
- SVGPoint insertItemBefore(SVGPoint item, int index) native; |
+ Point insertItemBefore(Point item, int index) native; |
/** @domName SVGPointList.removeItem */ |
- SVGPoint removeItem(int index) native; |
+ Point removeItem(int index) native; |
/** @domName SVGPointList.replaceItem */ |
- SVGPoint replaceItem(SVGPoint item, int index) native; |
+ Point replaceItem(Point item, int index) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -4400,18 +4311,18 @@ class SVGPointList native "*SVGPointList" { |
/// @domName SVGPolygonElement |
-class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGPolygonElement" { |
+class PolygonElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGPolygonElement" { |
/** @domName SVGPolygonElement.animatedPoints */ |
- final SVGPointList animatedPoints; |
+ final PointList animatedPoints; |
/** @domName SVGPolygonElement.points */ |
- final SVGPointList points; |
+ final PointList points; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -4424,27 +4335,27 @@ class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -4455,13 +4366,13 @@ class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -4469,7 +4380,7 @@ class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -4477,18 +4388,18 @@ class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable, |
/// @domName SVGPolylineElement |
-class SVGPolylineElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGPolylineElement" { |
+class PolylineElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGPolylineElement" { |
/** @domName SVGPolylineElement.animatedPoints */ |
- final SVGPointList animatedPoints; |
+ final PointList animatedPoints; |
/** @domName SVGPolylineElement.points */ |
- final SVGPointList points; |
+ final PointList points; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -4501,27 +4412,27 @@ class SVGPolylineElement extends SVGElement implements SVGLangSpace, SVGStylable |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -4532,13 +4443,13 @@ class SVGPolylineElement extends SVGElement implements SVGLangSpace, SVGStylable |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -4546,7 +4457,7 @@ class SVGPolylineElement extends SVGElement implements SVGLangSpace, SVGStylable |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -4554,7 +4465,7 @@ class SVGPolylineElement extends SVGElement implements SVGLangSpace, SVGStylable |
/// @domName SVGPreserveAspectRatio |
-class SVGPreserveAspectRatio native "*SVGPreserveAspectRatio" { |
+class PreserveAspectRatio native "*SVGPreserveAspectRatio" { |
static const int SVG_MEETORSLICE_MEET = 1; |
@@ -4596,25 +4507,25 @@ class SVGPreserveAspectRatio native "*SVGPreserveAspectRatio" { |
/// @domName SVGRadialGradientElement |
-class SVGRadialGradientElement extends SVGGradientElement native "*SVGRadialGradientElement" { |
+class RadialGradientElement extends GradientElement native "*SVGRadialGradientElement" { |
/** @domName SVGRadialGradientElement.cx */ |
- final SVGAnimatedLength cx; |
+ final AnimatedLength cx; |
/** @domName SVGRadialGradientElement.cy */ |
- final SVGAnimatedLength cy; |
+ final AnimatedLength cy; |
/** @domName SVGRadialGradientElement.fr */ |
- final SVGAnimatedLength fr; |
+ final AnimatedLength fr; |
/** @domName SVGRadialGradientElement.fx */ |
- final SVGAnimatedLength fx; |
+ final AnimatedLength fx; |
/** @domName SVGRadialGradientElement.fy */ |
- final SVGAnimatedLength fy; |
+ final AnimatedLength fy; |
/** @domName SVGRadialGradientElement.r */ |
- final SVGAnimatedLength r; |
+ final AnimatedLength r; |
} |
// 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 |
@@ -4622,7 +4533,7 @@ class SVGRadialGradientElement extends SVGGradientElement native "*SVGRadialGrad |
/// @domName SVGRect |
-class SVGRect native "*SVGRect" { |
+class Rect native "*SVGRect" { |
/** @domName SVGRect.height */ |
num height; |
@@ -4642,30 +4553,30 @@ class SVGRect native "*SVGRect" { |
/// @domName SVGRectElement |
-class SVGRectElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGRectElement" { |
+class RectElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGRectElement" { |
/** @domName SVGRectElement.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGRectElement.rx */ |
- final SVGAnimatedLength rx; |
+ final AnimatedLength rx; |
/** @domName SVGRectElement.ry */ |
- final SVGAnimatedLength ry; |
+ final AnimatedLength ry; |
/** @domName SVGRectElement.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGRectElement.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGRectElement.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -4678,27 +4589,27 @@ class SVGRectElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -4709,13 +4620,13 @@ class SVGRectElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -4723,7 +4634,7 @@ class SVGRectElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -4731,7 +4642,7 @@ class SVGRectElement extends SVGElement implements SVGLangSpace, SVGStylable, SV |
/// @domName SVGRenderingIntent |
-class SVGRenderingIntent native "*SVGRenderingIntent" { |
+class RenderingIntent native "*SVGRenderingIntent" { |
static const int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; |
@@ -4750,402 +4661,460 @@ class SVGRenderingIntent native "*SVGRenderingIntent" { |
// BSD-style license that can be found in the LICENSE file. |
-class SVGSVGElement extends SVGElement implements SVGZoomAndPan, SVGLocatable, SVGLangSpace, SVGTests, SVGStylable, SVGFitToViewBox, SVGExternalResourcesRequired native "*SVGSVGElement" { |
- factory SVGSVGElement() => _SVGSVGElementFactoryProvider.createSVGSVGElement(); |
- |
+/// @domName SVGScriptElement |
+class ScriptElement extends SvgElement implements UriReference, ExternalResourcesRequired native "*SVGScriptElement" { |
- /** @domName SVGSVGElement.contentScriptType */ |
- String contentScriptType; |
+ factory ScriptElement() => _Elements.createScriptElement(); |
- /** @domName SVGSVGElement.contentStyleType */ |
- String contentStyleType; |
+ /** @domName SVGScriptElement.type */ |
+ String type; |
- /** @domName SVGSVGElement.currentScale */ |
- num currentScale; |
+ // From SVGExternalResourcesRequired |
- /** @domName SVGSVGElement.currentTranslate */ |
- final SVGPoint currentTranslate; |
+ /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
+ final AnimatedBoolean externalResourcesRequired; |
- /** @domName SVGSVGElement.currentView */ |
- final SVGViewSpec currentView; |
+ // From SVGURIReference |
- /** @domName SVGSVGElement.height */ |
- final SVGAnimatedLength height; |
+ /** @domName SVGURIReference.href */ |
+ final AnimatedString href; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
- /** @domName SVGSVGElement.pixelUnitToMillimeterX */ |
- final num pixelUnitToMillimeterX; |
- /** @domName SVGSVGElement.pixelUnitToMillimeterY */ |
- final num pixelUnitToMillimeterY; |
+/// @domName SVGSetElement |
+class SetElement extends AnimationElement native "*SVGSetElement" { |
+} |
+// 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. |
- /** @domName SVGSVGElement.screenPixelToMillimeterX */ |
- final num screenPixelToMillimeterX; |
- /** @domName SVGSVGElement.screenPixelToMillimeterY */ |
- final num screenPixelToMillimeterY; |
+/// @domName SVGStopElement |
+class StopElement extends SvgElement implements Stylable native "*SVGStopElement" { |
- /** @domName SVGSVGElement.useCurrentView */ |
- final bool useCurrentView; |
+ /** @domName SVGStopElement.offset */ |
+ final AnimatedNumber offset; |
- /** @domName SVGSVGElement.viewport */ |
- final SVGRect viewport; |
+ // From SVGStylable |
- /** @domName SVGSVGElement.width */ |
- final SVGAnimatedLength width; |
+ /** @domName SVGStylable.className */ |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
- /** @domName SVGSVGElement.x */ |
- final SVGAnimatedLength x; |
+ // Use implementation from Element. |
+ // final CSSStyleDeclaration style; |
- /** @domName SVGSVGElement.y */ |
- final SVGAnimatedLength y; |
+ /** @domName SVGStylable.getPresentationAttribute */ |
+ CSSValue getPresentationAttribute(String name) 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. |
- /** @domName SVGSVGElement.animationsPaused */ |
- bool animationsPaused() native; |
- /** @domName SVGSVGElement.checkEnclosure */ |
- bool checkEnclosure(SVGElement element, SVGRect rect) native; |
+/// @domName SVGStringList |
+class StringList implements JavaScriptIndexingBehavior, List<String> native "*SVGStringList" { |
- /** @domName SVGSVGElement.checkIntersection */ |
- bool checkIntersection(SVGElement element, SVGRect rect) native; |
+ /** @domName SVGStringList.numberOfItems */ |
+ final int numberOfItems; |
- /** @domName SVGSVGElement.createSVGAngle */ |
- SVGAngle createSVGAngle() native; |
+ String operator[](int index) => JS("String", "#[#]", this, index); |
- /** @domName SVGSVGElement.createSVGLength */ |
- SVGLength createSVGLength() native; |
+ void operator[]=(int index, String value) { |
+ throw new UnsupportedError("Cannot assign element of immutable List."); |
+ } |
+ // -- start List<String> mixins. |
+ // String is the element type. |
- /** @domName SVGSVGElement.createSVGMatrix */ |
- SVGMatrix createSVGMatrix() native; |
+ // From Iterable<String>: |
- /** @domName SVGSVGElement.createSVGNumber */ |
- SVGNumber createSVGNumber() native; |
+ Iterator<String> iterator() { |
+ // Note: NodeLists are not fixed size. And most probably length shouldn't |
+ // be cached in both iterator _and_ forEach method. For now caching it |
+ // for consistency. |
+ return new FixedSizeListIterator<String>(this); |
+ } |
- /** @domName SVGSVGElement.createSVGPoint */ |
- SVGPoint createSVGPoint() native; |
+ // From Collection<String>: |
- /** @domName SVGSVGElement.createSVGRect */ |
- SVGRect createSVGRect() native; |
+ void add(String value) { |
+ throw new UnsupportedError("Cannot add to immutable List."); |
+ } |
- /** @domName SVGSVGElement.createSVGTransform */ |
- SVGTransform createSVGTransform() native; |
+ void addLast(String value) { |
+ throw new UnsupportedError("Cannot add to immutable List."); |
+ } |
- /** @domName SVGSVGElement.createSVGTransformFromMatrix */ |
- SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix) native; |
+ void addAll(Collection<String> collection) { |
+ throw new UnsupportedError("Cannot add to immutable List."); |
+ } |
- /** @domName SVGSVGElement.deselectAll */ |
- void deselectAll() native; |
+ bool contains(String element) => _Collections.contains(this, element); |
- /** @domName SVGSVGElement.forceRedraw */ |
- void forceRedraw() native; |
+ void forEach(void f(String element)) => _Collections.forEach(this, f); |
- /** @domName SVGSVGElement.getCurrentTime */ |
- num getCurrentTime() native; |
+ Collection map(f(String element)) => _Collections.map(this, [], f); |
- /** @domName SVGSVGElement.getElementById */ |
- Element getElementById(String elementId) native; |
+ Collection<String> filter(bool f(String element)) => |
+ _Collections.filter(this, <String>[], f); |
- /** @domName SVGSVGElement.getEnclosureList */ |
- List<Node> getEnclosureList(SVGRect rect, SVGElement referenceElement) native; |
+ bool every(bool f(String element)) => _Collections.every(this, f); |
- /** @domName SVGSVGElement.getIntersectionList */ |
- List<Node> getIntersectionList(SVGRect rect, SVGElement referenceElement) native; |
+ bool some(bool f(String element)) => _Collections.some(this, f); |
- /** @domName SVGSVGElement.pauseAnimations */ |
- void pauseAnimations() native; |
+ bool get isEmpty => this.length == 0; |
- /** @domName SVGSVGElement.setCurrentTime */ |
- void setCurrentTime(num seconds) native; |
+ // From List<String>: |
- /** @domName SVGSVGElement.suspendRedraw */ |
- int suspendRedraw(int maxWaitMilliseconds) native; |
+ void sort([Comparator<String> compare = Comparable.compare]) { |
+ throw new UnsupportedError("Cannot sort immutable List."); |
+ } |
- /** @domName SVGSVGElement.unpauseAnimations */ |
- void unpauseAnimations() native; |
+ int indexOf(String element, [int start = 0]) => |
+ _Lists.indexOf(this, element, start, this.length); |
- /** @domName SVGSVGElement.unsuspendRedraw */ |
- void unsuspendRedraw(int suspendHandleId) native; |
+ int lastIndexOf(String element, [int start]) { |
+ if (start == null) start = length - 1; |
+ return _Lists.lastIndexOf(this, element, start); |
+ } |
- /** @domName SVGSVGElement.unsuspendRedrawAll */ |
- void unsuspendRedrawAll() native; |
+ String get last => this[length - 1]; |
- // From SVGExternalResourcesRequired |
+ String removeLast() { |
+ throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ } |
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { |
+ throw new UnsupportedError("Cannot setRange on immutable List."); |
+ } |
- // From SVGFitToViewBox |
+ void removeRange(int start, int rangeLength) { |
+ throw new UnsupportedError("Cannot removeRange on immutable List."); |
+ } |
- /** @domName SVGFitToViewBox.preserveAspectRatio */ |
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio; |
+ void insertRange(int start, int rangeLength, [String initialValue]) { |
+ throw new UnsupportedError("Cannot insertRange on immutable List."); |
+ } |
- /** @domName SVGFitToViewBox.viewBox */ |
- final SVGAnimatedRect viewBox; |
+ List<String> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <String>[]); |
- // From SVGLangSpace |
+ // -- end List<String> mixins. |
- /** @domName SVGLangSpace.xmllang */ |
- String xmllang; |
+ /** @domName SVGStringList.appendItem */ |
+ String appendItem(String item) native; |
- /** @domName SVGLangSpace.xmlspace */ |
- String xmlspace; |
- |
- // From SVGLocatable |
+ /** @domName SVGStringList.clear */ |
+ void clear() native; |
- /** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ /** @domName SVGStringList.getItem */ |
+ String getItem(int index) native; |
- /** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ /** @domName SVGStringList.initialize */ |
+ String initialize(String item) native; |
- /** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ /** @domName SVGStringList.insertItemBefore */ |
+ String insertItemBefore(String item, int index) native; |
- /** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ /** @domName SVGStringList.removeItem */ |
+ String removeItem(int index) native; |
- /** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ /** @domName SVGStringList.replaceItem */ |
+ String replaceItem(String item, int index) native; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
- /** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
- // From SVGStylable |
+/// @domName SVGStylable |
+abstract class Stylable { |
- /** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString className; |
- // Use implementation from Element. |
- // final CSSStyleDeclaration style; |
+ CSSStyleDeclaration style; |
/** @domName SVGStylable.getPresentationAttribute */ |
- CSSValue getPresentationAttribute(String name) native; |
- |
- // From SVGTests |
- |
- /** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
- |
- /** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ CSSValue getPresentationAttribute(String name); |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
- /** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
- /** @domName SVGTests.hasExtension */ |
- bool hasExtension(String extension) native; |
+/// @domName SVGStyleElement |
+class StyleElement extends SvgElement implements LangSpace native "*SVGStyleElement" { |
- // From SVGZoomAndPan |
+ factory StyleElement() => _Elements.createStyleElement(); |
- /** @domName SVGZoomAndPan.zoomAndPan */ |
- int zoomAndPan; |
+ /** @domName SVGStyleElement.disabled */ |
+ bool disabled; |
-} |
-// 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. |
+ /** @domName SVGStyleElement.media */ |
+ String media; |
+ // Shadowing definition. |
+ /** @domName SVGStyleElement.title */ |
+ String get title => JS("String", "#.title", this); |
-/// @domName SVGScriptElement |
-class SVGScriptElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired native "*SVGScriptElement" { |
+ /** @domName SVGStyleElement.title */ |
+ void set title(String value) { |
+ JS("void", "#.title = #", this, value); |
+ } |
- /** @domName SVGScriptElement.type */ |
+ /** @domName SVGStyleElement.type */ |
String type; |
- // From SVGExternalResourcesRequired |
- |
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ // From SVGLangSpace |
- // From SVGURIReference |
+ /** @domName SVGLangSpace.xmllang */ |
+ String xmllang; |
- /** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ /** @domName SVGLangSpace.xmlspace */ |
+ String xmlspace; |
} |
// 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. |
-/// @domName SVGSetElement |
-class SVGSetElement extends SVGAnimationElement native "*SVGSetElement" { |
+/// @domName SVGDocument |
+class SvgDocument extends Document native "*SVGDocument" { |
+ |
+ /** @domName SVGDocument.rootElement */ |
+ final SvgSvgElement rootElement; |
+ |
+ /** @domName SVGDocument.createEvent */ |
+ Event $dom_createEvent(String eventType) native "createEvent"; |
} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// 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. |
-/// @domName SVGStopElement |
-class SVGStopElement extends SVGElement implements SVGStylable native "*SVGStopElement" { |
- |
- /** @domName SVGStopElement.offset */ |
- final SVGAnimatedNumber offset; |
+class _AttributeClassSet extends CssClassSet { |
+ final Element _element; |
- // From SVGStylable |
+ _AttributeClassSet(this._element); |
- /** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ Set<String> readClasses() { |
+ var classname = _element.attributes['class']; |
- // Use implementation from Element. |
- // final CSSStyleDeclaration style; |
+ Set<String> s = new Set<String>(); |
+ for (String name in classname.split(' ')) { |
+ String trimmed = name.trim(); |
+ if (!trimmed.isEmpty) { |
+ s.add(trimmed); |
+ } |
+ } |
+ return s; |
+ } |
- /** @domName SVGStylable.getPresentationAttribute */ |
- CSSValue getPresentationAttribute(String name) native; |
+ void writeClasses(Set s) { |
+ _element.attributes['class'] = _formatSet(s); |
+ } |
} |
-// 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 SvgElement extends Element native "*SVGElement" { |
+ factory SvgElement.tag(String tag) => |
+ _SvgElementFactoryProvider.createSvgElement_tag(tag); |
+ factory SvgElement.svg(String svg) => |
+ _SvgElementFactoryProvider.createSvgElement_svg(svg); |
-/// @domName SVGStringList |
-class SVGStringList implements JavaScriptIndexingBehavior, List<String> native "*SVGStringList" { |
+ CssClassSet get classes { |
+ if (_cssClassSet == null) { |
+ _cssClassSet = new _AttributeClassSet(_ptr); |
+ } |
+ return _cssClassSet; |
+ } |
- /** @domName SVGStringList.numberOfItems */ |
- final int numberOfItems; |
+ List<Element> get elements => new FilteredElementList(this); |
- String operator[](int index) => JS("String", "#[#]", this, index); |
+ void set elements(Collection<Element> value) { |
+ final elements = this.elements; |
+ elements.clear(); |
+ elements.addAll(value); |
+ } |
- void operator[]=(int index, String value) { |
- throw new UnsupportedError("Cannot assign element of immutable List."); |
+ String get outerHTML { |
+ final container = new Element.tag("div"); |
+ final SvgElement cloned = this.clone(true); |
+ container.elements.add(cloned); |
+ return container.innerHTML; |
} |
- // -- start List<String> mixins. |
- // String is the element type. |
- // From Iterable<String>: |
+ String get innerHTML { |
+ final container = new Element.tag("div"); |
+ final SvgElement cloned = this.clone(true); |
+ container.elements.addAll(cloned.elements); |
+ return container.innerHTML; |
+ } |
- Iterator<String> iterator() { |
- // Note: NodeLists are not fixed size. And most probably length shouldn't |
- // be cached in both iterator _and_ forEach method. For now caching it |
- // for consistency. |
- return new FixedSizeListIterator<String>(this); |
+ void set innerHTML(String svg) { |
+ final container = new Element.tag("div"); |
+ // Wrap the SVG string in <svg> so that SvgElements are created, rather than |
+ // HTMLElements. |
+ container.innerHTML = '<svg version="1.1">$svg</svg>'; |
+ this.elements = container.elements[0].elements; |
} |
- // From Collection<String>: |
- void add(String value) { |
- throw new UnsupportedError("Cannot add to immutable List."); |
- } |
+ // Shadowing definition. |
+ /** @domName SVGElement.id */ |
+ String get id => JS("String", "#.id", this); |
- void addLast(String value) { |
- throw new UnsupportedError("Cannot add to immutable List."); |
+ /** @domName SVGElement.id */ |
+ void set id(String value) { |
+ JS("void", "#.id = #", this, value); |
} |
- void addAll(Collection<String> collection) { |
- throw new UnsupportedError("Cannot add to immutable List."); |
- } |
+ /** @domName SVGElement.ownerSVGElement */ |
+ final SvgSvgElement ownerSVGElement; |
- bool contains(String element) => _Collections.contains(this, element); |
+ /** @domName SVGElement.viewportElement */ |
+ final SvgElement viewportElement; |
- void forEach(void f(String element)) => _Collections.forEach(this, f); |
+ /** @domName SVGElement.xmlbase */ |
+ String xmlbase; |
- Collection map(f(String element)) => _Collections.map(this, [], f); |
+} |
+// 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. |
- Collection<String> filter(bool f(String element)) => |
- _Collections.filter(this, <String>[], f); |
- bool every(bool f(String element)) => _Collections.every(this, f); |
+class SvgSvgElement extends SvgElement implements FitToViewBox, Tests, Stylable, Locatable, ExternalResourcesRequired, ZoomAndPan, LangSpace native "*SVGSVGElement" { |
+ factory SvgSvgElement() => _SvgSvgElementFactoryProvider.createSvgSvgElement(); |
- bool some(bool f(String element)) => _Collections.some(this, f); |
- bool get isEmpty => this.length == 0; |
+ /** @domName SVGSVGElement.contentScriptType */ |
+ String contentScriptType; |
- // From List<String>: |
+ /** @domName SVGSVGElement.contentStyleType */ |
+ String contentStyleType; |
- void sort([Comparator<String> compare = Comparable.compare]) { |
- throw new UnsupportedError("Cannot sort immutable List."); |
- } |
+ /** @domName SVGSVGElement.currentScale */ |
+ num currentScale; |
- int indexOf(String element, [int start = 0]) => |
- _Lists.indexOf(this, element, start, this.length); |
+ /** @domName SVGSVGElement.currentTranslate */ |
+ final Point currentTranslate; |
- int lastIndexOf(String element, [int start]) { |
- if (start == null) start = length - 1; |
- return _Lists.lastIndexOf(this, element, start); |
- } |
+ /** @domName SVGSVGElement.currentView */ |
+ final ViewSpec currentView; |
- String get last => this[length - 1]; |
+ /** @domName SVGSVGElement.height */ |
+ final AnimatedLength height; |
- String removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
- } |
+ /** @domName SVGSVGElement.pixelUnitToMillimeterX */ |
+ final num pixelUnitToMillimeterX; |
- void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { |
- throw new UnsupportedError("Cannot setRange on immutable List."); |
- } |
+ /** @domName SVGSVGElement.pixelUnitToMillimeterY */ |
+ final num pixelUnitToMillimeterY; |
- void removeRange(int start, int rangeLength) { |
- throw new UnsupportedError("Cannot removeRange on immutable List."); |
- } |
+ /** @domName SVGSVGElement.screenPixelToMillimeterX */ |
+ final num screenPixelToMillimeterX; |
- void insertRange(int start, int rangeLength, [String initialValue]) { |
- throw new UnsupportedError("Cannot insertRange on immutable List."); |
- } |
+ /** @domName SVGSVGElement.screenPixelToMillimeterY */ |
+ final num screenPixelToMillimeterY; |
- List<String> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <String>[]); |
+ /** @domName SVGSVGElement.useCurrentView */ |
+ final bool useCurrentView; |
- // -- end List<String> mixins. |
+ /** @domName SVGSVGElement.viewport */ |
+ final Rect viewport; |
- /** @domName SVGStringList.appendItem */ |
- String appendItem(String item) native; |
+ /** @domName SVGSVGElement.width */ |
+ final AnimatedLength width; |
- /** @domName SVGStringList.clear */ |
- void clear() native; |
+ /** @domName SVGSVGElement.x */ |
+ final AnimatedLength x; |
- /** @domName SVGStringList.getItem */ |
- String getItem(int index) native; |
+ /** @domName SVGSVGElement.y */ |
+ final AnimatedLength y; |
- /** @domName SVGStringList.initialize */ |
- String initialize(String item) native; |
+ /** @domName SVGSVGElement.animationsPaused */ |
+ bool animationsPaused() native; |
- /** @domName SVGStringList.insertItemBefore */ |
- String insertItemBefore(String item, int index) native; |
+ /** @domName SVGSVGElement.checkEnclosure */ |
+ bool checkEnclosure(SvgElement element, Rect rect) native; |
- /** @domName SVGStringList.removeItem */ |
- String removeItem(int index) native; |
+ /** @domName SVGSVGElement.checkIntersection */ |
+ bool checkIntersection(SvgElement element, Rect rect) native; |
- /** @domName SVGStringList.replaceItem */ |
- String replaceItem(String item, int index) native; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
+ /** @domName SVGSVGElement.createSVGAngle */ |
+ Angle createSVGAngle() native; |
+ /** @domName SVGSVGElement.createSVGLength */ |
+ Length createSVGLength() native; |
-/// @domName SVGStylable |
-abstract class SVGStylable { |
+ /** @domName SVGSVGElement.createSVGMatrix */ |
+ Matrix createSVGMatrix() native; |
- SVGAnimatedString className; |
+ /** @domName SVGSVGElement.createSVGNumber */ |
+ Number createSVGNumber() native; |
- CSSStyleDeclaration style; |
+ /** @domName SVGSVGElement.createSVGPoint */ |
+ Point createSVGPoint() native; |
- /** @domName SVGStylable.getPresentationAttribute */ |
- CSSValue getPresentationAttribute(String name); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
+ /** @domName SVGSVGElement.createSVGRect */ |
+ Rect createSVGRect() native; |
+ /** @domName SVGSVGElement.createSVGTransform */ |
+ Transform createSVGTransform() native; |
-/// @domName SVGStyleElement |
-class SVGStyleElement extends SVGElement implements SVGLangSpace native "*SVGStyleElement" { |
+ /** @domName SVGSVGElement.createSVGTransformFromMatrix */ |
+ Transform createSVGTransformFromMatrix(Matrix matrix) native; |
- /** @domName SVGStyleElement.disabled */ |
- bool disabled; |
+ /** @domName SVGSVGElement.deselectAll */ |
+ void deselectAll() native; |
- /** @domName SVGStyleElement.media */ |
- String media; |
+ /** @domName SVGSVGElement.forceRedraw */ |
+ void forceRedraw() native; |
- // Shadowing definition. |
- /** @domName SVGStyleElement.title */ |
- String get title => JS("String", "#.title", this); |
+ /** @domName SVGSVGElement.getCurrentTime */ |
+ num getCurrentTime() native; |
- /** @domName SVGStyleElement.title */ |
- void set title(String value) { |
- JS("void", "#.title = #", this, value); |
- } |
+ /** @domName SVGSVGElement.getElementById */ |
+ Element getElementById(String elementId) native; |
- /** @domName SVGStyleElement.type */ |
- String type; |
+ /** @domName SVGSVGElement.getEnclosureList */ |
+ List<Node> getEnclosureList(Rect rect, SvgElement referenceElement) native; |
+ |
+ /** @domName SVGSVGElement.getIntersectionList */ |
+ List<Node> getIntersectionList(Rect rect, SvgElement referenceElement) native; |
+ |
+ /** @domName SVGSVGElement.pauseAnimations */ |
+ void pauseAnimations() native; |
+ |
+ /** @domName SVGSVGElement.setCurrentTime */ |
+ void setCurrentTime(num seconds) native; |
+ |
+ /** @domName SVGSVGElement.suspendRedraw */ |
+ int suspendRedraw(int maxWaitMilliseconds) native; |
+ |
+ /** @domName SVGSVGElement.unpauseAnimations */ |
+ void unpauseAnimations() native; |
+ |
+ /** @domName SVGSVGElement.unsuspendRedraw */ |
+ void unsuspendRedraw(int suspendHandleId) native; |
+ |
+ /** @domName SVGSVGElement.unsuspendRedrawAll */ |
+ void unsuspendRedrawAll() native; |
+ |
+ // From SVGExternalResourcesRequired |
+ |
+ /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
+ final AnimatedBoolean externalResourcesRequired; |
+ |
+ // From SVGFitToViewBox |
+ |
+ /** @domName SVGFitToViewBox.preserveAspectRatio */ |
+ final AnimatedPreserveAspectRatio preserveAspectRatio; |
+ |
+ /** @domName SVGFitToViewBox.viewBox */ |
+ final AnimatedRect viewBox; |
// From SVGLangSpace |
@@ -5154,6 +5123,57 @@ class SVGStyleElement extends SVGElement implements SVGLangSpace native "*SVGSty |
/** @domName SVGLangSpace.xmlspace */ |
String xmlspace; |
+ |
+ // From SVGLocatable |
+ |
+ /** @domName SVGLocatable.farthestViewportElement */ |
+ final SvgElement farthestViewportElement; |
+ |
+ /** @domName SVGLocatable.nearestViewportElement */ |
+ final SvgElement nearestViewportElement; |
+ |
+ /** @domName SVGLocatable.getBBox */ |
+ Rect getBBox() native; |
+ |
+ /** @domName SVGLocatable.getCTM */ |
+ Matrix getCTM() native; |
+ |
+ /** @domName SVGLocatable.getScreenCTM */ |
+ Matrix getScreenCTM() native; |
+ |
+ /** @domName SVGLocatable.getTransformToElement */ |
+ Matrix getTransformToElement(SvgElement element) native; |
+ |
+ // From SVGStylable |
+ |
+ /** @domName SVGStylable.className */ |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
+ |
+ // Use implementation from Element. |
+ // final CSSStyleDeclaration style; |
+ |
+ /** @domName SVGStylable.getPresentationAttribute */ |
+ CSSValue getPresentationAttribute(String name) native; |
+ |
+ // From SVGTests |
+ |
+ /** @domName SVGTests.requiredExtensions */ |
+ final StringList requiredExtensions; |
+ |
+ /** @domName SVGTests.requiredFeatures */ |
+ final StringList requiredFeatures; |
+ |
+ /** @domName SVGTests.systemLanguage */ |
+ final StringList systemLanguage; |
+ |
+ /** @domName SVGTests.hasExtension */ |
+ bool hasExtension(String extension) native; |
+ |
+ // From SVGZoomAndPan |
+ |
+ /** @domName SVGZoomAndPan.zoomAndPan */ |
+ int zoomAndPan; |
+ |
} |
// 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 |
@@ -5161,12 +5181,12 @@ class SVGStyleElement extends SVGElement implements SVGLangSpace native "*SVGSty |
/// @domName SVGSwitchElement |
-class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGSwitchElement" { |
+class SwitchElement extends SvgElement implements Transformable, Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGSwitchElement" { |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -5179,27 +5199,27 @@ class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -5210,13 +5230,13 @@ class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -5224,7 +5244,7 @@ class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable, |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -5232,20 +5252,20 @@ class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable, |
/// @domName SVGSymbolElement |
-class SVGSymbolElement extends SVGElement implements SVGLangSpace, SVGFitToViewBox, SVGExternalResourcesRequired, SVGStylable native "*SVGSymbolElement" { |
+class SymbolElement extends SvgElement implements FitToViewBox, ExternalResourcesRequired, Stylable, LangSpace native "*SVGSymbolElement" { |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGFitToViewBox |
/** @domName SVGFitToViewBox.preserveAspectRatio */ |
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio; |
+ final AnimatedPreserveAspectRatio preserveAspectRatio; |
/** @domName SVGFitToViewBox.viewBox */ |
- final SVGAnimatedRect viewBox; |
+ final AnimatedRect viewBox; |
// From SVGLangSpace |
@@ -5258,7 +5278,7 @@ class SVGSymbolElement extends SVGElement implements SVGLangSpace, SVGFitToViewB |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -5272,12 +5292,12 @@ class SVGSymbolElement extends SVGElement implements SVGLangSpace, SVGFitToViewB |
/// @domName SVGTRefElement |
-class SVGTRefElement extends SVGTextPositioningElement implements SVGURIReference native "*SVGTRefElement" { |
+class TRefElement extends TextPositioningElement implements UriReference native "*SVGTRefElement" { |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -5285,7 +5305,7 @@ class SVGTRefElement extends SVGTextPositioningElement implements SVGURIReferenc |
/// @domName SVGTSpanElement |
-class SVGTSpanElement extends SVGTextPositioningElement native "*SVGTSpanElement" { |
+class TSpanElement extends TextPositioningElement native "*SVGTSpanElement" { |
} |
// 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 |
@@ -5293,13 +5313,13 @@ class SVGTSpanElement extends SVGTextPositioningElement native "*SVGTSpanElement |
/// @domName SVGTests |
-abstract class SVGTests { |
+abstract class Tests { |
- SVGStringList requiredExtensions; |
+ StringList requiredExtensions; |
- SVGStringList requiredFeatures; |
+ StringList requiredFeatures; |
- SVGStringList systemLanguage; |
+ StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension); |
@@ -5310,7 +5330,7 @@ abstract class SVGTests { |
/// @domName SVGTextContentElement |
-class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGExternalResourcesRequired native "*SVGTextContentElement" { |
+class TextContentElement extends SvgElement implements Tests, Stylable, ExternalResourcesRequired, LangSpace native "*SVGTextContentElement" { |
static const int LENGTHADJUST_SPACING = 1; |
@@ -5319,22 +5339,22 @@ class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStyla |
static const int LENGTHADJUST_UNKNOWN = 0; |
/** @domName SVGTextContentElement.lengthAdjust */ |
- final SVGAnimatedEnumeration lengthAdjust; |
+ final AnimatedEnumeration lengthAdjust; |
/** @domName SVGTextContentElement.textLength */ |
- final SVGAnimatedLength textLength; |
+ final AnimatedLength textLength; |
/** @domName SVGTextContentElement.getCharNumAtPosition */ |
- int getCharNumAtPosition(SVGPoint point) native; |
+ int getCharNumAtPosition(Point point) native; |
/** @domName SVGTextContentElement.getComputedTextLength */ |
num getComputedTextLength() native; |
/** @domName SVGTextContentElement.getEndPositionOfChar */ |
- SVGPoint getEndPositionOfChar(int offset) native; |
+ Point getEndPositionOfChar(int offset) native; |
/** @domName SVGTextContentElement.getExtentOfChar */ |
- SVGRect getExtentOfChar(int offset) native; |
+ Rect getExtentOfChar(int offset) native; |
/** @domName SVGTextContentElement.getNumberOfChars */ |
int getNumberOfChars() native; |
@@ -5343,7 +5363,7 @@ class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStyla |
num getRotationOfChar(int offset) native; |
/** @domName SVGTextContentElement.getStartPositionOfChar */ |
- SVGPoint getStartPositionOfChar(int offset) native; |
+ Point getStartPositionOfChar(int offset) native; |
/** @domName SVGTextContentElement.getSubStringLength */ |
num getSubStringLength(int offset, int length) native; |
@@ -5354,7 +5374,7 @@ class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStyla |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -5367,7 +5387,7 @@ class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStyla |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -5378,13 +5398,13 @@ class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStyla |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -5395,32 +5415,32 @@ class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStyla |
/// @domName SVGTextElement |
-class SVGTextElement extends SVGTextPositioningElement implements SVGTransformable native "*SVGTextElement" { |
+class TextElement extends TextPositioningElement implements Transformable native "*SVGTextElement" { |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
} |
// 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 |
@@ -5428,7 +5448,7 @@ class SVGTextElement extends SVGTextPositioningElement implements SVGTransformab |
/// @domName SVGTextPathElement |
-class SVGTextPathElement extends SVGTextContentElement implements SVGURIReference native "*SVGTextPathElement" { |
+class TextPathElement extends TextContentElement implements UriReference native "*SVGTextPathElement" { |
static const int TEXTPATH_METHODTYPE_ALIGN = 1; |
@@ -5443,18 +5463,18 @@ class SVGTextPathElement extends SVGTextContentElement implements SVGURIReferenc |
static const int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; |
/** @domName SVGTextPathElement.method */ |
- final SVGAnimatedEnumeration method; |
+ final AnimatedEnumeration method; |
/** @domName SVGTextPathElement.spacing */ |
- final SVGAnimatedEnumeration spacing; |
+ final AnimatedEnumeration spacing; |
/** @domName SVGTextPathElement.startOffset */ |
- final SVGAnimatedLength startOffset; |
+ final AnimatedLength startOffset; |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -5462,22 +5482,22 @@ class SVGTextPathElement extends SVGTextContentElement implements SVGURIReferenc |
/// @domName SVGTextPositioningElement |
-class SVGTextPositioningElement extends SVGTextContentElement native "*SVGTextPositioningElement" { |
+class TextPositioningElement extends TextContentElement native "*SVGTextPositioningElement" { |
/** @domName SVGTextPositioningElement.dx */ |
- final SVGAnimatedLengthList dx; |
+ final AnimatedLengthList dx; |
/** @domName SVGTextPositioningElement.dy */ |
- final SVGAnimatedLengthList dy; |
+ final AnimatedLengthList dy; |
/** @domName SVGTextPositioningElement.rotate */ |
- final SVGAnimatedNumberList rotate; |
+ final AnimatedNumberList rotate; |
/** @domName SVGTextPositioningElement.x */ |
- final SVGAnimatedLengthList x; |
+ final AnimatedLengthList x; |
/** @domName SVGTextPositioningElement.y */ |
- final SVGAnimatedLengthList y; |
+ final AnimatedLengthList y; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -5485,7 +5505,9 @@ class SVGTextPositioningElement extends SVGTextContentElement native "*SVGTextPo |
/// @domName SVGTitleElement |
-class SVGTitleElement extends SVGElement implements SVGLangSpace, SVGStylable native "*SVGTitleElement" { |
+class TitleElement extends SvgElement implements Stylable, LangSpace native "*SVGTitleElement" { |
+ |
+ factory TitleElement() => _Elements.createTitleElement(); |
// From SVGLangSpace |
@@ -5498,7 +5520,7 @@ class SVGTitleElement extends SVGElement implements SVGLangSpace, SVGStylable na |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -5512,7 +5534,7 @@ class SVGTitleElement extends SVGElement implements SVGLangSpace, SVGStylable na |
/// @domName SVGTransform |
-class SVGTransform native "*SVGTransform" { |
+class Transform native "*SVGTransform" { |
static const int SVG_TRANSFORM_MATRIX = 1; |
@@ -5532,13 +5554,13 @@ class SVGTransform native "*SVGTransform" { |
final num angle; |
/** @domName SVGTransform.matrix */ |
- final SVGMatrix matrix; |
+ final Matrix matrix; |
/** @domName SVGTransform.type */ |
final int type; |
/** @domName SVGTransform.setMatrix */ |
- void setMatrix(SVGMatrix matrix) native; |
+ void setMatrix(Matrix matrix) native; |
/** @domName SVGTransform.setRotate */ |
void setRotate(num angle, num cx, num cy) native; |
@@ -5561,78 +5583,78 @@ class SVGTransform native "*SVGTransform" { |
/// @domName SVGTransformList |
-class SVGTransformList implements JavaScriptIndexingBehavior, List<SVGTransform> native "*SVGTransformList" { |
+class TransformList implements List<Transform>, JavaScriptIndexingBehavior native "*SVGTransformList" { |
/** @domName SVGTransformList.numberOfItems */ |
final int numberOfItems; |
- SVGTransform operator[](int index) => JS("SVGTransform", "#[#]", this, index); |
+ Transform operator[](int index) => JS("Transform", "#[#]", this, index); |
- void operator[]=(int index, SVGTransform value) { |
+ void operator[]=(int index, Transform value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
} |
- // -- start List<SVGTransform> mixins. |
- // SVGTransform is the element type. |
+ // -- start List<Transform> mixins. |
+ // Transform is the element type. |
- // From Iterable<SVGTransform>: |
+ // From Iterable<Transform>: |
- Iterator<SVGTransform> iterator() { |
+ Iterator<Transform> iterator() { |
// Note: NodeLists are not fixed size. And most probably length shouldn't |
// be cached in both iterator _and_ forEach method. For now caching it |
// for consistency. |
- return new FixedSizeListIterator<SVGTransform>(this); |
+ return new FixedSizeListIterator<Transform>(this); |
} |
- // From Collection<SVGTransform>: |
+ // From Collection<Transform>: |
- void add(SVGTransform value) { |
+ void add(Transform value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addLast(SVGTransform value) { |
+ void addLast(Transform value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addAll(Collection<SVGTransform> collection) { |
+ void addAll(Collection<Transform> collection) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- bool contains(SVGTransform element) => _Collections.contains(this, element); |
+ bool contains(Transform element) => _Collections.contains(this, element); |
- void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f); |
+ void forEach(void f(Transform element)) => _Collections.forEach(this, f); |
- Collection map(f(SVGTransform element)) => _Collections.map(this, [], f); |
+ Collection map(f(Transform element)) => _Collections.map(this, [], f); |
- Collection<SVGTransform> filter(bool f(SVGTransform element)) => |
- _Collections.filter(this, <SVGTransform>[], f); |
+ Collection<Transform> filter(bool f(Transform element)) => |
+ _Collections.filter(this, <Transform>[], f); |
- bool every(bool f(SVGTransform element)) => _Collections.every(this, f); |
+ bool every(bool f(Transform element)) => _Collections.every(this, f); |
- bool some(bool f(SVGTransform element)) => _Collections.some(this, f); |
+ bool some(bool f(Transform element)) => _Collections.some(this, f); |
bool get isEmpty => this.length == 0; |
- // From List<SVGTransform>: |
+ // From List<Transform>: |
- void sort([Comparator<SVGTransform> compare = Comparable.compare]) { |
+ void sort([Comparator<Transform> compare = Comparable.compare]) { |
throw new UnsupportedError("Cannot sort immutable List."); |
} |
- int indexOf(SVGTransform element, [int start = 0]) => |
+ int indexOf(Transform element, [int start = 0]) => |
_Lists.indexOf(this, element, start, this.length); |
- int lastIndexOf(SVGTransform element, [int start]) { |
+ int lastIndexOf(Transform element, [int start]) { |
if (start == null) start = length - 1; |
return _Lists.lastIndexOf(this, element, start); |
} |
- SVGTransform get last => this[length - 1]; |
+ Transform get last => this[length - 1]; |
- SVGTransform removeLast() { |
+ Transform removeLast() { |
throw new UnsupportedError("Cannot removeLast on immutable List."); |
} |
- void setRange(int start, int rangeLength, List<SVGTransform> from, [int startFrom]) { |
+ void setRange(int start, int rangeLength, List<Transform> from, [int startFrom]) { |
throw new UnsupportedError("Cannot setRange on immutable List."); |
} |
@@ -5640,41 +5662,41 @@ class SVGTransformList implements JavaScriptIndexingBehavior, List<SVGTransform> |
throw new UnsupportedError("Cannot removeRange on immutable List."); |
} |
- void insertRange(int start, int rangeLength, [SVGTransform initialValue]) { |
+ void insertRange(int start, int rangeLength, [Transform initialValue]) { |
throw new UnsupportedError("Cannot insertRange on immutable List."); |
} |
- List<SVGTransform> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <SVGTransform>[]); |
+ List<Transform> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <Transform>[]); |
- // -- end List<SVGTransform> mixins. |
+ // -- end List<Transform> mixins. |
/** @domName SVGTransformList.appendItem */ |
- SVGTransform appendItem(SVGTransform item) native; |
+ Transform appendItem(Transform item) native; |
/** @domName SVGTransformList.clear */ |
void clear() native; |
/** @domName SVGTransformList.consolidate */ |
- SVGTransform consolidate() native; |
+ Transform consolidate() native; |
/** @domName SVGTransformList.createSVGTransformFromMatrix */ |
- SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix) native; |
+ Transform createSVGTransformFromMatrix(Matrix matrix) native; |
/** @domName SVGTransformList.getItem */ |
- SVGTransform getItem(int index) native; |
+ Transform getItem(int index) native; |
/** @domName SVGTransformList.initialize */ |
- SVGTransform initialize(SVGTransform item) native; |
+ Transform initialize(Transform item) native; |
/** @domName SVGTransformList.insertItemBefore */ |
- SVGTransform insertItemBefore(SVGTransform item, int index) native; |
+ Transform insertItemBefore(Transform item, int index) native; |
/** @domName SVGTransformList.removeItem */ |
- SVGTransform removeItem(int index) native; |
+ Transform removeItem(int index) native; |
/** @domName SVGTransformList.replaceItem */ |
- SVGTransform replaceItem(SVGTransform item, int index) native; |
+ Transform replaceItem(Transform item, int index) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -5682,51 +5704,51 @@ class SVGTransformList implements JavaScriptIndexingBehavior, List<SVGTransform> |
/// @domName SVGTransformable |
-abstract class SVGTransformable implements SVGLocatable { |
+abstract class Transformable implements Locatable { |
- SVGAnimatedTransformList transform; |
+ AnimatedTransformList transform; |
// From SVGLocatable |
- SVGElement farthestViewportElement; |
+ SvgElement farthestViewportElement; |
- SVGElement nearestViewportElement; |
+ SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox(); |
+ Rect getBBox(); |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM(); |
+ Matrix getCTM(); |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM(); |
+ Matrix getScreenCTM(); |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element); |
+ Matrix getTransformToElement(SvgElement element); |
} |
// 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. |
-/// @domName SVGURIReference |
-abstract class SVGURIReference { |
+/// @domName SVGUnitTypes |
+class UnitTypes native "*SVGUnitTypes" { |
- SVGAnimatedString href; |
+ 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. |
-/// @domName SVGUnitTypes |
-class SVGUnitTypes native "*SVGUnitTypes" { |
- |
- static const int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; |
- |
- static const int SVG_UNIT_TYPE_UNKNOWN = 0; |
+/// @domName SVGURIReference |
+abstract class UriReference { |
- static const int SVG_UNIT_TYPE_USERSPACEONUSE = 1; |
+ AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -5734,30 +5756,30 @@ class SVGUnitTypes native "*SVGUnitTypes" { |
/// @domName SVGUseElement |
-class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable native "*SVGUseElement" { |
+class UseElement extends SvgElement implements Transformable, Tests, UriReference, Stylable, ExternalResourcesRequired, LangSpace native "*SVGUseElement" { |
/** @domName SVGUseElement.animatedInstanceRoot */ |
- final SVGElementInstance animatedInstanceRoot; |
+ final ElementInstance animatedInstanceRoot; |
/** @domName SVGUseElement.height */ |
- final SVGAnimatedLength height; |
+ final AnimatedLength height; |
/** @domName SVGUseElement.instanceRoot */ |
- final SVGElementInstance instanceRoot; |
+ final ElementInstance instanceRoot; |
/** @domName SVGUseElement.width */ |
- final SVGAnimatedLength width; |
+ final AnimatedLength width; |
/** @domName SVGUseElement.x */ |
- final SVGAnimatedLength x; |
+ final AnimatedLength x; |
/** @domName SVGUseElement.y */ |
- final SVGAnimatedLength y; |
+ final AnimatedLength y; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGLangSpace |
@@ -5770,27 +5792,27 @@ class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGSty |
// From SVGLocatable |
/** @domName SVGLocatable.farthestViewportElement */ |
- final SVGElement farthestViewportElement; |
+ final SvgElement farthestViewportElement; |
/** @domName SVGLocatable.nearestViewportElement */ |
- final SVGElement nearestViewportElement; |
+ final SvgElement nearestViewportElement; |
/** @domName SVGLocatable.getBBox */ |
- SVGRect getBBox() native; |
+ Rect getBBox() native; |
/** @domName SVGLocatable.getCTM */ |
- SVGMatrix getCTM() native; |
+ Matrix getCTM() native; |
/** @domName SVGLocatable.getScreenCTM */ |
- SVGMatrix getScreenCTM() native; |
+ Matrix getScreenCTM() native; |
/** @domName SVGLocatable.getTransformToElement */ |
- SVGMatrix getTransformToElement(SVGElement element) native; |
+ Matrix getTransformToElement(SvgElement element) native; |
// From SVGStylable |
/** @domName SVGStylable.className */ |
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this); |
+ AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this); |
// Use implementation from Element. |
// final CSSStyleDeclaration style; |
@@ -5801,13 +5823,13 @@ class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGSty |
// From SVGTests |
/** @domName SVGTests.requiredExtensions */ |
- final SVGStringList requiredExtensions; |
+ final StringList requiredExtensions; |
/** @domName SVGTests.requiredFeatures */ |
- final SVGStringList requiredFeatures; |
+ final StringList requiredFeatures; |
/** @domName SVGTests.systemLanguage */ |
- final SVGStringList systemLanguage; |
+ final StringList systemLanguage; |
/** @domName SVGTests.hasExtension */ |
bool hasExtension(String extension) native; |
@@ -5815,12 +5837,12 @@ class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGSty |
// From SVGTransformable |
/** @domName SVGTransformable.transform */ |
- final SVGAnimatedTransformList transform; |
+ final AnimatedTransformList transform; |
// From SVGURIReference |
/** @domName SVGURIReference.href */ |
- final SVGAnimatedString href; |
+ final AnimatedString href; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -5828,7 +5850,7 @@ class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGSty |
/// @domName SVGVKernElement |
-class SVGVKernElement extends SVGElement native "*SVGVKernElement" { |
+class VKernElement extends SvgElement native "*SVGVKernElement" { |
} |
// 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 |
@@ -5836,23 +5858,23 @@ class SVGVKernElement extends SVGElement native "*SVGVKernElement" { |
/// @domName SVGViewElement |
-class SVGViewElement extends SVGElement implements SVGFitToViewBox, SVGZoomAndPan, SVGExternalResourcesRequired native "*SVGViewElement" { |
+class ViewElement extends SvgElement implements FitToViewBox, ExternalResourcesRequired, ZoomAndPan native "*SVGViewElement" { |
/** @domName SVGViewElement.viewTarget */ |
- final SVGStringList viewTarget; |
+ final StringList viewTarget; |
// From SVGExternalResourcesRequired |
/** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
- final SVGAnimatedBoolean externalResourcesRequired; |
+ final AnimatedBoolean externalResourcesRequired; |
// From SVGFitToViewBox |
/** @domName SVGFitToViewBox.preserveAspectRatio */ |
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio; |
+ final AnimatedPreserveAspectRatio preserveAspectRatio; |
/** @domName SVGFitToViewBox.viewBox */ |
- final SVGAnimatedRect viewBox; |
+ final AnimatedRect viewBox; |
// From SVGZoomAndPan |
@@ -5865,28 +5887,28 @@ class SVGViewElement extends SVGElement implements SVGFitToViewBox, SVGZoomAndPa |
/// @domName SVGViewSpec |
-class SVGViewSpec native "*SVGViewSpec" { |
+class ViewSpec native "*SVGViewSpec" { |
/** @domName SVGViewSpec.preserveAspectRatio */ |
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio; |
+ final AnimatedPreserveAspectRatio preserveAspectRatio; |
/** @domName SVGViewSpec.preserveAspectRatioString */ |
final String preserveAspectRatioString; |
/** @domName SVGViewSpec.transform */ |
- final SVGTransformList transform; |
+ final TransformList transform; |
/** @domName SVGViewSpec.transformString */ |
final String transformString; |
/** @domName SVGViewSpec.viewBox */ |
- final SVGAnimatedRect viewBox; |
+ final AnimatedRect viewBox; |
/** @domName SVGViewSpec.viewBoxString */ |
final String viewBoxString; |
/** @domName SVGViewSpec.viewTarget */ |
- final SVGElement viewTarget; |
+ final SvgElement viewTarget; |
/** @domName SVGViewSpec.viewTargetString */ |
final String viewTargetString; |
@@ -5900,7 +5922,7 @@ class SVGViewSpec native "*SVGViewSpec" { |
/// @domName SVGZoomAndPan |
-abstract class SVGZoomAndPan { |
+abstract class ZoomAndPan { |
static const int SVG_ZOOMANDPAN_DISABLE = 1; |
@@ -5916,22 +5938,22 @@ abstract class SVGZoomAndPan { |
/// @domName SVGZoomEvent |
-class SVGZoomEvent extends UIEvent native "*SVGZoomEvent" { |
+class ZoomEvent extends UIEvent native "*SVGZoomEvent" { |
/** @domName SVGZoomEvent.newScale */ |
final num newScale; |
/** @domName SVGZoomEvent.newTranslate */ |
- final SVGPoint newTranslate; |
+ final Point newTranslate; |
/** @domName SVGZoomEvent.previousScale */ |
final num previousScale; |
/** @domName SVGZoomEvent.previousTranslate */ |
- final SVGPoint previousTranslate; |
+ final Point previousTranslate; |
/** @domName SVGZoomEvent.zoomRectScreen */ |
- final SVGRect zoomRectScreen; |
+ final Rect zoomRectScreen; |
} |
// 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 |
@@ -5939,78 +5961,78 @@ class SVGZoomEvent extends UIEvent native "*SVGZoomEvent" { |
/// @domName SVGElementInstanceList |
-class _SVGElementInstanceList implements JavaScriptIndexingBehavior, List<SVGElementInstance> native "*SVGElementInstanceList" { |
+class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementInstance> native "*SVGElementInstanceList" { |
/** @domName SVGElementInstanceList.length */ |
final int length; |
- SVGElementInstance operator[](int index) => JS("SVGElementInstance", "#[#]", this, index); |
+ ElementInstance operator[](int index) => JS("ElementInstance", "#[#]", this, index); |
- void operator[]=(int index, SVGElementInstance value) { |
+ void operator[]=(int index, ElementInstance value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
} |
- // -- start List<SVGElementInstance> mixins. |
- // SVGElementInstance is the element type. |
+ // -- start List<ElementInstance> mixins. |
+ // ElementInstance is the element type. |
- // From Iterable<SVGElementInstance>: |
+ // From Iterable<ElementInstance>: |
- Iterator<SVGElementInstance> iterator() { |
+ Iterator<ElementInstance> iterator() { |
// Note: NodeLists are not fixed size. And most probably length shouldn't |
// be cached in both iterator _and_ forEach method. For now caching it |
// for consistency. |
- return new FixedSizeListIterator<SVGElementInstance>(this); |
+ return new FixedSizeListIterator<ElementInstance>(this); |
} |
- // From Collection<SVGElementInstance>: |
+ // From Collection<ElementInstance>: |
- void add(SVGElementInstance value) { |
+ void add(ElementInstance value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addLast(SVGElementInstance value) { |
+ void addLast(ElementInstance value) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- void addAll(Collection<SVGElementInstance> collection) { |
+ void addAll(Collection<ElementInstance> collection) { |
throw new UnsupportedError("Cannot add to immutable List."); |
} |
- bool contains(SVGElementInstance element) => _Collections.contains(this, element); |
+ bool contains(ElementInstance element) => _Collections.contains(this, element); |
- void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f); |
+ void forEach(void f(ElementInstance element)) => _Collections.forEach(this, f); |
- Collection map(f(SVGElementInstance element)) => _Collections.map(this, [], f); |
+ Collection map(f(ElementInstance element)) => _Collections.map(this, [], f); |
- Collection<SVGElementInstance> filter(bool f(SVGElementInstance element)) => |
- _Collections.filter(this, <SVGElementInstance>[], f); |
+ Collection<ElementInstance> filter(bool f(ElementInstance element)) => |
+ _Collections.filter(this, <ElementInstance>[], f); |
- bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f); |
+ bool every(bool f(ElementInstance element)) => _Collections.every(this, f); |
- bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f); |
+ bool some(bool f(ElementInstance element)) => _Collections.some(this, f); |
bool get isEmpty => this.length == 0; |
- // From List<SVGElementInstance>: |
+ // From List<ElementInstance>: |
- void sort([Comparator<SVGElementInstance> compare = Comparable.compare]) { |
+ void sort([Comparator<ElementInstance> compare = Comparable.compare]) { |
throw new UnsupportedError("Cannot sort immutable List."); |
} |
- int indexOf(SVGElementInstance element, [int start = 0]) => |
+ int indexOf(ElementInstance element, [int start = 0]) => |
_Lists.indexOf(this, element, start, this.length); |
- int lastIndexOf(SVGElementInstance element, [int start]) { |
+ int lastIndexOf(ElementInstance element, [int start]) { |
if (start == null) start = length - 1; |
return _Lists.lastIndexOf(this, element, start); |
} |
- SVGElementInstance get last => this[length - 1]; |
+ ElementInstance get last => this[length - 1]; |
- SVGElementInstance removeLast() { |
+ ElementInstance removeLast() { |
throw new UnsupportedError("Cannot removeLast on immutable List."); |
} |
- void setRange(int start, int rangeLength, List<SVGElementInstance> from, [int startFrom]) { |
+ void setRange(int start, int rangeLength, List<ElementInstance> from, [int startFrom]) { |
throw new UnsupportedError("Cannot setRange on immutable List."); |
} |
@@ -6018,15 +6040,46 @@ class _SVGElementInstanceList implements JavaScriptIndexingBehavior, List<SVGEle |
throw new UnsupportedError("Cannot removeRange on immutable List."); |
} |
- void insertRange(int start, int rangeLength, [SVGElementInstance initialValue]) { |
+ void insertRange(int start, int rangeLength, [ElementInstance initialValue]) { |
throw new UnsupportedError("Cannot insertRange on immutable List."); |
} |
- List<SVGElementInstance> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]); |
+ List<ElementInstance> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <ElementInstance>[]); |
- // -- end List<SVGElementInstance> mixins. |
+ // -- end List<ElementInstance> mixins. |
/** @domName SVGElementInstanceList.item */ |
- SVGElementInstance item(int index) native; |
+ ElementInstance item(int index) native; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+class _Elements { |
+ |
+ |
+ static ImageElement createImageElement([String src, int width, int height]) { |
+ ImageElement _e = document.$dom_createElement("img"); |
+ if (src != null) _e.src = src; |
+ if (width != null) _e.width = width; |
+ if (height != null) _e.height = height; |
+ return _e; |
+ } |
+ |
+ static ScriptElement createScriptElement() { |
+ ScriptElement _e = document.$dom_createElement("script"); |
+ return _e; |
+ } |
+ |
+ static StyleElement createStyleElement() { |
+ StyleElement _e = document.$dom_createElement("style"); |
+ return _e; |
+ } |
+ |
+ static TitleElement createTitleElement() { |
+ TitleElement _e = document.$dom_createElement("title"); |
+ return _e; |
+ } |
} |