package elkutil

Import Path
	github.com/d2lang/elk-go/internal/common/elkutil (on go.dev)

Dependency Relation
	imports 6 packages, and imported by 6 packages

Involved Source Files Package elkutil ports the core ElkUtil operations shared by native layout providers. The implementation intentionally preserves Java arithmetic and mutation order where those are visible in JSON output.
Package-Level Functions (total 12)
ApplyVectorChain writes a fixed route to one edge section.
CalcPortSide mirrors ElkUtil.calcPortSide.
DetermineJunctionPoints implements ElkUtil.determineJunctionPoints.
EffectiveMinSizeConstraintFor mirrors ElkUtil.effectiveMinSizeConstraintFor.
func IsHierarchical(model *graph.Model, edgeID graph.EdgeID) bool
ResizeNode changes a node's dimensions and moves fixed peripheral content exactly as ElkUtil.resizeNode does.
ResizeNodeForConstraints is ElkUtil.resizeNode(ElkNode). It reports false when the node's size is fixed and no mutation is performed.
Translate moves the contents and contained edges of parent.
TranslateAligned applies CoreOptions.CONTENT_ALIGNMENT after growth.
func TranslateEdge(model *graph.Model, edgeID graph.EdgeID, x, y float64)