Skip to main content

move_conflicts

Function move_conflicts 

Source
pub fn move_conflicts(
    indexed: &IndexedDocument<'_>,
    shapes: &[Shape],
    delta: Vec2,
    moving: Moving,
) -> Vec<GridRect>
Expand description

The cells a move would have to share with something the router routes around — every overlap that refuses it, not merely that one does.

Only the overlaps that refuse the move: on a group move an overlap the selection already had refuses nothing, and returning it would have the drawing claim a refusal that is not happening.