From 5c6692c1faacf8c53f04c0568e4af60515e0472d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Tue, 18 Jun 2024 13:09:10 +0200 Subject: [PATCH] fixes --- plugin-src/transformers/partials/transformLayout.ts | 2 +- plugin-src/transformers/transformComponentNode.ts | 2 +- plugin-src/transformers/transformInstanceNode.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin-src/transformers/partials/transformLayout.ts b/plugin-src/transformers/partials/transformLayout.ts index dde58244..1882d7d8 100644 --- a/plugin-src/transformers/partials/transformLayout.ts +++ b/plugin-src/transformers/partials/transformLayout.ts @@ -45,7 +45,7 @@ export const transformLayoutAttributes = ( > => { return { 'layoutItemH-Sizing': translateLayoutSizing(node.layoutSizingHorizontal, isFrame), - 'layoutItemV-Sizing': translateLayoutSizing(node.layoutSizingVertical, isFrame), + 'layoutItemV-Sizing': translateLayoutSizing(node.layoutSizingVertical), 'layoutItemAbsolute': node.layoutPositioning === 'ABSOLUTE', 'layoutItemMaxH': node.maxHeight ?? undefined, 'layoutItemMinH': node.minHeight ?? undefined, diff --git a/plugin-src/transformers/transformComponentNode.ts b/plugin-src/transformers/transformComponentNode.ts index eba890a9..5514877b 100644 --- a/plugin-src/transformers/transformComponentNode.ts +++ b/plugin-src/transformers/transformComponentNode.ts @@ -34,7 +34,7 @@ export const transformComponentNode = async ( ...transformSceneNode(node), ...transformBlend(node), ...transformProportion(node), - ...transformLayoutAttributes(node), + ...transformLayoutAttributes(node, true), ...transformCornerRadius(node), ...(await transformChildren(node, node.rotation + baseRotation)), ...transformDimension(node), diff --git a/plugin-src/transformers/transformInstanceNode.ts b/plugin-src/transformers/transformInstanceNode.ts index 730752a3..08a38625 100644 --- a/plugin-src/transformers/transformInstanceNode.ts +++ b/plugin-src/transformers/transformInstanceNode.ts @@ -59,7 +59,7 @@ export const transformInstanceNode = async ( ...transformSceneNode(node), ...transformBlend(node), ...transformProportion(node), - ...transformLayoutAttributes(node), + ...transformLayoutAttributes(node, true), ...transformCornerRadius(node), ...transformDimension(node), ...transformRotationAndPosition(node, baseRotation),