diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.npmignore diff --git a/package.json b/package.json index 5b340e0..94140a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pixi.js", - "version": "4.1.0", + "version": "4.1.1", "description": "Pixi.js is a fast lightweight 2D library that works across all devices.", "author": "Mat Groves", "contributors": [ diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.npmignore diff --git a/package.json b/package.json index 5b340e0..94140a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pixi.js", - "version": "4.1.0", + "version": "4.1.1", "description": "Pixi.js is a fast lightweight 2D library that works across all devices.", "author": "Mat Groves", "contributors": [ diff --git a/src/core/graphics/webgl/utils/buildRectangle.js b/src/core/graphics/webgl/utils/buildRectangle.js index f2bba78..84f44b6 100644 --- a/src/core/graphics/webgl/utils/buildRectangle.js +++ b/src/core/graphics/webgl/utils/buildRectangle.js @@ -58,10 +58,10 @@ const tempPoints = graphicsData.points; graphicsData.points = [x, y, - x + width, y, - x + width, y + height, - x, y + height, - x, y]; + x + width, y, + x + width, y + height, + x, y + height, + x, y]; buildLine(graphicsData, webGLData); diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.npmignore diff --git a/package.json b/package.json index 5b340e0..94140a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pixi.js", - "version": "4.1.0", + "version": "4.1.1", "description": "Pixi.js is a fast lightweight 2D library that works across all devices.", "author": "Mat Groves", "contributors": [ diff --git a/src/core/graphics/webgl/utils/buildRectangle.js b/src/core/graphics/webgl/utils/buildRectangle.js index f2bba78..84f44b6 100644 --- a/src/core/graphics/webgl/utils/buildRectangle.js +++ b/src/core/graphics/webgl/utils/buildRectangle.js @@ -58,10 +58,10 @@ const tempPoints = graphicsData.points; graphicsData.points = [x, y, - x + width, y, - x + width, y + height, - x, y + height, - x, y]; + x + width, y, + x + width, y + height, + x, y + height, + x, y]; buildLine(graphicsData, webGLData); diff --git a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js index 24df710..e803c40 100644 --- a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js +++ b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js @@ -38,7 +38,7 @@ if (name.indexOf('[') > -1) { // array! - nameSplit = name.split(/\[|\]/); + nameSplit = name.split(/\[|]/); name = nameSplit[0]; size *= Number(nameSplit[1]); } diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.npmignore diff --git a/package.json b/package.json index 5b340e0..94140a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pixi.js", - "version": "4.1.0", + "version": "4.1.1", "description": "Pixi.js is a fast lightweight 2D library that works across all devices.", "author": "Mat Groves", "contributors": [ diff --git a/src/core/graphics/webgl/utils/buildRectangle.js b/src/core/graphics/webgl/utils/buildRectangle.js index f2bba78..84f44b6 100644 --- a/src/core/graphics/webgl/utils/buildRectangle.js +++ b/src/core/graphics/webgl/utils/buildRectangle.js @@ -58,10 +58,10 @@ const tempPoints = graphicsData.points; graphicsData.points = [x, y, - x + width, y, - x + width, y + height, - x, y + height, - x, y]; + x + width, y, + x + width, y + height, + x, y + height, + x, y]; buildLine(graphicsData, webGLData); diff --git a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js index 24df710..e803c40 100644 --- a/src/core/renderers/webgl/filters/extractUniformsFromSrc.js +++ b/src/core/renderers/webgl/filters/extractUniformsFromSrc.js @@ -38,7 +38,7 @@ if (name.indexOf('[') > -1) { // array! - nameSplit = name.split(/\[|\]/); + nameSplit = name.split(/\[|]/); name = nameSplit[0]; size *= Number(nameSplit[1]); } diff --git a/src/mesh/Mesh.js b/src/mesh/Mesh.js index d9f6c69..21e5a61 100644 --- a/src/mesh/Mesh.js +++ b/src/mesh/Mesh.js @@ -36,9 +36,9 @@ * @member {Float32Array} */ this.uvs = uvs || new Float32Array([0, 0, - 1, 0, - 1, 1, - 0, 1]); + 1, 0, + 1, 1, + 0, 1]); /** * An array of vertices @@ -46,9 +46,9 @@ * @member {Float32Array} */ this.vertices = vertices || new Float32Array([0, 0, - 100, 0, - 100, 100, - 0, 100]); + 100, 0, + 100, 100, + 0, 100]); /* * @member {Uint16Array} An array containing the indices of the vertices