From fb03c84ecc463c03f8c15e7cf5d0a2a103fee44e Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Sun, 1 Mar 2026 13:48:48 +0300 Subject: [PATCH] Fix bogus fig-import mappings: expanded and strokeMiterLimit expanded: was mapped from frameMaskDisabled (unrelated Kiwi field), now defaults to true. strokeMiterLimit: was mapped from speculative strokeMiterAngle field that doesn't exist in Kiwi codec, now uses hardcoded default 4. --- packages/core/src/kiwi/fig-import.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/kiwi/fig-import.ts b/packages/core/src/kiwi/fig-import.ts index c26d29f9e..2ce585242 100644 --- a/packages/core/src/kiwi/fig-import.ts +++ b/packages/core/src/kiwi/fig-import.ts @@ -489,7 +489,7 @@ export function importNodeChanges( borderBottomWeight: (ext(nc).borderBottomWeight as number) ?? 0, borderLeftWeight: (ext(nc).borderLeftWeight as number) ?? 0, independentStrokeWeights: (ext(nc).borderStrokeWeightsIndependent as boolean) ?? false, - strokeMiterLimit: (ext(nc).strokeMiterAngle as number) ?? 4, + strokeMiterLimit: 4, minWidth: (ext(nc).minWidth as number) ?? null, maxWidth: (ext(nc).maxWidth as number) ?? null, minHeight: (ext(nc).minHeight as number) ?? null, @@ -499,7 +499,7 @@ export function importNodeChanges( counterAxisAlignContent: (ext(nc).stackCounterAlignContent as string) === 'SPACE_BETWEEN' ? 'SPACE_BETWEEN' : 'AUTO', itemReverseZIndex: (ext(nc).stackReverseZIndex as boolean) ?? false, strokesIncludedInLayout: (ext(nc).strokesIncludedInLayout as boolean) ?? false, - expanded: nc.frameMaskDisabled !== true, + expanded: true, textTruncation: (ext(nc).textTruncation as string) === 'ENDING' ? 'ENDING' : 'DISABLED', autoRename: (ext(nc).autoRename as boolean) ?? true, boundVariables: extractBoundVariables(nc)