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.
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.
![]() |
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. |