Search
Preparing search index...
The search index is not available
canvg
Options
All
Public
Public/Protected
All
Inherited
Menu
canvg
PathParser
Class PathParser
Hierarchy
SVGPathData
PathParser
Index
Constructors
constructor
Properties
angles
command
commands
control
current
i
points
previous
Command
start
Methods
add
Marker
add
Marker
Angle
get
As
Control
Point
get
As
Current
Point
get
Marker
Angles
get
Marker
Points
get
Point
get
Reflected
Control
Point
is
End
make
Absolute
next
reset
Constructors
constructor
new
Path
Parser
(
path
:
string
)
:
PathParser
Parameters
path:
string
Returns
PathParser
Properties
Private
angles
angles
:
number
[]
= []
command
command
:
Command
= null
Readonly
commands
commands
:
Command
[]
= ...
control
control
:
Point
= ...
current
current
:
Point
= ...
Private
i
i
:
number
= -1
Private
points
points
:
Point
[]
= []
Private
previous
Command
previous
Command
:
Command
= null
start
start
:
Point
= ...
Methods
add
Marker
add
Marker
(
point
:
Point
, from
?:
Point
, priorTo
?:
Point
)
:
void
Parameters
point:
Point
Optional
from:
Point
Optional
priorTo:
Point
Returns
void
add
Marker
Angle
add
Marker
Angle
(
point
:
Point
, angle
:
number
)
:
void
Parameters
point:
Point
angle:
number
Returns
void
get
As
Control
Point
get
As
Control
Point
(
xProp
?:
string
, yProp
?:
string
)
:
Point
Parameters
Optional
xProp:
string
Optional
yProp:
string
Returns
Point
get
As
Current
Point
get
As
Current
Point
(
xProp
?:
string
, yProp
?:
string
)
:
Point
Parameters
Optional
xProp:
string
Optional
yProp:
string
Returns
Point
get
Marker
Angles
get
Marker
Angles
(
)
:
number
[]
Returns
number
[]
get
Marker
Points
get
Marker
Points
(
)
:
Point
[]
Returns
Point
[]
get
Point
get
Point
(
xProp
?:
string
, yProp
?:
string
)
:
Point
Parameters
xProp:
string
= 'x'
yProp:
string
= 'y'
Returns
Point
get
Reflected
Control
Point
get
Reflected
Control
Point
(
)
:
Point
Returns
Point
is
End
is
End
(
)
:
boolean
Returns
boolean
make
Absolute
make
Absolute
(
point
:
Point
)
:
Point
Parameters
point:
Point
Returns
Point
next
next
(
)
:
Command
Returns
Command
reset
reset
(
)
:
void
Returns
void
Exports
presets
Path
Parser
constructor
angles
command
commands
control
current
i
points
previous
Command
start
add
Marker
add
Marker
Angle
get
As
Control
Point
get
As
Current
Point
get
Marker
Angles
get
Marker
Points
get
Point
get
Reflected
Control
Point
is
End
make
Absolute
next
reset
Generated using
TypeDoc