openpencil/tests
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
..
e2e refactor(tauri): clean up external link helper 2026-04-15 11:03:31 +03:00
engine fix(layout): use stored .fig dimensions for headless text measurement 2026-04-22 14:00:07 +03:00
figma Playwright visual regression testing with Figma CDP reference 2026-02-28 07:32:15 +03:00
fixtures Add Arabic and RTL support 2026-03-29 21:06:29 +03:00
helpers Merge PR #70: E2E test coverage + mutation unit tests 2026-03-07 23:47:00 +03:00