fix(builder): Added option to pan view to center agents on build screen (#7742)
Co-authored-by: Leslie Cruz <lelcruz@users.noreply.github.com> Co-authored-by: Bently <tomnoon9@gmail.com>pull/7756/head
parent
335fea8605
commit
8131fc385b
|
@ -17,6 +17,7 @@ import ReactFlow, {
|
||||||
Connection,
|
Connection,
|
||||||
EdgeTypes,
|
EdgeTypes,
|
||||||
MarkerType,
|
MarkerType,
|
||||||
|
Controls,
|
||||||
} from "reactflow";
|
} from "reactflow";
|
||||||
import "reactflow/dist/style.css";
|
import "reactflow/dist/style.css";
|
||||||
import CustomNode, { CustomNodeData } from "./CustomNode";
|
import CustomNode, { CustomNodeData } from "./CustomNode";
|
||||||
|
@ -880,6 +881,7 @@ const FlowEditor: React.FC<{
|
||||||
onNodeDragStart={onNodesChangeStart}
|
onNodeDragStart={onNodesChangeStart}
|
||||||
onNodeDragStop={onNodesChangeEnd}
|
onNodeDragStop={onNodesChangeEnd}
|
||||||
>
|
>
|
||||||
|
<Controls />
|
||||||
<ControlPanel className="absolute z-10" controls={editorControls}>
|
<ControlPanel className="absolute z-10" controls={editorControls}>
|
||||||
<BlocksControl blocks={availableNodes} addBlock={addNode} />
|
<BlocksControl blocks={availableNodes} addBlock={addNode} />
|
||||||
<SaveControl
|
<SaveControl
|
||||||
|
|
Loading…
Reference in New Issue