-
Notifications
You must be signed in to change notification settings - Fork 563
Fix transform on clipped images #437
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
Conversation
|
Investigating the broken test. Clip is missing when parsing Looks like |
|
Hello, Thank you very much for your contribution. About the test, you are right. I added serialization for |
|
Hello again, |
16f89a0 to
6abb303
Compare
Source/svg/SVGParser.swift
Outdated
| let transform = transformBoundingBoxLocus(respectiveLocus: userSpaceLocus.locus, absoluteLocus: locus) | ||
| return TransformedLocus(locus: userSpaceLocus.locus, transform: transform) | ||
| } | ||
| if let userSpaceTransform = userSpaceLocus.transform, userSpaceTransform != Transform.identity { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a check here to only return a TransformedLocus if the transform is not the identity matrix.
|
Thanks @f3dm76, tests are passing now! |
|
Hello, looks good, but it seems like it's easier to just put |
6abb303 to
7440caf
Compare
|
Great idea! I've updated the PR. |
|
Hi Stephanie, Thanks for your help! |
Note: depends on #436