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

Rewrite paths for simplified SVG #10

Open
JayFoxRox opened this issue Jun 15, 2020 · 0 comments
Open

Rewrite paths for simplified SVG #10

JayFoxRox opened this issue Jun 15, 2020 · 0 comments

Comments

@JayFoxRox
Copy link

The paths in SVG can be written in various ways. The ruleset is really loose, so different tools might export the path very differently.
It even makes me consider a non-SVG format instead of a simplified SVG for storage.

We should also have a rule about where each path starts and consider reversing it to be consistent (for example: of the start/end point, the top-left point could be chosen, to get consistent ordering).

For now, we can probably use https://pypi.org/project/svg.path/ to parse and rewrite the path for our simplified SVG.
However, that library is very limited in the choices is offering for rewriting and I don't think it follows the SVG spec exactly. It's just a lightweight choice which can be used so we don't bikeshed over tooling.

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

1 participant