0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-03 05:10:13 -05:00

fix rotation matrix

This commit is contained in:
Alex Sánchez 2024-04-16 10:20:57 +02:00
parent 440ce8f4eb
commit eca913eadc
No known key found for this signature in database
GPG key ID: 68A95170EEB87E16

View file

@ -24,7 +24,7 @@ export const transformRectangleNode = (
e: 0,
f: 0
},
rotation: node.rotation < 0 ? node.rotation + 360 : node.rotation,
rotation: -node.rotation < 0 ? -node.rotation + 360 : -node.rotation,
...transformDimensionAndPosition(node, baseX, baseY),
...transformSceneNode(node),
...transformBlend(node)