Skip to main content

nice_second_interval

Function nice_second_interval 

Source
fn nice_second_interval(px_per_second: f64) -> u64
Expand description

Smallest “nice” second interval whose pixel width is at least MIN_TICK_SPACING_PX — so ruler labels never crowd.