1.1.0 • Published 7 years ago

svg-to-path v1.1.0

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

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 paths
  • circles: repace circles with paths
  • polygons: repace polygons with paths
  • hidePaths: apply stroke-dashoffset and stroke-dasharray of total length for each paths

License

MIT, see LICENSE.md for details.