-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.d.ts
53 lines (53 loc) · 1.78 KB
/
index.d.ts
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
50
51
52
53
export type DraggableElement =
| { index: number; draggableId: string }
| { index: number };
export type BeforeMargin = "marginTop" | "marginLeft";
export type AfterMargin = "marginBottom" | "marginRight";
export type GapStyle = "columnGap" | "rowGap";
export type BorderWidth = "borderTopWidth" | "borderLeftWidth";
export type PaddingBefore = "paddingLeft" | "paddingTop";
export type Distance = "width" | "height";
export type Before = "left" | "top";
export type After = "right" | "down";
export type Axis = "x" | "y";
export type Offset = "offsetX" | "offsetY";
export type Scroll = "scrollX" | "scrollY";
export type ScrollElement = "scrollTop" | "scrollLeft";
export type InnerDistance = "innerWidth" | "innerHeight";
export type Page = "pageX" | "pageY";
export type MoveEvent = "mousemove" | "touchmove";
export type OnLeaveEvent = "mouseup" | "touchend";
export type TouchEvent = "touchstart" | "touchmove" | "touchend";
export type OffsetElement = "offsetLeft" | "offsetTop";
export type ScrollDistance = "scrollHeight" | "scrollWidth";
export type ClientDistance = "clientHeight" | "clientWidth";
export type Translate = {
height: number;
width: number;
};
export type ElementScroll = {
scrollLeft: number;
scrollTop: number;
};
export type DragMouseTouchEvent = {
readonly clientX: number;
readonly clientY: number;
readonly pageX: number;
readonly pageY: number;
readonly screenX: number;
readonly screenY: number;
readonly target: EventTarget | null;
readonly offsetX: number;
readonly offsetY: number;
};
export type TransformEvent = {
readonly pageX: number;
readonly pageY: number;
readonly target: EventTarget | null;
readonly offsetX: number;
readonly offsetY: number;
};
export type WindowScroll = {
readonly scrollX: number;
readonly scrollY: number;
};