openpencil/tests/engine/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
..
absolute fix: match Figma's transforms, strokes, booleans, sections, and names (#931) 2026-10-07 08:36:50 +00:00
auto-layout test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
corner test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
create feat: behaviours and preview mode (#893) 2026-10-06 13:23:05 +00:00
document test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
find test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
frozen test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
internals test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
layout fix(figma-api): size script text to its content, as Figma does (#950) 2026-10-07 20:49:37 +00:00
min-max test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
node test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
property test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
stroke test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
text test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
tree test: move prefixed splits into domain folders 2026-05-06 14:27:21 +03:00
vector test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
clone.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
components.test.ts feat(core): name the node type createInstance and detachInstance return (#918) 2026-10-06 09:35:03 +00:00
expanded.test.ts test(figma): split API coverage 2026-05-06 13:37:15 +03:00
flatten-renderer.test.ts feat(text): wrap styled outline text 2026-05-17 20:23:55 +03:00
grouping-compat.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
grouping.test.ts test(figma): split API coverage 2026-05-06 13:37:15 +03:00
helpers.ts feat(core): name the node type createInstance and detachInstance return (#918) 2026-10-06 09:35:03 +00:00
images.test.ts chore: format codebase 2026-05-24 12:15:29 +03:00
mask.test.ts test(figma): split API coverage 2026-05-06 13:37:15 +03:00
selection.test.ts test(figma): split API coverage 2026-05-06 13:37:15 +03:00
serialization.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
stubs.test.ts test(figma): split API coverage 2026-05-06 13:37:15 +03:00
traversal.test.ts test(figma): split API coverage 2026-05-06 13:37:15 +03:00
variable-binding-extended.test.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
variables.test.ts feat(figma-api): expose vector paths and modes 2026-07-22 15:07:20 +03:00