@juleshry/vue-animejs 1.2.2 → 1.3.0

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/index.js CHANGED
@@ -1,28 +1,28 @@
1
1
  import { computed as e, isRef as t, markRaw as n, shallowReadonly as r, shallowRef as i, toValue as a, unref as o, watch as s } from "vue";
2
- import { animate as c, createAnimatable as l, createDraggable as u, createLayout as d, createScope as f, createTimeline as p, createTimer as m, splitText as h, svg as g, waapi as _ } from "animejs";
3
- import { isClient as v, tryOnMounted as y, tryOnUnmounted as b, unrefElement as x } from "@vueuse/core";
2
+ import { animate as c, createAnimatable as l, createDraggable as u, createLayout as d, createScope as f, createTimeline as p, createTimer as m, onScroll as h, splitText as g, svg as _, waapi as v } from "animejs";
3
+ import { isClient as y, tryOnMounted as b, tryOnUnmounted as x, unrefElement as S } from "@vueuse/core";
4
4
  //#region src/utils/resolve-target.ts
5
- function S(e) {
5
+ function C(e) {
6
6
  if (Array.isArray(e)) {
7
- let t = e.map((e) => x(e)).filter((e) => e != null);
7
+ let t = e.map((e) => S(e)).filter((e) => e != null);
8
8
  return t.length > 0 ? t : void 0;
9
9
  }
10
- return x(e);
10
+ return S(e);
11
11
  }
12
12
  //#endregion
13
13
  //#region src/composables/use-animate.ts
14
- function C(e, a = {}) {
15
- let l = i(), { stop: u } = s([() => S(e), () => o(a)], ([e, t]) => {
14
+ function w(e, a = {}) {
15
+ let l = i(), { stop: u } = s([() => C(e), () => o(a)], ([e, t]) => {
16
16
  d(e, t);
17
17
  }, {
18
18
  flush: "post",
19
- immediate: !t(e) && v
19
+ immediate: !t(e) && y
20
20
  });
21
- b(() => {
22
- u(), x();
21
+ x(() => {
22
+ u(), b();
23
23
  });
24
24
  function d(e, t) {
25
- if (C(), !e) {
25
+ if (S(), !e) {
26
26
  console.warn("Target element is null or undefined"), l.value = void 0;
27
27
  return;
28
28
  }
@@ -46,13 +46,13 @@ function C(e, a = {}) {
46
46
  function _() {
47
47
  return l.value?.resume();
48
48
  }
49
- function y() {
49
+ function v() {
50
50
  return l.value?.complete();
51
51
  }
52
- function x() {
52
+ function b() {
53
53
  return l.value?.cancel();
54
54
  }
55
- function C() {
55
+ function S() {
56
56
  return l.value?.revert();
57
57
  }
58
58
  function w(e) {
@@ -75,9 +75,9 @@ function C(e, a = {}) {
75
75
  restart: h,
76
76
  alternate: g,
77
77
  resume: _,
78
- complete: y,
79
- cancel: x,
80
- revert: C,
78
+ complete: v,
79
+ cancel: b,
80
+ revert: S,
81
81
  reset: w,
82
82
  seek: T,
83
83
  stretch: E,
@@ -86,24 +86,24 @@ function C(e, a = {}) {
86
86
  }
87
87
  //#endregion
88
88
  //#region src/composables/use-raw-animate.ts
89
- function w(e, t = {}) {
90
- let n = S(e);
89
+ function T(e, t = {}) {
90
+ let n = C(e);
91
91
  return n || console.warn("Target is undefined"), c(n, o(t));
92
92
  }
93
93
  //#endregion
94
94
  //#region src/composables/use-timer.ts
95
- function T(e = {}) {
95
+ function E(e = {}) {
96
96
  let t = i(), a;
97
97
  function c(e) {
98
98
  e !== a && (a = e, S(), t.value = n(m(e)));
99
99
  }
100
- y(() => {
100
+ b(() => {
101
101
  c(o(e));
102
102
  });
103
103
  let { stop: l } = s(() => o(e), (e) => {
104
- v && c(e);
104
+ y && c(e);
105
105
  }, { deep: 1 });
106
- b(() => {
106
+ x(() => {
107
107
  l(), S();
108
108
  });
109
109
  function u() {
@@ -127,7 +127,7 @@ function T(e = {}) {
127
127
  function _() {
128
128
  return t.value?.complete();
129
129
  }
130
- function x(e) {
130
+ function v(e) {
131
131
  return t.value?.reset(e);
132
132
  }
133
133
  function S() {
@@ -151,7 +151,7 @@ function T(e = {}) {
151
151
  alternate: h,
152
152
  resume: g,
153
153
  complete: _,
154
- reset: x,
154
+ reset: v,
155
155
  cancel: S,
156
156
  revert: C,
157
157
  seek: w,
@@ -160,23 +160,23 @@ function T(e = {}) {
160
160
  }
161
161
  //#endregion
162
162
  //#region src/composables/use-timeline.ts
163
- function E(e = {}) {
163
+ function D(e = {}) {
164
164
  let t = !1, c, l = [], u = i();
165
165
  function d() {
166
- for (let e of l) e.type === "add" ? u.value?.add(S(e.targets), a(e.params), e.position) : e.type === "set" ? u.value?.set(S(e.targets), a(e.params), e.position) : u.value?.call(e.callback, e.position);
166
+ for (let e of l) e.type === "add" ? u.value?.add(C(e.targets), a(e.params), e.position) : e.type === "set" ? u.value?.set(C(e.targets), a(e.params), e.position) : u.value?.call(e.callback, e.position);
167
167
  }
168
168
  function f(e) {
169
169
  e !== c && (c = e, F(), u.value = n(p(e)), d());
170
170
  }
171
171
  let { stop: m } = s(() => o(e), (e) => {
172
- v && f(e);
172
+ y && f(e);
173
173
  }, {
174
174
  flush: "post",
175
175
  deep: 1
176
176
  });
177
- y(() => {
177
+ b(() => {
178
178
  f(o(e)), t = !0;
179
- }), b(() => {
179
+ }), x(() => {
180
180
  m(), P();
181
181
  });
182
182
  function h(e, n, r) {
@@ -186,7 +186,7 @@ function E(e = {}) {
186
186
  params: n,
187
187
  position: r
188
188
  }), t ? {
189
- ...u.value?.add(S(e), a(n), r),
189
+ ...u.value?.add(C(e), a(n), r),
190
190
  add: h,
191
191
  set: g,
192
192
  remove: _
@@ -204,7 +204,7 @@ function E(e = {}) {
204
204
  params: n,
205
205
  position: r
206
206
  }), t ? {
207
- ...u.value?.set(S(e), a(n), r),
207
+ ...u.value?.set(C(e), a(n), r),
208
208
  add: h,
209
209
  set: g,
210
210
  remove: _
@@ -217,7 +217,7 @@ function E(e = {}) {
217
217
  }
218
218
  function _(e, n) {
219
219
  return t ? {
220
- ...u.value?.remove(S(e), n),
220
+ ...u.value?.remove(C(e), n),
221
221
  add: h,
222
222
  set: g,
223
223
  remove: _
@@ -228,10 +228,10 @@ function E(e = {}) {
228
228
  remove: _
229
229
  });
230
230
  }
231
- function x(e, t) {
231
+ function v(e, t) {
232
232
  return u.value?.sync(e, t);
233
233
  }
234
- function C(e, t) {
234
+ function S(e, t) {
235
235
  return u.value?.label(e, t);
236
236
  }
237
237
  function w(e, t) {
@@ -287,8 +287,8 @@ function E(e = {}) {
287
287
  timeline: r(u),
288
288
  add: h,
289
289
  set: g,
290
- sync: x,
291
- label: C,
290
+ sync: v,
291
+ label: S,
292
292
  remove: _,
293
293
  call: w,
294
294
  init: T,
@@ -309,9 +309,9 @@ function E(e = {}) {
309
309
  }
310
310
  //#endregion
311
311
  //#region src/composables/use-animatable.ts
312
- function D(a, c = {}) {
312
+ function O(a, c = {}) {
313
313
  let u = i(), d = e(() => ({
314
- el: S(a),
314
+ el: C(a),
315
315
  opt: o(c)
316
316
  })), { stop: f } = s(d, ({ el: e, opt: t }) => {
317
317
  if (p(), !e) {
@@ -321,9 +321,9 @@ function D(a, c = {}) {
321
321
  u.value = n(l(e, t));
322
322
  }, {
323
323
  flush: "post",
324
- immediate: !t(a) && v
324
+ immediate: !t(a) && y
325
325
  });
326
- b(() => {
326
+ x(() => {
327
327
  f(), p();
328
328
  });
329
329
  function p() {
@@ -336,25 +336,25 @@ function D(a, c = {}) {
336
336
  }
337
337
  //#endregion
338
338
  //#region src/composables/use-raw-animatable.ts
339
- function O(e, t = {}) {
340
- let n = S(e);
339
+ function k(e, t = {}) {
340
+ let n = C(e);
341
341
  return n || console.warn("Targets element is null or undefined"), l(n, o(t));
342
342
  }
343
343
  //#endregion
344
344
  //#region src/composables/use-draggable.ts
345
- function k(e, a = {}) {
346
- let c = i(), { stop: l } = s([() => S(e), () => o(a)], ([e, t]) => {
347
- if (x(), !e) {
345
+ function A(e, a = {}) {
346
+ let c = i(), { stop: l } = s([() => C(e), () => o(a)], ([e, t]) => {
347
+ if (b(), !e) {
348
348
  console.warn("Targets element is null or undefined"), c.value = void 0;
349
349
  return;
350
350
  }
351
351
  c.value = n(u(e, t));
352
352
  }, {
353
353
  flush: "post",
354
- immediate: !t(e) && v
354
+ immediate: !t(e) && y
355
355
  });
356
- b(() => {
357
- x(), l();
356
+ x(() => {
357
+ b(), l();
358
358
  });
359
359
  function d() {
360
360
  return c.value?.disable();
@@ -377,13 +377,13 @@ function k(e, a = {}) {
377
377
  function _() {
378
378
  return c.value?.stop();
379
379
  }
380
- function y() {
380
+ function v() {
381
381
  return c.value?.reset();
382
382
  }
383
- function x() {
383
+ function b() {
384
384
  return c.value?.revert();
385
385
  }
386
- function C() {
386
+ function S() {
387
387
  return c.value?.refresh();
388
388
  }
389
389
  return {
@@ -395,15 +395,15 @@ function k(e, a = {}) {
395
395
  animateInView: h,
396
396
  scrollInView: g,
397
397
  stop: _,
398
- reset: y,
399
- revert: x,
400
- refresh: C
398
+ reset: v,
399
+ revert: b,
400
+ refresh: S
401
401
  };
402
402
  }
403
403
  //#endregion
404
404
  //#region src/composables/use-layout.ts
405
- function A(e, a = {}) {
406
- let c = i(), { stop: l } = s([() => S(e), () => o(a)], ([e, t]) => {
405
+ function j(e, a = {}) {
406
+ let c = i(), { stop: l } = s([() => C(e), () => o(a)], ([e, t]) => {
407
407
  if (m(), !e) {
408
408
  console.warn("Target element is null or undefined"), c.value = void 0;
409
409
  return;
@@ -411,9 +411,9 @@ function A(e, a = {}) {
411
411
  c.value = n(d(e, t));
412
412
  }, {
413
413
  flush: "post",
414
- immediate: !t(e) && v
414
+ immediate: !t(e) && y
415
415
  });
416
- b(() => {
416
+ x(() => {
417
417
  m(), l();
418
418
  });
419
419
  function u() {
@@ -437,17 +437,56 @@ function A(e, a = {}) {
437
437
  };
438
438
  }
439
439
  //#endregion
440
+ //#region src/composables/use-scroll.ts
441
+ function M(t, r, i = {}) {
442
+ let a, s = e(() => {
443
+ if (a?.revert(), a = void 0, !y) return;
444
+ let e = C(t), s = C(r);
445
+ if (e && s) return a = n(h({
446
+ ...o(i),
447
+ container: e,
448
+ target: s
449
+ })), a;
450
+ }), c = e(() => s.value ?? !1), l = e(() => ({ autoplay: c.value }));
451
+ x(() => a?.revert());
452
+ function u() {
453
+ return s.value?.refresh();
454
+ }
455
+ function d() {
456
+ return s.value?.revert();
457
+ }
458
+ function f() {
459
+ s.value?.debug();
460
+ }
461
+ function p() {
462
+ return s.value?.removeDebug();
463
+ }
464
+ function m(e) {
465
+ return s.value?.link(e);
466
+ }
467
+ return {
468
+ observer: s,
469
+ autoplay: c,
470
+ autoplayComputed: l,
471
+ refresh: u,
472
+ revert: d,
473
+ debug: f,
474
+ removeDebug: p,
475
+ link: m
476
+ };
477
+ }
478
+ //#endregion
440
479
  //#region src/composables/use-svg.ts
441
- function j() {
480
+ function N() {
442
481
  function e(e, t) {
443
482
  return (n, r, i, a) => {
444
483
  let s = o(e);
445
- return s ? g.morphTo(s, o(t))(n, r, i, a) : "";
484
+ return s ? _.morphTo(s, o(t))(n, r, i, a) : "";
446
485
  };
447
486
  }
448
487
  function t(e, t) {
449
488
  let n = o(e) ?? "";
450
- return g.createMotionPath(n, o(t));
489
+ return _.createMotionPath(n, o(t));
451
490
  }
452
491
  return {
453
492
  morphTo: e,
@@ -456,37 +495,37 @@ function j() {
456
495
  }
457
496
  //#endregion
458
497
  //#region src/composables/use-svg-drawable.ts
459
- function M(e, a = 0, c = 0) {
460
- let l = i(), { stop: u } = s(() => S(e), (e) => {
498
+ function P(e, a = 0, c = 0) {
499
+ let l = i(), { stop: u } = s(() => C(e), (e) => {
461
500
  if (l.value = void 0, !e) {
462
501
  console.warn("[useSvgDrawable] Target element is null or undefined");
463
502
  return;
464
503
  }
465
- l.value = n(g.createDrawable(e, o(a), o(c))[0]);
504
+ l.value = n(_.createDrawable(e, o(a), o(c))[0]);
466
505
  }, {
467
506
  flush: "post",
468
- immediate: !t(e) && v
507
+ immediate: !t(e) && y
469
508
  });
470
- return b(() => {
509
+ return x(() => {
471
510
  u(), l.value = void 0;
472
511
  }), { drawable: r(l) };
473
512
  }
474
513
  //#endregion
475
514
  //#region src/composables/use-text.ts
476
- function N(a, c) {
477
- let l = i(), u = e(() => l.value?.lines ?? []), d = e(() => l.value?.words ?? []), f = e(() => l.value?.chars ?? []), { stop: p } = s([() => S(a), () => o(c)], ([e, t]) => {
478
- m(), l.value = void 0, e && (l.value = n(h(e, t)));
515
+ function F(a, c) {
516
+ let l = i(), u = e(() => l.value?.lines ?? []), d = e(() => l.value?.words ?? []), f = e(() => l.value?.chars ?? []), { stop: p } = s([() => C(a), () => o(c)], ([e, t]) => {
517
+ m(), l.value = void 0, e && (l.value = n(g(e, t)));
479
518
  }, {
480
519
  flush: "post",
481
- immediate: !t(a) && v
520
+ immediate: !t(a) && y
482
521
  });
483
- b(() => {
522
+ x(() => {
484
523
  p(), l.value = void 0, m();
485
524
  });
486
525
  function m() {
487
526
  l.value?.revert();
488
527
  }
489
- function g() {
528
+ function h() {
490
529
  l.value?.refresh();
491
530
  }
492
531
  return {
@@ -495,19 +534,19 @@ function N(a, c) {
495
534
  words: d,
496
535
  chars: f,
497
536
  revert: m,
498
- refresh: g
537
+ refresh: h
499
538
  };
500
539
  }
501
540
  //#endregion
502
541
  //#region src/composables/use-waapi.ts
503
- function P(e, a = {}) {
504
- let c = i(), { stop: l } = s([() => S(e), () => o(a)], ([e, t]) => {
505
- c.value = n(_.animate(e, t));
542
+ function I(e, a = {}) {
543
+ let c = i(), { stop: l } = s([() => C(e), () => o(a)], ([e, t]) => {
544
+ c.value = n(v.animate(e, t));
506
545
  }, {
507
546
  flush: "post",
508
- immediate: !t(e) && v
547
+ immediate: !t(e) && y
509
548
  });
510
- b(() => {
549
+ x(() => {
511
550
  l();
512
551
  });
513
552
  function u() {
@@ -531,13 +570,13 @@ function P(e, a = {}) {
531
570
  function g() {
532
571
  return c.value?.restart();
533
572
  }
534
- function y() {
573
+ function _() {
535
574
  return c.value?.commitStyles();
536
575
  }
537
- function x() {
576
+ function b() {
538
577
  return c.value?.complete();
539
578
  }
540
- function C() {
579
+ function S() {
541
580
  return c.value?.cancel();
542
581
  }
543
582
  function w() {
@@ -552,21 +591,21 @@ function P(e, a = {}) {
552
591
  reverse: m,
553
592
  seek: h,
554
593
  restart: g,
555
- commitStyles: y,
556
- complete: x,
557
- cancel: C,
594
+ commitStyles: _,
595
+ complete: b,
596
+ cancel: S,
558
597
  revert: w,
559
- convertEase: F
598
+ convertEase: L
560
599
  };
561
600
  }
562
- function F(e, t = 100) {
563
- return _.convertEase(o(e), o(t));
601
+ function L(e, t = 100) {
602
+ return v.convertEase(o(e), o(t));
564
603
  }
565
604
  //#endregion
566
605
  //#region src/composables/use-scope.ts
567
- function I(e) {
606
+ function R(e) {
568
607
  let a = i(void 0), c = [], l = [], u = [], d = !1, p;
569
- y(() => {
608
+ b(() => {
570
609
  d = !0, a.value = n(f(o(e)));
571
610
  for (let e of c) a.value.add(e);
572
611
  for (let [e, t] of l) a.value.add(e, t);
@@ -574,7 +613,7 @@ function I(e) {
574
613
  c.length = 0, l.length = 0, u.length = 0, t(e) && (p = s(e, (e) => {
575
614
  a.value?.revert(), a.value = n(f(e));
576
615
  }, { flush: "post" }));
577
- }), b(() => {
616
+ }), x(() => {
578
617
  a.value?.revert(), p?.();
579
618
  });
580
619
  function m(e) {
@@ -592,7 +631,7 @@ function I(e) {
592
631
  function v() {
593
632
  return a.value?.revert();
594
633
  }
595
- function x() {
634
+ function y() {
596
635
  return a.value?.refresh();
597
636
  }
598
637
  return {
@@ -602,83 +641,83 @@ function I(e) {
602
641
  addOnce: g,
603
642
  keepTime: _,
604
643
  revert: v,
605
- refresh: x
644
+ refresh: y
606
645
  };
607
646
  }
608
647
  //#endregion
609
648
  //#region src/directives/v-animate.ts
610
- var L = /* @__PURE__ */ new WeakMap(), R = {
649
+ var z = /* @__PURE__ */ new WeakMap(), B = {
611
650
  mounted(e, t) {
612
- t.value && L.set(e, c(e, t.value));
651
+ t.value && z.set(e, c(e, t.value));
613
652
  },
614
653
  updated(e, t) {
615
654
  if (t.value === t.oldValue) return;
616
- let n = L.get(e);
617
- n?.cancel(), n?.revert(), t.value && L.set(e, c(e, t.value));
655
+ let n = z.get(e);
656
+ n?.cancel(), n?.revert(), t.value && z.set(e, c(e, t.value));
618
657
  },
619
658
  unmounted(e) {
620
- let t = L.get(e);
621
- t?.cancel(), t?.revert(), L.delete(e);
659
+ let t = z.get(e);
660
+ t?.cancel(), t?.revert(), z.delete(e);
622
661
  }
623
- }, z = /* @__PURE__ */ new WeakMap(), B = {
662
+ }, V = /* @__PURE__ */ new WeakMap(), H = {
624
663
  mounted(e, t) {
625
- z.set(e, u(e, t.value ?? {}));
664
+ V.set(e, u(e, t.value ?? {}));
626
665
  },
627
666
  updated(e, t) {
628
- t.value !== t.oldValue && (z.get(e)?.revert(), z.set(e, u(e, t.value ?? {})));
667
+ t.value !== t.oldValue && (V.get(e)?.revert(), V.set(e, u(e, t.value ?? {})));
629
668
  },
630
669
  unmounted(e) {
631
- z.get(e)?.revert(), z.delete(e);
670
+ V.get(e)?.revert(), V.delete(e);
632
671
  }
633
- }, V = /* @__PURE__ */ new WeakMap();
634
- function H(e, t) {
635
- let n = g.createDrawable(e)[0];
672
+ }, U = /* @__PURE__ */ new WeakMap();
673
+ function W(e, t) {
674
+ let n = _.createDrawable(e)[0];
636
675
  return {
637
676
  drawable: n,
638
677
  animation: t ? c(n, t) : void 0
639
678
  };
640
679
  }
641
- var U = {
680
+ var G = {
642
681
  mounted(e, t) {
643
- V.set(e, H(e, t.value));
682
+ U.set(e, W(e, t.value));
644
683
  },
645
684
  updated(e, t) {
646
685
  if (t.value === t.oldValue) return;
647
- let n = V.get(e);
648
- n?.animation?.cancel(), n?.animation?.revert(), V.set(e, H(e, t.value));
686
+ let n = U.get(e);
687
+ n?.animation?.cancel(), n?.animation?.revert(), U.set(e, W(e, t.value));
649
688
  },
650
689
  unmounted(e) {
651
- let t = V.get(e);
652
- t?.animation?.cancel(), t?.animation?.revert(), V.delete(e);
690
+ let t = U.get(e);
691
+ t?.animation?.cancel(), t?.animation?.revert(), U.delete(e);
653
692
  }
654
- }, W = /* @__PURE__ */ new WeakMap(), G = {
693
+ }, K = /* @__PURE__ */ new WeakMap(), q = {
655
694
  mounted(e, t) {
656
- t.value && W.set(e, {
657
- animation: _.animate(e, t.value),
695
+ t.value && K.set(e, {
696
+ animation: v.animate(e, t.value),
658
697
  originalStyle: e.style.cssText
659
698
  });
660
699
  },
661
700
  updated(e, t) {
662
701
  if (t.value === t.oldValue) return;
663
- let n = W.get(e);
664
- n && (n.animation.cancel(), e.style.cssText = n.originalStyle, W.delete(e)), t.value && W.set(e, {
665
- animation: _.animate(e, t.value),
702
+ let n = K.get(e);
703
+ n && (n.animation.cancel(), e.style.cssText = n.originalStyle, K.delete(e)), t.value && K.set(e, {
704
+ animation: v.animate(e, t.value),
666
705
  originalStyle: e.style.cssText
667
706
  });
668
707
  },
669
708
  unmounted(e) {
670
- let t = W.get(e);
671
- t && (t.animation.cancel(), e.style.cssText = t.originalStyle, W.delete(e));
709
+ let t = K.get(e);
710
+ t && (t.animation.cancel(), e.style.cssText = t.originalStyle, K.delete(e));
672
711
  }
673
- }, K = /* @__PURE__ */ new WeakMap();
674
- function q(e, t) {
675
- let { animation: n, ...r } = t ?? {}, i = h(e, r), a = {
712
+ }, J = /* @__PURE__ */ new WeakMap();
713
+ function Y(e, t) {
714
+ let { animation: n, ...r } = t ?? {}, i = g(e, r), a = {
676
715
  splitter: i,
677
716
  animation: void 0
678
717
  };
679
718
  if (n) {
680
719
  if (r.lines) (document.fonts?.ready ?? Promise.resolve()).then(() => {
681
- K.get(e) === a && (a.animation = c(i.lines, n));
720
+ J.get(e) === a && (a.animation = c(i.lines, n));
682
721
  });
683
722
  else {
684
723
  let e = r.chars ? i.chars : i.words;
@@ -687,24 +726,24 @@ function q(e, t) {
687
726
  }
688
727
  return a;
689
728
  }
690
- function J(e) {
729
+ function X(e) {
691
730
  e.animation?.cancel(), e.splitter.revert();
692
731
  }
693
- var Y = {
732
+ var Z = {
694
733
  mounted(e, t) {
695
- K.set(e, q(e, t.value));
734
+ J.set(e, Y(e, t.value));
696
735
  },
697
736
  updated(e, t) {
698
737
  if (t.value === t.oldValue) return;
699
- let n = K.get(e);
700
- n && J(n), K.set(e, q(e, t.value));
738
+ let n = J.get(e);
739
+ n && X(n), J.set(e, Y(e, t.value));
701
740
  },
702
741
  unmounted(e) {
703
- let t = K.get(e);
704
- t && J(t), K.delete(e);
742
+ let t = J.get(e);
743
+ t && X(t), J.delete(e);
705
744
  }
706
745
  };
707
746
  //#endregion
708
- export { D as useAnimatable, C as useAnimate, k as useDraggable, A as useLayout, O as useRawAnimatable, w as useRawAnimate, I as useScope, j as useSvg, M as useSvgDrawable, N as useText, E as useTimeline, T as useTimer, P as useWaapi, R as vAnimate, B as vDraggable, U as vSvgDrawable, Y as vTextSplit, G as vWaapi };
747
+ export { O as useAnimatable, w as useAnimate, A as useDraggable, j as useLayout, k as useRawAnimatable, T as useRawAnimate, R as useScope, M as useScroll, N as useSvg, P as useSvgDrawable, F as useText, D as useTimeline, E as useTimer, I as useWaapi, B as vAnimate, H as vDraggable, G as vSvgDrawable, Z as vTextSplit, q as vWaapi };
709
748
 
710
749
  //# sourceMappingURL=index.js.map