fix elk
This commit is contained in:
parent
4e1ac0876e
commit
26be278934
1 changed files with 6 additions and 1 deletions
|
|
@ -132,7 +132,12 @@ func Layout(ctx context.Context, g *d2graph.Graph, opts *ConfigurableOpts) (err
|
||||||
LayoutOptions: &elkOpts{
|
LayoutOptions: &elkOpts{
|
||||||
HierarchyHandling: "INCLUDE_CHILDREN",
|
HierarchyHandling: "INCLUDE_CHILDREN",
|
||||||
ConsiderModelOrder: "NODES_AND_EDGES",
|
ConsiderModelOrder: "NODES_AND_EDGES",
|
||||||
ConfigurableOpts: *opts,
|
ConfigurableOpts: ConfigurableOpts{
|
||||||
|
Algorithm: opts.Algorithm,
|
||||||
|
NodeSpacing: opts.NodeSpacing,
|
||||||
|
EdgeNodeSpacing: opts.EdgeNodeSpacing,
|
||||||
|
SelfLoopSpacing: opts.SelfLoopSpacing,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
switch g.Root.Attributes.Direction.Value {
|
switch g.Root.Attributes.Direction.Value {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue