svg-replace-bezier

0.0.3 • Public • Published

svg-replace-bezier is a library for replacing bezier curves with line segments

This is accomplished by using svg-path-parse to parse the path, and using a portion of the antigrain geometry library compiled with emscripten to convert the bezier curves to line segments.

example

var replaceBezier = require('svg-replace-bezier');

replaceBezier.d('M100,200 Q100,100 250,200 Q400,300 400,200'); /* outputs 'M100,200 L100.146484375,....' */

demo

  • page
  • [source] (demo)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    2
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i svg-replace-bezier

Weekly Downloads

2

Version

0.0.3

License

CC0-1.0

Last publish

Collaborators

  • randyp