Text#getBounds()

getBounds(matrix) → {Phaser.Rectangle}

Returns the bounds of the Text as a rectangle.
The bounds calculation takes the worldTransform into account.

Parameters
Name Type Description
matrix Phaser.Matrix

The transformation matrix of the Text.

Returns

The framing rectangle

Source code: gameobjects/Text.js (Line 1631)
doc_phaser
2017-02-14 11:13:57
Comments
Leave a Comment

Please login to continue.