-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
51 lines (44 loc) · 809 Bytes
/
constants.js
File metadata and controls
51 lines (44 loc) · 809 Bytes
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
export const cellScale = {
value: 1.1,
animationDuration: 102,
}
export const cellTranslation = {
animationDuration: 255,
}
export const dragDirection = {
up: 2,
right: 1,
left: -1,
down: -2,
none: 0,
}
export const cellAnimationTypes = {
rightTopTranslation: 2,
rightTranslation: 1,
backToOrigin: 0,
leftTranslation: -1,
leftBottomTranslation: -2,
}
export const cellChangeTypes = {
add: 1,
remove: -1,
}
export const touchStart = {
delay: 255,
}
export const containerLayout = {
delay: 510,
}
export const containerHeight = {
animationDuration: 255,
}
export default {
cellScale,
cellTranslation,
dragDirection,
cellAnimationTypes,
touchStart,
containerLayout,
containerHeight,
cellChangeTypes,
}