(root: Component, target: Component)
| 491 | } |
| 492 | |
| 493 | private containsComponent(root: Component, target: Component): boolean { |
| 494 | if (root === target) return true; |
| 495 | if (!(root instanceof Container)) return false; |
| 496 | return root.children.some((child) => this.containsComponent(child, target)); |
| 497 | } |
| 498 | |
| 499 | /** |
| 500 | * Show an overlay component with configurable positioning and sizing. |