Skip to content

AI-native design editor. Open-source Figma alternative.

fix(fig): preserve imported canvas strokes

Danila Poyarkovc85e06466ce5
diff --git a/packages/core/src/io/formats/fig/export.ts b/packages/core/src/io/formats/fig/export.ts
index 2cb624fb9..3f41b1ef7 100644
--- a/packages/core/src/io/formats/fig/export.ts
+++ b/packages/core/src/io/formats/fig/export.ts
@@ -184,6 +184,10 @@ function applyImportedCanvasFields(page: FigExportPage, canvasNc: KiwiNodeChange
if ('backgroundColor' in page.figmaRawNodeFields) {
canvasNc.backgroundColor = structuredClone(page.figmaRawNodeFields.backgroundColor)
}
+ const strokeJoin = page.figmaRawNodeFields.strokeJoin
+ if (typeof strokeJoin === 'string') canvasNc.strokeJoin = strokeJoin
+ const strokeWeight = page.figmaRawNodeFields.strokeWeight
+ if (typeof strokeWeight === 'number') canvasNc.strokeWeight = strokeWeight
}
function buildCanvasEntries(