diff --git a/app/canvas/[id]/page.tsx b/app/canvas/[id]/page.tsx index da475c5..2f78917 100644 --- a/app/canvas/[id]/page.tsx +++ b/app/canvas/[id]/page.tsx @@ -14,7 +14,6 @@ import { Hand, Plus, ImagePlus, - Video, Type, Loader2, Scissors, @@ -291,21 +290,6 @@ export default function CanvasEditorPage({ params }: PageProps) { }); }; - // 添加视频节点 - const handleAddVideoNode = () => { - addNode({ - type: 'video', - position: { x: 100 + Math.random() * 200, y: 100 + Math.random() * 200 }, - size: { width: 400, height: 300 }, - data: { - src: '', - status: 'pending', - prompt: '', - }, - connections: [], - }); - }; - // 处理图片操作(通过事件分发到选中图片节点执行) const handleAction = (action: string) => { if (!selectedImageNode) { @@ -606,7 +590,7 @@ export default function CanvasEditorPage({ params }: PageProps) { {/* 5. Floating Bottom Toolbar (Left) */}
- {/* Tools: Select, Pan, Add Text, Add Image, Add Video */} + {/* Tools: Select, Pan, Add Text, Add Image */} - - 添加视频 - )}