Skip to content

Commit 8180764

Browse files
committed
Added jsdoc override for origin
1 parent 9589c91 commit 8180764

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/gameobjects/text/static/Text.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,30 @@ var Text = new Class({
13181318
this.texture.destroy();
13191319
}
13201320

1321+
/**
1322+
* The horizontal origin of this Game Object.
1323+
* The origin maps the relationship between the size and position of the Game Object.
1324+
* The default value is 0.5, meaning all Game Objects are positioned based on their center.
1325+
* Setting the value to 0 means the position now relates to the left of the Game Object.
1326+
*
1327+
* @name Phaser.GameObjects.Text#originX
1328+
* @type {number}
1329+
* @default 0
1330+
* @since 3.0.0
1331+
*/
1332+
1333+
/**
1334+
* The vertical origin of this Game Object.
1335+
* The origin maps the relationship between the size and position of the Game Object.
1336+
* The default value is 0.5, meaning all Game Objects are positioned based on their center.
1337+
* Setting the value to 0 means the position now relates to the top of the Game Object.
1338+
*
1339+
* @name Phaser.GameObjects.Text#originY
1340+
* @type {number}
1341+
* @default 0
1342+
* @since 3.0.0
1343+
*/
1344+
13211345
});
13221346

13231347
module.exports = Text;

0 commit comments

Comments
 (0)