fixed enableWebGL missing declarations

This commit is contained in:
altarfinch
2020-05-15 10:57:17 +02:00
parent 4fe32687d2
commit 93ba405a23
6 changed files with 1191 additions and 20306 deletions

File diff suppressed because it is too large Load Diff

3013
build/litegraph.min.js vendored

File diff suppressed because it is too large Load Diff

2
src/litegraph.d.ts vendored
View File

@@ -1146,7 +1146,7 @@ export declare class LGraphCanvas {
/** Called by `LGraphCanvas.processNodeDblClicked` */
onNodeDblClicked: ((node: LGraphNode) => void) | null;
/** Called by `LGraphCanvas.selectNodes` */
onSelectionChange: ((nodes) => void) | null;
onSelectionChange: ((nodes: Record<number, LGraphNode>) => void) | null;
/** Called by `LGraphCanvas.showSearchBox` */
onSearchBox:
| ((

View File

@@ -5585,8 +5585,8 @@ LGraphNode.prototype.executeAction = function(action)
if (widgets[i].computeSize)
widgets_height += widgets[i].computeSize(this.resizing_node.size[0])[1] + 4;
else
}
widgets_height += LiteGraph.NODE_WIDGET_HEIGHT + 4;
}
widgets_height += 8;
}

View File

@@ -1,5 +1,6 @@
(function(global) {
var LiteGraph = global.LiteGraph;
var LGraphTexture = global.LGraphTexture;
//Works with Litegl.js to create WebGL nodes
if (typeof GL != "undefined") {

View File

@@ -1,5 +1,6 @@
(function(global) {
var LiteGraph = global.LiteGraph;
var LGraphCanvas = global.LGraphCanvas;
//Works with Litegl.js to create WebGL nodes
global.LGraphTexture = null;