@@ -168,10 +168,10 @@ The ''shape()'' Function</h4>
168
168
<<move-command>> = move <<by-to>> <<coordinate-pair>>
169
169
<<line-command>> = line <<by-to>> <<coordinate-pair>>
170
170
<<hv-line-command>> = [hline | vline] <<by-to>> <<length-percentage>>
171
- <<curve-command>> = curve <<by-to>> <<coordinate-pair>> via <<coordinate-pair>> {1,2}
172
- <<smooth-command>> = smooth <<by-to>> <<coordinate-pair>> [via <<coordinate-pair>> ]?
173
- <<arc-command>> = arc <<by-to>> <<coordinate-pair>> of <<length-percentage>> {1,2}
174
- [ <<arc-sweep>> || <<arc-size>> || rotate <<angle>> ]?
171
+ <<curve-command>> = curve [ <<by-to>> <<coordinate-pair>> using <<coordinate-pair>> {1,2}]
172
+ <<smooth-command>> = smooth [[ <<by-to>> <<coordinate-pair>> ] || [using <<coordinate-pair>> ]?]
173
+ <<arc-command>> = arc [[ <<by-to>> <<coordinate-pair>> ] || [ of <<length-percentage>> {1,2}] ||
174
+ <<arc-sweep>> ? || <<arc-size>> ? || [ rotate <<angle>> ]?]
175
175
<<arc-sweep>> = cw | ccw
176
176
<<arc-size>> = large | small
177
177
</pre>
@@ -227,23 +227,23 @@ The ''shape()'' Function</h4>
227
227
of the <<coordinate-pair>> ,
228
228
and the other component specified appropriately to make the line horizontal or vertical.
229
229
230
- <dt> <dfn><<curve-command>></dfn> = <dfn value>curve</dfn> <<by-to>> <<coordinate-pair>> via <<coordinate-pair>> {1,2}
230
+ <dt> <dfn><<curve-command>></dfn> = <dfn value>curve</dfn> [[ <<by-to>> <<coordinate-pair>>] || [using <<coordinate-pair>>{1,2}] ]
231
231
<dd>
232
232
Adds a Bézier curve command to the list of path data commands,
233
233
ending at the point specified by the first <<coordinate-pair>> .
234
234
235
- The <css> via </css> component specifies control points for the curve:
235
+ The <css> using </css> component specifies control points for the curve:
236
236
if a single <<coordinate-pair>> is provided,
237
237
the command specifies a <a href="https://www.w3.org/TR/SVG/paths.html#PathDataQuadraticBezierCommands">quadratic curve</a> ;
238
238
if two <<coordinate-pair>> s are provided,
239
239
it specifies a <a href="https://www.w3.org/TR/SVG/paths.html#PathDataCubicBezierCommands">cubic curve</a> .
240
240
241
- <dt> <dfn><<smooth-command>></dfn> = <dfn value>smooth</dfn> <<by-to>> <<coordinate-pair>> [via <<coordinate-pair>>] ?
241
+ <dt> <dfn><<smooth-command>></dfn> = <dfn value>smooth</dfn> [[ <<by-to>> <<coordinate-pair>>] || [using <<coordinate-pair>>] ?]
242
242
<dd>
243
243
Adds a smooth Bézier curve command to the list of path data commands,
244
244
ending at the point specified by the first <<coordinate-pair>> .
245
245
246
- The <css> via </css> component specifies control points for the curve:
246
+ The <css> using </css> component specifies control points for the curve:
247
247
if it's omitted,
248
248
the command specifies a <a href="https://www.w3.org/TR/SVG/paths.html#PathDataQuadraticBezierCommands">smooth quadratic curve</a> ;
249
249
if it's provided,
@@ -258,7 +258,7 @@ The ''shape()'' Function</h4>
258
258
so the curve appears to smoothly continue from the previous command,
259
259
rather than possibly making a sudden direction change.
260
260
261
- <dt> <dfn><<arc-command>></dfn> = <dfn value>arc</dfn> <<by-to>> <<coordinate-pair>> of <<length-percentage>> {1,2} [ <<arc-sweep>> || <<arc-size>> || rotate <<angle>> ]
261
+ <dt> <dfn><<arc-command>></dfn> = <dfn value>arc</dfn> [[ <<by-to>> <<coordinate-pair>>] || [ of <<length-percentage>>{1,2}] || <<arc-sweep>> ? || <<arc-size>> ? || rotate <<angle>> ? ]
262
262
<dd>
263
263
Add an <a href="https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands">elliptical arc</a> command
264
264
to the list of path data commands,
0 commit comments