mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-03 12:10:11 +00:00
Rename to ts (#92)
Rename Remove ts-nocheck, fix errors Update state when graph cleared via UI (#88) Convert to ts, fix imports Co-authored-by: pythongosssss <125205205+pythongosssss@users.noreply.github.com>
This commit is contained in:
@@ -20,9 +20,9 @@ import {
|
||||
parseComfyWorkflow,
|
||||
} from "../types/comfyWorkflow";
|
||||
import { ComfyNodeDef } from "/types/apiTypes";
|
||||
import { ComfyAppMenu } from "./ui/menu/index.js";
|
||||
import { getStorageValue, setStorageValue } from "./utils.js";
|
||||
import { ComfyWorkflowManager } from "./workflows.js";
|
||||
import { ComfyAppMenu } from "./ui/menu/index";
|
||||
import { getStorageValue } from "./utils";
|
||||
import { ComfyWorkflowManager, ComfyWorkflow } from "./workflows";
|
||||
import {
|
||||
LGraphCanvas,
|
||||
LGraph,
|
||||
@@ -2179,16 +2179,11 @@ export class ComfyApp {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Populates the graph with the specified workflow data
|
||||
* @param {*} graphData A serialized graph object
|
||||
* @param { boolean } clean If the graph state, e.g. images, should be cleared
|
||||
*/
|
||||
async loadGraphData(
|
||||
graphData?: ComfyWorkflowJSON,
|
||||
clean: boolean = true,
|
||||
restore_view: boolean = true,
|
||||
workflow: string | null = null
|
||||
workflow: string | null | ComfyWorkflow = null
|
||||
) {
|
||||
if (clean !== false) {
|
||||
this.clean();
|
||||
|
||||
Reference in New Issue
Block a user