Skip to main content

Module widget

Module widget 

Source

Re-exports§

pub use scene::DrawingPasses;

Modules§

alignment
Alignment guides shown while dragging. A dragged element’s features (edges, centers, pin stubs, or a single corner) are matched against the same features of every other shape; each like-kind coincidence draws a thin line spanning the aligned pair, drawn over the diagram so a center guide (which runs through the opaque shapes it aligns) stays visible.
auto_route
clipboard
Copy, cut, and paste, as the drawing surface sees them.
display
drawing
Drawing: the editing surface for one level of the document.
edge
foreground
The foreground: the geometry one gesture may write.
hit_target
The canvas hit-test z-order, encoded once.
movement
Moving shapes: the per-kind moves, the collision rules that gate them, and the group move that keeps a selection’s relative layout — plus the waypoint reconciliation each move owes the routes that touch it.
reconstruct
Deriving a route’s edge geometry from its ordered corner list.
routing
Route (re)solving for a level: the closed-graph solver every commit and every drag/resize preview goes through, the per-leg reconstruction that rebuilds a route’s geometry from its stored corners, and the rip-up/reroute entry points.
scene
segmentkind
spatial
A spatial index over a level’s hittable objects, shared by viewport culling and hit-testing.
waypoint_router

Structs§

PreviewPhase
The frame’s preview phase: the hypothetical geometry a drag implies, written before anything paints.