mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Updated jsdocs
This commit is contained in:
parent
764de08ff4
commit
fe2ddcf934
2 changed files with 49 additions and 1 deletions
|
@ -17,6 +17,10 @@ var ComputedSize = {
|
|||
/**
|
||||
* The native (un-scaled) width of this Game Object.
|
||||
*
|
||||
* Changing this value will not change the size that the Game Object is rendered in-game.
|
||||
* For that you need to either set the scale of the Game Object (`setScale`) or use
|
||||
* the `displayWidth` property.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.ComputedSize#width
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
|
@ -26,6 +30,10 @@ var ComputedSize = {
|
|||
/**
|
||||
* The native (un-scaled) height of this Game Object.
|
||||
*
|
||||
* Changing this value will not change the size that the Game Object is rendered in-game.
|
||||
* For that you need to either set the scale of the Game Object (`setScale`) or use
|
||||
* the `displayHeight` property.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.ComputedSize#height
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
|
@ -34,8 +42,11 @@ var ComputedSize = {
|
|||
|
||||
/**
|
||||
* The displayed width of this Game Object.
|
||||
*
|
||||
* This value takes into account the scale factor.
|
||||
*
|
||||
* Setting this value will adjust the Game Object's scale property.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.ComputedSize#displayWidth
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
|
@ -56,8 +67,11 @@ var ComputedSize = {
|
|||
|
||||
/**
|
||||
* The displayed height of this Game Object.
|
||||
*
|
||||
* This value takes into account the scale factor.
|
||||
*
|
||||
* Setting this value will adjust the Game Object's scale property.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.ComputedSize#displayHeight
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
|
@ -77,7 +91,15 @@ var ComputedSize = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Sets the size of this Game Object.
|
||||
* Sets the internal size of this Game Object, as used for frame or physics body creation.
|
||||
*
|
||||
* This will not change the size that the Game Object is rendered in-game.
|
||||
* For that you need to either set the scale of the Game Object (`setScale`) or call the
|
||||
* `setDisplaySize` method, which is the same thing as changing the scale but allows you
|
||||
* to do so by giving pixel values.
|
||||
*
|
||||
* If you have enabled this Game Object for input, changing the size will _not_ change the
|
||||
* size of the hit area. To do this you should adjust the `input.hitArea` object directly.
|
||||
*
|
||||
* @method Phaser.GameObjects.Components.ComputedSize#setSize
|
||||
* @since 3.4.0
|
||||
|
@ -97,6 +119,7 @@ var ComputedSize = {
|
|||
|
||||
/**
|
||||
* Sets the display size of this Game Object.
|
||||
*
|
||||
* Calling this will adjust the scale.
|
||||
*
|
||||
* @method Phaser.GameObjects.Components.ComputedSize#setDisplaySize
|
||||
|
|
|
@ -27,6 +27,10 @@ var Size = {
|
|||
/**
|
||||
* The native (un-scaled) width of this Game Object.
|
||||
*
|
||||
* Changing this value will not change the size that the Game Object is rendered in-game.
|
||||
* For that you need to either set the scale of the Game Object (`setScale`) or use
|
||||
* the `displayWidth` property.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Size#width
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
|
@ -36,6 +40,10 @@ var Size = {
|
|||
/**
|
||||
* The native (un-scaled) height of this Game Object.
|
||||
*
|
||||
* Changing this value will not change the size that the Game Object is rendered in-game.
|
||||
* For that you need to either set the scale of the Game Object (`setScale`) or use
|
||||
* the `displayHeight` property.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Size#height
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
|
@ -44,8 +52,11 @@ var Size = {
|
|||
|
||||
/**
|
||||
* The displayed width of this Game Object.
|
||||
*
|
||||
* This value takes into account the scale factor.
|
||||
*
|
||||
* Setting this value will adjust the Game Object's scale property.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Size#displayWidth
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
|
@ -66,8 +77,11 @@ var Size = {
|
|||
|
||||
/**
|
||||
* The displayed height of this Game Object.
|
||||
*
|
||||
* This value takes into account the scale factor.
|
||||
*
|
||||
* Setting this value will adjust the Game Object's scale property.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Size#displayHeight
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
|
@ -89,6 +103,14 @@ var Size = {
|
|||
/**
|
||||
* Sets the size of this Game Object to be that of the given Frame.
|
||||
*
|
||||
* This will not change the size that the Game Object is rendered in-game.
|
||||
* For that you need to either set the scale of the Game Object (`setScale`) or call the
|
||||
* `setDisplaySize` method, which is the same thing as changing the scale but allows you
|
||||
* to do so by giving pixel values.
|
||||
*
|
||||
* If you have enabled this Game Object for input, changing the size will _not_ change the
|
||||
* size of the hit area. To do this you should adjust the `input.hitArea` object directly.
|
||||
*
|
||||
* @method Phaser.GameObjects.Components.Size#setSizeToFrame
|
||||
* @since 3.0.0
|
||||
*
|
||||
|
@ -114,6 +136,9 @@ var Size = {
|
|||
* `setDisplaySize` method, which is the same thing as changing the scale but allows you
|
||||
* to do so by giving pixel values.
|
||||
*
|
||||
* If you have enabled this Game Object for input, changing the size will _not_ change the
|
||||
* size of the hit area. To do this you should adjust the `input.hitArea` object directly.
|
||||
*
|
||||
* @method Phaser.GameObjects.Components.Size#setSize
|
||||
* @since 3.0.0
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue