2022-11-29 04:08:36PM

This commit is contained in:
Alexander Wang 2022-11-29 16:08:36 -08:00
parent a39bfce697
commit d45aa3f5c4
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE
5 changed files with 5 additions and 2227 deletions

View file

@ -69,7 +69,7 @@ type ELKEdge struct {
type ELKGraph struct {
ID string `json:"id"`
LayoutOptions ELKLayoutOptions `json:"layoutOptions"`
LayoutOptions *ELKLayoutOptions `json:"layoutOptions"`
Children []*ELKNode `json:"children,omitempty"`
Edges []*ELKEdge `json:"edges,omitempty"`
}
@ -115,7 +115,7 @@ func Layout(ctx context.Context, g *d2graph.Graph) (err error) {
elkGraph := &ELKGraph{
ID: "root",
LayoutOptions: ELKLayoutOptions{
LayoutOptions: &ELKLayoutOptions{
Algorithm: "layered",
HierarchyHandling: "INCLUDE_CHILDREN",
NodeSpacing: 100.0,

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

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