This commit is contained in:
Gavin Nishizawa 2023-09-18 19:59:13 -07:00
parent e253ab80bb
commit 96254b56ed
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -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) {