mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 22:48:34 +00:00
Completed JSDocs
This commit is contained in:
parent
bbde2570d4
commit
8f52fe59bb
2 changed files with 8 additions and 8 deletions
|
@ -299,8 +299,8 @@ var TextureManager = new Class({
|
|||
*
|
||||
* @param {string} key - The unique string-based key of the Texture.
|
||||
* @param {(string|integer)} [frame] - The string-based name, or integer based index, of the Frame to get from the Texture.
|
||||
* @param {string} [type='image/png'] - [description]
|
||||
* @param {number} [encoderOptions=0.92] - [description]
|
||||
* @param {string} [type='image/png'] - A DOMString indicating the image format. The default format type is image/png.
|
||||
* @param {number} [encoderOptions=0.92] - A Number between 0 and 1 indicating the image quality to use for image formats that use lossy compression such as image/jpeg and image/webp. If this argument is anything else, the default value for image quality is used. The default value is 0.92. Other arguments are ignored.
|
||||
*
|
||||
* @return {string} The base64 encoded data, or an empty string if the texture frame could not be found.
|
||||
*/
|
||||
|
|
|
@ -19,15 +19,15 @@ var GetFastValue = require('../../utils/object/GetFastValue');
|
|||
*
|
||||
* @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to.
|
||||
* @param {integer} sourceIndex - The index of the TextureSource.
|
||||
* @param {integer} x - [description]
|
||||
* @param {integer} y - [description]
|
||||
* @param {integer} width - [description]
|
||||
* @param {integer} height - [description]
|
||||
* @param {integer} x - The top-left coordinate of the Sprite Sheet. Defaults to zero. Used when extracting sheets from atlases.
|
||||
* @param {integer} y - The top-left coordinate of the Sprite Sheet. Defaults to zero. Used when extracting sheets from atlases.
|
||||
* @param {integer} width - The width of the source image.
|
||||
* @param {integer} height - The height of the source image.
|
||||
* @param {object} config - An object describing how to parse the Sprite Sheet.
|
||||
* @param {number} config.frameWidth - Width in pixels of a single frame in the sprite sheet.
|
||||
* @param {number} [config.frameHeight] - Height in pixels of a single frame in the sprite sheet. Defaults to frameWidth if not provided.
|
||||
* @param {number} [config.startFrame=0] - [description]
|
||||
* @param {number} [config.endFrame=-1] - [description]
|
||||
* @param {number} [config.startFrame=0] - The frame to start extracting from. Defaults to zero.
|
||||
* @param {number} [config.endFrame=-1] - The frame to finish extracting at. Defaults to -1, which means 'all frames'.
|
||||
* @param {number} [config.margin=0] - If the frames have been drawn with a margin, specify the amount here.
|
||||
* @param {number} [config.spacing=0] - If the frames have been drawn with spacing between them, specify the amount here.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue