fix(fig): preserve imported canvas strokes

This commit is contained in:
Danila Poyarkov 2026-05-21 01:51:20 +03:00
parent dd0a5317fd
commit c85e06466c

View file

@ -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(