mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Tidying up jsdocs and changing float to number
This commit is contained in:
parent
0fdeec2e26
commit
7aa46657c2
80 changed files with 339 additions and 339 deletions
|
@ -32,7 +32,7 @@ var GetValue = require('../utils/object/GetValue');
|
|||
*
|
||||
* @property {string} key - The key that the animation will be associated with. i.e. sprite.animations.play(key)
|
||||
* @property {(string|number)} frame - [description]
|
||||
* @property {float} [duration=0] - [description]
|
||||
* @property {number} [duration=0] - [description]
|
||||
* @property {boolean} [visible] - [description]
|
||||
*/
|
||||
|
||||
|
@ -545,7 +545,7 @@ var Animation = new Class({
|
|||
* @method Phaser.Animations.Animation#getFrameByProgress
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param {float} value - A value between 0 and 1.
|
||||
* @param {number} value - A value between 0 and 1.
|
||||
*
|
||||
* @return {Phaser.Animations.AnimationFrame} The frame closest to the given progress value.
|
||||
*/
|
||||
|
|
|
@ -262,7 +262,7 @@ var Camera = new Class({
|
|||
* Be careful to never set this value to zero.
|
||||
*
|
||||
* @name Phaser.Cameras.Scene2D.Camera#zoom
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -452,7 +452,7 @@ var Camera = new Class({
|
|||
* See `setOrigin` to set both origins in a single, chainable call.
|
||||
*
|
||||
* @name Phaser.Cameras.Scene2D.Camera#originX
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0.5
|
||||
* @since 3.11.0
|
||||
*/
|
||||
|
@ -469,7 +469,7 @@ var Camera = new Class({
|
|||
* See `setOrigin` to set both origins in a single, chainable call.
|
||||
*
|
||||
* @name Phaser.Cameras.Scene2D.Camera#originY
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0.5
|
||||
* @since 3.11.0
|
||||
*/
|
||||
|
@ -1590,7 +1590,7 @@ var Camera = new Class({
|
|||
* @method Phaser.Cameras.Scene2D.Camera#setZoom
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} [value=1] - The zoom value of the Camera. The minimum it can be is 0.001.
|
||||
* @param {number} [value=1] - The zoom value of the Camera. The minimum it can be is 0.001.
|
||||
*
|
||||
* @return {Phaser.Cameras.Scene2D.Camera} This Camera instance.
|
||||
*/
|
||||
|
@ -1646,8 +1646,8 @@ var Camera = new Class({
|
|||
*
|
||||
* @param {(Phaser.GameObjects.GameObject|object)} target - The target for the Camera to follow.
|
||||
* @param {boolean} [roundPixels=false] - Round the camera position to whole integers to avoid sub-pixel rendering?
|
||||
* @param {float} [lerpX=1] - A value between 0 and 1. This value specifies the amount of linear interpolation to use when horizontally tracking the target. The closer the value to 1, the faster the camera will track.
|
||||
* @param {float} [lerpY=1] - A value between 0 and 1. This value specifies the amount of linear interpolation to use when vertically tracking the target. The closer the value to 1, the faster the camera will track.
|
||||
* @param {number} [lerpX=1] - A value between 0 and 1. This value specifies the amount of linear interpolation to use when horizontally tracking the target. The closer the value to 1, the faster the camera will track.
|
||||
* @param {number} [lerpY=1] - A value between 0 and 1. This value specifies the amount of linear interpolation to use when vertically tracking the target. The closer the value to 1, the faster the camera will track.
|
||||
* @param {number} [offsetX=0] - The horizontal offset from the camera follow target.x position.
|
||||
* @param {number} [offsetY=0] - The vertical offset from the camera follow target.y position.
|
||||
*
|
||||
|
|
|
@ -18,11 +18,11 @@ var RectangleContains = require('../../geom/rectangle/Contains');
|
|||
* @property {integer} [y=0] - The vertical position of the Camera viewport.
|
||||
* @property {integer} [width] - The width of the Camera viewport.
|
||||
* @property {integer} [height] - The height of the Camera viewport.
|
||||
* @property {float} [zoom=1] - The default zoom level of the Camera.
|
||||
* @property {float} [rotation=0] - The rotation of the Camera, in radians.
|
||||
* @property {number} [zoom=1] - The default zoom level of the Camera.
|
||||
* @property {number} [rotation=0] - The rotation of the Camera, in radians.
|
||||
* @property {boolean} [roundPixels=false] - Should the Camera round pixels before rendering?
|
||||
* @property {float} [scrollX=0] - The horizontal scroll position of the Camera.
|
||||
* @property {float} [scrollY=0] - The vertical scroll position of the Camera.
|
||||
* @property {number} [scrollX=0] - The horizontal scroll position of the Camera.
|
||||
* @property {number} [scrollY=0] - The vertical scroll position of the Camera.
|
||||
* @property {(false|string)} [backgroundColor=false] - A CSS color string controlling the Camera background color.
|
||||
* @property {?object} [bounds] - Defines the Camera bounds.
|
||||
* @property {number} [bounds.x=0] - The top-left extent of the Camera bounds.
|
||||
|
|
|
@ -127,7 +127,7 @@ var Fade = new Class({
|
|||
* A value between 0 and 1.
|
||||
*
|
||||
* @name Phaser.Cameras.Scene2D.Effects.Fade#alpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @since 3.5.0
|
||||
*/
|
||||
|
@ -137,7 +137,7 @@ var Fade = new Class({
|
|||
* If this effect is running this holds the current percentage of the progress, a value between 0 and 1.
|
||||
*
|
||||
* @name Phaser.Cameras.Scene2D.Effects.Fade#progress
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.5.0
|
||||
*/
|
||||
this.progress = 0;
|
||||
|
@ -156,7 +156,7 @@ var Fade = new Class({
|
|||
* @callback CameraFadeCallback
|
||||
*
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - The camera on which the effect is running.
|
||||
* @param {float} progress - The progress of the effect. A value between 0 and 1.
|
||||
* @param {number} progress - The progress of the effect. A value between 0 and 1.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -102,7 +102,7 @@ var Flash = new Class({
|
|||
* A value between 0 and 1.
|
||||
*
|
||||
* @name Phaser.Cameras.Scene2D.Effects.Flash#alpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @since 3.5.0
|
||||
*/
|
||||
|
@ -112,7 +112,7 @@ var Flash = new Class({
|
|||
* If this effect is running this holds the current percentage of the progress, a value between 0 and 1.
|
||||
*
|
||||
* @name Phaser.Cameras.Scene2D.Effects.Flash#progress
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.5.0
|
||||
*/
|
||||
this.progress = 0;
|
||||
|
@ -131,7 +131,7 @@ var Flash = new Class({
|
|||
* @callback CameraFlashCallback
|
||||
*
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - The camera on which the effect is running.
|
||||
* @param {float} progress - The progress of the effect. A value between 0 and 1.
|
||||
* @param {number} progress - The progress of the effect. A value between 0 and 1.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -107,7 +107,7 @@ var Pan = new Class({
|
|||
* If this effect is running this holds the current percentage of the progress, a value between 0 and 1.
|
||||
*
|
||||
* @name Phaser.Cameras.Scene2D.Effects.Pan#progress
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.11.0
|
||||
*/
|
||||
this.progress = 0;
|
||||
|
@ -126,7 +126,7 @@ var Pan = new Class({
|
|||
* @callback CameraPanCallback
|
||||
*
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - The camera on which the effect is running.
|
||||
* @param {float} progress - The progress of the effect. A value between 0 and 1.
|
||||
* @param {number} progress - The progress of the effect. A value between 0 and 1.
|
||||
* @param {number} x - The Camera's new scrollX coordinate.
|
||||
* @param {number} y - The Camera's new scrollY coordinate.
|
||||
*/
|
||||
|
|
|
@ -80,7 +80,7 @@ var Shake = new Class({
|
|||
* If this effect is running this holds the current percentage of the progress, a value between 0 and 1.
|
||||
*
|
||||
* @name Phaser.Cameras.Scene2D.Effects.Shake#progress
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.5.0
|
||||
*/
|
||||
this.progress = 0;
|
||||
|
@ -121,7 +121,7 @@ var Shake = new Class({
|
|||
* @callback CameraShakeCallback
|
||||
*
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - The camera on which the effect is running.
|
||||
* @param {float} progress - The progress of the effect. A value between 0 and 1.
|
||||
* @param {number} progress - The progress of the effect. A value between 0 and 1.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -153,7 +153,7 @@ var Shake = new Class({
|
|||
* @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.
|
||||
* @param {Phaser.Cameras.Scene2D.Effects.Shake} effect - A reference to the effect instance.
|
||||
* @param {integer} duration - The duration of the effect.
|
||||
* @param {float} intensity - The intensity of the effect.
|
||||
* @param {number} intensity - The intensity of the effect.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,8 +23,8 @@ var GetValue = require('../../utils/object/GetValue');
|
|||
* @property {Phaser.Input.Keyboard.Key} [up] - The Key to be pressed that will move the Camera up.
|
||||
* @property {Phaser.Input.Keyboard.Key} [zoomIn] - The Key to be pressed that will zoom the Camera in.
|
||||
* @property {Phaser.Input.Keyboard.Key} [zoomOut] - The Key to be pressed that will zoom the Camera out.
|
||||
* @property {float} [zoomSpeed=0.01] - The speed at which the camera will zoom if the `zoomIn` or `zoomOut` keys are pressed.
|
||||
* @property {(float|{x:float,y:float})} [speed=0] - The horizontal and vertical speed the camera will move.
|
||||
* @property {number} [zoomSpeed=0.01] - The speed at which the camera will zoom if the `zoomIn` or `zoomOut` keys are pressed.
|
||||
* @property {(number|{x:number,y:number})} [speed=0] - The horizontal and vertical speed the camera will move.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -118,7 +118,7 @@ var FixedKeyControl = new Class({
|
|||
* The speed at which the camera will zoom if the `zoomIn` or `zoomOut` keys are pressed.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.FixedKeyControl#zoomSpeed
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0.01
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -128,7 +128,7 @@ var FixedKeyControl = new Class({
|
|||
* The horizontal speed the camera will move.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.FixedKeyControl#speedX
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -138,7 +138,7 @@ var FixedKeyControl = new Class({
|
|||
* The vertical speed the camera will move.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.FixedKeyControl#speedY
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
|
|
@ -30,10 +30,10 @@ var GetValue = require('../../utils/object/GetValue');
|
|||
* @property {Phaser.Input.Keyboard.Key} [up] - The Key to be pressed that will move the Camera up.
|
||||
* @property {Phaser.Input.Keyboard.Key} [zoomIn] - The Key to be pressed that will zoom the Camera in.
|
||||
* @property {Phaser.Input.Keyboard.Key} [zoomOut] - The Key to be pressed that will zoom the Camera out.
|
||||
* @property {float} [zoomSpeed=0.01] - The speed at which the camera will zoom if the `zoomIn` or `zoomOut` keys are pressed.
|
||||
* @property {(float|{x:float,y:float})} [acceleration=0] - The horizontal and vertical acceleration the camera will move.
|
||||
* @property {(float|{x:float,y:float})} [drag=0] - The horizontal and vertical drag applied to the camera when it is moving.
|
||||
* @property {(float|{x:float,y:float})} [maxSpeed=0] - The maximum horizontal and vertical speed the camera will move.
|
||||
* @property {number} [zoomSpeed=0.01] - The speed at which the camera will zoom if the `zoomIn` or `zoomOut` keys are pressed.
|
||||
* @property {(number|{x:number,y:number})} [acceleration=0] - The horizontal and vertical acceleration the camera will move.
|
||||
* @property {(number|{x:number,y:number})} [drag=0] - The horizontal and vertical drag applied to the camera when it is moving.
|
||||
* @property {(number|{x:number,y:number})} [maxSpeed=0] - The maximum horizontal and vertical speed the camera will move.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -127,7 +127,7 @@ var SmoothedKeyControl = new Class({
|
|||
* The speed at which the camera will zoom if the `zoomIn` or `zoomOut` keys are pressed.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.SmoothedKeyControl#zoomSpeed
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0.01
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -137,7 +137,7 @@ var SmoothedKeyControl = new Class({
|
|||
* The horizontal acceleration the camera will move.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.SmoothedKeyControl#accelX
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -147,7 +147,7 @@ var SmoothedKeyControl = new Class({
|
|||
* The vertical acceleration the camera will move.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.SmoothedKeyControl#accelY
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -170,7 +170,7 @@ var SmoothedKeyControl = new Class({
|
|||
* The horizontal drag applied to the camera when it is moving.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.SmoothedKeyControl#dragX
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -180,7 +180,7 @@ var SmoothedKeyControl = new Class({
|
|||
* The vertical drag applied to the camera when it is moving.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.SmoothedKeyControl#dragY
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -203,7 +203,7 @@ var SmoothedKeyControl = new Class({
|
|||
* The maximum horizontal speed the camera will move.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.SmoothedKeyControl#maxSpeedX
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -213,7 +213,7 @@ var SmoothedKeyControl = new Class({
|
|||
* The maximum vertical speed the camera will move.
|
||||
*
|
||||
* @name Phaser.Cameras.Controls.SmoothedKeyControl#maxSpeedY
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
|
|
@ -504,7 +504,7 @@ var Camera = new Class({
|
|||
* @method Phaser.Cameras.Sprite3D.Camera#randomCube
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} [scale=1] - [description]
|
||||
* @param {number} [scale=1] - [description]
|
||||
* @param {Phaser.GameObjects.Sprite3D[]} [sprites] - [description]
|
||||
*
|
||||
* @return {Phaser.Cameras.Sprite3D.Camera} This Camera object.
|
||||
|
@ -662,7 +662,7 @@ var Camera = new Class({
|
|||
* @method Phaser.Cameras.Sprite3D.Camera#rotate
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} radians - [description]
|
||||
* @param {number} radians - [description]
|
||||
* @param {Phaser.Math.Vector3} axis - [description]
|
||||
*
|
||||
* @return {Phaser.Cameras.Sprite3D.Camera} This Camera object.
|
||||
|
@ -682,7 +682,7 @@ var Camera = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Math.Vector3} point - [description]
|
||||
* @param {float} radians - [description]
|
||||
* @param {number} radians - [description]
|
||||
* @param {Phaser.Math.Vector3} axis - [description]
|
||||
*
|
||||
* @return {Phaser.Cameras.Sprite3D.Camera} This Camera object.
|
||||
|
|
|
@ -60,7 +60,7 @@ var OrthographicCamera = new Class({
|
|||
* [description]
|
||||
*
|
||||
* @name Phaser.Cameras.Sprite3D.OrthographicCamera#_zoom
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
|
|
@ -123,7 +123,7 @@ var CubicBezierCurve = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.
|
||||
|
|
|
@ -278,7 +278,7 @@ var Curve = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} u - [description]
|
||||
* @param {number} u - [description]
|
||||
* @param {Phaser.Math.Vector2} [out] - [description]
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} [description]
|
||||
|
@ -434,7 +434,7 @@ var Curve = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} u - [description]
|
||||
* @param {number} u - [description]
|
||||
* @param {Phaser.Math.Vector2} [out] - [description]
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} [description]
|
||||
|
@ -456,7 +456,7 @@ var Curve = new Class({
|
|||
* @param {integer} distance - [description]
|
||||
* @param {integer} [divisions] - [description]
|
||||
*
|
||||
* @return {float} [description]
|
||||
* @return {number} [description]
|
||||
*/
|
||||
getTFromDistance: function (distance, divisions)
|
||||
{
|
||||
|
@ -476,7 +476,7 @@ var Curve = new Class({
|
|||
* @method Phaser.Curves.Curve#getUtoTmapping
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} u - [description]
|
||||
* @param {number} u - [description]
|
||||
* @param {integer} distance - [description]
|
||||
* @param {integer} [divisions] - [description]
|
||||
*
|
||||
|
|
|
@ -207,7 +207,7 @@ var EllipseCurve = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.
|
||||
|
|
|
@ -126,7 +126,7 @@ var LineCurve = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.
|
||||
|
@ -155,7 +155,7 @@ var LineCurve = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} u - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {number} u - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.
|
||||
|
|
|
@ -110,7 +110,7 @@ var QuadraticBezier = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.
|
||||
|
|
|
@ -150,7 +150,7 @@ var SplineCurve = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.
|
||||
|
|
|
@ -55,7 +55,7 @@ var MoveTo = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.
|
||||
* @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.
|
||||
|
@ -75,7 +75,7 @@ var MoveTo = new Class({
|
|||
*
|
||||
* @generic {Phaser.Math.Vector2} O - [out,$return]
|
||||
*
|
||||
* @param {float} u - [description]
|
||||
* @param {number} u - [description]
|
||||
* @param {Phaser.Math.Vector2} [out] - [description]
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} [description]
|
||||
|
|
|
@ -171,10 +171,10 @@ var Color = new Class({
|
|||
* @method Phaser.Display.Color#setGLTo
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} red - The red color value. A number between 0 and 1.
|
||||
* @param {float} green - The green color value. A number between 0 and 1.
|
||||
* @param {float} blue - The blue color value. A number between 0 and 1.
|
||||
* @param {float} [alpha=1] - The alpha value. A number between 0 and 1.
|
||||
* @param {number} red - The red color value. A number between 0 and 1.
|
||||
* @param {number} green - The green color value. A number between 0 and 1.
|
||||
* @param {number} blue - The blue color value. A number between 0 and 1.
|
||||
* @param {number} [alpha=1] - The alpha value. A number between 0 and 1.
|
||||
*
|
||||
* @return {Phaser.Display.Color} This Color object.
|
||||
*/
|
||||
|
@ -299,7 +299,7 @@ var Color = new Class({
|
|||
* The red color value, normalized to the range 0 to 1.
|
||||
*
|
||||
* @name Phaser.Display.Color#redGL
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
redGL: {
|
||||
|
@ -324,7 +324,7 @@ var Color = new Class({
|
|||
* The green color value, normalized to the range 0 to 1.
|
||||
*
|
||||
* @name Phaser.Display.Color#greenGL
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
greenGL: {
|
||||
|
@ -349,7 +349,7 @@ var Color = new Class({
|
|||
* The blue color value, normalized to the range 0 to 1.
|
||||
*
|
||||
* @name Phaser.Display.Color#blueGL
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
blueGL: {
|
||||
|
@ -374,7 +374,7 @@ var Color = new Class({
|
|||
* The alpha color value, normalized to the range 0 to 1.
|
||||
*
|
||||
* @name Phaser.Display.Color#alphaGL
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
alphaGL: {
|
||||
|
|
|
@ -291,7 +291,7 @@ var Bob = new Class({
|
|||
* @method Phaser.GameObjects.Blitter.Bob#setAlpha
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} value - The alpha value used for this Bob. Between 0 and 1.
|
||||
* @param {number} value - The alpha value used for this Bob. Between 0 and 1.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Blitter.Bob} This Bob Game Object.
|
||||
*/
|
||||
|
|
|
@ -23,7 +23,7 @@ var Alpha = {
|
|||
* Private internal value. Holds the global alpha value.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#_alpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
|
@ -34,7 +34,7 @@ var Alpha = {
|
|||
* Private internal value. Holds the top-left alpha value.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#_alphaTL
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
|
@ -45,7 +45,7 @@ var Alpha = {
|
|||
* Private internal value. Holds the top-right alpha value.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#_alphaTR
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
|
@ -56,7 +56,7 @@ var Alpha = {
|
|||
* Private internal value. Holds the bottom-left alpha value.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#_alphaBL
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
|
@ -67,7 +67,7 @@ var Alpha = {
|
|||
* Private internal value. Holds the bottom-right alpha value.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#_alphaBR
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
|
@ -99,10 +99,10 @@ var Alpha = {
|
|||
* @method Phaser.GameObjects.Components.Alpha#setAlpha
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} [topLeft=1] - The alpha value used for the top-left of the Game Object. If this is the only value given it's applied across the whole Game Object.
|
||||
* @param {float} [topRight] - The alpha value used for the top-right of the Game Object. WebGL only.
|
||||
* @param {float} [bottomLeft] - The alpha value used for the bottom-left of the Game Object. WebGL only.
|
||||
* @param {float} [bottomRight] - The alpha value used for the bottom-right of the Game Object. WebGL only.
|
||||
* @param {number} [topLeft=1] - The alpha value used for the top-left of the Game Object. If this is the only value given it's applied across the whole Game Object.
|
||||
* @param {number} [topRight] - The alpha value used for the top-right of the Game Object. WebGL only.
|
||||
* @param {number} [bottomLeft] - The alpha value used for the bottom-left of the Game Object. WebGL only.
|
||||
* @param {number} [bottomRight] - The alpha value used for the bottom-right of the Game Object. WebGL only.
|
||||
*
|
||||
* @return {this} This Game Object instance.
|
||||
*/
|
||||
|
@ -132,7 +132,7 @@ var Alpha = {
|
|||
* This is a global value, impacting the entire Game Object, not just a region of it.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#alpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
alpha: {
|
||||
|
@ -169,7 +169,7 @@ var Alpha = {
|
|||
* This value is interpolated from the corner to the center of the Game Object.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#alphaTopLeft
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @webglOnly
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -199,7 +199,7 @@ var Alpha = {
|
|||
* This value is interpolated from the corner to the center of the Game Object.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#alphaTopRight
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @webglOnly
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -229,7 +229,7 @@ var Alpha = {
|
|||
* This value is interpolated from the corner to the center of the Game Object.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#alphaBottomLeft
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @webglOnly
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -259,7 +259,7 @@ var Alpha = {
|
|||
* This value is interpolated from the corner to the center of the Game Object.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Alpha#alphaBottomRight
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @webglOnly
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
|
|
@ -528,7 +528,7 @@ var Animation = new Class({
|
|||
* @method Phaser.GameObjects.Components.Animation#getProgress
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @return {float} The progress of the current animation, between 0 and 1.
|
||||
* @return {number} The progress of the current animation, between 0 and 1.
|
||||
*/
|
||||
getProgress: function ()
|
||||
{
|
||||
|
@ -549,7 +549,7 @@ var Animation = new Class({
|
|||
* @method Phaser.GameObjects.Components.Animation#setProgress
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param {float} [value=0] - The progress value, between 0 and 1.
|
||||
* @param {number} [value=0] - The progress value, between 0 and 1.
|
||||
*
|
||||
* @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.
|
||||
*/
|
||||
|
|
|
@ -34,7 +34,7 @@ var Origin = {
|
|||
* Setting the value to 0 means the position now relates to the left of the Game Object.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Origin#originX
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0.5
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -47,7 +47,7 @@ var Origin = {
|
|||
* Setting the value to 0 means the position now relates to the top of the Game Object.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Origin#originY
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0.5
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -63,7 +63,7 @@ var Origin = {
|
|||
* The displayOrigin is a pixel value, based on the size of the Game Object combined with the origin.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Origin#displayOriginX
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
displayOriginX: {
|
||||
|
@ -87,7 +87,7 @@ var Origin = {
|
|||
* The displayOrigin is a pixel value, based on the size of the Game Object combined with the origin.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Origin#displayOriginY
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
displayOriginY: {
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
* @property {number} scale.x - The horizontal scale of this Game Object.
|
||||
* @property {number} scale.y - The vertical scale of this Game Object.
|
||||
* @property {object} origin - The origin of this Game Object.
|
||||
* @property {float} origin.x - The horizontal origin of this Game Object.
|
||||
* @property {float} origin.y - The vertical origin of this Game Object.
|
||||
* @property {number} origin.x - The horizontal origin of this Game Object.
|
||||
* @property {number} origin.y - The vertical origin of this Game Object.
|
||||
* @property {boolean} flipX - The horizontally flipped state of the Game Object.
|
||||
* @property {boolean} flipY - The vertically flipped state of the Game Object.
|
||||
* @property {number} rotation - The angle of this Game Object in radians.
|
||||
* @property {float} alpha - The alpha value of the Game Object.
|
||||
* @property {number} alpha - The alpha value of the Game Object.
|
||||
* @property {boolean} visible - The visible state of the Game Object.
|
||||
* @property {integer} scaleMode - The Scale Mode being used by this Game Object.
|
||||
* @property {(integer|string)} blendMode - Sets the Blend Mode being used by this Game Object.
|
||||
|
|
|
@ -25,7 +25,7 @@ var Transform = {
|
|||
* Private internal value. Holds the horizontal scale value.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Transform#_scaleX
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
|
@ -36,7 +36,7 @@ var Transform = {
|
|||
* Private internal value. Holds the vertical scale value.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Transform#_scaleY
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
|
@ -47,7 +47,7 @@ var Transform = {
|
|||
* Private internal value. Holds the rotation value in radians.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Transform#_rotation
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @private
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
|
|
|
@ -70,7 +70,7 @@ var LightsManager = new Class({
|
|||
* The ambient color.
|
||||
*
|
||||
* @name Phaser.GameObjects.LightsManager#ambientColor
|
||||
* @type {{ r: float, g: float, b: float }}
|
||||
* @type {{ r: number, g: number, b: number }}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.ambientColor = { r: 0.1, g: 0.1, b: 0.1 };
|
||||
|
|
|
@ -18,10 +18,10 @@ var GameObjectFactory = require('../GameObjectFactory');
|
|||
*
|
||||
* @param {number} x - The horizontal position of this Game Object in the world.
|
||||
* @param {number} y - The vertical position of this Game Object in the world.
|
||||
* @param {float[]} vertices - An array containing the vertices data for this Mesh.
|
||||
* @param {float[]} uv - An array containing the uv data for this Mesh.
|
||||
* @param {float[]} colors - An array containing the color data for this Mesh.
|
||||
* @param {float[]} alphas - An array containing the alpha data for this Mesh.
|
||||
* @param {number[]} vertices - An array containing the vertices data for this Mesh.
|
||||
* @param {number[]} uv - An array containing the uv data for this Mesh.
|
||||
* @param {number[]} colors - An array containing the color data for this Mesh.
|
||||
* @param {number[]} alphas - An array containing the alpha data for this Mesh.
|
||||
* @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.
|
||||
* @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with.
|
||||
*
|
||||
|
|
|
@ -144,7 +144,7 @@ var GravityWell = new Class({
|
|||
*
|
||||
* @param {Phaser.GameObjects.Particles.Particle} particle - The Particle to update.
|
||||
* @param {number} delta - The delta time in ms.
|
||||
* @param {float} step - The delta value divided by 1000.
|
||||
* @param {number} step - The delta value divided by 1000.
|
||||
*/
|
||||
update: function (particle, delta)
|
||||
{
|
||||
|
|
|
@ -156,7 +156,7 @@ var Particle = new Class({
|
|||
* The horizontal scale of this Particle.
|
||||
*
|
||||
* @name Phaser.GameObjects.Particles.Particle#scaleX
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -166,7 +166,7 @@ var Particle = new Class({
|
|||
* The vertical scale of this Particle.
|
||||
*
|
||||
* @name Phaser.GameObjects.Particles.Particle#scaleY
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -176,7 +176,7 @@ var Particle = new Class({
|
|||
* The alpha value of this Particle.
|
||||
*
|
||||
* @name Phaser.GameObjects.Particles.Particle#alpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -255,7 +255,7 @@ var Particle = new Class({
|
|||
* The normalized lifespan T value, where 0 is the start and 1 is the end.
|
||||
*
|
||||
* @name Phaser.GameObjects.Particles.Particle#lifeT
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -412,7 +412,7 @@ var Particle = new Class({
|
|||
*
|
||||
* @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - The Emitter that is updating this Particle.
|
||||
* @param {number} delta - The delta time in ms.
|
||||
* @param {float} step - The delta value divided by 1000.
|
||||
* @param {number} step - The delta value divided by 1000.
|
||||
* @param {array} processors - Particle processors (gravity wells).
|
||||
*/
|
||||
computeVelocity: function (emitter, delta, step, processors)
|
||||
|
@ -514,7 +514,7 @@ var Particle = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} delta - The delta time in ms.
|
||||
* @param {float} step - The delta value divided by 1000.
|
||||
* @param {number} step - The delta value divided by 1000.
|
||||
* @param {array} processors - An optional array of update processors.
|
||||
*
|
||||
* @return {boolean} Returns `true` if this Particle has now expired and should be removed, otherwise `false` if still active.
|
||||
|
|
|
@ -625,7 +625,7 @@ var ParticleEmitter = new Class({
|
|||
* Calling {@link Phaser.GameObjects.Particles.ParticleEmitter#explode} also puts the emitter in explode mode (frequency = -1).
|
||||
*
|
||||
* @name Phaser.GameObjects.Particles.ParticleEmitter#frequency
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
* @see Phaser.GameObjects.Particles.ParticleEmitter#setFrequency
|
||||
|
@ -1207,8 +1207,8 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setPosition
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} x - The x-coordinate of the particle origin.
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} y - The y-coordinate of the particle origin.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} x - The x-coordinate of the particle origin.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} y - The y-coordinate of the particle origin.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1229,9 +1229,9 @@ var ParticleEmitter = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {(number|ParticleEmitterBounds|ParticleEmitterBoundsAlt)} x - The x-coordinate of the left edge of the boundary, or an object representing a rectangle.
|
||||
* @param {float} y - The y-coordinate of the top edge of the boundary.
|
||||
* @param {float} width - The width of the boundary.
|
||||
* @param {float} height - The height of the boundary.
|
||||
* @param {number} y - The y-coordinate of the top edge of the boundary.
|
||||
* @param {number} width - The width of the boundary.
|
||||
* @param {number} height - The height of the boundary.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1266,7 +1266,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setSpeedX
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} value - The speed, in pixels per second.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} value - The speed, in pixels per second.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1287,7 +1287,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setSpeedY
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} value - The speed, in pixels per second.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} value - The speed, in pixels per second.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1311,7 +1311,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setSpeed
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} value - The speed, in pixels per second.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} value - The speed, in pixels per second.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1332,7 +1332,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setScaleX
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnUpdateCallback|object} value - The scale, relative to 1.
|
||||
* @param {number|float[]|EmitterOpOnUpdateCallback|object} value - The scale, relative to 1.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1349,7 +1349,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setScaleY
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnUpdateCallback|object} value - The scale, relative to 1.
|
||||
* @param {number|float[]|EmitterOpOnUpdateCallback|object} value - The scale, relative to 1.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1366,7 +1366,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setScale
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnUpdateCallback|object} value - The scale, relative to 1.
|
||||
* @param {number|float[]|EmitterOpOnUpdateCallback|object} value - The scale, relative to 1.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1384,7 +1384,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setGravityX
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} value - Acceleration due to gravity, in pixels per second squared.
|
||||
* @param {number} value - Acceleration due to gravity, in pixels per second squared.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1401,7 +1401,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setGravityY
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} value - Acceleration due to gravity, in pixels per second squared.
|
||||
* @param {number} value - Acceleration due to gravity, in pixels per second squared.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1418,8 +1418,8 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setGravity
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} x - Horizontal acceleration due to gravity, in pixels per second squared.
|
||||
* @param {float} y - Vertical acceleration due to gravity, in pixels per second squared.
|
||||
* @param {number} x - Horizontal acceleration due to gravity, in pixels per second squared.
|
||||
* @param {number} y - Vertical acceleration due to gravity, in pixels per second squared.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1437,7 +1437,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setAlpha
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnUpdateCallback|object} value - A value between 0 (transparent) and 1 (opaque).
|
||||
* @param {number|float[]|EmitterOpOnUpdateCallback|object} value - A value between 0 (transparent) and 1 (opaque).
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1454,7 +1454,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setEmitterAngle
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} value - The angle of the initial velocity of emitted particles.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} value - The angle of the initial velocity of emitted particles.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1471,7 +1471,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setAngle
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} value - The angle of the initial velocity of emitted particles.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} value - The angle of the initial velocity of emitted particles.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1488,7 +1488,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setLifespan
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} value - The particle lifespan, in ms.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} value - The particle lifespan, in ms.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1505,7 +1505,7 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setQuantity
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} quantity - The number of particles to release at each flow cycle or explosion.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} quantity - The number of particles to release at each flow cycle or explosion.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1523,8 +1523,8 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#setFrequency
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} frequency - The time interval (>= 0) of each flow cycle, in ms; or -1 to put the emitter in explosion mode.
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} [quantity] - The number of particles to release at each flow cycle or explosion.
|
||||
* @param {number} frequency - The time interval (>= 0) of each flow cycle, in ms; or -1 to put the emitter in explosion mode.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} [quantity] - The number of particles to release at each flow cycle or explosion.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1930,8 +1930,8 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#flow
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} frequency - The time interval (>= 0) of each flow cycle, in ms.
|
||||
* @param {float|float[]|EmitterOpOnEmitCallback|object} [count=1] - The number of particles to emit at each flow cycle.
|
||||
* @param {number} frequency - The time interval (>= 0) of each flow cycle, in ms.
|
||||
* @param {number|float[]|EmitterOpOnEmitCallback|object} [count=1] - The number of particles to emit at each flow cycle.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
|
||||
*/
|
||||
|
@ -1953,8 +1953,8 @@ var ParticleEmitter = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {integer} count - The amount of Particles to emit.
|
||||
* @param {float} x - The x coordinate to emit the Particles from.
|
||||
* @param {float} y - The y coordinate to emit the Particles from.
|
||||
* @param {number} x - The x coordinate to emit the Particles from.
|
||||
* @param {number} y - The y coordinate to emit the Particles from.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.Particle} The most recently emitted Particle.
|
||||
*/
|
||||
|
@ -1971,8 +1971,8 @@ var ParticleEmitter = new Class({
|
|||
* @method Phaser.GameObjects.Particles.ParticleEmitter#emitParticleAt
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} [x=this.x] - The x coordinate to emit the Particles from.
|
||||
* @param {float} [y=this.x] - The y coordinate to emit the Particles from.
|
||||
* @param {number} [x=this.x] - The x coordinate to emit the Particles from.
|
||||
* @param {number} [y=this.x] - The y coordinate to emit the Particles from.
|
||||
* @param {integer} [count=this.quantity] - The number of Particles to emit.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.Particle} The most recently emitted Particle.
|
||||
|
@ -1989,8 +1989,8 @@ var ParticleEmitter = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {integer} [count=this.quantity] - The number of Particles to emit.
|
||||
* @param {float} [x=this.x] - The x coordinate to emit the Particles from.
|
||||
* @param {float} [y=this.x] - The y coordinate to emit the Particles from.
|
||||
* @param {number} [x=this.x] - The x coordinate to emit the Particles from.
|
||||
* @param {number} [y=this.x] - The y coordinate to emit the Particles from.
|
||||
*
|
||||
* @return {Phaser.GameObjects.Particles.Particle} The most recently emitted Particle.
|
||||
*
|
||||
|
@ -2055,7 +2055,7 @@ var ParticleEmitter = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {integer} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.
|
||||
* @param {float} delta - The delta time, in ms, elapsed since the last frame.
|
||||
* @param {number} delta - The delta time, in ms, elapsed since the last frame.
|
||||
*/
|
||||
preUpdate: function (time, delta)
|
||||
{
|
||||
|
|
|
@ -260,7 +260,7 @@ var Quad = new Class({
|
|||
* The top-left alpha value of this Quad.
|
||||
*
|
||||
* @name Phaser.GameObjects.Quad#topLeftAlpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
topLeftAlpha: {
|
||||
|
@ -282,7 +282,7 @@ var Quad = new Class({
|
|||
* The top-right alpha value of this Quad.
|
||||
*
|
||||
* @name Phaser.GameObjects.Quad#topRightAlpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
topRightAlpha: {
|
||||
|
@ -303,7 +303,7 @@ var Quad = new Class({
|
|||
* The bottom-left alpha value of this Quad.
|
||||
*
|
||||
* @name Phaser.GameObjects.Quad#bottomLeftAlpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
bottomLeftAlpha: {
|
||||
|
@ -324,7 +324,7 @@ var Quad = new Class({
|
|||
* The bottom-right alpha value of this Quad.
|
||||
*
|
||||
* @name Phaser.GameObjects.Quad#bottomRightAlpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
bottomRightAlpha: {
|
||||
|
|
|
@ -104,7 +104,7 @@ var Circle = new Class({
|
|||
*
|
||||
* @generic {Phaser.Geom.Point} O - [out,$return]
|
||||
*
|
||||
* @param {float} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the circle.
|
||||
* @param {number} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the circle.
|
||||
* @param {(Phaser.Geom.Point|object)} [out] - An object to store the return values in. If not given a Point object will be created.
|
||||
*
|
||||
* @return {(Phaser.Geom.Point|object)} A Point, or point-like object, containing the coordinates of the point around the circle.
|
||||
|
|
|
@ -20,7 +20,7 @@ var Point = require('../point/Point');
|
|||
* @generic {Phaser.Geom.Point} O - [out,$return]
|
||||
*
|
||||
* @param {Phaser.Geom.Circle} circle - The Circle to get the circumference point on.
|
||||
* @param {float} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the circle.
|
||||
* @param {number} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the circle.
|
||||
* @param {(Phaser.Geom.Point|object)} [out] - An object to store the return values in. If not given a Point object will be created.
|
||||
*
|
||||
* @return {(Phaser.Geom.Point|object)} A Point, or point-like object, containing the coordinates of the point around the circle.
|
||||
|
|
|
@ -106,7 +106,7 @@ var Ellipse = new Class({
|
|||
*
|
||||
* @generic {Phaser.Geom.Point} O - [out,$return]
|
||||
*
|
||||
* @param {float} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the ellipse.
|
||||
* @param {number} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the ellipse.
|
||||
* @param {(Phaser.Geom.Point|object)} [out] - An object to store the return values in. If not given a Point object will be created.
|
||||
*
|
||||
* @return {(Phaser.Geom.Point|object)} A Point, or point-like object, containing the coordinates of the point around the ellipse.
|
||||
|
|
|
@ -20,7 +20,7 @@ var Point = require('../point/Point');
|
|||
* @generic {Phaser.Geom.Point} O - [out,$return]
|
||||
*
|
||||
* @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to get the circumference point on.
|
||||
* @param {float} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the ellipse.
|
||||
* @param {number} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the ellipse.
|
||||
* @param {(Phaser.Geom.Point|object)} [out] - An object to store the return values in. If not given a Point object will be created.
|
||||
*
|
||||
* @return {(Phaser.Geom.Point|object)} A Point, or point-like object, containing the coordinates of the point around the ellipse.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* @param {number} right - [description]
|
||||
* @param {number} top - [description]
|
||||
* @param {number} bottom - [description]
|
||||
* @param {float} [tolerance=0] - [description]
|
||||
* @param {number} [tolerance=0] - [description]
|
||||
*
|
||||
* @return {boolean} [description]
|
||||
*/
|
||||
|
|
|
@ -16,7 +16,7 @@ var Point = require('./Point');
|
|||
*
|
||||
* @param {Phaser.Geom.Point} pointA - [description]
|
||||
* @param {Phaser.Geom.Point} pointB - [description]
|
||||
* @param {float} [t=0] - [description]
|
||||
* @param {number} [t=0] - [description]
|
||||
* @param {(Phaser.Geom.Point|object)} [out] - [description]
|
||||
*
|
||||
* @return {(Phaser.Geom.Point|object)} [description]
|
||||
|
|
|
@ -16,7 +16,7 @@ var Point = require('../point/Point');
|
|||
* @generic {Phaser.Geom.Point} O - [out,$return]
|
||||
*
|
||||
* @param {Phaser.Geom.Rectangle} rectangle - [description]
|
||||
* @param {float} position - [description]
|
||||
* @param {number} position - [description]
|
||||
* @param {(Phaser.Geom.Point|object)} [out] - [description]
|
||||
*
|
||||
* @return {Phaser.Geom.Point} [description]
|
||||
|
|
|
@ -101,7 +101,7 @@ var Rectangle = new Class({
|
|||
*
|
||||
* @generic {Phaser.Geom.Point} O - [output,$return]
|
||||
*
|
||||
* @param {float} position - [description]
|
||||
* @param {number} position - [description]
|
||||
* @param {(Phaser.Geom.Point|object)} [output] - [description]
|
||||
*
|
||||
* @return {(Phaser.Geom.Point|object)} [description]
|
||||
|
|
|
@ -17,8 +17,8 @@ var Triangle = require('./Triangle');
|
|||
*
|
||||
* @param {array} data - A flat array of vertice coordinates like [x0,y0, x1,y1, x2,y2, ...]
|
||||
* @param {array} [holes=null] - An array of hole indices if any (e.g. [5, 8] for a 12-vertice input would mean one hole with vertices 5–7 and another with 8–11).
|
||||
* @param {float} [scaleX=1] - [description]
|
||||
* @param {float} [scaleY=1] - [description]
|
||||
* @param {number} [scaleX=1] - [description]
|
||||
* @param {number} [scaleY=1] - [description]
|
||||
* @param {(array|Phaser.Geom.Triangle[])} [out] - [description]
|
||||
*
|
||||
* @return {(array|Phaser.Geom.Triangle[])} [description]
|
||||
|
|
|
@ -17,7 +17,7 @@ var Length = require('../line/Length');
|
|||
* @generic {Phaser.Geom.Point} O - [out,$return]
|
||||
*
|
||||
* @param {Phaser.Geom.Triangle} triangle - [description]
|
||||
* @param {float} position - [description]
|
||||
* @param {number} position - [description]
|
||||
* @param {(Phaser.Geom.Point|object)} [out] - [description]
|
||||
*
|
||||
* @return {(Phaser.Geom.Point|object)} [description]
|
||||
|
|
|
@ -127,7 +127,7 @@ var Triangle = new Class({
|
|||
*
|
||||
* @generic {Phaser.Geom.Point} O - [output,$return]
|
||||
*
|
||||
* @param {float} position - [description]
|
||||
* @param {number} position - [description]
|
||||
* @param {(Phaser.Geom.Point|object)} [output] - [description]
|
||||
*
|
||||
* @return {(Phaser.Geom.Point|object)} [description]
|
||||
|
|
|
@ -57,7 +57,7 @@ var Axis = new Class({
|
|||
* Use the method `getValue` to get a normalized value with the threshold applied.
|
||||
*
|
||||
* @name Phaser.Input.Gamepad.Axis#value
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -67,7 +67,7 @@ var Axis = new Class({
|
|||
* Movement tolerance threshold below which axis values are ignored in `getValue`.
|
||||
*
|
||||
* @name Phaser.Input.Gamepad.Axis#threshold
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0.1
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -82,7 +82,7 @@ var Axis = new Class({
|
|||
* @private
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} value - The value of the axis movement.
|
||||
* @param {number} value - The value of the axis movement.
|
||||
*/
|
||||
update: function (value)
|
||||
{
|
||||
|
@ -95,7 +95,7 @@ var Axis = new Class({
|
|||
* @method Phaser.Input.Gamepad.Axis#getValue
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @return {float} The axis value, adjusted for the movement threshold.
|
||||
* @return {number} The axis value, adjusted for the movement threshold.
|
||||
*/
|
||||
getValue: function ()
|
||||
{
|
||||
|
|
|
@ -56,7 +56,7 @@ var Button = new Class({
|
|||
* Between 0 and 1.
|
||||
*
|
||||
* @name Phaser.Input.Gamepad.Button#value
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -67,7 +67,7 @@ var Button = new Class({
|
|||
* before a button is considered as being 'pressed'.
|
||||
*
|
||||
* @name Phaser.Input.Gamepad.Button#threshold
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
|
|
@ -180,7 +180,7 @@ var File = new Class({
|
|||
* Only set if loading via XHR.
|
||||
*
|
||||
* @name Phaser.Loader.File#percentComplete
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default -1
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
|
|
@ -215,7 +215,7 @@ var LoaderPlugin = new Class({
|
|||
* Note that it is possible for this value to go down again if you add content to the current load queue during a load.
|
||||
*
|
||||
* @name Phaser.Loader.LoaderPlugin#progress
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -724,7 +724,7 @@ var LoaderPlugin = new Class({
|
|||
* a file having completed loading.
|
||||
*
|
||||
* @event Phaser.Loader.LoaderPlugin#progressEvent
|
||||
* @param {float} progress - The current progress of the load. A value between 0 and 1.
|
||||
* @param {number} progress - The current progress of the load. A value between 0 and 1.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,7 +14,7 @@ var CONST = require('./const');
|
|||
*
|
||||
* @param {integer} degrees - The angle (in degrees) to convert to radians.
|
||||
*
|
||||
* @return {float} The given angle converted to radians.
|
||||
* @return {number} The given angle converted to radians.
|
||||
*/
|
||||
var DegToRad = function (degrees)
|
||||
{
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
* @function Phaser.Math.FloatBetween
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} min - The lower bound for the float, inclusive.
|
||||
* @param {float} max - The upper bound for the float exclusive.
|
||||
* @param {number} min - The lower bound for the float, inclusive.
|
||||
* @param {number} max - The upper bound for the float exclusive.
|
||||
*
|
||||
* @return {float} A random float within the given range.
|
||||
* @return {number} A random float within the given range.
|
||||
*/
|
||||
var FloatBetween = function (min, max)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ var Clamp = require('./Clamp');
|
|||
* @function Phaser.Math.FromPercent
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} percent - A value between 0 and 1 representing the percentage.
|
||||
* @param {number} percent - A value between 0 and 1 representing the percentage.
|
||||
* @param {number} min - The minimum value.
|
||||
* @param {number} [max] - The maximum value.
|
||||
*
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
* @param {number} p0 - The first point.
|
||||
* @param {number} p1 - The second point.
|
||||
* @param {float} t - The percentage between p0 and p1 to return, represented as a number between 0 and 1.
|
||||
* @param {number} t - The percentage between p0 and p1 to return, represented as a number between 0 and 1.
|
||||
*
|
||||
* @return {number} The step t% of the way between p0 and p1.
|
||||
*/
|
||||
|
|
|
@ -666,7 +666,7 @@ var Matrix4 = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {(Phaser.Math.Vector3|Phaser.Math.Vector4)} axis - The rotation axis.
|
||||
* @param {float} angle - The rotation angle in radians.
|
||||
* @param {number} angle - The rotation angle in radians.
|
||||
*
|
||||
* @return {Phaser.Math.Matrix4} This Matrix4.
|
||||
*/
|
||||
|
@ -699,7 +699,7 @@ var Matrix4 = new Class({
|
|||
* @method Phaser.Math.Matrix4#rotate
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} rad - The angle in radians to rotate by.
|
||||
* @param {number} rad - The angle in radians to rotate by.
|
||||
* @param {Phaser.Math.Vector3} axis - The axis to rotate upon.
|
||||
*
|
||||
* @return {Phaser.Math.Matrix4} This Matrix4.
|
||||
|
@ -777,7 +777,7 @@ var Matrix4 = new Class({
|
|||
* @method Phaser.Math.Matrix4#rotateX
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} rad - The angle in radians to rotate by.
|
||||
* @param {number} rad - The angle in radians to rotate by.
|
||||
*
|
||||
* @return {Phaser.Math.Matrix4} This Matrix4.
|
||||
*/
|
||||
|
@ -816,7 +816,7 @@ var Matrix4 = new Class({
|
|||
* @method Phaser.Math.Matrix4#rotateY
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} rad - The angle to rotate by, in radians.
|
||||
* @param {number} rad - The angle to rotate by, in radians.
|
||||
*
|
||||
* @return {Phaser.Math.Matrix4} This Matrix4.
|
||||
*/
|
||||
|
@ -855,7 +855,7 @@ var Matrix4 = new Class({
|
|||
* @method Phaser.Math.Matrix4#rotateZ
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} rad - The angle to rotate by, in radians.
|
||||
* @param {number} rad - The angle to rotate by, in radians.
|
||||
*
|
||||
* @return {Phaser.Math.Matrix4} This Matrix4.
|
||||
*/
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* @param {number} [max] - The maximum value.
|
||||
* @param {number} [upperMax] - The mid-way point in the range that represents 100%.
|
||||
*
|
||||
* @return {float} A value between 0 and 1 representing the percentage.
|
||||
* @return {number} A value between 0 and 1 representing the percentage.
|
||||
*/
|
||||
var Percent = function (value, min, max, upperMax)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ var CONST = require('./const');
|
|||
* @function Phaser.Math.RadToDeg
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} radians - The angle in radians to convert ot degrees.
|
||||
* @param {number} radians - The angle in radians to convert ot degrees.
|
||||
*
|
||||
* @return {integer} The given angle converted to degrees.
|
||||
*/
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Math.Vector2} vector - The Vector to compute random values for.
|
||||
* @param {float} [scale=1] - The scale of the random values.
|
||||
* @param {number} [scale=1] - The scale of the random values.
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} The given Vector.
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Math.Vector4} vec4 - The Vector to compute random values for.
|
||||
* @param {float} [scale=1] - The scale of the random values.
|
||||
* @param {number} [scale=1] - The scale of the random values.
|
||||
*
|
||||
* @return {Phaser.Math.Vector4} The given Vector.
|
||||
*/
|
||||
|
|
|
@ -162,8 +162,8 @@ var Vector2 = new Class({
|
|||
* @method Phaser.Math.Vector2#setToPolar
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} azimuth - The angular coordinate, in radians.
|
||||
* @param {float} [radius=1] - The radial coordinate (length).
|
||||
* @param {number} azimuth - The angular coordinate, in radians.
|
||||
* @param {number} [radius=1] - The radial coordinate (length).
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} This Vector2.
|
||||
*/
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} v - The value to be tweened.
|
||||
* @param {float} [amplitude=0.1] - The amplitude of the elastic ease.
|
||||
* @param {float} [period=0.1] - [description]
|
||||
* @param {number} [amplitude=0.1] - The amplitude of the elastic ease.
|
||||
* @param {number} [period=0.1] - [description]
|
||||
*
|
||||
* @return {number} The tweened value.
|
||||
*/
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} v - The value to be tweened.
|
||||
* @param {float} [amplitude=0.1] - The amplitude of the elastic ease.
|
||||
* @param {float} [period=0.1] - [description]
|
||||
* @param {number} [amplitude=0.1] - The amplitude of the elastic ease.
|
||||
* @param {number} [period=0.1] - [description]
|
||||
*
|
||||
* @return {number} The tweened value.
|
||||
*/
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} v - The value to be tweened.
|
||||
* @param {float} [amplitude=0.1] - The amplitude of the elastic ease.
|
||||
* @param {float} [period=0.1] - [description]
|
||||
* @param {number} [amplitude=0.1] - The amplitude of the elastic ease.
|
||||
* @param {number} [period=0.1] - [description]
|
||||
*
|
||||
* @return {number} The tweened value.
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} value - The value.
|
||||
* @param {float} [epsilon=0.0001] - The epsilon.
|
||||
* @param {number} [epsilon=0.0001] - The epsilon.
|
||||
*
|
||||
* @return {number} The fuzzy ceiling of the value.
|
||||
*/
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*
|
||||
* @param {number} a - The first value.
|
||||
* @param {number} b - The second value.
|
||||
* @param {float} [epsilon=0.0001] - The epsilon.
|
||||
* @param {number} [epsilon=0.0001] - The epsilon.
|
||||
*
|
||||
* @return {boolean} `true` if the values are fuzzily equal, otherwise `false`.
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} value - The value.
|
||||
* @param {float} [epsilon=0.0001] - The epsilon.
|
||||
* @param {number} [epsilon=0.0001] - The epsilon.
|
||||
*
|
||||
* @return {number} The floor of the value.
|
||||
*/
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*
|
||||
* @param {number} a - The first value.
|
||||
* @param {number} b - The second value.
|
||||
* @param {float} [epsilon=0.0001] - The epsilon.
|
||||
* @param {number} [epsilon=0.0001] - The epsilon.
|
||||
*
|
||||
* @return {boolean} `true` if `a` is fuzzily greater than than `b`, otherwise `false`.
|
||||
*/
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*
|
||||
* @param {number} a - The first value.
|
||||
* @param {number} b - The second value.
|
||||
* @param {float} [epsilon=0.0001] - The epsilon.
|
||||
* @param {number} [epsilon=0.0001] - The epsilon.
|
||||
*
|
||||
* @return {boolean} `true` if `a` is fuzzily less than `b`, otherwise `false`.
|
||||
*/
|
||||
|
|
|
@ -41,7 +41,7 @@ function P3 (t, p)
|
|||
* @function Phaser.Math.Interpolation.CubicBezier
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} t - The percentage of interpolation, between 0 and 1.
|
||||
* @param {number} t - The percentage of interpolation, between 0 and 1.
|
||||
* @param {number} p0 - The start point.
|
||||
* @param {number} p1 - The first control point.
|
||||
* @param {number} p2 - The second control point.
|
||||
|
|
|
@ -33,7 +33,7 @@ function P2 (t, p)
|
|||
* @function Phaser.Math.Interpolation.QuadraticBezier
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @param {float} t - The percentage of interpolation, between 0 and 1.
|
||||
* @param {number} t - The percentage of interpolation, between 0 and 1.
|
||||
* @param {number} p0 - The start point.
|
||||
* @param {number} p1 - The control point.
|
||||
* @param {number} p2 - The end point.
|
||||
|
|
|
@ -22,7 +22,7 @@ var TYPE = require('./TYPE');
|
|||
* @property {number} [gravity=0] - [description]
|
||||
* @property {number} [cellSize=64] - [description]
|
||||
* @property {number} [timeScale=1] - [description]
|
||||
* @property {float} [maxStep=0.05] - [description]
|
||||
* @property {number} [maxStep=0.05] - [description]
|
||||
* @property {boolean} [debug=false] - [description]
|
||||
* @property {number} [maxVelocity=100] - [description]
|
||||
* @property {boolean} [debugShowBody=true] - [description]
|
||||
|
@ -145,7 +145,7 @@ var World = new Class({
|
|||
* [description]
|
||||
*
|
||||
* @name Phaser.Physics.Impact.World#timeScale
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
|
|
@ -18,7 +18,7 @@ var Bounce = {
|
|||
* @method Phaser.Physics.Matter.Components.Bounce#setBounce
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} value - [description]
|
||||
* @param {number} value - [description]
|
||||
*
|
||||
* @return {Phaser.GameObjects.GameObject} This Game Object.
|
||||
*/
|
||||
|
|
|
@ -324,9 +324,9 @@ var CanvasRenderer = new Class({
|
|||
* @method Phaser.Renderer.Canvas.CanvasRenderer#setAlpha
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} alpha - [description]
|
||||
* @param {number} alpha - [description]
|
||||
*
|
||||
* @return {float} [description]
|
||||
* @return {number} [description]
|
||||
*/
|
||||
setAlpha: function (alpha)
|
||||
{
|
||||
|
@ -375,7 +375,7 @@ var CanvasRenderer = new Class({
|
|||
*
|
||||
* @param {Phaser.Scene} scene - [description]
|
||||
* @param {Phaser.GameObjects.DisplayList} children - [description]
|
||||
* @param {float} interpolationPercentage - [description]
|
||||
* @param {number} interpolationPercentage - [description]
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - [description]
|
||||
*/
|
||||
render: function (scene, children, interpolationPercentage, camera)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
* @param {HTMLCanvasElement} canvas - [description]
|
||||
* @param {string} [type='image/png'] - [description]
|
||||
* @param {float} [encoderOptions=0.92] - [description]
|
||||
* @param {number} [encoderOptions=0.92] - [description]
|
||||
*
|
||||
* @return {HTMLImageElement} [description]
|
||||
*/
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
* @param {HTMLCanvasElement} sourceCanvas - [description]
|
||||
* @param {string} [type='image/png'] - [description]
|
||||
* @param {float} [encoderOptions=0.92] - [description]
|
||||
* @param {number} [encoderOptions=0.92] - [description]
|
||||
*
|
||||
* @return {HTMLImageElement} [description]
|
||||
*/
|
||||
|
|
|
@ -459,7 +459,7 @@ var WebGLPipeline = new Class({
|
|||
* @since 3.2.0
|
||||
*
|
||||
* @param {string} name - [description]
|
||||
* @param {float} x - [description]
|
||||
* @param {number} x - [description]
|
||||
*
|
||||
* @return {Phaser.Renderer.WebGL.WebGLPipeline} [description]
|
||||
*/
|
||||
|
@ -476,8 +476,8 @@ var WebGLPipeline = new Class({
|
|||
* @since 3.2.0
|
||||
*
|
||||
* @param {string} name - [description]
|
||||
* @param {float} x - [description]
|
||||
* @param {float} y - [description]
|
||||
* @param {number} x - [description]
|
||||
* @param {number} y - [description]
|
||||
*
|
||||
* @return {Phaser.Renderer.WebGL.WebGLPipeline} [description]
|
||||
*/
|
||||
|
@ -495,9 +495,9 @@ var WebGLPipeline = new Class({
|
|||
* @since 3.2.0
|
||||
*
|
||||
* @param {string} name - [description]
|
||||
* @param {float} x - [description]
|
||||
* @param {float} y - [description]
|
||||
* @param {float} z - [description]
|
||||
* @param {number} x - [description]
|
||||
* @param {number} y - [description]
|
||||
* @param {number} z - [description]
|
||||
*
|
||||
* @return {Phaser.Renderer.WebGL.WebGLPipeline} [description]
|
||||
*/
|
||||
|
@ -515,10 +515,10 @@ var WebGLPipeline = new Class({
|
|||
* @since 3.2.0
|
||||
*
|
||||
* @param {string} name - Name of the uniform
|
||||
* @param {float} x - X component of the uniform
|
||||
* @param {float} y - Y component of the uniform
|
||||
* @param {float} z - Z component of the uniform
|
||||
* @param {float} w - W component of the uniform
|
||||
* @param {number} x - X component of the uniform
|
||||
* @param {number} y - Y component of the uniform
|
||||
* @param {number} z - Z component of the uniform
|
||||
* @param {number} w - W component of the uniform
|
||||
*
|
||||
* @return {Phaser.Renderer.WebGL.WebGLPipeline} [description]
|
||||
*/
|
||||
|
|
|
@ -29,7 +29,7 @@ var TextureTintPipeline = require('./pipelines/TextureTintPipeline');
|
|||
*
|
||||
* @property {SnapshotCallback} callback - [description]
|
||||
* @property {string} type - [description]
|
||||
* @property {float} encoder - [description]
|
||||
* @property {number} encoder - [description]
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1607,7 +1607,7 @@ var WebGLRenderer = new Class({
|
|||
*
|
||||
* @param {SnapshotCallback} callback - [description]
|
||||
* @param {string} type - [description]
|
||||
* @param {float} encoderOptions - [description]
|
||||
* @param {number} encoderOptions - [description]
|
||||
*
|
||||
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
|
||||
*/
|
||||
|
@ -1695,7 +1695,7 @@ var WebGLRenderer = new Class({
|
|||
*
|
||||
* @param {WebGLProgram} program - [description]
|
||||
* @param {string} name - [description]
|
||||
* @param {float} x - [description]
|
||||
* @param {number} x - [description]
|
||||
*
|
||||
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
|
||||
*/
|
||||
|
@ -1716,8 +1716,8 @@ var WebGLRenderer = new Class({
|
|||
*
|
||||
* @param {WebGLProgram} program - [description]
|
||||
* @param {string} name - [description]
|
||||
* @param {float} x - [description]
|
||||
* @param {float} y - [description]
|
||||
* @param {number} x - [description]
|
||||
* @param {number} y - [description]
|
||||
*
|
||||
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
|
||||
*/
|
||||
|
@ -1738,9 +1738,9 @@ var WebGLRenderer = new Class({
|
|||
*
|
||||
* @param {WebGLProgram} program - [description]
|
||||
* @param {string} name - [description]
|
||||
* @param {float} x - [description]
|
||||
* @param {float} y - [description]
|
||||
* @param {float} z - [description]
|
||||
* @param {number} x - [description]
|
||||
* @param {number} y - [description]
|
||||
* @param {number} z - [description]
|
||||
*
|
||||
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
|
||||
*/
|
||||
|
@ -1761,10 +1761,10 @@ var WebGLRenderer = new Class({
|
|||
*
|
||||
* @param {WebGLProgram} program - Target program
|
||||
* @param {string} name - Name of the uniform
|
||||
* @param {float} x - X component
|
||||
* @param {float} y - Y component
|
||||
* @param {float} z - Z component
|
||||
* @param {float} w - W component
|
||||
* @param {number} x - X component
|
||||
* @param {number} y - Y component
|
||||
* @param {number} z - Z component
|
||||
* @param {number} w - W component
|
||||
*
|
||||
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
|
||||
*/
|
||||
|
|
|
@ -187,23 +187,23 @@ var FlatTintPipeline = new Class({
|
|||
* @method Phaser.Renderer.WebGL.Pipelines.FlatTintPipeline#batchFillRect
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} srcX - Graphics horizontal component for translation
|
||||
* @param {float} srcY - Graphics vertical component for translation
|
||||
* @param {float} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {float} srcScaleY - Graphics vertical component for scale
|
||||
* @param {float} srcRotation - Graphics rotation
|
||||
* @param {float} x - Horiztonal top left coordinate of the rectangle
|
||||
* @param {float} y - Vertical top left coordinate of the rectangle
|
||||
* @param {float} width - Width of the rectangle
|
||||
* @param {float} height - Height of the rectangle
|
||||
* @param {number} srcX - Graphics horizontal component for translation
|
||||
* @param {number} srcY - Graphics vertical component for translation
|
||||
* @param {number} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {number} srcScaleY - Graphics vertical component for scale
|
||||
* @param {number} srcRotation - Graphics rotation
|
||||
* @param {number} x - Horiztonal top left coordinate of the rectangle
|
||||
* @param {number} y - Vertical top left coordinate of the rectangle
|
||||
* @param {number} width - Width of the rectangle
|
||||
* @param {number} height - Height of the rectangle
|
||||
* @param {integer} fillColor - RGB color packed as a uint
|
||||
* @param {float} fillAlpha - Alpha represented as float
|
||||
* @param {float} a1 - Matrix stack top a component
|
||||
* @param {float} b1 - Matrix stack top b component
|
||||
* @param {float} c1 - Matrix stack top c component
|
||||
* @param {float} d1 - Matrix stack top d component
|
||||
* @param {float} e1 - Matrix stack top e component
|
||||
* @param {float} f1 - Matrix stack top f component
|
||||
* @param {number} fillAlpha - Alpha represented as float
|
||||
* @param {number} a1 - Matrix stack top a component
|
||||
* @param {number} b1 - Matrix stack top b component
|
||||
* @param {number} c1 - Matrix stack top c component
|
||||
* @param {number} d1 - Matrix stack top d component
|
||||
* @param {number} e1 - Matrix stack top e component
|
||||
* @param {number} f1 - Matrix stack top f component
|
||||
* @param {Float32Array} currentMatrix - Parent matrix, generally used by containers
|
||||
*/
|
||||
batchFillRect: function (srcX, srcY, srcScaleX, srcScaleY, srcRotation, x, y, width, height, fillColor, fillAlpha, a1, b1, c1, d1, e1, f1, currentMatrix)
|
||||
|
@ -270,25 +270,25 @@ var FlatTintPipeline = new Class({
|
|||
* @method Phaser.Renderer.WebGL.Pipelines.FlatTintPipeline#batchFillTriangle
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} srcX - Graphics horizontal component for translation
|
||||
* @param {float} srcY - Graphics vertical component for translation
|
||||
* @param {float} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {float} srcScaleY - Graphics vertical component for scale
|
||||
* @param {float} srcRotation - Graphics rotation
|
||||
* @param {float} x0 - Point 0 x coordinate
|
||||
* @param {float} y0 - Point 0 y coordinate
|
||||
* @param {float} x1 - Point 1 x coordinate
|
||||
* @param {float} y1 - Point 1 y coordinate
|
||||
* @param {float} x2 - Point 2 x coordinate
|
||||
* @param {float} y2 - Point 2 y coordinate
|
||||
* @param {number} srcX - Graphics horizontal component for translation
|
||||
* @param {number} srcY - Graphics vertical component for translation
|
||||
* @param {number} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {number} srcScaleY - Graphics vertical component for scale
|
||||
* @param {number} srcRotation - Graphics rotation
|
||||
* @param {number} x0 - Point 0 x coordinate
|
||||
* @param {number} y0 - Point 0 y coordinate
|
||||
* @param {number} x1 - Point 1 x coordinate
|
||||
* @param {number} y1 - Point 1 y coordinate
|
||||
* @param {number} x2 - Point 2 x coordinate
|
||||
* @param {number} y2 - Point 2 y coordinate
|
||||
* @param {integer} fillColor - RGB color packed as a uint
|
||||
* @param {float} fillAlpha - Alpha represented as float
|
||||
* @param {float} a1 - Matrix stack top a component
|
||||
* @param {float} b1 - Matrix stack top b component
|
||||
* @param {float} c1 - Matrix stack top c component
|
||||
* @param {float} d1 - Matrix stack top d component
|
||||
* @param {float} e1 - Matrix stack top e component
|
||||
* @param {float} f1 - Matrix stack top f component
|
||||
* @param {number} fillAlpha - Alpha represented as float
|
||||
* @param {number} a1 - Matrix stack top a component
|
||||
* @param {number} b1 - Matrix stack top b component
|
||||
* @param {number} c1 - Matrix stack top c component
|
||||
* @param {number} d1 - Matrix stack top d component
|
||||
* @param {number} e1 - Matrix stack top e component
|
||||
* @param {number} f1 - Matrix stack top f component
|
||||
* @param {Float32Array} currentMatrix - Parent matrix, generally used by containers
|
||||
*/
|
||||
batchFillTriangle: function (srcX, srcY, srcScaleX, srcScaleY, srcRotation, x0, y0, x1, y1, x2, y2, fillColor, fillAlpha, a1, b1, c1, d1, e1, f1, currentMatrix)
|
||||
|
@ -342,26 +342,26 @@ var FlatTintPipeline = new Class({
|
|||
* @method Phaser.Renderer.WebGL.Pipelines.FlatTintPipeline#batchStrokeTriangle
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} srcX - Graphics horizontal component for translation
|
||||
* @param {float} srcY - Graphics vertical component for translation
|
||||
* @param {float} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {float} srcScaleY - Graphics vertical component for scale
|
||||
* @param {float} srcRotation - Graphics rotation
|
||||
* @param {float} x0 - [description]
|
||||
* @param {float} y0 - [description]
|
||||
* @param {float} x1 - [description]
|
||||
* @param {float} y1 - [description]
|
||||
* @param {float} x2 - [description]
|
||||
* @param {float} y2 - [description]
|
||||
* @param {float} lineWidth - Size of the line as a float value
|
||||
* @param {number} srcX - Graphics horizontal component for translation
|
||||
* @param {number} srcY - Graphics vertical component for translation
|
||||
* @param {number} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {number} srcScaleY - Graphics vertical component for scale
|
||||
* @param {number} srcRotation - Graphics rotation
|
||||
* @param {number} x0 - [description]
|
||||
* @param {number} y0 - [description]
|
||||
* @param {number} x1 - [description]
|
||||
* @param {number} y1 - [description]
|
||||
* @param {number} x2 - [description]
|
||||
* @param {number} y2 - [description]
|
||||
* @param {number} lineWidth - Size of the line as a float value
|
||||
* @param {integer} lineColor - RGB color packed as a uint
|
||||
* @param {float} lineAlpha - Alpha represented as float
|
||||
* @param {float} a - Matrix stack top a component
|
||||
* @param {float} b - Matrix stack top b component
|
||||
* @param {float} c - Matrix stack top c component
|
||||
* @param {float} d - Matrix stack top d component
|
||||
* @param {float} e - Matrix stack top e component
|
||||
* @param {float} f - Matrix stack top f component
|
||||
* @param {number} lineAlpha - Alpha represented as float
|
||||
* @param {number} a - Matrix stack top a component
|
||||
* @param {number} b - Matrix stack top b component
|
||||
* @param {number} c - Matrix stack top c component
|
||||
* @param {number} d - Matrix stack top d component
|
||||
* @param {number} e - Matrix stack top e component
|
||||
* @param {number} f - Matrix stack top f component
|
||||
* @param {Float32Array} currentMatrix - Parent matrix, generally used by containers
|
||||
*/
|
||||
batchStrokeTriangle: function (srcX, srcY, srcScaleX, srcScaleY, srcRotation, x0, y0, x1, y1, x2, y2, lineWidth, lineColor, lineAlpha, a, b, c, d, e, f, currentMatrix)
|
||||
|
@ -404,20 +404,20 @@ var FlatTintPipeline = new Class({
|
|||
* @method Phaser.Renderer.WebGL.Pipelines.FlatTintPipeline#batchFillPath
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} srcX - Graphics horizontal component for translation
|
||||
* @param {float} srcY - Graphics vertical component for translation
|
||||
* @param {float} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {float} srcScaleY - Graphics vertical component for scale
|
||||
* @param {float} srcRotation - Graphics rotation
|
||||
* @param {float} path - Collection of points that represent the path
|
||||
* @param {number} srcX - Graphics horizontal component for translation
|
||||
* @param {number} srcY - Graphics vertical component for translation
|
||||
* @param {number} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {number} srcScaleY - Graphics vertical component for scale
|
||||
* @param {number} srcRotation - Graphics rotation
|
||||
* @param {number} path - Collection of points that represent the path
|
||||
* @param {integer} fillColor - RGB color packed as a uint
|
||||
* @param {float} fillAlpha - Alpha represented as float
|
||||
* @param {float} a1 - Matrix stack top a component
|
||||
* @param {float} b1 - Matrix stack top b component
|
||||
* @param {float} c1 - Matrix stack top c component
|
||||
* @param {float} d1 - Matrix stack top d component
|
||||
* @param {float} e1 - Matrix stack top e component
|
||||
* @param {float} f1 - Matrix stack top f component
|
||||
* @param {number} fillAlpha - Alpha represented as float
|
||||
* @param {number} a1 - Matrix stack top a component
|
||||
* @param {number} b1 - Matrix stack top b component
|
||||
* @param {number} c1 - Matrix stack top c component
|
||||
* @param {number} d1 - Matrix stack top d component
|
||||
* @param {number} e1 - Matrix stack top e component
|
||||
* @param {number} f1 - Matrix stack top f component
|
||||
* @param {Float32Array} currentMatrix - Parent matrix, generally used by containers
|
||||
*/
|
||||
batchFillPath: function (srcX, srcY, srcScaleX, srcScaleY, srcRotation, path, fillColor, fillAlpha, a1, b1, c1, d1, e1, f1, currentMatrix)
|
||||
|
@ -506,21 +506,21 @@ var FlatTintPipeline = new Class({
|
|||
* @method Phaser.Renderer.WebGL.Pipelines.FlatTintPipeline#batchStrokePath
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} srcX - Graphics horizontal component for translation
|
||||
* @param {float} srcY - Graphics vertical component for translation
|
||||
* @param {float} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {float} srcScaleY - Graphics vertical component for scale
|
||||
* @param {float} srcRotation - Graphics rotation
|
||||
* @param {number} srcX - Graphics horizontal component for translation
|
||||
* @param {number} srcY - Graphics vertical component for translation
|
||||
* @param {number} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {number} srcScaleY - Graphics vertical component for scale
|
||||
* @param {number} srcRotation - Graphics rotation
|
||||
* @param {array} path - [description]
|
||||
* @param {float} lineWidth - [description]
|
||||
* @param {number} lineWidth - [description]
|
||||
* @param {integer} lineColor - RGB color packed as a uint
|
||||
* @param {float} lineAlpha - Alpha represented as float
|
||||
* @param {float} a - Matrix stack top a component
|
||||
* @param {float} b - Matrix stack top b component
|
||||
* @param {float} c - Matrix stack top c component
|
||||
* @param {float} d - Matrix stack top d component
|
||||
* @param {float} e - Matrix stack top e component
|
||||
* @param {float} f - Matrix stack top f component
|
||||
* @param {number} lineAlpha - Alpha represented as float
|
||||
* @param {number} a - Matrix stack top a component
|
||||
* @param {number} b - Matrix stack top b component
|
||||
* @param {number} c - Matrix stack top c component
|
||||
* @param {number} d - Matrix stack top d component
|
||||
* @param {number} e - Matrix stack top e component
|
||||
* @param {number} f - Matrix stack top f component
|
||||
* @param {boolean} isLastPath - Indicates if the path should be closed
|
||||
* @param {Float32Array} currentMatrix - Parent matrix, generally used by containers
|
||||
*/
|
||||
|
@ -599,26 +599,26 @@ var FlatTintPipeline = new Class({
|
|||
* @method Phaser.Renderer.WebGL.Pipelines.FlatTintPipeline#batchLine
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} srcX - Graphics horizontal component for translation
|
||||
* @param {float} srcY - Graphics vertical component for translation
|
||||
* @param {float} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {float} srcScaleY - Graphics vertical component for scale
|
||||
* @param {float} srcRotation - Graphics rotation
|
||||
* @param {float} ax - X coordinate to the start of the line
|
||||
* @param {float} ay - Y coordinate to the start of the line
|
||||
* @param {float} bx - X coordinate to the end of the line
|
||||
* @param {float} by - Y coordinate to the end of the line
|
||||
* @param {float} aLineWidth - Width of the start of the line
|
||||
* @param {float} bLineWidth - Width of the end of the line
|
||||
* @param {number} srcX - Graphics horizontal component for translation
|
||||
* @param {number} srcY - Graphics vertical component for translation
|
||||
* @param {number} srcScaleX - Graphics horizontal component for scale
|
||||
* @param {number} srcScaleY - Graphics vertical component for scale
|
||||
* @param {number} srcRotation - Graphics rotation
|
||||
* @param {number} ax - X coordinate to the start of the line
|
||||
* @param {number} ay - Y coordinate to the start of the line
|
||||
* @param {number} bx - X coordinate to the end of the line
|
||||
* @param {number} by - Y coordinate to the end of the line
|
||||
* @param {number} aLineWidth - Width of the start of the line
|
||||
* @param {number} bLineWidth - Width of the end of the line
|
||||
* @param {integer} aLineColor - RGB color packed as a uint
|
||||
* @param {integer} bLineColor - RGB color packed as a uint
|
||||
* @param {float} lineAlpha - Alpha represented as float
|
||||
* @param {float} a1 - Matrix stack top a component
|
||||
* @param {float} b1 - Matrix stack top b component
|
||||
* @param {float} c1 - Matrix stack top c component
|
||||
* @param {float} d1 - Matrix stack top d component
|
||||
* @param {float} e1 - Matrix stack top e component
|
||||
* @param {float} f1 - Matrix stack top f component
|
||||
* @param {number} lineAlpha - Alpha represented as float
|
||||
* @param {number} a1 - Matrix stack top a component
|
||||
* @param {number} b1 - Matrix stack top b component
|
||||
* @param {number} c1 - Matrix stack top c component
|
||||
* @param {number} d1 - Matrix stack top d component
|
||||
* @param {number} e1 - Matrix stack top e component
|
||||
* @param {number} f1 - Matrix stack top f component
|
||||
* @param {Float32Array} currentMatrix - Parent matrix, generally used by containers
|
||||
*/
|
||||
batchLine: function (srcX, srcY, srcScaleX, srcScaleY, srcRotation, ax, ay, bx, by, aLineWidth, bLineWidth, aLineColor, bLineColor, lineAlpha, a1, b1, c1, d1, e1, f1, currentMatrix)
|
||||
|
|
|
@ -1847,29 +1847,29 @@ var TextureTintPipeline = new Class({
|
|||
* @param {WebGLTexture} texture - Raw WebGLTexture associated with the quad
|
||||
* @param {integer} textureWidth - Real texture width
|
||||
* @param {integer} textureHeight - Real texture height
|
||||
* @param {float} srcX - X coordinate of the quad
|
||||
* @param {float} srcY - Y coordinate of the quad
|
||||
* @param {float} srcWidth - Width of the quad
|
||||
* @param {float} srcHeight - Height of the quad
|
||||
* @param {float} scaleX - X component of scale
|
||||
* @param {float} scaleY - Y component of scale
|
||||
* @param {float} rotation - Rotation of the quad
|
||||
* @param {number} srcX - X coordinate of the quad
|
||||
* @param {number} srcY - Y coordinate of the quad
|
||||
* @param {number} srcWidth - Width of the quad
|
||||
* @param {number} srcHeight - Height of the quad
|
||||
* @param {number} scaleX - X component of scale
|
||||
* @param {number} scaleY - Y component of scale
|
||||
* @param {number} rotation - Rotation of the quad
|
||||
* @param {boolean} flipX - Indicates if the quad is horizontally flipped
|
||||
* @param {boolean} flipY - Indicates if the quad is vertically flipped
|
||||
* @param {float} scrollFactorX - By which factor is the quad affected by the camera horizontal scroll
|
||||
* @param {float} scrollFactorY - By which factor is the quad effected by the camera vertical scroll
|
||||
* @param {float} displayOriginX - Horizontal origin in pixels
|
||||
* @param {float} displayOriginY - Vertical origin in pixels
|
||||
* @param {float} frameX - X coordinate of the texture frame
|
||||
* @param {float} frameY - Y coordinate of the texture frame
|
||||
* @param {float} frameWidth - Width of the texture frame
|
||||
* @param {float} frameHeight - Height of the texture frame
|
||||
* @param {number} scrollFactorX - By which factor is the quad affected by the camera horizontal scroll
|
||||
* @param {number} scrollFactorY - By which factor is the quad effected by the camera vertical scroll
|
||||
* @param {number} displayOriginX - Horizontal origin in pixels
|
||||
* @param {number} displayOriginY - Vertical origin in pixels
|
||||
* @param {number} frameX - X coordinate of the texture frame
|
||||
* @param {number} frameY - Y coordinate of the texture frame
|
||||
* @param {number} frameWidth - Width of the texture frame
|
||||
* @param {number} frameHeight - Height of the texture frame
|
||||
* @param {integer} tintTL - Tint for top left
|
||||
* @param {integer} tintTR - Tint for top right
|
||||
* @param {integer} tintBL - Tint for bottom left
|
||||
* @param {integer} tintBR - Tint for bottom right
|
||||
* @param {float} uOffset - Horizontal offset on texture coordinate
|
||||
* @param {float} vOffset - Vertical offset on texture coordinate
|
||||
* @param {number} uOffset - Horizontal offset on texture coordinate
|
||||
* @param {number} vOffset - Vertical offset on texture coordinate
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - Current used camera
|
||||
* @param {Phaser.GameObjects.Components.TransformMatrix} parentTransformMatrix - Parent container
|
||||
*/
|
||||
|
|
|
@ -77,7 +77,7 @@ var ScenePlugin = new Class({
|
|||
* the current percentage of the transition progress, between 0 and 1.
|
||||
*
|
||||
* @name Phaser.Scenes.ScenePlugin#transitionProgress
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.5.0
|
||||
*/
|
||||
this.transitionProgress = 0;
|
||||
|
|
|
@ -131,7 +131,7 @@ var LayerData = new Class({
|
|||
* [description]
|
||||
*
|
||||
* @name Phaser.Tilemaps.LayerData#alpha
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.alpha = GetFastValue(config, 'alpha', 1);
|
||||
|
|
|
@ -59,7 +59,7 @@ var Clock = new Class({
|
|||
* [description]
|
||||
*
|
||||
* @name Phaser.Time.Clock#timeScale
|
||||
* @type {float}
|
||||
* @type {number}
|
||||
* @default 1
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
|
|
@ -615,7 +615,7 @@ var TweenManager = new Class({
|
|||
* @method Phaser.Tweens.TweenManager#setGlobalTimeScale
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} value - [description]
|
||||
* @param {number} value - [description]
|
||||
*
|
||||
* @return {Phaser.Tweens.TweenManager} [description]
|
||||
*/
|
||||
|
|
|
@ -752,7 +752,7 @@ var Tween = new Class({
|
|||
* @method Phaser.Tweens.Tween#seek
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} toPosition - A value between 0 and 1.
|
||||
* @param {number} toPosition - A value between 0 and 1.
|
||||
*/
|
||||
seek: function (toPosition)
|
||||
{
|
||||
|
@ -885,7 +885,7 @@ var Tween = new Class({
|
|||
* @method Phaser.Tweens.Tween#stop
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {float} [resetTo] - A value between 0 and 1.
|
||||
* @param {number} [resetTo] - A value between 0 and 1.
|
||||
*/
|
||||
stop: function (resetTo)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue