openpencil/packages/core/tests/figma-api
Danila Poyarkov 0201feb35f
fix(figma-api): size script text to its content, as Figma does (#950)
* fix(figma-api): size script text to its content, as Figma does

figma.createText() made fixed 100px text at 14px, and the API never re-measured text, so scripts saw sizes Figma does not. New text is now empty 12px WIDTH_AND_HEIGHT text, one line tall; API updates re-measure auto-sizing text through the editor's textAutoResizeChanges; and resize() sets textAutoResize to NONE. Values were recorded in live Figma.

* test(figma-api): hold recorded text sizes to the stated 1 px
2026-10-07 20:49:37 +00:00
..
variables feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
boolean-bounds.test.ts fix: match Figma's transforms, strokes, booleans, sections, and names (#931) 2026-10-07 08:36:50 +00:00
create-defaults.test.ts fix: match Figma's transforms, strokes, booleans, sections, and names (#931) 2026-10-07 08:36:50 +00:00
effects.test.ts test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
group-coordinates.test.ts fix: share Figma's creation and grouping between editor and plugin API (#919) 2026-10-06 12:28:52 +00:00
pending-layout.test.ts fix(layout): size each axis on its own and lay out before geometry reads (#942) 2026-10-07 11:52:08 +00:00
slots.test.ts feat(core): name the node type createInstance and detachInstance return (#918) 2026-10-06 09:35:03 +00:00
stroke-geometry.test.ts fix: keep stored page backgrounds and number layers by their own page (#949) 2026-10-07 13:35:59 +00:00
structure-parity.test.ts fix: share Figma's creation and grouping between editor and plugin API (#919) 2026-10-06 12:28:52 +00:00
text-autosize.test.ts fix(figma-api): size script text to its content, as Figma does (#950) 2026-10-07 20:49:37 +00:00
transform-parity.test.ts fix: match Figma's transforms, strokes, booleans, sections, and names (#931) 2026-10-07 08:36:50 +00:00