gesturx 1.8.7 → 1.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/image.jpg ADDED
Binary file
package/dist/index.js CHANGED
@@ -1,39 +1,39 @@
1
1
  var ie = Object.defineProperty;
2
- var se = (t, n, e) => n in t ? ie(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
- var $ = (t, n, e) => se(t, typeof n != "symbol" ? n + "" : n, e);
4
- import { filter as h, fromEvent as S, map as c, mergeMap as b, defer as pe, of as T, merge as g, takeWhile as V, scan as L, BehaviorSubject as q, switchMap as v, share as P, distinctUntilChanged as oe, startWith as re, shareReplay as M, combineLatest as j, exhaustMap as H, first as z, timer as J, withLatestFrom as C, takeUntil as I, skip as ae, tap as K, ignoreElements as le, buffer as he, debounceTime as ce, NEVER as $e, defaultIfEmpty as ue } from "rxjs";
5
- function de(t, n) {
2
+ var se = (t, i, e) => i in t ? ie(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
3
+ var $ = (t, i, e) => se(t, typeof i != "symbol" ? i + "" : i, e);
4
+ import { filter as h, fromEvent as S, mergeMap as b, defer as pe, of as T, merge as g, takeWhile as V, scan as L, map as c, BehaviorSubject as q, switchMap as v, share as P, distinctUntilChanged as oe, startWith as re, shareReplay as M, combineLatest as j, exhaustMap as H, first as z, timer as J, withLatestFrom as C, takeUntil as I, skip as ae, tap as K, ignoreElements as le, buffer as he, debounceTime as ce, NEVER as $e, defaultIfEmpty as ue } from "rxjs";
5
+ function de(t, i) {
6
6
  return Math.sqrt(
7
- Math.pow(n.x - t.x, 2) + Math.pow(n.y - t.y, 2)
7
+ Math.pow(i.x - t.x, 2) + Math.pow(i.y - t.y, 2)
8
8
  );
9
9
  }
10
10
  function ve(t) {
11
- const n = t.length;
12
- if (n < 2) return 0;
13
- const e = t.reduce((o, p, a) => o + t.slice(a + 1).reduce((s, r) => s + de(p, r), 0), 0), i = n * (n - 1) / 2;
14
- return e / i;
11
+ const i = t.length;
12
+ if (i < 2) return 0;
13
+ const e = t.reduce((o, p, a) => o + t.slice(a + 1).reduce((s, r) => s + de(p, r), 0), 0), n = i * (i - 1) / 2;
14
+ return e / n;
15
15
  }
16
- function N(t, n) {
17
- const e = n.x - t.x, i = n.y - t.y;
18
- return Math.atan2(i, e);
16
+ function N(t, i) {
17
+ const e = i.x - t.x, n = i.y - t.y;
18
+ return Math.atan2(n, e);
19
19
  }
20
- function ge(t, n) {
21
- return N(t, n) * (180 / Math.PI);
20
+ function ge(t, i) {
21
+ return N(t, i) * (180 / Math.PI);
22
22
  }
23
- function F(t) {
24
- const n = t.reduce(
25
- (i, o) => (i.x += o.x, i.y += o.y, i),
23
+ function k(t) {
24
+ const i = t.reduce(
25
+ (n, o) => (n.x += o.x, n.y += o.y, n),
26
26
  { x: 0, y: 0 }
27
27
  ), e = t.length || 1;
28
28
  return {
29
- x: n.x / e,
30
- y: n.y / e
29
+ x: i.x / e,
30
+ y: i.y / e
31
31
  };
32
32
  }
33
- function ye(t, n) {
34
- if (t.length !== n.length)
33
+ function ye(t, i) {
34
+ if (t.length !== i.length)
35
35
  throw new Error("Initial and new points arrays must have the same length.");
36
- const e = F(t), i = F(n);
36
+ const e = k(t), n = k(i);
37
37
  let o = 0;
38
38
  for (let s = 0; s < t.length; s++) {
39
39
  const r = N(
@@ -41,8 +41,8 @@ function ye(t, n) {
41
41
  t[s]
42
42
  );
43
43
  let u = N(
44
- i,
45
- n[s]
44
+ n,
45
+ i[s]
46
46
  ) - r;
47
47
  u > Math.PI ? u -= 2 * Math.PI : u < -Math.PI && (u += 2 * Math.PI), o += u;
48
48
  }
@@ -53,33 +53,33 @@ function fe(t) {
53
53
  return t != null;
54
54
  }
55
55
  const me = (t) => t.length > 0, Ae = (t) => t.pipe(h(me));
56
- function Q(t, n, e) {
57
- const i = F([t]), o = F([n]);
58
- return Math.abs(o.x - i.x) >= e || Math.abs(o.y - i.y) >= e;
56
+ function Q(t, i, e) {
57
+ const n = k([t]), o = k([i]);
58
+ return Math.abs(o.x - n.x) >= e || Math.abs(o.y - n.y) >= e;
59
59
  }
60
- const De = (t, n, e) => {
61
- const i = t > 0 ? n / t : 0, o = t > 0 ? e / t : 0;
60
+ const De = (t, i, e) => {
61
+ const n = t > 0 ? i / t : 0, o = t > 0 ? e / t : 0;
62
62
  return {
63
- velocityX: i,
63
+ velocityX: n,
64
64
  velocityY: o
65
65
  };
66
66
  };
67
67
  function U(t) {
68
- return (n) => n.pipe(
68
+ return (i) => i.pipe(
69
69
  h((e) => e.pointerId === t.pointerId)
70
70
  );
71
71
  }
72
72
  const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.type === "pointerup", Pe = ({
73
73
  container: t,
74
- afterEventReceived: n = (e) => e
74
+ afterEventReceived: i = (e) => e
75
75
  }) => S(t, "pointerdown").pipe(
76
- c(n)
76
+ c(i)
77
77
  ), ee = ({
78
78
  pointerEvent$: t
79
- }) => (n) => {
79
+ }) => (i) => {
80
80
  const e = t.pipe(
81
81
  h((r) => r.type === "pointerup")
82
- ), i = t.pipe(
82
+ ), n = t.pipe(
83
83
  h((r) => r.type === "pointerleave")
84
84
  ), o = t.pipe(
85
85
  h((r) => r.type === "pointercancel")
@@ -88,7 +88,7 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
88
88
  ), a = S(window, "contextmenu"), s = (r) => ["pointercancel", "pointerleave", "pointerup", "contextmenu"].includes(
89
89
  r.type
90
90
  );
91
- return n.pipe(
91
+ return i.pipe(
92
92
  b((r) => {
93
93
  const l = pe(() => T(r));
94
94
  return g(
@@ -96,7 +96,7 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
96
96
  g(
97
97
  p,
98
98
  o,
99
- i,
99
+ n,
100
100
  e,
101
101
  a
102
102
  )
@@ -126,29 +126,37 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
126
126
  pointers: Object.values(l).filter(fe)
127
127
  }))
128
128
  );
129
- }, _ = (t, n, e, i) => {
130
- const o = t.x - n.x + e, p = t.y - n.y + i;
129
+ }, _ = (t, i, e, n) => {
130
+ const o = t.x - i.x + e, p = t.y - i.y + n;
131
131
  return {
132
132
  deltaX: o,
133
133
  deltaY: p
134
134
  };
135
135
  }, te = (t) => {
136
- const n = (e) => F(
136
+ const i = (e) => k(
137
137
  e.latestActivePointers.length ? e.latestActivePointers : [e.event]
138
138
  );
139
139
  return t.pipe(
140
- L((e, i) => {
140
+ L((e, n) => {
141
141
  var f, E;
142
- const o = n(i), p = (e == null ? void 0 : e.center) ?? o, a = (e == null ? void 0 : e.deltaX) ?? 0, s = (e == null ? void 0 : e.deltaY) ?? 0, r = ((f = e == null ? void 0 : e.latestActivePointers) == null ? void 0 : f.length) ?? 1, l = ((E = i.latestActivePointers) == null ? void 0 : E.length) ?? 1, u = ["pointerdown", "pointercancel", "pointerleave", "pointerup"].includes(
143
- i.event.type
144
- ) && r !== l, m = l > 0, { deltaX: y, deltaY: A } = u && m ? _(o, o, a, s) : _(o, p, a, s), { degreesDelta: D } = r === l && r >= 2 && l >= 2 ? ye(
142
+ const o = i(n), p = (e == null ? void 0 : e.center) ?? o, a = (e == null ? void 0 : e.deltaX) ?? 0, s = (e == null ? void 0 : e.deltaY) ?? 0, r = ((f = e == null ? void 0 : e.latestActivePointers) == null ? void 0 : f.length) ?? 1, l = ((E = n.latestActivePointers) == null ? void 0 : E.length) ?? 1, u = ["pointerdown", "pointercancel", "pointerleave", "pointerup"].includes(
143
+ n.event.type
144
+ ) && r !== l, m = l > 0, { deltaX: y, deltaY: A } = u && m || /**
145
+ * A pointercancel cean come after a drag event and heven being completely
146
+ * desync, leading to erroned values. We should just ignore it.
147
+ */
148
+ n.event.type === "pointercancel" ? _(o, o, a, s) : _(o, p, a, s), { degreesDelta: D } = r === l && r >= 2 && l >= 2 && /**
149
+ * A pointercancel cean come after a drag event and heven being completely
150
+ * desync, leading to erroned values. We should just ignore it.
151
+ */
152
+ n.event.type !== "pointercancel" ? ye(
145
153
  (e == null ? void 0 : e.latestActivePointers) ?? [],
146
- i.latestActivePointers ?? []
154
+ n.latestActivePointers ?? []
147
155
  ) : { degreesDelta: 0 };
148
156
  return {
149
157
  startTime: (/* @__PURE__ */ new Date()).getTime(),
150
158
  ...e,
151
- ...i,
159
+ ...n,
152
160
  center: o,
153
161
  deltaX: y,
154
162
  deltaY: A,
@@ -157,16 +165,16 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
157
165
  }, void 0),
158
166
  c((e) => {
159
167
  const {
160
- deltaX: i,
168
+ deltaX: n,
161
169
  deltaY: o,
162
170
  latestActivePointers: p,
163
171
  startTime: a,
164
172
  center: s,
165
173
  event: r,
166
174
  deltaPointersAngle: l
167
- } = e, u = p ?? [], y = Date.now() - a, { velocityX: A, velocityY: D } = De(y, i, o), f = ve(p);
175
+ } = e, u = p ?? [], y = Date.now() - a, { velocityX: A, velocityY: D } = De(y, n, o), f = ve(p);
168
176
  return {
169
- deltaX: i,
177
+ deltaX: n,
170
178
  deltaY: o,
171
179
  velocityX: A,
172
180
  velocityY: D,
@@ -182,39 +190,39 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
182
190
  );
183
191
  }, G = (t) => t.pipe(
184
192
  h(
185
- (n) => !!n.container
193
+ (i) => !!i.container
186
194
  )
187
195
  ), ne = (t) => t.pipe(h(Z)), Ee = ({
188
196
  container: t,
189
- afterEventReceived: n = (e) => e
197
+ afterEventReceived: i = (e) => e
190
198
  }) => {
191
- const e = Pe({ afterEventReceived: n, container: t }), i = S(t, "pointerup").pipe(
192
- c(n)
199
+ const e = Pe({ afterEventReceived: i, container: t }), n = S(t, "pointerup").pipe(
200
+ c(i)
193
201
  ), o = S(t, "pointermove").pipe(
194
- c(n)
202
+ c(i)
195
203
  ), p = S(t, "pointerleave").pipe(
196
- c(n)
204
+ c(i)
197
205
  ), a = S(
198
206
  t,
199
207
  "pointercancel"
200
- ).pipe(c(n));
208
+ ).pipe(c(i));
201
209
  return {
202
210
  pointerEvents$: g(
203
211
  e,
204
212
  a,
205
213
  p,
206
- i,
214
+ n,
207
215
  o
208
216
  ),
209
217
  pointerDown$: e,
210
218
  pointerCancel$: a,
211
219
  pointerLeave$: p,
212
- pointerUp$: i,
220
+ pointerUp$: n,
213
221
  pointerMove$: o
214
222
  };
215
223
  };
216
- class O {
217
- constructor(n, e) {
224
+ class F {
225
+ constructor(i, e) {
218
226
  $(this, "configSubject", new q({}));
219
227
  $(this, "pan$");
220
228
  $(this, "panStart$");
@@ -232,7 +240,7 @@ class O {
232
240
  * Track active running failWith recognizers
233
241
  */
234
242
  $(this, "failWithActive$");
235
- const i = new q({
243
+ const n = new q({
236
244
  fingers: 0
237
245
  });
238
246
  this.pointerEvent$ = this.config$.pipe(
@@ -275,7 +283,8 @@ class O {
275
283
  var y, A, D;
276
284
  const a = Math.max(1, ((y = p.panConfig) == null ? void 0 : y.numInputs) ?? 1), s = Math.max(0, ((A = p.panConfig) == null ? void 0 : A.posThreshold) ?? 0), r = Math.max(0, ((D = p.panConfig) == null ? void 0 : D.delay) ?? 0), l = this.pointerDown$.pipe(
277
285
  ee({
278
- pointerEvent$: this.pointerEvent$
286
+ pointerEvent$: this.pointerEvent$,
287
+ trackMove: !0
279
288
  }),
280
289
  M(1)
281
290
  ), u = (f) => f.pipe(
@@ -320,7 +329,7 @@ class O {
320
329
  refCount: !1
321
330
  }),
322
331
  I(E)
323
- ), k = R.pipe(
332
+ ), O = R.pipe(
324
333
  b(
325
334
  () => l.pipe(
326
335
  ae(1),
@@ -342,7 +351,7 @@ class O {
342
351
  }))
343
352
  )
344
353
  )
345
- ), W = g(R, k, w).pipe(
354
+ ), W = g(R, O, w).pipe(
346
355
  M(1)
347
356
  );
348
357
  return W.pipe(
@@ -357,7 +366,7 @@ class O {
357
366
  );
358
367
  }),
359
368
  K((p) => {
360
- i.next({
369
+ n.next({
361
370
  fingers: p.pointers.length
362
371
  });
363
372
  }),
@@ -371,27 +380,27 @@ class O {
371
380
  ), this.panEnd$ = this.pan$.pipe(
372
381
  h((p) => p.type === "end"),
373
382
  c(({ type: p, ...a }) => a)
374
- ), this.state$ = i.asObservable(), this.updateInternal(n ?? {}, e);
383
+ ), this.state$ = n.asObservable(), this.updateInternal(i ?? {}, e);
375
384
  }
376
- updateInternal(n, e) {
377
- const i = this.configSubject.getValue();
385
+ updateInternal(i, e) {
386
+ const n = this.configSubject.getValue();
378
387
  this.configSubject.next({
379
- ...i,
380
388
  ...n,
381
- ...n.options && {
382
- options: { ...i.options, ...n.options }
389
+ ...i,
390
+ ...i.options && {
391
+ options: { ...n.options, ...i.options }
383
392
  },
384
393
  panConfig: {
385
- ...i.panConfig,
394
+ ...n.panConfig,
386
395
  ...e
387
396
  }
388
397
  });
389
398
  }
390
- update(n, e) {
391
- this.updateInternal(n, e);
399
+ update(i, e) {
400
+ this.updateInternal(i, e);
392
401
  }
393
402
  }
394
- class Se extends O {
403
+ class Se extends F {
395
404
  constructor(e) {
396
405
  var a;
397
406
  super(e, {
@@ -401,7 +410,7 @@ class Se extends O {
401
410
  $(this, "events$");
402
411
  $(this, "start$");
403
412
  $(this, "end$");
404
- const i = this.panStart$.pipe(
413
+ const n = this.panStart$.pipe(
405
414
  c((s) => ({
406
415
  type: "panStart",
407
416
  ...s
@@ -422,7 +431,7 @@ class Se extends O {
422
431
  ...s
423
432
  }))
424
433
  );
425
- this.events$ = i.pipe(
434
+ this.events$ = n.pipe(
426
435
  v((s) => {
427
436
  let r = s;
428
437
  const l = T(s), u = this.failWithActive$.pipe(
@@ -451,10 +460,10 @@ class Se extends O {
451
460
  super.update(e, e.options);
452
461
  }
453
462
  }
454
- const we = (t) => (n) => n.pipe(
463
+ const we = (t) => (i) => i.pipe(
455
464
  h((e) => Math.abs(e.velocityX) >= t || Math.abs(e.velocityY) >= t)
456
465
  );
457
- class be extends O {
466
+ class be extends F {
458
467
  constructor(e) {
459
468
  super(e, {
460
469
  posThreshold: 0,
@@ -462,8 +471,8 @@ class be extends O {
462
471
  });
463
472
  $(this, "events$");
464
473
  this.events$ = this.config$.pipe(
465
- v((i) => {
466
- const { escapeVelocity: o = 0.9 } = i.options ?? {};
474
+ v((n) => {
475
+ const { escapeVelocity: o = 0.9 } = n.options ?? {};
467
476
  return this.panStart$.pipe(
468
477
  C(this.failWithActive$),
469
478
  h(([, p]) => !p),
@@ -492,22 +501,22 @@ class be extends O {
492
501
  }
493
502
  const Me = ({
494
503
  timeout: t,
495
- pointerEvent$: n
504
+ pointerEvent$: i
496
505
  }) => (e) => e.pipe(
497
506
  b(
498
- (i) => J(t).pipe(
507
+ (n) => J(t).pipe(
499
508
  I(
500
- n.pipe(ne, U(i))
509
+ i.pipe(ne, U(n))
501
510
  )
502
511
  )
503
512
  )
504
513
  ), xe = ({
505
514
  initialPointerEvent: t,
506
- pointerEvent$: n,
515
+ pointerEvent$: i,
507
516
  tolerance: e
508
- }) => (i) => i.pipe(
517
+ }) => (n) => n.pipe(
509
518
  b(
510
- (o) => n.pipe(
519
+ (o) => i.pipe(
511
520
  U(o),
512
521
  V((p) => !Z(p), !0),
513
522
  h(
@@ -516,16 +525,17 @@ const Me = ({
516
525
  )
517
526
  )
518
527
  );
519
- class Ce extends O {
528
+ class Ce extends F {
520
529
  constructor(e) {
521
530
  super(e);
522
531
  $(this, "events$");
523
532
  this.events$ = this.config$.pipe(
524
- v((i) => {
533
+ v((n) => {
525
534
  var y, A;
526
- const o = ((y = i.options) == null ? void 0 : y.maxTaps) ?? 1, p = ((A = i.options) == null ? void 0 : A.multiTapThreshold) ?? 100 * (o - 1), { maximumPressTime: a = 150, tolerance: s = 10 } = i.options ?? {}, r = this.pointerDown$.pipe(
535
+ const o = ((y = n.options) == null ? void 0 : y.maxTaps) ?? 1, p = ((A = n.options) == null ? void 0 : A.multiTapThreshold) ?? 100 * (o - 1), { maximumPressTime: a = 150, tolerance: s = 10 } = n.options ?? {}, r = this.pointerDown$.pipe(
527
536
  ee({
528
- pointerEvent$: this.pointerEvent$
537
+ pointerEvent$: this.pointerEvent$,
538
+ trackMove: !0
529
539
  }),
530
540
  M(1)
531
541
  ), l = r.pipe(
@@ -559,7 +569,7 @@ class Ce extends O {
559
569
  l,
560
570
  X,
561
571
  B
562
- ), k = E.pipe(
572
+ ), O = E.pipe(
563
573
  Ae,
564
574
  h((w) => w.length <= o),
565
575
  c((w) => ({
@@ -570,9 +580,9 @@ class Ce extends O {
570
580
  })),
571
581
  M(1)
572
582
  );
573
- return k.pipe(
583
+ return O.pipe(
574
584
  te,
575
- C(k),
585
+ C(O),
576
586
  c(([w, { type: W, taps: d }]) => ({
577
587
  ...w,
578
588
  type: W,
@@ -590,7 +600,7 @@ class Ce extends O {
590
600
  super.update(e);
591
601
  }
592
602
  }
593
- class Re extends O {
603
+ class Re extends F {
594
604
  constructor(e = {}) {
595
605
  super(e, {
596
606
  numInputs: 2,
@@ -600,7 +610,7 @@ class Re extends O {
600
610
  $(this, "events$");
601
611
  this.events$ = this.config$.pipe(
602
612
  v(() => {
603
- const i = this.panStart$.pipe(
613
+ const n = this.panStart$.pipe(
604
614
  c((s) => ({
605
615
  ...s,
606
616
  type: "rotateStart",
@@ -608,7 +618,7 @@ class Re extends O {
608
618
  deltaAngle: 0
609
619
  })),
610
620
  M(1)
611
- ), o = i.pipe(
621
+ ), o = n.pipe(
612
622
  v(
613
623
  () => this.pan$.pipe(
614
624
  L((s, r) => {
@@ -630,7 +640,7 @@ class Re extends O {
630
640
  h((s) => s.type === "end"),
631
641
  c((s) => ({ ...s, type: "rotateEnd" }))
632
642
  );
633
- return g(i, p, a);
643
+ return g(n, p, a);
634
644
  }),
635
645
  P()
636
646
  );
@@ -641,12 +651,12 @@ class Re extends O {
641
651
  }
642
652
  const Y = ({
643
653
  type: t,
644
- initialEvent: n
654
+ initialEvent: i
645
655
  }) => (e) => e.pipe(
646
- L((i, o) => {
647
- const a = ((i == null ? void 0 : i.pointers.length) ?? 0) !== o.pointers.length, s = (i == null ? void 0 : i.pointersAverageDistance) ?? o.pointersAverageDistance, r = a ? o.pointersAverageDistance : i && "initialPointersAverageDistance" in i ? i.initialPointersAverageDistance : o.pointersAverageDistance, l = r === 0 ? 1 : o.pointersAverageDistance / r, u = o.pointersAverageDistance - r, m = o.pointersAverageDistance - r, y = a || s === 0 ? 1 : o.pointersAverageDistance / s;
656
+ L((n, o) => {
657
+ const a = ((n == null ? void 0 : n.pointers.length) ?? 0) !== o.pointers.length, s = (n == null ? void 0 : n.pointersAverageDistance) ?? o.pointersAverageDistance, r = a ? o.pointersAverageDistance : n && "initialPointersAverageDistance" in n ? n.initialPointersAverageDistance : o.pointersAverageDistance, l = r === 0 ? 1 : o.pointersAverageDistance / r, u = o.pointersAverageDistance - r, m = o.pointersAverageDistance - r, y = a || s === 0 ? 1 : o.pointersAverageDistance / s;
648
658
  return {
649
- ...i,
659
+ ...n,
650
660
  ...o,
651
661
  type: t,
652
662
  initialPointersAverageDistance: r,
@@ -655,10 +665,10 @@ const Y = ({
655
665
  deltaDistance: m,
656
666
  deltaDistanceScale: y
657
667
  };
658
- }, n),
659
- c(({ initialPointersAverageDistance: i, ...o }) => o)
668
+ }, i),
669
+ c(({ initialPointersAverageDistance: n, ...o }) => o)
660
670
  );
661
- class ze extends O {
671
+ class ze extends F {
662
672
  constructor(e) {
663
673
  super(e, {
664
674
  ...e == null ? void 0 : e.options,
@@ -669,7 +679,7 @@ class ze extends O {
669
679
  $(this, "end$");
670
680
  this.events$ = this.config$.pipe(
671
681
  v(() => {
672
- const i = this.panStart$.pipe(
682
+ const n = this.panStart$.pipe(
673
683
  C(this.failWithActive$),
674
684
  h(([, s]) => !s),
675
685
  c(([s]) => s),
@@ -686,7 +696,7 @@ class ze extends O {
686
696
  ), o = this.failWithActive$.pipe(
687
697
  h((s) => s),
688
698
  z()
689
- ), p = i.pipe(
699
+ ), p = n.pipe(
690
700
  v((s) => this.pan$.pipe(
691
701
  V((r) => r.type !== "end"),
692
702
  Y({
@@ -695,7 +705,7 @@ class ze extends O {
695
705
  })
696
706
  )),
697
707
  I(o)
698
- ), a = i.pipe(
708
+ ), a = n.pipe(
699
709
  v((s) => {
700
710
  let r = s;
701
711
  return this.pan$.pipe(
@@ -713,48 +723,48 @@ class ze extends O {
713
723
  );
714
724
  })
715
725
  );
716
- return g(i, p, a);
726
+ return g(n, p, a);
717
727
  }),
718
728
  P()
719
729
  ), this.start$ = this.events$.pipe(
720
- h((i) => i.type === "pinchStart")
721
- ), this.end$ = this.events$.pipe(h((i) => i.type === "pinchEnd"));
730
+ h((n) => n.type === "pinchStart")
731
+ ), this.end$ = this.events$.pipe(h((n) => n.type === "pinchEnd"));
722
732
  }
723
733
  update(e) {
724
734
  super.update(e, e.options);
725
735
  }
726
736
  }
727
- class Fe {
728
- constructor(n) {
737
+ class ke {
738
+ constructor(i) {
729
739
  $(this, "events$");
730
740
  $(this, "recognizers");
731
741
  $(this, "state$");
732
- this.options = n, this.recognizers = n.recognizers, this.events$ = g(
733
- ...n.recognizers.map((e) => e.events$)
742
+ this.options = i, this.recognizers = i.recognizers, this.events$ = g(
743
+ ...i.recognizers.map((e) => e.events$)
734
744
  ).pipe(P()), this.state$ = j(
735
745
  this.recognizers.map((e) => e.state$)
736
746
  ).pipe(
737
747
  c(
738
- (e) => e.reduce((i, o) => ({
739
- fingers: Math.max(i.fingers, o.fingers)
748
+ (e) => e.reduce((n, o) => ({
749
+ fingers: Math.max(n.fingers, o.fingers)
740
750
  }))
741
751
  )
742
- ), this.update(n);
752
+ ), this.update(i);
743
753
  }
744
754
  update({
745
- disableTextSelection: n,
755
+ disableTextSelection: i,
746
756
  ...e
747
757
  }) {
748
- e.container && (e.container.style.touchAction = "none", n && (e.container.style.userSelect = "none")), this.options.recognizers.forEach((i) => {
749
- i.update(e);
758
+ e.container && (e.container.style.touchAction = "none", i && (e.container.style.userSelect = "none")), this.options.recognizers.forEach((n) => {
759
+ n.update(e);
750
760
  });
751
761
  }
752
762
  }
753
763
  export {
754
764
  Se as PanRecognizer,
755
765
  ze as PinchRecognizer,
756
- Fe as Recognizable,
757
- O as Recognizer,
766
+ ke as Recognizable,
767
+ F as Recognizer,
758
768
  Re as RotateRecognizer,
759
769
  be as SwipeRecognizer,
760
770
  Ce as TapRecognizer