checkpoint

This commit is contained in:
Will Miao
2025-03-02 15:44:14 +08:00
parent 1c329ac6ca
commit 2f445de43a
4 changed files with 31 additions and 105 deletions

View File

@@ -21,4 +21,19 @@ export function hideWidgetForGood(node, widget, suffix = "") {
hideWidgetForGood(node, w, `:${widget.name}`);
}
}
}
// Wrapper class to handle 'two element array bug' in LiteGraph or comfyui
export class DataWrapper {
constructor(data) {
this.data = data;
}
getData() {
return this.data;
}
setData(data) {
this.data = data;
}
}