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

View Source

Flex grow/shrink space distribution along the main axis.

Summary

Functions

apply_flex_grow(child, dims, flex, extra_space, total_grow, main_axis)

apply_flex_shrink(child, dims, flex, shortage, total_shrink_weight, main_axis)

distribute_extra_space(children_with_dims, extra_space, main_axis)

distribute_grow_space(children_with_dims, extra_space, total_grow, main_axis)

distribute_main_space(children_with_dims, available_main_space, main_axis)

Distribute extra or deficit space among flex children.

distribute_shrink_space(children_with_dims, shortage, total_shrink_weight, main_axis)

get_dimension(dims, atom)

shrink_items(children_with_dims, shortage, main_axis)