MCPcopy Create free account
hub / github.com/dev7355608/perfect-vision / getBounds

Method getBounds

scripts/utils/framebuffer.js:501–527  ·  view source on GitHub ↗
(skipUpdate, rect)

Source from the content-addressed store, hash-verified

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);

Callers 2

pixi.jsFile · 0.45
renderMethod · 0.45

Calls 1

updateTransformMethod · 0.95

Tested by

no test coverage detected