Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 4 | * You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | * |
michael@0 | 6 | * The origin of this IDL file is |
michael@0 | 7 | * http://www.w3.org/TR/SVG2/ |
michael@0 | 8 | * |
michael@0 | 9 | * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C |
michael@0 | 10 | * liability, trademark and document use rules apply. |
michael@0 | 11 | */ |
michael@0 | 12 | |
michael@0 | 13 | interface SVGPathSeg { |
michael@0 | 14 | |
michael@0 | 15 | // Path Segment Types |
michael@0 | 16 | const unsigned short PATHSEG_UNKNOWN = 0; |
michael@0 | 17 | const unsigned short PATHSEG_CLOSEPATH = 1; |
michael@0 | 18 | const unsigned short PATHSEG_MOVETO_ABS = 2; |
michael@0 | 19 | const unsigned short PATHSEG_MOVETO_REL = 3; |
michael@0 | 20 | const unsigned short PATHSEG_LINETO_ABS = 4; |
michael@0 | 21 | const unsigned short PATHSEG_LINETO_REL = 5; |
michael@0 | 22 | const unsigned short PATHSEG_CURVETO_CUBIC_ABS = 6; |
michael@0 | 23 | const unsigned short PATHSEG_CURVETO_CUBIC_REL = 7; |
michael@0 | 24 | const unsigned short PATHSEG_CURVETO_QUADRATIC_ABS = 8; |
michael@0 | 25 | const unsigned short PATHSEG_CURVETO_QUADRATIC_REL = 9; |
michael@0 | 26 | const unsigned short PATHSEG_ARC_ABS = 10; |
michael@0 | 27 | const unsigned short PATHSEG_ARC_REL = 11; |
michael@0 | 28 | const unsigned short PATHSEG_LINETO_HORIZONTAL_ABS = 12; |
michael@0 | 29 | const unsigned short PATHSEG_LINETO_HORIZONTAL_REL = 13; |
michael@0 | 30 | const unsigned short PATHSEG_LINETO_VERTICAL_ABS = 14; |
michael@0 | 31 | const unsigned short PATHSEG_LINETO_VERTICAL_REL = 15; |
michael@0 | 32 | const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; |
michael@0 | 33 | const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; |
michael@0 | 34 | const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; |
michael@0 | 35 | const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; |
michael@0 | 36 | |
michael@0 | 37 | readonly attribute unsigned short pathSegType; |
michael@0 | 38 | readonly attribute DOMString pathSegTypeAsLetter; |
michael@0 | 39 | }; |
michael@0 | 40 | |
michael@0 | 41 | interface SVGPathSegClosePath : SVGPathSeg { |
michael@0 | 42 | }; |
michael@0 | 43 | |
michael@0 | 44 | interface SVGPathSegMovetoAbs : SVGPathSeg { |
michael@0 | 45 | [SetterThrows] |
michael@0 | 46 | attribute float x; |
michael@0 | 47 | [SetterThrows] |
michael@0 | 48 | attribute float y; |
michael@0 | 49 | }; |
michael@0 | 50 | |
michael@0 | 51 | interface SVGPathSegMovetoRel : SVGPathSeg { |
michael@0 | 52 | [SetterThrows] |
michael@0 | 53 | attribute float x; |
michael@0 | 54 | [SetterThrows] |
michael@0 | 55 | attribute float y; |
michael@0 | 56 | }; |
michael@0 | 57 | |
michael@0 | 58 | interface SVGPathSegLinetoAbs : SVGPathSeg { |
michael@0 | 59 | [SetterThrows] |
michael@0 | 60 | attribute float x; |
michael@0 | 61 | [SetterThrows] |
michael@0 | 62 | attribute float y; |
michael@0 | 63 | }; |
michael@0 | 64 | |
michael@0 | 65 | interface SVGPathSegLinetoRel : SVGPathSeg { |
michael@0 | 66 | [SetterThrows] |
michael@0 | 67 | attribute float x; |
michael@0 | 68 | [SetterThrows] |
michael@0 | 69 | attribute float y; |
michael@0 | 70 | }; |
michael@0 | 71 | |
michael@0 | 72 | interface SVGPathSegCurvetoCubicAbs : SVGPathSeg { |
michael@0 | 73 | [SetterThrows] |
michael@0 | 74 | attribute float x; |
michael@0 | 75 | [SetterThrows] |
michael@0 | 76 | attribute float y; |
michael@0 | 77 | [SetterThrows] |
michael@0 | 78 | attribute float x1; |
michael@0 | 79 | [SetterThrows] |
michael@0 | 80 | attribute float y1; |
michael@0 | 81 | [SetterThrows] |
michael@0 | 82 | attribute float x2; |
michael@0 | 83 | [SetterThrows] |
michael@0 | 84 | attribute float y2; |
michael@0 | 85 | }; |
michael@0 | 86 | |
michael@0 | 87 | interface SVGPathSegCurvetoCubicRel : SVGPathSeg { |
michael@0 | 88 | [SetterThrows] |
michael@0 | 89 | attribute float x; |
michael@0 | 90 | [SetterThrows] |
michael@0 | 91 | attribute float y; |
michael@0 | 92 | [SetterThrows] |
michael@0 | 93 | attribute float x1; |
michael@0 | 94 | [SetterThrows] |
michael@0 | 95 | attribute float y1; |
michael@0 | 96 | [SetterThrows] |
michael@0 | 97 | attribute float x2; |
michael@0 | 98 | [SetterThrows] |
michael@0 | 99 | attribute float y2; |
michael@0 | 100 | }; |
michael@0 | 101 | |
michael@0 | 102 | interface SVGPathSegCurvetoQuadraticAbs : SVGPathSeg { |
michael@0 | 103 | [SetterThrows] |
michael@0 | 104 | attribute float x; |
michael@0 | 105 | [SetterThrows] |
michael@0 | 106 | attribute float y; |
michael@0 | 107 | [SetterThrows] |
michael@0 | 108 | attribute float x1; |
michael@0 | 109 | [SetterThrows] |
michael@0 | 110 | attribute float y1; |
michael@0 | 111 | }; |
michael@0 | 112 | |
michael@0 | 113 | interface SVGPathSegCurvetoQuadraticRel : SVGPathSeg { |
michael@0 | 114 | [SetterThrows] |
michael@0 | 115 | attribute float x; |
michael@0 | 116 | [SetterThrows] |
michael@0 | 117 | attribute float y; |
michael@0 | 118 | [SetterThrows] |
michael@0 | 119 | attribute float x1; |
michael@0 | 120 | [SetterThrows] |
michael@0 | 121 | attribute float y1; |
michael@0 | 122 | }; |
michael@0 | 123 | |
michael@0 | 124 | interface SVGPathSegArcAbs : SVGPathSeg { |
michael@0 | 125 | [SetterThrows] |
michael@0 | 126 | attribute float x; |
michael@0 | 127 | [SetterThrows] |
michael@0 | 128 | attribute float y; |
michael@0 | 129 | [SetterThrows] |
michael@0 | 130 | attribute float r1; |
michael@0 | 131 | [SetterThrows] |
michael@0 | 132 | attribute float r2; |
michael@0 | 133 | [SetterThrows] |
michael@0 | 134 | attribute float angle; |
michael@0 | 135 | [SetterThrows] |
michael@0 | 136 | attribute boolean largeArcFlag; |
michael@0 | 137 | [SetterThrows] |
michael@0 | 138 | attribute boolean sweepFlag; |
michael@0 | 139 | }; |
michael@0 | 140 | |
michael@0 | 141 | interface SVGPathSegArcRel : SVGPathSeg { |
michael@0 | 142 | [SetterThrows] |
michael@0 | 143 | attribute float x; |
michael@0 | 144 | [SetterThrows] |
michael@0 | 145 | attribute float y; |
michael@0 | 146 | [SetterThrows] |
michael@0 | 147 | attribute float r1; |
michael@0 | 148 | [SetterThrows] |
michael@0 | 149 | attribute float r2; |
michael@0 | 150 | [SetterThrows] |
michael@0 | 151 | attribute float angle; |
michael@0 | 152 | [SetterThrows] |
michael@0 | 153 | attribute boolean largeArcFlag; |
michael@0 | 154 | [SetterThrows] |
michael@0 | 155 | attribute boolean sweepFlag; |
michael@0 | 156 | }; |
michael@0 | 157 | |
michael@0 | 158 | interface SVGPathSegLinetoHorizontalAbs : SVGPathSeg { |
michael@0 | 159 | [SetterThrows] |
michael@0 | 160 | attribute float x; |
michael@0 | 161 | }; |
michael@0 | 162 | |
michael@0 | 163 | interface SVGPathSegLinetoHorizontalRel : SVGPathSeg { |
michael@0 | 164 | [SetterThrows] |
michael@0 | 165 | attribute float x; |
michael@0 | 166 | }; |
michael@0 | 167 | |
michael@0 | 168 | interface SVGPathSegLinetoVerticalAbs : SVGPathSeg { |
michael@0 | 169 | [SetterThrows] |
michael@0 | 170 | attribute float y; |
michael@0 | 171 | }; |
michael@0 | 172 | |
michael@0 | 173 | interface SVGPathSegLinetoVerticalRel : SVGPathSeg { |
michael@0 | 174 | [SetterThrows] |
michael@0 | 175 | attribute float y; |
michael@0 | 176 | }; |
michael@0 | 177 | |
michael@0 | 178 | interface SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg { |
michael@0 | 179 | [SetterThrows] |
michael@0 | 180 | attribute float x; |
michael@0 | 181 | [SetterThrows] |
michael@0 | 182 | attribute float y; |
michael@0 | 183 | [SetterThrows] |
michael@0 | 184 | attribute float x2; |
michael@0 | 185 | [SetterThrows] |
michael@0 | 186 | attribute float y2; |
michael@0 | 187 | }; |
michael@0 | 188 | |
michael@0 | 189 | interface SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg { |
michael@0 | 190 | [SetterThrows] |
michael@0 | 191 | attribute float x; |
michael@0 | 192 | [SetterThrows] |
michael@0 | 193 | attribute float y; |
michael@0 | 194 | [SetterThrows] |
michael@0 | 195 | attribute float x2; |
michael@0 | 196 | [SetterThrows] |
michael@0 | 197 | attribute float y2; |
michael@0 | 198 | }; |
michael@0 | 199 | |
michael@0 | 200 | interface SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg { |
michael@0 | 201 | [SetterThrows] |
michael@0 | 202 | attribute float x; |
michael@0 | 203 | [SetterThrows] |
michael@0 | 204 | attribute float y; |
michael@0 | 205 | }; |
michael@0 | 206 | |
michael@0 | 207 | interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg { |
michael@0 | 208 | [SetterThrows] |
michael@0 | 209 | attribute float x; |
michael@0 | 210 | [SetterThrows] |
michael@0 | 211 | attribute float y; |
michael@0 | 212 | }; |
michael@0 | 213 |