package packing

Import Path
	github.com/pancsta/d2/d2layouts/d2talalayout/internal/packing (on go.dev)

Dependency Relation
	imports 11 packages, and imported by 2 packages

Involved Source Files binpack.go combine.go combine_snapshot.go Package packing arranges and compacts disconnected graph components without changing their internal layout or routed edge geometry. guard.go routed_container.go snapshot.go
Package-Level Functions (total 2)
CombineSubgraphs arranges laid-out subgraphs and returns a combined graph view that shares the master graph's topology.
Pack recursively arranges disconnected subgraphs into compact containers. Containers may shrink but never grow, and packing may interleave subgraph bounding boxes while preserving edge lengths. Hierarchy subgraphs remain separate to avoid obstructing routes.