-
Notifications
You must be signed in to change notification settings - Fork 269
Fix abs_bounding_box
calculation for image
#924
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
It's not immediately obvious to me why the previous code is wrong, do you have an example test case where the current code yields a wrong bbox? |
Yeah you are right, it's currently wrong. I can't push to your branch, can you please add the following test case? Then we can merge
|
I'm surprised that AI was able to figure it out... it does fix the issue. Now, the reason why it doesn't affect tests is because Now, I'm not sure if @Dabble63 can you add the following code to <text x="350" y="250">Image with transform</text>
<image x="20" y="40" width="60" height="30" transform="rotate(45) translate(490 -40)"
preserveAspectRatio="none" xlink:href="ferris.png"/> as some sort of a manual test. |
I am not sure what the formatting issue is but otherwise looks good |
You just need to run ‘cargo fmt’ |
Looks good now |
abs_bounding_box
calculation for image
Thanks! |
No description provided.