Phrogz / svg-path-to-polygons

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

Does not handle degenerate cubic beziers #5

Open conundrumer opened 6 years ago

conundrumer commented 6 years ago
pathDataToPolys('M0,0c0,0,0,0,0,0')

I was working with an SVG file and it had a degenerate cubic bezier command. The above test case reproduces the issue: Infinite recursion

Phrogz commented 6 years ago

Confirmed. Thanks for the report!