diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/renderers/webgl/TextureManager.js b/src/core/renderers/webgl/TextureManager.js index f0c85f2..ba892bd 100644 --- a/src/core/renderers/webgl/TextureManager.js +++ b/src/core/renderers/webgl/TextureManager.js @@ -148,7 +148,7 @@ glTexture.enableLinearScaling(); } } - // the textur ealrady exists so we only need to update it.. + // the texture already exists so we only need to update it.. else if (isRenderTexture) { texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height); diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/renderers/webgl/TextureManager.js b/src/core/renderers/webgl/TextureManager.js index f0c85f2..ba892bd 100644 --- a/src/core/renderers/webgl/TextureManager.js +++ b/src/core/renderers/webgl/TextureManager.js @@ -148,7 +148,7 @@ glTexture.enableLinearScaling(); } } - // the textur ealrady exists so we only need to update it.. + // the texture already exists so we only need to update it.. else if (isRenderTexture) { texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height); diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 20ccfee..88ebdbb 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -308,7 +308,7 @@ } /** - * This shoudl be called if you wish to do some custom rendering + * This should be called if you wish to do some custom rendering * It will basically render anything that may be batched up such as sprites * */ @@ -457,7 +457,7 @@ /** * Binds the texture. This will return the location of the bound texture. * It may not be the same as the one you pass in. This is due to optimisation that prevents - * needless binding of textures. For example if the texture isalready bound it will return the + * needless binding of textures. For example if the texture is already bound it will return the * current location of the texture instead of the one provided. To bypass this use force location * * @param {PIXI.Texture} texture - the new texture diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/renderers/webgl/TextureManager.js b/src/core/renderers/webgl/TextureManager.js index f0c85f2..ba892bd 100644 --- a/src/core/renderers/webgl/TextureManager.js +++ b/src/core/renderers/webgl/TextureManager.js @@ -148,7 +148,7 @@ glTexture.enableLinearScaling(); } } - // the textur ealrady exists so we only need to update it.. + // the texture already exists so we only need to update it.. else if (isRenderTexture) { texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height); diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 20ccfee..88ebdbb 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -308,7 +308,7 @@ } /** - * This shoudl be called if you wish to do some custom rendering + * This should be called if you wish to do some custom rendering * It will basically render anything that may be batched up such as sprites * */ @@ -457,7 +457,7 @@ /** * Binds the texture. This will return the location of the bound texture. * It may not be the same as the one you pass in. This is due to optimisation that prevents - * needless binding of textures. For example if the texture isalready bound it will return the + * needless binding of textures. For example if the texture is already bound it will return the * current location of the texture instead of the one provided. To bypass this use force location * * @param {PIXI.Texture} texture - the new texture diff --git a/src/core/renderers/webgl/WebGLState.js b/src/core/renderers/webgl/WebGLState.js index 0749982..ba6ecc5 100755 --- a/src/core/renderers/webgl/WebGLState.js +++ b/src/core/renderers/webgl/WebGLState.js @@ -245,7 +245,7 @@ this.nativeVaoExtension.bindVertexArrayOES(null); } - // reset all attributs.. + // reset all attributes.. this.resetAttributes(); // set active state so we can force overrides of gl state diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/renderers/webgl/TextureManager.js b/src/core/renderers/webgl/TextureManager.js index f0c85f2..ba892bd 100644 --- a/src/core/renderers/webgl/TextureManager.js +++ b/src/core/renderers/webgl/TextureManager.js @@ -148,7 +148,7 @@ glTexture.enableLinearScaling(); } } - // the textur ealrady exists so we only need to update it.. + // the texture already exists so we only need to update it.. else if (isRenderTexture) { texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height); diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 20ccfee..88ebdbb 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -308,7 +308,7 @@ } /** - * This shoudl be called if you wish to do some custom rendering + * This should be called if you wish to do some custom rendering * It will basically render anything that may be batched up such as sprites * */ @@ -457,7 +457,7 @@ /** * Binds the texture. This will return the location of the bound texture. * It may not be the same as the one you pass in. This is due to optimisation that prevents - * needless binding of textures. For example if the texture isalready bound it will return the + * needless binding of textures. For example if the texture is already bound it will return the * current location of the texture instead of the one provided. To bypass this use force location * * @param {PIXI.Texture} texture - the new texture diff --git a/src/core/renderers/webgl/WebGLState.js b/src/core/renderers/webgl/WebGLState.js index 0749982..ba6ecc5 100755 --- a/src/core/renderers/webgl/WebGLState.js +++ b/src/core/renderers/webgl/WebGLState.js @@ -245,7 +245,7 @@ this.nativeVaoExtension.bindVertexArrayOES(null); } - // reset all attributs.. + // reset all attributes.. this.resetAttributes(); // set active state so we can force overrides of gl state diff --git a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js index e803c40..d78a0b1 100644 --- a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js +++ b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js @@ -17,7 +17,7 @@ const uniforms = {}; let nameSplit; - // clean the lines a little - remove extra spaces / teabs etc + // clean the lines a little - remove extra spaces / tabs etc // then split along ';' const lines = string.replace(/\s+/g, ' ') .split(/\s*;\s*/); diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/renderers/webgl/TextureManager.js b/src/core/renderers/webgl/TextureManager.js index f0c85f2..ba892bd 100644 --- a/src/core/renderers/webgl/TextureManager.js +++ b/src/core/renderers/webgl/TextureManager.js @@ -148,7 +148,7 @@ glTexture.enableLinearScaling(); } } - // the textur ealrady exists so we only need to update it.. + // the texture already exists so we only need to update it.. else if (isRenderTexture) { texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height); diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 20ccfee..88ebdbb 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -308,7 +308,7 @@ } /** - * This shoudl be called if you wish to do some custom rendering + * This should be called if you wish to do some custom rendering * It will basically render anything that may be batched up such as sprites * */ @@ -457,7 +457,7 @@ /** * Binds the texture. This will return the location of the bound texture. * It may not be the same as the one you pass in. This is due to optimisation that prevents - * needless binding of textures. For example if the texture isalready bound it will return the + * needless binding of textures. For example if the texture is already bound it will return the * current location of the texture instead of the one provided. To bypass this use force location * * @param {PIXI.Texture} texture - the new texture diff --git a/src/core/renderers/webgl/WebGLState.js b/src/core/renderers/webgl/WebGLState.js index 0749982..ba6ecc5 100755 --- a/src/core/renderers/webgl/WebGLState.js +++ b/src/core/renderers/webgl/WebGLState.js @@ -245,7 +245,7 @@ this.nativeVaoExtension.bindVertexArrayOES(null); } - // reset all attributs.. + // reset all attributes.. this.resetAttributes(); // set active state so we can force overrides of gl state diff --git a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js index e803c40..d78a0b1 100644 --- a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js +++ b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js @@ -17,7 +17,7 @@ const uniforms = {}; let nameSplit; - // clean the lines a little - remove extra spaces / teabs etc + // clean the lines a little - remove extra spaces / tabs etc // then split along ';' const lines = string.replace(/\s+/g, ' ') .split(/\s*;\s*/); diff --git a/src/core/renderers/webgl/filters/filterTransforms.js b/src/core/renderers/webgl/filters/filterTransforms.js index d27d815..5fde3d3 100644 --- a/src/core/renderers/webgl/filters/filterTransforms.js +++ b/src/core/renderers/webgl/filters/filterTransforms.js @@ -7,7 +7,7 @@ * @param outputMatrix {Matrix} @alvin */ // TODO playing around here.. this is temporary - (will end up in the shader) -// thia returns a matrix that will normalise map filter cords in the filter to screen space +// this returns a matrix that will normalise map filter cords in the filter to screen space export function calculateScreenSpaceMatrix(outputMatrix, filterArea, textureSize) { // let worldTransform = sprite.worldTransform.copy(Matrix.TEMP_MATRIX), diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/renderers/webgl/TextureManager.js b/src/core/renderers/webgl/TextureManager.js index f0c85f2..ba892bd 100644 --- a/src/core/renderers/webgl/TextureManager.js +++ b/src/core/renderers/webgl/TextureManager.js @@ -148,7 +148,7 @@ glTexture.enableLinearScaling(); } } - // the textur ealrady exists so we only need to update it.. + // the texture already exists so we only need to update it.. else if (isRenderTexture) { texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height); diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 20ccfee..88ebdbb 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -308,7 +308,7 @@ } /** - * This shoudl be called if you wish to do some custom rendering + * This should be called if you wish to do some custom rendering * It will basically render anything that may be batched up such as sprites * */ @@ -457,7 +457,7 @@ /** * Binds the texture. This will return the location of the bound texture. * It may not be the same as the one you pass in. This is due to optimisation that prevents - * needless binding of textures. For example if the texture isalready bound it will return the + * needless binding of textures. For example if the texture is already bound it will return the * current location of the texture instead of the one provided. To bypass this use force location * * @param {PIXI.Texture} texture - the new texture diff --git a/src/core/renderers/webgl/WebGLState.js b/src/core/renderers/webgl/WebGLState.js index 0749982..ba6ecc5 100755 --- a/src/core/renderers/webgl/WebGLState.js +++ b/src/core/renderers/webgl/WebGLState.js @@ -245,7 +245,7 @@ this.nativeVaoExtension.bindVertexArrayOES(null); } - // reset all attributs.. + // reset all attributes.. this.resetAttributes(); // set active state so we can force overrides of gl state diff --git a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js index e803c40..d78a0b1 100644 --- a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js +++ b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js @@ -17,7 +17,7 @@ const uniforms = {}; let nameSplit; - // clean the lines a little - remove extra spaces / teabs etc + // clean the lines a little - remove extra spaces / tabs etc // then split along ';' const lines = string.replace(/\s+/g, ' ') .split(/\s*;\s*/); diff --git a/src/core/renderers/webgl/filters/filterTransforms.js b/src/core/renderers/webgl/filters/filterTransforms.js index d27d815..5fde3d3 100644 --- a/src/core/renderers/webgl/filters/filterTransforms.js +++ b/src/core/renderers/webgl/filters/filterTransforms.js @@ -7,7 +7,7 @@ * @param outputMatrix {Matrix} @alvin */ // TODO playing around here.. this is temporary - (will end up in the shader) -// thia returns a matrix that will normalise map filter cords in the filter to screen space +// this returns a matrix that will normalise map filter cords in the filter to screen space export function calculateScreenSpaceMatrix(outputMatrix, filterArea, textureSize) { // let worldTransform = sprite.worldTransform.copy(Matrix.TEMP_MATRIX), diff --git a/src/core/renderers/webgl/managers/FilterManager.js b/src/core/renderers/webgl/managers/FilterManager.js index 802ceb2..56bb0f6 100644 --- a/src/core/renderers/webgl/managers/FilterManager.js +++ b/src/core/renderers/webgl/managers/FilterManager.js @@ -111,15 +111,15 @@ sourceFrame.fit(filterData.stack[0].destinationFrame); } - // lets pplay the padding After we fit the element to the screen. - // this should stop the strange side effects that can occour when cropping to the edges + // lets apply the padding After we fit the element to the screen. + // this should stop the strange side effects that can occur when cropping to the edges sourceFrame.pad(padding); destinationFrame.width = sourceFrame.width; destinationFrame.height = sourceFrame.height; // lets play the padding after we fit the element to the screen. - // this should stop the strange side effects that can occour when cropping to the edges + // this should stop the strange side effects that can occur when cropping to the edges const renderTarget = this.getPotRenderTarget(renderer.gl, sourceFrame.width, sourceFrame.height, resolution); @@ -128,7 +128,7 @@ currentState.resolution = resolution; currentState.renderTarget = renderTarget; - // bind the render taget to draw the shape in the top corner.. + // bind the render target to draw the shape in the top corner.. renderTarget.setFrame(destinationFrame, sourceFrame); // bind the render target @@ -279,7 +279,7 @@ const uniformData = filter.uniformData; const uniforms = filter.uniforms; - // 0 is reserverd for the pixi texture so we start at 1! + // 0 is reserved for the pixi texture so we start at 1! let textureCount = 1; let currentState; @@ -494,7 +494,7 @@ */ getPotRenderTarget(gl, minWidth, minHeight, resolution) { - // TODO you coud return a bigger texture if there is not one in the pool? + // TODO you could return a bigger texture if there is not one in the pool? minWidth = bitTwiddle.nextPow2(minWidth * resolution); minHeight = bitTwiddle.nextPow2(minHeight * resolution); diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/renderers/webgl/TextureManager.js b/src/core/renderers/webgl/TextureManager.js index f0c85f2..ba892bd 100644 --- a/src/core/renderers/webgl/TextureManager.js +++ b/src/core/renderers/webgl/TextureManager.js @@ -148,7 +148,7 @@ glTexture.enableLinearScaling(); } } - // the textur ealrady exists so we only need to update it.. + // the texture already exists so we only need to update it.. else if (isRenderTexture) { texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height); diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 20ccfee..88ebdbb 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -308,7 +308,7 @@ } /** - * This shoudl be called if you wish to do some custom rendering + * This should be called if you wish to do some custom rendering * It will basically render anything that may be batched up such as sprites * */ @@ -457,7 +457,7 @@ /** * Binds the texture. This will return the location of the bound texture. * It may not be the same as the one you pass in. This is due to optimisation that prevents - * needless binding of textures. For example if the texture isalready bound it will return the + * needless binding of textures. For example if the texture is already bound it will return the * current location of the texture instead of the one provided. To bypass this use force location * * @param {PIXI.Texture} texture - the new texture diff --git a/src/core/renderers/webgl/WebGLState.js b/src/core/renderers/webgl/WebGLState.js index 0749982..ba6ecc5 100755 --- a/src/core/renderers/webgl/WebGLState.js +++ b/src/core/renderers/webgl/WebGLState.js @@ -245,7 +245,7 @@ this.nativeVaoExtension.bindVertexArrayOES(null); } - // reset all attributs.. + // reset all attributes.. this.resetAttributes(); // set active state so we can force overrides of gl state diff --git a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js index e803c40..d78a0b1 100644 --- a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js +++ b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js @@ -17,7 +17,7 @@ const uniforms = {}; let nameSplit; - // clean the lines a little - remove extra spaces / teabs etc + // clean the lines a little - remove extra spaces / tabs etc // then split along ';' const lines = string.replace(/\s+/g, ' ') .split(/\s*;\s*/); diff --git a/src/core/renderers/webgl/filters/filterTransforms.js b/src/core/renderers/webgl/filters/filterTransforms.js index d27d815..5fde3d3 100644 --- a/src/core/renderers/webgl/filters/filterTransforms.js +++ b/src/core/renderers/webgl/filters/filterTransforms.js @@ -7,7 +7,7 @@ * @param outputMatrix {Matrix} @alvin */ // TODO playing around here.. this is temporary - (will end up in the shader) -// thia returns a matrix that will normalise map filter cords in the filter to screen space +// this returns a matrix that will normalise map filter cords in the filter to screen space export function calculateScreenSpaceMatrix(outputMatrix, filterArea, textureSize) { // let worldTransform = sprite.worldTransform.copy(Matrix.TEMP_MATRIX), diff --git a/src/core/renderers/webgl/managers/FilterManager.js b/src/core/renderers/webgl/managers/FilterManager.js index 802ceb2..56bb0f6 100644 --- a/src/core/renderers/webgl/managers/FilterManager.js +++ b/src/core/renderers/webgl/managers/FilterManager.js @@ -111,15 +111,15 @@ sourceFrame.fit(filterData.stack[0].destinationFrame); } - // lets pplay the padding After we fit the element to the screen. - // this should stop the strange side effects that can occour when cropping to the edges + // lets apply the padding After we fit the element to the screen. + // this should stop the strange side effects that can occur when cropping to the edges sourceFrame.pad(padding); destinationFrame.width = sourceFrame.width; destinationFrame.height = sourceFrame.height; // lets play the padding after we fit the element to the screen. - // this should stop the strange side effects that can occour when cropping to the edges + // this should stop the strange side effects that can occur when cropping to the edges const renderTarget = this.getPotRenderTarget(renderer.gl, sourceFrame.width, sourceFrame.height, resolution); @@ -128,7 +128,7 @@ currentState.resolution = resolution; currentState.renderTarget = renderTarget; - // bind the render taget to draw the shape in the top corner.. + // bind the render target to draw the shape in the top corner.. renderTarget.setFrame(destinationFrame, sourceFrame); // bind the render target @@ -279,7 +279,7 @@ const uniformData = filter.uniformData; const uniforms = filter.uniforms; - // 0 is reserverd for the pixi texture so we start at 1! + // 0 is reserved for the pixi texture so we start at 1! let textureCount = 1; let currentState; @@ -494,7 +494,7 @@ */ getPotRenderTarget(gl, minWidth, minHeight, resolution) { - // TODO you coud return a bigger texture if there is not one in the pool? + // TODO you could return a bigger texture if there is not one in the pool? minWidth = bitTwiddle.nextPow2(minWidth * resolution); minHeight = bitTwiddle.nextPow2(minHeight * resolution); diff --git a/src/core/renderers/webgl/utils/RenderTarget.js b/src/core/renderers/webgl/utils/RenderTarget.js index 2f84e56..0286f60 100644 --- a/src/core/renderers/webgl/utils/RenderTarget.js +++ b/src/core/renderers/webgl/utils/RenderTarget.js @@ -214,7 +214,7 @@ // TOOD refactor usage of frame.. const gl = this.gl; - // make surethe texture is unbound! + // make sure the texture is unbound! this.frameBuffer.bind(); this.calculateProjection(this.destinationFrame, this.sourceFrame); diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/renderers/webgl/TextureManager.js b/src/core/renderers/webgl/TextureManager.js index f0c85f2..ba892bd 100644 --- a/src/core/renderers/webgl/TextureManager.js +++ b/src/core/renderers/webgl/TextureManager.js @@ -148,7 +148,7 @@ glTexture.enableLinearScaling(); } } - // the textur ealrady exists so we only need to update it.. + // the texture already exists so we only need to update it.. else if (isRenderTexture) { texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height); diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 20ccfee..88ebdbb 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -308,7 +308,7 @@ } /** - * This shoudl be called if you wish to do some custom rendering + * This should be called if you wish to do some custom rendering * It will basically render anything that may be batched up such as sprites * */ @@ -457,7 +457,7 @@ /** * Binds the texture. This will return the location of the bound texture. * It may not be the same as the one you pass in. This is due to optimisation that prevents - * needless binding of textures. For example if the texture isalready bound it will return the + * needless binding of textures. For example if the texture is already bound it will return the * current location of the texture instead of the one provided. To bypass this use force location * * @param {PIXI.Texture} texture - the new texture diff --git a/src/core/renderers/webgl/WebGLState.js b/src/core/renderers/webgl/WebGLState.js index 0749982..ba6ecc5 100755 --- a/src/core/renderers/webgl/WebGLState.js +++ b/src/core/renderers/webgl/WebGLState.js @@ -245,7 +245,7 @@ this.nativeVaoExtension.bindVertexArrayOES(null); } - // reset all attributs.. + // reset all attributes.. this.resetAttributes(); // set active state so we can force overrides of gl state diff --git a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js index e803c40..d78a0b1 100644 --- a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js +++ b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js @@ -17,7 +17,7 @@ const uniforms = {}; let nameSplit; - // clean the lines a little - remove extra spaces / teabs etc + // clean the lines a little - remove extra spaces / tabs etc // then split along ';' const lines = string.replace(/\s+/g, ' ') .split(/\s*;\s*/); diff --git a/src/core/renderers/webgl/filters/filterTransforms.js b/src/core/renderers/webgl/filters/filterTransforms.js index d27d815..5fde3d3 100644 --- a/src/core/renderers/webgl/filters/filterTransforms.js +++ b/src/core/renderers/webgl/filters/filterTransforms.js @@ -7,7 +7,7 @@ * @param outputMatrix {Matrix} @alvin */ // TODO playing around here.. this is temporary - (will end up in the shader) -// thia returns a matrix that will normalise map filter cords in the filter to screen space +// this returns a matrix that will normalise map filter cords in the filter to screen space export function calculateScreenSpaceMatrix(outputMatrix, filterArea, textureSize) { // let worldTransform = sprite.worldTransform.copy(Matrix.TEMP_MATRIX), diff --git a/src/core/renderers/webgl/managers/FilterManager.js b/src/core/renderers/webgl/managers/FilterManager.js index 802ceb2..56bb0f6 100644 --- a/src/core/renderers/webgl/managers/FilterManager.js +++ b/src/core/renderers/webgl/managers/FilterManager.js @@ -111,15 +111,15 @@ sourceFrame.fit(filterData.stack[0].destinationFrame); } - // lets pplay the padding After we fit the element to the screen. - // this should stop the strange side effects that can occour when cropping to the edges + // lets apply the padding After we fit the element to the screen. + // this should stop the strange side effects that can occur when cropping to the edges sourceFrame.pad(padding); destinationFrame.width = sourceFrame.width; destinationFrame.height = sourceFrame.height; // lets play the padding after we fit the element to the screen. - // this should stop the strange side effects that can occour when cropping to the edges + // this should stop the strange side effects that can occur when cropping to the edges const renderTarget = this.getPotRenderTarget(renderer.gl, sourceFrame.width, sourceFrame.height, resolution); @@ -128,7 +128,7 @@ currentState.resolution = resolution; currentState.renderTarget = renderTarget; - // bind the render taget to draw the shape in the top corner.. + // bind the render target to draw the shape in the top corner.. renderTarget.setFrame(destinationFrame, sourceFrame); // bind the render target @@ -279,7 +279,7 @@ const uniformData = filter.uniformData; const uniforms = filter.uniforms; - // 0 is reserverd for the pixi texture so we start at 1! + // 0 is reserved for the pixi texture so we start at 1! let textureCount = 1; let currentState; @@ -494,7 +494,7 @@ */ getPotRenderTarget(gl, minWidth, minHeight, resolution) { - // TODO you coud return a bigger texture if there is not one in the pool? + // TODO you could return a bigger texture if there is not one in the pool? minWidth = bitTwiddle.nextPow2(minWidth * resolution); minHeight = bitTwiddle.nextPow2(minHeight * resolution); diff --git a/src/core/renderers/webgl/utils/RenderTarget.js b/src/core/renderers/webgl/utils/RenderTarget.js index 2f84e56..0286f60 100644 --- a/src/core/renderers/webgl/utils/RenderTarget.js +++ b/src/core/renderers/webgl/utils/RenderTarget.js @@ -214,7 +214,7 @@ // TOOD refactor usage of frame.. const gl = this.gl; - // make surethe texture is unbound! + // make sure the texture is unbound! this.frameBuffer.bind(); this.calculateProjection(this.destinationFrame, this.sourceFrame); diff --git a/src/core/renderers/webgl/utils/validateContext.js b/src/core/renderers/webgl/utils/validateContext.js index 401ef79..1566a06 100644 --- a/src/core/renderers/webgl/utils/validateContext.js +++ b/src/core/renderers/webgl/utils/validateContext.js @@ -2,7 +2,7 @@ { const attributes = gl.getContextAttributes(); - // this is going to be fairly simple for now.. but at least we have rom to grow! + // this is going to be fairly simple for now.. but at least we have room to grow! if (!attributes.stencil) { /* eslint-disable no-console */ diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0e37bd1..bd9ee2f 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -348,7 +348,7 @@ } /** - * Convenience function to set the postion, scale, skew and pivot at once. + * Convenience function to set the position, scale, skew and pivot at once. * * @param {number} [x=0] - The X position * @param {number} [y=0] - The Y position diff --git a/src/core/graphics/webgl/WebGLGraphicsData.js b/src/core/graphics/webgl/WebGLGraphicsData.js index a0f375f..a24030e 100644 --- a/src/core/graphics/webgl/WebGLGraphicsData.js +++ b/src/core/graphics/webgl/WebGLGraphicsData.js @@ -23,7 +23,7 @@ */ this.gl = gl; - // TODO does this need to be split before uploding?? + // TODO does this need to be split before uploading?? /** * An array of color components (r,g,b) * @member {number[]} diff --git a/src/core/graphics/webgl/utils/buildComplexPoly.js b/src/core/graphics/webgl/utils/buildComplexPoly.js index a1cfe1a..f1641fa 100644 --- a/src/core/graphics/webgl/utils/buildComplexPoly.js +++ b/src/core/graphics/webgl/utils/buildComplexPoly.js @@ -12,7 +12,7 @@ */ export default function buildComplexPoly(graphicsData, webGLData) { - // TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. + // TODO - no need to copy this as it gets turned into a Float32Array anyways.. const points = graphicsData.points.slice(); if (points.length < 6) @@ -27,7 +27,7 @@ webGLData.alpha = graphicsData.fillAlpha; webGLData.color = hex2rgb(graphicsData.fillColor); - // calclate the bounds.. + // calculate the bounds.. let minX = Infinity; let maxX = -Infinity; diff --git a/src/core/math/Matrix.js b/src/core/math/Matrix.js index ac95a9a..e3341fe 100644 --- a/src/core/math/Matrix.js +++ b/src/core/math/Matrix.js @@ -343,7 +343,7 @@ * Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform. * * @param {PIXI.Transform|PIXI.TransformStatic} transform - The transform to apply the properties to. - * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properies + * @return {PIXI.Transform|PIXI.TransformStatic} The transform with the newly applied properties */ decompose(transform) { diff --git a/src/core/renderers/webgl/TextureManager.js b/src/core/renderers/webgl/TextureManager.js index f0c85f2..ba892bd 100644 --- a/src/core/renderers/webgl/TextureManager.js +++ b/src/core/renderers/webgl/TextureManager.js @@ -148,7 +148,7 @@ glTexture.enableLinearScaling(); } } - // the textur ealrady exists so we only need to update it.. + // the texture already exists so we only need to update it.. else if (isRenderTexture) { texture._glRenderTargets[this.renderer.CONTEXT_UID].resize(texture.width, texture.height); diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 20ccfee..88ebdbb 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -308,7 +308,7 @@ } /** - * This shoudl be called if you wish to do some custom rendering + * This should be called if you wish to do some custom rendering * It will basically render anything that may be batched up such as sprites * */ @@ -457,7 +457,7 @@ /** * Binds the texture. This will return the location of the bound texture. * It may not be the same as the one you pass in. This is due to optimisation that prevents - * needless binding of textures. For example if the texture isalready bound it will return the + * needless binding of textures. For example if the texture is already bound it will return the * current location of the texture instead of the one provided. To bypass this use force location * * @param {PIXI.Texture} texture - the new texture diff --git a/src/core/renderers/webgl/WebGLState.js b/src/core/renderers/webgl/WebGLState.js index 0749982..ba6ecc5 100755 --- a/src/core/renderers/webgl/WebGLState.js +++ b/src/core/renderers/webgl/WebGLState.js @@ -245,7 +245,7 @@ this.nativeVaoExtension.bindVertexArrayOES(null); } - // reset all attributs.. + // reset all attributes.. this.resetAttributes(); // set active state so we can force overrides of gl state diff --git a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js index e803c40..d78a0b1 100644 --- a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js +++ b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js @@ -17,7 +17,7 @@ const uniforms = {}; let nameSplit; - // clean the lines a little - remove extra spaces / teabs etc + // clean the lines a little - remove extra spaces / tabs etc // then split along ';' const lines = string.replace(/\s+/g, ' ') .split(/\s*;\s*/); diff --git a/src/core/renderers/webgl/filters/filterTransforms.js b/src/core/renderers/webgl/filters/filterTransforms.js index d27d815..5fde3d3 100644 --- a/src/core/renderers/webgl/filters/filterTransforms.js +++ b/src/core/renderers/webgl/filters/filterTransforms.js @@ -7,7 +7,7 @@ * @param outputMatrix {Matrix} @alvin */ // TODO playing around here.. this is temporary - (will end up in the shader) -// thia returns a matrix that will normalise map filter cords in the filter to screen space +// this returns a matrix that will normalise map filter cords in the filter to screen space export function calculateScreenSpaceMatrix(outputMatrix, filterArea, textureSize) { // let worldTransform = sprite.worldTransform.copy(Matrix.TEMP_MATRIX), diff --git a/src/core/renderers/webgl/managers/FilterManager.js b/src/core/renderers/webgl/managers/FilterManager.js index 802ceb2..56bb0f6 100644 --- a/src/core/renderers/webgl/managers/FilterManager.js +++ b/src/core/renderers/webgl/managers/FilterManager.js @@ -111,15 +111,15 @@ sourceFrame.fit(filterData.stack[0].destinationFrame); } - // lets pplay the padding After we fit the element to the screen. - // this should stop the strange side effects that can occour when cropping to the edges + // lets apply the padding After we fit the element to the screen. + // this should stop the strange side effects that can occur when cropping to the edges sourceFrame.pad(padding); destinationFrame.width = sourceFrame.width; destinationFrame.height = sourceFrame.height; // lets play the padding after we fit the element to the screen. - // this should stop the strange side effects that can occour when cropping to the edges + // this should stop the strange side effects that can occur when cropping to the edges const renderTarget = this.getPotRenderTarget(renderer.gl, sourceFrame.width, sourceFrame.height, resolution); @@ -128,7 +128,7 @@ currentState.resolution = resolution; currentState.renderTarget = renderTarget; - // bind the render taget to draw the shape in the top corner.. + // bind the render target to draw the shape in the top corner.. renderTarget.setFrame(destinationFrame, sourceFrame); // bind the render target @@ -279,7 +279,7 @@ const uniformData = filter.uniformData; const uniforms = filter.uniforms; - // 0 is reserverd for the pixi texture so we start at 1! + // 0 is reserved for the pixi texture so we start at 1! let textureCount = 1; let currentState; @@ -494,7 +494,7 @@ */ getPotRenderTarget(gl, minWidth, minHeight, resolution) { - // TODO you coud return a bigger texture if there is not one in the pool? + // TODO you could return a bigger texture if there is not one in the pool? minWidth = bitTwiddle.nextPow2(minWidth * resolution); minHeight = bitTwiddle.nextPow2(minHeight * resolution); diff --git a/src/core/renderers/webgl/utils/RenderTarget.js b/src/core/renderers/webgl/utils/RenderTarget.js index 2f84e56..0286f60 100644 --- a/src/core/renderers/webgl/utils/RenderTarget.js +++ b/src/core/renderers/webgl/utils/RenderTarget.js @@ -214,7 +214,7 @@ // TOOD refactor usage of frame.. const gl = this.gl; - // make surethe texture is unbound! + // make sure the texture is unbound! this.frameBuffer.bind(); this.calculateProjection(this.destinationFrame, this.sourceFrame); diff --git a/src/core/renderers/webgl/utils/validateContext.js b/src/core/renderers/webgl/utils/validateContext.js index 401ef79..1566a06 100644 --- a/src/core/renderers/webgl/utils/validateContext.js +++ b/src/core/renderers/webgl/utils/validateContext.js @@ -2,7 +2,7 @@ { const attributes = gl.getContextAttributes(); - // this is going to be fairly simple for now.. but at least we have rom to grow! + // this is going to be fairly simple for now.. but at least we have room to grow! if (!attributes.stencil) { /* eslint-disable no-console */ diff --git a/src/core/text/Text.js b/src/core/text/Text.js index 470d54b..79d1e15 100644 --- a/src/core/text/Text.js +++ b/src/core/text/Text.js @@ -529,7 +529,7 @@ // start the gradient at the top center of the canvas, and end at the bottom middle of the canvas gradient = this.context.createLinearGradient(width / 2, 0, width / 2, height); - // we need to repeat the gradient so that each invididual line of text has the same vertical gradient effect + // we need to repeat the gradient so that each individual line of text has the same vertical gradient effect // ['#FF0000', '#00FF00', '#0000FF'] over 2 lines would create stops at 0.125, 0.25, 0.375, 0.625, 0.75, 0.875 totalIterations = (style.fill.length + 1) * lines.length; currentIteration = 0; @@ -731,7 +731,7 @@ style = new TextStyle(style); } - // build canvas api font setting from invididual components. Convert a numeric style.fontSize to px + // build canvas api font setting from individual components. Convert a numeric style.fontSize to px const fontSizeString = (typeof style.fontSize === 'number') ? `${style.fontSize}px` : style.fontSize; return `${style.fontStyle} ${style.fontVariant} ${style.fontWeight} ${fontSizeString} ${style.fontFamily}`;