euporie.core.layout.containers.distribute_dimensions
- euporie.core.layout.containers.distribute_dimensions(size: int, dimensions: tuple[DimensionTuple, ...]) list[int] | None
Return the heights/widths for all rows/columns, or None when there is not enough space.
This is a cached version of prompt_toolkit’s dimension distribution logic that improves performance by memoizing calculations based on the input dimensions.
- Parameters:
size – Total size to distribute
dimensions – Tuple of DimensionTuple objects specifying min/max/preferred sizes
- Returns:
List of distributed sizes or None if not enough space