mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Added jsdoc override for origin
This commit is contained in:
parent
9589c9194f
commit
8180764cca
1 changed files with 24 additions and 0 deletions
|
@ -1318,6 +1318,30 @@ var Text = new Class({
|
|||
this.texture.destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
* The horizontal origin of this Game Object.
|
||||
* The origin maps the relationship between the size and position of the Game Object.
|
||||
* The default value is 0.5, meaning all Game Objects are positioned based on their center.
|
||||
* Setting the value to 0 means the position now relates to the left of the Game Object.
|
||||
*
|
||||
* @name Phaser.GameObjects.Text#originX
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* The vertical origin of this Game Object.
|
||||
* The origin maps the relationship between the size and position of the Game Object.
|
||||
* The default value is 0.5, meaning all Game Objects are positioned based on their center.
|
||||
* Setting the value to 0 means the position now relates to the top of the Game Object.
|
||||
*
|
||||
* @name Phaser.GameObjects.Text#originY
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
});
|
||||
|
||||
module.exports = Text;
|
||||
|
|
Loading…
Reference in a new issue