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

Support implicit command repetition #42

Closed
pwesten opened this issue Jul 13, 2017 · 1 comment
Closed

Support implicit command repetition #42

pwesten opened this issue Jul 13, 2017 · 1 comment

Comments

@pwesten
Copy link

pwesten commented Jul 13, 2017

Per the SVG 1.1 spec:

"The command letter can be eliminated on subsequent commands if the same command is used multiple times in a row (e.g., you can drop the second "L" in "M 100 200 L 200 100 L -100 -200" and use "M 100 200 L 200 100 -100 -200" instead)."

@mchoe
Copy link
Owner

mchoe commented Jul 14, 2017

This should work in the current implementation. See screenshot below.

example

Having said that, I will be releasing a brand new version very soon (within the week hopefully) which features a test-driven parser that supports more elements and attributes. You can preview that release on the feature/2.0.0 branch. It's still changing, so I wouldn't recommend using it in production yet, but I know for a fact that consecutive commands is fully supported.

@mchoe mchoe closed this as completed Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants