aptechka 0.53.1 → 0.53.3

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.
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty,p=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var h=s=>{throw TypeError(s)};var o=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,l=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&o(s,t,e[t]);if(c)for(var t of c(e))T.call(e,t)&&o(s,t,e[t]);return s},d=(s,e)=>p(s,E(e));var f=(s,e,t)=>e.has(s)||h("Cannot "+t);var a=(s,e,t)=>(f(s,e,"read from private field"),t?t.call(s):e.get(s)),b=(s,e,t)=>e.has(s)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),u=(s,e,t,r)=>(f(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-GokLe_g-.cjs"),m=require("../string-DUXXtU8v.cjs");require("../index-Cqw2NKev.cjs");var i;class q extends g.Store{constructor(t,r){super(r);b(this,i);u(this,i,Array.isArray(t)?t:[t])}addElement(t){a(this,i).push(t)}removeElement(t){u(this,i,a(this,i).filter(r=>r!==t))}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=d(l({},this.current),{[t]:r}),r?a(this,i).forEach(n=>n.classList.add(m.camelToKebab(t))):a(this,i).forEach(n=>n.classList.remove(m.camelToKebab(t)))}}i=new WeakMap;exports.ClassLinkedStatus=q;
1
+ "use strict";var S=Object.defineProperty,p=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var h=s=>{throw TypeError(s)};var c=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,l=(s,e)=>{for(var t in e||(e={}))E.call(e,t)&&c(s,t,e[t]);if(u)for(var t of u(e))L.call(e,t)&&c(s,t,e[t]);return s},d=(s,e)=>p(s,y(e));var f=(s,e,t)=>e.has(s)||h("Cannot "+t);var n=(s,e,t)=>(f(s,e,"read from private field"),t?t.call(s):e.get(s)),b=(s,e,t)=>e.has(s)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),o=(s,e,t,i)=>(f(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../Store-GokLe_g-.cjs"),m=require("../string-DUXXtU8v.cjs");require("../index-Cqw2NKev.cjs");var r;class g extends T.Store{constructor(t,i){super(i);b(this,r);o(this,r,Array.isArray(t)?t:[t]);for(const a in this.initial)this.set(a,this.initial[a])}addElement(t){n(this,r).push(t)}removeElement(t){o(this,r,n(this,r).filter(i=>i!==t))}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,i=!0){this.current=d(l({},this.current),{[t]:i}),i?n(this,r).forEach(a=>a.classList.add(m.camelToKebab(t))):n(this,r).forEach(a=>a.classList.remove(m.camelToKebab(t)))}}r=new WeakMap;exports.ClassLinkedStatus=g;
@@ -1,56 +1,58 @@
1
1
  var E = Object.defineProperty, L = Object.defineProperties;
2
2
  var S = Object.getOwnPropertyDescriptors;
3
- var c = Object.getOwnPropertySymbols;
3
+ var o = Object.getOwnPropertySymbols;
4
4
  var b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var u = (t) => {
6
- throw TypeError(t);
5
+ var l = (s) => {
6
+ throw TypeError(s);
7
7
  };
8
- var n = (t, r, s) => r in t ? E(t, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[r] = s, l = (t, r) => {
9
- for (var s in r || (r = {}))
10
- b.call(r, s) && n(t, s, r[s]);
11
- if (c)
12
- for (var s of c(r))
13
- x.call(r, s) && n(t, s, r[s]);
14
- return t;
15
- }, m = (t, r) => L(t, S(r));
16
- var f = (t, r, s) => r.has(t) || u("Cannot " + s);
17
- var a = (t, r, s) => (f(t, r, "read from private field"), s ? s.call(t) : r.get(t)), p = (t, r, s) => r.has(t) ? u("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, s), o = (t, r, s, e) => (f(t, r, "write to private field"), e ? e.call(t, s) : r.set(t, s), s);
18
- import { S as A } from "../Store-swP_0ymB.js";
8
+ var c = (s, i, t) => i in s ? E(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, u = (s, i) => {
9
+ for (var t in i || (i = {}))
10
+ b.call(i, t) && c(s, t, i[t]);
11
+ if (o)
12
+ for (var t of o(i))
13
+ x.call(i, t) && c(s, t, i[t]);
14
+ return s;
15
+ }, f = (s, i) => L(s, S(i));
16
+ var m = (s, i, t) => i.has(s) || l("Cannot " + t);
17
+ var h = (s, i, t) => (m(s, i, "read from private field"), t ? t.call(s) : i.get(s)), p = (s, i, t) => i.has(s) ? l("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), n = (s, i, t, r) => (m(s, i, "write to private field"), r ? r.call(s, t) : i.set(s, t), t);
18
+ import { S as y } from "../Store-swP_0ymB.js";
19
19
  import { c as d } from "../string-BlMQbe8b.js";
20
20
  import "../index-euf5anj6.js";
21
- var i;
22
- class F extends A {
23
- constructor(s, e) {
24
- super(e);
25
- p(this, i);
26
- o(this, i, Array.isArray(s) ? s : [s]);
21
+ var e;
22
+ class C extends y {
23
+ constructor(t, r) {
24
+ super(r);
25
+ p(this, e);
26
+ n(this, e, Array.isArray(t) ? t : [t]);
27
+ for (const a in this.initial)
28
+ this.set(a, this.initial[a]);
27
29
  }
28
- addElement(s) {
29
- a(this, i).push(s);
30
+ addElement(t) {
31
+ h(this, e).push(t);
30
32
  }
31
- removeElement(s) {
32
- o(this, i, a(this, i).filter((e) => e !== s));
33
+ removeElement(t) {
34
+ n(this, e, h(this, e).filter((r) => r !== t));
33
35
  }
34
- isTrue(s) {
35
- return this.current[s] === !0;
36
+ isTrue(t) {
37
+ return this.current[t] === !0;
36
38
  }
37
- isFalse(s) {
38
- return this.current[s] === !1;
39
+ isFalse(t) {
40
+ return this.current[t] === !1;
39
41
  }
40
42
  reset() {
41
43
  super.reset();
42
- for (const s in this.initial)
43
- this.set(s, this.initial[s]);
44
+ for (const t in this.initial)
45
+ this.set(t, this.initial[t]);
44
46
  }
45
- set(s, e = !0) {
46
- this.current = m(l({}, this.current), { [s]: e }), e ? a(this, i).forEach(
47
- (h) => h.classList.add(d(s))
48
- ) : a(this, i).forEach(
49
- (h) => h.classList.remove(d(s))
47
+ set(t, r = !0) {
48
+ this.current = f(u({}, this.current), { [t]: r }), r ? h(this, e).forEach(
49
+ (a) => a.classList.add(d(t))
50
+ ) : h(this, e).forEach(
51
+ (a) => a.classList.remove(d(t))
50
52
  );
51
53
  }
52
54
  }
53
- i = new WeakMap();
55
+ e = new WeakMap();
54
56
  export {
55
- F as ClassLinkedStatus
57
+ C as ClassLinkedStatus
56
58
  };
@@ -1 +1 @@
1
- "use strict";var A=Object.defineProperty;var D=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var M=i=>{throw TypeError(i)};var _=(i,s,t)=>s in i?A(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,T=(i,s)=>{for(var t in s||(s={}))F.call(s,t)&&_(i,t,s[t]);if(D)for(var t of D(s))G.call(s,t)&&_(i,t,s[t]);return i};var k=(i,s,t)=>s.has(i)||M("Cannot "+t);var e=(i,s,t)=>(k(i,s,"read from private field"),t?t.call(i):s.get(i)),n=(i,s,t)=>s.has(i)?M("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),c=(i,s,t,m)=>(k(i,s,"write to private field"),m?m.call(i,t):s.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-GokLe_g-.cjs");const q=require("../coordinates-D8Np3cPD.cjs"),I=require("../dom-JBOkFLTh.cjs"),B=require("../math-GDWEqu7y.cjs"),J=require("../index-Cqw2NKev.cjs");require("../ticker/index.cjs");const R=require("../Damped-DgAIjXp3.cjs"),H=require("../element-resizer/index.cjs"),j=require("../window-resizer/index.cjs"),P=require("../css-property/index.cjs");var o,a,l,p,u,y,b,x,f,w,C,d;class O{constructor(s){n(this,o);n(this,a);n(this,l);n(this,p);n(this,u);n(this,y);n(this,b,0);n(this,x,0);n(this,f,s=>{e(this,p).set(1)});n(this,w,s=>{e(this,p).set(0)});n(this,C,s=>{const t=q.getPointerPosition(s,e(this,o).getBoundingClientRect()),m={width:e(this,b),height:e(this,x)},h={x:t.x,y:t.y};if(e(this,u)){const g=q.screenToCartesian(h,m);h.x=g.x,h.y=g.y}if(e(this,y)){const g=q.normalize(h,m);e(this,u)?(h.x=B.clamp(g.x*2,-1,1),h.y=B.clamp(g.y*2,-1,1)):(h.x=g.x,h.y=g.y)}e(this,a).set(h.x),e(this,l).set(h.y)});n(this,d,()=>{c(this,b,this.element.clientWidth),c(this,x,this.element.clientHeight);let s=0,t=0,m=0,h=0;e(this,u)?e(this,y)?(s=-1,t=1,m=-1,h=1):(s=e(this,b)/2*-1,t=e(this,b)/2*1,m=e(this,x)/2*-1,h=e(this,x)/2*1):e(this,y)?(s=0,t=1,m=0,h=1):(s=0,t=e(this,b),m=0,h=e(this,x)),e(this,a).min=s,e(this,a).max=t,e(this,l).min=m,e(this,l).max=h});c(this,o,I.getElement(s.element)),c(this,a,new R.Damped(0,s.damped)),c(this,l,new R.Damped(0,s.damped)),c(this,p,new R.Damped(0,T({min:0,max:1},s.damped))),c(this,u,s.cartesian||!1),c(this,y,s.normalize||!1)}get element(){return e(this,o)}get x(){return e(this,a)}get y(){return e(this,l)}get z(){return e(this,p)}get cartesian(){return e(this,u)}set cartesian(s){c(this,u,s),e(this,d).call(this)}get normalize(){return e(this,y)}set normalize(s){c(this,y,s),e(this,d).call(this)}connect(){e(this,o).addEventListener("pointerenter",e(this,f)),e(this,o).addEventListener("pointerleave",e(this,w)),e(this,o).addEventListener("pointermove",e(this,C)),H.elementResizer.subscribe(e(this,o),e(this,d)),j.windowResizer.subscribe(e(this,d))}disconnect(){e(this,o).removeEventListener("pointerenter",e(this,f)),e(this,o).removeEventListener("pointerleave",e(this,w)),e(this,o).removeEventListener("pointermove",e(this,C)),H.elementResizer.unsubscribe(e(this,d)),j.windowResizer.unsubscribe(e(this,d)),e(this,a).reset(),e(this,l).reset(),e(this,p).reset()}}o=new WeakMap,a=new WeakMap,l=new WeakMap,p=new WeakMap,u=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,f=new WeakMap,w=new WeakMap,C=new WeakMap,d=new WeakMap;var r,v,S,z,E,L;class W extends HTMLElement{constructor(){super();n(this,r);n(this,v,new P.CSSProperty(this,"--damping",20));n(this,S,new P.CSSProperty(this,"--mass",0));n(this,z,new P.CSSProperty(this,"--stiffness",0));n(this,E,new P.CSSProperty(this,"--cartesian",!1));n(this,L,new P.CSSProperty(this,"--normalize",!1));c(this,r,new O({element:this})),e(this,v).subscribe(t=>{e(this,r).x.damping=t.current,e(this,r).y.damping=t.current,e(this,r).z.damping=t.current}),e(this,E).subscribe(t=>{e(this,r).cartesian=t.current}),e(this,L).subscribe(t=>{e(this,r).normalize=t.current}),e(this,S).subscribe(t=>{e(this,r).x.mass=t.current,e(this,r).y.mass=t.current,e(this,r).z.mass=t.current}),e(this,z).subscribe(t=>{e(this,r).x.stiffness=t.current,e(this,r).y.stiffness=t.current,e(this,r).z.stiffness=t.current}),e(this,r).x.subscribe(t=>{this.style.setProperty("--x",t.current.toString())}),e(this,r).y.subscribe(t=>{this.style.setProperty("--y",t.current.toString())}),e(this,r).z.subscribe(t=>{this.style.setProperty("--z",t.current.toString())})}get pointer(){return e(this,r)}connectedCallback(){e(this,r).connect(),e(this,v).observe(),e(this,S).observe(),e(this,z).observe()}disconnectedCallback(){e(this,r).disconnect(),e(this,v).unobserve(),e(this,S).unobserve(),e(this,z).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}}r=new WeakMap,v=new WeakMap,S=new WeakMap,z=new WeakMap,E=new WeakMap,L=new WeakMap;J.isBrowser&&!customElements.get("e-pointer")&&customElements.define("e-pointer",W);exports.Pointer=O;exports.PointerElement=W;
1
+ "use strict";var J=Object.defineProperty;var B=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var j=i=>{throw TypeError(i)};var H=(i,s,t)=>s in i?J(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,O=(i,s)=>{for(var t in s||(s={}))K.call(s,t)&&H(i,t,s[t]);if(B)for(var t of B(s))N.call(s,t)&&H(i,t,s[t]);return i};var R=(i,s,t)=>s.has(i)||j("Cannot "+t);var e=(i,s,t)=>(R(i,s,"read from private field"),t?t.call(i):s.get(i)),r=(i,s,t)=>s.has(i)?j("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),c=(i,s,t,u)=>(R(i,s,"write to private field"),u?u.call(i,t):s.set(i,t),t),D=(i,s,t)=>(R(i,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-GokLe_g-.cjs");const _=require("../coordinates-D8Np3cPD.cjs"),Q=require("../dom-JBOkFLTh.cjs"),W=require("../math-GDWEqu7y.cjs"),U=require("../index-Cqw2NKev.cjs");require("../ticker/index.cjs");const M=require("../Damped-DgAIjXp3.cjs"),A=require("../element-resizer/index.cjs"),F=require("../window-resizer/index.cjs"),S=require("../css-property/index.cjs");var o,a,l,d,m,p,b,x,k,f,w,C,y,q,T;class G{constructor(s){r(this,q);r(this,o);r(this,a);r(this,l);r(this,d);r(this,m);r(this,p);r(this,b,0);r(this,x,0);r(this,k,!1);r(this,f,s=>{const t=D(this,q,T).call(this,s);e(this,a).set(t.x,{equalize:!0}),e(this,l).set(t.y,{equalize:!0}),e(this,d).set(1)});r(this,w,s=>{e(this,d).set(0)});r(this,C,s=>{const t=D(this,q,T).call(this,s);e(this,a).set(t.x),e(this,l).set(t.y)});r(this,y,()=>{c(this,b,this.element.clientWidth),c(this,x,this.element.clientHeight);let s=0,t=0,u=0,h=0;e(this,m)?e(this,p)?(s=-1,t=1,u=-1,h=1):(s=e(this,b)/2*-1,t=e(this,b)/2*1,u=e(this,x)/2*-1,h=e(this,x)/2*1):e(this,p)?(s=0,t=1,u=0,h=1):(s=0,t=e(this,b),u=0,h=e(this,x)),e(this,a).min=s,e(this,a).max=t,e(this,l).min=u,e(this,l).max=h});c(this,o,Q.getElement(s.element)),c(this,a,new M.Damped(0,s.damped)),c(this,l,new M.Damped(0,s.damped)),c(this,d,new M.Damped(0,O({min:0,max:1},s.damped))),c(this,m,s.cartesian||!1),c(this,p,s.normalize||!1)}get element(){return e(this,o)}get x(){return e(this,a)}get y(){return e(this,l)}get z(){return e(this,d)}get cartesian(){return e(this,m)}set cartesian(s){c(this,m,s),e(this,y).call(this)}get normalize(){return e(this,p)}set normalize(s){c(this,p,s),e(this,y).call(this)}connect(){e(this,o).addEventListener("pointerenter",e(this,f)),e(this,o).addEventListener("pointerleave",e(this,w)),e(this,o).addEventListener("pointermove",e(this,C)),A.elementResizer.subscribe(e(this,o),e(this,y)),F.windowResizer.subscribe(e(this,y))}disconnect(){e(this,o).removeEventListener("pointerenter",e(this,f)),e(this,o).removeEventListener("pointerleave",e(this,w)),e(this,o).removeEventListener("pointermove",e(this,C)),A.elementResizer.unsubscribe(e(this,y)),F.windowResizer.unsubscribe(e(this,y)),e(this,a).reset(),e(this,l).reset(),e(this,d).reset()}}o=new WeakMap,a=new WeakMap,l=new WeakMap,d=new WeakMap,m=new WeakMap,p=new WeakMap,b=new WeakMap,x=new WeakMap,k=new WeakMap,f=new WeakMap,w=new WeakMap,C=new WeakMap,y=new WeakMap,q=new WeakSet,T=function(s){const t=_.getPointerPosition(s,e(this,o).getBoundingClientRect()),u={width:e(this,b),height:e(this,x)},h={x:t.x,y:t.y};if(e(this,m)){const z=_.screenToCartesian(h,u);h.x=z.x,h.y=z.y}if(e(this,p)){const z=_.normalize(h,u);e(this,m)?(h.x=W.clamp(z.x*2,-1,1),h.y=W.clamp(z.y*2,-1,1)):(h.x=z.x,h.y=z.y)}return h};var n,g,v,P,E,L;class I extends HTMLElement{constructor(){super();r(this,n);r(this,g,new S.CSSProperty(this,"--damping",20));r(this,v,new S.CSSProperty(this,"--mass",0));r(this,P,new S.CSSProperty(this,"--stiffness",0));r(this,E,new S.CSSProperty(this,"--cartesian",!1));r(this,L,new S.CSSProperty(this,"--normalize",!1));c(this,n,new G({element:this})),e(this,g).subscribe(t=>{e(this,n).x.damping=t.current,e(this,n).y.damping=t.current,e(this,n).z.damping=t.current}),e(this,E).subscribe(t=>{e(this,n).cartesian=t.current}),e(this,L).subscribe(t=>{e(this,n).normalize=t.current}),e(this,v).subscribe(t=>{e(this,n).x.mass=t.current,e(this,n).y.mass=t.current,e(this,n).z.mass=t.current}),e(this,P).subscribe(t=>{e(this,n).x.stiffness=t.current,e(this,n).y.stiffness=t.current,e(this,n).z.stiffness=t.current}),e(this,n).x.subscribe(t=>{this.style.setProperty("--x",t.current.toString())}),e(this,n).y.subscribe(t=>{this.style.setProperty("--y",t.current.toString())}),e(this,n).z.subscribe(t=>{this.style.setProperty("--z",t.current.toString())})}get pointer(){return e(this,n)}connectedCallback(){e(this,n).connect(),e(this,g).observe(),e(this,v).observe(),e(this,P).observe()}disconnectedCallback(){e(this,n).disconnect(),e(this,g).unobserve(),e(this,v).unobserve(),e(this,P).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}}n=new WeakMap,g=new WeakMap,v=new WeakMap,P=new WeakMap,E=new WeakMap,L=new WeakMap;U.isBrowser&&!customElements.get("e-pointer")&&customElements.define("e-pointer",I);exports.Pointer=G;exports.PointerElement=I;
@@ -1,70 +1,59 @@
1
- var q = Object.defineProperty;
2
- var k = Object.getOwnPropertySymbols;
3
- var A = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
4
- var D = (i) => {
1
+ var I = Object.defineProperty;
2
+ var M = Object.getOwnPropertySymbols;
3
+ var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
4
+ var W = (i) => {
5
5
  throw TypeError(i);
6
6
  };
7
- var B = (i, s, e) => s in i ? q(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, H = (i, s) => {
7
+ var T = (i, s, e) => s in i ? I(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, j = (i, s) => {
8
8
  for (var e in s || (s = {}))
9
- A.call(s, e) && B(i, e, s[e]);
10
- if (k)
11
- for (var e of k(s))
12
- F.call(s, e) && B(i, e, s[e]);
9
+ J.call(s, e) && T(i, e, s[e]);
10
+ if (M)
11
+ for (var e of M(s))
12
+ K.call(s, e) && T(i, e, s[e]);
13
13
  return i;
14
14
  };
15
- var M = (i, s, e) => s.has(i) || D("Cannot " + e);
16
- var t = (i, s, e) => (M(i, s, "read from private field"), e ? e.call(i) : s.get(i)), n = (i, s, e) => s.has(i) ? D("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, e), m = (i, s, e, c) => (M(i, s, "write to private field"), c ? c.call(i, e) : s.set(i, e), e);
15
+ var R = (i, s, e) => s.has(i) || W("Cannot " + e);
16
+ var t = (i, s, e) => (R(i, s, "read from private field"), e ? e.call(i) : s.get(i)), r = (i, s, e) => s.has(i) ? W("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, e), c = (i, s, e, m) => (R(i, s, "write to private field"), m ? m.call(i, e) : s.set(i, e), e), k = (i, s, e) => (R(i, s, "access private method"), e);
17
17
  import "../Store-swP_0ymB.js";
18
- import { g as G, s as I, n as J } from "../coordinates-CgdGoSYs.js";
19
- import { g as K } from "../dom-CVWzyXPH.js";
20
- import { c as T } from "../math-BOBiC4TN.js";
21
- import { i as N } from "../index-euf5anj6.js";
18
+ import { g as N, s as O, n as Q } from "../coordinates-CgdGoSYs.js";
19
+ import { g as U } from "../dom-CVWzyXPH.js";
20
+ import { c as A } from "../math-BOBiC4TN.js";
21
+ import { i as V } from "../index-euf5anj6.js";
22
22
  import "../ticker/index.js";
23
- import { D as R } from "../Damped-GyAS-U-z.js";
24
- import { elementResizer as W } from "../element-resizer/index.js";
25
- import { windowResizer as j } from "../window-resizer/index.js";
23
+ import { D as B } from "../Damped-GyAS-U-z.js";
24
+ import { elementResizer as F } from "../element-resizer/index.js";
25
+ import { windowResizer as G } from "../window-resizer/index.js";
26
26
  import { CSSProperty as P } from "../css-property/index.js";
27
- var o, a, l, b, p, u, d, f, S, w, E, y;
28
- class O {
27
+ var o, a, l, b, u, p, d, f, H, S, w, E, y, L, D;
28
+ class X {
29
29
  constructor(s) {
30
- n(this, o);
31
- n(this, a);
32
- n(this, l);
33
- n(this, b);
34
- n(this, p);
35
- n(this, u);
36
- n(this, d, 0);
37
- n(this, f, 0);
38
- n(this, S, (s) => {
39
- t(this, b).set(1);
30
+ r(this, L);
31
+ r(this, o);
32
+ r(this, a);
33
+ r(this, l);
34
+ r(this, b);
35
+ r(this, u);
36
+ r(this, p);
37
+ r(this, d, 0);
38
+ r(this, f, 0);
39
+ r(this, H, !1);
40
+ r(this, S, (s) => {
41
+ const e = k(this, L, D).call(this, s);
42
+ t(this, a).set(e.x, { equalize: !0 }), t(this, l).set(e.y, { equalize: !0 }), t(this, b).set(1);
40
43
  });
41
- n(this, w, (s) => {
44
+ r(this, w, (s) => {
42
45
  t(this, b).set(0);
43
46
  });
44
- n(this, E, (s) => {
45
- const e = G(s, t(this, o).getBoundingClientRect()), c = {
46
- width: t(this, d),
47
- height: t(this, f)
48
- }, h = {
49
- x: e.x,
50
- y: e.y
51
- };
52
- if (t(this, p)) {
53
- const x = I(h, c);
54
- h.x = x.x, h.y = x.y;
55
- }
56
- if (t(this, u)) {
57
- const x = J(h, c);
58
- t(this, p) ? (h.x = T(x.x * 2, -1, 1), h.y = T(x.y * 2, -1, 1)) : (h.x = x.x, h.y = x.y);
59
- }
60
- t(this, a).set(h.x), t(this, l).set(h.y);
47
+ r(this, E, (s) => {
48
+ const e = k(this, L, D).call(this, s);
49
+ t(this, a).set(e.x), t(this, l).set(e.y);
61
50
  });
62
- n(this, y, () => {
63
- m(this, d, this.element.clientWidth), m(this, f, this.element.clientHeight);
64
- let s = 0, e = 0, c = 0, h = 0;
65
- t(this, p) ? t(this, u) ? (s = -1, e = 1, c = -1, h = 1) : (s = t(this, d) / 2 * -1, e = t(this, d) / 2 * 1, c = t(this, f) / 2 * -1, h = t(this, f) / 2 * 1) : t(this, u) ? (s = 0, e = 1, c = 0, h = 1) : (s = 0, e = t(this, d), c = 0, h = t(this, f)), t(this, a).min = s, t(this, a).max = e, t(this, l).min = c, t(this, l).max = h;
51
+ r(this, y, () => {
52
+ c(this, d, this.element.clientWidth), c(this, f, this.element.clientHeight);
53
+ let s = 0, e = 0, m = 0, h = 0;
54
+ t(this, u) ? t(this, p) ? (s = -1, e = 1, m = -1, h = 1) : (s = t(this, d) / 2 * -1, e = t(this, d) / 2 * 1, m = t(this, f) / 2 * -1, h = t(this, f) / 2 * 1) : t(this, p) ? (s = 0, e = 1, m = 0, h = 1) : (s = 0, e = t(this, d), m = 0, h = t(this, f)), t(this, a).min = s, t(this, a).max = e, t(this, l).min = m, t(this, l).max = h;
66
55
  });
67
- m(this, o, K(s.element)), m(this, a, new R(0, s.damped)), m(this, l, new R(0, s.damped)), m(this, b, new R(0, H({ min: 0, max: 1 }, s.damped))), m(this, p, s.cartesian || !1), m(this, u, s.normalize || !1);
56
+ c(this, o, U(s.element)), c(this, a, new B(0, s.damped)), c(this, l, new B(0, s.damped)), c(this, b, new B(0, j({ min: 0, max: 1 }, s.damped))), c(this, u, s.cartesian || !1), c(this, p, s.normalize || !1);
68
57
  }
69
58
  get element() {
70
59
  return t(this, o);
@@ -79,19 +68,19 @@ class O {
79
68
  return t(this, b);
80
69
  }
81
70
  get cartesian() {
82
- return t(this, p);
71
+ return t(this, u);
83
72
  }
84
73
  set cartesian(s) {
85
- m(this, p, s), t(this, y).call(this);
74
+ c(this, u, s), t(this, y).call(this);
86
75
  }
87
76
  get normalize() {
88
- return t(this, u);
77
+ return t(this, p);
89
78
  }
90
79
  set normalize(s) {
91
- m(this, u, s), t(this, y).call(this);
80
+ c(this, p, s), t(this, y).call(this);
92
81
  }
93
82
  connect() {
94
- t(this, o).addEventListener("pointerenter", t(this, S)), t(this, o).addEventListener("pointerleave", t(this, w)), t(this, o).addEventListener("pointermove", t(this, E)), W.subscribe(t(this, o), t(this, y)), j.subscribe(t(this, y));
83
+ t(this, o).addEventListener("pointerenter", t(this, S)), t(this, o).addEventListener("pointerleave", t(this, w)), t(this, o).addEventListener("pointermove", t(this, E)), F.subscribe(t(this, o), t(this, y)), G.subscribe(t(this, y));
95
84
  }
96
85
  disconnect() {
97
86
  t(this, o).removeEventListener(
@@ -100,53 +89,70 @@ class O {
100
89
  ), t(this, o).removeEventListener(
101
90
  "pointerleave",
102
91
  t(this, w)
103
- ), t(this, o).removeEventListener("pointermove", t(this, E)), W.unsubscribe(t(this, y)), j.unsubscribe(t(this, y)), t(this, a).reset(), t(this, l).reset(), t(this, b).reset();
92
+ ), t(this, o).removeEventListener("pointermove", t(this, E)), F.unsubscribe(t(this, y)), G.unsubscribe(t(this, y)), t(this, a).reset(), t(this, l).reset(), t(this, b).reset();
104
93
  }
105
94
  }
106
- o = new WeakMap(), a = new WeakMap(), l = new WeakMap(), b = new WeakMap(), p = new WeakMap(), u = new WeakMap(), d = new WeakMap(), f = new WeakMap(), S = new WeakMap(), w = new WeakMap(), E = new WeakMap(), y = new WeakMap();
107
- var r, g, v, z, L, C;
108
- class Q extends HTMLElement {
95
+ o = new WeakMap(), a = new WeakMap(), l = new WeakMap(), b = new WeakMap(), u = new WeakMap(), p = new WeakMap(), d = new WeakMap(), f = new WeakMap(), H = new WeakMap(), S = new WeakMap(), w = new WeakMap(), E = new WeakMap(), y = new WeakMap(), L = new WeakSet(), D = function(s) {
96
+ const e = N(s, t(this, o).getBoundingClientRect()), m = {
97
+ width: t(this, d),
98
+ height: t(this, f)
99
+ }, h = {
100
+ x: e.x,
101
+ y: e.y
102
+ };
103
+ if (t(this, u)) {
104
+ const x = O(h, m);
105
+ h.x = x.x, h.y = x.y;
106
+ }
107
+ if (t(this, p)) {
108
+ const x = Q(h, m);
109
+ t(this, u) ? (h.x = A(x.x * 2, -1, 1), h.y = A(x.y * 2, -1, 1)) : (h.x = x.x, h.y = x.y);
110
+ }
111
+ return h;
112
+ };
113
+ var n, g, v, z, C, q;
114
+ class Y extends HTMLElement {
109
115
  constructor() {
110
116
  super();
111
- n(this, r);
112
- n(this, g, new P(this, "--damping", 20));
113
- n(this, v, new P(this, "--mass", 0));
114
- n(this, z, new P(this, "--stiffness", 0));
115
- n(this, L, new P(this, "--cartesian", !1));
116
- n(this, C, new P(this, "--normalize", !1));
117
- m(this, r, new O({
117
+ r(this, n);
118
+ r(this, g, new P(this, "--damping", 20));
119
+ r(this, v, new P(this, "--mass", 0));
120
+ r(this, z, new P(this, "--stiffness", 0));
121
+ r(this, C, new P(this, "--cartesian", !1));
122
+ r(this, q, new P(this, "--normalize", !1));
123
+ c(this, n, new X({
118
124
  element: this
119
125
  })), t(this, g).subscribe((e) => {
120
- t(this, r).x.damping = e.current, t(this, r).y.damping = e.current, t(this, r).z.damping = e.current;
121
- }), t(this, L).subscribe((e) => {
122
- t(this, r).cartesian = e.current;
126
+ t(this, n).x.damping = e.current, t(this, n).y.damping = e.current, t(this, n).z.damping = e.current;
123
127
  }), t(this, C).subscribe((e) => {
124
- t(this, r).normalize = e.current;
128
+ t(this, n).cartesian = e.current;
129
+ }), t(this, q).subscribe((e) => {
130
+ t(this, n).normalize = e.current;
125
131
  }), t(this, v).subscribe((e) => {
126
- t(this, r).x.mass = e.current, t(this, r).y.mass = e.current, t(this, r).z.mass = e.current;
132
+ t(this, n).x.mass = e.current, t(this, n).y.mass = e.current, t(this, n).z.mass = e.current;
127
133
  }), t(this, z).subscribe((e) => {
128
- t(this, r).x.stiffness = e.current, t(this, r).y.stiffness = e.current, t(this, r).z.stiffness = e.current;
129
- }), t(this, r).x.subscribe((e) => {
134
+ t(this, n).x.stiffness = e.current, t(this, n).y.stiffness = e.current, t(this, n).z.stiffness = e.current;
135
+ }), t(this, n).x.subscribe((e) => {
130
136
  this.style.setProperty("--x", e.current.toString());
131
- }), t(this, r).y.subscribe((e) => {
137
+ }), t(this, n).y.subscribe((e) => {
132
138
  this.style.setProperty("--y", e.current.toString());
133
- }), t(this, r).z.subscribe((e) => {
139
+ }), t(this, n).z.subscribe((e) => {
134
140
  this.style.setProperty("--z", e.current.toString());
135
141
  });
136
142
  }
137
143
  get pointer() {
138
- return t(this, r);
144
+ return t(this, n);
139
145
  }
140
146
  connectedCallback() {
141
- t(this, r).connect(), t(this, g).observe(), t(this, v).observe(), t(this, z).observe();
147
+ t(this, n).connect(), t(this, g).observe(), t(this, v).observe(), t(this, z).observe();
142
148
  }
143
149
  disconnectedCallback() {
144
- t(this, r).disconnect(), t(this, g).unobserve(), t(this, v).unobserve(), t(this, z).unobserve(), this.style.removeProperty("--x"), this.style.removeProperty("--y"), this.style.removeProperty("--z");
150
+ t(this, n).disconnect(), t(this, g).unobserve(), t(this, v).unobserve(), t(this, z).unobserve(), this.style.removeProperty("--x"), this.style.removeProperty("--y"), this.style.removeProperty("--z");
145
151
  }
146
152
  }
147
- r = new WeakMap(), g = new WeakMap(), v = new WeakMap(), z = new WeakMap(), L = new WeakMap(), C = new WeakMap();
148
- N && !customElements.get("e-pointer") && customElements.define("e-pointer", Q);
153
+ n = new WeakMap(), g = new WeakMap(), v = new WeakMap(), z = new WeakMap(), C = new WeakMap(), q = new WeakMap();
154
+ V && !customElements.get("e-pointer") && customElements.define("e-pointer", Y);
149
155
  export {
150
- O as Pointer,
151
- Q as PointerElement
156
+ X as Pointer,
157
+ Y as PointerElement
152
158
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.53.1",
3
+ "version": "0.53.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"