Expand description
Shared canvas substrate helpers for ecosystem widgets.
This crate is intentionally policy-light:
- It provides reusable math/state helpers (pan/zoom transforms, drag phases, pixel policies).
- It does not prescribe interaction maps, snapping rules, or domain models.
ADR reference: docs/adr/0128-canvas-widgets-and-interactive-surfaces.md.
Modulesยง
- budget
- Budget helpers for incremental, smooth-by-default work on interactive canvases.
- cache
- Retained-canvas resource caches (policy-light).
- diagnostics
- drag
- Drag phase helpers (policy-light).
- interaction
- Interaction helpers for canvas-like widgets.
- scale
- Scale and pixel policy helpers.
- spatial
- Spatial indexing helpers for large 2D canvas widgets.
- text
- Text caching helpers for canvas-like widgets.
- view
- View transforms and coordinate mapping helpers.
- wires
- Wire/curve geometry helpers for canvas-like editor widgets.