| 1 |
## API Report File for "@lumino/dragdrop" |
| 2 |
|
| 3 |
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 |
|
| 5 |
```ts |
| 6 |
|
| 7 |
import { IDisposable } from '@lumino/disposable'; |
| 8 |
import { MimeData } from '@lumino/coreutils'; |
| 9 |
|
| 10 |
// @public |
| 11 |
export class Drag implements IDisposable { |
| 12 |
constructor(options: Drag.IOptions); |
| 13 |
dispose(): void; |
| 14 |
readonly document: Document | ShadowRoot; |
| 15 |
readonly dragImage: HTMLElement | null; |
| 16 |
handleEvent(event: Event): void; |
| 17 |
get isDisposed(): boolean; |
| 18 |
readonly mimeData: MimeData; |
| 19 |
protected moveDragImage(clientX: number, clientY: number): void; |
| 20 |
readonly proposedAction: Drag.DropAction; |
| 21 |
readonly source: any; |
| 22 |
start(clientX: number, clientY: number): Promise<Drag.DropAction>; |
| 23 |
readonly supportedActions: Drag.SupportedActions; |
| 24 |
} |
| 25 |
|
| 26 |
// @public |
| 27 |
export namespace Drag { |
| 28 |
export type DropAction = 'none' | 'copy' | 'link' | 'move'; |
| 29 |
export class Event extends DragEvent { |
| 30 |
constructor(event: PointerEvent, options: Event.IOptions); |
| 31 |
dropAction: DropAction; |
| 32 |
readonly mimeData: MimeData; |
| 33 |
readonly proposedAction: DropAction; |
| 34 |
readonly source: any; |
| 35 |
readonly supportedActions: SupportedActions; |
| 36 |
} |
| 37 |
export namespace Event { |
| 38 |
export interface IOptions { |
| 39 |
drag: Drag; |
| 40 |
related: Element | null; |
| 41 |
type: 'lm-dragenter' | 'lm-dragexit' | 'lm-dragleave' | 'lm-dragover' | 'lm-drop'; |
| 42 |
} |
| 43 |
} |
| 44 |
export interface IOptions { |
| 45 |
document?: Document | ShadowRoot; |
| 46 |
dragImage?: HTMLElement; |
| 47 |
mimeData: MimeData; |
| 48 |
proposedAction?: DropAction; |
| 49 |
source?: any; |
| 50 |
supportedActions?: SupportedActions; |
| 51 |
} |
| 52 |
export function overrideCursor(cursor: string, doc?: Document | ShadowRoot): IDisposable; |
| 53 |
export type SupportedActions = DropAction | 'copy-link' | 'copy-move' | 'link-move' | 'all'; |
| 54 |
} |
| 55 |
|
| 56 |
// @public @deprecated (undocumented) |
| 57 |
export interface IDragEvent extends Drag.Event { |
| 58 |
} |
| 59 |
|
| 60 |
``` |