OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 2 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
3 * Copyright (C) 2006 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
11 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
12 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
13 * | 13 * |
14 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY | 14 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY |
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR | 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR |
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 interface SVGPathElement : SVGStyledElement, | 27 interface SVGPathElement : SVGGraphicsElement { |
28 SVGLangSpace, | |
29 SVGTransformable { | |
30 readonly attribute SVGAnimatedNumber pathLength; | 28 readonly attribute SVGAnimatedNumber pathLength; |
31 | 29 |
32 float getTotalLength(); | 30 float getTotalLength(); |
33 SVGPoint getPointAtLength([Default=Undefined] optional float distance); | 31 SVGPoint getPointAtLength([Default=Undefined] optional float distance); |
34 unsigned long getPathSegAtLength([Default=Undefined] optional float distance
); | 32 unsigned long getPathSegAtLength([Default=Undefined] optional float distance
); |
35 | 33 |
36 SVGPathSegClosePath createSVGPathSegClosePath(); | 34 SVGPathSegClosePath createSVGPathSegClosePath(); |
37 | 35 |
38 SVGPathSegMovetoAbs createSVGPathSegMovetoAbs([Default=Undefined] optional f
loat x, | 36 SVGPathSegMovetoAbs createSVGPathSegMovetoAbs([Default=Undefined] optional f
loat x, |
39 [Default=Undefined] optional f
loat y); | 37 [Default=Undefined] optional f
loat y); |
40 SVGPathSegMovetoRel createSVGPathSegMovetoRel([Default=Undefined] optional f
loat x, | 38 SVGPathSegMovetoRel createSVGPathSegMovetoRel([Default=Undefined] optional f
loat x, |
41 [Default=Undefined] optional f
loat y); | 39 [Default=Undefined] optional f
loat y); |
42 | 40 |
43 SVGPathSegLinetoAbs createSVGPathSegLinetoAbs([Default=Undefined] optional f
loat x, | 41 SVGPathSegLinetoAbs createSVGPathSegLinetoAbs([Default=Undefined] optional f
loat x, |
44 [Default=Undefined] optional f
loat y); | 42 [Default=Undefined] optional f
loat y); |
45 SVGPathSegLinetoRel createSVGPathSegLinetoRel([Default=Undefined] optional f
loat x, | 43 SVGPathSegLinetoRel createSVGPathSegLinetoRel([Default=Undefined] optional f
loat x, |
46 [Default=Undefined] optional f
loat y); | 44 [Default=Undefined] optional f
loat y); |
47 | 45 |
48 SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs([Default=Undefined
] optional float x, | 46 SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs([Default=Undefined
] optional float x, |
49 [Default=Undefined
] optional float y, | 47 [Default=Undefined
] optional float y, |
50 [Default=Undefined
] optional float x1, | 48 [Default=Undefined
] optional float x1, |
51 [Default=Undefined
] optional float y1, | 49 [Default=Undefined
] optional float y1, |
52 [Default=Undefined
] optional float x2, | 50 [Default=Undefined
] optional float x2, |
53 [Default=Undefined
] optional float y2); | 51 [Default=Undefined
] optional float y2); |
54 SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel([Default=Undefined
] optional float x, | 52 SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel([Default=Undefined
] optional float x, |
55 [Default=Undefined
] optional float y, | 53 [Default=Undefined
] optional float y, |
56 [Default=Undefined
] optional float x1, | 54 [Default=Undefined
] optional float x1, |
57 [Default=Undefined
] optional float y1, | 55 [Default=Undefined
] optional float y1, |
58 [Default=Undefined
] optional float x2, | 56 [Default=Undefined
] optional float x2, |
59 [Default=Undefined
] optional float y2); | 57 [Default=Undefined
] optional float y2); |
60 | 58 |
61 SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs([Default=U
ndefined] optional float x, | 59 SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs([Default=U
ndefined] optional float x, |
62 [Default=U
ndefined] optional float y, | 60 [Default=U
ndefined] optional float y, |
63 [Default=U
ndefined] optional float x1, | 61 [Default=U
ndefined] optional float x1, |
64 [Default=U
ndefined] optional float y1); | 62 [Default=U
ndefined] optional float y1); |
65 SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel([Default=U
ndefined] optional float x, | 63 SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel([Default=U
ndefined] optional float x, |
66 [Default=U
ndefined] optional float y, | 64 [Default=U
ndefined] optional float y, |
67 [Default=U
ndefined] optional float x1, | 65 [Default=U
ndefined] optional float x1, |
68 [Default=U
ndefined] optional float y1); | 66 [Default=U
ndefined] optional float y1); |
69 | 67 |
70 SVGPathSegArcAbs createSVGPathSegArcAbs([Default=Undefined] optional float x
, | 68 SVGPathSegArcAbs createSVGPathSegArcAbs([Default=Undefined] optional float x
, |
71 [Default=Undefined] optional float y
, | 69 [Default=Undefined] optional float y
, |
72 [Default=Undefined] optional float r
1, | 70 [Default=Undefined] optional float r
1, |
73 [Default=Undefined] optional float r
2, | 71 [Default=Undefined] optional float r
2, |
74 [Default=Undefined] optional float a
ngle, | 72 [Default=Undefined] optional float a
ngle, |
75 [Default=Undefined] optional boolean
largeArcFlag, | 73 [Default=Undefined] optional boolean
largeArcFlag, |
76 [Default=Undefined] optional boolean
sweepFlag); | 74 [Default=Undefined] optional boolean
sweepFlag); |
77 SVGPathSegArcRel createSVGPathSegArcRel([Default=Undefined] optional float x
, | 75 SVGPathSegArcRel createSVGPathSegArcRel([Default=Undefined] optional float x
, |
78 [Default=Undefined] optional float y
, | 76 [Default=Undefined] optional float y
, |
79 [Default=Undefined] optional float r
1, | 77 [Default=Undefined] optional float r
1, |
80 [Default=Undefined] optional float r
2, | 78 [Default=Undefined] optional float r
2, |
81 [Default=Undefined] optional float a
ngle, | 79 [Default=Undefined] optional float a
ngle, |
82 [Default=Undefined] optional boolean
largeArcFlag, | 80 [Default=Undefined] optional boolean
largeArcFlag, |
83 [Default=Undefined] optional boolean
sweepFlag); | 81 [Default=Undefined] optional boolean
sweepFlag); |
84 | 82 |
85 SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs([Default=U
ndefined] optional float x); | 83 SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs([Default=U
ndefined] optional float x); |
86 SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel([Default=U
ndefined] optional float x); | 84 SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel([Default=U
ndefined] optional float x); |
87 | 85 |
88 SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs([Default=Undef
ined] optional float y); | 86 SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs([Default=Undef
ined] optional float y); |
89 SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel([Default=Undef
ined] optional float y); | 87 SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel([Default=Undef
ined] optional float y); |
90 | 88 |
91 SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs([Defau
lt=Undefined] optional float x, | 89 SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs([Defau
lt=Undefined] optional float x, |
92 [Defau
lt=Undefined] optional float y, | 90 [Defau
lt=Undefined] optional float y, |
93 [Defau
lt=Undefined] optional float x2, | 91 [Defau
lt=Undefined] optional float x2, |
94 [Defau
lt=Undefined] optional float y2); | 92 [Defau
lt=Undefined] optional float y2); |
95 SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel([Defau
lt=Undefined] optional float x, | 93 SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel([Defau
lt=Undefined] optional float x, |
96 [Defau
lt=Undefined] optional float y, | 94 [Defau
lt=Undefined] optional float y, |
97 [Defau
lt=Undefined] optional float x2, | 95 [Defau
lt=Undefined] optional float x2, |
98 [Defau
lt=Undefined] optional float y2); | 96 [Defau
lt=Undefined] optional float y2); |
99 | 97 |
100 SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAb
s([Default=Undefined] optional float x, | 98 SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAb
s([Default=Undefined] optional float x, |
101
[Default=Undefined] optional float y); | 99
[Default=Undefined] optional float y); |
102 SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRe
l([Default=Undefined] optional float x, | 100 SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRe
l([Default=Undefined] optional float x, |
103
[Default=Undefined] optional float y); | 101
[Default=Undefined] optional float y); |
104 | 102 |
105 readonly attribute SVGPathSegList pathSegList; | 103 readonly attribute SVGPathSegList pathSegList; |
106 readonly attribute SVGPathSegList normalizedPathSegList; | 104 readonly attribute SVGPathSegList normalizedPathSegList; |
107 readonly attribute SVGPathSegList animatedPathSegList; | 105 readonly attribute SVGPathSegList animatedPathSegList; |
108 readonly attribute SVGPathSegList animatedNormalizedPathSegList; | 106 readonly attribute SVGPathSegList animatedNormalizedPathSegList; |
109 }; | 107 }; |
110 | 108 |
111 SVGPathElement implements SVGExternalResourcesRequired; | 109 SVGPathElement implements SVGExternalResourcesRequired; |
112 SVGPathElement implements SVGTests; | |
113 | |
OLD | NEW |