Add audio widget (#3863)

* Add audio widget

* Fix audio bugs

* Add CSS

* Populate audio widget when load history
This commit is contained in:
Chenlei Hu
2024-06-27 00:22:55 -04:00
committed by GitHub
parent 44947e7ad4
commit 3b423afcca
4 changed files with 199 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ export class ComfyApp {
* Stores the execution output data for each node
* @type {Record<string, any>}
*/
this.nodeOutputs = {};
this._nodeOutputs = {};
/**
* Stores the preview image data for each node
@@ -86,6 +86,15 @@ export class ComfyApp {
this.shiftDown = false;
}
get nodeOutputs() {
return this._nodeOutputs;
}
set nodeOutputs(value) {
this._nodeOutputs = value;
this.#invokeExtensions("onNodeOutputsUpdated", value);
}
getPreviewFormatParam() {
let preview_format = this.ui.settings.getSettingValue("Comfy.PreviewFormat");
if(preview_format)