aptechka 0.4.17 → 0.4.18

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.
@@ -0,0 +1 @@
1
+ "use strict";var L=Object.defineProperty,_=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var k=(e,i,t)=>i in e?L(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,N=(e,i)=>{for(var t in i||(i={}))z.call(i,t)&&k(e,t,i[t]);if(O)for(var t of O(i))B.call(i,t)&&k(e,t,i[t]);return e},P=(e,i)=>_(e,j(i));var v=(e,i,t)=>{if(!i.has(e))throw TypeError("Cannot "+t)};var s=(e,i,t)=>(v(e,i,"read from private field"),t?t.call(e):i.get(e)),a=(e,i,t)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,t)},r=(e,i,t,h)=>(v(e,i,"write to private field"),h?h.call(e,t):i.set(e,t),t);const D=require("./math-GDWEqu7y.cjs"),S=require("./number-yVpzMdbQ.cjs"),c=require("./polyfills-CrcS4RcO.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");const I=require("./Store-BQGNOHlY.cjs"),M=require("./ticker/index.cjs");var d,f,F,m,C;class R extends I.Store{constructor(t){super(t||0);a(this,d,void 0);a(this,f,void 0);a(this,F,void 0);a(this,m,new I.Store(!1));a(this,C,t=>{this.handleAnimationFrame(t)})}get isRunning(){return s(this,m)}reset(){this.unlistenAnimationFrame(),super.reset()}close(){super.close(),this.unlistenAnimationFrame()}listenAnimationFrame(){s(this,m).current||(s(this,m).current=!0,M.ticker.subscribe(s(this,C),{maxFPS:s(this,d),order:s(this,f),culling:s(this,F)}))}unlistenAnimationFrame(){s(this,m).current&&(s(this,m).current=!1,M.ticker.unsubscribe(s(this,C)))}updateOptions(t){r(this,d,c.nullishCoalescing(t==null?void 0:t.maxFPS,s(this,d))),r(this,f,c.nullishCoalescing(t==null?void 0:t.order,s(this,f))),r(this,F,c.nullishCoalescing(t==null?void 0:t.culling,s(this,F)))}}d=new WeakMap,f=new WeakMap,F=new WeakMap,m=new WeakMap,C=new WeakMap;var n,A,u,l,g,x,b;class E extends R{constructor(t,h){super(t||0);a(this,n,void 0);a(this,A,void 0);a(this,u,void 0);a(this,l,void 0);a(this,g,void 0);a(this,x,void 0);a(this,b,void 0);this.damping=1,this.stiffness=0,this.mass=0,r(this,n,0),r(this,A,0),r(this,u,0),r(this,l,0),r(this,g,0),r(this,x,0),r(this,b,()=>{this.set(s(this,n),!0)}),r(this,u,c.nullishCoalescing(h==null?void 0:h.min,-1/0)),r(this,l,c.nullishCoalescing(h==null?void 0:h.max,1/0)),r(this,n,this.current),this.updateOptions(h),this.listenAnimationFrame()}get target(){return s(this,n)}get direction(){return s(this,A)}get min(){return s(this,u)}set min(t){r(this,u,t),s(this,b).call(this)}get max(){return s(this,l)}set max(t){r(this,l,t),s(this,b).call(this)}get velocity(){return s(this,g)}get speed(){return s(this,x)}get length(){return s(this,l)-s(this,u)}get progress(){return this.length?S.preciseNumber((this.current-s(this,u))/this.length,6):0}get entry(){return P(N({},super.entry),{min:s(this,u),max:s(this,l),length:this.length,direction:this.direction,progress:this.progress})}set(t,h=!1){const y=s(this,n);r(this,n,D.clamp(t,s(this,u),s(this,l))),h&&(this.current=s(this,n)),s(this,n)!==y&&(r(this,A,Math.sign(t-s(this,n))||1),this.listenAnimationFrame())}shift(t,h=!1){this.set(s(this,n)+t,h)}reset(){this.set(this.initial,!0),super.reset()}listenAnimationFrame(){this.current!==this.target&&super.listenAnimationFrame()}updateOptions(t){super.updateOptions(t),this.damping=c.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=c.nullishCoalescing(t==null?void 0:t.mass,this.mass),this.stiffness=c.nullishCoalescing(t==null?void 0:t.stiffness,this.stiffness)}handleAnimationFrame(t){S.preciseNumber(this.current,4)===S.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const h=this.current,y=Math.abs(h-this.target);r(this,x,y/t.elapsed);const q=t.elapsed/1e3;if(this.mass||this.stiffness){const w=(s(this,n)-this.current)*this.stiffness-s(this,g)*this.damping;r(this,g,s(this,g)+w/this.mass*q),this.current+=s(this,g)*q}else this.current=D.damp(this.current,this.target,this.damping,q)}}n=new WeakMap,A=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,x=new WeakMap,b=new WeakMap;exports.Animation=R;exports.Damped=E;
@@ -20,25 +20,25 @@ var s = (e, i, t) => (I(e, i, "read from private field"), t ? t.call(e) : i.get(
20
20
  i instanceof WeakSet ? i.add(e) : i.set(e, t);
21
21
  }, r = (e, i, t, h) => (I(e, i, "write to private field"), h ? h.call(e, t) : i.set(e, t), t);
22
22
  import { c as z, d as B } from "./math-BOBiC4TN.js";
23
- import { p as O } from "./number-Bo5RdrA1.js";
23
+ import { p } from "./number-Bo5RdrA1.js";
24
24
  import { n as c } from "./polyfills-DJUYczFm.js";
25
25
  import "./path-data-polyfill-DgeDWYeI.js";
26
26
  import { S as M } from "./Store-Cd-E5W1z.js";
27
27
  import { ticker as R } from "./ticker/index.js";
28
- var d, f, F, g, y;
28
+ var f, d, F, l, y;
29
29
  class E extends M {
30
30
  constructor(t) {
31
31
  super(t || 0);
32
- a(this, d, void 0);
33
32
  a(this, f, void 0);
33
+ a(this, d, void 0);
34
34
  a(this, F, void 0);
35
- a(this, g, new M(!1));
35
+ a(this, l, new M(!1));
36
36
  a(this, y, (t) => {
37
37
  this.handleAnimationFrame(t);
38
38
  });
39
39
  }
40
40
  get isRunning() {
41
- return s(this, g);
41
+ return s(this, l);
42
42
  }
43
43
  reset() {
44
44
  this.unlistenAnimationFrame(), super.reset();
@@ -47,21 +47,21 @@ class E extends M {
47
47
  super.close(), this.unlistenAnimationFrame();
48
48
  }
49
49
  listenAnimationFrame() {
50
- s(this, g).current || (s(this, g).current = !0, R.subscribe(s(this, y), {
51
- maxFPS: s(this, d),
52
- order: s(this, f),
50
+ s(this, l).current || (s(this, l).current = !0, R.subscribe(s(this, y), {
51
+ maxFPS: s(this, f),
52
+ order: s(this, d),
53
53
  culling: s(this, F)
54
54
  }));
55
55
  }
56
56
  unlistenAnimationFrame() {
57
- s(this, g).current && (s(this, g).current = !1, R.unsubscribe(s(this, y)));
57
+ s(this, l).current && (s(this, l).current = !1, R.unsubscribe(s(this, y)));
58
58
  }
59
59
  updateOptions(t) {
60
- r(this, d, c(t == null ? void 0 : t.maxFPS, s(this, d))), r(this, f, c(t == null ? void 0 : t.order, s(this, f))), r(this, F, c(t == null ? void 0 : t.culling, s(this, F)));
60
+ r(this, f, c(t == null ? void 0 : t.maxFPS, s(this, f))), r(this, d, c(t == null ? void 0 : t.order, s(this, d))), r(this, F, c(t == null ? void 0 : t.culling, s(this, F)));
61
61
  }
62
62
  }
63
- d = new WeakMap(), f = new WeakMap(), F = new WeakMap(), g = new WeakMap(), y = new WeakMap();
64
- var n, A, m, u, l, x, b;
63
+ f = new WeakMap(), d = new WeakMap(), F = new WeakMap(), l = new WeakMap(), y = new WeakMap();
64
+ var n, A, m, u, g, x, b;
65
65
  class V extends E {
66
66
  constructor(t, h) {
67
67
  super(t || 0);
@@ -69,12 +69,12 @@ class V extends E {
69
69
  a(this, A, void 0);
70
70
  a(this, m, void 0);
71
71
  a(this, u, void 0);
72
- a(this, l, void 0);
72
+ a(this, g, void 0);
73
73
  a(this, x, void 0);
74
74
  a(this, b, void 0);
75
- this.damping = 0.01, this.stiffness = 0, this.mass = 0, r(this, n, 0), r(this, A, 0), r(this, m, 0), r(this, u, 0), r(this, l, 0), r(this, x, 0), r(this, b, () => {
75
+ this.damping = 1, this.stiffness = 0, this.mass = 0, r(this, n, 0), r(this, A, 0), r(this, m, 0), r(this, u, 0), r(this, g, 0), r(this, x, 0), r(this, b, () => {
76
76
  this.set(s(this, n), !0);
77
- }), r(this, m, c(h == null ? void 0 : h.min, -1 / 0)), r(this, u, c(h == null ? void 0 : h.max, 1 / 0)), r(this, n, this.current), this.updateOptions(h);
77
+ }), r(this, m, c(h == null ? void 0 : h.min, -1 / 0)), r(this, u, c(h == null ? void 0 : h.max, 1 / 0)), r(this, n, this.current), this.updateOptions(h), this.listenAnimationFrame();
78
78
  }
79
79
  get target() {
80
80
  return s(this, n);
@@ -95,7 +95,7 @@ class V extends E {
95
95
  r(this, u, t), s(this, b).call(this);
96
96
  }
97
97
  get velocity() {
98
- return s(this, l);
98
+ return s(this, g);
99
99
  }
100
100
  get speed() {
101
101
  return s(this, x);
@@ -104,7 +104,7 @@ class V extends E {
104
104
  return s(this, u) - s(this, m);
105
105
  }
106
106
  get progress() {
107
- return this.length ? O((this.current - s(this, m)) / this.length, 6) : 0;
107
+ return this.length ? p((this.current - s(this, m)) / this.length, 6) : 0;
108
108
  }
109
109
  get entry() {
110
110
  return D(C({}, super.entry), {
@@ -116,8 +116,8 @@ class V extends E {
116
116
  });
117
117
  }
118
118
  set(t, h = !1) {
119
- const p = s(this, n);
120
- r(this, n, z(t, s(this, m), s(this, u))), h && (this.current = s(this, n)), s(this, n) !== p && (r(this, A, Math.sign(t - s(this, n)) || 1), this.listenAnimationFrame());
119
+ const S = s(this, n);
120
+ r(this, n, z(t, s(this, m), s(this, u))), h && (this.current = s(this, n)), s(this, n) !== S && (r(this, A, Math.sign(t - s(this, n)) || 1), this.listenAnimationFrame());
121
121
  }
122
122
  shift(t, h = !1) {
123
123
  this.set(s(this, n) + t, h);
@@ -129,21 +129,21 @@ class V extends E {
129
129
  this.current !== this.target && super.listenAnimationFrame();
130
130
  }
131
131
  updateOptions(t) {
132
- super.updateOptions(t), this.damping = c(t == null ? void 0 : t.damping, this.damping), this.mass = c(t == null ? void 0 : t.damping, this.mass), this.stiffness = c(t == null ? void 0 : t.damping, this.stiffness);
132
+ super.updateOptions(t), this.damping = c(t == null ? void 0 : t.damping, this.damping), this.mass = c(t == null ? void 0 : t.mass, this.mass), this.stiffness = c(t == null ? void 0 : t.stiffness, this.stiffness);
133
133
  }
134
134
  handleAnimationFrame(t) {
135
- O(this.current, 4) === O(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
136
- const h = this.current, p = Math.abs(h - this.target);
137
- r(this, x, p / t.elapsed);
138
- const S = t.elapsed / 1e3;
135
+ p(this.current, 4) === p(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
136
+ const h = this.current, S = Math.abs(h - this.target);
137
+ r(this, x, S / t.elapsed);
138
+ const O = t.elapsed / 1e3;
139
139
  if (this.mass || this.stiffness) {
140
- const k = (s(this, n) - this.current) * this.stiffness - s(this, l) * this.damping;
141
- r(this, l, s(this, l) + k / this.mass * S), this.current += s(this, l) * S;
140
+ const k = (s(this, n) - this.current) * this.stiffness - s(this, g) * this.damping;
141
+ r(this, g, s(this, g) + k / this.mass * O), this.current += s(this, g) * O;
142
142
  } else
143
- this.current = B(this.current, this.target, this.damping, S);
143
+ this.current = B(this.current, this.target, this.damping, O);
144
144
  }
145
145
  }
146
- n = new WeakMap(), A = new WeakMap(), m = new WeakMap(), u = new WeakMap(), l = new WeakMap(), x = new WeakMap(), b = new WeakMap();
146
+ n = new WeakMap(), A = new WeakMap(), m = new WeakMap(), u = new WeakMap(), g = new WeakMap(), x = new WeakMap(), b = new WeakMap();
147
147
  export {
148
148
  E as A,
149
149
  V as D
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,O=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=(i,e,t)=>e in i?F(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,p=(i,e)=>{for(var t in e||(e={}))D.call(e,t)&&d(i,t,e[t]);if(g)for(var t of g(e))w.call(e,t)&&d(i,t,e[t]);return i},f=(i,e)=>O(i,T(e));var o=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var r=(i,e,t)=>(o(i,e,"read from private field"),t?t.call(i):e.get(i)),u=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},l=(i,e,t,s)=>(o(i,e,"write to private field"),s?s.call(i,t):e.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../Damped-D2k3SbmP.cjs"),C=require("../easings-DsS5-Kqc.cjs"),M=require("../math-GDWEqu7y.cjs"),q=require("../number-yVpzMdbQ.cjs"),A=require("../polyfills-CrcS4RcO.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var c,h,n,a,m;class N extends b.Animation{constructor(t,s){super(t||0);u(this,c,C.linear);u(this,h,1e3);u(this,n,0);u(this,a,0);u(this,m,0);this.updateOptions(s)}get direction(){return r(this,m)}get length(){return r(this,a)-r(this,n)}get progress(){return this.length?q.preciseNumber((this.current-r(this,n))/this.length,6):0}get entry(){return f(p({},super.entry),{length:this.length,direction:this.direction,progress:this.progress})}set(t,s){s!=null&&s.restart&&(this.current=this.initial),l(this,n,this.current),l(this,a,t),l(this,m,Math.sign(this.length)),this.updateOptions(s),r(this,h)?(this.unlistenAnimationFrame(),this.listenAnimationFrame()):(this.current=r(this,a),this.unlistenAnimationFrame())}shift(t,s){this.set(this.current+t,s)}updateOptions(t){super.updateOptions(t),l(this,c,A.nullishCoalescing(t==null?void 0:t.easing,r(this,c))),l(this,h,A.nullishCoalescing(t==null?void 0:t.duration,r(this,h)))}handleAnimationFrame(t){const s=(t.timestamp-t.startTimestamp)/1e3/(r(this,h)/1e3),y=r(this,c).call(this,M.clamp(s,0,1));this.current=q.preciseNumber(r(this,n)+(r(this,a)-r(this,n))*y,6),s>1&&this.unlistenAnimationFrame()}}c=new WeakMap,h=new WeakMap,n=new WeakMap,a=new WeakMap,m=new WeakMap;exports.Damped=b.Damped;exports.Tweened=N;
1
+ "use strict";var F=Object.defineProperty,O=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=(i,e,t)=>e in i?F(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,p=(i,e)=>{for(var t in e||(e={}))D.call(e,t)&&d(i,t,e[t]);if(g)for(var t of g(e))w.call(e,t)&&d(i,t,e[t]);return i},f=(i,e)=>O(i,T(e));var o=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var r=(i,e,t)=>(o(i,e,"read from private field"),t?t.call(i):e.get(i)),u=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},l=(i,e,t,s)=>(o(i,e,"write to private field"),s?s.call(i,t):e.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../Damped-CbT5qqTP.cjs"),C=require("../easings-DsS5-Kqc.cjs"),M=require("../math-GDWEqu7y.cjs"),q=require("../number-yVpzMdbQ.cjs"),A=require("../polyfills-CrcS4RcO.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var c,h,n,a,m;class N extends b.Animation{constructor(t,s){super(t||0);u(this,c,C.linear);u(this,h,1e3);u(this,n,0);u(this,a,0);u(this,m,0);this.updateOptions(s)}get direction(){return r(this,m)}get length(){return r(this,a)-r(this,n)}get progress(){return this.length?q.preciseNumber((this.current-r(this,n))/this.length,6):0}get entry(){return f(p({},super.entry),{length:this.length,direction:this.direction,progress:this.progress})}set(t,s){s!=null&&s.restart&&(this.current=this.initial),l(this,n,this.current),l(this,a,t),l(this,m,Math.sign(this.length)),this.updateOptions(s),r(this,h)?(this.unlistenAnimationFrame(),this.listenAnimationFrame()):(this.current=r(this,a),this.unlistenAnimationFrame())}shift(t,s){this.set(this.current+t,s)}updateOptions(t){super.updateOptions(t),l(this,c,A.nullishCoalescing(t==null?void 0:t.easing,r(this,c))),l(this,h,A.nullishCoalescing(t==null?void 0:t.duration,r(this,h)))}handleAnimationFrame(t){const s=(t.timestamp-t.startTimestamp)/1e3/(r(this,h)/1e3),y=r(this,c).call(this,M.clamp(s,0,1));this.current=q.preciseNumber(r(this,n)+(r(this,a)-r(this,n))*y,6),s>1&&this.unlistenAnimationFrame()}}c=new WeakMap,h=new WeakMap,n=new WeakMap,a=new WeakMap,m=new WeakMap;exports.Damped=b.Damped;exports.Tweened=N;
@@ -19,8 +19,8 @@ var r = (e, i, t) => (o(e, i, "read from private field"), t ? t.call(e) : i.get(
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  i instanceof WeakSet ? i.add(e) : i.set(e, t);
21
21
  }, u = (e, i, t, s) => (o(e, i, "write to private field"), s ? s.call(e, t) : i.set(e, t), t);
22
- import { A as w } from "../Damped-B91XlC1a.js";
23
- import { D as I } from "../Damped-B91XlC1a.js";
22
+ import { A as w } from "../Damped-ChjjwnrU.js";
23
+ import { D as I } from "../Damped-ChjjwnrU.js";
24
24
  import { l as C } from "../easings-BKi40vHz.js";
25
25
  import { c as M } from "../math-BOBiC4TN.js";
26
26
  import { p as A } from "../number-Bo5RdrA1.js";