CommandFactories

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(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

Source:

(inner) z() → {SVGPathZCommand}

Factory helper to create a new END command

Source:

(inner) Z() → {SVGPathZCommand}

Factory helper to create a new END command

Source: