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:
parent
dbd0d7f5bd
commit
440ce8f4eb
1 changed files with 5 additions and 5 deletions
|
@ -17,12 +17,12 @@ export const transformRectangleNode = (
|
|||
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],
|
||||
a: node.absoluteTransform[0][0],
|
||||
b: node.absoluteTransform[1][0],
|
||||
c: node.absoluteTransform[0][1],
|
||||
d: node.absoluteTransform[1][1],
|
||||
e: 0,
|
||||
f: -0
|
||||
f: 0
|
||||
},
|
||||
rotation: node.rotation < 0 ? node.rotation + 360 : node.rotation,
|
||||
...transformDimensionAndPosition(node, baseX, baseY),
|
||||
|
|
Loading…
Reference in a new issue