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

try to rotate

This commit is contained in:
Jordi Sala Morales 2024-04-15 16:50:58 +00:00
parent 01a4fa5622
commit dbd0d7f5bd
No known key found for this signature in database
GPG key ID: C5127140107F55FD

View file

@ -16,6 +16,15 @@ export const transformRectangleNode = (
type: 'rect',
name: node.name,
fills: translateFills(node.fills, node.width, node.height),
transform: {
a: node.relativeTransform[0][0],
b: -node.relativeTransform[0][1],
c: node.relativeTransform[1][0],
d: -node.relativeTransform[1][1],
e: 0,
f: -0
},
rotation: node.rotation < 0 ? node.rotation + 360 : node.rotation,
...transformDimensionAndPosition(node, baseX, baseY),
...transformSceneNode(node),
...transformBlend(node)