aptechka 0.1.2 → 0.1.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.
- package/lib/{Damped-1hlKSFaB.cjs → Damped-DdPj4Sho.cjs} +1 -1
- package/lib/{Damped-523xgzT3.js → Damped-H3PuZwKV.js} +4 -4
- package/lib/{SourceManager-3c3kr7oj.cjs → SourceManager-tmQlXkSD.cjs} +1 -1
- package/lib/{SourceManager-F94MRde6.js → SourceManager-vXInLlh_.js} +1 -1
- package/lib/Store-qq7IjRLE.js +136 -0
- package/lib/Store-txkR3wXU.cjs +1 -0
- package/lib/WheelControls-9ZQKSYYq.js +83 -0
- package/lib/WheelControls-TYhGU6oA.cjs +1 -0
- package/lib/accordion/AccordionElement.d.ts +7 -0
- package/lib/accordion/index.d.ts +1 -0
- package/lib/animation/Animated.d.ts +1 -1
- 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 +1 -1
- package/lib/canvas-2d/index.d.ts +3 -3
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.d.ts +0 -1
- package/lib/controls/index.js +3 -4
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/htmlTags.d.ts +112 -112
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +150 -149
- package/lib/element-constructor/svgTags.d.ts +63 -63
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +2 -2
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +2 -2
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/resizer/index.d.ts +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +3 -3
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +3 -3
- package/lib/store/CumulativeResource.d.ts +12 -0
- package/lib/store/Resource.d.ts +4 -1
- package/lib/store/Store.d.ts +1 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +49 -46
- package/lib/studio/StudioElement.d.ts +9 -0
- package/lib/studio/index.d.ts +1 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +2 -2
- package/package.json +2 -3
- package/lib/Store-2hWEUGTj.js +0 -135
- package/lib/Store-WXFmsaEI.cjs +0 -1
- package/lib/WheelControls-F-xg5-oq.js +0 -102
- package/lib/WheelControls-Hp5NWRZY.cjs +0 -1
- package/lib/controls/User.d.ts +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var z=Object.defineProperty,B=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var k=(s,e,t)=>e in s?z(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,v=(s,e)=>{for(var t in e||(e={}))G.call(e,t)&&k(s,t,e[t]);if(M)for(var t of M(e))H.call(e,t)&&k(s,t,e[t]);return s},D=(s,e)=>B(s,C(e));var R=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),I=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var i=(s,e,t)=>(I(s,e,"read from private field"),t?t.call(s):e.get(s)),a=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},h=(s,e,t,r)=>(I(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);var b=(s,e,t)=>(I(s,e,"access private method"),t);const _=require("./math-FNUBmQPK.cjs"),L=require("./number-2bR0KBcX.cjs"),w=require("./Store-
|
|
1
|
+
"use strict";var z=Object.defineProperty,B=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var k=(s,e,t)=>e in s?z(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,v=(s,e)=>{for(var t in e||(e={}))G.call(e,t)&&k(s,t,e[t]);if(M)for(var t of M(e))H.call(e,t)&&k(s,t,e[t]);return s},D=(s,e)=>B(s,C(e));var R=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),I=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var i=(s,e,t)=>(I(s,e,"read from private field"),t?t.call(s):e.get(s)),a=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},h=(s,e,t,r)=>(I(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);var b=(s,e,t)=>(I(s,e,"access private method"),t);const _=require("./math-FNUBmQPK.cjs"),L=require("./number-2bR0KBcX.cjs"),w=require("./Store-txkR3wXU.cjs"),E=require("./ticker/index.cjs");var g,S,y,n,l,x,m,f,q,c,F,P,d,A;class j extends w.Store{constructor(t){super(0,t);a(this,d);a(this,g,void 0);a(this,S,void 0);a(this,y,void 0);a(this,n,void 0);a(this,l,void 0);a(this,x,void 0);a(this,m,void 0);a(this,f,new w.Store(!1));a(this,q,0);a(this,c,0);a(this,F,t=>{this.set(t.current)});a(this,P,t=>{const r=this.current;this.handleAnimationFrame(t);const u=Math.abs(r-this.target);h(this,c,u/t.elapsed)});h(this,S,t==null?void 0:t.order),h(this,g,t==null?void 0:t.maxFPS),h(this,y,t==null?void 0:t.culling),h(this,l,b(this,d,A).call(this,t==null?void 0:t.min)),h(this,x,b(this,d,A).call(this,t==null?void 0:t.max)),h(this,n,this.current=0)}get target(){return i(this,n)}get isRunning(){return i(this,f)}get direction(){return i(this,q)}get maxFPS(){return i(this,g)}get speed(){return i(this,c)}get min(){return i(this,l).call(this)}set min(t){h(this,l,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get max(){return i(this,x).call(this)}set max(t){h(this,x,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get delta(){return this.max-this.min}get progress(){return this.delta?L.fix((this.current-this.min)/this.delta,6):0}get entry(){return D(v({},super.entry),{min:this.min,max:this.max,delta:this.delta,direction:this.direction,progress:this.progress,speed:this.speed})}get setter(){return i(this,m)}set setter(t){var r,u;(r=i(this,m))==null||r.unsubscribe(i(this,F)),h(this,m,t),(u=i(this,m))==null||u.subscribe(i(this,F))}set(t,r=!1){const u=i(this,n);h(this,n,_.clamp(t,this.min,this.max)),r&&(this.current=i(this,n)),i(this,n)!==u&&(h(this,c,0),h(this,q,Math.sign(t-i(this,n))||1),this.update())}shift(t,r=!1){this.set(i(this,n)+t,r)}close(){var t;super.close(),this.unlistenAnimationFrame(),(t=i(this,m))==null||t.unsubscribe(i(this,F)),h(this,m,void 0)}reset(){this.set(this.initial,!0),super.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){i(this,f).current=!0,E.ticker.subscribe(i(this,P),{maxFPS:i(this,g),order:i(this,S),culling:i(this,y)})}unlistenAnimationFrame(){h(this,c,0),i(this,f).current=!1,E.ticker.unsubscribe(i(this,P))}}g=new WeakMap,S=new WeakMap,y=new WeakMap,n=new WeakMap,l=new WeakMap,x=new WeakMap,m=new WeakMap,f=new WeakMap,q=new WeakMap,c=new WeakMap,F=new WeakMap,P=new WeakMap,d=new WeakSet,A=function(t){const r=t||0;return typeof r=="function"?r:()=>r};class J extends j{constructor(t){var r,u;super(D(v({},t),{min:(r=t==null?void 0:t.min)!=null?r:-1/0,max:(u=t==null?void 0:t.max)!=null?u:1/0}));R(this,"damping");this.damping=(t==null?void 0:t.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(t){L.fix(this.current,4)===L.fix(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=_.damp(this.current,this.target,this.damping,t.elapsed)}}exports.Animated=j;exports.Damped=J;
|
|
@@ -22,7 +22,7 @@ var i = (s, e, t) => (M(s, e, "read from private field"), t ? t.call(s) : e.get(
|
|
|
22
22
|
var b = (s, e, t) => (M(s, e, "access private method"), t);
|
|
23
23
|
import { c as H, d as J } from "./math-_a3IpKOc.js";
|
|
24
24
|
import { f as R } from "./number-bCHB2GAD.js";
|
|
25
|
-
import { S as E } from "./Store-
|
|
25
|
+
import { S as E } from "./Store-qq7IjRLE.js";
|
|
26
26
|
import { ticker as j } from "./ticker/index.js";
|
|
27
27
|
var g, S, y, a, l, f, u, x, P, c, F, v, d, A;
|
|
28
28
|
class K extends E {
|
|
@@ -83,9 +83,6 @@ class K extends E {
|
|
|
83
83
|
get progress() {
|
|
84
84
|
return this.delta ? R((this.current - this.min) / this.delta, 6) : 0;
|
|
85
85
|
}
|
|
86
|
-
get setter() {
|
|
87
|
-
return i(this, u);
|
|
88
|
-
}
|
|
89
86
|
get entry() {
|
|
90
87
|
return L(I({}, super.entry), {
|
|
91
88
|
min: this.min,
|
|
@@ -96,6 +93,9 @@ class K extends E {
|
|
|
96
93
|
speed: this.speed
|
|
97
94
|
});
|
|
98
95
|
}
|
|
96
|
+
get setter() {
|
|
97
|
+
return i(this, u);
|
|
98
|
+
}
|
|
99
99
|
set setter(t) {
|
|
100
100
|
var r, m;
|
|
101
101
|
(r = i(this, u)) == null || r.unsubscribe(i(this, F)), h(this, u, t), (m = i(this, u)) == null || m.subscribe(i(this, F));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)};var r=(n,s,t)=>(M(n,s,"read from private field"),t?t.call(n):s.get(n)),o=(n,s,t)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,t)},c=(n,s,t,i)=>(M(n,s,"write to private field"),i?i.call(n,t):s.set(n,t),t);const k=require("./order/index.cjs"),R=require("./resizer/index.cjs"),z=require("./Store-
|
|
1
|
+
"use strict";var M=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)};var r=(n,s,t)=>(M(n,s,"read from private field"),t?t.call(n):s.get(n)),o=(n,s,t)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,t)},c=(n,s,t,i)=>(M(n,s,"write to private field"),i?i.call(n,t):s.set(n,t),t);const k=require("./order/index.cjs"),R=require("./resizer/index.cjs"),z=require("./Store-txkR3wXU.cjs");var l,g,q,x,a,p,E;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,E,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const d=/\d+x/g,h=i.find(f=>f.match(d));c(this,q,h?parseInt(h):1);const y=/\d+max/g,w=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(w));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${r(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")),c(this,E,"."+i[i.length-1])}get url(){return r(this,l)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,x)}get extension(){return r(this,E)}get queryType(){return r(this,p)}get queryPx(){return r(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,E=new WeakMap;var m;class b{constructor(s){o(this,m,void 0);c(this,m,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const d=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...d,...h]:[...d,...h]).forEach(e=>{r(this,m).has(e[0])||r(this,m).set(e[0],[]),r(this,m).get(e[0]).push(e[1])})}get mediaBuckets(){return r(this,m)}}m=new WeakMap;var P,S;class B extends z.Store{constructor(t){super(void 0);o(this,P,void 0);o(this,S,()=>{let t;r(this,P).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,d=0;t==null||t.forEach(h=>{h.density>d&&h.density<=Math.max(devicePixelRatio,1)&&(d=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,P,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){R.resizer.subscribe(r(this,S),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){R.resizer.unsubscribe(r(this,S))}}P=new WeakMap,S=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
|
|
@@ -9,7 +9,7 @@ var n = (r, s, t) => (R(r, s, "read from private field"), t ? t.call(r) : s.get(
|
|
|
9
9
|
}, h = (r, s, t, i) => (R(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
|
|
10
10
|
import { RESIZE_ORDER as I } from "./order/index.js";
|
|
11
11
|
import { resizer as b } from "./resizer/index.js";
|
|
12
|
-
import { S } from "./Store-
|
|
12
|
+
import { S } from "./Store-qq7IjRLE.js";
|
|
13
13
|
var l, g, q, d, o, p, E;
|
|
14
14
|
class k {
|
|
15
15
|
constructor(s) {
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
var N = (s, t, e) => {
|
|
2
|
+
if (!t.has(s))
|
|
3
|
+
throw TypeError("Cannot " + e);
|
|
4
|
+
};
|
|
5
|
+
var r = (s, t, e) => (N(s, t, "read from private field"), e ? e.call(s) : t.get(s)), a = (s, t, e) => {
|
|
6
|
+
if (t.has(s))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
9
|
+
}, i = (s, t, e, c) => (N(s, t, "write to private field"), c ? c.call(s, e) : t.set(s, e), e);
|
|
10
|
+
var w = (s, t, e) => (N(s, t, "access private method"), e);
|
|
11
|
+
import { i as A } from "./browser-S4eq8AeN.js";
|
|
12
|
+
var l, o, S;
|
|
13
|
+
class q {
|
|
14
|
+
constructor() {
|
|
15
|
+
a(this, l, null);
|
|
16
|
+
a(this, o, void 0);
|
|
17
|
+
a(this, S, "");
|
|
18
|
+
A && (i(this, o, document.documentElement.getAttribute("data-project") || void 0), i(this, S, r(this, o) ? r(this, o) + "-store-registry" : "store-registry"));
|
|
19
|
+
}
|
|
20
|
+
get projectName() {
|
|
21
|
+
return r(this, o);
|
|
22
|
+
}
|
|
23
|
+
get localStoreRegistryName() {
|
|
24
|
+
return r(this, S);
|
|
25
|
+
}
|
|
26
|
+
get loadedState() {
|
|
27
|
+
return r(this, l);
|
|
28
|
+
}
|
|
29
|
+
saveState() {
|
|
30
|
+
const t = this.getState(), e = JSON.stringify(t);
|
|
31
|
+
localStorage.setItem(r(this, S), e);
|
|
32
|
+
}
|
|
33
|
+
loadState(t = localStorage.getItem(r(this, S))) {
|
|
34
|
+
t && (typeof t == "string" ? i(this, l, JSON.parse(t)) : i(this, l, t), f.current.forEach((e) => {
|
|
35
|
+
this.updateStore(e);
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
resetState() {
|
|
39
|
+
f.current.forEach((t) => {
|
|
40
|
+
t.reset();
|
|
41
|
+
}), this.saveState();
|
|
42
|
+
}
|
|
43
|
+
updateStore(t) {
|
|
44
|
+
var c, b;
|
|
45
|
+
if (!Array.isArray((c = r(this, l)) == null ? void 0 : c.stores))
|
|
46
|
+
return t;
|
|
47
|
+
const e = t.passport;
|
|
48
|
+
if (e) {
|
|
49
|
+
const k = (b = r(this, l)) == null ? void 0 : b.stores.find((j) => j.name === e.name);
|
|
50
|
+
k && (t.current = k.value);
|
|
51
|
+
}
|
|
52
|
+
return t;
|
|
53
|
+
}
|
|
54
|
+
getState() {
|
|
55
|
+
const t = {
|
|
56
|
+
stores: []
|
|
57
|
+
};
|
|
58
|
+
return f.current.forEach((e) => {
|
|
59
|
+
e.passport && t.stores.push({
|
|
60
|
+
value: e.current,
|
|
61
|
+
name: e.passport.name
|
|
62
|
+
});
|
|
63
|
+
}), t;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
l = new WeakMap(), o = new WeakMap(), S = new WeakMap();
|
|
67
|
+
const z = new q();
|
|
68
|
+
var u, d, g, n, m, h, y, p, v, R;
|
|
69
|
+
class C {
|
|
70
|
+
constructor(t, e) {
|
|
71
|
+
a(this, v);
|
|
72
|
+
a(this, u, void 0);
|
|
73
|
+
a(this, d, void 0);
|
|
74
|
+
a(this, g, void 0);
|
|
75
|
+
a(this, n, void 0);
|
|
76
|
+
a(this, m, void 0);
|
|
77
|
+
a(this, h, /* @__PURE__ */ new Set());
|
|
78
|
+
a(this, y, void 0);
|
|
79
|
+
a(this, p, void 0);
|
|
80
|
+
i(this, u, e == null ? void 0 : e.passport), i(this, d, t), i(this, g, void 0), i(this, n, t), i(this, m, (e == null ? void 0 : e.equalityCheck) || ((c, b) => c === b)), i(this, y, (e == null ? void 0 : e.validate) || ((c) => c)), i(this, p, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, u) && z.updateStore(this);
|
|
81
|
+
}
|
|
82
|
+
get passport() {
|
|
83
|
+
return r(this, u);
|
|
84
|
+
}
|
|
85
|
+
get initial() {
|
|
86
|
+
return r(this, d);
|
|
87
|
+
}
|
|
88
|
+
get previous() {
|
|
89
|
+
return r(this, g);
|
|
90
|
+
}
|
|
91
|
+
get current() {
|
|
92
|
+
return r(this, n);
|
|
93
|
+
}
|
|
94
|
+
set current(t) {
|
|
95
|
+
r(this, m).call(this, r(this, n), t) || (i(this, g, r(this, n)), i(this, n, r(this, y).call(this, t)), w(this, v, R).call(this));
|
|
96
|
+
}
|
|
97
|
+
get subscribers() {
|
|
98
|
+
return r(this, h);
|
|
99
|
+
}
|
|
100
|
+
get entry() {
|
|
101
|
+
return {
|
|
102
|
+
current: r(this, n),
|
|
103
|
+
previous: r(this, g)
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
subscribe(t) {
|
|
107
|
+
return r(this, u) && !r(this, h).size && I(this), r(this, h).add(t), r(this, p) || t(this.entry), () => {
|
|
108
|
+
this.unsubscribe(t);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
unsubscribe(t) {
|
|
112
|
+
r(this, h).delete(t), r(this, u) && !r(this, h).size && E(this);
|
|
113
|
+
}
|
|
114
|
+
reset() {
|
|
115
|
+
this.current = this.initial;
|
|
116
|
+
}
|
|
117
|
+
close() {
|
|
118
|
+
r(this, h).clear(), r(this, u) && E(this);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
u = new WeakMap(), d = new WeakMap(), g = new WeakMap(), n = new WeakMap(), m = new WeakMap(), h = new WeakMap(), y = new WeakMap(), p = new WeakMap(), v = new WeakSet(), R = function() {
|
|
122
|
+
for (const t of r(this, h))
|
|
123
|
+
t(this.entry);
|
|
124
|
+
};
|
|
125
|
+
const f = new C([]);
|
|
126
|
+
function I(s) {
|
|
127
|
+
f.current.find((t) => t.passport.name === s.passport.name) || (f.current = [...f.current, s]);
|
|
128
|
+
}
|
|
129
|
+
function E(s) {
|
|
130
|
+
f.current.includes(s) && (f.current = f.current.filter((t) => t !== s));
|
|
131
|
+
}
|
|
132
|
+
export {
|
|
133
|
+
C as S,
|
|
134
|
+
f as a,
|
|
135
|
+
z as s
|
|
136
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var N=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(N(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,u)=>(N(s,t,"write to private field"),u?u.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(N(s,t,"access private method"),e);const z=require("./browser-QbF6EW-w.cjs");var l,o,S;class C{constructor(){a(this,l,null);a(this,o,void 0);a(this,S,"");z.isBrowser&&(i(this,o,document.documentElement.getAttribute("data-project")||void 0),i(this,S,r(this,o)?r(this,o)+"-store-registry":"store-registry"))}get projectName(){return r(this,o)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),c.current.forEach(e=>{this.updateStore(e)}))}resetState(){c.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var u,p;if(!Array.isArray((u=r(this,l))==null?void 0:u.stores))return t;const e=t.passport;if(e){const w=(p=r(this,l))==null?void 0:p.stores.find(A=>A.name===e.name);w&&(t.current=w.value)}return t}getState(){const t={stores:[]};return c.current.forEach(e=>{e.passport&&t.stores.push({value:e.current,name:e.passport.name})}),t}}l=new WeakMap,o=new WeakMap,S=new WeakMap;const E=new C;var n,d,g,f,y,h,m,b,v,q;class j{constructor(t,e){a(this,v);a(this,n,void 0);a(this,d,void 0);a(this,g,void 0);a(this,f,void 0);a(this,y,void 0);a(this,h,new Set);a(this,m,void 0);a(this,b,void 0);i(this,n,e==null?void 0:e.passport),i(this,d,t),i(this,g,void 0),i(this,f,t),i(this,y,(e==null?void 0:e.equalityCheck)||((u,p)=>u===p)),i(this,m,(e==null?void 0:e.validate)||(u=>u)),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,n)&&E.updateStore(this)}get passport(){return r(this,n)}get initial(){return r(this,d)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){r(this,y).call(this,r(this,f),t)||(i(this,g,r(this,f)),i(this,f,r(this,m).call(this,t)),R(this,v,q).call(this))}get subscribers(){return r(this,h)}get entry(){return{current:r(this,f),previous:r(this,g)}}subscribe(t){return r(this,n)&&!r(this,h).size&&I(this),r(this,h).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,h).delete(t),r(this,n)&&!r(this,h).size&&k(this)}reset(){this.current=this.initial}close(){r(this,h).clear(),r(this,n)&&k(this)}}n=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,h=new WeakMap,m=new WeakMap,b=new WeakMap,v=new WeakSet,q=function(){for(const t of r(this,h))t(this.entry)};const c=new j([]);function I(s){c.current.find(t=>t.passport.name===s.passport.name)||(c.current=[...c.current,s])}function k(s){c.current.includes(s)&&(c.current=c.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=c;exports.storeRegistry=E;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var b = (t, i, e) => i in t ? x(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
|
|
3
|
+
var g = (t, i, e) => (b(t, typeof i != "symbol" ? i + "" : i, e), e), y = (t, i, e) => {
|
|
4
|
+
if (!i.has(t))
|
|
5
|
+
throw TypeError("Cannot " + e);
|
|
6
|
+
};
|
|
7
|
+
var s = (t, i, e) => (y(t, i, "read from private field"), e ? e.call(t) : i.get(t)), a = (t, i, e) => {
|
|
8
|
+
if (i.has(t))
|
|
9
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
+
i instanceof WeakSet ? i.add(t) : i.set(t, e);
|
|
11
|
+
}, h = (t, i, e, n) => (y(t, i, "write to private field"), n ? n.call(t, e) : i.set(t, e), e);
|
|
12
|
+
import { i as r } from "./browser-S4eq8AeN.js";
|
|
13
|
+
import { g as u } from "./dom-bHEwc_xV.js";
|
|
14
|
+
import { Notifier as L } from "./notifier/index.js";
|
|
15
|
+
var m;
|
|
16
|
+
class v {
|
|
17
|
+
constructor() {
|
|
18
|
+
a(this, m, new L());
|
|
19
|
+
}
|
|
20
|
+
get changeEvent() {
|
|
21
|
+
return s(this, m);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
m = new WeakMap();
|
|
25
|
+
var c, o;
|
|
26
|
+
class k extends v {
|
|
27
|
+
constructor(e) {
|
|
28
|
+
super();
|
|
29
|
+
a(this, c, null);
|
|
30
|
+
a(this, o, (e) => {
|
|
31
|
+
const n = e.shiftKey ? -1 : 1;
|
|
32
|
+
e.code === "Space" ? this.changeEvent.notify(n * 500) : e.code === "ArrowLeft" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowRight" ? this.changeEvent.notify(1 * 100) : e.code === "ArrowUp" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowDown" ? this.changeEvent.notify(1 * 100) : e.code === "PageUp" ? this.changeEvent.notify(-1 * 1e3) : e.code === "PageDown" ? this.changeEvent.notify(1 * 1e3) : e.code === "Home" ? this.changeEvent.notify("min") : e.code === "End" && this.changeEvent.notify("max");
|
|
33
|
+
});
|
|
34
|
+
r && h(this, c, e != null && e.element && u(e.element) || window);
|
|
35
|
+
}
|
|
36
|
+
connect() {
|
|
37
|
+
r && s(this, c).addEventListener("keydown", s(this, o));
|
|
38
|
+
}
|
|
39
|
+
disconnect() {
|
|
40
|
+
r && s(this, c).removeEventListener("keydown", s(this, o));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
c = new WeakMap(), o = new WeakMap();
|
|
44
|
+
var d, l, f, w;
|
|
45
|
+
class K extends v {
|
|
46
|
+
constructor(e) {
|
|
47
|
+
super();
|
|
48
|
+
g(this, "axis");
|
|
49
|
+
g(this, "speed");
|
|
50
|
+
g(this, "debounce");
|
|
51
|
+
a(this, d, null);
|
|
52
|
+
a(this, l, void 0);
|
|
53
|
+
a(this, f, void 0);
|
|
54
|
+
a(this, w, (e) => {
|
|
55
|
+
let n = 0;
|
|
56
|
+
if (!(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY)))
|
|
57
|
+
if (n = (this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, e.stopPropagation(), e.preventDefault(), this.debounce) {
|
|
58
|
+
const E = Date.now();
|
|
59
|
+
if (E - s(this, f) > 40 && (n = 100 * Math.sign(n)), h(this, f, E), Math.abs(n) < 100 || s(this, l))
|
|
60
|
+
return;
|
|
61
|
+
this.changeEvent.notify(n), h(this, l, setTimeout(() => {
|
|
62
|
+
h(this, l, void 0);
|
|
63
|
+
}, 80));
|
|
64
|
+
} else
|
|
65
|
+
this.changeEvent.notify(n);
|
|
66
|
+
});
|
|
67
|
+
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, h(this, f, Date.now()), r && h(this, d, e != null && e.element && u(e.element) || window);
|
|
68
|
+
}
|
|
69
|
+
connect() {
|
|
70
|
+
r && s(this, d).addEventListener("wheel", s(this, w), {
|
|
71
|
+
passive: !1
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
disconnect() {
|
|
75
|
+
r && s(this, d).removeEventListener("wheel", s(this, w));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
d = new WeakMap(), l = new WeakMap(), f = new WeakMap(), w = new WeakMap();
|
|
79
|
+
export {
|
|
80
|
+
v as C,
|
|
81
|
+
k as K,
|
|
82
|
+
K as W
|
|
83
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var b=Object.defineProperty;var x=(t,s,e)=>s in t?b(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var g=(t,s,e)=>(x(t,typeof s!="symbol"?s+"":s,e),e),v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var i=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),r=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,n)=>(v(t,s,"write to private field"),n?n.call(t,e):s.set(t,e),e);const a=require("./browser-QbF6EW-w.cjs"),m=require("./dom-QhWsdQS2.cjs"),L=require("./notifier/index.cjs");var u;class E{constructor(){r(this,u,new L.Notifier)}get changeEvent(){return i(this,u)}}u=new WeakMap;var c,o;class B extends E{constructor(e){super();r(this,c,null);r(this,o,e=>{const n=e.shiftKey?-1:1;e.code==="Space"?this.changeEvent.notify(n*500):e.code==="ArrowLeft"?this.changeEvent.notify(-1*100):e.code==="ArrowRight"?this.changeEvent.notify(1*100):e.code==="ArrowUp"?this.changeEvent.notify(-1*100):e.code==="ArrowDown"?this.changeEvent.notify(1*100):e.code==="PageUp"?this.changeEvent.notify(-1*1e3):e.code==="PageDown"?this.changeEvent.notify(1*1e3):e.code==="Home"?this.changeEvent.notify("min"):e.code==="End"&&this.changeEvent.notify("max")});a.isBrowser&&h(this,c,e!=null&&e.element&&m.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,c).addEventListener("keydown",i(this,o))}disconnect(){a.isBrowser&&i(this,c).removeEventListener("keydown",i(this,o))}}c=new WeakMap,o=new WeakMap;var d,l,f,w;class C extends E{constructor(e){super();g(this,"axis");g(this,"speed");g(this,"debounce");r(this,d,null);r(this,l,void 0);r(this,f,void 0);r(this,w,e=>{let n=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(n=(this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),e.preventDefault(),this.debounce){const y=Date.now();if(y-i(this,f)>40&&(n=100*Math.sign(n)),h(this,f,y),Math.abs(n)<100||i(this,l))return;this.changeEvent.notify(n),h(this,l,setTimeout(()=>{h(this,l,void 0)},80))}else this.changeEvent.notify(n)});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,h(this,f,Date.now()),a.isBrowser&&h(this,d,e!=null&&e.element&&m.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,d).addEventListener("wheel",i(this,w),{passive:!1})}disconnect(){a.isBrowser&&i(this,d).removeEventListener("wheel",i(this,w))}}d=new WeakMap,l=new WeakMap,f=new WeakMap,w=new WeakMap;exports.Controls=E;exports.KeyboardControls=B;exports.WheelControls=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AccordionElement } from './AccordionElement';
|
|
@@ -27,8 +27,8 @@ export declare abstract class Animated<Entry extends AnimatedEntry = AnimatedEnt
|
|
|
27
27
|
set max(value: number | AnimatedEdgeFunction | undefined);
|
|
28
28
|
get delta(): number;
|
|
29
29
|
get progress(): number;
|
|
30
|
-
get setter(): Animated | undefined;
|
|
31
30
|
get entry(): Entry;
|
|
31
|
+
get setter(): Animated | undefined;
|
|
32
32
|
set setter(animated: Animated | undefined);
|
|
33
33
|
set(value: number, equalize?: boolean): void;
|
|
34
34
|
shift(value: number, equalize?: boolean): void;
|
package/lib/animation/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var h=Object.defineProperty,l=Object.defineProperties;var c=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var a=(t,r,e)=>r in t?h(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,n=(t,r)=>{for(var e in r||(r={}))g.call(r,e)&&a(t,e,r[e]);if(s)for(var e of s(r))q.call(r,e)&&a(t,e,r[e]);return t},m=(t,r)=>l(t,c(r));var u=(t,r,e)=>(a(t,typeof r!="symbol"?r+"":r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Damped-
|
|
1
|
+
"use strict";var h=Object.defineProperty,l=Object.defineProperties;var c=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var a=(t,r,e)=>r in t?h(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,n=(t,r)=>{for(var e in r||(r={}))g.call(r,e)&&a(t,e,r[e]);if(s)for(var e of s(r))q.call(r,e)&&a(t,e,r[e]);return t},m=(t,r)=>l(t,c(r));var u=(t,r,e)=>(a(t,typeof r!="symbol"?r+"":r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Damped-DdPj4Sho.cjs"),A=require("../easings-_wFs9ZWc.cjs");require("../math-FNUBmQPK.cjs");require("../number-2bR0KBcX.cjs");require("../Store-txkR3wXU.cjs");require("../browser-QbF6EW-w.cjs");require("../ticker/index.cjs");require("../intersector/index.cjs");class x extends i.Animated{constructor(e){super(m(n({},e),{min:(e==null?void 0:e.min)||0,max:(e==null?void 0:e.max)||1e3}));u(this,"easing");this.easing=(e==null?void 0:e.easing)||A.linear}start(){this.listenAnimationFrame()}pause(){this.unlistenAnimationFrame()}stop(){this.reset()}get max(){return super.max}update(){const e=(this.target-this.min)/(this.delta||1),d=this.easing(e);this.current=this.min+d*this.delta}handleAnimationFrame(e){this.shift(e.elapsed),(e.elapsed&&this.current===0||this.current===this.delta)&&this.unlistenAnimationFrame()}}exports.Animated=i.Animated;exports.Damped=i.Damped;exports.Tweened=x;
|
package/lib/animation/index.js
CHANGED
|
@@ -11,12 +11,12 @@ var r = (a, t, e) => t in a ? d(a, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return a;
|
|
12
12
|
}, s = (a, t) => l(a, u(t));
|
|
13
13
|
var n = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
import { A as g } from "../Damped-
|
|
15
|
-
import { D as y } from "../Damped-
|
|
14
|
+
import { A as g } from "../Damped-H3PuZwKV.js";
|
|
15
|
+
import { D as y } from "../Damped-H3PuZwKV.js";
|
|
16
16
|
import { l as A } from "../easings-uF-tgahf.js";
|
|
17
17
|
import "../math-_a3IpKOc.js";
|
|
18
18
|
import "../number-bCHB2GAD.js";
|
|
19
|
-
import "../Store-
|
|
19
|
+
import "../Store-qq7IjRLE.js";
|
|
20
20
|
import "../browser-S4eq8AeN.js";
|
|
21
21
|
import "../ticker/index.js";
|
|
22
22
|
import "../intersector/index.js";
|
package/lib/attribute/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=(e,r,t)=>{if(!r.has(e))throw TypeError("Cannot "+t)};var s=(e,r,t)=>(v(e,r,"read from private field"),t?t.call(e):r.get(e)),b=(e,r,t)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,t)},a=(e,r,t,c)=>(v(e,r,"write to private field"),c?c.call(e,t):r.set(e,t),t);var d=(e,r,t)=>(v(e,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../Store-
|
|
1
|
+
"use strict";var v=(e,r,t)=>{if(!r.has(e))throw TypeError("Cannot "+t)};var s=(e,r,t)=>(v(e,r,"read from private field"),t?t.call(e):r.get(e)),b=(e,r,t)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,t)},a=(e,r,t,c)=>(v(e,r,"write to private field"),c?c.call(e,t):r.set(e,t),t);var d=(e,r,t)=>(v(e,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../Store-txkR3wXU.cjs"),A=require("../attributes-_2U65GDl.cjs"),f=require("../browser-QbF6EW-w.cjs"),S=require("../dom-QhWsdQS2.cjs");var i,u,o,h,m;class q extends w.Store{constructor(t,c,g,p){super(g,p);b(this,h);b(this,i,null);b(this,u,void 0);b(this,o,null);a(this,u,c),this.subscribe(l=>{var n;(n=s(this,i))==null||n.setAttribute(s(this,u),l.current.toString())}),f.isBrowser&&(a(this,i,S.getElement(t)),a(this,o,new MutationObserver(l=>{l.forEach(n=>{n.type==="attributes"&&n.attributeName===s(this,u)&&d(this,h,m).call(this)})})))}unobserve(){f.isBrowser&&s(this,o).disconnect()}observe(){f.isBrowser&&s(this,i)&&(s(this,o).observe(s(this,i),{attributes:!0}),d(this,h,m).call(this))}}i=new WeakMap,u=new WeakMap,o=new WeakMap,h=new WeakSet,m=function(){const t=s(this,i).getAttribute(s(this,u));t!=null&&(this.current=A.parseAttributeValue(t))};exports.Attribute=q;
|
package/lib/attribute/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var i = (e, s, t) => (f(e, s, "read from private field"), t ? t.call(e) : s.get(
|
|
|
8
8
|
s instanceof WeakSet ? s.add(e) : s.set(e, t);
|
|
9
9
|
}, m = (e, s, t, b) => (f(e, s, "write to private field"), b ? b.call(e, t) : s.set(e, t), t);
|
|
10
10
|
var p = (e, s, t) => (f(e, s, "access private method"), t);
|
|
11
|
-
import { S as A } from "../Store-
|
|
11
|
+
import { S as A } from "../Store-qq7IjRLE.js";
|
|
12
12
|
import { p as S } from "../attributes-w0u-KiIb.js";
|
|
13
13
|
import { i as l } from "../browser-S4eq8AeN.js";
|
|
14
14
|
import { g as w } from "../dom-bHEwc_xV.js";
|
package/lib/canvas-2d/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomElement } from '../custom-element';
|
|
2
2
|
import { Notifier } from '../notifier';
|
|
3
|
-
export interface
|
|
3
|
+
export interface Canvas2DRenderEntry {
|
|
4
4
|
pixelRatio: number;
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|
|
@@ -10,7 +10,7 @@ export interface Canvas2DRenderDetail {
|
|
|
10
10
|
timestamp: number;
|
|
11
11
|
elapsed: number;
|
|
12
12
|
}
|
|
13
|
-
export type Canvas2DRenderCallback = (
|
|
13
|
+
export type Canvas2DRenderCallback = (entry: Canvas2DRenderEntry) => void;
|
|
14
14
|
export declare class Canvas2DElement extends CustomElement {
|
|
15
15
|
#private;
|
|
16
16
|
get renderEvent(): Notifier<Canvas2DRenderCallback>;
|
|
@@ -19,7 +19,7 @@ export declare class Canvas2DElement extends CustomElement {
|
|
|
19
19
|
get pixelRatio(): number;
|
|
20
20
|
get width(): number;
|
|
21
21
|
get height(): number;
|
|
22
|
-
get detail():
|
|
22
|
+
get detail(): Canvas2DRenderEntry;
|
|
23
23
|
protected connectedCallback(): void;
|
|
24
24
|
protected disconnectedCallback(): void;
|
|
25
25
|
}
|
package/lib/controls/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var a=Object.defineProperty;var u=(s,e,r)=>e in s?a(s,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[e]=r;var i=(s,e,r)=>(u(s,typeof e!="symbol"?e+"":e,r),r),d=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var n=(s,e,r)=>(d(s,e,"read from private field"),r?r.call(s):e.get(s)),l=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../WheelControls-TYhGU6oA.cjs"),c=require("../ticker/index.cjs");require("../browser-QbF6EW-w.cjs");require("../dom-QhWsdQS2.cjs");require("../notifier/index.cjs");require("../intersector/index.cjs");var t;class C extends o.Controls{constructor(r){super();i(this,"speed");l(this,t,r=>{this.changeEvent.notify(r.elapsed*this.speed)});this.speed=(r==null?void 0:r.speed)||1}connect(){c.ticker.subscribe(n(this,t))}disconnect(){c.ticker.unsubscribe(n(this,t))}}t=new WeakMap;exports.Controls=o.Controls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;exports.LinearControls=C;
|
package/lib/controls/index.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ export { Controls, type ControlsValue } from './Controls';
|
|
|
2
2
|
export { KeyboardControls } from './KeyboardControls';
|
|
3
3
|
export { LinearControls, type LinearControlsOptions } from './LinearControls';
|
|
4
4
|
export { WheelControls, type WheelControlsOptions } from './WheelControls';
|
|
5
|
-
export { user } from './User';
|
package/lib/controls/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var o = (s, e, r) => (p(s, e, "read from private field"), r ? r.call(s) : e.get(
|
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, r);
|
|
11
11
|
};
|
|
12
|
-
import { C as l } from "../WheelControls-
|
|
13
|
-
import { K as W, W as g
|
|
12
|
+
import { C as l } from "../WheelControls-9ZQKSYYq.js";
|
|
13
|
+
import { K as W, W as g } from "../WheelControls-9ZQKSYYq.js";
|
|
14
14
|
import { ticker as n } from "../ticker/index.js";
|
|
15
15
|
import "../browser-S4eq8AeN.js";
|
|
16
16
|
import "../dom-bHEwc_xV.js";
|
|
@@ -38,6 +38,5 @@ export {
|
|
|
38
38
|
l as Controls,
|
|
39
39
|
W as KeyboardControls,
|
|
40
40
|
k as LinearControls,
|
|
41
|
-
g as WheelControls
|
|
42
|
-
v as user
|
|
41
|
+
g as WheelControls
|
|
43
42
|
};
|
package/lib/device/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=(t,n,r)=>{if(!n.has(t))throw TypeError("Cannot "+r)};var i=(t,n,r)=>(S(t,n,"read from private field"),r?r.call(t):n.get(t)),s=(t,n,r)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,r)},e=(t,n,r,v)=>(S(t,n,"write to private field"),v?v.call(t,r):n.set(t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../order/index.cjs"),k=require("../resizer/index.cjs"),A=require("../browser-QbF6EW-w.cjs"),M=require("detect-gpu"),_=require("../Store-
|
|
1
|
+
"use strict";var S=(t,n,r)=>{if(!n.has(t))throw TypeError("Cannot "+r)};var i=(t,n,r)=>(S(t,n,"read from private field"),r?r.call(t):n.get(t)),s=(t,n,r)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,r)},e=(t,n,r,v)=>(S(t,n,"write to private field"),v?v.call(t,r):n.set(t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../order/index.cjs"),k=require("../resizer/index.cjs"),A=require("../browser-QbF6EW-w.cjs"),M=require("detect-gpu"),_=require("../Store-txkR3wXU.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");var o,l,g,c,m,u,p,x,d;class I{constructor(){s(this,o,"unknown");s(this,l,"unknown");s(this,g,0);s(this,c,null);s(this,m,!1);s(this,u,!1);s(this,p,!1);s(this,x,!1);s(this,d,!1);var n,r;if(A.isBrowser){e(this,c,M.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,g,a.tier)}),k.resizer.subscribe(()=>{e(this,m,/Mobi|Android/i.test(navigator.userAgent)),e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},W.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");e(this,p,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&e(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((r=(n=window.navigator)==null?void 0:n.userAgentData)==null?void 0:r.platform)||window.navigator.platform,T=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],C=["Win32","Win64","Windows","WinCE"],q=["iPhone","iPad","iPod"];T.includes(E)?(e(this,o,"macOS"),e(this,d,!0)):q.includes(E)?(e(this,o,"iOS"),e(this,d,!0)):C.includes(E)?e(this,o,"Windows"):/Android/.test(v)?e(this,o,"Android"):/Linux/.test(E)?e(this,o,"Linux"):e(this,o,"unknown")}}get OS(){return i(this,o)}get gpu(){return i(this,l)}get gpuTier(){return i(this,g)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,m)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,p)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}o=new WeakMap,l=new WeakMap,g=new WeakMap,c=new WeakMap,m=new WeakMap,u=new WeakMap,p=new WeakMap,x=new WeakMap,d=new WeakMap;const R=new I;var D=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(D||{}),O=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(O||{}),w,b,f,h;class y{constructor(){s(this,w,0);s(this,b,0);s(this,f,0);s(this,h,new _.Store(void 0));A.isBrowser&&k.resizer.subscribe(()=>{e(this,w,document.documentElement.clientWidth),e(this,b,innerHeight),e(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},W.RESIZE_ORDER.DEVICE)}get width(){return i(this,w)}get height(){return i(this,b)}get store_type(){return i(this,h)}get pixelRatio(){return i(this,f)}}w=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const L=new y;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=O;exports.device=R;exports.viewport=L;
|
package/lib/device/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { RESIZE_ORDER as k } from "../order/index.js";
|
|
|
11
11
|
import { resizer as A } from "../resizer/index.js";
|
|
12
12
|
import { i as C } from "../browser-S4eq8AeN.js";
|
|
13
13
|
import { getGPUTier as O } from "detect-gpu";
|
|
14
|
-
import { S as I } from "../Store-
|
|
14
|
+
import { S as I } from "../Store-qq7IjRLE.js";
|
|
15
15
|
import "../notifier/index.js";
|
|
16
16
|
import "../function-zwSFehNd.js";
|
|
17
17
|
var r, d, l, c, g, m, p, x, u;
|