DmitryBaranovskiy / raphael

JavaScript Vector Library
https://dmitrybaranovskiy.github.io/raphael/
MIT License
11.27k stars 1.67k forks source link

[BUG] pathToAbsolute and path2curve failure #1124

Open thednp opened 4 years ago

thednp commented 4 years ago

For some reason pathToAbsolute fails to process Bezier [C]urves and in consequence, the path2curve will also deliver wrong values.

Test site https://jsfiddle.net/yq42njsr/

Update: it turns out that the RegExp in Raphael.js cannot compute over-optimized arcTo path command coordinates, I opened an issue on Stackoverflow, trying to find a solution and hopefully resolve it here as well.

thednp commented 4 years ago

I have a solution for those in need, right here