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

View Source

Line-breaking logic for flex-wrap containers, and multi-line layout orchestration.

Summary

Functions

break_into_lines(children_with_dims, space, flex_props, main_axis)

Break children into wrap lines.

calculate_line_height(line_children, cross_axis)

Calculate the cross-axis height of a single line.

calculate_multi_line_layout(children_with_dims, space, flex_props, main_axis, cross_axis)

Orchestrate multi-line flex layout.