chore(props): rename isEdgeAutoZIndex to elevateEdgesOnSelect

This commit is contained in:
moklick
2022-05-02 23:40:04 +02:00
parent 2363046af9
commit dcc05ad8cd
5 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ interface EdgeRendererProps {
onEdgeUpdateEnd?: (event: MouseEvent, edge: Edge, handleType: HandleType) => void;
edgeUpdaterRadius?: number;
noPanClassName?: string;
isEdgeAutoZIndex: boolean;
elevateEdgesOnSelect: boolean;
}
const selector = (s: ReactFlowState) => ({
@@ -66,7 +66,7 @@ const EdgeRenderer = (props: EdgeRendererProps) => {
connectionMode,
nodeInternals,
} = useStore(selector, shallow);
const edgeTree = useVisibleEdges(props.onlyRenderVisibleElements, nodeInternals, props.isEdgeAutoZIndex);
const edgeTree = useVisibleEdges(props.onlyRenderVisibleElements, nodeInternals, props.elevateEdgesOnSelect);
if (!width) {
return null;