openpencil/packages
Danila Poyarkov 226542cfcf fix(layout): use stored .fig dimensions for headless text measurement
The estimateTextSize() fallback (fontSize × 0.6 × charCount) produced
wildly inaccurate results, causing 26K node mismatches on material3.fig.
Nodes imported from .fig files already carry Figma's computed dimensions —
use those instead. Falls back to the estimate only for newly-created
nodes with the 100×100 default size.

Reduces headless layout mismatches by ~56% (26,299 → ~11,669), with
TEXT node mismatches dropping 92%.

Fixes #212

Co-authored-by: Alexander Bonin <3462438+alex4o@users.noreply.github.com>
2026-04-22 14:00:07 +03:00
..
cli fix(cli): remove inline examples from query description 2026-04-22 13:53:03 +03:00
core fix(layout): use stored .fig dimensions for headless text measurement 2026-04-22 14:00:07 +03:00
demos feat: mobile layout, PWA support (#27) (#27) 2026-03-05 19:51:51 +03:00
docs feat(mcp): add stdio transport for Claude Code / Cursor 2026-04-13 11:51:01 +03:00
mcp feat(mcp): add stdio transport for Claude Code / Cursor 2026-04-13 11:51:01 +03:00
vue fix(canvas): make canvas focusable so Backspace works after click 2026-04-22 13:45:23 +03:00