Skip to main content

need_for

Function need_for 

Source
pub fn need_for(sh: &Sheet, x: f64, y: f64) -> (u32, u32)
Expand description

Sheet-wide helper: the bottom-right cell a page grid for this sheet must reach so that the layout rectangle up to (x, y) is covered. Layout coordinates never run ahead of sheet coordinates (pages only add margins and gaps), so the sheet position is a safe bound.