/
MSGestureEvent.cljs
166 lines (123 loc) · 3.63 KB
/
MSGestureEvent.cljs
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
(ns web.ie.MSGestureEvent
"The MSGestureEvent is a proprietary interface specific to Internet
and Microsoft Edge which represents events that occur due to
gestures. Events using this interface include MSGestureStart,
MSGestureTap, MSGestureHold, MSGestureChange, and MSInertiaStart."
(:refer-clojure :exclude []))
(defn init-gesture-event
"Method.
Initializes the value of an MSGestureEvent. If the event has
being dispatched, this method does nothing. This method is deprecated
of Microsoft Edge."
[this & args]
(-> this .-initGestureEvent (.apply this (clj->js args))))
(defn expansion
"Property.
The diameter of the gesture area. For example, the distance between"
[this]
(-> this (.-expansion)))
(defn set-expansion!
"Property.
The diameter of the gesture area. For example, the distance between"
[this val]
(aset this "expansion" val))
(defn gesture-object
"Property.
Returns the MSGesture object for this gesture event."
[this]
(-> this (.-gestureObject)))
(defn set-gesture-object!
"Property.
Returns the MSGesture object for this gesture event."
[this val]
(aset this "gestureObject" val))
(defn rotation
"Property.
Amount of rotation (in radians) since the previous MSGestureEvent
the current gesture. Positive values indicate clockwise rotation;
values indicate anticlockwise rotation."
[this]
(-> this (.-rotation)))
(defn set-rotation!
"Property.
Amount of rotation (in radians) since the previous MSGestureEvent
the current gesture. Positive values indicate clockwise rotation;
values indicate anticlockwise rotation."
[this val]
(aset this "rotation" val))
(defn scale
"Property.
The difference in scale (for zoom gestures) from the previous
of the current gesture."
[this]
(-> this (.-scale)))
(defn set-scale!
"Property.
The difference in scale (for zoom gestures) from the previous
of the current gesture."
[this val]
(aset this "scale" val))
(defn translation-x
"Property.
Distance traversed along the X-axis since the previous MSGestureEvent
the current gesture"
[this]
(-> this (.-translationX)))
(defn set-translation-x!
"Property.
Distance traversed along the X-axis since the previous MSGestureEvent
the current gesture"
[this val]
(aset this "translationX" val))
(defn translation-y
"Property.
Distance traversed along the Y-axis since the previous MSGestureEvent
the current gesture"
[this]
(-> this (.-translationY)))
(defn set-translation-y!
"Property.
Distance traversed along the Y-axis since the previous MSGestureEvent
the current gesture"
[this val]
(aset this "translationY" val))
(defn velocity-angular
"Property.
Angular velocity. Expressed in radians."
[this]
(-> this (.-velocityAngular)))
(defn set-velocity-angular!
"Property.
Angular velocity. Expressed in radians."
[this val]
(aset this "velocityAngular" val))
(defn velocity-expansion
"Property.
The velocity of the expansion of the gesture area."
[this]
(-> this (.-velocityExpansion)))
(defn set-velocity-expansion!
"Property.
The velocity of the expansion of the gesture area."
[this val]
(aset this "velocityExpansion" val))
(defn velocity-x
"Property.
Velocity along the direction of the X-axis."
[this]
(-> this (.-velocityX)))
(defn set-velocity-x!
"Property.
Velocity along the direction of the X-axis."
[this val]
(aset this "velocityX" val))
(defn velocity-y
"Property.
Velocity along the direction of the Y-axis."
[this]
(-> this (.-velocityY)))
(defn set-velocity-y!
"Property.
Velocity along the direction of the Y-axis."
[this val]
(aset this "velocityY" val))