|
|
|
@ -385,6 +385,7 @@ const FlowEditorMain: React.FC<FlowEditorMainProps> = (props) => {
|
|
|
|
edgeTypes={edgeTypes}
|
|
|
|
edgeTypes={edgeTypes}
|
|
|
|
snapToGrid={true}
|
|
|
|
snapToGrid={true}
|
|
|
|
snapGrid={[2, 2]}
|
|
|
|
snapGrid={[2, 2]}
|
|
|
|
|
|
|
|
proOptions={{ hideAttribution: true }} // 隐藏水印
|
|
|
|
nodesConnectable={!currentAppIsRunning} // 运行时禁用节点连接
|
|
|
|
nodesConnectable={!currentAppIsRunning} // 运行时禁用节点连接
|
|
|
|
nodesDraggable={!currentAppIsRunning} // 运行时禁用节点拖拽
|
|
|
|
nodesDraggable={!currentAppIsRunning} // 运行时禁用节点拖拽
|
|
|
|
elementsSelectable={!currentAppIsRunning} // 运行时禁用元素选择
|
|
|
|
elementsSelectable={!currentAppIsRunning} // 运行时禁用元素选择
|
|
|
|
|