Skip to content

Conversation

triplingual
Copy link
Contributor

Closes #631

triplingual and others added 3 commits September 10, 2025 11:50
To get the rotation we want, the point of rotation cannot be the center of a rectangle, given that the implicit overlap between the vertical rectangle of the resource and the horizontal rectangle of the Canvas share a corner rather than their center. Fortunately, figuring the rotation point is, in this case and many others, just figuring the center of the imaginary square formed by the overlap of the resource and Canvas. In turn this center is half the narrower dimension of the resource or Canvas, provided they are the same dimensions
@glenrobson glenrobson added the meta: ready-to-merge Pull request is ready to merge into main branch label Oct 10, 2025
@glenrobson glenrobson merged commit 41b2f5e into master Oct 15, 2025
1 check passed
@glenrobson glenrobson deleted the bug-0040-transform-origin branch October 15, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta: correction meta: ready-to-merge Pull request is ready to merge into main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSS rotation clarification

2 participants