diff --git a/plugin-src/transformers/transformRectangleNode.ts b/plugin-src/transformers/transformRectangleNode.ts index 61c3329..0d57769 100644 --- a/plugin-src/transformers/transformRectangleNode.ts +++ b/plugin-src/transformers/transformRectangleNode.ts @@ -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)