UNPKG

vue3-dnd

Version:

Drag and Drop for Vue Composition API

15 lines (14 loc) 656 B
import type { DragDropMonitor, DragSource, Identifier } from 'dnd-core'; import type { Connector } from '../../internals'; import type { DragSourceMonitor } from '../../types'; import type { DragSourceHookSpec } from '../types.js'; export declare class DragSourceImpl<O, R, P> implements DragSource { spec: DragSourceHookSpec<O, R, P>; private monitor; private connector; constructor(spec: DragSourceHookSpec<O, R, P>, monitor: DragSourceMonitor<O, R>, connector: Connector); beginDrag(): NonNullable<O> | null; canDrag(): boolean; isDragging(globalMonitor: DragDropMonitor, target: Identifier): boolean; endDrag(): void; }