refactor(edges): handle mixed edges #961

This commit is contained in:
moklick
2021-03-28 17:01:50 +02:00
parent b894722ac1
commit 9a7ccbf829
3 changed files with 26 additions and 3 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ export default memo(
markerEndId,
borderRadius = 5,
}: EdgeSmoothStepProps) => {
const [centerX, centerY] = getCenter({ sourceX, sourceY, targetX, targetY });
const [centerX, centerY] = getCenter({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition });
const path = getSmoothStepPath({
sourceX,