package d2elklayout
Import Path
github.com/pancsta/d2/d2layouts/d2elklayout (on go.dev)
Dependency Relation
imports 16 packages, and imported by one package
Involved Source Files
descendant_shifter.go
Package d2elklayout adapts D2 graphs to the native Go port of ELK.
Coordinates are relative to parents.
See https://www.eclipse.org/elk/documentation/tooldevelopers/graphdatastructure/coordinatesystem.html
spatial_index.go
Package-Level Type Names (total 10)
Algorithm string
EdgeEdgeSpacing *int
EdgeNodeSpacing int
NodeSpacing int
Padding string
SelfLoopSpacing int
func Layout(ctx context.Context, g *d2graph.Graph, opts *ConfigurableOpts) (err error)
var DefaultOpts
Container string
ID string
Labels []*ELKLabel
Sections []ELKEdgeSection
Sources []string
Targets []string
Package-Level Functions (total 2)
Package-Level Variables (only one)
![]() |
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. |