shapepath
No-dependecy, fast and lightweight SVG Shape Parser and Compiler
CDN
# unpkg https://unpkg.com/shapepath # npmcdn https://npmcdn.com/shapepath # jsDelivr https://cdn.jsdelivr.net/npm/shapepath
Installing
$ npm install shapepath# or $ yarn add shapepath
Usage
var ShapePath = ;var toPoints = ShapePathtoPoints;var toPath = ShapePathtoPath; var RectSVG = ; var getAsPathD = ;
Methods
toPoints
Parse path string or rect, etc, inputs object parametrs to Array of Points
toPath
Converts Array of Points to Path string