From 1e07c6ae2608e889927d080f40fcbd16c4c2bba6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 9 Feb 2026 01:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=97=A0=E9=99=90=E7=94=BB?= =?UTF-8?q?=E5=B8=83=E4=BE=A7=E6=A0=8F=E6=B7=BB=E5=8A=A0=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/canvas/[id]/page.tsx | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) 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 */} - - 添加视频 - )}