pub fn level_window(
label_count: usize,
rows: usize,
active: usize,
) -> (usize, usize)Expand description
Index window of label_count levels that fits in rows, keeping active
visible with the window centered on it and clamped to the ends.
Returns (top, len).