make Texts() find recursively
This commit is contained in:
parent
3748441be5
commit
d2d78b68c5
1 changed files with 18 additions and 0 deletions
|
|
@ -1611,6 +1611,24 @@ func (g *Graph) Texts() []*d2target.MText {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, board := range g.Layers {
|
||||||
|
for _, t := range board.Texts() {
|
||||||
|
texts = appendTextDedup(texts, t)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, board := range g.Scenarios {
|
||||||
|
for _, t := range board.Texts() {
|
||||||
|
texts = appendTextDedup(texts, t)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, board := range g.Steps {
|
||||||
|
for _, t := range board.Texts() {
|
||||||
|
texts = appendTextDedup(texts, t)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return texts
|
return texts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue