Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/litegraph-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,19 @@ Editor.prototype.addMiniWindow = function(w, h) {
Editor.prototype.addMultiview = function()
{
var canvas = this.canvas;
if (this.graphcanvas2) {
this.graphcanvas2.setGraph(null, true);
this.graphcanvas2.viewport = null;
this.graphcanvas2 = null;
this.graphcanvas.viewport = null;
this.graphcanvas.setGraph(null, true);
this.graphcanvas = null;
var graphcanvas = new LGraphCanvas( canvas, this.graph );
graphcanvas.background_image = "imgs/grid.png";
this.graphcanvas = graphcanvas;
window.graphcanvas = this.graphcanvas;
return;
}
this.graphcanvas.ctx.fillStyle = "black";
this.graphcanvas.ctx.fillRect(0,0,canvas.width,canvas.height);
this.graphcanvas.viewport = [0,0,canvas.width*0.5-2,canvas.height];
Expand Down
3 changes: 2 additions & 1 deletion src/litegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
node_images_path: "",

debug: false,
show_info: true,
catch_exceptions: true,
throw_errors: true,
allow_scripts: false, //if set to true some nodes like Formula would be allowed to evaluate code that comes from unsafe sources (like node configuration), which could lead to exploits
Expand Down Expand Up @@ -5269,7 +5270,7 @@ LGraphNode.prototype.executeAction = function(action)
this.read_only = false; //if set to true users cannot modify the graph
this.render_only_selected = true;
this.live_mode = false;
this.show_info = true;
this.show_info = LiteGraph.show_info;
this.allow_dragcanvas = true;
this.allow_dragnodes = true;
this.allow_interaction = true; //allow to control widgets, buttons, collapse, etc
Expand Down