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