UNPKG

dockview-core

Version:

Zero dependency layout manager supporting tabs, groups, grids and splitviews for vanilla TypeScript

20 lines (19 loc) 819 B
import { DockviewOptions } from './options'; /** * Internal mapping of the user-facing `dndStrategy` option into the * per-backend capability flags consumed by drag-source / drop-target * construction sites. Not part of the public API — consumers only see * the `dndStrategy` option itself. */ export interface DndCapabilities { /** HTML5 drag/drop wiring active (draggable attr, dragstart). */ readonly html5: boolean; /** Pointer-event drag source active. */ readonly pointer: boolean; /** * When true, the pointer source handles mouse pointers too * (`touchOnly: false`). Implies `pointer` is true. */ readonly pointerHandlesMouse: boolean; } export declare function resolveDndCapabilities(options: Pick<DockviewOptions, 'dndStrategy' | 'disableDnd'>): DndCapabilities;