aryagraph.layout.base.pack_components#

aryagraph.layout.base.pack_components(layouts: Sequence[Layout], sizes: Sequence[Sequence[float]] | None = None, gap: float = 1.0, aspect: float = 1.4) → Layout[source]#

Arrange several component layouts side by side without overlap.

Components are sorted by area (largest first) and placed on shelves whose width targets aspect (width / height) for the combined drawing. sizes optionally gives each component’s (width, height) padding box; by default the bounds are used. gap separates boxes (same units as layouts).