Skip to content

Commit c8b058c

Browse files
committed
Renamed object to avoid TS defs conflict
1 parent 41f9277 commit c8b058c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/gameobjects/text/GetTextSize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @since 3.0.0
1212
*
1313
* @param {Phaser.GameObjects.Text} text - The Text object to calculate the size from.
14-
* @param {TextMetrics} size - The Text metrics to use when calculating the size.
14+
* @param {BitmapTextMetrics} size - The Text metrics to use when calculating the size.
1515
* @param {array} lines - The lines of text to calculate the size from.
1616
*
1717
* @return {object} An object containing dimensions of the Text object.

src/gameobjects/text/TextStyle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var propertyMap = {
5353
/**
5454
* Font metrics for a Text Style object.
5555
*
56-
* @typedef {object} TextMetrics
56+
* @typedef {object} BitmapTextMetrics
5757
*
5858
* @property {number} ascent - The ascent of the font.
5959
* @property {number} descent - The descent of the font.
@@ -929,7 +929,7 @@ var TextStyle = new Class({
929929
* @method Phaser.GameObjects.Text.TextStyle#getTextMetrics
930930
* @since 3.0.0
931931
*
932-
* @return {TextMetrics} The text metrics.
932+
* @return {BitmapTextMetrics} The text metrics.
933933
*/
934934
getTextMetrics: function ()
935935
{

0 commit comments

Comments
 (0)