When a group has rotation it's incorrectly applied in the code. I've seen this behavior in HTML but not sure whether all code is affected. <img width="809" alt="Screenshot 2025-01-08 at 11 39 21" src="https://github.com/user-attachments/assets/38eea459-06c4-4813-a1b6-1012eecebca3" /> It appears that perhaps the rotation is applied to the group and also to the children of the group. <img width="445" alt="Screenshot 2025-01-08 at 11 39 43" src="https://github.com/user-attachments/assets/97f459ed-7afa-4327-b3a0-15bbf9746813" /> The effects compound when there are are multiple groups or multiple rotations inside the groups. <img width="952" alt="Screenshot 2025-01-08 at 11 34 52" src="https://github.com/user-attachments/assets/87731de0-47b4-4efa-a9ff-1573e64951a4" />
Activity
mimshwright commentedon Jan 12, 2025
Seems this is how the nodes in the figma API are represented.
For some reason, a group with rotation also has rotated nodes.
if the child is also rotated 45° the effect is doubled
So seems like we need to subtract the rotation of the parent from the children.
bernaferrari commentedon Jan 15, 2025
This is one of the confusing things in Figma. I think I've done that that subtraction in the past, not sure why it came back, feel free to send a PR.
bernaferrari commentedon Mar 13, 2025
Should be working now!