js-svg-path icon indicating copy to clipboard operation
js-svg-path copied to clipboard

Switcheroo bug when parsing horizontal line with offset

Open sjovanovic opened this issue 4 years ago • 0 comments

When parsing horizontal line and there's offset set (case when xoffset != yoffset) results in weird output because yoffset is added to the x coordinate instead of xoffset.

https://github.com/Pomax/js-svg-path/blob/b6c0e5c566fd3853348f912f85e688838300593d/svg-parser.js#L66

sjovanovic avatar Jun 23 '20 16:06 sjovanovic