Skip to main content

Module foreground

Module foreground 

Source
Expand description

The foreground: the geometry one gesture may write.

Selection raises. What the user has selected — and everything whose wires that selection can disturb — is the foreground; everything else is the background, whose routing lattice can then be built once and cached across the whole gesture rather than rebuilt per mutation (docs/foreground-router-playbook.md).

The set is derived from the selection rather than declared, so a caller cannot forget a wire — and it is deliberately a superset of what the gesture will actually touch, because the cache’s whole claim rests on nothing being written outside it.

Structs§

Foreground
What a gesture may write, raised out of the background.

Functions§

moves_the_lattice 🔒
Whether an op on this entity can move the routing lattice. Texts, areas and images are not routing obstacles — routing_shapes is the blocks layer and the ports layer — so no edit to one can change where a wire runs.