1 | import { Backend, Identifier } from 'dnd-core';
|
2 | import { DragSourceOptions, DragPreviewOptions } from '../types';
|
3 | export interface Connector {
|
4 | hooks: any;
|
5 | connectTarget: any;
|
6 | receiveHandlerId(handlerId: Identifier | null): void;
|
7 | reconnect(): void;
|
8 | }
|
9 | export declare class SourceConnector implements Connector {
|
10 | hooks: any;
|
11 | private handlerId;
|
12 | private dragSourceRef;
|
13 | private dragSourceNode;
|
14 | private dragSourceOptionsInternal;
|
15 | private dragSourceUnsubscribe;
|
16 | private dragPreviewRef;
|
17 | private dragPreviewNode;
|
18 | private dragPreviewOptionsInternal;
|
19 | private dragPreviewUnsubscribe;
|
20 | private lastConnectedHandlerId;
|
21 | private lastConnectedDragSource;
|
22 | private lastConnectedDragSourceOptions;
|
23 | private lastConnectedDragPreview;
|
24 | private lastConnectedDragPreviewOptions;
|
25 | private readonly backend;
|
26 | constructor(backend: Backend);
|
27 | receiveHandlerId(newHandlerId: Identifier | null): void;
|
28 | get connectTarget(): any;
|
29 | get dragSourceOptions(): DragSourceOptions | null;
|
30 | set dragSourceOptions(options: DragSourceOptions | null);
|
31 | get dragPreviewOptions(): DragPreviewOptions | null;
|
32 | set dragPreviewOptions(options: DragPreviewOptions | null);
|
33 | reconnect(): void;
|
34 | private reconnectDragSource;
|
35 | private reconnectDragPreview;
|
36 | private didHandlerIdChange;
|
37 | private didConnectedDragSourceChange;
|
38 | private didConnectedDragPreviewChange;
|
39 | private didDragSourceOptionsChange;
|
40 | private didDragPreviewOptionsChange;
|
41 | disconnectDragSource(): void;
|
42 | disconnectDragPreview(): void;
|
43 | private get dragSource();
|
44 | private get dragPreview();
|
45 | private clearDragSource;
|
46 | private clearDragPreview;
|
47 | }
|