UNPKG
react-cool-draggable
Version:
latest (0.1.4)
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Drag-n-drop react library (component) for horizontal and vertical lists.
react-cool-draggable
/
src
/
types.ts
16 lines
(11 loc)
•
283 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export
type
ID
=
string
|
number
;
export
type
Direction
=
'vertical'
|
'horizontal'
;
export
type
Pointer
= {
clientX
:
number
;
clientY
:
number
; };
export
type
Coordinates
= {
x
:
number
;
y
:
number
; };
export
type
DraggableElement
=
HTMLElement
|
SVGElement
;