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

Preprocess with usvg (support for shapes and transforms) #29

Merged
merged 4 commits into from
Aug 22, 2022
Merged

Conversation

dbrgn
Copy link
Owner

@dbrgn dbrgn commented Aug 20, 2022

Preprocess the SVGs with usvg. This gives us a whole lot of new features:

  • Support for shapes (like circles, rectangles, etc)
  • Support for transforms
  • Other less often used SVG features

All transforms are converted to matrix transforms by usvg. They're then applied to the polyline using euclid::Transform2D.

Thanks @naufraghi for the initial work on this!

Fixes #18.

@dbrgn dbrgn self-assigned this Aug 20, 2022
@dbrgn
Copy link
Owner Author

dbrgn commented Aug 20, 2022

@naufraghi would you like to give this a test? (If you don't have time that's perfectly fine as well!)

Co-authored-by: Matteo Bertini <matteo@naufraghi.net>
@naufraghi
Copy link
Contributor

@naufraghi would you like to give this a test? (If you don't have time that's perfectly fine as well!)

Sorry, I didn't have time to test, the test cases I was using were from a previous life.

@dbrgn
Copy link
Owner Author

dbrgn commented Aug 29, 2022

No worries 🙂

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

Successfully merging this pull request may close these issues.

Add support for matrix transforms
2 participants