mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 00:21:04 +00:00
Fixed jsdoc types
This commit is contained in:
parent
15579d7350
commit
4de9719fbe
5 changed files with 5 additions and 5 deletions
|
@ -100,7 +100,7 @@ var EventEmitter = new Class({
|
|||
*
|
||||
* @param {string|symbol} event - The event name.
|
||||
*
|
||||
* @return {Boolean} `true` if the event had listeners, else `false`.
|
||||
* @return {boolean} `true` if the event had listeners, else `false`.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* @param {string} [type='image/png'] - [description]
|
||||
* @param {float} [encoderOptions=0.92] - [description]
|
||||
*
|
||||
* @return {Image} [description]
|
||||
* @return {HTMLImageElement} [description]
|
||||
*/
|
||||
var CanvasSnapshot = function (canvas, type, encoderOptions)
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* @param {string} [type='image/png'] - [description]
|
||||
* @param {float} [encoderOptions=0.92] - [description]
|
||||
*
|
||||
* @return {Image} [description]
|
||||
* @return {HTMLImageElement} [description]
|
||||
*/
|
||||
var WebGLSnapshot = function (sourceCanvas, type, encoderOptions)
|
||||
{
|
||||
|
|
|
@ -311,7 +311,7 @@ var Texture = new Class({
|
|||
*
|
||||
* @param {string|integer} [name] - The string-based name, or integer based index, of the Frame to get from this Texture.
|
||||
*
|
||||
* @return {Image|HTMLCanvasElement} The DOM Image or Canvas Element.
|
||||
* @return {HTMLImageElement|HTMLCanvasElement} The DOM Image or Canvas Element.
|
||||
*/
|
||||
getSourceImage: function (name)
|
||||
{
|
||||
|
|
|
@ -47,7 +47,7 @@ var TextureSource = new Class({
|
|||
* The source image data. This is either an Image Element, or a Canvas Element.
|
||||
*
|
||||
* @name Phaser.Textures.TextureSource#image
|
||||
* @type {Image|HTMLCanvasElement}
|
||||
* @type {HTMLImageElement|HTMLCanvasElement}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.image = source;
|
||||
|
|
Loading…
Reference in a new issue