This commit is contained in:
33
node_modules/react-dnd/lib/internals/DragSourceMonitorImpl.d.ts
generated
vendored
Normal file
33
node_modules/react-dnd/lib/internals/DragSourceMonitorImpl.d.ts
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import { DragDropManager, Unsubscribe, Listener, Identifier, XYCoord } from 'dnd-core';
|
||||
import { DragSourceMonitor } from '../types';
|
||||
export declare class DragSourceMonitorImpl implements DragSourceMonitor {
|
||||
private internalMonitor;
|
||||
private sourceId;
|
||||
constructor(manager: DragDropManager);
|
||||
receiveHandlerId(sourceId: Identifier | null): void;
|
||||
getHandlerId(): Identifier | null;
|
||||
canDrag(): boolean;
|
||||
isDragging(): boolean;
|
||||
subscribeToStateChange(listener: Listener, options?: {
|
||||
handlerIds: Identifier[] | undefined;
|
||||
}): Unsubscribe;
|
||||
isDraggingSource(sourceId: Identifier): boolean;
|
||||
isOverTarget(targetId: Identifier, options?: {
|
||||
shallow: boolean;
|
||||
}): boolean;
|
||||
getTargetIds(): Identifier[];
|
||||
isSourcePublic(): boolean | null;
|
||||
getSourceId(): Identifier | null;
|
||||
subscribeToOffsetChange(listener: Listener): Unsubscribe;
|
||||
canDragSource(sourceId: Identifier): boolean;
|
||||
canDropOnTarget(targetId: Identifier): boolean;
|
||||
getItemType(): Identifier | null;
|
||||
getItem(): any;
|
||||
getDropResult(): any;
|
||||
didDrop(): boolean;
|
||||
getInitialClientOffset(): XYCoord | null;
|
||||
getInitialSourceClientOffset(): XYCoord | null;
|
||||
getSourceClientOffset(): XYCoord | null;
|
||||
getClientOffset(): XYCoord | null;
|
||||
getDifferenceFromInitialOffset(): XYCoord | null;
|
||||
}
|
||||
Reference in New Issue
Block a user