diff --git a/web/js/jsnodes.js b/web/js/jsnodes.js index 906f26e..02fdc43 100644 --- a/web/js/jsnodes.js +++ b/web/js/jsnodes.js @@ -173,10 +173,13 @@ app.registerExtension({ }; break; - } + } + + }, + async setup() { // to keep Set/Get node virtual connections visible when offscreen const originalComputeVisibleNodes = LGraphCanvas.prototype.computeVisibleNodes; - LGraphCanvas.prototype.computeVisibleNodes = function (nodes, out) { + LGraphCanvas.prototype.computeVisibleNodes = function () { const visibleNodesSet = new Set(originalComputeVisibleNodes.apply(this, arguments)); for (const node of this.graph._nodes) { if ((node.type === "SetNode" || node.type === "GetNode") && node.drawConnection) { @@ -185,5 +188,6 @@ app.registerExtension({ } return Array.from(visibleNodesSet); }; - }, + + } }); \ No newline at end of file