Merge branch 'main' of github.com:wbkd/react-flow into main

This commit is contained in:
moklick
2021-03-05 20:55:54 +01:00
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>
)}