openpencil/tests
Danila Poyarkov 6a06b31dd8
perf(text): measure each text once per shaping and layout width (#959)
* perf(text): measure each text once per shaping and layout width

Layout asked for the same text at the same width hundreds of times per build, and each request built and laid out a new paragraph. Sizes are now cached beside glyph coverage, keyed by the same shaping inputs, so layout resizing the box keeps them.

* refactor(text): reuse Size for measured text

* perf(text): keep measurements when a paragraph rebuilds for a new box

The paragraph cache dropped coverage and sizes whenever its own inputs changed, including a resize that reaches drawing without a graph update. Shaping compares its own inputs, so it is kept there.
2026-10-07 19:48:25 +00:00
..
app feat: show controls in a prebuilt demo and fix what saving it to .fig lost (#938) 2026-10-07 18:37:05 +00:00
e2e fix: keep bound text and visibility in step with their variables (#954) 2026-10-07 18:37:15 +00:00
engine perf(text): measure each text once per shaping and layout width (#959) 2026-10-07 19:48:25 +00:00
figma
fixtures test(fig): pin override and variable precedence to what Figma renders (#912) 2026-10-06 09:08:51 +00:00
helpers feat: show controls in a prebuilt demo and fix what saving it to .fig lost (#938) 2026-10-07 18:37:05 +00:00
integration test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
AGENTS.md test: resolve repository files without climbing directories (#946) 2026-10-07 12:35:39 +00:00