aptechka 0.4.31 → 0.4.33

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.
Files changed (57) hide show
  1. package/lib/Damped-BJgyFENo.js +258 -0
  2. package/lib/Damped-CbWlWAbx.cjs +1 -0
  3. package/lib/animation/Animation.d.ts +42 -7
  4. package/lib/animation/AnimationLink.d.ts +13 -0
  5. package/lib/animation/Damped.d.ts +23 -28
  6. package/lib/animation/Tweened.d.ts +7 -19
  7. package/lib/animation/index.cjs +1 -1
  8. package/lib/animation/index.d.ts +2 -1
  9. package/lib/animation/index.js +43 -61
  10. package/lib/canvas/index.cjs +1 -1
  11. package/lib/canvas/index.d.ts +1 -1
  12. package/lib/canvas/index.js +35 -35
  13. package/lib/class-linked-status/index.cjs +1 -1
  14. package/lib/class-linked-status/index.d.ts +3 -1
  15. package/lib/class-linked-status/index.js +36 -37
  16. package/lib/controls/index.cjs +1 -1
  17. package/lib/controls/index.js +64 -64
  18. package/lib/css-property/index.cjs +1 -1
  19. package/lib/css-property/index.d.ts +5 -1
  20. package/lib/css-property/index.js +35 -31
  21. package/lib/en3/index.cjs +7 -7
  22. package/lib/en3/index.d.ts +0 -1
  23. package/lib/en3/index.js +268 -281
  24. package/lib/intersector/index.cjs +1 -1
  25. package/lib/intersector/index.js +8 -8
  26. package/lib/ladder/index.cjs +1 -1
  27. package/lib/ladder/index.d.ts +12 -6
  28. package/lib/ladder/index.js +119 -114
  29. package/lib/order/index.cjs +1 -1
  30. package/lib/order/index.d.ts +4 -3
  31. package/lib/order/index.js +1 -1
  32. package/lib/pointer/index.cjs +1 -1
  33. package/lib/pointer/index.js +2 -2
  34. package/lib/scroll/ScrollElement.d.ts +1 -3
  35. package/lib/scroll/ScrollSegmentElement.d.ts +6 -11
  36. package/lib/scroll/index.cjs +1 -1
  37. package/lib/scroll/index.d.ts +1 -1
  38. package/lib/scroll/index.js +498 -501
  39. package/lib/sequence/index.cjs +1 -1
  40. package/lib/sequence/index.d.ts +4 -2
  41. package/lib/sequence/index.js +129 -114
  42. package/lib/source/SourceElement.d.ts +14 -7
  43. package/lib/source/index.cjs +2 -2
  44. package/lib/source/index.d.ts +2 -2
  45. package/lib/source/index.js +66 -56
  46. package/lib/theme/index.cjs +1 -1
  47. package/lib/theme/index.d.ts +15 -0
  48. package/lib/theme/index.js +9 -6
  49. package/lib/ticker/index.cjs +1 -1
  50. package/lib/ticker/index.d.ts +3 -2
  51. package/lib/ticker/index.js +81 -71
  52. package/lib/video/index.cjs +1 -1
  53. package/lib/video/index.js +10 -10
  54. package/package.json +1 -1
  55. package/lib/Damped-B0G_t-pw.cjs +0 -1
  56. package/lib/Damped-DpaKIZqv.js +0 -150
  57. package/lib/en3/instances/en3LazyLoader.d.ts +0 -8
