feat(nodes): add prop to disable automatic elevation of nodes on select

This commit is contained in:
Christopher Möller
2022-12-15 18:57:01 +01:00
parent 7ef2910808
commit 7318210a2c
8 changed files with 22 additions and 8 deletions
@@ -50,7 +50,7 @@ const initialEdges: Edge[] = [
const nodeOrigin: NodeOrigin = [0.5, 0.5];
const defaultEdgeOptions = { zIndex: 0 };
const defaultEdgeOptions = {};
const BasicFlow = () => {
const instance = useReactFlow();
@@ -94,6 +94,8 @@ const BasicFlow = () => {
fitView
defaultEdgeOptions={defaultEdgeOptions}
selectNodesOnDrag={false}
elevateEdgesOnSelect
elevateNodesOnSelect={false}
// nodeOrigin={nodeOrigin}
>
<Background variant={BackgroundVariant.Dots} />