snap

Function snap 

Source
pub fn snap(side: u32, grid: u32) -> u32
Expand description

2026-09-26: Snap a side to the grid as the engine’s target_size_for does at scale 1: max(round(side / grid), 1) * grid. f32::round rounds half away from zero, so 336 snaps to 352 at grid 32 (the_rounding_mode_is_pinned).