Merge pull request #6670 from stevenwithaph/master

Added correct parameters for create
This commit is contained in:
Richard Davey 2024-01-12 17:55:22 +00:00 committed by GitHub
commit 08f340c438
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1152,9 +1152,9 @@ var TextureManager = new Class({
* @since 3.0.0 * @since 3.0.0
* *
* @param {string} key - The unique string-based key of the Texture. * @param {string} key - The unique string-based key of the Texture.
* @param {HTMLImageElement} source - The source Image element. * @param {(HTMLImageElement|HTMLImageElement[])} source - The source Image element.
* @param {number} width - The width of the Texture. * @param {number} [width] - The width of the Texture.
* @param {number} height - The height 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. * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.
*/ */