Class: PathParser
Hierarchy​
SVGPathData
↳
PathParser
Constructors​
constructor​
• new PathParser(path
)
Parameters​
Name | Type |
---|---|
path | string |
Overrides​
SVGPathData.constructor
Defined in​
Properties​
control​
• control: Point
Defined in​
start​
• start: Point
Defined in​
current​
• current: Point
Defined in​
command​
• command: Command
= null
Defined in​
commands​
• Readonly
commands: Command
[]
Overrides​
SVGPathData.commands
Defined in​
i​
• Private
i: number
= -1
Defined in​
previousCommand​
• Private
previousCommand: Command
= null
Defined in​
points​
• Private
points: Point
[] = []
Defined in​
angles​
• Private
angles: number
[] = []
Defined in​
Methods​
reset​
â–¸ reset(): void
Returns​
void
Defined in​
isEnd​
â–¸ isEnd(): boolean
Returns​
boolean
Defined in​
next​
â–¸ next(): Command
Returns​
Defined in​
getPoint​
â–¸ getPoint(xProp?
, yProp?
): Point
Parameters​
Name | Type | Default value |
---|---|---|
xProp | string | 'x' |
yProp | string | 'y' |
Returns​
Defined in​
getAsControlPoint​
â–¸ getAsControlPoint(xProp?
, yProp?
): Point
Parameters​
Name | Type |
---|---|
xProp? | string |
yProp? | string |
Returns​
Defined in​
getAsCurrentPoint​
â–¸ getAsCurrentPoint(xProp?
, yProp?
): Point
Parameters​
Name | Type |
---|---|
xProp? | string |
yProp? | string |
Returns​
Defined in​
getReflectedControlPoint​
â–¸ getReflectedControlPoint(): Point
Returns​
Defined in​
makeAbsolute​
â–¸ makeAbsolute(point
): Point
Parameters​
Name | Type |
---|---|
point | Point |
Returns​
Defined in​
addMarker​
â–¸ addMarker(point
, from?
, priorTo?
): void
Parameters​
Name | Type |
---|---|
point | Point |
from? | Point |
priorTo? | Point |
Returns​
void
Defined in​
addMarkerAngle​
â–¸ addMarkerAngle(point
, angle
): void
Parameters​
Name | Type |
---|---|
point | Point |
angle | number |
Returns​
void
Defined in​
getMarkerPoints​
â–¸ getMarkerPoints(): Point
[]
Returns​
Point
[]
Defined in​
getMarkerAngles​
â–¸ getMarkerAngles(): number
[]
Returns​
number
[]