fix
This commit is contained in:
parent
e253ab80bb
commit
96254b56ed
1 changed files with 3 additions and 2 deletions
|
|
@ -274,9 +274,10 @@ func InjectNested(container *d2graph.Object, nestedGraph *d2graph.Graph) {
|
||||||
g.Objects = append(g.Objects, nestedGraph.Objects...)
|
g.Objects = append(g.Objects, nestedGraph.Objects...)
|
||||||
g.Edges = append(g.Edges, nestedGraph.Edges...)
|
g.Edges = append(g.Edges, nestedGraph.Edges...)
|
||||||
|
|
||||||
if g.Root.LabelPosition != nil {
|
if nestedGraph.Root.LabelPosition != nil {
|
||||||
container.LabelPosition = g.Root.LabelPosition
|
container.LabelPosition = nestedGraph.Root.LabelPosition
|
||||||
}
|
}
|
||||||
|
container.Attributes = nestedGraph.Root.Attributes
|
||||||
}
|
}
|
||||||
|
|
||||||
func PositionNested(container *d2graph.Object, nestedGraph *d2graph.Graph) {
|
func PositionNested(container *d2graph.Object, nestedGraph *d2graph.Graph) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue