Skip to content

Commit

Permalink
Merge pull request #32 from giannif/master
Browse files Browse the repository at this point in the history
Use umd build for main in package.json, upgrade xhr package so import works
  • Loading branch information
patriciogonzalezvivo authored Jun 14, 2018
2 parents dbfabb1 + cecbd69 commit e30f862
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 16 deletions.
5 changes: 2 additions & 3 deletions dist/GlslCanvas.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@ function subscribeMixin$1(target) {
}

// Texture management
// GL texture wrapper object for keeping track of a global set of textures, keyed by a unique user-defined name

var Texture = function () {
function Texture(gl, name) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
Expand Down Expand Up @@ -939,9 +941,6 @@ var Texture = function () {
return Texture;
}();

// Report max texture size for a GL context


Texture.getMaxTextureSize = function (gl) {
return gl.getParameter(gl.MAX_TEXTURE_SIZE);
};
Expand Down
5 changes: 2 additions & 3 deletions dist/GlslCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,8 @@ function subscribeMixin$1(target) {
}

// Texture management
// GL texture wrapper object for keeping track of a global set of textures, keyed by a unique user-defined name

var Texture = function () {
function Texture(gl, name) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
Expand Down Expand Up @@ -1344,9 +1346,6 @@ var Texture = function () {
return Texture;
}();

// Report max texture size for a GL context


Texture.getMaxTextureSize = function (gl) {
return gl.getParameter(gl.MAX_TEXTURE_SIZE);
};
Expand Down
2 changes: 1 addition & 1 deletion dist/GlslCanvas.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/GlslCanvas.min.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions lib/GlslCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,8 @@ function subscribeMixin$1(target) {
}

// Texture management
// GL texture wrapper object for keeping track of a global set of textures, keyed by a unique user-defined name

var Texture = function () {
function Texture(gl, name) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
Expand Down Expand Up @@ -1340,9 +1342,6 @@ var Texture = function () {
return Texture;
}();

// Report max texture size for a GL context


Texture.getMaxTextureSize = function (gl) {
return gl.getParameter(gl.MAX_TEXTURE_SIZE);
};
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "glslCanvas",
"version": "0.1.3",
"description": "Simple GLSL Fragment Shader Sandbox",
"main": "lib/GlslCanvas.js",
"main": "dist/GlslCanvas.js",
"module": "dist/GlslCanvas.es.js",
"jsnext:main": "dist/GlslCanvas.es.js",
"scripts": {
Expand Down Expand Up @@ -46,7 +46,7 @@
"uglify-es": "^3.1.6"
},
"dependencies": {
"xhr": "^2.4.0"
"xhr": "^2.5.0"
},
"browserify-shim": {}
}
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2038,9 +2038,9 @@ wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"

xhr@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/xhr/-/xhr-2.4.0.tgz#e16e66a45f869861eeefab416d5eff722dc40993"
xhr@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/xhr/-/xhr-2.5.0.tgz#bed8d1676d5ca36108667692b74b316c496e49dd"
dependencies:
global "~4.3.0"
is-function "^1.0.1"
Expand Down

0 comments on commit e30f862

Please sign in to comment.