1.1.0 • Published 9 years ago
svg-to-path v1.1.0
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-dashoffsetandstroke-dasharrayof total length for each paths
License
MIT, see LICENSE.md for details.