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

Make .image() use the transformation matrix. #227

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

miracle2k
Copy link
Contributor

When drawing another SVG file passing the output of createGraphics() to image(), the current transformation matrix is not being taken into account. Because the transform attribute cannot be applied to the root svg element, this instead wraps such elements into a g.

@zenozeng zenozeng merged commit 0fd6b0f into zenozeng:main Aug 3, 2022
@zenozeng
Copy link
Owner

zenozeng commented Aug 3, 2022

@miracle2k Thanks!

zenozeng added a commit that referenced this pull request Aug 3, 2022
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

Successfully merging this pull request may close these issues.

2 participants