OLD | NEW |
1 /** | 1 /** |
2 * Scalable Vector Graphics: | 2 * Scalable Vector Graphics: |
3 * Two-dimensional vector graphics with support for events and animation. | 3 * Two-dimensional vector graphics with support for events and animation. |
4 * | 4 * |
5 * For details about the features and syntax of SVG, a W3C standard, | 5 * For details about the features and syntax of SVG, a W3C standard, |
6 * refer to the | 6 * refer to the |
7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). | 7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). |
8 */ | 8 */ |
9 library dart.dom.svg; | 9 library dart.dom.svg; |
10 | 10 |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 @DocsEditable() | 549 @DocsEditable() |
550 final StringList requiredExtensions; | 550 final StringList requiredExtensions; |
551 | 551 |
552 @DomName('SVGAnimationElement.requiredFeatures') | 552 @DomName('SVGAnimationElement.requiredFeatures') |
553 @DocsEditable() | 553 @DocsEditable() |
554 final StringList requiredFeatures; | 554 final StringList requiredFeatures; |
555 | 555 |
556 @DomName('SVGAnimationElement.systemLanguage') | 556 @DomName('SVGAnimationElement.systemLanguage') |
557 @DocsEditable() | 557 @DocsEditable() |
558 final StringList systemLanguage; | 558 final StringList systemLanguage; |
559 | |
560 @DomName('SVGAnimationElement.hasExtension') | |
561 @DocsEditable() | |
562 bool hasExtension(String extension) native; | |
563 } | 559 } |
564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
565 // for details. All rights reserved. Use of this source code is governed by a | 561 // for details. All rights reserved. Use of this source code is governed by a |
566 // BSD-style license that can be found in the LICENSE file. | 562 // BSD-style license that can be found in the LICENSE file. |
567 | 563 |
568 @DocsEditable() | 564 @DocsEditable() |
569 @DomName('SVGCircleElement') | 565 @DomName('SVGCircleElement') |
570 @Unstable() | 566 @Unstable() |
571 @Native("SVGCircleElement") | 567 @Native("SVGCircleElement") |
572 class CircleElement extends GeometryElement { | 568 class CircleElement extends GeometryElement { |
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2602 @DocsEditable() | 2598 @DocsEditable() |
2603 @Experimental() // untriaged | 2599 @Experimental() // untriaged |
2604 Matrix getCtm() native; | 2600 Matrix getCtm() native; |
2605 | 2601 |
2606 @JSName('getScreenCTM') | 2602 @JSName('getScreenCTM') |
2607 @DomName('SVGGraphicsElement.getScreenCTM') | 2603 @DomName('SVGGraphicsElement.getScreenCTM') |
2608 @DocsEditable() | 2604 @DocsEditable() |
2609 @Experimental() // untriaged | 2605 @Experimental() // untriaged |
2610 Matrix getScreenCtm() native; | 2606 Matrix getScreenCtm() native; |
2611 | 2607 |
2612 @DomName('SVGGraphicsElement.getTransformToElement') | |
2613 @DocsEditable() | |
2614 @Experimental() // untriaged | |
2615 Matrix getTransformToElement(SvgElement element) native; | |
2616 | |
2617 // From SVGTests | 2608 // From SVGTests |
2618 | 2609 |
2619 @DomName('SVGGraphicsElement.requiredExtensions') | 2610 @DomName('SVGGraphicsElement.requiredExtensions') |
2620 @DocsEditable() | 2611 @DocsEditable() |
2621 @Experimental() // untriaged | 2612 @Experimental() // untriaged |
2622 final StringList requiredExtensions; | 2613 final StringList requiredExtensions; |
2623 | 2614 |
2624 @DomName('SVGGraphicsElement.requiredFeatures') | 2615 @DomName('SVGGraphicsElement.requiredFeatures') |
2625 @DocsEditable() | 2616 @DocsEditable() |
2626 @Experimental() // untriaged | 2617 @Experimental() // untriaged |
2627 final StringList requiredFeatures; | 2618 final StringList requiredFeatures; |
2628 | 2619 |
2629 @DomName('SVGGraphicsElement.systemLanguage') | 2620 @DomName('SVGGraphicsElement.systemLanguage') |
2630 @DocsEditable() | 2621 @DocsEditable() |
2631 @Experimental() // untriaged | 2622 @Experimental() // untriaged |
2632 final StringList systemLanguage; | 2623 final StringList systemLanguage; |
2633 | |
2634 @DomName('SVGGraphicsElement.hasExtension') | |
2635 @DocsEditable() | |
2636 @Experimental() // untriaged | |
2637 bool hasExtension(String extension) native; | |
2638 } | 2624 } |
2639 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2640 // for details. All rights reserved. Use of this source code is governed by a | 2626 // for details. All rights reserved. Use of this source code is governed by a |
2641 // BSD-style license that can be found in the LICENSE file. | 2627 // BSD-style license that can be found in the LICENSE file. |
2642 | 2628 |
2643 @DocsEditable() | 2629 @DocsEditable() |
2644 @DomName('SVGImageElement') | 2630 @DomName('SVGImageElement') |
2645 @Unstable() | 2631 @Unstable() |
2646 @Native("SVGImageElement") | 2632 @Native("SVGImageElement") |
2647 class ImageElement extends GraphicsElement implements UriReference { | 2633 class ImageElement extends GraphicsElement implements UriReference { |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3102 @DocsEditable() | 3088 @DocsEditable() |
3103 final StringList requiredExtensions; | 3089 final StringList requiredExtensions; |
3104 | 3090 |
3105 @DomName('SVGMaskElement.requiredFeatures') | 3091 @DomName('SVGMaskElement.requiredFeatures') |
3106 @DocsEditable() | 3092 @DocsEditable() |
3107 final StringList requiredFeatures; | 3093 final StringList requiredFeatures; |
3108 | 3094 |
3109 @DomName('SVGMaskElement.systemLanguage') | 3095 @DomName('SVGMaskElement.systemLanguage') |
3110 @DocsEditable() | 3096 @DocsEditable() |
3111 final StringList systemLanguage; | 3097 final StringList systemLanguage; |
3112 | |
3113 @DomName('SVGMaskElement.hasExtension') | |
3114 @DocsEditable() | |
3115 bool hasExtension(String extension) native; | |
3116 } | 3098 } |
3117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3099 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3118 // for details. All rights reserved. Use of this source code is governed by a | 3100 // for details. All rights reserved. Use of this source code is governed by a |
3119 // BSD-style license that can be found in the LICENSE file. | 3101 // BSD-style license that can be found in the LICENSE file. |
3120 | 3102 |
3121 @DocsEditable() | 3103 @DocsEditable() |
3122 @DomName('SVGMatrix') | 3104 @DomName('SVGMatrix') |
3123 @Unstable() | 3105 @Unstable() |
3124 @Native("SVGMatrix") | 3106 @Native("SVGMatrix") |
3125 class Matrix extends Interceptor { | 3107 class Matrix extends Interceptor { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3353 @DocsEditable() | 3335 @DocsEditable() |
3354 factory PathElement() => | 3336 factory PathElement() => |
3355 _SvgElementFactoryProvider.createSvgElement_tag("path"); | 3337 _SvgElementFactoryProvider.createSvgElement_tag("path"); |
3356 /** | 3338 /** |
3357 * Constructor instantiated by the DOM when a custom element has been created. | 3339 * Constructor instantiated by the DOM when a custom element has been created. |
3358 * | 3340 * |
3359 * This can only be called by subclasses from their created constructor. | 3341 * This can only be called by subclasses from their created constructor. |
3360 */ | 3342 */ |
3361 PathElement.created() : super.created(); | 3343 PathElement.created() : super.created(); |
3362 | 3344 |
3363 @DomName('SVGPathElement.animatedNormalizedPathSegList') | |
3364 @DocsEditable() | |
3365 final PathSegList animatedNormalizedPathSegList; | |
3366 | |
3367 @DomName('SVGPathElement.animatedPathSegList') | |
3368 @DocsEditable() | |
3369 final PathSegList animatedPathSegList; | |
3370 | |
3371 @DomName('SVGPathElement.normalizedPathSegList') | |
3372 @DocsEditable() | |
3373 final PathSegList normalizedPathSegList; | |
3374 | |
3375 @DomName('SVGPathElement.pathLength') | 3345 @DomName('SVGPathElement.pathLength') |
3376 @DocsEditable() | 3346 @DocsEditable() |
3377 final AnimatedNumber pathLength; | 3347 final AnimatedNumber pathLength; |
3378 | 3348 |
3379 @DomName('SVGPathElement.pathSegList') | |
3380 @DocsEditable() | |
3381 final PathSegList pathSegList; | |
3382 | |
3383 @JSName('createSVGPathSegArcAbs') | |
3384 @DomName('SVGPathElement.createSVGPathSegArcAbs') | |
3385 @DocsEditable() | |
3386 PathSegArcAbs createSvgPathSegArcAbs(num x, num y, num r1, num r2, num angle, | |
3387 bool largeArcFlag, bool sweepFlag) native; | |
3388 | |
3389 @JSName('createSVGPathSegArcRel') | |
3390 @DomName('SVGPathElement.createSVGPathSegArcRel') | |
3391 @DocsEditable() | |
3392 PathSegArcRel createSvgPathSegArcRel(num x, num y, num r1, num r2, num angle, | |
3393 bool largeArcFlag, bool sweepFlag) native; | |
3394 | |
3395 @JSName('createSVGPathSegClosePath') | |
3396 @DomName('SVGPathElement.createSVGPathSegClosePath') | |
3397 @DocsEditable() | |
3398 PathSegClosePath createSvgPathSegClosePath() native; | |
3399 | |
3400 @JSName('createSVGPathSegCurvetoCubicAbs') | |
3401 @DomName('SVGPathElement.createSVGPathSegCurvetoCubicAbs') | |
3402 @DocsEditable() | |
3403 PathSegCurvetoCubicAbs createSvgPathSegCurvetoCubicAbs( | |
3404 num x, num y, num x1, num y1, num x2, num y2) native; | |
3405 | |
3406 @JSName('createSVGPathSegCurvetoCubicRel') | |
3407 @DomName('SVGPathElement.createSVGPathSegCurvetoCubicRel') | |
3408 @DocsEditable() | |
3409 PathSegCurvetoCubicRel createSvgPathSegCurvetoCubicRel( | |
3410 num x, num y, num x1, num y1, num x2, num y2) native; | |
3411 | |
3412 @JSName('createSVGPathSegCurvetoCubicSmoothAbs') | |
3413 @DomName('SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs') | |
3414 @DocsEditable() | |
3415 PathSegCurvetoCubicSmoothAbs createSvgPathSegCurvetoCubicSmoothAbs( | |
3416 num x, num y, num x2, num y2) native; | |
3417 | |
3418 @JSName('createSVGPathSegCurvetoCubicSmoothRel') | |
3419 @DomName('SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel') | |
3420 @DocsEditable() | |
3421 PathSegCurvetoCubicSmoothRel createSvgPathSegCurvetoCubicSmoothRel( | |
3422 num x, num y, num x2, num y2) native; | |
3423 | |
3424 @JSName('createSVGPathSegCurvetoQuadraticAbs') | |
3425 @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticAbs') | |
3426 @DocsEditable() | |
3427 PathSegCurvetoQuadraticAbs createSvgPathSegCurvetoQuadraticAbs( | |
3428 num x, num y, num x1, num y1) native; | |
3429 | |
3430 @JSName('createSVGPathSegCurvetoQuadraticRel') | |
3431 @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticRel') | |
3432 @DocsEditable() | |
3433 PathSegCurvetoQuadraticRel createSvgPathSegCurvetoQuadraticRel( | |
3434 num x, num y, num x1, num y1) native; | |
3435 | |
3436 @JSName('createSVGPathSegCurvetoQuadraticSmoothAbs') | |
3437 @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs') | |
3438 @DocsEditable() | |
3439 PathSegCurvetoQuadraticSmoothAbs createSvgPathSegCurvetoQuadraticSmoothAbs( | |
3440 num x, num y) native; | |
3441 | |
3442 @JSName('createSVGPathSegCurvetoQuadraticSmoothRel') | |
3443 @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel') | |
3444 @DocsEditable() | |
3445 PathSegCurvetoQuadraticSmoothRel createSvgPathSegCurvetoQuadraticSmoothRel( | |
3446 num x, num y) native; | |
3447 | |
3448 @JSName('createSVGPathSegLinetoAbs') | |
3449 @DomName('SVGPathElement.createSVGPathSegLinetoAbs') | |
3450 @DocsEditable() | |
3451 PathSegLinetoAbs createSvgPathSegLinetoAbs(num x, num y) native; | |
3452 | |
3453 @JSName('createSVGPathSegLinetoHorizontalAbs') | |
3454 @DomName('SVGPathElement.createSVGPathSegLinetoHorizontalAbs') | |
3455 @DocsEditable() | |
3456 PathSegLinetoHorizontalAbs createSvgPathSegLinetoHorizontalAbs(num x) native; | |
3457 | |
3458 @JSName('createSVGPathSegLinetoHorizontalRel') | |
3459 @DomName('SVGPathElement.createSVGPathSegLinetoHorizontalRel') | |
3460 @DocsEditable() | |
3461 PathSegLinetoHorizontalRel createSvgPathSegLinetoHorizontalRel(num x) native; | |
3462 | |
3463 @JSName('createSVGPathSegLinetoRel') | |
3464 @DomName('SVGPathElement.createSVGPathSegLinetoRel') | |
3465 @DocsEditable() | |
3466 PathSegLinetoRel createSvgPathSegLinetoRel(num x, num y) native; | |
3467 | |
3468 @JSName('createSVGPathSegLinetoVerticalAbs') | |
3469 @DomName('SVGPathElement.createSVGPathSegLinetoVerticalAbs') | |
3470 @DocsEditable() | |
3471 PathSegLinetoVerticalAbs createSvgPathSegLinetoVerticalAbs(num y) native; | |
3472 | |
3473 @JSName('createSVGPathSegLinetoVerticalRel') | |
3474 @DomName('SVGPathElement.createSVGPathSegLinetoVerticalRel') | |
3475 @DocsEditable() | |
3476 PathSegLinetoVerticalRel createSvgPathSegLinetoVerticalRel(num y) native; | |
3477 | |
3478 @JSName('createSVGPathSegMovetoAbs') | |
3479 @DomName('SVGPathElement.createSVGPathSegMovetoAbs') | |
3480 @DocsEditable() | |
3481 PathSegMovetoAbs createSvgPathSegMovetoAbs(num x, num y) native; | |
3482 | |
3483 @JSName('createSVGPathSegMovetoRel') | |
3484 @DomName('SVGPathElement.createSVGPathSegMovetoRel') | |
3485 @DocsEditable() | |
3486 PathSegMovetoRel createSvgPathSegMovetoRel(num x, num y) native; | |
3487 | |
3488 @DomName('SVGPathElement.getPathSegAtLength') | 3349 @DomName('SVGPathElement.getPathSegAtLength') |
3489 @DocsEditable() | 3350 @DocsEditable() |
3490 int getPathSegAtLength(num distance) native; | 3351 int getPathSegAtLength(num distance) native; |
3491 | 3352 |
3492 @DomName('SVGPathElement.getPointAtLength') | 3353 @DomName('SVGPathElement.getPointAtLength') |
3493 @DocsEditable() | 3354 @DocsEditable() |
3494 Point getPointAtLength(num distance) native; | 3355 Point getPointAtLength(num distance) native; |
3495 | 3356 |
3496 @DomName('SVGPathElement.getTotalLength') | 3357 @DomName('SVGPathElement.getTotalLength') |
3497 @DocsEditable() | 3358 @DocsEditable() |
3498 double getTotalLength() native; | 3359 double getTotalLength() native; |
3499 } | 3360 } |
3500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3361 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3501 // for details. All rights reserved. Use of this source code is governed by a | 3362 // for details. All rights reserved. Use of this source code is governed by a |
3502 // BSD-style license that can be found in the LICENSE file. | 3363 // BSD-style license that can be found in the LICENSE file. |
3503 | 3364 |
3504 @DocsEditable() | 3365 @DocsEditable() |
3505 @DomName('SVGPathSeg') | |
3506 @Unstable() | |
3507 @Native("SVGPathSeg") | |
3508 class PathSeg extends Interceptor { | |
3509 // To suppress missing implicit constructor warnings. | |
3510 factory PathSeg._() { | |
3511 throw new UnsupportedError("Not supported"); | |
3512 } | |
3513 | |
3514 @DomName('SVGPathSeg.PATHSEG_ARC_ABS') | |
3515 @DocsEditable() | |
3516 static const int PATHSEG_ARC_ABS = 10; | |
3517 | |
3518 @DomName('SVGPathSeg.PATHSEG_ARC_REL') | |
3519 @DocsEditable() | |
3520 static const int PATHSEG_ARC_REL = 11; | |
3521 | |
3522 @DomName('SVGPathSeg.PATHSEG_CLOSEPATH') | |
3523 @DocsEditable() | |
3524 static const int PATHSEG_CLOSEPATH = 1; | |
3525 | |
3526 @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS') | |
3527 @DocsEditable() | |
3528 static const int PATHSEG_CURVETO_CUBIC_ABS = 6; | |
3529 | |
3530 @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL') | |
3531 @DocsEditable() | |
3532 static const int PATHSEG_CURVETO_CUBIC_REL = 7; | |
3533 | |
3534 @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS') | |
3535 @DocsEditable() | |
3536 static const int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; | |
3537 | |
3538 @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL') | |
3539 @DocsEditable() | |
3540 static const int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; | |
3541 | |
3542 @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS') | |
3543 @DocsEditable() | |
3544 static const int PATHSEG_CURVETO_QUADRATIC_ABS = 8; | |
3545 | |
3546 @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL') | |
3547 @DocsEditable() | |
3548 static const int PATHSEG_CURVETO_QUADRATIC_REL = 9; | |
3549 | |
3550 @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS') | |
3551 @DocsEditable() | |
3552 static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; | |
3553 | |
3554 @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL') | |
3555 @DocsEditable() | |
3556 static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; | |
3557 | |
3558 @DomName('SVGPathSeg.PATHSEG_LINETO_ABS') | |
3559 @DocsEditable() | |
3560 static const int PATHSEG_LINETO_ABS = 4; | |
3561 | |
3562 @DomName('SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS') | |
3563 @DocsEditable() | |
3564 static const int PATHSEG_LINETO_HORIZONTAL_ABS = 12; | |
3565 | |
3566 @DomName('SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL') | |
3567 @DocsEditable() | |
3568 static const int PATHSEG_LINETO_HORIZONTAL_REL = 13; | |
3569 | |
3570 @DomName('SVGPathSeg.PATHSEG_LINETO_REL') | |
3571 @DocsEditable() | |
3572 static const int PATHSEG_LINETO_REL = 5; | |
3573 | |
3574 @DomName('SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS') | |
3575 @DocsEditable() | |
3576 static const int PATHSEG_LINETO_VERTICAL_ABS = 14; | |
3577 | |
3578 @DomName('SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL') | |
3579 @DocsEditable() | |
3580 static const int PATHSEG_LINETO_VERTICAL_REL = 15; | |
3581 | |
3582 @DomName('SVGPathSeg.PATHSEG_MOVETO_ABS') | |
3583 @DocsEditable() | |
3584 static const int PATHSEG_MOVETO_ABS = 2; | |
3585 | |
3586 @DomName('SVGPathSeg.PATHSEG_MOVETO_REL') | |
3587 @DocsEditable() | |
3588 static const int PATHSEG_MOVETO_REL = 3; | |
3589 | |
3590 @DomName('SVGPathSeg.PATHSEG_UNKNOWN') | |
3591 @DocsEditable() | |
3592 static const int PATHSEG_UNKNOWN = 0; | |
3593 | |
3594 @DomName('SVGPathSeg.pathSegType') | |
3595 @DocsEditable() | |
3596 final int pathSegType; | |
3597 | |
3598 @DomName('SVGPathSeg.pathSegTypeAsLetter') | |
3599 @DocsEditable() | |
3600 final String pathSegTypeAsLetter; | |
3601 } | |
3602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3603 // for details. All rights reserved. Use of this source code is governed by a | |
3604 // BSD-style license that can be found in the LICENSE file. | |
3605 | |
3606 @DocsEditable() | |
3607 @DomName('SVGPathSegArcAbs') | |
3608 @Unstable() | |
3609 @Native("SVGPathSegArcAbs") | |
3610 class PathSegArcAbs extends PathSeg { | |
3611 // To suppress missing implicit constructor warnings. | |
3612 factory PathSegArcAbs._() { | |
3613 throw new UnsupportedError("Not supported"); | |
3614 } | |
3615 | |
3616 @DomName('SVGPathSegArcAbs.angle') | |
3617 @DocsEditable() | |
3618 num angle; | |
3619 | |
3620 @DomName('SVGPathSegArcAbs.largeArcFlag') | |
3621 @DocsEditable() | |
3622 bool largeArcFlag; | |
3623 | |
3624 @DomName('SVGPathSegArcAbs.r1') | |
3625 @DocsEditable() | |
3626 num r1; | |
3627 | |
3628 @DomName('SVGPathSegArcAbs.r2') | |
3629 @DocsEditable() | |
3630 num r2; | |
3631 | |
3632 @DomName('SVGPathSegArcAbs.sweepFlag') | |
3633 @DocsEditable() | |
3634 bool sweepFlag; | |
3635 | |
3636 @DomName('SVGPathSegArcAbs.x') | |
3637 @DocsEditable() | |
3638 num x; | |
3639 | |
3640 @DomName('SVGPathSegArcAbs.y') | |
3641 @DocsEditable() | |
3642 num y; | |
3643 } | |
3644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3645 // for details. All rights reserved. Use of this source code is governed by a | |
3646 // BSD-style license that can be found in the LICENSE file. | |
3647 | |
3648 @DocsEditable() | |
3649 @DomName('SVGPathSegArcRel') | |
3650 @Unstable() | |
3651 @Native("SVGPathSegArcRel") | |
3652 class PathSegArcRel extends PathSeg { | |
3653 // To suppress missing implicit constructor warnings. | |
3654 factory PathSegArcRel._() { | |
3655 throw new UnsupportedError("Not supported"); | |
3656 } | |
3657 | |
3658 @DomName('SVGPathSegArcRel.angle') | |
3659 @DocsEditable() | |
3660 num angle; | |
3661 | |
3662 @DomName('SVGPathSegArcRel.largeArcFlag') | |
3663 @DocsEditable() | |
3664 bool largeArcFlag; | |
3665 | |
3666 @DomName('SVGPathSegArcRel.r1') | |
3667 @DocsEditable() | |
3668 num r1; | |
3669 | |
3670 @DomName('SVGPathSegArcRel.r2') | |
3671 @DocsEditable() | |
3672 num r2; | |
3673 | |
3674 @DomName('SVGPathSegArcRel.sweepFlag') | |
3675 @DocsEditable() | |
3676 bool sweepFlag; | |
3677 | |
3678 @DomName('SVGPathSegArcRel.x') | |
3679 @DocsEditable() | |
3680 num x; | |
3681 | |
3682 @DomName('SVGPathSegArcRel.y') | |
3683 @DocsEditable() | |
3684 num y; | |
3685 } | |
3686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3687 // for details. All rights reserved. Use of this source code is governed by a | |
3688 // BSD-style license that can be found in the LICENSE file. | |
3689 | |
3690 @DocsEditable() | |
3691 @DomName('SVGPathSegClosePath') | |
3692 @Unstable() | |
3693 @Native("SVGPathSegClosePath") | |
3694 class PathSegClosePath extends PathSeg { | |
3695 // To suppress missing implicit constructor warnings. | |
3696 factory PathSegClosePath._() { | |
3697 throw new UnsupportedError("Not supported"); | |
3698 } | |
3699 } | |
3700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3701 // for details. All rights reserved. Use of this source code is governed by a | |
3702 // BSD-style license that can be found in the LICENSE file. | |
3703 | |
3704 @DocsEditable() | |
3705 @DomName('SVGPathSegCurvetoCubicAbs') | |
3706 @Unstable() | |
3707 @Native("SVGPathSegCurvetoCubicAbs") | |
3708 class PathSegCurvetoCubicAbs extends PathSeg { | |
3709 // To suppress missing implicit constructor warnings. | |
3710 factory PathSegCurvetoCubicAbs._() { | |
3711 throw new UnsupportedError("Not supported"); | |
3712 } | |
3713 | |
3714 @DomName('SVGPathSegCurvetoCubicAbs.x') | |
3715 @DocsEditable() | |
3716 num x; | |
3717 | |
3718 @DomName('SVGPathSegCurvetoCubicAbs.x1') | |
3719 @DocsEditable() | |
3720 num x1; | |
3721 | |
3722 @DomName('SVGPathSegCurvetoCubicAbs.x2') | |
3723 @DocsEditable() | |
3724 num x2; | |
3725 | |
3726 @DomName('SVGPathSegCurvetoCubicAbs.y') | |
3727 @DocsEditable() | |
3728 num y; | |
3729 | |
3730 @DomName('SVGPathSegCurvetoCubicAbs.y1') | |
3731 @DocsEditable() | |
3732 num y1; | |
3733 | |
3734 @DomName('SVGPathSegCurvetoCubicAbs.y2') | |
3735 @DocsEditable() | |
3736 num y2; | |
3737 } | |
3738 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3739 // for details. All rights reserved. Use of this source code is governed by a | |
3740 // BSD-style license that can be found in the LICENSE file. | |
3741 | |
3742 @DocsEditable() | |
3743 @DomName('SVGPathSegCurvetoCubicRel') | |
3744 @Unstable() | |
3745 @Native("SVGPathSegCurvetoCubicRel") | |
3746 class PathSegCurvetoCubicRel extends PathSeg { | |
3747 // To suppress missing implicit constructor warnings. | |
3748 factory PathSegCurvetoCubicRel._() { | |
3749 throw new UnsupportedError("Not supported"); | |
3750 } | |
3751 | |
3752 @DomName('SVGPathSegCurvetoCubicRel.x') | |
3753 @DocsEditable() | |
3754 num x; | |
3755 | |
3756 @DomName('SVGPathSegCurvetoCubicRel.x1') | |
3757 @DocsEditable() | |
3758 num x1; | |
3759 | |
3760 @DomName('SVGPathSegCurvetoCubicRel.x2') | |
3761 @DocsEditable() | |
3762 num x2; | |
3763 | |
3764 @DomName('SVGPathSegCurvetoCubicRel.y') | |
3765 @DocsEditable() | |
3766 num y; | |
3767 | |
3768 @DomName('SVGPathSegCurvetoCubicRel.y1') | |
3769 @DocsEditable() | |
3770 num y1; | |
3771 | |
3772 @DomName('SVGPathSegCurvetoCubicRel.y2') | |
3773 @DocsEditable() | |
3774 num y2; | |
3775 } | |
3776 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3777 // for details. All rights reserved. Use of this source code is governed by a | |
3778 // BSD-style license that can be found in the LICENSE file. | |
3779 | |
3780 @DocsEditable() | |
3781 @DomName('SVGPathSegCurvetoCubicSmoothAbs') | |
3782 @Unstable() | |
3783 @Native("SVGPathSegCurvetoCubicSmoothAbs") | |
3784 class PathSegCurvetoCubicSmoothAbs extends PathSeg { | |
3785 // To suppress missing implicit constructor warnings. | |
3786 factory PathSegCurvetoCubicSmoothAbs._() { | |
3787 throw new UnsupportedError("Not supported"); | |
3788 } | |
3789 | |
3790 @DomName('SVGPathSegCurvetoCubicSmoothAbs.x') | |
3791 @DocsEditable() | |
3792 num x; | |
3793 | |
3794 @DomName('SVGPathSegCurvetoCubicSmoothAbs.x2') | |
3795 @DocsEditable() | |
3796 num x2; | |
3797 | |
3798 @DomName('SVGPathSegCurvetoCubicSmoothAbs.y') | |
3799 @DocsEditable() | |
3800 num y; | |
3801 | |
3802 @DomName('SVGPathSegCurvetoCubicSmoothAbs.y2') | |
3803 @DocsEditable() | |
3804 num y2; | |
3805 } | |
3806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3807 // for details. All rights reserved. Use of this source code is governed by a | |
3808 // BSD-style license that can be found in the LICENSE file. | |
3809 | |
3810 @DocsEditable() | |
3811 @DomName('SVGPathSegCurvetoCubicSmoothRel') | |
3812 @Unstable() | |
3813 @Native("SVGPathSegCurvetoCubicSmoothRel") | |
3814 class PathSegCurvetoCubicSmoothRel extends PathSeg { | |
3815 // To suppress missing implicit constructor warnings. | |
3816 factory PathSegCurvetoCubicSmoothRel._() { | |
3817 throw new UnsupportedError("Not supported"); | |
3818 } | |
3819 | |
3820 @DomName('SVGPathSegCurvetoCubicSmoothRel.x') | |
3821 @DocsEditable() | |
3822 num x; | |
3823 | |
3824 @DomName('SVGPathSegCurvetoCubicSmoothRel.x2') | |
3825 @DocsEditable() | |
3826 num x2; | |
3827 | |
3828 @DomName('SVGPathSegCurvetoCubicSmoothRel.y') | |
3829 @DocsEditable() | |
3830 num y; | |
3831 | |
3832 @DomName('SVGPathSegCurvetoCubicSmoothRel.y2') | |
3833 @DocsEditable() | |
3834 num y2; | |
3835 } | |
3836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3837 // for details. All rights reserved. Use of this source code is governed by a | |
3838 // BSD-style license that can be found in the LICENSE file. | |
3839 | |
3840 @DocsEditable() | |
3841 @DomName('SVGPathSegCurvetoQuadraticAbs') | |
3842 @Unstable() | |
3843 @Native("SVGPathSegCurvetoQuadraticAbs") | |
3844 class PathSegCurvetoQuadraticAbs extends PathSeg { | |
3845 // To suppress missing implicit constructor warnings. | |
3846 factory PathSegCurvetoQuadraticAbs._() { | |
3847 throw new UnsupportedError("Not supported"); | |
3848 } | |
3849 | |
3850 @DomName('SVGPathSegCurvetoQuadraticAbs.x') | |
3851 @DocsEditable() | |
3852 num x; | |
3853 | |
3854 @DomName('SVGPathSegCurvetoQuadraticAbs.x1') | |
3855 @DocsEditable() | |
3856 num x1; | |
3857 | |
3858 @DomName('SVGPathSegCurvetoQuadraticAbs.y') | |
3859 @DocsEditable() | |
3860 num y; | |
3861 | |
3862 @DomName('SVGPathSegCurvetoQuadraticAbs.y1') | |
3863 @DocsEditable() | |
3864 num y1; | |
3865 } | |
3866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3867 // for details. All rights reserved. Use of this source code is governed by a | |
3868 // BSD-style license that can be found in the LICENSE file. | |
3869 | |
3870 @DocsEditable() | |
3871 @DomName('SVGPathSegCurvetoQuadraticRel') | |
3872 @Unstable() | |
3873 @Native("SVGPathSegCurvetoQuadraticRel") | |
3874 class PathSegCurvetoQuadraticRel extends PathSeg { | |
3875 // To suppress missing implicit constructor warnings. | |
3876 factory PathSegCurvetoQuadraticRel._() { | |
3877 throw new UnsupportedError("Not supported"); | |
3878 } | |
3879 | |
3880 @DomName('SVGPathSegCurvetoQuadraticRel.x') | |
3881 @DocsEditable() | |
3882 num x; | |
3883 | |
3884 @DomName('SVGPathSegCurvetoQuadraticRel.x1') | |
3885 @DocsEditable() | |
3886 num x1; | |
3887 | |
3888 @DomName('SVGPathSegCurvetoQuadraticRel.y') | |
3889 @DocsEditable() | |
3890 num y; | |
3891 | |
3892 @DomName('SVGPathSegCurvetoQuadraticRel.y1') | |
3893 @DocsEditable() | |
3894 num y1; | |
3895 } | |
3896 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3897 // for details. All rights reserved. Use of this source code is governed by a | |
3898 // BSD-style license that can be found in the LICENSE file. | |
3899 | |
3900 @DocsEditable() | |
3901 @DomName('SVGPathSegCurvetoQuadraticSmoothAbs') | |
3902 @Unstable() | |
3903 @Native("SVGPathSegCurvetoQuadraticSmoothAbs") | |
3904 class PathSegCurvetoQuadraticSmoothAbs extends PathSeg { | |
3905 // To suppress missing implicit constructor warnings. | |
3906 factory PathSegCurvetoQuadraticSmoothAbs._() { | |
3907 throw new UnsupportedError("Not supported"); | |
3908 } | |
3909 | |
3910 @DomName('SVGPathSegCurvetoQuadraticSmoothAbs.x') | |
3911 @DocsEditable() | |
3912 num x; | |
3913 | |
3914 @DomName('SVGPathSegCurvetoQuadraticSmoothAbs.y') | |
3915 @DocsEditable() | |
3916 num y; | |
3917 } | |
3918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3919 // for details. All rights reserved. Use of this source code is governed by a | |
3920 // BSD-style license that can be found in the LICENSE file. | |
3921 | |
3922 @DocsEditable() | |
3923 @DomName('SVGPathSegCurvetoQuadraticSmoothRel') | |
3924 @Unstable() | |
3925 @Native("SVGPathSegCurvetoQuadraticSmoothRel") | |
3926 class PathSegCurvetoQuadraticSmoothRel extends PathSeg { | |
3927 // To suppress missing implicit constructor warnings. | |
3928 factory PathSegCurvetoQuadraticSmoothRel._() { | |
3929 throw new UnsupportedError("Not supported"); | |
3930 } | |
3931 | |
3932 @DomName('SVGPathSegCurvetoQuadraticSmoothRel.x') | |
3933 @DocsEditable() | |
3934 num x; | |
3935 | |
3936 @DomName('SVGPathSegCurvetoQuadraticSmoothRel.y') | |
3937 @DocsEditable() | |
3938 num y; | |
3939 } | |
3940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3941 // for details. All rights reserved. Use of this source code is governed by a | |
3942 // BSD-style license that can be found in the LICENSE file. | |
3943 | |
3944 @DocsEditable() | |
3945 @DomName('SVGPathSegLinetoAbs') | |
3946 @Unstable() | |
3947 @Native("SVGPathSegLinetoAbs") | |
3948 class PathSegLinetoAbs extends PathSeg { | |
3949 // To suppress missing implicit constructor warnings. | |
3950 factory PathSegLinetoAbs._() { | |
3951 throw new UnsupportedError("Not supported"); | |
3952 } | |
3953 | |
3954 @DomName('SVGPathSegLinetoAbs.x') | |
3955 @DocsEditable() | |
3956 num x; | |
3957 | |
3958 @DomName('SVGPathSegLinetoAbs.y') | |
3959 @DocsEditable() | |
3960 num y; | |
3961 } | |
3962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3963 // for details. All rights reserved. Use of this source code is governed by a | |
3964 // BSD-style license that can be found in the LICENSE file. | |
3965 | |
3966 @DocsEditable() | |
3967 @DomName('SVGPathSegLinetoHorizontalAbs') | |
3968 @Unstable() | |
3969 @Native("SVGPathSegLinetoHorizontalAbs") | |
3970 class PathSegLinetoHorizontalAbs extends PathSeg { | |
3971 // To suppress missing implicit constructor warnings. | |
3972 factory PathSegLinetoHorizontalAbs._() { | |
3973 throw new UnsupportedError("Not supported"); | |
3974 } | |
3975 | |
3976 @DomName('SVGPathSegLinetoHorizontalAbs.x') | |
3977 @DocsEditable() | |
3978 num x; | |
3979 } | |
3980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3981 // for details. All rights reserved. Use of this source code is governed by a | |
3982 // BSD-style license that can be found in the LICENSE file. | |
3983 | |
3984 @DocsEditable() | |
3985 @DomName('SVGPathSegLinetoHorizontalRel') | |
3986 @Unstable() | |
3987 @Native("SVGPathSegLinetoHorizontalRel") | |
3988 class PathSegLinetoHorizontalRel extends PathSeg { | |
3989 // To suppress missing implicit constructor warnings. | |
3990 factory PathSegLinetoHorizontalRel._() { | |
3991 throw new UnsupportedError("Not supported"); | |
3992 } | |
3993 | |
3994 @DomName('SVGPathSegLinetoHorizontalRel.x') | |
3995 @DocsEditable() | |
3996 num x; | |
3997 } | |
3998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3999 // for details. All rights reserved. Use of this source code is governed by a | |
4000 // BSD-style license that can be found in the LICENSE file. | |
4001 | |
4002 @DocsEditable() | |
4003 @DomName('SVGPathSegLinetoRel') | |
4004 @Unstable() | |
4005 @Native("SVGPathSegLinetoRel") | |
4006 class PathSegLinetoRel extends PathSeg { | |
4007 // To suppress missing implicit constructor warnings. | |
4008 factory PathSegLinetoRel._() { | |
4009 throw new UnsupportedError("Not supported"); | |
4010 } | |
4011 | |
4012 @DomName('SVGPathSegLinetoRel.x') | |
4013 @DocsEditable() | |
4014 num x; | |
4015 | |
4016 @DomName('SVGPathSegLinetoRel.y') | |
4017 @DocsEditable() | |
4018 num y; | |
4019 } | |
4020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
4021 // for details. All rights reserved. Use of this source code is governed by a | |
4022 // BSD-style license that can be found in the LICENSE file. | |
4023 | |
4024 @DocsEditable() | |
4025 @DomName('SVGPathSegLinetoVerticalAbs') | |
4026 @Unstable() | |
4027 @Native("SVGPathSegLinetoVerticalAbs") | |
4028 class PathSegLinetoVerticalAbs extends PathSeg { | |
4029 // To suppress missing implicit constructor warnings. | |
4030 factory PathSegLinetoVerticalAbs._() { | |
4031 throw new UnsupportedError("Not supported"); | |
4032 } | |
4033 | |
4034 @DomName('SVGPathSegLinetoVerticalAbs.y') | |
4035 @DocsEditable() | |
4036 num y; | |
4037 } | |
4038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
4039 // for details. All rights reserved. Use of this source code is governed by a | |
4040 // BSD-style license that can be found in the LICENSE file. | |
4041 | |
4042 @DocsEditable() | |
4043 @DomName('SVGPathSegLinetoVerticalRel') | |
4044 @Unstable() | |
4045 @Native("SVGPathSegLinetoVerticalRel") | |
4046 class PathSegLinetoVerticalRel extends PathSeg { | |
4047 // To suppress missing implicit constructor warnings. | |
4048 factory PathSegLinetoVerticalRel._() { | |
4049 throw new UnsupportedError("Not supported"); | |
4050 } | |
4051 | |
4052 @DomName('SVGPathSegLinetoVerticalRel.y') | |
4053 @DocsEditable() | |
4054 num y; | |
4055 } | |
4056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
4057 // for details. All rights reserved. Use of this source code is governed by a | |
4058 // BSD-style license that can be found in the LICENSE file. | |
4059 | |
4060 @DocsEditable() | |
4061 @DomName('SVGPathSegList') | |
4062 @Unstable() | |
4063 @Native("SVGPathSegList") | |
4064 class PathSegList extends Interceptor | |
4065 with ListMixin<PathSeg>, ImmutableListMixin<PathSeg> | |
4066 implements List<PathSeg> { | |
4067 // To suppress missing implicit constructor warnings. | |
4068 factory PathSegList._() { | |
4069 throw new UnsupportedError("Not supported"); | |
4070 } | |
4071 | |
4072 @DomName('SVGPathSegList.length') | |
4073 @DocsEditable() | |
4074 @Experimental() // untriaged | |
4075 int get length => JS("int", "#.length", this); | |
4076 | |
4077 @DomName('SVGPathSegList.numberOfItems') | |
4078 @DocsEditable() | |
4079 final int numberOfItems; | |
4080 | |
4081 PathSeg operator [](int index) { | |
4082 if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length)) | |
4083 throw new RangeError.index(index, this); | |
4084 return this.getItem(index); | |
4085 } | |
4086 | |
4087 void operator []=(int index, PathSeg value) { | |
4088 throw new UnsupportedError("Cannot assign element of immutable List."); | |
4089 } | |
4090 // -- start List<PathSeg> mixins. | |
4091 // PathSeg is the element type. | |
4092 | |
4093 set length(int value) { | |
4094 throw new UnsupportedError("Cannot resize immutable List."); | |
4095 } | |
4096 | |
4097 PathSeg get first { | |
4098 if (this.length > 0) { | |
4099 return JS('PathSeg', '#[0]', this); | |
4100 } | |
4101 throw new StateError("No elements"); | |
4102 } | |
4103 | |
4104 PathSeg get last { | |
4105 int len = this.length; | |
4106 if (len > 0) { | |
4107 return JS('PathSeg', '#[#]', this, len - 1); | |
4108 } | |
4109 throw new StateError("No elements"); | |
4110 } | |
4111 | |
4112 PathSeg get single { | |
4113 int len = this.length; | |
4114 if (len == 1) { | |
4115 return JS('PathSeg', '#[0]', this); | |
4116 } | |
4117 if (len == 0) throw new StateError("No elements"); | |
4118 throw new StateError("More than one element"); | |
4119 } | |
4120 | |
4121 PathSeg elementAt(int index) => this[index]; | |
4122 // -- end List<PathSeg> mixins. | |
4123 | |
4124 @DomName('SVGPathSegList.__setter__') | |
4125 @DocsEditable() | |
4126 @Experimental() // untriaged | |
4127 void __setter__(int index, PathSeg newItem) native; | |
4128 | |
4129 @DomName('SVGPathSegList.appendItem') | |
4130 @DocsEditable() | |
4131 PathSeg appendItem(PathSeg newItem) native; | |
4132 | |
4133 @DomName('SVGPathSegList.clear') | |
4134 @DocsEditable() | |
4135 void clear() native; | |
4136 | |
4137 @DomName('SVGPathSegList.getItem') | |
4138 @DocsEditable() | |
4139 PathSeg getItem(int index) native; | |
4140 | |
4141 @DomName('SVGPathSegList.initialize') | |
4142 @DocsEditable() | |
4143 PathSeg initialize(PathSeg newItem) native; | |
4144 | |
4145 @DomName('SVGPathSegList.insertItemBefore') | |
4146 @DocsEditable() | |
4147 PathSeg insertItemBefore(PathSeg newItem, int index) native; | |
4148 | |
4149 @DomName('SVGPathSegList.removeItem') | |
4150 @DocsEditable() | |
4151 PathSeg removeItem(int index) native; | |
4152 | |
4153 @DomName('SVGPathSegList.replaceItem') | |
4154 @DocsEditable() | |
4155 PathSeg replaceItem(PathSeg newItem, int index) native; | |
4156 } | |
4157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
4158 // for details. All rights reserved. Use of this source code is governed by a | |
4159 // BSD-style license that can be found in the LICENSE file. | |
4160 | |
4161 @DocsEditable() | |
4162 @DomName('SVGPathSegMovetoAbs') | |
4163 @Unstable() | |
4164 @Native("SVGPathSegMovetoAbs") | |
4165 class PathSegMovetoAbs extends PathSeg { | |
4166 // To suppress missing implicit constructor warnings. | |
4167 factory PathSegMovetoAbs._() { | |
4168 throw new UnsupportedError("Not supported"); | |
4169 } | |
4170 | |
4171 @DomName('SVGPathSegMovetoAbs.x') | |
4172 @DocsEditable() | |
4173 num x; | |
4174 | |
4175 @DomName('SVGPathSegMovetoAbs.y') | |
4176 @DocsEditable() | |
4177 num y; | |
4178 } | |
4179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
4180 // for details. All rights reserved. Use of this source code is governed by a | |
4181 // BSD-style license that can be found in the LICENSE file. | |
4182 | |
4183 @DocsEditable() | |
4184 @DomName('SVGPathSegMovetoRel') | |
4185 @Unstable() | |
4186 @Native("SVGPathSegMovetoRel") | |
4187 class PathSegMovetoRel extends PathSeg { | |
4188 // To suppress missing implicit constructor warnings. | |
4189 factory PathSegMovetoRel._() { | |
4190 throw new UnsupportedError("Not supported"); | |
4191 } | |
4192 | |
4193 @DomName('SVGPathSegMovetoRel.x') | |
4194 @DocsEditable() | |
4195 num x; | |
4196 | |
4197 @DomName('SVGPathSegMovetoRel.y') | |
4198 @DocsEditable() | |
4199 num y; | |
4200 } | |
4201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
4202 // for details. All rights reserved. Use of this source code is governed by a | |
4203 // BSD-style license that can be found in the LICENSE file. | |
4204 | |
4205 @DocsEditable() | |
4206 @DomName('SVGPatternElement') | 3366 @DomName('SVGPatternElement') |
4207 @Unstable() | 3367 @Unstable() |
4208 @Native("SVGPatternElement") | 3368 @Native("SVGPatternElement") |
4209 class PatternElement extends SvgElement | 3369 class PatternElement extends SvgElement |
4210 implements FitToViewBox, UriReference, Tests { | 3370 implements FitToViewBox, UriReference, Tests { |
4211 // To suppress missing implicit constructor warnings. | 3371 // To suppress missing implicit constructor warnings. |
4212 factory PatternElement._() { | 3372 factory PatternElement._() { |
4213 throw new UnsupportedError("Not supported"); | 3373 throw new UnsupportedError("Not supported"); |
4214 } | 3374 } |
4215 | 3375 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4269 final StringList requiredExtensions; | 3429 final StringList requiredExtensions; |
4270 | 3430 |
4271 @DomName('SVGPatternElement.requiredFeatures') | 3431 @DomName('SVGPatternElement.requiredFeatures') |
4272 @DocsEditable() | 3432 @DocsEditable() |
4273 final StringList requiredFeatures; | 3433 final StringList requiredFeatures; |
4274 | 3434 |
4275 @DomName('SVGPatternElement.systemLanguage') | 3435 @DomName('SVGPatternElement.systemLanguage') |
4276 @DocsEditable() | 3436 @DocsEditable() |
4277 final StringList systemLanguage; | 3437 final StringList systemLanguage; |
4278 | 3438 |
4279 @DomName('SVGPatternElement.hasExtension') | |
4280 @DocsEditable() | |
4281 bool hasExtension(String extension) native; | |
4282 | |
4283 // From SVGURIReference | 3439 // From SVGURIReference |
4284 | 3440 |
4285 @DomName('SVGPatternElement.href') | 3441 @DomName('SVGPatternElement.href') |
4286 @DocsEditable() | 3442 @DocsEditable() |
4287 final AnimatedString href; | 3443 final AnimatedString href; |
4288 } | 3444 } |
4289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3445 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4290 // for details. All rights reserved. Use of this source code is governed by a | 3446 // for details. All rights reserved. Use of this source code is governed by a |
4291 // BSD-style license that can be found in the LICENSE file. | 3447 // BSD-style license that can be found in the LICENSE file. |
4292 | 3448 |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4882 // final String title; | 4038 // final String title; |
4883 | 4039 |
4884 @DomName('SVGStyleElement.type') | 4040 @DomName('SVGStyleElement.type') |
4885 @DocsEditable() | 4041 @DocsEditable() |
4886 String type; | 4042 String type; |
4887 } | 4043 } |
4888 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 4044 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
4889 // for details. All rights reserved. Use of this source code is governed by a | 4045 // for details. All rights reserved. Use of this source code is governed by a |
4890 // BSD-style license that can be found in the LICENSE file. | 4046 // BSD-style license that can be found in the LICENSE file. |
4891 | 4047 |
4892 class _AttributeClassSet extends CssClassSetImpl { | 4048 class AttributeClassSet extends CssClassSetImpl { |
4893 final Element _element; | 4049 final Element _element; |
4894 | 4050 |
4895 _AttributeClassSet(this._element); | 4051 AttributeClassSet(this._element); |
4896 | 4052 |
4897 Set<String> readClasses() { | 4053 Set<String> readClasses() { |
4898 var classname = _element.attributes['class']; | 4054 var classname = _element.attributes['class']; |
| 4055 if (classname is AnimatedString) { |
| 4056 classname = classname.baseVal; |
| 4057 } |
4899 | 4058 |
4900 Set<String> s = new LinkedHashSet<String>(); | 4059 Set<String> s = new LinkedHashSet<String>(); |
4901 if (classname == null) { | 4060 if (classname == null) { |
4902 return s; | 4061 return s; |
4903 } | 4062 } |
4904 for (String name in classname.split(' ')) { | 4063 for (String name in classname.split(' ')) { |
4905 String trimmed = name.trim(); | 4064 String trimmed = name.trim(); |
4906 if (!trimmed.isEmpty) { | 4065 if (!trimmed.isEmpty) { |
4907 s.add(trimmed); | 4066 s.add(trimmed); |
4908 } | 4067 } |
4909 } | 4068 } |
4910 return s; | 4069 return s; |
4911 } | 4070 } |
4912 | 4071 |
4913 void writeClasses(Set s) { | 4072 void writeClasses(Set s) { |
4914 _element.attributes['class'] = s.join(' '); | 4073 _element.setAttribute('class', s.join(' ')); |
4915 } | 4074 } |
4916 } | 4075 } |
4917 | 4076 |
4918 @DomName('SVGElement') | 4077 @DomName('SVGElement') |
4919 @Unstable() | 4078 @Unstable() |
4920 @Native("SVGElement") | 4079 @Native("SVGElement") |
4921 class SvgElement extends Element implements GlobalEventHandlers { | 4080 class SvgElement extends Element implements GlobalEventHandlers { |
4922 static final _START_TAG_REGEXP = new RegExp('<(\\w+)'); | 4081 static final _START_TAG_REGEXP = new RegExp('<(\\w+)'); |
4923 | 4082 |
4924 factory SvgElement.tag(String tag) => | 4083 factory SvgElement.tag(String tag) => |
4925 document.createElementNS("http://www.w3.org/2000/svg", tag); | 4084 document.createElementNS("http://www.w3.org/2000/svg", tag); |
4926 factory SvgElement.svg(String svg, | 4085 factory SvgElement.svg(String svg, |
4927 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { | 4086 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { |
4928 if (validator == null && treeSanitizer == null) { | 4087 if (validator == null && treeSanitizer == null) { |
4929 validator = new NodeValidatorBuilder.common()..allowSvg(); | 4088 validator = new NodeValidatorBuilder.common()..allowSvg(); |
4930 } | 4089 } |
4931 | 4090 |
4932 final match = _START_TAG_REGEXP.firstMatch(svg); | 4091 final match = _START_TAG_REGEXP.firstMatch(svg); |
4933 var parentElement; | 4092 var parentElement; |
4934 if (match != null && match.group(1).toLowerCase() == 'svg') { | 4093 if (match != null && match.group(1).toLowerCase() == 'svg') { |
4935 parentElement = document.body; | 4094 parentElement = document.body; |
4936 } else { | 4095 } else { |
4937 parentElement = new SvgSvgElement(); | 4096 parentElement = new SvgSvgElement(); |
4938 } | 4097 } |
4939 var fragment = parentElement.createFragment(svg, | 4098 var fragment = parentElement.createFragment(svg, |
4940 validator: validator, treeSanitizer: treeSanitizer); | 4099 validator: validator, treeSanitizer: treeSanitizer); |
4941 return fragment.nodes.where((e) => e is SvgElement).single; | 4100 return fragment.nodes.where((e) => e is SvgElement).single; |
4942 } | 4101 } |
4943 | 4102 |
4944 CssClassSet get classes => new _AttributeClassSet(this); | 4103 CssClassSet get classes => new AttributeClassSet(this); |
4945 | 4104 |
4946 List<Element> get children => new FilteredElementList(this); | 4105 List<Element> get children => new FilteredElementList(this); |
4947 | 4106 |
4948 set children(List<Element> value) { | 4107 set children(List<Element> value) { |
4949 final children = this.children; | 4108 final children = this.children; |
4950 children.clear(); | 4109 children.clear(); |
4951 children.addAll(value); | 4110 children.addAll(value); |
4952 } | 4111 } |
4953 | 4112 |
4954 String get outerHtml { | 4113 String get outerHtml { |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5327 @Experimental() // untriaged | 4486 @Experimental() // untriaged |
5328 static const EventStreamProvider<Event> suspendEvent = | 4487 static const EventStreamProvider<Event> suspendEvent = |
5329 const EventStreamProvider<Event>('suspend'); | 4488 const EventStreamProvider<Event>('suspend'); |
5330 | 4489 |
5331 @DomName('SVGElement.timeupdateEvent') | 4490 @DomName('SVGElement.timeupdateEvent') |
5332 @DocsEditable() | 4491 @DocsEditable() |
5333 @Experimental() // untriaged | 4492 @Experimental() // untriaged |
5334 static const EventStreamProvider<Event> timeUpdateEvent = | 4493 static const EventStreamProvider<Event> timeUpdateEvent = |
5335 const EventStreamProvider<Event>('timeupdate'); | 4494 const EventStreamProvider<Event>('timeupdate'); |
5336 | 4495 |
| 4496 @DomName('SVGElement.touchcancelEvent') |
| 4497 @DocsEditable() |
| 4498 @Experimental() // untriaged |
| 4499 static const EventStreamProvider<TouchEvent> touchCancelEvent = |
| 4500 const EventStreamProvider<TouchEvent>('touchcancel'); |
| 4501 |
| 4502 @DomName('SVGElement.touchendEvent') |
| 4503 @DocsEditable() |
| 4504 @Experimental() // untriaged |
| 4505 static const EventStreamProvider<TouchEvent> touchEndEvent = |
| 4506 const EventStreamProvider<TouchEvent>('touchend'); |
| 4507 |
| 4508 @DomName('SVGElement.touchmoveEvent') |
| 4509 @DocsEditable() |
| 4510 @Experimental() // untriaged |
| 4511 static const EventStreamProvider<TouchEvent> touchMoveEvent = |
| 4512 const EventStreamProvider<TouchEvent>('touchmove'); |
| 4513 |
| 4514 @DomName('SVGElement.touchstartEvent') |
| 4515 @DocsEditable() |
| 4516 @Experimental() // untriaged |
| 4517 static const EventStreamProvider<TouchEvent> touchStartEvent = |
| 4518 const EventStreamProvider<TouchEvent>('touchstart'); |
| 4519 |
5337 @DomName('SVGElement.volumechangeEvent') | 4520 @DomName('SVGElement.volumechangeEvent') |
5338 @DocsEditable() | 4521 @DocsEditable() |
5339 @Experimental() // untriaged | 4522 @Experimental() // untriaged |
5340 static const EventStreamProvider<Event> volumeChangeEvent = | 4523 static const EventStreamProvider<Event> volumeChangeEvent = |
5341 const EventStreamProvider<Event>('volumechange'); | 4524 const EventStreamProvider<Event>('volumechange'); |
5342 | 4525 |
5343 @DomName('SVGElement.waitingEvent') | 4526 @DomName('SVGElement.waitingEvent') |
5344 @DocsEditable() | 4527 @DocsEditable() |
5345 @Experimental() // untriaged | 4528 @Experimental() // untriaged |
5346 static const EventStreamProvider<Event> waitingEvent = | 4529 static const EventStreamProvider<Event> waitingEvent = |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5630 @DomName('SVGElement.onsuspend') | 4813 @DomName('SVGElement.onsuspend') |
5631 @DocsEditable() | 4814 @DocsEditable() |
5632 @Experimental() // untriaged | 4815 @Experimental() // untriaged |
5633 ElementStream<Event> get onSuspend => suspendEvent.forElement(this); | 4816 ElementStream<Event> get onSuspend => suspendEvent.forElement(this); |
5634 | 4817 |
5635 @DomName('SVGElement.ontimeupdate') | 4818 @DomName('SVGElement.ontimeupdate') |
5636 @DocsEditable() | 4819 @DocsEditable() |
5637 @Experimental() // untriaged | 4820 @Experimental() // untriaged |
5638 ElementStream<Event> get onTimeUpdate => timeUpdateEvent.forElement(this); | 4821 ElementStream<Event> get onTimeUpdate => timeUpdateEvent.forElement(this); |
5639 | 4822 |
| 4823 @DomName('SVGElement.ontouchcancel') |
| 4824 @DocsEditable() |
| 4825 @Experimental() // untriaged |
| 4826 ElementStream<TouchEvent> get onTouchCancel => |
| 4827 touchCancelEvent.forElement(this); |
| 4828 |
| 4829 @DomName('SVGElement.ontouchend') |
| 4830 @DocsEditable() |
| 4831 @Experimental() // untriaged |
| 4832 ElementStream<TouchEvent> get onTouchEnd => touchEndEvent.forElement(this); |
| 4833 |
| 4834 @DomName('SVGElement.ontouchmove') |
| 4835 @DocsEditable() |
| 4836 @Experimental() // untriaged |
| 4837 ElementStream<TouchEvent> get onTouchMove => touchMoveEvent.forElement(this); |
| 4838 |
| 4839 @DomName('SVGElement.ontouchstart') |
| 4840 @DocsEditable() |
| 4841 @Experimental() // untriaged |
| 4842 ElementStream<TouchEvent> get onTouchStart => |
| 4843 touchStartEvent.forElement(this); |
| 4844 |
5640 @DomName('SVGElement.onvolumechange') | 4845 @DomName('SVGElement.onvolumechange') |
5641 @DocsEditable() | 4846 @DocsEditable() |
5642 @Experimental() // untriaged | 4847 @Experimental() // untriaged |
5643 ElementStream<Event> get onVolumeChange => volumeChangeEvent.forElement(this); | 4848 ElementStream<Event> get onVolumeChange => volumeChangeEvent.forElement(this); |
5644 | 4849 |
5645 @DomName('SVGElement.onwaiting') | 4850 @DomName('SVGElement.onwaiting') |
5646 @DocsEditable() | 4851 @DocsEditable() |
5647 @Experimental() // untriaged | 4852 @Experimental() // untriaged |
5648 ElementStream<Event> get onWaiting => waitingEvent.forElement(this); | 4853 ElementStream<Event> get onWaiting => waitingEvent.forElement(this); |
5649 } | 4854 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5683 final Point currentTranslate; | 4888 final Point currentTranslate; |
5684 | 4889 |
5685 @DomName('SVGSVGElement.currentView') | 4890 @DomName('SVGSVGElement.currentView') |
5686 @DocsEditable() | 4891 @DocsEditable() |
5687 final ViewSpec currentView; | 4892 final ViewSpec currentView; |
5688 | 4893 |
5689 @DomName('SVGSVGElement.height') | 4894 @DomName('SVGSVGElement.height') |
5690 @DocsEditable() | 4895 @DocsEditable() |
5691 final AnimatedLength height; | 4896 final AnimatedLength height; |
5692 | 4897 |
5693 @DomName('SVGSVGElement.pixelUnitToMillimeterX') | |
5694 @DocsEditable() | |
5695 final double pixelUnitToMillimeterX; | |
5696 | |
5697 @DomName('SVGSVGElement.pixelUnitToMillimeterY') | |
5698 @DocsEditable() | |
5699 final double pixelUnitToMillimeterY; | |
5700 | |
5701 @DomName('SVGSVGElement.screenPixelToMillimeterX') | |
5702 @DocsEditable() | |
5703 final double screenPixelToMillimeterX; | |
5704 | |
5705 @DomName('SVGSVGElement.screenPixelToMillimeterY') | |
5706 @DocsEditable() | |
5707 final double screenPixelToMillimeterY; | |
5708 | |
5709 @DomName('SVGSVGElement.useCurrentView') | 4898 @DomName('SVGSVGElement.useCurrentView') |
5710 @DocsEditable() | 4899 @DocsEditable() |
5711 final bool useCurrentView; | 4900 final bool useCurrentView; |
5712 | 4901 |
5713 @DomName('SVGSVGElement.viewport') | 4902 @DomName('SVGSVGElement.viewport') |
5714 @DocsEditable() | 4903 @DocsEditable() |
5715 final Rect viewport; | 4904 final Rect viewport; |
5716 | 4905 |
5717 @DomName('SVGSVGElement.width') | 4906 @DomName('SVGSVGElement.width') |
5718 @DocsEditable() | 4907 @DocsEditable() |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5942 // To suppress missing implicit constructor warnings. | 5131 // To suppress missing implicit constructor warnings. |
5943 factory Tests._() { | 5132 factory Tests._() { |
5944 throw new UnsupportedError("Not supported"); | 5133 throw new UnsupportedError("Not supported"); |
5945 } | 5134 } |
5946 | 5135 |
5947 final StringList requiredExtensions; | 5136 final StringList requiredExtensions; |
5948 | 5137 |
5949 final StringList requiredFeatures; | 5138 final StringList requiredFeatures; |
5950 | 5139 |
5951 final StringList systemLanguage; | 5140 final StringList systemLanguage; |
5952 | |
5953 bool hasExtension(String extension); | |
5954 } | 5141 } |
5955 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5142 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5956 // for details. All rights reserved. Use of this source code is governed by a | 5143 // for details. All rights reserved. Use of this source code is governed by a |
5957 // BSD-style license that can be found in the LICENSE file. | 5144 // BSD-style license that can be found in the LICENSE file. |
5958 | 5145 |
5959 @DocsEditable() | 5146 @DocsEditable() |
5960 @DomName('SVGTextContentElement') | 5147 @DomName('SVGTextContentElement') |
5961 @Unstable() | 5148 @Unstable() |
5962 @Native("SVGTextContentElement") | 5149 @Native("SVGTextContentElement") |
5963 class TextContentElement extends GraphicsElement { | 5150 class TextContentElement extends GraphicsElement { |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6775 /** | 5962 /** |
6776 * Constructor instantiated by the DOM when a custom element has been created. | 5963 * Constructor instantiated by the DOM when a custom element has been created. |
6777 * | 5964 * |
6778 * This can only be called by subclasses from their created constructor. | 5965 * This can only be called by subclasses from their created constructor. |
6779 */ | 5966 */ |
6780 _SVGMPathElement.created() : super.created(); | 5967 _SVGMPathElement.created() : super.created(); |
6781 | 5968 |
6782 // From SVGURIReference | 5969 // From SVGURIReference |
6783 | 5970 |
6784 } | 5971 } |
OLD | NEW |