chore(core): cleanup handle utils (#1497)

This commit is contained in:
Braks
2024-07-01 09:44:55 +02:00
parent 09e222124c
commit 8454dca6d4
5 changed files with 30 additions and 57 deletions
@@ -74,7 +74,7 @@ const ConnectionLine = defineComponent({
const fromHandle = (startHandleId ? handleBounds.find((d) => d.id === startHandleId) : handleBounds[0]) ?? null
const fromPosition = fromHandle?.position || Position.Top
const { x: fromX, y: fromY } = getHandlePosition(fromPosition, fromNode.value, fromHandle)
const { x: fromX, y: fromY } = getHandlePosition(fromNode.value, fromHandle, fromPosition)
let toHandle: HandleElement | null = null
if (toNode.value && connectionEndHandle.value?.handleId) {