UNPKG

@vue-dnd-kit/core

Version:

Core functionality for Vue DnD Kit - a lightweight Vue 3 library for building performant and accessible drag and drop interfaces

19 lines (18 loc) 821 B
import { CollisionDetectionFn } from './sensor'; import { IDnDProviderInternal } from '../types/provider'; /** * Phase 1: ancestor-walk from the topmost element under the cursor. * * document.elementFromPoint (singular) returns the actual hit-tested element — * the same target as a real pointer event. Walking up from it collects only * registered elements that are ancestors (or the element itself), which means * elements behind a modal are never included even though they share the same * screen coordinates. * * Returns null when no registered element or zone is found in the ancestor chain. */ export declare function runCursorPhase(provider: IDnDProviderInternal): { elements: HTMLElement[]; zones: HTMLElement[]; } | null; export declare const defaultCollisionDetection: CollisionDetectionFn;