fix(edges): handle mixed flows

This commit is contained in:
moklick
2021-04-06 18:52:53 +02:00
parent b9cbb9143f
commit 46665a2f90
+2 -2
View File
@@ -83,8 +83,8 @@ export function getSmoothStepPath({
} else {
firstCornerPath =
sourceY <= targetY
? bottomLeftCorner(targetX, sourceY, cornerSize)
: topRightCorner(targetX, sourceY, cornerSize);
? leftTopCorner(targetX, sourceY, cornerSize)
: leftBottomCorner(targetX, sourceY, cornerSize);
}
secondCornerPath = '';
} else if (!leftAndRight.includes(sourcePosition) && leftAndRight.includes(targetPosition)) {