Skip to main content

drop_candidate

Function drop_candidate 

Source
fn drop_candidate(
    data: &Drawing<'_>,
    anchor: PinId,
    side: PinSide,
    offset: f32,
) -> Option<u32>
Expand description

The slot the pin would snap to if released now. One definition, so the preview, the guides, and the drop cannot disagree about where the drag promised to land — None when no slot is free.