UNPKG

@ng-dnd/core

Version:

Drag and Drop for Angular

20 lines (19 loc) 744 B
import { DragDropManager, Unsubscribe } from 'dnd-core'; import { Observable, TeardownLogic } from 'rxjs'; import { DragLayer } from '../connection-types'; import { DragLayerMonitor } from '../layer-monitor'; export declare class DragLayerConnectionClass implements DragLayer { private manager; unsubscribeFromOffsetChange: Unsubscribe; unsubscribeFromStateChange: Unsubscribe; private readonly collector$; private subscription; constructor(manager: DragDropManager); isTicking: boolean; private handleStateChange; private handleOffsetChange; listen<P>(mapFn: (monitor: DragLayerMonitor) => P): Observable<P>; unsubscribe(): void; add(teardown: TeardownLogic): void; get closed(): boolean; }