Open sjovanovic opened 4 years ago
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.
xoffset != yoffset
yoffset
x
xoffset
https://github.com/Pomax/js-svg-path/blob/b6c0e5c566fd3853348f912f85e688838300593d/svg-parser.js#L66
When parsing horizontal line and there's offset set (case when
xoffset != yoffset
) results in weird output becauseyoffset
is added to thex
coordinate instead ofxoffset
.https://github.com/Pomax/js-svg-path/blob/b6c0e5c566fd3853348f912f85e688838300593d/svg-parser.js#L66