(root: BoxRenderable | RootRenderable, name: string)
| 253 | } |
| 254 | |
| 255 | function boxPath(root: BoxRenderable | RootRenderable, name: string): BoxRenderable[] | undefined { |
| 256 | for (const item of root.getChildren()) { |
| 257 | if (item.constructor.name === name) return root instanceof BoxRenderable ? [root] : [] |
| 258 | if (!(item instanceof BoxRenderable)) continue |
| 259 | const path = boxPath(item, name) |
| 260 | if (path) return root instanceof BoxRenderable ? [root, ...path] : path |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | function footerComposerFrame(root: BoxRenderable | RootRenderable) { |
| 265 | return boxPath(root, "TextareaRenderable")!.at(-5)! |
no outgoing calls
no test coverage detected