mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Fix many multiple types
This commit is contained in:
parent
3cb00c85c9
commit
37b6fc5862
20 changed files with 84 additions and 84 deletions
|
@ -29,7 +29,7 @@ var GetValue = require('../utils/object/GetValue');
|
|||
* @typedef {object} AnimationFrameConfig
|
||||
*
|
||||
* @property {string} key - [description]
|
||||
* @property {string|number} frame - [description]
|
||||
* @property {(string|number)} frame - [description]
|
||||
* @property {float} [duration=0] - [description]
|
||||
* @property {boolean} [visible] - [description]
|
||||
* @property {function} [onUpdate] - [description]
|
||||
|
@ -350,7 +350,7 @@ var Animation = new Class({
|
|||
* @method Phaser.Animations.Animation#addFrame
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|AnimationFrameConfig[]} config - [description]
|
||||
* @param {(string|AnimationFrameConfig[])} config - [description]
|
||||
*
|
||||
* @return {Phaser.Animations.Animation} This Animation object.
|
||||
*/
|
||||
|
@ -368,7 +368,7 @@ var Animation = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {integer} index - [description]
|
||||
* @param {string|AnimationFrameConfig[]} config - [description]
|
||||
* @param {(string|AnimationFrameConfig[])} config - [description]
|
||||
*
|
||||
* @return {Phaser.Animations.Animation} This Animation object.
|
||||
*/
|
||||
|
@ -478,7 +478,7 @@ var Animation = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Textures.TextureManager} textureManager - [description]
|
||||
* @param {string|AnimationFrameConfig[]} frames - [description]
|
||||
* @param {(string|AnimationFrameConfig[])} frames - [description]
|
||||
* @param {string} [defaultTextureKey] - [description]
|
||||
*
|
||||
* @return {Phaser.Animations.AnimationFrame[]} [description]
|
||||
|
|
|
@ -10,7 +10,7 @@ var Class = require('../utils/Class');
|
|||
* @typedef {object} JSONAnimationFrame
|
||||
*
|
||||
* @property {string} key - The key of the Texture this AnimationFrame uses.
|
||||
* @property {string|integer} frame - The key of the Frame within the Texture that this AnimationFrame uses.
|
||||
* @property {(string|integer)} frame - The key of the Frame within the Texture that this AnimationFrame uses.
|
||||
* @property {number} duration - Additional time (in ms) that this frame should appear for during playback.
|
||||
*/
|
||||
|
||||
|
@ -30,7 +30,7 @@ var Class = require('../utils/Class');
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {string} textureKey - The key of the Texture this AnimationFrame uses.
|
||||
* @param {string|integer} textureFrame - The key of the Frame within the Texture that this AnimationFrame uses.
|
||||
* @param {(string|integer)} textureFrame - The key of the Frame within the Texture that this AnimationFrame uses.
|
||||
* @param {integer} index - The index of this AnimationFrame within the Animation sequence.
|
||||
* @param {Phaser.Textures.Frame} frame - A reference to the Texture Frame this AnimationFrame uses for rendering.
|
||||
*/
|
||||
|
@ -53,7 +53,7 @@ var AnimationFrame = new Class({
|
|||
* The key of the Frame within the Texture that this AnimationFrame uses.
|
||||
*
|
||||
* @name Phaser.Animations.AnimationFrame#textureFrame
|
||||
* @type {string|integer}
|
||||
* @type {(string|integer)}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.textureFrame = textureFrame;
|
||||
|
|
|
@ -186,7 +186,7 @@ var AnimationManager = new Class({
|
|||
* @method Phaser.Animations.AnimationManager#fromJSON
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|object} data - [description]
|
||||
* @param {(string|object)} data - [description]
|
||||
* @param {boolean} [clearCurrentAnimations=false] - [description]
|
||||
*
|
||||
* @return {Phaser.Animations.Animation[]} An array containing all of the Animation objects that were created as a result of this call.
|
||||
|
@ -394,7 +394,7 @@ var AnimationManager = new Class({
|
|||
*
|
||||
* @param {Phaser.GameObjects.GameObject} child - [description]
|
||||
* @param {string} key - [description]
|
||||
* @param {string|integer} [startFrame] - [description]
|
||||
* @param {(string|integer)} [startFrame] - [description]
|
||||
*
|
||||
* @return {Phaser.GameObjects.GameObject} [description]
|
||||
*/
|
||||
|
|
|
@ -41,7 +41,7 @@ var ValueToColor = require('../display/color/ValueToColor');
|
|||
* @property {string} [path] - [description]
|
||||
* @property {boolean} [enableParallel=true] - [description]
|
||||
* @property {integer} [maxParallelDownloads=4] - [description]
|
||||
* @property {string|undefined} [crossOrigin=undefined] - [description]
|
||||
* @property {(string|undefined)} [crossOrigin=undefined] - [description]
|
||||
* @property {string} [responseType] - [description]
|
||||
* @property {boolean} [async=true] - [description]
|
||||
* @property {string} [user] - [description]
|
||||
|
@ -52,8 +52,8 @@ var ValueToColor = require('../display/color/ValueToColor');
|
|||
/**
|
||||
* @typedef {object} GameConfig
|
||||
*
|
||||
* @property {integer|string} [width=1024] - [description]
|
||||
* @property {integer|string} [height=768] - [description]
|
||||
* @property {(integer|string)} [width=1024] - [description]
|
||||
* @property {(integer|string)} [height=768] - [description]
|
||||
* @property {number} [zoom=1] - [description]
|
||||
* @property {number} [resolution=1] - [description]
|
||||
* @property {number} [type=CONST.AUTO] - [description]
|
||||
|
@ -90,7 +90,7 @@ var ValueToColor = require('../display/color/ValueToColor');
|
|||
* @property {boolean} [preserveDrawingBuffer=false] - [description]
|
||||
* @property {boolean} [failIfMajorPerformanceCaveat=false] - [description]
|
||||
* @property {boolean} [powerPreference='default'] - "high-performance", "low-power" or "default"
|
||||
* @property {string|number} [backgroundColor=0x000000] - [description]
|
||||
* @property {(string|number)} [backgroundColor=0x000000] - [description]
|
||||
* @property {object} [?callbacks] - [description]
|
||||
* @property {BootCallback} [callbacks.preBoot=NOOP] - [description]
|
||||
* @property {BootCallback} [callbacks.postBoot=NOOP] - [description]
|
||||
|
|
|
@ -68,7 +68,7 @@ var Game = new Class({
|
|||
* A reference to either the Canvas or WebGL Renderer that this Game is using.
|
||||
*
|
||||
* @name Phaser.Game#renderer
|
||||
* @type {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer}
|
||||
* @type {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.renderer = null;
|
||||
|
@ -323,7 +323,7 @@ var Game = new Class({
|
|||
* the Scenes for rendering, but it won't have actually drawn anything yet.
|
||||
*
|
||||
* @event Phaser.Game#prerenderEvent
|
||||
* @param {Phaser.Renderer.CanvasRenderer|Phaser.Renderer.WebGLRenderer} renderer - A reference to the current renderer.
|
||||
* @param {(Phaser.Renderer.CanvasRenderer|Phaser.Renderer.WebGLRenderer)} renderer - A reference to the current renderer.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -333,7 +333,7 @@ var Game = new Class({
|
|||
* Every Scene will have rendered and drawn to the canvas.
|
||||
*
|
||||
* @event Phaser.Game#postrenderEvent
|
||||
* @param {Phaser.Renderer.CanvasRenderer|Phaser.Renderer.WebGLRenderer} renderer - A reference to the current renderer.
|
||||
* @param {(Phaser.Renderer.CanvasRenderer|Phaser.Renderer.WebGLRenderer)} renderer - A reference to the current renderer.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -874,7 +874,7 @@ var Camera = new Class({
|
|||
*
|
||||
* @param {number} x - [description]
|
||||
* @param {number} y - [description]
|
||||
* @param {object|Phaser.Math.Vector2} output - [description]
|
||||
* @param {(object|Phaser.Math.Vector2)} output - [description]
|
||||
*
|
||||
* @return {Phaser.Math.Vector2} [description]
|
||||
*/
|
||||
|
@ -935,7 +935,7 @@ var Camera = new Class({
|
|||
* @method Phaser.Cameras.Scene2D.Camera#ignore
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} gameObjectOrArray - [description]
|
||||
* @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjectOrArray - [description]
|
||||
*
|
||||
* @return {Phaser.Cameras.Scene2D.Camera} This Camera instance.
|
||||
*/
|
||||
|
@ -1068,7 +1068,7 @@ var Camera = new Class({
|
|||
* @method Phaser.Cameras.Scene2D.Camera#setBackgroundColor
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|number|InputColorObject} color - [description]
|
||||
* @param {(string|number|InputColorObject)} color - [description]
|
||||
*
|
||||
* @return {Phaser.Cameras.Scene2D.Camera} This Camera instance.
|
||||
*/
|
||||
|
@ -1288,7 +1288,7 @@ var Camera = new Class({
|
|||
* @method Phaser.Cameras.Scene2D.Camera#startFollow
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.GameObjects.GameObject|object} target - [description]
|
||||
* @param {(Phaser.GameObjects.GameObject|object)} target - [description]
|
||||
* @param {boolean} roundPx - [description]
|
||||
*
|
||||
* @return {Phaser.Cameras.Scene2D.Camera} This Camera instance.
|
||||
|
|
|
@ -236,7 +236,7 @@ var CameraManager = new Class({
|
|||
* @method Phaser.Cameras.Scene2D.CameraManager#fromJSON
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {object|object[]} config - [description]
|
||||
* @param {(object|object[])} config - [description]
|
||||
*
|
||||
* @return {Phaser.Cameras.Scene2D.CameraManager} [description]
|
||||
*/
|
||||
|
@ -375,7 +375,7 @@ var CameraManager = new Class({
|
|||
* @method Phaser.Cameras.Scene2D.CameraManager#render
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer} renderer - The Renderer that will render the children to this camera.
|
||||
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The Renderer that will render the children to this camera.
|
||||
* @param {Phaser.GameObjects.GameObject[]} children - An array of renderable Game Objects.
|
||||
* @param {number} interpolation - Interpolation value. Reserved for future use.
|
||||
*/
|
||||
|
|
|
@ -24,7 +24,7 @@ var GetValue = require('../../utils/object/GetValue');
|
|||
* @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 {(float|{x:float,y:float})} [speed=0] - The horizontal and vertical speed the camera will move.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,9 +31,9 @@ var GetValue = require('../../utils/object/GetValue');
|
|||
* @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 {(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.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -368,7 +368,7 @@ var Camera = new Class({
|
|||
* @param {number} y - [description]
|
||||
* @param {number} z - [description]
|
||||
* @param {string} key - [description]
|
||||
* @param {string|number} frame - [description]
|
||||
* @param {(string|number)} frame - [description]
|
||||
* @param {boolean} [visible=true] - [description]
|
||||
*
|
||||
* @return {Phaser.GameObjects.Sprite3D} [description]
|
||||
|
@ -399,7 +399,7 @@ var Camera = new Class({
|
|||
*
|
||||
* @param {number} quantity - [description]
|
||||
* @param {string} key - [description]
|
||||
* @param {string|number} frame - [description]
|
||||
* @param {(string|number)} frame - [description]
|
||||
* @param {boolean} [visible=true] - [description]
|
||||
*
|
||||
* @return {Phaser.GameObjects.Sprite3D[]} [description]
|
||||
|
@ -435,10 +435,10 @@ var Camera = new Class({
|
|||
* @method Phaser.Cameras.Sprite3D.Camera#createRect
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number|{x:number,y:number}} size - [description]
|
||||
* @param {number|{x:number,y:number,z:number}} spacing - [description]
|
||||
* @param {(number|{x:number,y:number})} size - [description]
|
||||
* @param {(number|{x:number,y:number,z:number})} spacing - [description]
|
||||
* @param {string} key - [description]
|
||||
* @param {string|number} [frame] - [description]
|
||||
* @param {(string|number)} [frame] - [description]
|
||||
*
|
||||
* @return {Phaser.GameObjects.Sprite3D[]} [description]
|
||||
*/
|
||||
|
@ -595,7 +595,7 @@ var Camera = new Class({
|
|||
* @method Phaser.Cameras.Sprite3D.Camera#translate
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number|object} x - [description]
|
||||
* @param {(number|object)} x - [description]
|
||||
* @param {number} [y] - [description]
|
||||
* @param {number} [z] - [description]
|
||||
*
|
||||
|
@ -625,7 +625,7 @@ var Camera = new Class({
|
|||
* @method Phaser.Cameras.Sprite3D.Camera#lookAt
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number|object} x - [description]
|
||||
* @param {(number|object)} x - [description]
|
||||
* @param {number} [y] - [description]
|
||||
* @param {number} [z] - [description]
|
||||
*
|
||||
|
|
|
@ -151,7 +151,7 @@ var CameraManager = new Class({
|
|||
*
|
||||
* @param {string} name - [description]
|
||||
*
|
||||
* @return {Phaser.Cameras.Sprite3D.OrthographicCamera|Phaser.Cameras.Sprite3D.PerspectiveCamera} [description]
|
||||
* @return {(Phaser.Cameras.Sprite3D.OrthographicCamera|Phaser.Cameras.Sprite3D.PerspectiveCamera)} [description]
|
||||
*/
|
||||
getCamera: function (name)
|
||||
{
|
||||
|
@ -172,7 +172,7 @@ var CameraManager = new Class({
|
|||
* @method Phaser.Cameras.Sprite3D.CameraManager#removeCamera
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Cameras.Sprite3D.OrthographicCamera|Phaser.Cameras.Sprite3D.PerspectiveCamera} camera - [description]
|
||||
* @param {(Phaser.Cameras.Sprite3D.OrthographicCamera|Phaser.Cameras.Sprite3D.PerspectiveCamera)} camera - [description]
|
||||
*/
|
||||
removeCamera: function (camera)
|
||||
{
|
||||
|
@ -190,7 +190,7 @@ var CameraManager = new Class({
|
|||
* @method Phaser.Cameras.Sprite3D.CameraManager#removeAll
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @return {Phaser.Cameras.Sprite3D.OrthographicCamera|Phaser.Cameras.Sprite3D.PerspectiveCamera} [description]
|
||||
* @return {(Phaser.Cameras.Sprite3D.OrthographicCamera|Phaser.Cameras.Sprite3D.PerspectiveCamera)} [description]
|
||||
*/
|
||||
removeAll: function ()
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ var Vector2 = require('../math/Vector2');
|
|||
* @constructor
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Math.Vector2|Phaser.Math.Vector2[]} p0 - Start point, or an array of point pairs.
|
||||
* @param {(Phaser.Math.Vector2|Phaser.Math.Vector2[])} p0 - Start point, or an array of point pairs.
|
||||
* @param {Phaser.Math.Vector2} p1 - Control Point 1.
|
||||
* @param {Phaser.Math.Vector2} p2 - Control Point 2.
|
||||
* @param {Phaser.Math.Vector2} p3 - End Point.
|
||||
|
|
|
@ -19,7 +19,7 @@ var Vector2 = require('../math/Vector2');
|
|||
* @constructor
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @param {Phaser.Math.Vector2|Phaser.Math.Vector2[]} p0 - Start point, or an array of point pairs.
|
||||
* @param {(Phaser.Math.Vector2|Phaser.Math.Vector2[])} p0 - Start point, or an array of point pairs.
|
||||
* @param {Phaser.Math.Vector2} p1 - Control Point 1.
|
||||
* @param {Phaser.Math.Vector2} p2 - Control Point 2.
|
||||
*/
|
||||
|
|
|
@ -235,7 +235,7 @@ var Path = new Class({
|
|||
* @method Phaser.Curves.Path#quadraticBezierTo
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @param {number|Phaser.Math.Vector2[]} x - [description]
|
||||
* @param {(number|Phaser.Math.Vector2[])} x - [description]
|
||||
* @param {number} [y] - [description]
|
||||
* @param {number} [controlX] - [description]
|
||||
* @param {number} [controlY] - [description]
|
||||
|
@ -671,7 +671,7 @@ var Path = new Class({
|
|||
* @method Phaser.Curves.Path#lineTo
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number|Phaser.Math.Vector2} x - [description]
|
||||
* @param {(number|Phaser.Math.Vector2)} x - [description]
|
||||
* @param {number} [y] - [description]
|
||||
*
|
||||
* @return {Phaser.Curves.Path} [description]
|
||||
|
|
|
@ -19,7 +19,7 @@ var Smoothing = function ()
|
|||
* @function Phaser.Display.Canvas.Smoothing.getPrefix
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {CanvasRenderingContext2D|WebGLRenderingContext} context - [description]
|
||||
* @param {(CanvasRenderingContext2D|WebGLRenderingContext)} context - [description]
|
||||
*
|
||||
* @return {string} [description]
|
||||
*/
|
||||
|
@ -50,9 +50,9 @@ var Smoothing = function ()
|
|||
* @function Phaser.Display.Canvas.Smoothing.enable
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {CanvasRenderingContext2D|WebGLRenderingContext} context - [description]
|
||||
* @param {(CanvasRenderingContext2D|WebGLRenderingContext)} context - [description]
|
||||
*
|
||||
* @return {CanvasRenderingContext2D|WebGLRenderingContext} [description]
|
||||
* @return {(CanvasRenderingContext2D|WebGLRenderingContext)} [description]
|
||||
*/
|
||||
var enable = function (context)
|
||||
{
|
||||
|
@ -79,9 +79,9 @@ var Smoothing = function ()
|
|||
* @function Phaser.Display.Canvas.Smoothing.disable
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {CanvasRenderingContext2D|WebGLRenderingContext} context - [description]
|
||||
* @param {(CanvasRenderingContext2D|WebGLRenderingContext)} context - [description]
|
||||
*
|
||||
* @return {CanvasRenderingContext2D|WebGLRenderingContext} [description]
|
||||
* @return {(CanvasRenderingContext2D|WebGLRenderingContext)} [description]
|
||||
*/
|
||||
var disable = function (context)
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ var Smoothing = function ()
|
|||
* @function Phaser.Display.Canvas.Smoothing.isEnabled
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {CanvasRenderingContext2D|WebGLRenderingContext} context - [description]
|
||||
* @param {(CanvasRenderingContext2D|WebGLRenderingContext)} context - [description]
|
||||
*
|
||||
* @return {?boolean} [description]
|
||||
*/
|
||||
|
|
|
@ -16,7 +16,7 @@ var RGBStringToColor = require('./RGBStringToColor');
|
|||
* @function Phaser.Display.Color.ValueToColor
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|number|InputColorObject} input - The source color value to convert.
|
||||
* @param {(string|number|InputColorObject)} input - The source color value to convert.
|
||||
*
|
||||
* @return {Phaser.Display.Color} A Color object.
|
||||
*/
|
||||
|
|
|
@ -143,7 +143,7 @@ var BitmapMask = new Class({
|
|||
* @method Phaser.Display.Masks.BitmapMask#preRenderWebGL
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer} renderer - [description]
|
||||
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - [description]
|
||||
* @param {Phaser.GameObjects.GameObject} maskedObject - [description]
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to render to.
|
||||
*/
|
||||
|
@ -158,7 +158,7 @@ var BitmapMask = new Class({
|
|||
* @method Phaser.Display.Masks.BitmapMask#postRenderWebGL
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer} renderer - [description]
|
||||
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - [description]
|
||||
*/
|
||||
postRenderWebGL: function (renderer)
|
||||
{
|
||||
|
@ -171,7 +171,7 @@ var BitmapMask = new Class({
|
|||
* @method Phaser.Display.Masks.BitmapMask#preRenderCanvas
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer} renderer - [description]
|
||||
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - [description]
|
||||
* @param {Phaser.GameObjects.GameObject} mask - [description]
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to render to.
|
||||
*/
|
||||
|
@ -186,7 +186,7 @@ var BitmapMask = new Class({
|
|||
* @method Phaser.Display.Masks.BitmapMask#postRenderCanvas
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer} renderer - [description]
|
||||
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - [description]
|
||||
*/
|
||||
postRenderCanvas: function ()
|
||||
{
|
||||
|
|
|
@ -53,7 +53,7 @@ var GeometryMask = new Class({
|
|||
* @method Phaser.Display.Masks.GeometryMask#preRenderWebGL
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer} renderer - [description]
|
||||
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - [description]
|
||||
* @param {Phaser.GameObjects.GameObject} mask - [description]
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - [description]
|
||||
*/
|
||||
|
@ -88,7 +88,7 @@ var GeometryMask = new Class({
|
|||
* @method Phaser.Display.Masks.GeometryMask#postRenderWebGL
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer} renderer - [description]
|
||||
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - [description]
|
||||
*/
|
||||
postRenderWebGL: function (renderer)
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ var GeometryMask = new Class({
|
|||
* @method Phaser.Display.Masks.GeometryMask#preRenderCanvas
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer} renderer - [description]
|
||||
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - [description]
|
||||
* @param {Phaser.GameObjects.GameObject} mask - [description]
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - [description]
|
||||
*/
|
||||
|
@ -126,7 +126,7 @@ var GeometryMask = new Class({
|
|||
* @method Phaser.Display.Masks.GeometryMask#postRenderCanvas
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer} renderer - [description]
|
||||
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - [description]
|
||||
*/
|
||||
postRenderCanvas: function (renderer)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {HTMLElement} element - The element to be added to the DOM. Usually a Canvas object.
|
||||
* @param {string|HTMLElement} [parent] - The parent in which to add the element. Can be a string which is passed to `getElementById` or an actual DOM object.
|
||||
* @param {(string|HTMLElement)} [parent] - The parent in which to add the element. Can be a string which is passed to `getElementById` or an actual DOM object.
|
||||
* @param {boolean} [overflowHidden=true] - [description]
|
||||
*
|
||||
* @return {HTMLElement} The element that was added to the DOM.
|
||||
|
|
|
@ -66,7 +66,7 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @method EventEmitter#eventNames
|
||||
* @since 3.0.0
|
||||
*
|
||||
*
|
||||
* @return {array}
|
||||
*/
|
||||
|
||||
|
@ -75,20 +75,20 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @method EventEmitter#listeners
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|symbol} event - The event name.
|
||||
*
|
||||
*
|
||||
* @param {(string|symbol)} event - The event name.
|
||||
*
|
||||
* @return {array} The registered listeners.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Return the number of listeners listening to a given event.
|
||||
*
|
||||
*
|
||||
* @method EventEmitter#listenerCount
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|symbol} event - The event name.
|
||||
*
|
||||
* @param {(string|symbol)} event - The event name.
|
||||
*
|
||||
* @return {number} The number of listeners.
|
||||
*/
|
||||
|
||||
|
@ -97,9 +97,9 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @method EventEmitter#emit
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|symbol} event - The event name.
|
||||
*
|
||||
*
|
||||
* @param {(string|symbol)} event - The event name.
|
||||
*
|
||||
* @return {boolean} `true` if the event had listeners, else `false`.
|
||||
*/
|
||||
|
||||
|
@ -108,11 +108,11 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @method EventEmitter#on
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|symbol} event - The event name.
|
||||
*
|
||||
* @param {(string|symbol)} event - The event name.
|
||||
* @param {function} fn - The listener function.
|
||||
* @param {*} [context=this] - The context to invoke the listener with.
|
||||
*
|
||||
*
|
||||
* @return {EventEmitter} `this`.
|
||||
*/
|
||||
|
||||
|
@ -121,11 +121,11 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @method EventEmitter#addListener
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|symbol} event - The event name.
|
||||
*
|
||||
* @param {(string|symbol)} event - The event name.
|
||||
* @param {function} fn - The listener function.
|
||||
* @param {*} [context=this] - The context to invoke the listener with.
|
||||
*
|
||||
*
|
||||
* @return {EventEmitter} `this`.
|
||||
*/
|
||||
|
||||
|
@ -134,11 +134,11 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @method EventEmitter#once
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|symbol} event - The event name.
|
||||
*
|
||||
* @param {(string|symbol)} event - The event name.
|
||||
* @param {function} fn - The listener function.
|
||||
* @param {*} [context=this] - The context to invoke the listener with.
|
||||
*
|
||||
*
|
||||
* @return {EventEmitter} `this`.
|
||||
*/
|
||||
|
||||
|
@ -147,12 +147,12 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @method EventEmitter#removeListener
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|symbol} event - The event name.
|
||||
*
|
||||
* @param {(string|symbol)} event - The event name.
|
||||
* @param {function} fn - Only remove the listeners that match this function.
|
||||
* @param {*} context - Only remove the listeners that have this context.
|
||||
* @param {boolean} once - Only remove one-time listeners.
|
||||
*
|
||||
*
|
||||
* @return {EventEmitter} `this`.
|
||||
*/
|
||||
|
||||
|
@ -161,12 +161,12 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @method EventEmitter#off
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|symbol} event - The event name.
|
||||
*
|
||||
* @param {(string|symbol)} event - The event name.
|
||||
* @param {function} fn - Only remove the listeners that match this function.
|
||||
* @param {*} context - Only remove the listeners that have this context.
|
||||
* @param {boolean} once - Only remove one-time listeners.
|
||||
*
|
||||
*
|
||||
* @return {EventEmitter} `this`.
|
||||
*/
|
||||
|
||||
|
@ -175,9 +175,9 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @method EventEmitter#removeAllListeners
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string|symbol} [event] - The event name.
|
||||
*
|
||||
*
|
||||
* @param {(string|symbol)} [event] - The event name.
|
||||
*
|
||||
* @return {EventEmitter} `this`.
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue