svg-to-path
v1.1.0
Published
replace lines, circles and polygons with paths
Downloads
18
Readme
svg-to-path
replace lines, circles and polygons with paths
Usage
npm install svg-to-path --save
import replace from 'svg-to-path'
const svg = document.querySelector('svg')
// replace.lines(svg)
// replace.circles(svg)
// replace.polygons(svg)
// replace.hidePaths(svg)
methods
lines
: repace lines with pathscircles
: repace circles with pathspolygons
: repace polygons with pathshidePaths
: applystroke-dashoffset
andstroke-dasharray
of total length for each paths
License
MIT, see LICENSE.md for details.