UNPKG

@fabiomdf/vue-hierarchy-tree

Version:

A Vue 3 component for creating interactive hierarchy trees with drag-and-drop functionality

13 lines (12 loc) 381 B
import { Position } from '../types/flow'; export declare function useDrag(initialPosition: Position, onDragEnd: (position: Position) => void): { position: import('vue').Ref<{ x: number; y: number; }, Position | { x: number; y: number; }>; dragging: import('vue').Ref<boolean, boolean>; startDrag: (event: MouseEvent) => void; };