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.
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |