feat(canvas): 多角度贴节点、宫格切分菜单与多选虚线框跟随

把多角度改成贴在图片节点下方的 3D 编辑器并跟随拖动;宫格切分并入图片工具,自定义面板不关菜单;切分后子图按网格排开;多选虚线框随拖动预览平移。
This commit is contained in:
soonstudio-ai committed 2026-09-14 17:19:56 +08:00
1 parent 9727656b2b
commit 8e82e67cb3
26 files changed
+1431 -153

No files matched your search

@@ -14,7 +14,6 @@ type ImageToolHandlers = {
onEmotion: (node: CanvasNodeData) => void;
onPortraitTexture: (node: CanvasNodeData) => void;
onCrop: (node: CanvasNodeData) => void;
onSplit: (node: CanvasNodeData) => void;
onUpscale: (node: CanvasNodeData) => void;
onSuperResolve: (node: CanvasNodeData) => void;
onAngle: (node: CanvasNodeData) => void;
@@ -131,8 +130,8 @@ const imageToolDefinitions: ImageToolDefinition[] = [
description: "按行列拆成多个图片节点",
icon: () => <Grid2x2 className="size-3.5" />,
group: "process",
order: 30,
run: (node, handlers) => handlers.onSplit(node),
order: 45,
run: () => undefined,
},
{
id: "upscale",