Format everything (#211)

This commit is contained in:
Chenlei Hu
2024-07-23 15:40:54 -04:00
committed by GitHub
parent 648e52e39c
commit 1b7db43f8a
25 changed files with 1014 additions and 526 deletions

View File

@@ -13,7 +13,7 @@ export class ChangeTracker {
isOurLoad = false;
workflow: ComfyWorkflow | null;
ds: { scale: number; offset: [number, number]; };
ds: { scale: number; offset: [number, number] };
nodeOutputs: any;
get app() {

View File

@@ -24,7 +24,10 @@ export class ComfyWorkflowManager extends EventTarget {
workflowLookup: Record<string, ComfyWorkflow> = {};
workflows: Array<ComfyWorkflow> = [];
openWorkflows: Array<ComfyWorkflow> = [];
queuedPrompts: Record<string, { workflow?: ComfyWorkflow; nodes?: Record<string, boolean>; }> = {};
queuedPrompts: Record<
string,
{ workflow?: ComfyWorkflow; nodes?: Record<string, boolean> }
> = {};
app: ComfyApp;
get activeWorkflow() {
@@ -254,7 +257,12 @@ export class ComfyWorkflow {
return !!this.changeTracker;
}
constructor(manager: ComfyWorkflowManager, path: string, pathParts?: string[], isFavorite?: boolean) {
constructor(
manager: ComfyWorkflowManager,
path: string,
pathParts?: string[],
isFavorite?: boolean
) {
this.manager = manager;
if (pathParts) {
this.#updatePath(path, pathParts);