전략빌더 미니맵 제거
This commit is contained in:
@@ -3,7 +3,6 @@ import {
|
|||||||
ReactFlow,
|
ReactFlow,
|
||||||
Background,
|
Background,
|
||||||
Controls,
|
Controls,
|
||||||
MiniMap,
|
|
||||||
Panel,
|
Panel,
|
||||||
useNodesState,
|
useNodesState,
|
||||||
useEdgesState,
|
useEdgesState,
|
||||||
@@ -104,7 +103,6 @@ import { ConditionFlowNode, LogicGateNode, StartNode } from './FlowNodes';
|
|||||||
import { StrategyFlowEdge } from './StrategyFlowEdge';
|
import { StrategyFlowEdge } from './StrategyFlowEdge';
|
||||||
import { edgeDisconnectRef, edgeBindingUpdateRef, layoutFlushRef } from './strategyEditorCallbacks';
|
import { edgeDisconnectRef, edgeBindingUpdateRef, layoutFlushRef } from './strategyEditorCallbacks';
|
||||||
import { MultiSelectionDeleteButton } from './MultiSelectionDeleteButton';
|
import { MultiSelectionDeleteButton } from './MultiSelectionDeleteButton';
|
||||||
import { getMinimapColors } from './minimapTheme';
|
|
||||||
import {
|
import {
|
||||||
loadCanvasInteractionMode,
|
loadCanvasInteractionMode,
|
||||||
saveCanvasInteractionMode,
|
saveCanvasInteractionMode,
|
||||||
@@ -359,19 +357,6 @@ function StrategyEditorCanvasInner({
|
|||||||
return ids;
|
return ids;
|
||||||
}, [root, extraStartIds, extraRoots]);
|
}, [root, extraStartIds, extraRoots]);
|
||||||
|
|
||||||
const minimapColors = useMemo(() => getMinimapColors(theme, signalTab), [theme, signalTab]);
|
|
||||||
|
|
||||||
const minimapNodeColor = useCallback((node: Node) => {
|
|
||||||
if (isStartNodeId(node.id)) return minimapColors.start;
|
|
||||||
if (node.type === 'condition') return minimapColors.condition;
|
|
||||||
return minimapColors.logic;
|
|
||||||
}, [minimapColors]);
|
|
||||||
|
|
||||||
const minimapNodeStrokeColor = useCallback((node: Node) => {
|
|
||||||
if (isStartNodeId(node.id)) return minimapColors.start;
|
|
||||||
return minimapColors.stroke;
|
|
||||||
}, [minimapColors]);
|
|
||||||
|
|
||||||
const signalTabRef = useRef(signalTab);
|
const signalTabRef = useRef(signalTab);
|
||||||
signalTabRef.current = signalTab;
|
signalTabRef.current = signalTab;
|
||||||
|
|
||||||
@@ -1560,17 +1545,6 @@ function StrategyEditorCanvasInner({
|
|||||||
>
|
>
|
||||||
<Background gap={24} size={1} className="se-flow-bg" />
|
<Background gap={24} size={1} className="se-flow-bg" />
|
||||||
<Controls className="se-flow-controls" showInteractive={false} />
|
<Controls className="se-flow-controls" showInteractive={false} />
|
||||||
<MiniMap
|
|
||||||
className="se-flow-minimap"
|
|
||||||
zoomable
|
|
||||||
pannable
|
|
||||||
nodeStrokeWidth={2}
|
|
||||||
bgColor={minimapColors.bg}
|
|
||||||
maskColor={minimapColors.mask}
|
|
||||||
maskStrokeColor={minimapColors.maskStroke}
|
|
||||||
nodeColor={minimapNodeColor}
|
|
||||||
nodeStrokeColor={minimapNodeStrokeColor}
|
|
||||||
/>
|
|
||||||
<Panel position="top-right" className="se-canvas-auto-layout">
|
<Panel position="top-right" className="se-canvas-auto-layout">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user