fix(core): vertically or horizontally aligned nodes
This commit is contained in:
@@ -150,7 +150,13 @@ function getPoints({
|
|||||||
centerY = points[0].y
|
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]
|
return [pathPoints, centerX, centerY, defaultOffsetX, defaultOffsetY]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user