aptechka 0.44.0 → 0.44.2
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/lib/Animation-D1lL_XhF.cjs +1 -0
- package/lib/Animation-Je56LXXj.js +106 -0
- package/lib/{Damped-DxylD27S.js → Damped-BMmEn7PH.js} +4 -3
- package/lib/Damped-BbJjFOLH.cjs +1 -0
- package/lib/{Store-Cm3LPXlx.js → Store-D2xCXENW.js} +1 -1
- package/lib/Store-DRp_K37w.cjs +1 -0
- package/lib/{Tweened-p5hYr6lL.js → Tweened-BNCj14Jz.js} +4 -3
- package/lib/Tweened-Dk1UNPSH.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +11 -11
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +12 -11
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +7 -6
- package/lib/custom-scrollbar/index.cjs +1 -1
- package/lib/custom-scrollbar/index.js +13 -12
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +7 -6
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +1 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +9 -8
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +6 -5
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +5 -4
- package/lib/index-Cqw2NKev.cjs +1 -0
- package/lib/index-euf5anj6.js +64 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +4 -61
- package/lib/{jss-CjccJC-K.js → jss-BQSxj7Ls.js} +1 -1
- package/lib/jss-B_mh4mIw.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +35 -34
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +10 -9
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +17 -16
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +7 -6
- package/lib/morph/MorphAnnouncer.d.ts +0 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +57 -57
- package/lib/need_redo_tweaker/index.cjs +3 -3
- package/lib/need_redo_tweaker/index.js +260 -260
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +34 -33
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +25 -25
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +3 -3
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +278 -278
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +21 -21
- package/lib/scroll-segment/ScrollSegmentDefaultContainer.d.ts +11 -0
- package/lib/scroll-segment/ScrollSegmentElement.d.ts +78 -0
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.d.ts +2 -79
- package/lib/scroll-segment/index.js +193 -164
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +6 -6
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +12 -11
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +10 -9
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +13 -12
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/url-CLvdjbII.cjs +1 -0
- package/lib/{url-D0bFvcuq.js → url-CfcHdBT6.js} +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +163 -148
- package/lib/utils/timeouts.d.ts +5 -0
- package/lib/utils/url.d.ts +5 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +7 -6
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +13 -12
- package/package.json +1 -1
- package/lib/Animation-CMiBKrwE.cjs +0 -1
- package/lib/Animation-DPRlQfW2.js +0 -105
- package/lib/Damped-CHZ314Rn.cjs +0 -1
- package/lib/Store-C2J4Q87x.cjs +0 -1
- package/lib/Tweened-Dn6CMA-p.cjs +0 -1
- package/lib/browser-0zX67oeU.js +0 -4
- package/lib/browser-CpzFX2xg.cjs +0 -1
- package/lib/jss-GJLvaNfT.cjs +0 -1
- package/lib/url-Bn9ZrvT3.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var C=i=>{throw TypeError(i)};var S=(i,r,t)=>r.has(i)||C("Cannot "+t);var e=(i,r,t)=>(S(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?C("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),h=(i,r,t,n)=>(S(i,r,"write to private field"),n?n.call(i,t):r.set(i,t),t),M=(i,r,t)=>(S(i,r,"access private method"),t);const I=require("./Store-DRp_K37w.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-BANSrI_m.cjs");require("./index-Cqw2NKev.cjs");const P=require("./ticker/index.cjs"),N=require("./order/index.cjs");var f,b,A,c,F,s,u,l,g,d,x,y,q;class O extends I.Store{constructor(t,n){super(t||0,n);a(this,x);a(this,f);a(this,b,N.TICK_ORDER.ANIMATION);a(this,A);a(this,c,new I.Store(!1));a(this,F,0);a(this,s,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,q,t=>{this.handleAnimationFrame(t)});h(this,s,this.current)}get direction(){return e(this,F)}get target(){return e(this,s)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,s),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,s),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,s)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,s)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,s)!==this.current&&this.start())}shift(t,n){this.set(e(this,s)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,P.ticker.subscribe(e(this,q),{maxFPS:e(this,f),order:e(this,b),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,P.ticker.unsubscribe(e(this,q)))}updateOptions(t){h(this,f,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,b,m.nullishCoalescing(t==null?void 0:t.order,e(this,b))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),M(this,x,y).call(this,typeof e(this,d)=="number"?e(this,d):e(this,s)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,s)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,F=new WeakMap,s=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,x=new WeakSet,y=function(t){h(this,F,Math.sign(t-e(this,s))),h(this,s,z.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},q=new WeakMap;exports.Animation=O;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var I = (e) => {
|
|
2
|
+
throw TypeError(e);
|
|
3
|
+
};
|
|
4
|
+
var S = (e, r, t) => r.has(e) || I("Cannot " + t);
|
|
5
|
+
var i = (e, r, t) => (S(e, r, "read from private field"), t ? t.call(e) : r.get(e)), a = (e, r, t) => r.has(e) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), h = (e, r, t, u) => (S(e, r, "write to private field"), u ? u.call(e, t) : r.set(e, t), t), P = (e, r, t) => (S(e, r, "access private method"), t);
|
|
6
|
+
import { S as q } from "./Store-D2xCXENW.js";
|
|
7
|
+
import { c as y } from "./math-BOBiC4TN.js";
|
|
8
|
+
import { p as z, n as F } from "./polyfills-CxfUK5OU.js";
|
|
9
|
+
import "./index-euf5anj6.js";
|
|
10
|
+
import { ticker as O } from "./ticker/index.js";
|
|
11
|
+
import { TICK_ORDER as N } from "./order/index.js";
|
|
12
|
+
var f, d, A, l, b, s, n, m, c, g, M, R, x;
|
|
13
|
+
class L extends q {
|
|
14
|
+
constructor(t, u) {
|
|
15
|
+
super(t || 0, u);
|
|
16
|
+
a(this, M);
|
|
17
|
+
a(this, f);
|
|
18
|
+
a(this, d, N.ANIMATION);
|
|
19
|
+
a(this, A);
|
|
20
|
+
a(this, l, new q(!1));
|
|
21
|
+
a(this, b, 0);
|
|
22
|
+
a(this, s, 0);
|
|
23
|
+
a(this, n, -1 / 0);
|
|
24
|
+
a(this, m, 1 / 0);
|
|
25
|
+
a(this, c, 0);
|
|
26
|
+
a(this, g, null);
|
|
27
|
+
a(this, x, (t) => {
|
|
28
|
+
this.handleAnimationFrame(t);
|
|
29
|
+
});
|
|
30
|
+
h(this, s, this.current);
|
|
31
|
+
}
|
|
32
|
+
get direction() {
|
|
33
|
+
return i(this, b);
|
|
34
|
+
}
|
|
35
|
+
get target() {
|
|
36
|
+
return i(this, s);
|
|
37
|
+
}
|
|
38
|
+
get min() {
|
|
39
|
+
return i(this, n);
|
|
40
|
+
}
|
|
41
|
+
set min(t) {
|
|
42
|
+
h(this, n, t), this.set(i(this, s), {
|
|
43
|
+
equalize: !0
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
get max() {
|
|
47
|
+
return i(this, m);
|
|
48
|
+
}
|
|
49
|
+
set max(t) {
|
|
50
|
+
h(this, m, t), this.set(i(this, s), {
|
|
51
|
+
equalize: !0
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
get from() {
|
|
55
|
+
return i(this, c);
|
|
56
|
+
}
|
|
57
|
+
get isRunning() {
|
|
58
|
+
return i(this, l);
|
|
59
|
+
}
|
|
60
|
+
get delta() {
|
|
61
|
+
return Math.abs(i(this, s) - i(this, c));
|
|
62
|
+
}
|
|
63
|
+
get deltaProgress() {
|
|
64
|
+
return this.delta ? z(Math.abs(this.current - i(this, c)) / this.delta, 6) : 0;
|
|
65
|
+
}
|
|
66
|
+
get distance() {
|
|
67
|
+
return Math.abs(i(this, m) - i(this, n));
|
|
68
|
+
}
|
|
69
|
+
get distanceProgress() {
|
|
70
|
+
return this.distance ? z(Math.abs(this.current - i(this, n)) / this.distance, 6) : 0;
|
|
71
|
+
}
|
|
72
|
+
set(t, u) {
|
|
73
|
+
(i(this, s) !== t || u != null && u.restart) && (h(this, g, t), this.updateOptions(u), h(this, g, null), i(this, s) !== this.current && this.start());
|
|
74
|
+
}
|
|
75
|
+
shift(t, u) {
|
|
76
|
+
this.set(i(this, s) + t, u);
|
|
77
|
+
}
|
|
78
|
+
reset() {
|
|
79
|
+
super.reset(), this.set(this.initial, { equalize: !0 });
|
|
80
|
+
}
|
|
81
|
+
close() {
|
|
82
|
+
super.close(), this.reset(), this.unlistenAnimationFrame();
|
|
83
|
+
}
|
|
84
|
+
listenAnimationFrame() {
|
|
85
|
+
i(this, l).current || (i(this, l).current = !0, O.subscribe(i(this, x), {
|
|
86
|
+
maxFPS: i(this, f),
|
|
87
|
+
order: i(this, d),
|
|
88
|
+
culling: i(this, A)
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
unlistenAnimationFrame() {
|
|
92
|
+
i(this, l).current && (i(this, l).current = !1, O.unsubscribe(i(this, x)));
|
|
93
|
+
}
|
|
94
|
+
updateOptions(t) {
|
|
95
|
+
h(this, f, F(t == null ? void 0 : t.maxFPS, i(this, f))), h(this, d, F(t == null ? void 0 : t.order, i(this, d))), h(this, A, F(t == null ? void 0 : t.culling, i(this, A))), h(this, n, F(t == null ? void 0 : t.min, i(this, n))), h(this, m, F(t == null ? void 0 : t.max, i(this, m))), P(this, M, R).call(this, typeof i(this, g) == "number" ? i(this, g) : i(this, s)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = i(this, s)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
|
|
96
|
+
}
|
|
97
|
+
start() {
|
|
98
|
+
this.listenAnimationFrame();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
f = new WeakMap(), d = new WeakMap(), A = new WeakMap(), l = new WeakMap(), b = new WeakMap(), s = new WeakMap(), n = new WeakMap(), m = new WeakMap(), c = new WeakMap(), g = new WeakMap(), M = new WeakSet(), R = function(t) {
|
|
102
|
+
h(this, b, Math.sign(t - i(this, s))), h(this, s, y(t, i(this, n), i(this, m))), h(this, c, this.current);
|
|
103
|
+
}, x = new WeakMap();
|
|
104
|
+
export {
|
|
105
|
+
L as A
|
|
106
|
+
};
|
|
@@ -17,9 +17,10 @@ var A = (s, e, t) => e.has(s) || g("Cannot " + t);
|
|
|
17
17
|
var a = (s, e, t) => (A(s, e, "read from private field"), t ? t.call(s) : e.get(s)), c = (s, e, t) => e.has(s) ? g("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), m = (s, e, t, r) => (A(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
|
|
18
18
|
import { d as D } from "./math-BOBiC4TN.js";
|
|
19
19
|
import { n as u, p as F } from "./polyfills-CxfUK5OU.js";
|
|
20
|
-
import
|
|
20
|
+
import "./index-euf5anj6.js";
|
|
21
|
+
import { A as q } from "./Animation-Je56LXXj.js";
|
|
21
22
|
var i, h;
|
|
22
|
-
class
|
|
23
|
+
class k extends q {
|
|
23
24
|
constructor(t, r) {
|
|
24
25
|
super(t, r);
|
|
25
26
|
c(this, i);
|
|
@@ -49,5 +50,5 @@ class j extends q {
|
|
|
49
50
|
}
|
|
50
51
|
i = new WeakMap(), h = new WeakMap();
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
+
k as D
|
|
53
54
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var b=Object.defineProperty,y=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))O.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))v.call(e,s)&&d(t,s,e[s]);return t},p=(t,e)=>y(t,C(e));var q=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),m=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(q(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const w=require("./math-GDWEqu7y.cjs"),u=require("./polyfills-BANSrI_m.cjs");require("./index-Cqw2NKev.cjs");const B=require("./Animation-D1lL_XhF.cjs");var i,h;class D extends B.Animation{constructor(s,r){super(s,r);m(this,i);m(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(p(f({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=u.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=u.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=u.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){u.preciseNumber(this.current,6)===u.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const c=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*c),this.current+=a(this,i)*c}else this.current=w.damp(this.current,this.target,this.damping,c)}}i=new WeakMap,h=new WeakMap;exports.Damped=D;
|
|
@@ -3,7 +3,7 @@ var A = (r) => {
|
|
|
3
3
|
};
|
|
4
4
|
var w = (r, e, t) => e.has(r) || A("Cannot " + t);
|
|
5
5
|
var i = (r, e, t) => (w(r, e, "read from private field"), t ? t.call(r) : e.get(r)), n = (r, e, t) => e.has(r) ? A("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), h = (r, e, t, a) => (w(r, e, "write to private field"), a ? a.call(r, t) : e.set(r, t), t), k = (r, e, t) => (w(r, e, "access private method"), t);
|
|
6
|
-
import { i as z } from "./
|
|
6
|
+
import { i as z } from "./index-euf5anj6.js";
|
|
7
7
|
var l;
|
|
8
8
|
class E {
|
|
9
9
|
constructor() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var A=r=>{throw TypeError(r)};var w=(r,e,t)=>e.has(r)||A("Cannot "+t);var i=(r,e,t)=>(w(r,e,"read from private field"),t?t.call(r):e.get(r)),c=(r,e,t)=>e.has(r)?A("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),h=(r,e,t,a)=>(w(r,e,"write to private field"),a?a.call(r,t):e.set(r,t),t),_=(r,e,t)=>(w(r,e,"access private method"),t);const E=require("./index-Cqw2NKev.cjs");var f;class M{constructor(){c(this,f);this.storage=null,this.name="store-registry",h(this,f,null),E.isBrowser&&(this.storage=localStorage)}get loadedState(){return i(this,f)}saveState(){const e=this.getState(),t=JSON.stringify(e);localStorage.setItem(this.name,t)}loadState(e=localStorage.getItem(this.name)){e&&(typeof e=="string"?h(this,f,JSON.parse(e)):h(this,f,e),l.current.forEach(t=>{t.name&&this.updateStore(t)}))}resetState(){l.current.forEach(e=>{e.name&&e.reset()}),this.saveState()}updateStore(e){var t,a;if(!Array.isArray((t=i(this,f))==null?void 0:t.stores))return e;if(e.name){const b=(a=i(this,f))==null?void 0:a.stores.find(z=>z.name===e.name);b&&(e.current=b.value)}return e}getState(){const e={stores:[]};return l.current.forEach(t=>{t.name&&(e.stores.find(a=>a.name===t.name)||e.stores.push({value:t.current,name:t.name}))}),e}}f=new WeakMap;const C=new M;var d,s,S,u,m,n,g,v,y,q;class N{constructor(e,t){c(this,y);c(this,d);c(this,s);c(this,S);c(this,u,new Set);c(this,m);c(this,n);c(this,g);c(this,v);h(this,d,t==null?void 0:t.name),this.__manager=t==null?void 0:t.__manager,h(this,s,{initial:e,previous:void 0,current:e}),h(this,S,(t==null?void 0:t.equalityCheck)||((a,b)=>a===b)),t!=null&&t.validate&&this.addMiddleware(t.validate),h(this,g,(t==null?void 0:t.notifyAndClose)||!1),h(this,v,(t==null?void 0:t.invisible)||!1),h(this,m,(t==null?void 0:t.skipSubscribeNotification)||!1),i(this,d)&&C.updateStore(this)}get name(){return i(this,d)}get initial(){return i(this,s).initial}get previous(){return i(this,s).previous}get current(){return i(this,s).current}set current(e){if(!i(this,S).call(this,i(this,s).current,e)){if(i(this,s).previous=i(this,s).current,i(this,n))for(const t of i(this,n))e=t(e);i(this,s).current=e,_(this,y,q).call(this),i(this,g)&&this.close()}}get subscribers(){return i(this,u)}addMiddleware(e){i(this,n)||h(this,n,new Set),i(this,n).add(e)}removeMiddleware(e){var t,a;(t=i(this,n))==null||t.delete(e),(a=i(this,n))!=null&&a.size||h(this,n,void 0)}subscribe(e){return!i(this,v)&&!i(this,u).size&&R(this),i(this,u).add(e),i(this,m)||e(i(this,s)),()=>{this.unsubscribe(e)}}unsubscribe(e){i(this,u).delete(e),i(this,u).size||k(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){i(this,u).clear(),i(this,s).previous=void 0,i(this,s).current=i(this,s).initial,k(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,u=new WeakMap,m=new WeakMap,n=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakSet,q=function(){for(const e of i(this,u))e(i(this,s))};const l=new N([],{invisible:!0});function R(r){l.current.includes(r)||(l.current=[...l.current,r])}function k(r){l.current.includes(r)&&(l.current=l.current.filter(e=>e!==r))}exports.Store=N;exports.activeStores=l;exports.storeRegistry=C;
|
|
@@ -18,9 +18,10 @@ var m = (a, r, e) => (A(a, r, "read from private field"), e ? e.call(a) : r.get(
|
|
|
18
18
|
import { l as h, e as T } from "./easings-Bni3YAAW.js";
|
|
19
19
|
import { c as q } from "./math-BOBiC4TN.js";
|
|
20
20
|
import { n as w, p as z } from "./polyfills-CxfUK5OU.js";
|
|
21
|
-
import
|
|
21
|
+
import "./index-euf5anj6.js";
|
|
22
|
+
import { A as C } from "./Animation-Je56LXXj.js";
|
|
22
23
|
var s, t;
|
|
23
|
-
class
|
|
24
|
+
class D extends C {
|
|
24
25
|
constructor(e, i) {
|
|
25
26
|
super(e || 0, i);
|
|
26
27
|
n(this, s, h);
|
|
@@ -40,5 +41,5 @@ class B extends C {
|
|
|
40
41
|
}
|
|
41
42
|
s = new WeakMap(), t = new WeakMap();
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
+
D as T
|
|
44
45
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var y=Object.defineProperty,O=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var m=(i,a,e)=>a in i?y(i,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[a]=e,g=(i,a)=>{for(var e in a||(a={}))w.call(a,e)&&m(i,e,a[e]);if(h)for(var e of h(a))S.call(a,e)&&m(i,e,a[e]);return i},f=(i,a)=>O(i,b(a));var q=(i,a,e)=>a.has(i)||d("Cannot "+e);var s=(i,a,e)=>(q(i,a,"read from private field"),e?e.call(i):a.get(i)),l=(i,a,e)=>a.has(i)?d("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(i):a.set(i,e),c=(i,a,e,r)=>(q(i,a,"write to private field"),r?r.call(i,e):a.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),T=require("./math-GDWEqu7y.cjs"),A=require("./polyfills-BANSrI_m.cjs");require("./index-Cqw2NKev.cjs");const x=require("./Animation-D1lL_XhF.cjs");var n,t;class z extends x.Animation{constructor(e,r){super(e||0,r);l(this,n,u.linear);l(this,t,1e3);this.updateOptions(f(g({},r),{equalize:!0}))}updateOptions(e){super.updateOptions(e),c(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),c(this,t,(e==null?void 0:e.duration)===!1?0:A.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const r=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,F=s(this,n).call(this,T.clamp(r,0,1));this.current=A.preciseNumber(this.from+(this.target-this.from)*F,6),r>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=z;
|
package/lib/accordion/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=s=>{throw TypeError(s)};var
|
|
1
|
+
"use strict";var M=s=>{throw TypeError(s)};var p=(s,i,t)=>i.has(s)||M("Cannot "+t);var e=(s,i,t)=>(p(s,i,"read from private field"),t?t.call(s):i.get(s)),n=(s,i,t)=>i.has(s)?M("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(s):i.set(s,t),c=(s,i,t,r)=>(p(s,i,"write to private field"),r?r.call(s,t):i.set(s,t),t),m=(s,i,t)=>(p(s,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../attribute/index.cjs"),z=require("../index-Cqw2NKev.cjs"),H=require("../events-KVanG9sR.cjs"),R=require("../style-At6aDoqG.cjs");var d,h,f,l,E,u,o,N,w,y,L,b,k;class S{constructor(i,t){n(this,o);n(this,d,null);n(this,h,null);n(this,f,null);n(this,l,null);n(this,E);n(this,u,!1);n(this,y,()=>{e(this,u)?this.close():this.open()});n(this,L,()=>{e(this,u)&&(m(this,o,b).call(this,0,!0),m(this,o,b).call(this,e(this,o,w)))});t.firstElementChild instanceof HTMLElement&&t.lastElementChild instanceof HTMLElement?(c(this,d,i),c(this,h,t),c(this,f,t.firstElementChild),c(this,l,t.lastElementChild),e(this,l).style.overflow="hidden",e(this,d).axisAttribute.current==="y"?e(this,l).style.height="0px":e(this,l).style.width="0px",addEventListener("resize",e(this,L)),e(this,f).addEventListener("click",e(this,y)),e(this,h).hasAttribute("data-opened")&&this.open({skipTransition:!0})):i.removeItem(e(this,h))}get element(){return e(this,h)}destroy(){e(this,f)&&(e(this,h).classList.remove("opened","triggered"),e(this,h).removeAttribute("data-opened"),e(this,f).style.cursor="",m(this,o,b).call(this,void 0),removeEventListener("resize",e(this,L)),e(this,f).removeEventListener("click",e(this,y)),clearTimeout(e(this,E)))}open(i){i!=null&&i.skipTransition&&m(this,o,k).call(this),e(this,d).multipleAttribute.current||e(this,d).closeAll({exclude:e(this,h)}),c(this,u,!0),clearTimeout(e(this,E)),e(this,h).classList.add("triggered"),m(this,o,b).call(this,e(this,o,w)),setTimeout(()=>{e(this,h).classList.add("opened"),e(this,h).setAttribute("data-opened","")},0),H.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,u)}})}close(i){i!=null&&i.skipTransition&&m(this,o,k).call(this),c(this,u,!1),e(this,h).classList.remove("opened"),m(this,o,b).call(this,0),c(this,E,setTimeout(()=>{e(this,h).classList.remove("triggered")},R.getElementTransitionDurationMS(e(this,l)))),H.dispatchEvent(this.element,"accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,u)}})}}d=new WeakMap,h=new WeakMap,f=new WeakMap,l=new WeakMap,E=new WeakMap,u=new WeakMap,o=new WeakSet,N=function(){return e(this,h).parentElement||e(this,h).getRootNode()},w=function(){return e(this,d).axisAttribute.current==="x"?e(this,l).scrollWidth:e(this,l).scrollHeight},y=new WeakMap,L=new WeakMap,b=function(i,t=!1){t&&(e(this,l).style.transition="all 0s",setTimeout(()=>{e(this,l).style.transition=""}));const r=e(this,d).axisAttribute.current==="x"?"width":"height";i!=null?e(this,l).style[r]=`${i}px`:e(this,l).style[r]=""},k=function(){e(this,l).style.transition="all 0s",setTimeout(()=>{e(this,l).style.transition=""},50)};var v,g,a,T,x,I;class q extends HTMLElement{constructor(){super();n(this,x);n(this,v,new C.Attribute(this,"axis","y"));n(this,g,new C.Attribute(this,"multiple",!1));n(this,a,[]);n(this,T,null);z.isBrowser&&c(this,T,new MutationObserver(t=>{t.forEach(r=>{r.removedNodes.forEach(A=>{A instanceof HTMLElement&&this.removeItem(A)}),r.addedNodes.forEach(A=>{A instanceof HTMLElement&&this.createItem(A)})})}))}get axisAttribute(){return e(this,v)}get multipleAttribute(){return e(this,g)}createItem(t){e(this,a).find(r=>r.element===t)||e(this,a).push(new S(this,t))}removeItem(t){c(this,a,e(this,a).filter(r=>{if(r.element!==t)return!0;r.destroy()}))}closeAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.close(t)})}openAll(t){e(this,a).forEach(r=>{(t==null?void 0:t.exclude)!==r.element&&r.open(t)})}connectedCallback(){e(this,v).observe(),e(this,g).observe(),e(this,T).observe(e(this,x,I),{childList:!0}),c(this,a,[...e(this,x,I).children].map(t=>{if(t instanceof HTMLElement)return new S(this,t)}).filter(t=>!!t))}disconnectedCallback(){e(this,v).unobserve(),e(this,g).unobserve(),e(this,T).disconnect()}}v=new WeakMap,g=new WeakMap,a=new WeakMap,T=new WeakMap,x=new WeakSet,I=function(){return this.shadowRoot?this.shadowRoot:this};z.isBrowser&&!customElements.get("e-accordion")&&customElements.define("e-accordion",q);exports.AccordionElement=q;
|
package/lib/accordion/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var M = (s) => {
|
|
|
4
4
|
var y = (s, i, t) => i.has(s) || M("Cannot " + t);
|
|
5
5
|
var e = (s, i, t) => (y(s, i, "read from private field"), t ? t.call(s) : i.get(s)), n = (s, i, t) => i.has(s) ? M("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), a = (s, i, t, r) => (y(s, i, "write to private field"), r ? r.call(s, t) : i.set(s, t), t), m = (s, i, t) => (y(s, i, "access private method"), t);
|
|
6
6
|
import { Attribute as C } from "../attribute/index.js";
|
|
7
|
-
import { i as R } from "../
|
|
7
|
+
import { i as R } from "../index-euf5anj6.js";
|
|
8
8
|
import { d as H } from "../events-CsVF98U6.js";
|
|
9
9
|
import { g as S } from "../style-j2TwriJ_.js";
|
|
10
10
|
var d, h, f, l, E, u, o, N, w, L, A, b, k;
|
|
@@ -129,7 +129,7 @@ class O extends HTMLElement {
|
|
|
129
129
|
v = new WeakMap(), g = new WeakMap(), c = new WeakMap(), T = new WeakMap(), x = new WeakSet(), I = function() {
|
|
130
130
|
return this.shadowRoot ? this.shadowRoot : this;
|
|
131
131
|
};
|
|
132
|
-
customElements.get("e-accordion")
|
|
132
|
+
R && !customElements.get("e-accordion") && customElements.define("e-accordion", O);
|
|
133
133
|
export {
|
|
134
134
|
O as AccordionElement
|
|
135
135
|
};
|
package/lib/animation/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-D1lL_XhF.cjs"),n=require("../Damped-BbJjFOLH.cjs"),i=require("../Tweened-Dk1UNPSH.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
|
package/lib/animation/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as r } from "../Animation-
|
|
2
|
-
import { D as m } from "../Damped-
|
|
3
|
-
import { T as t } from "../Tweened-
|
|
1
|
+
import { A as r } from "../Animation-Je56LXXj.js";
|
|
2
|
+
import { D as m } from "../Damped-BMmEn7PH.js";
|
|
3
|
+
import { T as t } from "../Tweened-BNCj14Jz.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Animation,
|
|
6
6
|
m as Damped,
|
package/lib/attribute/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=t=>{throw TypeError(t)};var v=(t,s,e)=>s.has(t)||y("Cannot "+e);var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(t,s,e)=>s.has(t)?y("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),h=(t,s,e,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e),d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../Store-
|
|
1
|
+
"use strict";var y=t=>{throw TypeError(t)};var v=(t,s,e)=>s.has(t)||y("Cannot "+e);var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(t,s,e)=>s.has(t)?y("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),h=(t,s,e,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e),d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../Store-DRp_K37w.cjs"),q=require("../attributes-Bf2svn4j.cjs"),p=require("../index-Cqw2NKev.cjs"),O=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w extends S.Store{constructor(e,a,A,l){super(A,l);c(this,o);c(this,i,null);c(this,u);c(this,n,null);c(this,b,!1);h(this,u,a),p.isBrowser&&(h(this,i,O.getElement(e)),h(this,n,new MutationObserver(f=>{f.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&d(this,o,m).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}observe(){r(this,b)||(h(this,b,!0),r(this,n).observe(r(this,i),{attributes:!0}),d(this,o,m).call(this))}unobserve(){r(this,b)&&(h(this,b,!1),r(this,n).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,n=new WeakMap,b=new WeakMap,o=new WeakSet,m=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=q.parseAttributeValue(e))};exports.Attribute=w;
|
package/lib/attribute/index.js
CHANGED
|
@@ -3,9 +3,9 @@ var g = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var m = (t, e, s) => e.has(t) || g("Cannot " + s);
|
|
5
5
|
var r = (t, e, s) => (m(t, e, "read from private field"), s ? s.call(t) : e.get(t)), h = (t, e, s) => e.has(t) ? g("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), c = (t, e, s, o) => (m(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s), v = (t, e, s) => (m(t, e, "access private method"), s);
|
|
6
|
-
import { S as y } from "../Store-
|
|
6
|
+
import { S as y } from "../Store-D2xCXENW.js";
|
|
7
7
|
import { p as S } from "../attributes-69we3byR.js";
|
|
8
|
-
import { i as w } from "../
|
|
8
|
+
import { i as w } from "../index-euf5anj6.js";
|
|
9
9
|
import { g as x } from "../dom-CVWzyXPH.js";
|
|
10
10
|
var i, u, a, b, n, p;
|
|
11
11
|
class N extends y {
|
package/lib/canvas/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=i=>{throw TypeError(i)};var R=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(R(i,s,"read from private field"),e?e.call(i):s.get(i)),n=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),
|
|
1
|
+
"use strict";var f=i=>{throw TypeError(i)};var R=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(R(i,s,"read from private field"),e?e.call(i):s.get(i)),n=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,d)=>(R(i,s,"write to private field"),d?d.call(i,e):s.set(i,e),e),o=(i,s,e)=>(R(i,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../css-property/index.cjs"),C=require("../element-resizer/index.cjs"),w=require("../ticker/index.cjs"),y=require("../index-Cqw2NKev.cjs"),B=require("../jss-B_mh4mIw.cjs"),F=require("../math-GDWEqu7y.cjs");var a,r,m,l,u,p,b,x,h,E,P,g,v,S,q;class k extends HTMLElement{constructor(){super();n(this,h);n(this,a,new z.CSSProperty(this,"--fps",0));n(this,r,null);n(this,m,null);n(this,l,0);n(this,u,0);n(this,p,1);n(this,b,0);n(this,x,1);n(this,g,e=>{c(this,p,F.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,u,e.contentRect.height),t(this,r).width=t(this,l)*this.pixelRatio,t(this,r).height=t(this,u)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),o(this,h,q).call(this),o(this,h,S).call(this)});n(this,v,e=>{c(this,b,e.timestamp),c(this,x,e.timeBetweenFrames),o(this,h,S).call(this)});if(y.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[B.createStylesheet({" :host, canvas":{display:"block",width:"100%",height:"100%"}})],c(this,r,document.createElement("canvas")),c(this,m,t(this,r).getContext("2d")),e.appendChild(t(this,r)),t(this,a).subscribe(d=>{typeof d.previous!="undefined"&&d.current!==d.previous&&o(this,h,E).call(this)})}}get fpsCSSProperty(){return t(this,a)}get canvasElement(){return t(this,r)}get context(){return t(this,m)}get pixelRatio(){return t(this,p)}get width(){return t(this,l)}get height(){return t(this,u)}get detail(){return{width:t(this,l),height:t(this,u),element:this,canvasElement:t(this,r),pixelRatio:t(this,p),context:t(this,m),timestamp:t(this,b),timeBetweenFrames:t(this,x)}}connectedCallback(){t(this,a).observe(),C.elementResizer.subscribe(this,t(this,g)),o(this,h,E).call(this)}disconnectedCallback(){t(this,a).unobserve(),C.elementResizer.unsubscribe(t(this,g)),o(this,h,P).call(this)}}a=new WeakMap,r=new WeakMap,m=new WeakMap,l=new WeakMap,u=new WeakMap,p=new WeakMap,b=new WeakMap,x=new WeakMap,h=new WeakSet,E=function(){w.ticker.unsubscribe(t(this,v)),this.hasAttribute("static")||w.ticker.subscribe(t(this,v),{culling:this,maxFPS:t(this,a).current})},P=function(){w.ticker.unsubscribe(t(this,v))},g=new WeakMap,v=new WeakMap,S=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))},q=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};y.isBrowser&&!customElements.get("e-canvas")&&customElements.define("e-canvas",k);exports.CanvasElement=k;
|
package/lib/canvas/index.js
CHANGED
|
@@ -3,18 +3,18 @@ var S = (i) => {
|
|
|
3
3
|
};
|
|
4
4
|
var x = (i, s, e) => s.has(i) || S("Cannot " + e);
|
|
5
5
|
var t = (i, s, e) => (x(i, s, "read from private field"), e ? e.call(i) : s.get(i)), h = (i, s, e) => s.has(i) ? S("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, e), a = (i, s, e, p) => (x(i, s, "write to private field"), p ? p.call(i, e) : s.set(i, e), e), c = (i, s, e) => (x(i, s, "access private method"), e);
|
|
6
|
-
import { CSSProperty as
|
|
6
|
+
import { CSSProperty as z } from "../css-property/index.js";
|
|
7
7
|
import { elementResizer as C } from "../element-resizer/index.js";
|
|
8
8
|
import { ticker as w } from "../ticker/index.js";
|
|
9
|
-
import { i as
|
|
10
|
-
import { c as B } from "../jss-
|
|
9
|
+
import { i as y } from "../index-euf5anj6.js";
|
|
10
|
+
import { c as B } from "../jss-BQSxj7Ls.js";
|
|
11
11
|
import { c as F } from "../math-BOBiC4TN.js";
|
|
12
|
-
var o, r, d, m, l, u, b, f, n, R,
|
|
12
|
+
var o, r, d, m, l, u, b, f, n, R, k, g, v, E, P;
|
|
13
13
|
class L extends HTMLElement {
|
|
14
14
|
constructor() {
|
|
15
15
|
super();
|
|
16
16
|
h(this, n);
|
|
17
|
-
h(this, o, new
|
|
17
|
+
h(this, o, new z(this, "--fps", 0));
|
|
18
18
|
h(this, r, null);
|
|
19
19
|
h(this, d, null);
|
|
20
20
|
h(this, m, 0);
|
|
@@ -23,12 +23,12 @@ class L extends HTMLElement {
|
|
|
23
23
|
h(this, b, 0);
|
|
24
24
|
h(this, f, 1);
|
|
25
25
|
h(this, g, (e) => {
|
|
26
|
-
a(this, u, F(devicePixelRatio, 1, 2)), a(this, m, e.contentRect.width), a(this, l, e.contentRect.height), t(this, r).width = t(this, m) * this.pixelRatio, t(this, r).height = t(this, l) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), c(this, n,
|
|
26
|
+
a(this, u, F(devicePixelRatio, 1, 2)), a(this, m, e.contentRect.width), a(this, l, e.contentRect.height), t(this, r).width = t(this, m) * this.pixelRatio, t(this, r).height = t(this, l) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), c(this, n, P).call(this), c(this, n, E).call(this);
|
|
27
27
|
});
|
|
28
28
|
h(this, v, (e) => {
|
|
29
29
|
a(this, b, e.timestamp), a(this, f, e.timeBetweenFrames), c(this, n, E).call(this);
|
|
30
30
|
});
|
|
31
|
-
if (
|
|
31
|
+
if (y) {
|
|
32
32
|
const e = this.attachShadow({ mode: "open" });
|
|
33
33
|
e.adoptedStyleSheets = [
|
|
34
34
|
B({
|
|
@@ -77,7 +77,7 @@ class L extends HTMLElement {
|
|
|
77
77
|
t(this, o).observe(), C.subscribe(this, t(this, g)), c(this, n, R).call(this);
|
|
78
78
|
}
|
|
79
79
|
disconnectedCallback() {
|
|
80
|
-
t(this, o).unobserve(), C.unsubscribe(t(this, g)), c(this, n,
|
|
80
|
+
t(this, o).unobserve(), C.unsubscribe(t(this, g)), c(this, n, k).call(this);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
o = new WeakMap(), r = new WeakMap(), d = new WeakMap(), m = new WeakMap(), l = new WeakMap(), u = new WeakMap(), b = new WeakMap(), f = new WeakMap(), n = new WeakSet(), R = function() {
|
|
@@ -85,7 +85,7 @@ o = new WeakMap(), r = new WeakMap(), d = new WeakMap(), m = new WeakMap(), l =
|
|
|
85
85
|
culling: this,
|
|
86
86
|
maxFPS: t(this, o).current
|
|
87
87
|
});
|
|
88
|
-
},
|
|
88
|
+
}, k = function() {
|
|
89
89
|
w.unsubscribe(t(this, v));
|
|
90
90
|
}, g = new WeakMap(), v = new WeakMap(), E = function() {
|
|
91
91
|
this.dispatchEvent(
|
|
@@ -94,7 +94,7 @@ o = new WeakMap(), r = new WeakMap(), d = new WeakMap(), m = new WeakMap(), l =
|
|
|
94
94
|
detail: this.detail
|
|
95
95
|
})
|
|
96
96
|
);
|
|
97
|
-
},
|
|
97
|
+
}, P = function() {
|
|
98
98
|
this.dispatchEvent(
|
|
99
99
|
new CustomEvent("canvasResize", {
|
|
100
100
|
composed: !0,
|
|
@@ -102,7 +102,7 @@ o = new WeakMap(), r = new WeakMap(), d = new WeakMap(), m = new WeakMap(), l =
|
|
|
102
102
|
})
|
|
103
103
|
);
|
|
104
104
|
};
|
|
105
|
-
customElements.get("e-canvas")
|
|
105
|
+
y && !customElements.get("e-canvas") && customElements.define("e-canvas", L);
|
|
106
106
|
export {
|
|
107
107
|
L as CanvasElement
|
|
108
108
|
};
|
|
@@ -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-
|
|
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-DRp_K37w.cjs"),m=require("../string-DhgS_iFl.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;
|
|
@@ -12,16 +12,17 @@ var n = (t, r, s) => r in t ? E(t, r, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
for (var s of c(r))
|
|
13
13
|
x.call(r, s) && n(t, s, r[s]);
|
|
14
14
|
return t;
|
|
15
|
-
},
|
|
16
|
-
var
|
|
17
|
-
var a = (t, r, s) => (
|
|
18
|
-
import { S as A } from "../Store-
|
|
19
|
-
import { c as
|
|
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-D2xCXENW.js";
|
|
19
|
+
import { c as d } from "../string-f0Dnk0L1.js";
|
|
20
|
+
import "../index-euf5anj6.js";
|
|
20
21
|
var i;
|
|
21
|
-
class
|
|
22
|
+
class F extends A {
|
|
22
23
|
constructor(s, e) {
|
|
23
24
|
super(e);
|
|
24
|
-
|
|
25
|
+
p(this, i);
|
|
25
26
|
o(this, i, Array.isArray(s) ? s : [s]);
|
|
26
27
|
}
|
|
27
28
|
addElement(s) {
|
|
@@ -42,14 +43,14 @@ class C extends A {
|
|
|
42
43
|
this.set(s, this.initial[s]);
|
|
43
44
|
}
|
|
44
45
|
set(s, e = !0) {
|
|
45
|
-
this.current =
|
|
46
|
-
(h) => h.classList.add(
|
|
46
|
+
this.current = m(l({}, this.current), { [s]: e }), e ? a(this, i).forEach(
|
|
47
|
+
(h) => h.classList.add(d(s))
|
|
47
48
|
) : a(this, i).forEach(
|
|
48
|
-
(h) => h.classList.remove(
|
|
49
|
+
(h) => h.classList.remove(d(s))
|
|
49
50
|
);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
i = new WeakMap();
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
F as ClassLinkedStatus
|
|
55
56
|
};
|
package/lib/controls/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var V=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||V("Cannot "+e);var t=(h,n,e)=>(F(h,n,"read from private field"),e?e.call(h):n.get(h)),s=(h,n,e)=>n.has(h)?V("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,r)=>(F(h,n,"write to private field"),r?r.call(h,e):n.set(h,e),e),k=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../notifier/index.cjs"),o=require("../
|
|
1
|
+
"use strict";var V=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||V("Cannot "+e);var t=(h,n,e)=>(F(h,n,"read from private field"),e?e.call(h):n.get(h)),s=(h,n,e)=>n.has(h)?V("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,r)=>(F(h,n,"write to private field"),r?r.call(h,e):n.set(h,e),e),k=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../notifier/index.cjs"),o=require("../index-Cqw2NKev.cjs"),Q=require("../dom-JBOkFLTh.cjs"),q=require("../ticker/index.cjs");require("../Store-DRp_K37w.cjs");const J=require("../easings-GegIwET5.cjs"),Z=require("../Tweened-Dk1UNPSH.cjs"),_=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-BANSrI_m.cjs"),p=require("../order/index.cjs");var R;class Y{constructor(){s(this,R,new G.Notifier)}get changeEvent(){return t(this,R)}}R=new WeakMap;var g,c,u,H;class ee extends Y{constructor(e){super();s(this,g,null);s(this,c,null);s(this,u,"offsetHeight");s(this,H,e=>{const r=e.shiftKey?-1:1;let a;e.code==="Space"?a=r*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?a=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?a=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?a=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?a=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?a=1*t(this,c)[t(this,u)]:e.code==="Home"?a=0:e.code==="End"&&(a=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),a&&(e.stopPropagation(),this.changeEvent.notify("keyboard",a))});o.isBrowser&&(i(this,g,e!=null&&e.element&&Q.getElement(e.element)||window),i(this,c,t(this,g)instanceof HTMLElement?t(this,g):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){o.isBrowser&&t(this,g).addEventListener("keydown",t(this,H))}disconnect(){o.isBrowser&&t(this,g).removeEventListener("keydown",t(this,H))}}g=new WeakMap,c=new WeakMap,u=new WeakMap,H=new WeakMap;var b,x,P,z,d,T,f,w,O,U,C,W,B;class te extends Y{constructor(e){super();s(this,w);s(this,b);s(this,x);s(this,P);s(this,z);s(this,d);s(this,T);s(this,f);s(this,C);s(this,W);s(this,B);this.direction=1,i(this,d,new Z.Tweened(0,{easing:J.easeInQuad})),i(this,f,!1),i(this,C,r=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",r.timeBetweenFrames*t(this,b)*this.direction*(1-t(this,d).current))}),i(this,W,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,b))*this.direction*(1-t(this,d).current))}),i(this,B,()=>{t(this,x)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,b,(e==null?void 0:e.speed)||1),i(this,x,(e==null?void 0:e.interval)||!1),i(this,P,e)}set interval(e){i(this,x,e),t(this,f)&&k(this,w,O).call(this)}set speed(e){i(this,b,e),t(this,f)&&k(this,w,O).call(this)}connect(){t(this,f)||(i(this,f,!0),k(this,w,O).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),k(this,w,U).call(this))}pauseAndContinue(e,r){t(this,f)&&e&&(clearTimeout(t(this,T)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:r}),i(this,T,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:r})},e)))}}b=new WeakMap,x=new WeakMap,P=new WeakMap,z=new WeakMap,d=new WeakMap,T=new WeakMap,f=new WeakMap,w=new WeakSet,O=function(){k(this,w,U).call(this),t(this,x)?i(this,z,setInterval(t(this,W),Math.abs(t(this,b)))):q.ticker.subscribe(t(this,C),t(this,P)),document.addEventListener("visibilitychange",t(this,B))},U=function(){clearInterval(t(this,z)),q.ticker.unsubscribe(t(this,C)),clearTimeout(t(this,T)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,B))},C=new WeakMap,W=new WeakMap,B=new WeakMap;var A,v,D,X;class ie extends Y{constructor(e){super();s(this,A,null);s(this,v);s(this,D);s(this,X,e=>{let r=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*1||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*1))if(e.preventDefault(),r=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const a=Date.now();if(a-t(this,D)>40&&(r=100*Math.sign(r)),i(this,D,a),Math.abs(r)<100||t(this,v))return;this.changeEvent.notify("wheel",r),i(this,v,setTimeout(()=>{i(this,v,void 0)},80))}else this.changeEvent.notify("wheel",r)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,D,Date.now()),o.isBrowser&&i(this,A,e!=null&&e.element&&Q.getElement(e.element)||window)}connect(){o.isBrowser&&t(this,A).addEventListener("wheel",t(this,X),{passive:!1})}disconnect(){o.isBrowser&&(t(this,A).removeEventListener("wheel",t(this,X)),clearTimeout(t(this,v)))}}A=new WeakMap,v=new WeakMap,D=new WeakMap,X=new WeakMap;var L,m,l,I,y;const E=class E extends Y{constructor(e){super();s(this,m);s(this,l);s(this,I);s(this,y);this.inertion=1,i(this,m,null),i(this,l,0),i(this,I,r=>{if(r.composedPath().find(M=>M instanceof HTMLElement&&M.hasAttribute("drag-dead-zone")))return;this.swipe||q.ticker.unsubscribe(t(this,y));let a=r,S=!1;i(this,l,0),document.documentElement.classList.add("grabbing");let K=0,N=0;_.setupDrag(M=>{t(E,L)&&t(E,L)!==t(this,m)||(K=a.x-M.x,N=a.y-M.y,this.axis==="x"?i(this,l,K):i(this,l,N),a=M,S=this.axis==="x"&&Math.abs(K)>Math.abs(N)||this.axis==="y"&&Math.abs(N)>Math.abs(K),S&&(document.documentElement.classList.add("dragging"),i(E,L,t(this,m)),this.changeEvent.notify("drag",t(this,l))))},()=>{i(E,L,null),S&&!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),q.ticker.subscribe(t(this,y),{order:p.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l)),document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging")})}),i(this,y,()=>{Math.floor(Math.abs(t(this,l)))||q.ticker.unsubscribe(t(this,y)),i(this,l,t(this,l)*.95),i(this,l,$.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l))}),this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,o.isBrowser&&i(this,m,e!=null&&e.element&&Q.getElement(e.element)||document.documentElement)}connect(){o.isBrowser&&t(this,m).addEventListener("pointerdown",t(this,I))}disconnect(){o.isBrowser&&(t(this,m).removeEventListener("pointerdown",t(this,I)),q.ticker.unsubscribe(t(this,y)))}};L=new WeakMap,m=new WeakMap,l=new WeakMap,I=new WeakMap,y=new WeakMap,s(E,L,null);let j=E;exports.AutoplayControls=te;exports.Controls=Y;exports.DragControls=j;exports.KeyboardControls=ee;exports.WheelControls=ie;
|
package/lib/controls/index.js
CHANGED
|
@@ -4,12 +4,12 @@ var V = (h) => {
|
|
|
4
4
|
var S = (h, n, e) => n.has(h) || V("Cannot " + e);
|
|
5
5
|
var t = (h, n, e) => (S(h, n, "read from private field"), e ? e.call(h) : n.get(h)), s = (h, n, e) => n.has(h) ? V("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(h) : n.set(h, e), i = (h, n, e, a) => (S(h, n, "write to private field"), a ? a.call(h, e) : n.set(h, e), e), T = (h, n, e) => (S(h, n, "access private method"), e);
|
|
6
6
|
import { Notifier as G } from "../notifier/index.js";
|
|
7
|
-
import { i as o } from "../
|
|
7
|
+
import { i as o } from "../index-euf5anj6.js";
|
|
8
8
|
import { g as Q } from "../dom-CVWzyXPH.js";
|
|
9
9
|
import { ticker as k } from "../ticker/index.js";
|
|
10
|
-
import "../Store-
|
|
10
|
+
import "../Store-D2xCXENW.js";
|
|
11
11
|
import { b as J } from "../easings-Bni3YAAW.js";
|
|
12
|
-
import { T as Z } from "../Tweened-
|
|
12
|
+
import { T as Z } from "../Tweened-BNCj14Jz.js";
|
|
13
13
|
import { s as $ } from "../gestures-D2Fdra_G.js";
|
|
14
14
|
import { p } from "../polyfills-CxfUK5OU.js";
|
|
15
15
|
import { TICK_ORDER as _ } from "../order/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var w=s=>{throw TypeError(s)};var f=(s,r,e)=>r.has(s)||w("Cannot "+e);var t=(s,r,e)=>(f(s,r,"read from private field"),e?e.call(s):r.get(s)),c=(s,r,e)=>r.has(s)?w("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),i=(s,r,e,n)=>(f(s,r,"write to private field"),n?n.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../css-value-parser/index.cjs"),g=require("../order/index.cjs"),p=require("../Store-
|
|
1
|
+
"use strict";var w=s=>{throw TypeError(s)};var f=(s,r,e)=>r.has(s)||w("Cannot "+e);var t=(s,r,e)=>(f(s,r,"read from private field"),e?e.call(s):r.get(s)),c=(s,r,e)=>r.has(s)?w("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),i=(s,r,e,n)=>(f(s,r,"write to private field"),n?n.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../css-value-parser/index.cjs"),g=require("../order/index.cjs"),p=require("../Store-DRp_K37w.cjs"),v=require("../dom-JBOkFLTh.cjs");require("../index-Cqw2NKev.cjs");const R=require("../window-resizer/index.cjs");var a,b,u,o,h,l;class y extends p.Store{constructor(e,n,d,S){super(d,S);c(this,a);c(this,b);c(this,u);c(this,o);c(this,h,!1);c(this,l,()=>{this.check()});i(this,a,v.getElement(e)),i(this,b,n),i(this,u,d.toString()),i(this,o,(S==null?void 0:S.rawValueCheck)!==!1)}get currentRawValue(){return t(this,u)}observe(){t(this,h)||(i(this,h,!0),R.windowResizer.subscribe(t(this,l),g.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,h)&&(i(this,h,!1),R.windowResizer.unsubscribe(t(this,l)))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}close(){this.unobserve(),super.close()}check(){const e=getComputedStyle(t(this,a)).getPropertyValue(t(this,b)).trim();if(!(t(this,o)&&t(this,u)===e))if(i(this,u,e),e){const n=V.cssValueParser.parse(t(this,u));this.current=n}else this.current=this.initial}}a=new WeakMap,b=new WeakMap,u=new WeakMap,o=new WeakMap,h=new WeakMap,l=new WeakMap;exports.CSSProperty=y;
|
|
@@ -5,13 +5,14 @@ var S = (s, r, e) => r.has(s) || p("Cannot " + e);
|
|
|
5
5
|
var t = (s, r, e) => (S(s, r, "read from private field"), e ? e.call(s) : r.get(s)), h = (s, r, e) => r.has(s) ? p("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), i = (s, r, e, a) => (S(s, r, "write to private field"), a ? a.call(s, e) : r.set(s, e), e);
|
|
6
6
|
import { cssValueParser as R } from "../css-value-parser/index.js";
|
|
7
7
|
import { RESIZE_ORDER as V } from "../order/index.js";
|
|
8
|
-
import { S as g } from "../Store-
|
|
8
|
+
import { S as g } from "../Store-D2xCXENW.js";
|
|
9
9
|
import { g as v } from "../dom-CVWzyXPH.js";
|
|
10
|
+
import "../index-euf5anj6.js";
|
|
10
11
|
import { windowResizer as w } from "../window-resizer/index.js";
|
|
11
12
|
var b, o, u, l, c, n;
|
|
12
|
-
class
|
|
13
|
-
constructor(e, a,
|
|
14
|
-
super(
|
|
13
|
+
class x extends g {
|
|
14
|
+
constructor(e, a, f, m) {
|
|
15
|
+
super(f, m);
|
|
15
16
|
h(this, b);
|
|
16
17
|
h(this, o);
|
|
17
18
|
h(this, u);
|
|
@@ -20,7 +21,7 @@ class d extends g {
|
|
|
20
21
|
h(this, n, () => {
|
|
21
22
|
this.check();
|
|
22
23
|
});
|
|
23
|
-
i(this, b, v(e)), i(this, o, a), i(this, u,
|
|
24
|
+
i(this, b, v(e)), i(this, o, a), i(this, u, f.toString()), i(this, l, (m == null ? void 0 : m.rawValueCheck) !== !1);
|
|
24
25
|
}
|
|
25
26
|
get currentRawValue() {
|
|
26
27
|
return t(this, u);
|
|
@@ -52,5 +53,5 @@ class d extends g {
|
|
|
52
53
|
}
|
|
53
54
|
b = new WeakMap(), o = new WeakMap(), u = new WeakMap(), l = new WeakMap(), c = new WeakMap(), n = new WeakMap();
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
x as CSSProperty
|
|
56
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var g=s=>{throw TypeError(s)};var E=(s,
|
|
1
|
+
"use strict";var g=s=>{throw TypeError(s)};var E=(s,r,t)=>r.has(s)||g("Cannot "+t);var e=(s,r,t)=>(E(s,r,"read from private field"),t?t.call(s):r.get(s)),n=(s,r,t)=>r.has(s)?g("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,t),a=(s,r,t,l)=>(E(s,r,"write to private field"),l?l.call(s,t):r.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../element-resizer/index.cjs"),p=require("../window-resizer/index.cjs"),S=require("../index-Cqw2NKev.cjs"),x=require("../dom-JBOkFLTh.cjs"),T=require("../gestures-DHLrn6Q8.cjs");var i,o,m,c,u,d,h,b;class v extends HTMLElement{constructor(){super(...arguments);n(this,i,null);n(this,o,null);n(this,m,0);n(this,c,0);n(this,u);n(this,d,()=>{this.classList.add("active"),clearTimeout(e(this,u));const t=e(this,i).scrollTop/e(this,c)*e(this,m);e(this,o).style.transform=`translate3d(0px, ${t}px, 0px)`,a(this,u,setTimeout(()=>{this.classList.remove("active")},1e3))});n(this,h,()=>{const t=this.offsetHeight;a(this,c,e(this,i).scrollHeight-e(this,i).offsetHeight);let l=t/(e(this,c)/t);l=Math.max(l,30),e(this,o).style.width="100%",e(this,o).style.height=l+"px",a(this,m,t-l),e(this,i).scrollHeight>e(this,i).offsetHeight||(this.style.display="none")});n(this,b,t=>{document.documentElement.classList.add("grabbing"),T.setupDrag(w=>{const y=e(this,c)/e(this,m),z=(w.y-L)*y;e(this,i).scroll({top:l+z,behavior:"instant"})},()=>{document.documentElement.classList.remove("grabbing")});const l=e(this,i).scrollTop,L=t.y})}connectedCallback(){const t=x.findScrollParentElement(this),l=this.querySelector("[data-thumb]");t&&l&&(a(this,i,t),a(this,o,l),f.elementResizer.subscribe(e(this,i),e(this,h)),p.windowResizer.subscribe(e(this,h)),e(this,i).addEventListener("scroll",e(this,d)),e(this,o).addEventListener("pointerdown",e(this,b)))}disconnectedCallback(){f.elementResizer.unsubscribe(e(this,h)),p.windowResizer.unsubscribe(e(this,h)),e(this,i).removeEventListener("scroll",e(this,d)),e(this,o).removeEventListener("pointerdown",e(this,b)),clearTimeout(e(this,u))}}i=new WeakMap,o=new WeakMap,m=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,b=new WeakMap;S.isBrowser&&!customElements.get("e-custom-scrollbar")&&customElements.define("e-custom-scrollbar",v);exports.CustomScrollbarElement=v;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
var f = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var p = (e,
|
|
5
|
-
var t = (e,
|
|
4
|
+
var p = (e, o, s) => o.has(e) || f("Cannot " + s);
|
|
5
|
+
var t = (e, o, s) => (p(e, o, "read from private field"), s ? s.call(e) : o.get(e)), r = (e, o, s) => o.has(e) ? f("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(e) : o.set(e, s), m = (e, o, s, l) => (p(e, o, "write to private field"), l ? l.call(e, s) : o.set(e, s), s);
|
|
6
6
|
import { elementResizer as E } from "../element-resizer/index.js";
|
|
7
7
|
import { windowResizer as g } from "../window-resizer/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { i as S } from "../index-euf5anj6.js";
|
|
9
|
+
import { f as T } from "../dom-CVWzyXPH.js";
|
|
10
|
+
import { s as w } from "../gestures-D2Fdra_G.js";
|
|
10
11
|
var i, n, a, h, u, d, c, b;
|
|
11
12
|
class z extends HTMLElement {
|
|
12
13
|
constructor() {
|
|
@@ -26,15 +27,15 @@ class z extends HTMLElement {
|
|
|
26
27
|
r(this, c, () => {
|
|
27
28
|
const s = this.offsetHeight;
|
|
28
29
|
m(this, h, t(this, i).scrollHeight - t(this, i).offsetHeight);
|
|
29
|
-
let
|
|
30
|
-
|
|
30
|
+
let l = s / (t(this, h) / s);
|
|
31
|
+
l = Math.max(l, 30), t(this, n).style.width = "100%", t(this, n).style.height = l + "px", m(this, a, s - l), t(this, i).scrollHeight > t(this, i).offsetHeight || (this.style.display = "none");
|
|
31
32
|
});
|
|
32
33
|
r(this, b, (s) => {
|
|
33
|
-
document.documentElement.classList.add("grabbing"),
|
|
34
|
+
document.documentElement.classList.add("grabbing"), w(
|
|
34
35
|
(L) => {
|
|
35
36
|
const y = t(this, h) / t(this, a), x = (L.y - v) * y;
|
|
36
37
|
t(this, i).scroll({
|
|
37
|
-
top:
|
|
38
|
+
top: l + x,
|
|
38
39
|
behavior: "instant"
|
|
39
40
|
});
|
|
40
41
|
},
|
|
@@ -42,19 +43,19 @@ class z extends HTMLElement {
|
|
|
42
43
|
document.documentElement.classList.remove("grabbing");
|
|
43
44
|
}
|
|
44
45
|
);
|
|
45
|
-
const
|
|
46
|
+
const l = t(this, i).scrollTop, v = s.y;
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
49
|
connectedCallback() {
|
|
49
|
-
const s =
|
|
50
|
-
s &&
|
|
50
|
+
const s = T(this), l = this.querySelector("[data-thumb]");
|
|
51
|
+
s && l && (m(this, i, s), m(this, n, l), E.subscribe(t(this, i), t(this, c)), g.subscribe(t(this, c)), t(this, i).addEventListener("scroll", t(this, d)), t(this, n).addEventListener("pointerdown", t(this, b)));
|
|
51
52
|
}
|
|
52
53
|
disconnectedCallback() {
|
|
53
54
|
E.unsubscribe(t(this, c)), g.unsubscribe(t(this, c)), t(this, i).removeEventListener("scroll", t(this, d)), t(this, n).removeEventListener("pointerdown", t(this, b)), clearTimeout(t(this, u));
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
i = new WeakMap(), n = new WeakMap(), a = new WeakMap(), h = new WeakMap(), u = new WeakMap(), d = new WeakMap(), c = new WeakMap(), b = new WeakMap();
|
|
57
|
-
customElements.get("e-custom-scrollbar")
|
|
58
|
+
S && !customElements.get("e-custom-scrollbar") && customElements.define("e-custom-scrollbar", z);
|
|
58
59
|
export {
|
|
59
60
|
z as CustomScrollbarElement
|
|
60
61
|
};
|
package/lib/dev/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-DRp_K37w.cjs");require("../index-Cqw2NKev.cjs");const c=require("../ticker/index.cjs");function i(){c.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof o.CSSProperty&&r.check()}})}exports.devMode=i;
|