mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-13 04:55:53 +00:00
Add audio widget (#3863)
* Add audio widget * Fix audio bugs * Add CSS * Populate audio widget when load history
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user