Documentation ¶
Overview ¶
d2elklayout is a wrapper around the Javascript port of ELK.
Coordinates are relative to parents. See https://www.eclipse.org/elk/documentation/tooldevelopers/graphdatastructure/coordinatesystem.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOpts = ConfigurableOpts{
Algorithm: "layered",
NodeSpacing: 100.0,
Padding: "[top=75,left=75,bottom=75,right=75]",
EdgeNodeSpacing: 50.0,
SelfLoopSpacing: 50.0,
}
Functions ¶
func DefaultLayout ¶ added in v0.1.4
Types ¶
type ConfigurableOpts ¶ added in v0.1.4
type ConfigurableOpts struct { Algorithm string `json:"elk.algorithm,omitempty"` NodeSpacing int `json:"spacing.nodeNodeBetweenLayers,omitempty"` Padding string `json:"elk.padding,omitempty"` EdgeNodeSpacing int `json:"spacing.edgeNodeBetweenLayers,omitempty"` SelfLoopSpacing int `json:"elk.spacing.nodeSelfLoop"` }
type ELKEdgeSection ¶
Click to show internal directories.
Click to hide internal directories.