(skipUpdate, rect)
| 499 | calculateBounds() { } |
| 500 | |
| 501 | getBounds(skipUpdate, rect) { |
| 502 | if (!skipUpdate) { |
| 503 | if (!this.parent) { |
| 504 | this.parent = this._tempDisplayObjectParent; |
| 505 | this.updateTransform(); |
| 506 | this.parent = null; |
| 507 | } else { |
| 508 | this._recursivePostUpdateTransform(); |
| 509 | this.updateTransform(); |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | if (!rect) { |
| 514 | if (!this._boundsRect) { |
| 515 | this._boundsRect = new PIXI.Rectangle(); |
| 516 | } |
| 517 | |
| 518 | rect = this._boundsRect; |
| 519 | } |
| 520 | |
| 521 | rect.x = 0; |
| 522 | rect.y = 0; |
| 523 | rect.width = this.width; |
| 524 | rect.height = this.height; |
| 525 | |
| 526 | return rect; |
| 527 | } |
| 528 | |
| 529 | updateTransform() { |
| 530 | this.transform.updateTransform(PIXI.Transform.IDENTITY); |
no test coverage detected