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:
parent
01a4fa5622
commit
dbd0d7f5bd
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue