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

draw: Do not transform content anchors #326

Merged
merged 4 commits into from
Nov 22, 2023
Merged

Conversation

johannes-wolf
Copy link
Member

@johannes-wolf johannes-wolf commented Nov 11, 2023

Content must not get transformed.
The only anchor that gets transformed is the center anchor. All other anchors must be calculated relative to that one.

Fixes #256.

Also fixes content bounding box calculation. Calculating the width/height from north-south and east-west is not enough. Instead, use the already calculated anchors at all four corners to calculate the rotated width/height.

@johannes-wolf johannes-wolf added the bug 🐛 Something isn't working label Nov 11, 2023
@johannes-wolf johannes-wolf added this to the 0.2 milestone Nov 11, 2023
@johannes-wolf johannes-wolf changed the title Do not transform content anchors draw: Do not transform content anchors Nov 20, 2023
@johannes-wolf johannes-wolf merged commit afea337 into 0.2.0 Nov 22, 2023
1 of 2 checks passed
@johannes-wolf johannes-wolf deleted the content-no-transform branch November 22, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants