Playground
Docs
Typedoc
Typedoc API Docs
Examples
Docs
Basic CodePen
Romania map
NPM
GitHub
Preparing search index...
Class PathNormalizer
Index
Constructors
constructor
Methods
normalize
Path
Data
commands
To
Path
String
contour
From
Points
ellipse
Contour
Constructors
constructor
new
PathNormalizer
()
:
PathNormalizer
Returns
PathNormalizer
Methods
Static
normalize
Path
Data
normalizePathData
(
path
:
string
|
PathCommand
[]
,
options
?:
PathNormalizerOptions
,
)
:
NormalizedPath
Parameters
path
:
string
|
PathCommand
[]
options
:
PathNormalizerOptions
= {}
Returns
NormalizedPath
Static
commands
To
Path
String
commandsToPathString
(
commands
:
PathCommand
[]
)
:
string
Parameters
commands
:
PathCommand
[]
Returns
string
Static
contour
From
Points
contourFromPoints
(
points
:
Point
[]
|
undefined
,
closed
:
boolean
,
transform
?:
Matrix2D
,
)
:
NormalizedContour
|
null
Parameters
points
:
Point
[]
|
undefined
closed
:
boolean
Optional
transform
:
Matrix2D
Returns
NormalizedContour
|
null
Static
ellipse
Contour
ellipseContour
(
cx
:
number
,
cy
:
number
,
rx
:
number
,
ry
:
number
,
options
?:
PathNormalizerOptions
,
)
:
NormalizedContour
Parameters
cx
:
number
cy
:
number
rx
:
number
ry
:
number
options
:
PathNormalizerOptions
= {}
Returns
NormalizedContour
On This Page
Constructors
constructor
Methods
normalize
Path
Data
commands
To
Path
String
contour
From
Points
ellipse
Contour
Examples
Docs
Basic CodePen
Romania map
NPM
GitHub
Typedoc API Docs
Loading...