From 6a28ccbee174a01054926d56101849eec2a120d7 Mon Sep 17 00:00:00 2001 From: Steven Adams Date: Tue, 14 Nov 2023 08:38:05 -0500 Subject: [PATCH] Added correct parameters for create --- src/textures/TextureManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/textures/TextureManager.js b/src/textures/TextureManager.js index 9c6cf2474..8248baf10 100644 --- a/src/textures/TextureManager.js +++ b/src/textures/TextureManager.js @@ -1152,9 +1152,9 @@ var TextureManager = new Class({ * @since 3.0.0 * * @param {string} key - The unique string-based key of the Texture. - * @param {HTMLImageElement} source - The source Image element. - * @param {number} width - The width of the Texture. - * @param {number} height - The height of the Texture. + * @param {(HTMLImageElement|HTMLImageElement[])} source - The source Image element. + * @param {number} [width] - The width of the Texture. + * @param {number} [height] - The height of the Texture. * * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use. */