Fix configure trying to write to getter field (#143)

* Fix configure trying to write to getter field

* Only add getter for nodes and groups
This commit is contained in:
Chenlei Hu
2024-09-14 17:02:22 +09:00
committed by GitHub
parent 09ee00b92a
commit 574a4ee440
2 changed files with 1 additions and 20 deletions

View File

@@ -437,10 +437,6 @@ export declare class LGraph {
get nodes(): LGraphNode[];
get groups(): LGraphGroup[];
get nodes_by_id(): Record<number, LGraphNode>;
get nodes_executable(): (LGraphNode & { onExecute: NonNullable<LGraphNode["onExecute"]> }[] | null);
get nodes_in_order(): LGraphNode[];
get version(): number;
getSupportedTypes(): string[];
/** Removes all nodes from this graph */

View File

@@ -877,22 +877,6 @@ const globalExport = {};
return this._groups;
}
get nodes_by_id() {
return this._nodes_by_id;
}
get nodes_executable() {
return this._nodes_executable;
}
get nodes_in_order() {
return this._nodes_in_order;
}
get version() {
return this._version;
}
/**
* Attach Canvas to this graph
* @method attachCanvas
@@ -2155,6 +2139,7 @@ const globalExport = {};
for (var i in data) {
if (i == "nodes" || i == "groups") //links must be accepted
continue;
this[i] = data[i];
}