You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.7 KiB
48 lines
1.7 KiB
import { Backend, Identifier } from 'dnd-core';
|
|
import { DragSourceOptions, DragPreviewOptions } from '../interfaces';
|
|
export interface Connector {
|
|
hooks: any;
|
|
connectTarget: any;
|
|
receiveHandlerId(handlerId: Identifier | null): void;
|
|
reconnect(): void;
|
|
}
|
|
export declare class SourceConnector implements Connector {
|
|
hooks: any;
|
|
private handlerId;
|
|
private dragSourceRef;
|
|
private dragSourceNode;
|
|
private dragSourceOptionsInternal;
|
|
private dragSourceUnsubscribe;
|
|
private dragPreviewRef;
|
|
private dragPreviewNode;
|
|
private dragPreviewOptionsInternal;
|
|
private dragPreviewUnsubscribe;
|
|
private lastConnectedHandlerId;
|
|
private lastConnectedDragSource;
|
|
private lastConnectedDragSourceOptions;
|
|
private lastConnectedDragPreview;
|
|
private lastConnectedDragPreviewOptions;
|
|
private readonly backend;
|
|
constructor(backend: Backend);
|
|
receiveHandlerId(newHandlerId: Identifier | null): void;
|
|
get connectTarget(): any;
|
|
get dragSourceOptions(): DragSourceOptions | null;
|
|
set dragSourceOptions(options: DragSourceOptions | null);
|
|
get dragPreviewOptions(): DragPreviewOptions | null;
|
|
set dragPreviewOptions(options: DragPreviewOptions | null);
|
|
reconnect(): void;
|
|
private reconnectDragSource;
|
|
private reconnectDragPreview;
|
|
private didHandlerIdChange;
|
|
private didConnectedDragSourceChange;
|
|
private didConnectedDragPreviewChange;
|
|
private didDragSourceOptionsChange;
|
|
private didDragPreviewOptionsChange;
|
|
private disconnectDragSource;
|
|
private disconnectDragPreview;
|
|
private get dragSource();
|
|
private get dragPreview();
|
|
private clearDragSource;
|
|
private clearDragPreview;
|
|
}
|