refactor(core): use correct end handle position in connection line (#1508)

* refactor(core): use correct end handle position in connection line

* chore(changeset): add
This commit is contained in:
Braks
2024-07-01 09:44:55 +02:00
parent 266f8744ad
commit 3489fae8fe
5 changed files with 18 additions and 9 deletions
@@ -93,8 +93,7 @@ const ConnectionLine = defineComponent({
}
}
// we assume the target position is opposite to the source position
const toPosition = fromPosition ? oppositePosition[fromPosition] : null
const toPosition = connectionEndHandle.value?.position ?? (fromPosition ? oppositePosition[fromPosition] : null)
if (!fromPosition || !toPosition) {
return null