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