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

Disallow transforms in simplified SVG #9

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

Disallow transforms in simplified SVG #9

JayFoxRox opened this issue Jun 15, 2020 · 0 comments

Comments

@JayFoxRox
Copy link

While discussing #7, we did not consider transforms.

So far, the SVG in the repository contains transforms:

  • The groups are transformed to move the actual drawing towards the center.
  • Some elements appear to be scaled.

We should apply these transforms and forbid them in the simplified SVG file.
This means we have to explicitly check for them and bail out if any of them exist.

Applying them within the script might be tricky (we should keep our tools simple, to avoid re-implementing a full SVG editor), so ideally we should create documentation on how to export from Inkscape (or other tools) to avoid transforms (maybe https://github.com/Klowner/inkscape-applytransforms).

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