Skip to main content

intrinsic_aspect

Function intrinsic_aspect 

Source
fn intrinsic_aspect<C: Canvas>(
    data: &Drawing<'_>,
    shape: ShapeId,
    painter: &Style<'_, C>,
) -> Option<f32>
Expand description

The intrinsic aspect ratio (w/h) of an image or icon shape, or None for other shapes or an image the painter can’t resolve. Drives the aspect-lock resize snap.