diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 36ea5bb..28b0b18 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -346,8 +346,8 @@ /** * Gets the local bounds of the sprite object. * - * @param {Rectangle} rect - The output rectangle. - * @return {Rectangle} The bounds. + * @param {PIXI.Rectangle} rect - The output rectangle. + * @return {PIXI.Rectangle} The bounds. */ getLocalBounds(rect) { @@ -440,7 +440,7 @@ * * @static * @param {number|string|PIXI.BaseTexture|HTMLCanvasElement|HTMLVideoElement} source Source to create texture from - * @return {PIXI.Texture} The newly created texture + * @return {PIXI.Sprite} The newly created texture */ static from(source) { diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 36ea5bb..28b0b18 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -346,8 +346,8 @@ /** * Gets the local bounds of the sprite object. * - * @param {Rectangle} rect - The output rectangle. - * @return {Rectangle} The bounds. + * @param {PIXI.Rectangle} rect - The output rectangle. + * @return {PIXI.Rectangle} The bounds. */ getLocalBounds(rect) { @@ -440,7 +440,7 @@ * * @static * @param {number|string|PIXI.BaseTexture|HTMLCanvasElement|HTMLVideoElement} source Source to create texture from - * @return {PIXI.Texture} The newly created texture + * @return {PIXI.Sprite} The newly created texture */ static from(source) { diff --git a/src/core/text/TextStyle.js b/src/core/text/TextStyle.js index eec2820..3b51999 100644 --- a/src/core/text/TextStyle.js +++ b/src/core/text/TextStyle.js @@ -511,8 +511,8 @@ * Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string. * This version can also convert array of colors * - * @param {Array} array1 First array to compared - * @param {Array} array1 Second array to compare + * @param {Array} array1 First array to compare + * @param {Array} array2 Second array to compare * @return {boolean} Do the arrays contain the same values in the same order */ function areArraysEqual(array1, array2)