Skip to content

Commit 5b96ade

Browse files
committed
Types.GameObjects.Text.GetTextSizeObject
1 parent 4f825e2 commit 5b96ade

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Results object from a call to GetTextSize.
3+
*
4+
* @typedef {object} Phaser.Types.GameObjects.Text.GetTextSizeObject
5+
* @since 3.0.0
6+
*
7+
* @property {number} width - The width of the longest line in the Text object.
8+
* @property {number} height - The height of the Text object.
9+
* @property {number} lines - The number of lines in the Text object.
10+
* @property {number[]} lineWidths - An array of the lines for each line in the Text object.
11+
* @property {number} lineSpacing - The line spacing of the Text object.
12+
* @property {number} lineHeight - The height of a line factoring in font and stroke.
13+
*/

0 commit comments

Comments
 (0)