OLD | NEW |
1 library svg; | 1 library svg; |
2 | 2 |
3 import 'dart:html'; | 3 import 'dart:html'; |
4 // DO NOT EDIT | 4 // DO NOT EDIT |
5 // Auto-generated dart:svg library. | 5 // Auto-generated dart:svg library. |
6 | 6 |
7 | 7 |
8 | 8 |
9 | 9 |
10 | 10 |
11 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12 // for details. All rights reserved. Use of this source code is governed by a | 12 // for details. All rights reserved. Use of this source code is governed by a |
13 // BSD-style license that can be found in the LICENSE file. | 13 // BSD-style license that can be found in the LICENSE file. |
14 | 14 |
15 | 15 |
16 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); | 16 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); |
17 | 17 |
18 class _SVGElementFactoryProvider { | 18 class _SvgElementFactoryProvider { |
19 static SVGElement createSVGElement_tag(String tag) { | 19 static SvgElement createSvgElement_tag(String tag) { |
20 final Element temp = | 20 final Element temp = |
21 document.$dom_createElementNS("http://www.w3.org/2000/svg", tag); | 21 document.$dom_createElementNS("http://www.w3.org/2000/svg", tag); |
22 return temp; | 22 return temp; |
23 } | 23 } |
24 | 24 |
25 static SVGElement createSVGElement_svg(String svg) { | 25 static SvgElement createSvgElement_svg(String svg) { |
26 Element parentTag; | 26 Element parentTag; |
27 final match = _START_TAG_REGEXP.firstMatch(svg); | 27 final match = _START_TAG_REGEXP.firstMatch(svg); |
28 if (match != null && match.group(1).toLowerCase() == 'svg') { | 28 if (match != null && match.group(1).toLowerCase() == 'svg') { |
29 parentTag = new Element.tag('div'); | 29 parentTag = new Element.tag('div'); |
30 } else { | 30 } else { |
31 parentTag = new SVGSVGElement(); | 31 parentTag = new SvgSvgElement(); |
32 } | 32 } |
33 | 33 |
34 parentTag.innerHTML = svg; | 34 parentTag.innerHTML = svg; |
35 if (parentTag.elements.length == 1) return parentTag.elements.removeLast(); | 35 if (parentTag.elements.length == 1) return parentTag.elements.removeLast(); |
36 | 36 |
37 throw new ArgumentError( | 37 throw new ArgumentError( |
38 'SVG had ${parentTag.elements.length} ' | 38 'SVG had ${parentTag.elements.length} ' |
39 'top-level elements but 1 expected'); | 39 'top-level elements but 1 expected'); |
40 } | 40 } |
41 } | 41 } |
42 | 42 |
43 class _SVGSVGElementFactoryProvider { | 43 class _SvgSvgElementFactoryProvider { |
44 static SVGSVGElement createSVGSVGElement() { | 44 static SvgSvgElement createSvgSvgElement() { |
45 final el = new SVGElement.tag("svg"); | 45 final el = new SvgElement.tag("svg"); |
46 // The SVG spec requires the version attribute to match the spec version | 46 // The SVG spec requires the version attribute to match the spec version |
47 el.attributes['version'] = "1.1"; | 47 el.attributes['version'] = "1.1"; |
48 return el; | 48 return el; |
49 } | 49 } |
50 } | 50 } |
51 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 51 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
52 // for details. All rights reserved. Use of this source code is governed by a | 52 // for details. All rights reserved. Use of this source code is governed by a |
53 // BSD-style license that can be found in the LICENSE file. | 53 // BSD-style license that can be found in the LICENSE file. |
54 | 54 |
55 | 55 |
56 /// @domName SVGAElement | 56 /// @domName SVGAElement |
57 class SVGAElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStyla
ble, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable native "*SV
GAElement" { | 57 class AElement extends SvgElement implements Transformable, Tests, UriReference,
Stylable, ExternalResourcesRequired, LangSpace native "*SVGAElement" { |
58 | 58 |
59 /** @domName SVGAElement.target */ | 59 /** @domName SVGAElement.target */ |
60 final SVGAnimatedString target; | 60 final AnimatedString target; |
61 | 61 |
62 // From SVGExternalResourcesRequired | 62 // From SVGExternalResourcesRequired |
63 | 63 |
64 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 64 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
65 final SVGAnimatedBoolean externalResourcesRequired; | 65 final AnimatedBoolean externalResourcesRequired; |
66 | 66 |
67 // From SVGLangSpace | 67 // From SVGLangSpace |
68 | 68 |
69 /** @domName SVGLangSpace.xmllang */ | 69 /** @domName SVGLangSpace.xmllang */ |
70 String xmllang; | 70 String xmllang; |
71 | 71 |
72 /** @domName SVGLangSpace.xmlspace */ | 72 /** @domName SVGLangSpace.xmlspace */ |
73 String xmlspace; | 73 String xmlspace; |
74 | 74 |
75 // From SVGLocatable | 75 // From SVGLocatable |
76 | 76 |
77 /** @domName SVGLocatable.farthestViewportElement */ | 77 /** @domName SVGLocatable.farthestViewportElement */ |
78 final SVGElement farthestViewportElement; | 78 final SvgElement farthestViewportElement; |
79 | 79 |
80 /** @domName SVGLocatable.nearestViewportElement */ | 80 /** @domName SVGLocatable.nearestViewportElement */ |
81 final SVGElement nearestViewportElement; | 81 final SvgElement nearestViewportElement; |
82 | 82 |
83 /** @domName SVGLocatable.getBBox */ | 83 /** @domName SVGLocatable.getBBox */ |
84 SVGRect getBBox() native; | 84 Rect getBBox() native; |
85 | 85 |
86 /** @domName SVGLocatable.getCTM */ | 86 /** @domName SVGLocatable.getCTM */ |
87 SVGMatrix getCTM() native; | 87 Matrix getCTM() native; |
88 | 88 |
89 /** @domName SVGLocatable.getScreenCTM */ | 89 /** @domName SVGLocatable.getScreenCTM */ |
90 SVGMatrix getScreenCTM() native; | 90 Matrix getScreenCTM() native; |
91 | 91 |
92 /** @domName SVGLocatable.getTransformToElement */ | 92 /** @domName SVGLocatable.getTransformToElement */ |
93 SVGMatrix getTransformToElement(SVGElement element) native; | 93 Matrix getTransformToElement(SvgElement element) native; |
94 | 94 |
95 // From SVGStylable | 95 // From SVGStylable |
96 | 96 |
97 /** @domName SVGStylable.className */ | 97 /** @domName SVGStylable.className */ |
98 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 98 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
99 | 99 |
100 // Use implementation from Element. | 100 // Use implementation from Element. |
101 // final CSSStyleDeclaration style; | 101 // final CSSStyleDeclaration style; |
102 | 102 |
103 /** @domName SVGStylable.getPresentationAttribute */ | 103 /** @domName SVGStylable.getPresentationAttribute */ |
104 CSSValue getPresentationAttribute(String name) native; | 104 CSSValue getPresentationAttribute(String name) native; |
105 | 105 |
106 // From SVGTests | 106 // From SVGTests |
107 | 107 |
108 /** @domName SVGTests.requiredExtensions */ | 108 /** @domName SVGTests.requiredExtensions */ |
109 final SVGStringList requiredExtensions; | 109 final StringList requiredExtensions; |
110 | 110 |
111 /** @domName SVGTests.requiredFeatures */ | 111 /** @domName SVGTests.requiredFeatures */ |
112 final SVGStringList requiredFeatures; | 112 final StringList requiredFeatures; |
113 | 113 |
114 /** @domName SVGTests.systemLanguage */ | 114 /** @domName SVGTests.systemLanguage */ |
115 final SVGStringList systemLanguage; | 115 final StringList systemLanguage; |
116 | 116 |
117 /** @domName SVGTests.hasExtension */ | 117 /** @domName SVGTests.hasExtension */ |
118 bool hasExtension(String extension) native; | 118 bool hasExtension(String extension) native; |
119 | 119 |
120 // From SVGTransformable | 120 // From SVGTransformable |
121 | 121 |
122 /** @domName SVGTransformable.transform */ | 122 /** @domName SVGTransformable.transform */ |
123 final SVGAnimatedTransformList transform; | 123 final AnimatedTransformList transform; |
124 | 124 |
125 // From SVGURIReference | 125 // From SVGURIReference |
126 | 126 |
127 /** @domName SVGURIReference.href */ | 127 /** @domName SVGURIReference.href */ |
128 final SVGAnimatedString href; | 128 final AnimatedString href; |
129 } | 129 } |
130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
131 // for details. All rights reserved. Use of this source code is governed by a | 131 // for details. All rights reserved. Use of this source code is governed by a |
132 // BSD-style license that can be found in the LICENSE file. | 132 // BSD-style license that can be found in the LICENSE file. |
133 | 133 |
134 | 134 |
135 /// @domName SVGAltGlyphDefElement | 135 /// @domName SVGAltGlyphDefElement |
136 class SVGAltGlyphDefElement extends SVGElement native "*SVGAltGlyphDefElement" { | 136 class AltGlyphDefElement extends SvgElement native "*SVGAltGlyphDefElement" { |
137 } | 137 } |
138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
139 // for details. All rights reserved. Use of this source code is governed by a | 139 // for details. All rights reserved. Use of this source code is governed by a |
140 // BSD-style license that can be found in the LICENSE file. | 140 // BSD-style license that can be found in the LICENSE file. |
141 | 141 |
142 | 142 |
143 /// @domName SVGAltGlyphElement | 143 /// @domName SVGAltGlyphElement |
144 class SVGAltGlyphElement extends SVGTextPositioningElement implements SVGURIRefe
rence native "*SVGAltGlyphElement" { | 144 class AltGlyphElement extends TextPositioningElement implements UriReference nat
ive "*SVGAltGlyphElement" { |
145 | 145 |
146 /** @domName SVGAltGlyphElement.format */ | 146 /** @domName SVGAltGlyphElement.format */ |
147 String format; | 147 String format; |
148 | 148 |
149 /** @domName SVGAltGlyphElement.glyphRef */ | 149 /** @domName SVGAltGlyphElement.glyphRef */ |
150 String glyphRef; | 150 String glyphRef; |
151 | 151 |
152 // From SVGURIReference | 152 // From SVGURIReference |
153 | 153 |
154 /** @domName SVGURIReference.href */ | 154 /** @domName SVGURIReference.href */ |
155 final SVGAnimatedString href; | 155 final AnimatedString href; |
156 } | 156 } |
157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
158 // for details. All rights reserved. Use of this source code is governed by a | 158 // for details. All rights reserved. Use of this source code is governed by a |
159 // BSD-style license that can be found in the LICENSE file. | 159 // BSD-style license that can be found in the LICENSE file. |
160 | 160 |
161 | 161 |
162 /// @domName SVGAltGlyphItemElement | 162 /// @domName SVGAltGlyphItemElement |
163 class SVGAltGlyphItemElement extends SVGElement native "*SVGAltGlyphItemElement"
{ | 163 class AltGlyphItemElement extends SvgElement native "*SVGAltGlyphItemElement" { |
164 } | 164 } |
165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
166 // for details. All rights reserved. Use of this source code is governed by a | 166 // for details. All rights reserved. Use of this source code is governed by a |
167 // BSD-style license that can be found in the LICENSE file. | 167 // BSD-style license that can be found in the LICENSE file. |
168 | 168 |
169 | 169 |
170 /// @domName SVGAngle | 170 /// @domName SVGAngle |
171 class SVGAngle native "*SVGAngle" { | 171 class Angle native "*SVGAngle" { |
172 | 172 |
173 static const int SVG_ANGLETYPE_DEG = 2; | 173 static const int SVG_ANGLETYPE_DEG = 2; |
174 | 174 |
175 static const int SVG_ANGLETYPE_GRAD = 4; | 175 static const int SVG_ANGLETYPE_GRAD = 4; |
176 | 176 |
177 static const int SVG_ANGLETYPE_RAD = 3; | 177 static const int SVG_ANGLETYPE_RAD = 3; |
178 | 178 |
179 static const int SVG_ANGLETYPE_UNKNOWN = 0; | 179 static const int SVG_ANGLETYPE_UNKNOWN = 0; |
180 | 180 |
181 static const int SVG_ANGLETYPE_UNSPECIFIED = 1; | 181 static const int SVG_ANGLETYPE_UNSPECIFIED = 1; |
(...skipping 15 matching lines...) Expand all Loading... |
197 | 197 |
198 /** @domName SVGAngle.newValueSpecifiedUnits */ | 198 /** @domName SVGAngle.newValueSpecifiedUnits */ |
199 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | 199 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; |
200 } | 200 } |
201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
202 // for details. All rights reserved. Use of this source code is governed by a | 202 // for details. All rights reserved. Use of this source code is governed by a |
203 // BSD-style license that can be found in the LICENSE file. | 203 // BSD-style license that can be found in the LICENSE file. |
204 | 204 |
205 | 205 |
206 /// @domName SVGAnimateColorElement | 206 /// @domName SVGAnimateColorElement |
207 class SVGAnimateColorElement extends SVGAnimationElement native "*SVGAnimateColo
rElement" { | 207 class AnimateColorElement extends AnimationElement native "*SVGAnimateColorEleme
nt" { |
208 } | 208 } |
209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
210 // for details. All rights reserved. Use of this source code is governed by a | 210 // for details. All rights reserved. Use of this source code is governed by a |
211 // BSD-style license that can be found in the LICENSE file. | 211 // BSD-style license that can be found in the LICENSE file. |
212 | 212 |
213 | 213 |
214 /// @domName SVGAnimateElement | 214 /// @domName SVGAnimateElement |
215 class SVGAnimateElement extends SVGAnimationElement native "*SVGAnimateElement"
{ | 215 class AnimateElement extends AnimationElement native "*SVGAnimateElement" { |
216 } | 216 } |
217 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 217 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
218 // for details. All rights reserved. Use of this source code is governed by a | 218 // for details. All rights reserved. Use of this source code is governed by a |
219 // BSD-style license that can be found in the LICENSE file. | 219 // BSD-style license that can be found in the LICENSE file. |
220 | 220 |
221 | 221 |
222 /// @domName SVGAnimateMotionElement | 222 /// @domName SVGAnimateMotionElement |
223 class SVGAnimateMotionElement extends SVGAnimationElement native "*SVGAnimateMot
ionElement" { | 223 class AnimateMotionElement extends AnimationElement native "*SVGAnimateMotionEle
ment" { |
224 } | 224 } |
225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
226 // for details. All rights reserved. Use of this source code is governed by a | 226 // for details. All rights reserved. Use of this source code is governed by a |
227 // BSD-style license that can be found in the LICENSE file. | 227 // BSD-style license that can be found in the LICENSE file. |
228 | 228 |
229 | 229 |
230 /// @domName SVGAnimateTransformElement | 230 /// @domName SVGAnimateTransformElement |
231 class SVGAnimateTransformElement extends SVGAnimationElement native "*SVGAnimate
TransformElement" { | 231 class AnimateTransformElement extends AnimationElement native "*SVGAnimateTransf
ormElement" { |
232 } | 232 } |
233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
234 // for details. All rights reserved. Use of this source code is governed by a | 234 // for details. All rights reserved. Use of this source code is governed by a |
235 // BSD-style license that can be found in the LICENSE file. | 235 // BSD-style license that can be found in the LICENSE file. |
236 | 236 |
237 | 237 |
238 /// @domName SVGAnimatedAngle | 238 /// @domName SVGAnimatedAngle |
239 class SVGAnimatedAngle native "*SVGAnimatedAngle" { | 239 class AnimatedAngle native "*SVGAnimatedAngle" { |
240 | 240 |
241 /** @domName SVGAnimatedAngle.animVal */ | 241 /** @domName SVGAnimatedAngle.animVal */ |
242 final SVGAngle animVal; | 242 final Angle animVal; |
243 | 243 |
244 /** @domName SVGAnimatedAngle.baseVal */ | 244 /** @domName SVGAnimatedAngle.baseVal */ |
245 final SVGAngle baseVal; | 245 final Angle baseVal; |
246 } | 246 } |
247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
248 // for details. All rights reserved. Use of this source code is governed by a | 248 // for details. All rights reserved. Use of this source code is governed by a |
249 // BSD-style license that can be found in the LICENSE file. | 249 // BSD-style license that can be found in the LICENSE file. |
250 | 250 |
251 | 251 |
252 /// @domName SVGAnimatedBoolean | 252 /// @domName SVGAnimatedBoolean |
253 class SVGAnimatedBoolean native "*SVGAnimatedBoolean" { | 253 class AnimatedBoolean native "*SVGAnimatedBoolean" { |
254 | 254 |
255 /** @domName SVGAnimatedBoolean.animVal */ | 255 /** @domName SVGAnimatedBoolean.animVal */ |
256 final bool animVal; | 256 final bool animVal; |
257 | 257 |
258 /** @domName SVGAnimatedBoolean.baseVal */ | 258 /** @domName SVGAnimatedBoolean.baseVal */ |
259 bool baseVal; | 259 bool baseVal; |
260 } | 260 } |
261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
262 // for details. All rights reserved. Use of this source code is governed by a | 262 // for details. All rights reserved. Use of this source code is governed by a |
263 // BSD-style license that can be found in the LICENSE file. | 263 // BSD-style license that can be found in the LICENSE file. |
264 | 264 |
265 | 265 |
266 /// @domName SVGAnimatedEnumeration | 266 /// @domName SVGAnimatedEnumeration |
267 class SVGAnimatedEnumeration native "*SVGAnimatedEnumeration" { | 267 class AnimatedEnumeration native "*SVGAnimatedEnumeration" { |
268 | 268 |
269 /** @domName SVGAnimatedEnumeration.animVal */ | 269 /** @domName SVGAnimatedEnumeration.animVal */ |
270 final int animVal; | 270 final int animVal; |
271 | 271 |
272 /** @domName SVGAnimatedEnumeration.baseVal */ | 272 /** @domName SVGAnimatedEnumeration.baseVal */ |
273 int baseVal; | 273 int baseVal; |
274 } | 274 } |
275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
276 // for details. All rights reserved. Use of this source code is governed by a | 276 // for details. All rights reserved. Use of this source code is governed by a |
277 // BSD-style license that can be found in the LICENSE file. | 277 // BSD-style license that can be found in the LICENSE file. |
278 | 278 |
279 | 279 |
280 /// @domName SVGAnimatedInteger | 280 /// @domName SVGAnimatedInteger |
281 class SVGAnimatedInteger native "*SVGAnimatedInteger" { | 281 class AnimatedInteger native "*SVGAnimatedInteger" { |
282 | 282 |
283 /** @domName SVGAnimatedInteger.animVal */ | 283 /** @domName SVGAnimatedInteger.animVal */ |
284 final int animVal; | 284 final int animVal; |
285 | 285 |
286 /** @domName SVGAnimatedInteger.baseVal */ | 286 /** @domName SVGAnimatedInteger.baseVal */ |
287 int baseVal; | 287 int baseVal; |
288 } | 288 } |
289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
290 // for details. All rights reserved. Use of this source code is governed by a | 290 // for details. All rights reserved. Use of this source code is governed by a |
291 // BSD-style license that can be found in the LICENSE file. | 291 // BSD-style license that can be found in the LICENSE file. |
292 | 292 |
293 | 293 |
294 /// @domName SVGAnimatedLength | 294 /// @domName SVGAnimatedLength |
295 class SVGAnimatedLength native "*SVGAnimatedLength" { | 295 class AnimatedLength native "*SVGAnimatedLength" { |
296 | 296 |
297 /** @domName SVGAnimatedLength.animVal */ | 297 /** @domName SVGAnimatedLength.animVal */ |
298 final SVGLength animVal; | 298 final Length animVal; |
299 | 299 |
300 /** @domName SVGAnimatedLength.baseVal */ | 300 /** @domName SVGAnimatedLength.baseVal */ |
301 final SVGLength baseVal; | 301 final Length baseVal; |
302 } | 302 } |
303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
304 // for details. All rights reserved. Use of this source code is governed by a | 304 // for details. All rights reserved. Use of this source code is governed by a |
305 // BSD-style license that can be found in the LICENSE file. | 305 // BSD-style license that can be found in the LICENSE file. |
306 | 306 |
307 | 307 |
308 /// @domName SVGAnimatedLengthList | 308 /// @domName SVGAnimatedLengthList |
309 class SVGAnimatedLengthList implements JavaScriptIndexingBehavior, List<SVGAnima
tedLength> native "*SVGAnimatedLengthList" { | 309 class AnimatedLengthList implements JavaScriptIndexingBehavior, List<AnimatedLen
gth> native "*SVGAnimatedLengthList" { |
310 | 310 |
311 /** @domName SVGAnimatedLengthList.animVal */ | 311 /** @domName SVGAnimatedLengthList.animVal */ |
312 final SVGLengthList animVal; | 312 final LengthList animVal; |
313 | 313 |
314 /** @domName SVGAnimatedLengthList.baseVal */ | 314 /** @domName SVGAnimatedLengthList.baseVal */ |
315 final SVGLengthList baseVal; | 315 final LengthList baseVal; |
316 | 316 |
317 SVGAnimatedLength operator[](int index) => JS("SVGAnimatedLength", "#[#]", thi
s, index); | 317 AnimatedLength operator[](int index) => JS("AnimatedLength", "#[#]", this, ind
ex); |
318 | 318 |
319 void operator[]=(int index, SVGAnimatedLength value) { | 319 void operator[]=(int index, AnimatedLength value) { |
320 throw new UnsupportedError("Cannot assign element of immutable List."); | 320 throw new UnsupportedError("Cannot assign element of immutable List."); |
321 } | 321 } |
322 // -- start List<SVGAnimatedLength> mixins. | 322 // -- start List<AnimatedLength> mixins. |
323 // SVGAnimatedLength is the element type. | 323 // AnimatedLength is the element type. |
324 | 324 |
325 // From Iterable<SVGAnimatedLength>: | 325 // From Iterable<AnimatedLength>: |
326 | 326 |
327 Iterator<SVGAnimatedLength> iterator() { | 327 Iterator<AnimatedLength> iterator() { |
328 // Note: NodeLists are not fixed size. And most probably length shouldn't | 328 // Note: NodeLists are not fixed size. And most probably length shouldn't |
329 // be cached in both iterator _and_ forEach method. For now caching it | 329 // be cached in both iterator _and_ forEach method. For now caching it |
330 // for consistency. | 330 // for consistency. |
331 return new FixedSizeListIterator<SVGAnimatedLength>(this); | 331 return new FixedSizeListIterator<AnimatedLength>(this); |
332 } | 332 } |
333 | 333 |
334 // From Collection<SVGAnimatedLength>: | 334 // From Collection<AnimatedLength>: |
335 | 335 |
336 void add(SVGAnimatedLength value) { | 336 void add(AnimatedLength value) { |
337 throw new UnsupportedError("Cannot add to immutable List."); | 337 throw new UnsupportedError("Cannot add to immutable List."); |
338 } | 338 } |
339 | 339 |
340 void addLast(SVGAnimatedLength value) { | 340 void addLast(AnimatedLength value) { |
341 throw new UnsupportedError("Cannot add to immutable List."); | 341 throw new UnsupportedError("Cannot add to immutable List."); |
342 } | 342 } |
343 | 343 |
344 void addAll(Collection<SVGAnimatedLength> collection) { | 344 void addAll(Collection<AnimatedLength> collection) { |
345 throw new UnsupportedError("Cannot add to immutable List."); | 345 throw new UnsupportedError("Cannot add to immutable List."); |
346 } | 346 } |
347 | 347 |
348 bool contains(SVGAnimatedLength element) => _Collections.contains(this, elemen
t); | 348 bool contains(AnimatedLength element) => _Collections.contains(this, element); |
349 | 349 |
350 void forEach(void f(SVGAnimatedLength element)) => _Collections.forEach(this,
f); | 350 void forEach(void f(AnimatedLength element)) => _Collections.forEach(this, f); |
351 | 351 |
352 Collection map(f(SVGAnimatedLength element)) => _Collections.map(this, [], f); | 352 Collection map(f(AnimatedLength element)) => _Collections.map(this, [], f); |
353 | 353 |
354 Collection<SVGAnimatedLength> filter(bool f(SVGAnimatedLength element)) => | 354 Collection<AnimatedLength> filter(bool f(AnimatedLength element)) => |
355 _Collections.filter(this, <SVGAnimatedLength>[], f); | 355 _Collections.filter(this, <AnimatedLength>[], f); |
356 | 356 |
357 bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f); | 357 bool every(bool f(AnimatedLength element)) => _Collections.every(this, f); |
358 | 358 |
359 bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f); | 359 bool some(bool f(AnimatedLength element)) => _Collections.some(this, f); |
360 | 360 |
361 bool get isEmpty => this.length == 0; | 361 bool get isEmpty => this.length == 0; |
362 | 362 |
363 // From List<SVGAnimatedLength>: | 363 // From List<AnimatedLength>: |
364 | 364 |
365 void sort([Comparator<SVGAnimatedLength> compare = Comparable.compare]) { | 365 void sort([Comparator<AnimatedLength> compare = Comparable.compare]) { |
366 throw new UnsupportedError("Cannot sort immutable List."); | 366 throw new UnsupportedError("Cannot sort immutable List."); |
367 } | 367 } |
368 | 368 |
369 int indexOf(SVGAnimatedLength element, [int start = 0]) => | 369 int indexOf(AnimatedLength element, [int start = 0]) => |
370 _Lists.indexOf(this, element, start, this.length); | 370 _Lists.indexOf(this, element, start, this.length); |
371 | 371 |
372 int lastIndexOf(SVGAnimatedLength element, [int start]) { | 372 int lastIndexOf(AnimatedLength element, [int start]) { |
373 if (start == null) start = length - 1; | 373 if (start == null) start = length - 1; |
374 return _Lists.lastIndexOf(this, element, start); | 374 return _Lists.lastIndexOf(this, element, start); |
375 } | 375 } |
376 | 376 |
377 SVGAnimatedLength get last => this[length - 1]; | 377 AnimatedLength get last => this[length - 1]; |
378 | 378 |
379 SVGAnimatedLength removeLast() { | 379 AnimatedLength removeLast() { |
380 throw new UnsupportedError("Cannot removeLast on immutable List."); | 380 throw new UnsupportedError("Cannot removeLast on immutable List."); |
381 } | 381 } |
382 | 382 |
383 void setRange(int start, int rangeLength, List<SVGAnimatedLength> from, [int s
tartFrom]) { | 383 void setRange(int start, int rangeLength, List<AnimatedLength> from, [int star
tFrom]) { |
384 throw new UnsupportedError("Cannot setRange on immutable List."); | 384 throw new UnsupportedError("Cannot setRange on immutable List."); |
385 } | 385 } |
386 | 386 |
387 void removeRange(int start, int rangeLength) { | 387 void removeRange(int start, int rangeLength) { |
388 throw new UnsupportedError("Cannot removeRange on immutable List."); | 388 throw new UnsupportedError("Cannot removeRange on immutable List."); |
389 } | 389 } |
390 | 390 |
391 void insertRange(int start, int rangeLength, [SVGAnimatedLength initialValue])
{ | 391 void insertRange(int start, int rangeLength, [AnimatedLength initialValue]) { |
392 throw new UnsupportedError("Cannot insertRange on immutable List."); | 392 throw new UnsupportedError("Cannot insertRange on immutable List."); |
393 } | 393 } |
394 | 394 |
395 List<SVGAnimatedLength> getRange(int start, int rangeLength) => | 395 List<AnimatedLength> getRange(int start, int rangeLength) => |
396 _Lists.getRange(this, start, rangeLength, <SVGAnimatedLength>[]); | 396 _Lists.getRange(this, start, rangeLength, <AnimatedLength>[]); |
397 | 397 |
398 // -- end List<SVGAnimatedLength> mixins. | 398 // -- end List<AnimatedLength> mixins. |
399 } | 399 } |
400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
401 // for details. All rights reserved. Use of this source code is governed by a | 401 // for details. All rights reserved. Use of this source code is governed by a |
402 // BSD-style license that can be found in the LICENSE file. | 402 // BSD-style license that can be found in the LICENSE file. |
403 | 403 |
404 | 404 |
405 /// @domName SVGAnimatedNumber | 405 /// @domName SVGAnimatedNumber |
406 class SVGAnimatedNumber native "*SVGAnimatedNumber" { | 406 class AnimatedNumber native "*SVGAnimatedNumber" { |
407 | 407 |
408 /** @domName SVGAnimatedNumber.animVal */ | 408 /** @domName SVGAnimatedNumber.animVal */ |
409 final num animVal; | 409 final num animVal; |
410 | 410 |
411 /** @domName SVGAnimatedNumber.baseVal */ | 411 /** @domName SVGAnimatedNumber.baseVal */ |
412 num baseVal; | 412 num baseVal; |
413 } | 413 } |
414 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 414 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
415 // for details. All rights reserved. Use of this source code is governed by a | 415 // for details. All rights reserved. Use of this source code is governed by a |
416 // BSD-style license that can be found in the LICENSE file. | 416 // BSD-style license that can be found in the LICENSE file. |
417 | 417 |
418 | 418 |
419 /// @domName SVGAnimatedNumberList | 419 /// @domName SVGAnimatedNumberList |
420 class SVGAnimatedNumberList implements JavaScriptIndexingBehavior, List<SVGAnima
tedNumber> native "*SVGAnimatedNumberList" { | 420 class AnimatedNumberList implements JavaScriptIndexingBehavior, List<AnimatedNum
ber> native "*SVGAnimatedNumberList" { |
421 | 421 |
422 /** @domName SVGAnimatedNumberList.animVal */ | 422 /** @domName SVGAnimatedNumberList.animVal */ |
423 final SVGNumberList animVal; | 423 final NumberList animVal; |
424 | 424 |
425 /** @domName SVGAnimatedNumberList.baseVal */ | 425 /** @domName SVGAnimatedNumberList.baseVal */ |
426 final SVGNumberList baseVal; | 426 final NumberList baseVal; |
427 | 427 |
428 SVGAnimatedNumber operator[](int index) => JS("SVGAnimatedNumber", "#[#]", thi
s, index); | 428 AnimatedNumber operator[](int index) => JS("AnimatedNumber", "#[#]", this, ind
ex); |
429 | 429 |
430 void operator[]=(int index, SVGAnimatedNumber value) { | 430 void operator[]=(int index, AnimatedNumber value) { |
431 throw new UnsupportedError("Cannot assign element of immutable List."); | 431 throw new UnsupportedError("Cannot assign element of immutable List."); |
432 } | 432 } |
433 // -- start List<SVGAnimatedNumber> mixins. | 433 // -- start List<AnimatedNumber> mixins. |
434 // SVGAnimatedNumber is the element type. | 434 // AnimatedNumber is the element type. |
435 | 435 |
436 // From Iterable<SVGAnimatedNumber>: | 436 // From Iterable<AnimatedNumber>: |
437 | 437 |
438 Iterator<SVGAnimatedNumber> iterator() { | 438 Iterator<AnimatedNumber> iterator() { |
439 // Note: NodeLists are not fixed size. And most probably length shouldn't | 439 // Note: NodeLists are not fixed size. And most probably length shouldn't |
440 // be cached in both iterator _and_ forEach method. For now caching it | 440 // be cached in both iterator _and_ forEach method. For now caching it |
441 // for consistency. | 441 // for consistency. |
442 return new FixedSizeListIterator<SVGAnimatedNumber>(this); | 442 return new FixedSizeListIterator<AnimatedNumber>(this); |
443 } | 443 } |
444 | 444 |
445 // From Collection<SVGAnimatedNumber>: | 445 // From Collection<AnimatedNumber>: |
446 | 446 |
447 void add(SVGAnimatedNumber value) { | 447 void add(AnimatedNumber value) { |
448 throw new UnsupportedError("Cannot add to immutable List."); | 448 throw new UnsupportedError("Cannot add to immutable List."); |
449 } | 449 } |
450 | 450 |
451 void addLast(SVGAnimatedNumber value) { | 451 void addLast(AnimatedNumber value) { |
452 throw new UnsupportedError("Cannot add to immutable List."); | 452 throw new UnsupportedError("Cannot add to immutable List."); |
453 } | 453 } |
454 | 454 |
455 void addAll(Collection<SVGAnimatedNumber> collection) { | 455 void addAll(Collection<AnimatedNumber> collection) { |
456 throw new UnsupportedError("Cannot add to immutable List."); | 456 throw new UnsupportedError("Cannot add to immutable List."); |
457 } | 457 } |
458 | 458 |
459 bool contains(SVGAnimatedNumber element) => _Collections.contains(this, elemen
t); | 459 bool contains(AnimatedNumber element) => _Collections.contains(this, element); |
460 | 460 |
461 void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this,
f); | 461 void forEach(void f(AnimatedNumber element)) => _Collections.forEach(this, f); |
462 | 462 |
463 Collection map(f(SVGAnimatedNumber element)) => _Collections.map(this, [], f); | 463 Collection map(f(AnimatedNumber element)) => _Collections.map(this, [], f); |
464 | 464 |
465 Collection<SVGAnimatedNumber> filter(bool f(SVGAnimatedNumber element)) => | 465 Collection<AnimatedNumber> filter(bool f(AnimatedNumber element)) => |
466 _Collections.filter(this, <SVGAnimatedNumber>[], f); | 466 _Collections.filter(this, <AnimatedNumber>[], f); |
467 | 467 |
468 bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f); | 468 bool every(bool f(AnimatedNumber element)) => _Collections.every(this, f); |
469 | 469 |
470 bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f); | 470 bool some(bool f(AnimatedNumber element)) => _Collections.some(this, f); |
471 | 471 |
472 bool get isEmpty => this.length == 0; | 472 bool get isEmpty => this.length == 0; |
473 | 473 |
474 // From List<SVGAnimatedNumber>: | 474 // From List<AnimatedNumber>: |
475 | 475 |
476 void sort([Comparator<SVGAnimatedNumber> compare = Comparable.compare]) { | 476 void sort([Comparator<AnimatedNumber> compare = Comparable.compare]) { |
477 throw new UnsupportedError("Cannot sort immutable List."); | 477 throw new UnsupportedError("Cannot sort immutable List."); |
478 } | 478 } |
479 | 479 |
480 int indexOf(SVGAnimatedNumber element, [int start = 0]) => | 480 int indexOf(AnimatedNumber element, [int start = 0]) => |
481 _Lists.indexOf(this, element, start, this.length); | 481 _Lists.indexOf(this, element, start, this.length); |
482 | 482 |
483 int lastIndexOf(SVGAnimatedNumber element, [int start]) { | 483 int lastIndexOf(AnimatedNumber element, [int start]) { |
484 if (start == null) start = length - 1; | 484 if (start == null) start = length - 1; |
485 return _Lists.lastIndexOf(this, element, start); | 485 return _Lists.lastIndexOf(this, element, start); |
486 } | 486 } |
487 | 487 |
488 SVGAnimatedNumber get last => this[length - 1]; | 488 AnimatedNumber get last => this[length - 1]; |
489 | 489 |
490 SVGAnimatedNumber removeLast() { | 490 AnimatedNumber removeLast() { |
491 throw new UnsupportedError("Cannot removeLast on immutable List."); | 491 throw new UnsupportedError("Cannot removeLast on immutable List."); |
492 } | 492 } |
493 | 493 |
494 void setRange(int start, int rangeLength, List<SVGAnimatedNumber> from, [int s
tartFrom]) { | 494 void setRange(int start, int rangeLength, List<AnimatedNumber> from, [int star
tFrom]) { |
495 throw new UnsupportedError("Cannot setRange on immutable List."); | 495 throw new UnsupportedError("Cannot setRange on immutable List."); |
496 } | 496 } |
497 | 497 |
498 void removeRange(int start, int rangeLength) { | 498 void removeRange(int start, int rangeLength) { |
499 throw new UnsupportedError("Cannot removeRange on immutable List."); | 499 throw new UnsupportedError("Cannot removeRange on immutable List."); |
500 } | 500 } |
501 | 501 |
502 void insertRange(int start, int rangeLength, [SVGAnimatedNumber initialValue])
{ | 502 void insertRange(int start, int rangeLength, [AnimatedNumber initialValue]) { |
503 throw new UnsupportedError("Cannot insertRange on immutable List."); | 503 throw new UnsupportedError("Cannot insertRange on immutable List."); |
504 } | 504 } |
505 | 505 |
506 List<SVGAnimatedNumber> getRange(int start, int rangeLength) => | 506 List<AnimatedNumber> getRange(int start, int rangeLength) => |
507 _Lists.getRange(this, start, rangeLength, <SVGAnimatedNumber>[]); | 507 _Lists.getRange(this, start, rangeLength, <AnimatedNumber>[]); |
508 | 508 |
509 // -- end List<SVGAnimatedNumber> mixins. | 509 // -- end List<AnimatedNumber> mixins. |
510 } | 510 } |
511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
512 // for details. All rights reserved. Use of this source code is governed by a | 512 // for details. All rights reserved. Use of this source code is governed by a |
513 // BSD-style license that can be found in the LICENSE file. | 513 // BSD-style license that can be found in the LICENSE file. |
514 | 514 |
515 | 515 |
516 /// @domName SVGAnimatedPreserveAspectRatio | 516 /// @domName SVGAnimatedPreserveAspectRatio |
517 class SVGAnimatedPreserveAspectRatio native "*SVGAnimatedPreserveAspectRatio" { | 517 class AnimatedPreserveAspectRatio native "*SVGAnimatedPreserveAspectRatio" { |
518 | 518 |
519 /** @domName SVGAnimatedPreserveAspectRatio.animVal */ | 519 /** @domName SVGAnimatedPreserveAspectRatio.animVal */ |
520 final SVGPreserveAspectRatio animVal; | 520 final PreserveAspectRatio animVal; |
521 | 521 |
522 /** @domName SVGAnimatedPreserveAspectRatio.baseVal */ | 522 /** @domName SVGAnimatedPreserveAspectRatio.baseVal */ |
523 final SVGPreserveAspectRatio baseVal; | 523 final PreserveAspectRatio baseVal; |
524 } | 524 } |
525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
526 // for details. All rights reserved. Use of this source code is governed by a | 526 // for details. All rights reserved. Use of this source code is governed by a |
527 // BSD-style license that can be found in the LICENSE file. | 527 // BSD-style license that can be found in the LICENSE file. |
528 | 528 |
529 | 529 |
530 /// @domName SVGAnimatedRect | 530 /// @domName SVGAnimatedRect |
531 class SVGAnimatedRect native "*SVGAnimatedRect" { | 531 class AnimatedRect native "*SVGAnimatedRect" { |
532 | 532 |
533 /** @domName SVGAnimatedRect.animVal */ | 533 /** @domName SVGAnimatedRect.animVal */ |
534 final SVGRect animVal; | 534 final Rect animVal; |
535 | 535 |
536 /** @domName SVGAnimatedRect.baseVal */ | 536 /** @domName SVGAnimatedRect.baseVal */ |
537 final SVGRect baseVal; | 537 final Rect baseVal; |
538 } | 538 } |
539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
540 // for details. All rights reserved. Use of this source code is governed by a | 540 // for details. All rights reserved. Use of this source code is governed by a |
541 // BSD-style license that can be found in the LICENSE file. | 541 // BSD-style license that can be found in the LICENSE file. |
542 | 542 |
543 | 543 |
544 /// @domName SVGAnimatedString | 544 /// @domName SVGAnimatedString |
545 class SVGAnimatedString native "*SVGAnimatedString" { | 545 class AnimatedString native "*SVGAnimatedString" { |
546 | 546 |
547 /** @domName SVGAnimatedString.animVal */ | 547 /** @domName SVGAnimatedString.animVal */ |
548 final String animVal; | 548 final String animVal; |
549 | 549 |
550 /** @domName SVGAnimatedString.baseVal */ | 550 /** @domName SVGAnimatedString.baseVal */ |
551 String baseVal; | 551 String baseVal; |
552 } | 552 } |
553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
554 // for details. All rights reserved. Use of this source code is governed by a | 554 // for details. All rights reserved. Use of this source code is governed by a |
555 // BSD-style license that can be found in the LICENSE file. | 555 // BSD-style license that can be found in the LICENSE file. |
556 | 556 |
557 | 557 |
558 /// @domName SVGAnimatedTransformList | 558 /// @domName SVGAnimatedTransformList |
559 class SVGAnimatedTransformList implements JavaScriptIndexingBehavior, List<SVGAn
imateTransformElement> native "*SVGAnimatedTransformList" { | 559 class AnimatedTransformList implements JavaScriptIndexingBehavior, List<AnimateT
ransformElement> native "*SVGAnimatedTransformList" { |
560 | 560 |
561 /** @domName SVGAnimatedTransformList.animVal */ | 561 /** @domName SVGAnimatedTransformList.animVal */ |
562 final SVGTransformList animVal; | 562 final TransformList animVal; |
563 | 563 |
564 /** @domName SVGAnimatedTransformList.baseVal */ | 564 /** @domName SVGAnimatedTransformList.baseVal */ |
565 final SVGTransformList baseVal; | 565 final TransformList baseVal; |
566 | 566 |
567 SVGAnimateTransformElement operator[](int index) => JS("SVGAnimateTransformEle
ment", "#[#]", this, index); | 567 AnimateTransformElement operator[](int index) => JS("AnimateTransformElement",
"#[#]", this, index); |
568 | 568 |
569 void operator[]=(int index, SVGAnimateTransformElement value) { | 569 void operator[]=(int index, AnimateTransformElement value) { |
570 throw new UnsupportedError("Cannot assign element of immutable List."); | 570 throw new UnsupportedError("Cannot assign element of immutable List."); |
571 } | 571 } |
572 // -- start List<SVGAnimateTransformElement> mixins. | 572 // -- start List<AnimateTransformElement> mixins. |
573 // SVGAnimateTransformElement is the element type. | 573 // AnimateTransformElement is the element type. |
574 | 574 |
575 // From Iterable<SVGAnimateTransformElement>: | 575 // From Iterable<AnimateTransformElement>: |
576 | 576 |
577 Iterator<SVGAnimateTransformElement> iterator() { | 577 Iterator<AnimateTransformElement> iterator() { |
578 // Note: NodeLists are not fixed size. And most probably length shouldn't | 578 // Note: NodeLists are not fixed size. And most probably length shouldn't |
579 // be cached in both iterator _and_ forEach method. For now caching it | 579 // be cached in both iterator _and_ forEach method. For now caching it |
580 // for consistency. | 580 // for consistency. |
581 return new FixedSizeListIterator<SVGAnimateTransformElement>(this); | 581 return new FixedSizeListIterator<AnimateTransformElement>(this); |
582 } | 582 } |
583 | 583 |
584 // From Collection<SVGAnimateTransformElement>: | 584 // From Collection<AnimateTransformElement>: |
585 | 585 |
586 void add(SVGAnimateTransformElement value) { | 586 void add(AnimateTransformElement value) { |
587 throw new UnsupportedError("Cannot add to immutable List."); | 587 throw new UnsupportedError("Cannot add to immutable List."); |
588 } | 588 } |
589 | 589 |
590 void addLast(SVGAnimateTransformElement value) { | 590 void addLast(AnimateTransformElement value) { |
591 throw new UnsupportedError("Cannot add to immutable List."); | 591 throw new UnsupportedError("Cannot add to immutable List."); |
592 } | 592 } |
593 | 593 |
594 void addAll(Collection<SVGAnimateTransformElement> collection) { | 594 void addAll(Collection<AnimateTransformElement> collection) { |
595 throw new UnsupportedError("Cannot add to immutable List."); | 595 throw new UnsupportedError("Cannot add to immutable List."); |
596 } | 596 } |
597 | 597 |
598 bool contains(SVGAnimateTransformElement element) => _Collections.contains(thi
s, element); | 598 bool contains(AnimateTransformElement element) => _Collections.contains(this,
element); |
599 | 599 |
600 void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEa
ch(this, f); | 600 void forEach(void f(AnimateTransformElement element)) => _Collections.forEach(
this, f); |
601 | 601 |
602 Collection map(f(SVGAnimateTransformElement element)) => _Collections.map(this
, [], f); | 602 Collection map(f(AnimateTransformElement element)) => _Collections.map(this, [
], f); |
603 | 603 |
604 Collection<SVGAnimateTransformElement> filter(bool f(SVGAnimateTransformElemen
t element)) => | 604 Collection<AnimateTransformElement> filter(bool f(AnimateTransformElement elem
ent)) => |
605 _Collections.filter(this, <SVGAnimateTransformElement>[], f); | 605 _Collections.filter(this, <AnimateTransformElement>[], f); |
606 | 606 |
607 bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(t
his, f); | 607 bool every(bool f(AnimateTransformElement element)) => _Collections.every(this
, f); |
608 | 608 |
609 bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(thi
s, f); | 609 bool some(bool f(AnimateTransformElement element)) => _Collections.some(this,
f); |
610 | 610 |
611 bool get isEmpty => this.length == 0; | 611 bool get isEmpty => this.length == 0; |
612 | 612 |
613 // From List<SVGAnimateTransformElement>: | 613 // From List<AnimateTransformElement>: |
614 | 614 |
615 void sort([Comparator<SVGAnimateTransformElement> compare = Comparable.compare
]) { | 615 void sort([Comparator<AnimateTransformElement> compare = Comparable.compare])
{ |
616 throw new UnsupportedError("Cannot sort immutable List."); | 616 throw new UnsupportedError("Cannot sort immutable List."); |
617 } | 617 } |
618 | 618 |
619 int indexOf(SVGAnimateTransformElement element, [int start = 0]) => | 619 int indexOf(AnimateTransformElement element, [int start = 0]) => |
620 _Lists.indexOf(this, element, start, this.length); | 620 _Lists.indexOf(this, element, start, this.length); |
621 | 621 |
622 int lastIndexOf(SVGAnimateTransformElement element, [int start]) { | 622 int lastIndexOf(AnimateTransformElement element, [int start]) { |
623 if (start == null) start = length - 1; | 623 if (start == null) start = length - 1; |
624 return _Lists.lastIndexOf(this, element, start); | 624 return _Lists.lastIndexOf(this, element, start); |
625 } | 625 } |
626 | 626 |
627 SVGAnimateTransformElement get last => this[length - 1]; | 627 AnimateTransformElement get last => this[length - 1]; |
628 | 628 |
629 SVGAnimateTransformElement removeLast() { | 629 AnimateTransformElement removeLast() { |
630 throw new UnsupportedError("Cannot removeLast on immutable List."); | 630 throw new UnsupportedError("Cannot removeLast on immutable List."); |
631 } | 631 } |
632 | 632 |
633 void setRange(int start, int rangeLength, List<SVGAnimateTransformElement> fro
m, [int startFrom]) { | 633 void setRange(int start, int rangeLength, List<AnimateTransformElement> from,
[int startFrom]) { |
634 throw new UnsupportedError("Cannot setRange on immutable List."); | 634 throw new UnsupportedError("Cannot setRange on immutable List."); |
635 } | 635 } |
636 | 636 |
637 void removeRange(int start, int rangeLength) { | 637 void removeRange(int start, int rangeLength) { |
638 throw new UnsupportedError("Cannot removeRange on immutable List."); | 638 throw new UnsupportedError("Cannot removeRange on immutable List."); |
639 } | 639 } |
640 | 640 |
641 void insertRange(int start, int rangeLength, [SVGAnimateTransformElement initi
alValue]) { | 641 void insertRange(int start, int rangeLength, [AnimateTransformElement initialV
alue]) { |
642 throw new UnsupportedError("Cannot insertRange on immutable List."); | 642 throw new UnsupportedError("Cannot insertRange on immutable List."); |
643 } | 643 } |
644 | 644 |
645 List<SVGAnimateTransformElement> getRange(int start, int rangeLength) => | 645 List<AnimateTransformElement> getRange(int start, int rangeLength) => |
646 _Lists.getRange(this, start, rangeLength, <SVGAnimateTransformElement>[]); | 646 _Lists.getRange(this, start, rangeLength, <AnimateTransformElement>[]); |
647 | 647 |
648 // -- end List<SVGAnimateTransformElement> mixins. | 648 // -- end List<AnimateTransformElement> mixins. |
649 } | 649 } |
650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
651 // for details. All rights reserved. Use of this source code is governed by a | 651 // for details. All rights reserved. Use of this source code is governed by a |
652 // BSD-style license that can be found in the LICENSE file. | 652 // BSD-style license that can be found in the LICENSE file. |
653 | 653 |
654 | 654 |
655 /// @domName SVGAnimationElement | 655 /// @domName SVGAnimationElement |
656 class SVGAnimationElement extends SVGElement implements ElementTimeControl, SVGT
ests, SVGExternalResourcesRequired native "*SVGAnimationElement" { | 656 class AnimationElement extends SvgElement implements Tests, ElementTimeControl,
ExternalResourcesRequired native "*SVGAnimationElement" { |
657 | 657 |
658 /** @domName SVGAnimationElement.targetElement */ | 658 /** @domName SVGAnimationElement.targetElement */ |
659 final SVGElement targetElement; | 659 final SvgElement targetElement; |
660 | 660 |
661 /** @domName SVGAnimationElement.getCurrentTime */ | 661 /** @domName SVGAnimationElement.getCurrentTime */ |
662 num getCurrentTime() native; | 662 num getCurrentTime() native; |
663 | 663 |
664 /** @domName SVGAnimationElement.getSimpleDuration */ | 664 /** @domName SVGAnimationElement.getSimpleDuration */ |
665 num getSimpleDuration() native; | 665 num getSimpleDuration() native; |
666 | 666 |
667 /** @domName SVGAnimationElement.getStartTime */ | 667 /** @domName SVGAnimationElement.getStartTime */ |
668 num getStartTime() native; | 668 num getStartTime() native; |
669 | 669 |
670 // From ElementTimeControl | 670 // From ElementTimeControl |
671 | 671 |
672 /** @domName ElementTimeControl.beginElement */ | 672 /** @domName ElementTimeControl.beginElement */ |
673 void beginElement() native; | 673 void beginElement() native; |
674 | 674 |
675 /** @domName ElementTimeControl.beginElementAt */ | 675 /** @domName ElementTimeControl.beginElementAt */ |
676 void beginElementAt(num offset) native; | 676 void beginElementAt(num offset) native; |
677 | 677 |
678 /** @domName ElementTimeControl.endElement */ | 678 /** @domName ElementTimeControl.endElement */ |
679 void endElement() native; | 679 void endElement() native; |
680 | 680 |
681 /** @domName ElementTimeControl.endElementAt */ | 681 /** @domName ElementTimeControl.endElementAt */ |
682 void endElementAt(num offset) native; | 682 void endElementAt(num offset) native; |
683 | 683 |
684 // From SVGExternalResourcesRequired | 684 // From SVGExternalResourcesRequired |
685 | 685 |
686 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 686 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
687 final SVGAnimatedBoolean externalResourcesRequired; | 687 final AnimatedBoolean externalResourcesRequired; |
688 | 688 |
689 // From SVGTests | 689 // From SVGTests |
690 | 690 |
691 /** @domName SVGTests.requiredExtensions */ | 691 /** @domName SVGTests.requiredExtensions */ |
692 final SVGStringList requiredExtensions; | 692 final StringList requiredExtensions; |
693 | 693 |
694 /** @domName SVGTests.requiredFeatures */ | 694 /** @domName SVGTests.requiredFeatures */ |
695 final SVGStringList requiredFeatures; | 695 final StringList requiredFeatures; |
696 | 696 |
697 /** @domName SVGTests.systemLanguage */ | 697 /** @domName SVGTests.systemLanguage */ |
698 final SVGStringList systemLanguage; | 698 final StringList systemLanguage; |
699 | 699 |
700 /** @domName SVGTests.hasExtension */ | 700 /** @domName SVGTests.hasExtension */ |
701 bool hasExtension(String extension) native; | 701 bool hasExtension(String extension) native; |
702 } | 702 } |
703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
704 // for details. All rights reserved. Use of this source code is governed by a | 704 // for details. All rights reserved. Use of this source code is governed by a |
705 // BSD-style license that can be found in the LICENSE file. | 705 // BSD-style license that can be found in the LICENSE file. |
706 | 706 |
707 | 707 |
708 /// @domName SVGCircleElement | 708 /// @domName SVGCircleElement |
709 class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable,
SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGCircleEleme
nt" { | 709 class CircleElement extends SvgElement implements Transformable, Tests, Stylable
, ExternalResourcesRequired, LangSpace native "*SVGCircleElement" { |
710 | 710 |
711 /** @domName SVGCircleElement.cx */ | 711 /** @domName SVGCircleElement.cx */ |
712 final SVGAnimatedLength cx; | 712 final AnimatedLength cx; |
713 | 713 |
714 /** @domName SVGCircleElement.cy */ | 714 /** @domName SVGCircleElement.cy */ |
715 final SVGAnimatedLength cy; | 715 final AnimatedLength cy; |
716 | 716 |
717 /** @domName SVGCircleElement.r */ | 717 /** @domName SVGCircleElement.r */ |
718 final SVGAnimatedLength r; | 718 final AnimatedLength r; |
719 | 719 |
720 // From SVGExternalResourcesRequired | 720 // From SVGExternalResourcesRequired |
721 | 721 |
722 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 722 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
723 final SVGAnimatedBoolean externalResourcesRequired; | 723 final AnimatedBoolean externalResourcesRequired; |
724 | 724 |
725 // From SVGLangSpace | 725 // From SVGLangSpace |
726 | 726 |
727 /** @domName SVGLangSpace.xmllang */ | 727 /** @domName SVGLangSpace.xmllang */ |
728 String xmllang; | 728 String xmllang; |
729 | 729 |
730 /** @domName SVGLangSpace.xmlspace */ | 730 /** @domName SVGLangSpace.xmlspace */ |
731 String xmlspace; | 731 String xmlspace; |
732 | 732 |
733 // From SVGLocatable | 733 // From SVGLocatable |
734 | 734 |
735 /** @domName SVGLocatable.farthestViewportElement */ | 735 /** @domName SVGLocatable.farthestViewportElement */ |
736 final SVGElement farthestViewportElement; | 736 final SvgElement farthestViewportElement; |
737 | 737 |
738 /** @domName SVGLocatable.nearestViewportElement */ | 738 /** @domName SVGLocatable.nearestViewportElement */ |
739 final SVGElement nearestViewportElement; | 739 final SvgElement nearestViewportElement; |
740 | 740 |
741 /** @domName SVGLocatable.getBBox */ | 741 /** @domName SVGLocatable.getBBox */ |
742 SVGRect getBBox() native; | 742 Rect getBBox() native; |
743 | 743 |
744 /** @domName SVGLocatable.getCTM */ | 744 /** @domName SVGLocatable.getCTM */ |
745 SVGMatrix getCTM() native; | 745 Matrix getCTM() native; |
746 | 746 |
747 /** @domName SVGLocatable.getScreenCTM */ | 747 /** @domName SVGLocatable.getScreenCTM */ |
748 SVGMatrix getScreenCTM() native; | 748 Matrix getScreenCTM() native; |
749 | 749 |
750 /** @domName SVGLocatable.getTransformToElement */ | 750 /** @domName SVGLocatable.getTransformToElement */ |
751 SVGMatrix getTransformToElement(SVGElement element) native; | 751 Matrix getTransformToElement(SvgElement element) native; |
752 | 752 |
753 // From SVGStylable | 753 // From SVGStylable |
754 | 754 |
755 /** @domName SVGStylable.className */ | 755 /** @domName SVGStylable.className */ |
756 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 756 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
757 | 757 |
758 // Use implementation from Element. | 758 // Use implementation from Element. |
759 // final CSSStyleDeclaration style; | 759 // final CSSStyleDeclaration style; |
760 | 760 |
761 /** @domName SVGStylable.getPresentationAttribute */ | 761 /** @domName SVGStylable.getPresentationAttribute */ |
762 CSSValue getPresentationAttribute(String name) native; | 762 CSSValue getPresentationAttribute(String name) native; |
763 | 763 |
764 // From SVGTests | 764 // From SVGTests |
765 | 765 |
766 /** @domName SVGTests.requiredExtensions */ | 766 /** @domName SVGTests.requiredExtensions */ |
767 final SVGStringList requiredExtensions; | 767 final StringList requiredExtensions; |
768 | 768 |
769 /** @domName SVGTests.requiredFeatures */ | 769 /** @domName SVGTests.requiredFeatures */ |
770 final SVGStringList requiredFeatures; | 770 final StringList requiredFeatures; |
771 | 771 |
772 /** @domName SVGTests.systemLanguage */ | 772 /** @domName SVGTests.systemLanguage */ |
773 final SVGStringList systemLanguage; | 773 final StringList systemLanguage; |
774 | 774 |
775 /** @domName SVGTests.hasExtension */ | 775 /** @domName SVGTests.hasExtension */ |
776 bool hasExtension(String extension) native; | 776 bool hasExtension(String extension) native; |
777 | 777 |
778 // From SVGTransformable | 778 // From SVGTransformable |
779 | 779 |
780 /** @domName SVGTransformable.transform */ | 780 /** @domName SVGTransformable.transform */ |
781 final SVGAnimatedTransformList transform; | 781 final AnimatedTransformList transform; |
782 } | 782 } |
783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
784 // for details. All rights reserved. Use of this source code is governed by a | 784 // for details. All rights reserved. Use of this source code is governed by a |
785 // BSD-style license that can be found in the LICENSE file. | 785 // BSD-style license that can be found in the LICENSE file. |
786 | 786 |
787 | 787 |
788 /// @domName SVGClipPathElement | 788 /// @domName SVGClipPathElement |
789 class SVGClipPathElement extends SVGElement implements SVGLangSpace, SVGStylable
, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGClipPathE
lement" { | 789 class ClipPathElement extends SvgElement implements Transformable, Tests, Stylab
le, ExternalResourcesRequired, LangSpace native "*SVGClipPathElement" { |
790 | 790 |
791 /** @domName SVGClipPathElement.clipPathUnits */ | 791 /** @domName SVGClipPathElement.clipPathUnits */ |
792 final SVGAnimatedEnumeration clipPathUnits; | 792 final AnimatedEnumeration clipPathUnits; |
793 | 793 |
794 // From SVGExternalResourcesRequired | 794 // From SVGExternalResourcesRequired |
795 | 795 |
796 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 796 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
797 final SVGAnimatedBoolean externalResourcesRequired; | 797 final AnimatedBoolean externalResourcesRequired; |
798 | 798 |
799 // From SVGLangSpace | 799 // From SVGLangSpace |
800 | 800 |
801 /** @domName SVGLangSpace.xmllang */ | 801 /** @domName SVGLangSpace.xmllang */ |
802 String xmllang; | 802 String xmllang; |
803 | 803 |
804 /** @domName SVGLangSpace.xmlspace */ | 804 /** @domName SVGLangSpace.xmlspace */ |
805 String xmlspace; | 805 String xmlspace; |
806 | 806 |
807 // From SVGLocatable | 807 // From SVGLocatable |
808 | 808 |
809 /** @domName SVGLocatable.farthestViewportElement */ | 809 /** @domName SVGLocatable.farthestViewportElement */ |
810 final SVGElement farthestViewportElement; | 810 final SvgElement farthestViewportElement; |
811 | 811 |
812 /** @domName SVGLocatable.nearestViewportElement */ | 812 /** @domName SVGLocatable.nearestViewportElement */ |
813 final SVGElement nearestViewportElement; | 813 final SvgElement nearestViewportElement; |
814 | 814 |
815 /** @domName SVGLocatable.getBBox */ | 815 /** @domName SVGLocatable.getBBox */ |
816 SVGRect getBBox() native; | 816 Rect getBBox() native; |
817 | 817 |
818 /** @domName SVGLocatable.getCTM */ | 818 /** @domName SVGLocatable.getCTM */ |
819 SVGMatrix getCTM() native; | 819 Matrix getCTM() native; |
820 | 820 |
821 /** @domName SVGLocatable.getScreenCTM */ | 821 /** @domName SVGLocatable.getScreenCTM */ |
822 SVGMatrix getScreenCTM() native; | 822 Matrix getScreenCTM() native; |
823 | 823 |
824 /** @domName SVGLocatable.getTransformToElement */ | 824 /** @domName SVGLocatable.getTransformToElement */ |
825 SVGMatrix getTransformToElement(SVGElement element) native; | 825 Matrix getTransformToElement(SvgElement element) native; |
826 | 826 |
827 // From SVGStylable | 827 // From SVGStylable |
828 | 828 |
829 /** @domName SVGStylable.className */ | 829 /** @domName SVGStylable.className */ |
830 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 830 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
831 | 831 |
832 // Use implementation from Element. | 832 // Use implementation from Element. |
833 // final CSSStyleDeclaration style; | 833 // final CSSStyleDeclaration style; |
834 | 834 |
835 /** @domName SVGStylable.getPresentationAttribute */ | 835 /** @domName SVGStylable.getPresentationAttribute */ |
836 CSSValue getPresentationAttribute(String name) native; | 836 CSSValue getPresentationAttribute(String name) native; |
837 | 837 |
838 // From SVGTests | 838 // From SVGTests |
839 | 839 |
840 /** @domName SVGTests.requiredExtensions */ | 840 /** @domName SVGTests.requiredExtensions */ |
841 final SVGStringList requiredExtensions; | 841 final StringList requiredExtensions; |
842 | 842 |
843 /** @domName SVGTests.requiredFeatures */ | 843 /** @domName SVGTests.requiredFeatures */ |
844 final SVGStringList requiredFeatures; | 844 final StringList requiredFeatures; |
845 | 845 |
846 /** @domName SVGTests.systemLanguage */ | 846 /** @domName SVGTests.systemLanguage */ |
847 final SVGStringList systemLanguage; | 847 final StringList systemLanguage; |
848 | 848 |
849 /** @domName SVGTests.hasExtension */ | 849 /** @domName SVGTests.hasExtension */ |
850 bool hasExtension(String extension) native; | 850 bool hasExtension(String extension) native; |
851 | 851 |
852 // From SVGTransformable | 852 // From SVGTransformable |
853 | 853 |
854 /** @domName SVGTransformable.transform */ | 854 /** @domName SVGTransformable.transform */ |
855 final SVGAnimatedTransformList transform; | 855 final AnimatedTransformList transform; |
856 } | 856 } |
857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
858 // for details. All rights reserved. Use of this source code is governed by a | 858 // for details. All rights reserved. Use of this source code is governed by a |
859 // BSD-style license that can be found in the LICENSE file. | 859 // BSD-style license that can be found in the LICENSE file. |
860 | 860 |
861 | 861 |
862 /// @domName SVGColor | 862 /// @domName SVGColor |
863 class SVGColor extends CSSValue native "*SVGColor" { | 863 class Color extends CSSValue native "*SVGColor" { |
864 | 864 |
865 static const int SVG_COLORTYPE_CURRENTCOLOR = 3; | 865 static const int SVG_COLORTYPE_CURRENTCOLOR = 3; |
866 | 866 |
867 static const int SVG_COLORTYPE_RGBCOLOR = 1; | 867 static const int SVG_COLORTYPE_RGBCOLOR = 1; |
868 | 868 |
869 static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; | 869 static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; |
870 | 870 |
871 static const int SVG_COLORTYPE_UNKNOWN = 0; | 871 static const int SVG_COLORTYPE_UNKNOWN = 0; |
872 | 872 |
873 /** @domName SVGColor.colorType */ | 873 /** @domName SVGColor.colorType */ |
(...skipping 10 matching lines...) Expand all Loading... |
884 | 884 |
885 /** @domName SVGColor.setRGBColorICCColor */ | 885 /** @domName SVGColor.setRGBColorICCColor */ |
886 void setRGBColorICCColor(String rgbColor, String iccColor) native; | 886 void setRGBColorICCColor(String rgbColor, String iccColor) native; |
887 } | 887 } |
888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
889 // for details. All rights reserved. Use of this source code is governed by a | 889 // for details. All rights reserved. Use of this source code is governed by a |
890 // BSD-style license that can be found in the LICENSE file. | 890 // BSD-style license that can be found in the LICENSE file. |
891 | 891 |
892 | 892 |
893 /// @domName SVGComponentTransferFunctionElement | 893 /// @domName SVGComponentTransferFunctionElement |
894 class SVGComponentTransferFunctionElement extends SVGElement native "*SVGCompone
ntTransferFunctionElement" { | 894 class ComponentTransferFunctionElement extends SvgElement native "*SVGComponentT
ransferFunctionElement" { |
895 | 895 |
896 static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; | 896 static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; |
897 | 897 |
898 static const int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; | 898 static const int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; |
899 | 899 |
900 static const int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; | 900 static const int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; |
901 | 901 |
902 static const int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; | 902 static const int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; |
903 | 903 |
904 static const int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; | 904 static const int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; |
905 | 905 |
906 static const int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; | 906 static const int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; |
907 | 907 |
908 /** @domName SVGComponentTransferFunctionElement.amplitude */ | 908 /** @domName SVGComponentTransferFunctionElement.amplitude */ |
909 final SVGAnimatedNumber amplitude; | 909 final AnimatedNumber amplitude; |
910 | 910 |
911 /** @domName SVGComponentTransferFunctionElement.exponent */ | 911 /** @domName SVGComponentTransferFunctionElement.exponent */ |
912 final SVGAnimatedNumber exponent; | 912 final AnimatedNumber exponent; |
913 | 913 |
914 /** @domName SVGComponentTransferFunctionElement.intercept */ | 914 /** @domName SVGComponentTransferFunctionElement.intercept */ |
915 final SVGAnimatedNumber intercept; | 915 final AnimatedNumber intercept; |
916 | 916 |
917 /** @domName SVGComponentTransferFunctionElement.offset */ | 917 /** @domName SVGComponentTransferFunctionElement.offset */ |
918 final SVGAnimatedNumber offset; | 918 final AnimatedNumber offset; |
919 | 919 |
920 /** @domName SVGComponentTransferFunctionElement.slope */ | 920 /** @domName SVGComponentTransferFunctionElement.slope */ |
921 final SVGAnimatedNumber slope; | 921 final AnimatedNumber slope; |
922 | 922 |
923 /** @domName SVGComponentTransferFunctionElement.tableValues */ | 923 /** @domName SVGComponentTransferFunctionElement.tableValues */ |
924 final SVGAnimatedNumberList tableValues; | 924 final AnimatedNumberList tableValues; |
925 | 925 |
926 /** @domName SVGComponentTransferFunctionElement.type */ | 926 /** @domName SVGComponentTransferFunctionElement.type */ |
927 final SVGAnimatedEnumeration type; | 927 final AnimatedEnumeration type; |
928 } | 928 } |
929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
930 // for details. All rights reserved. Use of this source code is governed by a | 930 // for details. All rights reserved. Use of this source code is governed by a |
931 // BSD-style license that can be found in the LICENSE file. | 931 // BSD-style license that can be found in the LICENSE file. |
932 | 932 |
933 | 933 |
934 /// @domName SVGCursorElement | 934 /// @domName SVGCursorElement |
935 class SVGCursorElement extends SVGElement implements SVGURIReference, SVGTests,
SVGExternalResourcesRequired native "*SVGCursorElement" { | 935 class CursorElement extends SvgElement implements UriReference, Tests, ExternalR
esourcesRequired native "*SVGCursorElement" { |
936 | 936 |
937 /** @domName SVGCursorElement.x */ | 937 /** @domName SVGCursorElement.x */ |
938 final SVGAnimatedLength x; | 938 final AnimatedLength x; |
939 | 939 |
940 /** @domName SVGCursorElement.y */ | 940 /** @domName SVGCursorElement.y */ |
941 final SVGAnimatedLength y; | 941 final AnimatedLength y; |
942 | 942 |
943 // From SVGExternalResourcesRequired | 943 // From SVGExternalResourcesRequired |
944 | 944 |
945 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 945 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
946 final SVGAnimatedBoolean externalResourcesRequired; | 946 final AnimatedBoolean externalResourcesRequired; |
947 | 947 |
948 // From SVGTests | 948 // From SVGTests |
949 | 949 |
950 /** @domName SVGTests.requiredExtensions */ | 950 /** @domName SVGTests.requiredExtensions */ |
951 final SVGStringList requiredExtensions; | 951 final StringList requiredExtensions; |
952 | 952 |
953 /** @domName SVGTests.requiredFeatures */ | 953 /** @domName SVGTests.requiredFeatures */ |
954 final SVGStringList requiredFeatures; | 954 final StringList requiredFeatures; |
955 | 955 |
956 /** @domName SVGTests.systemLanguage */ | 956 /** @domName SVGTests.systemLanguage */ |
957 final SVGStringList systemLanguage; | 957 final StringList systemLanguage; |
958 | 958 |
959 /** @domName SVGTests.hasExtension */ | 959 /** @domName SVGTests.hasExtension */ |
960 bool hasExtension(String extension) native; | 960 bool hasExtension(String extension) native; |
961 | 961 |
962 // From SVGURIReference | 962 // From SVGURIReference |
963 | 963 |
964 /** @domName SVGURIReference.href */ | 964 /** @domName SVGURIReference.href */ |
965 final SVGAnimatedString href; | 965 final AnimatedString href; |
966 } | 966 } |
967 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 967 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
968 // for details. All rights reserved. Use of this source code is governed by a | 968 // for details. All rights reserved. Use of this source code is governed by a |
969 // BSD-style license that can be found in the LICENSE file. | 969 // BSD-style license that can be found in the LICENSE file. |
970 | 970 |
971 | 971 |
972 /// @domName SVGDefsElement | 972 /// @domName SVGDefsElement |
973 class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SV
GTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGDefsElement"
{ | 973 class DefsElement extends SvgElement implements Transformable, Tests, Stylable,
ExternalResourcesRequired, LangSpace native "*SVGDefsElement" { |
974 | 974 |
975 // From SVGExternalResourcesRequired | 975 // From SVGExternalResourcesRequired |
976 | 976 |
977 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 977 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
978 final SVGAnimatedBoolean externalResourcesRequired; | 978 final AnimatedBoolean externalResourcesRequired; |
979 | 979 |
980 // From SVGLangSpace | 980 // From SVGLangSpace |
981 | 981 |
982 /** @domName SVGLangSpace.xmllang */ | 982 /** @domName SVGLangSpace.xmllang */ |
983 String xmllang; | 983 String xmllang; |
984 | 984 |
985 /** @domName SVGLangSpace.xmlspace */ | 985 /** @domName SVGLangSpace.xmlspace */ |
986 String xmlspace; | 986 String xmlspace; |
987 | 987 |
988 // From SVGLocatable | 988 // From SVGLocatable |
989 | 989 |
990 /** @domName SVGLocatable.farthestViewportElement */ | 990 /** @domName SVGLocatable.farthestViewportElement */ |
991 final SVGElement farthestViewportElement; | 991 final SvgElement farthestViewportElement; |
992 | 992 |
993 /** @domName SVGLocatable.nearestViewportElement */ | 993 /** @domName SVGLocatable.nearestViewportElement */ |
994 final SVGElement nearestViewportElement; | 994 final SvgElement nearestViewportElement; |
995 | 995 |
996 /** @domName SVGLocatable.getBBox */ | 996 /** @domName SVGLocatable.getBBox */ |
997 SVGRect getBBox() native; | 997 Rect getBBox() native; |
998 | 998 |
999 /** @domName SVGLocatable.getCTM */ | 999 /** @domName SVGLocatable.getCTM */ |
1000 SVGMatrix getCTM() native; | 1000 Matrix getCTM() native; |
1001 | 1001 |
1002 /** @domName SVGLocatable.getScreenCTM */ | 1002 /** @domName SVGLocatable.getScreenCTM */ |
1003 SVGMatrix getScreenCTM() native; | 1003 Matrix getScreenCTM() native; |
1004 | 1004 |
1005 /** @domName SVGLocatable.getTransformToElement */ | 1005 /** @domName SVGLocatable.getTransformToElement */ |
1006 SVGMatrix getTransformToElement(SVGElement element) native; | 1006 Matrix getTransformToElement(SvgElement element) native; |
1007 | 1007 |
1008 // From SVGStylable | 1008 // From SVGStylable |
1009 | 1009 |
1010 /** @domName SVGStylable.className */ | 1010 /** @domName SVGStylable.className */ |
1011 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1011 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1012 | 1012 |
1013 // Use implementation from Element. | 1013 // Use implementation from Element. |
1014 // final CSSStyleDeclaration style; | 1014 // final CSSStyleDeclaration style; |
1015 | 1015 |
1016 /** @domName SVGStylable.getPresentationAttribute */ | 1016 /** @domName SVGStylable.getPresentationAttribute */ |
1017 CSSValue getPresentationAttribute(String name) native; | 1017 CSSValue getPresentationAttribute(String name) native; |
1018 | 1018 |
1019 // From SVGTests | 1019 // From SVGTests |
1020 | 1020 |
1021 /** @domName SVGTests.requiredExtensions */ | 1021 /** @domName SVGTests.requiredExtensions */ |
1022 final SVGStringList requiredExtensions; | 1022 final StringList requiredExtensions; |
1023 | 1023 |
1024 /** @domName SVGTests.requiredFeatures */ | 1024 /** @domName SVGTests.requiredFeatures */ |
1025 final SVGStringList requiredFeatures; | 1025 final StringList requiredFeatures; |
1026 | 1026 |
1027 /** @domName SVGTests.systemLanguage */ | 1027 /** @domName SVGTests.systemLanguage */ |
1028 final SVGStringList systemLanguage; | 1028 final StringList systemLanguage; |
1029 | 1029 |
1030 /** @domName SVGTests.hasExtension */ | 1030 /** @domName SVGTests.hasExtension */ |
1031 bool hasExtension(String extension) native; | 1031 bool hasExtension(String extension) native; |
1032 | 1032 |
1033 // From SVGTransformable | 1033 // From SVGTransformable |
1034 | 1034 |
1035 /** @domName SVGTransformable.transform */ | 1035 /** @domName SVGTransformable.transform */ |
1036 final SVGAnimatedTransformList transform; | 1036 final AnimatedTransformList transform; |
1037 } | 1037 } |
1038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1039 // for details. All rights reserved. Use of this source code is governed by a | 1039 // for details. All rights reserved. Use of this source code is governed by a |
1040 // BSD-style license that can be found in the LICENSE file. | 1040 // BSD-style license that can be found in the LICENSE file. |
1041 | 1041 |
1042 | 1042 |
1043 /// @domName SVGDescElement | 1043 /// @domName SVGDescElement |
1044 class SVGDescElement extends SVGElement implements SVGLangSpace, SVGStylable nat
ive "*SVGDescElement" { | 1044 class DescElement extends SvgElement implements Stylable, LangSpace native "*SVG
DescElement" { |
1045 | 1045 |
1046 // From SVGLangSpace | 1046 // From SVGLangSpace |
1047 | 1047 |
1048 /** @domName SVGLangSpace.xmllang */ | 1048 /** @domName SVGLangSpace.xmllang */ |
1049 String xmllang; | 1049 String xmllang; |
1050 | 1050 |
1051 /** @domName SVGLangSpace.xmlspace */ | 1051 /** @domName SVGLangSpace.xmlspace */ |
1052 String xmlspace; | 1052 String xmlspace; |
1053 | 1053 |
1054 // From SVGStylable | 1054 // From SVGStylable |
1055 | 1055 |
1056 /** @domName SVGStylable.className */ | 1056 /** @domName SVGStylable.className */ |
1057 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1057 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1058 | 1058 |
1059 // Use implementation from Element. | 1059 // Use implementation from Element. |
1060 // final CSSStyleDeclaration style; | 1060 // final CSSStyleDeclaration style; |
1061 | 1061 |
1062 /** @domName SVGStylable.getPresentationAttribute */ | 1062 /** @domName SVGStylable.getPresentationAttribute */ |
1063 CSSValue getPresentationAttribute(String name) native; | 1063 CSSValue getPresentationAttribute(String name) native; |
1064 } | 1064 } |
1065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1066 // for details. All rights reserved. Use of this source code is governed by a | 1066 // for details. All rights reserved. Use of this source code is governed by a |
1067 // BSD-style license that can be found in the LICENSE file. | 1067 // BSD-style license that can be found in the LICENSE file. |
1068 | 1068 |
1069 | 1069 |
1070 /// @domName SVGDocument | |
1071 class SVGDocument extends Document native "*SVGDocument" { | |
1072 | |
1073 /** @domName SVGDocument.rootElement */ | |
1074 final SVGSVGElement rootElement; | |
1075 | |
1076 /** @domName SVGDocument.createEvent */ | |
1077 Event $dom_createEvent(String eventType) native "createEvent"; | |
1078 } | |
1079 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1080 // for details. All rights reserved. Use of this source code is governed by a | |
1081 // BSD-style license that can be found in the LICENSE file. | |
1082 | |
1083 | |
1084 class _AttributeClassSet extends CssClassSet { | |
1085 final Element _element; | |
1086 | |
1087 _AttributeClassSet(this._element); | |
1088 | |
1089 Set<String> readClasses() { | |
1090 var classname = _element.attributes['class']; | |
1091 | |
1092 Set<String> s = new Set<String>(); | |
1093 for (String name in classname.split(' ')) { | |
1094 String trimmed = name.trim(); | |
1095 if (!trimmed.isEmpty) { | |
1096 s.add(trimmed); | |
1097 } | |
1098 } | |
1099 return s; | |
1100 } | |
1101 | |
1102 void writeClasses(Set s) { | |
1103 _element.attributes['class'] = _formatSet(s); | |
1104 } | |
1105 } | |
1106 | |
1107 class SVGElement extends Element native "*SVGElement" { | |
1108 factory SVGElement.tag(String tag) => | |
1109 _SVGElementFactoryProvider.createSVGElement_tag(tag); | |
1110 factory SVGElement.svg(String svg) => | |
1111 _SVGElementFactoryProvider.createSVGElement_svg(svg); | |
1112 | |
1113 CssClassSet get classes { | |
1114 if (_cssClassSet == null) { | |
1115 _cssClassSet = new _AttributeClassSet(_ptr); | |
1116 } | |
1117 return _cssClassSet; | |
1118 } | |
1119 | |
1120 List<Element> get elements => new FilteredElementList(this); | |
1121 | |
1122 void set elements(Collection<Element> value) { | |
1123 final elements = this.elements; | |
1124 elements.clear(); | |
1125 elements.addAll(value); | |
1126 } | |
1127 | |
1128 String get outerHTML { | |
1129 final container = new Element.tag("div"); | |
1130 final SVGElement cloned = this.clone(true); | |
1131 container.elements.add(cloned); | |
1132 return container.innerHTML; | |
1133 } | |
1134 | |
1135 String get innerHTML { | |
1136 final container = new Element.tag("div"); | |
1137 final SVGElement cloned = this.clone(true); | |
1138 container.elements.addAll(cloned.elements); | |
1139 return container.innerHTML; | |
1140 } | |
1141 | |
1142 void set innerHTML(String svg) { | |
1143 final container = new Element.tag("div"); | |
1144 // Wrap the SVG string in <svg> so that SVGElements are created, rather than | |
1145 // HTMLElements. | |
1146 container.innerHTML = '<svg version="1.1">$svg</svg>'; | |
1147 this.elements = container.elements[0].elements; | |
1148 } | |
1149 | |
1150 | |
1151 // Shadowing definition. | |
1152 /** @domName SVGElement.id */ | |
1153 String get id => JS("String", "#.id", this); | |
1154 | |
1155 /** @domName SVGElement.id */ | |
1156 void set id(String value) { | |
1157 JS("void", "#.id = #", this, value); | |
1158 } | |
1159 | |
1160 /** @domName SVGElement.ownerSVGElement */ | |
1161 final SVGSVGElement ownerSVGElement; | |
1162 | |
1163 /** @domName SVGElement.viewportElement */ | |
1164 final SVGElement viewportElement; | |
1165 | |
1166 /** @domName SVGElement.xmlbase */ | |
1167 String xmlbase; | |
1168 | |
1169 } | |
1170 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1171 // for details. All rights reserved. Use of this source code is governed by a | |
1172 // BSD-style license that can be found in the LICENSE file. | |
1173 | |
1174 | |
1175 /// @domName SVGElementInstance | 1070 /// @domName SVGElementInstance |
1176 class SVGElementInstance extends EventTarget native "*SVGElementInstance" { | 1071 class ElementInstance extends EventTarget native "*SVGElementInstance" { |
1177 | 1072 |
1178 /** | 1073 /** |
1179 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent | 1074 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
1180 */ | 1075 */ |
1181 SVGElementInstanceEvents get on => | 1076 ElementInstanceEvents get on => |
1182 new SVGElementInstanceEvents(this); | 1077 new ElementInstanceEvents(this); |
1183 | 1078 |
1184 /** @domName SVGElementInstance.childNodes */ | 1079 /** @domName SVGElementInstance.childNodes */ |
1185 final List<SVGElementInstance> childNodes; | 1080 final List<ElementInstance> childNodes; |
1186 | 1081 |
1187 /** @domName SVGElementInstance.correspondingElement */ | 1082 /** @domName SVGElementInstance.correspondingElement */ |
1188 final SVGElement correspondingElement; | 1083 final SvgElement correspondingElement; |
1189 | 1084 |
1190 /** @domName SVGElementInstance.correspondingUseElement */ | 1085 /** @domName SVGElementInstance.correspondingUseElement */ |
1191 final SVGUseElement correspondingUseElement; | 1086 final UseElement correspondingUseElement; |
1192 | 1087 |
1193 /** @domName SVGElementInstance.firstChild */ | 1088 /** @domName SVGElementInstance.firstChild */ |
1194 final SVGElementInstance firstChild; | 1089 final ElementInstance firstChild; |
1195 | 1090 |
1196 /** @domName SVGElementInstance.lastChild */ | 1091 /** @domName SVGElementInstance.lastChild */ |
1197 final SVGElementInstance lastChild; | 1092 final ElementInstance lastChild; |
1198 | 1093 |
1199 /** @domName SVGElementInstance.nextSibling */ | 1094 /** @domName SVGElementInstance.nextSibling */ |
1200 final SVGElementInstance nextSibling; | 1095 final ElementInstance nextSibling; |
1201 | 1096 |
1202 /** @domName SVGElementInstance.parentNode */ | 1097 /** @domName SVGElementInstance.parentNode */ |
1203 final SVGElementInstance parentNode; | 1098 final ElementInstance parentNode; |
1204 | 1099 |
1205 /** @domName SVGElementInstance.previousSibling */ | 1100 /** @domName SVGElementInstance.previousSibling */ |
1206 final SVGElementInstance previousSibling; | 1101 final ElementInstance previousSibling; |
1207 } | 1102 } |
1208 | 1103 |
1209 class SVGElementInstanceEvents extends Events { | 1104 class ElementInstanceEvents extends Events { |
1210 SVGElementInstanceEvents(EventTarget _ptr) : super(_ptr); | 1105 ElementInstanceEvents(EventTarget _ptr) : super(_ptr); |
1211 | 1106 |
1212 EventListenerList get abort => this['abort']; | 1107 EventListenerList get abort => this['abort']; |
1213 | 1108 |
1214 EventListenerList get beforeCopy => this['beforecopy']; | 1109 EventListenerList get beforeCopy => this['beforecopy']; |
1215 | 1110 |
1216 EventListenerList get beforeCut => this['beforecut']; | 1111 EventListenerList get beforeCut => this['beforecut']; |
1217 | 1112 |
1218 EventListenerList get beforePaste => this['beforepaste']; | 1113 EventListenerList get beforePaste => this['beforepaste']; |
1219 | 1114 |
1220 EventListenerList get blur => this['blur']; | 1115 EventListenerList get blur => this['blur']; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 EventListenerList get submit => this['submit']; | 1183 EventListenerList get submit => this['submit']; |
1289 | 1184 |
1290 EventListenerList get unload => this['unload']; | 1185 EventListenerList get unload => this['unload']; |
1291 } | 1186 } |
1292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1187 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1293 // for details. All rights reserved. Use of this source code is governed by a | 1188 // for details. All rights reserved. Use of this source code is governed by a |
1294 // BSD-style license that can be found in the LICENSE file. | 1189 // BSD-style license that can be found in the LICENSE file. |
1295 | 1190 |
1296 | 1191 |
1297 /// @domName SVGEllipseElement | 1192 /// @domName SVGEllipseElement |
1298 class SVGEllipseElement extends SVGElement implements SVGLangSpace, SVGStylable,
SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGEllipseEle
ment" { | 1193 class EllipseElement extends SvgElement implements Transformable, Tests, Stylabl
e, ExternalResourcesRequired, LangSpace native "*SVGEllipseElement" { |
1299 | 1194 |
1300 /** @domName SVGEllipseElement.cx */ | 1195 /** @domName SVGEllipseElement.cx */ |
1301 final SVGAnimatedLength cx; | 1196 final AnimatedLength cx; |
1302 | 1197 |
1303 /** @domName SVGEllipseElement.cy */ | 1198 /** @domName SVGEllipseElement.cy */ |
1304 final SVGAnimatedLength cy; | 1199 final AnimatedLength cy; |
1305 | 1200 |
1306 /** @domName SVGEllipseElement.rx */ | 1201 /** @domName SVGEllipseElement.rx */ |
1307 final SVGAnimatedLength rx; | 1202 final AnimatedLength rx; |
1308 | 1203 |
1309 /** @domName SVGEllipseElement.ry */ | 1204 /** @domName SVGEllipseElement.ry */ |
1310 final SVGAnimatedLength ry; | 1205 final AnimatedLength ry; |
1311 | 1206 |
1312 // From SVGExternalResourcesRequired | 1207 // From SVGExternalResourcesRequired |
1313 | 1208 |
1314 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 1209 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
1315 final SVGAnimatedBoolean externalResourcesRequired; | 1210 final AnimatedBoolean externalResourcesRequired; |
1316 | 1211 |
1317 // From SVGLangSpace | 1212 // From SVGLangSpace |
1318 | 1213 |
1319 /** @domName SVGLangSpace.xmllang */ | 1214 /** @domName SVGLangSpace.xmllang */ |
1320 String xmllang; | 1215 String xmllang; |
1321 | 1216 |
1322 /** @domName SVGLangSpace.xmlspace */ | 1217 /** @domName SVGLangSpace.xmlspace */ |
1323 String xmlspace; | 1218 String xmlspace; |
1324 | 1219 |
1325 // From SVGLocatable | 1220 // From SVGLocatable |
1326 | 1221 |
1327 /** @domName SVGLocatable.farthestViewportElement */ | 1222 /** @domName SVGLocatable.farthestViewportElement */ |
1328 final SVGElement farthestViewportElement; | 1223 final SvgElement farthestViewportElement; |
1329 | 1224 |
1330 /** @domName SVGLocatable.nearestViewportElement */ | 1225 /** @domName SVGLocatable.nearestViewportElement */ |
1331 final SVGElement nearestViewportElement; | 1226 final SvgElement nearestViewportElement; |
1332 | 1227 |
1333 /** @domName SVGLocatable.getBBox */ | 1228 /** @domName SVGLocatable.getBBox */ |
1334 SVGRect getBBox() native; | 1229 Rect getBBox() native; |
1335 | 1230 |
1336 /** @domName SVGLocatable.getCTM */ | 1231 /** @domName SVGLocatable.getCTM */ |
1337 SVGMatrix getCTM() native; | 1232 Matrix getCTM() native; |
1338 | 1233 |
1339 /** @domName SVGLocatable.getScreenCTM */ | 1234 /** @domName SVGLocatable.getScreenCTM */ |
1340 SVGMatrix getScreenCTM() native; | 1235 Matrix getScreenCTM() native; |
1341 | 1236 |
1342 /** @domName SVGLocatable.getTransformToElement */ | 1237 /** @domName SVGLocatable.getTransformToElement */ |
1343 SVGMatrix getTransformToElement(SVGElement element) native; | 1238 Matrix getTransformToElement(SvgElement element) native; |
1344 | 1239 |
1345 // From SVGStylable | 1240 // From SVGStylable |
1346 | 1241 |
1347 /** @domName SVGStylable.className */ | 1242 /** @domName SVGStylable.className */ |
1348 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1243 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1349 | 1244 |
1350 // Use implementation from Element. | 1245 // Use implementation from Element. |
1351 // final CSSStyleDeclaration style; | 1246 // final CSSStyleDeclaration style; |
1352 | 1247 |
1353 /** @domName SVGStylable.getPresentationAttribute */ | 1248 /** @domName SVGStylable.getPresentationAttribute */ |
1354 CSSValue getPresentationAttribute(String name) native; | 1249 CSSValue getPresentationAttribute(String name) native; |
1355 | 1250 |
1356 // From SVGTests | 1251 // From SVGTests |
1357 | 1252 |
1358 /** @domName SVGTests.requiredExtensions */ | 1253 /** @domName SVGTests.requiredExtensions */ |
1359 final SVGStringList requiredExtensions; | 1254 final StringList requiredExtensions; |
1360 | 1255 |
1361 /** @domName SVGTests.requiredFeatures */ | 1256 /** @domName SVGTests.requiredFeatures */ |
1362 final SVGStringList requiredFeatures; | 1257 final StringList requiredFeatures; |
1363 | 1258 |
1364 /** @domName SVGTests.systemLanguage */ | 1259 /** @domName SVGTests.systemLanguage */ |
1365 final SVGStringList systemLanguage; | 1260 final StringList systemLanguage; |
1366 | 1261 |
1367 /** @domName SVGTests.hasExtension */ | 1262 /** @domName SVGTests.hasExtension */ |
1368 bool hasExtension(String extension) native; | 1263 bool hasExtension(String extension) native; |
1369 | 1264 |
1370 // From SVGTransformable | 1265 // From SVGTransformable |
1371 | 1266 |
1372 /** @domName SVGTransformable.transform */ | 1267 /** @domName SVGTransformable.transform */ |
1373 final SVGAnimatedTransformList transform; | 1268 final AnimatedTransformList transform; |
1374 } | 1269 } |
1375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1376 // for details. All rights reserved. Use of this source code is governed by a | 1271 // for details. All rights reserved. Use of this source code is governed by a |
1377 // BSD-style license that can be found in the LICENSE file. | 1272 // BSD-style license that can be found in the LICENSE file. |
1378 | 1273 |
1379 | 1274 |
1380 /// @domName SVGException | 1275 /// @domName SVGException |
1381 class SVGException native "*SVGException" { | 1276 class Exception native "*SVGException" { |
1382 | 1277 |
1383 static const int SVG_INVALID_VALUE_ERR = 1; | 1278 static const int SVG_INVALID_VALUE_ERR = 1; |
1384 | 1279 |
1385 static const int SVG_MATRIX_NOT_INVERTABLE = 2; | 1280 static const int SVG_MATRIX_NOT_INVERTABLE = 2; |
1386 | 1281 |
1387 static const int SVG_WRONG_TYPE_ERR = 0; | 1282 static const int SVG_WRONG_TYPE_ERR = 0; |
1388 | 1283 |
1389 /** @domName SVGException.code */ | 1284 /** @domName SVGException.code */ |
1390 final int code; | 1285 final int code; |
1391 | 1286 |
1392 /** @domName SVGException.message */ | 1287 /** @domName SVGException.message */ |
1393 final String message; | 1288 final String message; |
1394 | 1289 |
1395 /** @domName SVGException.name */ | 1290 /** @domName SVGException.name */ |
1396 final String name; | 1291 final String name; |
1397 | 1292 |
1398 /** @domName SVGException.toString */ | 1293 /** @domName SVGException.toString */ |
1399 String toString() native; | 1294 String toString() native; |
1400 } | 1295 } |
1401 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1296 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1402 // for details. All rights reserved. Use of this source code is governed by a | 1297 // for details. All rights reserved. Use of this source code is governed by a |
1403 // BSD-style license that can be found in the LICENSE file. | 1298 // BSD-style license that can be found in the LICENSE file. |
1404 | 1299 |
1405 | 1300 |
1406 /// @domName SVGExternalResourcesRequired | 1301 /// @domName SVGExternalResourcesRequired |
1407 abstract class SVGExternalResourcesRequired { | 1302 abstract class ExternalResourcesRequired { |
1408 | 1303 |
1409 SVGAnimatedBoolean externalResourcesRequired; | 1304 AnimatedBoolean externalResourcesRequired; |
1410 } | 1305 } |
1411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1306 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1412 // for details. All rights reserved. Use of this source code is governed by a | 1307 // for details. All rights reserved. Use of this source code is governed by a |
1413 // BSD-style license that can be found in the LICENSE file. | 1308 // BSD-style license that can be found in the LICENSE file. |
1414 | 1309 |
1415 | 1310 |
1416 /// @domName SVGFEBlendElement | 1311 /// @domName SVGFEBlendElement |
1417 class SVGFEBlendElement extends SVGElement implements SVGFilterPrimitiveStandard
Attributes native "*SVGFEBlendElement" { | 1312 class FeBlendElement extends SvgElement implements FilterPrimitiveStandardAttrib
utes native "*SVGFEBlendElement" { |
1418 | 1313 |
1419 static const int SVG_FEBLEND_MODE_DARKEN = 4; | 1314 static const int SVG_FEBLEND_MODE_DARKEN = 4; |
1420 | 1315 |
1421 static const int SVG_FEBLEND_MODE_LIGHTEN = 5; | 1316 static const int SVG_FEBLEND_MODE_LIGHTEN = 5; |
1422 | 1317 |
1423 static const int SVG_FEBLEND_MODE_MULTIPLY = 2; | 1318 static const int SVG_FEBLEND_MODE_MULTIPLY = 2; |
1424 | 1319 |
1425 static const int SVG_FEBLEND_MODE_NORMAL = 1; | 1320 static const int SVG_FEBLEND_MODE_NORMAL = 1; |
1426 | 1321 |
1427 static const int SVG_FEBLEND_MODE_SCREEN = 3; | 1322 static const int SVG_FEBLEND_MODE_SCREEN = 3; |
1428 | 1323 |
1429 static const int SVG_FEBLEND_MODE_UNKNOWN = 0; | 1324 static const int SVG_FEBLEND_MODE_UNKNOWN = 0; |
1430 | 1325 |
1431 /** @domName SVGFEBlendElement.in1 */ | 1326 /** @domName SVGFEBlendElement.in1 */ |
1432 final SVGAnimatedString in1; | 1327 final AnimatedString in1; |
1433 | 1328 |
1434 /** @domName SVGFEBlendElement.in2 */ | 1329 /** @domName SVGFEBlendElement.in2 */ |
1435 final SVGAnimatedString in2; | 1330 final AnimatedString in2; |
1436 | 1331 |
1437 /** @domName SVGFEBlendElement.mode */ | 1332 /** @domName SVGFEBlendElement.mode */ |
1438 final SVGAnimatedEnumeration mode; | 1333 final AnimatedEnumeration mode; |
1439 | 1334 |
1440 // From SVGFilterPrimitiveStandardAttributes | 1335 // From SVGFilterPrimitiveStandardAttributes |
1441 | 1336 |
1442 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1337 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1443 final SVGAnimatedLength height; | 1338 final AnimatedLength height; |
1444 | 1339 |
1445 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1340 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1446 final SVGAnimatedString result; | 1341 final AnimatedString result; |
1447 | 1342 |
1448 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1343 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1449 final SVGAnimatedLength width; | 1344 final AnimatedLength width; |
1450 | 1345 |
1451 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1346 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1452 final SVGAnimatedLength x; | 1347 final AnimatedLength x; |
1453 | 1348 |
1454 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1349 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1455 final SVGAnimatedLength y; | 1350 final AnimatedLength y; |
1456 | 1351 |
1457 // From SVGStylable | 1352 // From SVGStylable |
1458 | 1353 |
1459 /** @domName SVGStylable.className */ | 1354 /** @domName SVGStylable.className */ |
1460 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1355 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1461 | 1356 |
1462 // Use implementation from Element. | 1357 // Use implementation from Element. |
1463 // final CSSStyleDeclaration style; | 1358 // final CSSStyleDeclaration style; |
1464 | 1359 |
1465 /** @domName SVGStylable.getPresentationAttribute */ | 1360 /** @domName SVGStylable.getPresentationAttribute */ |
1466 CSSValue getPresentationAttribute(String name) native; | 1361 CSSValue getPresentationAttribute(String name) native; |
1467 } | 1362 } |
1468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1469 // for details. All rights reserved. Use of this source code is governed by a | 1364 // for details. All rights reserved. Use of this source code is governed by a |
1470 // BSD-style license that can be found in the LICENSE file. | 1365 // BSD-style license that can be found in the LICENSE file. |
1471 | 1366 |
1472 | 1367 |
1473 /// @domName SVGFEColorMatrixElement | 1368 /// @domName SVGFEColorMatrixElement |
1474 class SVGFEColorMatrixElement extends SVGElement implements SVGFilterPrimitiveSt
andardAttributes native "*SVGFEColorMatrixElement" { | 1369 class FeColorMatrixElement extends SvgElement implements FilterPrimitiveStandard
Attributes native "*SVGFEColorMatrixElement" { |
1475 | 1370 |
1476 static const int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; | 1371 static const int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; |
1477 | 1372 |
1478 static const int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; | 1373 static const int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; |
1479 | 1374 |
1480 static const int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; | 1375 static const int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; |
1481 | 1376 |
1482 static const int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; | 1377 static const int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; |
1483 | 1378 |
1484 static const int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; | 1379 static const int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; |
1485 | 1380 |
1486 /** @domName SVGFEColorMatrixElement.in1 */ | 1381 /** @domName SVGFEColorMatrixElement.in1 */ |
1487 final SVGAnimatedString in1; | 1382 final AnimatedString in1; |
1488 | 1383 |
1489 /** @domName SVGFEColorMatrixElement.type */ | 1384 /** @domName SVGFEColorMatrixElement.type */ |
1490 final SVGAnimatedEnumeration type; | 1385 final AnimatedEnumeration type; |
1491 | 1386 |
1492 /** @domName SVGFEColorMatrixElement.values */ | 1387 /** @domName SVGFEColorMatrixElement.values */ |
1493 final SVGAnimatedNumberList values; | 1388 final AnimatedNumberList values; |
1494 | 1389 |
1495 // From SVGFilterPrimitiveStandardAttributes | 1390 // From SVGFilterPrimitiveStandardAttributes |
1496 | 1391 |
1497 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1392 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1498 final SVGAnimatedLength height; | 1393 final AnimatedLength height; |
1499 | 1394 |
1500 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1395 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1501 final SVGAnimatedString result; | 1396 final AnimatedString result; |
1502 | 1397 |
1503 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1398 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1504 final SVGAnimatedLength width; | 1399 final AnimatedLength width; |
1505 | 1400 |
1506 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1401 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1507 final SVGAnimatedLength x; | 1402 final AnimatedLength x; |
1508 | 1403 |
1509 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1404 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1510 final SVGAnimatedLength y; | 1405 final AnimatedLength y; |
1511 | 1406 |
1512 // From SVGStylable | 1407 // From SVGStylable |
1513 | 1408 |
1514 /** @domName SVGStylable.className */ | 1409 /** @domName SVGStylable.className */ |
1515 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1410 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1516 | 1411 |
1517 // Use implementation from Element. | 1412 // Use implementation from Element. |
1518 // final CSSStyleDeclaration style; | 1413 // final CSSStyleDeclaration style; |
1519 | 1414 |
1520 /** @domName SVGStylable.getPresentationAttribute */ | 1415 /** @domName SVGStylable.getPresentationAttribute */ |
1521 CSSValue getPresentationAttribute(String name) native; | 1416 CSSValue getPresentationAttribute(String name) native; |
1522 } | 1417 } |
1523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1418 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1524 // for details. All rights reserved. Use of this source code is governed by a | 1419 // for details. All rights reserved. Use of this source code is governed by a |
1525 // BSD-style license that can be found in the LICENSE file. | 1420 // BSD-style license that can be found in the LICENSE file. |
1526 | 1421 |
1527 | 1422 |
1528 /// @domName SVGFEComponentTransferElement | 1423 /// @domName SVGFEComponentTransferElement |
1529 class SVGFEComponentTransferElement extends SVGElement implements SVGFilterPrimi
tiveStandardAttributes native "*SVGFEComponentTransferElement" { | 1424 class FeComponentTransferElement extends SvgElement implements FilterPrimitiveSt
andardAttributes native "*SVGFEComponentTransferElement" { |
1530 | 1425 |
1531 /** @domName SVGFEComponentTransferElement.in1 */ | 1426 /** @domName SVGFEComponentTransferElement.in1 */ |
1532 final SVGAnimatedString in1; | 1427 final AnimatedString in1; |
1533 | 1428 |
1534 // From SVGFilterPrimitiveStandardAttributes | 1429 // From SVGFilterPrimitiveStandardAttributes |
1535 | 1430 |
1536 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1431 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1537 final SVGAnimatedLength height; | 1432 final AnimatedLength height; |
1538 | 1433 |
1539 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1434 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1540 final SVGAnimatedString result; | 1435 final AnimatedString result; |
1541 | 1436 |
1542 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1437 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1543 final SVGAnimatedLength width; | 1438 final AnimatedLength width; |
1544 | 1439 |
1545 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1440 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1546 final SVGAnimatedLength x; | 1441 final AnimatedLength x; |
1547 | 1442 |
1548 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1443 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1549 final SVGAnimatedLength y; | 1444 final AnimatedLength y; |
1550 | 1445 |
1551 // From SVGStylable | 1446 // From SVGStylable |
1552 | 1447 |
1553 /** @domName SVGStylable.className */ | 1448 /** @domName SVGStylable.className */ |
1554 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1449 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1555 | 1450 |
1556 // Use implementation from Element. | 1451 // Use implementation from Element. |
1557 // final CSSStyleDeclaration style; | 1452 // final CSSStyleDeclaration style; |
1558 | 1453 |
1559 /** @domName SVGStylable.getPresentationAttribute */ | 1454 /** @domName SVGStylable.getPresentationAttribute */ |
1560 CSSValue getPresentationAttribute(String name) native; | 1455 CSSValue getPresentationAttribute(String name) native; |
1561 } | 1456 } |
1562 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1563 // for details. All rights reserved. Use of this source code is governed by a | 1458 // for details. All rights reserved. Use of this source code is governed by a |
1564 // BSD-style license that can be found in the LICENSE file. | 1459 // BSD-style license that can be found in the LICENSE file. |
1565 | 1460 |
1566 | 1461 |
1567 /// @domName SVGFECompositeElement | 1462 /// @domName SVGFECompositeElement |
1568 class SVGFECompositeElement extends SVGElement implements SVGFilterPrimitiveStan
dardAttributes native "*SVGFECompositeElement" { | 1463 class FeCompositeElement extends SvgElement implements FilterPrimitiveStandardAt
tributes native "*SVGFECompositeElement" { |
1569 | 1464 |
1570 static const int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; | 1465 static const int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; |
1571 | 1466 |
1572 static const int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; | 1467 static const int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; |
1573 | 1468 |
1574 static const int SVG_FECOMPOSITE_OPERATOR_IN = 2; | 1469 static const int SVG_FECOMPOSITE_OPERATOR_IN = 2; |
1575 | 1470 |
1576 static const int SVG_FECOMPOSITE_OPERATOR_OUT = 3; | 1471 static const int SVG_FECOMPOSITE_OPERATOR_OUT = 3; |
1577 | 1472 |
1578 static const int SVG_FECOMPOSITE_OPERATOR_OVER = 1; | 1473 static const int SVG_FECOMPOSITE_OPERATOR_OVER = 1; |
1579 | 1474 |
1580 static const int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; | 1475 static const int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; |
1581 | 1476 |
1582 static const int SVG_FECOMPOSITE_OPERATOR_XOR = 5; | 1477 static const int SVG_FECOMPOSITE_OPERATOR_XOR = 5; |
1583 | 1478 |
1584 /** @domName SVGFECompositeElement.in1 */ | 1479 /** @domName SVGFECompositeElement.in1 */ |
1585 final SVGAnimatedString in1; | 1480 final AnimatedString in1; |
1586 | 1481 |
1587 /** @domName SVGFECompositeElement.in2 */ | 1482 /** @domName SVGFECompositeElement.in2 */ |
1588 final SVGAnimatedString in2; | 1483 final AnimatedString in2; |
1589 | 1484 |
1590 /** @domName SVGFECompositeElement.k1 */ | 1485 /** @domName SVGFECompositeElement.k1 */ |
1591 final SVGAnimatedNumber k1; | 1486 final AnimatedNumber k1; |
1592 | 1487 |
1593 /** @domName SVGFECompositeElement.k2 */ | 1488 /** @domName SVGFECompositeElement.k2 */ |
1594 final SVGAnimatedNumber k2; | 1489 final AnimatedNumber k2; |
1595 | 1490 |
1596 /** @domName SVGFECompositeElement.k3 */ | 1491 /** @domName SVGFECompositeElement.k3 */ |
1597 final SVGAnimatedNumber k3; | 1492 final AnimatedNumber k3; |
1598 | 1493 |
1599 /** @domName SVGFECompositeElement.k4 */ | 1494 /** @domName SVGFECompositeElement.k4 */ |
1600 final SVGAnimatedNumber k4; | 1495 final AnimatedNumber k4; |
1601 | 1496 |
1602 /** @domName SVGFECompositeElement.operator */ | 1497 /** @domName SVGFECompositeElement.operator */ |
1603 final SVGAnimatedEnumeration operator; | 1498 final AnimatedEnumeration operator; |
1604 | 1499 |
1605 // From SVGFilterPrimitiveStandardAttributes | 1500 // From SVGFilterPrimitiveStandardAttributes |
1606 | 1501 |
1607 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1502 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1608 final SVGAnimatedLength height; | 1503 final AnimatedLength height; |
1609 | 1504 |
1610 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1505 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1611 final SVGAnimatedString result; | 1506 final AnimatedString result; |
1612 | 1507 |
1613 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1508 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1614 final SVGAnimatedLength width; | 1509 final AnimatedLength width; |
1615 | 1510 |
1616 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1511 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1617 final SVGAnimatedLength x; | 1512 final AnimatedLength x; |
1618 | 1513 |
1619 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1514 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1620 final SVGAnimatedLength y; | 1515 final AnimatedLength y; |
1621 | 1516 |
1622 // From SVGStylable | 1517 // From SVGStylable |
1623 | 1518 |
1624 /** @domName SVGStylable.className */ | 1519 /** @domName SVGStylable.className */ |
1625 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1520 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1626 | 1521 |
1627 // Use implementation from Element. | 1522 // Use implementation from Element. |
1628 // final CSSStyleDeclaration style; | 1523 // final CSSStyleDeclaration style; |
1629 | 1524 |
1630 /** @domName SVGStylable.getPresentationAttribute */ | 1525 /** @domName SVGStylable.getPresentationAttribute */ |
1631 CSSValue getPresentationAttribute(String name) native; | 1526 CSSValue getPresentationAttribute(String name) native; |
1632 } | 1527 } |
1633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1634 // for details. All rights reserved. Use of this source code is governed by a | 1529 // for details. All rights reserved. Use of this source code is governed by a |
1635 // BSD-style license that can be found in the LICENSE file. | 1530 // BSD-style license that can be found in the LICENSE file. |
1636 | 1531 |
1637 | 1532 |
1638 /// @domName SVGFEConvolveMatrixElement | 1533 /// @domName SVGFEConvolveMatrixElement |
1639 class SVGFEConvolveMatrixElement extends SVGElement implements SVGFilterPrimitiv
eStandardAttributes native "*SVGFEConvolveMatrixElement" { | 1534 class FeConvolveMatrixElement extends SvgElement implements FilterPrimitiveStand
ardAttributes native "*SVGFEConvolveMatrixElement" { |
1640 | 1535 |
1641 static const int SVG_EDGEMODE_DUPLICATE = 1; | 1536 static const int SVG_EDGEMODE_DUPLICATE = 1; |
1642 | 1537 |
1643 static const int SVG_EDGEMODE_NONE = 3; | 1538 static const int SVG_EDGEMODE_NONE = 3; |
1644 | 1539 |
1645 static const int SVG_EDGEMODE_UNKNOWN = 0; | 1540 static const int SVG_EDGEMODE_UNKNOWN = 0; |
1646 | 1541 |
1647 static const int SVG_EDGEMODE_WRAP = 2; | 1542 static const int SVG_EDGEMODE_WRAP = 2; |
1648 | 1543 |
1649 /** @domName SVGFEConvolveMatrixElement.bias */ | 1544 /** @domName SVGFEConvolveMatrixElement.bias */ |
1650 final SVGAnimatedNumber bias; | 1545 final AnimatedNumber bias; |
1651 | 1546 |
1652 /** @domName SVGFEConvolveMatrixElement.divisor */ | 1547 /** @domName SVGFEConvolveMatrixElement.divisor */ |
1653 final SVGAnimatedNumber divisor; | 1548 final AnimatedNumber divisor; |
1654 | 1549 |
1655 /** @domName SVGFEConvolveMatrixElement.edgeMode */ | 1550 /** @domName SVGFEConvolveMatrixElement.edgeMode */ |
1656 final SVGAnimatedEnumeration edgeMode; | 1551 final AnimatedEnumeration edgeMode; |
1657 | 1552 |
1658 /** @domName SVGFEConvolveMatrixElement.in1 */ | 1553 /** @domName SVGFEConvolveMatrixElement.in1 */ |
1659 final SVGAnimatedString in1; | 1554 final AnimatedString in1; |
1660 | 1555 |
1661 /** @domName SVGFEConvolveMatrixElement.kernelMatrix */ | 1556 /** @domName SVGFEConvolveMatrixElement.kernelMatrix */ |
1662 final SVGAnimatedNumberList kernelMatrix; | 1557 final AnimatedNumberList kernelMatrix; |
1663 | 1558 |
1664 /** @domName SVGFEConvolveMatrixElement.kernelUnitLengthX */ | 1559 /** @domName SVGFEConvolveMatrixElement.kernelUnitLengthX */ |
1665 final SVGAnimatedNumber kernelUnitLengthX; | 1560 final AnimatedNumber kernelUnitLengthX; |
1666 | 1561 |
1667 /** @domName SVGFEConvolveMatrixElement.kernelUnitLengthY */ | 1562 /** @domName SVGFEConvolveMatrixElement.kernelUnitLengthY */ |
1668 final SVGAnimatedNumber kernelUnitLengthY; | 1563 final AnimatedNumber kernelUnitLengthY; |
1669 | 1564 |
1670 /** @domName SVGFEConvolveMatrixElement.orderX */ | 1565 /** @domName SVGFEConvolveMatrixElement.orderX */ |
1671 final SVGAnimatedInteger orderX; | 1566 final AnimatedInteger orderX; |
1672 | 1567 |
1673 /** @domName SVGFEConvolveMatrixElement.orderY */ | 1568 /** @domName SVGFEConvolveMatrixElement.orderY */ |
1674 final SVGAnimatedInteger orderY; | 1569 final AnimatedInteger orderY; |
1675 | 1570 |
1676 /** @domName SVGFEConvolveMatrixElement.preserveAlpha */ | 1571 /** @domName SVGFEConvolveMatrixElement.preserveAlpha */ |
1677 final SVGAnimatedBoolean preserveAlpha; | 1572 final AnimatedBoolean preserveAlpha; |
1678 | 1573 |
1679 /** @domName SVGFEConvolveMatrixElement.targetX */ | 1574 /** @domName SVGFEConvolveMatrixElement.targetX */ |
1680 final SVGAnimatedInteger targetX; | 1575 final AnimatedInteger targetX; |
1681 | 1576 |
1682 /** @domName SVGFEConvolveMatrixElement.targetY */ | 1577 /** @domName SVGFEConvolveMatrixElement.targetY */ |
1683 final SVGAnimatedInteger targetY; | 1578 final AnimatedInteger targetY; |
1684 | 1579 |
1685 // From SVGFilterPrimitiveStandardAttributes | 1580 // From SVGFilterPrimitiveStandardAttributes |
1686 | 1581 |
1687 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1582 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1688 final SVGAnimatedLength height; | 1583 final AnimatedLength height; |
1689 | 1584 |
1690 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1585 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1691 final SVGAnimatedString result; | 1586 final AnimatedString result; |
1692 | 1587 |
1693 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1588 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1694 final SVGAnimatedLength width; | 1589 final AnimatedLength width; |
1695 | 1590 |
1696 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1591 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1697 final SVGAnimatedLength x; | 1592 final AnimatedLength x; |
1698 | 1593 |
1699 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1594 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1700 final SVGAnimatedLength y; | 1595 final AnimatedLength y; |
1701 | 1596 |
1702 // From SVGStylable | 1597 // From SVGStylable |
1703 | 1598 |
1704 /** @domName SVGStylable.className */ | 1599 /** @domName SVGStylable.className */ |
1705 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1600 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1706 | 1601 |
1707 // Use implementation from Element. | 1602 // Use implementation from Element. |
1708 // final CSSStyleDeclaration style; | 1603 // final CSSStyleDeclaration style; |
1709 | 1604 |
1710 /** @domName SVGStylable.getPresentationAttribute */ | 1605 /** @domName SVGStylable.getPresentationAttribute */ |
1711 CSSValue getPresentationAttribute(String name) native; | 1606 CSSValue getPresentationAttribute(String name) native; |
1712 } | 1607 } |
1713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1714 // for details. All rights reserved. Use of this source code is governed by a | 1609 // for details. All rights reserved. Use of this source code is governed by a |
1715 // BSD-style license that can be found in the LICENSE file. | 1610 // BSD-style license that can be found in the LICENSE file. |
1716 | 1611 |
1717 | 1612 |
1718 /// @domName SVGFEDiffuseLightingElement | 1613 /// @domName SVGFEDiffuseLightingElement |
1719 class SVGFEDiffuseLightingElement extends SVGElement implements SVGFilterPrimiti
veStandardAttributes native "*SVGFEDiffuseLightingElement" { | 1614 class FeDiffuseLightingElement extends SvgElement implements FilterPrimitiveStan
dardAttributes native "*SVGFEDiffuseLightingElement" { |
1720 | 1615 |
1721 /** @domName SVGFEDiffuseLightingElement.diffuseConstant */ | 1616 /** @domName SVGFEDiffuseLightingElement.diffuseConstant */ |
1722 final SVGAnimatedNumber diffuseConstant; | 1617 final AnimatedNumber diffuseConstant; |
1723 | 1618 |
1724 /** @domName SVGFEDiffuseLightingElement.in1 */ | 1619 /** @domName SVGFEDiffuseLightingElement.in1 */ |
1725 final SVGAnimatedString in1; | 1620 final AnimatedString in1; |
1726 | 1621 |
1727 /** @domName SVGFEDiffuseLightingElement.kernelUnitLengthX */ | 1622 /** @domName SVGFEDiffuseLightingElement.kernelUnitLengthX */ |
1728 final SVGAnimatedNumber kernelUnitLengthX; | 1623 final AnimatedNumber kernelUnitLengthX; |
1729 | 1624 |
1730 /** @domName SVGFEDiffuseLightingElement.kernelUnitLengthY */ | 1625 /** @domName SVGFEDiffuseLightingElement.kernelUnitLengthY */ |
1731 final SVGAnimatedNumber kernelUnitLengthY; | 1626 final AnimatedNumber kernelUnitLengthY; |
1732 | 1627 |
1733 /** @domName SVGFEDiffuseLightingElement.surfaceScale */ | 1628 /** @domName SVGFEDiffuseLightingElement.surfaceScale */ |
1734 final SVGAnimatedNumber surfaceScale; | 1629 final AnimatedNumber surfaceScale; |
1735 | 1630 |
1736 // From SVGFilterPrimitiveStandardAttributes | 1631 // From SVGFilterPrimitiveStandardAttributes |
1737 | 1632 |
1738 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1633 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1739 final SVGAnimatedLength height; | 1634 final AnimatedLength height; |
1740 | 1635 |
1741 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1636 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1742 final SVGAnimatedString result; | 1637 final AnimatedString result; |
1743 | 1638 |
1744 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1639 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1745 final SVGAnimatedLength width; | 1640 final AnimatedLength width; |
1746 | 1641 |
1747 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1642 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1748 final SVGAnimatedLength x; | 1643 final AnimatedLength x; |
1749 | 1644 |
1750 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1645 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1751 final SVGAnimatedLength y; | 1646 final AnimatedLength y; |
1752 | 1647 |
1753 // From SVGStylable | 1648 // From SVGStylable |
1754 | 1649 |
1755 /** @domName SVGStylable.className */ | 1650 /** @domName SVGStylable.className */ |
1756 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1651 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1757 | 1652 |
1758 // Use implementation from Element. | 1653 // Use implementation from Element. |
1759 // final CSSStyleDeclaration style; | 1654 // final CSSStyleDeclaration style; |
1760 | 1655 |
1761 /** @domName SVGStylable.getPresentationAttribute */ | 1656 /** @domName SVGStylable.getPresentationAttribute */ |
1762 CSSValue getPresentationAttribute(String name) native; | 1657 CSSValue getPresentationAttribute(String name) native; |
1763 } | 1658 } |
1764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1765 // for details. All rights reserved. Use of this source code is governed by a | 1660 // for details. All rights reserved. Use of this source code is governed by a |
1766 // BSD-style license that can be found in the LICENSE file. | 1661 // BSD-style license that can be found in the LICENSE file. |
1767 | 1662 |
1768 | 1663 |
1769 /// @domName SVGFEDisplacementMapElement | 1664 /// @domName SVGFEDisplacementMapElement |
1770 class SVGFEDisplacementMapElement extends SVGElement implements SVGFilterPrimiti
veStandardAttributes native "*SVGFEDisplacementMapElement" { | 1665 class FeDisplacementMapElement extends SvgElement implements FilterPrimitiveStan
dardAttributes native "*SVGFEDisplacementMapElement" { |
1771 | 1666 |
1772 static const int SVG_CHANNEL_A = 4; | 1667 static const int SVG_CHANNEL_A = 4; |
1773 | 1668 |
1774 static const int SVG_CHANNEL_B = 3; | 1669 static const int SVG_CHANNEL_B = 3; |
1775 | 1670 |
1776 static const int SVG_CHANNEL_G = 2; | 1671 static const int SVG_CHANNEL_G = 2; |
1777 | 1672 |
1778 static const int SVG_CHANNEL_R = 1; | 1673 static const int SVG_CHANNEL_R = 1; |
1779 | 1674 |
1780 static const int SVG_CHANNEL_UNKNOWN = 0; | 1675 static const int SVG_CHANNEL_UNKNOWN = 0; |
1781 | 1676 |
1782 /** @domName SVGFEDisplacementMapElement.in1 */ | 1677 /** @domName SVGFEDisplacementMapElement.in1 */ |
1783 final SVGAnimatedString in1; | 1678 final AnimatedString in1; |
1784 | 1679 |
1785 /** @domName SVGFEDisplacementMapElement.in2 */ | 1680 /** @domName SVGFEDisplacementMapElement.in2 */ |
1786 final SVGAnimatedString in2; | 1681 final AnimatedString in2; |
1787 | 1682 |
1788 /** @domName SVGFEDisplacementMapElement.scale */ | 1683 /** @domName SVGFEDisplacementMapElement.scale */ |
1789 final SVGAnimatedNumber scale; | 1684 final AnimatedNumber scale; |
1790 | 1685 |
1791 /** @domName SVGFEDisplacementMapElement.xChannelSelector */ | 1686 /** @domName SVGFEDisplacementMapElement.xChannelSelector */ |
1792 final SVGAnimatedEnumeration xChannelSelector; | 1687 final AnimatedEnumeration xChannelSelector; |
1793 | 1688 |
1794 /** @domName SVGFEDisplacementMapElement.yChannelSelector */ | 1689 /** @domName SVGFEDisplacementMapElement.yChannelSelector */ |
1795 final SVGAnimatedEnumeration yChannelSelector; | 1690 final AnimatedEnumeration yChannelSelector; |
1796 | 1691 |
1797 // From SVGFilterPrimitiveStandardAttributes | 1692 // From SVGFilterPrimitiveStandardAttributes |
1798 | 1693 |
1799 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1694 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1800 final SVGAnimatedLength height; | 1695 final AnimatedLength height; |
1801 | 1696 |
1802 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1697 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1803 final SVGAnimatedString result; | 1698 final AnimatedString result; |
1804 | 1699 |
1805 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1700 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1806 final SVGAnimatedLength width; | 1701 final AnimatedLength width; |
1807 | 1702 |
1808 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1703 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1809 final SVGAnimatedLength x; | 1704 final AnimatedLength x; |
1810 | 1705 |
1811 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1706 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1812 final SVGAnimatedLength y; | 1707 final AnimatedLength y; |
1813 | 1708 |
1814 // From SVGStylable | 1709 // From SVGStylable |
1815 | 1710 |
1816 /** @domName SVGStylable.className */ | 1711 /** @domName SVGStylable.className */ |
1817 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1712 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1818 | 1713 |
1819 // Use implementation from Element. | 1714 // Use implementation from Element. |
1820 // final CSSStyleDeclaration style; | 1715 // final CSSStyleDeclaration style; |
1821 | 1716 |
1822 /** @domName SVGStylable.getPresentationAttribute */ | 1717 /** @domName SVGStylable.getPresentationAttribute */ |
1823 CSSValue getPresentationAttribute(String name) native; | 1718 CSSValue getPresentationAttribute(String name) native; |
1824 } | 1719 } |
1825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1826 // for details. All rights reserved. Use of this source code is governed by a | 1721 // for details. All rights reserved. Use of this source code is governed by a |
1827 // BSD-style license that can be found in the LICENSE file. | 1722 // BSD-style license that can be found in the LICENSE file. |
1828 | 1723 |
1829 | 1724 |
1830 /// @domName SVGFEDistantLightElement | 1725 /// @domName SVGFEDistantLightElement |
1831 class SVGFEDistantLightElement extends SVGElement native "*SVGFEDistantLightElem
ent" { | 1726 class FeDistantLightElement extends SvgElement native "*SVGFEDistantLightElement
" { |
1832 | 1727 |
1833 /** @domName SVGFEDistantLightElement.azimuth */ | 1728 /** @domName SVGFEDistantLightElement.azimuth */ |
1834 final SVGAnimatedNumber azimuth; | 1729 final AnimatedNumber azimuth; |
1835 | 1730 |
1836 /** @domName SVGFEDistantLightElement.elevation */ | 1731 /** @domName SVGFEDistantLightElement.elevation */ |
1837 final SVGAnimatedNumber elevation; | 1732 final AnimatedNumber elevation; |
1838 } | 1733 } |
1839 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1840 // for details. All rights reserved. Use of this source code is governed by a | 1735 // for details. All rights reserved. Use of this source code is governed by a |
1841 // BSD-style license that can be found in the LICENSE file. | 1736 // BSD-style license that can be found in the LICENSE file. |
1842 | 1737 |
1843 | 1738 |
1844 /// @domName SVGFEDropShadowElement | 1739 /// @domName SVGFEDropShadowElement |
1845 class SVGFEDropShadowElement extends SVGElement implements SVGFilterPrimitiveSta
ndardAttributes native "*SVGFEDropShadowElement" { | 1740 class FeDropShadowElement extends SvgElement implements FilterPrimitiveStandardA
ttributes native "*SVGFEDropShadowElement" { |
1846 | 1741 |
1847 /** @domName SVGFEDropShadowElement.dx */ | 1742 /** @domName SVGFEDropShadowElement.dx */ |
1848 final SVGAnimatedNumber dx; | 1743 final AnimatedNumber dx; |
1849 | 1744 |
1850 /** @domName SVGFEDropShadowElement.dy */ | 1745 /** @domName SVGFEDropShadowElement.dy */ |
1851 final SVGAnimatedNumber dy; | 1746 final AnimatedNumber dy; |
1852 | 1747 |
1853 /** @domName SVGFEDropShadowElement.in1 */ | 1748 /** @domName SVGFEDropShadowElement.in1 */ |
1854 final SVGAnimatedString in1; | 1749 final AnimatedString in1; |
1855 | 1750 |
1856 /** @domName SVGFEDropShadowElement.stdDeviationX */ | 1751 /** @domName SVGFEDropShadowElement.stdDeviationX */ |
1857 final SVGAnimatedNumber stdDeviationX; | 1752 final AnimatedNumber stdDeviationX; |
1858 | 1753 |
1859 /** @domName SVGFEDropShadowElement.stdDeviationY */ | 1754 /** @domName SVGFEDropShadowElement.stdDeviationY */ |
1860 final SVGAnimatedNumber stdDeviationY; | 1755 final AnimatedNumber stdDeviationY; |
1861 | 1756 |
1862 /** @domName SVGFEDropShadowElement.setStdDeviation */ | 1757 /** @domName SVGFEDropShadowElement.setStdDeviation */ |
1863 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; | 1758 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; |
1864 | 1759 |
1865 // From SVGFilterPrimitiveStandardAttributes | 1760 // From SVGFilterPrimitiveStandardAttributes |
1866 | 1761 |
1867 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1762 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1868 final SVGAnimatedLength height; | 1763 final AnimatedLength height; |
1869 | 1764 |
1870 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1765 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1871 final SVGAnimatedString result; | 1766 final AnimatedString result; |
1872 | 1767 |
1873 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1768 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1874 final SVGAnimatedLength width; | 1769 final AnimatedLength width; |
1875 | 1770 |
1876 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1771 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1877 final SVGAnimatedLength x; | 1772 final AnimatedLength x; |
1878 | 1773 |
1879 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1774 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1880 final SVGAnimatedLength y; | 1775 final AnimatedLength y; |
1881 | 1776 |
1882 // From SVGStylable | 1777 // From SVGStylable |
1883 | 1778 |
1884 /** @domName SVGStylable.className */ | 1779 /** @domName SVGStylable.className */ |
1885 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1780 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1886 | 1781 |
1887 // Use implementation from Element. | 1782 // Use implementation from Element. |
1888 // final CSSStyleDeclaration style; | 1783 // final CSSStyleDeclaration style; |
1889 | 1784 |
1890 /** @domName SVGStylable.getPresentationAttribute */ | 1785 /** @domName SVGStylable.getPresentationAttribute */ |
1891 CSSValue getPresentationAttribute(String name) native; | 1786 CSSValue getPresentationAttribute(String name) native; |
1892 } | 1787 } |
1893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1788 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1894 // for details. All rights reserved. Use of this source code is governed by a | 1789 // for details. All rights reserved. Use of this source code is governed by a |
1895 // BSD-style license that can be found in the LICENSE file. | 1790 // BSD-style license that can be found in the LICENSE file. |
1896 | 1791 |
1897 | 1792 |
1898 /// @domName SVGFEFloodElement | 1793 /// @domName SVGFEFloodElement |
1899 class SVGFEFloodElement extends SVGElement implements SVGFilterPrimitiveStandard
Attributes native "*SVGFEFloodElement" { | 1794 class FeFloodElement extends SvgElement implements FilterPrimitiveStandardAttrib
utes native "*SVGFEFloodElement" { |
1900 | 1795 |
1901 // From SVGFilterPrimitiveStandardAttributes | 1796 // From SVGFilterPrimitiveStandardAttributes |
1902 | 1797 |
1903 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1798 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1904 final SVGAnimatedLength height; | 1799 final AnimatedLength height; |
1905 | 1800 |
1906 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1801 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1907 final SVGAnimatedString result; | 1802 final AnimatedString result; |
1908 | 1803 |
1909 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1804 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1910 final SVGAnimatedLength width; | 1805 final AnimatedLength width; |
1911 | 1806 |
1912 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1807 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1913 final SVGAnimatedLength x; | 1808 final AnimatedLength x; |
1914 | 1809 |
1915 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1810 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1916 final SVGAnimatedLength y; | 1811 final AnimatedLength y; |
1917 | 1812 |
1918 // From SVGStylable | 1813 // From SVGStylable |
1919 | 1814 |
1920 /** @domName SVGStylable.className */ | 1815 /** @domName SVGStylable.className */ |
1921 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1816 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
1922 | 1817 |
1923 // Use implementation from Element. | 1818 // Use implementation from Element. |
1924 // final CSSStyleDeclaration style; | 1819 // final CSSStyleDeclaration style; |
1925 | 1820 |
1926 /** @domName SVGStylable.getPresentationAttribute */ | 1821 /** @domName SVGStylable.getPresentationAttribute */ |
1927 CSSValue getPresentationAttribute(String name) native; | 1822 CSSValue getPresentationAttribute(String name) native; |
1928 } | 1823 } |
1929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1930 // for details. All rights reserved. Use of this source code is governed by a | 1825 // for details. All rights reserved. Use of this source code is governed by a |
1931 // BSD-style license that can be found in the LICENSE file. | 1826 // BSD-style license that can be found in the LICENSE file. |
1932 | 1827 |
1933 | 1828 |
1934 /// @domName SVGFEFuncAElement | 1829 /// @domName SVGFEFuncAElement |
1935 class SVGFEFuncAElement extends SVGComponentTransferFunctionElement native "*SVG
FEFuncAElement" { | 1830 class FeFuncAElement extends ComponentTransferFunctionElement native "*SVGFEFunc
AElement" { |
1936 } | 1831 } |
1937 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1938 // for details. All rights reserved. Use of this source code is governed by a | 1833 // for details. All rights reserved. Use of this source code is governed by a |
1939 // BSD-style license that can be found in the LICENSE file. | 1834 // BSD-style license that can be found in the LICENSE file. |
1940 | 1835 |
1941 | 1836 |
1942 /// @domName SVGFEFuncBElement | 1837 /// @domName SVGFEFuncBElement |
1943 class SVGFEFuncBElement extends SVGComponentTransferFunctionElement native "*SVG
FEFuncBElement" { | 1838 class FeFuncBElement extends ComponentTransferFunctionElement native "*SVGFEFunc
BElement" { |
1944 } | 1839 } |
1945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1946 // for details. All rights reserved. Use of this source code is governed by a | 1841 // for details. All rights reserved. Use of this source code is governed by a |
1947 // BSD-style license that can be found in the LICENSE file. | 1842 // BSD-style license that can be found in the LICENSE file. |
1948 | 1843 |
1949 | 1844 |
1950 /// @domName SVGFEFuncGElement | 1845 /// @domName SVGFEFuncGElement |
1951 class SVGFEFuncGElement extends SVGComponentTransferFunctionElement native "*SVG
FEFuncGElement" { | 1846 class FeFuncGElement extends ComponentTransferFunctionElement native "*SVGFEFunc
GElement" { |
1952 } | 1847 } |
1953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1954 // for details. All rights reserved. Use of this source code is governed by a | 1849 // for details. All rights reserved. Use of this source code is governed by a |
1955 // BSD-style license that can be found in the LICENSE file. | 1850 // BSD-style license that can be found in the LICENSE file. |
1956 | 1851 |
1957 | 1852 |
1958 /// @domName SVGFEFuncRElement | 1853 /// @domName SVGFEFuncRElement |
1959 class SVGFEFuncRElement extends SVGComponentTransferFunctionElement native "*SVG
FEFuncRElement" { | 1854 class FeFuncRElement extends ComponentTransferFunctionElement native "*SVGFEFunc
RElement" { |
1960 } | 1855 } |
1961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1962 // for details. All rights reserved. Use of this source code is governed by a | 1857 // for details. All rights reserved. Use of this source code is governed by a |
1963 // BSD-style license that can be found in the LICENSE file. | 1858 // BSD-style license that can be found in the LICENSE file. |
1964 | 1859 |
1965 | 1860 |
1966 /// @domName SVGFEGaussianBlurElement | 1861 /// @domName SVGFEGaussianBlurElement |
1967 class SVGFEGaussianBlurElement extends SVGElement implements SVGFilterPrimitiveS
tandardAttributes native "*SVGFEGaussianBlurElement" { | 1862 class FeGaussianBlurElement extends SvgElement implements FilterPrimitiveStandar
dAttributes native "*SVGFEGaussianBlurElement" { |
1968 | 1863 |
1969 /** @domName SVGFEGaussianBlurElement.in1 */ | 1864 /** @domName SVGFEGaussianBlurElement.in1 */ |
1970 final SVGAnimatedString in1; | 1865 final AnimatedString in1; |
1971 | 1866 |
1972 /** @domName SVGFEGaussianBlurElement.stdDeviationX */ | 1867 /** @domName SVGFEGaussianBlurElement.stdDeviationX */ |
1973 final SVGAnimatedNumber stdDeviationX; | 1868 final AnimatedNumber stdDeviationX; |
1974 | 1869 |
1975 /** @domName SVGFEGaussianBlurElement.stdDeviationY */ | 1870 /** @domName SVGFEGaussianBlurElement.stdDeviationY */ |
1976 final SVGAnimatedNumber stdDeviationY; | 1871 final AnimatedNumber stdDeviationY; |
1977 | 1872 |
1978 /** @domName SVGFEGaussianBlurElement.setStdDeviation */ | 1873 /** @domName SVGFEGaussianBlurElement.setStdDeviation */ |
1979 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; | 1874 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; |
1980 | 1875 |
1981 // From SVGFilterPrimitiveStandardAttributes | 1876 // From SVGFilterPrimitiveStandardAttributes |
1982 | 1877 |
1983 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1878 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
1984 final SVGAnimatedLength height; | 1879 final AnimatedLength height; |
1985 | 1880 |
1986 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1881 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
1987 final SVGAnimatedString result; | 1882 final AnimatedString result; |
1988 | 1883 |
1989 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1884 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
1990 final SVGAnimatedLength width; | 1885 final AnimatedLength width; |
1991 | 1886 |
1992 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1887 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
1993 final SVGAnimatedLength x; | 1888 final AnimatedLength x; |
1994 | 1889 |
1995 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1890 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
1996 final SVGAnimatedLength y; | 1891 final AnimatedLength y; |
1997 | 1892 |
1998 // From SVGStylable | 1893 // From SVGStylable |
1999 | 1894 |
2000 /** @domName SVGStylable.className */ | 1895 /** @domName SVGStylable.className */ |
2001 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1896 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2002 | 1897 |
2003 // Use implementation from Element. | 1898 // Use implementation from Element. |
2004 // final CSSStyleDeclaration style; | 1899 // final CSSStyleDeclaration style; |
2005 | 1900 |
2006 /** @domName SVGStylable.getPresentationAttribute */ | 1901 /** @domName SVGStylable.getPresentationAttribute */ |
2007 CSSValue getPresentationAttribute(String name) native; | 1902 CSSValue getPresentationAttribute(String name) native; |
2008 } | 1903 } |
2009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1904 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2010 // for details. All rights reserved. Use of this source code is governed by a | 1905 // for details. All rights reserved. Use of this source code is governed by a |
2011 // BSD-style license that can be found in the LICENSE file. | 1906 // BSD-style license that can be found in the LICENSE file. |
2012 | 1907 |
2013 | 1908 |
2014 /// @domName SVGFEImageElement | 1909 /// @domName SVGFEImageElement |
2015 class SVGFEImageElement extends SVGElement implements SVGURIReference, SVGLangSp
ace, SVGFilterPrimitiveStandardAttributes, SVGExternalResourcesRequired native "
*SVGFEImageElement" { | 1910 class FeImageElement extends SvgElement implements FilterPrimitiveStandardAttrib
utes, UriReference, ExternalResourcesRequired, LangSpace native "*SVGFEImageElem
ent" { |
2016 | 1911 |
2017 /** @domName SVGFEImageElement.preserveAspectRatio */ | 1912 /** @domName SVGFEImageElement.preserveAspectRatio */ |
2018 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | 1913 final AnimatedPreserveAspectRatio preserveAspectRatio; |
2019 | 1914 |
2020 // From SVGExternalResourcesRequired | 1915 // From SVGExternalResourcesRequired |
2021 | 1916 |
2022 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 1917 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
2023 final SVGAnimatedBoolean externalResourcesRequired; | 1918 final AnimatedBoolean externalResourcesRequired; |
2024 | 1919 |
2025 // From SVGFilterPrimitiveStandardAttributes | 1920 // From SVGFilterPrimitiveStandardAttributes |
2026 | 1921 |
2027 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1922 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
2028 final SVGAnimatedLength height; | 1923 final AnimatedLength height; |
2029 | 1924 |
2030 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1925 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
2031 final SVGAnimatedString result; | 1926 final AnimatedString result; |
2032 | 1927 |
2033 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1928 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
2034 final SVGAnimatedLength width; | 1929 final AnimatedLength width; |
2035 | 1930 |
2036 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1931 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
2037 final SVGAnimatedLength x; | 1932 final AnimatedLength x; |
2038 | 1933 |
2039 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1934 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
2040 final SVGAnimatedLength y; | 1935 final AnimatedLength y; |
2041 | 1936 |
2042 // From SVGLangSpace | 1937 // From SVGLangSpace |
2043 | 1938 |
2044 /** @domName SVGLangSpace.xmllang */ | 1939 /** @domName SVGLangSpace.xmllang */ |
2045 String xmllang; | 1940 String xmllang; |
2046 | 1941 |
2047 /** @domName SVGLangSpace.xmlspace */ | 1942 /** @domName SVGLangSpace.xmlspace */ |
2048 String xmlspace; | 1943 String xmlspace; |
2049 | 1944 |
2050 // From SVGStylable | 1945 // From SVGStylable |
2051 | 1946 |
2052 /** @domName SVGStylable.className */ | 1947 /** @domName SVGStylable.className */ |
2053 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1948 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2054 | 1949 |
2055 // Use implementation from Element. | 1950 // Use implementation from Element. |
2056 // final CSSStyleDeclaration style; | 1951 // final CSSStyleDeclaration style; |
2057 | 1952 |
2058 /** @domName SVGStylable.getPresentationAttribute */ | 1953 /** @domName SVGStylable.getPresentationAttribute */ |
2059 CSSValue getPresentationAttribute(String name) native; | 1954 CSSValue getPresentationAttribute(String name) native; |
2060 | 1955 |
2061 // From SVGURIReference | 1956 // From SVGURIReference |
2062 | 1957 |
2063 /** @domName SVGURIReference.href */ | 1958 /** @domName SVGURIReference.href */ |
2064 final SVGAnimatedString href; | 1959 final AnimatedString href; |
2065 } | 1960 } |
2066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2067 // for details. All rights reserved. Use of this source code is governed by a | 1962 // for details. All rights reserved. Use of this source code is governed by a |
2068 // BSD-style license that can be found in the LICENSE file. | 1963 // BSD-style license that can be found in the LICENSE file. |
2069 | 1964 |
2070 | 1965 |
2071 /// @domName SVGFEMergeElement | 1966 /// @domName SVGFEMergeElement |
2072 class SVGFEMergeElement extends SVGElement implements SVGFilterPrimitiveStandard
Attributes native "*SVGFEMergeElement" { | 1967 class FeMergeElement extends SvgElement implements FilterPrimitiveStandardAttrib
utes native "*SVGFEMergeElement" { |
2073 | 1968 |
2074 // From SVGFilterPrimitiveStandardAttributes | 1969 // From SVGFilterPrimitiveStandardAttributes |
2075 | 1970 |
2076 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 1971 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
2077 final SVGAnimatedLength height; | 1972 final AnimatedLength height; |
2078 | 1973 |
2079 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 1974 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
2080 final SVGAnimatedString result; | 1975 final AnimatedString result; |
2081 | 1976 |
2082 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 1977 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
2083 final SVGAnimatedLength width; | 1978 final AnimatedLength width; |
2084 | 1979 |
2085 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 1980 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
2086 final SVGAnimatedLength x; | 1981 final AnimatedLength x; |
2087 | 1982 |
2088 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 1983 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
2089 final SVGAnimatedLength y; | 1984 final AnimatedLength y; |
2090 | 1985 |
2091 // From SVGStylable | 1986 // From SVGStylable |
2092 | 1987 |
2093 /** @domName SVGStylable.className */ | 1988 /** @domName SVGStylable.className */ |
2094 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 1989 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2095 | 1990 |
2096 // Use implementation from Element. | 1991 // Use implementation from Element. |
2097 // final CSSStyleDeclaration style; | 1992 // final CSSStyleDeclaration style; |
2098 | 1993 |
2099 /** @domName SVGStylable.getPresentationAttribute */ | 1994 /** @domName SVGStylable.getPresentationAttribute */ |
2100 CSSValue getPresentationAttribute(String name) native; | 1995 CSSValue getPresentationAttribute(String name) native; |
2101 } | 1996 } |
2102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1997 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2103 // for details. All rights reserved. Use of this source code is governed by a | 1998 // for details. All rights reserved. Use of this source code is governed by a |
2104 // BSD-style license that can be found in the LICENSE file. | 1999 // BSD-style license that can be found in the LICENSE file. |
2105 | 2000 |
2106 | 2001 |
2107 /// @domName SVGFEMergeNodeElement | 2002 /// @domName SVGFEMergeNodeElement |
2108 class SVGFEMergeNodeElement extends SVGElement native "*SVGFEMergeNodeElement" { | 2003 class FeMergeNodeElement extends SvgElement native "*SVGFEMergeNodeElement" { |
2109 | 2004 |
2110 /** @domName SVGFEMergeNodeElement.in1 */ | 2005 /** @domName SVGFEMergeNodeElement.in1 */ |
2111 final SVGAnimatedString in1; | 2006 final AnimatedString in1; |
2112 } | 2007 } |
2113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2008 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2114 // for details. All rights reserved. Use of this source code is governed by a | 2009 // for details. All rights reserved. Use of this source code is governed by a |
2115 // BSD-style license that can be found in the LICENSE file. | 2010 // BSD-style license that can be found in the LICENSE file. |
2116 | 2011 |
2117 | 2012 |
2118 /// @domName SVGFEMorphologyElement | 2013 /// @domName SVGFEMorphologyElement |
2119 class SVGFEMorphologyElement extends SVGElement implements SVGFilterPrimitiveSta
ndardAttributes native "*SVGFEMorphologyElement" { | 2014 class FeMorphologyElement extends SvgElement implements FilterPrimitiveStandardA
ttributes native "*SVGFEMorphologyElement" { |
2120 | 2015 |
2121 static const int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; | 2016 static const int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; |
2122 | 2017 |
2123 static const int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; | 2018 static const int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; |
2124 | 2019 |
2125 static const int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; | 2020 static const int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; |
2126 | 2021 |
2127 /** @domName SVGFEMorphologyElement.in1 */ | 2022 /** @domName SVGFEMorphologyElement.in1 */ |
2128 final SVGAnimatedString in1; | 2023 final AnimatedString in1; |
2129 | 2024 |
2130 /** @domName SVGFEMorphologyElement.operator */ | 2025 /** @domName SVGFEMorphologyElement.operator */ |
2131 final SVGAnimatedEnumeration operator; | 2026 final AnimatedEnumeration operator; |
2132 | 2027 |
2133 /** @domName SVGFEMorphologyElement.radiusX */ | 2028 /** @domName SVGFEMorphologyElement.radiusX */ |
2134 final SVGAnimatedNumber radiusX; | 2029 final AnimatedNumber radiusX; |
2135 | 2030 |
2136 /** @domName SVGFEMorphologyElement.radiusY */ | 2031 /** @domName SVGFEMorphologyElement.radiusY */ |
2137 final SVGAnimatedNumber radiusY; | 2032 final AnimatedNumber radiusY; |
2138 | 2033 |
2139 /** @domName SVGFEMorphologyElement.setRadius */ | 2034 /** @domName SVGFEMorphologyElement.setRadius */ |
2140 void setRadius(num radiusX, num radiusY) native; | 2035 void setRadius(num radiusX, num radiusY) native; |
2141 | 2036 |
2142 // From SVGFilterPrimitiveStandardAttributes | 2037 // From SVGFilterPrimitiveStandardAttributes |
2143 | 2038 |
2144 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 2039 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
2145 final SVGAnimatedLength height; | 2040 final AnimatedLength height; |
2146 | 2041 |
2147 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 2042 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
2148 final SVGAnimatedString result; | 2043 final AnimatedString result; |
2149 | 2044 |
2150 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 2045 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
2151 final SVGAnimatedLength width; | 2046 final AnimatedLength width; |
2152 | 2047 |
2153 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 2048 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
2154 final SVGAnimatedLength x; | 2049 final AnimatedLength x; |
2155 | 2050 |
2156 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 2051 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
2157 final SVGAnimatedLength y; | 2052 final AnimatedLength y; |
2158 | 2053 |
2159 // From SVGStylable | 2054 // From SVGStylable |
2160 | 2055 |
2161 /** @domName SVGStylable.className */ | 2056 /** @domName SVGStylable.className */ |
2162 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2057 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2163 | 2058 |
2164 // Use implementation from Element. | 2059 // Use implementation from Element. |
2165 // final CSSStyleDeclaration style; | 2060 // final CSSStyleDeclaration style; |
2166 | 2061 |
2167 /** @domName SVGStylable.getPresentationAttribute */ | 2062 /** @domName SVGStylable.getPresentationAttribute */ |
2168 CSSValue getPresentationAttribute(String name) native; | 2063 CSSValue getPresentationAttribute(String name) native; |
2169 } | 2064 } |
2170 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2171 // for details. All rights reserved. Use of this source code is governed by a | 2066 // for details. All rights reserved. Use of this source code is governed by a |
2172 // BSD-style license that can be found in the LICENSE file. | 2067 // BSD-style license that can be found in the LICENSE file. |
2173 | 2068 |
2174 | 2069 |
2175 /// @domName SVGFEOffsetElement | 2070 /// @domName SVGFEOffsetElement |
2176 class SVGFEOffsetElement extends SVGElement implements SVGFilterPrimitiveStandar
dAttributes native "*SVGFEOffsetElement" { | 2071 class FeOffsetElement extends SvgElement implements FilterPrimitiveStandardAttri
butes native "*SVGFEOffsetElement" { |
2177 | 2072 |
2178 /** @domName SVGFEOffsetElement.dx */ | 2073 /** @domName SVGFEOffsetElement.dx */ |
2179 final SVGAnimatedNumber dx; | 2074 final AnimatedNumber dx; |
2180 | 2075 |
2181 /** @domName SVGFEOffsetElement.dy */ | 2076 /** @domName SVGFEOffsetElement.dy */ |
2182 final SVGAnimatedNumber dy; | 2077 final AnimatedNumber dy; |
2183 | 2078 |
2184 /** @domName SVGFEOffsetElement.in1 */ | 2079 /** @domName SVGFEOffsetElement.in1 */ |
2185 final SVGAnimatedString in1; | 2080 final AnimatedString in1; |
2186 | 2081 |
2187 // From SVGFilterPrimitiveStandardAttributes | 2082 // From SVGFilterPrimitiveStandardAttributes |
2188 | 2083 |
2189 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 2084 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
2190 final SVGAnimatedLength height; | 2085 final AnimatedLength height; |
2191 | 2086 |
2192 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 2087 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
2193 final SVGAnimatedString result; | 2088 final AnimatedString result; |
2194 | 2089 |
2195 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 2090 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
2196 final SVGAnimatedLength width; | 2091 final AnimatedLength width; |
2197 | 2092 |
2198 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 2093 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
2199 final SVGAnimatedLength x; | 2094 final AnimatedLength x; |
2200 | 2095 |
2201 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 2096 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
2202 final SVGAnimatedLength y; | 2097 final AnimatedLength y; |
2203 | 2098 |
2204 // From SVGStylable | 2099 // From SVGStylable |
2205 | 2100 |
2206 /** @domName SVGStylable.className */ | 2101 /** @domName SVGStylable.className */ |
2207 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2102 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2208 | 2103 |
2209 // Use implementation from Element. | 2104 // Use implementation from Element. |
2210 // final CSSStyleDeclaration style; | 2105 // final CSSStyleDeclaration style; |
2211 | 2106 |
2212 /** @domName SVGStylable.getPresentationAttribute */ | 2107 /** @domName SVGStylable.getPresentationAttribute */ |
2213 CSSValue getPresentationAttribute(String name) native; | 2108 CSSValue getPresentationAttribute(String name) native; |
2214 } | 2109 } |
2215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2216 // for details. All rights reserved. Use of this source code is governed by a | 2111 // for details. All rights reserved. Use of this source code is governed by a |
2217 // BSD-style license that can be found in the LICENSE file. | 2112 // BSD-style license that can be found in the LICENSE file. |
2218 | 2113 |
2219 | 2114 |
2220 /// @domName SVGFEPointLightElement | 2115 /// @domName SVGFEPointLightElement |
2221 class SVGFEPointLightElement extends SVGElement native "*SVGFEPointLightElement"
{ | 2116 class FePointLightElement extends SvgElement native "*SVGFEPointLightElement" { |
2222 | 2117 |
2223 /** @domName SVGFEPointLightElement.x */ | 2118 /** @domName SVGFEPointLightElement.x */ |
2224 final SVGAnimatedNumber x; | 2119 final AnimatedNumber x; |
2225 | 2120 |
2226 /** @domName SVGFEPointLightElement.y */ | 2121 /** @domName SVGFEPointLightElement.y */ |
2227 final SVGAnimatedNumber y; | 2122 final AnimatedNumber y; |
2228 | 2123 |
2229 /** @domName SVGFEPointLightElement.z */ | 2124 /** @domName SVGFEPointLightElement.z */ |
2230 final SVGAnimatedNumber z; | 2125 final AnimatedNumber z; |
2231 } | 2126 } |
2232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2127 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2233 // for details. All rights reserved. Use of this source code is governed by a | 2128 // for details. All rights reserved. Use of this source code is governed by a |
2234 // BSD-style license that can be found in the LICENSE file. | 2129 // BSD-style license that can be found in the LICENSE file. |
2235 | 2130 |
2236 | 2131 |
2237 /// @domName SVGFESpecularLightingElement | 2132 /// @domName SVGFESpecularLightingElement |
2238 class SVGFESpecularLightingElement extends SVGElement implements SVGFilterPrimit
iveStandardAttributes native "*SVGFESpecularLightingElement" { | 2133 class FeSpecularLightingElement extends SvgElement implements FilterPrimitiveSta
ndardAttributes native "*SVGFESpecularLightingElement" { |
2239 | 2134 |
2240 /** @domName SVGFESpecularLightingElement.in1 */ | 2135 /** @domName SVGFESpecularLightingElement.in1 */ |
2241 final SVGAnimatedString in1; | 2136 final AnimatedString in1; |
2242 | 2137 |
2243 /** @domName SVGFESpecularLightingElement.specularConstant */ | 2138 /** @domName SVGFESpecularLightingElement.specularConstant */ |
2244 final SVGAnimatedNumber specularConstant; | 2139 final AnimatedNumber specularConstant; |
2245 | 2140 |
2246 /** @domName SVGFESpecularLightingElement.specularExponent */ | 2141 /** @domName SVGFESpecularLightingElement.specularExponent */ |
2247 final SVGAnimatedNumber specularExponent; | 2142 final AnimatedNumber specularExponent; |
2248 | 2143 |
2249 /** @domName SVGFESpecularLightingElement.surfaceScale */ | 2144 /** @domName SVGFESpecularLightingElement.surfaceScale */ |
2250 final SVGAnimatedNumber surfaceScale; | 2145 final AnimatedNumber surfaceScale; |
2251 | 2146 |
2252 // From SVGFilterPrimitiveStandardAttributes | 2147 // From SVGFilterPrimitiveStandardAttributes |
2253 | 2148 |
2254 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 2149 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
2255 final SVGAnimatedLength height; | 2150 final AnimatedLength height; |
2256 | 2151 |
2257 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 2152 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
2258 final SVGAnimatedString result; | 2153 final AnimatedString result; |
2259 | 2154 |
2260 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 2155 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
2261 final SVGAnimatedLength width; | 2156 final AnimatedLength width; |
2262 | 2157 |
2263 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 2158 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
2264 final SVGAnimatedLength x; | 2159 final AnimatedLength x; |
2265 | 2160 |
2266 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 2161 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
2267 final SVGAnimatedLength y; | 2162 final AnimatedLength y; |
2268 | 2163 |
2269 // From SVGStylable | 2164 // From SVGStylable |
2270 | 2165 |
2271 /** @domName SVGStylable.className */ | 2166 /** @domName SVGStylable.className */ |
2272 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2167 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2273 | 2168 |
2274 // Use implementation from Element. | 2169 // Use implementation from Element. |
2275 // final CSSStyleDeclaration style; | 2170 // final CSSStyleDeclaration style; |
2276 | 2171 |
2277 /** @domName SVGStylable.getPresentationAttribute */ | 2172 /** @domName SVGStylable.getPresentationAttribute */ |
2278 CSSValue getPresentationAttribute(String name) native; | 2173 CSSValue getPresentationAttribute(String name) native; |
2279 } | 2174 } |
2280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2281 // for details. All rights reserved. Use of this source code is governed by a | 2176 // for details. All rights reserved. Use of this source code is governed by a |
2282 // BSD-style license that can be found in the LICENSE file. | 2177 // BSD-style license that can be found in the LICENSE file. |
2283 | 2178 |
2284 | 2179 |
2285 /// @domName SVGFESpotLightElement | 2180 /// @domName SVGFESpotLightElement |
2286 class SVGFESpotLightElement extends SVGElement native "*SVGFESpotLightElement" { | 2181 class FeSpotLightElement extends SvgElement native "*SVGFESpotLightElement" { |
2287 | 2182 |
2288 /** @domName SVGFESpotLightElement.limitingConeAngle */ | 2183 /** @domName SVGFESpotLightElement.limitingConeAngle */ |
2289 final SVGAnimatedNumber limitingConeAngle; | 2184 final AnimatedNumber limitingConeAngle; |
2290 | 2185 |
2291 /** @domName SVGFESpotLightElement.pointsAtX */ | 2186 /** @domName SVGFESpotLightElement.pointsAtX */ |
2292 final SVGAnimatedNumber pointsAtX; | 2187 final AnimatedNumber pointsAtX; |
2293 | 2188 |
2294 /** @domName SVGFESpotLightElement.pointsAtY */ | 2189 /** @domName SVGFESpotLightElement.pointsAtY */ |
2295 final SVGAnimatedNumber pointsAtY; | 2190 final AnimatedNumber pointsAtY; |
2296 | 2191 |
2297 /** @domName SVGFESpotLightElement.pointsAtZ */ | 2192 /** @domName SVGFESpotLightElement.pointsAtZ */ |
2298 final SVGAnimatedNumber pointsAtZ; | 2193 final AnimatedNumber pointsAtZ; |
2299 | 2194 |
2300 /** @domName SVGFESpotLightElement.specularExponent */ | 2195 /** @domName SVGFESpotLightElement.specularExponent */ |
2301 final SVGAnimatedNumber specularExponent; | 2196 final AnimatedNumber specularExponent; |
2302 | 2197 |
2303 /** @domName SVGFESpotLightElement.x */ | 2198 /** @domName SVGFESpotLightElement.x */ |
2304 final SVGAnimatedNumber x; | 2199 final AnimatedNumber x; |
2305 | 2200 |
2306 /** @domName SVGFESpotLightElement.y */ | 2201 /** @domName SVGFESpotLightElement.y */ |
2307 final SVGAnimatedNumber y; | 2202 final AnimatedNumber y; |
2308 | 2203 |
2309 /** @domName SVGFESpotLightElement.z */ | 2204 /** @domName SVGFESpotLightElement.z */ |
2310 final SVGAnimatedNumber z; | 2205 final AnimatedNumber z; |
2311 } | 2206 } |
2312 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2207 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2313 // for details. All rights reserved. Use of this source code is governed by a | 2208 // for details. All rights reserved. Use of this source code is governed by a |
2314 // BSD-style license that can be found in the LICENSE file. | 2209 // BSD-style license that can be found in the LICENSE file. |
2315 | 2210 |
2316 | 2211 |
2317 /// @domName SVGFETileElement | 2212 /// @domName SVGFETileElement |
2318 class SVGFETileElement extends SVGElement implements SVGFilterPrimitiveStandardA
ttributes native "*SVGFETileElement" { | 2213 class FeTileElement extends SvgElement implements FilterPrimitiveStandardAttribu
tes native "*SVGFETileElement" { |
2319 | 2214 |
2320 /** @domName SVGFETileElement.in1 */ | 2215 /** @domName SVGFETileElement.in1 */ |
2321 final SVGAnimatedString in1; | 2216 final AnimatedString in1; |
2322 | 2217 |
2323 // From SVGFilterPrimitiveStandardAttributes | 2218 // From SVGFilterPrimitiveStandardAttributes |
2324 | 2219 |
2325 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 2220 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
2326 final SVGAnimatedLength height; | 2221 final AnimatedLength height; |
2327 | 2222 |
2328 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 2223 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
2329 final SVGAnimatedString result; | 2224 final AnimatedString result; |
2330 | 2225 |
2331 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 2226 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
2332 final SVGAnimatedLength width; | 2227 final AnimatedLength width; |
2333 | 2228 |
2334 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 2229 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
2335 final SVGAnimatedLength x; | 2230 final AnimatedLength x; |
2336 | 2231 |
2337 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 2232 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
2338 final SVGAnimatedLength y; | 2233 final AnimatedLength y; |
2339 | 2234 |
2340 // From SVGStylable | 2235 // From SVGStylable |
2341 | 2236 |
2342 /** @domName SVGStylable.className */ | 2237 /** @domName SVGStylable.className */ |
2343 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2238 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2344 | 2239 |
2345 // Use implementation from Element. | 2240 // Use implementation from Element. |
2346 // final CSSStyleDeclaration style; | 2241 // final CSSStyleDeclaration style; |
2347 | 2242 |
2348 /** @domName SVGStylable.getPresentationAttribute */ | 2243 /** @domName SVGStylable.getPresentationAttribute */ |
2349 CSSValue getPresentationAttribute(String name) native; | 2244 CSSValue getPresentationAttribute(String name) native; |
2350 } | 2245 } |
2351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2352 // for details. All rights reserved. Use of this source code is governed by a | 2247 // for details. All rights reserved. Use of this source code is governed by a |
2353 // BSD-style license that can be found in the LICENSE file. | 2248 // BSD-style license that can be found in the LICENSE file. |
2354 | 2249 |
2355 | 2250 |
2356 /// @domName SVGFETurbulenceElement | 2251 /// @domName SVGFETurbulenceElement |
2357 class SVGFETurbulenceElement extends SVGElement implements SVGFilterPrimitiveSta
ndardAttributes native "*SVGFETurbulenceElement" { | 2252 class FeTurbulenceElement extends SvgElement implements FilterPrimitiveStandardA
ttributes native "*SVGFETurbulenceElement" { |
2358 | 2253 |
2359 static const int SVG_STITCHTYPE_NOSTITCH = 2; | 2254 static const int SVG_STITCHTYPE_NOSTITCH = 2; |
2360 | 2255 |
2361 static const int SVG_STITCHTYPE_STITCH = 1; | 2256 static const int SVG_STITCHTYPE_STITCH = 1; |
2362 | 2257 |
2363 static const int SVG_STITCHTYPE_UNKNOWN = 0; | 2258 static const int SVG_STITCHTYPE_UNKNOWN = 0; |
2364 | 2259 |
2365 static const int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; | 2260 static const int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; |
2366 | 2261 |
2367 static const int SVG_TURBULENCE_TYPE_TURBULENCE = 2; | 2262 static const int SVG_TURBULENCE_TYPE_TURBULENCE = 2; |
2368 | 2263 |
2369 static const int SVG_TURBULENCE_TYPE_UNKNOWN = 0; | 2264 static const int SVG_TURBULENCE_TYPE_UNKNOWN = 0; |
2370 | 2265 |
2371 /** @domName SVGFETurbulenceElement.baseFrequencyX */ | 2266 /** @domName SVGFETurbulenceElement.baseFrequencyX */ |
2372 final SVGAnimatedNumber baseFrequencyX; | 2267 final AnimatedNumber baseFrequencyX; |
2373 | 2268 |
2374 /** @domName SVGFETurbulenceElement.baseFrequencyY */ | 2269 /** @domName SVGFETurbulenceElement.baseFrequencyY */ |
2375 final SVGAnimatedNumber baseFrequencyY; | 2270 final AnimatedNumber baseFrequencyY; |
2376 | 2271 |
2377 /** @domName SVGFETurbulenceElement.numOctaves */ | 2272 /** @domName SVGFETurbulenceElement.numOctaves */ |
2378 final SVGAnimatedInteger numOctaves; | 2273 final AnimatedInteger numOctaves; |
2379 | 2274 |
2380 /** @domName SVGFETurbulenceElement.seed */ | 2275 /** @domName SVGFETurbulenceElement.seed */ |
2381 final SVGAnimatedNumber seed; | 2276 final AnimatedNumber seed; |
2382 | 2277 |
2383 /** @domName SVGFETurbulenceElement.stitchTiles */ | 2278 /** @domName SVGFETurbulenceElement.stitchTiles */ |
2384 final SVGAnimatedEnumeration stitchTiles; | 2279 final AnimatedEnumeration stitchTiles; |
2385 | 2280 |
2386 /** @domName SVGFETurbulenceElement.type */ | 2281 /** @domName SVGFETurbulenceElement.type */ |
2387 final SVGAnimatedEnumeration type; | 2282 final AnimatedEnumeration type; |
2388 | 2283 |
2389 // From SVGFilterPrimitiveStandardAttributes | 2284 // From SVGFilterPrimitiveStandardAttributes |
2390 | 2285 |
2391 /** @domName SVGFilterPrimitiveStandardAttributes.height */ | 2286 /** @domName SVGFilterPrimitiveStandardAttributes.height */ |
2392 final SVGAnimatedLength height; | 2287 final AnimatedLength height; |
2393 | 2288 |
2394 /** @domName SVGFilterPrimitiveStandardAttributes.result */ | 2289 /** @domName SVGFilterPrimitiveStandardAttributes.result */ |
2395 final SVGAnimatedString result; | 2290 final AnimatedString result; |
2396 | 2291 |
2397 /** @domName SVGFilterPrimitiveStandardAttributes.width */ | 2292 /** @domName SVGFilterPrimitiveStandardAttributes.width */ |
2398 final SVGAnimatedLength width; | 2293 final AnimatedLength width; |
2399 | 2294 |
2400 /** @domName SVGFilterPrimitiveStandardAttributes.x */ | 2295 /** @domName SVGFilterPrimitiveStandardAttributes.x */ |
2401 final SVGAnimatedLength x; | 2296 final AnimatedLength x; |
2402 | 2297 |
2403 /** @domName SVGFilterPrimitiveStandardAttributes.y */ | 2298 /** @domName SVGFilterPrimitiveStandardAttributes.y */ |
2404 final SVGAnimatedLength y; | 2299 final AnimatedLength y; |
2405 | 2300 |
2406 // From SVGStylable | 2301 // From SVGStylable |
2407 | 2302 |
2408 /** @domName SVGStylable.className */ | 2303 /** @domName SVGStylable.className */ |
2409 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2304 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2410 | 2305 |
2411 // Use implementation from Element. | 2306 // Use implementation from Element. |
2412 // final CSSStyleDeclaration style; | 2307 // final CSSStyleDeclaration style; |
2413 | 2308 |
2414 /** @domName SVGStylable.getPresentationAttribute */ | 2309 /** @domName SVGStylable.getPresentationAttribute */ |
2415 CSSValue getPresentationAttribute(String name) native; | 2310 CSSValue getPresentationAttribute(String name) native; |
2416 } | 2311 } |
2417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2312 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2418 // for details. All rights reserved. Use of this source code is governed by a | 2313 // for details. All rights reserved. Use of this source code is governed by a |
2419 // BSD-style license that can be found in the LICENSE file. | 2314 // BSD-style license that can be found in the LICENSE file. |
2420 | 2315 |
2421 | 2316 |
2422 /// @domName SVGFilterElement | 2317 /// @domName SVGFilterElement |
2423 class SVGFilterElement extends SVGElement implements SVGURIReference, SVGLangSpa
ce, SVGExternalResourcesRequired, SVGStylable native "*SVGFilterElement" { | 2318 class FilterElement extends SvgElement implements UriReference, ExternalResource
sRequired, Stylable, LangSpace native "*SVGFilterElement" { |
2424 | 2319 |
2425 /** @domName SVGFilterElement.filterResX */ | 2320 /** @domName SVGFilterElement.filterResX */ |
2426 final SVGAnimatedInteger filterResX; | 2321 final AnimatedInteger filterResX; |
2427 | 2322 |
2428 /** @domName SVGFilterElement.filterResY */ | 2323 /** @domName SVGFilterElement.filterResY */ |
2429 final SVGAnimatedInteger filterResY; | 2324 final AnimatedInteger filterResY; |
2430 | 2325 |
2431 /** @domName SVGFilterElement.filterUnits */ | 2326 /** @domName SVGFilterElement.filterUnits */ |
2432 final SVGAnimatedEnumeration filterUnits; | 2327 final AnimatedEnumeration filterUnits; |
2433 | 2328 |
2434 /** @domName SVGFilterElement.height */ | 2329 /** @domName SVGFilterElement.height */ |
2435 final SVGAnimatedLength height; | 2330 final AnimatedLength height; |
2436 | 2331 |
2437 /** @domName SVGFilterElement.primitiveUnits */ | 2332 /** @domName SVGFilterElement.primitiveUnits */ |
2438 final SVGAnimatedEnumeration primitiveUnits; | 2333 final AnimatedEnumeration primitiveUnits; |
2439 | 2334 |
2440 /** @domName SVGFilterElement.width */ | 2335 /** @domName SVGFilterElement.width */ |
2441 final SVGAnimatedLength width; | 2336 final AnimatedLength width; |
2442 | 2337 |
2443 /** @domName SVGFilterElement.x */ | 2338 /** @domName SVGFilterElement.x */ |
2444 final SVGAnimatedLength x; | 2339 final AnimatedLength x; |
2445 | 2340 |
2446 /** @domName SVGFilterElement.y */ | 2341 /** @domName SVGFilterElement.y */ |
2447 final SVGAnimatedLength y; | 2342 final AnimatedLength y; |
2448 | 2343 |
2449 /** @domName SVGFilterElement.setFilterRes */ | 2344 /** @domName SVGFilterElement.setFilterRes */ |
2450 void setFilterRes(int filterResX, int filterResY) native; | 2345 void setFilterRes(int filterResX, int filterResY) native; |
2451 | 2346 |
2452 // From SVGExternalResourcesRequired | 2347 // From SVGExternalResourcesRequired |
2453 | 2348 |
2454 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 2349 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
2455 final SVGAnimatedBoolean externalResourcesRequired; | 2350 final AnimatedBoolean externalResourcesRequired; |
2456 | 2351 |
2457 // From SVGLangSpace | 2352 // From SVGLangSpace |
2458 | 2353 |
2459 /** @domName SVGLangSpace.xmllang */ | 2354 /** @domName SVGLangSpace.xmllang */ |
2460 String xmllang; | 2355 String xmllang; |
2461 | 2356 |
2462 /** @domName SVGLangSpace.xmlspace */ | 2357 /** @domName SVGLangSpace.xmlspace */ |
2463 String xmlspace; | 2358 String xmlspace; |
2464 | 2359 |
2465 // From SVGStylable | 2360 // From SVGStylable |
2466 | 2361 |
2467 /** @domName SVGStylable.className */ | 2362 /** @domName SVGStylable.className */ |
2468 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2363 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2469 | 2364 |
2470 // Use implementation from Element. | 2365 // Use implementation from Element. |
2471 // final CSSStyleDeclaration style; | 2366 // final CSSStyleDeclaration style; |
2472 | 2367 |
2473 /** @domName SVGStylable.getPresentationAttribute */ | 2368 /** @domName SVGStylable.getPresentationAttribute */ |
2474 CSSValue getPresentationAttribute(String name) native; | 2369 CSSValue getPresentationAttribute(String name) native; |
2475 | 2370 |
2476 // From SVGURIReference | 2371 // From SVGURIReference |
2477 | 2372 |
2478 /** @domName SVGURIReference.href */ | 2373 /** @domName SVGURIReference.href */ |
2479 final SVGAnimatedString href; | 2374 final AnimatedString href; |
2480 } | 2375 } |
2481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2482 // for details. All rights reserved. Use of this source code is governed by a | 2377 // for details. All rights reserved. Use of this source code is governed by a |
2483 // BSD-style license that can be found in the LICENSE file. | 2378 // BSD-style license that can be found in the LICENSE file. |
2484 | 2379 |
2485 | 2380 |
2486 /// @domName SVGFilterPrimitiveStandardAttributes | 2381 /// @domName SVGFilterPrimitiveStandardAttributes |
2487 abstract class SVGFilterPrimitiveStandardAttributes implements SVGStylable { | 2382 abstract class FilterPrimitiveStandardAttributes implements Stylable { |
2488 | 2383 |
2489 SVGAnimatedLength height; | 2384 AnimatedLength height; |
2490 | 2385 |
2491 SVGAnimatedString result; | 2386 AnimatedString result; |
2492 | 2387 |
2493 SVGAnimatedLength width; | 2388 AnimatedLength width; |
2494 | 2389 |
2495 SVGAnimatedLength x; | 2390 AnimatedLength x; |
2496 | 2391 |
2497 SVGAnimatedLength y; | 2392 AnimatedLength y; |
2498 | 2393 |
2499 // From SVGStylable | 2394 // From SVGStylable |
2500 | 2395 |
2501 SVGAnimatedString className; | 2396 AnimatedString className; |
2502 | 2397 |
2503 CSSStyleDeclaration style; | 2398 CSSStyleDeclaration style; |
2504 | 2399 |
2505 /** @domName SVGStylable.getPresentationAttribute */ | 2400 /** @domName SVGStylable.getPresentationAttribute */ |
2506 CSSValue getPresentationAttribute(String name); | 2401 CSSValue getPresentationAttribute(String name); |
2507 } | 2402 } |
2508 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2509 // for details. All rights reserved. Use of this source code is governed by a | 2404 // for details. All rights reserved. Use of this source code is governed by a |
2510 // BSD-style license that can be found in the LICENSE file. | 2405 // BSD-style license that can be found in the LICENSE file. |
2511 | 2406 |
2512 | 2407 |
2513 /// @domName SVGFitToViewBox | 2408 /// @domName SVGFitToViewBox |
2514 abstract class SVGFitToViewBox { | 2409 abstract class FitToViewBox { |
2515 | 2410 |
2516 SVGAnimatedPreserveAspectRatio preserveAspectRatio; | 2411 AnimatedPreserveAspectRatio preserveAspectRatio; |
2517 | 2412 |
2518 SVGAnimatedRect viewBox; | 2413 AnimatedRect viewBox; |
2519 } | 2414 } |
2520 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2521 // for details. All rights reserved. Use of this source code is governed by a | 2416 // for details. All rights reserved. Use of this source code is governed by a |
2522 // BSD-style license that can be found in the LICENSE file. | 2417 // BSD-style license that can be found in the LICENSE file. |
2523 | 2418 |
2524 | 2419 |
2525 /// @domName SVGFontElement | 2420 /// @domName SVGFontElement |
2526 class SVGFontElement extends SVGElement native "*SVGFontElement" { | 2421 class FontElement extends SvgElement native "*SVGFontElement" { |
2527 } | 2422 } |
2528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2529 // for details. All rights reserved. Use of this source code is governed by a | 2424 // for details. All rights reserved. Use of this source code is governed by a |
2530 // BSD-style license that can be found in the LICENSE file. | 2425 // BSD-style license that can be found in the LICENSE file. |
2531 | 2426 |
2532 | 2427 |
2533 /// @domName SVGFontFaceElement | 2428 /// @domName SVGFontFaceElement |
2534 class SVGFontFaceElement extends SVGElement native "*SVGFontFaceElement" { | 2429 class FontFaceElement extends SvgElement native "*SVGFontFaceElement" { |
2535 } | 2430 } |
2536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2537 // for details. All rights reserved. Use of this source code is governed by a | 2432 // for details. All rights reserved. Use of this source code is governed by a |
2538 // BSD-style license that can be found in the LICENSE file. | 2433 // BSD-style license that can be found in the LICENSE file. |
2539 | 2434 |
2540 | 2435 |
2541 /// @domName SVGFontFaceFormatElement | 2436 /// @domName SVGFontFaceFormatElement |
2542 class SVGFontFaceFormatElement extends SVGElement native "*SVGFontFaceFormatElem
ent" { | 2437 class FontFaceFormatElement extends SvgElement native "*SVGFontFaceFormatElement
" { |
2543 } | 2438 } |
2544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2545 // for details. All rights reserved. Use of this source code is governed by a | 2440 // for details. All rights reserved. Use of this source code is governed by a |
2546 // BSD-style license that can be found in the LICENSE file. | 2441 // BSD-style license that can be found in the LICENSE file. |
2547 | 2442 |
2548 | 2443 |
2549 /// @domName SVGFontFaceNameElement | 2444 /// @domName SVGFontFaceNameElement |
2550 class SVGFontFaceNameElement extends SVGElement native "*SVGFontFaceNameElement"
{ | 2445 class FontFaceNameElement extends SvgElement native "*SVGFontFaceNameElement" { |
2551 } | 2446 } |
2552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2553 // for details. All rights reserved. Use of this source code is governed by a | 2448 // for details. All rights reserved. Use of this source code is governed by a |
2554 // BSD-style license that can be found in the LICENSE file. | 2449 // BSD-style license that can be found in the LICENSE file. |
2555 | 2450 |
2556 | 2451 |
2557 /// @domName SVGFontFaceSrcElement | 2452 /// @domName SVGFontFaceSrcElement |
2558 class SVGFontFaceSrcElement extends SVGElement native "*SVGFontFaceSrcElement" { | 2453 class FontFaceSrcElement extends SvgElement native "*SVGFontFaceSrcElement" { |
2559 } | 2454 } |
2560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2561 // for details. All rights reserved. Use of this source code is governed by a | 2456 // for details. All rights reserved. Use of this source code is governed by a |
2562 // BSD-style license that can be found in the LICENSE file. | 2457 // BSD-style license that can be found in the LICENSE file. |
2563 | 2458 |
2564 | 2459 |
2565 /// @domName SVGFontFaceUriElement | 2460 /// @domName SVGFontFaceUriElement |
2566 class SVGFontFaceUriElement extends SVGElement native "*SVGFontFaceUriElement" { | 2461 class FontFaceUriElement extends SvgElement native "*SVGFontFaceUriElement" { |
2567 } | 2462 } |
2568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2569 // for details. All rights reserved. Use of this source code is governed by a | 2464 // for details. All rights reserved. Use of this source code is governed by a |
2570 // BSD-style license that can be found in the LICENSE file. | 2465 // BSD-style license that can be found in the LICENSE file. |
2571 | 2466 |
2572 | 2467 |
2573 /// @domName SVGForeignObjectElement | 2468 /// @domName SVGForeignObjectElement |
2574 class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGSty
lable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGFore
ignObjectElement" { | 2469 class ForeignObjectElement extends SvgElement implements Transformable, Tests, S
tylable, ExternalResourcesRequired, LangSpace native "*SVGForeignObjectElement"
{ |
2575 | 2470 |
2576 /** @domName SVGForeignObjectElement.height */ | 2471 /** @domName SVGForeignObjectElement.height */ |
2577 final SVGAnimatedLength height; | 2472 final AnimatedLength height; |
2578 | 2473 |
2579 /** @domName SVGForeignObjectElement.width */ | 2474 /** @domName SVGForeignObjectElement.width */ |
2580 final SVGAnimatedLength width; | 2475 final AnimatedLength width; |
2581 | 2476 |
2582 /** @domName SVGForeignObjectElement.x */ | 2477 /** @domName SVGForeignObjectElement.x */ |
2583 final SVGAnimatedLength x; | 2478 final AnimatedLength x; |
2584 | 2479 |
2585 /** @domName SVGForeignObjectElement.y */ | 2480 /** @domName SVGForeignObjectElement.y */ |
2586 final SVGAnimatedLength y; | 2481 final AnimatedLength y; |
2587 | 2482 |
2588 // From SVGExternalResourcesRequired | 2483 // From SVGExternalResourcesRequired |
2589 | 2484 |
2590 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 2485 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
2591 final SVGAnimatedBoolean externalResourcesRequired; | 2486 final AnimatedBoolean externalResourcesRequired; |
2592 | 2487 |
2593 // From SVGLangSpace | 2488 // From SVGLangSpace |
2594 | 2489 |
2595 /** @domName SVGLangSpace.xmllang */ | 2490 /** @domName SVGLangSpace.xmllang */ |
2596 String xmllang; | 2491 String xmllang; |
2597 | 2492 |
2598 /** @domName SVGLangSpace.xmlspace */ | 2493 /** @domName SVGLangSpace.xmlspace */ |
2599 String xmlspace; | 2494 String xmlspace; |
2600 | 2495 |
2601 // From SVGLocatable | 2496 // From SVGLocatable |
2602 | 2497 |
2603 /** @domName SVGLocatable.farthestViewportElement */ | 2498 /** @domName SVGLocatable.farthestViewportElement */ |
2604 final SVGElement farthestViewportElement; | 2499 final SvgElement farthestViewportElement; |
2605 | 2500 |
2606 /** @domName SVGLocatable.nearestViewportElement */ | 2501 /** @domName SVGLocatable.nearestViewportElement */ |
2607 final SVGElement nearestViewportElement; | 2502 final SvgElement nearestViewportElement; |
2608 | 2503 |
2609 /** @domName SVGLocatable.getBBox */ | 2504 /** @domName SVGLocatable.getBBox */ |
2610 SVGRect getBBox() native; | 2505 Rect getBBox() native; |
2611 | 2506 |
2612 /** @domName SVGLocatable.getCTM */ | 2507 /** @domName SVGLocatable.getCTM */ |
2613 SVGMatrix getCTM() native; | 2508 Matrix getCTM() native; |
2614 | 2509 |
2615 /** @domName SVGLocatable.getScreenCTM */ | 2510 /** @domName SVGLocatable.getScreenCTM */ |
2616 SVGMatrix getScreenCTM() native; | 2511 Matrix getScreenCTM() native; |
2617 | 2512 |
2618 /** @domName SVGLocatable.getTransformToElement */ | 2513 /** @domName SVGLocatable.getTransformToElement */ |
2619 SVGMatrix getTransformToElement(SVGElement element) native; | 2514 Matrix getTransformToElement(SvgElement element) native; |
2620 | 2515 |
2621 // From SVGStylable | 2516 // From SVGStylable |
2622 | 2517 |
2623 /** @domName SVGStylable.className */ | 2518 /** @domName SVGStylable.className */ |
2624 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2519 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2625 | 2520 |
2626 // Use implementation from Element. | 2521 // Use implementation from Element. |
2627 // final CSSStyleDeclaration style; | 2522 // final CSSStyleDeclaration style; |
2628 | 2523 |
2629 /** @domName SVGStylable.getPresentationAttribute */ | 2524 /** @domName SVGStylable.getPresentationAttribute */ |
2630 CSSValue getPresentationAttribute(String name) native; | 2525 CSSValue getPresentationAttribute(String name) native; |
2631 | 2526 |
2632 // From SVGTests | 2527 // From SVGTests |
2633 | 2528 |
2634 /** @domName SVGTests.requiredExtensions */ | 2529 /** @domName SVGTests.requiredExtensions */ |
2635 final SVGStringList requiredExtensions; | 2530 final StringList requiredExtensions; |
2636 | 2531 |
2637 /** @domName SVGTests.requiredFeatures */ | 2532 /** @domName SVGTests.requiredFeatures */ |
2638 final SVGStringList requiredFeatures; | 2533 final StringList requiredFeatures; |
2639 | 2534 |
2640 /** @domName SVGTests.systemLanguage */ | 2535 /** @domName SVGTests.systemLanguage */ |
2641 final SVGStringList systemLanguage; | 2536 final StringList systemLanguage; |
2642 | 2537 |
2643 /** @domName SVGTests.hasExtension */ | 2538 /** @domName SVGTests.hasExtension */ |
2644 bool hasExtension(String extension) native; | 2539 bool hasExtension(String extension) native; |
2645 | 2540 |
2646 // From SVGTransformable | 2541 // From SVGTransformable |
2647 | 2542 |
2648 /** @domName SVGTransformable.transform */ | 2543 /** @domName SVGTransformable.transform */ |
2649 final SVGAnimatedTransformList transform; | 2544 final AnimatedTransformList transform; |
2650 } | 2545 } |
2651 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2652 // for details. All rights reserved. Use of this source code is governed by a | 2547 // for details. All rights reserved. Use of this source code is governed by a |
2653 // BSD-style license that can be found in the LICENSE file. | 2548 // BSD-style license that can be found in the LICENSE file. |
2654 | 2549 |
2655 | 2550 |
2656 /// @domName SVGGElement | 2551 /// @domName SVGGElement |
2657 class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTe
sts, SVGTransformable, SVGExternalResourcesRequired native "*SVGGElement" { | 2552 class GElement extends SvgElement implements Transformable, Tests, Stylable, Ext
ernalResourcesRequired, LangSpace native "*SVGGElement" { |
2658 | 2553 |
2659 // From SVGExternalResourcesRequired | 2554 // From SVGExternalResourcesRequired |
2660 | 2555 |
2661 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 2556 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
2662 final SVGAnimatedBoolean externalResourcesRequired; | 2557 final AnimatedBoolean externalResourcesRequired; |
2663 | 2558 |
2664 // From SVGLangSpace | 2559 // From SVGLangSpace |
2665 | 2560 |
2666 /** @domName SVGLangSpace.xmllang */ | 2561 /** @domName SVGLangSpace.xmllang */ |
2667 String xmllang; | 2562 String xmllang; |
2668 | 2563 |
2669 /** @domName SVGLangSpace.xmlspace */ | 2564 /** @domName SVGLangSpace.xmlspace */ |
2670 String xmlspace; | 2565 String xmlspace; |
2671 | 2566 |
2672 // From SVGLocatable | 2567 // From SVGLocatable |
2673 | 2568 |
2674 /** @domName SVGLocatable.farthestViewportElement */ | 2569 /** @domName SVGLocatable.farthestViewportElement */ |
2675 final SVGElement farthestViewportElement; | 2570 final SvgElement farthestViewportElement; |
2676 | 2571 |
2677 /** @domName SVGLocatable.nearestViewportElement */ | 2572 /** @domName SVGLocatable.nearestViewportElement */ |
2678 final SVGElement nearestViewportElement; | 2573 final SvgElement nearestViewportElement; |
2679 | 2574 |
2680 /** @domName SVGLocatable.getBBox */ | 2575 /** @domName SVGLocatable.getBBox */ |
2681 SVGRect getBBox() native; | 2576 Rect getBBox() native; |
2682 | 2577 |
2683 /** @domName SVGLocatable.getCTM */ | 2578 /** @domName SVGLocatable.getCTM */ |
2684 SVGMatrix getCTM() native; | 2579 Matrix getCTM() native; |
2685 | 2580 |
2686 /** @domName SVGLocatable.getScreenCTM */ | 2581 /** @domName SVGLocatable.getScreenCTM */ |
2687 SVGMatrix getScreenCTM() native; | 2582 Matrix getScreenCTM() native; |
2688 | 2583 |
2689 /** @domName SVGLocatable.getTransformToElement */ | 2584 /** @domName SVGLocatable.getTransformToElement */ |
2690 SVGMatrix getTransformToElement(SVGElement element) native; | 2585 Matrix getTransformToElement(SvgElement element) native; |
2691 | 2586 |
2692 // From SVGStylable | 2587 // From SVGStylable |
2693 | 2588 |
2694 /** @domName SVGStylable.className */ | 2589 /** @domName SVGStylable.className */ |
2695 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2590 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2696 | 2591 |
2697 // Use implementation from Element. | 2592 // Use implementation from Element. |
2698 // final CSSStyleDeclaration style; | 2593 // final CSSStyleDeclaration style; |
2699 | 2594 |
2700 /** @domName SVGStylable.getPresentationAttribute */ | 2595 /** @domName SVGStylable.getPresentationAttribute */ |
2701 CSSValue getPresentationAttribute(String name) native; | 2596 CSSValue getPresentationAttribute(String name) native; |
2702 | 2597 |
2703 // From SVGTests | 2598 // From SVGTests |
2704 | 2599 |
2705 /** @domName SVGTests.requiredExtensions */ | 2600 /** @domName SVGTests.requiredExtensions */ |
2706 final SVGStringList requiredExtensions; | 2601 final StringList requiredExtensions; |
2707 | 2602 |
2708 /** @domName SVGTests.requiredFeatures */ | 2603 /** @domName SVGTests.requiredFeatures */ |
2709 final SVGStringList requiredFeatures; | 2604 final StringList requiredFeatures; |
2710 | 2605 |
2711 /** @domName SVGTests.systemLanguage */ | 2606 /** @domName SVGTests.systemLanguage */ |
2712 final SVGStringList systemLanguage; | 2607 final StringList systemLanguage; |
2713 | 2608 |
2714 /** @domName SVGTests.hasExtension */ | 2609 /** @domName SVGTests.hasExtension */ |
2715 bool hasExtension(String extension) native; | 2610 bool hasExtension(String extension) native; |
2716 | 2611 |
2717 // From SVGTransformable | 2612 // From SVGTransformable |
2718 | 2613 |
2719 /** @domName SVGTransformable.transform */ | 2614 /** @domName SVGTransformable.transform */ |
2720 final SVGAnimatedTransformList transform; | 2615 final AnimatedTransformList transform; |
2721 } | 2616 } |
2722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2723 // for details. All rights reserved. Use of this source code is governed by a | 2618 // for details. All rights reserved. Use of this source code is governed by a |
2724 // BSD-style license that can be found in the LICENSE file. | 2619 // BSD-style license that can be found in the LICENSE file. |
2725 | 2620 |
2726 | 2621 |
2727 /// @domName SVGGlyphElement | 2622 /// @domName SVGGlyphElement |
2728 class SVGGlyphElement extends SVGElement native "*SVGGlyphElement" { | 2623 class GlyphElement extends SvgElement native "*SVGGlyphElement" { |
2729 } | 2624 } |
2730 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2731 // for details. All rights reserved. Use of this source code is governed by a | 2626 // for details. All rights reserved. Use of this source code is governed by a |
2732 // BSD-style license that can be found in the LICENSE file. | 2627 // BSD-style license that can be found in the LICENSE file. |
2733 | 2628 |
2734 | 2629 |
2735 /// @domName SVGGlyphRefElement | 2630 /// @domName SVGGlyphRefElement |
2736 class SVGGlyphRefElement extends SVGElement implements SVGURIReference, SVGStyla
ble native "*SVGGlyphRefElement" { | 2631 class GlyphRefElement extends SvgElement implements UriReference, Stylable nativ
e "*SVGGlyphRefElement" { |
2737 | 2632 |
2738 /** @domName SVGGlyphRefElement.dx */ | 2633 /** @domName SVGGlyphRefElement.dx */ |
2739 num dx; | 2634 num dx; |
2740 | 2635 |
2741 /** @domName SVGGlyphRefElement.dy */ | 2636 /** @domName SVGGlyphRefElement.dy */ |
2742 num dy; | 2637 num dy; |
2743 | 2638 |
2744 /** @domName SVGGlyphRefElement.format */ | 2639 /** @domName SVGGlyphRefElement.format */ |
2745 String format; | 2640 String format; |
2746 | 2641 |
2747 /** @domName SVGGlyphRefElement.glyphRef */ | 2642 /** @domName SVGGlyphRefElement.glyphRef */ |
2748 String glyphRef; | 2643 String glyphRef; |
2749 | 2644 |
2750 /** @domName SVGGlyphRefElement.x */ | 2645 /** @domName SVGGlyphRefElement.x */ |
2751 num x; | 2646 num x; |
2752 | 2647 |
2753 /** @domName SVGGlyphRefElement.y */ | 2648 /** @domName SVGGlyphRefElement.y */ |
2754 num y; | 2649 num y; |
2755 | 2650 |
2756 // From SVGStylable | 2651 // From SVGStylable |
2757 | 2652 |
2758 /** @domName SVGStylable.className */ | 2653 /** @domName SVGStylable.className */ |
2759 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2654 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2760 | 2655 |
2761 // Use implementation from Element. | 2656 // Use implementation from Element. |
2762 // final CSSStyleDeclaration style; | 2657 // final CSSStyleDeclaration style; |
2763 | 2658 |
2764 /** @domName SVGStylable.getPresentationAttribute */ | 2659 /** @domName SVGStylable.getPresentationAttribute */ |
2765 CSSValue getPresentationAttribute(String name) native; | 2660 CSSValue getPresentationAttribute(String name) native; |
2766 | 2661 |
2767 // From SVGURIReference | 2662 // From SVGURIReference |
2768 | 2663 |
2769 /** @domName SVGURIReference.href */ | 2664 /** @domName SVGURIReference.href */ |
2770 final SVGAnimatedString href; | 2665 final AnimatedString href; |
2771 } | 2666 } |
2772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2773 // for details. All rights reserved. Use of this source code is governed by a | 2668 // for details. All rights reserved. Use of this source code is governed by a |
2774 // BSD-style license that can be found in the LICENSE file. | 2669 // BSD-style license that can be found in the LICENSE file. |
2775 | 2670 |
2776 | 2671 |
2777 /// @domName SVGGradientElement | 2672 /// @domName SVGGradientElement |
2778 class SVGGradientElement extends SVGElement implements SVGURIReference, SVGExter
nalResourcesRequired, SVGStylable native "*SVGGradientElement" { | 2673 class GradientElement extends SvgElement implements UriReference, ExternalResour
cesRequired, Stylable native "*SVGGradientElement" { |
2779 | 2674 |
2780 static const int SVG_SPREADMETHOD_PAD = 1; | 2675 static const int SVG_SPREADMETHOD_PAD = 1; |
2781 | 2676 |
2782 static const int SVG_SPREADMETHOD_REFLECT = 2; | 2677 static const int SVG_SPREADMETHOD_REFLECT = 2; |
2783 | 2678 |
2784 static const int SVG_SPREADMETHOD_REPEAT = 3; | 2679 static const int SVG_SPREADMETHOD_REPEAT = 3; |
2785 | 2680 |
2786 static const int SVG_SPREADMETHOD_UNKNOWN = 0; | 2681 static const int SVG_SPREADMETHOD_UNKNOWN = 0; |
2787 | 2682 |
2788 /** @domName SVGGradientElement.gradientTransform */ | 2683 /** @domName SVGGradientElement.gradientTransform */ |
2789 final SVGAnimatedTransformList gradientTransform; | 2684 final AnimatedTransformList gradientTransform; |
2790 | 2685 |
2791 /** @domName SVGGradientElement.gradientUnits */ | 2686 /** @domName SVGGradientElement.gradientUnits */ |
2792 final SVGAnimatedEnumeration gradientUnits; | 2687 final AnimatedEnumeration gradientUnits; |
2793 | 2688 |
2794 /** @domName SVGGradientElement.spreadMethod */ | 2689 /** @domName SVGGradientElement.spreadMethod */ |
2795 final SVGAnimatedEnumeration spreadMethod; | 2690 final AnimatedEnumeration spreadMethod; |
2796 | 2691 |
2797 // From SVGExternalResourcesRequired | 2692 // From SVGExternalResourcesRequired |
2798 | 2693 |
2799 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 2694 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
2800 final SVGAnimatedBoolean externalResourcesRequired; | 2695 final AnimatedBoolean externalResourcesRequired; |
2801 | 2696 |
2802 // From SVGStylable | 2697 // From SVGStylable |
2803 | 2698 |
2804 /** @domName SVGStylable.className */ | 2699 /** @domName SVGStylable.className */ |
2805 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2700 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2806 | 2701 |
2807 // Use implementation from Element. | 2702 // Use implementation from Element. |
2808 // final CSSStyleDeclaration style; | 2703 // final CSSStyleDeclaration style; |
2809 | 2704 |
2810 /** @domName SVGStylable.getPresentationAttribute */ | 2705 /** @domName SVGStylable.getPresentationAttribute */ |
2811 CSSValue getPresentationAttribute(String name) native; | 2706 CSSValue getPresentationAttribute(String name) native; |
2812 | 2707 |
2813 // From SVGURIReference | 2708 // From SVGURIReference |
2814 | 2709 |
2815 /** @domName SVGURIReference.href */ | 2710 /** @domName SVGURIReference.href */ |
2816 final SVGAnimatedString href; | 2711 final AnimatedString href; |
2817 } | 2712 } |
2818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2819 // for details. All rights reserved. Use of this source code is governed by a | 2714 // for details. All rights reserved. Use of this source code is governed by a |
2820 // BSD-style license that can be found in the LICENSE file. | 2715 // BSD-style license that can be found in the LICENSE file. |
2821 | 2716 |
2822 | 2717 |
2823 /// @domName SVGHKernElement | 2718 /// @domName SVGHKernElement |
2824 class SVGHKernElement extends SVGElement native "*SVGHKernElement" { | 2719 class HKernElement extends SvgElement native "*SVGHKernElement" { |
2825 } | 2720 } |
2826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2827 // for details. All rights reserved. Use of this source code is governed by a | 2722 // for details. All rights reserved. Use of this source code is governed by a |
2828 // BSD-style license that can be found in the LICENSE file. | 2723 // BSD-style license that can be found in the LICENSE file. |
2829 | 2724 |
2830 | 2725 |
2831 /// @domName SVGImageElement | 2726 /// @domName SVGImageElement |
2832 class SVGImageElement extends SVGElement implements SVGLangSpace, SVGTests, SVGS
tylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable native
"*SVGImageElement" { | 2727 class ImageElement extends SvgElement implements Transformable, Tests, UriRefere
nce, Stylable, ExternalResourcesRequired, LangSpace native "*SVGImageElement" { |
| 2728 |
| 2729 factory ImageElement({String src, int width, int height}) { |
| 2730 if (!?src) { |
| 2731 return _Elements.createImageElement(); |
| 2732 } |
| 2733 if (!?width) { |
| 2734 return _Elements.createImageElement(src); |
| 2735 } |
| 2736 if (!?height) { |
| 2737 return _Elements.createImageElement(src, width); |
| 2738 } |
| 2739 return _Elements.createImageElement(src, width, height); |
| 2740 } |
2833 | 2741 |
2834 /** @domName SVGImageElement.height */ | 2742 /** @domName SVGImageElement.height */ |
2835 final SVGAnimatedLength height; | 2743 final AnimatedLength height; |
2836 | 2744 |
2837 /** @domName SVGImageElement.preserveAspectRatio */ | 2745 /** @domName SVGImageElement.preserveAspectRatio */ |
2838 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | 2746 final AnimatedPreserveAspectRatio preserveAspectRatio; |
2839 | 2747 |
2840 /** @domName SVGImageElement.width */ | 2748 /** @domName SVGImageElement.width */ |
2841 final SVGAnimatedLength width; | 2749 final AnimatedLength width; |
2842 | 2750 |
2843 /** @domName SVGImageElement.x */ | 2751 /** @domName SVGImageElement.x */ |
2844 final SVGAnimatedLength x; | 2752 final AnimatedLength x; |
2845 | 2753 |
2846 /** @domName SVGImageElement.y */ | 2754 /** @domName SVGImageElement.y */ |
2847 final SVGAnimatedLength y; | 2755 final AnimatedLength y; |
2848 | 2756 |
2849 // From SVGExternalResourcesRequired | 2757 // From SVGExternalResourcesRequired |
2850 | 2758 |
2851 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 2759 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
2852 final SVGAnimatedBoolean externalResourcesRequired; | 2760 final AnimatedBoolean externalResourcesRequired; |
2853 | 2761 |
2854 // From SVGLangSpace | 2762 // From SVGLangSpace |
2855 | 2763 |
2856 /** @domName SVGLangSpace.xmllang */ | 2764 /** @domName SVGLangSpace.xmllang */ |
2857 String xmllang; | 2765 String xmllang; |
2858 | 2766 |
2859 /** @domName SVGLangSpace.xmlspace */ | 2767 /** @domName SVGLangSpace.xmlspace */ |
2860 String xmlspace; | 2768 String xmlspace; |
2861 | 2769 |
2862 // From SVGLocatable | 2770 // From SVGLocatable |
2863 | 2771 |
2864 /** @domName SVGLocatable.farthestViewportElement */ | 2772 /** @domName SVGLocatable.farthestViewportElement */ |
2865 final SVGElement farthestViewportElement; | 2773 final SvgElement farthestViewportElement; |
2866 | 2774 |
2867 /** @domName SVGLocatable.nearestViewportElement */ | 2775 /** @domName SVGLocatable.nearestViewportElement */ |
2868 final SVGElement nearestViewportElement; | 2776 final SvgElement nearestViewportElement; |
2869 | 2777 |
2870 /** @domName SVGLocatable.getBBox */ | 2778 /** @domName SVGLocatable.getBBox */ |
2871 SVGRect getBBox() native; | 2779 Rect getBBox() native; |
2872 | 2780 |
2873 /** @domName SVGLocatable.getCTM */ | 2781 /** @domName SVGLocatable.getCTM */ |
2874 SVGMatrix getCTM() native; | 2782 Matrix getCTM() native; |
2875 | 2783 |
2876 /** @domName SVGLocatable.getScreenCTM */ | 2784 /** @domName SVGLocatable.getScreenCTM */ |
2877 SVGMatrix getScreenCTM() native; | 2785 Matrix getScreenCTM() native; |
2878 | 2786 |
2879 /** @domName SVGLocatable.getTransformToElement */ | 2787 /** @domName SVGLocatable.getTransformToElement */ |
2880 SVGMatrix getTransformToElement(SVGElement element) native; | 2788 Matrix getTransformToElement(SvgElement element) native; |
2881 | 2789 |
2882 // From SVGStylable | 2790 // From SVGStylable |
2883 | 2791 |
2884 /** @domName SVGStylable.className */ | 2792 /** @domName SVGStylable.className */ |
2885 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 2793 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
2886 | 2794 |
2887 // Use implementation from Element. | 2795 // Use implementation from Element. |
2888 // final CSSStyleDeclaration style; | 2796 // final CSSStyleDeclaration style; |
2889 | 2797 |
2890 /** @domName SVGStylable.getPresentationAttribute */ | 2798 /** @domName SVGStylable.getPresentationAttribute */ |
2891 CSSValue getPresentationAttribute(String name) native; | 2799 CSSValue getPresentationAttribute(String name) native; |
2892 | 2800 |
2893 // From SVGTests | 2801 // From SVGTests |
2894 | 2802 |
2895 /** @domName SVGTests.requiredExtensions */ | 2803 /** @domName SVGTests.requiredExtensions */ |
2896 final SVGStringList requiredExtensions; | 2804 final StringList requiredExtensions; |
2897 | 2805 |
2898 /** @domName SVGTests.requiredFeatures */ | 2806 /** @domName SVGTests.requiredFeatures */ |
2899 final SVGStringList requiredFeatures; | 2807 final StringList requiredFeatures; |
2900 | 2808 |
2901 /** @domName SVGTests.systemLanguage */ | 2809 /** @domName SVGTests.systemLanguage */ |
2902 final SVGStringList systemLanguage; | 2810 final StringList systemLanguage; |
2903 | 2811 |
2904 /** @domName SVGTests.hasExtension */ | 2812 /** @domName SVGTests.hasExtension */ |
2905 bool hasExtension(String extension) native; | 2813 bool hasExtension(String extension) native; |
2906 | 2814 |
2907 // From SVGTransformable | 2815 // From SVGTransformable |
2908 | 2816 |
2909 /** @domName SVGTransformable.transform */ | 2817 /** @domName SVGTransformable.transform */ |
2910 final SVGAnimatedTransformList transform; | 2818 final AnimatedTransformList transform; |
2911 | 2819 |
2912 // From SVGURIReference | 2820 // From SVGURIReference |
2913 | 2821 |
2914 /** @domName SVGURIReference.href */ | 2822 /** @domName SVGURIReference.href */ |
2915 final SVGAnimatedString href; | 2823 final AnimatedString href; |
2916 } | 2824 } |
2917 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2918 // for details. All rights reserved. Use of this source code is governed by a | 2826 // for details. All rights reserved. Use of this source code is governed by a |
2919 // BSD-style license that can be found in the LICENSE file. | 2827 // BSD-style license that can be found in the LICENSE file. |
2920 | 2828 |
2921 | 2829 |
2922 /// @domName SVGLangSpace | 2830 /// @domName SVGLangSpace |
2923 abstract class SVGLangSpace { | 2831 abstract class LangSpace { |
2924 | 2832 |
2925 String xmllang; | 2833 String xmllang; |
2926 | 2834 |
2927 String xmlspace; | 2835 String xmlspace; |
2928 } | 2836 } |
2929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2837 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2930 // for details. All rights reserved. Use of this source code is governed by a | 2838 // for details. All rights reserved. Use of this source code is governed by a |
2931 // BSD-style license that can be found in the LICENSE file. | 2839 // BSD-style license that can be found in the LICENSE file. |
2932 | 2840 |
2933 | 2841 |
2934 /// @domName SVGLength | 2842 /// @domName SVGLength |
2935 class SVGLength native "*SVGLength" { | 2843 class Length native "*SVGLength" { |
2936 | 2844 |
2937 static const int SVG_LENGTHTYPE_CM = 6; | 2845 static const int SVG_LENGTHTYPE_CM = 6; |
2938 | 2846 |
2939 static const int SVG_LENGTHTYPE_EMS = 3; | 2847 static const int SVG_LENGTHTYPE_EMS = 3; |
2940 | 2848 |
2941 static const int SVG_LENGTHTYPE_EXS = 4; | 2849 static const int SVG_LENGTHTYPE_EXS = 4; |
2942 | 2850 |
2943 static const int SVG_LENGTHTYPE_IN = 8; | 2851 static const int SVG_LENGTHTYPE_IN = 8; |
2944 | 2852 |
2945 static const int SVG_LENGTHTYPE_MM = 7; | 2853 static const int SVG_LENGTHTYPE_MM = 7; |
(...skipping 27 matching lines...) Expand all Loading... |
2973 | 2881 |
2974 /** @domName SVGLength.newValueSpecifiedUnits */ | 2882 /** @domName SVGLength.newValueSpecifiedUnits */ |
2975 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | 2883 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; |
2976 } | 2884 } |
2977 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2978 // for details. All rights reserved. Use of this source code is governed by a | 2886 // for details. All rights reserved. Use of this source code is governed by a |
2979 // BSD-style license that can be found in the LICENSE file. | 2887 // BSD-style license that can be found in the LICENSE file. |
2980 | 2888 |
2981 | 2889 |
2982 /// @domName SVGLengthList | 2890 /// @domName SVGLengthList |
2983 class SVGLengthList implements JavaScriptIndexingBehavior, List<SVGLength> nativ
e "*SVGLengthList" { | 2891 class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
GLengthList" { |
2984 | 2892 |
2985 /** @domName SVGLengthList.numberOfItems */ | 2893 /** @domName SVGLengthList.numberOfItems */ |
2986 final int numberOfItems; | 2894 final int numberOfItems; |
2987 | 2895 |
2988 SVGLength operator[](int index) => JS("SVGLength", "#[#]", this, index); | 2896 Length operator[](int index) => JS("Length", "#[#]", this, index); |
2989 | 2897 |
2990 void operator[]=(int index, SVGLength value) { | 2898 void operator[]=(int index, Length value) { |
2991 throw new UnsupportedError("Cannot assign element of immutable List."); | 2899 throw new UnsupportedError("Cannot assign element of immutable List."); |
2992 } | 2900 } |
2993 // -- start List<SVGLength> mixins. | 2901 // -- start List<Length> mixins. |
2994 // SVGLength is the element type. | 2902 // Length is the element type. |
2995 | 2903 |
2996 // From Iterable<SVGLength>: | 2904 // From Iterable<Length>: |
2997 | 2905 |
2998 Iterator<SVGLength> iterator() { | 2906 Iterator<Length> iterator() { |
2999 // Note: NodeLists are not fixed size. And most probably length shouldn't | 2907 // Note: NodeLists are not fixed size. And most probably length shouldn't |
3000 // be cached in both iterator _and_ forEach method. For now caching it | 2908 // be cached in both iterator _and_ forEach method. For now caching it |
3001 // for consistency. | 2909 // for consistency. |
3002 return new FixedSizeListIterator<SVGLength>(this); | 2910 return new FixedSizeListIterator<Length>(this); |
3003 } | 2911 } |
3004 | 2912 |
3005 // From Collection<SVGLength>: | 2913 // From Collection<Length>: |
3006 | 2914 |
3007 void add(SVGLength value) { | 2915 void add(Length value) { |
3008 throw new UnsupportedError("Cannot add to immutable List."); | 2916 throw new UnsupportedError("Cannot add to immutable List."); |
3009 } | 2917 } |
3010 | 2918 |
3011 void addLast(SVGLength value) { | 2919 void addLast(Length value) { |
3012 throw new UnsupportedError("Cannot add to immutable List."); | 2920 throw new UnsupportedError("Cannot add to immutable List."); |
3013 } | 2921 } |
3014 | 2922 |
3015 void addAll(Collection<SVGLength> collection) { | 2923 void addAll(Collection<Length> collection) { |
3016 throw new UnsupportedError("Cannot add to immutable List."); | 2924 throw new UnsupportedError("Cannot add to immutable List."); |
3017 } | 2925 } |
3018 | 2926 |
3019 bool contains(SVGLength element) => _Collections.contains(this, element); | 2927 bool contains(Length element) => _Collections.contains(this, element); |
3020 | 2928 |
3021 void forEach(void f(SVGLength element)) => _Collections.forEach(this, f); | 2929 void forEach(void f(Length element)) => _Collections.forEach(this, f); |
3022 | 2930 |
3023 Collection map(f(SVGLength element)) => _Collections.map(this, [], f); | 2931 Collection map(f(Length element)) => _Collections.map(this, [], f); |
3024 | 2932 |
3025 Collection<SVGLength> filter(bool f(SVGLength element)) => | 2933 Collection<Length> filter(bool f(Length element)) => |
3026 _Collections.filter(this, <SVGLength>[], f); | 2934 _Collections.filter(this, <Length>[], f); |
3027 | 2935 |
3028 bool every(bool f(SVGLength element)) => _Collections.every(this, f); | 2936 bool every(bool f(Length element)) => _Collections.every(this, f); |
3029 | 2937 |
3030 bool some(bool f(SVGLength element)) => _Collections.some(this, f); | 2938 bool some(bool f(Length element)) => _Collections.some(this, f); |
3031 | 2939 |
3032 bool get isEmpty => this.length == 0; | 2940 bool get isEmpty => this.length == 0; |
3033 | 2941 |
3034 // From List<SVGLength>: | 2942 // From List<Length>: |
3035 | 2943 |
3036 void sort([Comparator<SVGLength> compare = Comparable.compare]) { | 2944 void sort([Comparator<Length> compare = Comparable.compare]) { |
3037 throw new UnsupportedError("Cannot sort immutable List."); | 2945 throw new UnsupportedError("Cannot sort immutable List."); |
3038 } | 2946 } |
3039 | 2947 |
3040 int indexOf(SVGLength element, [int start = 0]) => | 2948 int indexOf(Length element, [int start = 0]) => |
3041 _Lists.indexOf(this, element, start, this.length); | 2949 _Lists.indexOf(this, element, start, this.length); |
3042 | 2950 |
3043 int lastIndexOf(SVGLength element, [int start]) { | 2951 int lastIndexOf(Length element, [int start]) { |
3044 if (start == null) start = length - 1; | 2952 if (start == null) start = length - 1; |
3045 return _Lists.lastIndexOf(this, element, start); | 2953 return _Lists.lastIndexOf(this, element, start); |
3046 } | 2954 } |
3047 | 2955 |
3048 SVGLength get last => this[length - 1]; | 2956 Length get last => this[length - 1]; |
3049 | 2957 |
3050 SVGLength removeLast() { | 2958 Length removeLast() { |
3051 throw new UnsupportedError("Cannot removeLast on immutable List."); | 2959 throw new UnsupportedError("Cannot removeLast on immutable List."); |
3052 } | 2960 } |
3053 | 2961 |
3054 void setRange(int start, int rangeLength, List<SVGLength> from, [int startFrom
]) { | 2962 void setRange(int start, int rangeLength, List<Length> from, [int startFrom])
{ |
3055 throw new UnsupportedError("Cannot setRange on immutable List."); | 2963 throw new UnsupportedError("Cannot setRange on immutable List."); |
3056 } | 2964 } |
3057 | 2965 |
3058 void removeRange(int start, int rangeLength) { | 2966 void removeRange(int start, int rangeLength) { |
3059 throw new UnsupportedError("Cannot removeRange on immutable List."); | 2967 throw new UnsupportedError("Cannot removeRange on immutable List."); |
3060 } | 2968 } |
3061 | 2969 |
3062 void insertRange(int start, int rangeLength, [SVGLength initialValue]) { | 2970 void insertRange(int start, int rangeLength, [Length initialValue]) { |
3063 throw new UnsupportedError("Cannot insertRange on immutable List."); | 2971 throw new UnsupportedError("Cannot insertRange on immutable List."); |
3064 } | 2972 } |
3065 | 2973 |
3066 List<SVGLength> getRange(int start, int rangeLength) => | 2974 List<Length> getRange(int start, int rangeLength) => |
3067 _Lists.getRange(this, start, rangeLength, <SVGLength>[]); | 2975 _Lists.getRange(this, start, rangeLength, <Length>[]); |
3068 | 2976 |
3069 // -- end List<SVGLength> mixins. | 2977 // -- end List<Length> mixins. |
3070 | 2978 |
3071 /** @domName SVGLengthList.appendItem */ | 2979 /** @domName SVGLengthList.appendItem */ |
3072 SVGLength appendItem(SVGLength item) native; | 2980 Length appendItem(Length item) native; |
3073 | 2981 |
3074 /** @domName SVGLengthList.clear */ | 2982 /** @domName SVGLengthList.clear */ |
3075 void clear() native; | 2983 void clear() native; |
3076 | 2984 |
3077 /** @domName SVGLengthList.getItem */ | 2985 /** @domName SVGLengthList.getItem */ |
3078 SVGLength getItem(int index) native; | 2986 Length getItem(int index) native; |
3079 | 2987 |
3080 /** @domName SVGLengthList.initialize */ | 2988 /** @domName SVGLengthList.initialize */ |
3081 SVGLength initialize(SVGLength item) native; | 2989 Length initialize(Length item) native; |
3082 | 2990 |
3083 /** @domName SVGLengthList.insertItemBefore */ | 2991 /** @domName SVGLengthList.insertItemBefore */ |
3084 SVGLength insertItemBefore(SVGLength item, int index) native; | 2992 Length insertItemBefore(Length item, int index) native; |
3085 | 2993 |
3086 /** @domName SVGLengthList.removeItem */ | 2994 /** @domName SVGLengthList.removeItem */ |
3087 SVGLength removeItem(int index) native; | 2995 Length removeItem(int index) native; |
3088 | 2996 |
3089 /** @domName SVGLengthList.replaceItem */ | 2997 /** @domName SVGLengthList.replaceItem */ |
3090 SVGLength replaceItem(SVGLength item, int index) native; | 2998 Length replaceItem(Length item, int index) native; |
3091 } | 2999 } |
3092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3093 // for details. All rights reserved. Use of this source code is governed by a | 3001 // for details. All rights reserved. Use of this source code is governed by a |
3094 // BSD-style license that can be found in the LICENSE file. | 3002 // BSD-style license that can be found in the LICENSE file. |
3095 | 3003 |
3096 | 3004 |
3097 /// @domName SVGLineElement | 3005 /// @domName SVGLineElement |
3098 class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SV
GTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGLineElement"
{ | 3006 class LineElement extends SvgElement implements Transformable, Tests, Stylable,
ExternalResourcesRequired, LangSpace native "*SVGLineElement" { |
3099 | 3007 |
3100 /** @domName SVGLineElement.x1 */ | 3008 /** @domName SVGLineElement.x1 */ |
3101 final SVGAnimatedLength x1; | 3009 final AnimatedLength x1; |
3102 | 3010 |
3103 /** @domName SVGLineElement.x2 */ | 3011 /** @domName SVGLineElement.x2 */ |
3104 final SVGAnimatedLength x2; | 3012 final AnimatedLength x2; |
3105 | 3013 |
3106 /** @domName SVGLineElement.y1 */ | 3014 /** @domName SVGLineElement.y1 */ |
3107 final SVGAnimatedLength y1; | 3015 final AnimatedLength y1; |
3108 | 3016 |
3109 /** @domName SVGLineElement.y2 */ | 3017 /** @domName SVGLineElement.y2 */ |
3110 final SVGAnimatedLength y2; | 3018 final AnimatedLength y2; |
3111 | 3019 |
3112 // From SVGExternalResourcesRequired | 3020 // From SVGExternalResourcesRequired |
3113 | 3021 |
3114 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 3022 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
3115 final SVGAnimatedBoolean externalResourcesRequired; | 3023 final AnimatedBoolean externalResourcesRequired; |
3116 | 3024 |
3117 // From SVGLangSpace | 3025 // From SVGLangSpace |
3118 | 3026 |
3119 /** @domName SVGLangSpace.xmllang */ | 3027 /** @domName SVGLangSpace.xmllang */ |
3120 String xmllang; | 3028 String xmllang; |
3121 | 3029 |
3122 /** @domName SVGLangSpace.xmlspace */ | 3030 /** @domName SVGLangSpace.xmlspace */ |
3123 String xmlspace; | 3031 String xmlspace; |
3124 | 3032 |
3125 // From SVGLocatable | 3033 // From SVGLocatable |
3126 | 3034 |
3127 /** @domName SVGLocatable.farthestViewportElement */ | 3035 /** @domName SVGLocatable.farthestViewportElement */ |
3128 final SVGElement farthestViewportElement; | 3036 final SvgElement farthestViewportElement; |
3129 | 3037 |
3130 /** @domName SVGLocatable.nearestViewportElement */ | 3038 /** @domName SVGLocatable.nearestViewportElement */ |
3131 final SVGElement nearestViewportElement; | 3039 final SvgElement nearestViewportElement; |
3132 | 3040 |
3133 /** @domName SVGLocatable.getBBox */ | 3041 /** @domName SVGLocatable.getBBox */ |
3134 SVGRect getBBox() native; | 3042 Rect getBBox() native; |
3135 | 3043 |
3136 /** @domName SVGLocatable.getCTM */ | 3044 /** @domName SVGLocatable.getCTM */ |
3137 SVGMatrix getCTM() native; | 3045 Matrix getCTM() native; |
3138 | 3046 |
3139 /** @domName SVGLocatable.getScreenCTM */ | 3047 /** @domName SVGLocatable.getScreenCTM */ |
3140 SVGMatrix getScreenCTM() native; | 3048 Matrix getScreenCTM() native; |
3141 | 3049 |
3142 /** @domName SVGLocatable.getTransformToElement */ | 3050 /** @domName SVGLocatable.getTransformToElement */ |
3143 SVGMatrix getTransformToElement(SVGElement element) native; | 3051 Matrix getTransformToElement(SvgElement element) native; |
3144 | 3052 |
3145 // From SVGStylable | 3053 // From SVGStylable |
3146 | 3054 |
3147 /** @domName SVGStylable.className */ | 3055 /** @domName SVGStylable.className */ |
3148 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 3056 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
3149 | 3057 |
3150 // Use implementation from Element. | 3058 // Use implementation from Element. |
3151 // final CSSStyleDeclaration style; | 3059 // final CSSStyleDeclaration style; |
3152 | 3060 |
3153 /** @domName SVGStylable.getPresentationAttribute */ | 3061 /** @domName SVGStylable.getPresentationAttribute */ |
3154 CSSValue getPresentationAttribute(String name) native; | 3062 CSSValue getPresentationAttribute(String name) native; |
3155 | 3063 |
3156 // From SVGTests | 3064 // From SVGTests |
3157 | 3065 |
3158 /** @domName SVGTests.requiredExtensions */ | 3066 /** @domName SVGTests.requiredExtensions */ |
3159 final SVGStringList requiredExtensions; | 3067 final StringList requiredExtensions; |
3160 | 3068 |
3161 /** @domName SVGTests.requiredFeatures */ | 3069 /** @domName SVGTests.requiredFeatures */ |
3162 final SVGStringList requiredFeatures; | 3070 final StringList requiredFeatures; |
3163 | 3071 |
3164 /** @domName SVGTests.systemLanguage */ | 3072 /** @domName SVGTests.systemLanguage */ |
3165 final SVGStringList systemLanguage; | 3073 final StringList systemLanguage; |
3166 | 3074 |
3167 /** @domName SVGTests.hasExtension */ | 3075 /** @domName SVGTests.hasExtension */ |
3168 bool hasExtension(String extension) native; | 3076 bool hasExtension(String extension) native; |
3169 | 3077 |
3170 // From SVGTransformable | 3078 // From SVGTransformable |
3171 | 3079 |
3172 /** @domName SVGTransformable.transform */ | 3080 /** @domName SVGTransformable.transform */ |
3173 final SVGAnimatedTransformList transform; | 3081 final AnimatedTransformList transform; |
3174 } | 3082 } |
3175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3176 // for details. All rights reserved. Use of this source code is governed by a | 3084 // for details. All rights reserved. Use of this source code is governed by a |
3177 // BSD-style license that can be found in the LICENSE file. | 3085 // BSD-style license that can be found in the LICENSE file. |
3178 | 3086 |
3179 | 3087 |
3180 /// @domName SVGLinearGradientElement | 3088 /// @domName SVGLinearGradientElement |
3181 class SVGLinearGradientElement extends SVGGradientElement native "*SVGLinearGrad
ientElement" { | 3089 class LinearGradientElement extends GradientElement native "*SVGLinearGradientEl
ement" { |
3182 | 3090 |
3183 /** @domName SVGLinearGradientElement.x1 */ | 3091 /** @domName SVGLinearGradientElement.x1 */ |
3184 final SVGAnimatedLength x1; | 3092 final AnimatedLength x1; |
3185 | 3093 |
3186 /** @domName SVGLinearGradientElement.x2 */ | 3094 /** @domName SVGLinearGradientElement.x2 */ |
3187 final SVGAnimatedLength x2; | 3095 final AnimatedLength x2; |
3188 | 3096 |
3189 /** @domName SVGLinearGradientElement.y1 */ | 3097 /** @domName SVGLinearGradientElement.y1 */ |
3190 final SVGAnimatedLength y1; | 3098 final AnimatedLength y1; |
3191 | 3099 |
3192 /** @domName SVGLinearGradientElement.y2 */ | 3100 /** @domName SVGLinearGradientElement.y2 */ |
3193 final SVGAnimatedLength y2; | 3101 final AnimatedLength y2; |
3194 } | 3102 } |
3195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3196 // for details. All rights reserved. Use of this source code is governed by a | 3104 // for details. All rights reserved. Use of this source code is governed by a |
3197 // BSD-style license that can be found in the LICENSE file. | 3105 // BSD-style license that can be found in the LICENSE file. |
3198 | 3106 |
3199 | 3107 |
3200 /// @domName SVGLocatable | 3108 /// @domName SVGLocatable |
3201 abstract class SVGLocatable { | 3109 abstract class Locatable { |
3202 | 3110 |
3203 SVGElement farthestViewportElement; | 3111 SvgElement farthestViewportElement; |
3204 | 3112 |
3205 SVGElement nearestViewportElement; | 3113 SvgElement nearestViewportElement; |
3206 | 3114 |
3207 /** @domName SVGLocatable.getBBox */ | 3115 /** @domName SVGLocatable.getBBox */ |
3208 SVGRect getBBox(); | 3116 Rect getBBox(); |
3209 | 3117 |
3210 /** @domName SVGLocatable.getCTM */ | 3118 /** @domName SVGLocatable.getCTM */ |
3211 SVGMatrix getCTM(); | 3119 Matrix getCTM(); |
3212 | 3120 |
3213 /** @domName SVGLocatable.getScreenCTM */ | 3121 /** @domName SVGLocatable.getScreenCTM */ |
3214 SVGMatrix getScreenCTM(); | 3122 Matrix getScreenCTM(); |
3215 | 3123 |
3216 /** @domName SVGLocatable.getTransformToElement */ | 3124 /** @domName SVGLocatable.getTransformToElement */ |
3217 SVGMatrix getTransformToElement(SVGElement element); | 3125 Matrix getTransformToElement(SvgElement element); |
3218 } | 3126 } |
3219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3127 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3220 // for details. All rights reserved. Use of this source code is governed by a | 3128 // for details. All rights reserved. Use of this source code is governed by a |
3221 // BSD-style license that can be found in the LICENSE file. | 3129 // BSD-style license that can be found in the LICENSE file. |
3222 | 3130 |
3223 | 3131 |
3224 /// @domName SVGMPathElement | 3132 /// @domName SVGMPathElement |
3225 class SVGMPathElement extends SVGElement implements SVGURIReference, SVGExternal
ResourcesRequired native "*SVGMPathElement" { | 3133 class MPathElement extends SvgElement implements UriReference, ExternalResources
Required native "*SVGMPathElement" { |
3226 | 3134 |
3227 // From SVGExternalResourcesRequired | 3135 // From SVGExternalResourcesRequired |
3228 | 3136 |
3229 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 3137 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
3230 final SVGAnimatedBoolean externalResourcesRequired; | 3138 final AnimatedBoolean externalResourcesRequired; |
3231 | 3139 |
3232 // From SVGURIReference | 3140 // From SVGURIReference |
3233 | 3141 |
3234 /** @domName SVGURIReference.href */ | 3142 /** @domName SVGURIReference.href */ |
3235 final SVGAnimatedString href; | 3143 final AnimatedString href; |
3236 } | 3144 } |
3237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3238 // for details. All rights reserved. Use of this source code is governed by a | 3146 // for details. All rights reserved. Use of this source code is governed by a |
3239 // BSD-style license that can be found in the LICENSE file. | 3147 // BSD-style license that can be found in the LICENSE file. |
3240 | 3148 |
3241 | 3149 |
3242 /// @domName SVGMarkerElement | 3150 /// @domName SVGMarkerElement |
3243 class SVGMarkerElement extends SVGElement implements SVGLangSpace, SVGFitToViewB
ox, SVGExternalResourcesRequired, SVGStylable native "*SVGMarkerElement" { | 3151 class MarkerElement extends SvgElement implements FitToViewBox, ExternalResource
sRequired, Stylable, LangSpace native "*SVGMarkerElement" { |
3244 | 3152 |
3245 static const int SVG_MARKERUNITS_STROKEWIDTH = 2; | 3153 static const int SVG_MARKERUNITS_STROKEWIDTH = 2; |
3246 | 3154 |
3247 static const int SVG_MARKERUNITS_UNKNOWN = 0; | 3155 static const int SVG_MARKERUNITS_UNKNOWN = 0; |
3248 | 3156 |
3249 static const int SVG_MARKERUNITS_USERSPACEONUSE = 1; | 3157 static const int SVG_MARKERUNITS_USERSPACEONUSE = 1; |
3250 | 3158 |
3251 static const int SVG_MARKER_ORIENT_ANGLE = 2; | 3159 static const int SVG_MARKER_ORIENT_ANGLE = 2; |
3252 | 3160 |
3253 static const int SVG_MARKER_ORIENT_AUTO = 1; | 3161 static const int SVG_MARKER_ORIENT_AUTO = 1; |
3254 | 3162 |
3255 static const int SVG_MARKER_ORIENT_UNKNOWN = 0; | 3163 static const int SVG_MARKER_ORIENT_UNKNOWN = 0; |
3256 | 3164 |
3257 /** @domName SVGMarkerElement.markerHeight */ | 3165 /** @domName SVGMarkerElement.markerHeight */ |
3258 final SVGAnimatedLength markerHeight; | 3166 final AnimatedLength markerHeight; |
3259 | 3167 |
3260 /** @domName SVGMarkerElement.markerUnits */ | 3168 /** @domName SVGMarkerElement.markerUnits */ |
3261 final SVGAnimatedEnumeration markerUnits; | 3169 final AnimatedEnumeration markerUnits; |
3262 | 3170 |
3263 /** @domName SVGMarkerElement.markerWidth */ | 3171 /** @domName SVGMarkerElement.markerWidth */ |
3264 final SVGAnimatedLength markerWidth; | 3172 final AnimatedLength markerWidth; |
3265 | 3173 |
3266 /** @domName SVGMarkerElement.orientAngle */ | 3174 /** @domName SVGMarkerElement.orientAngle */ |
3267 final SVGAnimatedAngle orientAngle; | 3175 final AnimatedAngle orientAngle; |
3268 | 3176 |
3269 /** @domName SVGMarkerElement.orientType */ | 3177 /** @domName SVGMarkerElement.orientType */ |
3270 final SVGAnimatedEnumeration orientType; | 3178 final AnimatedEnumeration orientType; |
3271 | 3179 |
3272 /** @domName SVGMarkerElement.refX */ | 3180 /** @domName SVGMarkerElement.refX */ |
3273 final SVGAnimatedLength refX; | 3181 final AnimatedLength refX; |
3274 | 3182 |
3275 /** @domName SVGMarkerElement.refY */ | 3183 /** @domName SVGMarkerElement.refY */ |
3276 final SVGAnimatedLength refY; | 3184 final AnimatedLength refY; |
3277 | 3185 |
3278 /** @domName SVGMarkerElement.setOrientToAngle */ | 3186 /** @domName SVGMarkerElement.setOrientToAngle */ |
3279 void setOrientToAngle(SVGAngle angle) native; | 3187 void setOrientToAngle(Angle angle) native; |
3280 | 3188 |
3281 /** @domName SVGMarkerElement.setOrientToAuto */ | 3189 /** @domName SVGMarkerElement.setOrientToAuto */ |
3282 void setOrientToAuto() native; | 3190 void setOrientToAuto() native; |
3283 | 3191 |
3284 // From SVGExternalResourcesRequired | 3192 // From SVGExternalResourcesRequired |
3285 | 3193 |
3286 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 3194 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
3287 final SVGAnimatedBoolean externalResourcesRequired; | 3195 final AnimatedBoolean externalResourcesRequired; |
3288 | 3196 |
3289 // From SVGFitToViewBox | 3197 // From SVGFitToViewBox |
3290 | 3198 |
3291 /** @domName SVGFitToViewBox.preserveAspectRatio */ | 3199 /** @domName SVGFitToViewBox.preserveAspectRatio */ |
3292 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | 3200 final AnimatedPreserveAspectRatio preserveAspectRatio; |
3293 | 3201 |
3294 /** @domName SVGFitToViewBox.viewBox */ | 3202 /** @domName SVGFitToViewBox.viewBox */ |
3295 final SVGAnimatedRect viewBox; | 3203 final AnimatedRect viewBox; |
3296 | 3204 |
3297 // From SVGLangSpace | 3205 // From SVGLangSpace |
3298 | 3206 |
3299 /** @domName SVGLangSpace.xmllang */ | 3207 /** @domName SVGLangSpace.xmllang */ |
3300 String xmllang; | 3208 String xmllang; |
3301 | 3209 |
3302 /** @domName SVGLangSpace.xmlspace */ | 3210 /** @domName SVGLangSpace.xmlspace */ |
3303 String xmlspace; | 3211 String xmlspace; |
3304 | 3212 |
3305 // From SVGStylable | 3213 // From SVGStylable |
3306 | 3214 |
3307 /** @domName SVGStylable.className */ | 3215 /** @domName SVGStylable.className */ |
3308 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 3216 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
3309 | 3217 |
3310 // Use implementation from Element. | 3218 // Use implementation from Element. |
3311 // final CSSStyleDeclaration style; | 3219 // final CSSStyleDeclaration style; |
3312 | 3220 |
3313 /** @domName SVGStylable.getPresentationAttribute */ | 3221 /** @domName SVGStylable.getPresentationAttribute */ |
3314 CSSValue getPresentationAttribute(String name) native; | 3222 CSSValue getPresentationAttribute(String name) native; |
3315 } | 3223 } |
3316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3317 // for details. All rights reserved. Use of this source code is governed by a | 3225 // for details. All rights reserved. Use of this source code is governed by a |
3318 // BSD-style license that can be found in the LICENSE file. | 3226 // BSD-style license that can be found in the LICENSE file. |
3319 | 3227 |
3320 | 3228 |
3321 /// @domName SVGMaskElement | 3229 /// @domName SVGMaskElement |
3322 class SVGMaskElement extends SVGElement implements SVGLangSpace, SVGStylable, SV
GTests, SVGExternalResourcesRequired native "*SVGMaskElement" { | 3230 class MaskElement extends SvgElement implements Tests, Stylable, ExternalResourc
esRequired, LangSpace native "*SVGMaskElement" { |
3323 | 3231 |
3324 /** @domName SVGMaskElement.height */ | 3232 /** @domName SVGMaskElement.height */ |
3325 final SVGAnimatedLength height; | 3233 final AnimatedLength height; |
3326 | 3234 |
3327 /** @domName SVGMaskElement.maskContentUnits */ | 3235 /** @domName SVGMaskElement.maskContentUnits */ |
3328 final SVGAnimatedEnumeration maskContentUnits; | 3236 final AnimatedEnumeration maskContentUnits; |
3329 | 3237 |
3330 /** @domName SVGMaskElement.maskUnits */ | 3238 /** @domName SVGMaskElement.maskUnits */ |
3331 final SVGAnimatedEnumeration maskUnits; | 3239 final AnimatedEnumeration maskUnits; |
3332 | 3240 |
3333 /** @domName SVGMaskElement.width */ | 3241 /** @domName SVGMaskElement.width */ |
3334 final SVGAnimatedLength width; | 3242 final AnimatedLength width; |
3335 | 3243 |
3336 /** @domName SVGMaskElement.x */ | 3244 /** @domName SVGMaskElement.x */ |
3337 final SVGAnimatedLength x; | 3245 final AnimatedLength x; |
3338 | 3246 |
3339 /** @domName SVGMaskElement.y */ | 3247 /** @domName SVGMaskElement.y */ |
3340 final SVGAnimatedLength y; | 3248 final AnimatedLength y; |
3341 | 3249 |
3342 // From SVGExternalResourcesRequired | 3250 // From SVGExternalResourcesRequired |
3343 | 3251 |
3344 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 3252 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
3345 final SVGAnimatedBoolean externalResourcesRequired; | 3253 final AnimatedBoolean externalResourcesRequired; |
3346 | 3254 |
3347 // From SVGLangSpace | 3255 // From SVGLangSpace |
3348 | 3256 |
3349 /** @domName SVGLangSpace.xmllang */ | 3257 /** @domName SVGLangSpace.xmllang */ |
3350 String xmllang; | 3258 String xmllang; |
3351 | 3259 |
3352 /** @domName SVGLangSpace.xmlspace */ | 3260 /** @domName SVGLangSpace.xmlspace */ |
3353 String xmlspace; | 3261 String xmlspace; |
3354 | 3262 |
3355 // From SVGStylable | 3263 // From SVGStylable |
3356 | 3264 |
3357 /** @domName SVGStylable.className */ | 3265 /** @domName SVGStylable.className */ |
3358 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 3266 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
3359 | 3267 |
3360 // Use implementation from Element. | 3268 // Use implementation from Element. |
3361 // final CSSStyleDeclaration style; | 3269 // final CSSStyleDeclaration style; |
3362 | 3270 |
3363 /** @domName SVGStylable.getPresentationAttribute */ | 3271 /** @domName SVGStylable.getPresentationAttribute */ |
3364 CSSValue getPresentationAttribute(String name) native; | 3272 CSSValue getPresentationAttribute(String name) native; |
3365 | 3273 |
3366 // From SVGTests | 3274 // From SVGTests |
3367 | 3275 |
3368 /** @domName SVGTests.requiredExtensions */ | 3276 /** @domName SVGTests.requiredExtensions */ |
3369 final SVGStringList requiredExtensions; | 3277 final StringList requiredExtensions; |
3370 | 3278 |
3371 /** @domName SVGTests.requiredFeatures */ | 3279 /** @domName SVGTests.requiredFeatures */ |
3372 final SVGStringList requiredFeatures; | 3280 final StringList requiredFeatures; |
3373 | 3281 |
3374 /** @domName SVGTests.systemLanguage */ | 3282 /** @domName SVGTests.systemLanguage */ |
3375 final SVGStringList systemLanguage; | 3283 final StringList systemLanguage; |
3376 | 3284 |
3377 /** @domName SVGTests.hasExtension */ | 3285 /** @domName SVGTests.hasExtension */ |
3378 bool hasExtension(String extension) native; | 3286 bool hasExtension(String extension) native; |
3379 } | 3287 } |
3380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3381 // for details. All rights reserved. Use of this source code is governed by a | 3289 // for details. All rights reserved. Use of this source code is governed by a |
3382 // BSD-style license that can be found in the LICENSE file. | 3290 // BSD-style license that can be found in the LICENSE file. |
3383 | 3291 |
3384 | 3292 |
3385 /// @domName SVGMatrix | 3293 /// @domName SVGMatrix |
3386 class SVGMatrix native "*SVGMatrix" { | 3294 class Matrix native "*SVGMatrix" { |
3387 | 3295 |
3388 /** @domName SVGMatrix.a */ | 3296 /** @domName SVGMatrix.a */ |
3389 num a; | 3297 num a; |
3390 | 3298 |
3391 /** @domName SVGMatrix.b */ | 3299 /** @domName SVGMatrix.b */ |
3392 num b; | 3300 num b; |
3393 | 3301 |
3394 /** @domName SVGMatrix.c */ | 3302 /** @domName SVGMatrix.c */ |
3395 num c; | 3303 num c; |
3396 | 3304 |
3397 /** @domName SVGMatrix.d */ | 3305 /** @domName SVGMatrix.d */ |
3398 num d; | 3306 num d; |
3399 | 3307 |
3400 /** @domName SVGMatrix.e */ | 3308 /** @domName SVGMatrix.e */ |
3401 num e; | 3309 num e; |
3402 | 3310 |
3403 /** @domName SVGMatrix.f */ | 3311 /** @domName SVGMatrix.f */ |
3404 num f; | 3312 num f; |
3405 | 3313 |
3406 /** @domName SVGMatrix.flipX */ | 3314 /** @domName SVGMatrix.flipX */ |
3407 SVGMatrix flipX() native; | 3315 Matrix flipX() native; |
3408 | 3316 |
3409 /** @domName SVGMatrix.flipY */ | 3317 /** @domName SVGMatrix.flipY */ |
3410 SVGMatrix flipY() native; | 3318 Matrix flipY() native; |
3411 | 3319 |
3412 /** @domName SVGMatrix.inverse */ | 3320 /** @domName SVGMatrix.inverse */ |
3413 SVGMatrix inverse() native; | 3321 Matrix inverse() native; |
3414 | 3322 |
3415 /** @domName SVGMatrix.multiply */ | 3323 /** @domName SVGMatrix.multiply */ |
3416 SVGMatrix multiply(SVGMatrix secondMatrix) native; | 3324 Matrix multiply(Matrix secondMatrix) native; |
3417 | 3325 |
3418 /** @domName SVGMatrix.rotate */ | 3326 /** @domName SVGMatrix.rotate */ |
3419 SVGMatrix rotate(num angle) native; | 3327 Matrix rotate(num angle) native; |
3420 | 3328 |
3421 /** @domName SVGMatrix.rotateFromVector */ | 3329 /** @domName SVGMatrix.rotateFromVector */ |
3422 SVGMatrix rotateFromVector(num x, num y) native; | 3330 Matrix rotateFromVector(num x, num y) native; |
3423 | 3331 |
3424 /** @domName SVGMatrix.scale */ | 3332 /** @domName SVGMatrix.scale */ |
3425 SVGMatrix scale(num scaleFactor) native; | 3333 Matrix scale(num scaleFactor) native; |
3426 | 3334 |
3427 /** @domName SVGMatrix.scaleNonUniform */ | 3335 /** @domName SVGMatrix.scaleNonUniform */ |
3428 SVGMatrix scaleNonUniform(num scaleFactorX, num scaleFactorY) native; | 3336 Matrix scaleNonUniform(num scaleFactorX, num scaleFactorY) native; |
3429 | 3337 |
3430 /** @domName SVGMatrix.skewX */ | 3338 /** @domName SVGMatrix.skewX */ |
3431 SVGMatrix skewX(num angle) native; | 3339 Matrix skewX(num angle) native; |
3432 | 3340 |
3433 /** @domName SVGMatrix.skewY */ | 3341 /** @domName SVGMatrix.skewY */ |
3434 SVGMatrix skewY(num angle) native; | 3342 Matrix skewY(num angle) native; |
3435 | 3343 |
3436 /** @domName SVGMatrix.translate */ | 3344 /** @domName SVGMatrix.translate */ |
3437 SVGMatrix translate(num x, num y) native; | 3345 Matrix translate(num x, num y) native; |
3438 } | 3346 } |
3439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3440 // for details. All rights reserved. Use of this source code is governed by a | 3348 // for details. All rights reserved. Use of this source code is governed by a |
3441 // BSD-style license that can be found in the LICENSE file. | 3349 // BSD-style license that can be found in the LICENSE file. |
3442 | 3350 |
3443 | 3351 |
3444 /// @domName SVGMetadataElement | 3352 /// @domName SVGMetadataElement |
3445 class SVGMetadataElement extends SVGElement native "*SVGMetadataElement" { | 3353 class MetadataElement extends SvgElement native "*SVGMetadataElement" { |
3446 } | 3354 } |
3447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3448 // for details. All rights reserved. Use of this source code is governed by a | 3356 // for details. All rights reserved. Use of this source code is governed by a |
3449 // BSD-style license that can be found in the LICENSE file. | 3357 // BSD-style license that can be found in the LICENSE file. |
3450 | 3358 |
3451 | 3359 |
3452 /// @domName SVGMissingGlyphElement | 3360 /// @domName SVGMissingGlyphElement |
3453 class SVGMissingGlyphElement extends SVGElement native "*SVGMissingGlyphElement"
{ | 3361 class MissingGlyphElement extends SvgElement native "*SVGMissingGlyphElement" { |
3454 } | 3362 } |
3455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3456 // for details. All rights reserved. Use of this source code is governed by a | 3364 // for details. All rights reserved. Use of this source code is governed by a |
3457 // BSD-style license that can be found in the LICENSE file. | 3365 // BSD-style license that can be found in the LICENSE file. |
3458 | 3366 |
3459 | 3367 |
3460 /// @domName SVGNumber | 3368 /// @domName SVGNumber |
3461 class SVGNumber native "*SVGNumber" { | 3369 class Number native "*SVGNumber" { |
3462 | 3370 |
3463 /** @domName SVGNumber.value */ | 3371 /** @domName SVGNumber.value */ |
3464 num value; | 3372 num value; |
3465 } | 3373 } |
3466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3467 // for details. All rights reserved. Use of this source code is governed by a | 3375 // for details. All rights reserved. Use of this source code is governed by a |
3468 // BSD-style license that can be found in the LICENSE file. | 3376 // BSD-style license that can be found in the LICENSE file. |
3469 | 3377 |
3470 | 3378 |
3471 /// @domName SVGNumberList | 3379 /// @domName SVGNumberList |
3472 class SVGNumberList implements JavaScriptIndexingBehavior, List<SVGNumber> nativ
e "*SVGNumberList" { | 3380 class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
GNumberList" { |
3473 | 3381 |
3474 /** @domName SVGNumberList.numberOfItems */ | 3382 /** @domName SVGNumberList.numberOfItems */ |
3475 final int numberOfItems; | 3383 final int numberOfItems; |
3476 | 3384 |
3477 SVGNumber operator[](int index) => JS("SVGNumber", "#[#]", this, index); | 3385 Number operator[](int index) => JS("Number", "#[#]", this, index); |
3478 | 3386 |
3479 void operator[]=(int index, SVGNumber value) { | 3387 void operator[]=(int index, Number value) { |
3480 throw new UnsupportedError("Cannot assign element of immutable List."); | 3388 throw new UnsupportedError("Cannot assign element of immutable List."); |
3481 } | 3389 } |
3482 // -- start List<SVGNumber> mixins. | 3390 // -- start List<Number> mixins. |
3483 // SVGNumber is the element type. | 3391 // Number is the element type. |
3484 | 3392 |
3485 // From Iterable<SVGNumber>: | 3393 // From Iterable<Number>: |
3486 | 3394 |
3487 Iterator<SVGNumber> iterator() { | 3395 Iterator<Number> iterator() { |
3488 // Note: NodeLists are not fixed size. And most probably length shouldn't | 3396 // Note: NodeLists are not fixed size. And most probably length shouldn't |
3489 // be cached in both iterator _and_ forEach method. For now caching it | 3397 // be cached in both iterator _and_ forEach method. For now caching it |
3490 // for consistency. | 3398 // for consistency. |
3491 return new FixedSizeListIterator<SVGNumber>(this); | 3399 return new FixedSizeListIterator<Number>(this); |
3492 } | 3400 } |
3493 | 3401 |
3494 // From Collection<SVGNumber>: | 3402 // From Collection<Number>: |
3495 | 3403 |
3496 void add(SVGNumber value) { | 3404 void add(Number value) { |
3497 throw new UnsupportedError("Cannot add to immutable List."); | 3405 throw new UnsupportedError("Cannot add to immutable List."); |
3498 } | 3406 } |
3499 | 3407 |
3500 void addLast(SVGNumber value) { | 3408 void addLast(Number value) { |
3501 throw new UnsupportedError("Cannot add to immutable List."); | 3409 throw new UnsupportedError("Cannot add to immutable List."); |
3502 } | 3410 } |
3503 | 3411 |
3504 void addAll(Collection<SVGNumber> collection) { | 3412 void addAll(Collection<Number> collection) { |
3505 throw new UnsupportedError("Cannot add to immutable List."); | 3413 throw new UnsupportedError("Cannot add to immutable List."); |
3506 } | 3414 } |
3507 | 3415 |
3508 bool contains(SVGNumber element) => _Collections.contains(this, element); | 3416 bool contains(Number element) => _Collections.contains(this, element); |
3509 | 3417 |
3510 void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f); | 3418 void forEach(void f(Number element)) => _Collections.forEach(this, f); |
3511 | 3419 |
3512 Collection map(f(SVGNumber element)) => _Collections.map(this, [], f); | 3420 Collection map(f(Number element)) => _Collections.map(this, [], f); |
3513 | 3421 |
3514 Collection<SVGNumber> filter(bool f(SVGNumber element)) => | 3422 Collection<Number> filter(bool f(Number element)) => |
3515 _Collections.filter(this, <SVGNumber>[], f); | 3423 _Collections.filter(this, <Number>[], f); |
3516 | 3424 |
3517 bool every(bool f(SVGNumber element)) => _Collections.every(this, f); | 3425 bool every(bool f(Number element)) => _Collections.every(this, f); |
3518 | 3426 |
3519 bool some(bool f(SVGNumber element)) => _Collections.some(this, f); | 3427 bool some(bool f(Number element)) => _Collections.some(this, f); |
3520 | 3428 |
3521 bool get isEmpty => this.length == 0; | 3429 bool get isEmpty => this.length == 0; |
3522 | 3430 |
3523 // From List<SVGNumber>: | 3431 // From List<Number>: |
3524 | 3432 |
3525 void sort([Comparator<SVGNumber> compare = Comparable.compare]) { | 3433 void sort([Comparator<Number> compare = Comparable.compare]) { |
3526 throw new UnsupportedError("Cannot sort immutable List."); | 3434 throw new UnsupportedError("Cannot sort immutable List."); |
3527 } | 3435 } |
3528 | 3436 |
3529 int indexOf(SVGNumber element, [int start = 0]) => | 3437 int indexOf(Number element, [int start = 0]) => |
3530 _Lists.indexOf(this, element, start, this.length); | 3438 _Lists.indexOf(this, element, start, this.length); |
3531 | 3439 |
3532 int lastIndexOf(SVGNumber element, [int start]) { | 3440 int lastIndexOf(Number element, [int start]) { |
3533 if (start == null) start = length - 1; | 3441 if (start == null) start = length - 1; |
3534 return _Lists.lastIndexOf(this, element, start); | 3442 return _Lists.lastIndexOf(this, element, start); |
3535 } | 3443 } |
3536 | 3444 |
3537 SVGNumber get last => this[length - 1]; | 3445 Number get last => this[length - 1]; |
3538 | 3446 |
3539 SVGNumber removeLast() { | 3447 Number removeLast() { |
3540 throw new UnsupportedError("Cannot removeLast on immutable List."); | 3448 throw new UnsupportedError("Cannot removeLast on immutable List."); |
3541 } | 3449 } |
3542 | 3450 |
3543 void setRange(int start, int rangeLength, List<SVGNumber> from, [int startFrom
]) { | 3451 void setRange(int start, int rangeLength, List<Number> from, [int startFrom])
{ |
3544 throw new UnsupportedError("Cannot setRange on immutable List."); | 3452 throw new UnsupportedError("Cannot setRange on immutable List."); |
3545 } | 3453 } |
3546 | 3454 |
3547 void removeRange(int start, int rangeLength) { | 3455 void removeRange(int start, int rangeLength) { |
3548 throw new UnsupportedError("Cannot removeRange on immutable List."); | 3456 throw new UnsupportedError("Cannot removeRange on immutable List."); |
3549 } | 3457 } |
3550 | 3458 |
3551 void insertRange(int start, int rangeLength, [SVGNumber initialValue]) { | 3459 void insertRange(int start, int rangeLength, [Number initialValue]) { |
3552 throw new UnsupportedError("Cannot insertRange on immutable List."); | 3460 throw new UnsupportedError("Cannot insertRange on immutable List."); |
3553 } | 3461 } |
3554 | 3462 |
3555 List<SVGNumber> getRange(int start, int rangeLength) => | 3463 List<Number> getRange(int start, int rangeLength) => |
3556 _Lists.getRange(this, start, rangeLength, <SVGNumber>[]); | 3464 _Lists.getRange(this, start, rangeLength, <Number>[]); |
3557 | 3465 |
3558 // -- end List<SVGNumber> mixins. | 3466 // -- end List<Number> mixins. |
3559 | 3467 |
3560 /** @domName SVGNumberList.appendItem */ | 3468 /** @domName SVGNumberList.appendItem */ |
3561 SVGNumber appendItem(SVGNumber item) native; | 3469 Number appendItem(Number item) native; |
3562 | 3470 |
3563 /** @domName SVGNumberList.clear */ | 3471 /** @domName SVGNumberList.clear */ |
3564 void clear() native; | 3472 void clear() native; |
3565 | 3473 |
3566 /** @domName SVGNumberList.getItem */ | 3474 /** @domName SVGNumberList.getItem */ |
3567 SVGNumber getItem(int index) native; | 3475 Number getItem(int index) native; |
3568 | 3476 |
3569 /** @domName SVGNumberList.initialize */ | 3477 /** @domName SVGNumberList.initialize */ |
3570 SVGNumber initialize(SVGNumber item) native; | 3478 Number initialize(Number item) native; |
3571 | 3479 |
3572 /** @domName SVGNumberList.insertItemBefore */ | 3480 /** @domName SVGNumberList.insertItemBefore */ |
3573 SVGNumber insertItemBefore(SVGNumber item, int index) native; | 3481 Number insertItemBefore(Number item, int index) native; |
3574 | 3482 |
3575 /** @domName SVGNumberList.removeItem */ | 3483 /** @domName SVGNumberList.removeItem */ |
3576 SVGNumber removeItem(int index) native; | 3484 Number removeItem(int index) native; |
3577 | 3485 |
3578 /** @domName SVGNumberList.replaceItem */ | 3486 /** @domName SVGNumberList.replaceItem */ |
3579 SVGNumber replaceItem(SVGNumber item, int index) native; | 3487 Number replaceItem(Number item, int index) native; |
3580 } | 3488 } |
3581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3489 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3582 // for details. All rights reserved. Use of this source code is governed by a | 3490 // for details. All rights reserved. Use of this source code is governed by a |
3583 // BSD-style license that can be found in the LICENSE file. | 3491 // BSD-style license that can be found in the LICENSE file. |
3584 | 3492 |
3585 | 3493 |
3586 /// @domName SVGPaint | 3494 /// @domName SVGPaint |
3587 class SVGPaint extends SVGColor native "*SVGPaint" { | 3495 class Paint extends Color native "*SVGPaint" { |
3588 | 3496 |
3589 static const int SVG_PAINTTYPE_CURRENTCOLOR = 102; | 3497 static const int SVG_PAINTTYPE_CURRENTCOLOR = 102; |
3590 | 3498 |
3591 static const int SVG_PAINTTYPE_NONE = 101; | 3499 static const int SVG_PAINTTYPE_NONE = 101; |
3592 | 3500 |
3593 static const int SVG_PAINTTYPE_RGBCOLOR = 1; | 3501 static const int SVG_PAINTTYPE_RGBCOLOR = 1; |
3594 | 3502 |
3595 static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; | 3503 static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; |
3596 | 3504 |
3597 static const int SVG_PAINTTYPE_UNKNOWN = 0; | 3505 static const int SVG_PAINTTYPE_UNKNOWN = 0; |
(...skipping 19 matching lines...) Expand all Loading... |
3617 | 3525 |
3618 /** @domName SVGPaint.setUri */ | 3526 /** @domName SVGPaint.setUri */ |
3619 void setUri(String uri) native; | 3527 void setUri(String uri) native; |
3620 } | 3528 } |
3621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3622 // for details. All rights reserved. Use of this source code is governed by a | 3530 // for details. All rights reserved. Use of this source code is governed by a |
3623 // BSD-style license that can be found in the LICENSE file. | 3531 // BSD-style license that can be found in the LICENSE file. |
3624 | 3532 |
3625 | 3533 |
3626 /// @domName SVGPathElement | 3534 /// @domName SVGPathElement |
3627 class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SV
GTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGPathElement"
{ | 3535 class PathElement extends SvgElement implements Transformable, Tests, Stylable,
ExternalResourcesRequired, LangSpace native "*SVGPathElement" { |
3628 | 3536 |
3629 /** @domName SVGPathElement.animatedNormalizedPathSegList */ | 3537 /** @domName SVGPathElement.animatedNormalizedPathSegList */ |
3630 final SVGPathSegList animatedNormalizedPathSegList; | 3538 final PathSegList animatedNormalizedPathSegList; |
3631 | 3539 |
3632 /** @domName SVGPathElement.animatedPathSegList */ | 3540 /** @domName SVGPathElement.animatedPathSegList */ |
3633 final SVGPathSegList animatedPathSegList; | 3541 final PathSegList animatedPathSegList; |
3634 | 3542 |
3635 /** @domName SVGPathElement.normalizedPathSegList */ | 3543 /** @domName SVGPathElement.normalizedPathSegList */ |
3636 final SVGPathSegList normalizedPathSegList; | 3544 final PathSegList normalizedPathSegList; |
3637 | 3545 |
3638 /** @domName SVGPathElement.pathLength */ | 3546 /** @domName SVGPathElement.pathLength */ |
3639 final SVGAnimatedNumber pathLength; | 3547 final AnimatedNumber pathLength; |
3640 | 3548 |
3641 /** @domName SVGPathElement.pathSegList */ | 3549 /** @domName SVGPathElement.pathSegList */ |
3642 final SVGPathSegList pathSegList; | 3550 final PathSegList pathSegList; |
3643 | 3551 |
3644 /** @domName SVGPathElement.createSVGPathSegArcAbs */ | 3552 /** @domName SVGPathElement.createSVGPathSegArcAbs */ |
3645 SVGPathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angl
e, bool largeArcFlag, bool sweepFlag) native; | 3553 PathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angle,
bool largeArcFlag, bool sweepFlag) native; |
3646 | 3554 |
3647 /** @domName SVGPathElement.createSVGPathSegArcRel */ | 3555 /** @domName SVGPathElement.createSVGPathSegArcRel */ |
3648 SVGPathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angl
e, bool largeArcFlag, bool sweepFlag) native; | 3556 PathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angle,
bool largeArcFlag, bool sweepFlag) native; |
3649 | 3557 |
3650 /** @domName SVGPathElement.createSVGPathSegClosePath */ | 3558 /** @domName SVGPathElement.createSVGPathSegClosePath */ |
3651 SVGPathSegClosePath createSVGPathSegClosePath() native; | 3559 PathSegClosePath createSVGPathSegClosePath() native; |
3652 | 3560 |
3653 /** @domName SVGPathElement.createSVGPathSegCurvetoCubicAbs */ | 3561 /** @domName SVGPathElement.createSVGPathSegCurvetoCubicAbs */ |
3654 SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1
, num y1, num x2, num y2) native; | 3562 PathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1, n
um y1, num x2, num y2) native; |
3655 | 3563 |
3656 /** @domName SVGPathElement.createSVGPathSegCurvetoCubicRel */ | 3564 /** @domName SVGPathElement.createSVGPathSegCurvetoCubicRel */ |
3657 SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1
, num y1, num x2, num y2) native; | 3565 PathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1, n
um y1, num x2, num y2) native; |
3658 | 3566 |
3659 /** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs */ | 3567 /** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs */ |
3660 SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, n
um y, num x2, num y2) native; | 3568 PathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, num
y, num x2, num y2) native; |
3661 | 3569 |
3662 /** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel */ | 3570 /** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel */ |
3663 SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, n
um y, num x2, num y2) native; | 3571 PathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, num
y, num x2, num y2) native; |
3664 | 3572 |
3665 /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticAbs */ | 3573 /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticAbs */ |
3666 SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y
, num x1, num y1) native; | 3574 PathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y, n
um x1, num y1) native; |
3667 | 3575 |
3668 /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticRel */ | 3576 /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticRel */ |
3669 SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y
, num x1, num y1) native; | 3577 PathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y, n
um x1, num y1) native; |
3670 | 3578 |
3671 /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs */ | 3579 /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs */ |
3672 SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(
num x, num y) native; | 3580 PathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(num
x, num y) native; |
3673 | 3581 |
3674 /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel */ | 3582 /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel */ |
3675 SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(
num x, num y) native; | 3583 PathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(num
x, num y) native; |
3676 | 3584 |
3677 /** @domName SVGPathElement.createSVGPathSegLinetoAbs */ | 3585 /** @domName SVGPathElement.createSVGPathSegLinetoAbs */ |
3678 SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y) native; | 3586 PathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y) native; |
3679 | 3587 |
3680 /** @domName SVGPathElement.createSVGPathSegLinetoHorizontalAbs */ | 3588 /** @domName SVGPathElement.createSVGPathSegLinetoHorizontalAbs */ |
3681 SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x) nativ
e; | 3589 PathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x) native; |
3682 | 3590 |
3683 /** @domName SVGPathElement.createSVGPathSegLinetoHorizontalRel */ | 3591 /** @domName SVGPathElement.createSVGPathSegLinetoHorizontalRel */ |
3684 SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x) nativ
e; | 3592 PathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x) native; |
3685 | 3593 |
3686 /** @domName SVGPathElement.createSVGPathSegLinetoRel */ | 3594 /** @domName SVGPathElement.createSVGPathSegLinetoRel */ |
3687 SVGPathSegLinetoRel createSVGPathSegLinetoRel(num x, num y) native; | 3595 PathSegLinetoRel createSVGPathSegLinetoRel(num x, num y) native; |
3688 | 3596 |
3689 /** @domName SVGPathElement.createSVGPathSegLinetoVerticalAbs */ | 3597 /** @domName SVGPathElement.createSVGPathSegLinetoVerticalAbs */ |
3690 SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y) native; | 3598 PathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y) native; |
3691 | 3599 |
3692 /** @domName SVGPathElement.createSVGPathSegLinetoVerticalRel */ | 3600 /** @domName SVGPathElement.createSVGPathSegLinetoVerticalRel */ |
3693 SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y) native; | 3601 PathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y) native; |
3694 | 3602 |
3695 /** @domName SVGPathElement.createSVGPathSegMovetoAbs */ | 3603 /** @domName SVGPathElement.createSVGPathSegMovetoAbs */ |
3696 SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y) native; | 3604 PathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y) native; |
3697 | 3605 |
3698 /** @domName SVGPathElement.createSVGPathSegMovetoRel */ | 3606 /** @domName SVGPathElement.createSVGPathSegMovetoRel */ |
3699 SVGPathSegMovetoRel createSVGPathSegMovetoRel(num x, num y) native; | 3607 PathSegMovetoRel createSVGPathSegMovetoRel(num x, num y) native; |
3700 | 3608 |
3701 /** @domName SVGPathElement.getPathSegAtLength */ | 3609 /** @domName SVGPathElement.getPathSegAtLength */ |
3702 int getPathSegAtLength(num distance) native; | 3610 int getPathSegAtLength(num distance) native; |
3703 | 3611 |
3704 /** @domName SVGPathElement.getPointAtLength */ | 3612 /** @domName SVGPathElement.getPointAtLength */ |
3705 SVGPoint getPointAtLength(num distance) native; | 3613 Point getPointAtLength(num distance) native; |
3706 | 3614 |
3707 /** @domName SVGPathElement.getTotalLength */ | 3615 /** @domName SVGPathElement.getTotalLength */ |
3708 num getTotalLength() native; | 3616 num getTotalLength() native; |
3709 | 3617 |
3710 // From SVGExternalResourcesRequired | 3618 // From SVGExternalResourcesRequired |
3711 | 3619 |
3712 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 3620 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
3713 final SVGAnimatedBoolean externalResourcesRequired; | 3621 final AnimatedBoolean externalResourcesRequired; |
3714 | 3622 |
3715 // From SVGLangSpace | 3623 // From SVGLangSpace |
3716 | 3624 |
3717 /** @domName SVGLangSpace.xmllang */ | 3625 /** @domName SVGLangSpace.xmllang */ |
3718 String xmllang; | 3626 String xmllang; |
3719 | 3627 |
3720 /** @domName SVGLangSpace.xmlspace */ | 3628 /** @domName SVGLangSpace.xmlspace */ |
3721 String xmlspace; | 3629 String xmlspace; |
3722 | 3630 |
3723 // From SVGLocatable | 3631 // From SVGLocatable |
3724 | 3632 |
3725 /** @domName SVGLocatable.farthestViewportElement */ | 3633 /** @domName SVGLocatable.farthestViewportElement */ |
3726 final SVGElement farthestViewportElement; | 3634 final SvgElement farthestViewportElement; |
3727 | 3635 |
3728 /** @domName SVGLocatable.nearestViewportElement */ | 3636 /** @domName SVGLocatable.nearestViewportElement */ |
3729 final SVGElement nearestViewportElement; | 3637 final SvgElement nearestViewportElement; |
3730 | 3638 |
3731 /** @domName SVGLocatable.getBBox */ | 3639 /** @domName SVGLocatable.getBBox */ |
3732 SVGRect getBBox() native; | 3640 Rect getBBox() native; |
3733 | 3641 |
3734 /** @domName SVGLocatable.getCTM */ | 3642 /** @domName SVGLocatable.getCTM */ |
3735 SVGMatrix getCTM() native; | 3643 Matrix getCTM() native; |
3736 | 3644 |
3737 /** @domName SVGLocatable.getScreenCTM */ | 3645 /** @domName SVGLocatable.getScreenCTM */ |
3738 SVGMatrix getScreenCTM() native; | 3646 Matrix getScreenCTM() native; |
3739 | 3647 |
3740 /** @domName SVGLocatable.getTransformToElement */ | 3648 /** @domName SVGLocatable.getTransformToElement */ |
3741 SVGMatrix getTransformToElement(SVGElement element) native; | 3649 Matrix getTransformToElement(SvgElement element) native; |
3742 | 3650 |
3743 // From SVGStylable | 3651 // From SVGStylable |
3744 | 3652 |
3745 /** @domName SVGStylable.className */ | 3653 /** @domName SVGStylable.className */ |
3746 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 3654 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
3747 | 3655 |
3748 // Use implementation from Element. | 3656 // Use implementation from Element. |
3749 // final CSSStyleDeclaration style; | 3657 // final CSSStyleDeclaration style; |
3750 | 3658 |
3751 /** @domName SVGStylable.getPresentationAttribute */ | 3659 /** @domName SVGStylable.getPresentationAttribute */ |
3752 CSSValue getPresentationAttribute(String name) native; | 3660 CSSValue getPresentationAttribute(String name) native; |
3753 | 3661 |
3754 // From SVGTests | 3662 // From SVGTests |
3755 | 3663 |
3756 /** @domName SVGTests.requiredExtensions */ | 3664 /** @domName SVGTests.requiredExtensions */ |
3757 final SVGStringList requiredExtensions; | 3665 final StringList requiredExtensions; |
3758 | 3666 |
3759 /** @domName SVGTests.requiredFeatures */ | 3667 /** @domName SVGTests.requiredFeatures */ |
3760 final SVGStringList requiredFeatures; | 3668 final StringList requiredFeatures; |
3761 | 3669 |
3762 /** @domName SVGTests.systemLanguage */ | 3670 /** @domName SVGTests.systemLanguage */ |
3763 final SVGStringList systemLanguage; | 3671 final StringList systemLanguage; |
3764 | 3672 |
3765 /** @domName SVGTests.hasExtension */ | 3673 /** @domName SVGTests.hasExtension */ |
3766 bool hasExtension(String extension) native; | 3674 bool hasExtension(String extension) native; |
3767 | 3675 |
3768 // From SVGTransformable | 3676 // From SVGTransformable |
3769 | 3677 |
3770 /** @domName SVGTransformable.transform */ | 3678 /** @domName SVGTransformable.transform */ |
3771 final SVGAnimatedTransformList transform; | 3679 final AnimatedTransformList transform; |
3772 } | 3680 } |
3773 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3681 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3774 // for details. All rights reserved. Use of this source code is governed by a | 3682 // for details. All rights reserved. Use of this source code is governed by a |
3775 // BSD-style license that can be found in the LICENSE file. | 3683 // BSD-style license that can be found in the LICENSE file. |
3776 | 3684 |
3777 | 3685 |
3778 /// @domName SVGPathSeg | 3686 /// @domName SVGPathSeg |
3779 class SVGPathSeg native "*SVGPathSeg" { | 3687 class PathSeg native "*SVGPathSeg" { |
3780 | 3688 |
3781 static const int PATHSEG_ARC_ABS = 10; | 3689 static const int PATHSEG_ARC_ABS = 10; |
3782 | 3690 |
3783 static const int PATHSEG_ARC_REL = 11; | 3691 static const int PATHSEG_ARC_REL = 11; |
3784 | 3692 |
3785 static const int PATHSEG_CLOSEPATH = 1; | 3693 static const int PATHSEG_CLOSEPATH = 1; |
3786 | 3694 |
3787 static const int PATHSEG_CURVETO_CUBIC_ABS = 6; | 3695 static const int PATHSEG_CURVETO_CUBIC_ABS = 6; |
3788 | 3696 |
3789 static const int PATHSEG_CURVETO_CUBIC_REL = 7; | 3697 static const int PATHSEG_CURVETO_CUBIC_REL = 7; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3823 | 3731 |
3824 /** @domName SVGPathSeg.pathSegTypeAsLetter */ | 3732 /** @domName SVGPathSeg.pathSegTypeAsLetter */ |
3825 final String pathSegTypeAsLetter; | 3733 final String pathSegTypeAsLetter; |
3826 } | 3734 } |
3827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3828 // for details. All rights reserved. Use of this source code is governed by a | 3736 // for details. All rights reserved. Use of this source code is governed by a |
3829 // BSD-style license that can be found in the LICENSE file. | 3737 // BSD-style license that can be found in the LICENSE file. |
3830 | 3738 |
3831 | 3739 |
3832 /// @domName SVGPathSegArcAbs | 3740 /// @domName SVGPathSegArcAbs |
3833 class SVGPathSegArcAbs extends SVGPathSeg native "*SVGPathSegArcAbs" { | 3741 class PathSegArcAbs extends PathSeg native "*SVGPathSegArcAbs" { |
3834 | 3742 |
3835 /** @domName SVGPathSegArcAbs.angle */ | 3743 /** @domName SVGPathSegArcAbs.angle */ |
3836 num angle; | 3744 num angle; |
3837 | 3745 |
3838 /** @domName SVGPathSegArcAbs.largeArcFlag */ | 3746 /** @domName SVGPathSegArcAbs.largeArcFlag */ |
3839 bool largeArcFlag; | 3747 bool largeArcFlag; |
3840 | 3748 |
3841 /** @domName SVGPathSegArcAbs.r1 */ | 3749 /** @domName SVGPathSegArcAbs.r1 */ |
3842 num r1; | 3750 num r1; |
3843 | 3751 |
3844 /** @domName SVGPathSegArcAbs.r2 */ | 3752 /** @domName SVGPathSegArcAbs.r2 */ |
3845 num r2; | 3753 num r2; |
3846 | 3754 |
3847 /** @domName SVGPathSegArcAbs.sweepFlag */ | 3755 /** @domName SVGPathSegArcAbs.sweepFlag */ |
3848 bool sweepFlag; | 3756 bool sweepFlag; |
3849 | 3757 |
3850 /** @domName SVGPathSegArcAbs.x */ | 3758 /** @domName SVGPathSegArcAbs.x */ |
3851 num x; | 3759 num x; |
3852 | 3760 |
3853 /** @domName SVGPathSegArcAbs.y */ | 3761 /** @domName SVGPathSegArcAbs.y */ |
3854 num y; | 3762 num y; |
3855 } | 3763 } |
3856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3857 // for details. All rights reserved. Use of this source code is governed by a | 3765 // for details. All rights reserved. Use of this source code is governed by a |
3858 // BSD-style license that can be found in the LICENSE file. | 3766 // BSD-style license that can be found in the LICENSE file. |
3859 | 3767 |
3860 | 3768 |
3861 /// @domName SVGPathSegArcRel | 3769 /// @domName SVGPathSegArcRel |
3862 class SVGPathSegArcRel extends SVGPathSeg native "*SVGPathSegArcRel" { | 3770 class PathSegArcRel extends PathSeg native "*SVGPathSegArcRel" { |
3863 | 3771 |
3864 /** @domName SVGPathSegArcRel.angle */ | 3772 /** @domName SVGPathSegArcRel.angle */ |
3865 num angle; | 3773 num angle; |
3866 | 3774 |
3867 /** @domName SVGPathSegArcRel.largeArcFlag */ | 3775 /** @domName SVGPathSegArcRel.largeArcFlag */ |
3868 bool largeArcFlag; | 3776 bool largeArcFlag; |
3869 | 3777 |
3870 /** @domName SVGPathSegArcRel.r1 */ | 3778 /** @domName SVGPathSegArcRel.r1 */ |
3871 num r1; | 3779 num r1; |
3872 | 3780 |
3873 /** @domName SVGPathSegArcRel.r2 */ | 3781 /** @domName SVGPathSegArcRel.r2 */ |
3874 num r2; | 3782 num r2; |
3875 | 3783 |
3876 /** @domName SVGPathSegArcRel.sweepFlag */ | 3784 /** @domName SVGPathSegArcRel.sweepFlag */ |
3877 bool sweepFlag; | 3785 bool sweepFlag; |
3878 | 3786 |
3879 /** @domName SVGPathSegArcRel.x */ | 3787 /** @domName SVGPathSegArcRel.x */ |
3880 num x; | 3788 num x; |
3881 | 3789 |
3882 /** @domName SVGPathSegArcRel.y */ | 3790 /** @domName SVGPathSegArcRel.y */ |
3883 num y; | 3791 num y; |
3884 } | 3792 } |
3885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3886 // for details. All rights reserved. Use of this source code is governed by a | 3794 // for details. All rights reserved. Use of this source code is governed by a |
3887 // BSD-style license that can be found in the LICENSE file. | 3795 // BSD-style license that can be found in the LICENSE file. |
3888 | 3796 |
3889 | 3797 |
3890 /// @domName SVGPathSegClosePath | 3798 /// @domName SVGPathSegClosePath |
3891 class SVGPathSegClosePath extends SVGPathSeg native "*SVGPathSegClosePath" { | 3799 class PathSegClosePath extends PathSeg native "*SVGPathSegClosePath" { |
3892 } | 3800 } |
3893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3894 // for details. All rights reserved. Use of this source code is governed by a | 3802 // for details. All rights reserved. Use of this source code is governed by a |
3895 // BSD-style license that can be found in the LICENSE file. | 3803 // BSD-style license that can be found in the LICENSE file. |
3896 | 3804 |
3897 | 3805 |
3898 /// @domName SVGPathSegCurvetoCubicAbs | 3806 /// @domName SVGPathSegCurvetoCubicAbs |
3899 class SVGPathSegCurvetoCubicAbs extends SVGPathSeg native "*SVGPathSegCurvetoCub
icAbs" { | 3807 class PathSegCurvetoCubicAbs extends PathSeg native "*SVGPathSegCurvetoCubicAbs"
{ |
3900 | 3808 |
3901 /** @domName SVGPathSegCurvetoCubicAbs.x */ | 3809 /** @domName SVGPathSegCurvetoCubicAbs.x */ |
3902 num x; | 3810 num x; |
3903 | 3811 |
3904 /** @domName SVGPathSegCurvetoCubicAbs.x1 */ | 3812 /** @domName SVGPathSegCurvetoCubicAbs.x1 */ |
3905 num x1; | 3813 num x1; |
3906 | 3814 |
3907 /** @domName SVGPathSegCurvetoCubicAbs.x2 */ | 3815 /** @domName SVGPathSegCurvetoCubicAbs.x2 */ |
3908 num x2; | 3816 num x2; |
3909 | 3817 |
3910 /** @domName SVGPathSegCurvetoCubicAbs.y */ | 3818 /** @domName SVGPathSegCurvetoCubicAbs.y */ |
3911 num y; | 3819 num y; |
3912 | 3820 |
3913 /** @domName SVGPathSegCurvetoCubicAbs.y1 */ | 3821 /** @domName SVGPathSegCurvetoCubicAbs.y1 */ |
3914 num y1; | 3822 num y1; |
3915 | 3823 |
3916 /** @domName SVGPathSegCurvetoCubicAbs.y2 */ | 3824 /** @domName SVGPathSegCurvetoCubicAbs.y2 */ |
3917 num y2; | 3825 num y2; |
3918 } | 3826 } |
3919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3920 // for details. All rights reserved. Use of this source code is governed by a | 3828 // for details. All rights reserved. Use of this source code is governed by a |
3921 // BSD-style license that can be found in the LICENSE file. | 3829 // BSD-style license that can be found in the LICENSE file. |
3922 | 3830 |
3923 | 3831 |
3924 /// @domName SVGPathSegCurvetoCubicRel | 3832 /// @domName SVGPathSegCurvetoCubicRel |
3925 class SVGPathSegCurvetoCubicRel extends SVGPathSeg native "*SVGPathSegCurvetoCub
icRel" { | 3833 class PathSegCurvetoCubicRel extends PathSeg native "*SVGPathSegCurvetoCubicRel"
{ |
3926 | 3834 |
3927 /** @domName SVGPathSegCurvetoCubicRel.x */ | 3835 /** @domName SVGPathSegCurvetoCubicRel.x */ |
3928 num x; | 3836 num x; |
3929 | 3837 |
3930 /** @domName SVGPathSegCurvetoCubicRel.x1 */ | 3838 /** @domName SVGPathSegCurvetoCubicRel.x1 */ |
3931 num x1; | 3839 num x1; |
3932 | 3840 |
3933 /** @domName SVGPathSegCurvetoCubicRel.x2 */ | 3841 /** @domName SVGPathSegCurvetoCubicRel.x2 */ |
3934 num x2; | 3842 num x2; |
3935 | 3843 |
3936 /** @domName SVGPathSegCurvetoCubicRel.y */ | 3844 /** @domName SVGPathSegCurvetoCubicRel.y */ |
3937 num y; | 3845 num y; |
3938 | 3846 |
3939 /** @domName SVGPathSegCurvetoCubicRel.y1 */ | 3847 /** @domName SVGPathSegCurvetoCubicRel.y1 */ |
3940 num y1; | 3848 num y1; |
3941 | 3849 |
3942 /** @domName SVGPathSegCurvetoCubicRel.y2 */ | 3850 /** @domName SVGPathSegCurvetoCubicRel.y2 */ |
3943 num y2; | 3851 num y2; |
3944 } | 3852 } |
3945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3946 // for details. All rights reserved. Use of this source code is governed by a | 3854 // for details. All rights reserved. Use of this source code is governed by a |
3947 // BSD-style license that can be found in the LICENSE file. | 3855 // BSD-style license that can be found in the LICENSE file. |
3948 | 3856 |
3949 | 3857 |
3950 /// @domName SVGPathSegCurvetoCubicSmoothAbs | 3858 /// @domName SVGPathSegCurvetoCubicSmoothAbs |
3951 class SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg native "*SVGPathSegCurv
etoCubicSmoothAbs" { | 3859 class PathSegCurvetoCubicSmoothAbs extends PathSeg native "*SVGPathSegCurvetoCub
icSmoothAbs" { |
3952 | 3860 |
3953 /** @domName SVGPathSegCurvetoCubicSmoothAbs.x */ | 3861 /** @domName SVGPathSegCurvetoCubicSmoothAbs.x */ |
3954 num x; | 3862 num x; |
3955 | 3863 |
3956 /** @domName SVGPathSegCurvetoCubicSmoothAbs.x2 */ | 3864 /** @domName SVGPathSegCurvetoCubicSmoothAbs.x2 */ |
3957 num x2; | 3865 num x2; |
3958 | 3866 |
3959 /** @domName SVGPathSegCurvetoCubicSmoothAbs.y */ | 3867 /** @domName SVGPathSegCurvetoCubicSmoothAbs.y */ |
3960 num y; | 3868 num y; |
3961 | 3869 |
3962 /** @domName SVGPathSegCurvetoCubicSmoothAbs.y2 */ | 3870 /** @domName SVGPathSegCurvetoCubicSmoothAbs.y2 */ |
3963 num y2; | 3871 num y2; |
3964 } | 3872 } |
3965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3966 // for details. All rights reserved. Use of this source code is governed by a | 3874 // for details. All rights reserved. Use of this source code is governed by a |
3967 // BSD-style license that can be found in the LICENSE file. | 3875 // BSD-style license that can be found in the LICENSE file. |
3968 | 3876 |
3969 | 3877 |
3970 /// @domName SVGPathSegCurvetoCubicSmoothRel | 3878 /// @domName SVGPathSegCurvetoCubicSmoothRel |
3971 class SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg native "*SVGPathSegCurv
etoCubicSmoothRel" { | 3879 class PathSegCurvetoCubicSmoothRel extends PathSeg native "*SVGPathSegCurvetoCub
icSmoothRel" { |
3972 | 3880 |
3973 /** @domName SVGPathSegCurvetoCubicSmoothRel.x */ | 3881 /** @domName SVGPathSegCurvetoCubicSmoothRel.x */ |
3974 num x; | 3882 num x; |
3975 | 3883 |
3976 /** @domName SVGPathSegCurvetoCubicSmoothRel.x2 */ | 3884 /** @domName SVGPathSegCurvetoCubicSmoothRel.x2 */ |
3977 num x2; | 3885 num x2; |
3978 | 3886 |
3979 /** @domName SVGPathSegCurvetoCubicSmoothRel.y */ | 3887 /** @domName SVGPathSegCurvetoCubicSmoothRel.y */ |
3980 num y; | 3888 num y; |
3981 | 3889 |
3982 /** @domName SVGPathSegCurvetoCubicSmoothRel.y2 */ | 3890 /** @domName SVGPathSegCurvetoCubicSmoothRel.y2 */ |
3983 num y2; | 3891 num y2; |
3984 } | 3892 } |
3985 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3986 // for details. All rights reserved. Use of this source code is governed by a | 3894 // for details. All rights reserved. Use of this source code is governed by a |
3987 // BSD-style license that can be found in the LICENSE file. | 3895 // BSD-style license that can be found in the LICENSE file. |
3988 | 3896 |
3989 | 3897 |
3990 /// @domName SVGPathSegCurvetoQuadraticAbs | 3898 /// @domName SVGPathSegCurvetoQuadraticAbs |
3991 class SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg native "*SVGPathSegCurvet
oQuadraticAbs" { | 3899 class PathSegCurvetoQuadraticAbs extends PathSeg native "*SVGPathSegCurvetoQuadr
aticAbs" { |
3992 | 3900 |
3993 /** @domName SVGPathSegCurvetoQuadraticAbs.x */ | 3901 /** @domName SVGPathSegCurvetoQuadraticAbs.x */ |
3994 num x; | 3902 num x; |
3995 | 3903 |
3996 /** @domName SVGPathSegCurvetoQuadraticAbs.x1 */ | 3904 /** @domName SVGPathSegCurvetoQuadraticAbs.x1 */ |
3997 num x1; | 3905 num x1; |
3998 | 3906 |
3999 /** @domName SVGPathSegCurvetoQuadraticAbs.y */ | 3907 /** @domName SVGPathSegCurvetoQuadraticAbs.y */ |
4000 num y; | 3908 num y; |
4001 | 3909 |
4002 /** @domName SVGPathSegCurvetoQuadraticAbs.y1 */ | 3910 /** @domName SVGPathSegCurvetoQuadraticAbs.y1 */ |
4003 num y1; | 3911 num y1; |
4004 } | 3912 } |
4005 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3913 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4006 // for details. All rights reserved. Use of this source code is governed by a | 3914 // for details. All rights reserved. Use of this source code is governed by a |
4007 // BSD-style license that can be found in the LICENSE file. | 3915 // BSD-style license that can be found in the LICENSE file. |
4008 | 3916 |
4009 | 3917 |
4010 /// @domName SVGPathSegCurvetoQuadraticRel | 3918 /// @domName SVGPathSegCurvetoQuadraticRel |
4011 class SVGPathSegCurvetoQuadraticRel extends SVGPathSeg native "*SVGPathSegCurvet
oQuadraticRel" { | 3919 class PathSegCurvetoQuadraticRel extends PathSeg native "*SVGPathSegCurvetoQuadr
aticRel" { |
4012 | 3920 |
4013 /** @domName SVGPathSegCurvetoQuadraticRel.x */ | 3921 /** @domName SVGPathSegCurvetoQuadraticRel.x */ |
4014 num x; | 3922 num x; |
4015 | 3923 |
4016 /** @domName SVGPathSegCurvetoQuadraticRel.x1 */ | 3924 /** @domName SVGPathSegCurvetoQuadraticRel.x1 */ |
4017 num x1; | 3925 num x1; |
4018 | 3926 |
4019 /** @domName SVGPathSegCurvetoQuadraticRel.y */ | 3927 /** @domName SVGPathSegCurvetoQuadraticRel.y */ |
4020 num y; | 3928 num y; |
4021 | 3929 |
4022 /** @domName SVGPathSegCurvetoQuadraticRel.y1 */ | 3930 /** @domName SVGPathSegCurvetoQuadraticRel.y1 */ |
4023 num y1; | 3931 num y1; |
4024 } | 3932 } |
4025 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4026 // for details. All rights reserved. Use of this source code is governed by a | 3934 // for details. All rights reserved. Use of this source code is governed by a |
4027 // BSD-style license that can be found in the LICENSE file. | 3935 // BSD-style license that can be found in the LICENSE file. |
4028 | 3936 |
4029 | 3937 |
4030 /// @domName SVGPathSegCurvetoQuadraticSmoothAbs | 3938 /// @domName SVGPathSegCurvetoQuadraticSmoothAbs |
4031 class SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg native "*SVGPathSeg
CurvetoQuadraticSmoothAbs" { | 3939 class PathSegCurvetoQuadraticSmoothAbs extends PathSeg native "*SVGPathSegCurvet
oQuadraticSmoothAbs" { |
4032 | 3940 |
4033 /** @domName SVGPathSegCurvetoQuadraticSmoothAbs.x */ | 3941 /** @domName SVGPathSegCurvetoQuadraticSmoothAbs.x */ |
4034 num x; | 3942 num x; |
4035 | 3943 |
4036 /** @domName SVGPathSegCurvetoQuadraticSmoothAbs.y */ | 3944 /** @domName SVGPathSegCurvetoQuadraticSmoothAbs.y */ |
4037 num y; | 3945 num y; |
4038 } | 3946 } |
4039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4040 // for details. All rights reserved. Use of this source code is governed by a | 3948 // for details. All rights reserved. Use of this source code is governed by a |
4041 // BSD-style license that can be found in the LICENSE file. | 3949 // BSD-style license that can be found in the LICENSE file. |
4042 | 3950 |
4043 | 3951 |
4044 /// @domName SVGPathSegCurvetoQuadraticSmoothRel | 3952 /// @domName SVGPathSegCurvetoQuadraticSmoothRel |
4045 class SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg native "*SVGPathSeg
CurvetoQuadraticSmoothRel" { | 3953 class PathSegCurvetoQuadraticSmoothRel extends PathSeg native "*SVGPathSegCurvet
oQuadraticSmoothRel" { |
4046 | 3954 |
4047 /** @domName SVGPathSegCurvetoQuadraticSmoothRel.x */ | 3955 /** @domName SVGPathSegCurvetoQuadraticSmoothRel.x */ |
4048 num x; | 3956 num x; |
4049 | 3957 |
4050 /** @domName SVGPathSegCurvetoQuadraticSmoothRel.y */ | 3958 /** @domName SVGPathSegCurvetoQuadraticSmoothRel.y */ |
4051 num y; | 3959 num y; |
4052 } | 3960 } |
4053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4054 // for details. All rights reserved. Use of this source code is governed by a | 3962 // for details. All rights reserved. Use of this source code is governed by a |
4055 // BSD-style license that can be found in the LICENSE file. | 3963 // BSD-style license that can be found in the LICENSE file. |
4056 | 3964 |
4057 | 3965 |
4058 /// @domName SVGPathSegLinetoAbs | 3966 /// @domName SVGPathSegLinetoAbs |
4059 class SVGPathSegLinetoAbs extends SVGPathSeg native "*SVGPathSegLinetoAbs" { | 3967 class PathSegLinetoAbs extends PathSeg native "*SVGPathSegLinetoAbs" { |
4060 | 3968 |
4061 /** @domName SVGPathSegLinetoAbs.x */ | 3969 /** @domName SVGPathSegLinetoAbs.x */ |
4062 num x; | 3970 num x; |
4063 | 3971 |
4064 /** @domName SVGPathSegLinetoAbs.y */ | 3972 /** @domName SVGPathSegLinetoAbs.y */ |
4065 num y; | 3973 num y; |
4066 } | 3974 } |
4067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4068 // for details. All rights reserved. Use of this source code is governed by a | 3976 // for details. All rights reserved. Use of this source code is governed by a |
4069 // BSD-style license that can be found in the LICENSE file. | 3977 // BSD-style license that can be found in the LICENSE file. |
4070 | 3978 |
4071 | 3979 |
4072 /// @domName SVGPathSegLinetoHorizontalAbs | 3980 /// @domName SVGPathSegLinetoHorizontalAbs |
4073 class SVGPathSegLinetoHorizontalAbs extends SVGPathSeg native "*SVGPathSegLineto
HorizontalAbs" { | 3981 class PathSegLinetoHorizontalAbs extends PathSeg native "*SVGPathSegLinetoHorizo
ntalAbs" { |
4074 | 3982 |
4075 /** @domName SVGPathSegLinetoHorizontalAbs.x */ | 3983 /** @domName SVGPathSegLinetoHorizontalAbs.x */ |
4076 num x; | 3984 num x; |
4077 } | 3985 } |
4078 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3986 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4079 // for details. All rights reserved. Use of this source code is governed by a | 3987 // for details. All rights reserved. Use of this source code is governed by a |
4080 // BSD-style license that can be found in the LICENSE file. | 3988 // BSD-style license that can be found in the LICENSE file. |
4081 | 3989 |
4082 | 3990 |
4083 /// @domName SVGPathSegLinetoHorizontalRel | 3991 /// @domName SVGPathSegLinetoHorizontalRel |
4084 class SVGPathSegLinetoHorizontalRel extends SVGPathSeg native "*SVGPathSegLineto
HorizontalRel" { | 3992 class PathSegLinetoHorizontalRel extends PathSeg native "*SVGPathSegLinetoHorizo
ntalRel" { |
4085 | 3993 |
4086 /** @domName SVGPathSegLinetoHorizontalRel.x */ | 3994 /** @domName SVGPathSegLinetoHorizontalRel.x */ |
4087 num x; | 3995 num x; |
4088 } | 3996 } |
4089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3997 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4090 // for details. All rights reserved. Use of this source code is governed by a | 3998 // for details. All rights reserved. Use of this source code is governed by a |
4091 // BSD-style license that can be found in the LICENSE file. | 3999 // BSD-style license that can be found in the LICENSE file. |
4092 | 4000 |
4093 | 4001 |
4094 /// @domName SVGPathSegLinetoRel | 4002 /// @domName SVGPathSegLinetoRel |
4095 class SVGPathSegLinetoRel extends SVGPathSeg native "*SVGPathSegLinetoRel" { | 4003 class PathSegLinetoRel extends PathSeg native "*SVGPathSegLinetoRel" { |
4096 | 4004 |
4097 /** @domName SVGPathSegLinetoRel.x */ | 4005 /** @domName SVGPathSegLinetoRel.x */ |
4098 num x; | 4006 num x; |
4099 | 4007 |
4100 /** @domName SVGPathSegLinetoRel.y */ | 4008 /** @domName SVGPathSegLinetoRel.y */ |
4101 num y; | 4009 num y; |
4102 } | 4010 } |
4103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4104 // for details. All rights reserved. Use of this source code is governed by a | 4012 // for details. All rights reserved. Use of this source code is governed by a |
4105 // BSD-style license that can be found in the LICENSE file. | 4013 // BSD-style license that can be found in the LICENSE file. |
4106 | 4014 |
4107 | 4015 |
4108 /// @domName SVGPathSegLinetoVerticalAbs | 4016 /// @domName SVGPathSegLinetoVerticalAbs |
4109 class SVGPathSegLinetoVerticalAbs extends SVGPathSeg native "*SVGPathSegLinetoVe
rticalAbs" { | 4017 class PathSegLinetoVerticalAbs extends PathSeg native "*SVGPathSegLinetoVertical
Abs" { |
4110 | 4018 |
4111 /** @domName SVGPathSegLinetoVerticalAbs.y */ | 4019 /** @domName SVGPathSegLinetoVerticalAbs.y */ |
4112 num y; | 4020 num y; |
4113 } | 4021 } |
4114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4115 // for details. All rights reserved. Use of this source code is governed by a | 4023 // for details. All rights reserved. Use of this source code is governed by a |
4116 // BSD-style license that can be found in the LICENSE file. | 4024 // BSD-style license that can be found in the LICENSE file. |
4117 | 4025 |
4118 | 4026 |
4119 /// @domName SVGPathSegLinetoVerticalRel | 4027 /// @domName SVGPathSegLinetoVerticalRel |
4120 class SVGPathSegLinetoVerticalRel extends SVGPathSeg native "*SVGPathSegLinetoVe
rticalRel" { | 4028 class PathSegLinetoVerticalRel extends PathSeg native "*SVGPathSegLinetoVertical
Rel" { |
4121 | 4029 |
4122 /** @domName SVGPathSegLinetoVerticalRel.y */ | 4030 /** @domName SVGPathSegLinetoVerticalRel.y */ |
4123 num y; | 4031 num y; |
4124 } | 4032 } |
4125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4126 // for details. All rights reserved. Use of this source code is governed by a | 4034 // for details. All rights reserved. Use of this source code is governed by a |
4127 // BSD-style license that can be found in the LICENSE file. | 4035 // BSD-style license that can be found in the LICENSE file. |
4128 | 4036 |
4129 | 4037 |
4130 /// @domName SVGPathSegList | 4038 /// @domName SVGPathSegList |
4131 class SVGPathSegList implements JavaScriptIndexingBehavior, List<SVGPathSeg> nat
ive "*SVGPathSegList" { | 4039 class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
SVGPathSegList" { |
4132 | 4040 |
4133 /** @domName SVGPathSegList.numberOfItems */ | 4041 /** @domName SVGPathSegList.numberOfItems */ |
4134 final int numberOfItems; | 4042 final int numberOfItems; |
4135 | 4043 |
4136 SVGPathSeg operator[](int index) => JS("SVGPathSeg", "#[#]", this, index); | 4044 PathSeg operator[](int index) => JS("PathSeg", "#[#]", this, index); |
4137 | 4045 |
4138 void operator[]=(int index, SVGPathSeg value) { | 4046 void operator[]=(int index, PathSeg value) { |
4139 throw new UnsupportedError("Cannot assign element of immutable List."); | 4047 throw new UnsupportedError("Cannot assign element of immutable List."); |
4140 } | 4048 } |
4141 // -- start List<SVGPathSeg> mixins. | 4049 // -- start List<PathSeg> mixins. |
4142 // SVGPathSeg is the element type. | 4050 // PathSeg is the element type. |
4143 | 4051 |
4144 // From Iterable<SVGPathSeg>: | 4052 // From Iterable<PathSeg>: |
4145 | 4053 |
4146 Iterator<SVGPathSeg> iterator() { | 4054 Iterator<PathSeg> iterator() { |
4147 // Note: NodeLists are not fixed size. And most probably length shouldn't | 4055 // Note: NodeLists are not fixed size. And most probably length shouldn't |
4148 // be cached in both iterator _and_ forEach method. For now caching it | 4056 // be cached in both iterator _and_ forEach method. For now caching it |
4149 // for consistency. | 4057 // for consistency. |
4150 return new FixedSizeListIterator<SVGPathSeg>(this); | 4058 return new FixedSizeListIterator<PathSeg>(this); |
4151 } | 4059 } |
4152 | 4060 |
4153 // From Collection<SVGPathSeg>: | 4061 // From Collection<PathSeg>: |
4154 | 4062 |
4155 void add(SVGPathSeg value) { | 4063 void add(PathSeg value) { |
4156 throw new UnsupportedError("Cannot add to immutable List."); | 4064 throw new UnsupportedError("Cannot add to immutable List."); |
4157 } | 4065 } |
4158 | 4066 |
4159 void addLast(SVGPathSeg value) { | 4067 void addLast(PathSeg value) { |
4160 throw new UnsupportedError("Cannot add to immutable List."); | 4068 throw new UnsupportedError("Cannot add to immutable List."); |
4161 } | 4069 } |
4162 | 4070 |
4163 void addAll(Collection<SVGPathSeg> collection) { | 4071 void addAll(Collection<PathSeg> collection) { |
4164 throw new UnsupportedError("Cannot add to immutable List."); | 4072 throw new UnsupportedError("Cannot add to immutable List."); |
4165 } | 4073 } |
4166 | 4074 |
4167 bool contains(SVGPathSeg element) => _Collections.contains(this, element); | 4075 bool contains(PathSeg element) => _Collections.contains(this, element); |
4168 | 4076 |
4169 void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f); | 4077 void forEach(void f(PathSeg element)) => _Collections.forEach(this, f); |
4170 | 4078 |
4171 Collection map(f(SVGPathSeg element)) => _Collections.map(this, [], f); | 4079 Collection map(f(PathSeg element)) => _Collections.map(this, [], f); |
4172 | 4080 |
4173 Collection<SVGPathSeg> filter(bool f(SVGPathSeg element)) => | 4081 Collection<PathSeg> filter(bool f(PathSeg element)) => |
4174 _Collections.filter(this, <SVGPathSeg>[], f); | 4082 _Collections.filter(this, <PathSeg>[], f); |
4175 | 4083 |
4176 bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f); | 4084 bool every(bool f(PathSeg element)) => _Collections.every(this, f); |
4177 | 4085 |
4178 bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f); | 4086 bool some(bool f(PathSeg element)) => _Collections.some(this, f); |
4179 | 4087 |
4180 bool get isEmpty => this.length == 0; | 4088 bool get isEmpty => this.length == 0; |
4181 | 4089 |
4182 // From List<SVGPathSeg>: | 4090 // From List<PathSeg>: |
4183 | 4091 |
4184 void sort([Comparator<SVGPathSeg> compare = Comparable.compare]) { | 4092 void sort([Comparator<PathSeg> compare = Comparable.compare]) { |
4185 throw new UnsupportedError("Cannot sort immutable List."); | 4093 throw new UnsupportedError("Cannot sort immutable List."); |
4186 } | 4094 } |
4187 | 4095 |
4188 int indexOf(SVGPathSeg element, [int start = 0]) => | 4096 int indexOf(PathSeg element, [int start = 0]) => |
4189 _Lists.indexOf(this, element, start, this.length); | 4097 _Lists.indexOf(this, element, start, this.length); |
4190 | 4098 |
4191 int lastIndexOf(SVGPathSeg element, [int start]) { | 4099 int lastIndexOf(PathSeg element, [int start]) { |
4192 if (start == null) start = length - 1; | 4100 if (start == null) start = length - 1; |
4193 return _Lists.lastIndexOf(this, element, start); | 4101 return _Lists.lastIndexOf(this, element, start); |
4194 } | 4102 } |
4195 | 4103 |
4196 SVGPathSeg get last => this[length - 1]; | 4104 PathSeg get last => this[length - 1]; |
4197 | 4105 |
4198 SVGPathSeg removeLast() { | 4106 PathSeg removeLast() { |
4199 throw new UnsupportedError("Cannot removeLast on immutable List."); | 4107 throw new UnsupportedError("Cannot removeLast on immutable List."); |
4200 } | 4108 } |
4201 | 4109 |
4202 void setRange(int start, int rangeLength, List<SVGPathSeg> from, [int startFro
m]) { | 4110 void setRange(int start, int rangeLength, List<PathSeg> from, [int startFrom])
{ |
4203 throw new UnsupportedError("Cannot setRange on immutable List."); | 4111 throw new UnsupportedError("Cannot setRange on immutable List."); |
4204 } | 4112 } |
4205 | 4113 |
4206 void removeRange(int start, int rangeLength) { | 4114 void removeRange(int start, int rangeLength) { |
4207 throw new UnsupportedError("Cannot removeRange on immutable List."); | 4115 throw new UnsupportedError("Cannot removeRange on immutable List."); |
4208 } | 4116 } |
4209 | 4117 |
4210 void insertRange(int start, int rangeLength, [SVGPathSeg initialValue]) { | 4118 void insertRange(int start, int rangeLength, [PathSeg initialValue]) { |
4211 throw new UnsupportedError("Cannot insertRange on immutable List."); | 4119 throw new UnsupportedError("Cannot insertRange on immutable List."); |
4212 } | 4120 } |
4213 | 4121 |
4214 List<SVGPathSeg> getRange(int start, int rangeLength) => | 4122 List<PathSeg> getRange(int start, int rangeLength) => |
4215 _Lists.getRange(this, start, rangeLength, <SVGPathSeg>[]); | 4123 _Lists.getRange(this, start, rangeLength, <PathSeg>[]); |
4216 | 4124 |
4217 // -- end List<SVGPathSeg> mixins. | 4125 // -- end List<PathSeg> mixins. |
4218 | 4126 |
4219 /** @domName SVGPathSegList.appendItem */ | 4127 /** @domName SVGPathSegList.appendItem */ |
4220 SVGPathSeg appendItem(SVGPathSeg newItem) native; | 4128 PathSeg appendItem(PathSeg newItem) native; |
4221 | 4129 |
4222 /** @domName SVGPathSegList.clear */ | 4130 /** @domName SVGPathSegList.clear */ |
4223 void clear() native; | 4131 void clear() native; |
4224 | 4132 |
4225 /** @domName SVGPathSegList.getItem */ | 4133 /** @domName SVGPathSegList.getItem */ |
4226 SVGPathSeg getItem(int index) native; | 4134 PathSeg getItem(int index) native; |
4227 | 4135 |
4228 /** @domName SVGPathSegList.initialize */ | 4136 /** @domName SVGPathSegList.initialize */ |
4229 SVGPathSeg initialize(SVGPathSeg newItem) native; | 4137 PathSeg initialize(PathSeg newItem) native; |
4230 | 4138 |
4231 /** @domName SVGPathSegList.insertItemBefore */ | 4139 /** @domName SVGPathSegList.insertItemBefore */ |
4232 SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index) native; | 4140 PathSeg insertItemBefore(PathSeg newItem, int index) native; |
4233 | 4141 |
4234 /** @domName SVGPathSegList.removeItem */ | 4142 /** @domName SVGPathSegList.removeItem */ |
4235 SVGPathSeg removeItem(int index) native; | 4143 PathSeg removeItem(int index) native; |
4236 | 4144 |
4237 /** @domName SVGPathSegList.replaceItem */ | 4145 /** @domName SVGPathSegList.replaceItem */ |
4238 SVGPathSeg replaceItem(SVGPathSeg newItem, int index) native; | 4146 PathSeg replaceItem(PathSeg newItem, int index) native; |
4239 } | 4147 } |
4240 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4148 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4241 // for details. All rights reserved. Use of this source code is governed by a | 4149 // for details. All rights reserved. Use of this source code is governed by a |
4242 // BSD-style license that can be found in the LICENSE file. | 4150 // BSD-style license that can be found in the LICENSE file. |
4243 | 4151 |
4244 | 4152 |
4245 /// @domName SVGPathSegMovetoAbs | 4153 /// @domName SVGPathSegMovetoAbs |
4246 class SVGPathSegMovetoAbs extends SVGPathSeg native "*SVGPathSegMovetoAbs" { | 4154 class PathSegMovetoAbs extends PathSeg native "*SVGPathSegMovetoAbs" { |
4247 | 4155 |
4248 /** @domName SVGPathSegMovetoAbs.x */ | 4156 /** @domName SVGPathSegMovetoAbs.x */ |
4249 num x; | 4157 num x; |
4250 | 4158 |
4251 /** @domName SVGPathSegMovetoAbs.y */ | 4159 /** @domName SVGPathSegMovetoAbs.y */ |
4252 num y; | 4160 num y; |
4253 } | 4161 } |
4254 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4255 // for details. All rights reserved. Use of this source code is governed by a | 4163 // for details. All rights reserved. Use of this source code is governed by a |
4256 // BSD-style license that can be found in the LICENSE file. | 4164 // BSD-style license that can be found in the LICENSE file. |
4257 | 4165 |
4258 | 4166 |
4259 /// @domName SVGPathSegMovetoRel | 4167 /// @domName SVGPathSegMovetoRel |
4260 class SVGPathSegMovetoRel extends SVGPathSeg native "*SVGPathSegMovetoRel" { | 4168 class PathSegMovetoRel extends PathSeg native "*SVGPathSegMovetoRel" { |
4261 | 4169 |
4262 /** @domName SVGPathSegMovetoRel.x */ | 4170 /** @domName SVGPathSegMovetoRel.x */ |
4263 num x; | 4171 num x; |
4264 | 4172 |
4265 /** @domName SVGPathSegMovetoRel.y */ | 4173 /** @domName SVGPathSegMovetoRel.y */ |
4266 num y; | 4174 num y; |
4267 } | 4175 } |
4268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4269 // for details. All rights reserved. Use of this source code is governed by a | 4177 // for details. All rights reserved. Use of this source code is governed by a |
4270 // BSD-style license that can be found in the LICENSE file. | 4178 // BSD-style license that can be found in the LICENSE file. |
4271 | 4179 |
4272 | 4180 |
4273 /// @domName SVGPatternElement | 4181 /// @domName SVGPatternElement |
4274 class SVGPatternElement extends SVGElement implements SVGLangSpace, SVGTests, SV
GStylable, SVGURIReference, SVGFitToViewBox, SVGExternalResourcesRequired native
"*SVGPatternElement" { | 4182 class PatternElement extends SvgElement implements FitToViewBox, Tests, UriRefer
ence, Stylable, ExternalResourcesRequired, LangSpace native "*SVGPatternElement"
{ |
4275 | 4183 |
4276 /** @domName SVGPatternElement.height */ | 4184 /** @domName SVGPatternElement.height */ |
4277 final SVGAnimatedLength height; | 4185 final AnimatedLength height; |
4278 | 4186 |
4279 /** @domName SVGPatternElement.patternContentUnits */ | 4187 /** @domName SVGPatternElement.patternContentUnits */ |
4280 final SVGAnimatedEnumeration patternContentUnits; | 4188 final AnimatedEnumeration patternContentUnits; |
4281 | 4189 |
4282 /** @domName SVGPatternElement.patternTransform */ | 4190 /** @domName SVGPatternElement.patternTransform */ |
4283 final SVGAnimatedTransformList patternTransform; | 4191 final AnimatedTransformList patternTransform; |
4284 | 4192 |
4285 /** @domName SVGPatternElement.patternUnits */ | 4193 /** @domName SVGPatternElement.patternUnits */ |
4286 final SVGAnimatedEnumeration patternUnits; | 4194 final AnimatedEnumeration patternUnits; |
4287 | 4195 |
4288 /** @domName SVGPatternElement.width */ | 4196 /** @domName SVGPatternElement.width */ |
4289 final SVGAnimatedLength width; | 4197 final AnimatedLength width; |
4290 | 4198 |
4291 /** @domName SVGPatternElement.x */ | 4199 /** @domName SVGPatternElement.x */ |
4292 final SVGAnimatedLength x; | 4200 final AnimatedLength x; |
4293 | 4201 |
4294 /** @domName SVGPatternElement.y */ | 4202 /** @domName SVGPatternElement.y */ |
4295 final SVGAnimatedLength y; | 4203 final AnimatedLength y; |
4296 | 4204 |
4297 // From SVGExternalResourcesRequired | 4205 // From SVGExternalResourcesRequired |
4298 | 4206 |
4299 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 4207 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
4300 final SVGAnimatedBoolean externalResourcesRequired; | 4208 final AnimatedBoolean externalResourcesRequired; |
4301 | 4209 |
4302 // From SVGFitToViewBox | 4210 // From SVGFitToViewBox |
4303 | 4211 |
4304 /** @domName SVGFitToViewBox.preserveAspectRatio */ | 4212 /** @domName SVGFitToViewBox.preserveAspectRatio */ |
4305 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | 4213 final AnimatedPreserveAspectRatio preserveAspectRatio; |
4306 | 4214 |
4307 /** @domName SVGFitToViewBox.viewBox */ | 4215 /** @domName SVGFitToViewBox.viewBox */ |
4308 final SVGAnimatedRect viewBox; | 4216 final AnimatedRect viewBox; |
4309 | 4217 |
4310 // From SVGLangSpace | 4218 // From SVGLangSpace |
4311 | 4219 |
4312 /** @domName SVGLangSpace.xmllang */ | 4220 /** @domName SVGLangSpace.xmllang */ |
4313 String xmllang; | 4221 String xmllang; |
4314 | 4222 |
4315 /** @domName SVGLangSpace.xmlspace */ | 4223 /** @domName SVGLangSpace.xmlspace */ |
4316 String xmlspace; | 4224 String xmlspace; |
4317 | 4225 |
4318 // From SVGStylable | 4226 // From SVGStylable |
4319 | 4227 |
4320 /** @domName SVGStylable.className */ | 4228 /** @domName SVGStylable.className */ |
4321 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 4229 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
4322 | 4230 |
4323 // Use implementation from Element. | 4231 // Use implementation from Element. |
4324 // final CSSStyleDeclaration style; | 4232 // final CSSStyleDeclaration style; |
4325 | 4233 |
4326 /** @domName SVGStylable.getPresentationAttribute */ | 4234 /** @domName SVGStylable.getPresentationAttribute */ |
4327 CSSValue getPresentationAttribute(String name) native; | 4235 CSSValue getPresentationAttribute(String name) native; |
4328 | 4236 |
4329 // From SVGTests | 4237 // From SVGTests |
4330 | 4238 |
4331 /** @domName SVGTests.requiredExtensions */ | 4239 /** @domName SVGTests.requiredExtensions */ |
4332 final SVGStringList requiredExtensions; | 4240 final StringList requiredExtensions; |
4333 | 4241 |
4334 /** @domName SVGTests.requiredFeatures */ | 4242 /** @domName SVGTests.requiredFeatures */ |
4335 final SVGStringList requiredFeatures; | 4243 final StringList requiredFeatures; |
4336 | 4244 |
4337 /** @domName SVGTests.systemLanguage */ | 4245 /** @domName SVGTests.systemLanguage */ |
4338 final SVGStringList systemLanguage; | 4246 final StringList systemLanguage; |
4339 | 4247 |
4340 /** @domName SVGTests.hasExtension */ | 4248 /** @domName SVGTests.hasExtension */ |
4341 bool hasExtension(String extension) native; | 4249 bool hasExtension(String extension) native; |
4342 | 4250 |
4343 // From SVGURIReference | 4251 // From SVGURIReference |
4344 | 4252 |
4345 /** @domName SVGURIReference.href */ | 4253 /** @domName SVGURIReference.href */ |
4346 final SVGAnimatedString href; | 4254 final AnimatedString href; |
4347 } | 4255 } |
4348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4349 // for details. All rights reserved. Use of this source code is governed by a | 4257 // for details. All rights reserved. Use of this source code is governed by a |
4350 // BSD-style license that can be found in the LICENSE file. | 4258 // BSD-style license that can be found in the LICENSE file. |
4351 | 4259 |
| 4260 // WARNING: Do not edit - generated code. |
4352 | 4261 |
4353 /// @domName SVGPoint | 4262 |
4354 class SVGPoint native "*SVGPoint" { | 4263 class Point native "*SVGPoint" { |
| 4264 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y); |
4355 | 4265 |
4356 /** @domName SVGPoint.x */ | 4266 /** @domName SVGPoint.x */ |
4357 num x; | 4267 num x; |
4358 | 4268 |
4359 /** @domName SVGPoint.y */ | 4269 /** @domName SVGPoint.y */ |
4360 num y; | 4270 num y; |
4361 | 4271 |
4362 /** @domName SVGPoint.matrixTransform */ | 4272 /** @domName SVGPoint.matrixTransform */ |
4363 SVGPoint matrixTransform(SVGMatrix matrix) native; | 4273 Point matrixTransform(Matrix matrix) native; |
| 4274 |
4364 } | 4275 } |
4365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4366 // for details. All rights reserved. Use of this source code is governed by a | 4277 // for details. All rights reserved. Use of this source code is governed by a |
4367 // BSD-style license that can be found in the LICENSE file. | 4278 // BSD-style license that can be found in the LICENSE file. |
4368 | 4279 |
4369 | 4280 |
4370 /// @domName SVGPointList | 4281 /// @domName SVGPointList |
4371 class SVGPointList native "*SVGPointList" { | 4282 class PointList native "*SVGPointList" { |
4372 | 4283 |
4373 /** @domName SVGPointList.numberOfItems */ | 4284 /** @domName SVGPointList.numberOfItems */ |
4374 final int numberOfItems; | 4285 final int numberOfItems; |
4375 | 4286 |
4376 /** @domName SVGPointList.appendItem */ | 4287 /** @domName SVGPointList.appendItem */ |
4377 SVGPoint appendItem(SVGPoint item) native; | 4288 Point appendItem(Point item) native; |
4378 | 4289 |
4379 /** @domName SVGPointList.clear */ | 4290 /** @domName SVGPointList.clear */ |
4380 void clear() native; | 4291 void clear() native; |
4381 | 4292 |
4382 /** @domName SVGPointList.getItem */ | 4293 /** @domName SVGPointList.getItem */ |
4383 SVGPoint getItem(int index) native; | 4294 Point getItem(int index) native; |
4384 | 4295 |
4385 /** @domName SVGPointList.initialize */ | 4296 /** @domName SVGPointList.initialize */ |
4386 SVGPoint initialize(SVGPoint item) native; | 4297 Point initialize(Point item) native; |
4387 | 4298 |
4388 /** @domName SVGPointList.insertItemBefore */ | 4299 /** @domName SVGPointList.insertItemBefore */ |
4389 SVGPoint insertItemBefore(SVGPoint item, int index) native; | 4300 Point insertItemBefore(Point item, int index) native; |
4390 | 4301 |
4391 /** @domName SVGPointList.removeItem */ | 4302 /** @domName SVGPointList.removeItem */ |
4392 SVGPoint removeItem(int index) native; | 4303 Point removeItem(int index) native; |
4393 | 4304 |
4394 /** @domName SVGPointList.replaceItem */ | 4305 /** @domName SVGPointList.replaceItem */ |
4395 SVGPoint replaceItem(SVGPoint item, int index) native; | 4306 Point replaceItem(Point item, int index) native; |
4396 } | 4307 } |
4397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4308 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4398 // for details. All rights reserved. Use of this source code is governed by a | 4309 // for details. All rights reserved. Use of this source code is governed by a |
4399 // BSD-style license that can be found in the LICENSE file. | 4310 // BSD-style license that can be found in the LICENSE file. |
4400 | 4311 |
4401 | 4312 |
4402 /// @domName SVGPolygonElement | 4313 /// @domName SVGPolygonElement |
4403 class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable,
SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGPolygonEle
ment" { | 4314 class PolygonElement extends SvgElement implements Transformable, Tests, Stylabl
e, ExternalResourcesRequired, LangSpace native "*SVGPolygonElement" { |
4404 | 4315 |
4405 /** @domName SVGPolygonElement.animatedPoints */ | 4316 /** @domName SVGPolygonElement.animatedPoints */ |
4406 final SVGPointList animatedPoints; | 4317 final PointList animatedPoints; |
4407 | 4318 |
4408 /** @domName SVGPolygonElement.points */ | 4319 /** @domName SVGPolygonElement.points */ |
4409 final SVGPointList points; | 4320 final PointList points; |
4410 | 4321 |
4411 // From SVGExternalResourcesRequired | 4322 // From SVGExternalResourcesRequired |
4412 | 4323 |
4413 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 4324 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
4414 final SVGAnimatedBoolean externalResourcesRequired; | 4325 final AnimatedBoolean externalResourcesRequired; |
4415 | 4326 |
4416 // From SVGLangSpace | 4327 // From SVGLangSpace |
4417 | 4328 |
4418 /** @domName SVGLangSpace.xmllang */ | 4329 /** @domName SVGLangSpace.xmllang */ |
4419 String xmllang; | 4330 String xmllang; |
4420 | 4331 |
4421 /** @domName SVGLangSpace.xmlspace */ | 4332 /** @domName SVGLangSpace.xmlspace */ |
4422 String xmlspace; | 4333 String xmlspace; |
4423 | 4334 |
4424 // From SVGLocatable | 4335 // From SVGLocatable |
4425 | 4336 |
4426 /** @domName SVGLocatable.farthestViewportElement */ | 4337 /** @domName SVGLocatable.farthestViewportElement */ |
4427 final SVGElement farthestViewportElement; | 4338 final SvgElement farthestViewportElement; |
4428 | 4339 |
4429 /** @domName SVGLocatable.nearestViewportElement */ | 4340 /** @domName SVGLocatable.nearestViewportElement */ |
4430 final SVGElement nearestViewportElement; | 4341 final SvgElement nearestViewportElement; |
4431 | 4342 |
4432 /** @domName SVGLocatable.getBBox */ | 4343 /** @domName SVGLocatable.getBBox */ |
4433 SVGRect getBBox() native; | 4344 Rect getBBox() native; |
4434 | 4345 |
4435 /** @domName SVGLocatable.getCTM */ | 4346 /** @domName SVGLocatable.getCTM */ |
4436 SVGMatrix getCTM() native; | 4347 Matrix getCTM() native; |
4437 | 4348 |
4438 /** @domName SVGLocatable.getScreenCTM */ | 4349 /** @domName SVGLocatable.getScreenCTM */ |
4439 SVGMatrix getScreenCTM() native; | 4350 Matrix getScreenCTM() native; |
4440 | 4351 |
4441 /** @domName SVGLocatable.getTransformToElement */ | 4352 /** @domName SVGLocatable.getTransformToElement */ |
4442 SVGMatrix getTransformToElement(SVGElement element) native; | 4353 Matrix getTransformToElement(SvgElement element) native; |
4443 | 4354 |
4444 // From SVGStylable | 4355 // From SVGStylable |
4445 | 4356 |
4446 /** @domName SVGStylable.className */ | 4357 /** @domName SVGStylable.className */ |
4447 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 4358 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
4448 | 4359 |
4449 // Use implementation from Element. | 4360 // Use implementation from Element. |
4450 // final CSSStyleDeclaration style; | 4361 // final CSSStyleDeclaration style; |
4451 | 4362 |
4452 /** @domName SVGStylable.getPresentationAttribute */ | 4363 /** @domName SVGStylable.getPresentationAttribute */ |
4453 CSSValue getPresentationAttribute(String name) native; | 4364 CSSValue getPresentationAttribute(String name) native; |
4454 | 4365 |
4455 // From SVGTests | 4366 // From SVGTests |
4456 | 4367 |
4457 /** @domName SVGTests.requiredExtensions */ | 4368 /** @domName SVGTests.requiredExtensions */ |
4458 final SVGStringList requiredExtensions; | 4369 final StringList requiredExtensions; |
4459 | 4370 |
4460 /** @domName SVGTests.requiredFeatures */ | 4371 /** @domName SVGTests.requiredFeatures */ |
4461 final SVGStringList requiredFeatures; | 4372 final StringList requiredFeatures; |
4462 | 4373 |
4463 /** @domName SVGTests.systemLanguage */ | 4374 /** @domName SVGTests.systemLanguage */ |
4464 final SVGStringList systemLanguage; | 4375 final StringList systemLanguage; |
4465 | 4376 |
4466 /** @domName SVGTests.hasExtension */ | 4377 /** @domName SVGTests.hasExtension */ |
4467 bool hasExtension(String extension) native; | 4378 bool hasExtension(String extension) native; |
4468 | 4379 |
4469 // From SVGTransformable | 4380 // From SVGTransformable |
4470 | 4381 |
4471 /** @domName SVGTransformable.transform */ | 4382 /** @domName SVGTransformable.transform */ |
4472 final SVGAnimatedTransformList transform; | 4383 final AnimatedTransformList transform; |
4473 } | 4384 } |
4474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4385 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4475 // for details. All rights reserved. Use of this source code is governed by a | 4386 // for details. All rights reserved. Use of this source code is governed by a |
4476 // BSD-style license that can be found in the LICENSE file. | 4387 // BSD-style license that can be found in the LICENSE file. |
4477 | 4388 |
4478 | 4389 |
4479 /// @domName SVGPolylineElement | 4390 /// @domName SVGPolylineElement |
4480 class SVGPolylineElement extends SVGElement implements SVGLangSpace, SVGStylable
, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGPolylineE
lement" { | 4391 class PolylineElement extends SvgElement implements Transformable, Tests, Stylab
le, ExternalResourcesRequired, LangSpace native "*SVGPolylineElement" { |
4481 | 4392 |
4482 /** @domName SVGPolylineElement.animatedPoints */ | 4393 /** @domName SVGPolylineElement.animatedPoints */ |
4483 final SVGPointList animatedPoints; | 4394 final PointList animatedPoints; |
4484 | 4395 |
4485 /** @domName SVGPolylineElement.points */ | 4396 /** @domName SVGPolylineElement.points */ |
4486 final SVGPointList points; | 4397 final PointList points; |
4487 | 4398 |
4488 // From SVGExternalResourcesRequired | 4399 // From SVGExternalResourcesRequired |
4489 | 4400 |
4490 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 4401 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
4491 final SVGAnimatedBoolean externalResourcesRequired; | 4402 final AnimatedBoolean externalResourcesRequired; |
4492 | 4403 |
4493 // From SVGLangSpace | 4404 // From SVGLangSpace |
4494 | 4405 |
4495 /** @domName SVGLangSpace.xmllang */ | 4406 /** @domName SVGLangSpace.xmllang */ |
4496 String xmllang; | 4407 String xmllang; |
4497 | 4408 |
4498 /** @domName SVGLangSpace.xmlspace */ | 4409 /** @domName SVGLangSpace.xmlspace */ |
4499 String xmlspace; | 4410 String xmlspace; |
4500 | 4411 |
4501 // From SVGLocatable | 4412 // From SVGLocatable |
4502 | 4413 |
4503 /** @domName SVGLocatable.farthestViewportElement */ | 4414 /** @domName SVGLocatable.farthestViewportElement */ |
4504 final SVGElement farthestViewportElement; | 4415 final SvgElement farthestViewportElement; |
4505 | 4416 |
4506 /** @domName SVGLocatable.nearestViewportElement */ | 4417 /** @domName SVGLocatable.nearestViewportElement */ |
4507 final SVGElement nearestViewportElement; | 4418 final SvgElement nearestViewportElement; |
4508 | 4419 |
4509 /** @domName SVGLocatable.getBBox */ | 4420 /** @domName SVGLocatable.getBBox */ |
4510 SVGRect getBBox() native; | 4421 Rect getBBox() native; |
4511 | 4422 |
4512 /** @domName SVGLocatable.getCTM */ | 4423 /** @domName SVGLocatable.getCTM */ |
4513 SVGMatrix getCTM() native; | 4424 Matrix getCTM() native; |
4514 | 4425 |
4515 /** @domName SVGLocatable.getScreenCTM */ | 4426 /** @domName SVGLocatable.getScreenCTM */ |
4516 SVGMatrix getScreenCTM() native; | 4427 Matrix getScreenCTM() native; |
4517 | 4428 |
4518 /** @domName SVGLocatable.getTransformToElement */ | 4429 /** @domName SVGLocatable.getTransformToElement */ |
4519 SVGMatrix getTransformToElement(SVGElement element) native; | 4430 Matrix getTransformToElement(SvgElement element) native; |
4520 | 4431 |
4521 // From SVGStylable | 4432 // From SVGStylable |
4522 | 4433 |
4523 /** @domName SVGStylable.className */ | 4434 /** @domName SVGStylable.className */ |
4524 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 4435 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
4525 | 4436 |
4526 // Use implementation from Element. | 4437 // Use implementation from Element. |
4527 // final CSSStyleDeclaration style; | 4438 // final CSSStyleDeclaration style; |
4528 | 4439 |
4529 /** @domName SVGStylable.getPresentationAttribute */ | 4440 /** @domName SVGStylable.getPresentationAttribute */ |
4530 CSSValue getPresentationAttribute(String name) native; | 4441 CSSValue getPresentationAttribute(String name) native; |
4531 | 4442 |
4532 // From SVGTests | 4443 // From SVGTests |
4533 | 4444 |
4534 /** @domName SVGTests.requiredExtensions */ | 4445 /** @domName SVGTests.requiredExtensions */ |
4535 final SVGStringList requiredExtensions; | 4446 final StringList requiredExtensions; |
4536 | 4447 |
4537 /** @domName SVGTests.requiredFeatures */ | 4448 /** @domName SVGTests.requiredFeatures */ |
4538 final SVGStringList requiredFeatures; | 4449 final StringList requiredFeatures; |
4539 | 4450 |
4540 /** @domName SVGTests.systemLanguage */ | 4451 /** @domName SVGTests.systemLanguage */ |
4541 final SVGStringList systemLanguage; | 4452 final StringList systemLanguage; |
4542 | 4453 |
4543 /** @domName SVGTests.hasExtension */ | 4454 /** @domName SVGTests.hasExtension */ |
4544 bool hasExtension(String extension) native; | 4455 bool hasExtension(String extension) native; |
4545 | 4456 |
4546 // From SVGTransformable | 4457 // From SVGTransformable |
4547 | 4458 |
4548 /** @domName SVGTransformable.transform */ | 4459 /** @domName SVGTransformable.transform */ |
4549 final SVGAnimatedTransformList transform; | 4460 final AnimatedTransformList transform; |
4550 } | 4461 } |
4551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4552 // for details. All rights reserved. Use of this source code is governed by a | 4463 // for details. All rights reserved. Use of this source code is governed by a |
4553 // BSD-style license that can be found in the LICENSE file. | 4464 // BSD-style license that can be found in the LICENSE file. |
4554 | 4465 |
4555 | 4466 |
4556 /// @domName SVGPreserveAspectRatio | 4467 /// @domName SVGPreserveAspectRatio |
4557 class SVGPreserveAspectRatio native "*SVGPreserveAspectRatio" { | 4468 class PreserveAspectRatio native "*SVGPreserveAspectRatio" { |
4558 | 4469 |
4559 static const int SVG_MEETORSLICE_MEET = 1; | 4470 static const int SVG_MEETORSLICE_MEET = 1; |
4560 | 4471 |
4561 static const int SVG_MEETORSLICE_SLICE = 2; | 4472 static const int SVG_MEETORSLICE_SLICE = 2; |
4562 | 4473 |
4563 static const int SVG_MEETORSLICE_UNKNOWN = 0; | 4474 static const int SVG_MEETORSLICE_UNKNOWN = 0; |
4564 | 4475 |
4565 static const int SVG_PRESERVEASPECTRATIO_NONE = 1; | 4476 static const int SVG_PRESERVEASPECTRATIO_NONE = 1; |
4566 | 4477 |
4567 static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; | 4478 static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; |
(...skipping 21 matching lines...) Expand all Loading... |
4589 | 4500 |
4590 /** @domName SVGPreserveAspectRatio.meetOrSlice */ | 4501 /** @domName SVGPreserveAspectRatio.meetOrSlice */ |
4591 int meetOrSlice; | 4502 int meetOrSlice; |
4592 } | 4503 } |
4593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4594 // for details. All rights reserved. Use of this source code is governed by a | 4505 // for details. All rights reserved. Use of this source code is governed by a |
4595 // BSD-style license that can be found in the LICENSE file. | 4506 // BSD-style license that can be found in the LICENSE file. |
4596 | 4507 |
4597 | 4508 |
4598 /// @domName SVGRadialGradientElement | 4509 /// @domName SVGRadialGradientElement |
4599 class SVGRadialGradientElement extends SVGGradientElement native "*SVGRadialGrad
ientElement" { | 4510 class RadialGradientElement extends GradientElement native "*SVGRadialGradientEl
ement" { |
4600 | 4511 |
4601 /** @domName SVGRadialGradientElement.cx */ | 4512 /** @domName SVGRadialGradientElement.cx */ |
4602 final SVGAnimatedLength cx; | 4513 final AnimatedLength cx; |
4603 | 4514 |
4604 /** @domName SVGRadialGradientElement.cy */ | 4515 /** @domName SVGRadialGradientElement.cy */ |
4605 final SVGAnimatedLength cy; | 4516 final AnimatedLength cy; |
4606 | 4517 |
4607 /** @domName SVGRadialGradientElement.fr */ | 4518 /** @domName SVGRadialGradientElement.fr */ |
4608 final SVGAnimatedLength fr; | 4519 final AnimatedLength fr; |
4609 | 4520 |
4610 /** @domName SVGRadialGradientElement.fx */ | 4521 /** @domName SVGRadialGradientElement.fx */ |
4611 final SVGAnimatedLength fx; | 4522 final AnimatedLength fx; |
4612 | 4523 |
4613 /** @domName SVGRadialGradientElement.fy */ | 4524 /** @domName SVGRadialGradientElement.fy */ |
4614 final SVGAnimatedLength fy; | 4525 final AnimatedLength fy; |
4615 | 4526 |
4616 /** @domName SVGRadialGradientElement.r */ | 4527 /** @domName SVGRadialGradientElement.r */ |
4617 final SVGAnimatedLength r; | 4528 final AnimatedLength r; |
4618 } | 4529 } |
4619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4620 // for details. All rights reserved. Use of this source code is governed by a | 4531 // for details. All rights reserved. Use of this source code is governed by a |
4621 // BSD-style license that can be found in the LICENSE file. | 4532 // BSD-style license that can be found in the LICENSE file. |
4622 | 4533 |
4623 | 4534 |
4624 /// @domName SVGRect | 4535 /// @domName SVGRect |
4625 class SVGRect native "*SVGRect" { | 4536 class Rect native "*SVGRect" { |
4626 | 4537 |
4627 /** @domName SVGRect.height */ | 4538 /** @domName SVGRect.height */ |
4628 num height; | 4539 num height; |
4629 | 4540 |
4630 /** @domName SVGRect.width */ | 4541 /** @domName SVGRect.width */ |
4631 num width; | 4542 num width; |
4632 | 4543 |
4633 /** @domName SVGRect.x */ | 4544 /** @domName SVGRect.x */ |
4634 num x; | 4545 num x; |
4635 | 4546 |
4636 /** @domName SVGRect.y */ | 4547 /** @domName SVGRect.y */ |
4637 num y; | 4548 num y; |
4638 } | 4549 } |
4639 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4640 // for details. All rights reserved. Use of this source code is governed by a | 4551 // for details. All rights reserved. Use of this source code is governed by a |
4641 // BSD-style license that can be found in the LICENSE file. | 4552 // BSD-style license that can be found in the LICENSE file. |
4642 | 4553 |
4643 | 4554 |
4644 /// @domName SVGRectElement | 4555 /// @domName SVGRectElement |
4645 class SVGRectElement extends SVGElement implements SVGLangSpace, SVGStylable, SV
GTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGRectElement"
{ | 4556 class RectElement extends SvgElement implements Transformable, Tests, Stylable,
ExternalResourcesRequired, LangSpace native "*SVGRectElement" { |
4646 | 4557 |
4647 /** @domName SVGRectElement.height */ | 4558 /** @domName SVGRectElement.height */ |
4648 final SVGAnimatedLength height; | 4559 final AnimatedLength height; |
4649 | 4560 |
4650 /** @domName SVGRectElement.rx */ | 4561 /** @domName SVGRectElement.rx */ |
4651 final SVGAnimatedLength rx; | 4562 final AnimatedLength rx; |
4652 | 4563 |
4653 /** @domName SVGRectElement.ry */ | 4564 /** @domName SVGRectElement.ry */ |
4654 final SVGAnimatedLength ry; | 4565 final AnimatedLength ry; |
4655 | 4566 |
4656 /** @domName SVGRectElement.width */ | 4567 /** @domName SVGRectElement.width */ |
4657 final SVGAnimatedLength width; | 4568 final AnimatedLength width; |
4658 | 4569 |
4659 /** @domName SVGRectElement.x */ | 4570 /** @domName SVGRectElement.x */ |
4660 final SVGAnimatedLength x; | 4571 final AnimatedLength x; |
4661 | 4572 |
4662 /** @domName SVGRectElement.y */ | 4573 /** @domName SVGRectElement.y */ |
4663 final SVGAnimatedLength y; | 4574 final AnimatedLength y; |
4664 | 4575 |
4665 // From SVGExternalResourcesRequired | 4576 // From SVGExternalResourcesRequired |
4666 | 4577 |
4667 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 4578 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
4668 final SVGAnimatedBoolean externalResourcesRequired; | 4579 final AnimatedBoolean externalResourcesRequired; |
4669 | 4580 |
4670 // From SVGLangSpace | 4581 // From SVGLangSpace |
4671 | 4582 |
4672 /** @domName SVGLangSpace.xmllang */ | 4583 /** @domName SVGLangSpace.xmllang */ |
4673 String xmllang; | 4584 String xmllang; |
4674 | 4585 |
4675 /** @domName SVGLangSpace.xmlspace */ | 4586 /** @domName SVGLangSpace.xmlspace */ |
4676 String xmlspace; | 4587 String xmlspace; |
4677 | 4588 |
4678 // From SVGLocatable | 4589 // From SVGLocatable |
4679 | 4590 |
4680 /** @domName SVGLocatable.farthestViewportElement */ | 4591 /** @domName SVGLocatable.farthestViewportElement */ |
4681 final SVGElement farthestViewportElement; | 4592 final SvgElement farthestViewportElement; |
4682 | 4593 |
4683 /** @domName SVGLocatable.nearestViewportElement */ | 4594 /** @domName SVGLocatable.nearestViewportElement */ |
4684 final SVGElement nearestViewportElement; | 4595 final SvgElement nearestViewportElement; |
4685 | 4596 |
4686 /** @domName SVGLocatable.getBBox */ | 4597 /** @domName SVGLocatable.getBBox */ |
4687 SVGRect getBBox() native; | 4598 Rect getBBox() native; |
4688 | 4599 |
4689 /** @domName SVGLocatable.getCTM */ | 4600 /** @domName SVGLocatable.getCTM */ |
4690 SVGMatrix getCTM() native; | 4601 Matrix getCTM() native; |
4691 | 4602 |
4692 /** @domName SVGLocatable.getScreenCTM */ | 4603 /** @domName SVGLocatable.getScreenCTM */ |
4693 SVGMatrix getScreenCTM() native; | 4604 Matrix getScreenCTM() native; |
4694 | 4605 |
4695 /** @domName SVGLocatable.getTransformToElement */ | 4606 /** @domName SVGLocatable.getTransformToElement */ |
4696 SVGMatrix getTransformToElement(SVGElement element) native; | 4607 Matrix getTransformToElement(SvgElement element) native; |
4697 | 4608 |
4698 // From SVGStylable | 4609 // From SVGStylable |
4699 | 4610 |
4700 /** @domName SVGStylable.className */ | 4611 /** @domName SVGStylable.className */ |
4701 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 4612 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
4702 | 4613 |
4703 // Use implementation from Element. | 4614 // Use implementation from Element. |
4704 // final CSSStyleDeclaration style; | 4615 // final CSSStyleDeclaration style; |
4705 | 4616 |
4706 /** @domName SVGStylable.getPresentationAttribute */ | 4617 /** @domName SVGStylable.getPresentationAttribute */ |
4707 CSSValue getPresentationAttribute(String name) native; | 4618 CSSValue getPresentationAttribute(String name) native; |
4708 | 4619 |
4709 // From SVGTests | 4620 // From SVGTests |
4710 | 4621 |
4711 /** @domName SVGTests.requiredExtensions */ | 4622 /** @domName SVGTests.requiredExtensions */ |
4712 final SVGStringList requiredExtensions; | 4623 final StringList requiredExtensions; |
4713 | 4624 |
4714 /** @domName SVGTests.requiredFeatures */ | 4625 /** @domName SVGTests.requiredFeatures */ |
4715 final SVGStringList requiredFeatures; | 4626 final StringList requiredFeatures; |
4716 | 4627 |
4717 /** @domName SVGTests.systemLanguage */ | 4628 /** @domName SVGTests.systemLanguage */ |
4718 final SVGStringList systemLanguage; | 4629 final StringList systemLanguage; |
4719 | 4630 |
4720 /** @domName SVGTests.hasExtension */ | 4631 /** @domName SVGTests.hasExtension */ |
4721 bool hasExtension(String extension) native; | 4632 bool hasExtension(String extension) native; |
4722 | 4633 |
4723 // From SVGTransformable | 4634 // From SVGTransformable |
4724 | 4635 |
4725 /** @domName SVGTransformable.transform */ | 4636 /** @domName SVGTransformable.transform */ |
4726 final SVGAnimatedTransformList transform; | 4637 final AnimatedTransformList transform; |
4727 } | 4638 } |
4728 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4639 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4729 // for details. All rights reserved. Use of this source code is governed by a | 4640 // for details. All rights reserved. Use of this source code is governed by a |
4730 // BSD-style license that can be found in the LICENSE file. | 4641 // BSD-style license that can be found in the LICENSE file. |
4731 | 4642 |
4732 | 4643 |
4733 /// @domName SVGRenderingIntent | 4644 /// @domName SVGRenderingIntent |
4734 class SVGRenderingIntent native "*SVGRenderingIntent" { | 4645 class RenderingIntent native "*SVGRenderingIntent" { |
4735 | 4646 |
4736 static const int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; | 4647 static const int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; |
4737 | 4648 |
4738 static const int RENDERING_INTENT_AUTO = 1; | 4649 static const int RENDERING_INTENT_AUTO = 1; |
4739 | 4650 |
4740 static const int RENDERING_INTENT_PERCEPTUAL = 2; | 4651 static const int RENDERING_INTENT_PERCEPTUAL = 2; |
4741 | 4652 |
4742 static const int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; | 4653 static const int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; |
4743 | 4654 |
4744 static const int RENDERING_INTENT_SATURATION = 4; | 4655 static const int RENDERING_INTENT_SATURATION = 4; |
4745 | 4656 |
4746 static const int RENDERING_INTENT_UNKNOWN = 0; | 4657 static const int RENDERING_INTENT_UNKNOWN = 0; |
4747 } | 4658 } |
4748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4749 // for details. All rights reserved. Use of this source code is governed by a | 4660 // for details. All rights reserved. Use of this source code is governed by a |
4750 // BSD-style license that can be found in the LICENSE file. | 4661 // BSD-style license that can be found in the LICENSE file. |
4751 | 4662 |
4752 | 4663 |
4753 class SVGSVGElement extends SVGElement implements SVGZoomAndPan, SVGLocatable, S
VGLangSpace, SVGTests, SVGStylable, SVGFitToViewBox, SVGExternalResourcesRequire
d native "*SVGSVGElement" { | 4664 /// @domName SVGScriptElement |
4754 factory SVGSVGElement() => _SVGSVGElementFactoryProvider.createSVGSVGElement()
; | 4665 class ScriptElement extends SvgElement implements UriReference, ExternalResource
sRequired native "*SVGScriptElement" { |
4755 | 4666 |
4756 | 4667 factory ScriptElement() => _Elements.createScriptElement(); |
4757 /** @domName SVGSVGElement.contentScriptType */ | 4668 |
4758 String contentScriptType; | 4669 /** @domName SVGScriptElement.type */ |
4759 | 4670 String type; |
4760 /** @domName SVGSVGElement.contentStyleType */ | |
4761 String contentStyleType; | |
4762 | |
4763 /** @domName SVGSVGElement.currentScale */ | |
4764 num currentScale; | |
4765 | |
4766 /** @domName SVGSVGElement.currentTranslate */ | |
4767 final SVGPoint currentTranslate; | |
4768 | |
4769 /** @domName SVGSVGElement.currentView */ | |
4770 final SVGViewSpec currentView; | |
4771 | |
4772 /** @domName SVGSVGElement.height */ | |
4773 final SVGAnimatedLength height; | |
4774 | |
4775 /** @domName SVGSVGElement.pixelUnitToMillimeterX */ | |
4776 final num pixelUnitToMillimeterX; | |
4777 | |
4778 /** @domName SVGSVGElement.pixelUnitToMillimeterY */ | |
4779 final num pixelUnitToMillimeterY; | |
4780 | |
4781 /** @domName SVGSVGElement.screenPixelToMillimeterX */ | |
4782 final num screenPixelToMillimeterX; | |
4783 | |
4784 /** @domName SVGSVGElement.screenPixelToMillimeterY */ | |
4785 final num screenPixelToMillimeterY; | |
4786 | |
4787 /** @domName SVGSVGElement.useCurrentView */ | |
4788 final bool useCurrentView; | |
4789 | |
4790 /** @domName SVGSVGElement.viewport */ | |
4791 final SVGRect viewport; | |
4792 | |
4793 /** @domName SVGSVGElement.width */ | |
4794 final SVGAnimatedLength width; | |
4795 | |
4796 /** @domName SVGSVGElement.x */ | |
4797 final SVGAnimatedLength x; | |
4798 | |
4799 /** @domName SVGSVGElement.y */ | |
4800 final SVGAnimatedLength y; | |
4801 | |
4802 /** @domName SVGSVGElement.animationsPaused */ | |
4803 bool animationsPaused() native; | |
4804 | |
4805 /** @domName SVGSVGElement.checkEnclosure */ | |
4806 bool checkEnclosure(SVGElement element, SVGRect rect) native; | |
4807 | |
4808 /** @domName SVGSVGElement.checkIntersection */ | |
4809 bool checkIntersection(SVGElement element, SVGRect rect) native; | |
4810 | |
4811 /** @domName SVGSVGElement.createSVGAngle */ | |
4812 SVGAngle createSVGAngle() native; | |
4813 | |
4814 /** @domName SVGSVGElement.createSVGLength */ | |
4815 SVGLength createSVGLength() native; | |
4816 | |
4817 /** @domName SVGSVGElement.createSVGMatrix */ | |
4818 SVGMatrix createSVGMatrix() native; | |
4819 | |
4820 /** @domName SVGSVGElement.createSVGNumber */ | |
4821 SVGNumber createSVGNumber() native; | |
4822 | |
4823 /** @domName SVGSVGElement.createSVGPoint */ | |
4824 SVGPoint createSVGPoint() native; | |
4825 | |
4826 /** @domName SVGSVGElement.createSVGRect */ | |
4827 SVGRect createSVGRect() native; | |
4828 | |
4829 /** @domName SVGSVGElement.createSVGTransform */ | |
4830 SVGTransform createSVGTransform() native; | |
4831 | |
4832 /** @domName SVGSVGElement.createSVGTransformFromMatrix */ | |
4833 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix) native; | |
4834 | |
4835 /** @domName SVGSVGElement.deselectAll */ | |
4836 void deselectAll() native; | |
4837 | |
4838 /** @domName SVGSVGElement.forceRedraw */ | |
4839 void forceRedraw() native; | |
4840 | |
4841 /** @domName SVGSVGElement.getCurrentTime */ | |
4842 num getCurrentTime() native; | |
4843 | |
4844 /** @domName SVGSVGElement.getElementById */ | |
4845 Element getElementById(String elementId) native; | |
4846 | |
4847 /** @domName SVGSVGElement.getEnclosureList */ | |
4848 List<Node> getEnclosureList(SVGRect rect, SVGElement referenceElement) native; | |
4849 | |
4850 /** @domName SVGSVGElement.getIntersectionList */ | |
4851 List<Node> getIntersectionList(SVGRect rect, SVGElement referenceElement) nati
ve; | |
4852 | |
4853 /** @domName SVGSVGElement.pauseAnimations */ | |
4854 void pauseAnimations() native; | |
4855 | |
4856 /** @domName SVGSVGElement.setCurrentTime */ | |
4857 void setCurrentTime(num seconds) native; | |
4858 | |
4859 /** @domName SVGSVGElement.suspendRedraw */ | |
4860 int suspendRedraw(int maxWaitMilliseconds) native; | |
4861 | |
4862 /** @domName SVGSVGElement.unpauseAnimations */ | |
4863 void unpauseAnimations() native; | |
4864 | |
4865 /** @domName SVGSVGElement.unsuspendRedraw */ | |
4866 void unsuspendRedraw(int suspendHandleId) native; | |
4867 | |
4868 /** @domName SVGSVGElement.unsuspendRedrawAll */ | |
4869 void unsuspendRedrawAll() native; | |
4870 | 4671 |
4871 // From SVGExternalResourcesRequired | 4672 // From SVGExternalResourcesRequired |
4872 | 4673 |
4873 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 4674 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
4874 final SVGAnimatedBoolean externalResourcesRequired; | 4675 final AnimatedBoolean externalResourcesRequired; |
4875 | 4676 |
4876 // From SVGFitToViewBox | 4677 // From SVGURIReference |
4877 | 4678 |
4878 /** @domName SVGFitToViewBox.preserveAspectRatio */ | 4679 /** @domName SVGURIReference.href */ |
4879 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | 4680 final AnimatedString href; |
4880 | 4681 } |
4881 /** @domName SVGFitToViewBox.viewBox */ | 4682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4882 final SVGAnimatedRect viewBox; | 4683 // for details. All rights reserved. Use of this source code is governed by a |
4883 | 4684 // BSD-style license that can be found in the LICENSE file. |
4884 // From SVGLangSpace | 4685 |
4885 | 4686 |
4886 /** @domName SVGLangSpace.xmllang */ | 4687 /// @domName SVGSetElement |
4887 String xmllang; | 4688 class SetElement extends AnimationElement native "*SVGSetElement" { |
4888 | 4689 } |
4889 /** @domName SVGLangSpace.xmlspace */ | 4690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4890 String xmlspace; | 4691 // for details. All rights reserved. Use of this source code is governed by a |
4891 | 4692 // BSD-style license that can be found in the LICENSE file. |
4892 // From SVGLocatable | 4693 |
4893 | 4694 |
4894 /** @domName SVGLocatable.farthestViewportElement */ | 4695 /// @domName SVGStopElement |
4895 final SVGElement farthestViewportElement; | 4696 class StopElement extends SvgElement implements Stylable native "*SVGStopElement
" { |
4896 | 4697 |
4897 /** @domName SVGLocatable.nearestViewportElement */ | 4698 /** @domName SVGStopElement.offset */ |
4898 final SVGElement nearestViewportElement; | 4699 final AnimatedNumber offset; |
4899 | |
4900 /** @domName SVGLocatable.getBBox */ | |
4901 SVGRect getBBox() native; | |
4902 | |
4903 /** @domName SVGLocatable.getCTM */ | |
4904 SVGMatrix getCTM() native; | |
4905 | |
4906 /** @domName SVGLocatable.getScreenCTM */ | |
4907 SVGMatrix getScreenCTM() native; | |
4908 | |
4909 /** @domName SVGLocatable.getTransformToElement */ | |
4910 SVGMatrix getTransformToElement(SVGElement element) native; | |
4911 | 4700 |
4912 // From SVGStylable | 4701 // From SVGStylable |
4913 | 4702 |
4914 /** @domName SVGStylable.className */ | 4703 /** @domName SVGStylable.className */ |
4915 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 4704 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
4916 | 4705 |
4917 // Use implementation from Element. | 4706 // Use implementation from Element. |
4918 // final CSSStyleDeclaration style; | 4707 // final CSSStyleDeclaration style; |
4919 | 4708 |
4920 /** @domName SVGStylable.getPresentationAttribute */ | 4709 /** @domName SVGStylable.getPresentationAttribute */ |
4921 CSSValue getPresentationAttribute(String name) native; | 4710 CSSValue getPresentationAttribute(String name) native; |
4922 | |
4923 // From SVGTests | |
4924 | |
4925 /** @domName SVGTests.requiredExtensions */ | |
4926 final SVGStringList requiredExtensions; | |
4927 | |
4928 /** @domName SVGTests.requiredFeatures */ | |
4929 final SVGStringList requiredFeatures; | |
4930 | |
4931 /** @domName SVGTests.systemLanguage */ | |
4932 final SVGStringList systemLanguage; | |
4933 | |
4934 /** @domName SVGTests.hasExtension */ | |
4935 bool hasExtension(String extension) native; | |
4936 | |
4937 // From SVGZoomAndPan | |
4938 | |
4939 /** @domName SVGZoomAndPan.zoomAndPan */ | |
4940 int zoomAndPan; | |
4941 | |
4942 } | |
4943 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
4944 // for details. All rights reserved. Use of this source code is governed by a | |
4945 // BSD-style license that can be found in the LICENSE file. | |
4946 | |
4947 | |
4948 /// @domName SVGScriptElement | |
4949 class SVGScriptElement extends SVGElement implements SVGURIReference, SVGExterna
lResourcesRequired native "*SVGScriptElement" { | |
4950 | |
4951 /** @domName SVGScriptElement.type */ | |
4952 String type; | |
4953 | |
4954 // From SVGExternalResourcesRequired | |
4955 | |
4956 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | |
4957 final SVGAnimatedBoolean externalResourcesRequired; | |
4958 | |
4959 // From SVGURIReference | |
4960 | |
4961 /** @domName SVGURIReference.href */ | |
4962 final SVGAnimatedString href; | |
4963 } | |
4964 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
4965 // for details. All rights reserved. Use of this source code is governed by a | |
4966 // BSD-style license that can be found in the LICENSE file. | |
4967 | |
4968 | |
4969 /// @domName SVGSetElement | |
4970 class SVGSetElement extends SVGAnimationElement native "*SVGSetElement" { | |
4971 } | |
4972 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
4973 // for details. All rights reserved. Use of this source code is governed by a | |
4974 // BSD-style license that can be found in the LICENSE file. | |
4975 | |
4976 | |
4977 /// @domName SVGStopElement | |
4978 class SVGStopElement extends SVGElement implements SVGStylable native "*SVGStopE
lement" { | |
4979 | |
4980 /** @domName SVGStopElement.offset */ | |
4981 final SVGAnimatedNumber offset; | |
4982 | |
4983 // From SVGStylable | |
4984 | |
4985 /** @domName SVGStylable.className */ | |
4986 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | |
4987 | |
4988 // Use implementation from Element. | |
4989 // final CSSStyleDeclaration style; | |
4990 | |
4991 /** @domName SVGStylable.getPresentationAttribute */ | |
4992 CSSValue getPresentationAttribute(String name) native; | |
4993 } | 4711 } |
4994 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4995 // for details. All rights reserved. Use of this source code is governed by a | 4713 // for details. All rights reserved. Use of this source code is governed by a |
4996 // BSD-style license that can be found in the LICENSE file. | 4714 // BSD-style license that can be found in the LICENSE file. |
4997 | 4715 |
4998 | 4716 |
4999 /// @domName SVGStringList | 4717 /// @domName SVGStringList |
5000 class SVGStringList implements JavaScriptIndexingBehavior, List<String> native "
*SVGStringList" { | 4718 class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
GStringList" { |
5001 | 4719 |
5002 /** @domName SVGStringList.numberOfItems */ | 4720 /** @domName SVGStringList.numberOfItems */ |
5003 final int numberOfItems; | 4721 final int numberOfItems; |
5004 | 4722 |
5005 String operator[](int index) => JS("String", "#[#]", this, index); | 4723 String operator[](int index) => JS("String", "#[#]", this, index); |
5006 | 4724 |
5007 void operator[]=(int index, String value) { | 4725 void operator[]=(int index, String value) { |
5008 throw new UnsupportedError("Cannot assign element of immutable List."); | 4726 throw new UnsupportedError("Cannot assign element of immutable List."); |
5009 } | 4727 } |
5010 // -- start List<String> mixins. | 4728 // -- start List<String> mixins. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5105 | 4823 |
5106 /** @domName SVGStringList.replaceItem */ | 4824 /** @domName SVGStringList.replaceItem */ |
5107 String replaceItem(String item, int index) native; | 4825 String replaceItem(String item, int index) native; |
5108 } | 4826 } |
5109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5110 // for details. All rights reserved. Use of this source code is governed by a | 4828 // for details. All rights reserved. Use of this source code is governed by a |
5111 // BSD-style license that can be found in the LICENSE file. | 4829 // BSD-style license that can be found in the LICENSE file. |
5112 | 4830 |
5113 | 4831 |
5114 /// @domName SVGStylable | 4832 /// @domName SVGStylable |
5115 abstract class SVGStylable { | 4833 abstract class Stylable { |
5116 | 4834 |
5117 SVGAnimatedString className; | 4835 AnimatedString className; |
5118 | 4836 |
5119 CSSStyleDeclaration style; | 4837 CSSStyleDeclaration style; |
5120 | 4838 |
5121 /** @domName SVGStylable.getPresentationAttribute */ | 4839 /** @domName SVGStylable.getPresentationAttribute */ |
5122 CSSValue getPresentationAttribute(String name); | 4840 CSSValue getPresentationAttribute(String name); |
5123 } | 4841 } |
5124 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5125 // for details. All rights reserved. Use of this source code is governed by a | 4843 // for details. All rights reserved. Use of this source code is governed by a |
5126 // BSD-style license that can be found in the LICENSE file. | 4844 // BSD-style license that can be found in the LICENSE file. |
5127 | 4845 |
5128 | 4846 |
5129 /// @domName SVGStyleElement | 4847 /// @domName SVGStyleElement |
5130 class SVGStyleElement extends SVGElement implements SVGLangSpace native "*SVGSty
leElement" { | 4848 class StyleElement extends SvgElement implements LangSpace native "*SVGStyleElem
ent" { |
| 4849 |
| 4850 factory StyleElement() => _Elements.createStyleElement(); |
5131 | 4851 |
5132 /** @domName SVGStyleElement.disabled */ | 4852 /** @domName SVGStyleElement.disabled */ |
5133 bool disabled; | 4853 bool disabled; |
5134 | 4854 |
5135 /** @domName SVGStyleElement.media */ | 4855 /** @domName SVGStyleElement.media */ |
5136 String media; | 4856 String media; |
5137 | 4857 |
5138 // Shadowing definition. | 4858 // Shadowing definition. |
5139 /** @domName SVGStyleElement.title */ | 4859 /** @domName SVGStyleElement.title */ |
5140 String get title => JS("String", "#.title", this); | 4860 String get title => JS("String", "#.title", this); |
5141 | 4861 |
5142 /** @domName SVGStyleElement.title */ | 4862 /** @domName SVGStyleElement.title */ |
5143 void set title(String value) { | 4863 void set title(String value) { |
5144 JS("void", "#.title = #", this, value); | 4864 JS("void", "#.title = #", this, value); |
5145 } | 4865 } |
5146 | 4866 |
5147 /** @domName SVGStyleElement.type */ | 4867 /** @domName SVGStyleElement.type */ |
5148 String type; | 4868 String type; |
5149 | 4869 |
5150 // From SVGLangSpace | 4870 // From SVGLangSpace |
5151 | 4871 |
| 4872 /** @domName SVGLangSpace.xmllang */ |
| 4873 String xmllang; |
| 4874 |
| 4875 /** @domName SVGLangSpace.xmlspace */ |
| 4876 String xmlspace; |
| 4877 } |
| 4878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4879 // for details. All rights reserved. Use of this source code is governed by a |
| 4880 // BSD-style license that can be found in the LICENSE file. |
| 4881 |
| 4882 |
| 4883 /// @domName SVGDocument |
| 4884 class SvgDocument extends Document native "*SVGDocument" { |
| 4885 |
| 4886 /** @domName SVGDocument.rootElement */ |
| 4887 final SvgSvgElement rootElement; |
| 4888 |
| 4889 /** @domName SVGDocument.createEvent */ |
| 4890 Event $dom_createEvent(String eventType) native "createEvent"; |
| 4891 } |
| 4892 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4893 // for details. All rights reserved. Use of this source code is governed by a |
| 4894 // BSD-style license that can be found in the LICENSE file. |
| 4895 |
| 4896 |
| 4897 class _AttributeClassSet extends CssClassSet { |
| 4898 final Element _element; |
| 4899 |
| 4900 _AttributeClassSet(this._element); |
| 4901 |
| 4902 Set<String> readClasses() { |
| 4903 var classname = _element.attributes['class']; |
| 4904 |
| 4905 Set<String> s = new Set<String>(); |
| 4906 for (String name in classname.split(' ')) { |
| 4907 String trimmed = name.trim(); |
| 4908 if (!trimmed.isEmpty) { |
| 4909 s.add(trimmed); |
| 4910 } |
| 4911 } |
| 4912 return s; |
| 4913 } |
| 4914 |
| 4915 void writeClasses(Set s) { |
| 4916 _element.attributes['class'] = _formatSet(s); |
| 4917 } |
| 4918 } |
| 4919 |
| 4920 class SvgElement extends Element native "*SVGElement" { |
| 4921 factory SvgElement.tag(String tag) => |
| 4922 _SvgElementFactoryProvider.createSvgElement_tag(tag); |
| 4923 factory SvgElement.svg(String svg) => |
| 4924 _SvgElementFactoryProvider.createSvgElement_svg(svg); |
| 4925 |
| 4926 CssClassSet get classes { |
| 4927 if (_cssClassSet == null) { |
| 4928 _cssClassSet = new _AttributeClassSet(_ptr); |
| 4929 } |
| 4930 return _cssClassSet; |
| 4931 } |
| 4932 |
| 4933 List<Element> get elements => new FilteredElementList(this); |
| 4934 |
| 4935 void set elements(Collection<Element> value) { |
| 4936 final elements = this.elements; |
| 4937 elements.clear(); |
| 4938 elements.addAll(value); |
| 4939 } |
| 4940 |
| 4941 String get outerHTML { |
| 4942 final container = new Element.tag("div"); |
| 4943 final SvgElement cloned = this.clone(true); |
| 4944 container.elements.add(cloned); |
| 4945 return container.innerHTML; |
| 4946 } |
| 4947 |
| 4948 String get innerHTML { |
| 4949 final container = new Element.tag("div"); |
| 4950 final SvgElement cloned = this.clone(true); |
| 4951 container.elements.addAll(cloned.elements); |
| 4952 return container.innerHTML; |
| 4953 } |
| 4954 |
| 4955 void set innerHTML(String svg) { |
| 4956 final container = new Element.tag("div"); |
| 4957 // Wrap the SVG string in <svg> so that SvgElements are created, rather than |
| 4958 // HTMLElements. |
| 4959 container.innerHTML = '<svg version="1.1">$svg</svg>'; |
| 4960 this.elements = container.elements[0].elements; |
| 4961 } |
| 4962 |
| 4963 |
| 4964 // Shadowing definition. |
| 4965 /** @domName SVGElement.id */ |
| 4966 String get id => JS("String", "#.id", this); |
| 4967 |
| 4968 /** @domName SVGElement.id */ |
| 4969 void set id(String value) { |
| 4970 JS("void", "#.id = #", this, value); |
| 4971 } |
| 4972 |
| 4973 /** @domName SVGElement.ownerSVGElement */ |
| 4974 final SvgSvgElement ownerSVGElement; |
| 4975 |
| 4976 /** @domName SVGElement.viewportElement */ |
| 4977 final SvgElement viewportElement; |
| 4978 |
| 4979 /** @domName SVGElement.xmlbase */ |
| 4980 String xmlbase; |
| 4981 |
| 4982 } |
| 4983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4984 // for details. All rights reserved. Use of this source code is governed by a |
| 4985 // BSD-style license that can be found in the LICENSE file. |
| 4986 |
| 4987 |
| 4988 class SvgSvgElement extends SvgElement implements FitToViewBox, Tests, Stylable,
Locatable, ExternalResourcesRequired, ZoomAndPan, LangSpace native "*SVGSVGElem
ent" { |
| 4989 factory SvgSvgElement() => _SvgSvgElementFactoryProvider.createSvgSvgElement()
; |
| 4990 |
| 4991 |
| 4992 /** @domName SVGSVGElement.contentScriptType */ |
| 4993 String contentScriptType; |
| 4994 |
| 4995 /** @domName SVGSVGElement.contentStyleType */ |
| 4996 String contentStyleType; |
| 4997 |
| 4998 /** @domName SVGSVGElement.currentScale */ |
| 4999 num currentScale; |
| 5000 |
| 5001 /** @domName SVGSVGElement.currentTranslate */ |
| 5002 final Point currentTranslate; |
| 5003 |
| 5004 /** @domName SVGSVGElement.currentView */ |
| 5005 final ViewSpec currentView; |
| 5006 |
| 5007 /** @domName SVGSVGElement.height */ |
| 5008 final AnimatedLength height; |
| 5009 |
| 5010 /** @domName SVGSVGElement.pixelUnitToMillimeterX */ |
| 5011 final num pixelUnitToMillimeterX; |
| 5012 |
| 5013 /** @domName SVGSVGElement.pixelUnitToMillimeterY */ |
| 5014 final num pixelUnitToMillimeterY; |
| 5015 |
| 5016 /** @domName SVGSVGElement.screenPixelToMillimeterX */ |
| 5017 final num screenPixelToMillimeterX; |
| 5018 |
| 5019 /** @domName SVGSVGElement.screenPixelToMillimeterY */ |
| 5020 final num screenPixelToMillimeterY; |
| 5021 |
| 5022 /** @domName SVGSVGElement.useCurrentView */ |
| 5023 final bool useCurrentView; |
| 5024 |
| 5025 /** @domName SVGSVGElement.viewport */ |
| 5026 final Rect viewport; |
| 5027 |
| 5028 /** @domName SVGSVGElement.width */ |
| 5029 final AnimatedLength width; |
| 5030 |
| 5031 /** @domName SVGSVGElement.x */ |
| 5032 final AnimatedLength x; |
| 5033 |
| 5034 /** @domName SVGSVGElement.y */ |
| 5035 final AnimatedLength y; |
| 5036 |
| 5037 /** @domName SVGSVGElement.animationsPaused */ |
| 5038 bool animationsPaused() native; |
| 5039 |
| 5040 /** @domName SVGSVGElement.checkEnclosure */ |
| 5041 bool checkEnclosure(SvgElement element, Rect rect) native; |
| 5042 |
| 5043 /** @domName SVGSVGElement.checkIntersection */ |
| 5044 bool checkIntersection(SvgElement element, Rect rect) native; |
| 5045 |
| 5046 /** @domName SVGSVGElement.createSVGAngle */ |
| 5047 Angle createSVGAngle() native; |
| 5048 |
| 5049 /** @domName SVGSVGElement.createSVGLength */ |
| 5050 Length createSVGLength() native; |
| 5051 |
| 5052 /** @domName SVGSVGElement.createSVGMatrix */ |
| 5053 Matrix createSVGMatrix() native; |
| 5054 |
| 5055 /** @domName SVGSVGElement.createSVGNumber */ |
| 5056 Number createSVGNumber() native; |
| 5057 |
| 5058 /** @domName SVGSVGElement.createSVGPoint */ |
| 5059 Point createSVGPoint() native; |
| 5060 |
| 5061 /** @domName SVGSVGElement.createSVGRect */ |
| 5062 Rect createSVGRect() native; |
| 5063 |
| 5064 /** @domName SVGSVGElement.createSVGTransform */ |
| 5065 Transform createSVGTransform() native; |
| 5066 |
| 5067 /** @domName SVGSVGElement.createSVGTransformFromMatrix */ |
| 5068 Transform createSVGTransformFromMatrix(Matrix matrix) native; |
| 5069 |
| 5070 /** @domName SVGSVGElement.deselectAll */ |
| 5071 void deselectAll() native; |
| 5072 |
| 5073 /** @domName SVGSVGElement.forceRedraw */ |
| 5074 void forceRedraw() native; |
| 5075 |
| 5076 /** @domName SVGSVGElement.getCurrentTime */ |
| 5077 num getCurrentTime() native; |
| 5078 |
| 5079 /** @domName SVGSVGElement.getElementById */ |
| 5080 Element getElementById(String elementId) native; |
| 5081 |
| 5082 /** @domName SVGSVGElement.getEnclosureList */ |
| 5083 List<Node> getEnclosureList(Rect rect, SvgElement referenceElement) native; |
| 5084 |
| 5085 /** @domName SVGSVGElement.getIntersectionList */ |
| 5086 List<Node> getIntersectionList(Rect rect, SvgElement referenceElement) native; |
| 5087 |
| 5088 /** @domName SVGSVGElement.pauseAnimations */ |
| 5089 void pauseAnimations() native; |
| 5090 |
| 5091 /** @domName SVGSVGElement.setCurrentTime */ |
| 5092 void setCurrentTime(num seconds) native; |
| 5093 |
| 5094 /** @domName SVGSVGElement.suspendRedraw */ |
| 5095 int suspendRedraw(int maxWaitMilliseconds) native; |
| 5096 |
| 5097 /** @domName SVGSVGElement.unpauseAnimations */ |
| 5098 void unpauseAnimations() native; |
| 5099 |
| 5100 /** @domName SVGSVGElement.unsuspendRedraw */ |
| 5101 void unsuspendRedraw(int suspendHandleId) native; |
| 5102 |
| 5103 /** @domName SVGSVGElement.unsuspendRedrawAll */ |
| 5104 void unsuspendRedrawAll() native; |
| 5105 |
| 5106 // From SVGExternalResourcesRequired |
| 5107 |
| 5108 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
| 5109 final AnimatedBoolean externalResourcesRequired; |
| 5110 |
| 5111 // From SVGFitToViewBox |
| 5112 |
| 5113 /** @domName SVGFitToViewBox.preserveAspectRatio */ |
| 5114 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 5115 |
| 5116 /** @domName SVGFitToViewBox.viewBox */ |
| 5117 final AnimatedRect viewBox; |
| 5118 |
| 5119 // From SVGLangSpace |
| 5120 |
5152 /** @domName SVGLangSpace.xmllang */ | 5121 /** @domName SVGLangSpace.xmllang */ |
5153 String xmllang; | 5122 String xmllang; |
5154 | 5123 |
5155 /** @domName SVGLangSpace.xmlspace */ | 5124 /** @domName SVGLangSpace.xmlspace */ |
5156 String xmlspace; | 5125 String xmlspace; |
| 5126 |
| 5127 // From SVGLocatable |
| 5128 |
| 5129 /** @domName SVGLocatable.farthestViewportElement */ |
| 5130 final SvgElement farthestViewportElement; |
| 5131 |
| 5132 /** @domName SVGLocatable.nearestViewportElement */ |
| 5133 final SvgElement nearestViewportElement; |
| 5134 |
| 5135 /** @domName SVGLocatable.getBBox */ |
| 5136 Rect getBBox() native; |
| 5137 |
| 5138 /** @domName SVGLocatable.getCTM */ |
| 5139 Matrix getCTM() native; |
| 5140 |
| 5141 /** @domName SVGLocatable.getScreenCTM */ |
| 5142 Matrix getScreenCTM() native; |
| 5143 |
| 5144 /** @domName SVGLocatable.getTransformToElement */ |
| 5145 Matrix getTransformToElement(SvgElement element) native; |
| 5146 |
| 5147 // From SVGStylable |
| 5148 |
| 5149 /** @domName SVGStylable.className */ |
| 5150 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
| 5151 |
| 5152 // Use implementation from Element. |
| 5153 // final CSSStyleDeclaration style; |
| 5154 |
| 5155 /** @domName SVGStylable.getPresentationAttribute */ |
| 5156 CSSValue getPresentationAttribute(String name) native; |
| 5157 |
| 5158 // From SVGTests |
| 5159 |
| 5160 /** @domName SVGTests.requiredExtensions */ |
| 5161 final StringList requiredExtensions; |
| 5162 |
| 5163 /** @domName SVGTests.requiredFeatures */ |
| 5164 final StringList requiredFeatures; |
| 5165 |
| 5166 /** @domName SVGTests.systemLanguage */ |
| 5167 final StringList systemLanguage; |
| 5168 |
| 5169 /** @domName SVGTests.hasExtension */ |
| 5170 bool hasExtension(String extension) native; |
| 5171 |
| 5172 // From SVGZoomAndPan |
| 5173 |
| 5174 /** @domName SVGZoomAndPan.zoomAndPan */ |
| 5175 int zoomAndPan; |
| 5176 |
5157 } | 5177 } |
5158 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5159 // for details. All rights reserved. Use of this source code is governed by a | 5179 // for details. All rights reserved. Use of this source code is governed by a |
5160 // BSD-style license that can be found in the LICENSE file. | 5180 // BSD-style license that can be found in the LICENSE file. |
5161 | 5181 |
5162 | 5182 |
5163 /// @domName SVGSwitchElement | 5183 /// @domName SVGSwitchElement |
5164 class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable,
SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGSwitchEleme
nt" { | 5184 class SwitchElement extends SvgElement implements Transformable, Tests, Stylable
, ExternalResourcesRequired, LangSpace native "*SVGSwitchElement" { |
5165 | 5185 |
5166 // From SVGExternalResourcesRequired | 5186 // From SVGExternalResourcesRequired |
5167 | 5187 |
5168 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 5188 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
5169 final SVGAnimatedBoolean externalResourcesRequired; | 5189 final AnimatedBoolean externalResourcesRequired; |
5170 | 5190 |
5171 // From SVGLangSpace | 5191 // From SVGLangSpace |
5172 | 5192 |
5173 /** @domName SVGLangSpace.xmllang */ | 5193 /** @domName SVGLangSpace.xmllang */ |
5174 String xmllang; | 5194 String xmllang; |
5175 | 5195 |
5176 /** @domName SVGLangSpace.xmlspace */ | 5196 /** @domName SVGLangSpace.xmlspace */ |
5177 String xmlspace; | 5197 String xmlspace; |
5178 | 5198 |
5179 // From SVGLocatable | 5199 // From SVGLocatable |
5180 | 5200 |
5181 /** @domName SVGLocatable.farthestViewportElement */ | 5201 /** @domName SVGLocatable.farthestViewportElement */ |
5182 final SVGElement farthestViewportElement; | 5202 final SvgElement farthestViewportElement; |
5183 | 5203 |
5184 /** @domName SVGLocatable.nearestViewportElement */ | 5204 /** @domName SVGLocatable.nearestViewportElement */ |
5185 final SVGElement nearestViewportElement; | 5205 final SvgElement nearestViewportElement; |
5186 | 5206 |
5187 /** @domName SVGLocatable.getBBox */ | 5207 /** @domName SVGLocatable.getBBox */ |
5188 SVGRect getBBox() native; | 5208 Rect getBBox() native; |
5189 | 5209 |
5190 /** @domName SVGLocatable.getCTM */ | 5210 /** @domName SVGLocatable.getCTM */ |
5191 SVGMatrix getCTM() native; | 5211 Matrix getCTM() native; |
5192 | 5212 |
5193 /** @domName SVGLocatable.getScreenCTM */ | 5213 /** @domName SVGLocatable.getScreenCTM */ |
5194 SVGMatrix getScreenCTM() native; | 5214 Matrix getScreenCTM() native; |
5195 | 5215 |
5196 /** @domName SVGLocatable.getTransformToElement */ | 5216 /** @domName SVGLocatable.getTransformToElement */ |
5197 SVGMatrix getTransformToElement(SVGElement element) native; | 5217 Matrix getTransformToElement(SvgElement element) native; |
5198 | 5218 |
5199 // From SVGStylable | 5219 // From SVGStylable |
5200 | 5220 |
5201 /** @domName SVGStylable.className */ | 5221 /** @domName SVGStylable.className */ |
5202 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 5222 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
5203 | 5223 |
5204 // Use implementation from Element. | 5224 // Use implementation from Element. |
5205 // final CSSStyleDeclaration style; | 5225 // final CSSStyleDeclaration style; |
5206 | 5226 |
5207 /** @domName SVGStylable.getPresentationAttribute */ | 5227 /** @domName SVGStylable.getPresentationAttribute */ |
5208 CSSValue getPresentationAttribute(String name) native; | 5228 CSSValue getPresentationAttribute(String name) native; |
5209 | 5229 |
5210 // From SVGTests | 5230 // From SVGTests |
5211 | 5231 |
5212 /** @domName SVGTests.requiredExtensions */ | 5232 /** @domName SVGTests.requiredExtensions */ |
5213 final SVGStringList requiredExtensions; | 5233 final StringList requiredExtensions; |
5214 | 5234 |
5215 /** @domName SVGTests.requiredFeatures */ | 5235 /** @domName SVGTests.requiredFeatures */ |
5216 final SVGStringList requiredFeatures; | 5236 final StringList requiredFeatures; |
5217 | 5237 |
5218 /** @domName SVGTests.systemLanguage */ | 5238 /** @domName SVGTests.systemLanguage */ |
5219 final SVGStringList systemLanguage; | 5239 final StringList systemLanguage; |
5220 | 5240 |
5221 /** @domName SVGTests.hasExtension */ | 5241 /** @domName SVGTests.hasExtension */ |
5222 bool hasExtension(String extension) native; | 5242 bool hasExtension(String extension) native; |
5223 | 5243 |
5224 // From SVGTransformable | 5244 // From SVGTransformable |
5225 | 5245 |
5226 /** @domName SVGTransformable.transform */ | 5246 /** @domName SVGTransformable.transform */ |
5227 final SVGAnimatedTransformList transform; | 5247 final AnimatedTransformList transform; |
5228 } | 5248 } |
5229 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5230 // for details. All rights reserved. Use of this source code is governed by a | 5250 // for details. All rights reserved. Use of this source code is governed by a |
5231 // BSD-style license that can be found in the LICENSE file. | 5251 // BSD-style license that can be found in the LICENSE file. |
5232 | 5252 |
5233 | 5253 |
5234 /// @domName SVGSymbolElement | 5254 /// @domName SVGSymbolElement |
5235 class SVGSymbolElement extends SVGElement implements SVGLangSpace, SVGFitToViewB
ox, SVGExternalResourcesRequired, SVGStylable native "*SVGSymbolElement" { | 5255 class SymbolElement extends SvgElement implements FitToViewBox, ExternalResource
sRequired, Stylable, LangSpace native "*SVGSymbolElement" { |
5236 | 5256 |
5237 // From SVGExternalResourcesRequired | 5257 // From SVGExternalResourcesRequired |
5238 | 5258 |
5239 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 5259 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
5240 final SVGAnimatedBoolean externalResourcesRequired; | 5260 final AnimatedBoolean externalResourcesRequired; |
5241 | 5261 |
5242 // From SVGFitToViewBox | 5262 // From SVGFitToViewBox |
5243 | 5263 |
5244 /** @domName SVGFitToViewBox.preserveAspectRatio */ | 5264 /** @domName SVGFitToViewBox.preserveAspectRatio */ |
5245 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | 5265 final AnimatedPreserveAspectRatio preserveAspectRatio; |
5246 | 5266 |
5247 /** @domName SVGFitToViewBox.viewBox */ | 5267 /** @domName SVGFitToViewBox.viewBox */ |
5248 final SVGAnimatedRect viewBox; | 5268 final AnimatedRect viewBox; |
5249 | 5269 |
5250 // From SVGLangSpace | 5270 // From SVGLangSpace |
5251 | 5271 |
5252 /** @domName SVGLangSpace.xmllang */ | 5272 /** @domName SVGLangSpace.xmllang */ |
5253 String xmllang; | 5273 String xmllang; |
5254 | 5274 |
5255 /** @domName SVGLangSpace.xmlspace */ | 5275 /** @domName SVGLangSpace.xmlspace */ |
5256 String xmlspace; | 5276 String xmlspace; |
5257 | 5277 |
5258 // From SVGStylable | 5278 // From SVGStylable |
5259 | 5279 |
5260 /** @domName SVGStylable.className */ | 5280 /** @domName SVGStylable.className */ |
5261 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 5281 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
5262 | 5282 |
5263 // Use implementation from Element. | 5283 // Use implementation from Element. |
5264 // final CSSStyleDeclaration style; | 5284 // final CSSStyleDeclaration style; |
5265 | 5285 |
5266 /** @domName SVGStylable.getPresentationAttribute */ | 5286 /** @domName SVGStylable.getPresentationAttribute */ |
5267 CSSValue getPresentationAttribute(String name) native; | 5287 CSSValue getPresentationAttribute(String name) native; |
5268 } | 5288 } |
5269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5270 // for details. All rights reserved. Use of this source code is governed by a | 5290 // for details. All rights reserved. Use of this source code is governed by a |
5271 // BSD-style license that can be found in the LICENSE file. | 5291 // BSD-style license that can be found in the LICENSE file. |
5272 | 5292 |
5273 | 5293 |
5274 /// @domName SVGTRefElement | 5294 /// @domName SVGTRefElement |
5275 class SVGTRefElement extends SVGTextPositioningElement implements SVGURIReferenc
e native "*SVGTRefElement" { | 5295 class TRefElement extends TextPositioningElement implements UriReference native
"*SVGTRefElement" { |
5276 | 5296 |
5277 // From SVGURIReference | 5297 // From SVGURIReference |
5278 | 5298 |
5279 /** @domName SVGURIReference.href */ | 5299 /** @domName SVGURIReference.href */ |
5280 final SVGAnimatedString href; | 5300 final AnimatedString href; |
5281 } | 5301 } |
5282 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5302 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5283 // for details. All rights reserved. Use of this source code is governed by a | 5303 // for details. All rights reserved. Use of this source code is governed by a |
5284 // BSD-style license that can be found in the LICENSE file. | 5304 // BSD-style license that can be found in the LICENSE file. |
5285 | 5305 |
5286 | 5306 |
5287 /// @domName SVGTSpanElement | 5307 /// @domName SVGTSpanElement |
5288 class SVGTSpanElement extends SVGTextPositioningElement native "*SVGTSpanElement
" { | 5308 class TSpanElement extends TextPositioningElement native "*SVGTSpanElement" { |
5289 } | 5309 } |
5290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5310 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5291 // for details. All rights reserved. Use of this source code is governed by a | 5311 // for details. All rights reserved. Use of this source code is governed by a |
5292 // BSD-style license that can be found in the LICENSE file. | 5312 // BSD-style license that can be found in the LICENSE file. |
5293 | 5313 |
5294 | 5314 |
5295 /// @domName SVGTests | 5315 /// @domName SVGTests |
5296 abstract class SVGTests { | 5316 abstract class Tests { |
5297 | 5317 |
5298 SVGStringList requiredExtensions; | 5318 StringList requiredExtensions; |
5299 | 5319 |
5300 SVGStringList requiredFeatures; | 5320 StringList requiredFeatures; |
5301 | 5321 |
5302 SVGStringList systemLanguage; | 5322 StringList systemLanguage; |
5303 | 5323 |
5304 /** @domName SVGTests.hasExtension */ | 5324 /** @domName SVGTests.hasExtension */ |
5305 bool hasExtension(String extension); | 5325 bool hasExtension(String extension); |
5306 } | 5326 } |
5307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5308 // for details. All rights reserved. Use of this source code is governed by a | 5328 // for details. All rights reserved. Use of this source code is governed by a |
5309 // BSD-style license that can be found in the LICENSE file. | 5329 // BSD-style license that can be found in the LICENSE file. |
5310 | 5330 |
5311 | 5331 |
5312 /// @domName SVGTextContentElement | 5332 /// @domName SVGTextContentElement |
5313 class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStyla
ble, SVGTests, SVGExternalResourcesRequired native "*SVGTextContentElement" { | 5333 class TextContentElement extends SvgElement implements Tests, Stylable, External
ResourcesRequired, LangSpace native "*SVGTextContentElement" { |
5314 | 5334 |
5315 static const int LENGTHADJUST_SPACING = 1; | 5335 static const int LENGTHADJUST_SPACING = 1; |
5316 | 5336 |
5317 static const int LENGTHADJUST_SPACINGANDGLYPHS = 2; | 5337 static const int LENGTHADJUST_SPACINGANDGLYPHS = 2; |
5318 | 5338 |
5319 static const int LENGTHADJUST_UNKNOWN = 0; | 5339 static const int LENGTHADJUST_UNKNOWN = 0; |
5320 | 5340 |
5321 /** @domName SVGTextContentElement.lengthAdjust */ | 5341 /** @domName SVGTextContentElement.lengthAdjust */ |
5322 final SVGAnimatedEnumeration lengthAdjust; | 5342 final AnimatedEnumeration lengthAdjust; |
5323 | 5343 |
5324 /** @domName SVGTextContentElement.textLength */ | 5344 /** @domName SVGTextContentElement.textLength */ |
5325 final SVGAnimatedLength textLength; | 5345 final AnimatedLength textLength; |
5326 | 5346 |
5327 /** @domName SVGTextContentElement.getCharNumAtPosition */ | 5347 /** @domName SVGTextContentElement.getCharNumAtPosition */ |
5328 int getCharNumAtPosition(SVGPoint point) native; | 5348 int getCharNumAtPosition(Point point) native; |
5329 | 5349 |
5330 /** @domName SVGTextContentElement.getComputedTextLength */ | 5350 /** @domName SVGTextContentElement.getComputedTextLength */ |
5331 num getComputedTextLength() native; | 5351 num getComputedTextLength() native; |
5332 | 5352 |
5333 /** @domName SVGTextContentElement.getEndPositionOfChar */ | 5353 /** @domName SVGTextContentElement.getEndPositionOfChar */ |
5334 SVGPoint getEndPositionOfChar(int offset) native; | 5354 Point getEndPositionOfChar(int offset) native; |
5335 | 5355 |
5336 /** @domName SVGTextContentElement.getExtentOfChar */ | 5356 /** @domName SVGTextContentElement.getExtentOfChar */ |
5337 SVGRect getExtentOfChar(int offset) native; | 5357 Rect getExtentOfChar(int offset) native; |
5338 | 5358 |
5339 /** @domName SVGTextContentElement.getNumberOfChars */ | 5359 /** @domName SVGTextContentElement.getNumberOfChars */ |
5340 int getNumberOfChars() native; | 5360 int getNumberOfChars() native; |
5341 | 5361 |
5342 /** @domName SVGTextContentElement.getRotationOfChar */ | 5362 /** @domName SVGTextContentElement.getRotationOfChar */ |
5343 num getRotationOfChar(int offset) native; | 5363 num getRotationOfChar(int offset) native; |
5344 | 5364 |
5345 /** @domName SVGTextContentElement.getStartPositionOfChar */ | 5365 /** @domName SVGTextContentElement.getStartPositionOfChar */ |
5346 SVGPoint getStartPositionOfChar(int offset) native; | 5366 Point getStartPositionOfChar(int offset) native; |
5347 | 5367 |
5348 /** @domName SVGTextContentElement.getSubStringLength */ | 5368 /** @domName SVGTextContentElement.getSubStringLength */ |
5349 num getSubStringLength(int offset, int length) native; | 5369 num getSubStringLength(int offset, int length) native; |
5350 | 5370 |
5351 /** @domName SVGTextContentElement.selectSubString */ | 5371 /** @domName SVGTextContentElement.selectSubString */ |
5352 void selectSubString(int offset, int length) native; | 5372 void selectSubString(int offset, int length) native; |
5353 | 5373 |
5354 // From SVGExternalResourcesRequired | 5374 // From SVGExternalResourcesRequired |
5355 | 5375 |
5356 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 5376 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
5357 final SVGAnimatedBoolean externalResourcesRequired; | 5377 final AnimatedBoolean externalResourcesRequired; |
5358 | 5378 |
5359 // From SVGLangSpace | 5379 // From SVGLangSpace |
5360 | 5380 |
5361 /** @domName SVGLangSpace.xmllang */ | 5381 /** @domName SVGLangSpace.xmllang */ |
5362 String xmllang; | 5382 String xmllang; |
5363 | 5383 |
5364 /** @domName SVGLangSpace.xmlspace */ | 5384 /** @domName SVGLangSpace.xmlspace */ |
5365 String xmlspace; | 5385 String xmlspace; |
5366 | 5386 |
5367 // From SVGStylable | 5387 // From SVGStylable |
5368 | 5388 |
5369 /** @domName SVGStylable.className */ | 5389 /** @domName SVGStylable.className */ |
5370 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 5390 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
5371 | 5391 |
5372 // Use implementation from Element. | 5392 // Use implementation from Element. |
5373 // final CSSStyleDeclaration style; | 5393 // final CSSStyleDeclaration style; |
5374 | 5394 |
5375 /** @domName SVGStylable.getPresentationAttribute */ | 5395 /** @domName SVGStylable.getPresentationAttribute */ |
5376 CSSValue getPresentationAttribute(String name) native; | 5396 CSSValue getPresentationAttribute(String name) native; |
5377 | 5397 |
5378 // From SVGTests | 5398 // From SVGTests |
5379 | 5399 |
5380 /** @domName SVGTests.requiredExtensions */ | 5400 /** @domName SVGTests.requiredExtensions */ |
5381 final SVGStringList requiredExtensions; | 5401 final StringList requiredExtensions; |
5382 | 5402 |
5383 /** @domName SVGTests.requiredFeatures */ | 5403 /** @domName SVGTests.requiredFeatures */ |
5384 final SVGStringList requiredFeatures; | 5404 final StringList requiredFeatures; |
5385 | 5405 |
5386 /** @domName SVGTests.systemLanguage */ | 5406 /** @domName SVGTests.systemLanguage */ |
5387 final SVGStringList systemLanguage; | 5407 final StringList systemLanguage; |
5388 | 5408 |
5389 /** @domName SVGTests.hasExtension */ | 5409 /** @domName SVGTests.hasExtension */ |
5390 bool hasExtension(String extension) native; | 5410 bool hasExtension(String extension) native; |
5391 } | 5411 } |
5392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5393 // for details. All rights reserved. Use of this source code is governed by a | 5413 // for details. All rights reserved. Use of this source code is governed by a |
5394 // BSD-style license that can be found in the LICENSE file. | 5414 // BSD-style license that can be found in the LICENSE file. |
5395 | 5415 |
5396 | 5416 |
5397 /// @domName SVGTextElement | 5417 /// @domName SVGTextElement |
5398 class SVGTextElement extends SVGTextPositioningElement implements SVGTransformab
le native "*SVGTextElement" { | 5418 class TextElement extends TextPositioningElement implements Transformable native
"*SVGTextElement" { |
5399 | 5419 |
5400 // From SVGLocatable | 5420 // From SVGLocatable |
5401 | 5421 |
5402 /** @domName SVGLocatable.farthestViewportElement */ | 5422 /** @domName SVGLocatable.farthestViewportElement */ |
5403 final SVGElement farthestViewportElement; | 5423 final SvgElement farthestViewportElement; |
5404 | 5424 |
5405 /** @domName SVGLocatable.nearestViewportElement */ | 5425 /** @domName SVGLocatable.nearestViewportElement */ |
5406 final SVGElement nearestViewportElement; | 5426 final SvgElement nearestViewportElement; |
5407 | 5427 |
5408 /** @domName SVGLocatable.getBBox */ | 5428 /** @domName SVGLocatable.getBBox */ |
5409 SVGRect getBBox() native; | 5429 Rect getBBox() native; |
5410 | 5430 |
5411 /** @domName SVGLocatable.getCTM */ | 5431 /** @domName SVGLocatable.getCTM */ |
5412 SVGMatrix getCTM() native; | 5432 Matrix getCTM() native; |
5413 | 5433 |
5414 /** @domName SVGLocatable.getScreenCTM */ | 5434 /** @domName SVGLocatable.getScreenCTM */ |
5415 SVGMatrix getScreenCTM() native; | 5435 Matrix getScreenCTM() native; |
5416 | 5436 |
5417 /** @domName SVGLocatable.getTransformToElement */ | 5437 /** @domName SVGLocatable.getTransformToElement */ |
5418 SVGMatrix getTransformToElement(SVGElement element) native; | 5438 Matrix getTransformToElement(SvgElement element) native; |
5419 | 5439 |
5420 // From SVGTransformable | 5440 // From SVGTransformable |
5421 | 5441 |
5422 /** @domName SVGTransformable.transform */ | 5442 /** @domName SVGTransformable.transform */ |
5423 final SVGAnimatedTransformList transform; | 5443 final AnimatedTransformList transform; |
5424 } | 5444 } |
5425 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5445 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5426 // for details. All rights reserved. Use of this source code is governed by a | 5446 // for details. All rights reserved. Use of this source code is governed by a |
5427 // BSD-style license that can be found in the LICENSE file. | 5447 // BSD-style license that can be found in the LICENSE file. |
5428 | 5448 |
5429 | 5449 |
5430 /// @domName SVGTextPathElement | 5450 /// @domName SVGTextPathElement |
5431 class SVGTextPathElement extends SVGTextContentElement implements SVGURIReferenc
e native "*SVGTextPathElement" { | 5451 class TextPathElement extends TextContentElement implements UriReference native
"*SVGTextPathElement" { |
5432 | 5452 |
5433 static const int TEXTPATH_METHODTYPE_ALIGN = 1; | 5453 static const int TEXTPATH_METHODTYPE_ALIGN = 1; |
5434 | 5454 |
5435 static const int TEXTPATH_METHODTYPE_STRETCH = 2; | 5455 static const int TEXTPATH_METHODTYPE_STRETCH = 2; |
5436 | 5456 |
5437 static const int TEXTPATH_METHODTYPE_UNKNOWN = 0; | 5457 static const int TEXTPATH_METHODTYPE_UNKNOWN = 0; |
5438 | 5458 |
5439 static const int TEXTPATH_SPACINGTYPE_AUTO = 1; | 5459 static const int TEXTPATH_SPACINGTYPE_AUTO = 1; |
5440 | 5460 |
5441 static const int TEXTPATH_SPACINGTYPE_EXACT = 2; | 5461 static const int TEXTPATH_SPACINGTYPE_EXACT = 2; |
5442 | 5462 |
5443 static const int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; | 5463 static const int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; |
5444 | 5464 |
5445 /** @domName SVGTextPathElement.method */ | 5465 /** @domName SVGTextPathElement.method */ |
5446 final SVGAnimatedEnumeration method; | 5466 final AnimatedEnumeration method; |
5447 | 5467 |
5448 /** @domName SVGTextPathElement.spacing */ | 5468 /** @domName SVGTextPathElement.spacing */ |
5449 final SVGAnimatedEnumeration spacing; | 5469 final AnimatedEnumeration spacing; |
5450 | 5470 |
5451 /** @domName SVGTextPathElement.startOffset */ | 5471 /** @domName SVGTextPathElement.startOffset */ |
5452 final SVGAnimatedLength startOffset; | 5472 final AnimatedLength startOffset; |
5453 | 5473 |
5454 // From SVGURIReference | 5474 // From SVGURIReference |
5455 | 5475 |
5456 /** @domName SVGURIReference.href */ | 5476 /** @domName SVGURIReference.href */ |
5457 final SVGAnimatedString href; | 5477 final AnimatedString href; |
5458 } | 5478 } |
5459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5460 // for details. All rights reserved. Use of this source code is governed by a | 5480 // for details. All rights reserved. Use of this source code is governed by a |
5461 // BSD-style license that can be found in the LICENSE file. | 5481 // BSD-style license that can be found in the LICENSE file. |
5462 | 5482 |
5463 | 5483 |
5464 /// @domName SVGTextPositioningElement | 5484 /// @domName SVGTextPositioningElement |
5465 class SVGTextPositioningElement extends SVGTextContentElement native "*SVGTextPo
sitioningElement" { | 5485 class TextPositioningElement extends TextContentElement native "*SVGTextPosition
ingElement" { |
5466 | 5486 |
5467 /** @domName SVGTextPositioningElement.dx */ | 5487 /** @domName SVGTextPositioningElement.dx */ |
5468 final SVGAnimatedLengthList dx; | 5488 final AnimatedLengthList dx; |
5469 | 5489 |
5470 /** @domName SVGTextPositioningElement.dy */ | 5490 /** @domName SVGTextPositioningElement.dy */ |
5471 final SVGAnimatedLengthList dy; | 5491 final AnimatedLengthList dy; |
5472 | 5492 |
5473 /** @domName SVGTextPositioningElement.rotate */ | 5493 /** @domName SVGTextPositioningElement.rotate */ |
5474 final SVGAnimatedNumberList rotate; | 5494 final AnimatedNumberList rotate; |
5475 | 5495 |
5476 /** @domName SVGTextPositioningElement.x */ | 5496 /** @domName SVGTextPositioningElement.x */ |
5477 final SVGAnimatedLengthList x; | 5497 final AnimatedLengthList x; |
5478 | 5498 |
5479 /** @domName SVGTextPositioningElement.y */ | 5499 /** @domName SVGTextPositioningElement.y */ |
5480 final SVGAnimatedLengthList y; | 5500 final AnimatedLengthList y; |
5481 } | 5501 } |
5482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5483 // for details. All rights reserved. Use of this source code is governed by a | 5503 // for details. All rights reserved. Use of this source code is governed by a |
5484 // BSD-style license that can be found in the LICENSE file. | 5504 // BSD-style license that can be found in the LICENSE file. |
5485 | 5505 |
5486 | 5506 |
5487 /// @domName SVGTitleElement | 5507 /// @domName SVGTitleElement |
5488 class SVGTitleElement extends SVGElement implements SVGLangSpace, SVGStylable na
tive "*SVGTitleElement" { | 5508 class TitleElement extends SvgElement implements Stylable, LangSpace native "*SV
GTitleElement" { |
| 5509 |
| 5510 factory TitleElement() => _Elements.createTitleElement(); |
5489 | 5511 |
5490 // From SVGLangSpace | 5512 // From SVGLangSpace |
5491 | 5513 |
5492 /** @domName SVGLangSpace.xmllang */ | 5514 /** @domName SVGLangSpace.xmllang */ |
5493 String xmllang; | 5515 String xmllang; |
5494 | 5516 |
5495 /** @domName SVGLangSpace.xmlspace */ | 5517 /** @domName SVGLangSpace.xmlspace */ |
5496 String xmlspace; | 5518 String xmlspace; |
5497 | 5519 |
5498 // From SVGStylable | 5520 // From SVGStylable |
5499 | 5521 |
5500 /** @domName SVGStylable.className */ | 5522 /** @domName SVGStylable.className */ |
5501 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 5523 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
5502 | 5524 |
5503 // Use implementation from Element. | 5525 // Use implementation from Element. |
5504 // final CSSStyleDeclaration style; | 5526 // final CSSStyleDeclaration style; |
5505 | 5527 |
5506 /** @domName SVGStylable.getPresentationAttribute */ | 5528 /** @domName SVGStylable.getPresentationAttribute */ |
5507 CSSValue getPresentationAttribute(String name) native; | 5529 CSSValue getPresentationAttribute(String name) native; |
5508 } | 5530 } |
5509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5510 // for details. All rights reserved. Use of this source code is governed by a | 5532 // for details. All rights reserved. Use of this source code is governed by a |
5511 // BSD-style license that can be found in the LICENSE file. | 5533 // BSD-style license that can be found in the LICENSE file. |
5512 | 5534 |
5513 | 5535 |
5514 /// @domName SVGTransform | 5536 /// @domName SVGTransform |
5515 class SVGTransform native "*SVGTransform" { | 5537 class Transform native "*SVGTransform" { |
5516 | 5538 |
5517 static const int SVG_TRANSFORM_MATRIX = 1; | 5539 static const int SVG_TRANSFORM_MATRIX = 1; |
5518 | 5540 |
5519 static const int SVG_TRANSFORM_ROTATE = 4; | 5541 static const int SVG_TRANSFORM_ROTATE = 4; |
5520 | 5542 |
5521 static const int SVG_TRANSFORM_SCALE = 3; | 5543 static const int SVG_TRANSFORM_SCALE = 3; |
5522 | 5544 |
5523 static const int SVG_TRANSFORM_SKEWX = 5; | 5545 static const int SVG_TRANSFORM_SKEWX = 5; |
5524 | 5546 |
5525 static const int SVG_TRANSFORM_SKEWY = 6; | 5547 static const int SVG_TRANSFORM_SKEWY = 6; |
5526 | 5548 |
5527 static const int SVG_TRANSFORM_TRANSLATE = 2; | 5549 static const int SVG_TRANSFORM_TRANSLATE = 2; |
5528 | 5550 |
5529 static const int SVG_TRANSFORM_UNKNOWN = 0; | 5551 static const int SVG_TRANSFORM_UNKNOWN = 0; |
5530 | 5552 |
5531 /** @domName SVGTransform.angle */ | 5553 /** @domName SVGTransform.angle */ |
5532 final num angle; | 5554 final num angle; |
5533 | 5555 |
5534 /** @domName SVGTransform.matrix */ | 5556 /** @domName SVGTransform.matrix */ |
5535 final SVGMatrix matrix; | 5557 final Matrix matrix; |
5536 | 5558 |
5537 /** @domName SVGTransform.type */ | 5559 /** @domName SVGTransform.type */ |
5538 final int type; | 5560 final int type; |
5539 | 5561 |
5540 /** @domName SVGTransform.setMatrix */ | 5562 /** @domName SVGTransform.setMatrix */ |
5541 void setMatrix(SVGMatrix matrix) native; | 5563 void setMatrix(Matrix matrix) native; |
5542 | 5564 |
5543 /** @domName SVGTransform.setRotate */ | 5565 /** @domName SVGTransform.setRotate */ |
5544 void setRotate(num angle, num cx, num cy) native; | 5566 void setRotate(num angle, num cx, num cy) native; |
5545 | 5567 |
5546 /** @domName SVGTransform.setScale */ | 5568 /** @domName SVGTransform.setScale */ |
5547 void setScale(num sx, num sy) native; | 5569 void setScale(num sx, num sy) native; |
5548 | 5570 |
5549 /** @domName SVGTransform.setSkewX */ | 5571 /** @domName SVGTransform.setSkewX */ |
5550 void setSkewX(num angle) native; | 5572 void setSkewX(num angle) native; |
5551 | 5573 |
5552 /** @domName SVGTransform.setSkewY */ | 5574 /** @domName SVGTransform.setSkewY */ |
5553 void setSkewY(num angle) native; | 5575 void setSkewY(num angle) native; |
5554 | 5576 |
5555 /** @domName SVGTransform.setTranslate */ | 5577 /** @domName SVGTransform.setTranslate */ |
5556 void setTranslate(num tx, num ty) native; | 5578 void setTranslate(num tx, num ty) native; |
5557 } | 5579 } |
5558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5559 // for details. All rights reserved. Use of this source code is governed by a | 5581 // for details. All rights reserved. Use of this source code is governed by a |
5560 // BSD-style license that can be found in the LICENSE file. | 5582 // BSD-style license that can be found in the LICENSE file. |
5561 | 5583 |
5562 | 5584 |
5563 /// @domName SVGTransformList | 5585 /// @domName SVGTransformList |
5564 class SVGTransformList implements JavaScriptIndexingBehavior, List<SVGTransform>
native "*SVGTransformList" { | 5586 class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
e "*SVGTransformList" { |
5565 | 5587 |
5566 /** @domName SVGTransformList.numberOfItems */ | 5588 /** @domName SVGTransformList.numberOfItems */ |
5567 final int numberOfItems; | 5589 final int numberOfItems; |
5568 | 5590 |
5569 SVGTransform operator[](int index) => JS("SVGTransform", "#[#]", this, index); | 5591 Transform operator[](int index) => JS("Transform", "#[#]", this, index); |
5570 | 5592 |
5571 void operator[]=(int index, SVGTransform value) { | 5593 void operator[]=(int index, Transform value) { |
5572 throw new UnsupportedError("Cannot assign element of immutable List."); | 5594 throw new UnsupportedError("Cannot assign element of immutable List."); |
5573 } | 5595 } |
5574 // -- start List<SVGTransform> mixins. | 5596 // -- start List<Transform> mixins. |
5575 // SVGTransform is the element type. | 5597 // Transform is the element type. |
5576 | 5598 |
5577 // From Iterable<SVGTransform>: | 5599 // From Iterable<Transform>: |
5578 | 5600 |
5579 Iterator<SVGTransform> iterator() { | 5601 Iterator<Transform> iterator() { |
5580 // Note: NodeLists are not fixed size. And most probably length shouldn't | 5602 // Note: NodeLists are not fixed size. And most probably length shouldn't |
5581 // be cached in both iterator _and_ forEach method. For now caching it | 5603 // be cached in both iterator _and_ forEach method. For now caching it |
5582 // for consistency. | 5604 // for consistency. |
5583 return new FixedSizeListIterator<SVGTransform>(this); | 5605 return new FixedSizeListIterator<Transform>(this); |
5584 } | 5606 } |
5585 | 5607 |
5586 // From Collection<SVGTransform>: | 5608 // From Collection<Transform>: |
5587 | 5609 |
5588 void add(SVGTransform value) { | 5610 void add(Transform value) { |
5589 throw new UnsupportedError("Cannot add to immutable List."); | 5611 throw new UnsupportedError("Cannot add to immutable List."); |
5590 } | 5612 } |
5591 | 5613 |
5592 void addLast(SVGTransform value) { | 5614 void addLast(Transform value) { |
5593 throw new UnsupportedError("Cannot add to immutable List."); | 5615 throw new UnsupportedError("Cannot add to immutable List."); |
5594 } | 5616 } |
5595 | 5617 |
5596 void addAll(Collection<SVGTransform> collection) { | 5618 void addAll(Collection<Transform> collection) { |
5597 throw new UnsupportedError("Cannot add to immutable List."); | 5619 throw new UnsupportedError("Cannot add to immutable List."); |
5598 } | 5620 } |
5599 | 5621 |
5600 bool contains(SVGTransform element) => _Collections.contains(this, element); | 5622 bool contains(Transform element) => _Collections.contains(this, element); |
5601 | 5623 |
5602 void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f); | 5624 void forEach(void f(Transform element)) => _Collections.forEach(this, f); |
5603 | 5625 |
5604 Collection map(f(SVGTransform element)) => _Collections.map(this, [], f); | 5626 Collection map(f(Transform element)) => _Collections.map(this, [], f); |
5605 | 5627 |
5606 Collection<SVGTransform> filter(bool f(SVGTransform element)) => | 5628 Collection<Transform> filter(bool f(Transform element)) => |
5607 _Collections.filter(this, <SVGTransform>[], f); | 5629 _Collections.filter(this, <Transform>[], f); |
5608 | 5630 |
5609 bool every(bool f(SVGTransform element)) => _Collections.every(this, f); | 5631 bool every(bool f(Transform element)) => _Collections.every(this, f); |
5610 | 5632 |
5611 bool some(bool f(SVGTransform element)) => _Collections.some(this, f); | 5633 bool some(bool f(Transform element)) => _Collections.some(this, f); |
5612 | 5634 |
5613 bool get isEmpty => this.length == 0; | 5635 bool get isEmpty => this.length == 0; |
5614 | 5636 |
5615 // From List<SVGTransform>: | 5637 // From List<Transform>: |
5616 | 5638 |
5617 void sort([Comparator<SVGTransform> compare = Comparable.compare]) { | 5639 void sort([Comparator<Transform> compare = Comparable.compare]) { |
5618 throw new UnsupportedError("Cannot sort immutable List."); | 5640 throw new UnsupportedError("Cannot sort immutable List."); |
5619 } | 5641 } |
5620 | 5642 |
5621 int indexOf(SVGTransform element, [int start = 0]) => | 5643 int indexOf(Transform element, [int start = 0]) => |
5622 _Lists.indexOf(this, element, start, this.length); | 5644 _Lists.indexOf(this, element, start, this.length); |
5623 | 5645 |
5624 int lastIndexOf(SVGTransform element, [int start]) { | 5646 int lastIndexOf(Transform element, [int start]) { |
5625 if (start == null) start = length - 1; | 5647 if (start == null) start = length - 1; |
5626 return _Lists.lastIndexOf(this, element, start); | 5648 return _Lists.lastIndexOf(this, element, start); |
5627 } | 5649 } |
5628 | 5650 |
5629 SVGTransform get last => this[length - 1]; | 5651 Transform get last => this[length - 1]; |
5630 | 5652 |
5631 SVGTransform removeLast() { | 5653 Transform removeLast() { |
5632 throw new UnsupportedError("Cannot removeLast on immutable List."); | 5654 throw new UnsupportedError("Cannot removeLast on immutable List."); |
5633 } | 5655 } |
5634 | 5656 |
5635 void setRange(int start, int rangeLength, List<SVGTransform> from, [int startF
rom]) { | 5657 void setRange(int start, int rangeLength, List<Transform> from, [int startFrom
]) { |
5636 throw new UnsupportedError("Cannot setRange on immutable List."); | 5658 throw new UnsupportedError("Cannot setRange on immutable List."); |
5637 } | 5659 } |
5638 | 5660 |
5639 void removeRange(int start, int rangeLength) { | 5661 void removeRange(int start, int rangeLength) { |
5640 throw new UnsupportedError("Cannot removeRange on immutable List."); | 5662 throw new UnsupportedError("Cannot removeRange on immutable List."); |
5641 } | 5663 } |
5642 | 5664 |
5643 void insertRange(int start, int rangeLength, [SVGTransform initialValue]) { | 5665 void insertRange(int start, int rangeLength, [Transform initialValue]) { |
5644 throw new UnsupportedError("Cannot insertRange on immutable List."); | 5666 throw new UnsupportedError("Cannot insertRange on immutable List."); |
5645 } | 5667 } |
5646 | 5668 |
5647 List<SVGTransform> getRange(int start, int rangeLength) => | 5669 List<Transform> getRange(int start, int rangeLength) => |
5648 _Lists.getRange(this, start, rangeLength, <SVGTransform>[]); | 5670 _Lists.getRange(this, start, rangeLength, <Transform>[]); |
5649 | 5671 |
5650 // -- end List<SVGTransform> mixins. | 5672 // -- end List<Transform> mixins. |
5651 | 5673 |
5652 /** @domName SVGTransformList.appendItem */ | 5674 /** @domName SVGTransformList.appendItem */ |
5653 SVGTransform appendItem(SVGTransform item) native; | 5675 Transform appendItem(Transform item) native; |
5654 | 5676 |
5655 /** @domName SVGTransformList.clear */ | 5677 /** @domName SVGTransformList.clear */ |
5656 void clear() native; | 5678 void clear() native; |
5657 | 5679 |
5658 /** @domName SVGTransformList.consolidate */ | 5680 /** @domName SVGTransformList.consolidate */ |
5659 SVGTransform consolidate() native; | 5681 Transform consolidate() native; |
5660 | 5682 |
5661 /** @domName SVGTransformList.createSVGTransformFromMatrix */ | 5683 /** @domName SVGTransformList.createSVGTransformFromMatrix */ |
5662 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix) native; | 5684 Transform createSVGTransformFromMatrix(Matrix matrix) native; |
5663 | 5685 |
5664 /** @domName SVGTransformList.getItem */ | 5686 /** @domName SVGTransformList.getItem */ |
5665 SVGTransform getItem(int index) native; | 5687 Transform getItem(int index) native; |
5666 | 5688 |
5667 /** @domName SVGTransformList.initialize */ | 5689 /** @domName SVGTransformList.initialize */ |
5668 SVGTransform initialize(SVGTransform item) native; | 5690 Transform initialize(Transform item) native; |
5669 | 5691 |
5670 /** @domName SVGTransformList.insertItemBefore */ | 5692 /** @domName SVGTransformList.insertItemBefore */ |
5671 SVGTransform insertItemBefore(SVGTransform item, int index) native; | 5693 Transform insertItemBefore(Transform item, int index) native; |
5672 | 5694 |
5673 /** @domName SVGTransformList.removeItem */ | 5695 /** @domName SVGTransformList.removeItem */ |
5674 SVGTransform removeItem(int index) native; | 5696 Transform removeItem(int index) native; |
5675 | 5697 |
5676 /** @domName SVGTransformList.replaceItem */ | 5698 /** @domName SVGTransformList.replaceItem */ |
5677 SVGTransform replaceItem(SVGTransform item, int index) native; | 5699 Transform replaceItem(Transform item, int index) native; |
5678 } | 5700 } |
5679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5680 // for details. All rights reserved. Use of this source code is governed by a | 5702 // for details. All rights reserved. Use of this source code is governed by a |
5681 // BSD-style license that can be found in the LICENSE file. | 5703 // BSD-style license that can be found in the LICENSE file. |
5682 | 5704 |
5683 | 5705 |
5684 /// @domName SVGTransformable | 5706 /// @domName SVGTransformable |
5685 abstract class SVGTransformable implements SVGLocatable { | 5707 abstract class Transformable implements Locatable { |
5686 | 5708 |
5687 SVGAnimatedTransformList transform; | 5709 AnimatedTransformList transform; |
5688 | 5710 |
5689 // From SVGLocatable | 5711 // From SVGLocatable |
5690 | 5712 |
5691 SVGElement farthestViewportElement; | 5713 SvgElement farthestViewportElement; |
5692 | 5714 |
5693 SVGElement nearestViewportElement; | 5715 SvgElement nearestViewportElement; |
5694 | 5716 |
5695 /** @domName SVGLocatable.getBBox */ | 5717 /** @domName SVGLocatable.getBBox */ |
5696 SVGRect getBBox(); | 5718 Rect getBBox(); |
5697 | 5719 |
5698 /** @domName SVGLocatable.getCTM */ | 5720 /** @domName SVGLocatable.getCTM */ |
5699 SVGMatrix getCTM(); | 5721 Matrix getCTM(); |
5700 | 5722 |
5701 /** @domName SVGLocatable.getScreenCTM */ | 5723 /** @domName SVGLocatable.getScreenCTM */ |
5702 SVGMatrix getScreenCTM(); | 5724 Matrix getScreenCTM(); |
5703 | 5725 |
5704 /** @domName SVGLocatable.getTransformToElement */ | 5726 /** @domName SVGLocatable.getTransformToElement */ |
5705 SVGMatrix getTransformToElement(SVGElement element); | 5727 Matrix getTransformToElement(SvgElement element); |
5706 } | |
5707 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
5708 // for details. All rights reserved. Use of this source code is governed by a | |
5709 // BSD-style license that can be found in the LICENSE file. | |
5710 | |
5711 | |
5712 /// @domName SVGURIReference | |
5713 abstract class SVGURIReference { | |
5714 | |
5715 SVGAnimatedString href; | |
5716 } | 5728 } |
5717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5729 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5718 // for details. All rights reserved. Use of this source code is governed by a | 5730 // for details. All rights reserved. Use of this source code is governed by a |
5719 // BSD-style license that can be found in the LICENSE file. | 5731 // BSD-style license that can be found in the LICENSE file. |
5720 | 5732 |
5721 | 5733 |
5722 /// @domName SVGUnitTypes | 5734 /// @domName SVGUnitTypes |
5723 class SVGUnitTypes native "*SVGUnitTypes" { | 5735 class UnitTypes native "*SVGUnitTypes" { |
5724 | 5736 |
5725 static const int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; | 5737 static const int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; |
5726 | 5738 |
5727 static const int SVG_UNIT_TYPE_UNKNOWN = 0; | 5739 static const int SVG_UNIT_TYPE_UNKNOWN = 0; |
5728 | 5740 |
5729 static const int SVG_UNIT_TYPE_USERSPACEONUSE = 1; | 5741 static const int SVG_UNIT_TYPE_USERSPACEONUSE = 1; |
5730 } | 5742 } |
5731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5732 // for details. All rights reserved. Use of this source code is governed by a | 5744 // for details. All rights reserved. Use of this source code is governed by a |
| 5745 // BSD-style license that can be found in the LICENSE file. |
| 5746 |
| 5747 |
| 5748 /// @domName SVGURIReference |
| 5749 abstract class UriReference { |
| 5750 |
| 5751 AnimatedString href; |
| 5752 } |
| 5753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5754 // for details. All rights reserved. Use of this source code is governed by a |
5733 // BSD-style license that can be found in the LICENSE file. | 5755 // BSD-style license that can be found in the LICENSE file. |
5734 | 5756 |
5735 | 5757 |
5736 /// @domName SVGUseElement | 5758 /// @domName SVGUseElement |
5737 class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGSty
lable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable native "*
SVGUseElement" { | 5759 class UseElement extends SvgElement implements Transformable, Tests, UriReferenc
e, Stylable, ExternalResourcesRequired, LangSpace native "*SVGUseElement" { |
5738 | 5760 |
5739 /** @domName SVGUseElement.animatedInstanceRoot */ | 5761 /** @domName SVGUseElement.animatedInstanceRoot */ |
5740 final SVGElementInstance animatedInstanceRoot; | 5762 final ElementInstance animatedInstanceRoot; |
5741 | 5763 |
5742 /** @domName SVGUseElement.height */ | 5764 /** @domName SVGUseElement.height */ |
5743 final SVGAnimatedLength height; | 5765 final AnimatedLength height; |
5744 | 5766 |
5745 /** @domName SVGUseElement.instanceRoot */ | 5767 /** @domName SVGUseElement.instanceRoot */ |
5746 final SVGElementInstance instanceRoot; | 5768 final ElementInstance instanceRoot; |
5747 | 5769 |
5748 /** @domName SVGUseElement.width */ | 5770 /** @domName SVGUseElement.width */ |
5749 final SVGAnimatedLength width; | 5771 final AnimatedLength width; |
5750 | 5772 |
5751 /** @domName SVGUseElement.x */ | 5773 /** @domName SVGUseElement.x */ |
5752 final SVGAnimatedLength x; | 5774 final AnimatedLength x; |
5753 | 5775 |
5754 /** @domName SVGUseElement.y */ | 5776 /** @domName SVGUseElement.y */ |
5755 final SVGAnimatedLength y; | 5777 final AnimatedLength y; |
5756 | 5778 |
5757 // From SVGExternalResourcesRequired | 5779 // From SVGExternalResourcesRequired |
5758 | 5780 |
5759 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 5781 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
5760 final SVGAnimatedBoolean externalResourcesRequired; | 5782 final AnimatedBoolean externalResourcesRequired; |
5761 | 5783 |
5762 // From SVGLangSpace | 5784 // From SVGLangSpace |
5763 | 5785 |
5764 /** @domName SVGLangSpace.xmllang */ | 5786 /** @domName SVGLangSpace.xmllang */ |
5765 String xmllang; | 5787 String xmllang; |
5766 | 5788 |
5767 /** @domName SVGLangSpace.xmlspace */ | 5789 /** @domName SVGLangSpace.xmlspace */ |
5768 String xmlspace; | 5790 String xmlspace; |
5769 | 5791 |
5770 // From SVGLocatable | 5792 // From SVGLocatable |
5771 | 5793 |
5772 /** @domName SVGLocatable.farthestViewportElement */ | 5794 /** @domName SVGLocatable.farthestViewportElement */ |
5773 final SVGElement farthestViewportElement; | 5795 final SvgElement farthestViewportElement; |
5774 | 5796 |
5775 /** @domName SVGLocatable.nearestViewportElement */ | 5797 /** @domName SVGLocatable.nearestViewportElement */ |
5776 final SVGElement nearestViewportElement; | 5798 final SvgElement nearestViewportElement; |
5777 | 5799 |
5778 /** @domName SVGLocatable.getBBox */ | 5800 /** @domName SVGLocatable.getBBox */ |
5779 SVGRect getBBox() native; | 5801 Rect getBBox() native; |
5780 | 5802 |
5781 /** @domName SVGLocatable.getCTM */ | 5803 /** @domName SVGLocatable.getCTM */ |
5782 SVGMatrix getCTM() native; | 5804 Matrix getCTM() native; |
5783 | 5805 |
5784 /** @domName SVGLocatable.getScreenCTM */ | 5806 /** @domName SVGLocatable.getScreenCTM */ |
5785 SVGMatrix getScreenCTM() native; | 5807 Matrix getScreenCTM() native; |
5786 | 5808 |
5787 /** @domName SVGLocatable.getTransformToElement */ | 5809 /** @domName SVGLocatable.getTransformToElement */ |
5788 SVGMatrix getTransformToElement(SVGElement element) native; | 5810 Matrix getTransformToElement(SvgElement element) native; |
5789 | 5811 |
5790 // From SVGStylable | 5812 // From SVGStylable |
5791 | 5813 |
5792 /** @domName SVGStylable.className */ | 5814 /** @domName SVGStylable.className */ |
5793 SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.classNam
e", this); | 5815 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); |
5794 | 5816 |
5795 // Use implementation from Element. | 5817 // Use implementation from Element. |
5796 // final CSSStyleDeclaration style; | 5818 // final CSSStyleDeclaration style; |
5797 | 5819 |
5798 /** @domName SVGStylable.getPresentationAttribute */ | 5820 /** @domName SVGStylable.getPresentationAttribute */ |
5799 CSSValue getPresentationAttribute(String name) native; | 5821 CSSValue getPresentationAttribute(String name) native; |
5800 | 5822 |
5801 // From SVGTests | 5823 // From SVGTests |
5802 | 5824 |
5803 /** @domName SVGTests.requiredExtensions */ | 5825 /** @domName SVGTests.requiredExtensions */ |
5804 final SVGStringList requiredExtensions; | 5826 final StringList requiredExtensions; |
5805 | 5827 |
5806 /** @domName SVGTests.requiredFeatures */ | 5828 /** @domName SVGTests.requiredFeatures */ |
5807 final SVGStringList requiredFeatures; | 5829 final StringList requiredFeatures; |
5808 | 5830 |
5809 /** @domName SVGTests.systemLanguage */ | 5831 /** @domName SVGTests.systemLanguage */ |
5810 final SVGStringList systemLanguage; | 5832 final StringList systemLanguage; |
5811 | 5833 |
5812 /** @domName SVGTests.hasExtension */ | 5834 /** @domName SVGTests.hasExtension */ |
5813 bool hasExtension(String extension) native; | 5835 bool hasExtension(String extension) native; |
5814 | 5836 |
5815 // From SVGTransformable | 5837 // From SVGTransformable |
5816 | 5838 |
5817 /** @domName SVGTransformable.transform */ | 5839 /** @domName SVGTransformable.transform */ |
5818 final SVGAnimatedTransformList transform; | 5840 final AnimatedTransformList transform; |
5819 | 5841 |
5820 // From SVGURIReference | 5842 // From SVGURIReference |
5821 | 5843 |
5822 /** @domName SVGURIReference.href */ | 5844 /** @domName SVGURIReference.href */ |
5823 final SVGAnimatedString href; | 5845 final AnimatedString href; |
5824 } | 5846 } |
5825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5826 // for details. All rights reserved. Use of this source code is governed by a | 5848 // for details. All rights reserved. Use of this source code is governed by a |
5827 // BSD-style license that can be found in the LICENSE file. | 5849 // BSD-style license that can be found in the LICENSE file. |
5828 | 5850 |
5829 | 5851 |
5830 /// @domName SVGVKernElement | 5852 /// @domName SVGVKernElement |
5831 class SVGVKernElement extends SVGElement native "*SVGVKernElement" { | 5853 class VKernElement extends SvgElement native "*SVGVKernElement" { |
5832 } | 5854 } |
5833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5834 // for details. All rights reserved. Use of this source code is governed by a | 5856 // for details. All rights reserved. Use of this source code is governed by a |
5835 // BSD-style license that can be found in the LICENSE file. | 5857 // BSD-style license that can be found in the LICENSE file. |
5836 | 5858 |
5837 | 5859 |
5838 /// @domName SVGViewElement | 5860 /// @domName SVGViewElement |
5839 class SVGViewElement extends SVGElement implements SVGFitToViewBox, SVGZoomAndPa
n, SVGExternalResourcesRequired native "*SVGViewElement" { | 5861 class ViewElement extends SvgElement implements FitToViewBox, ExternalResourcesR
equired, ZoomAndPan native "*SVGViewElement" { |
5840 | 5862 |
5841 /** @domName SVGViewElement.viewTarget */ | 5863 /** @domName SVGViewElement.viewTarget */ |
5842 final SVGStringList viewTarget; | 5864 final StringList viewTarget; |
5843 | 5865 |
5844 // From SVGExternalResourcesRequired | 5866 // From SVGExternalResourcesRequired |
5845 | 5867 |
5846 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ | 5868 /** @domName SVGExternalResourcesRequired.externalResourcesRequired */ |
5847 final SVGAnimatedBoolean externalResourcesRequired; | 5869 final AnimatedBoolean externalResourcesRequired; |
5848 | 5870 |
5849 // From SVGFitToViewBox | 5871 // From SVGFitToViewBox |
5850 | 5872 |
5851 /** @domName SVGFitToViewBox.preserveAspectRatio */ | 5873 /** @domName SVGFitToViewBox.preserveAspectRatio */ |
5852 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | 5874 final AnimatedPreserveAspectRatio preserveAspectRatio; |
5853 | 5875 |
5854 /** @domName SVGFitToViewBox.viewBox */ | 5876 /** @domName SVGFitToViewBox.viewBox */ |
5855 final SVGAnimatedRect viewBox; | 5877 final AnimatedRect viewBox; |
5856 | 5878 |
5857 // From SVGZoomAndPan | 5879 // From SVGZoomAndPan |
5858 | 5880 |
5859 /** @domName SVGZoomAndPan.zoomAndPan */ | 5881 /** @domName SVGZoomAndPan.zoomAndPan */ |
5860 int zoomAndPan; | 5882 int zoomAndPan; |
5861 } | 5883 } |
5862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5884 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5863 // for details. All rights reserved. Use of this source code is governed by a | 5885 // for details. All rights reserved. Use of this source code is governed by a |
5864 // BSD-style license that can be found in the LICENSE file. | 5886 // BSD-style license that can be found in the LICENSE file. |
5865 | 5887 |
5866 | 5888 |
5867 /// @domName SVGViewSpec | 5889 /// @domName SVGViewSpec |
5868 class SVGViewSpec native "*SVGViewSpec" { | 5890 class ViewSpec native "*SVGViewSpec" { |
5869 | 5891 |
5870 /** @domName SVGViewSpec.preserveAspectRatio */ | 5892 /** @domName SVGViewSpec.preserveAspectRatio */ |
5871 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | 5893 final AnimatedPreserveAspectRatio preserveAspectRatio; |
5872 | 5894 |
5873 /** @domName SVGViewSpec.preserveAspectRatioString */ | 5895 /** @domName SVGViewSpec.preserveAspectRatioString */ |
5874 final String preserveAspectRatioString; | 5896 final String preserveAspectRatioString; |
5875 | 5897 |
5876 /** @domName SVGViewSpec.transform */ | 5898 /** @domName SVGViewSpec.transform */ |
5877 final SVGTransformList transform; | 5899 final TransformList transform; |
5878 | 5900 |
5879 /** @domName SVGViewSpec.transformString */ | 5901 /** @domName SVGViewSpec.transformString */ |
5880 final String transformString; | 5902 final String transformString; |
5881 | 5903 |
5882 /** @domName SVGViewSpec.viewBox */ | 5904 /** @domName SVGViewSpec.viewBox */ |
5883 final SVGAnimatedRect viewBox; | 5905 final AnimatedRect viewBox; |
5884 | 5906 |
5885 /** @domName SVGViewSpec.viewBoxString */ | 5907 /** @domName SVGViewSpec.viewBoxString */ |
5886 final String viewBoxString; | 5908 final String viewBoxString; |
5887 | 5909 |
5888 /** @domName SVGViewSpec.viewTarget */ | 5910 /** @domName SVGViewSpec.viewTarget */ |
5889 final SVGElement viewTarget; | 5911 final SvgElement viewTarget; |
5890 | 5912 |
5891 /** @domName SVGViewSpec.viewTargetString */ | 5913 /** @domName SVGViewSpec.viewTargetString */ |
5892 final String viewTargetString; | 5914 final String viewTargetString; |
5893 | 5915 |
5894 /** @domName SVGViewSpec.zoomAndPan */ | 5916 /** @domName SVGViewSpec.zoomAndPan */ |
5895 int zoomAndPan; | 5917 int zoomAndPan; |
5896 } | 5918 } |
5897 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5898 // for details. All rights reserved. Use of this source code is governed by a | 5920 // for details. All rights reserved. Use of this source code is governed by a |
5899 // BSD-style license that can be found in the LICENSE file. | 5921 // BSD-style license that can be found in the LICENSE file. |
5900 | 5922 |
5901 | 5923 |
5902 /// @domName SVGZoomAndPan | 5924 /// @domName SVGZoomAndPan |
5903 abstract class SVGZoomAndPan { | 5925 abstract class ZoomAndPan { |
5904 | 5926 |
5905 static const int SVG_ZOOMANDPAN_DISABLE = 1; | 5927 static const int SVG_ZOOMANDPAN_DISABLE = 1; |
5906 | 5928 |
5907 static const int SVG_ZOOMANDPAN_MAGNIFY = 2; | 5929 static const int SVG_ZOOMANDPAN_MAGNIFY = 2; |
5908 | 5930 |
5909 static const int SVG_ZOOMANDPAN_UNKNOWN = 0; | 5931 static const int SVG_ZOOMANDPAN_UNKNOWN = 0; |
5910 | 5932 |
5911 int zoomAndPan; | 5933 int zoomAndPan; |
5912 } | 5934 } |
5913 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5914 // for details. All rights reserved. Use of this source code is governed by a | 5936 // for details. All rights reserved. Use of this source code is governed by a |
5915 // BSD-style license that can be found in the LICENSE file. | 5937 // BSD-style license that can be found in the LICENSE file. |
5916 | 5938 |
5917 | 5939 |
5918 /// @domName SVGZoomEvent | 5940 /// @domName SVGZoomEvent |
5919 class SVGZoomEvent extends UIEvent native "*SVGZoomEvent" { | 5941 class ZoomEvent extends UIEvent native "*SVGZoomEvent" { |
5920 | 5942 |
5921 /** @domName SVGZoomEvent.newScale */ | 5943 /** @domName SVGZoomEvent.newScale */ |
5922 final num newScale; | 5944 final num newScale; |
5923 | 5945 |
5924 /** @domName SVGZoomEvent.newTranslate */ | 5946 /** @domName SVGZoomEvent.newTranslate */ |
5925 final SVGPoint newTranslate; | 5947 final Point newTranslate; |
5926 | 5948 |
5927 /** @domName SVGZoomEvent.previousScale */ | 5949 /** @domName SVGZoomEvent.previousScale */ |
5928 final num previousScale; | 5950 final num previousScale; |
5929 | 5951 |
5930 /** @domName SVGZoomEvent.previousTranslate */ | 5952 /** @domName SVGZoomEvent.previousTranslate */ |
5931 final SVGPoint previousTranslate; | 5953 final Point previousTranslate; |
5932 | 5954 |
5933 /** @domName SVGZoomEvent.zoomRectScreen */ | 5955 /** @domName SVGZoomEvent.zoomRectScreen */ |
5934 final SVGRect zoomRectScreen; | 5956 final Rect zoomRectScreen; |
5935 } | 5957 } |
5936 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5937 // for details. All rights reserved. Use of this source code is governed by a | 5959 // for details. All rights reserved. Use of this source code is governed by a |
5938 // BSD-style license that can be found in the LICENSE file. | 5960 // BSD-style license that can be found in the LICENSE file. |
5939 | 5961 |
5940 | 5962 |
5941 /// @domName SVGElementInstanceList | 5963 /// @domName SVGElementInstanceList |
5942 class _SVGElementInstanceList implements JavaScriptIndexingBehavior, List<SVGEle
mentInstance> native "*SVGElementInstanceList" { | 5964 class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
stance> native "*SVGElementInstanceList" { |
5943 | 5965 |
5944 /** @domName SVGElementInstanceList.length */ | 5966 /** @domName SVGElementInstanceList.length */ |
5945 final int length; | 5967 final int length; |
5946 | 5968 |
5947 SVGElementInstance operator[](int index) => JS("SVGElementInstance", "#[#]", t
his, index); | 5969 ElementInstance operator[](int index) => JS("ElementInstance", "#[#]", this, i
ndex); |
5948 | 5970 |
5949 void operator[]=(int index, SVGElementInstance value) { | 5971 void operator[]=(int index, ElementInstance value) { |
5950 throw new UnsupportedError("Cannot assign element of immutable List."); | 5972 throw new UnsupportedError("Cannot assign element of immutable List."); |
5951 } | 5973 } |
5952 // -- start List<SVGElementInstance> mixins. | 5974 // -- start List<ElementInstance> mixins. |
5953 // SVGElementInstance is the element type. | 5975 // ElementInstance is the element type. |
5954 | 5976 |
5955 // From Iterable<SVGElementInstance>: | 5977 // From Iterable<ElementInstance>: |
5956 | 5978 |
5957 Iterator<SVGElementInstance> iterator() { | 5979 Iterator<ElementInstance> iterator() { |
5958 // Note: NodeLists are not fixed size. And most probably length shouldn't | 5980 // Note: NodeLists are not fixed size. And most probably length shouldn't |
5959 // be cached in both iterator _and_ forEach method. For now caching it | 5981 // be cached in both iterator _and_ forEach method. For now caching it |
5960 // for consistency. | 5982 // for consistency. |
5961 return new FixedSizeListIterator<SVGElementInstance>(this); | 5983 return new FixedSizeListIterator<ElementInstance>(this); |
5962 } | 5984 } |
5963 | 5985 |
5964 // From Collection<SVGElementInstance>: | 5986 // From Collection<ElementInstance>: |
5965 | 5987 |
5966 void add(SVGElementInstance value) { | 5988 void add(ElementInstance value) { |
5967 throw new UnsupportedError("Cannot add to immutable List."); | 5989 throw new UnsupportedError("Cannot add to immutable List."); |
5968 } | 5990 } |
5969 | 5991 |
5970 void addLast(SVGElementInstance value) { | 5992 void addLast(ElementInstance value) { |
5971 throw new UnsupportedError("Cannot add to immutable List."); | 5993 throw new UnsupportedError("Cannot add to immutable List."); |
5972 } | 5994 } |
5973 | 5995 |
5974 void addAll(Collection<SVGElementInstance> collection) { | 5996 void addAll(Collection<ElementInstance> collection) { |
5975 throw new UnsupportedError("Cannot add to immutable List."); | 5997 throw new UnsupportedError("Cannot add to immutable List."); |
5976 } | 5998 } |
5977 | 5999 |
5978 bool contains(SVGElementInstance element) => _Collections.contains(this, eleme
nt); | 6000 bool contains(ElementInstance element) => _Collections.contains(this, element)
; |
5979 | 6001 |
5980 void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this,
f); | 6002 void forEach(void f(ElementInstance element)) => _Collections.forEach(this, f)
; |
5981 | 6003 |
5982 Collection map(f(SVGElementInstance element)) => _Collections.map(this, [], f)
; | 6004 Collection map(f(ElementInstance element)) => _Collections.map(this, [], f); |
5983 | 6005 |
5984 Collection<SVGElementInstance> filter(bool f(SVGElementInstance element)) => | 6006 Collection<ElementInstance> filter(bool f(ElementInstance element)) => |
5985 _Collections.filter(this, <SVGElementInstance>[], f); | 6007 _Collections.filter(this, <ElementInstance>[], f); |
5986 | 6008 |
5987 bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f); | 6009 bool every(bool f(ElementInstance element)) => _Collections.every(this, f); |
5988 | 6010 |
5989 bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f); | 6011 bool some(bool f(ElementInstance element)) => _Collections.some(this, f); |
5990 | 6012 |
5991 bool get isEmpty => this.length == 0; | 6013 bool get isEmpty => this.length == 0; |
5992 | 6014 |
5993 // From List<SVGElementInstance>: | 6015 // From List<ElementInstance>: |
5994 | 6016 |
5995 void sort([Comparator<SVGElementInstance> compare = Comparable.compare]) { | 6017 void sort([Comparator<ElementInstance> compare = Comparable.compare]) { |
5996 throw new UnsupportedError("Cannot sort immutable List."); | 6018 throw new UnsupportedError("Cannot sort immutable List."); |
5997 } | 6019 } |
5998 | 6020 |
5999 int indexOf(SVGElementInstance element, [int start = 0]) => | 6021 int indexOf(ElementInstance element, [int start = 0]) => |
6000 _Lists.indexOf(this, element, start, this.length); | 6022 _Lists.indexOf(this, element, start, this.length); |
6001 | 6023 |
6002 int lastIndexOf(SVGElementInstance element, [int start]) { | 6024 int lastIndexOf(ElementInstance element, [int start]) { |
6003 if (start == null) start = length - 1; | 6025 if (start == null) start = length - 1; |
6004 return _Lists.lastIndexOf(this, element, start); | 6026 return _Lists.lastIndexOf(this, element, start); |
6005 } | 6027 } |
6006 | 6028 |
6007 SVGElementInstance get last => this[length - 1]; | 6029 ElementInstance get last => this[length - 1]; |
6008 | 6030 |
6009 SVGElementInstance removeLast() { | 6031 ElementInstance removeLast() { |
6010 throw new UnsupportedError("Cannot removeLast on immutable List."); | 6032 throw new UnsupportedError("Cannot removeLast on immutable List."); |
6011 } | 6033 } |
6012 | 6034 |
6013 void setRange(int start, int rangeLength, List<SVGElementInstance> from, [int
startFrom]) { | 6035 void setRange(int start, int rangeLength, List<ElementInstance> from, [int sta
rtFrom]) { |
6014 throw new UnsupportedError("Cannot setRange on immutable List."); | 6036 throw new UnsupportedError("Cannot setRange on immutable List."); |
6015 } | 6037 } |
6016 | 6038 |
6017 void removeRange(int start, int rangeLength) { | 6039 void removeRange(int start, int rangeLength) { |
6018 throw new UnsupportedError("Cannot removeRange on immutable List."); | 6040 throw new UnsupportedError("Cannot removeRange on immutable List."); |
6019 } | 6041 } |
6020 | 6042 |
6021 void insertRange(int start, int rangeLength, [SVGElementInstance initialValue]
) { | 6043 void insertRange(int start, int rangeLength, [ElementInstance initialValue]) { |
6022 throw new UnsupportedError("Cannot insertRange on immutable List."); | 6044 throw new UnsupportedError("Cannot insertRange on immutable List."); |
6023 } | 6045 } |
6024 | 6046 |
6025 List<SVGElementInstance> getRange(int start, int rangeLength) => | 6047 List<ElementInstance> getRange(int start, int rangeLength) => |
6026 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]); | 6048 _Lists.getRange(this, start, rangeLength, <ElementInstance>[]); |
6027 | 6049 |
6028 // -- end List<SVGElementInstance> mixins. | 6050 // -- end List<ElementInstance> mixins. |
6029 | 6051 |
6030 /** @domName SVGElementInstanceList.item */ | 6052 /** @domName SVGElementInstanceList.item */ |
6031 SVGElementInstance item(int index) native; | 6053 ElementInstance item(int index) native; |
6032 } | 6054 } |
| 6055 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6056 // for details. All rights reserved. Use of this source code is governed by a |
| 6057 // BSD-style license that can be found in the LICENSE file. |
| 6058 |
| 6059 |
| 6060 class _Elements { |
| 6061 |
| 6062 |
| 6063 static ImageElement createImageElement([String src, int width, int height]) { |
| 6064 ImageElement _e = document.$dom_createElement("img"); |
| 6065 if (src != null) _e.src = src; |
| 6066 if (width != null) _e.width = width; |
| 6067 if (height != null) _e.height = height; |
| 6068 return _e; |
| 6069 } |
| 6070 |
| 6071 static ScriptElement createScriptElement() { |
| 6072 ScriptElement _e = document.$dom_createElement("script"); |
| 6073 return _e; |
| 6074 } |
| 6075 |
| 6076 static StyleElement createStyleElement() { |
| 6077 StyleElement _e = document.$dom_createElement("style"); |
| 6078 return _e; |
| 6079 } |
| 6080 |
| 6081 static TitleElement createTitleElement() { |
| 6082 TitleElement _e = document.$dom_createElement("title"); |
| 6083 return _e; |
| 6084 } |
| 6085 } |
OLD | NEW |