package routing
Import Path
github.com/d2lang/elk-go/internal/layered/intermediate/loops/routing (on go.dev)
Dependency Relation
imports 10 packages, and imported by one package
Involved Source Files
director.go
label_placer.go
orthogonal_router.go
polyline_router.go
slot_assigner.go
spline_router.go
Package-Level Functions (total 7)
func AssignRoutingSlots(arena *layered.LGraphArena, holder *loops.Holder)
CutPolylineCorners ports PolylineSelfLoopRouter.cutCorners. The first and
last points are endpoints and are intentionally excluded from the result.
DetermineLoopRoutes chooses the clockwise interval occupied by each loop.
PlaceLabels determines each aggregate self-loop label's side, alignment,
and first coordinate. JSON ELK graphs cannot supply Java's ILabelManager,
so the optional management branch is intentionally inactive, as in elkjs.
RouteOrthogonal ports OrthogonalSelfLoopRouter from ELK 0.8.1.
RoutePolyline ports ELK 0.8.1's PolylineSelfLoopRouter. It starts with the
orthogonal self-loop skeleton and replaces every corner with two points.
RouteSpline uses ELK's orthogonal self-loop skeleton and inserts the
offset intermediate controls consumed by its cubic NUB conversion.
![]() |
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. |