mirror of
https://github.com/basketikun/infinite-canvas.git
synced 2026-08-04 16:14:22 +08:00
feat(canvas): add group node support with drag-and-drop functionality
This commit is contained in:
@@ -9,11 +9,11 @@ type CanvasNodeSpec = {
|
||||
};
|
||||
|
||||
export const NODE_DEFAULT_SIZE = {
|
||||
[CanvasNodeType.Image]: { width: 340, height: 240, title: "New Generation" },
|
||||
[CanvasNodeType.Text]: { width: 340, height: 240, title: "Note" },
|
||||
[CanvasNodeType.Image]: { width: 340, height: 240, title: "图片" },
|
||||
[CanvasNodeType.Text]: { width: 340, height: 240, title: "文本" },
|
||||
[CanvasNodeType.Config]: { width: 340, height: 240, title: "生成配置" },
|
||||
[CanvasNodeType.Video]: { width: 420, height: 236, title: "Video" },
|
||||
[CanvasNodeType.Audio]: { width: 340, height: 120, title: "Audio" },
|
||||
[CanvasNodeType.Video]: { width: 420, height: 236, title: "视频" },
|
||||
[CanvasNodeType.Audio]: { width: 340, height: 120, title: "音频" },
|
||||
[CanvasNodeType.Group]: { width: 760, height: 480, title: "组" },
|
||||
} satisfies Record<CanvasNodeType, { width: number; height: number; title: string }>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user