* returns the bounding box for this renderable * @returns {Bounds} bounding box Rectangle object
()
| 561 | * @returns {Bounds} bounding box Rectangle object |
| 562 | */ |
| 563 | getBounds() { |
| 564 | if (typeof this._bounds === "undefined") { |
| 565 | super.getBounds(); |
| 566 | if (this.isFinite()) { |
| 567 | this.updateBounds(); |
| 568 | } else { |
| 569 | // e.g. containers or game world can have infinite size |
| 570 | this._bounds.setMinMax(this.pos.x, this.pos.y, this.width, this.height); |
| 571 | } |
| 572 | } |
| 573 | return this._bounds; |
| 574 | } |
| 575 | |
| 576 | /** |
| 577 | * get the renderable alpha channel value<br> |
no test coverage detected