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> |
||
|---|---|---|
| .. | ||
| e2e | ||
| engine | ||
| figma | ||
| fixtures | ||
| helpers | ||