1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * http://www.w3.org/TR/SVG2/
9 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
10 * liability, trademark and document use rules apply.
13 [LegacyNoInterfaceObject,
15 interface SVGPathSeg {
18 const unsigned short PATHSEG_UNKNOWN = 0;
19 const unsigned short PATHSEG_CLOSEPATH = 1;
20 const unsigned short PATHSEG_MOVETO_ABS = 2;
21 const unsigned short PATHSEG_MOVETO_REL = 3;
22 const unsigned short PATHSEG_LINETO_ABS = 4;
23 const unsigned short PATHSEG_LINETO_REL = 5;
24 const unsigned short PATHSEG_CURVETO_CUBIC_ABS = 6;
25 const unsigned short PATHSEG_CURVETO_CUBIC_REL = 7;
26 const unsigned short PATHSEG_CURVETO_QUADRATIC_ABS = 8;
27 const unsigned short PATHSEG_CURVETO_QUADRATIC_REL = 9;
28 const unsigned short PATHSEG_ARC_ABS = 10;
29 const unsigned short PATHSEG_ARC_REL = 11;
30 const unsigned short PATHSEG_LINETO_HORIZONTAL_ABS = 12;
31 const unsigned short PATHSEG_LINETO_HORIZONTAL_REL = 13;
32 const unsigned short PATHSEG_LINETO_VERTICAL_ABS = 14;
33 const unsigned short PATHSEG_LINETO_VERTICAL_REL = 15;
34 const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
35 const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
36 const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
37 const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
40 readonly attribute unsigned short pathSegType;
42 readonly attribute DOMString pathSegTypeAsLetter;
45 [LegacyNoInterfaceObject,
47 interface SVGPathSegClosePath : SVGPathSeg {
50 [LegacyNoInterfaceObject,
52 interface SVGPathSegMovetoAbs : SVGPathSeg {
59 [LegacyNoInterfaceObject,
61 interface SVGPathSegMovetoRel : SVGPathSeg {
68 [LegacyNoInterfaceObject,
70 interface SVGPathSegLinetoAbs : SVGPathSeg {
77 [LegacyNoInterfaceObject,
79 interface SVGPathSegLinetoRel : SVGPathSeg {
86 [LegacyNoInterfaceObject,
88 interface SVGPathSegCurvetoCubicAbs : SVGPathSeg {
103 [LegacyNoInterfaceObject,
105 interface SVGPathSegCurvetoCubicRel : SVGPathSeg {
120 [LegacyNoInterfaceObject,
122 interface SVGPathSegCurvetoQuadraticAbs : SVGPathSeg {
133 [LegacyNoInterfaceObject,
135 interface SVGPathSegCurvetoQuadraticRel : SVGPathSeg {
146 [LegacyNoInterfaceObject,
148 interface SVGPathSegArcAbs : SVGPathSeg {
158 attribute float angle;
160 attribute boolean largeArcFlag;
162 attribute boolean sweepFlag;
165 [LegacyNoInterfaceObject,
167 interface SVGPathSegArcRel : SVGPathSeg {
177 attribute float angle;
179 attribute boolean largeArcFlag;
181 attribute boolean sweepFlag;
184 [LegacyNoInterfaceObject,
186 interface SVGPathSegLinetoHorizontalAbs : SVGPathSeg {
191 [LegacyNoInterfaceObject,
193 interface SVGPathSegLinetoHorizontalRel : SVGPathSeg {
198 [LegacyNoInterfaceObject,
200 interface SVGPathSegLinetoVerticalAbs : SVGPathSeg {
205 [LegacyNoInterfaceObject,
207 interface SVGPathSegLinetoVerticalRel : SVGPathSeg {
212 [LegacyNoInterfaceObject,
214 interface SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg {
225 [LegacyNoInterfaceObject,
227 interface SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg {
238 [LegacyNoInterfaceObject,
240 interface SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg {
247 [LegacyNoInterfaceObject,
249 interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg {