You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/textures/Texture.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ var TEXTURE_MISSING_ERROR = 'Texture.frame missing: ';
29
29
*
30
30
* @param {Phaser.Textures.TextureManager} manager - A reference to the Texture Manager this Texture belongs to.
31
31
* @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.
33
33
* @param {number} [width] - The width of the Texture. This is optional and automatically derived from the source images.
34
34
* @param {number} [height] - The height of the Texture. This is optional and automatically derived from the source images.
35
35
*/
@@ -385,7 +385,7 @@ var Texture = new Class({
385
385
* @method Phaser.Textures.Texture#setDataSource
386
386
* @since 3.0.0
387
387
*
388
-
* @param {(HTMLImageElement|HTMLCanvasElement)} data - The source image.
388
+
* @param {(HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[])} data - The source image.
0 commit comments