- 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.
28 lines
885 B
TypeScript
28 lines
885 B
TypeScript
import type { Rect, Size, Transform } from "@core/geometry";
|
|
|
|
export type InputLayerId = string;
|
|
export type InputArtboardId = string;
|
|
|
|
type InputBaseLayer = {
|
|
id: InputLayerId;
|
|
name?: string;
|
|
visible: boolean;
|
|
locked: boolean;
|
|
opacity?: number;
|
|
transform: Transform;
|
|
layerMask?: { maskLayerId: InputLayerId };
|
|
clippingMask?: { maskLayerId: InputLayerId };
|
|
};
|
|
|
|
export type InputLayer =
|
|
| (InputBaseLayer & { type: "group"; children: InputLayer[] })
|
|
| (InputBaseLayer & { type: "image" | "raster"; assetId: string });
|
|
|
|
export type InputDocument = {
|
|
id?: string;
|
|
name?: string;
|
|
version?: number;
|
|
assets: Array<{ id: string; name?: string; mimeType?: string; source?: string; intrinsicSize: Size }>;
|
|
artboards: Array<{ id: InputArtboardId; name?: string; backgroundColor?: string; visible: boolean; locked: boolean; bounds: Rect; layers: InputLayer[] }>;
|
|
};
|