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
@@ -15,6 +15,7 @@ import {
rendererPointToPoint,
resetRecentHandle,
} from '../utils'
import { Position } from '../types'
import { useVueFlow } from './useVueFlow'
export interface UseHandleProps {
@@ -129,6 +130,7 @@ export function useHandle({
nodeId: toValue(nodeId),
handleId: toValue(handleId),
type: handleType,
position: (clickedHandle?.getAttribute('data-handlepos') as Position) || Position.Top,
},
{
x: x - containerBounds.left,