/
event-types.js
49 lines (43 loc) · 1.01 KB
/
event-types.js
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
48
49
// @flow
import type { Position } from './geojson-types.js';
export type DeckGLPick = {
index: number,
object: any,
isEditingHandle: ?boolean
};
export type ClickEvent = {
picks: DeckGLPick[],
screenCoords: Position,
groundCoords: Position,
sourceEvent: any
};
export type DoubleClickEvent = {
groundCoords: Position,
sourceEvent: any
};
export type StartDraggingEvent = {
picks: DeckGLPick[],
screenCoords: Position,
groundCoords: Position,
pointerDownScreenCoords: Position,
pointerDownGroundCoords: Position,
sourceEvent: any
};
export type StopDraggingEvent = {
picks: DeckGLPick[],
screenCoords: Position,
groundCoords: Position,
pointerDownScreenCoords: Position,
pointerDownGroundCoords: Position,
sourceEvent: any
};
export type PointerMoveEvent = {
screenCoords: Position,
groundCoords: Position,
picks: DeckGLPick[],
isDragging: boolean,
pointerDownPicks: ?(DeckGLPick[]),
pointerDownScreenCoords: ?Position,
pointerDownGroundCoords: ?Position,
sourceEvent: any
};