fn nearest_slot(slots: &[LayoutSlot], x: f64, y: f64) -> Option<usize>
The active slot holding (x, y), else the one nearest to it, by rank.
(x, y)