{type === 'EMOTIONAL_MEMORY' &&
}
- {type === 'FORGETTING_MANAGEMENT' &&
}
+ {type === 'FORGET_MEMORY' &&
}
{type === 'IMPLICIT_MEMORY' &&
}
{type === 'SHORT_TERM_MEMORY' &&
}
{type === 'PERCEPTUAL_MEMORY' &&
}
diff --git a/web/src/views/Workflow/components/CanvasToolbar.tsx b/web/src/views/Workflow/components/CanvasToolbar.tsx
index f5bf7e9c..8ca272e1 100644
--- a/web/src/views/Workflow/components/CanvasToolbar.tsx
+++ b/web/src/views/Workflow/components/CanvasToolbar.tsx
@@ -1,7 +1,8 @@
import type { FC } from 'react';
-import { Select, Button } from 'antd';
-import { Node } from '@antv/x6';
+import { Select } from 'antd';
+// import { Node } from '@antv/x6';
import type { GraphRef } from '../types'
+import { PlusOutlined, MinusOutlined } from '@ant-design/icons'
interface CanvasToolbarProps {
miniMapRef: React.RefObject
;
@@ -18,15 +19,16 @@ interface CanvasToolbarProps {
const CanvasToolbar: FC = ({
miniMapRef,
graphRef,
- isHandMode,
- setIsHandMode,
+ // isHandMode,
+ // setIsHandMode,
zoomLevel,
- canUndo,
- canRedo,
- onUndo,
- onRedo,
+ // canUndo,
+ // canRedo,
+ // onUndo,
+ // onRedo,
}) => {
// 整理布局函数
+ /*
const handleLayout = () => {
if (!graphRef.current) return;
const nodes = graphRef.current.getNodes();
@@ -144,28 +146,14 @@ const CanvasToolbar: FC = ({
currentY += 300; // 不同树之间的间距
});
};
-
+ */
return (
<>
{/* 小地图 */}
-
+
{/* 缩放控制按钮 */}
-
-
-
+
+
graphRef.current?.zoom(-0.1)} />
>
);
diff --git a/web/src/views/Workflow/components/PortClickHandler.tsx b/web/src/views/Workflow/components/PortClickHandler.tsx
index 050ed35d..8d95431c 100644
--- a/web/src/views/Workflow/components/PortClickHandler.tsx
+++ b/web/src/views/Workflow/components/PortClickHandler.tsx
@@ -234,9 +234,9 @@ const PortClickHandler: React.FC
= ({ graph }) => {
filteredNodes = category.nodes.filter(nodeType => !['start', 'end', 'loop', 'cycle-start', 'iteration'].includes(nodeType.type));
} else {
// Original filtering for non-loop child nodes
- filteredNodes = category.nodes.filter(nodeType => !['start', 'end', 'break', 'cycle-start'].includes(nodeType.type));
+ filteredNodes = category.nodes.filter(nodeType => !['start', 'break', 'cycle-start'].includes(nodeType.type));
filteredNodes = category.nodes.filter(nodeType =>
- nodeType.type !== 'start' && nodeType.type !== 'end' && nodeType.type !== 'cycle-start' && nodeType.type !== 'break'
+ nodeType.type !== 'start' && nodeType.type !== 'cycle-start' && nodeType.type !== 'break'
);
}
diff --git a/web/src/views/Workflow/hooks/useWorkflowGraph.ts b/web/src/views/Workflow/hooks/useWorkflowGraph.ts
index 87ee80fc..77ea56ca 100644
--- a/web/src/views/Workflow/hooks/useWorkflowGraph.ts
+++ b/web/src/views/Workflow/hooks/useWorkflowGraph.ts
@@ -422,7 +422,7 @@ export const useWorkflowGraph = ({
graphRef.current.use(
new MiniMap({
container: miniMapRef.current,
- width: 100,
+ width: 170,
height: 80,
padding: 5,
}),