Blame view

天文台pc/tianwentai-ui/node_modules/react-dnd/dist/internals/SourceConnector.d.ts 1.68 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  import type { Backend, Identifier } from 'dnd-core';
  import type { DragPreviewOptions, DragSourceOptions } from '../types/index.js';
  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;
      disconnectDragSource(): void;
      disconnectDragPreview(): void;
      private get dragSource();
      private get dragPreview();
      private clearDragSource;
      private clearDragPreview;
  }