* feat(canvas): 短剧项目空间 - 建立项目章节与画布关联 MVP * feat(canvas): 短剧项目空间 - 完善项目资产、镜头与流程闭环 Refs #30 * fix(deploy): 本地部署 - 修复前端构建并忽略本地 PostgreSQL 配置 * feat(*): 短剧项目空间 - 完成项目、章节、资产、角色与画布创作闭环 Refs #30 --------- Co-authored-by: ddCat <ddcat666@88.com>
9 lines
889 B
TypeScript
9 lines
889 B
TypeScript
export type Position = { x: number; y: number };
|
|
export type Viewport = { x: number; y: number; k: number };
|
|
export type CanvasNodeType = "image" | "text" | "script" | "config" | "video" | "audio" | "frame";
|
|
export type CanvasNode = { id: string; type: CanvasNodeType; title?: string; position: Position; width: number; height: number; parentId?: string; metadata?: Record<string, unknown> };
|
|
export type CanvasConnection = { id: string; fromNodeId: string; toNodeId: string; fromHandleId?: string; toHandleId?: string };
|
|
export type CanvasSnapshot = { projectId?: string; domainProjectId?: string; title?: string; nodes?: CanvasNode[]; connections?: CanvasConnection[]; selectedNodeIds?: string[]; viewport?: Viewport; clientId?: string };
|
|
export type AgentEmit = (type: string, payload: unknown) => void;
|
|
export type AgentAttachment = { name?: string; type?: string; dataUrl?: string };
|