feat: add ComfyUI integration for image generation and management
- 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.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { commandIds } from "@commands/ids";
|
||||
import type { Dispatch } from "@commands/dispatcher";
|
||||
import type { ImageDocument } from "@core/document";
|
||||
import type { Rect, Vec2D } from "@core/geometry";
|
||||
import type { InputDocument } from "./read-model";
|
||||
import {
|
||||
documentRectToViewportRect,
|
||||
resolveTransformTargetBounds,
|
||||
@@ -39,7 +39,7 @@ export type TransformControlsInputController = {
|
||||
};
|
||||
|
||||
export function createTransformControlsInputController(options: {
|
||||
getDocument: () => ImageDocument;
|
||||
getDocument: () => InputDocument;
|
||||
getEditor: () => TransformControlsEditorState;
|
||||
dispatch: Dispatch;
|
||||
}): TransformControlsInputController {
|
||||
@@ -93,7 +93,7 @@ export function hitTestArtboardTransformHandle(position: Vec2D, bounds: Rect, vi
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function isTransformTargetLocked(document: ImageDocument, target: InputTransformTarget) {
|
||||
function isTransformTargetLocked(document: InputDocument, target: InputTransformTarget) {
|
||||
if (target.type === "artboard") {
|
||||
const artboard = document.artboards.find((candidate) => candidate.id === target.id);
|
||||
return !artboard || !artboard.visible || artboard.locked;
|
||||
|
||||
Reference in New Issue
Block a user