Build representative fixtures for page count, element count, text length, graph density, image size, and chart rows.
Measure input-to-render latency, long tasks, memory growth, resize/zoom work, and export duration in a production build.
Record hardware, browser, viewport, fixture, and percentile before publishing a performance claim.
Keep rendering budgets product-specific; a text layout bottleneck and a chart geometry bottleneck need different evidence.
Keep renderer instances, decoded resources, measurements, and caches outside CanvasDocument.
Invalidate only derived work affected by a semantic change; do not rebuild unchanged product state after viewport-only events.
Cull offscreen graph node overlays while retaining edge geometry from cached measurements.
Normalize, sample, or decimate large chart data before adding UI-level throttling.
Isolate editor React state from unrelated application rerenders and avoid duplicate document snapshots in component state.
Give every canvas an accessible name and provide semantic text/table alternatives for meaningful content.
Keep toolbar, page, inspector, and history controls keyboard reachable with visible focus.
Announce selection or document changes only when they help users; avoid noisy live regions for pointer movement.
Respect reduced motion and do not rely on color alone for selection, error, or series identity.
Unit: codec, validation, immutable operations, coordinates, references, transactions, history, and product adapters.
Type: common controller conformance and rejection of cross-product commands.
Component: app chrome, pages, inspector, selection, history controls, file workflows, and responsive behavior.
E2E: create, edit, save, parse, reopen, undo, and save again with realistic documents.
Visual: renderer parity and deliberate baseline review; never approve a changed baseline without explaining the visual change.
pnpm test:examples
pnpm exec tsc -p tsconfig.json --noEmit --pretty false --incremental false
pnpm lint
pnpm test
pnpm build