feat(canvas): 创作体验 - 合并 PR #282 并优化引用、风格与素材文件夹

This commit is contained in:
ddCat
2026-08-21 09:23:31 +08:00
42 changed files with 2795 additions and 153 deletions

View File

@@ -29,6 +29,8 @@ export type CanvasNodeStatus = "idle" | "success" | "loading" | "error";
export type CanvasMediaPerformanceMode = "auto" | "quality" | "performance";
export type CanvasWorkspaceMode = "simple" | "professional";
export type CanvasToolMode = "move" | "box-select";
export type CanvasFolderStyle = "glass" | "stacked" | "midnight" | "paper" | "cinema" | "compact";
export type CanvasFolderTheme = "aurora" | "obsidian" | "ember" | "pearl";
export type StoryboardShotDuration = "auto" | "5" | "10" | "15" | "30";
export type StoryboardShotCount = "auto" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
export type StoryboardVideoInputMode = "direct" | "keyframe";
@@ -303,6 +305,15 @@ export type CanvasNodeMetadata = {
expandedWidth: number;
expandedHeight: number;
};
folder?: {
style: CanvasFolderStyle;
theme?: CanvasFolderTheme;
createdAt: string;
// 自定义主题资源覆盖预置主题;目录内容永远从 childNodes 读取。
themeCover?: string;
assetFolderId?: string;
projectId?: string;
};
drawingId?: string;
drawingEngine?: "tldraw" | "excalidraw";
drawingRevision?: number;