We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f825e2 commit 5b96adeCopy full SHA for 5b96ade
1 file changed
src/gameobjects/text/typedefs/GetTextSizeObject.js
@@ -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