refactor(smoothedge): handle mixed flows

This commit is contained in:
moklick
2021-04-05 16:12:12 +02:00
parent 168d129a01
commit 5eef2e5969
+2 -2
View File
@@ -83,8 +83,8 @@ export function getSmoothStepPath({
} else { } else {
firstCornerPath = firstCornerPath =
sourceY <= targetY sourceY <= targetY
? bottomRightCorner(sourceX, targetY, cornerSize) ? bottomLeftCorner(targetX, sourceY, cornerSize)
: topRightCorner(sourceX, targetY, cornerSize); : topRightCorner(targetX, sourceY, cornerSize);
} }
secondCornerPath = ''; secondCornerPath = '';
} else if (!leftAndRight.includes(sourcePosition) && leftAndRight.includes(targetPosition)) { } else if (!leftAndRight.includes(sourcePosition) && leftAndRight.includes(targetPosition)) {