Skip to content

Commit e3dc58e

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents aae1cf5 + 032c7bd commit e3dc58e

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

src/boot/Config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ var ValueToColor = require('../display/color/ValueToColor');
178178
* @property {boolean} [start] - Whether the plugin should be started automatically.
179179
* @property {string} [systemKey] - For a scene plugin, add the plugin to the scene's systems object under this key (`this.sys.KEY`, from the scene).
180180
* @property {string} [sceneKey] - For a scene plugin, add the plugin to the scene object under this key (`this.KEY`, from the scene).
181+
* @property {string} [mapping] - If this plugin is to be injected into the Scene Systems, this is the property key map used.
181182
* @property {*} [data] - Arbitrary data passed to the plugin's init() method.
182183
*
183184
* @example

src/loader/LoaderPlugin.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ var LoaderPlugin = new Class({
6565
*
6666
* @name Phaser.Loader.LoaderPlugin#scene
6767
* @type {Phaser.Scene}
68-
* @protected
6968
* @since 3.0.0
7069
*/
7170
this.scene = scene;
@@ -75,7 +74,6 @@ var LoaderPlugin = new Class({
7574
*
7675
* @name Phaser.Loader.LoaderPlugin#systems
7776
* @type {Phaser.Scenes.Systems}
78-
* @protected
7977
* @since 3.0.0
8078
*/
8179
this.systems = scene.sys;
@@ -85,7 +83,6 @@ var LoaderPlugin = new Class({
8583
*
8684
* @name Phaser.Loader.LoaderPlugin#cacheManager
8785
* @type {Phaser.Cache.CacheManager}
88-
* @protected
8986
* @since 3.7.0
9087
*/
9188
this.cacheManager = scene.sys.cache;
@@ -95,7 +92,6 @@ var LoaderPlugin = new Class({
9592
*
9693
* @name Phaser.Loader.LoaderPlugin#textureManager
9794
* @type {Phaser.Textures.TextureManager}
98-
* @protected
9995
* @since 3.7.0
10096
*/
10197
this.textureManager = scene.sys.textures;

src/textures/Texture.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var TEXTURE_MISSING_ERROR = 'Texture.frame missing: ';
2929
*
3030
* @param {Phaser.Textures.TextureManager} manager - A reference to the Texture Manager this Texture belongs to.
3131
* @param {string} key - The unique string-based key of this Texture.
32-
* @param {(HTMLImageElement[]|HTMLCanvasElement[])} source - An array of sources that are used to create the texture. Usually Images, but can also be a Canvas.
32+
* @param {(HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[])} source - An array of sources that are used to create the texture. Usually Images, but can also be a Canvas.
3333
* @param {number} [width] - The width of the Texture. This is optional and automatically derived from the source images.
3434
* @param {number} [height] - The height of the Texture. This is optional and automatically derived from the source images.
3535
*/
@@ -385,7 +385,7 @@ var Texture = new Class({
385385
* @method Phaser.Textures.Texture#setDataSource
386386
* @since 3.0.0
387387
*
388-
* @param {(HTMLImageElement|HTMLCanvasElement)} data - The source image.
388+
* @param {(HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[])} data - The source image.
389389
*/
390390
setDataSource: function (data)
391391
{

src/textures/TextureManager.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ var TextureManager = new Class({
320320
*
321321
* @param {string} key - The unique string-based key of the Texture.
322322
* @param {HTMLImageElement} source - The source Image element.
323-
* @param {HTMLImageElement} [dataSource] - An optional data Image element.
323+
* @param {HTMLImageElement|HTMLCanvasElement} [dataSource] - An optional data Image element.
324324
*
325325
* @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.
326326
*/
@@ -479,7 +479,7 @@ var TextureManager = new Class({
479479
* @param {string} key - The unique string-based key of the Texture.
480480
* @param {HTMLImageElement} source - The source Image element.
481481
* @param {object} data - The Texture Atlas data.
482-
* @param {HTMLImageElement} [dataSource] - An optional data Image element.
482+
* @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.
483483
*
484484
* @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.
485485
*/
@@ -507,7 +507,7 @@ var TextureManager = new Class({
507507
* @param {string} key - The unique string-based key of the Texture.
508508
* @param {(HTMLImageElement|HTMLImageElement[])} source - The source Image element/s.
509509
* @param {(object|object[])} data - The Texture Atlas data/s.
510-
* @param {HTMLImageElement} [dataSource] - An optional data Image element.
510+
* @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.
511511
*
512512
* @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.
513513
*/
@@ -559,7 +559,7 @@ var TextureManager = new Class({
559559
* @param {string} key - The unique string-based key of the Texture.
560560
* @param {HTMLImageElement} source - The source Image element.
561561
* @param {object} data - The Texture Atlas data.
562-
* @param {HTMLImageElement} [dataSource] - An optional data Image element.
562+
* @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.
563563
*
564564
* @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.
565565
*/
@@ -604,7 +604,7 @@ var TextureManager = new Class({
604604
* @param {string} key - The unique string-based key of the Texture.
605605
* @param {HTMLImageElement} source - The source Image element.
606606
* @param {object} data - The Texture Atlas XML data.
607-
* @param {HTMLImageElement} [dataSource] - An optional data Image element.
607+
* @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.
608608
*
609609
* @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.
610610
*/
@@ -639,7 +639,7 @@ var TextureManager = new Class({
639639
* @param {string} key - The unique string-based key of the Texture.
640640
* @param {HTMLImageElement} source - The source Image element.
641641
* @param {object} data - The Texture Atlas data.
642-
* @param {HTMLImageElement} [dataSource] - An optional data Image element.
642+
* @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.
643643
*
644644
* @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.
645645
*/

0 commit comments

Comments
 (0)