Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG importing bug with multiple 'm' and 'Z' commands #109

Open
alexjlockwood opened this issue Feb 23, 2017 · 0 comments
Open

SVG importing bug with multiple 'm' and 'Z' commands #109

alexjlockwood opened this issue Feb 23, 2017 · 0 comments

Comments

@alexjlockwood
Copy link
Contributor

alexjlockwood commented Feb 23, 2017

I think before the break statement here:

You need to keep track of a point variable lastMovePoint and add the line:

currentPoint = Object.assign({}, lastMovePoint);

Otherwise a path such as m 1,1 2,2 3,3 Z m 1,1 2,2 3,3 Z won't import properly (specifically, the second relative 'm' command will use 3,3 as its current point, when really it should be using 1,1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants