OLD | NEW |
(Empty) | |
| 1 /** |
| 2 * Scalable Vector Graphics: |
| 3 * Two-dimensional vector graphics with support for events and animation. |
| 4 * |
| 5 * For details about the features and syntax of SVG, a W3C standard, |
| 6 * refer to the |
| 7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). |
| 8 */ |
| 9 library dart.dom.svg; |
| 10 |
| 11 import 'dart:async'; |
| 12 import 'dart:collection'; |
| 13 import 'dart:_internal'; |
| 14 import 'dart:html'; |
| 15 import 'dart:html_common'; |
| 16 import 'dart:_js_helper' show Creates, Returns, JSName, Native; |
| 17 import 'dart:_foreign_helper' show JS; |
| 18 import 'dart:_interceptors' show Interceptor; |
| 19 // DO NOT EDIT - unless you are editing documentation as per: |
| 20 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
| 21 // Auto-generated dart:svg library. |
| 22 |
| 23 |
| 24 |
| 25 |
| 26 |
| 27 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 28 // for details. All rights reserved. Use of this source code is governed by a |
| 29 // BSD-style license that can be found in the LICENSE file. |
| 30 |
| 31 |
| 32 class _SvgElementFactoryProvider { |
| 33 static SvgElement createSvgElement_tag(String tag) { |
| 34 final Element temp = |
| 35 document.createElementNS("http://www.w3.org/2000/svg", tag); |
| 36 return temp; |
| 37 } |
| 38 } |
| 39 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 40 // for details. All rights reserved. Use of this source code is governed by a |
| 41 // BSD-style license that can be found in the LICENSE file. |
| 42 |
| 43 |
| 44 @DocsEditable() |
| 45 @DomName('SVGAElement') |
| 46 @Unstable() |
| 47 @Native("SVGAElement") |
| 48 class AElement extends GraphicsElement implements UriReference { |
| 49 // To suppress missing implicit constructor warnings. |
| 50 factory AElement._() { throw new UnsupportedError("Not supported"); } |
| 51 |
| 52 @DomName('SVGAElement.SVGAElement') |
| 53 @DocsEditable() |
| 54 factory AElement() => _SvgElementFactoryProvider.createSvgElement_tag("a"); |
| 55 /** |
| 56 * Constructor instantiated by the DOM when a custom element has been created. |
| 57 * |
| 58 * This can only be called by subclasses from their created constructor. |
| 59 */ |
| 60 AElement.created() : super.created(); |
| 61 |
| 62 @DomName('SVGAElement.target') |
| 63 @DocsEditable() |
| 64 final AnimatedString target; |
| 65 |
| 66 // From SVGURIReference |
| 67 |
| 68 @DomName('SVGAElement.href') |
| 69 @DocsEditable() |
| 70 final AnimatedString href; |
| 71 } |
| 72 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 73 // for details. All rights reserved. Use of this source code is governed by a |
| 74 // BSD-style license that can be found in the LICENSE file. |
| 75 |
| 76 |
| 77 @DocsEditable() |
| 78 @DomName('SVGAltGlyphElement') |
| 79 @SupportedBrowser(SupportedBrowser.CHROME) |
| 80 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 81 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 82 @Unstable() |
| 83 @Native("SVGAltGlyphElement") |
| 84 class AltGlyphElement extends TextPositioningElement implements UriReference { |
| 85 // To suppress missing implicit constructor warnings. |
| 86 factory AltGlyphElement._() { throw new UnsupportedError("Not supported"); } |
| 87 |
| 88 @DomName('SVGAltGlyphElement.SVGAltGlyphElement') |
| 89 @DocsEditable() |
| 90 factory AltGlyphElement() => _SvgElementFactoryProvider.createSvgElement_tag("
altGlyph"); |
| 91 /** |
| 92 * Constructor instantiated by the DOM when a custom element has been created. |
| 93 * |
| 94 * This can only be called by subclasses from their created constructor. |
| 95 */ |
| 96 AltGlyphElement.created() : super.created(); |
| 97 |
| 98 /// Checks if this type is supported on the current platform. |
| 99 static bool get supported => SvgElement.isTagSupported('altGlyph') && (new Svg
Element.tag('altGlyph') is AltGlyphElement); |
| 100 |
| 101 @DomName('SVGAltGlyphElement.format') |
| 102 @DocsEditable() |
| 103 String format; |
| 104 |
| 105 @DomName('SVGAltGlyphElement.glyphRef') |
| 106 @DocsEditable() |
| 107 String glyphRef; |
| 108 |
| 109 // From SVGURIReference |
| 110 |
| 111 @DomName('SVGAltGlyphElement.href') |
| 112 @DocsEditable() |
| 113 final AnimatedString href; |
| 114 } |
| 115 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 116 // for details. All rights reserved. Use of this source code is governed by a |
| 117 // BSD-style license that can be found in the LICENSE file. |
| 118 |
| 119 |
| 120 @DocsEditable() |
| 121 @DomName('SVGAngle') |
| 122 @Unstable() |
| 123 @Native("SVGAngle") |
| 124 class Angle extends Interceptor { |
| 125 // To suppress missing implicit constructor warnings. |
| 126 factory Angle._() { throw new UnsupportedError("Not supported"); } |
| 127 |
| 128 @DomName('SVGAngle.SVG_ANGLETYPE_DEG') |
| 129 @DocsEditable() |
| 130 static const int SVG_ANGLETYPE_DEG = 2; |
| 131 |
| 132 @DomName('SVGAngle.SVG_ANGLETYPE_GRAD') |
| 133 @DocsEditable() |
| 134 static const int SVG_ANGLETYPE_GRAD = 4; |
| 135 |
| 136 @DomName('SVGAngle.SVG_ANGLETYPE_RAD') |
| 137 @DocsEditable() |
| 138 static const int SVG_ANGLETYPE_RAD = 3; |
| 139 |
| 140 @DomName('SVGAngle.SVG_ANGLETYPE_UNKNOWN') |
| 141 @DocsEditable() |
| 142 static const int SVG_ANGLETYPE_UNKNOWN = 0; |
| 143 |
| 144 @DomName('SVGAngle.SVG_ANGLETYPE_UNSPECIFIED') |
| 145 @DocsEditable() |
| 146 static const int SVG_ANGLETYPE_UNSPECIFIED = 1; |
| 147 |
| 148 @DomName('SVGAngle.unitType') |
| 149 @DocsEditable() |
| 150 final int unitType; |
| 151 |
| 152 @DomName('SVGAngle.value') |
| 153 @DocsEditable() |
| 154 num value; |
| 155 |
| 156 @DomName('SVGAngle.valueAsString') |
| 157 @DocsEditable() |
| 158 String valueAsString; |
| 159 |
| 160 @DomName('SVGAngle.valueInSpecifiedUnits') |
| 161 @DocsEditable() |
| 162 num valueInSpecifiedUnits; |
| 163 |
| 164 @DomName('SVGAngle.convertToSpecifiedUnits') |
| 165 @DocsEditable() |
| 166 void convertToSpecifiedUnits(int unitType) native; |
| 167 |
| 168 @DomName('SVGAngle.newValueSpecifiedUnits') |
| 169 @DocsEditable() |
| 170 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; |
| 171 } |
| 172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 173 // for details. All rights reserved. Use of this source code is governed by a |
| 174 // BSD-style license that can be found in the LICENSE file. |
| 175 |
| 176 |
| 177 @DocsEditable() |
| 178 @DomName('SVGAnimateElement') |
| 179 @SupportedBrowser(SupportedBrowser.CHROME) |
| 180 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 181 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 182 @Unstable() |
| 183 @Native("SVGAnimateElement") |
| 184 class AnimateElement extends AnimationElement { |
| 185 // To suppress missing implicit constructor warnings. |
| 186 factory AnimateElement._() { throw new UnsupportedError("Not supported"); } |
| 187 |
| 188 @DomName('SVGAnimateElement.SVGAnimateElement') |
| 189 @DocsEditable() |
| 190 factory AnimateElement() => _SvgElementFactoryProvider.createSvgElement_tag("a
nimate"); |
| 191 /** |
| 192 * Constructor instantiated by the DOM when a custom element has been created. |
| 193 * |
| 194 * This can only be called by subclasses from their created constructor. |
| 195 */ |
| 196 AnimateElement.created() : super.created(); |
| 197 |
| 198 /// Checks if this type is supported on the current platform. |
| 199 static bool get supported => SvgElement.isTagSupported('animate') && (new SvgE
lement.tag('animate') is AnimateElement); |
| 200 } |
| 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 |
| 203 // BSD-style license that can be found in the LICENSE file. |
| 204 |
| 205 |
| 206 @DocsEditable() |
| 207 @DomName('SVGAnimateMotionElement') |
| 208 @SupportedBrowser(SupportedBrowser.CHROME) |
| 209 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 210 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 211 @Unstable() |
| 212 @Native("SVGAnimateMotionElement") |
| 213 class AnimateMotionElement extends AnimationElement { |
| 214 // To suppress missing implicit constructor warnings. |
| 215 factory AnimateMotionElement._() { throw new UnsupportedError("Not supported")
; } |
| 216 |
| 217 @DomName('SVGAnimateMotionElement.SVGAnimateMotionElement') |
| 218 @DocsEditable() |
| 219 factory AnimateMotionElement() => _SvgElementFactoryProvider.createSvgElement_
tag("animateMotion"); |
| 220 /** |
| 221 * Constructor instantiated by the DOM when a custom element has been created. |
| 222 * |
| 223 * This can only be called by subclasses from their created constructor. |
| 224 */ |
| 225 AnimateMotionElement.created() : super.created(); |
| 226 |
| 227 /// Checks if this type is supported on the current platform. |
| 228 static bool get supported => SvgElement.isTagSupported('animateMotion') && (ne
w SvgElement.tag('animateMotion') is AnimateMotionElement); |
| 229 } |
| 230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 231 // for details. All rights reserved. Use of this source code is governed by a |
| 232 // BSD-style license that can be found in the LICENSE file. |
| 233 |
| 234 |
| 235 @DocsEditable() |
| 236 @DomName('SVGAnimateTransformElement') |
| 237 @SupportedBrowser(SupportedBrowser.CHROME) |
| 238 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 239 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 240 @Unstable() |
| 241 @Native("SVGAnimateTransformElement") |
| 242 class AnimateTransformElement extends AnimationElement { |
| 243 // To suppress missing implicit constructor warnings. |
| 244 factory AnimateTransformElement._() { throw new UnsupportedError("Not supporte
d"); } |
| 245 |
| 246 @DomName('SVGAnimateTransformElement.SVGAnimateTransformElement') |
| 247 @DocsEditable() |
| 248 factory AnimateTransformElement() => _SvgElementFactoryProvider.createSvgEleme
nt_tag("animateTransform"); |
| 249 /** |
| 250 * Constructor instantiated by the DOM when a custom element has been created. |
| 251 * |
| 252 * This can only be called by subclasses from their created constructor. |
| 253 */ |
| 254 AnimateTransformElement.created() : super.created(); |
| 255 |
| 256 /// Checks if this type is supported on the current platform. |
| 257 static bool get supported => SvgElement.isTagSupported('animateTransform') &&
(new SvgElement.tag('animateTransform') is AnimateTransformElement); |
| 258 } |
| 259 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 260 // for details. All rights reserved. Use of this source code is governed by a |
| 261 // BSD-style license that can be found in the LICENSE file. |
| 262 |
| 263 |
| 264 @DocsEditable() |
| 265 @DomName('SVGAnimatedAngle') |
| 266 @Unstable() |
| 267 @Native("SVGAnimatedAngle") |
| 268 class AnimatedAngle extends Interceptor { |
| 269 // To suppress missing implicit constructor warnings. |
| 270 factory AnimatedAngle._() { throw new UnsupportedError("Not supported"); } |
| 271 |
| 272 @DomName('SVGAnimatedAngle.animVal') |
| 273 @DocsEditable() |
| 274 final Angle animVal; |
| 275 |
| 276 @DomName('SVGAnimatedAngle.baseVal') |
| 277 @DocsEditable() |
| 278 final Angle baseVal; |
| 279 } |
| 280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 281 // for details. All rights reserved. Use of this source code is governed by a |
| 282 // BSD-style license that can be found in the LICENSE file. |
| 283 |
| 284 |
| 285 @DocsEditable() |
| 286 @DomName('SVGAnimatedBoolean') |
| 287 @Unstable() |
| 288 @Native("SVGAnimatedBoolean") |
| 289 class AnimatedBoolean extends Interceptor { |
| 290 // To suppress missing implicit constructor warnings. |
| 291 factory AnimatedBoolean._() { throw new UnsupportedError("Not supported"); } |
| 292 |
| 293 @DomName('SVGAnimatedBoolean.animVal') |
| 294 @DocsEditable() |
| 295 final bool animVal; |
| 296 |
| 297 @DomName('SVGAnimatedBoolean.baseVal') |
| 298 @DocsEditable() |
| 299 bool baseVal; |
| 300 } |
| 301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 302 // for details. All rights reserved. Use of this source code is governed by a |
| 303 // BSD-style license that can be found in the LICENSE file. |
| 304 |
| 305 |
| 306 @DocsEditable() |
| 307 @DomName('SVGAnimatedEnumeration') |
| 308 @Unstable() |
| 309 @Native("SVGAnimatedEnumeration") |
| 310 class AnimatedEnumeration extends Interceptor { |
| 311 // To suppress missing implicit constructor warnings. |
| 312 factory AnimatedEnumeration._() { throw new UnsupportedError("Not supported");
} |
| 313 |
| 314 @DomName('SVGAnimatedEnumeration.animVal') |
| 315 @DocsEditable() |
| 316 final int animVal; |
| 317 |
| 318 @DomName('SVGAnimatedEnumeration.baseVal') |
| 319 @DocsEditable() |
| 320 int baseVal; |
| 321 } |
| 322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 323 // for details. All rights reserved. Use of this source code is governed by a |
| 324 // BSD-style license that can be found in the LICENSE file. |
| 325 |
| 326 |
| 327 @DocsEditable() |
| 328 @DomName('SVGAnimatedInteger') |
| 329 @Unstable() |
| 330 @Native("SVGAnimatedInteger") |
| 331 class AnimatedInteger extends Interceptor { |
| 332 // To suppress missing implicit constructor warnings. |
| 333 factory AnimatedInteger._() { throw new UnsupportedError("Not supported"); } |
| 334 |
| 335 @DomName('SVGAnimatedInteger.animVal') |
| 336 @DocsEditable() |
| 337 final int animVal; |
| 338 |
| 339 @DomName('SVGAnimatedInteger.baseVal') |
| 340 @DocsEditable() |
| 341 int baseVal; |
| 342 } |
| 343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 344 // for details. All rights reserved. Use of this source code is governed by a |
| 345 // BSD-style license that can be found in the LICENSE file. |
| 346 |
| 347 |
| 348 @DocsEditable() |
| 349 @DomName('SVGAnimatedLength') |
| 350 @Unstable() |
| 351 @Native("SVGAnimatedLength") |
| 352 class AnimatedLength extends Interceptor { |
| 353 // To suppress missing implicit constructor warnings. |
| 354 factory AnimatedLength._() { throw new UnsupportedError("Not supported"); } |
| 355 |
| 356 @DomName('SVGAnimatedLength.animVal') |
| 357 @DocsEditable() |
| 358 final Length animVal; |
| 359 |
| 360 @DomName('SVGAnimatedLength.baseVal') |
| 361 @DocsEditable() |
| 362 final Length baseVal; |
| 363 } |
| 364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 365 // for details. All rights reserved. Use of this source code is governed by a |
| 366 // BSD-style license that can be found in the LICENSE file. |
| 367 |
| 368 |
| 369 @DocsEditable() |
| 370 @DomName('SVGAnimatedLengthList') |
| 371 @Unstable() |
| 372 @Native("SVGAnimatedLengthList") |
| 373 class AnimatedLengthList extends Interceptor { |
| 374 // To suppress missing implicit constructor warnings. |
| 375 factory AnimatedLengthList._() { throw new UnsupportedError("Not supported");
} |
| 376 |
| 377 @DomName('SVGAnimatedLengthList.animVal') |
| 378 @DocsEditable() |
| 379 final LengthList animVal; |
| 380 |
| 381 @DomName('SVGAnimatedLengthList.baseVal') |
| 382 @DocsEditable() |
| 383 final LengthList baseVal; |
| 384 } |
| 385 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 386 // for details. All rights reserved. Use of this source code is governed by a |
| 387 // BSD-style license that can be found in the LICENSE file. |
| 388 |
| 389 |
| 390 @DocsEditable() |
| 391 @DomName('SVGAnimatedNumber') |
| 392 @Unstable() |
| 393 @Native("SVGAnimatedNumber") |
| 394 class AnimatedNumber extends Interceptor { |
| 395 // To suppress missing implicit constructor warnings. |
| 396 factory AnimatedNumber._() { throw new UnsupportedError("Not supported"); } |
| 397 |
| 398 @DomName('SVGAnimatedNumber.animVal') |
| 399 @DocsEditable() |
| 400 final double animVal; |
| 401 |
| 402 @DomName('SVGAnimatedNumber.baseVal') |
| 403 @DocsEditable() |
| 404 num baseVal; |
| 405 } |
| 406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 407 // for details. All rights reserved. Use of this source code is governed by a |
| 408 // BSD-style license that can be found in the LICENSE file. |
| 409 |
| 410 |
| 411 @DocsEditable() |
| 412 @DomName('SVGAnimatedNumberList') |
| 413 @Unstable() |
| 414 @Native("SVGAnimatedNumberList") |
| 415 class AnimatedNumberList extends Interceptor { |
| 416 // To suppress missing implicit constructor warnings. |
| 417 factory AnimatedNumberList._() { throw new UnsupportedError("Not supported");
} |
| 418 |
| 419 @DomName('SVGAnimatedNumberList.animVal') |
| 420 @DocsEditable() |
| 421 final NumberList animVal; |
| 422 |
| 423 @DomName('SVGAnimatedNumberList.baseVal') |
| 424 @DocsEditable() |
| 425 final NumberList baseVal; |
| 426 } |
| 427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 428 // for details. All rights reserved. Use of this source code is governed by a |
| 429 // BSD-style license that can be found in the LICENSE file. |
| 430 |
| 431 |
| 432 @DocsEditable() |
| 433 @DomName('SVGAnimatedPreserveAspectRatio') |
| 434 @Unstable() |
| 435 @Native("SVGAnimatedPreserveAspectRatio") |
| 436 class AnimatedPreserveAspectRatio extends Interceptor { |
| 437 // To suppress missing implicit constructor warnings. |
| 438 factory AnimatedPreserveAspectRatio._() { throw new UnsupportedError("Not supp
orted"); } |
| 439 |
| 440 @DomName('SVGAnimatedPreserveAspectRatio.animVal') |
| 441 @DocsEditable() |
| 442 final PreserveAspectRatio animVal; |
| 443 |
| 444 @DomName('SVGAnimatedPreserveAspectRatio.baseVal') |
| 445 @DocsEditable() |
| 446 final PreserveAspectRatio baseVal; |
| 447 } |
| 448 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 449 // for details. All rights reserved. Use of this source code is governed by a |
| 450 // BSD-style license that can be found in the LICENSE file. |
| 451 |
| 452 |
| 453 @DocsEditable() |
| 454 @DomName('SVGAnimatedRect') |
| 455 @Unstable() |
| 456 @Native("SVGAnimatedRect") |
| 457 class AnimatedRect extends Interceptor { |
| 458 // To suppress missing implicit constructor warnings. |
| 459 factory AnimatedRect._() { throw new UnsupportedError("Not supported"); } |
| 460 |
| 461 @DomName('SVGAnimatedRect.animVal') |
| 462 @DocsEditable() |
| 463 final Rect animVal; |
| 464 |
| 465 @DomName('SVGAnimatedRect.baseVal') |
| 466 @DocsEditable() |
| 467 final Rect baseVal; |
| 468 } |
| 469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 470 // for details. All rights reserved. Use of this source code is governed by a |
| 471 // BSD-style license that can be found in the LICENSE file. |
| 472 |
| 473 |
| 474 @DocsEditable() |
| 475 @DomName('SVGAnimatedString') |
| 476 @Unstable() |
| 477 @Native("SVGAnimatedString") |
| 478 class AnimatedString extends Interceptor { |
| 479 // To suppress missing implicit constructor warnings. |
| 480 factory AnimatedString._() { throw new UnsupportedError("Not supported"); } |
| 481 |
| 482 @DomName('SVGAnimatedString.animVal') |
| 483 @DocsEditable() |
| 484 final String animVal; |
| 485 |
| 486 @DomName('SVGAnimatedString.baseVal') |
| 487 @DocsEditable() |
| 488 String baseVal; |
| 489 } |
| 490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 491 // for details. All rights reserved. Use of this source code is governed by a |
| 492 // BSD-style license that can be found in the LICENSE file. |
| 493 |
| 494 |
| 495 @DocsEditable() |
| 496 @DomName('SVGAnimatedTransformList') |
| 497 @Unstable() |
| 498 @Native("SVGAnimatedTransformList") |
| 499 class AnimatedTransformList extends Interceptor { |
| 500 // To suppress missing implicit constructor warnings. |
| 501 factory AnimatedTransformList._() { throw new UnsupportedError("Not supported"
); } |
| 502 |
| 503 @DomName('SVGAnimatedTransformList.animVal') |
| 504 @DocsEditable() |
| 505 final TransformList animVal; |
| 506 |
| 507 @DomName('SVGAnimatedTransformList.baseVal') |
| 508 @DocsEditable() |
| 509 final TransformList baseVal; |
| 510 } |
| 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 |
| 513 // BSD-style license that can be found in the LICENSE file. |
| 514 |
| 515 |
| 516 @DocsEditable() |
| 517 @DomName('SVGAnimationElement') |
| 518 @Unstable() |
| 519 @Native("SVGAnimationElement") |
| 520 class AnimationElement extends SvgElement implements Tests { |
| 521 // To suppress missing implicit constructor warnings. |
| 522 factory AnimationElement._() { throw new UnsupportedError("Not supported"); } |
| 523 |
| 524 @DomName('SVGAnimationElement.SVGAnimationElement') |
| 525 @DocsEditable() |
| 526 factory AnimationElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"animation"); |
| 527 /** |
| 528 * Constructor instantiated by the DOM when a custom element has been created. |
| 529 * |
| 530 * This can only be called by subclasses from their created constructor. |
| 531 */ |
| 532 AnimationElement.created() : super.created(); |
| 533 |
| 534 @DomName('SVGAnimationElement.targetElement') |
| 535 @DocsEditable() |
| 536 final SvgElement targetElement; |
| 537 |
| 538 @DomName('SVGAnimationElement.beginElement') |
| 539 @DocsEditable() |
| 540 void beginElement() native; |
| 541 |
| 542 @DomName('SVGAnimationElement.beginElementAt') |
| 543 @DocsEditable() |
| 544 void beginElementAt(num offset) native; |
| 545 |
| 546 @DomName('SVGAnimationElement.endElement') |
| 547 @DocsEditable() |
| 548 void endElement() native; |
| 549 |
| 550 @DomName('SVGAnimationElement.endElementAt') |
| 551 @DocsEditable() |
| 552 void endElementAt(num offset) native; |
| 553 |
| 554 @DomName('SVGAnimationElement.getCurrentTime') |
| 555 @DocsEditable() |
| 556 double getCurrentTime() native; |
| 557 |
| 558 @DomName('SVGAnimationElement.getSimpleDuration') |
| 559 @DocsEditable() |
| 560 double getSimpleDuration() native; |
| 561 |
| 562 @DomName('SVGAnimationElement.getStartTime') |
| 563 @DocsEditable() |
| 564 double getStartTime() native; |
| 565 |
| 566 // From SVGTests |
| 567 |
| 568 @DomName('SVGAnimationElement.requiredExtensions') |
| 569 @DocsEditable() |
| 570 final StringList requiredExtensions; |
| 571 |
| 572 @DomName('SVGAnimationElement.requiredFeatures') |
| 573 @DocsEditable() |
| 574 final StringList requiredFeatures; |
| 575 |
| 576 @DomName('SVGAnimationElement.systemLanguage') |
| 577 @DocsEditable() |
| 578 final StringList systemLanguage; |
| 579 |
| 580 @DomName('SVGAnimationElement.hasExtension') |
| 581 @DocsEditable() |
| 582 bool hasExtension(String extension) native; |
| 583 } |
| 584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 585 // for details. All rights reserved. Use of this source code is governed by a |
| 586 // BSD-style license that can be found in the LICENSE file. |
| 587 |
| 588 |
| 589 @DocsEditable() |
| 590 @DomName('SVGCircleElement') |
| 591 @Unstable() |
| 592 @Native("SVGCircleElement") |
| 593 class CircleElement extends GeometryElement { |
| 594 // To suppress missing implicit constructor warnings. |
| 595 factory CircleElement._() { throw new UnsupportedError("Not supported"); } |
| 596 |
| 597 @DomName('SVGCircleElement.SVGCircleElement') |
| 598 @DocsEditable() |
| 599 factory CircleElement() => _SvgElementFactoryProvider.createSvgElement_tag("ci
rcle"); |
| 600 /** |
| 601 * Constructor instantiated by the DOM when a custom element has been created. |
| 602 * |
| 603 * This can only be called by subclasses from their created constructor. |
| 604 */ |
| 605 CircleElement.created() : super.created(); |
| 606 |
| 607 @DomName('SVGCircleElement.cx') |
| 608 @DocsEditable() |
| 609 final AnimatedLength cx; |
| 610 |
| 611 @DomName('SVGCircleElement.cy') |
| 612 @DocsEditable() |
| 613 final AnimatedLength cy; |
| 614 |
| 615 @DomName('SVGCircleElement.r') |
| 616 @DocsEditable() |
| 617 final AnimatedLength r; |
| 618 } |
| 619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 620 // for details. All rights reserved. Use of this source code is governed by a |
| 621 // BSD-style license that can be found in the LICENSE file. |
| 622 |
| 623 |
| 624 @DocsEditable() |
| 625 @DomName('SVGClipPathElement') |
| 626 @Unstable() |
| 627 @Native("SVGClipPathElement") |
| 628 class ClipPathElement extends GraphicsElement { |
| 629 // To suppress missing implicit constructor warnings. |
| 630 factory ClipPathElement._() { throw new UnsupportedError("Not supported"); } |
| 631 |
| 632 @DomName('SVGClipPathElement.SVGClipPathElement') |
| 633 @DocsEditable() |
| 634 factory ClipPathElement() => _SvgElementFactoryProvider.createSvgElement_tag("
clipPath"); |
| 635 /** |
| 636 * Constructor instantiated by the DOM when a custom element has been created. |
| 637 * |
| 638 * This can only be called by subclasses from their created constructor. |
| 639 */ |
| 640 ClipPathElement.created() : super.created(); |
| 641 |
| 642 @DomName('SVGClipPathElement.clipPathUnits') |
| 643 @DocsEditable() |
| 644 final AnimatedEnumeration clipPathUnits; |
| 645 } |
| 646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 647 // for details. All rights reserved. Use of this source code is governed by a |
| 648 // BSD-style license that can be found in the LICENSE file. |
| 649 |
| 650 |
| 651 @DocsEditable() |
| 652 @DomName('SVGDefsElement') |
| 653 @Unstable() |
| 654 @Native("SVGDefsElement") |
| 655 class DefsElement extends GraphicsElement { |
| 656 // To suppress missing implicit constructor warnings. |
| 657 factory DefsElement._() { throw new UnsupportedError("Not supported"); } |
| 658 |
| 659 @DomName('SVGDefsElement.SVGDefsElement') |
| 660 @DocsEditable() |
| 661 factory DefsElement() => _SvgElementFactoryProvider.createSvgElement_tag("defs
"); |
| 662 /** |
| 663 * Constructor instantiated by the DOM when a custom element has been created. |
| 664 * |
| 665 * This can only be called by subclasses from their created constructor. |
| 666 */ |
| 667 DefsElement.created() : super.created(); |
| 668 } |
| 669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 670 // for details. All rights reserved. Use of this source code is governed by a |
| 671 // BSD-style license that can be found in the LICENSE file. |
| 672 |
| 673 |
| 674 @DocsEditable() |
| 675 @DomName('SVGDescElement') |
| 676 @Unstable() |
| 677 @Native("SVGDescElement") |
| 678 class DescElement extends SvgElement { |
| 679 // To suppress missing implicit constructor warnings. |
| 680 factory DescElement._() { throw new UnsupportedError("Not supported"); } |
| 681 |
| 682 @DomName('SVGDescElement.SVGDescElement') |
| 683 @DocsEditable() |
| 684 factory DescElement() => _SvgElementFactoryProvider.createSvgElement_tag("desc
"); |
| 685 /** |
| 686 * Constructor instantiated by the DOM when a custom element has been created. |
| 687 * |
| 688 * This can only be called by subclasses from their created constructor. |
| 689 */ |
| 690 DescElement.created() : super.created(); |
| 691 } |
| 692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 693 // for details. All rights reserved. Use of this source code is governed by a |
| 694 // BSD-style license that can be found in the LICENSE file. |
| 695 |
| 696 |
| 697 @DocsEditable() |
| 698 @DomName('SVGDiscardElement') |
| 699 @Experimental() // untriaged |
| 700 @Native("SVGDiscardElement") |
| 701 class DiscardElement extends SvgElement { |
| 702 // To suppress missing implicit constructor warnings. |
| 703 factory DiscardElement._() { throw new UnsupportedError("Not supported"); } |
| 704 /** |
| 705 * Constructor instantiated by the DOM when a custom element has been created. |
| 706 * |
| 707 * This can only be called by subclasses from their created constructor. |
| 708 */ |
| 709 DiscardElement.created() : super.created(); |
| 710 } |
| 711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 712 // for details. All rights reserved. Use of this source code is governed by a |
| 713 // BSD-style license that can be found in the LICENSE file. |
| 714 |
| 715 |
| 716 @DocsEditable() |
| 717 @DomName('SVGEllipseElement') |
| 718 @Unstable() |
| 719 @Native("SVGEllipseElement") |
| 720 class EllipseElement extends GeometryElement { |
| 721 // To suppress missing implicit constructor warnings. |
| 722 factory EllipseElement._() { throw new UnsupportedError("Not supported"); } |
| 723 |
| 724 @DomName('SVGEllipseElement.SVGEllipseElement') |
| 725 @DocsEditable() |
| 726 factory EllipseElement() => _SvgElementFactoryProvider.createSvgElement_tag("e
llipse"); |
| 727 /** |
| 728 * Constructor instantiated by the DOM when a custom element has been created. |
| 729 * |
| 730 * This can only be called by subclasses from their created constructor. |
| 731 */ |
| 732 EllipseElement.created() : super.created(); |
| 733 |
| 734 @DomName('SVGEllipseElement.cx') |
| 735 @DocsEditable() |
| 736 final AnimatedLength cx; |
| 737 |
| 738 @DomName('SVGEllipseElement.cy') |
| 739 @DocsEditable() |
| 740 final AnimatedLength cy; |
| 741 |
| 742 @DomName('SVGEllipseElement.rx') |
| 743 @DocsEditable() |
| 744 final AnimatedLength rx; |
| 745 |
| 746 @DomName('SVGEllipseElement.ry') |
| 747 @DocsEditable() |
| 748 final AnimatedLength ry; |
| 749 } |
| 750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 751 // for details. All rights reserved. Use of this source code is governed by a |
| 752 // BSD-style license that can be found in the LICENSE file. |
| 753 |
| 754 |
| 755 @DocsEditable() |
| 756 @DomName('SVGFEBlendElement') |
| 757 @SupportedBrowser(SupportedBrowser.CHROME) |
| 758 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 759 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 760 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 761 @Unstable() |
| 762 @Native("SVGFEBlendElement") |
| 763 class FEBlendElement extends SvgElement implements FilterPrimitiveStandardAttrib
utes { |
| 764 // To suppress missing implicit constructor warnings. |
| 765 factory FEBlendElement._() { throw new UnsupportedError("Not supported"); } |
| 766 |
| 767 @DomName('SVGFEBlendElement.SVGFEBlendElement') |
| 768 @DocsEditable() |
| 769 factory FEBlendElement() => _SvgElementFactoryProvider.createSvgElement_tag("f
eBlend"); |
| 770 /** |
| 771 * Constructor instantiated by the DOM when a custom element has been created. |
| 772 * |
| 773 * This can only be called by subclasses from their created constructor. |
| 774 */ |
| 775 FEBlendElement.created() : super.created(); |
| 776 |
| 777 /// Checks if this type is supported on the current platform. |
| 778 static bool get supported => SvgElement.isTagSupported('feBlend') && (new SvgE
lement.tag('feBlend') is FEBlendElement); |
| 779 |
| 780 @DomName('SVGFEBlendElement.SVG_FEBLEND_MODE_DARKEN') |
| 781 @DocsEditable() |
| 782 static const int SVG_FEBLEND_MODE_DARKEN = 4; |
| 783 |
| 784 @DomName('SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN') |
| 785 @DocsEditable() |
| 786 static const int SVG_FEBLEND_MODE_LIGHTEN = 5; |
| 787 |
| 788 @DomName('SVGFEBlendElement.SVG_FEBLEND_MODE_MULTIPLY') |
| 789 @DocsEditable() |
| 790 static const int SVG_FEBLEND_MODE_MULTIPLY = 2; |
| 791 |
| 792 @DomName('SVGFEBlendElement.SVG_FEBLEND_MODE_NORMAL') |
| 793 @DocsEditable() |
| 794 static const int SVG_FEBLEND_MODE_NORMAL = 1; |
| 795 |
| 796 @DomName('SVGFEBlendElement.SVG_FEBLEND_MODE_SCREEN') |
| 797 @DocsEditable() |
| 798 static const int SVG_FEBLEND_MODE_SCREEN = 3; |
| 799 |
| 800 @DomName('SVGFEBlendElement.SVG_FEBLEND_MODE_UNKNOWN') |
| 801 @DocsEditable() |
| 802 static const int SVG_FEBLEND_MODE_UNKNOWN = 0; |
| 803 |
| 804 @DomName('SVGFEBlendElement.in1') |
| 805 @DocsEditable() |
| 806 final AnimatedString in1; |
| 807 |
| 808 @DomName('SVGFEBlendElement.in2') |
| 809 @DocsEditable() |
| 810 final AnimatedString in2; |
| 811 |
| 812 @DomName('SVGFEBlendElement.mode') |
| 813 @DocsEditable() |
| 814 final AnimatedEnumeration mode; |
| 815 |
| 816 // From SVGFilterPrimitiveStandardAttributes |
| 817 |
| 818 @DomName('SVGFEBlendElement.height') |
| 819 @DocsEditable() |
| 820 final AnimatedLength height; |
| 821 |
| 822 @DomName('SVGFEBlendElement.result') |
| 823 @DocsEditable() |
| 824 final AnimatedString result; |
| 825 |
| 826 @DomName('SVGFEBlendElement.width') |
| 827 @DocsEditable() |
| 828 final AnimatedLength width; |
| 829 |
| 830 @DomName('SVGFEBlendElement.x') |
| 831 @DocsEditable() |
| 832 final AnimatedLength x; |
| 833 |
| 834 @DomName('SVGFEBlendElement.y') |
| 835 @DocsEditable() |
| 836 final AnimatedLength y; |
| 837 } |
| 838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 839 // for details. All rights reserved. Use of this source code is governed by a |
| 840 // BSD-style license that can be found in the LICENSE file. |
| 841 |
| 842 |
| 843 @DocsEditable() |
| 844 @DomName('SVGFEColorMatrixElement') |
| 845 @SupportedBrowser(SupportedBrowser.CHROME) |
| 846 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 847 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 848 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 849 @Unstable() |
| 850 @Native("SVGFEColorMatrixElement") |
| 851 class FEColorMatrixElement extends SvgElement implements FilterPrimitiveStandard
Attributes { |
| 852 // To suppress missing implicit constructor warnings. |
| 853 factory FEColorMatrixElement._() { throw new UnsupportedError("Not supported")
; } |
| 854 |
| 855 @DomName('SVGFEColorMatrixElement.SVGFEColorMatrixElement') |
| 856 @DocsEditable() |
| 857 factory FEColorMatrixElement() => _SvgElementFactoryProvider.createSvgElement_
tag("feColorMatrix"); |
| 858 /** |
| 859 * Constructor instantiated by the DOM when a custom element has been created. |
| 860 * |
| 861 * This can only be called by subclasses from their created constructor. |
| 862 */ |
| 863 FEColorMatrixElement.created() : super.created(); |
| 864 |
| 865 /// Checks if this type is supported on the current platform. |
| 866 static bool get supported => SvgElement.isTagSupported('feColorMatrix') && (ne
w SvgElement.tag('feColorMatrix') is FEColorMatrixElement); |
| 867 |
| 868 @DomName('SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_HUEROTATE') |
| 869 @DocsEditable() |
| 870 static const int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; |
| 871 |
| 872 @DomName('SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA') |
| 873 @DocsEditable() |
| 874 static const int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; |
| 875 |
| 876 @DomName('SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX') |
| 877 @DocsEditable() |
| 878 static const int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; |
| 879 |
| 880 @DomName('SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE') |
| 881 @DocsEditable() |
| 882 static const int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; |
| 883 |
| 884 @DomName('SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_UNKNOWN') |
| 885 @DocsEditable() |
| 886 static const int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; |
| 887 |
| 888 @DomName('SVGFEColorMatrixElement.in1') |
| 889 @DocsEditable() |
| 890 final AnimatedString in1; |
| 891 |
| 892 @DomName('SVGFEColorMatrixElement.type') |
| 893 @DocsEditable() |
| 894 final AnimatedEnumeration type; |
| 895 |
| 896 @DomName('SVGFEColorMatrixElement.values') |
| 897 @DocsEditable() |
| 898 final AnimatedNumberList values; |
| 899 |
| 900 // From SVGFilterPrimitiveStandardAttributes |
| 901 |
| 902 @DomName('SVGFEColorMatrixElement.height') |
| 903 @DocsEditable() |
| 904 final AnimatedLength height; |
| 905 |
| 906 @DomName('SVGFEColorMatrixElement.result') |
| 907 @DocsEditable() |
| 908 final AnimatedString result; |
| 909 |
| 910 @DomName('SVGFEColorMatrixElement.width') |
| 911 @DocsEditable() |
| 912 final AnimatedLength width; |
| 913 |
| 914 @DomName('SVGFEColorMatrixElement.x') |
| 915 @DocsEditable() |
| 916 final AnimatedLength x; |
| 917 |
| 918 @DomName('SVGFEColorMatrixElement.y') |
| 919 @DocsEditable() |
| 920 final AnimatedLength y; |
| 921 } |
| 922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 923 // for details. All rights reserved. Use of this source code is governed by a |
| 924 // BSD-style license that can be found in the LICENSE file. |
| 925 |
| 926 |
| 927 @DocsEditable() |
| 928 @DomName('SVGFEComponentTransferElement') |
| 929 @SupportedBrowser(SupportedBrowser.CHROME) |
| 930 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 931 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 932 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 933 @Unstable() |
| 934 @Native("SVGFEComponentTransferElement") |
| 935 class FEComponentTransferElement extends SvgElement implements FilterPrimitiveSt
andardAttributes { |
| 936 // To suppress missing implicit constructor warnings. |
| 937 factory FEComponentTransferElement._() { throw new UnsupportedError("Not suppo
rted"); } |
| 938 |
| 939 @DomName('SVGFEComponentTransferElement.SVGFEComponentTransferElement') |
| 940 @DocsEditable() |
| 941 factory FEComponentTransferElement() => _SvgElementFactoryProvider.createSvgEl
ement_tag("feComponentTransfer"); |
| 942 /** |
| 943 * Constructor instantiated by the DOM when a custom element has been created. |
| 944 * |
| 945 * This can only be called by subclasses from their created constructor. |
| 946 */ |
| 947 FEComponentTransferElement.created() : super.created(); |
| 948 |
| 949 /// Checks if this type is supported on the current platform. |
| 950 static bool get supported => SvgElement.isTagSupported('feComponentTransfer')
&& (new SvgElement.tag('feComponentTransfer') is FEComponentTransferElement); |
| 951 |
| 952 @DomName('SVGFEComponentTransferElement.in1') |
| 953 @DocsEditable() |
| 954 final AnimatedString in1; |
| 955 |
| 956 // From SVGFilterPrimitiveStandardAttributes |
| 957 |
| 958 @DomName('SVGFEComponentTransferElement.height') |
| 959 @DocsEditable() |
| 960 final AnimatedLength height; |
| 961 |
| 962 @DomName('SVGFEComponentTransferElement.result') |
| 963 @DocsEditable() |
| 964 final AnimatedString result; |
| 965 |
| 966 @DomName('SVGFEComponentTransferElement.width') |
| 967 @DocsEditable() |
| 968 final AnimatedLength width; |
| 969 |
| 970 @DomName('SVGFEComponentTransferElement.x') |
| 971 @DocsEditable() |
| 972 final AnimatedLength x; |
| 973 |
| 974 @DomName('SVGFEComponentTransferElement.y') |
| 975 @DocsEditable() |
| 976 final AnimatedLength y; |
| 977 } |
| 978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 979 // for details. All rights reserved. Use of this source code is governed by a |
| 980 // BSD-style license that can be found in the LICENSE file. |
| 981 |
| 982 |
| 983 @DocsEditable() |
| 984 @DomName('SVGFECompositeElement') |
| 985 @Unstable() |
| 986 @Native("SVGFECompositeElement") |
| 987 class FECompositeElement extends SvgElement implements FilterPrimitiveStandardAt
tributes { |
| 988 // To suppress missing implicit constructor warnings. |
| 989 factory FECompositeElement._() { throw new UnsupportedError("Not supported");
} |
| 990 /** |
| 991 * Constructor instantiated by the DOM when a custom element has been created. |
| 992 * |
| 993 * This can only be called by subclasses from their created constructor. |
| 994 */ |
| 995 FECompositeElement.created() : super.created(); |
| 996 |
| 997 @DomName('SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ARITHMETIC') |
| 998 @DocsEditable() |
| 999 static const int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; |
| 1000 |
| 1001 @DomName('SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ATOP') |
| 1002 @DocsEditable() |
| 1003 static const int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; |
| 1004 |
| 1005 @DomName('SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_IN') |
| 1006 @DocsEditable() |
| 1007 static const int SVG_FECOMPOSITE_OPERATOR_IN = 2; |
| 1008 |
| 1009 @DomName('SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OUT') |
| 1010 @DocsEditable() |
| 1011 static const int SVG_FECOMPOSITE_OPERATOR_OUT = 3; |
| 1012 |
| 1013 @DomName('SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OVER') |
| 1014 @DocsEditable() |
| 1015 static const int SVG_FECOMPOSITE_OPERATOR_OVER = 1; |
| 1016 |
| 1017 @DomName('SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_UNKNOWN') |
| 1018 @DocsEditable() |
| 1019 static const int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; |
| 1020 |
| 1021 @DomName('SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_XOR') |
| 1022 @DocsEditable() |
| 1023 static const int SVG_FECOMPOSITE_OPERATOR_XOR = 5; |
| 1024 |
| 1025 @DomName('SVGFECompositeElement.in1') |
| 1026 @DocsEditable() |
| 1027 final AnimatedString in1; |
| 1028 |
| 1029 @DomName('SVGFECompositeElement.in2') |
| 1030 @DocsEditable() |
| 1031 final AnimatedString in2; |
| 1032 |
| 1033 @DomName('SVGFECompositeElement.k1') |
| 1034 @DocsEditable() |
| 1035 final AnimatedNumber k1; |
| 1036 |
| 1037 @DomName('SVGFECompositeElement.k2') |
| 1038 @DocsEditable() |
| 1039 final AnimatedNumber k2; |
| 1040 |
| 1041 @DomName('SVGFECompositeElement.k3') |
| 1042 @DocsEditable() |
| 1043 final AnimatedNumber k3; |
| 1044 |
| 1045 @DomName('SVGFECompositeElement.k4') |
| 1046 @DocsEditable() |
| 1047 final AnimatedNumber k4; |
| 1048 |
| 1049 @DomName('SVGFECompositeElement.operator') |
| 1050 @DocsEditable() |
| 1051 final AnimatedEnumeration operator; |
| 1052 |
| 1053 // From SVGFilterPrimitiveStandardAttributes |
| 1054 |
| 1055 @DomName('SVGFECompositeElement.height') |
| 1056 @DocsEditable() |
| 1057 final AnimatedLength height; |
| 1058 |
| 1059 @DomName('SVGFECompositeElement.result') |
| 1060 @DocsEditable() |
| 1061 final AnimatedString result; |
| 1062 |
| 1063 @DomName('SVGFECompositeElement.width') |
| 1064 @DocsEditable() |
| 1065 final AnimatedLength width; |
| 1066 |
| 1067 @DomName('SVGFECompositeElement.x') |
| 1068 @DocsEditable() |
| 1069 final AnimatedLength x; |
| 1070 |
| 1071 @DomName('SVGFECompositeElement.y') |
| 1072 @DocsEditable() |
| 1073 final AnimatedLength y; |
| 1074 } |
| 1075 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1076 // for details. All rights reserved. Use of this source code is governed by a |
| 1077 // BSD-style license that can be found in the LICENSE file. |
| 1078 |
| 1079 |
| 1080 @DocsEditable() |
| 1081 @DomName('SVGFEConvolveMatrixElement') |
| 1082 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1083 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1084 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1085 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1086 @Unstable() |
| 1087 @Native("SVGFEConvolveMatrixElement") |
| 1088 class FEConvolveMatrixElement extends SvgElement implements FilterPrimitiveStand
ardAttributes { |
| 1089 // To suppress missing implicit constructor warnings. |
| 1090 factory FEConvolveMatrixElement._() { throw new UnsupportedError("Not supporte
d"); } |
| 1091 |
| 1092 @DomName('SVGFEConvolveMatrixElement.SVGFEConvolveMatrixElement') |
| 1093 @DocsEditable() |
| 1094 factory FEConvolveMatrixElement() => _SvgElementFactoryProvider.createSvgEleme
nt_tag("feConvolveMatrix"); |
| 1095 /** |
| 1096 * Constructor instantiated by the DOM when a custom element has been created. |
| 1097 * |
| 1098 * This can only be called by subclasses from their created constructor. |
| 1099 */ |
| 1100 FEConvolveMatrixElement.created() : super.created(); |
| 1101 |
| 1102 /// Checks if this type is supported on the current platform. |
| 1103 static bool get supported => SvgElement.isTagSupported('feConvolveMatrix') &&
(new SvgElement.tag('feConvolveMatrix') is FEConvolveMatrixElement); |
| 1104 |
| 1105 @DomName('SVGFEConvolveMatrixElement.SVG_EDGEMODE_DUPLICATE') |
| 1106 @DocsEditable() |
| 1107 static const int SVG_EDGEMODE_DUPLICATE = 1; |
| 1108 |
| 1109 @DomName('SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE') |
| 1110 @DocsEditable() |
| 1111 static const int SVG_EDGEMODE_NONE = 3; |
| 1112 |
| 1113 @DomName('SVGFEConvolveMatrixElement.SVG_EDGEMODE_UNKNOWN') |
| 1114 @DocsEditable() |
| 1115 static const int SVG_EDGEMODE_UNKNOWN = 0; |
| 1116 |
| 1117 @DomName('SVGFEConvolveMatrixElement.SVG_EDGEMODE_WRAP') |
| 1118 @DocsEditable() |
| 1119 static const int SVG_EDGEMODE_WRAP = 2; |
| 1120 |
| 1121 @DomName('SVGFEConvolveMatrixElement.bias') |
| 1122 @DocsEditable() |
| 1123 final AnimatedNumber bias; |
| 1124 |
| 1125 @DomName('SVGFEConvolveMatrixElement.divisor') |
| 1126 @DocsEditable() |
| 1127 final AnimatedNumber divisor; |
| 1128 |
| 1129 @DomName('SVGFEConvolveMatrixElement.edgeMode') |
| 1130 @DocsEditable() |
| 1131 final AnimatedEnumeration edgeMode; |
| 1132 |
| 1133 @DomName('SVGFEConvolveMatrixElement.in1') |
| 1134 @DocsEditable() |
| 1135 final AnimatedString in1; |
| 1136 |
| 1137 @DomName('SVGFEConvolveMatrixElement.kernelMatrix') |
| 1138 @DocsEditable() |
| 1139 final AnimatedNumberList kernelMatrix; |
| 1140 |
| 1141 @DomName('SVGFEConvolveMatrixElement.kernelUnitLengthX') |
| 1142 @DocsEditable() |
| 1143 final AnimatedNumber kernelUnitLengthX; |
| 1144 |
| 1145 @DomName('SVGFEConvolveMatrixElement.kernelUnitLengthY') |
| 1146 @DocsEditable() |
| 1147 final AnimatedNumber kernelUnitLengthY; |
| 1148 |
| 1149 @DomName('SVGFEConvolveMatrixElement.orderX') |
| 1150 @DocsEditable() |
| 1151 final AnimatedInteger orderX; |
| 1152 |
| 1153 @DomName('SVGFEConvolveMatrixElement.orderY') |
| 1154 @DocsEditable() |
| 1155 final AnimatedInteger orderY; |
| 1156 |
| 1157 @DomName('SVGFEConvolveMatrixElement.preserveAlpha') |
| 1158 @DocsEditable() |
| 1159 final AnimatedBoolean preserveAlpha; |
| 1160 |
| 1161 @DomName('SVGFEConvolveMatrixElement.targetX') |
| 1162 @DocsEditable() |
| 1163 final AnimatedInteger targetX; |
| 1164 |
| 1165 @DomName('SVGFEConvolveMatrixElement.targetY') |
| 1166 @DocsEditable() |
| 1167 final AnimatedInteger targetY; |
| 1168 |
| 1169 // From SVGFilterPrimitiveStandardAttributes |
| 1170 |
| 1171 @DomName('SVGFEConvolveMatrixElement.height') |
| 1172 @DocsEditable() |
| 1173 final AnimatedLength height; |
| 1174 |
| 1175 @DomName('SVGFEConvolveMatrixElement.result') |
| 1176 @DocsEditable() |
| 1177 final AnimatedString result; |
| 1178 |
| 1179 @DomName('SVGFEConvolveMatrixElement.width') |
| 1180 @DocsEditable() |
| 1181 final AnimatedLength width; |
| 1182 |
| 1183 @DomName('SVGFEConvolveMatrixElement.x') |
| 1184 @DocsEditable() |
| 1185 final AnimatedLength x; |
| 1186 |
| 1187 @DomName('SVGFEConvolveMatrixElement.y') |
| 1188 @DocsEditable() |
| 1189 final AnimatedLength y; |
| 1190 } |
| 1191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1192 // for details. All rights reserved. Use of this source code is governed by a |
| 1193 // BSD-style license that can be found in the LICENSE file. |
| 1194 |
| 1195 |
| 1196 @DocsEditable() |
| 1197 @DomName('SVGFEDiffuseLightingElement') |
| 1198 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1199 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1200 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1201 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1202 @Unstable() |
| 1203 @Native("SVGFEDiffuseLightingElement") |
| 1204 class FEDiffuseLightingElement extends SvgElement implements FilterPrimitiveStan
dardAttributes { |
| 1205 // To suppress missing implicit constructor warnings. |
| 1206 factory FEDiffuseLightingElement._() { throw new UnsupportedError("Not support
ed"); } |
| 1207 |
| 1208 @DomName('SVGFEDiffuseLightingElement.SVGFEDiffuseLightingElement') |
| 1209 @DocsEditable() |
| 1210 factory FEDiffuseLightingElement() => _SvgElementFactoryProvider.createSvgElem
ent_tag("feDiffuseLighting"); |
| 1211 /** |
| 1212 * Constructor instantiated by the DOM when a custom element has been created. |
| 1213 * |
| 1214 * This can only be called by subclasses from their created constructor. |
| 1215 */ |
| 1216 FEDiffuseLightingElement.created() : super.created(); |
| 1217 |
| 1218 /// Checks if this type is supported on the current platform. |
| 1219 static bool get supported => SvgElement.isTagSupported('feDiffuseLighting') &&
(new SvgElement.tag('feDiffuseLighting') is FEDiffuseLightingElement); |
| 1220 |
| 1221 @DomName('SVGFEDiffuseLightingElement.diffuseConstant') |
| 1222 @DocsEditable() |
| 1223 final AnimatedNumber diffuseConstant; |
| 1224 |
| 1225 @DomName('SVGFEDiffuseLightingElement.in1') |
| 1226 @DocsEditable() |
| 1227 final AnimatedString in1; |
| 1228 |
| 1229 @DomName('SVGFEDiffuseLightingElement.kernelUnitLengthX') |
| 1230 @DocsEditable() |
| 1231 final AnimatedNumber kernelUnitLengthX; |
| 1232 |
| 1233 @DomName('SVGFEDiffuseLightingElement.kernelUnitLengthY') |
| 1234 @DocsEditable() |
| 1235 final AnimatedNumber kernelUnitLengthY; |
| 1236 |
| 1237 @DomName('SVGFEDiffuseLightingElement.surfaceScale') |
| 1238 @DocsEditable() |
| 1239 final AnimatedNumber surfaceScale; |
| 1240 |
| 1241 // From SVGFilterPrimitiveStandardAttributes |
| 1242 |
| 1243 @DomName('SVGFEDiffuseLightingElement.height') |
| 1244 @DocsEditable() |
| 1245 final AnimatedLength height; |
| 1246 |
| 1247 @DomName('SVGFEDiffuseLightingElement.result') |
| 1248 @DocsEditable() |
| 1249 final AnimatedString result; |
| 1250 |
| 1251 @DomName('SVGFEDiffuseLightingElement.width') |
| 1252 @DocsEditable() |
| 1253 final AnimatedLength width; |
| 1254 |
| 1255 @DomName('SVGFEDiffuseLightingElement.x') |
| 1256 @DocsEditable() |
| 1257 final AnimatedLength x; |
| 1258 |
| 1259 @DomName('SVGFEDiffuseLightingElement.y') |
| 1260 @DocsEditable() |
| 1261 final AnimatedLength y; |
| 1262 } |
| 1263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1264 // for details. All rights reserved. Use of this source code is governed by a |
| 1265 // BSD-style license that can be found in the LICENSE file. |
| 1266 |
| 1267 |
| 1268 @DocsEditable() |
| 1269 @DomName('SVGFEDisplacementMapElement') |
| 1270 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1271 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1272 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1273 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1274 @Unstable() |
| 1275 @Native("SVGFEDisplacementMapElement") |
| 1276 class FEDisplacementMapElement extends SvgElement implements FilterPrimitiveStan
dardAttributes { |
| 1277 // To suppress missing implicit constructor warnings. |
| 1278 factory FEDisplacementMapElement._() { throw new UnsupportedError("Not support
ed"); } |
| 1279 |
| 1280 @DomName('SVGFEDisplacementMapElement.SVGFEDisplacementMapElement') |
| 1281 @DocsEditable() |
| 1282 factory FEDisplacementMapElement() => _SvgElementFactoryProvider.createSvgElem
ent_tag("feDisplacementMap"); |
| 1283 /** |
| 1284 * Constructor instantiated by the DOM when a custom element has been created. |
| 1285 * |
| 1286 * This can only be called by subclasses from their created constructor. |
| 1287 */ |
| 1288 FEDisplacementMapElement.created() : super.created(); |
| 1289 |
| 1290 /// Checks if this type is supported on the current platform. |
| 1291 static bool get supported => SvgElement.isTagSupported('feDisplacementMap') &&
(new SvgElement.tag('feDisplacementMap') is FEDisplacementMapElement); |
| 1292 |
| 1293 @DomName('SVGFEDisplacementMapElement.SVG_CHANNEL_A') |
| 1294 @DocsEditable() |
| 1295 static const int SVG_CHANNEL_A = 4; |
| 1296 |
| 1297 @DomName('SVGFEDisplacementMapElement.SVG_CHANNEL_B') |
| 1298 @DocsEditable() |
| 1299 static const int SVG_CHANNEL_B = 3; |
| 1300 |
| 1301 @DomName('SVGFEDisplacementMapElement.SVG_CHANNEL_G') |
| 1302 @DocsEditable() |
| 1303 static const int SVG_CHANNEL_G = 2; |
| 1304 |
| 1305 @DomName('SVGFEDisplacementMapElement.SVG_CHANNEL_R') |
| 1306 @DocsEditable() |
| 1307 static const int SVG_CHANNEL_R = 1; |
| 1308 |
| 1309 @DomName('SVGFEDisplacementMapElement.SVG_CHANNEL_UNKNOWN') |
| 1310 @DocsEditable() |
| 1311 static const int SVG_CHANNEL_UNKNOWN = 0; |
| 1312 |
| 1313 @DomName('SVGFEDisplacementMapElement.in1') |
| 1314 @DocsEditable() |
| 1315 final AnimatedString in1; |
| 1316 |
| 1317 @DomName('SVGFEDisplacementMapElement.in2') |
| 1318 @DocsEditable() |
| 1319 final AnimatedString in2; |
| 1320 |
| 1321 @DomName('SVGFEDisplacementMapElement.scale') |
| 1322 @DocsEditable() |
| 1323 final AnimatedNumber scale; |
| 1324 |
| 1325 @DomName('SVGFEDisplacementMapElement.xChannelSelector') |
| 1326 @DocsEditable() |
| 1327 final AnimatedEnumeration xChannelSelector; |
| 1328 |
| 1329 @DomName('SVGFEDisplacementMapElement.yChannelSelector') |
| 1330 @DocsEditable() |
| 1331 final AnimatedEnumeration yChannelSelector; |
| 1332 |
| 1333 // From SVGFilterPrimitiveStandardAttributes |
| 1334 |
| 1335 @DomName('SVGFEDisplacementMapElement.height') |
| 1336 @DocsEditable() |
| 1337 final AnimatedLength height; |
| 1338 |
| 1339 @DomName('SVGFEDisplacementMapElement.result') |
| 1340 @DocsEditable() |
| 1341 final AnimatedString result; |
| 1342 |
| 1343 @DomName('SVGFEDisplacementMapElement.width') |
| 1344 @DocsEditable() |
| 1345 final AnimatedLength width; |
| 1346 |
| 1347 @DomName('SVGFEDisplacementMapElement.x') |
| 1348 @DocsEditable() |
| 1349 final AnimatedLength x; |
| 1350 |
| 1351 @DomName('SVGFEDisplacementMapElement.y') |
| 1352 @DocsEditable() |
| 1353 final AnimatedLength y; |
| 1354 } |
| 1355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1356 // for details. All rights reserved. Use of this source code is governed by a |
| 1357 // BSD-style license that can be found in the LICENSE file. |
| 1358 |
| 1359 |
| 1360 @DocsEditable() |
| 1361 @DomName('SVGFEDistantLightElement') |
| 1362 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1363 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1364 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1365 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1366 @Unstable() |
| 1367 @Native("SVGFEDistantLightElement") |
| 1368 class FEDistantLightElement extends SvgElement { |
| 1369 // To suppress missing implicit constructor warnings. |
| 1370 factory FEDistantLightElement._() { throw new UnsupportedError("Not supported"
); } |
| 1371 |
| 1372 @DomName('SVGFEDistantLightElement.SVGFEDistantLightElement') |
| 1373 @DocsEditable() |
| 1374 factory FEDistantLightElement() => _SvgElementFactoryProvider.createSvgElement
_tag("feDistantLight"); |
| 1375 /** |
| 1376 * Constructor instantiated by the DOM when a custom element has been created. |
| 1377 * |
| 1378 * This can only be called by subclasses from their created constructor. |
| 1379 */ |
| 1380 FEDistantLightElement.created() : super.created(); |
| 1381 |
| 1382 /// Checks if this type is supported on the current platform. |
| 1383 static bool get supported => SvgElement.isTagSupported('feDistantLight') && (n
ew SvgElement.tag('feDistantLight') is FEDistantLightElement); |
| 1384 |
| 1385 @DomName('SVGFEDistantLightElement.azimuth') |
| 1386 @DocsEditable() |
| 1387 final AnimatedNumber azimuth; |
| 1388 |
| 1389 @DomName('SVGFEDistantLightElement.elevation') |
| 1390 @DocsEditable() |
| 1391 final AnimatedNumber elevation; |
| 1392 } |
| 1393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1394 // for details. All rights reserved. Use of this source code is governed by a |
| 1395 // BSD-style license that can be found in the LICENSE file. |
| 1396 |
| 1397 |
| 1398 @DocsEditable() |
| 1399 @DomName('SVGFEFloodElement') |
| 1400 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1401 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1402 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1403 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1404 @Unstable() |
| 1405 @Native("SVGFEFloodElement") |
| 1406 class FEFloodElement extends SvgElement implements FilterPrimitiveStandardAttrib
utes { |
| 1407 // To suppress missing implicit constructor warnings. |
| 1408 factory FEFloodElement._() { throw new UnsupportedError("Not supported"); } |
| 1409 |
| 1410 @DomName('SVGFEFloodElement.SVGFEFloodElement') |
| 1411 @DocsEditable() |
| 1412 factory FEFloodElement() => _SvgElementFactoryProvider.createSvgElement_tag("f
eFlood"); |
| 1413 /** |
| 1414 * Constructor instantiated by the DOM when a custom element has been created. |
| 1415 * |
| 1416 * This can only be called by subclasses from their created constructor. |
| 1417 */ |
| 1418 FEFloodElement.created() : super.created(); |
| 1419 |
| 1420 /// Checks if this type is supported on the current platform. |
| 1421 static bool get supported => SvgElement.isTagSupported('feFlood') && (new SvgE
lement.tag('feFlood') is FEFloodElement); |
| 1422 |
| 1423 // From SVGFilterPrimitiveStandardAttributes |
| 1424 |
| 1425 @DomName('SVGFEFloodElement.height') |
| 1426 @DocsEditable() |
| 1427 final AnimatedLength height; |
| 1428 |
| 1429 @DomName('SVGFEFloodElement.result') |
| 1430 @DocsEditable() |
| 1431 final AnimatedString result; |
| 1432 |
| 1433 @DomName('SVGFEFloodElement.width') |
| 1434 @DocsEditable() |
| 1435 final AnimatedLength width; |
| 1436 |
| 1437 @DomName('SVGFEFloodElement.x') |
| 1438 @DocsEditable() |
| 1439 final AnimatedLength x; |
| 1440 |
| 1441 @DomName('SVGFEFloodElement.y') |
| 1442 @DocsEditable() |
| 1443 final AnimatedLength y; |
| 1444 } |
| 1445 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1446 // for details. All rights reserved. Use of this source code is governed by a |
| 1447 // BSD-style license that can be found in the LICENSE file. |
| 1448 |
| 1449 |
| 1450 @DocsEditable() |
| 1451 @DomName('SVGFEFuncAElement') |
| 1452 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1453 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1454 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1455 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1456 @Unstable() |
| 1457 @Native("SVGFEFuncAElement") |
| 1458 class FEFuncAElement extends _SVGComponentTransferFunctionElement { |
| 1459 // To suppress missing implicit constructor warnings. |
| 1460 factory FEFuncAElement._() { throw new UnsupportedError("Not supported"); } |
| 1461 |
| 1462 @DomName('SVGFEFuncAElement.SVGFEFuncAElement') |
| 1463 @DocsEditable() |
| 1464 factory FEFuncAElement() => _SvgElementFactoryProvider.createSvgElement_tag("f
eFuncA"); |
| 1465 /** |
| 1466 * Constructor instantiated by the DOM when a custom element has been created. |
| 1467 * |
| 1468 * This can only be called by subclasses from their created constructor. |
| 1469 */ |
| 1470 FEFuncAElement.created() : super.created(); |
| 1471 |
| 1472 /// Checks if this type is supported on the current platform. |
| 1473 static bool get supported => SvgElement.isTagSupported('feFuncA') && (new SvgE
lement.tag('feFuncA') is FEFuncAElement); |
| 1474 } |
| 1475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1476 // for details. All rights reserved. Use of this source code is governed by a |
| 1477 // BSD-style license that can be found in the LICENSE file. |
| 1478 |
| 1479 |
| 1480 @DocsEditable() |
| 1481 @DomName('SVGFEFuncBElement') |
| 1482 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1483 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1484 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1485 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1486 @Unstable() |
| 1487 @Native("SVGFEFuncBElement") |
| 1488 class FEFuncBElement extends _SVGComponentTransferFunctionElement { |
| 1489 // To suppress missing implicit constructor warnings. |
| 1490 factory FEFuncBElement._() { throw new UnsupportedError("Not supported"); } |
| 1491 |
| 1492 @DomName('SVGFEFuncBElement.SVGFEFuncBElement') |
| 1493 @DocsEditable() |
| 1494 factory FEFuncBElement() => _SvgElementFactoryProvider.createSvgElement_tag("f
eFuncB"); |
| 1495 /** |
| 1496 * Constructor instantiated by the DOM when a custom element has been created. |
| 1497 * |
| 1498 * This can only be called by subclasses from their created constructor. |
| 1499 */ |
| 1500 FEFuncBElement.created() : super.created(); |
| 1501 |
| 1502 /// Checks if this type is supported on the current platform. |
| 1503 static bool get supported => SvgElement.isTagSupported('feFuncB') && (new SvgE
lement.tag('feFuncB') is FEFuncBElement); |
| 1504 } |
| 1505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1506 // for details. All rights reserved. Use of this source code is governed by a |
| 1507 // BSD-style license that can be found in the LICENSE file. |
| 1508 |
| 1509 |
| 1510 @DocsEditable() |
| 1511 @DomName('SVGFEFuncGElement') |
| 1512 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1513 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1514 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1515 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1516 @Unstable() |
| 1517 @Native("SVGFEFuncGElement") |
| 1518 class FEFuncGElement extends _SVGComponentTransferFunctionElement { |
| 1519 // To suppress missing implicit constructor warnings. |
| 1520 factory FEFuncGElement._() { throw new UnsupportedError("Not supported"); } |
| 1521 |
| 1522 @DomName('SVGFEFuncGElement.SVGFEFuncGElement') |
| 1523 @DocsEditable() |
| 1524 factory FEFuncGElement() => _SvgElementFactoryProvider.createSvgElement_tag("f
eFuncG"); |
| 1525 /** |
| 1526 * Constructor instantiated by the DOM when a custom element has been created. |
| 1527 * |
| 1528 * This can only be called by subclasses from their created constructor. |
| 1529 */ |
| 1530 FEFuncGElement.created() : super.created(); |
| 1531 |
| 1532 /// Checks if this type is supported on the current platform. |
| 1533 static bool get supported => SvgElement.isTagSupported('feFuncG') && (new SvgE
lement.tag('feFuncG') is FEFuncGElement); |
| 1534 } |
| 1535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1536 // for details. All rights reserved. Use of this source code is governed by a |
| 1537 // BSD-style license that can be found in the LICENSE file. |
| 1538 |
| 1539 |
| 1540 @DocsEditable() |
| 1541 @DomName('SVGFEFuncRElement') |
| 1542 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1543 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1544 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1545 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1546 @Unstable() |
| 1547 @Native("SVGFEFuncRElement") |
| 1548 class FEFuncRElement extends _SVGComponentTransferFunctionElement { |
| 1549 // To suppress missing implicit constructor warnings. |
| 1550 factory FEFuncRElement._() { throw new UnsupportedError("Not supported"); } |
| 1551 |
| 1552 @DomName('SVGFEFuncRElement.SVGFEFuncRElement') |
| 1553 @DocsEditable() |
| 1554 factory FEFuncRElement() => _SvgElementFactoryProvider.createSvgElement_tag("f
eFuncR"); |
| 1555 /** |
| 1556 * Constructor instantiated by the DOM when a custom element has been created. |
| 1557 * |
| 1558 * This can only be called by subclasses from their created constructor. |
| 1559 */ |
| 1560 FEFuncRElement.created() : super.created(); |
| 1561 |
| 1562 /// Checks if this type is supported on the current platform. |
| 1563 static bool get supported => SvgElement.isTagSupported('feFuncR') && (new SvgE
lement.tag('feFuncR') is FEFuncRElement); |
| 1564 } |
| 1565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1566 // for details. All rights reserved. Use of this source code is governed by a |
| 1567 // BSD-style license that can be found in the LICENSE file. |
| 1568 |
| 1569 |
| 1570 @DocsEditable() |
| 1571 @DomName('SVGFEGaussianBlurElement') |
| 1572 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1573 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1574 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1575 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1576 @Unstable() |
| 1577 @Native("SVGFEGaussianBlurElement") |
| 1578 class FEGaussianBlurElement extends SvgElement implements FilterPrimitiveStandar
dAttributes { |
| 1579 // To suppress missing implicit constructor warnings. |
| 1580 factory FEGaussianBlurElement._() { throw new UnsupportedError("Not supported"
); } |
| 1581 |
| 1582 @DomName('SVGFEGaussianBlurElement.SVGFEGaussianBlurElement') |
| 1583 @DocsEditable() |
| 1584 factory FEGaussianBlurElement() => _SvgElementFactoryProvider.createSvgElement
_tag("feGaussianBlur"); |
| 1585 /** |
| 1586 * Constructor instantiated by the DOM when a custom element has been created. |
| 1587 * |
| 1588 * This can only be called by subclasses from their created constructor. |
| 1589 */ |
| 1590 FEGaussianBlurElement.created() : super.created(); |
| 1591 |
| 1592 /// Checks if this type is supported on the current platform. |
| 1593 static bool get supported => SvgElement.isTagSupported('feGaussianBlur') && (n
ew SvgElement.tag('feGaussianBlur') is FEGaussianBlurElement); |
| 1594 |
| 1595 @DomName('SVGFEGaussianBlurElement.in1') |
| 1596 @DocsEditable() |
| 1597 final AnimatedString in1; |
| 1598 |
| 1599 @DomName('SVGFEGaussianBlurElement.stdDeviationX') |
| 1600 @DocsEditable() |
| 1601 final AnimatedNumber stdDeviationX; |
| 1602 |
| 1603 @DomName('SVGFEGaussianBlurElement.stdDeviationY') |
| 1604 @DocsEditable() |
| 1605 final AnimatedNumber stdDeviationY; |
| 1606 |
| 1607 @DomName('SVGFEGaussianBlurElement.setStdDeviation') |
| 1608 @DocsEditable() |
| 1609 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; |
| 1610 |
| 1611 // From SVGFilterPrimitiveStandardAttributes |
| 1612 |
| 1613 @DomName('SVGFEGaussianBlurElement.height') |
| 1614 @DocsEditable() |
| 1615 final AnimatedLength height; |
| 1616 |
| 1617 @DomName('SVGFEGaussianBlurElement.result') |
| 1618 @DocsEditable() |
| 1619 final AnimatedString result; |
| 1620 |
| 1621 @DomName('SVGFEGaussianBlurElement.width') |
| 1622 @DocsEditable() |
| 1623 final AnimatedLength width; |
| 1624 |
| 1625 @DomName('SVGFEGaussianBlurElement.x') |
| 1626 @DocsEditable() |
| 1627 final AnimatedLength x; |
| 1628 |
| 1629 @DomName('SVGFEGaussianBlurElement.y') |
| 1630 @DocsEditable() |
| 1631 final AnimatedLength y; |
| 1632 } |
| 1633 // 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 |
| 1635 // BSD-style license that can be found in the LICENSE file. |
| 1636 |
| 1637 |
| 1638 @DocsEditable() |
| 1639 @DomName('SVGFEImageElement') |
| 1640 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1641 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1642 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1643 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1644 @Unstable() |
| 1645 @Native("SVGFEImageElement") |
| 1646 class FEImageElement extends SvgElement implements FilterPrimitiveStandardAttrib
utes, UriReference { |
| 1647 // To suppress missing implicit constructor warnings. |
| 1648 factory FEImageElement._() { throw new UnsupportedError("Not supported"); } |
| 1649 |
| 1650 @DomName('SVGFEImageElement.SVGFEImageElement') |
| 1651 @DocsEditable() |
| 1652 factory FEImageElement() => _SvgElementFactoryProvider.createSvgElement_tag("f
eImage"); |
| 1653 /** |
| 1654 * Constructor instantiated by the DOM when a custom element has been created. |
| 1655 * |
| 1656 * This can only be called by subclasses from their created constructor. |
| 1657 */ |
| 1658 FEImageElement.created() : super.created(); |
| 1659 |
| 1660 /// Checks if this type is supported on the current platform. |
| 1661 static bool get supported => SvgElement.isTagSupported('feImage') && (new SvgE
lement.tag('feImage') is FEImageElement); |
| 1662 |
| 1663 @DomName('SVGFEImageElement.preserveAspectRatio') |
| 1664 @DocsEditable() |
| 1665 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 1666 |
| 1667 // From SVGFilterPrimitiveStandardAttributes |
| 1668 |
| 1669 @DomName('SVGFEImageElement.height') |
| 1670 @DocsEditable() |
| 1671 final AnimatedLength height; |
| 1672 |
| 1673 @DomName('SVGFEImageElement.result') |
| 1674 @DocsEditable() |
| 1675 final AnimatedString result; |
| 1676 |
| 1677 @DomName('SVGFEImageElement.width') |
| 1678 @DocsEditable() |
| 1679 final AnimatedLength width; |
| 1680 |
| 1681 @DomName('SVGFEImageElement.x') |
| 1682 @DocsEditable() |
| 1683 final AnimatedLength x; |
| 1684 |
| 1685 @DomName('SVGFEImageElement.y') |
| 1686 @DocsEditable() |
| 1687 final AnimatedLength y; |
| 1688 |
| 1689 // From SVGURIReference |
| 1690 |
| 1691 @DomName('SVGFEImageElement.href') |
| 1692 @DocsEditable() |
| 1693 final AnimatedString href; |
| 1694 } |
| 1695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1696 // for details. All rights reserved. Use of this source code is governed by a |
| 1697 // BSD-style license that can be found in the LICENSE file. |
| 1698 |
| 1699 |
| 1700 @DocsEditable() |
| 1701 @DomName('SVGFEMergeElement') |
| 1702 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1703 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1704 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1705 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1706 @Unstable() |
| 1707 @Native("SVGFEMergeElement") |
| 1708 class FEMergeElement extends SvgElement implements FilterPrimitiveStandardAttrib
utes { |
| 1709 // To suppress missing implicit constructor warnings. |
| 1710 factory FEMergeElement._() { throw new UnsupportedError("Not supported"); } |
| 1711 |
| 1712 @DomName('SVGFEMergeElement.SVGFEMergeElement') |
| 1713 @DocsEditable() |
| 1714 factory FEMergeElement() => _SvgElementFactoryProvider.createSvgElement_tag("f
eMerge"); |
| 1715 /** |
| 1716 * Constructor instantiated by the DOM when a custom element has been created. |
| 1717 * |
| 1718 * This can only be called by subclasses from their created constructor. |
| 1719 */ |
| 1720 FEMergeElement.created() : super.created(); |
| 1721 |
| 1722 /// Checks if this type is supported on the current platform. |
| 1723 static bool get supported => SvgElement.isTagSupported('feMerge') && (new SvgE
lement.tag('feMerge') is FEMergeElement); |
| 1724 |
| 1725 // From SVGFilterPrimitiveStandardAttributes |
| 1726 |
| 1727 @DomName('SVGFEMergeElement.height') |
| 1728 @DocsEditable() |
| 1729 final AnimatedLength height; |
| 1730 |
| 1731 @DomName('SVGFEMergeElement.result') |
| 1732 @DocsEditable() |
| 1733 final AnimatedString result; |
| 1734 |
| 1735 @DomName('SVGFEMergeElement.width') |
| 1736 @DocsEditable() |
| 1737 final AnimatedLength width; |
| 1738 |
| 1739 @DomName('SVGFEMergeElement.x') |
| 1740 @DocsEditable() |
| 1741 final AnimatedLength x; |
| 1742 |
| 1743 @DomName('SVGFEMergeElement.y') |
| 1744 @DocsEditable() |
| 1745 final AnimatedLength y; |
| 1746 } |
| 1747 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1748 // for details. All rights reserved. Use of this source code is governed by a |
| 1749 // BSD-style license that can be found in the LICENSE file. |
| 1750 |
| 1751 |
| 1752 @DocsEditable() |
| 1753 @DomName('SVGFEMergeNodeElement') |
| 1754 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1755 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1756 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1757 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1758 @Unstable() |
| 1759 @Native("SVGFEMergeNodeElement") |
| 1760 class FEMergeNodeElement extends SvgElement { |
| 1761 // To suppress missing implicit constructor warnings. |
| 1762 factory FEMergeNodeElement._() { throw new UnsupportedError("Not supported");
} |
| 1763 |
| 1764 @DomName('SVGFEMergeNodeElement.SVGFEMergeNodeElement') |
| 1765 @DocsEditable() |
| 1766 factory FEMergeNodeElement() => _SvgElementFactoryProvider.createSvgElement_ta
g("feMergeNode"); |
| 1767 /** |
| 1768 * Constructor instantiated by the DOM when a custom element has been created. |
| 1769 * |
| 1770 * This can only be called by subclasses from their created constructor. |
| 1771 */ |
| 1772 FEMergeNodeElement.created() : super.created(); |
| 1773 |
| 1774 /// Checks if this type is supported on the current platform. |
| 1775 static bool get supported => SvgElement.isTagSupported('feMergeNode') && (new
SvgElement.tag('feMergeNode') is FEMergeNodeElement); |
| 1776 |
| 1777 @DomName('SVGFEMergeNodeElement.in1') |
| 1778 @DocsEditable() |
| 1779 final AnimatedString in1; |
| 1780 } |
| 1781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1782 // for details. All rights reserved. Use of this source code is governed by a |
| 1783 // BSD-style license that can be found in the LICENSE file. |
| 1784 |
| 1785 |
| 1786 @DocsEditable() |
| 1787 @DomName('SVGFEMorphologyElement') |
| 1788 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1789 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1790 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1791 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1792 @Unstable() |
| 1793 @Native("SVGFEMorphologyElement") |
| 1794 class FEMorphologyElement extends SvgElement implements FilterPrimitiveStandardA
ttributes { |
| 1795 // To suppress missing implicit constructor warnings. |
| 1796 factory FEMorphologyElement._() { throw new UnsupportedError("Not supported");
} |
| 1797 /** |
| 1798 * Constructor instantiated by the DOM when a custom element has been created. |
| 1799 * |
| 1800 * This can only be called by subclasses from their created constructor. |
| 1801 */ |
| 1802 FEMorphologyElement.created() : super.created(); |
| 1803 |
| 1804 @DomName('SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE') |
| 1805 @DocsEditable() |
| 1806 static const int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; |
| 1807 |
| 1808 @DomName('SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE') |
| 1809 @DocsEditable() |
| 1810 static const int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; |
| 1811 |
| 1812 @DomName('SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_UNKNOWN') |
| 1813 @DocsEditable() |
| 1814 static const int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; |
| 1815 |
| 1816 @DomName('SVGFEMorphologyElement.in1') |
| 1817 @DocsEditable() |
| 1818 final AnimatedString in1; |
| 1819 |
| 1820 @DomName('SVGFEMorphologyElement.operator') |
| 1821 @DocsEditable() |
| 1822 final AnimatedEnumeration operator; |
| 1823 |
| 1824 @DomName('SVGFEMorphologyElement.radiusX') |
| 1825 @DocsEditable() |
| 1826 final AnimatedNumber radiusX; |
| 1827 |
| 1828 @DomName('SVGFEMorphologyElement.radiusY') |
| 1829 @DocsEditable() |
| 1830 final AnimatedNumber radiusY; |
| 1831 |
| 1832 // From SVGFilterPrimitiveStandardAttributes |
| 1833 |
| 1834 @DomName('SVGFEMorphologyElement.height') |
| 1835 @DocsEditable() |
| 1836 final AnimatedLength height; |
| 1837 |
| 1838 @DomName('SVGFEMorphologyElement.result') |
| 1839 @DocsEditable() |
| 1840 final AnimatedString result; |
| 1841 |
| 1842 @DomName('SVGFEMorphologyElement.width') |
| 1843 @DocsEditable() |
| 1844 final AnimatedLength width; |
| 1845 |
| 1846 @DomName('SVGFEMorphologyElement.x') |
| 1847 @DocsEditable() |
| 1848 final AnimatedLength x; |
| 1849 |
| 1850 @DomName('SVGFEMorphologyElement.y') |
| 1851 @DocsEditable() |
| 1852 final AnimatedLength y; |
| 1853 } |
| 1854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1855 // for details. All rights reserved. Use of this source code is governed by a |
| 1856 // BSD-style license that can be found in the LICENSE file. |
| 1857 |
| 1858 |
| 1859 @DocsEditable() |
| 1860 @DomName('SVGFEOffsetElement') |
| 1861 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1862 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1863 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1864 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1865 @Unstable() |
| 1866 @Native("SVGFEOffsetElement") |
| 1867 class FEOffsetElement extends SvgElement implements FilterPrimitiveStandardAttri
butes { |
| 1868 // To suppress missing implicit constructor warnings. |
| 1869 factory FEOffsetElement._() { throw new UnsupportedError("Not supported"); } |
| 1870 |
| 1871 @DomName('SVGFEOffsetElement.SVGFEOffsetElement') |
| 1872 @DocsEditable() |
| 1873 factory FEOffsetElement() => _SvgElementFactoryProvider.createSvgElement_tag("
feOffset"); |
| 1874 /** |
| 1875 * Constructor instantiated by the DOM when a custom element has been created. |
| 1876 * |
| 1877 * This can only be called by subclasses from their created constructor. |
| 1878 */ |
| 1879 FEOffsetElement.created() : super.created(); |
| 1880 |
| 1881 /// Checks if this type is supported on the current platform. |
| 1882 static bool get supported => SvgElement.isTagSupported('feOffset') && (new Svg
Element.tag('feOffset') is FEOffsetElement); |
| 1883 |
| 1884 @DomName('SVGFEOffsetElement.dx') |
| 1885 @DocsEditable() |
| 1886 final AnimatedNumber dx; |
| 1887 |
| 1888 @DomName('SVGFEOffsetElement.dy') |
| 1889 @DocsEditable() |
| 1890 final AnimatedNumber dy; |
| 1891 |
| 1892 @DomName('SVGFEOffsetElement.in1') |
| 1893 @DocsEditable() |
| 1894 final AnimatedString in1; |
| 1895 |
| 1896 // From SVGFilterPrimitiveStandardAttributes |
| 1897 |
| 1898 @DomName('SVGFEOffsetElement.height') |
| 1899 @DocsEditable() |
| 1900 final AnimatedLength height; |
| 1901 |
| 1902 @DomName('SVGFEOffsetElement.result') |
| 1903 @DocsEditable() |
| 1904 final AnimatedString result; |
| 1905 |
| 1906 @DomName('SVGFEOffsetElement.width') |
| 1907 @DocsEditable() |
| 1908 final AnimatedLength width; |
| 1909 |
| 1910 @DomName('SVGFEOffsetElement.x') |
| 1911 @DocsEditable() |
| 1912 final AnimatedLength x; |
| 1913 |
| 1914 @DomName('SVGFEOffsetElement.y') |
| 1915 @DocsEditable() |
| 1916 final AnimatedLength y; |
| 1917 } |
| 1918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1919 // for details. All rights reserved. Use of this source code is governed by a |
| 1920 // BSD-style license that can be found in the LICENSE file. |
| 1921 |
| 1922 |
| 1923 @DocsEditable() |
| 1924 @DomName('SVGFEPointLightElement') |
| 1925 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1926 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1927 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1928 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1929 @Unstable() |
| 1930 @Native("SVGFEPointLightElement") |
| 1931 class FEPointLightElement extends SvgElement { |
| 1932 // To suppress missing implicit constructor warnings. |
| 1933 factory FEPointLightElement._() { throw new UnsupportedError("Not supported");
} |
| 1934 |
| 1935 @DomName('SVGFEPointLightElement.SVGFEPointLightElement') |
| 1936 @DocsEditable() |
| 1937 factory FEPointLightElement() => _SvgElementFactoryProvider.createSvgElement_t
ag("fePointLight"); |
| 1938 /** |
| 1939 * Constructor instantiated by the DOM when a custom element has been created. |
| 1940 * |
| 1941 * This can only be called by subclasses from their created constructor. |
| 1942 */ |
| 1943 FEPointLightElement.created() : super.created(); |
| 1944 |
| 1945 /// Checks if this type is supported on the current platform. |
| 1946 static bool get supported => SvgElement.isTagSupported('fePointLight') && (new
SvgElement.tag('fePointLight') is FEPointLightElement); |
| 1947 |
| 1948 @DomName('SVGFEPointLightElement.x') |
| 1949 @DocsEditable() |
| 1950 final AnimatedNumber x; |
| 1951 |
| 1952 @DomName('SVGFEPointLightElement.y') |
| 1953 @DocsEditable() |
| 1954 final AnimatedNumber y; |
| 1955 |
| 1956 @DomName('SVGFEPointLightElement.z') |
| 1957 @DocsEditable() |
| 1958 final AnimatedNumber z; |
| 1959 } |
| 1960 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1961 // for details. All rights reserved. Use of this source code is governed by a |
| 1962 // BSD-style license that can be found in the LICENSE file. |
| 1963 |
| 1964 |
| 1965 @DocsEditable() |
| 1966 @DomName('SVGFESpecularLightingElement') |
| 1967 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1968 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1969 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 1970 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1971 @Unstable() |
| 1972 @Native("SVGFESpecularLightingElement") |
| 1973 class FESpecularLightingElement extends SvgElement implements FilterPrimitiveSta
ndardAttributes { |
| 1974 // To suppress missing implicit constructor warnings. |
| 1975 factory FESpecularLightingElement._() { throw new UnsupportedError("Not suppor
ted"); } |
| 1976 |
| 1977 @DomName('SVGFESpecularLightingElement.SVGFESpecularLightingElement') |
| 1978 @DocsEditable() |
| 1979 factory FESpecularLightingElement() => _SvgElementFactoryProvider.createSvgEle
ment_tag("feSpecularLighting"); |
| 1980 /** |
| 1981 * Constructor instantiated by the DOM when a custom element has been created. |
| 1982 * |
| 1983 * This can only be called by subclasses from their created constructor. |
| 1984 */ |
| 1985 FESpecularLightingElement.created() : super.created(); |
| 1986 |
| 1987 /// Checks if this type is supported on the current platform. |
| 1988 static bool get supported => SvgElement.isTagSupported('feSpecularLighting') &
& (new SvgElement.tag('feSpecularLighting') is FESpecularLightingElement); |
| 1989 |
| 1990 @DomName('SVGFESpecularLightingElement.in1') |
| 1991 @DocsEditable() |
| 1992 final AnimatedString in1; |
| 1993 |
| 1994 @DomName('SVGFESpecularLightingElement.specularConstant') |
| 1995 @DocsEditable() |
| 1996 final AnimatedNumber specularConstant; |
| 1997 |
| 1998 @DomName('SVGFESpecularLightingElement.specularExponent') |
| 1999 @DocsEditable() |
| 2000 final AnimatedNumber specularExponent; |
| 2001 |
| 2002 @DomName('SVGFESpecularLightingElement.surfaceScale') |
| 2003 @DocsEditable() |
| 2004 final AnimatedNumber surfaceScale; |
| 2005 |
| 2006 // From SVGFilterPrimitiveStandardAttributes |
| 2007 |
| 2008 @DomName('SVGFESpecularLightingElement.height') |
| 2009 @DocsEditable() |
| 2010 final AnimatedLength height; |
| 2011 |
| 2012 @DomName('SVGFESpecularLightingElement.result') |
| 2013 @DocsEditable() |
| 2014 final AnimatedString result; |
| 2015 |
| 2016 @DomName('SVGFESpecularLightingElement.width') |
| 2017 @DocsEditable() |
| 2018 final AnimatedLength width; |
| 2019 |
| 2020 @DomName('SVGFESpecularLightingElement.x') |
| 2021 @DocsEditable() |
| 2022 final AnimatedLength x; |
| 2023 |
| 2024 @DomName('SVGFESpecularLightingElement.y') |
| 2025 @DocsEditable() |
| 2026 final AnimatedLength y; |
| 2027 } |
| 2028 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2029 // for details. All rights reserved. Use of this source code is governed by a |
| 2030 // BSD-style license that can be found in the LICENSE file. |
| 2031 |
| 2032 |
| 2033 @DocsEditable() |
| 2034 @DomName('SVGFESpotLightElement') |
| 2035 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2036 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 2037 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 2038 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2039 @Unstable() |
| 2040 @Native("SVGFESpotLightElement") |
| 2041 class FESpotLightElement extends SvgElement { |
| 2042 // To suppress missing implicit constructor warnings. |
| 2043 factory FESpotLightElement._() { throw new UnsupportedError("Not supported");
} |
| 2044 |
| 2045 @DomName('SVGFESpotLightElement.SVGFESpotLightElement') |
| 2046 @DocsEditable() |
| 2047 factory FESpotLightElement() => _SvgElementFactoryProvider.createSvgElement_ta
g("feSpotLight"); |
| 2048 /** |
| 2049 * Constructor instantiated by the DOM when a custom element has been created. |
| 2050 * |
| 2051 * This can only be called by subclasses from their created constructor. |
| 2052 */ |
| 2053 FESpotLightElement.created() : super.created(); |
| 2054 |
| 2055 /// Checks if this type is supported on the current platform. |
| 2056 static bool get supported => SvgElement.isTagSupported('feSpotLight') && (new
SvgElement.tag('feSpotLight') is FESpotLightElement); |
| 2057 |
| 2058 @DomName('SVGFESpotLightElement.limitingConeAngle') |
| 2059 @DocsEditable() |
| 2060 final AnimatedNumber limitingConeAngle; |
| 2061 |
| 2062 @DomName('SVGFESpotLightElement.pointsAtX') |
| 2063 @DocsEditable() |
| 2064 final AnimatedNumber pointsAtX; |
| 2065 |
| 2066 @DomName('SVGFESpotLightElement.pointsAtY') |
| 2067 @DocsEditable() |
| 2068 final AnimatedNumber pointsAtY; |
| 2069 |
| 2070 @DomName('SVGFESpotLightElement.pointsAtZ') |
| 2071 @DocsEditable() |
| 2072 final AnimatedNumber pointsAtZ; |
| 2073 |
| 2074 @DomName('SVGFESpotLightElement.specularExponent') |
| 2075 @DocsEditable() |
| 2076 final AnimatedNumber specularExponent; |
| 2077 |
| 2078 @DomName('SVGFESpotLightElement.x') |
| 2079 @DocsEditable() |
| 2080 final AnimatedNumber x; |
| 2081 |
| 2082 @DomName('SVGFESpotLightElement.y') |
| 2083 @DocsEditable() |
| 2084 final AnimatedNumber y; |
| 2085 |
| 2086 @DomName('SVGFESpotLightElement.z') |
| 2087 @DocsEditable() |
| 2088 final AnimatedNumber z; |
| 2089 } |
| 2090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2091 // for details. All rights reserved. Use of this source code is governed by a |
| 2092 // BSD-style license that can be found in the LICENSE file. |
| 2093 |
| 2094 |
| 2095 @DocsEditable() |
| 2096 @DomName('SVGFETileElement') |
| 2097 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2098 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 2099 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 2100 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2101 @Unstable() |
| 2102 @Native("SVGFETileElement") |
| 2103 class FETileElement extends SvgElement implements FilterPrimitiveStandardAttribu
tes { |
| 2104 // To suppress missing implicit constructor warnings. |
| 2105 factory FETileElement._() { throw new UnsupportedError("Not supported"); } |
| 2106 |
| 2107 @DomName('SVGFETileElement.SVGFETileElement') |
| 2108 @DocsEditable() |
| 2109 factory FETileElement() => _SvgElementFactoryProvider.createSvgElement_tag("fe
Tile"); |
| 2110 /** |
| 2111 * Constructor instantiated by the DOM when a custom element has been created. |
| 2112 * |
| 2113 * This can only be called by subclasses from their created constructor. |
| 2114 */ |
| 2115 FETileElement.created() : super.created(); |
| 2116 |
| 2117 /// Checks if this type is supported on the current platform. |
| 2118 static bool get supported => SvgElement.isTagSupported('feTile') && (new SvgEl
ement.tag('feTile') is FETileElement); |
| 2119 |
| 2120 @DomName('SVGFETileElement.in1') |
| 2121 @DocsEditable() |
| 2122 final AnimatedString in1; |
| 2123 |
| 2124 // From SVGFilterPrimitiveStandardAttributes |
| 2125 |
| 2126 @DomName('SVGFETileElement.height') |
| 2127 @DocsEditable() |
| 2128 final AnimatedLength height; |
| 2129 |
| 2130 @DomName('SVGFETileElement.result') |
| 2131 @DocsEditable() |
| 2132 final AnimatedString result; |
| 2133 |
| 2134 @DomName('SVGFETileElement.width') |
| 2135 @DocsEditable() |
| 2136 final AnimatedLength width; |
| 2137 |
| 2138 @DomName('SVGFETileElement.x') |
| 2139 @DocsEditable() |
| 2140 final AnimatedLength x; |
| 2141 |
| 2142 @DomName('SVGFETileElement.y') |
| 2143 @DocsEditable() |
| 2144 final AnimatedLength y; |
| 2145 } |
| 2146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2147 // for details. All rights reserved. Use of this source code is governed by a |
| 2148 // BSD-style license that can be found in the LICENSE file. |
| 2149 |
| 2150 |
| 2151 @DocsEditable() |
| 2152 @DomName('SVGFETurbulenceElement') |
| 2153 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2154 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 2155 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 2156 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2157 @Unstable() |
| 2158 @Native("SVGFETurbulenceElement") |
| 2159 class FETurbulenceElement extends SvgElement implements FilterPrimitiveStandardA
ttributes { |
| 2160 // To suppress missing implicit constructor warnings. |
| 2161 factory FETurbulenceElement._() { throw new UnsupportedError("Not supported");
} |
| 2162 |
| 2163 @DomName('SVGFETurbulenceElement.SVGFETurbulenceElement') |
| 2164 @DocsEditable() |
| 2165 factory FETurbulenceElement() => _SvgElementFactoryProvider.createSvgElement_t
ag("feTurbulence"); |
| 2166 /** |
| 2167 * Constructor instantiated by the DOM when a custom element has been created. |
| 2168 * |
| 2169 * This can only be called by subclasses from their created constructor. |
| 2170 */ |
| 2171 FETurbulenceElement.created() : super.created(); |
| 2172 |
| 2173 /// Checks if this type is supported on the current platform. |
| 2174 static bool get supported => SvgElement.isTagSupported('feTurbulence') && (new
SvgElement.tag('feTurbulence') is FETurbulenceElement); |
| 2175 |
| 2176 @DomName('SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH') |
| 2177 @DocsEditable() |
| 2178 static const int SVG_STITCHTYPE_NOSTITCH = 2; |
| 2179 |
| 2180 @DomName('SVGFETurbulenceElement.SVG_STITCHTYPE_STITCH') |
| 2181 @DocsEditable() |
| 2182 static const int SVG_STITCHTYPE_STITCH = 1; |
| 2183 |
| 2184 @DomName('SVGFETurbulenceElement.SVG_STITCHTYPE_UNKNOWN') |
| 2185 @DocsEditable() |
| 2186 static const int SVG_STITCHTYPE_UNKNOWN = 0; |
| 2187 |
| 2188 @DomName('SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_FRACTALNOISE') |
| 2189 @DocsEditable() |
| 2190 static const int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; |
| 2191 |
| 2192 @DomName('SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE') |
| 2193 @DocsEditable() |
| 2194 static const int SVG_TURBULENCE_TYPE_TURBULENCE = 2; |
| 2195 |
| 2196 @DomName('SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_UNKNOWN') |
| 2197 @DocsEditable() |
| 2198 static const int SVG_TURBULENCE_TYPE_UNKNOWN = 0; |
| 2199 |
| 2200 @DomName('SVGFETurbulenceElement.baseFrequencyX') |
| 2201 @DocsEditable() |
| 2202 final AnimatedNumber baseFrequencyX; |
| 2203 |
| 2204 @DomName('SVGFETurbulenceElement.baseFrequencyY') |
| 2205 @DocsEditable() |
| 2206 final AnimatedNumber baseFrequencyY; |
| 2207 |
| 2208 @DomName('SVGFETurbulenceElement.numOctaves') |
| 2209 @DocsEditable() |
| 2210 final AnimatedInteger numOctaves; |
| 2211 |
| 2212 @DomName('SVGFETurbulenceElement.seed') |
| 2213 @DocsEditable() |
| 2214 final AnimatedNumber seed; |
| 2215 |
| 2216 @DomName('SVGFETurbulenceElement.stitchTiles') |
| 2217 @DocsEditable() |
| 2218 final AnimatedEnumeration stitchTiles; |
| 2219 |
| 2220 @DomName('SVGFETurbulenceElement.type') |
| 2221 @DocsEditable() |
| 2222 final AnimatedEnumeration type; |
| 2223 |
| 2224 // From SVGFilterPrimitiveStandardAttributes |
| 2225 |
| 2226 @DomName('SVGFETurbulenceElement.height') |
| 2227 @DocsEditable() |
| 2228 final AnimatedLength height; |
| 2229 |
| 2230 @DomName('SVGFETurbulenceElement.result') |
| 2231 @DocsEditable() |
| 2232 final AnimatedString result; |
| 2233 |
| 2234 @DomName('SVGFETurbulenceElement.width') |
| 2235 @DocsEditable() |
| 2236 final AnimatedLength width; |
| 2237 |
| 2238 @DomName('SVGFETurbulenceElement.x') |
| 2239 @DocsEditable() |
| 2240 final AnimatedLength x; |
| 2241 |
| 2242 @DomName('SVGFETurbulenceElement.y') |
| 2243 @DocsEditable() |
| 2244 final AnimatedLength y; |
| 2245 } |
| 2246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2247 // for details. All rights reserved. Use of this source code is governed by a |
| 2248 // BSD-style license that can be found in the LICENSE file. |
| 2249 |
| 2250 |
| 2251 @DocsEditable() |
| 2252 @DomName('SVGFilterElement') |
| 2253 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2254 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 2255 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 2256 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2257 @Unstable() |
| 2258 @Native("SVGFilterElement") |
| 2259 class FilterElement extends SvgElement implements UriReference { |
| 2260 // To suppress missing implicit constructor warnings. |
| 2261 factory FilterElement._() { throw new UnsupportedError("Not supported"); } |
| 2262 |
| 2263 @DomName('SVGFilterElement.SVGFilterElement') |
| 2264 @DocsEditable() |
| 2265 factory FilterElement() => _SvgElementFactoryProvider.createSvgElement_tag("fi
lter"); |
| 2266 /** |
| 2267 * Constructor instantiated by the DOM when a custom element has been created. |
| 2268 * |
| 2269 * This can only be called by subclasses from their created constructor. |
| 2270 */ |
| 2271 FilterElement.created() : super.created(); |
| 2272 |
| 2273 /// Checks if this type is supported on the current platform. |
| 2274 static bool get supported => SvgElement.isTagSupported('filter') && (new SvgEl
ement.tag('filter') is FilterElement); |
| 2275 |
| 2276 @DomName('SVGFilterElement.filterResX') |
| 2277 @DocsEditable() |
| 2278 final AnimatedInteger filterResX; |
| 2279 |
| 2280 @DomName('SVGFilterElement.filterResY') |
| 2281 @DocsEditable() |
| 2282 final AnimatedInteger filterResY; |
| 2283 |
| 2284 @DomName('SVGFilterElement.filterUnits') |
| 2285 @DocsEditable() |
| 2286 final AnimatedEnumeration filterUnits; |
| 2287 |
| 2288 @DomName('SVGFilterElement.height') |
| 2289 @DocsEditable() |
| 2290 final AnimatedLength height; |
| 2291 |
| 2292 @DomName('SVGFilterElement.primitiveUnits') |
| 2293 @DocsEditable() |
| 2294 final AnimatedEnumeration primitiveUnits; |
| 2295 |
| 2296 @DomName('SVGFilterElement.width') |
| 2297 @DocsEditable() |
| 2298 final AnimatedLength width; |
| 2299 |
| 2300 @DomName('SVGFilterElement.x') |
| 2301 @DocsEditable() |
| 2302 final AnimatedLength x; |
| 2303 |
| 2304 @DomName('SVGFilterElement.y') |
| 2305 @DocsEditable() |
| 2306 final AnimatedLength y; |
| 2307 |
| 2308 @DomName('SVGFilterElement.setFilterRes') |
| 2309 @DocsEditable() |
| 2310 void setFilterRes(int filterResX, int filterResY) native; |
| 2311 |
| 2312 // From SVGURIReference |
| 2313 |
| 2314 @DomName('SVGFilterElement.href') |
| 2315 @DocsEditable() |
| 2316 final AnimatedString href; |
| 2317 } |
| 2318 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2319 // for details. All rights reserved. Use of this source code is governed by a |
| 2320 // BSD-style license that can be found in the LICENSE file. |
| 2321 |
| 2322 |
| 2323 @DocsEditable() |
| 2324 @DomName('SVGFilterPrimitiveStandardAttributes') |
| 2325 @Unstable() |
| 2326 abstract class FilterPrimitiveStandardAttributes extends Interceptor { |
| 2327 // To suppress missing implicit constructor warnings. |
| 2328 factory FilterPrimitiveStandardAttributes._() { throw new UnsupportedError("No
t supported"); } |
| 2329 |
| 2330 final AnimatedLength height; |
| 2331 |
| 2332 final AnimatedString result; |
| 2333 |
| 2334 final AnimatedLength width; |
| 2335 |
| 2336 final AnimatedLength x; |
| 2337 |
| 2338 final AnimatedLength y; |
| 2339 } |
| 2340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2341 // for details. All rights reserved. Use of this source code is governed by a |
| 2342 // BSD-style license that can be found in the LICENSE file. |
| 2343 |
| 2344 |
| 2345 @DocsEditable() |
| 2346 @DomName('SVGFitToViewBox') |
| 2347 @Unstable() |
| 2348 abstract class FitToViewBox extends Interceptor { |
| 2349 // To suppress missing implicit constructor warnings. |
| 2350 factory FitToViewBox._() { throw new UnsupportedError("Not supported"); } |
| 2351 |
| 2352 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 2353 |
| 2354 final AnimatedRect viewBox; |
| 2355 } |
| 2356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2357 // for details. All rights reserved. Use of this source code is governed by a |
| 2358 // BSD-style license that can be found in the LICENSE file. |
| 2359 |
| 2360 |
| 2361 @DocsEditable() |
| 2362 @DomName('SVGForeignObjectElement') |
| 2363 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2364 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 2365 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2366 @Unstable() |
| 2367 @Native("SVGForeignObjectElement") |
| 2368 class ForeignObjectElement extends GraphicsElement { |
| 2369 // To suppress missing implicit constructor warnings. |
| 2370 factory ForeignObjectElement._() { throw new UnsupportedError("Not supported")
; } |
| 2371 |
| 2372 @DomName('SVGForeignObjectElement.SVGForeignObjectElement') |
| 2373 @DocsEditable() |
| 2374 factory ForeignObjectElement() => _SvgElementFactoryProvider.createSvgElement_
tag("foreignObject"); |
| 2375 /** |
| 2376 * Constructor instantiated by the DOM when a custom element has been created. |
| 2377 * |
| 2378 * This can only be called by subclasses from their created constructor. |
| 2379 */ |
| 2380 ForeignObjectElement.created() : super.created(); |
| 2381 |
| 2382 /// Checks if this type is supported on the current platform. |
| 2383 static bool get supported => SvgElement.isTagSupported('foreignObject') && (ne
w SvgElement.tag('foreignObject') is ForeignObjectElement); |
| 2384 |
| 2385 @DomName('SVGForeignObjectElement.height') |
| 2386 @DocsEditable() |
| 2387 final AnimatedLength height; |
| 2388 |
| 2389 @DomName('SVGForeignObjectElement.width') |
| 2390 @DocsEditable() |
| 2391 final AnimatedLength width; |
| 2392 |
| 2393 @DomName('SVGForeignObjectElement.x') |
| 2394 @DocsEditable() |
| 2395 final AnimatedLength x; |
| 2396 |
| 2397 @DomName('SVGForeignObjectElement.y') |
| 2398 @DocsEditable() |
| 2399 final AnimatedLength y; |
| 2400 } |
| 2401 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2402 // for details. All rights reserved. Use of this source code is governed by a |
| 2403 // BSD-style license that can be found in the LICENSE file. |
| 2404 |
| 2405 |
| 2406 @DocsEditable() |
| 2407 @DomName('SVGGElement') |
| 2408 @Unstable() |
| 2409 @Native("SVGGElement") |
| 2410 class GElement extends GraphicsElement { |
| 2411 // To suppress missing implicit constructor warnings. |
| 2412 factory GElement._() { throw new UnsupportedError("Not supported"); } |
| 2413 |
| 2414 @DomName('SVGGElement.SVGGElement') |
| 2415 @DocsEditable() |
| 2416 factory GElement() => _SvgElementFactoryProvider.createSvgElement_tag("g"); |
| 2417 /** |
| 2418 * Constructor instantiated by the DOM when a custom element has been created. |
| 2419 * |
| 2420 * This can only be called by subclasses from their created constructor. |
| 2421 */ |
| 2422 GElement.created() : super.created(); |
| 2423 } |
| 2424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2425 // for details. All rights reserved. Use of this source code is governed by a |
| 2426 // BSD-style license that can be found in the LICENSE file. |
| 2427 |
| 2428 |
| 2429 @DocsEditable() |
| 2430 @DomName('SVGGeometryElement') |
| 2431 @Experimental() // untriaged |
| 2432 @Native("SVGGeometryElement") |
| 2433 class GeometryElement extends GraphicsElement { |
| 2434 // To suppress missing implicit constructor warnings. |
| 2435 factory GeometryElement._() { throw new UnsupportedError("Not supported"); } |
| 2436 /** |
| 2437 * Constructor instantiated by the DOM when a custom element has been created. |
| 2438 * |
| 2439 * This can only be called by subclasses from their created constructor. |
| 2440 */ |
| 2441 GeometryElement.created() : super.created(); |
| 2442 |
| 2443 @DomName('SVGGeometryElement.isPointInFill') |
| 2444 @DocsEditable() |
| 2445 @Experimental() // untriaged |
| 2446 bool isPointInFill(Point point) native; |
| 2447 |
| 2448 @DomName('SVGGeometryElement.isPointInStroke') |
| 2449 @DocsEditable() |
| 2450 @Experimental() // untriaged |
| 2451 bool isPointInStroke(Point point) native; |
| 2452 } |
| 2453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2454 // for details. All rights reserved. Use of this source code is governed by a |
| 2455 // BSD-style license that can be found in the LICENSE file. |
| 2456 |
| 2457 |
| 2458 @DocsEditable() |
| 2459 @DomName('SVGGraphicsElement') |
| 2460 @Experimental() // untriaged |
| 2461 @Native("SVGGraphicsElement") |
| 2462 class GraphicsElement extends SvgElement implements Tests { |
| 2463 // To suppress missing implicit constructor warnings. |
| 2464 factory GraphicsElement._() { throw new UnsupportedError("Not supported"); } |
| 2465 /** |
| 2466 * Constructor instantiated by the DOM when a custom element has been created. |
| 2467 * |
| 2468 * This can only be called by subclasses from their created constructor. |
| 2469 */ |
| 2470 GraphicsElement.created() : super.created(); |
| 2471 |
| 2472 @DomName('SVGGraphicsElement.farthestViewportElement') |
| 2473 @DocsEditable() |
| 2474 @Experimental() // untriaged |
| 2475 final SvgElement farthestViewportElement; |
| 2476 |
| 2477 @DomName('SVGGraphicsElement.nearestViewportElement') |
| 2478 @DocsEditable() |
| 2479 @Experimental() // untriaged |
| 2480 final SvgElement nearestViewportElement; |
| 2481 |
| 2482 @DomName('SVGGraphicsElement.transform') |
| 2483 @DocsEditable() |
| 2484 @Experimental() // untriaged |
| 2485 final AnimatedTransformList transform; |
| 2486 |
| 2487 @DomName('SVGGraphicsElement.getBBox') |
| 2488 @DocsEditable() |
| 2489 @Experimental() // untriaged |
| 2490 Rect getBBox() native; |
| 2491 |
| 2492 @JSName('getCTM') |
| 2493 @DomName('SVGGraphicsElement.getCTM') |
| 2494 @DocsEditable() |
| 2495 @Experimental() // untriaged |
| 2496 Matrix getCtm() native; |
| 2497 |
| 2498 @JSName('getScreenCTM') |
| 2499 @DomName('SVGGraphicsElement.getScreenCTM') |
| 2500 @DocsEditable() |
| 2501 @Experimental() // untriaged |
| 2502 Matrix getScreenCtm() native; |
| 2503 |
| 2504 @DomName('SVGGraphicsElement.getTransformToElement') |
| 2505 @DocsEditable() |
| 2506 @Experimental() // untriaged |
| 2507 Matrix getTransformToElement(SvgElement element) native; |
| 2508 |
| 2509 // From SVGTests |
| 2510 |
| 2511 @DomName('SVGGraphicsElement.requiredExtensions') |
| 2512 @DocsEditable() |
| 2513 @Experimental() // untriaged |
| 2514 final StringList requiredExtensions; |
| 2515 |
| 2516 @DomName('SVGGraphicsElement.requiredFeatures') |
| 2517 @DocsEditable() |
| 2518 @Experimental() // untriaged |
| 2519 final StringList requiredFeatures; |
| 2520 |
| 2521 @DomName('SVGGraphicsElement.systemLanguage') |
| 2522 @DocsEditable() |
| 2523 @Experimental() // untriaged |
| 2524 final StringList systemLanguage; |
| 2525 |
| 2526 @DomName('SVGGraphicsElement.hasExtension') |
| 2527 @DocsEditable() |
| 2528 @Experimental() // untriaged |
| 2529 bool hasExtension(String extension) native; |
| 2530 } |
| 2531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2532 // for details. All rights reserved. Use of this source code is governed by a |
| 2533 // BSD-style license that can be found in the LICENSE file. |
| 2534 |
| 2535 |
| 2536 @DocsEditable() |
| 2537 @DomName('SVGImageElement') |
| 2538 @Unstable() |
| 2539 @Native("SVGImageElement") |
| 2540 class ImageElement extends GraphicsElement implements UriReference { |
| 2541 // To suppress missing implicit constructor warnings. |
| 2542 factory ImageElement._() { throw new UnsupportedError("Not supported"); } |
| 2543 |
| 2544 @DomName('SVGImageElement.SVGImageElement') |
| 2545 @DocsEditable() |
| 2546 factory ImageElement() => _SvgElementFactoryProvider.createSvgElement_tag("ima
ge"); |
| 2547 /** |
| 2548 * Constructor instantiated by the DOM when a custom element has been created. |
| 2549 * |
| 2550 * This can only be called by subclasses from their created constructor. |
| 2551 */ |
| 2552 ImageElement.created() : super.created(); |
| 2553 |
| 2554 @DomName('SVGImageElement.height') |
| 2555 @DocsEditable() |
| 2556 final AnimatedLength height; |
| 2557 |
| 2558 @DomName('SVGImageElement.preserveAspectRatio') |
| 2559 @DocsEditable() |
| 2560 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 2561 |
| 2562 @DomName('SVGImageElement.width') |
| 2563 @DocsEditable() |
| 2564 final AnimatedLength width; |
| 2565 |
| 2566 @DomName('SVGImageElement.x') |
| 2567 @DocsEditable() |
| 2568 final AnimatedLength x; |
| 2569 |
| 2570 @DomName('SVGImageElement.y') |
| 2571 @DocsEditable() |
| 2572 final AnimatedLength y; |
| 2573 |
| 2574 // From SVGURIReference |
| 2575 |
| 2576 @DomName('SVGImageElement.href') |
| 2577 @DocsEditable() |
| 2578 final AnimatedString href; |
| 2579 } |
| 2580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2581 // for details. All rights reserved. Use of this source code is governed by a |
| 2582 // BSD-style license that can be found in the LICENSE file. |
| 2583 |
| 2584 |
| 2585 @DocsEditable() |
| 2586 @DomName('SVGLength') |
| 2587 @Unstable() |
| 2588 @Native("SVGLength") |
| 2589 class Length extends Interceptor { |
| 2590 // To suppress missing implicit constructor warnings. |
| 2591 factory Length._() { throw new UnsupportedError("Not supported"); } |
| 2592 |
| 2593 @DomName('SVGLength.SVG_LENGTHTYPE_CM') |
| 2594 @DocsEditable() |
| 2595 static const int SVG_LENGTHTYPE_CM = 6; |
| 2596 |
| 2597 @DomName('SVGLength.SVG_LENGTHTYPE_EMS') |
| 2598 @DocsEditable() |
| 2599 static const int SVG_LENGTHTYPE_EMS = 3; |
| 2600 |
| 2601 @DomName('SVGLength.SVG_LENGTHTYPE_EXS') |
| 2602 @DocsEditable() |
| 2603 static const int SVG_LENGTHTYPE_EXS = 4; |
| 2604 |
| 2605 @DomName('SVGLength.SVG_LENGTHTYPE_IN') |
| 2606 @DocsEditable() |
| 2607 static const int SVG_LENGTHTYPE_IN = 8; |
| 2608 |
| 2609 @DomName('SVGLength.SVG_LENGTHTYPE_MM') |
| 2610 @DocsEditable() |
| 2611 static const int SVG_LENGTHTYPE_MM = 7; |
| 2612 |
| 2613 @DomName('SVGLength.SVG_LENGTHTYPE_NUMBER') |
| 2614 @DocsEditable() |
| 2615 static const int SVG_LENGTHTYPE_NUMBER = 1; |
| 2616 |
| 2617 @DomName('SVGLength.SVG_LENGTHTYPE_PC') |
| 2618 @DocsEditable() |
| 2619 static const int SVG_LENGTHTYPE_PC = 10; |
| 2620 |
| 2621 @DomName('SVGLength.SVG_LENGTHTYPE_PERCENTAGE') |
| 2622 @DocsEditable() |
| 2623 static const int SVG_LENGTHTYPE_PERCENTAGE = 2; |
| 2624 |
| 2625 @DomName('SVGLength.SVG_LENGTHTYPE_PT') |
| 2626 @DocsEditable() |
| 2627 static const int SVG_LENGTHTYPE_PT = 9; |
| 2628 |
| 2629 @DomName('SVGLength.SVG_LENGTHTYPE_PX') |
| 2630 @DocsEditable() |
| 2631 static const int SVG_LENGTHTYPE_PX = 5; |
| 2632 |
| 2633 @DomName('SVGLength.SVG_LENGTHTYPE_UNKNOWN') |
| 2634 @DocsEditable() |
| 2635 static const int SVG_LENGTHTYPE_UNKNOWN = 0; |
| 2636 |
| 2637 @DomName('SVGLength.unitType') |
| 2638 @DocsEditable() |
| 2639 final int unitType; |
| 2640 |
| 2641 @DomName('SVGLength.value') |
| 2642 @DocsEditable() |
| 2643 num value; |
| 2644 |
| 2645 @DomName('SVGLength.valueAsString') |
| 2646 @DocsEditable() |
| 2647 String valueAsString; |
| 2648 |
| 2649 @DomName('SVGLength.valueInSpecifiedUnits') |
| 2650 @DocsEditable() |
| 2651 num valueInSpecifiedUnits; |
| 2652 |
| 2653 @DomName('SVGLength.convertToSpecifiedUnits') |
| 2654 @DocsEditable() |
| 2655 void convertToSpecifiedUnits(int unitType) native; |
| 2656 |
| 2657 @DomName('SVGLength.newValueSpecifiedUnits') |
| 2658 @DocsEditable() |
| 2659 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; |
| 2660 } |
| 2661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2662 // for details. All rights reserved. Use of this source code is governed by a |
| 2663 // BSD-style license that can be found in the LICENSE file. |
| 2664 |
| 2665 |
| 2666 @DocsEditable() |
| 2667 @DomName('SVGLengthList') |
| 2668 @Unstable() |
| 2669 @Native("SVGLengthList") |
| 2670 class LengthList extends Interceptor with ListMixin<Length>, ImmutableListMixin<
Length> implements List<Length> { |
| 2671 // To suppress missing implicit constructor warnings. |
| 2672 factory LengthList._() { throw new UnsupportedError("Not supported"); } |
| 2673 |
| 2674 @DomName('SVGLengthList.length') |
| 2675 @DocsEditable() |
| 2676 @Experimental() // untriaged |
| 2677 int get length => JS("int", "#.length", this); |
| 2678 |
| 2679 @DomName('SVGLengthList.numberOfItems') |
| 2680 @DocsEditable() |
| 2681 final int numberOfItems; |
| 2682 |
| 2683 Length operator[](int index) { |
| 2684 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 2685 index, index, length)) |
| 2686 throw new RangeError.index(index, this); |
| 2687 return this.getItem(index); |
| 2688 } |
| 2689 void operator[]=(int index, Length value) { |
| 2690 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 2691 } |
| 2692 // -- start List<Length> mixins. |
| 2693 // Length is the element type. |
| 2694 |
| 2695 |
| 2696 set length(int value) { |
| 2697 throw new UnsupportedError("Cannot resize immutable List."); |
| 2698 } |
| 2699 |
| 2700 Length get first { |
| 2701 if (this.length > 0) { |
| 2702 return JS('Length', '#[0]', this); |
| 2703 } |
| 2704 throw new StateError("No elements"); |
| 2705 } |
| 2706 |
| 2707 Length get last { |
| 2708 int len = this.length; |
| 2709 if (len > 0) { |
| 2710 return JS('Length', '#[#]', this, len - 1); |
| 2711 } |
| 2712 throw new StateError("No elements"); |
| 2713 } |
| 2714 |
| 2715 Length get single { |
| 2716 int len = this.length; |
| 2717 if (len == 1) { |
| 2718 return JS('Length', '#[0]', this); |
| 2719 } |
| 2720 if (len == 0) throw new StateError("No elements"); |
| 2721 throw new StateError("More than one element"); |
| 2722 } |
| 2723 |
| 2724 Length elementAt(int index) => this[index]; |
| 2725 // -- end List<Length> mixins. |
| 2726 |
| 2727 @DomName('SVGLengthList.__setter__') |
| 2728 @DocsEditable() |
| 2729 @Experimental() // untriaged |
| 2730 void __setter__(int index, Length value) native; |
| 2731 |
| 2732 @DomName('SVGLengthList.appendItem') |
| 2733 @DocsEditable() |
| 2734 Length appendItem(Length item) native; |
| 2735 |
| 2736 @DomName('SVGLengthList.clear') |
| 2737 @DocsEditable() |
| 2738 void clear() native; |
| 2739 |
| 2740 @DomName('SVGLengthList.getItem') |
| 2741 @DocsEditable() |
| 2742 Length getItem(int index) native; |
| 2743 |
| 2744 @DomName('SVGLengthList.initialize') |
| 2745 @DocsEditable() |
| 2746 Length initialize(Length item) native; |
| 2747 |
| 2748 @DomName('SVGLengthList.insertItemBefore') |
| 2749 @DocsEditable() |
| 2750 Length insertItemBefore(Length item, int index) native; |
| 2751 |
| 2752 @DomName('SVGLengthList.removeItem') |
| 2753 @DocsEditable() |
| 2754 Length removeItem(int index) native; |
| 2755 |
| 2756 @DomName('SVGLengthList.replaceItem') |
| 2757 @DocsEditable() |
| 2758 Length replaceItem(Length item, int index) native; |
| 2759 } |
| 2760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2761 // for details. All rights reserved. Use of this source code is governed by a |
| 2762 // BSD-style license that can be found in the LICENSE file. |
| 2763 |
| 2764 |
| 2765 @DocsEditable() |
| 2766 @DomName('SVGLineElement') |
| 2767 @Unstable() |
| 2768 @Native("SVGLineElement") |
| 2769 class LineElement extends GeometryElement { |
| 2770 // To suppress missing implicit constructor warnings. |
| 2771 factory LineElement._() { throw new UnsupportedError("Not supported"); } |
| 2772 |
| 2773 @DomName('SVGLineElement.SVGLineElement') |
| 2774 @DocsEditable() |
| 2775 factory LineElement() => _SvgElementFactoryProvider.createSvgElement_tag("line
"); |
| 2776 /** |
| 2777 * Constructor instantiated by the DOM when a custom element has been created. |
| 2778 * |
| 2779 * This can only be called by subclasses from their created constructor. |
| 2780 */ |
| 2781 LineElement.created() : super.created(); |
| 2782 |
| 2783 @DomName('SVGLineElement.x1') |
| 2784 @DocsEditable() |
| 2785 final AnimatedLength x1; |
| 2786 |
| 2787 @DomName('SVGLineElement.x2') |
| 2788 @DocsEditable() |
| 2789 final AnimatedLength x2; |
| 2790 |
| 2791 @DomName('SVGLineElement.y1') |
| 2792 @DocsEditable() |
| 2793 final AnimatedLength y1; |
| 2794 |
| 2795 @DomName('SVGLineElement.y2') |
| 2796 @DocsEditable() |
| 2797 final AnimatedLength y2; |
| 2798 } |
| 2799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2800 // for details. All rights reserved. Use of this source code is governed by a |
| 2801 // BSD-style license that can be found in the LICENSE file. |
| 2802 |
| 2803 |
| 2804 @DocsEditable() |
| 2805 @DomName('SVGLinearGradientElement') |
| 2806 @Unstable() |
| 2807 @Native("SVGLinearGradientElement") |
| 2808 class LinearGradientElement extends _GradientElement { |
| 2809 // To suppress missing implicit constructor warnings. |
| 2810 factory LinearGradientElement._() { throw new UnsupportedError("Not supported"
); } |
| 2811 |
| 2812 @DomName('SVGLinearGradientElement.SVGLinearGradientElement') |
| 2813 @DocsEditable() |
| 2814 factory LinearGradientElement() => _SvgElementFactoryProvider.createSvgElement
_tag("linearGradient"); |
| 2815 /** |
| 2816 * Constructor instantiated by the DOM when a custom element has been created. |
| 2817 * |
| 2818 * This can only be called by subclasses from their created constructor. |
| 2819 */ |
| 2820 LinearGradientElement.created() : super.created(); |
| 2821 |
| 2822 @DomName('SVGLinearGradientElement.x1') |
| 2823 @DocsEditable() |
| 2824 final AnimatedLength x1; |
| 2825 |
| 2826 @DomName('SVGLinearGradientElement.x2') |
| 2827 @DocsEditable() |
| 2828 final AnimatedLength x2; |
| 2829 |
| 2830 @DomName('SVGLinearGradientElement.y1') |
| 2831 @DocsEditable() |
| 2832 final AnimatedLength y1; |
| 2833 |
| 2834 @DomName('SVGLinearGradientElement.y2') |
| 2835 @DocsEditable() |
| 2836 final AnimatedLength y2; |
| 2837 } |
| 2838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2839 // for details. All rights reserved. Use of this source code is governed by a |
| 2840 // BSD-style license that can be found in the LICENSE file. |
| 2841 |
| 2842 |
| 2843 @DocsEditable() |
| 2844 @DomName('SVGMarkerElement') |
| 2845 @Unstable() |
| 2846 @Native("SVGMarkerElement") |
| 2847 class MarkerElement extends SvgElement implements FitToViewBox { |
| 2848 // To suppress missing implicit constructor warnings. |
| 2849 factory MarkerElement._() { throw new UnsupportedError("Not supported"); } |
| 2850 |
| 2851 @DomName('SVGMarkerElement.SVGMarkerElement') |
| 2852 @DocsEditable() |
| 2853 factory MarkerElement() => _SvgElementFactoryProvider.createSvgElement_tag("ma
rker"); |
| 2854 /** |
| 2855 * Constructor instantiated by the DOM when a custom element has been created. |
| 2856 * |
| 2857 * This can only be called by subclasses from their created constructor. |
| 2858 */ |
| 2859 MarkerElement.created() : super.created(); |
| 2860 |
| 2861 @DomName('SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH') |
| 2862 @DocsEditable() |
| 2863 static const int SVG_MARKERUNITS_STROKEWIDTH = 2; |
| 2864 |
| 2865 @DomName('SVGMarkerElement.SVG_MARKERUNITS_UNKNOWN') |
| 2866 @DocsEditable() |
| 2867 static const int SVG_MARKERUNITS_UNKNOWN = 0; |
| 2868 |
| 2869 @DomName('SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE') |
| 2870 @DocsEditable() |
| 2871 static const int SVG_MARKERUNITS_USERSPACEONUSE = 1; |
| 2872 |
| 2873 @DomName('SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE') |
| 2874 @DocsEditable() |
| 2875 static const int SVG_MARKER_ORIENT_ANGLE = 2; |
| 2876 |
| 2877 @DomName('SVGMarkerElement.SVG_MARKER_ORIENT_AUTO') |
| 2878 @DocsEditable() |
| 2879 static const int SVG_MARKER_ORIENT_AUTO = 1; |
| 2880 |
| 2881 @DomName('SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN') |
| 2882 @DocsEditable() |
| 2883 static const int SVG_MARKER_ORIENT_UNKNOWN = 0; |
| 2884 |
| 2885 @DomName('SVGMarkerElement.markerHeight') |
| 2886 @DocsEditable() |
| 2887 final AnimatedLength markerHeight; |
| 2888 |
| 2889 @DomName('SVGMarkerElement.markerUnits') |
| 2890 @DocsEditable() |
| 2891 final AnimatedEnumeration markerUnits; |
| 2892 |
| 2893 @DomName('SVGMarkerElement.markerWidth') |
| 2894 @DocsEditable() |
| 2895 final AnimatedLength markerWidth; |
| 2896 |
| 2897 @DomName('SVGMarkerElement.orientAngle') |
| 2898 @DocsEditable() |
| 2899 final AnimatedAngle orientAngle; |
| 2900 |
| 2901 @DomName('SVGMarkerElement.orientType') |
| 2902 @DocsEditable() |
| 2903 final AnimatedEnumeration orientType; |
| 2904 |
| 2905 @DomName('SVGMarkerElement.refX') |
| 2906 @DocsEditable() |
| 2907 final AnimatedLength refX; |
| 2908 |
| 2909 @DomName('SVGMarkerElement.refY') |
| 2910 @DocsEditable() |
| 2911 final AnimatedLength refY; |
| 2912 |
| 2913 @DomName('SVGMarkerElement.setOrientToAngle') |
| 2914 @DocsEditable() |
| 2915 void setOrientToAngle(Angle angle) native; |
| 2916 |
| 2917 @DomName('SVGMarkerElement.setOrientToAuto') |
| 2918 @DocsEditable() |
| 2919 void setOrientToAuto() native; |
| 2920 |
| 2921 // From SVGFitToViewBox |
| 2922 |
| 2923 @DomName('SVGMarkerElement.preserveAspectRatio') |
| 2924 @DocsEditable() |
| 2925 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 2926 |
| 2927 @DomName('SVGMarkerElement.viewBox') |
| 2928 @DocsEditable() |
| 2929 final AnimatedRect viewBox; |
| 2930 } |
| 2931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2932 // for details. All rights reserved. Use of this source code is governed by a |
| 2933 // BSD-style license that can be found in the LICENSE file. |
| 2934 |
| 2935 |
| 2936 @DocsEditable() |
| 2937 @DomName('SVGMaskElement') |
| 2938 @Unstable() |
| 2939 @Native("SVGMaskElement") |
| 2940 class MaskElement extends SvgElement implements Tests { |
| 2941 // To suppress missing implicit constructor warnings. |
| 2942 factory MaskElement._() { throw new UnsupportedError("Not supported"); } |
| 2943 |
| 2944 @DomName('SVGMaskElement.SVGMaskElement') |
| 2945 @DocsEditable() |
| 2946 factory MaskElement() => _SvgElementFactoryProvider.createSvgElement_tag("mask
"); |
| 2947 /** |
| 2948 * Constructor instantiated by the DOM when a custom element has been created. |
| 2949 * |
| 2950 * This can only be called by subclasses from their created constructor. |
| 2951 */ |
| 2952 MaskElement.created() : super.created(); |
| 2953 |
| 2954 @DomName('SVGMaskElement.height') |
| 2955 @DocsEditable() |
| 2956 final AnimatedLength height; |
| 2957 |
| 2958 @DomName('SVGMaskElement.maskContentUnits') |
| 2959 @DocsEditable() |
| 2960 final AnimatedEnumeration maskContentUnits; |
| 2961 |
| 2962 @DomName('SVGMaskElement.maskUnits') |
| 2963 @DocsEditable() |
| 2964 final AnimatedEnumeration maskUnits; |
| 2965 |
| 2966 @DomName('SVGMaskElement.width') |
| 2967 @DocsEditable() |
| 2968 final AnimatedLength width; |
| 2969 |
| 2970 @DomName('SVGMaskElement.x') |
| 2971 @DocsEditable() |
| 2972 final AnimatedLength x; |
| 2973 |
| 2974 @DomName('SVGMaskElement.y') |
| 2975 @DocsEditable() |
| 2976 final AnimatedLength y; |
| 2977 |
| 2978 // From SVGTests |
| 2979 |
| 2980 @DomName('SVGMaskElement.requiredExtensions') |
| 2981 @DocsEditable() |
| 2982 final StringList requiredExtensions; |
| 2983 |
| 2984 @DomName('SVGMaskElement.requiredFeatures') |
| 2985 @DocsEditable() |
| 2986 final StringList requiredFeatures; |
| 2987 |
| 2988 @DomName('SVGMaskElement.systemLanguage') |
| 2989 @DocsEditable() |
| 2990 final StringList systemLanguage; |
| 2991 |
| 2992 @DomName('SVGMaskElement.hasExtension') |
| 2993 @DocsEditable() |
| 2994 bool hasExtension(String extension) native; |
| 2995 } |
| 2996 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2997 // for details. All rights reserved. Use of this source code is governed by a |
| 2998 // BSD-style license that can be found in the LICENSE file. |
| 2999 |
| 3000 |
| 3001 @DocsEditable() |
| 3002 @DomName('SVGMatrix') |
| 3003 @Unstable() |
| 3004 @Native("SVGMatrix") |
| 3005 class Matrix extends Interceptor { |
| 3006 // To suppress missing implicit constructor warnings. |
| 3007 factory Matrix._() { throw new UnsupportedError("Not supported"); } |
| 3008 |
| 3009 @DomName('SVGMatrix.a') |
| 3010 @DocsEditable() |
| 3011 num a; |
| 3012 |
| 3013 @DomName('SVGMatrix.b') |
| 3014 @DocsEditable() |
| 3015 num b; |
| 3016 |
| 3017 @DomName('SVGMatrix.c') |
| 3018 @DocsEditable() |
| 3019 num c; |
| 3020 |
| 3021 @DomName('SVGMatrix.d') |
| 3022 @DocsEditable() |
| 3023 num d; |
| 3024 |
| 3025 @DomName('SVGMatrix.e') |
| 3026 @DocsEditable() |
| 3027 num e; |
| 3028 |
| 3029 @DomName('SVGMatrix.f') |
| 3030 @DocsEditable() |
| 3031 num f; |
| 3032 |
| 3033 @DomName('SVGMatrix.flipX') |
| 3034 @DocsEditable() |
| 3035 Matrix flipX() native; |
| 3036 |
| 3037 @DomName('SVGMatrix.flipY') |
| 3038 @DocsEditable() |
| 3039 Matrix flipY() native; |
| 3040 |
| 3041 @DomName('SVGMatrix.inverse') |
| 3042 @DocsEditable() |
| 3043 Matrix inverse() native; |
| 3044 |
| 3045 @DomName('SVGMatrix.multiply') |
| 3046 @DocsEditable() |
| 3047 Matrix multiply(Matrix secondMatrix) native; |
| 3048 |
| 3049 @DomName('SVGMatrix.rotate') |
| 3050 @DocsEditable() |
| 3051 Matrix rotate(num angle) native; |
| 3052 |
| 3053 @DomName('SVGMatrix.rotateFromVector') |
| 3054 @DocsEditable() |
| 3055 Matrix rotateFromVector(num x, num y) native; |
| 3056 |
| 3057 @DomName('SVGMatrix.scale') |
| 3058 @DocsEditable() |
| 3059 Matrix scale(num scaleFactor) native; |
| 3060 |
| 3061 @DomName('SVGMatrix.scaleNonUniform') |
| 3062 @DocsEditable() |
| 3063 Matrix scaleNonUniform(num scaleFactorX, num scaleFactorY) native; |
| 3064 |
| 3065 @DomName('SVGMatrix.skewX') |
| 3066 @DocsEditable() |
| 3067 Matrix skewX(num angle) native; |
| 3068 |
| 3069 @DomName('SVGMatrix.skewY') |
| 3070 @DocsEditable() |
| 3071 Matrix skewY(num angle) native; |
| 3072 |
| 3073 @DomName('SVGMatrix.translate') |
| 3074 @DocsEditable() |
| 3075 Matrix translate(num x, num y) native; |
| 3076 } |
| 3077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3078 // for details. All rights reserved. Use of this source code is governed by a |
| 3079 // BSD-style license that can be found in the LICENSE file. |
| 3080 |
| 3081 |
| 3082 @DocsEditable() |
| 3083 @DomName('SVGMetadataElement') |
| 3084 @Unstable() |
| 3085 @Native("SVGMetadataElement") |
| 3086 class MetadataElement extends SvgElement { |
| 3087 // To suppress missing implicit constructor warnings. |
| 3088 factory MetadataElement._() { throw new UnsupportedError("Not supported"); } |
| 3089 /** |
| 3090 * Constructor instantiated by the DOM when a custom element has been created. |
| 3091 * |
| 3092 * This can only be called by subclasses from their created constructor. |
| 3093 */ |
| 3094 MetadataElement.created() : super.created(); |
| 3095 } |
| 3096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3097 // for details. All rights reserved. Use of this source code is governed by a |
| 3098 // BSD-style license that can be found in the LICENSE file. |
| 3099 |
| 3100 |
| 3101 @DocsEditable() |
| 3102 @DomName('SVGNumber') |
| 3103 @Unstable() |
| 3104 @Native("SVGNumber") |
| 3105 class Number extends Interceptor { |
| 3106 // To suppress missing implicit constructor warnings. |
| 3107 factory Number._() { throw new UnsupportedError("Not supported"); } |
| 3108 |
| 3109 @DomName('SVGNumber.value') |
| 3110 @DocsEditable() |
| 3111 num value; |
| 3112 } |
| 3113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3114 // for details. All rights reserved. Use of this source code is governed by a |
| 3115 // BSD-style license that can be found in the LICENSE file. |
| 3116 |
| 3117 |
| 3118 @DocsEditable() |
| 3119 @DomName('SVGNumberList') |
| 3120 @Unstable() |
| 3121 @Native("SVGNumberList") |
| 3122 class NumberList extends Interceptor with ListMixin<Number>, ImmutableListMixin<
Number> implements List<Number> { |
| 3123 // To suppress missing implicit constructor warnings. |
| 3124 factory NumberList._() { throw new UnsupportedError("Not supported"); } |
| 3125 |
| 3126 @DomName('SVGNumberList.length') |
| 3127 @DocsEditable() |
| 3128 @Experimental() // untriaged |
| 3129 int get length => JS("int", "#.length", this); |
| 3130 |
| 3131 @DomName('SVGNumberList.numberOfItems') |
| 3132 @DocsEditable() |
| 3133 final int numberOfItems; |
| 3134 |
| 3135 Number operator[](int index) { |
| 3136 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 3137 index, index, length)) |
| 3138 throw new RangeError.index(index, this); |
| 3139 return this.getItem(index); |
| 3140 } |
| 3141 void operator[]=(int index, Number value) { |
| 3142 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 3143 } |
| 3144 // -- start List<Number> mixins. |
| 3145 // Number is the element type. |
| 3146 |
| 3147 |
| 3148 set length(int value) { |
| 3149 throw new UnsupportedError("Cannot resize immutable List."); |
| 3150 } |
| 3151 |
| 3152 Number get first { |
| 3153 if (this.length > 0) { |
| 3154 return JS('Number', '#[0]', this); |
| 3155 } |
| 3156 throw new StateError("No elements"); |
| 3157 } |
| 3158 |
| 3159 Number get last { |
| 3160 int len = this.length; |
| 3161 if (len > 0) { |
| 3162 return JS('Number', '#[#]', this, len - 1); |
| 3163 } |
| 3164 throw new StateError("No elements"); |
| 3165 } |
| 3166 |
| 3167 Number get single { |
| 3168 int len = this.length; |
| 3169 if (len == 1) { |
| 3170 return JS('Number', '#[0]', this); |
| 3171 } |
| 3172 if (len == 0) throw new StateError("No elements"); |
| 3173 throw new StateError("More than one element"); |
| 3174 } |
| 3175 |
| 3176 Number elementAt(int index) => this[index]; |
| 3177 // -- end List<Number> mixins. |
| 3178 |
| 3179 @DomName('SVGNumberList.__setter__') |
| 3180 @DocsEditable() |
| 3181 @Experimental() // untriaged |
| 3182 void __setter__(int index, Number value) native; |
| 3183 |
| 3184 @DomName('SVGNumberList.appendItem') |
| 3185 @DocsEditable() |
| 3186 Number appendItem(Number item) native; |
| 3187 |
| 3188 @DomName('SVGNumberList.clear') |
| 3189 @DocsEditable() |
| 3190 void clear() native; |
| 3191 |
| 3192 @DomName('SVGNumberList.getItem') |
| 3193 @DocsEditable() |
| 3194 Number getItem(int index) native; |
| 3195 |
| 3196 @DomName('SVGNumberList.initialize') |
| 3197 @DocsEditable() |
| 3198 Number initialize(Number item) native; |
| 3199 |
| 3200 @DomName('SVGNumberList.insertItemBefore') |
| 3201 @DocsEditable() |
| 3202 Number insertItemBefore(Number item, int index) native; |
| 3203 |
| 3204 @DomName('SVGNumberList.removeItem') |
| 3205 @DocsEditable() |
| 3206 Number removeItem(int index) native; |
| 3207 |
| 3208 @DomName('SVGNumberList.replaceItem') |
| 3209 @DocsEditable() |
| 3210 Number replaceItem(Number item, int index) native; |
| 3211 } |
| 3212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3213 // for details. All rights reserved. Use of this source code is governed by a |
| 3214 // BSD-style license that can be found in the LICENSE file. |
| 3215 |
| 3216 |
| 3217 @DocsEditable() |
| 3218 @DomName('SVGPathElement') |
| 3219 @Unstable() |
| 3220 @Native("SVGPathElement") |
| 3221 class PathElement extends GeometryElement { |
| 3222 // To suppress missing implicit constructor warnings. |
| 3223 factory PathElement._() { throw new UnsupportedError("Not supported"); } |
| 3224 |
| 3225 @DomName('SVGPathElement.SVGPathElement') |
| 3226 @DocsEditable() |
| 3227 factory PathElement() => _SvgElementFactoryProvider.createSvgElement_tag("path
"); |
| 3228 /** |
| 3229 * Constructor instantiated by the DOM when a custom element has been created. |
| 3230 * |
| 3231 * This can only be called by subclasses from their created constructor. |
| 3232 */ |
| 3233 PathElement.created() : super.created(); |
| 3234 |
| 3235 @DomName('SVGPathElement.animatedNormalizedPathSegList') |
| 3236 @DocsEditable() |
| 3237 final PathSegList animatedNormalizedPathSegList; |
| 3238 |
| 3239 @DomName('SVGPathElement.animatedPathSegList') |
| 3240 @DocsEditable() |
| 3241 final PathSegList animatedPathSegList; |
| 3242 |
| 3243 @DomName('SVGPathElement.normalizedPathSegList') |
| 3244 @DocsEditable() |
| 3245 final PathSegList normalizedPathSegList; |
| 3246 |
| 3247 @DomName('SVGPathElement.pathLength') |
| 3248 @DocsEditable() |
| 3249 final AnimatedNumber pathLength; |
| 3250 |
| 3251 @DomName('SVGPathElement.pathSegList') |
| 3252 @DocsEditable() |
| 3253 final PathSegList pathSegList; |
| 3254 |
| 3255 @JSName('createSVGPathSegArcAbs') |
| 3256 @DomName('SVGPathElement.createSVGPathSegArcAbs') |
| 3257 @DocsEditable() |
| 3258 PathSegArcAbs createSvgPathSegArcAbs(num x, num y, num r1, num r2, num angle,
bool largeArcFlag, bool sweepFlag) native; |
| 3259 |
| 3260 @JSName('createSVGPathSegArcRel') |
| 3261 @DomName('SVGPathElement.createSVGPathSegArcRel') |
| 3262 @DocsEditable() |
| 3263 PathSegArcRel createSvgPathSegArcRel(num x, num y, num r1, num r2, num angle,
bool largeArcFlag, bool sweepFlag) native; |
| 3264 |
| 3265 @JSName('createSVGPathSegClosePath') |
| 3266 @DomName('SVGPathElement.createSVGPathSegClosePath') |
| 3267 @DocsEditable() |
| 3268 PathSegClosePath createSvgPathSegClosePath() native; |
| 3269 |
| 3270 @JSName('createSVGPathSegCurvetoCubicAbs') |
| 3271 @DomName('SVGPathElement.createSVGPathSegCurvetoCubicAbs') |
| 3272 @DocsEditable() |
| 3273 PathSegCurvetoCubicAbs createSvgPathSegCurvetoCubicAbs(num x, num y, num x1, n
um y1, num x2, num y2) native; |
| 3274 |
| 3275 @JSName('createSVGPathSegCurvetoCubicRel') |
| 3276 @DomName('SVGPathElement.createSVGPathSegCurvetoCubicRel') |
| 3277 @DocsEditable() |
| 3278 PathSegCurvetoCubicRel createSvgPathSegCurvetoCubicRel(num x, num y, num x1, n
um y1, num x2, num y2) native; |
| 3279 |
| 3280 @JSName('createSVGPathSegCurvetoCubicSmoothAbs') |
| 3281 @DomName('SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs') |
| 3282 @DocsEditable() |
| 3283 PathSegCurvetoCubicSmoothAbs createSvgPathSegCurvetoCubicSmoothAbs(num x, num
y, num x2, num y2) native; |
| 3284 |
| 3285 @JSName('createSVGPathSegCurvetoCubicSmoothRel') |
| 3286 @DomName('SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel') |
| 3287 @DocsEditable() |
| 3288 PathSegCurvetoCubicSmoothRel createSvgPathSegCurvetoCubicSmoothRel(num x, num
y, num x2, num y2) native; |
| 3289 |
| 3290 @JSName('createSVGPathSegCurvetoQuadraticAbs') |
| 3291 @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticAbs') |
| 3292 @DocsEditable() |
| 3293 PathSegCurvetoQuadraticAbs createSvgPathSegCurvetoQuadraticAbs(num x, num y, n
um x1, num y1) native; |
| 3294 |
| 3295 @JSName('createSVGPathSegCurvetoQuadraticRel') |
| 3296 @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticRel') |
| 3297 @DocsEditable() |
| 3298 PathSegCurvetoQuadraticRel createSvgPathSegCurvetoQuadraticRel(num x, num y, n
um x1, num y1) native; |
| 3299 |
| 3300 @JSName('createSVGPathSegCurvetoQuadraticSmoothAbs') |
| 3301 @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs') |
| 3302 @DocsEditable() |
| 3303 PathSegCurvetoQuadraticSmoothAbs createSvgPathSegCurvetoQuadraticSmoothAbs(num
x, num y) native; |
| 3304 |
| 3305 @JSName('createSVGPathSegCurvetoQuadraticSmoothRel') |
| 3306 @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel') |
| 3307 @DocsEditable() |
| 3308 PathSegCurvetoQuadraticSmoothRel createSvgPathSegCurvetoQuadraticSmoothRel(num
x, num y) native; |
| 3309 |
| 3310 @JSName('createSVGPathSegLinetoAbs') |
| 3311 @DomName('SVGPathElement.createSVGPathSegLinetoAbs') |
| 3312 @DocsEditable() |
| 3313 PathSegLinetoAbs createSvgPathSegLinetoAbs(num x, num y) native; |
| 3314 |
| 3315 @JSName('createSVGPathSegLinetoHorizontalAbs') |
| 3316 @DomName('SVGPathElement.createSVGPathSegLinetoHorizontalAbs') |
| 3317 @DocsEditable() |
| 3318 PathSegLinetoHorizontalAbs createSvgPathSegLinetoHorizontalAbs(num x) native; |
| 3319 |
| 3320 @JSName('createSVGPathSegLinetoHorizontalRel') |
| 3321 @DomName('SVGPathElement.createSVGPathSegLinetoHorizontalRel') |
| 3322 @DocsEditable() |
| 3323 PathSegLinetoHorizontalRel createSvgPathSegLinetoHorizontalRel(num x) native; |
| 3324 |
| 3325 @JSName('createSVGPathSegLinetoRel') |
| 3326 @DomName('SVGPathElement.createSVGPathSegLinetoRel') |
| 3327 @DocsEditable() |
| 3328 PathSegLinetoRel createSvgPathSegLinetoRel(num x, num y) native; |
| 3329 |
| 3330 @JSName('createSVGPathSegLinetoVerticalAbs') |
| 3331 @DomName('SVGPathElement.createSVGPathSegLinetoVerticalAbs') |
| 3332 @DocsEditable() |
| 3333 PathSegLinetoVerticalAbs createSvgPathSegLinetoVerticalAbs(num y) native; |
| 3334 |
| 3335 @JSName('createSVGPathSegLinetoVerticalRel') |
| 3336 @DomName('SVGPathElement.createSVGPathSegLinetoVerticalRel') |
| 3337 @DocsEditable() |
| 3338 PathSegLinetoVerticalRel createSvgPathSegLinetoVerticalRel(num y) native; |
| 3339 |
| 3340 @JSName('createSVGPathSegMovetoAbs') |
| 3341 @DomName('SVGPathElement.createSVGPathSegMovetoAbs') |
| 3342 @DocsEditable() |
| 3343 PathSegMovetoAbs createSvgPathSegMovetoAbs(num x, num y) native; |
| 3344 |
| 3345 @JSName('createSVGPathSegMovetoRel') |
| 3346 @DomName('SVGPathElement.createSVGPathSegMovetoRel') |
| 3347 @DocsEditable() |
| 3348 PathSegMovetoRel createSvgPathSegMovetoRel(num x, num y) native; |
| 3349 |
| 3350 @DomName('SVGPathElement.getPathSegAtLength') |
| 3351 @DocsEditable() |
| 3352 int getPathSegAtLength(num distance) native; |
| 3353 |
| 3354 @DomName('SVGPathElement.getPointAtLength') |
| 3355 @DocsEditable() |
| 3356 Point getPointAtLength(num distance) native; |
| 3357 |
| 3358 @DomName('SVGPathElement.getTotalLength') |
| 3359 @DocsEditable() |
| 3360 double getTotalLength() native; |
| 3361 } |
| 3362 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3363 // for details. All rights reserved. Use of this source code is governed by a |
| 3364 // BSD-style license that can be found in the LICENSE file. |
| 3365 |
| 3366 |
| 3367 @DocsEditable() |
| 3368 @DomName('SVGPathSeg') |
| 3369 @Unstable() |
| 3370 @Native("SVGPathSeg") |
| 3371 class PathSeg extends Interceptor { |
| 3372 // To suppress missing implicit constructor warnings. |
| 3373 factory PathSeg._() { throw new UnsupportedError("Not supported"); } |
| 3374 |
| 3375 @DomName('SVGPathSeg.PATHSEG_ARC_ABS') |
| 3376 @DocsEditable() |
| 3377 static const int PATHSEG_ARC_ABS = 10; |
| 3378 |
| 3379 @DomName('SVGPathSeg.PATHSEG_ARC_REL') |
| 3380 @DocsEditable() |
| 3381 static const int PATHSEG_ARC_REL = 11; |
| 3382 |
| 3383 @DomName('SVGPathSeg.PATHSEG_CLOSEPATH') |
| 3384 @DocsEditable() |
| 3385 static const int PATHSEG_CLOSEPATH = 1; |
| 3386 |
| 3387 @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS') |
| 3388 @DocsEditable() |
| 3389 static const int PATHSEG_CURVETO_CUBIC_ABS = 6; |
| 3390 |
| 3391 @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL') |
| 3392 @DocsEditable() |
| 3393 static const int PATHSEG_CURVETO_CUBIC_REL = 7; |
| 3394 |
| 3395 @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS') |
| 3396 @DocsEditable() |
| 3397 static const int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; |
| 3398 |
| 3399 @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL') |
| 3400 @DocsEditable() |
| 3401 static const int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; |
| 3402 |
| 3403 @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS') |
| 3404 @DocsEditable() |
| 3405 static const int PATHSEG_CURVETO_QUADRATIC_ABS = 8; |
| 3406 |
| 3407 @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL') |
| 3408 @DocsEditable() |
| 3409 static const int PATHSEG_CURVETO_QUADRATIC_REL = 9; |
| 3410 |
| 3411 @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS') |
| 3412 @DocsEditable() |
| 3413 static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; |
| 3414 |
| 3415 @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL') |
| 3416 @DocsEditable() |
| 3417 static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; |
| 3418 |
| 3419 @DomName('SVGPathSeg.PATHSEG_LINETO_ABS') |
| 3420 @DocsEditable() |
| 3421 static const int PATHSEG_LINETO_ABS = 4; |
| 3422 |
| 3423 @DomName('SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS') |
| 3424 @DocsEditable() |
| 3425 static const int PATHSEG_LINETO_HORIZONTAL_ABS = 12; |
| 3426 |
| 3427 @DomName('SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL') |
| 3428 @DocsEditable() |
| 3429 static const int PATHSEG_LINETO_HORIZONTAL_REL = 13; |
| 3430 |
| 3431 @DomName('SVGPathSeg.PATHSEG_LINETO_REL') |
| 3432 @DocsEditable() |
| 3433 static const int PATHSEG_LINETO_REL = 5; |
| 3434 |
| 3435 @DomName('SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS') |
| 3436 @DocsEditable() |
| 3437 static const int PATHSEG_LINETO_VERTICAL_ABS = 14; |
| 3438 |
| 3439 @DomName('SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL') |
| 3440 @DocsEditable() |
| 3441 static const int PATHSEG_LINETO_VERTICAL_REL = 15; |
| 3442 |
| 3443 @DomName('SVGPathSeg.PATHSEG_MOVETO_ABS') |
| 3444 @DocsEditable() |
| 3445 static const int PATHSEG_MOVETO_ABS = 2; |
| 3446 |
| 3447 @DomName('SVGPathSeg.PATHSEG_MOVETO_REL') |
| 3448 @DocsEditable() |
| 3449 static const int PATHSEG_MOVETO_REL = 3; |
| 3450 |
| 3451 @DomName('SVGPathSeg.PATHSEG_UNKNOWN') |
| 3452 @DocsEditable() |
| 3453 static const int PATHSEG_UNKNOWN = 0; |
| 3454 |
| 3455 @DomName('SVGPathSeg.pathSegType') |
| 3456 @DocsEditable() |
| 3457 final int pathSegType; |
| 3458 |
| 3459 @DomName('SVGPathSeg.pathSegTypeAsLetter') |
| 3460 @DocsEditable() |
| 3461 final String pathSegTypeAsLetter; |
| 3462 } |
| 3463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3464 // for details. All rights reserved. Use of this source code is governed by a |
| 3465 // BSD-style license that can be found in the LICENSE file. |
| 3466 |
| 3467 |
| 3468 @DocsEditable() |
| 3469 @DomName('SVGPathSegArcAbs') |
| 3470 @Unstable() |
| 3471 @Native("SVGPathSegArcAbs") |
| 3472 class PathSegArcAbs extends PathSeg { |
| 3473 // To suppress missing implicit constructor warnings. |
| 3474 factory PathSegArcAbs._() { throw new UnsupportedError("Not supported"); } |
| 3475 |
| 3476 @DomName('SVGPathSegArcAbs.angle') |
| 3477 @DocsEditable() |
| 3478 num angle; |
| 3479 |
| 3480 @DomName('SVGPathSegArcAbs.largeArcFlag') |
| 3481 @DocsEditable() |
| 3482 bool largeArcFlag; |
| 3483 |
| 3484 @DomName('SVGPathSegArcAbs.r1') |
| 3485 @DocsEditable() |
| 3486 num r1; |
| 3487 |
| 3488 @DomName('SVGPathSegArcAbs.r2') |
| 3489 @DocsEditable() |
| 3490 num r2; |
| 3491 |
| 3492 @DomName('SVGPathSegArcAbs.sweepFlag') |
| 3493 @DocsEditable() |
| 3494 bool sweepFlag; |
| 3495 |
| 3496 @DomName('SVGPathSegArcAbs.x') |
| 3497 @DocsEditable() |
| 3498 num x; |
| 3499 |
| 3500 @DomName('SVGPathSegArcAbs.y') |
| 3501 @DocsEditable() |
| 3502 num y; |
| 3503 } |
| 3504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3505 // for details. All rights reserved. Use of this source code is governed by a |
| 3506 // BSD-style license that can be found in the LICENSE file. |
| 3507 |
| 3508 |
| 3509 @DocsEditable() |
| 3510 @DomName('SVGPathSegArcRel') |
| 3511 @Unstable() |
| 3512 @Native("SVGPathSegArcRel") |
| 3513 class PathSegArcRel extends PathSeg { |
| 3514 // To suppress missing implicit constructor warnings. |
| 3515 factory PathSegArcRel._() { throw new UnsupportedError("Not supported"); } |
| 3516 |
| 3517 @DomName('SVGPathSegArcRel.angle') |
| 3518 @DocsEditable() |
| 3519 num angle; |
| 3520 |
| 3521 @DomName('SVGPathSegArcRel.largeArcFlag') |
| 3522 @DocsEditable() |
| 3523 bool largeArcFlag; |
| 3524 |
| 3525 @DomName('SVGPathSegArcRel.r1') |
| 3526 @DocsEditable() |
| 3527 num r1; |
| 3528 |
| 3529 @DomName('SVGPathSegArcRel.r2') |
| 3530 @DocsEditable() |
| 3531 num r2; |
| 3532 |
| 3533 @DomName('SVGPathSegArcRel.sweepFlag') |
| 3534 @DocsEditable() |
| 3535 bool sweepFlag; |
| 3536 |
| 3537 @DomName('SVGPathSegArcRel.x') |
| 3538 @DocsEditable() |
| 3539 num x; |
| 3540 |
| 3541 @DomName('SVGPathSegArcRel.y') |
| 3542 @DocsEditable() |
| 3543 num y; |
| 3544 } |
| 3545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3546 // for details. All rights reserved. Use of this source code is governed by a |
| 3547 // BSD-style license that can be found in the LICENSE file. |
| 3548 |
| 3549 |
| 3550 @DocsEditable() |
| 3551 @DomName('SVGPathSegClosePath') |
| 3552 @Unstable() |
| 3553 @Native("SVGPathSegClosePath") |
| 3554 class PathSegClosePath extends PathSeg { |
| 3555 // To suppress missing implicit constructor warnings. |
| 3556 factory PathSegClosePath._() { throw new UnsupportedError("Not supported"); } |
| 3557 } |
| 3558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3559 // for details. All rights reserved. Use of this source code is governed by a |
| 3560 // BSD-style license that can be found in the LICENSE file. |
| 3561 |
| 3562 |
| 3563 @DocsEditable() |
| 3564 @DomName('SVGPathSegCurvetoCubicAbs') |
| 3565 @Unstable() |
| 3566 @Native("SVGPathSegCurvetoCubicAbs") |
| 3567 class PathSegCurvetoCubicAbs extends PathSeg { |
| 3568 // To suppress missing implicit constructor warnings. |
| 3569 factory PathSegCurvetoCubicAbs._() { throw new UnsupportedError("Not supported
"); } |
| 3570 |
| 3571 @DomName('SVGPathSegCurvetoCubicAbs.x') |
| 3572 @DocsEditable() |
| 3573 num x; |
| 3574 |
| 3575 @DomName('SVGPathSegCurvetoCubicAbs.x1') |
| 3576 @DocsEditable() |
| 3577 num x1; |
| 3578 |
| 3579 @DomName('SVGPathSegCurvetoCubicAbs.x2') |
| 3580 @DocsEditable() |
| 3581 num x2; |
| 3582 |
| 3583 @DomName('SVGPathSegCurvetoCubicAbs.y') |
| 3584 @DocsEditable() |
| 3585 num y; |
| 3586 |
| 3587 @DomName('SVGPathSegCurvetoCubicAbs.y1') |
| 3588 @DocsEditable() |
| 3589 num y1; |
| 3590 |
| 3591 @DomName('SVGPathSegCurvetoCubicAbs.y2') |
| 3592 @DocsEditable() |
| 3593 num y2; |
| 3594 } |
| 3595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3596 // for details. All rights reserved. Use of this source code is governed by a |
| 3597 // BSD-style license that can be found in the LICENSE file. |
| 3598 |
| 3599 |
| 3600 @DocsEditable() |
| 3601 @DomName('SVGPathSegCurvetoCubicRel') |
| 3602 @Unstable() |
| 3603 @Native("SVGPathSegCurvetoCubicRel") |
| 3604 class PathSegCurvetoCubicRel extends PathSeg { |
| 3605 // To suppress missing implicit constructor warnings. |
| 3606 factory PathSegCurvetoCubicRel._() { throw new UnsupportedError("Not supported
"); } |
| 3607 |
| 3608 @DomName('SVGPathSegCurvetoCubicRel.x') |
| 3609 @DocsEditable() |
| 3610 num x; |
| 3611 |
| 3612 @DomName('SVGPathSegCurvetoCubicRel.x1') |
| 3613 @DocsEditable() |
| 3614 num x1; |
| 3615 |
| 3616 @DomName('SVGPathSegCurvetoCubicRel.x2') |
| 3617 @DocsEditable() |
| 3618 num x2; |
| 3619 |
| 3620 @DomName('SVGPathSegCurvetoCubicRel.y') |
| 3621 @DocsEditable() |
| 3622 num y; |
| 3623 |
| 3624 @DomName('SVGPathSegCurvetoCubicRel.y1') |
| 3625 @DocsEditable() |
| 3626 num y1; |
| 3627 |
| 3628 @DomName('SVGPathSegCurvetoCubicRel.y2') |
| 3629 @DocsEditable() |
| 3630 num y2; |
| 3631 } |
| 3632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3633 // for details. All rights reserved. Use of this source code is governed by a |
| 3634 // BSD-style license that can be found in the LICENSE file. |
| 3635 |
| 3636 |
| 3637 @DocsEditable() |
| 3638 @DomName('SVGPathSegCurvetoCubicSmoothAbs') |
| 3639 @Unstable() |
| 3640 @Native("SVGPathSegCurvetoCubicSmoothAbs") |
| 3641 class PathSegCurvetoCubicSmoothAbs extends PathSeg { |
| 3642 // To suppress missing implicit constructor warnings. |
| 3643 factory PathSegCurvetoCubicSmoothAbs._() { throw new UnsupportedError("Not sup
ported"); } |
| 3644 |
| 3645 @DomName('SVGPathSegCurvetoCubicSmoothAbs.x') |
| 3646 @DocsEditable() |
| 3647 num x; |
| 3648 |
| 3649 @DomName('SVGPathSegCurvetoCubicSmoothAbs.x2') |
| 3650 @DocsEditable() |
| 3651 num x2; |
| 3652 |
| 3653 @DomName('SVGPathSegCurvetoCubicSmoothAbs.y') |
| 3654 @DocsEditable() |
| 3655 num y; |
| 3656 |
| 3657 @DomName('SVGPathSegCurvetoCubicSmoothAbs.y2') |
| 3658 @DocsEditable() |
| 3659 num y2; |
| 3660 } |
| 3661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3662 // for details. All rights reserved. Use of this source code is governed by a |
| 3663 // BSD-style license that can be found in the LICENSE file. |
| 3664 |
| 3665 |
| 3666 @DocsEditable() |
| 3667 @DomName('SVGPathSegCurvetoCubicSmoothRel') |
| 3668 @Unstable() |
| 3669 @Native("SVGPathSegCurvetoCubicSmoothRel") |
| 3670 class PathSegCurvetoCubicSmoothRel extends PathSeg { |
| 3671 // To suppress missing implicit constructor warnings. |
| 3672 factory PathSegCurvetoCubicSmoothRel._() { throw new UnsupportedError("Not sup
ported"); } |
| 3673 |
| 3674 @DomName('SVGPathSegCurvetoCubicSmoothRel.x') |
| 3675 @DocsEditable() |
| 3676 num x; |
| 3677 |
| 3678 @DomName('SVGPathSegCurvetoCubicSmoothRel.x2') |
| 3679 @DocsEditable() |
| 3680 num x2; |
| 3681 |
| 3682 @DomName('SVGPathSegCurvetoCubicSmoothRel.y') |
| 3683 @DocsEditable() |
| 3684 num y; |
| 3685 |
| 3686 @DomName('SVGPathSegCurvetoCubicSmoothRel.y2') |
| 3687 @DocsEditable() |
| 3688 num y2; |
| 3689 } |
| 3690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3691 // for details. All rights reserved. Use of this source code is governed by a |
| 3692 // BSD-style license that can be found in the LICENSE file. |
| 3693 |
| 3694 |
| 3695 @DocsEditable() |
| 3696 @DomName('SVGPathSegCurvetoQuadraticAbs') |
| 3697 @Unstable() |
| 3698 @Native("SVGPathSegCurvetoQuadraticAbs") |
| 3699 class PathSegCurvetoQuadraticAbs extends PathSeg { |
| 3700 // To suppress missing implicit constructor warnings. |
| 3701 factory PathSegCurvetoQuadraticAbs._() { throw new UnsupportedError("Not suppo
rted"); } |
| 3702 |
| 3703 @DomName('SVGPathSegCurvetoQuadraticAbs.x') |
| 3704 @DocsEditable() |
| 3705 num x; |
| 3706 |
| 3707 @DomName('SVGPathSegCurvetoQuadraticAbs.x1') |
| 3708 @DocsEditable() |
| 3709 num x1; |
| 3710 |
| 3711 @DomName('SVGPathSegCurvetoQuadraticAbs.y') |
| 3712 @DocsEditable() |
| 3713 num y; |
| 3714 |
| 3715 @DomName('SVGPathSegCurvetoQuadraticAbs.y1') |
| 3716 @DocsEditable() |
| 3717 num y1; |
| 3718 } |
| 3719 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3720 // for details. All rights reserved. Use of this source code is governed by a |
| 3721 // BSD-style license that can be found in the LICENSE file. |
| 3722 |
| 3723 |
| 3724 @DocsEditable() |
| 3725 @DomName('SVGPathSegCurvetoQuadraticRel') |
| 3726 @Unstable() |
| 3727 @Native("SVGPathSegCurvetoQuadraticRel") |
| 3728 class PathSegCurvetoQuadraticRel extends PathSeg { |
| 3729 // To suppress missing implicit constructor warnings. |
| 3730 factory PathSegCurvetoQuadraticRel._() { throw new UnsupportedError("Not suppo
rted"); } |
| 3731 |
| 3732 @DomName('SVGPathSegCurvetoQuadraticRel.x') |
| 3733 @DocsEditable() |
| 3734 num x; |
| 3735 |
| 3736 @DomName('SVGPathSegCurvetoQuadraticRel.x1') |
| 3737 @DocsEditable() |
| 3738 num x1; |
| 3739 |
| 3740 @DomName('SVGPathSegCurvetoQuadraticRel.y') |
| 3741 @DocsEditable() |
| 3742 num y; |
| 3743 |
| 3744 @DomName('SVGPathSegCurvetoQuadraticRel.y1') |
| 3745 @DocsEditable() |
| 3746 num y1; |
| 3747 } |
| 3748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3749 // for details. All rights reserved. Use of this source code is governed by a |
| 3750 // BSD-style license that can be found in the LICENSE file. |
| 3751 |
| 3752 |
| 3753 @DocsEditable() |
| 3754 @DomName('SVGPathSegCurvetoQuadraticSmoothAbs') |
| 3755 @Unstable() |
| 3756 @Native("SVGPathSegCurvetoQuadraticSmoothAbs") |
| 3757 class PathSegCurvetoQuadraticSmoothAbs extends PathSeg { |
| 3758 // To suppress missing implicit constructor warnings. |
| 3759 factory PathSegCurvetoQuadraticSmoothAbs._() { throw new UnsupportedError("Not
supported"); } |
| 3760 |
| 3761 @DomName('SVGPathSegCurvetoQuadraticSmoothAbs.x') |
| 3762 @DocsEditable() |
| 3763 num x; |
| 3764 |
| 3765 @DomName('SVGPathSegCurvetoQuadraticSmoothAbs.y') |
| 3766 @DocsEditable() |
| 3767 num y; |
| 3768 } |
| 3769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3770 // for details. All rights reserved. Use of this source code is governed by a |
| 3771 // BSD-style license that can be found in the LICENSE file. |
| 3772 |
| 3773 |
| 3774 @DocsEditable() |
| 3775 @DomName('SVGPathSegCurvetoQuadraticSmoothRel') |
| 3776 @Unstable() |
| 3777 @Native("SVGPathSegCurvetoQuadraticSmoothRel") |
| 3778 class PathSegCurvetoQuadraticSmoothRel extends PathSeg { |
| 3779 // To suppress missing implicit constructor warnings. |
| 3780 factory PathSegCurvetoQuadraticSmoothRel._() { throw new UnsupportedError("Not
supported"); } |
| 3781 |
| 3782 @DomName('SVGPathSegCurvetoQuadraticSmoothRel.x') |
| 3783 @DocsEditable() |
| 3784 num x; |
| 3785 |
| 3786 @DomName('SVGPathSegCurvetoQuadraticSmoothRel.y') |
| 3787 @DocsEditable() |
| 3788 num y; |
| 3789 } |
| 3790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3791 // for details. All rights reserved. Use of this source code is governed by a |
| 3792 // BSD-style license that can be found in the LICENSE file. |
| 3793 |
| 3794 |
| 3795 @DocsEditable() |
| 3796 @DomName('SVGPathSegLinetoAbs') |
| 3797 @Unstable() |
| 3798 @Native("SVGPathSegLinetoAbs") |
| 3799 class PathSegLinetoAbs extends PathSeg { |
| 3800 // To suppress missing implicit constructor warnings. |
| 3801 factory PathSegLinetoAbs._() { throw new UnsupportedError("Not supported"); } |
| 3802 |
| 3803 @DomName('SVGPathSegLinetoAbs.x') |
| 3804 @DocsEditable() |
| 3805 num x; |
| 3806 |
| 3807 @DomName('SVGPathSegLinetoAbs.y') |
| 3808 @DocsEditable() |
| 3809 num y; |
| 3810 } |
| 3811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3812 // for details. All rights reserved. Use of this source code is governed by a |
| 3813 // BSD-style license that can be found in the LICENSE file. |
| 3814 |
| 3815 |
| 3816 @DocsEditable() |
| 3817 @DomName('SVGPathSegLinetoHorizontalAbs') |
| 3818 @Unstable() |
| 3819 @Native("SVGPathSegLinetoHorizontalAbs") |
| 3820 class PathSegLinetoHorizontalAbs extends PathSeg { |
| 3821 // To suppress missing implicit constructor warnings. |
| 3822 factory PathSegLinetoHorizontalAbs._() { throw new UnsupportedError("Not suppo
rted"); } |
| 3823 |
| 3824 @DomName('SVGPathSegLinetoHorizontalAbs.x') |
| 3825 @DocsEditable() |
| 3826 num x; |
| 3827 } |
| 3828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3829 // for details. All rights reserved. Use of this source code is governed by a |
| 3830 // BSD-style license that can be found in the LICENSE file. |
| 3831 |
| 3832 |
| 3833 @DocsEditable() |
| 3834 @DomName('SVGPathSegLinetoHorizontalRel') |
| 3835 @Unstable() |
| 3836 @Native("SVGPathSegLinetoHorizontalRel") |
| 3837 class PathSegLinetoHorizontalRel extends PathSeg { |
| 3838 // To suppress missing implicit constructor warnings. |
| 3839 factory PathSegLinetoHorizontalRel._() { throw new UnsupportedError("Not suppo
rted"); } |
| 3840 |
| 3841 @DomName('SVGPathSegLinetoHorizontalRel.x') |
| 3842 @DocsEditable() |
| 3843 num x; |
| 3844 } |
| 3845 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3846 // for details. All rights reserved. Use of this source code is governed by a |
| 3847 // BSD-style license that can be found in the LICENSE file. |
| 3848 |
| 3849 |
| 3850 @DocsEditable() |
| 3851 @DomName('SVGPathSegLinetoRel') |
| 3852 @Unstable() |
| 3853 @Native("SVGPathSegLinetoRel") |
| 3854 class PathSegLinetoRel extends PathSeg { |
| 3855 // To suppress missing implicit constructor warnings. |
| 3856 factory PathSegLinetoRel._() { throw new UnsupportedError("Not supported"); } |
| 3857 |
| 3858 @DomName('SVGPathSegLinetoRel.x') |
| 3859 @DocsEditable() |
| 3860 num x; |
| 3861 |
| 3862 @DomName('SVGPathSegLinetoRel.y') |
| 3863 @DocsEditable() |
| 3864 num y; |
| 3865 } |
| 3866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3867 // for details. All rights reserved. Use of this source code is governed by a |
| 3868 // BSD-style license that can be found in the LICENSE file. |
| 3869 |
| 3870 |
| 3871 @DocsEditable() |
| 3872 @DomName('SVGPathSegLinetoVerticalAbs') |
| 3873 @Unstable() |
| 3874 @Native("SVGPathSegLinetoVerticalAbs") |
| 3875 class PathSegLinetoVerticalAbs extends PathSeg { |
| 3876 // To suppress missing implicit constructor warnings. |
| 3877 factory PathSegLinetoVerticalAbs._() { throw new UnsupportedError("Not support
ed"); } |
| 3878 |
| 3879 @DomName('SVGPathSegLinetoVerticalAbs.y') |
| 3880 @DocsEditable() |
| 3881 num y; |
| 3882 } |
| 3883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3884 // for details. All rights reserved. Use of this source code is governed by a |
| 3885 // BSD-style license that can be found in the LICENSE file. |
| 3886 |
| 3887 |
| 3888 @DocsEditable() |
| 3889 @DomName('SVGPathSegLinetoVerticalRel') |
| 3890 @Unstable() |
| 3891 @Native("SVGPathSegLinetoVerticalRel") |
| 3892 class PathSegLinetoVerticalRel extends PathSeg { |
| 3893 // To suppress missing implicit constructor warnings. |
| 3894 factory PathSegLinetoVerticalRel._() { throw new UnsupportedError("Not support
ed"); } |
| 3895 |
| 3896 @DomName('SVGPathSegLinetoVerticalRel.y') |
| 3897 @DocsEditable() |
| 3898 num y; |
| 3899 } |
| 3900 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3901 // for details. All rights reserved. Use of this source code is governed by a |
| 3902 // BSD-style license that can be found in the LICENSE file. |
| 3903 |
| 3904 |
| 3905 @DocsEditable() |
| 3906 @DomName('SVGPathSegList') |
| 3907 @Unstable() |
| 3908 @Native("SVGPathSegList") |
| 3909 class PathSegList extends Interceptor with ListMixin<PathSeg>, ImmutableListMixi
n<PathSeg> implements List<PathSeg> { |
| 3910 // To suppress missing implicit constructor warnings. |
| 3911 factory PathSegList._() { throw new UnsupportedError("Not supported"); } |
| 3912 |
| 3913 @DomName('SVGPathSegList.length') |
| 3914 @DocsEditable() |
| 3915 @Experimental() // untriaged |
| 3916 int get length => JS("int", "#.length", this); |
| 3917 |
| 3918 @DomName('SVGPathSegList.numberOfItems') |
| 3919 @DocsEditable() |
| 3920 final int numberOfItems; |
| 3921 |
| 3922 PathSeg operator[](int index) { |
| 3923 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 3924 index, index, length)) |
| 3925 throw new RangeError.index(index, this); |
| 3926 return this.getItem(index); |
| 3927 } |
| 3928 void operator[]=(int index, PathSeg value) { |
| 3929 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 3930 } |
| 3931 // -- start List<PathSeg> mixins. |
| 3932 // PathSeg is the element type. |
| 3933 |
| 3934 |
| 3935 set length(int value) { |
| 3936 throw new UnsupportedError("Cannot resize immutable List."); |
| 3937 } |
| 3938 |
| 3939 PathSeg get first { |
| 3940 if (this.length > 0) { |
| 3941 return JS('PathSeg', '#[0]', this); |
| 3942 } |
| 3943 throw new StateError("No elements"); |
| 3944 } |
| 3945 |
| 3946 PathSeg get last { |
| 3947 int len = this.length; |
| 3948 if (len > 0) { |
| 3949 return JS('PathSeg', '#[#]', this, len - 1); |
| 3950 } |
| 3951 throw new StateError("No elements"); |
| 3952 } |
| 3953 |
| 3954 PathSeg get single { |
| 3955 int len = this.length; |
| 3956 if (len == 1) { |
| 3957 return JS('PathSeg', '#[0]', this); |
| 3958 } |
| 3959 if (len == 0) throw new StateError("No elements"); |
| 3960 throw new StateError("More than one element"); |
| 3961 } |
| 3962 |
| 3963 PathSeg elementAt(int index) => this[index]; |
| 3964 // -- end List<PathSeg> mixins. |
| 3965 |
| 3966 @DomName('SVGPathSegList.__setter__') |
| 3967 @DocsEditable() |
| 3968 @Experimental() // untriaged |
| 3969 void __setter__(int index, PathSeg value) native; |
| 3970 |
| 3971 @DomName('SVGPathSegList.appendItem') |
| 3972 @DocsEditable() |
| 3973 PathSeg appendItem(PathSeg newItem) native; |
| 3974 |
| 3975 @DomName('SVGPathSegList.clear') |
| 3976 @DocsEditable() |
| 3977 void clear() native; |
| 3978 |
| 3979 @DomName('SVGPathSegList.getItem') |
| 3980 @DocsEditable() |
| 3981 PathSeg getItem(int index) native; |
| 3982 |
| 3983 @DomName('SVGPathSegList.initialize') |
| 3984 @DocsEditable() |
| 3985 PathSeg initialize(PathSeg newItem) native; |
| 3986 |
| 3987 @DomName('SVGPathSegList.insertItemBefore') |
| 3988 @DocsEditable() |
| 3989 PathSeg insertItemBefore(PathSeg newItem, int index) native; |
| 3990 |
| 3991 @DomName('SVGPathSegList.removeItem') |
| 3992 @DocsEditable() |
| 3993 PathSeg removeItem(int index) native; |
| 3994 |
| 3995 @DomName('SVGPathSegList.replaceItem') |
| 3996 @DocsEditable() |
| 3997 PathSeg replaceItem(PathSeg newItem, int index) native; |
| 3998 } |
| 3999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4000 // for details. All rights reserved. Use of this source code is governed by a |
| 4001 // BSD-style license that can be found in the LICENSE file. |
| 4002 |
| 4003 |
| 4004 @DocsEditable() |
| 4005 @DomName('SVGPathSegMovetoAbs') |
| 4006 @Unstable() |
| 4007 @Native("SVGPathSegMovetoAbs") |
| 4008 class PathSegMovetoAbs extends PathSeg { |
| 4009 // To suppress missing implicit constructor warnings. |
| 4010 factory PathSegMovetoAbs._() { throw new UnsupportedError("Not supported"); } |
| 4011 |
| 4012 @DomName('SVGPathSegMovetoAbs.x') |
| 4013 @DocsEditable() |
| 4014 num x; |
| 4015 |
| 4016 @DomName('SVGPathSegMovetoAbs.y') |
| 4017 @DocsEditable() |
| 4018 num y; |
| 4019 } |
| 4020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4021 // for details. All rights reserved. Use of this source code is governed by a |
| 4022 // BSD-style license that can be found in the LICENSE file. |
| 4023 |
| 4024 |
| 4025 @DocsEditable() |
| 4026 @DomName('SVGPathSegMovetoRel') |
| 4027 @Unstable() |
| 4028 @Native("SVGPathSegMovetoRel") |
| 4029 class PathSegMovetoRel extends PathSeg { |
| 4030 // To suppress missing implicit constructor warnings. |
| 4031 factory PathSegMovetoRel._() { throw new UnsupportedError("Not supported"); } |
| 4032 |
| 4033 @DomName('SVGPathSegMovetoRel.x') |
| 4034 @DocsEditable() |
| 4035 num x; |
| 4036 |
| 4037 @DomName('SVGPathSegMovetoRel.y') |
| 4038 @DocsEditable() |
| 4039 num y; |
| 4040 } |
| 4041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4042 // for details. All rights reserved. Use of this source code is governed by a |
| 4043 // BSD-style license that can be found in the LICENSE file. |
| 4044 |
| 4045 |
| 4046 @DocsEditable() |
| 4047 @DomName('SVGPatternElement') |
| 4048 @Unstable() |
| 4049 @Native("SVGPatternElement") |
| 4050 class PatternElement extends SvgElement implements FitToViewBox, UriReference, T
ests { |
| 4051 // To suppress missing implicit constructor warnings. |
| 4052 factory PatternElement._() { throw new UnsupportedError("Not supported"); } |
| 4053 |
| 4054 @DomName('SVGPatternElement.SVGPatternElement') |
| 4055 @DocsEditable() |
| 4056 factory PatternElement() => _SvgElementFactoryProvider.createSvgElement_tag("p
attern"); |
| 4057 /** |
| 4058 * Constructor instantiated by the DOM when a custom element has been created. |
| 4059 * |
| 4060 * This can only be called by subclasses from their created constructor. |
| 4061 */ |
| 4062 PatternElement.created() : super.created(); |
| 4063 |
| 4064 @DomName('SVGPatternElement.height') |
| 4065 @DocsEditable() |
| 4066 final AnimatedLength height; |
| 4067 |
| 4068 @DomName('SVGPatternElement.patternContentUnits') |
| 4069 @DocsEditable() |
| 4070 final AnimatedEnumeration patternContentUnits; |
| 4071 |
| 4072 @DomName('SVGPatternElement.patternTransform') |
| 4073 @DocsEditable() |
| 4074 final AnimatedTransformList patternTransform; |
| 4075 |
| 4076 @DomName('SVGPatternElement.patternUnits') |
| 4077 @DocsEditable() |
| 4078 final AnimatedEnumeration patternUnits; |
| 4079 |
| 4080 @DomName('SVGPatternElement.width') |
| 4081 @DocsEditable() |
| 4082 final AnimatedLength width; |
| 4083 |
| 4084 @DomName('SVGPatternElement.x') |
| 4085 @DocsEditable() |
| 4086 final AnimatedLength x; |
| 4087 |
| 4088 @DomName('SVGPatternElement.y') |
| 4089 @DocsEditable() |
| 4090 final AnimatedLength y; |
| 4091 |
| 4092 // From SVGFitToViewBox |
| 4093 |
| 4094 @DomName('SVGPatternElement.preserveAspectRatio') |
| 4095 @DocsEditable() |
| 4096 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 4097 |
| 4098 @DomName('SVGPatternElement.viewBox') |
| 4099 @DocsEditable() |
| 4100 final AnimatedRect viewBox; |
| 4101 |
| 4102 // From SVGTests |
| 4103 |
| 4104 @DomName('SVGPatternElement.requiredExtensions') |
| 4105 @DocsEditable() |
| 4106 final StringList requiredExtensions; |
| 4107 |
| 4108 @DomName('SVGPatternElement.requiredFeatures') |
| 4109 @DocsEditable() |
| 4110 final StringList requiredFeatures; |
| 4111 |
| 4112 @DomName('SVGPatternElement.systemLanguage') |
| 4113 @DocsEditable() |
| 4114 final StringList systemLanguage; |
| 4115 |
| 4116 @DomName('SVGPatternElement.hasExtension') |
| 4117 @DocsEditable() |
| 4118 bool hasExtension(String extension) native; |
| 4119 |
| 4120 // From SVGURIReference |
| 4121 |
| 4122 @DomName('SVGPatternElement.href') |
| 4123 @DocsEditable() |
| 4124 final AnimatedString href; |
| 4125 } |
| 4126 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4127 // for details. All rights reserved. Use of this source code is governed by a |
| 4128 // BSD-style license that can be found in the LICENSE file. |
| 4129 |
| 4130 |
| 4131 @DocsEditable() |
| 4132 @DomName('SVGPoint') |
| 4133 @Unstable() |
| 4134 @Native("SVGPoint") |
| 4135 class Point extends Interceptor { |
| 4136 // To suppress missing implicit constructor warnings. |
| 4137 factory Point._() { throw new UnsupportedError("Not supported"); } |
| 4138 |
| 4139 @DomName('SVGPoint.x') |
| 4140 @DocsEditable() |
| 4141 num x; |
| 4142 |
| 4143 @DomName('SVGPoint.y') |
| 4144 @DocsEditable() |
| 4145 num y; |
| 4146 |
| 4147 @DomName('SVGPoint.matrixTransform') |
| 4148 @DocsEditable() |
| 4149 Point matrixTransform(Matrix matrix) native; |
| 4150 } |
| 4151 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4152 // for details. All rights reserved. Use of this source code is governed by a |
| 4153 // BSD-style license that can be found in the LICENSE file. |
| 4154 |
| 4155 |
| 4156 @DocsEditable() |
| 4157 @DomName('SVGPointList') |
| 4158 @Unstable() |
| 4159 @Native("SVGPointList") |
| 4160 class PointList extends Interceptor { |
| 4161 // To suppress missing implicit constructor warnings. |
| 4162 factory PointList._() { throw new UnsupportedError("Not supported"); } |
| 4163 |
| 4164 @DomName('SVGPointList.length') |
| 4165 @DocsEditable() |
| 4166 @Experimental() // untriaged |
| 4167 final int length; |
| 4168 |
| 4169 @DomName('SVGPointList.numberOfItems') |
| 4170 @DocsEditable() |
| 4171 final int numberOfItems; |
| 4172 |
| 4173 @DomName('SVGPointList.__setter__') |
| 4174 @DocsEditable() |
| 4175 @Experimental() // untriaged |
| 4176 void __setter__(int index, Point value) native; |
| 4177 |
| 4178 @DomName('SVGPointList.appendItem') |
| 4179 @DocsEditable() |
| 4180 Point appendItem(Point item) native; |
| 4181 |
| 4182 @DomName('SVGPointList.clear') |
| 4183 @DocsEditable() |
| 4184 void clear() native; |
| 4185 |
| 4186 @DomName('SVGPointList.getItem') |
| 4187 @DocsEditable() |
| 4188 Point getItem(int index) native; |
| 4189 |
| 4190 @DomName('SVGPointList.initialize') |
| 4191 @DocsEditable() |
| 4192 Point initialize(Point item) native; |
| 4193 |
| 4194 @DomName('SVGPointList.insertItemBefore') |
| 4195 @DocsEditable() |
| 4196 Point insertItemBefore(Point item, int index) native; |
| 4197 |
| 4198 @DomName('SVGPointList.removeItem') |
| 4199 @DocsEditable() |
| 4200 Point removeItem(int index) native; |
| 4201 |
| 4202 @DomName('SVGPointList.replaceItem') |
| 4203 @DocsEditable() |
| 4204 Point replaceItem(Point item, int index) native; |
| 4205 } |
| 4206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4207 // for details. All rights reserved. Use of this source code is governed by a |
| 4208 // BSD-style license that can be found in the LICENSE file. |
| 4209 |
| 4210 |
| 4211 @DocsEditable() |
| 4212 @DomName('SVGPolygonElement') |
| 4213 @Unstable() |
| 4214 @Native("SVGPolygonElement") |
| 4215 class PolygonElement extends GeometryElement { |
| 4216 // To suppress missing implicit constructor warnings. |
| 4217 factory PolygonElement._() { throw new UnsupportedError("Not supported"); } |
| 4218 |
| 4219 @DomName('SVGPolygonElement.SVGPolygonElement') |
| 4220 @DocsEditable() |
| 4221 factory PolygonElement() => _SvgElementFactoryProvider.createSvgElement_tag("p
olygon"); |
| 4222 /** |
| 4223 * Constructor instantiated by the DOM when a custom element has been created. |
| 4224 * |
| 4225 * This can only be called by subclasses from their created constructor. |
| 4226 */ |
| 4227 PolygonElement.created() : super.created(); |
| 4228 |
| 4229 @DomName('SVGPolygonElement.animatedPoints') |
| 4230 @DocsEditable() |
| 4231 final PointList animatedPoints; |
| 4232 |
| 4233 @DomName('SVGPolygonElement.points') |
| 4234 @DocsEditable() |
| 4235 final PointList points; |
| 4236 } |
| 4237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4238 // for details. All rights reserved. Use of this source code is governed by a |
| 4239 // BSD-style license that can be found in the LICENSE file. |
| 4240 |
| 4241 |
| 4242 @DocsEditable() |
| 4243 @DomName('SVGPolylineElement') |
| 4244 @Unstable() |
| 4245 @Native("SVGPolylineElement") |
| 4246 class PolylineElement extends GeometryElement { |
| 4247 // To suppress missing implicit constructor warnings. |
| 4248 factory PolylineElement._() { throw new UnsupportedError("Not supported"); } |
| 4249 |
| 4250 @DomName('SVGPolylineElement.SVGPolylineElement') |
| 4251 @DocsEditable() |
| 4252 factory PolylineElement() => _SvgElementFactoryProvider.createSvgElement_tag("
polyline"); |
| 4253 /** |
| 4254 * Constructor instantiated by the DOM when a custom element has been created. |
| 4255 * |
| 4256 * This can only be called by subclasses from their created constructor. |
| 4257 */ |
| 4258 PolylineElement.created() : super.created(); |
| 4259 |
| 4260 @DomName('SVGPolylineElement.animatedPoints') |
| 4261 @DocsEditable() |
| 4262 final PointList animatedPoints; |
| 4263 |
| 4264 @DomName('SVGPolylineElement.points') |
| 4265 @DocsEditable() |
| 4266 final PointList points; |
| 4267 } |
| 4268 // 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 |
| 4270 // BSD-style license that can be found in the LICENSE file. |
| 4271 |
| 4272 |
| 4273 @DocsEditable() |
| 4274 @DomName('SVGPreserveAspectRatio') |
| 4275 @Unstable() |
| 4276 @Native("SVGPreserveAspectRatio") |
| 4277 class PreserveAspectRatio extends Interceptor { |
| 4278 // To suppress missing implicit constructor warnings. |
| 4279 factory PreserveAspectRatio._() { throw new UnsupportedError("Not supported");
} |
| 4280 |
| 4281 @DomName('SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET') |
| 4282 @DocsEditable() |
| 4283 static const int SVG_MEETORSLICE_MEET = 1; |
| 4284 |
| 4285 @DomName('SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE') |
| 4286 @DocsEditable() |
| 4287 static const int SVG_MEETORSLICE_SLICE = 2; |
| 4288 |
| 4289 @DomName('SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN') |
| 4290 @DocsEditable() |
| 4291 static const int SVG_MEETORSLICE_UNKNOWN = 0; |
| 4292 |
| 4293 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_NONE') |
| 4294 @DocsEditable() |
| 4295 static const int SVG_PRESERVEASPECTRATIO_NONE = 1; |
| 4296 |
| 4297 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_UNKNOWN') |
| 4298 @DocsEditable() |
| 4299 static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; |
| 4300 |
| 4301 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX') |
| 4302 @DocsEditable() |
| 4303 static const int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; |
| 4304 |
| 4305 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID') |
| 4306 @DocsEditable() |
| 4307 static const int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; |
| 4308 |
| 4309 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMIN') |
| 4310 @DocsEditable() |
| 4311 static const int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; |
| 4312 |
| 4313 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMAX') |
| 4314 @DocsEditable() |
| 4315 static const int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; |
| 4316 |
| 4317 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID') |
| 4318 @DocsEditable() |
| 4319 static const int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; |
| 4320 |
| 4321 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN') |
| 4322 @DocsEditable() |
| 4323 static const int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; |
| 4324 |
| 4325 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMAX') |
| 4326 @DocsEditable() |
| 4327 static const int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; |
| 4328 |
| 4329 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMID') |
| 4330 @DocsEditable() |
| 4331 static const int SVG_PRESERVEASPECTRATIO_XMINYMID = 5; |
| 4332 |
| 4333 @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMIN') |
| 4334 @DocsEditable() |
| 4335 static const int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; |
| 4336 |
| 4337 @DomName('SVGPreserveAspectRatio.align') |
| 4338 @DocsEditable() |
| 4339 int align; |
| 4340 |
| 4341 @DomName('SVGPreserveAspectRatio.meetOrSlice') |
| 4342 @DocsEditable() |
| 4343 int meetOrSlice; |
| 4344 } |
| 4345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4346 // for details. All rights reserved. Use of this source code is governed by a |
| 4347 // BSD-style license that can be found in the LICENSE file. |
| 4348 |
| 4349 |
| 4350 @DocsEditable() |
| 4351 @DomName('SVGRadialGradientElement') |
| 4352 @Unstable() |
| 4353 @Native("SVGRadialGradientElement") |
| 4354 class RadialGradientElement extends _GradientElement { |
| 4355 // To suppress missing implicit constructor warnings. |
| 4356 factory RadialGradientElement._() { throw new UnsupportedError("Not supported"
); } |
| 4357 |
| 4358 @DomName('SVGRadialGradientElement.SVGRadialGradientElement') |
| 4359 @DocsEditable() |
| 4360 factory RadialGradientElement() => _SvgElementFactoryProvider.createSvgElement
_tag("radialGradient"); |
| 4361 /** |
| 4362 * Constructor instantiated by the DOM when a custom element has been created. |
| 4363 * |
| 4364 * This can only be called by subclasses from their created constructor. |
| 4365 */ |
| 4366 RadialGradientElement.created() : super.created(); |
| 4367 |
| 4368 @DomName('SVGRadialGradientElement.cx') |
| 4369 @DocsEditable() |
| 4370 final AnimatedLength cx; |
| 4371 |
| 4372 @DomName('SVGRadialGradientElement.cy') |
| 4373 @DocsEditable() |
| 4374 final AnimatedLength cy; |
| 4375 |
| 4376 @DomName('SVGRadialGradientElement.fr') |
| 4377 @DocsEditable() |
| 4378 final AnimatedLength fr; |
| 4379 |
| 4380 @DomName('SVGRadialGradientElement.fx') |
| 4381 @DocsEditable() |
| 4382 final AnimatedLength fx; |
| 4383 |
| 4384 @DomName('SVGRadialGradientElement.fy') |
| 4385 @DocsEditable() |
| 4386 final AnimatedLength fy; |
| 4387 |
| 4388 @DomName('SVGRadialGradientElement.r') |
| 4389 @DocsEditable() |
| 4390 final AnimatedLength r; |
| 4391 } |
| 4392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4393 // for details. All rights reserved. Use of this source code is governed by a |
| 4394 // BSD-style license that can be found in the LICENSE file. |
| 4395 |
| 4396 |
| 4397 @DocsEditable() |
| 4398 @DomName('SVGRect') |
| 4399 @Unstable() |
| 4400 @Native("SVGRect") |
| 4401 class Rect extends Interceptor { |
| 4402 // To suppress missing implicit constructor warnings. |
| 4403 factory Rect._() { throw new UnsupportedError("Not supported"); } |
| 4404 |
| 4405 @DomName('SVGRect.height') |
| 4406 @DocsEditable() |
| 4407 num height; |
| 4408 |
| 4409 @DomName('SVGRect.width') |
| 4410 @DocsEditable() |
| 4411 num width; |
| 4412 |
| 4413 @DomName('SVGRect.x') |
| 4414 @DocsEditable() |
| 4415 num x; |
| 4416 |
| 4417 @DomName('SVGRect.y') |
| 4418 @DocsEditable() |
| 4419 num y; |
| 4420 } |
| 4421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4422 // for details. All rights reserved. Use of this source code is governed by a |
| 4423 // BSD-style license that can be found in the LICENSE file. |
| 4424 |
| 4425 |
| 4426 @DocsEditable() |
| 4427 @DomName('SVGRectElement') |
| 4428 @Unstable() |
| 4429 @Native("SVGRectElement") |
| 4430 class RectElement extends GeometryElement { |
| 4431 // To suppress missing implicit constructor warnings. |
| 4432 factory RectElement._() { throw new UnsupportedError("Not supported"); } |
| 4433 |
| 4434 @DomName('SVGRectElement.SVGRectElement') |
| 4435 @DocsEditable() |
| 4436 factory RectElement() => _SvgElementFactoryProvider.createSvgElement_tag("rect
"); |
| 4437 /** |
| 4438 * Constructor instantiated by the DOM when a custom element has been created. |
| 4439 * |
| 4440 * This can only be called by subclasses from their created constructor. |
| 4441 */ |
| 4442 RectElement.created() : super.created(); |
| 4443 |
| 4444 @DomName('SVGRectElement.height') |
| 4445 @DocsEditable() |
| 4446 final AnimatedLength height; |
| 4447 |
| 4448 @DomName('SVGRectElement.rx') |
| 4449 @DocsEditable() |
| 4450 final AnimatedLength rx; |
| 4451 |
| 4452 @DomName('SVGRectElement.ry') |
| 4453 @DocsEditable() |
| 4454 final AnimatedLength ry; |
| 4455 |
| 4456 @DomName('SVGRectElement.width') |
| 4457 @DocsEditable() |
| 4458 final AnimatedLength width; |
| 4459 |
| 4460 @DomName('SVGRectElement.x') |
| 4461 @DocsEditable() |
| 4462 final AnimatedLength x; |
| 4463 |
| 4464 @DomName('SVGRectElement.y') |
| 4465 @DocsEditable() |
| 4466 final AnimatedLength y; |
| 4467 } |
| 4468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4469 // for details. All rights reserved. Use of this source code is governed by a |
| 4470 // BSD-style license that can be found in the LICENSE file. |
| 4471 |
| 4472 |
| 4473 @DocsEditable() |
| 4474 @DomName('SVGRenderingIntent') |
| 4475 @Unstable() |
| 4476 @Native("SVGRenderingIntent") |
| 4477 class RenderingIntent extends Interceptor { |
| 4478 // To suppress missing implicit constructor warnings. |
| 4479 factory RenderingIntent._() { throw new UnsupportedError("Not supported"); } |
| 4480 |
| 4481 @DomName('SVGRenderingIntent.RENDERING_INTENT_ABSOLUTE_COLORIMETRIC') |
| 4482 @DocsEditable() |
| 4483 static const int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; |
| 4484 |
| 4485 @DomName('SVGRenderingIntent.RENDERING_INTENT_AUTO') |
| 4486 @DocsEditable() |
| 4487 static const int RENDERING_INTENT_AUTO = 1; |
| 4488 |
| 4489 @DomName('SVGRenderingIntent.RENDERING_INTENT_PERCEPTUAL') |
| 4490 @DocsEditable() |
| 4491 static const int RENDERING_INTENT_PERCEPTUAL = 2; |
| 4492 |
| 4493 @DomName('SVGRenderingIntent.RENDERING_INTENT_RELATIVE_COLORIMETRIC') |
| 4494 @DocsEditable() |
| 4495 static const int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; |
| 4496 |
| 4497 @DomName('SVGRenderingIntent.RENDERING_INTENT_SATURATION') |
| 4498 @DocsEditable() |
| 4499 static const int RENDERING_INTENT_SATURATION = 4; |
| 4500 |
| 4501 @DomName('SVGRenderingIntent.RENDERING_INTENT_UNKNOWN') |
| 4502 @DocsEditable() |
| 4503 static const int RENDERING_INTENT_UNKNOWN = 0; |
| 4504 } |
| 4505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4506 // for details. All rights reserved. Use of this source code is governed by a |
| 4507 // BSD-style license that can be found in the LICENSE file. |
| 4508 |
| 4509 |
| 4510 @DocsEditable() |
| 4511 @DomName('SVGScriptElement') |
| 4512 @Unstable() |
| 4513 @Native("SVGScriptElement") |
| 4514 class ScriptElement extends SvgElement implements UriReference { |
| 4515 // To suppress missing implicit constructor warnings. |
| 4516 factory ScriptElement._() { throw new UnsupportedError("Not supported"); } |
| 4517 |
| 4518 @DomName('SVGScriptElement.SVGScriptElement') |
| 4519 @DocsEditable() |
| 4520 factory ScriptElement() => _SvgElementFactoryProvider.createSvgElement_tag("sc
ript"); |
| 4521 /** |
| 4522 * Constructor instantiated by the DOM when a custom element has been created. |
| 4523 * |
| 4524 * This can only be called by subclasses from their created constructor. |
| 4525 */ |
| 4526 ScriptElement.created() : super.created(); |
| 4527 |
| 4528 @DomName('SVGScriptElement.type') |
| 4529 @DocsEditable() |
| 4530 String type; |
| 4531 |
| 4532 // From SVGURIReference |
| 4533 |
| 4534 @DomName('SVGScriptElement.href') |
| 4535 @DocsEditable() |
| 4536 final AnimatedString href; |
| 4537 } |
| 4538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4539 // for details. All rights reserved. Use of this source code is governed by a |
| 4540 // BSD-style license that can be found in the LICENSE file. |
| 4541 |
| 4542 |
| 4543 @DocsEditable() |
| 4544 @DomName('SVGSetElement') |
| 4545 @SupportedBrowser(SupportedBrowser.CHROME) |
| 4546 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 4547 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 4548 @Unstable() |
| 4549 @Native("SVGSetElement") |
| 4550 class SetElement extends AnimationElement { |
| 4551 // To suppress missing implicit constructor warnings. |
| 4552 factory SetElement._() { throw new UnsupportedError("Not supported"); } |
| 4553 |
| 4554 @DomName('SVGSetElement.SVGSetElement') |
| 4555 @DocsEditable() |
| 4556 factory SetElement() => _SvgElementFactoryProvider.createSvgElement_tag("set")
; |
| 4557 /** |
| 4558 * Constructor instantiated by the DOM when a custom element has been created. |
| 4559 * |
| 4560 * This can only be called by subclasses from their created constructor. |
| 4561 */ |
| 4562 SetElement.created() : super.created(); |
| 4563 |
| 4564 /// Checks if this type is supported on the current platform. |
| 4565 static bool get supported => SvgElement.isTagSupported('set') && (new SvgEleme
nt.tag('set') is SetElement); |
| 4566 } |
| 4567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4568 // for details. All rights reserved. Use of this source code is governed by a |
| 4569 // BSD-style license that can be found in the LICENSE file. |
| 4570 |
| 4571 |
| 4572 @DocsEditable() |
| 4573 @DomName('SVGStopElement') |
| 4574 @Unstable() |
| 4575 @Native("SVGStopElement") |
| 4576 class StopElement extends SvgElement { |
| 4577 // To suppress missing implicit constructor warnings. |
| 4578 factory StopElement._() { throw new UnsupportedError("Not supported"); } |
| 4579 |
| 4580 @DomName('SVGStopElement.SVGStopElement') |
| 4581 @DocsEditable() |
| 4582 factory StopElement() => _SvgElementFactoryProvider.createSvgElement_tag("stop
"); |
| 4583 /** |
| 4584 * Constructor instantiated by the DOM when a custom element has been created. |
| 4585 * |
| 4586 * This can only be called by subclasses from their created constructor. |
| 4587 */ |
| 4588 StopElement.created() : super.created(); |
| 4589 |
| 4590 @JSName('offset') |
| 4591 @DomName('SVGStopElement.offset') |
| 4592 @DocsEditable() |
| 4593 final AnimatedNumber gradientOffset; |
| 4594 } |
| 4595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4596 // for details. All rights reserved. Use of this source code is governed by a |
| 4597 // BSD-style license that can be found in the LICENSE file. |
| 4598 |
| 4599 |
| 4600 @DocsEditable() |
| 4601 @DomName('SVGStringList') |
| 4602 @Unstable() |
| 4603 @Native("SVGStringList") |
| 4604 class StringList extends Interceptor with ListMixin<String>, ImmutableListMixin<
String> implements List<String> { |
| 4605 // To suppress missing implicit constructor warnings. |
| 4606 factory StringList._() { throw new UnsupportedError("Not supported"); } |
| 4607 |
| 4608 @DomName('SVGStringList.length') |
| 4609 @DocsEditable() |
| 4610 @Experimental() // untriaged |
| 4611 int get length => JS("int", "#.length", this); |
| 4612 |
| 4613 @DomName('SVGStringList.numberOfItems') |
| 4614 @DocsEditable() |
| 4615 final int numberOfItems; |
| 4616 |
| 4617 String operator[](int index) { |
| 4618 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 4619 index, index, length)) |
| 4620 throw new RangeError.index(index, this); |
| 4621 return this.getItem(index); |
| 4622 } |
| 4623 void operator[]=(int index, String value) { |
| 4624 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 4625 } |
| 4626 // -- start List<String> mixins. |
| 4627 // String is the element type. |
| 4628 |
| 4629 |
| 4630 set length(int value) { |
| 4631 throw new UnsupportedError("Cannot resize immutable List."); |
| 4632 } |
| 4633 |
| 4634 String get first { |
| 4635 if (this.length > 0) { |
| 4636 return JS('String', '#[0]', this); |
| 4637 } |
| 4638 throw new StateError("No elements"); |
| 4639 } |
| 4640 |
| 4641 String get last { |
| 4642 int len = this.length; |
| 4643 if (len > 0) { |
| 4644 return JS('String', '#[#]', this, len - 1); |
| 4645 } |
| 4646 throw new StateError("No elements"); |
| 4647 } |
| 4648 |
| 4649 String get single { |
| 4650 int len = this.length; |
| 4651 if (len == 1) { |
| 4652 return JS('String', '#[0]', this); |
| 4653 } |
| 4654 if (len == 0) throw new StateError("No elements"); |
| 4655 throw new StateError("More than one element"); |
| 4656 } |
| 4657 |
| 4658 String elementAt(int index) => this[index]; |
| 4659 // -- end List<String> mixins. |
| 4660 |
| 4661 @DomName('SVGStringList.__setter__') |
| 4662 @DocsEditable() |
| 4663 @Experimental() // untriaged |
| 4664 void __setter__(int index, String value) native; |
| 4665 |
| 4666 @DomName('SVGStringList.appendItem') |
| 4667 @DocsEditable() |
| 4668 String appendItem(String item) native; |
| 4669 |
| 4670 @DomName('SVGStringList.clear') |
| 4671 @DocsEditable() |
| 4672 void clear() native; |
| 4673 |
| 4674 @DomName('SVGStringList.getItem') |
| 4675 @DocsEditable() |
| 4676 String getItem(int index) native; |
| 4677 |
| 4678 @DomName('SVGStringList.initialize') |
| 4679 @DocsEditable() |
| 4680 String initialize(String item) native; |
| 4681 |
| 4682 @DomName('SVGStringList.insertItemBefore') |
| 4683 @DocsEditable() |
| 4684 String insertItemBefore(String item, int index) native; |
| 4685 |
| 4686 @DomName('SVGStringList.removeItem') |
| 4687 @DocsEditable() |
| 4688 String removeItem(int index) native; |
| 4689 |
| 4690 @DomName('SVGStringList.replaceItem') |
| 4691 @DocsEditable() |
| 4692 String replaceItem(String item, int index) native; |
| 4693 } |
| 4694 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4695 // for details. All rights reserved. Use of this source code is governed by a |
| 4696 // BSD-style license that can be found in the LICENSE file. |
| 4697 |
| 4698 |
| 4699 @DocsEditable() |
| 4700 @DomName('SVGStyleElement') |
| 4701 // http://www.w3.org/TR/SVG/types.html#InterfaceSVGStylable |
| 4702 @Experimental() // nonstandard |
| 4703 @Native("SVGStyleElement") |
| 4704 class StyleElement extends SvgElement { |
| 4705 // To suppress missing implicit constructor warnings. |
| 4706 factory StyleElement._() { throw new UnsupportedError("Not supported"); } |
| 4707 |
| 4708 @DomName('SVGStyleElement.SVGStyleElement') |
| 4709 @DocsEditable() |
| 4710 factory StyleElement() => _SvgElementFactoryProvider.createSvgElement_tag("sty
le"); |
| 4711 /** |
| 4712 * Constructor instantiated by the DOM when a custom element has been created. |
| 4713 * |
| 4714 * This can only be called by subclasses from their created constructor. |
| 4715 */ |
| 4716 StyleElement.created() : super.created(); |
| 4717 |
| 4718 @DomName('SVGStyleElement.disabled') |
| 4719 @DocsEditable() |
| 4720 bool disabled; |
| 4721 |
| 4722 @DomName('SVGStyleElement.media') |
| 4723 @DocsEditable() |
| 4724 String media; |
| 4725 |
| 4726 @DomName('SVGStyleElement.sheet') |
| 4727 @DocsEditable() |
| 4728 @Experimental() // untriaged |
| 4729 final StyleSheet sheet; |
| 4730 |
| 4731 // Shadowing definition. |
| 4732 String get title => JS("String", "#.title", this); |
| 4733 |
| 4734 set title(String value) { |
| 4735 JS("void", "#.title = #", this, value); |
| 4736 } |
| 4737 |
| 4738 @DomName('SVGStyleElement.type') |
| 4739 @DocsEditable() |
| 4740 String type; |
| 4741 } |
| 4742 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4743 // for details. All rights reserved. Use of this source code is governed by a |
| 4744 // BSD-style license that can be found in the LICENSE file. |
| 4745 |
| 4746 |
| 4747 class _AttributeClassSet extends CssClassSetImpl { |
| 4748 final Element _element; |
| 4749 |
| 4750 _AttributeClassSet(this._element); |
| 4751 |
| 4752 Set<String> readClasses() { |
| 4753 var classname = _element.attributes['class']; |
| 4754 |
| 4755 Set<String> s = new LinkedHashSet<String>(); |
| 4756 if (classname == null) { |
| 4757 return s; |
| 4758 } |
| 4759 for (String name in classname.split(' ')) { |
| 4760 String trimmed = name.trim(); |
| 4761 if (!trimmed.isEmpty) { |
| 4762 s.add(trimmed); |
| 4763 } |
| 4764 } |
| 4765 return s; |
| 4766 } |
| 4767 |
| 4768 void writeClasses(Set s) { |
| 4769 _element.attributes['class'] = s.join(' '); |
| 4770 } |
| 4771 } |
| 4772 |
| 4773 @DomName('SVGElement') |
| 4774 @Unstable() |
| 4775 @Native("SVGElement") |
| 4776 class SvgElement extends Element implements GlobalEventHandlers { |
| 4777 static final _START_TAG_REGEXP = new RegExp('<(\\w+)'); |
| 4778 |
| 4779 factory SvgElement.tag(String tag) => |
| 4780 document.createElementNS("http://www.w3.org/2000/svg", tag); |
| 4781 factory SvgElement.svg(String svg, |
| 4782 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { |
| 4783 |
| 4784 if (validator == null && treeSanitizer == null) { |
| 4785 validator = new NodeValidatorBuilder.common()..allowSvg(); |
| 4786 } |
| 4787 |
| 4788 final match = _START_TAG_REGEXP.firstMatch(svg); |
| 4789 var parentElement; |
| 4790 if (match != null && match.group(1).toLowerCase() == 'svg') { |
| 4791 parentElement = document.body; |
| 4792 } else { |
| 4793 parentElement = new SvgSvgElement(); |
| 4794 } |
| 4795 var fragment = parentElement.createFragment(svg, validator: validator, |
| 4796 treeSanitizer: treeSanitizer); |
| 4797 return fragment.nodes.where((e) => e is SvgElement).single; |
| 4798 } |
| 4799 |
| 4800 CssClassSet get classes => new _AttributeClassSet(this); |
| 4801 |
| 4802 List<Element> get children => new FilteredElementList(this); |
| 4803 |
| 4804 set children(List<Element> value) { |
| 4805 final children = this.children; |
| 4806 children.clear(); |
| 4807 children.addAll(value); |
| 4808 } |
| 4809 |
| 4810 String get outerHtml { |
| 4811 final container = new Element.tag("div"); |
| 4812 final SvgElement cloned = this.clone(true); |
| 4813 container.children.add(cloned); |
| 4814 return container.innerHtml; |
| 4815 } |
| 4816 |
| 4817 String get innerHtml { |
| 4818 final container = new Element.tag("div"); |
| 4819 final SvgElement cloned = this.clone(true); |
| 4820 container.children.addAll(cloned.children); |
| 4821 return container.innerHtml; |
| 4822 } |
| 4823 |
| 4824 set innerHtml(String value) { |
| 4825 this.setInnerHtml(value); |
| 4826 } |
| 4827 |
| 4828 DocumentFragment createFragment(String svg, |
| 4829 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { |
| 4830 |
| 4831 if (treeSanitizer == null) { |
| 4832 if (validator == null) { |
| 4833 validator = new NodeValidatorBuilder.common() |
| 4834 ..allowSvg(); |
| 4835 } |
| 4836 treeSanitizer = new NodeTreeSanitizer(validator); |
| 4837 } |
| 4838 |
| 4839 // We create a fragment which will parse in the HTML parser |
| 4840 var html = '<svg version="1.1">$svg</svg>'; |
| 4841 var fragment = document.body.createFragment(html, |
| 4842 treeSanitizer: treeSanitizer); |
| 4843 |
| 4844 var svgFragment = new DocumentFragment(); |
| 4845 // The root is the <svg/> element, need to pull out the contents. |
| 4846 var root = fragment.nodes.single; |
| 4847 while (root.firstChild != null) { |
| 4848 svgFragment.append(root.firstChild); |
| 4849 } |
| 4850 return svgFragment; |
| 4851 } |
| 4852 |
| 4853 // Unsupported methods inherited from Element. |
| 4854 |
| 4855 @DomName('Element.insertAdjacentText') |
| 4856 void insertAdjacentText(String where, String text) { |
| 4857 throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG."); |
| 4858 } |
| 4859 |
| 4860 @DomName('Element.insertAdjacentHTML') |
| 4861 void insertAdjacentHtml(String where, String text, {NodeValidator validator, |
| 4862 NodeTreeSanitizer treeSanitizer}) { |
| 4863 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); |
| 4864 } |
| 4865 |
| 4866 @DomName('Element.insertAdjacentElement') |
| 4867 Element insertAdjacentElement(String where, Element element) { |
| 4868 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); |
| 4869 } |
| 4870 |
| 4871 HtmlCollection get _children { |
| 4872 throw new UnsupportedError("Cannot get _children on SVG."); |
| 4873 } |
| 4874 |
| 4875 bool get isContentEditable => false; |
| 4876 void click() { |
| 4877 throw new UnsupportedError("Cannot invoke click SVG."); |
| 4878 } |
| 4879 |
| 4880 /** |
| 4881 * Checks to see if the SVG element type is supported by the current platform. |
| 4882 * |
| 4883 * The tag should be a valid SVG element tag name. |
| 4884 */ |
| 4885 static bool isTagSupported(String tag) { |
| 4886 var e = new SvgElement.tag(tag); |
| 4887 return e is SvgElement && !(e is UnknownElement); |
| 4888 } |
| 4889 |
| 4890 // To suppress missing implicit constructor warnings. |
| 4891 factory SvgElement._() { throw new UnsupportedError("Not supported"); } |
| 4892 |
| 4893 /* |
| 4894 @DomName('SVGElement.abortEvent') |
| 4895 @DocsEditable() |
| 4896 @Experimental() // untriaged |
| 4897 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); |
| 4898 |
| 4899 @DomName('SVGElement.blurEvent') |
| 4900 @DocsEditable() |
| 4901 @Experimental() // untriaged |
| 4902 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); |
| 4903 |
| 4904 @DomName('SVGElement.canplayEvent') |
| 4905 @DocsEditable() |
| 4906 @Experimental() // untriaged |
| 4907 static const EventStreamProvider<Event> canPlayEvent = const EventStreamProvid
er<Event>('canplay'); |
| 4908 |
| 4909 @DomName('SVGElement.canplaythroughEvent') |
| 4910 @DocsEditable() |
| 4911 @Experimental() // untriaged |
| 4912 static const EventStreamProvider<Event> canPlayThroughEvent = const EventStrea
mProvider<Event>('canplaythrough'); |
| 4913 |
| 4914 @DomName('SVGElement.changeEvent') |
| 4915 @DocsEditable() |
| 4916 @Experimental() // untriaged |
| 4917 static const EventStreamProvider<Event> changeEvent = const EventStreamProvide
r<Event>('change'); |
| 4918 |
| 4919 @DomName('SVGElement.clickEvent') |
| 4920 @DocsEditable() |
| 4921 @Experimental() // untriaged |
| 4922 static const EventStreamProvider<MouseEvent> clickEvent = const EventStreamPro
vider<MouseEvent>('click'); |
| 4923 |
| 4924 @DomName('SVGElement.contextmenuEvent') |
| 4925 @DocsEditable() |
| 4926 @Experimental() // untriaged |
| 4927 static const EventStreamProvider<MouseEvent> contextMenuEvent = const EventStr
eamProvider<MouseEvent>('contextmenu'); |
| 4928 |
| 4929 @DomName('SVGElement.dblclickEvent') |
| 4930 @DocsEditable() |
| 4931 @Experimental() // untriaged |
| 4932 static const EventStreamProvider<Event> doubleClickEvent = const EventStreamPr
ovider<Event>('dblclick'); |
| 4933 |
| 4934 @DomName('SVGElement.dragEvent') |
| 4935 @DocsEditable() |
| 4936 @Experimental() // untriaged |
| 4937 static const EventStreamProvider<MouseEvent> dragEvent = const EventStreamProv
ider<MouseEvent>('drag'); |
| 4938 |
| 4939 @DomName('SVGElement.dragendEvent') |
| 4940 @DocsEditable() |
| 4941 @Experimental() // untriaged |
| 4942 static const EventStreamProvider<MouseEvent> dragEndEvent = const EventStreamP
rovider<MouseEvent>('dragend'); |
| 4943 |
| 4944 @DomName('SVGElement.dragenterEvent') |
| 4945 @DocsEditable() |
| 4946 @Experimental() // untriaged |
| 4947 static const EventStreamProvider<MouseEvent> dragEnterEvent = const EventStrea
mProvider<MouseEvent>('dragenter'); |
| 4948 |
| 4949 @DomName('SVGElement.dragleaveEvent') |
| 4950 @DocsEditable() |
| 4951 @Experimental() // untriaged |
| 4952 static const EventStreamProvider<MouseEvent> dragLeaveEvent = const EventStrea
mProvider<MouseEvent>('dragleave'); |
| 4953 |
| 4954 @DomName('SVGElement.dragoverEvent') |
| 4955 @DocsEditable() |
| 4956 @Experimental() // untriaged |
| 4957 static const EventStreamProvider<MouseEvent> dragOverEvent = const EventStream
Provider<MouseEvent>('dragover'); |
| 4958 |
| 4959 @DomName('SVGElement.dragstartEvent') |
| 4960 @DocsEditable() |
| 4961 @Experimental() // untriaged |
| 4962 static const EventStreamProvider<MouseEvent> dragStartEvent = const EventStrea
mProvider<MouseEvent>('dragstart'); |
| 4963 |
| 4964 @DomName('SVGElement.dropEvent') |
| 4965 @DocsEditable() |
| 4966 @Experimental() // untriaged |
| 4967 static const EventStreamProvider<MouseEvent> dropEvent = const EventStreamProv
ider<MouseEvent>('drop'); |
| 4968 |
| 4969 @DomName('SVGElement.durationchangeEvent') |
| 4970 @DocsEditable() |
| 4971 @Experimental() // untriaged |
| 4972 static const EventStreamProvider<Event> durationChangeEvent = const EventStrea
mProvider<Event>('durationchange'); |
| 4973 |
| 4974 @DomName('SVGElement.emptiedEvent') |
| 4975 @DocsEditable() |
| 4976 @Experimental() // untriaged |
| 4977 static const EventStreamProvider<Event> emptiedEvent = const EventStreamProvid
er<Event>('emptied'); |
| 4978 |
| 4979 @DomName('SVGElement.endedEvent') |
| 4980 @DocsEditable() |
| 4981 @Experimental() // untriaged |
| 4982 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); |
| 4983 |
| 4984 @DomName('SVGElement.errorEvent') |
| 4985 @DocsEditable() |
| 4986 @Experimental() // untriaged |
| 4987 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 4988 |
| 4989 @DomName('SVGElement.focusEvent') |
| 4990 @DocsEditable() |
| 4991 @Experimental() // untriaged |
| 4992 static const EventStreamProvider<Event> focusEvent = const EventStreamProvider
<Event>('focus'); |
| 4993 |
| 4994 @DomName('SVGElement.inputEvent') |
| 4995 @DocsEditable() |
| 4996 @Experimental() // untriaged |
| 4997 static const EventStreamProvider<Event> inputEvent = const EventStreamProvider
<Event>('input'); |
| 4998 |
| 4999 @DomName('SVGElement.invalidEvent') |
| 5000 @DocsEditable() |
| 5001 @Experimental() // untriaged |
| 5002 static const EventStreamProvider<Event> invalidEvent = const EventStreamProvid
er<Event>('invalid'); |
| 5003 |
| 5004 @DomName('SVGElement.keydownEvent') |
| 5005 @DocsEditable() |
| 5006 @Experimental() // untriaged |
| 5007 static const EventStreamProvider<KeyboardEvent> keyDownEvent = const EventStre
amProvider<KeyboardEvent>('keydown'); |
| 5008 |
| 5009 @DomName('SVGElement.keypressEvent') |
| 5010 @DocsEditable() |
| 5011 @Experimental() // untriaged |
| 5012 static const EventStreamProvider<KeyboardEvent> keyPressEvent = const EventStr
eamProvider<KeyboardEvent>('keypress'); |
| 5013 |
| 5014 @DomName('SVGElement.keyupEvent') |
| 5015 @DocsEditable() |
| 5016 @Experimental() // untriaged |
| 5017 static const EventStreamProvider<KeyboardEvent> keyUpEvent = const EventStream
Provider<KeyboardEvent>('keyup'); |
| 5018 |
| 5019 @DomName('SVGElement.loadEvent') |
| 5020 @DocsEditable() |
| 5021 @Experimental() // untriaged |
| 5022 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider<
Event>('load'); |
| 5023 |
| 5024 @DomName('SVGElement.loadeddataEvent') |
| 5025 @DocsEditable() |
| 5026 @Experimental() // untriaged |
| 5027 static const EventStreamProvider<Event> loadedDataEvent = const EventStreamPro
vider<Event>('loadeddata'); |
| 5028 |
| 5029 @DomName('SVGElement.loadedmetadataEvent') |
| 5030 @DocsEditable() |
| 5031 @Experimental() // untriaged |
| 5032 static const EventStreamProvider<Event> loadedMetadataEvent = const EventStrea
mProvider<Event>('loadedmetadata'); |
| 5033 |
| 5034 @DomName('SVGElement.mousedownEvent') |
| 5035 @DocsEditable() |
| 5036 @Experimental() // untriaged |
| 5037 static const EventStreamProvider<MouseEvent> mouseDownEvent = const EventStrea
mProvider<MouseEvent>('mousedown'); |
| 5038 |
| 5039 @DomName('SVGElement.mouseenterEvent') |
| 5040 @DocsEditable() |
| 5041 @Experimental() // untriaged |
| 5042 static const EventStreamProvider<MouseEvent> mouseEnterEvent = const EventStre
amProvider<MouseEvent>('mouseenter'); |
| 5043 |
| 5044 @DomName('SVGElement.mouseleaveEvent') |
| 5045 @DocsEditable() |
| 5046 @Experimental() // untriaged |
| 5047 static const EventStreamProvider<MouseEvent> mouseLeaveEvent = const EventStre
amProvider<MouseEvent>('mouseleave'); |
| 5048 |
| 5049 @DomName('SVGElement.mousemoveEvent') |
| 5050 @DocsEditable() |
| 5051 @Experimental() // untriaged |
| 5052 static const EventStreamProvider<MouseEvent> mouseMoveEvent = const EventStrea
mProvider<MouseEvent>('mousemove'); |
| 5053 |
| 5054 @DomName('SVGElement.mouseoutEvent') |
| 5055 @DocsEditable() |
| 5056 @Experimental() // untriaged |
| 5057 static const EventStreamProvider<MouseEvent> mouseOutEvent = const EventStream
Provider<MouseEvent>('mouseout'); |
| 5058 |
| 5059 @DomName('SVGElement.mouseoverEvent') |
| 5060 @DocsEditable() |
| 5061 @Experimental() // untriaged |
| 5062 static const EventStreamProvider<MouseEvent> mouseOverEvent = const EventStrea
mProvider<MouseEvent>('mouseover'); |
| 5063 |
| 5064 @DomName('SVGElement.mouseupEvent') |
| 5065 @DocsEditable() |
| 5066 @Experimental() // untriaged |
| 5067 static const EventStreamProvider<MouseEvent> mouseUpEvent = const EventStreamP
rovider<MouseEvent>('mouseup'); |
| 5068 |
| 5069 @DomName('SVGElement.mousewheelEvent') |
| 5070 @DocsEditable() |
| 5071 @Experimental() // untriaged |
| 5072 static const EventStreamProvider<WheelEvent> mouseWheelEvent = const EventStre
amProvider<WheelEvent>('mousewheel'); |
| 5073 |
| 5074 @DomName('SVGElement.pauseEvent') |
| 5075 @DocsEditable() |
| 5076 @Experimental() // untriaged |
| 5077 static const EventStreamProvider<Event> pauseEvent = const EventStreamProvider
<Event>('pause'); |
| 5078 |
| 5079 @DomName('SVGElement.playEvent') |
| 5080 @DocsEditable() |
| 5081 @Experimental() // untriaged |
| 5082 static const EventStreamProvider<Event> playEvent = const EventStreamProvider<
Event>('play'); |
| 5083 |
| 5084 @DomName('SVGElement.playingEvent') |
| 5085 @DocsEditable() |
| 5086 @Experimental() // untriaged |
| 5087 static const EventStreamProvider<Event> playingEvent = const EventStreamProvid
er<Event>('playing'); |
| 5088 |
| 5089 @DomName('SVGElement.ratechangeEvent') |
| 5090 @DocsEditable() |
| 5091 @Experimental() // untriaged |
| 5092 static const EventStreamProvider<Event> rateChangeEvent = const EventStreamPro
vider<Event>('ratechange'); |
| 5093 |
| 5094 @DomName('SVGElement.resetEvent') |
| 5095 @DocsEditable() |
| 5096 @Experimental() // untriaged |
| 5097 static const EventStreamProvider<Event> resetEvent = const EventStreamProvider
<Event>('reset'); |
| 5098 |
| 5099 @DomName('SVGElement.resizeEvent') |
| 5100 @DocsEditable() |
| 5101 @Experimental() // untriaged |
| 5102 static const EventStreamProvider<Event> resizeEvent = const EventStreamProvide
r<Event>('resize'); |
| 5103 |
| 5104 @DomName('SVGElement.scrollEvent') |
| 5105 @DocsEditable() |
| 5106 @Experimental() // untriaged |
| 5107 static const EventStreamProvider<Event> scrollEvent = const EventStreamProvide
r<Event>('scroll'); |
| 5108 |
| 5109 @DomName('SVGElement.seekedEvent') |
| 5110 @DocsEditable() |
| 5111 @Experimental() // untriaged |
| 5112 static const EventStreamProvider<Event> seekedEvent = const EventStreamProvide
r<Event>('seeked'); |
| 5113 |
| 5114 @DomName('SVGElement.seekingEvent') |
| 5115 @DocsEditable() |
| 5116 @Experimental() // untriaged |
| 5117 static const EventStreamProvider<Event> seekingEvent = const EventStreamProvid
er<Event>('seeking'); |
| 5118 |
| 5119 @DomName('SVGElement.selectEvent') |
| 5120 @DocsEditable() |
| 5121 @Experimental() // untriaged |
| 5122 static const EventStreamProvider<Event> selectEvent = const EventStreamProvide
r<Event>('select'); |
| 5123 |
| 5124 @DomName('SVGElement.stalledEvent') |
| 5125 @DocsEditable() |
| 5126 @Experimental() // untriaged |
| 5127 static const EventStreamProvider<Event> stalledEvent = const EventStreamProvid
er<Event>('stalled'); |
| 5128 |
| 5129 @DomName('SVGElement.submitEvent') |
| 5130 @DocsEditable() |
| 5131 @Experimental() // untriaged |
| 5132 static const EventStreamProvider<Event> submitEvent = const EventStreamProvide
r<Event>('submit'); |
| 5133 |
| 5134 @DomName('SVGElement.suspendEvent') |
| 5135 @DocsEditable() |
| 5136 @Experimental() // untriaged |
| 5137 static const EventStreamProvider<Event> suspendEvent = const EventStreamProvid
er<Event>('suspend'); |
| 5138 |
| 5139 @DomName('SVGElement.timeupdateEvent') |
| 5140 @DocsEditable() |
| 5141 @Experimental() // untriaged |
| 5142 static const EventStreamProvider<Event> timeUpdateEvent = const EventStreamPro
vider<Event>('timeupdate'); |
| 5143 |
| 5144 @DomName('SVGElement.volumechangeEvent') |
| 5145 @DocsEditable() |
| 5146 @Experimental() // untriaged |
| 5147 static const EventStreamProvider<Event> volumeChangeEvent = const EventStreamP
rovider<Event>('volumechange'); |
| 5148 |
| 5149 @DomName('SVGElement.waitingEvent') |
| 5150 @DocsEditable() |
| 5151 @Experimental() // untriaged |
| 5152 static const EventStreamProvider<Event> waitingEvent = const EventStreamProvid
er<Event>('waiting'); |
| 5153 */ |
| 5154 /** |
| 5155 * Constructor instantiated by the DOM when a custom element has been created. |
| 5156 * |
| 5157 * This can only be called by subclasses from their created constructor. |
| 5158 */ |
| 5159 SvgElement.created() : super.created(); |
| 5160 |
| 5161 // Shadowing definition. |
| 5162 AnimatedString get _svgClassName => JS("AnimatedString", "#.className", this); |
| 5163 |
| 5164 @JSName('ownerSVGElement') |
| 5165 @DomName('SVGElement.ownerSVGElement') |
| 5166 @DocsEditable() |
| 5167 final SvgSvgElement ownerSvgElement; |
| 5168 |
| 5169 // Use implementation from Element. |
| 5170 // final CssStyleDeclaration style; |
| 5171 |
| 5172 // Shadowing definition. |
| 5173 int get tabIndex => JS("int", "#.tabIndex", this); |
| 5174 |
| 5175 set tabIndex(int value) { |
| 5176 JS("void", "#.tabIndex = #", this, value); |
| 5177 } |
| 5178 |
| 5179 @DomName('SVGElement.viewportElement') |
| 5180 @DocsEditable() |
| 5181 final SvgElement viewportElement; |
| 5182 |
| 5183 @DomName('SVGElement.xmlbase') |
| 5184 @DocsEditable() |
| 5185 String xmlbase; |
| 5186 |
| 5187 @DomName('SVGElement.xmllang') |
| 5188 @DocsEditable() |
| 5189 @Experimental() // untriaged |
| 5190 String xmllang; |
| 5191 |
| 5192 @DomName('SVGElement.xmlspace') |
| 5193 @DocsEditable() |
| 5194 @Experimental() // untriaged |
| 5195 String xmlspace; |
| 5196 |
| 5197 @DomName('SVGElement.onabort') |
| 5198 @DocsEditable() |
| 5199 @Experimental() // untriaged |
| 5200 ElementStream<Event> get onAbort => abortEvent.forElement(this); |
| 5201 |
| 5202 @DomName('SVGElement.onblur') |
| 5203 @DocsEditable() |
| 5204 @Experimental() // untriaged |
| 5205 ElementStream<Event> get onBlur => blurEvent.forElement(this); |
| 5206 |
| 5207 @DomName('SVGElement.oncanplay') |
| 5208 @DocsEditable() |
| 5209 @Experimental() // untriaged |
| 5210 ElementStream<Event> get onCanPlay => canPlayEvent.forElement(this); |
| 5211 |
| 5212 @DomName('SVGElement.oncanplaythrough') |
| 5213 @DocsEditable() |
| 5214 @Experimental() // untriaged |
| 5215 ElementStream<Event> get onCanPlayThrough => canPlayThroughEvent.forElement(th
is); |
| 5216 |
| 5217 @DomName('SVGElement.onchange') |
| 5218 @DocsEditable() |
| 5219 @Experimental() // untriaged |
| 5220 ElementStream<Event> get onChange => changeEvent.forElement(this); |
| 5221 |
| 5222 @DomName('SVGElement.onclick') |
| 5223 @DocsEditable() |
| 5224 @Experimental() // untriaged |
| 5225 ElementStream<MouseEvent> get onClick => clickEvent.forElement(this); |
| 5226 |
| 5227 @DomName('SVGElement.oncontextmenu') |
| 5228 @DocsEditable() |
| 5229 @Experimental() // untriaged |
| 5230 ElementStream<MouseEvent> get onContextMenu => contextMenuEvent.forElement(thi
s); |
| 5231 |
| 5232 @DomName('SVGElement.ondblclick') |
| 5233 @DocsEditable() |
| 5234 @Experimental() // untriaged |
| 5235 ElementStream<Event> get onDoubleClick => doubleClickEvent.forElement(this); |
| 5236 |
| 5237 @DomName('SVGElement.ondrag') |
| 5238 @DocsEditable() |
| 5239 @Experimental() // untriaged |
| 5240 ElementStream<MouseEvent> get onDrag => dragEvent.forElement(this); |
| 5241 |
| 5242 @DomName('SVGElement.ondragend') |
| 5243 @DocsEditable() |
| 5244 @Experimental() // untriaged |
| 5245 ElementStream<MouseEvent> get onDragEnd => dragEndEvent.forElement(this); |
| 5246 |
| 5247 @DomName('SVGElement.ondragenter') |
| 5248 @DocsEditable() |
| 5249 @Experimental() // untriaged |
| 5250 ElementStream<MouseEvent> get onDragEnter => dragEnterEvent.forElement(this); |
| 5251 |
| 5252 @DomName('SVGElement.ondragleave') |
| 5253 @DocsEditable() |
| 5254 @Experimental() // untriaged |
| 5255 ElementStream<MouseEvent> get onDragLeave => dragLeaveEvent.forElement(this); |
| 5256 |
| 5257 @DomName('SVGElement.ondragover') |
| 5258 @DocsEditable() |
| 5259 @Experimental() // untriaged |
| 5260 ElementStream<MouseEvent> get onDragOver => dragOverEvent.forElement(this); |
| 5261 |
| 5262 @DomName('SVGElement.ondragstart') |
| 5263 @DocsEditable() |
| 5264 @Experimental() // untriaged |
| 5265 ElementStream<MouseEvent> get onDragStart => dragStartEvent.forElement(this); |
| 5266 |
| 5267 @DomName('SVGElement.ondrop') |
| 5268 @DocsEditable() |
| 5269 @Experimental() // untriaged |
| 5270 ElementStream<MouseEvent> get onDrop => dropEvent.forElement(this); |
| 5271 |
| 5272 @DomName('SVGElement.ondurationchange') |
| 5273 @DocsEditable() |
| 5274 @Experimental() // untriaged |
| 5275 ElementStream<Event> get onDurationChange => durationChangeEvent.forElement(th
is); |
| 5276 |
| 5277 @DomName('SVGElement.onemptied') |
| 5278 @DocsEditable() |
| 5279 @Experimental() // untriaged |
| 5280 ElementStream<Event> get onEmptied => emptiedEvent.forElement(this); |
| 5281 |
| 5282 @DomName('SVGElement.onended') |
| 5283 @DocsEditable() |
| 5284 @Experimental() // untriaged |
| 5285 ElementStream<Event> get onEnded => endedEvent.forElement(this); |
| 5286 |
| 5287 @DomName('SVGElement.onerror') |
| 5288 @DocsEditable() |
| 5289 @Experimental() // untriaged |
| 5290 ElementStream<Event> get onError => errorEvent.forElement(this); |
| 5291 |
| 5292 @DomName('SVGElement.onfocus') |
| 5293 @DocsEditable() |
| 5294 @Experimental() // untriaged |
| 5295 ElementStream<Event> get onFocus => focusEvent.forElement(this); |
| 5296 |
| 5297 @DomName('SVGElement.oninput') |
| 5298 @DocsEditable() |
| 5299 @Experimental() // untriaged |
| 5300 ElementStream<Event> get onInput => inputEvent.forElement(this); |
| 5301 |
| 5302 @DomName('SVGElement.oninvalid') |
| 5303 @DocsEditable() |
| 5304 @Experimental() // untriaged |
| 5305 ElementStream<Event> get onInvalid => invalidEvent.forElement(this); |
| 5306 |
| 5307 @DomName('SVGElement.onkeydown') |
| 5308 @DocsEditable() |
| 5309 @Experimental() // untriaged |
| 5310 ElementStream<KeyboardEvent> get onKeyDown => keyDownEvent.forElement(this); |
| 5311 |
| 5312 @DomName('SVGElement.onkeypress') |
| 5313 @DocsEditable() |
| 5314 @Experimental() // untriaged |
| 5315 ElementStream<KeyboardEvent> get onKeyPress => keyPressEvent.forElement(this); |
| 5316 |
| 5317 @DomName('SVGElement.onkeyup') |
| 5318 @DocsEditable() |
| 5319 @Experimental() // untriaged |
| 5320 ElementStream<KeyboardEvent> get onKeyUp => keyUpEvent.forElement(this); |
| 5321 |
| 5322 @DomName('SVGElement.onload') |
| 5323 @DocsEditable() |
| 5324 @Experimental() // untriaged |
| 5325 ElementStream<Event> get onLoad => loadEvent.forElement(this); |
| 5326 |
| 5327 @DomName('SVGElement.onloadeddata') |
| 5328 @DocsEditable() |
| 5329 @Experimental() // untriaged |
| 5330 ElementStream<Event> get onLoadedData => loadedDataEvent.forElement(this); |
| 5331 |
| 5332 @DomName('SVGElement.onloadedmetadata') |
| 5333 @DocsEditable() |
| 5334 @Experimental() // untriaged |
| 5335 ElementStream<Event> get onLoadedMetadata => loadedMetadataEvent.forElement(th
is); |
| 5336 |
| 5337 @DomName('SVGElement.onmousedown') |
| 5338 @DocsEditable() |
| 5339 @Experimental() // untriaged |
| 5340 ElementStream<MouseEvent> get onMouseDown => mouseDownEvent.forElement(this); |
| 5341 |
| 5342 @DomName('SVGElement.onmouseenter') |
| 5343 @DocsEditable() |
| 5344 @Experimental() // untriaged |
| 5345 ElementStream<MouseEvent> get onMouseEnter => mouseEnterEvent.forElement(this)
; |
| 5346 |
| 5347 @DomName('SVGElement.onmouseleave') |
| 5348 @DocsEditable() |
| 5349 @Experimental() // untriaged |
| 5350 ElementStream<MouseEvent> get onMouseLeave => mouseLeaveEvent.forElement(this)
; |
| 5351 |
| 5352 @DomName('SVGElement.onmousemove') |
| 5353 @DocsEditable() |
| 5354 @Experimental() // untriaged |
| 5355 ElementStream<MouseEvent> get onMouseMove => mouseMoveEvent.forElement(this); |
| 5356 |
| 5357 @DomName('SVGElement.onmouseout') |
| 5358 @DocsEditable() |
| 5359 @Experimental() // untriaged |
| 5360 ElementStream<MouseEvent> get onMouseOut => mouseOutEvent.forElement(this); |
| 5361 |
| 5362 @DomName('SVGElement.onmouseover') |
| 5363 @DocsEditable() |
| 5364 @Experimental() // untriaged |
| 5365 ElementStream<MouseEvent> get onMouseOver => mouseOverEvent.forElement(this); |
| 5366 |
| 5367 @DomName('SVGElement.onmouseup') |
| 5368 @DocsEditable() |
| 5369 @Experimental() // untriaged |
| 5370 ElementStream<MouseEvent> get onMouseUp => mouseUpEvent.forElement(this); |
| 5371 |
| 5372 @DomName('SVGElement.onmousewheel') |
| 5373 @DocsEditable() |
| 5374 @Experimental() // untriaged |
| 5375 ElementStream<WheelEvent> get onMouseWheel => mouseWheelEvent.forElement(this)
; |
| 5376 |
| 5377 @DomName('SVGElement.onpause') |
| 5378 @DocsEditable() |
| 5379 @Experimental() // untriaged |
| 5380 ElementStream<Event> get onPause => pauseEvent.forElement(this); |
| 5381 |
| 5382 @DomName('SVGElement.onplay') |
| 5383 @DocsEditable() |
| 5384 @Experimental() // untriaged |
| 5385 ElementStream<Event> get onPlay => playEvent.forElement(this); |
| 5386 |
| 5387 @DomName('SVGElement.onplaying') |
| 5388 @DocsEditable() |
| 5389 @Experimental() // untriaged |
| 5390 ElementStream<Event> get onPlaying => playingEvent.forElement(this); |
| 5391 |
| 5392 @DomName('SVGElement.onratechange') |
| 5393 @DocsEditable() |
| 5394 @Experimental() // untriaged |
| 5395 ElementStream<Event> get onRateChange => rateChangeEvent.forElement(this); |
| 5396 |
| 5397 @DomName('SVGElement.onreset') |
| 5398 @DocsEditable() |
| 5399 @Experimental() // untriaged |
| 5400 ElementStream<Event> get onReset => resetEvent.forElement(this); |
| 5401 |
| 5402 @DomName('SVGElement.onresize') |
| 5403 @DocsEditable() |
| 5404 @Experimental() // untriaged |
| 5405 ElementStream<Event> get onResize => resizeEvent.forElement(this); |
| 5406 |
| 5407 @DomName('SVGElement.onscroll') |
| 5408 @DocsEditable() |
| 5409 @Experimental() // untriaged |
| 5410 ElementStream<Event> get onScroll => scrollEvent.forElement(this); |
| 5411 |
| 5412 @DomName('SVGElement.onseeked') |
| 5413 @DocsEditable() |
| 5414 @Experimental() // untriaged |
| 5415 ElementStream<Event> get onSeeked => seekedEvent.forElement(this); |
| 5416 |
| 5417 @DomName('SVGElement.onseeking') |
| 5418 @DocsEditable() |
| 5419 @Experimental() // untriaged |
| 5420 ElementStream<Event> get onSeeking => seekingEvent.forElement(this); |
| 5421 |
| 5422 @DomName('SVGElement.onselect') |
| 5423 @DocsEditable() |
| 5424 @Experimental() // untriaged |
| 5425 ElementStream<Event> get onSelect => selectEvent.forElement(this); |
| 5426 |
| 5427 @DomName('SVGElement.onstalled') |
| 5428 @DocsEditable() |
| 5429 @Experimental() // untriaged |
| 5430 ElementStream<Event> get onStalled => stalledEvent.forElement(this); |
| 5431 |
| 5432 @DomName('SVGElement.onsubmit') |
| 5433 @DocsEditable() |
| 5434 @Experimental() // untriaged |
| 5435 ElementStream<Event> get onSubmit => submitEvent.forElement(this); |
| 5436 |
| 5437 @DomName('SVGElement.onsuspend') |
| 5438 @DocsEditable() |
| 5439 @Experimental() // untriaged |
| 5440 ElementStream<Event> get onSuspend => suspendEvent.forElement(this); |
| 5441 |
| 5442 @DomName('SVGElement.ontimeupdate') |
| 5443 @DocsEditable() |
| 5444 @Experimental() // untriaged |
| 5445 ElementStream<Event> get onTimeUpdate => timeUpdateEvent.forElement(this); |
| 5446 |
| 5447 @DomName('SVGElement.onvolumechange') |
| 5448 @DocsEditable() |
| 5449 @Experimental() // untriaged |
| 5450 ElementStream<Event> get onVolumeChange => volumeChangeEvent.forElement(this); |
| 5451 |
| 5452 @DomName('SVGElement.onwaiting') |
| 5453 @DocsEditable() |
| 5454 @Experimental() // untriaged |
| 5455 ElementStream<Event> get onWaiting => waitingEvent.forElement(this); |
| 5456 |
| 5457 } |
| 5458 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5459 // for details. All rights reserved. Use of this source code is governed by a |
| 5460 // BSD-style license that can be found in the LICENSE file. |
| 5461 |
| 5462 |
| 5463 @DomName('SVGSVGElement') |
| 5464 @Unstable() |
| 5465 @Native("SVGSVGElement") |
| 5466 class SvgSvgElement extends GraphicsElement implements FitToViewBox, ZoomAndPan
{ |
| 5467 factory SvgSvgElement() { |
| 5468 final el = new SvgElement.tag("svg"); |
| 5469 // The SVG spec requires the version attribute to match the spec version |
| 5470 el.attributes['version'] = "1.1"; |
| 5471 return el; |
| 5472 } |
| 5473 |
| 5474 // To suppress missing implicit constructor warnings. |
| 5475 factory SvgSvgElement._() { throw new UnsupportedError("Not supported"); } |
| 5476 /** |
| 5477 * Constructor instantiated by the DOM when a custom element has been created. |
| 5478 * |
| 5479 * This can only be called by subclasses from their created constructor. |
| 5480 */ |
| 5481 SvgSvgElement.created() : super.created(); |
| 5482 |
| 5483 @DomName('SVGSVGElement.currentScale') |
| 5484 @DocsEditable() |
| 5485 num currentScale; |
| 5486 |
| 5487 @DomName('SVGSVGElement.currentTranslate') |
| 5488 @DocsEditable() |
| 5489 final Point currentTranslate; |
| 5490 |
| 5491 @DomName('SVGSVGElement.currentView') |
| 5492 @DocsEditable() |
| 5493 final ViewSpec currentView; |
| 5494 |
| 5495 @DomName('SVGSVGElement.height') |
| 5496 @DocsEditable() |
| 5497 final AnimatedLength height; |
| 5498 |
| 5499 @DomName('SVGSVGElement.pixelUnitToMillimeterX') |
| 5500 @DocsEditable() |
| 5501 final double pixelUnitToMillimeterX; |
| 5502 |
| 5503 @DomName('SVGSVGElement.pixelUnitToMillimeterY') |
| 5504 @DocsEditable() |
| 5505 final double pixelUnitToMillimeterY; |
| 5506 |
| 5507 @DomName('SVGSVGElement.screenPixelToMillimeterX') |
| 5508 @DocsEditable() |
| 5509 final double screenPixelToMillimeterX; |
| 5510 |
| 5511 @DomName('SVGSVGElement.screenPixelToMillimeterY') |
| 5512 @DocsEditable() |
| 5513 final double screenPixelToMillimeterY; |
| 5514 |
| 5515 @DomName('SVGSVGElement.useCurrentView') |
| 5516 @DocsEditable() |
| 5517 final bool useCurrentView; |
| 5518 |
| 5519 @DomName('SVGSVGElement.viewport') |
| 5520 @DocsEditable() |
| 5521 final Rect viewport; |
| 5522 |
| 5523 @DomName('SVGSVGElement.width') |
| 5524 @DocsEditable() |
| 5525 final AnimatedLength width; |
| 5526 |
| 5527 @DomName('SVGSVGElement.x') |
| 5528 @DocsEditable() |
| 5529 final AnimatedLength x; |
| 5530 |
| 5531 @DomName('SVGSVGElement.y') |
| 5532 @DocsEditable() |
| 5533 final AnimatedLength y; |
| 5534 |
| 5535 @DomName('SVGSVGElement.animationsPaused') |
| 5536 @DocsEditable() |
| 5537 bool animationsPaused() native; |
| 5538 |
| 5539 @DomName('SVGSVGElement.checkEnclosure') |
| 5540 @DocsEditable() |
| 5541 bool checkEnclosure(SvgElement element, Rect rect) native; |
| 5542 |
| 5543 @DomName('SVGSVGElement.checkIntersection') |
| 5544 @DocsEditable() |
| 5545 bool checkIntersection(SvgElement element, Rect rect) native; |
| 5546 |
| 5547 @JSName('createSVGAngle') |
| 5548 @DomName('SVGSVGElement.createSVGAngle') |
| 5549 @DocsEditable() |
| 5550 Angle createSvgAngle() native; |
| 5551 |
| 5552 @JSName('createSVGLength') |
| 5553 @DomName('SVGSVGElement.createSVGLength') |
| 5554 @DocsEditable() |
| 5555 Length createSvgLength() native; |
| 5556 |
| 5557 @JSName('createSVGMatrix') |
| 5558 @DomName('SVGSVGElement.createSVGMatrix') |
| 5559 @DocsEditable() |
| 5560 Matrix createSvgMatrix() native; |
| 5561 |
| 5562 @JSName('createSVGNumber') |
| 5563 @DomName('SVGSVGElement.createSVGNumber') |
| 5564 @DocsEditable() |
| 5565 Number createSvgNumber() native; |
| 5566 |
| 5567 @JSName('createSVGPoint') |
| 5568 @DomName('SVGSVGElement.createSVGPoint') |
| 5569 @DocsEditable() |
| 5570 Point createSvgPoint() native; |
| 5571 |
| 5572 @JSName('createSVGRect') |
| 5573 @DomName('SVGSVGElement.createSVGRect') |
| 5574 @DocsEditable() |
| 5575 Rect createSvgRect() native; |
| 5576 |
| 5577 @JSName('createSVGTransform') |
| 5578 @DomName('SVGSVGElement.createSVGTransform') |
| 5579 @DocsEditable() |
| 5580 Transform createSvgTransform() native; |
| 5581 |
| 5582 @JSName('createSVGTransformFromMatrix') |
| 5583 @DomName('SVGSVGElement.createSVGTransformFromMatrix') |
| 5584 @DocsEditable() |
| 5585 Transform createSvgTransformFromMatrix(Matrix matrix) native; |
| 5586 |
| 5587 @DomName('SVGSVGElement.deselectAll') |
| 5588 @DocsEditable() |
| 5589 void deselectAll() native; |
| 5590 |
| 5591 @DomName('SVGSVGElement.forceRedraw') |
| 5592 @DocsEditable() |
| 5593 void forceRedraw() native; |
| 5594 |
| 5595 @DomName('SVGSVGElement.getCurrentTime') |
| 5596 @DocsEditable() |
| 5597 double getCurrentTime() native; |
| 5598 |
| 5599 @DomName('SVGSVGElement.getElementById') |
| 5600 @DocsEditable() |
| 5601 Element getElementById(String elementId) native; |
| 5602 |
| 5603 @DomName('SVGSVGElement.getEnclosureList') |
| 5604 @DocsEditable() |
| 5605 @Returns('NodeList') |
| 5606 @Creates('NodeList') |
| 5607 List<Node> getEnclosureList(Rect rect, SvgElement referenceElement) native; |
| 5608 |
| 5609 @DomName('SVGSVGElement.getIntersectionList') |
| 5610 @DocsEditable() |
| 5611 @Returns('NodeList') |
| 5612 @Creates('NodeList') |
| 5613 List<Node> getIntersectionList(Rect rect, SvgElement referenceElement) native; |
| 5614 |
| 5615 @DomName('SVGSVGElement.pauseAnimations') |
| 5616 @DocsEditable() |
| 5617 void pauseAnimations() native; |
| 5618 |
| 5619 @DomName('SVGSVGElement.setCurrentTime') |
| 5620 @DocsEditable() |
| 5621 void setCurrentTime(num seconds) native; |
| 5622 |
| 5623 @DomName('SVGSVGElement.suspendRedraw') |
| 5624 @DocsEditable() |
| 5625 int suspendRedraw(int maxWaitMilliseconds) native; |
| 5626 |
| 5627 @DomName('SVGSVGElement.unpauseAnimations') |
| 5628 @DocsEditable() |
| 5629 void unpauseAnimations() native; |
| 5630 |
| 5631 @DomName('SVGSVGElement.unsuspendRedraw') |
| 5632 @DocsEditable() |
| 5633 void unsuspendRedraw(int suspendHandleId) native; |
| 5634 |
| 5635 @DomName('SVGSVGElement.unsuspendRedrawAll') |
| 5636 @DocsEditable() |
| 5637 void unsuspendRedrawAll() native; |
| 5638 |
| 5639 // From SVGFitToViewBox |
| 5640 |
| 5641 @DomName('SVGSVGElement.preserveAspectRatio') |
| 5642 @DocsEditable() |
| 5643 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 5644 |
| 5645 @DomName('SVGSVGElement.viewBox') |
| 5646 @DocsEditable() |
| 5647 final AnimatedRect viewBox; |
| 5648 |
| 5649 // From SVGZoomAndPan |
| 5650 |
| 5651 @DomName('SVGSVGElement.zoomAndPan') |
| 5652 @DocsEditable() |
| 5653 int zoomAndPan; |
| 5654 |
| 5655 } |
| 5656 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5657 // for details. All rights reserved. Use of this source code is governed by a |
| 5658 // BSD-style license that can be found in the LICENSE file. |
| 5659 |
| 5660 |
| 5661 @DocsEditable() |
| 5662 @DomName('SVGSwitchElement') |
| 5663 @Unstable() |
| 5664 @Native("SVGSwitchElement") |
| 5665 class SwitchElement extends GraphicsElement { |
| 5666 // To suppress missing implicit constructor warnings. |
| 5667 factory SwitchElement._() { throw new UnsupportedError("Not supported"); } |
| 5668 |
| 5669 @DomName('SVGSwitchElement.SVGSwitchElement') |
| 5670 @DocsEditable() |
| 5671 factory SwitchElement() => _SvgElementFactoryProvider.createSvgElement_tag("sw
itch"); |
| 5672 /** |
| 5673 * Constructor instantiated by the DOM when a custom element has been created. |
| 5674 * |
| 5675 * This can only be called by subclasses from their created constructor. |
| 5676 */ |
| 5677 SwitchElement.created() : super.created(); |
| 5678 } |
| 5679 // 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 |
| 5681 // BSD-style license that can be found in the LICENSE file. |
| 5682 |
| 5683 |
| 5684 @DocsEditable() |
| 5685 @DomName('SVGSymbolElement') |
| 5686 @Unstable() |
| 5687 @Native("SVGSymbolElement") |
| 5688 class SymbolElement extends SvgElement implements FitToViewBox { |
| 5689 // To suppress missing implicit constructor warnings. |
| 5690 factory SymbolElement._() { throw new UnsupportedError("Not supported"); } |
| 5691 |
| 5692 @DomName('SVGSymbolElement.SVGSymbolElement') |
| 5693 @DocsEditable() |
| 5694 factory SymbolElement() => _SvgElementFactoryProvider.createSvgElement_tag("sy
mbol"); |
| 5695 /** |
| 5696 * Constructor instantiated by the DOM when a custom element has been created. |
| 5697 * |
| 5698 * This can only be called by subclasses from their created constructor. |
| 5699 */ |
| 5700 SymbolElement.created() : super.created(); |
| 5701 |
| 5702 // From SVGFitToViewBox |
| 5703 |
| 5704 @DomName('SVGSymbolElement.preserveAspectRatio') |
| 5705 @DocsEditable() |
| 5706 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 5707 |
| 5708 @DomName('SVGSymbolElement.viewBox') |
| 5709 @DocsEditable() |
| 5710 final AnimatedRect viewBox; |
| 5711 } |
| 5712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5713 // for details. All rights reserved. Use of this source code is governed by a |
| 5714 // BSD-style license that can be found in the LICENSE file. |
| 5715 |
| 5716 |
| 5717 @DocsEditable() |
| 5718 @DomName('SVGTSpanElement') |
| 5719 @Unstable() |
| 5720 @Native("SVGTSpanElement") |
| 5721 class TSpanElement extends TextPositioningElement { |
| 5722 // To suppress missing implicit constructor warnings. |
| 5723 factory TSpanElement._() { throw new UnsupportedError("Not supported"); } |
| 5724 |
| 5725 @DomName('SVGTSpanElement.SVGTSpanElement') |
| 5726 @DocsEditable() |
| 5727 factory TSpanElement() => _SvgElementFactoryProvider.createSvgElement_tag("tsp
an"); |
| 5728 /** |
| 5729 * Constructor instantiated by the DOM when a custom element has been created. |
| 5730 * |
| 5731 * This can only be called by subclasses from their created constructor. |
| 5732 */ |
| 5733 TSpanElement.created() : super.created(); |
| 5734 } |
| 5735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5736 // for details. All rights reserved. Use of this source code is governed by a |
| 5737 // BSD-style license that can be found in the LICENSE file. |
| 5738 |
| 5739 |
| 5740 @DocsEditable() |
| 5741 @DomName('SVGTests') |
| 5742 @Unstable() |
| 5743 abstract class Tests extends Interceptor { |
| 5744 // To suppress missing implicit constructor warnings. |
| 5745 factory Tests._() { throw new UnsupportedError("Not supported"); } |
| 5746 |
| 5747 final StringList requiredExtensions; |
| 5748 |
| 5749 final StringList requiredFeatures; |
| 5750 |
| 5751 final StringList systemLanguage; |
| 5752 |
| 5753 bool hasExtension(String extension); |
| 5754 } |
| 5755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5756 // for details. All rights reserved. Use of this source code is governed by a |
| 5757 // BSD-style license that can be found in the LICENSE file. |
| 5758 |
| 5759 |
| 5760 @DocsEditable() |
| 5761 @DomName('SVGTextContentElement') |
| 5762 @Unstable() |
| 5763 @Native("SVGTextContentElement") |
| 5764 class TextContentElement extends GraphicsElement { |
| 5765 // To suppress missing implicit constructor warnings. |
| 5766 factory TextContentElement._() { throw new UnsupportedError("Not supported");
} |
| 5767 /** |
| 5768 * Constructor instantiated by the DOM when a custom element has been created. |
| 5769 * |
| 5770 * This can only be called by subclasses from their created constructor. |
| 5771 */ |
| 5772 TextContentElement.created() : super.created(); |
| 5773 |
| 5774 @DomName('SVGTextContentElement.LENGTHADJUST_SPACING') |
| 5775 @DocsEditable() |
| 5776 static const int LENGTHADJUST_SPACING = 1; |
| 5777 |
| 5778 @DomName('SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS') |
| 5779 @DocsEditable() |
| 5780 static const int LENGTHADJUST_SPACINGANDGLYPHS = 2; |
| 5781 |
| 5782 @DomName('SVGTextContentElement.LENGTHADJUST_UNKNOWN') |
| 5783 @DocsEditable() |
| 5784 static const int LENGTHADJUST_UNKNOWN = 0; |
| 5785 |
| 5786 @DomName('SVGTextContentElement.lengthAdjust') |
| 5787 @DocsEditable() |
| 5788 final AnimatedEnumeration lengthAdjust; |
| 5789 |
| 5790 @DomName('SVGTextContentElement.textLength') |
| 5791 @DocsEditable() |
| 5792 final AnimatedLength textLength; |
| 5793 |
| 5794 @DomName('SVGTextContentElement.getCharNumAtPosition') |
| 5795 @DocsEditable() |
| 5796 int getCharNumAtPosition(Point point) native; |
| 5797 |
| 5798 @DomName('SVGTextContentElement.getComputedTextLength') |
| 5799 @DocsEditable() |
| 5800 double getComputedTextLength() native; |
| 5801 |
| 5802 @DomName('SVGTextContentElement.getEndPositionOfChar') |
| 5803 @DocsEditable() |
| 5804 Point getEndPositionOfChar(int offset) native; |
| 5805 |
| 5806 @DomName('SVGTextContentElement.getExtentOfChar') |
| 5807 @DocsEditable() |
| 5808 Rect getExtentOfChar(int offset) native; |
| 5809 |
| 5810 @DomName('SVGTextContentElement.getNumberOfChars') |
| 5811 @DocsEditable() |
| 5812 int getNumberOfChars() native; |
| 5813 |
| 5814 @DomName('SVGTextContentElement.getRotationOfChar') |
| 5815 @DocsEditable() |
| 5816 double getRotationOfChar(int offset) native; |
| 5817 |
| 5818 @DomName('SVGTextContentElement.getStartPositionOfChar') |
| 5819 @DocsEditable() |
| 5820 Point getStartPositionOfChar(int offset) native; |
| 5821 |
| 5822 @DomName('SVGTextContentElement.getSubStringLength') |
| 5823 @DocsEditable() |
| 5824 double getSubStringLength(int offset, int length) native; |
| 5825 |
| 5826 @DomName('SVGTextContentElement.selectSubString') |
| 5827 @DocsEditable() |
| 5828 void selectSubString(int offset, int length) native; |
| 5829 } |
| 5830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5831 // for details. All rights reserved. Use of this source code is governed by a |
| 5832 // BSD-style license that can be found in the LICENSE file. |
| 5833 |
| 5834 |
| 5835 @DocsEditable() |
| 5836 @DomName('SVGTextElement') |
| 5837 @Unstable() |
| 5838 @Native("SVGTextElement") |
| 5839 class TextElement extends TextPositioningElement { |
| 5840 // To suppress missing implicit constructor warnings. |
| 5841 factory TextElement._() { throw new UnsupportedError("Not supported"); } |
| 5842 |
| 5843 @DomName('SVGTextElement.SVGTextElement') |
| 5844 @DocsEditable() |
| 5845 factory TextElement() => _SvgElementFactoryProvider.createSvgElement_tag("text
"); |
| 5846 /** |
| 5847 * Constructor instantiated by the DOM when a custom element has been created. |
| 5848 * |
| 5849 * This can only be called by subclasses from their created constructor. |
| 5850 */ |
| 5851 TextElement.created() : super.created(); |
| 5852 } |
| 5853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5854 // for details. All rights reserved. Use of this source code is governed by a |
| 5855 // BSD-style license that can be found in the LICENSE file. |
| 5856 |
| 5857 |
| 5858 @DocsEditable() |
| 5859 @DomName('SVGTextPathElement') |
| 5860 @Unstable() |
| 5861 @Native("SVGTextPathElement") |
| 5862 class TextPathElement extends TextContentElement implements UriReference { |
| 5863 // To suppress missing implicit constructor warnings. |
| 5864 factory TextPathElement._() { throw new UnsupportedError("Not supported"); } |
| 5865 /** |
| 5866 * Constructor instantiated by the DOM when a custom element has been created. |
| 5867 * |
| 5868 * This can only be called by subclasses from their created constructor. |
| 5869 */ |
| 5870 TextPathElement.created() : super.created(); |
| 5871 |
| 5872 @DomName('SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN') |
| 5873 @DocsEditable() |
| 5874 static const int TEXTPATH_METHODTYPE_ALIGN = 1; |
| 5875 |
| 5876 @DomName('SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH') |
| 5877 @DocsEditable() |
| 5878 static const int TEXTPATH_METHODTYPE_STRETCH = 2; |
| 5879 |
| 5880 @DomName('SVGTextPathElement.TEXTPATH_METHODTYPE_UNKNOWN') |
| 5881 @DocsEditable() |
| 5882 static const int TEXTPATH_METHODTYPE_UNKNOWN = 0; |
| 5883 |
| 5884 @DomName('SVGTextPathElement.TEXTPATH_SPACINGTYPE_AUTO') |
| 5885 @DocsEditable() |
| 5886 static const int TEXTPATH_SPACINGTYPE_AUTO = 1; |
| 5887 |
| 5888 @DomName('SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT') |
| 5889 @DocsEditable() |
| 5890 static const int TEXTPATH_SPACINGTYPE_EXACT = 2; |
| 5891 |
| 5892 @DomName('SVGTextPathElement.TEXTPATH_SPACINGTYPE_UNKNOWN') |
| 5893 @DocsEditable() |
| 5894 static const int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; |
| 5895 |
| 5896 @DomName('SVGTextPathElement.method') |
| 5897 @DocsEditable() |
| 5898 final AnimatedEnumeration method; |
| 5899 |
| 5900 @DomName('SVGTextPathElement.spacing') |
| 5901 @DocsEditable() |
| 5902 final AnimatedEnumeration spacing; |
| 5903 |
| 5904 @DomName('SVGTextPathElement.startOffset') |
| 5905 @DocsEditable() |
| 5906 final AnimatedLength startOffset; |
| 5907 |
| 5908 // From SVGURIReference |
| 5909 |
| 5910 @DomName('SVGTextPathElement.href') |
| 5911 @DocsEditable() |
| 5912 final AnimatedString href; |
| 5913 } |
| 5914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5915 // for details. All rights reserved. Use of this source code is governed by a |
| 5916 // BSD-style license that can be found in the LICENSE file. |
| 5917 |
| 5918 |
| 5919 @DocsEditable() |
| 5920 @DomName('SVGTextPositioningElement') |
| 5921 @Unstable() |
| 5922 @Native("SVGTextPositioningElement") |
| 5923 class TextPositioningElement extends TextContentElement { |
| 5924 // To suppress missing implicit constructor warnings. |
| 5925 factory TextPositioningElement._() { throw new UnsupportedError("Not supported
"); } |
| 5926 /** |
| 5927 * Constructor instantiated by the DOM when a custom element has been created. |
| 5928 * |
| 5929 * This can only be called by subclasses from their created constructor. |
| 5930 */ |
| 5931 TextPositioningElement.created() : super.created(); |
| 5932 |
| 5933 @DomName('SVGTextPositioningElement.dx') |
| 5934 @DocsEditable() |
| 5935 final AnimatedLengthList dx; |
| 5936 |
| 5937 @DomName('SVGTextPositioningElement.dy') |
| 5938 @DocsEditable() |
| 5939 final AnimatedLengthList dy; |
| 5940 |
| 5941 @DomName('SVGTextPositioningElement.rotate') |
| 5942 @DocsEditable() |
| 5943 final AnimatedNumberList rotate; |
| 5944 |
| 5945 @DomName('SVGTextPositioningElement.x') |
| 5946 @DocsEditable() |
| 5947 final AnimatedLengthList x; |
| 5948 |
| 5949 @DomName('SVGTextPositioningElement.y') |
| 5950 @DocsEditable() |
| 5951 final AnimatedLengthList y; |
| 5952 } |
| 5953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5954 // for details. All rights reserved. Use of this source code is governed by a |
| 5955 // BSD-style license that can be found in the LICENSE file. |
| 5956 |
| 5957 |
| 5958 @DocsEditable() |
| 5959 @DomName('SVGTitleElement') |
| 5960 @Unstable() |
| 5961 @Native("SVGTitleElement") |
| 5962 class TitleElement extends SvgElement { |
| 5963 // To suppress missing implicit constructor warnings. |
| 5964 factory TitleElement._() { throw new UnsupportedError("Not supported"); } |
| 5965 |
| 5966 @DomName('SVGTitleElement.SVGTitleElement') |
| 5967 @DocsEditable() |
| 5968 factory TitleElement() => _SvgElementFactoryProvider.createSvgElement_tag("tit
le"); |
| 5969 /** |
| 5970 * Constructor instantiated by the DOM when a custom element has been created. |
| 5971 * |
| 5972 * This can only be called by subclasses from their created constructor. |
| 5973 */ |
| 5974 TitleElement.created() : super.created(); |
| 5975 } |
| 5976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5977 // for details. All rights reserved. Use of this source code is governed by a |
| 5978 // BSD-style license that can be found in the LICENSE file. |
| 5979 |
| 5980 |
| 5981 @DocsEditable() |
| 5982 @DomName('SVGTransform') |
| 5983 @Unstable() |
| 5984 @Native("SVGTransform") |
| 5985 class Transform extends Interceptor { |
| 5986 // To suppress missing implicit constructor warnings. |
| 5987 factory Transform._() { throw new UnsupportedError("Not supported"); } |
| 5988 |
| 5989 @DomName('SVGTransform.SVG_TRANSFORM_MATRIX') |
| 5990 @DocsEditable() |
| 5991 static const int SVG_TRANSFORM_MATRIX = 1; |
| 5992 |
| 5993 @DomName('SVGTransform.SVG_TRANSFORM_ROTATE') |
| 5994 @DocsEditable() |
| 5995 static const int SVG_TRANSFORM_ROTATE = 4; |
| 5996 |
| 5997 @DomName('SVGTransform.SVG_TRANSFORM_SCALE') |
| 5998 @DocsEditable() |
| 5999 static const int SVG_TRANSFORM_SCALE = 3; |
| 6000 |
| 6001 @DomName('SVGTransform.SVG_TRANSFORM_SKEWX') |
| 6002 @DocsEditable() |
| 6003 static const int SVG_TRANSFORM_SKEWX = 5; |
| 6004 |
| 6005 @DomName('SVGTransform.SVG_TRANSFORM_SKEWY') |
| 6006 @DocsEditable() |
| 6007 static const int SVG_TRANSFORM_SKEWY = 6; |
| 6008 |
| 6009 @DomName('SVGTransform.SVG_TRANSFORM_TRANSLATE') |
| 6010 @DocsEditable() |
| 6011 static const int SVG_TRANSFORM_TRANSLATE = 2; |
| 6012 |
| 6013 @DomName('SVGTransform.SVG_TRANSFORM_UNKNOWN') |
| 6014 @DocsEditable() |
| 6015 static const int SVG_TRANSFORM_UNKNOWN = 0; |
| 6016 |
| 6017 @DomName('SVGTransform.angle') |
| 6018 @DocsEditable() |
| 6019 final double angle; |
| 6020 |
| 6021 @DomName('SVGTransform.matrix') |
| 6022 @DocsEditable() |
| 6023 final Matrix matrix; |
| 6024 |
| 6025 @DomName('SVGTransform.type') |
| 6026 @DocsEditable() |
| 6027 final int type; |
| 6028 |
| 6029 @DomName('SVGTransform.setMatrix') |
| 6030 @DocsEditable() |
| 6031 void setMatrix(Matrix matrix) native; |
| 6032 |
| 6033 @DomName('SVGTransform.setRotate') |
| 6034 @DocsEditable() |
| 6035 void setRotate(num angle, num cx, num cy) native; |
| 6036 |
| 6037 @DomName('SVGTransform.setScale') |
| 6038 @DocsEditable() |
| 6039 void setScale(num sx, num sy) native; |
| 6040 |
| 6041 @DomName('SVGTransform.setSkewX') |
| 6042 @DocsEditable() |
| 6043 void setSkewX(num angle) native; |
| 6044 |
| 6045 @DomName('SVGTransform.setSkewY') |
| 6046 @DocsEditable() |
| 6047 void setSkewY(num angle) native; |
| 6048 |
| 6049 @DomName('SVGTransform.setTranslate') |
| 6050 @DocsEditable() |
| 6051 void setTranslate(num tx, num ty) native; |
| 6052 } |
| 6053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6054 // for details. All rights reserved. Use of this source code is governed by a |
| 6055 // BSD-style license that can be found in the LICENSE file. |
| 6056 |
| 6057 |
| 6058 @DocsEditable() |
| 6059 @DomName('SVGTransformList') |
| 6060 @Unstable() |
| 6061 @Native("SVGTransformList") |
| 6062 class TransformList extends Interceptor with ListMixin<Transform>, ImmutableList
Mixin<Transform> implements List<Transform> { |
| 6063 // To suppress missing implicit constructor warnings. |
| 6064 factory TransformList._() { throw new UnsupportedError("Not supported"); } |
| 6065 |
| 6066 @DomName('SVGTransformList.length') |
| 6067 @DocsEditable() |
| 6068 @Experimental() // untriaged |
| 6069 int get length => JS("int", "#.length", this); |
| 6070 |
| 6071 @DomName('SVGTransformList.numberOfItems') |
| 6072 @DocsEditable() |
| 6073 final int numberOfItems; |
| 6074 |
| 6075 Transform operator[](int index) { |
| 6076 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 6077 index, index, length)) |
| 6078 throw new RangeError.index(index, this); |
| 6079 return this.getItem(index); |
| 6080 } |
| 6081 void operator[]=(int index, Transform value) { |
| 6082 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 6083 } |
| 6084 // -- start List<Transform> mixins. |
| 6085 // Transform is the element type. |
| 6086 |
| 6087 |
| 6088 set length(int value) { |
| 6089 throw new UnsupportedError("Cannot resize immutable List."); |
| 6090 } |
| 6091 |
| 6092 Transform get first { |
| 6093 if (this.length > 0) { |
| 6094 return JS('Transform', '#[0]', this); |
| 6095 } |
| 6096 throw new StateError("No elements"); |
| 6097 } |
| 6098 |
| 6099 Transform get last { |
| 6100 int len = this.length; |
| 6101 if (len > 0) { |
| 6102 return JS('Transform', '#[#]', this, len - 1); |
| 6103 } |
| 6104 throw new StateError("No elements"); |
| 6105 } |
| 6106 |
| 6107 Transform get single { |
| 6108 int len = this.length; |
| 6109 if (len == 1) { |
| 6110 return JS('Transform', '#[0]', this); |
| 6111 } |
| 6112 if (len == 0) throw new StateError("No elements"); |
| 6113 throw new StateError("More than one element"); |
| 6114 } |
| 6115 |
| 6116 Transform elementAt(int index) => this[index]; |
| 6117 // -- end List<Transform> mixins. |
| 6118 |
| 6119 @DomName('SVGTransformList.__setter__') |
| 6120 @DocsEditable() |
| 6121 @Experimental() // untriaged |
| 6122 void __setter__(int index, Transform value) native; |
| 6123 |
| 6124 @DomName('SVGTransformList.appendItem') |
| 6125 @DocsEditable() |
| 6126 Transform appendItem(Transform item) native; |
| 6127 |
| 6128 @DomName('SVGTransformList.clear') |
| 6129 @DocsEditable() |
| 6130 void clear() native; |
| 6131 |
| 6132 @DomName('SVGTransformList.consolidate') |
| 6133 @DocsEditable() |
| 6134 Transform consolidate() native; |
| 6135 |
| 6136 @JSName('createSVGTransformFromMatrix') |
| 6137 @DomName('SVGTransformList.createSVGTransformFromMatrix') |
| 6138 @DocsEditable() |
| 6139 Transform createSvgTransformFromMatrix(Matrix matrix) native; |
| 6140 |
| 6141 @DomName('SVGTransformList.getItem') |
| 6142 @DocsEditable() |
| 6143 Transform getItem(int index) native; |
| 6144 |
| 6145 @DomName('SVGTransformList.initialize') |
| 6146 @DocsEditable() |
| 6147 Transform initialize(Transform item) native; |
| 6148 |
| 6149 @DomName('SVGTransformList.insertItemBefore') |
| 6150 @DocsEditable() |
| 6151 Transform insertItemBefore(Transform item, int index) native; |
| 6152 |
| 6153 @DomName('SVGTransformList.removeItem') |
| 6154 @DocsEditable() |
| 6155 Transform removeItem(int index) native; |
| 6156 |
| 6157 @DomName('SVGTransformList.replaceItem') |
| 6158 @DocsEditable() |
| 6159 Transform replaceItem(Transform item, int index) native; |
| 6160 } |
| 6161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6162 // for details. All rights reserved. Use of this source code is governed by a |
| 6163 // BSD-style license that can be found in the LICENSE file. |
| 6164 |
| 6165 |
| 6166 @DocsEditable() |
| 6167 @DomName('SVGUnitTypes') |
| 6168 @Unstable() |
| 6169 @Native("SVGUnitTypes") |
| 6170 class UnitTypes extends Interceptor { |
| 6171 // To suppress missing implicit constructor warnings. |
| 6172 factory UnitTypes._() { throw new UnsupportedError("Not supported"); } |
| 6173 |
| 6174 @DomName('SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX') |
| 6175 @DocsEditable() |
| 6176 static const int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; |
| 6177 |
| 6178 @DomName('SVGUnitTypes.SVG_UNIT_TYPE_UNKNOWN') |
| 6179 @DocsEditable() |
| 6180 static const int SVG_UNIT_TYPE_UNKNOWN = 0; |
| 6181 |
| 6182 @DomName('SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE') |
| 6183 @DocsEditable() |
| 6184 static const int SVG_UNIT_TYPE_USERSPACEONUSE = 1; |
| 6185 } |
| 6186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6187 // for details. All rights reserved. Use of this source code is governed by a |
| 6188 // BSD-style license that can be found in the LICENSE file. |
| 6189 |
| 6190 |
| 6191 @DocsEditable() |
| 6192 @DomName('SVGURIReference') |
| 6193 @Unstable() |
| 6194 abstract class UriReference extends Interceptor { |
| 6195 // To suppress missing implicit constructor warnings. |
| 6196 factory UriReference._() { throw new UnsupportedError("Not supported"); } |
| 6197 |
| 6198 final AnimatedString href; |
| 6199 } |
| 6200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6201 // for details. All rights reserved. Use of this source code is governed by a |
| 6202 // BSD-style license that can be found in the LICENSE file. |
| 6203 |
| 6204 |
| 6205 @DocsEditable() |
| 6206 @DomName('SVGUseElement') |
| 6207 @Unstable() |
| 6208 @Native("SVGUseElement") |
| 6209 class UseElement extends GraphicsElement implements UriReference { |
| 6210 // To suppress missing implicit constructor warnings. |
| 6211 factory UseElement._() { throw new UnsupportedError("Not supported"); } |
| 6212 |
| 6213 @DomName('SVGUseElement.SVGUseElement') |
| 6214 @DocsEditable() |
| 6215 factory UseElement() => _SvgElementFactoryProvider.createSvgElement_tag("use")
; |
| 6216 /** |
| 6217 * Constructor instantiated by the DOM when a custom element has been created. |
| 6218 * |
| 6219 * This can only be called by subclasses from their created constructor. |
| 6220 */ |
| 6221 UseElement.created() : super.created(); |
| 6222 |
| 6223 @DomName('SVGUseElement.height') |
| 6224 @DocsEditable() |
| 6225 final AnimatedLength height; |
| 6226 |
| 6227 @DomName('SVGUseElement.width') |
| 6228 @DocsEditable() |
| 6229 final AnimatedLength width; |
| 6230 |
| 6231 @DomName('SVGUseElement.x') |
| 6232 @DocsEditable() |
| 6233 final AnimatedLength x; |
| 6234 |
| 6235 @DomName('SVGUseElement.y') |
| 6236 @DocsEditable() |
| 6237 final AnimatedLength y; |
| 6238 |
| 6239 // From SVGURIReference |
| 6240 |
| 6241 @DomName('SVGUseElement.href') |
| 6242 @DocsEditable() |
| 6243 final AnimatedString href; |
| 6244 } |
| 6245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6246 // for details. All rights reserved. Use of this source code is governed by a |
| 6247 // BSD-style license that can be found in the LICENSE file. |
| 6248 |
| 6249 |
| 6250 @DocsEditable() |
| 6251 @DomName('SVGViewElement') |
| 6252 @Unstable() |
| 6253 @Native("SVGViewElement") |
| 6254 class ViewElement extends SvgElement implements FitToViewBox, ZoomAndPan { |
| 6255 // To suppress missing implicit constructor warnings. |
| 6256 factory ViewElement._() { throw new UnsupportedError("Not supported"); } |
| 6257 |
| 6258 @DomName('SVGViewElement.SVGViewElement') |
| 6259 @DocsEditable() |
| 6260 factory ViewElement() => _SvgElementFactoryProvider.createSvgElement_tag("view
"); |
| 6261 /** |
| 6262 * Constructor instantiated by the DOM when a custom element has been created. |
| 6263 * |
| 6264 * This can only be called by subclasses from their created constructor. |
| 6265 */ |
| 6266 ViewElement.created() : super.created(); |
| 6267 |
| 6268 @DomName('SVGViewElement.viewTarget') |
| 6269 @DocsEditable() |
| 6270 final StringList viewTarget; |
| 6271 |
| 6272 // From SVGFitToViewBox |
| 6273 |
| 6274 @DomName('SVGViewElement.preserveAspectRatio') |
| 6275 @DocsEditable() |
| 6276 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 6277 |
| 6278 @DomName('SVGViewElement.viewBox') |
| 6279 @DocsEditable() |
| 6280 final AnimatedRect viewBox; |
| 6281 |
| 6282 // From SVGZoomAndPan |
| 6283 |
| 6284 @DomName('SVGViewElement.zoomAndPan') |
| 6285 @DocsEditable() |
| 6286 int zoomAndPan; |
| 6287 } |
| 6288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6289 // for details. All rights reserved. Use of this source code is governed by a |
| 6290 // BSD-style license that can be found in the LICENSE file. |
| 6291 |
| 6292 |
| 6293 @DocsEditable() |
| 6294 @DomName('SVGViewSpec') |
| 6295 @Unstable() |
| 6296 @Native("SVGViewSpec") |
| 6297 class ViewSpec extends Interceptor implements FitToViewBox, ZoomAndPan { |
| 6298 // To suppress missing implicit constructor warnings. |
| 6299 factory ViewSpec._() { throw new UnsupportedError("Not supported"); } |
| 6300 |
| 6301 @DomName('SVGViewSpec.preserveAspectRatioString') |
| 6302 @DocsEditable() |
| 6303 final String preserveAspectRatioString; |
| 6304 |
| 6305 @DomName('SVGViewSpec.transform') |
| 6306 @DocsEditable() |
| 6307 final TransformList transform; |
| 6308 |
| 6309 @DomName('SVGViewSpec.transformString') |
| 6310 @DocsEditable() |
| 6311 final String transformString; |
| 6312 |
| 6313 @DomName('SVGViewSpec.viewBoxString') |
| 6314 @DocsEditable() |
| 6315 final String viewBoxString; |
| 6316 |
| 6317 @DomName('SVGViewSpec.viewTarget') |
| 6318 @DocsEditable() |
| 6319 final SvgElement viewTarget; |
| 6320 |
| 6321 @DomName('SVGViewSpec.viewTargetString') |
| 6322 @DocsEditable() |
| 6323 final String viewTargetString; |
| 6324 |
| 6325 // From SVGFitToViewBox |
| 6326 |
| 6327 @DomName('SVGViewSpec.preserveAspectRatio') |
| 6328 @DocsEditable() |
| 6329 @Experimental() // nonstandard |
| 6330 final AnimatedPreserveAspectRatio preserveAspectRatio; |
| 6331 |
| 6332 @DomName('SVGViewSpec.viewBox') |
| 6333 @DocsEditable() |
| 6334 @Experimental() // nonstandard |
| 6335 final AnimatedRect viewBox; |
| 6336 |
| 6337 // From SVGZoomAndPan |
| 6338 |
| 6339 @DomName('SVGViewSpec.zoomAndPan') |
| 6340 @DocsEditable() |
| 6341 @Experimental() // nonstandard |
| 6342 int zoomAndPan; |
| 6343 } |
| 6344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6345 // for details. All rights reserved. Use of this source code is governed by a |
| 6346 // BSD-style license that can be found in the LICENSE file. |
| 6347 |
| 6348 |
| 6349 @DocsEditable() |
| 6350 @DomName('SVGZoomAndPan') |
| 6351 @Unstable() |
| 6352 abstract class ZoomAndPan extends Interceptor { |
| 6353 // To suppress missing implicit constructor warnings. |
| 6354 factory ZoomAndPan._() { throw new UnsupportedError("Not supported"); } |
| 6355 |
| 6356 @DomName('SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE') |
| 6357 @DocsEditable() |
| 6358 static const int SVG_ZOOMANDPAN_DISABLE = 1; |
| 6359 |
| 6360 @DomName('SVGZoomAndPan.SVG_ZOOMANDPAN_MAGNIFY') |
| 6361 @DocsEditable() |
| 6362 static const int SVG_ZOOMANDPAN_MAGNIFY = 2; |
| 6363 |
| 6364 @DomName('SVGZoomAndPan.SVG_ZOOMANDPAN_UNKNOWN') |
| 6365 @DocsEditable() |
| 6366 static const int SVG_ZOOMANDPAN_UNKNOWN = 0; |
| 6367 |
| 6368 int zoomAndPan; |
| 6369 } |
| 6370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6371 // for details. All rights reserved. Use of this source code is governed by a |
| 6372 // BSD-style license that can be found in the LICENSE file. |
| 6373 |
| 6374 |
| 6375 @DocsEditable() |
| 6376 @DomName('SVGZoomEvent') |
| 6377 @Unstable() |
| 6378 @Native("SVGZoomEvent") |
| 6379 class ZoomEvent extends UIEvent { |
| 6380 // To suppress missing implicit constructor warnings. |
| 6381 factory ZoomEvent._() { throw new UnsupportedError("Not supported"); } |
| 6382 |
| 6383 @DomName('SVGZoomEvent.newScale') |
| 6384 @DocsEditable() |
| 6385 final double newScale; |
| 6386 |
| 6387 @DomName('SVGZoomEvent.newTranslate') |
| 6388 @DocsEditable() |
| 6389 final Point newTranslate; |
| 6390 |
| 6391 @DomName('SVGZoomEvent.previousScale') |
| 6392 @DocsEditable() |
| 6393 final double previousScale; |
| 6394 |
| 6395 @DomName('SVGZoomEvent.previousTranslate') |
| 6396 @DocsEditable() |
| 6397 final Point previousTranslate; |
| 6398 |
| 6399 @DomName('SVGZoomEvent.zoomRectScreen') |
| 6400 @DocsEditable() |
| 6401 final Rect zoomRectScreen; |
| 6402 } |
| 6403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6404 // for details. All rights reserved. Use of this source code is governed by a |
| 6405 // BSD-style license that can be found in the LICENSE file. |
| 6406 |
| 6407 |
| 6408 @DocsEditable() |
| 6409 @DomName('SVGGradientElement') |
| 6410 @Unstable() |
| 6411 @Native("SVGGradientElement") |
| 6412 class _GradientElement extends SvgElement implements UriReference { |
| 6413 // To suppress missing implicit constructor warnings. |
| 6414 factory _GradientElement._() { throw new UnsupportedError("Not supported"); } |
| 6415 /** |
| 6416 * Constructor instantiated by the DOM when a custom element has been created. |
| 6417 * |
| 6418 * This can only be called by subclasses from their created constructor. |
| 6419 */ |
| 6420 _GradientElement.created() : super.created(); |
| 6421 |
| 6422 @DomName('SVGGradientElement.SVG_SPREADMETHOD_PAD') |
| 6423 @DocsEditable() |
| 6424 static const int SVG_SPREADMETHOD_PAD = 1; |
| 6425 |
| 6426 @DomName('SVGGradientElement.SVG_SPREADMETHOD_REFLECT') |
| 6427 @DocsEditable() |
| 6428 static const int SVG_SPREADMETHOD_REFLECT = 2; |
| 6429 |
| 6430 @DomName('SVGGradientElement.SVG_SPREADMETHOD_REPEAT') |
| 6431 @DocsEditable() |
| 6432 static const int SVG_SPREADMETHOD_REPEAT = 3; |
| 6433 |
| 6434 @DomName('SVGGradientElement.SVG_SPREADMETHOD_UNKNOWN') |
| 6435 @DocsEditable() |
| 6436 static const int SVG_SPREADMETHOD_UNKNOWN = 0; |
| 6437 |
| 6438 @DomName('SVGGradientElement.gradientTransform') |
| 6439 @DocsEditable() |
| 6440 final AnimatedTransformList gradientTransform; |
| 6441 |
| 6442 @DomName('SVGGradientElement.gradientUnits') |
| 6443 @DocsEditable() |
| 6444 final AnimatedEnumeration gradientUnits; |
| 6445 |
| 6446 @DomName('SVGGradientElement.spreadMethod') |
| 6447 @DocsEditable() |
| 6448 final AnimatedEnumeration spreadMethod; |
| 6449 |
| 6450 // From SVGURIReference |
| 6451 |
| 6452 @DomName('SVGGradientElement.href') |
| 6453 @DocsEditable() |
| 6454 final AnimatedString href; |
| 6455 } |
| 6456 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6457 // for details. All rights reserved. Use of this source code is governed by a |
| 6458 // BSD-style license that can be found in the LICENSE file. |
| 6459 |
| 6460 |
| 6461 @DocsEditable() |
| 6462 @DomName('SVGAltGlyphDefElement') |
| 6463 @Unstable() |
| 6464 @Native("SVGAltGlyphDefElement") |
| 6465 abstract class _SVGAltGlyphDefElement extends SvgElement { |
| 6466 // To suppress missing implicit constructor warnings. |
| 6467 factory _SVGAltGlyphDefElement._() { throw new UnsupportedError("Not supported
"); } |
| 6468 /** |
| 6469 * Constructor instantiated by the DOM when a custom element has been created. |
| 6470 * |
| 6471 * This can only be called by subclasses from their created constructor. |
| 6472 */ |
| 6473 _SVGAltGlyphDefElement.created() : super.created(); |
| 6474 } |
| 6475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6476 // for details. All rights reserved. Use of this source code is governed by a |
| 6477 // BSD-style license that can be found in the LICENSE file. |
| 6478 |
| 6479 |
| 6480 @DocsEditable() |
| 6481 @DomName('SVGAltGlyphItemElement') |
| 6482 @Unstable() |
| 6483 @Native("SVGAltGlyphItemElement") |
| 6484 abstract class _SVGAltGlyphItemElement extends SvgElement { |
| 6485 // To suppress missing implicit constructor warnings. |
| 6486 factory _SVGAltGlyphItemElement._() { throw new UnsupportedError("Not supporte
d"); } |
| 6487 /** |
| 6488 * Constructor instantiated by the DOM when a custom element has been created. |
| 6489 * |
| 6490 * This can only be called by subclasses from their created constructor. |
| 6491 */ |
| 6492 _SVGAltGlyphItemElement.created() : super.created(); |
| 6493 } |
| 6494 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6495 // for details. All rights reserved. Use of this source code is governed by a |
| 6496 // BSD-style license that can be found in the LICENSE file. |
| 6497 |
| 6498 |
| 6499 @DocsEditable() |
| 6500 @DomName('SVGComponentTransferFunctionElement') |
| 6501 @Unstable() |
| 6502 @Native("SVGComponentTransferFunctionElement") |
| 6503 abstract class _SVGComponentTransferFunctionElement extends SvgElement { |
| 6504 // To suppress missing implicit constructor warnings. |
| 6505 factory _SVGComponentTransferFunctionElement._() { throw new UnsupportedError(
"Not supported"); } |
| 6506 /** |
| 6507 * Constructor instantiated by the DOM when a custom element has been created. |
| 6508 * |
| 6509 * This can only be called by subclasses from their created constructor. |
| 6510 */ |
| 6511 _SVGComponentTransferFunctionElement.created() : super.created(); |
| 6512 } |
| 6513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6514 // for details. All rights reserved. Use of this source code is governed by a |
| 6515 // BSD-style license that can be found in the LICENSE file. |
| 6516 |
| 6517 |
| 6518 @DocsEditable() |
| 6519 @DomName('SVGCursorElement') |
| 6520 @Unstable() |
| 6521 @Native("SVGCursorElement") |
| 6522 abstract class _SVGCursorElement extends SvgElement implements UriReference, Tes
ts { |
| 6523 // To suppress missing implicit constructor warnings. |
| 6524 factory _SVGCursorElement._() { throw new UnsupportedError("Not supported"); } |
| 6525 |
| 6526 @DomName('SVGCursorElement.SVGCursorElement') |
| 6527 @DocsEditable() |
| 6528 factory _SVGCursorElement() => _SvgElementFactoryProvider.createSvgElement_tag
("cursor"); |
| 6529 /** |
| 6530 * Constructor instantiated by the DOM when a custom element has been created. |
| 6531 * |
| 6532 * This can only be called by subclasses from their created constructor. |
| 6533 */ |
| 6534 _SVGCursorElement.created() : super.created(); |
| 6535 |
| 6536 /// Checks if this type is supported on the current platform. |
| 6537 static bool get supported => SvgElement.isTagSupported('cursor') && (new SvgEl
ement.tag('cursor') is _SVGCursorElement); |
| 6538 |
| 6539 // From SVGTests |
| 6540 |
| 6541 // From SVGURIReference |
| 6542 |
| 6543 } |
| 6544 |
| 6545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6546 // for details. All rights reserved. Use of this source code is governed by a |
| 6547 // BSD-style license that can be found in the LICENSE file. |
| 6548 |
| 6549 |
| 6550 @DocsEditable() |
| 6551 @DomName('SVGFEDropShadowElement') |
| 6552 @Experimental() // nonstandard |
| 6553 @Native("SVGFEDropShadowElement") |
| 6554 abstract class _SVGFEDropShadowElement extends SvgElement implements FilterPrimi
tiveStandardAttributes { |
| 6555 // To suppress missing implicit constructor warnings. |
| 6556 factory _SVGFEDropShadowElement._() { throw new UnsupportedError("Not supporte
d"); } |
| 6557 /** |
| 6558 * Constructor instantiated by the DOM when a custom element has been created. |
| 6559 * |
| 6560 * This can only be called by subclasses from their created constructor. |
| 6561 */ |
| 6562 _SVGFEDropShadowElement.created() : super.created(); |
| 6563 |
| 6564 // From SVGFilterPrimitiveStandardAttributes |
| 6565 |
| 6566 } |
| 6567 |
| 6568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6569 // for details. All rights reserved. Use of this source code is governed by a |
| 6570 // BSD-style license that can be found in the LICENSE file. |
| 6571 |
| 6572 |
| 6573 @DocsEditable() |
| 6574 @DomName('SVGFontElement') |
| 6575 @Unstable() |
| 6576 @Native("SVGFontElement") |
| 6577 abstract class _SVGFontElement extends SvgElement { |
| 6578 // To suppress missing implicit constructor warnings. |
| 6579 factory _SVGFontElement._() { throw new UnsupportedError("Not supported"); } |
| 6580 /** |
| 6581 * Constructor instantiated by the DOM when a custom element has been created. |
| 6582 * |
| 6583 * This can only be called by subclasses from their created constructor. |
| 6584 */ |
| 6585 _SVGFontElement.created() : super.created(); |
| 6586 } |
| 6587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6588 // for details. All rights reserved. Use of this source code is governed by a |
| 6589 // BSD-style license that can be found in the LICENSE file. |
| 6590 |
| 6591 |
| 6592 @DocsEditable() |
| 6593 @DomName('SVGFontFaceElement') |
| 6594 @Unstable() |
| 6595 @Native("SVGFontFaceElement") |
| 6596 abstract class _SVGFontFaceElement extends SvgElement { |
| 6597 // To suppress missing implicit constructor warnings. |
| 6598 factory _SVGFontFaceElement._() { throw new UnsupportedError("Not supported");
} |
| 6599 /** |
| 6600 * Constructor instantiated by the DOM when a custom element has been created. |
| 6601 * |
| 6602 * This can only be called by subclasses from their created constructor. |
| 6603 */ |
| 6604 _SVGFontFaceElement.created() : super.created(); |
| 6605 } |
| 6606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6607 // for details. All rights reserved. Use of this source code is governed by a |
| 6608 // BSD-style license that can be found in the LICENSE file. |
| 6609 |
| 6610 |
| 6611 @DocsEditable() |
| 6612 @DomName('SVGFontFaceFormatElement') |
| 6613 @Unstable() |
| 6614 @Native("SVGFontFaceFormatElement") |
| 6615 abstract class _SVGFontFaceFormatElement extends SvgElement { |
| 6616 // To suppress missing implicit constructor warnings. |
| 6617 factory _SVGFontFaceFormatElement._() { throw new UnsupportedError("Not suppor
ted"); } |
| 6618 /** |
| 6619 * Constructor instantiated by the DOM when a custom element has been created. |
| 6620 * |
| 6621 * This can only be called by subclasses from their created constructor. |
| 6622 */ |
| 6623 _SVGFontFaceFormatElement.created() : super.created(); |
| 6624 } |
| 6625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6626 // for details. All rights reserved. Use of this source code is governed by a |
| 6627 // BSD-style license that can be found in the LICENSE file. |
| 6628 |
| 6629 |
| 6630 @DocsEditable() |
| 6631 @DomName('SVGFontFaceNameElement') |
| 6632 @Unstable() |
| 6633 @Native("SVGFontFaceNameElement") |
| 6634 abstract class _SVGFontFaceNameElement extends SvgElement { |
| 6635 // To suppress missing implicit constructor warnings. |
| 6636 factory _SVGFontFaceNameElement._() { throw new UnsupportedError("Not supporte
d"); } |
| 6637 /** |
| 6638 * Constructor instantiated by the DOM when a custom element has been created. |
| 6639 * |
| 6640 * This can only be called by subclasses from their created constructor. |
| 6641 */ |
| 6642 _SVGFontFaceNameElement.created() : super.created(); |
| 6643 } |
| 6644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6645 // for details. All rights reserved. Use of this source code is governed by a |
| 6646 // BSD-style license that can be found in the LICENSE file. |
| 6647 |
| 6648 |
| 6649 @DocsEditable() |
| 6650 @DomName('SVGFontFaceSrcElement') |
| 6651 @Unstable() |
| 6652 @Native("SVGFontFaceSrcElement") |
| 6653 abstract class _SVGFontFaceSrcElement extends SvgElement { |
| 6654 // To suppress missing implicit constructor warnings. |
| 6655 factory _SVGFontFaceSrcElement._() { throw new UnsupportedError("Not supported
"); } |
| 6656 /** |
| 6657 * Constructor instantiated by the DOM when a custom element has been created. |
| 6658 * |
| 6659 * This can only be called by subclasses from their created constructor. |
| 6660 */ |
| 6661 _SVGFontFaceSrcElement.created() : super.created(); |
| 6662 } |
| 6663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6664 // for details. All rights reserved. Use of this source code is governed by a |
| 6665 // BSD-style license that can be found in the LICENSE file. |
| 6666 |
| 6667 |
| 6668 @DocsEditable() |
| 6669 @DomName('SVGFontFaceUriElement') |
| 6670 @Unstable() |
| 6671 @Native("SVGFontFaceUriElement") |
| 6672 abstract class _SVGFontFaceUriElement extends SvgElement { |
| 6673 // To suppress missing implicit constructor warnings. |
| 6674 factory _SVGFontFaceUriElement._() { throw new UnsupportedError("Not supported
"); } |
| 6675 /** |
| 6676 * Constructor instantiated by the DOM when a custom element has been created. |
| 6677 * |
| 6678 * This can only be called by subclasses from their created constructor. |
| 6679 */ |
| 6680 _SVGFontFaceUriElement.created() : super.created(); |
| 6681 } |
| 6682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6683 // for details. All rights reserved. Use of this source code is governed by a |
| 6684 // BSD-style license that can be found in the LICENSE file. |
| 6685 |
| 6686 |
| 6687 @DocsEditable() |
| 6688 @DomName('SVGGlyphElement') |
| 6689 @Unstable() |
| 6690 @Native("SVGGlyphElement") |
| 6691 abstract class _SVGGlyphElement extends SvgElement { |
| 6692 // To suppress missing implicit constructor warnings. |
| 6693 factory _SVGGlyphElement._() { throw new UnsupportedError("Not supported"); } |
| 6694 |
| 6695 @DomName('SVGGlyphElement.SVGGlyphElement') |
| 6696 @DocsEditable() |
| 6697 factory _SVGGlyphElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"glyph"); |
| 6698 /** |
| 6699 * Constructor instantiated by the DOM when a custom element has been created. |
| 6700 * |
| 6701 * This can only be called by subclasses from their created constructor. |
| 6702 */ |
| 6703 _SVGGlyphElement.created() : super.created(); |
| 6704 } |
| 6705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6706 // for details. All rights reserved. Use of this source code is governed by a |
| 6707 // BSD-style license that can be found in the LICENSE file. |
| 6708 |
| 6709 |
| 6710 @DocsEditable() |
| 6711 @DomName('SVGGlyphRefElement') |
| 6712 @Unstable() |
| 6713 @Native("SVGGlyphRefElement") |
| 6714 abstract class _SVGGlyphRefElement extends SvgElement implements UriReference { |
| 6715 // To suppress missing implicit constructor warnings. |
| 6716 factory _SVGGlyphRefElement._() { throw new UnsupportedError("Not supported");
} |
| 6717 /** |
| 6718 * Constructor instantiated by the DOM when a custom element has been created. |
| 6719 * |
| 6720 * This can only be called by subclasses from their created constructor. |
| 6721 */ |
| 6722 _SVGGlyphRefElement.created() : super.created(); |
| 6723 |
| 6724 // From SVGURIReference |
| 6725 |
| 6726 } |
| 6727 |
| 6728 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6729 // for details. All rights reserved. Use of this source code is governed by a |
| 6730 // BSD-style license that can be found in the LICENSE file. |
| 6731 |
| 6732 |
| 6733 @DocsEditable() |
| 6734 @DomName('SVGHKernElement') |
| 6735 @Unstable() |
| 6736 @Native("SVGHKernElement") |
| 6737 abstract class _SVGHKernElement extends SvgElement { |
| 6738 // To suppress missing implicit constructor warnings. |
| 6739 factory _SVGHKernElement._() { throw new UnsupportedError("Not supported"); } |
| 6740 |
| 6741 @DomName('SVGHKernElement.SVGHKernElement') |
| 6742 @DocsEditable() |
| 6743 factory _SVGHKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"hkern"); |
| 6744 /** |
| 6745 * Constructor instantiated by the DOM when a custom element has been created. |
| 6746 * |
| 6747 * This can only be called by subclasses from their created constructor. |
| 6748 */ |
| 6749 _SVGHKernElement.created() : super.created(); |
| 6750 } |
| 6751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6752 // for details. All rights reserved. Use of this source code is governed by a |
| 6753 // BSD-style license that can be found in the LICENSE file. |
| 6754 |
| 6755 |
| 6756 @DocsEditable() |
| 6757 @DomName('SVGMPathElement') |
| 6758 @Native("SVGMPathElement") |
| 6759 abstract class _SVGMPathElement extends SvgElement implements UriReference { |
| 6760 // To suppress missing implicit constructor warnings. |
| 6761 factory _SVGMPathElement._() { throw new UnsupportedError("Not supported"); } |
| 6762 |
| 6763 @DomName('SVGMPathElement.SVGMPathElement') |
| 6764 @DocsEditable() |
| 6765 factory _SVGMPathElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"mpath"); |
| 6766 /** |
| 6767 * Constructor instantiated by the DOM when a custom element has been created. |
| 6768 * |
| 6769 * This can only be called by subclasses from their created constructor. |
| 6770 */ |
| 6771 _SVGMPathElement.created() : super.created(); |
| 6772 |
| 6773 // From SVGURIReference |
| 6774 |
| 6775 } |
| 6776 |
| 6777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6778 // for details. All rights reserved. Use of this source code is governed by a |
| 6779 // BSD-style license that can be found in the LICENSE file. |
| 6780 |
| 6781 |
| 6782 @DocsEditable() |
| 6783 @DomName('SVGMissingGlyphElement') |
| 6784 @Unstable() |
| 6785 @Native("SVGMissingGlyphElement") |
| 6786 abstract class _SVGMissingGlyphElement extends SvgElement { |
| 6787 // To suppress missing implicit constructor warnings. |
| 6788 factory _SVGMissingGlyphElement._() { throw new UnsupportedError("Not supporte
d"); } |
| 6789 /** |
| 6790 * Constructor instantiated by the DOM when a custom element has been created. |
| 6791 * |
| 6792 * This can only be called by subclasses from their created constructor. |
| 6793 */ |
| 6794 _SVGMissingGlyphElement.created() : super.created(); |
| 6795 } |
| 6796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6797 // for details. All rights reserved. Use of this source code is governed by a |
| 6798 // BSD-style license that can be found in the LICENSE file. |
| 6799 |
| 6800 |
| 6801 @DocsEditable() |
| 6802 @DomName('SVGVKernElement') |
| 6803 @Unstable() |
| 6804 @Native("SVGVKernElement") |
| 6805 abstract class _SVGVKernElement extends SvgElement { |
| 6806 // To suppress missing implicit constructor warnings. |
| 6807 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } |
| 6808 |
| 6809 @DomName('SVGVKernElement.SVGVKernElement') |
| 6810 @DocsEditable() |
| 6811 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
| 6812 /** |
| 6813 * Constructor instantiated by the DOM when a custom element has been created. |
| 6814 * |
| 6815 * This can only be called by subclasses from their created constructor. |
| 6816 */ |
| 6817 _SVGVKernElement.created() : super.created(); |
| 6818 } |
OLD | NEW |