fix(core): vertically or horizontally aligned nodes

This commit is contained in:
braks
2023-08-21 17:44:20 +02:00
committed by Braks
parent 77ccc7ec86
commit 8943ec762b
@@ -150,7 +150,13 @@ function getPoints({
centerY = points[0].y
}
const pathPoints = [source, sourceGapped, ...points, targetGapped, target]
const pathPoints = [
source,
{ x: sourceGapped.x - sourceGapOffset.x, y: sourceGapped.y - sourceGapOffset.y },
...points,
{ x: targetGapped.x - targetGapOffset.x, y: targetGapped.y - targetGapOffset.y },
target,
]
return [pathPoints, centerX, centerY, defaultOffsetX, defaultOffsetY]
}