package trees
Import Path
github.com/pancsta/d2/d2layouts/d2talalayout/internal/trees (on go.dev)
Dependency Relation
imports 9 packages, and imported by 2 packages
Involved Source Files
geometry.go
layout.go
preprocess_helpers.go
traversal.go
Package trees owns TALA's tree discovery, preprocessing, orientation, and
placement algorithms. The graph records themselves remain in layoutgraph so
routing, serialization, and transactions share one graph identity.
Package-Level Type Names (only one)
const Bidirectional
const Inwards
const Outwards
const Undirected
Package-Level Functions (total 3)
Descendants returns tree descendants in the breadth-first order used when
restored tree nodes and edges are copied back into an owning graph.
func Place(ctx context.Context, g *layoutgraph.Graph, container *layoutgraph.Node) error func Preprocess(ctx context.Context, g *layoutgraph.Graph) error
Package-Level Constants (total 4)
const Bidirectional TreeEdgeDirection = "Bidirectional" const Inwards TreeEdgeDirection = "Inwards" const Outwards TreeEdgeDirection = "Outwards" const Undirected TreeEdgeDirection = "Undirected"
![]() |
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. |