diff --git a/build/litegraph.js b/build/litegraph.js index 07e9f5b27..9b3f38c9e 100644 --- a/build/litegraph.js +++ b/build/litegraph.js @@ -7995,7 +7995,7 @@ LGraphNode.prototype.executeAction = function(action) if (!str) return; if (that.onSearchBox) { - var list = that.onSearchBox(help, str, graphcanvas); + var list = that.onSearchBox(helper, str, graphcanvas); if (list) for (var i = 0; i < list.length; ++i) addResult(list[i]); } else { @@ -11848,6 +11848,7 @@ if (typeof exports != "undefined") exports.LiteGraph = this.LiteGraph; for (var i = 0, l = this.outputs.length; i < l; ++i) { var output = this.outputs[i]; if (!output.links || !output.links.length) continue; + var value; switch (output.name) { case "A==B": value = A == B; @@ -12014,6 +12015,7 @@ if (typeof exports != "undefined") exports.LiteGraph = this.LiteGraph; for (var i = 0, l = this.outputs.length; i < l; ++i) { var output = this.outputs[i]; + var value; switch (output.name) { case "sin": value = Math.sin(v); @@ -15705,7 +15707,7 @@ LGraphTextureKuwaharaFilter.pixel_shader = "\n\ that._webcam_stream = false; that.boxcolor = "red"; that.trigger("stream_error"); - }; + } } LGraphTextureWebcam.prototype.closeStream = function() @@ -17143,6 +17145,7 @@ LGraphTextureKuwaharaFilter.pixel_shader = "\n\ gl.disable(gl.DEPTH_TEST); var mesh = Mesh.getScreenQuad(); var camera = global.LS ? LS.Renderer._current_camera : null; + var camera_planes; if (camera) camera_planes = [ LS.Renderer._current_camera.near, diff --git a/build/litegraph.min.js b/build/litegraph.min.js index 70d954e1f..bddd119bc 100755 --- a/build/litegraph.min.js +++ b/build/litegraph.min.js @@ -3720,7 +3720,7 @@ $jscomp.polyfill("Array.prototype.keys", function(w) { k.innerHTML = ""; if (d) { if (e.onSearchBox) { - var g = e.onSearchBox(help, d, z); + var g = e.onSearchBox(k, d, z); if (g) { for (var G = 0; G < g.length; ++G) { a(g[G]); @@ -5855,24 +5855,24 @@ $jscomp.polyfill("Array.prototype.keys", function(w) { if (e.links && e.links.length) { switch(e.name) { case "A==B": - value = a == b; + var g = a == b; break; case "A!=B": - value = a != b; + g = a != b; break; case "A>B": - value = a > b; + g = a > b; break; case "A=B": - value = a >= b; + g = a >= b; } - this.setOutputData(d, value); + this.setOutputData(d, g); } } }; @@ -5942,24 +5942,24 @@ $jscomp.polyfill("Array.prototype.keys", function(w) { for (var e = this.outputs.length; d < e; ++d) { switch(this.outputs[d].name) { case "sin": - value = Math.sin(a); + var g = Math.sin(a); break; case "cos": - value = Math.cos(a); + g = Math.cos(a); break; case "tan": - value = Math.tan(a); + g = Math.tan(a); break; case "asin": - value = Math.asin(a); + g = Math.asin(a); break; case "acos": - value = Math.acos(a); + g = Math.acos(a); break; case "atan": - value = Math.atan(a); + g = Math.atan(a); } - this.setOutputData(d, b * value + c); + this.setOutputData(d, b * g + c); } }; d.prototype.onGetInputs = function() { @@ -7823,13 +7823,13 @@ $jscomp.polyfill("Array.prototype.keys", function(w) { gl.disable(gl.BLEND); gl.disable(gl.DEPTH_TEST); var z = Mesh.getScreenQuad(); - camera_planes = w.LS && LS.Renderer._current_camera ? [LS.Renderer._current_camera.near, LS.Renderer._current_camera.far] : [1, 100]; - var D = null; - "noise" == q && (D = LGraphTexture.getNoiseTexture()); + var D = w.LS && LS.Renderer._current_camera ? [LS.Renderer._current_camera.near, LS.Renderer._current_camera.far] : [1, 100]; + var p = null; + "noise" == q && (p = LGraphTexture.getNoiseTexture()); this._tex.drawTo(function() { e.bind(0); - "noise" == q && D.bind(1); - C.uniforms({u_texture:0, u_noise:1, u_size:[e.width, e.height], u_rand:[Math.random(), Math.random()], u_value1:h, u_value2:m, u_camera_planes:camera_planes}).draw(z); + "noise" == q && p.bind(1); + C.uniforms({u_texture:0, u_noise:1, u_size:[e.width, e.height], u_rand:[Math.random(), Math.random()], u_value1:h, u_value2:m, u_camera_planes:D}).draw(z); }); this.setOutputData(0, this._tex); }