openpencil/tests/engine/io/fig/import
Danila Poyarkov b7126322eb
fix(core): show imported page backgrounds and stop fixed text collapsing
Three defects a confidential Figma file surfaced, each reproduced by a
test that fails without the change.

A page's background lived only in viewport state, so an imported canvas
colour never reached the canvas and an edit was lost on the next page
switch or save. It is read from and written to the page's paints, which
the Figma API and export already carry.

Fixed-size text in a Hug container reported no intrinsic cross-axis
size, so a stretched label collapsed and clipped beside smaller
siblings. Yoga now measures it.

Populating a page resynchronised an instance whose text the file had
already resolved, replacing it with the component's default.

Co-authored-by: Victor Wads <victor@wads.dev>
2026-10-02 12:10:06 +04:00
..
legacy feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
basic.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
boolean-operation.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
cancellation.test.ts feat(app): prepare documents atomically per tab (#592) 2026-08-30 12:21:49 +03:00
component-props.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
derived-symbol-data.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
edge-cases.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
field-protection.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
font-variations.test.ts refactor(fig): own instance interpretation 2026-07-18 02:06:34 +03:00
group-reclassify.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
instance-overrides.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
instance-regressions.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
lazy-pages.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
mask-oracle.test.ts refactor(fig): own instance interpretation 2026-07-18 02:06:34 +03:00
masks.test.ts refactor(fig): own instance interpretation 2026-07-18 02:06:34 +03:00
paint-schema-fields.test.ts refactor(fig): own instance interpretation 2026-07-18 02:06:34 +03:00
pattern-paint-oracle.test.ts feat: split SceneGraph and Pen packages 2026-06-30 10:54:32 +03:00
population-delta.test.ts fix(core): show imported page backgrounds and stop fixed text collapsing 2026-10-02 12:10:06 +04:00
property-integrity.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
raw-field-coverage.test.ts fix(fig): preserve explicit text alignment metadata 2026-09-02 22:54:13 +03:00
raw-metadata-oracle.test.ts feat: split SceneGraph and Pen packages 2026-06-30 10:54:32 +03:00
rich-text-oracle.test.ts refactor(fig): own instance interpretation 2026-07-18 02:06:34 +03:00
scaled-instance-strokes.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
schema-coverage.test.ts fix(kiwi): type the NodeChange fields fig.kiwi already declares 2026-09-30 12:18:00 +04:00
session-ownership.test.ts fix(fig): harden document worker sessions (#594) 2026-08-30 21:40:13 +03:00
strokes.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
style-refs.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
text-path.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
text-sizing.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00