UNPKG
svg-path
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.0
0.0.1
Manipulate SVG <path> data.
github.com/PPvG/svg-path
PPvG/svg-path
svg-path
/
index.js
10 lines
(7 loc)
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
parsePath =
require
(
'./lib/parsePath'
)
var
Path
=
require
(
'./lib/Path'
)
module
.
exports
=
function
(
pathData
) {
return
new
Path
(
parsePath
(pathData)) }
module
.
exports
.
parse
= parsePath
module
.
exports
.
Path
=
Path