diff --git a/src/core/renderers/webgl/utils/StencilMaskStack.js b/src/core/renderers/webgl/utils/StencilMaskStack.js index d7a78ff..4be85f1 100644 --- a/src/core/renderers/webgl/utils/StencilMaskStack.js +++ b/src/core/renderers/webgl/utils/StencilMaskStack.js @@ -6,8 +6,25 @@ */ function StencilMaskStack() { + /** + * The actual stack + * + * @member {Array} + */ this.stencilStack = []; + + /** + * TODO @alvin + * + * @member {boolean} + */ this.reverse = true; + + /** + * Internal count + * + * @member {number} + */ this.count = 0; } diff --git a/src/core/renderers/webgl/utils/StencilMaskStack.js b/src/core/renderers/webgl/utils/StencilMaskStack.js index d7a78ff..4be85f1 100644 --- a/src/core/renderers/webgl/utils/StencilMaskStack.js +++ b/src/core/renderers/webgl/utils/StencilMaskStack.js @@ -6,8 +6,25 @@ */ function StencilMaskStack() { + /** + * The actual stack + * + * @member {Array} + */ this.stencilStack = []; + + /** + * TODO @alvin + * + * @member {boolean} + */ this.reverse = true; + + /** + * Internal count + * + * @member {number} + */ this.count = 0; } diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 626c920..325eb46 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -524,6 +524,8 @@ * @static * @param frameId {String} The frame Id of the texture in the cache * @return {Sprite} A new Sprite using a texture from the texture cache matching the frameId + * @param [crossorigin=(auto)] {boolean} if you want to specify the cross-origin parameter + * @param [scaleMode=scaleModes.DEFAULT] {number} if you want to specify the scale mode, see {@link SCALE_MODES} for possible values */ Sprite.fromFrame = function (frameId) { @@ -531,7 +533,7 @@ if (!texture) { - throw new Error('The frameId "' + frameId + '" does not exist in the texture cache' + this); + throw new Error('The frameId "' + frameId + '" does not exist in the texture cache ' + this); } return new Sprite(texture); diff --git a/src/core/renderers/webgl/utils/StencilMaskStack.js b/src/core/renderers/webgl/utils/StencilMaskStack.js index d7a78ff..4be85f1 100644 --- a/src/core/renderers/webgl/utils/StencilMaskStack.js +++ b/src/core/renderers/webgl/utils/StencilMaskStack.js @@ -6,8 +6,25 @@ */ function StencilMaskStack() { + /** + * The actual stack + * + * @member {Array} + */ this.stencilStack = []; + + /** + * TODO @alvin + * + * @member {boolean} + */ this.reverse = true; + + /** + * Internal count + * + * @member {number} + */ this.count = 0; } diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 626c920..325eb46 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -524,6 +524,8 @@ * @static * @param frameId {String} The frame Id of the texture in the cache * @return {Sprite} A new Sprite using a texture from the texture cache matching the frameId + * @param [crossorigin=(auto)] {boolean} if you want to specify the cross-origin parameter + * @param [scaleMode=scaleModes.DEFAULT] {number} if you want to specify the scale mode, see {@link SCALE_MODES} for possible values */ Sprite.fromFrame = function (frameId) { @@ -531,7 +533,7 @@ if (!texture) { - throw new Error('The frameId "' + frameId + '" does not exist in the texture cache' + this); + throw new Error('The frameId "' + frameId + '" does not exist in the texture cache ' + this); } return new Sprite(texture); diff --git a/src/core/textures/BaseTexture.js b/src/core/textures/BaseTexture.js index 4d4d9ab..312a772 100644 --- a/src/core/textures/BaseTexture.js +++ b/src/core/textures/BaseTexture.js @@ -363,7 +363,7 @@ * * @static * @param imageUrl {string} The image url of the texture - * @param [crossorigin=(auto)] {boolean} Should use anonymouse CORS? Defaults to true if the URL is not a data-URI. + * @param [crossorigin=(auto)] {boolean} Should use anonymous CORS? Defaults to true if the URL is not a data-URI. * @param [scaleMode=scaleModes.DEFAULT] {number} See {@link SCALE_MODES} for possible values * @return BaseTexture */