-
Notifications
You must be signed in to change notification settings - Fork 560
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
Fix transform on clipped images #437
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
@@ -1393,6 +1393,9 @@ open class SVGParser { | |||
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