fix: In the supplier load chart, the mouse should not show a hand shape except for the cards that can be dragged and sorted.

This commit is contained in:
scarqin
2025-01-07 16:17:50 +08:00
parent b97acc7862
commit b7b2dff26b
2 changed files with 5 additions and 2 deletions
@@ -101,6 +101,7 @@ const AIFlowChart = () => {
id: 'apiService',
type: 'serviceCard',
position: { x: LAYOUT.SERVICE_NODE_X, y: serviceY },
draggable: false,
data: {
title: 'API Services',
count: modelData.length
@@ -239,8 +240,10 @@ const AIFlowChart = () => {
proOptions={{ hideAttribution: true }}
draggable={false}
nodeTypes={nodeTypes}
elementsSelectable={false}
edgeTypes={edgeTypes}
zoomOnScroll={false}
panOnDrag={false}
zoomOnPinch={false}
zoomOnDoubleClick={false}
panOnScroll={true}
@@ -2,6 +2,6 @@ export const LAYOUT = {
SERVICE_NODE_X: 0,
NODE_START_Y: 20,
NODE_GAP: 120,
MODEL_NODE_X: 500,
KEY_NODE_X: 900,
MODEL_NODE_X: 700,
KEY_NODE_X: 1200,
} as const;