package p5edges
Import Path
github.com/d2lang/elk-go/internal/layered/p5edges (on go.dev)
Dependency Relation
imports 7 packages, and imported by 2 packages
Involved Source Files
Package p5edges implements the fifth phase of ELK Layered 0.8.1.
polyline_edge_router.go
spline_edge_router.go
Package-Level Type Names (total 3)
OrthogonalEdgeRouter assigns layer x coordinates and routes orthogonal
hyperedges through the gaps between consecutive layers.
(*OrthogonalEdgeRouter) Process(arena *layered.LGraphArena, graphID layered.LGraphID) error
(*OrthogonalEdgeRouter) ProcessorConfiguration(arena *layered.LGraphArena, graphID layered.LGraphID) layered.ProcessorConfiguration
*OrthogonalEdgeRouter : github.com/d2lang/elk-go/internal/layered.ConfiguredProcessor
*OrthogonalEdgeRouter : github.com/d2lang/elk-go/internal/layered.LayoutProcessor
PolylineEdgeRouter routes every edge in two steps: at its source layer and
later at its target layer. It is the exact non-spline phase-5 alternative
from ELK Layered 0.8.1.
(*PolylineEdgeRouter) Process(arena *layered.LGraphArena, graphID layered.LGraphID) error
(*PolylineEdgeRouter) ProcessorConfiguration(arena *layered.LGraphArena, graphID layered.LGraphID) layered.ProcessorConfiguration
*PolylineEdgeRouter : github.com/d2lang/elk-go/internal/layered.ConfiguredProcessor
*PolylineEdgeRouter : github.com/d2lang/elk-go/internal/layered.LayoutProcessor
SplineEdgeRouter ports the ELK 0.8.1 spline segment dependency graph,
ranking, layer spacing, and default sloppy control-point construction.
(*SplineEdgeRouter) Process(arena *layered.LGraphArena, graphID layered.LGraphID) error
(*SplineEdgeRouter) ProcessorConfiguration(arena *layered.LGraphArena, graphID layered.LGraphID) layered.ProcessorConfiguration
*SplineEdgeRouter : github.com/d2lang/elk-go/internal/layered.ConfiguredProcessor
*SplineEdgeRouter : github.com/d2lang/elk-go/internal/layered.LayoutProcessor
Package-Level Functions (total 2)
CubicNUBToBezier converts a clamped uniform cubic B-spline control polygon
to ELK's concatenated Bezier control-point representation.
FinalizeSplineBendpoints mirrors FinalSplineBendpointsCalculator after long
edges have been joined. It assembles the per-between-layer NUB control
polygons and raises every inner knot to cubic multiplicity, yielding the
Bezier control-point chain emitted by elkjs.
![]() |
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. |