Methods
(inner) a(rx, ry, angle, large, clockwise, x, y) → {SVGPathACommand}
Factory helper to create a new relative ARC command
Parameters:
| Name | Type | Description |
|---|---|---|
rx |
number |
The length of the arc radius along the x-axis |
ry |
number |
The length of the arc radius along the y-axis |
angle |
number |
The rotation of the arc along the x-axis |
large |
boolean |
Indicates if the arc segment is the large arc |
clockwise |
boolean |
Indicates if the arc segment is drawn clockwise |
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) A(rx, ry, angle, large, clockwise, x, y) → {SVGPathACommand}
Factory helper to create a new absolute ARC command
Parameters:
| Name | Type | Description |
|---|---|---|
rx |
number |
The length of the arc radius along the x-axis |
ry |
number |
The length of the arc radius along the y-axis |
angle |
number |
The rotation of the arc along the x-axis |
large |
boolean |
Indicates if the arc segment is the large arc |
clockwise |
boolean |
Indicates if the arc segment is drawn clockwise |
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) c(x1, y1, x2, y2, x, y) → {SVGPathCCommand}
Factory helper to create a new relative CUBIC BEZIER command
Parameters:
| Name | Type | Description |
|---|---|---|
x1 |
number |
The x coordinate of the first control point |
y1 |
number |
The y coordinate of the first control point |
x2 |
number |
The x coordinate of the second control point |
y2 |
number |
The y coordinate of the second control point |
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) C(x1, y1, x2, y2, x, y) → {SVGPathCCommand}
Factory helper to create a new absolute CUBIC BEZIER command
Parameters:
| Name | Type | Description |
|---|---|---|
x1 |
number |
The x coordinate of the first control point |
y1 |
number |
The y coordinate of the first control point |
x2 |
number |
The x coordinate of the second control point |
y2 |
number |
The y coordinate of the second control point |
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) command(type, …args) → {SVGPathCommand}
Command factory
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
type |
string |
The type of command to create |
|
args |
number |
<repeatable> |
The command variadic parameters |
- Source:
(inner) h(x) → {SVGPathHCommand}
Factory helper to create a new relative HORIZONTAL LINE command
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number |
The x coordinate of the command's end point |
(inner) H(x) → {SVGPathHCommand}
Factory helper to create a new absolute HORIZONTAL LINE command
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number |
The x coordinate of the command's end point |
(inner) l(x, y) → {SVGPathLCommand}
Factory helper to create a new relative LINE command
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number |
The x coordinate of the command's end point |
y |
number |
The y coordinate of the command's end point |
(inner) L(x, y) → {SVGPathLCommand}
Factory helper to create a new absolute LINE command
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number |
The x coordinate of the command's end point |
y |
number |
The y coordinate of the command's end point |
(inner) m(x, y) → {SVGPathMCommand}
Factory helper to create a new relative MOVE command
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number |
The x coordinate of the end point for the command |
y |
number |
The y coordinate of the end point for the command |
(inner) M(x, y) → {SVGPathMCommand}
Factory helper to create a new absolute MOVE command
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number |
The x coordinate of the end point for the command |
y |
number |
The y coordinate of the end point for the command |
(inner) q(x1, y1, x, y) → {SVGPathQCommand}
Factory helper to create a new relative QUADRATIC BEZIER command
Parameters:
| Name | Type | Description |
|---|---|---|
x1 |
number |
The x coordinate of the first control point |
y1 |
number |
The y coordinate of the first control point |
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) Q(x1, y1, x, y) → {SVGPathQCommand}
Factory helper to create a new absolute QUADRATIC BEZIER command
Parameters:
| Name | Type | Description |
|---|---|---|
x1 |
number |
The x coordinate of the first control point |
y1 |
number |
The y coordinate of the first control point |
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) s(x2, y2, x, y) → {SVGPathSCommand}
Factory helper to create a new relative SMOOTH CUBIC BEZIER command
Parameters:
| Name | Type | Description |
|---|---|---|
x2 |
number |
The x coordinate of the end control point |
y2 |
number |
The y coordinate of the end control point |
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) S(x2, y2, x, y) → {SVGPathSCommand}
Factory helper to create a new absolute SMOOTH CUBIC BEZIER command
Parameters:
| Name | Type | Description |
|---|---|---|
x2 |
number |
The x coordinate of the end control point |
y2 |
number |
The y coordinate of the end control point |
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) t(x, y) → {SVGPathTCommand}
Factory helper to create a new relative SMOOTH QUADRATIC BEZIER command
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) T(x, y) → {SVGPathTCommand}
Factory helper to create a new absolute SMOOTH QUADRATIC BEZIER command
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number |
The x coordinate for the command's end point |
y |
number |
The y coordinate for the command's end point |
(inner) v(y) → {SVGPathVCommand}
Factory helper to create a new relative VERTICAL LINE command
Parameters:
| Name | Type | Description |
|---|---|---|
y |
number |
The y coordinate of the command's end point |
(inner) V(y) → {SVGPathVCommand}
Factory helper to create a new absolute VERTICAL LINE command
Parameters:
| Name | Type | Description |
|---|---|---|
y |
number |
The y coordinate of the command's end point |
(inner) z() → {SVGPathZCommand}
Factory helper to create a new END command
(inner) Z() → {SVGPathZCommand}
Factory helper to create a new END command