Skip to main content

Module resolve

Module resolve 

Source
Expand description

Length resolution and main-axis space distribution.

Functions§

clamp_to
Constrains size to the given minimum and maximum constraints.
distribute_main
Distributes free space or a deficit across main-axis bases.
distribute_main_clamped
Distributes main-axis space while respecting per-item min/max limits.
resolve_cross
Resolves a length along the cross axis to a concrete size.
resolve_flex_basis
Resolves a flex basis, preferring basis over the fallback result.
resolve_main
Resolves a length along the main axis.