Raxol.UI.Layout.Flexbox.Calculator (Raxol v2.6.0)

View Source

Container sizing and the legacy calculate_layout/distribute_flex API.

Summary

Functions

Lay out children within the given total dimensions.

Calculate container size from measured child dimensions.

Calculate content height for column-direction containers.

Calculate content width for row-direction containers.

Distribute flex children across available space.

Functions

calculate_child_layouts(flexbox, total_width, total_height)

Lay out children within the given total dimensions.

calculate_container_size(child_dimensions, flex_props, content_space)

Calculate container size from measured child dimensions.

calculate_content_height(map)

Calculate content height for column-direction containers.

calculate_content_width(map)

Calculate content width for row-direction containers.

distribute_flex(children, available_space, gap, size_key, pos_key)

Distribute flex children across available space.

get_axes(atom)