Skip to main content

Module movement

Module movement 

Source
Expand description

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.

Functions§

moved_set_and_delta 🔒
Shared derivation used by both the group-drag COMMIT (move_shapes) and its live PREVIEW (Drawing::preview_drag): the moved block/port id sets plus the grid-cell delta. delta is the raw (unsnapped) move vector; both paths pass the identical delta, so the returned grid_delta — and therefore the waypoint offset — is byte-identical between preview and commit (no release snap).