From bcf6edfe8edffb48aec7447b8788948e2686540a Mon Sep 17 00:00:00 2001 From: Jordi Sala Morales Date: Thu, 18 Apr 2024 09:46:20 +0000 Subject: [PATCH] Use absoluteBoundingBox to position items --- .../transformers/partials/transformDimensionAndPosition.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin-src/transformers/partials/transformDimensionAndPosition.ts b/plugin-src/transformers/partials/transformDimensionAndPosition.ts index 68e17fbe..fca8203c 100644 --- a/plugin-src/transformers/partials/transformDimensionAndPosition.ts +++ b/plugin-src/transformers/partials/transformDimensionAndPosition.ts @@ -6,8 +6,8 @@ export const transformDimensionAndPosition = ( baseY: number ): ShapeGeomAttributes => { return { - x: node.x + baseX, - y: node.y + baseY, + x: node.absoluteBoundingBox?.x ?? 0, + y: node.absoluteBoundingBox?.y ?? 0, width: node.width, height: node.height };