mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
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:
4
public/litegraph.d.ts
vendored
4
public/litegraph.d.ts
vendored
@@ -437,10 +437,6 @@ export declare class LGraph {
|
|||||||
|
|
||||||
get nodes(): LGraphNode[];
|
get nodes(): LGraphNode[];
|
||||||
get groups(): LGraphGroup[];
|
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[];
|
getSupportedTypes(): string[];
|
||||||
/** Removes all nodes from this graph */
|
/** Removes all nodes from this graph */
|
||||||
|
|||||||
@@ -877,22 +877,6 @@ const globalExport = {};
|
|||||||
return this._groups;
|
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
|
* Attach Canvas to this graph
|
||||||
* @method attachCanvas
|
* @method attachCanvas
|
||||||
@@ -2155,6 +2139,7 @@ const globalExport = {};
|
|||||||
for (var i in data) {
|
for (var i in data) {
|
||||||
if (i == "nodes" || i == "groups") //links must be accepted
|
if (i == "nodes" || i == "groups") //links must be accepted
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
this[i] = data[i];
|
this[i] = data[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user