- Implemented ComfyGenerateRequest type and associated functions for generating images using various architectures and modes. - Added functions for listing generation options and handling image uploads. - Created workflows for different generation modes including SDXL, Z-Image, Z-Image Turbo, and Anima. - Introduced GenerationJobStatus component to display the status of ongoing generation jobs. - Developed MaskControls for managing mask operations and displaying mask analysis. - Created palette items for tool selection, layer management, and generation settings.
17 lines
635 B
TypeScript
17 lines
635 B
TypeScript
import type { Command } from "./command";
|
|
import { commandIds } from "./ids";
|
|
|
|
export type EditorSetPointerSessionPayload = { type: "pan" } | undefined;
|
|
|
|
export const editorSetPointerSessionCommand: Command<EditorSetPointerSessionPayload> = {
|
|
id: commandIds.editorSetPointerSession,
|
|
name: "Set pointer session",
|
|
history: { mode: "ignore" },
|
|
execute({ state }, payload) {
|
|
if (state.editor.pointerSession?.type === payload?.type) return state;
|
|
return { ...state, editor: { ...state.editor, pointerSession: payload } };
|
|
},
|
|
};
|
|
|
|
export const editorCommands = [editorSetPointerSessionCommand] satisfies Command<unknown>[];
|