From 440ce8f4eb9b09a34d3f2f899688fc84077f397e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Tue, 16 Apr 2024 10:17:28 +0200 Subject: [PATCH] fix rotation matrix --- plugin-src/transformers/transformRectangleNode.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin-src/transformers/transformRectangleNode.ts b/plugin-src/transformers/transformRectangleNode.ts index 0d57769..439603b 100644 --- a/plugin-src/transformers/transformRectangleNode.ts +++ b/plugin-src/transformers/transformRectangleNode.ts @@ -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),