feat(edgeUpdater): add edgeUpdaterRadius prop

This commit is contained in:
Eugene Samonenko
2021-03-03 13:10:33 +02:00
parent b71c9eb891
commit d89be58e54
6 changed files with 15 additions and 4 deletions
+2
View File
@@ -30,6 +30,7 @@ interface EdgeRendererProps {
onlyRenderVisibleElements: boolean;
onEdgeUpdate?: OnEdgeUpdateFunc;
onEdgeContextMenu?: (event: React.MouseEvent, element: Edge) => void;
edgeUpdaterRadius?: number;
}
interface EdgeWrapperProps {
@@ -165,6 +166,7 @@ const Edge = ({
onConnectEdge={onConnectEdge}
handleEdgeUpdate={typeof props.onEdgeUpdate !== 'undefined'}
onContextMenu={props.onEdgeContextMenu}
edgeUpdaterRadius={props.edgeUpdaterRadius}
/>
);
};