@@ -1,55 +1,59 @@
1
- var m = (e, r, s) => {
2
- if (!r.has(e))
3
- throw TypeError("Cannot " + s);
1
+ var p = (r, s, e) => {
2
+ if (!s.has(r))
3
+ throw TypeError("Cannot " + e);
4
4
  };
5
- var t = (e, r, s) => (m(e, r, "read from private field"), s ? s.call(e) : r.get(e)), u = (e, r, s) => {
6
- if (r.has(e))
5
+ var t = (r, s, e) => (p(r, s, "read from private field"), e ? e.call(r) : s.get(r)), h = (r, s, e) => {
6
+ if (s.has(r))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- r instanceof WeakSet ? r.add(e) : r.set(e, s);
9
- }, c = (e, r, s, o) => (m(e, r, "write to private field"), o ? o.call(e, s) : r.set(e, s), s);
8
+ s instanceof WeakSet ? s.add(r) : s.set(r, e);
9
+ }, c = (r, s, e, u) => (p(r, s, "write to private field"), u ? u.call(r, e) : s.set(r, e), e);
10
10
  import { cssValueParser as S } from "../css-value-parser/index.js";
11
- import { RESIZE_ORDER as f } from "../order/index.js";
11
+ import { RESIZE_ORDER as w } from "../order/index.js";
12
12
  import { S as R } from "../Store-Cd-E5W1z.js";
13
- import { g } from "../dom-0S_WDL4g.js";
13
+ import { g as V } from "../dom-0S_WDL4g.js";
14
14
  import "../path-data-polyfill-DgeDWYeI.js";
15
- import { windowResizer as a } from "../window-resizer/index.js";
16
- var b, h, i, n;
15
+ import { windowResizer as f } from "../window-resizer/index.js";
16
+ var b, a, i, n, o;
17
17
  class P extends R {
18
- constructor(s, o, p, l) {
19
- super(p, l);
20
- u(this, b, void 0);
21
- u(this, h, void 0);
22
- u(this, i, void 0);
23
- u(this, n, () => {
18
+ constructor(e, u, m, l) {
19
+ super(m, l);
20
+ h(this, b, void 0);
21
+ h(this, a, void 0);
22
+ h(this, i, void 0);
23
+ h(this, n, void 0);
24
+ h(this, o, () => {
24
25
  this.check();
25
26
  });
26
- c(this, b, g(s)), c(this, h, o), c(this, i, p.toString());
27
+ c(this, b, V(e)), c(this, a, u), c(this, i, m.toString()), c(this, n, (l == null ? void 0 : l.rawValueCheck) !== !1);
28
+ }
29
+ get currentRawValue() {
30
+ return t(this, i);
27
31
  }
28
32
  observe() {
29
- this.subscribers.size || a.subscribe(t(this, n), f.CSS_VARIABLE);
33
+ this.subscribers.size || f.subscribe(t(this, o), w.CSS_VARIABLE);
30
34
  }
31
35
  unobserve() {
32
- this.subscribers.size || a.unsubscribe(t(this, n));
36
+ this.subscribers.size || f.unsubscribe(t(this, o));
33
37
  }
34
- subscribe(s) {
35
- return this.observe(), super.subscribe(s);
38
+ subscribe(e) {
39
+ return this.observe(), super.subscribe(e);
36
40
  }
37
- unsubscribe(s) {
38
- super.unsubscribe(s), this.unobserve();
41
+ unsubscribe(e) {
42
+ super.unsubscribe(e), this.unobserve();
39
43
  }
40
44
  check() {
41
- const s = getComputedStyle(t(this, b)).getPropertyValue(
42
- t(this, h)
45
+ const e = getComputedStyle(t(this, b)).getPropertyValue(
46
+ t(this, a)
43
47
  );
44
- if (t(this, i) !== s)
45
- if (c(this, i, s), s) {
46
- const o = S.parse(t(this, i));
47
- this.current = o;
48
+ if (!(t(this, n) && t(this, i) === e))
49
+ if (c(this, i, e), e) {
50
+ const u = S.parse(t(this, i));
51
+ this.current = u;
48
52
  } else
49
53
  this.current = this.initial;
50
54
  }
51
55
  }
52
- b = new WeakMap(), h = new WeakMap(), i = new WeakMap(), n = new WeakMap();
56
+ b = new WeakMap(), a = new WeakMap(), i = new WeakMap(), n = new WeakMap(), o = new WeakMap();
53
57
  export {
54
58
  P as CSSProperty
55
59
  };