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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user