Phrogz / svg-path-to-polygons

Converts path commands for an SVG path to polygon points.
MIT License
55 stars 19 forks source link

[add] support commands: quadratic Bézier, arc #8

Open ra-kalai opened 4 years ago

ra-kalai commented 4 years ago

To be rejected pull request as I understand, that you might not like the change from closure paradigm to prototype one.

But feel free to pick up these functions

They would allow you to cheaply support Quadratic bezier and Elliptic Arc, by transforming them to some cubic bezier curves.