Skip to main content

shape_group_fn

Function shape_group_fn 

Source
pub fn shape_group_fn(
    shapes: impl Fn(Size) -> Vec<ShapePiece> + 'static,
) -> AnyPiece
Expand description

Size-aware shape_group: the closure derives the shapes from the laid-out size and re-runs on FrameChanged, exactly like canvas — for geometry that depends on the final size (e.g. data mapped along the width).

Day API ↩ Guides· daybrite.dev