mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-06 15:48:51 -06:00
Enable controls
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
import ReactFlow, { Background, isNode } from "react-flow-renderer";
|
import ReactFlow, { Background, isNode, Controls } from "react-flow-renderer";
|
||||||
import Section from "./Section";
|
import Section from "./Section";
|
||||||
import Card from "./Card";
|
import Card from "./Card";
|
||||||
import Button from "./Button";
|
import Button from "./Button";
|
||||||
@@ -169,12 +169,13 @@ const PipelineBlock = (props) => {
|
|||||||
onConnect={onConnect}
|
onConnect={onConnect}
|
||||||
onElementsRemove={onElementsRemove}
|
onElementsRemove={onElementsRemove}
|
||||||
deleteKeyCode={46}
|
deleteKeyCode={46}
|
||||||
maxZoom={1}
|
maxZoom={3}
|
||||||
minZoom={1}
|
minZoom={0.5}
|
||||||
snapToGrid={true}
|
snapToGrid={true}
|
||||||
preventScrolling={false}
|
preventScrolling={false}
|
||||||
>
|
>
|
||||||
<Background />
|
<Background />
|
||||||
|
<Controls />
|
||||||
</ReactFlow>
|
</ReactFlow>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ textAlign: "center" }}>
|
<div style={{ textAlign: "center" }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user