openpencil/packages/core/tests
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
..
canvas feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
clipboard/figma test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
design-jsx refactor: print OpenPencil JSX export as syntax trees (#799) 2026-10-01 21:22:43 +04:00
editor fix(core): show imported page backgrounds and stop fixed text collapsing 2026-10-02 12:10:06 +04:00
figma-api test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
helpers test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
io/formats/fig fix(fig)!: clear a colour variable binding when the layer is unbound 2026-10-01 17:06:00 +04:00
layout/auto-layout/text fix(core): show imported page backgrounds and stop fixed text collapsing 2026-10-02 12:10:06 +04:00
text/derived-text feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00