@juleshry/vue-animejs 0.5.2 → 1.0.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,70 +1,70 @@
1
- import { computed as e, isRef as t, readonly as n, shallowReadonly as r, shallowRef as i, unref as a, watch as o } from "vue";
2
- import { animate as s, createAnimatable as c, createDraggable as l, createLayout as u, createScope as d, createTimeline as f, createTimer as p, splitText as m, svg as h, waapi as g } from "animejs";
3
- import { tryOnMounted as _, tryOnUnmounted as v, unrefElement as y } from "@vueuse/core";
1
+ import { computed as e, isRef as t, readonly 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 { tryOnMounted as v, tryOnUnmounted as y, unrefElement as b } from "@vueuse/core";
4
4
  //#region src/utils/resolve-target.ts
5
- function b(e) {
6
- return y(e);
5
+ function x(e) {
6
+ return b(e);
7
7
  }
8
8
  //#endregion
9
9
  //#region src/composables/use-animate.ts
10
- function x(e, r = {}) {
11
- let c = i(), { stop: l } = o([() => b(e), () => a(r)], ([e, t]) => {
10
+ function S(e, r = {}) {
11
+ let a = i(), { stop: l } = s([() => x(e), () => o(r)], ([e, t]) => {
12
12
  u(e, t);
13
13
  }, {
14
14
  flush: "post",
15
15
  immediate: !t(e)
16
16
  });
17
- v(() => {
18
- l(), y();
17
+ y(() => {
18
+ l(), v();
19
19
  });
20
20
  function u(e, t) {
21
- if (x(), !e) {
22
- console.warn("Target element is null or undefined"), c.value = void 0;
21
+ if (b(), !e) {
22
+ console.warn("Target element is null or undefined"), a.value = void 0;
23
23
  return;
24
24
  }
25
- c.value = s(e, t);
25
+ a.value = c(e, t);
26
26
  }
27
27
  function d() {
28
- return c.value?.play();
28
+ return a.value?.play();
29
29
  }
30
30
  function f() {
31
- return c.value?.reverse();
31
+ return a.value?.reverse();
32
32
  }
33
33
  function p() {
34
- return c.value?.pause();
34
+ return a.value?.pause();
35
35
  }
36
36
  function m() {
37
- return c.value?.restart();
37
+ return a.value?.restart();
38
38
  }
39
39
  function h() {
40
- return c.value?.alternate();
40
+ return a.value?.alternate();
41
41
  }
42
42
  function g() {
43
- return c.value?.resume();
43
+ return a.value?.resume();
44
44
  }
45
45
  function _() {
46
- return c.value?.complete();
46
+ return a.value?.complete();
47
47
  }
48
- function y() {
49
- return c.value?.cancel();
48
+ function v() {
49
+ return a.value?.cancel();
50
50
  }
51
- function x() {
52
- return c.value?.revert();
51
+ function b() {
52
+ return a.value?.revert();
53
53
  }
54
54
  function S(e) {
55
- return c.value?.reset(e);
55
+ return a.value?.reset(e);
56
56
  }
57
57
  function C(e, t, n) {
58
- return c.value?.seek(e, t, n);
58
+ return a.value?.seek(e, t, n);
59
59
  }
60
60
  function w(e) {
61
- return c.value?.stretch(e);
61
+ return a.value?.stretch(e);
62
62
  }
63
63
  function T() {
64
- return c.value?.refresh();
64
+ return a.value?.refresh();
65
65
  }
66
66
  return {
67
- animation: n(c),
67
+ animation: n(a),
68
68
  play: d,
69
69
  reverse: f,
70
70
  pause: p,
@@ -72,8 +72,8 @@ function x(e, r = {}) {
72
72
  alternate: h,
73
73
  resume: g,
74
74
  complete: _,
75
- cancel: y,
76
- revert: x,
75
+ cancel: v,
76
+ revert: b,
77
77
  reset: S,
78
78
  seek: C,
79
79
  stretch: w,
@@ -82,20 +82,20 @@ function x(e, r = {}) {
82
82
  }
83
83
  //#endregion
84
84
  //#region src/composables/use-raw-animate.ts
85
- function S(e, t = {}) {
86
- let n = b(e);
87
- return n || console.warn("Target is undefined"), s(n, a(t));
85
+ function C(e, t = {}) {
86
+ let n = x(e);
87
+ return n || console.warn("Target is undefined"), c(n, o(t));
88
88
  }
89
89
  //#endregion
90
90
  //#region src/composables/use-timer.ts
91
- function C(e = {}) {
92
- let t = i(p(a(e))), { stop: r } = o(() => a(e), (e) => {
93
- g(), t.value = p(e);
91
+ function w(e = {}) {
92
+ let t = i(m(o(e))), { stop: r } = s(() => o(e), (e) => {
93
+ g(), t.value = m(e);
94
94
  }, { deep: 1 });
95
- v(() => {
95
+ y(() => {
96
96
  r(), g();
97
97
  });
98
- function s() {
98
+ function a() {
99
99
  return t.value.play();
100
100
  }
101
101
  function c() {
@@ -113,7 +113,7 @@ function C(e = {}) {
113
113
  function f() {
114
114
  return t.value.resume();
115
115
  }
116
- function m() {
116
+ function p() {
117
117
  return t.value.complete();
118
118
  }
119
119
  function h(e) {
@@ -125,7 +125,7 @@ function C(e = {}) {
125
125
  function _() {
126
126
  return t.value.revert();
127
127
  }
128
- function y(e, n, r) {
128
+ function v(e, n, r) {
129
129
  return t.value.seek(e, n, r);
130
130
  }
131
131
  function b(e) {
@@ -133,238 +133,238 @@ function C(e = {}) {
133
133
  }
134
134
  return {
135
135
  timer: n(t),
136
- play: s,
136
+ play: a,
137
137
  reverse: c,
138
138
  pause: l,
139
139
  restart: u,
140
140
  alternate: d,
141
141
  resume: f,
142
- complete: m,
142
+ complete: p,
143
143
  reset: h,
144
144
  cancel: g,
145
145
  revert: _,
146
- seek: y,
146
+ seek: v,
147
147
  stretch: b
148
148
  };
149
149
  }
150
150
  //#endregion
151
151
  //#region src/composables/use-timeline.ts
152
- function w(e = {}) {
153
- let t = !1, r = [], s = i(f(a(e)));
154
- function c() {
155
- for (let e of r) e.type === "add" ? s.value.add(b(e.targets), e.params, e.position) : s.value.set(b(e.targets), e.params, e.position);
152
+ function T(e = {}) {
153
+ let t = !1, r = [], c = i(p(o(e)));
154
+ function l() {
155
+ for (let e of r) e.type === "add" ? c.value.add(x(e.targets), a(e.params), e.position) : c.value.set(x(e.targets), a(e.params), e.position);
156
156
  }
157
- let { stop: l } = o(() => a(e), (e) => {
158
- A(), s.value = f(e), c();
157
+ let { stop: u } = s(() => o(e), (e) => {
158
+ j(), c.value = p(e), l();
159
159
  }, {
160
160
  flush: "post",
161
161
  deep: 1
162
162
  });
163
- _(() => {
164
- t = !0, c();
165
- }), v(() => {
166
- l(), k();
163
+ v(() => {
164
+ t = !0, l();
165
+ }), y(() => {
166
+ u(), A();
167
167
  });
168
- function u(e, n, i) {
168
+ function d(e, n, i) {
169
169
  return r.push({
170
170
  type: "add",
171
171
  targets: e,
172
172
  params: n,
173
173
  position: i
174
174
  }), t ? {
175
- ...s.value.add(b(e), n, i),
176
- add: u,
177
- set: d,
178
- remove: p
175
+ ...c.value.add(x(e), a(n), i),
176
+ add: d,
177
+ set: f,
178
+ remove: m
179
179
  } : {
180
- ...s.value,
181
- add: u,
182
- set: d,
183
- remove: p
180
+ ...c.value,
181
+ add: d,
182
+ set: f,
183
+ remove: m
184
184
  };
185
185
  }
186
- function d(e, n, i) {
186
+ function f(e, n, i) {
187
187
  return r.push({
188
188
  type: "set",
189
189
  targets: e,
190
190
  params: n,
191
191
  position: i
192
192
  }), t ? {
193
- ...s.value.set(b(e), n, i),
194
- add: u,
195
- set: d,
196
- remove: p
193
+ ...c.value.set(x(e), a(n), i),
194
+ add: d,
195
+ set: f,
196
+ remove: m
197
197
  } : {
198
- ...s.value,
199
- add: u,
200
- set: d,
201
- remove: p
198
+ ...c.value,
199
+ add: d,
200
+ set: f,
201
+ remove: m
202
202
  };
203
203
  }
204
- function p(e, n) {
204
+ function m(e, n) {
205
205
  return t ? {
206
- ...s.value.remove(b(e), n),
207
- add: u,
208
- set: d,
209
- remove: p
206
+ ...c.value.remove(x(e), n),
207
+ add: d,
208
+ set: f,
209
+ remove: m
210
210
  } : (console.warn("Cannot remove from timeline before mount"), {
211
- ...s.value,
212
- add: u,
213
- set: d,
214
- remove: p
211
+ ...c.value,
212
+ add: d,
213
+ set: f,
214
+ remove: m
215
215
  });
216
216
  }
217
- function m(e, t) {
218
- return s.value.sync(e, t);
219
- }
220
217
  function h(e, t) {
221
- return s.value.label(e, t);
218
+ return c.value.sync(e, t);
222
219
  }
223
220
  function g(e, t) {
224
- return s.value.call(e, t);
221
+ return c.value.label(e, t);
225
222
  }
226
- function y(e) {
227
- return s.value.init(e);
223
+ function _(e, t) {
224
+ return c.value.call(e, t);
228
225
  }
229
- function x() {
230
- return s.value.play();
226
+ function b(e) {
227
+ return c.value.init(e);
231
228
  }
232
229
  function S() {
233
- return s.value.reverse();
230
+ return c.value.play();
234
231
  }
235
232
  function C() {
236
- return s.value.pause();
233
+ return c.value.reverse();
237
234
  }
238
235
  function w() {
239
- return s.value.restart();
236
+ return c.value.pause();
240
237
  }
241
238
  function T() {
242
- return s.value.alternate();
239
+ return c.value.restart();
243
240
  }
244
241
  function E() {
245
- return s.value.resume();
242
+ return c.value.alternate();
246
243
  }
247
244
  function D() {
248
- return s.value.complete();
245
+ return c.value.resume();
249
246
  }
250
- function O(e) {
251
- return s.value.reset(e);
247
+ function O() {
248
+ return c.value.complete();
252
249
  }
253
- function k() {
254
- return s.value.cancel();
250
+ function k(e) {
251
+ return c.value.reset(e);
255
252
  }
256
253
  function A() {
257
- return s.value.revert();
254
+ return c.value.cancel();
255
+ }
256
+ function j() {
257
+ return c.value.revert();
258
258
  }
259
- function j(e, t, n) {
260
- return s.value.seek(e, t, n);
259
+ function M(e, t, n) {
260
+ return c.value.seek(e, t, n);
261
261
  }
262
- function M(e) {
263
- return s.value.stretch(e);
262
+ function N(e) {
263
+ return c.value.stretch(e);
264
264
  }
265
- function N() {
266
- return s.value.refresh();
265
+ function P() {
266
+ return c.value.refresh();
267
267
  }
268
268
  return {
269
- timeline: n(s),
270
- add: u,
271
- set: d,
272
- sync: m,
273
- label: h,
274
- remove: p,
275
- call: g,
276
- init: y,
277
- play: x,
278
- reverse: S,
279
- pause: C,
280
- restart: w,
281
- alternate: T,
282
- resume: E,
283
- complete: D,
284
- reset: O,
285
- cancel: k,
286
- revert: A,
287
- seek: j,
288
- stretch: M,
289
- refresh: N
269
+ timeline: n(c),
270
+ add: d,
271
+ set: f,
272
+ sync: h,
273
+ label: g,
274
+ remove: m,
275
+ call: _,
276
+ init: b,
277
+ play: S,
278
+ reverse: C,
279
+ pause: w,
280
+ restart: T,
281
+ alternate: E,
282
+ resume: D,
283
+ complete: O,
284
+ reset: k,
285
+ cancel: A,
286
+ revert: j,
287
+ seek: M,
288
+ stretch: N,
289
+ refresh: P
290
290
  };
291
291
  }
292
292
  //#endregion
293
293
  //#region src/composables/use-animatable.ts
294
- function T(r, s = {}) {
295
- let l = i(), { stop: u } = o(e(() => ({
296
- el: b(r),
297
- opt: a(s)
294
+ function E(r, a = {}) {
295
+ let c = i(), { stop: u } = s(e(() => ({
296
+ el: x(r),
297
+ opt: o(a)
298
298
  })), ({ el: e, opt: t }) => {
299
299
  if (d(), !e) {
300
- console.warn("Targets element is null or undefined"), l.value = void 0;
300
+ console.warn("Targets element is null or undefined"), c.value = void 0;
301
301
  return;
302
302
  }
303
- l.value = c(e, t);
303
+ c.value = l(e, t);
304
304
  }, {
305
305
  flush: "post",
306
306
  immediate: !t(r)
307
307
  });
308
- v(() => {
308
+ y(() => {
309
309
  u(), d();
310
310
  });
311
311
  function d() {
312
- return l.value?.revert();
312
+ return c.value?.revert();
313
313
  }
314
314
  return {
315
- animatable: n(l),
315
+ animatable: n(c),
316
316
  revert: d
317
317
  };
318
318
  }
319
319
  //#endregion
320
320
  //#region src/composables/use-draggable.ts
321
- function E(e, r = {}) {
322
- let s = i(), { stop: c } = o([() => b(e), () => a(r)], ([e, t]) => {
323
- if (y(), !e) {
324
- console.warn("Targets element is null or undefined"), s.value = void 0;
321
+ function D(e, r = {}) {
322
+ let a = i(), { stop: c } = s([() => x(e), () => o(r)], ([e, t]) => {
323
+ if (v(), !e) {
324
+ console.warn("Targets element is null or undefined"), a.value = void 0;
325
325
  return;
326
326
  }
327
- s.value = l(e, t);
327
+ a.value = u(e, t);
328
328
  }, {
329
329
  flush: "post",
330
330
  immediate: !t(e)
331
331
  });
332
- v(() => {
333
- y(), c();
332
+ y(() => {
333
+ v(), c();
334
334
  });
335
- function u() {
336
- return s.value?.disable();
335
+ function l() {
336
+ return a.value?.disable();
337
337
  }
338
338
  function d() {
339
- return s.value?.enable();
339
+ return a.value?.enable();
340
340
  }
341
341
  function f(e, t) {
342
- return s.value?.setX(e, t);
342
+ return a.value?.setX(e, t);
343
343
  }
344
344
  function p(e, t) {
345
- return s.value?.setY(e, t);
345
+ return a.value?.setY(e, t);
346
346
  }
347
347
  function m(e, t, n) {
348
- return s.value?.animateInView(e, t, n);
348
+ return a.value?.animateInView(e, t, n);
349
349
  }
350
350
  function h(e, t, n) {
351
- return s.value?.scrollInView(e, t, n);
351
+ return a.value?.scrollInView(e, t, n);
352
352
  }
353
353
  function g() {
354
- return s.value?.stop();
354
+ return a.value?.stop();
355
355
  }
356
356
  function _() {
357
- return s.value?.reset();
357
+ return a.value?.reset();
358
358
  }
359
- function y() {
360
- return s.value?.revert();
359
+ function v() {
360
+ return a.value?.revert();
361
361
  }
362
- function x() {
363
- return s.value?.refresh();
362
+ function b() {
363
+ return a.value?.refresh();
364
364
  }
365
365
  return {
366
- draggable: n(s),
367
- disable: u,
366
+ draggable: n(a),
367
+ disable: l,
368
368
  enable: d,
369
369
  setX: f,
370
370
  setY: p,
@@ -372,80 +372,95 @@ function E(e, r = {}) {
372
372
  scrollInView: h,
373
373
  stop: g,
374
374
  reset: _,
375
- revert: y,
376
- refresh: x
375
+ revert: v,
376
+ refresh: b
377
377
  };
378
378
  }
379
379
  //#endregion
380
380
  //#region src/composables/use-layout.ts
381
- function D(e, r) {
382
- let s = i(), { stop: c } = o([() => b(e), () => a(r)], ([e, t]) => {
381
+ function O(e, r = {}) {
382
+ let a = i(), { stop: c } = s([() => x(e), () => o(r)], ([e, t]) => {
383
383
  if (p(), !e) {
384
- console.warn("Target element is null or undefined"), s.value = void 0;
384
+ console.warn("Target element is null or undefined"), a.value = void 0;
385
385
  return;
386
386
  }
387
- s.value = u(e, t);
387
+ a.value = d(e, t);
388
388
  }, {
389
389
  flush: "post",
390
390
  immediate: !t(e)
391
391
  });
392
- v(() => {
392
+ y(() => {
393
393
  p(), c();
394
394
  });
395
395
  function l() {
396
- return s.value?.record();
396
+ return a.value?.record();
397
397
  }
398
- function d(e) {
399
- return s.value?.animate(e);
398
+ function u(e) {
399
+ return a.value?.animate(e);
400
400
  }
401
401
  function f(e, t) {
402
- return s.value?.update(e, t);
402
+ return a.value?.update(e, t);
403
403
  }
404
404
  function p() {
405
- return s.value?.revert();
405
+ return a.value?.revert();
406
406
  }
407
407
  return {
408
- layout: n(s),
408
+ layout: n(a),
409
409
  record: l,
410
- animate: d,
410
+ animate: u,
411
411
  update: f,
412
412
  revert: p
413
413
  };
414
414
  }
415
415
  //#endregion
416
416
  //#region src/composables/use-svg.ts
417
- function O() {
417
+ function k() {
418
418
  function e(e, t) {
419
- return h.morphTo(a(e), a(t));
419
+ let n = o(e);
420
+ return n ? g.morphTo(o(n), o(t)) : () => "";
420
421
  }
421
- function t(e, t, n) {
422
- return h.createDrawable(a(e), a(t), a(n));
423
- }
424
- function n(e, t) {
425
- return h.createMotionPath(a(e), a(t));
422
+ function t(e, t) {
423
+ let n = o(e) ?? "";
424
+ return g.createMotionPath(n, o(t));
426
425
  }
427
426
  return {
428
427
  morphTo: e,
429
- createDrawable: t,
430
- createMotionPath: n
428
+ createMotionPath: t
431
429
  };
432
430
  }
433
431
  //#endregion
432
+ //#region src/composables/use-svg-drawable.ts
433
+ function A(e, r = 0, a = 0) {
434
+ let c = i(), { stop: l } = s(() => x(e), (e) => {
435
+ if (c.value = void 0, !e) {
436
+ console.warn("[useSvgDrawable] Target element is null or undefined");
437
+ return;
438
+ }
439
+ c.value = g.createDrawable(e, o(r), o(a))[0];
440
+ }, {
441
+ flush: "post",
442
+ immediate: !t(e)
443
+ });
444
+ return y(() => {
445
+ l(), c.value = void 0;
446
+ }), { drawable: n(c) };
447
+ }
448
+ //#endregion
434
449
  //#region src/composables/use-text.ts
435
- function k(r, s) {
436
- let c = i(), l = e(() => c.value?.lines ?? []), u = e(() => c.value?.words ?? []), d = e(() => c.value?.chars ?? []), { stop: f } = o([() => b(r), () => a(s)], ([e, t]) => {
437
- p(), c.value = void 0, e && (c.value = m(e, t));
450
+ function j(r, a) {
451
+ let c = i(), l = e(() => c.value?.lines ?? []), u = e(() => c.value?.words ?? []), d = e(() => c.value?.chars ?? []), { stop: f } = s([() => x(r), () => o(a)], ([e, t]) => {
452
+ p(), c.value = void 0, e && (c.value = h(e, t));
438
453
  }, {
439
454
  flush: "post",
440
455
  immediate: !t(r)
441
456
  });
442
- v(() => {
457
+ y(() => {
443
458
  f(), c.value = void 0, p();
444
459
  });
445
460
  function p() {
446
461
  c.value?.revert();
447
462
  }
448
- function h() {
463
+ function m() {
449
464
  c.value?.refresh();
450
465
  }
451
466
  return {
@@ -454,56 +469,56 @@ function k(r, s) {
454
469
  words: u,
455
470
  chars: d,
456
471
  revert: p,
457
- refresh: h
472
+ refresh: m
458
473
  };
459
474
  }
460
475
  //#endregion
461
476
  //#region src/composables/use-waapi.ts
462
- function A(e, r = {}) {
463
- let s = i(), { stop: c } = o([() => b(e), () => a(r)], ([e, t]) => {
464
- s.value = g.animate(e, t);
477
+ function M(e, r = {}) {
478
+ let a = i(), { stop: c } = s([() => x(e), () => o(r)], ([e, t]) => {
479
+ a.value = _.animate(e, t);
465
480
  }, {
466
481
  flush: "post",
467
482
  immediate: !t(e)
468
483
  });
469
- v(() => {
484
+ y(() => {
470
485
  c();
471
486
  });
472
487
  function l() {
473
- return s.value?.resume();
488
+ return a.value?.resume();
474
489
  }
475
490
  function u() {
476
- return s.value?.pause();
491
+ return a.value?.pause();
477
492
  }
478
493
  function d() {
479
- return s.value?.alternate();
494
+ return a.value?.alternate();
480
495
  }
481
496
  function f() {
482
- return s.value?.play();
497
+ return a.value?.play();
483
498
  }
484
499
  function p() {
485
- return s.value?.reverse();
500
+ return a.value?.reverse();
486
501
  }
487
502
  function m(e, t) {
488
- return s.value?.seek(a(e), a(t));
503
+ return a.value?.seek(o(e), o(t));
489
504
  }
490
505
  function h() {
491
- return s.value?.restart();
506
+ return a.value?.restart();
492
507
  }
493
- function _() {
494
- return s.value?.commitStyles();
508
+ function g() {
509
+ return a.value?.commitStyles();
495
510
  }
496
- function y() {
497
- return s.value?.complete();
511
+ function v() {
512
+ return a.value?.complete();
498
513
  }
499
- function x() {
500
- return s.value?.cancel();
514
+ function b() {
515
+ return a.value?.cancel();
501
516
  }
502
517
  function S() {
503
- return s.value?.revert();
518
+ return a.value?.revert();
504
519
  }
505
520
  return {
506
- animation: n(s),
521
+ animation: n(a),
507
522
  resume: l,
508
523
  pause: u,
509
524
  alternate: d,
@@ -511,33 +526,33 @@ function A(e, r = {}) {
511
526
  reverse: p,
512
527
  seek: m,
513
528
  restart: h,
514
- commitStyles: _,
515
- complete: y,
516
- cancel: x,
529
+ commitStyles: g,
530
+ complete: v,
531
+ cancel: b,
517
532
  revert: S,
518
- convertEase: j
533
+ convertEase: N
519
534
  };
520
535
  }
521
- function j(e, t = 100) {
522
- return g.convertEase(a(e), a(t));
536
+ function N(e, t = 100) {
537
+ return _.convertEase(o(e), o(t));
523
538
  }
524
539
  //#endregion
525
540
  //#region src/composables/use-scope.ts
526
- function M(e) {
527
- let n = i(d(a(e))), s = [], c = [], l = [], u = !1, f = t(e) ? o(e, (e) => {
528
- n.value.revert(), n.value = d(e);
541
+ function P(e) {
542
+ let n = i(f(o(e))), a = [], c = [], l = [], u = !1, d = t(e) ? s(e, (e) => {
543
+ n.value.revert(), n.value = f(e);
529
544
  }, { flush: "post" }) : void 0;
530
- _(() => {
545
+ v(() => {
531
546
  u = !0;
532
- for (let e of s) n.value.add(e);
547
+ for (let e of a) n.value.add(e);
533
548
  for (let [e, t] of c) n.value.add(e, t);
534
549
  for (let e of l) n.value.addOnce(e);
535
- s.length = 0, c.length = 0, l.length = 0;
536
- }), v(() => {
537
- n.value.revert(), f?.();
550
+ a.length = 0, c.length = 0, l.length = 0;
551
+ }), y(() => {
552
+ n.value.revert(), d?.();
538
553
  });
539
554
  function p(e) {
540
- return u ? n.value.add(e) : void s.push(e);
555
+ return u ? n.value.add(e) : void a.push(e);
541
556
  }
542
557
  function m(e, t) {
543
558
  return u ? n.value.add(e, t) : void c.push([e, t]);
@@ -548,7 +563,7 @@ function M(e) {
548
563
  function g(e) {
549
564
  return n.value.keepTime(e);
550
565
  }
551
- function y() {
566
+ function _() {
552
567
  return n.value.revert();
553
568
  }
554
569
  function b() {
@@ -560,11 +575,11 @@ function M(e) {
560
575
  registerMethod: m,
561
576
  addOnce: h,
562
577
  keepTime: g,
563
- revert: y,
578
+ revert: _,
564
579
  refresh: b
565
580
  };
566
581
  }
567
582
  //#endregion
568
- export { T as useAnimatable, x as useAnimate, E as useDraggable, D as useLayout, S as useRawAnimate, M as useScope, O as useSvg, k as useText, w as useTimeline, C as useTimer, A as useWaapi };
583
+ export { E as useAnimatable, S as useAnimate, D as useDraggable, O as useLayout, C as useRawAnimate, P as useScope, k as useSvg, A as useSvgDrawable, j as useText, T as useTimeline, w as useTimer, M as useWaapi };
569
584
 
570
585
  //# sourceMappingURL=index.js.map