2022-11-29 04:08:36PM
This commit is contained in:
parent
a39bfce697
commit
d45aa3f5c4
5 changed files with 5 additions and 2227 deletions
|
|
@ -68,10 +68,10 @@ type ELKEdge struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ELKGraph struct {
|
type ELKGraph struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
LayoutOptions ELKLayoutOptions `json:"layoutOptions"`
|
LayoutOptions *ELKLayoutOptions `json:"layoutOptions"`
|
||||||
Children []*ELKNode `json:"children,omitempty"`
|
Children []*ELKNode `json:"children,omitempty"`
|
||||||
Edges []*ELKEdge `json:"edges,omitempty"`
|
Edges []*ELKEdge `json:"edges,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ELKLayoutOptions struct {
|
type ELKLayoutOptions struct {
|
||||||
|
|
@ -115,7 +115,7 @@ func Layout(ctx context.Context, g *d2graph.Graph) (err error) {
|
||||||
|
|
||||||
elkGraph := &ELKGraph{
|
elkGraph := &ELKGraph{
|
||||||
ID: "root",
|
ID: "root",
|
||||||
LayoutOptions: ELKLayoutOptions{
|
LayoutOptions: &ELKLayoutOptions{
|
||||||
Algorithm: "layered",
|
Algorithm: "layered",
|
||||||
HierarchyHandling: "INCLUDE_CHILDREN",
|
HierarchyHandling: "INCLUDE_CHILDREN",
|
||||||
NodeSpacing: 100.0,
|
NodeSpacing: 100.0,
|
||||||
|
|
|
||||||
1141
e2etests/testdata/stable/orientation/dagre/board.exp.json
generated
vendored
1141
e2etests/testdata/stable/orientation/dagre/board.exp.json
generated
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 330 KiB |
1033
e2etests/testdata/stable/orientation/elk/board.exp.json
generated
vendored
1033
e2etests/testdata/stable/orientation/elk/board.exp.json
generated
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 330 KiB |
Loading…
Reference in a new issue