openpencil/tests/engine/io/fig
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
..
export feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
heavy feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
import fix(core): show imported page backgrounds and stop fixed text collapsing 2026-10-02 12:10:06 +04:00
instance fix(fig): preserve marker-based instance text edits on export (#648) 2026-09-10 19:16:03 +03:00
page-manifest.test.ts fix(fig): harden background page loading 2026-08-18 03:52:59 -03:00
plugin-data.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
thumbnail-page.test.ts fix(fig): use Cover pages for thumbnails 2026-08-18 03:43:38 -03:00
thumbnail-range.test.ts fix(fig): use Cover pages for thumbnails 2026-08-18 03:43:38 -03:00