Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

randyp/svg-replace-bezier

Repository files navigation

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,....' */

npm dependency

npm install svg-replace-bezier

demo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages