rveciana / svg-path-properties

Pure Javascript alternative to path.getPointAtLength(t) and getTotalLength() functions. Works with Canvas & Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failing to parse path

animaonline opened this issue · comments

Here is the path I'm trying to parse, the path is perfectly valid, it renders just fine, but your library is not able to parse it, removing or adding a new point seems to help.

https://pastebin.com/AdxHQf3C

The issue can be easily reproduced by running pathProperties(...).getTotalLength() which returns NaN.

Hi! Thank you, I'll take a look.

You managed to make a negative square root! Now, I check it and it works. Just download the latest version.
Thanks or the issue.

Thanks! 👍