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
+3
View File
@@ -39,6 +39,7 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
handleEdgeUpdate,
onConnectEdge,
onContextMenu,
edgeUpdaterRadius,
}: WrapEdgeProps): JSX.Element | null => {
const addSelectedElements = useStoreActions((actions) => actions.addSelectedElements);
const setConnectionNodeId = useStoreActions((actions) => actions.setConnectionNodeId);
@@ -151,6 +152,7 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
position={sourcePosition}
centerX={sourceX}
centerY={sourceY}
radius={edgeUpdaterRadius}
/>
</g>
)}
@@ -189,6 +191,7 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
position={targetPosition}
centerX={targetX}
centerY={targetY}
radius={edgeUpdaterRadius}
/>
</g>
)}