* Recursively recompute absolute bounds for a container and all its * descendants. Used when the container's pos changes (centering on a wider * viewport): children cache their absolute bounds at addChild time, and * those caches are stale until each child happens to call updateBounds on * its o
(container)
| 124 | * @ignore |
| 125 | */ |
| 126 | function refreshAbsoluteBounds(container) { |
| 127 | container.forEach((child) => { |
| 128 | child.updateBounds(true); |
| 129 | if (child instanceof Container) { |
| 130 | refreshAbsoluteBounds(child); |
| 131 | } |
| 132 | }); |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * a TMX Tile Map Object |
no test coverage detected