Skip to main content

min_resize_size

Function min_resize_size 

Source
fn min_resize_size(
    data: &Drawing<'_>,
    shape: ShapeId,
    shape_ref: &ShapeRef<'_>,
) -> Vec2
Expand description

The size floor a resize of shape must respect: its own minimum (see min_block_width and min_block_height) grown to hold its icon, since a block never shrinks smaller than the artwork it carries. The icon’s extent is raised to the lattice the drop snaps to, or the snap would round back through it.