aptechka 0.13.1 → 0.15.0
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-De9aUv3b.cjs → Animation-DI864E0i.cjs} +1 -1
- package/lib/{Animation-NAGXiFv5.js → Animation-w6BLTCum.js} +1 -1
- package/lib/{Damped-DbJKrUIf.js → Damped-DEHDEq-b.js} +1 -1
- package/lib/{Damped-DYJ6Z0xo.cjs → Damped-ipnDc0iX.cjs} +1 -1
- package/lib/Store-CDb6RMce.cjs +1 -0
- package/lib/Store-OTdcl6SX.js +134 -0
- package/lib/{Tweened-BkkD9s4n.cjs → Tweened-B1TfANfR.cjs} +1 -1
- package/lib/{Tweened-DOSHLCZa.js → Tweened-C52xXDLY.js} +1 -1
- package/lib/{Viewport-Cv4TRGiv.cjs → Viewport-BDPsnAF4.cjs} +1 -1
- package/lib/{Viewport-B55BvLsV.js → Viewport-taEXS8Uv.js} +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 +13 -13
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +36 -39
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- 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 +4 -4
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/{dom-P5QbAASX.js → dom-0S_WDL4g.js} +2 -2
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +848 -122
- package/lib/element-resizer/index.js +8 -8
- package/lib/en3/index.cjs +8 -1
- package/lib/en3/index.js +372 -4
- package/lib/file-BEr-o55N.js +31 -0
- package/lib/file-C9BbxzVU.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/intersector/index.js +7 -7
- package/lib/jss-CjccJC-K.js +21 -0
- package/lib/jss-GJLvaNfT.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.js +14 -14
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/need_redo_tweaker/index.cjs +18 -0
- package/lib/need_redo_tweaker/index.js +1337 -0
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +3 -3
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +68 -76
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +577 -610
- package/lib/scroll-entries/index.js +15 -15
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +55 -86
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +154 -62
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +71 -37
- package/lib/ticker/index.js +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +67 -65
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +7 -72
- package/lib/Composed-C_4slJQ6.cjs +0 -1
- package/lib/Composed-CfWa-69I.js +0 -31
- package/lib/Derived-BIBU-y7Z.cjs +0 -1
- package/lib/Derived-Vo_RsJfi.js +0 -23
- package/lib/SourceManager-B6wZpXUZ.js +0 -104
- package/lib/SourceManager-CfHcGLUa.cjs +0 -1
- package/lib/Store-C46i0nvr.js +0 -137
- package/lib/Store-npaZHvX4.cjs +0 -1
- package/lib/accordion/index.cjs +0 -1
- package/lib/accordion/index.js +0 -167
- package/lib/checkbox/index.cjs +0 -1
- package/lib/checkbox/index.js +0 -112
- package/lib/createStylesheet-COAZH1Mw.js +0 -8
- package/lib/createStylesheet-Csfmh-MH.cjs +0 -1
- package/lib/createTheme-CHnsCgAr.js +0 -15
- package/lib/createTheme-Cfaw9UmV.cjs +0 -1
- package/lib/en3/helpers/index.cjs +0 -1
- package/lib/en3/helpers/index.js +0 -1870
- package/lib/en3/libs/index.cjs +0 -1
- package/lib/en3/libs/index.js +0 -200
- package/lib/en3/loaders/index.cjs +0 -1
- package/lib/en3/loaders/index.js +0 -1742
- package/lib/en3/misc/index.cjs +0 -10
- package/lib/en3/misc/index.js +0 -110
- package/lib/en3/utils/index.cjs +0 -1
- package/lib/en3/utils/index.js +0 -20
- package/lib/en3-C1fLmsjs.cjs +0 -8
- package/lib/en3-x-Ki30MY.js +0 -344
- package/lib/events-BGwqaxVW.cjs +0 -1
- package/lib/events-CJTUMSLU.js +0 -20
- package/lib/file-EevnUtRj.cjs +0 -1
- package/lib/file-lxi_oXJf.js +0 -13
- package/lib/index-BuAuBz2_.cjs +0 -9
- package/lib/index-CenF0JbH.js +0 -261
- package/lib/modal/index.cjs +0 -1
- package/lib/modal/index.js +0 -133
- package/lib/select/index.cjs +0 -1
- package/lib/select/index.js +0 -7
- package/lib/tags-6_ETuR75.cjs +0 -1
- package/lib/tags-BL3kQp9o.js +0 -833
- package/lib/theme/index.cjs +0 -1
- package/lib/theme/index.js +0 -25
- package/lib/traverseMaterials-CD_3_56D.cjs +0 -1
- package/lib/traverseMaterials-mGC2_FkG.js +0 -29
- package/lib/tweaker/index.cjs +0 -10
- package/lib/tweaker/index.js +0 -989
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var C=i=>{throw TypeError(i)};var S=(i,s,t)=>s.has(i)||C("Cannot "+t);var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>s.has(i)?C("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t),M=(i,s,t)=>(S(i,s,"access private method"),t);const I=require("./Store-
|
|
1
|
+
"use strict";var C=i=>{throw TypeError(i)};var S=(i,s,t)=>s.has(i)||C("Cannot "+t);var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>s.has(i)?C("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t),M=(i,s,t)=>(S(i,s,"access private method"),t);const I=require("./Store-CDb6RMce.cjs"),z=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-CM4SCDTt.cjs"),P=require("./ticker/index.cjs"),N=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,y,x;class O extends I.Store{constructor(t,n){super(t||0,n);a(this,q);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,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,F)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-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,r)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+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,x),{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,x)))}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,q,y).call(this,typeof e(this,d)=="number"?e(this,d):e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),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,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,q=new WeakSet,y=function(t){h(this,F,Math.sign(t-e(this,r))),h(this,r,z.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=O;
|
|
@@ -3,7 +3,7 @@ var I = (i) => {
|
|
|
3
3
|
};
|
|
4
4
|
var S = (i, r, t) => r.has(i) || I("Cannot " + t);
|
|
5
5
|
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) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, t), h = (i, r, t, u) => (S(i, r, "write to private field"), u ? u.call(i, t) : r.set(i, t), t), P = (i, r, t) => (S(i, r, "access private method"), t);
|
|
6
|
-
import { S as q } from "./Store-
|
|
6
|
+
import { S as q } from "./Store-OTdcl6SX.js";
|
|
7
7
|
import { c as y } from "./math-BOBiC4TN.js";
|
|
8
8
|
import { p as z, n as F } from "./polyfills-X6KXuHg-.js";
|
|
9
9
|
import { ticker as O } from "./ticker/index.js";
|
|
@@ -17,7 +17,7 @@ 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-X6KXuHg-.js";
|
|
20
|
-
import { A as q } from "./Animation-
|
|
20
|
+
import { A as q } from "./Animation-w6BLTCum.js";
|
|
21
21
|
var i, h;
|
|
22
22
|
class j extends q {
|
|
23
23
|
constructor(t, r) {
|
|
@@ -1 +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)),u=(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"),c=require("./polyfills-CM4SCDTt.cjs"),B=require("./Animation-
|
|
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)),u=(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"),c=require("./polyfills-CM4SCDTt.cjs"),B=require("./Animation-DI864E0i.cjs");var i,h;class D extends B.Animation{constructor(s,r){super(s,r);u(this,i);u(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=c.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=c.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=c.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){c.preciseNumber(this.current,6)===c.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 m=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*m),this.current+=a(this,i)*m}else this.current=w.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=D;
|
|
@@ -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),k=(r,e,t)=>(w(r,e,"access private method"),t);const E=require("./browser-CpzFX2xg.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 y=(a=i(this,f))==null?void 0:a.stores.find(z=>z.name===e.name);y&&(e.current=y.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 N=new M;var d,s,S,u,m,n,g,b,v,q;class _{constructor(e,t){c(this,v);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,b);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,y)=>a===y)),t!=null&&t.validate&&this.addMiddleware(t.validate),h(this,g,(t==null?void 0:t.notifyAndClose)||!1),h(this,b,(t==null?void 0:t.invisible)||!1),h(this,m,(t==null?void 0:t.skipSubscribeNotification)||!1),i(this,d)&&N.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,k(this,v,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,b)&&!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||C(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){i(this,u).clear(),C(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,u=new WeakMap,m=new WeakMap,n=new WeakMap,g=new WeakMap,b=new WeakMap,v=new WeakSet,q=function(){for(const e of i(this,u))e(i(this,s))};const l=new _([],{invisible:!0});function R(r){l.current.includes(r)||(l.current=[...l.current,r])}function C(r){l.current.includes(r)&&(l.current=l.current.filter(e=>e!==r))}exports.Store=_;exports.activeStores=l;exports.storeRegistry=N;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
var A = (r) => {
|
|
2
|
+
throw TypeError(r);
|
|
3
|
+
};
|
|
4
|
+
var w = (r, e, t) => e.has(r) || A("Cannot " + t);
|
|
5
|
+
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), k = (r, e, t) => (w(r, e, "access private method"), t);
|
|
6
|
+
import { i as z } from "./browser-0zX67oeU.js";
|
|
7
|
+
var l;
|
|
8
|
+
class E {
|
|
9
|
+
constructor() {
|
|
10
|
+
c(this, l);
|
|
11
|
+
this.storage = null, this.name = "store-registry", h(this, l, null), z && (this.storage = localStorage);
|
|
12
|
+
}
|
|
13
|
+
get loadedState() {
|
|
14
|
+
return i(this, l);
|
|
15
|
+
}
|
|
16
|
+
saveState() {
|
|
17
|
+
const e = this.getState(), t = JSON.stringify(e);
|
|
18
|
+
localStorage.setItem(this.name, t);
|
|
19
|
+
}
|
|
20
|
+
loadState(e = localStorage.getItem(this.name)) {
|
|
21
|
+
e && (typeof e == "string" ? h(this, l, JSON.parse(e)) : h(this, l, e), f.current.forEach((t) => {
|
|
22
|
+
t.name && this.updateStore(t);
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
resetState() {
|
|
26
|
+
f.current.forEach((e) => {
|
|
27
|
+
e.name && e.reset();
|
|
28
|
+
}), this.saveState();
|
|
29
|
+
}
|
|
30
|
+
updateStore(e) {
|
|
31
|
+
var t, a;
|
|
32
|
+
if (!Array.isArray((t = i(this, l)) == null ? void 0 : t.stores))
|
|
33
|
+
return e;
|
|
34
|
+
if (e.name) {
|
|
35
|
+
const y = (a = i(this, l)) == null ? void 0 : a.stores.find((_) => _.name === e.name);
|
|
36
|
+
y && (e.current = y.value);
|
|
37
|
+
}
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
getState() {
|
|
41
|
+
const e = {
|
|
42
|
+
stores: []
|
|
43
|
+
};
|
|
44
|
+
return f.current.forEach((t) => {
|
|
45
|
+
t.name && (e.stores.find((a) => a.name === t.name) || e.stores.push({
|
|
46
|
+
value: t.current,
|
|
47
|
+
name: t.name
|
|
48
|
+
}));
|
|
49
|
+
}), e;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
l = new WeakMap();
|
|
53
|
+
const M = new E();
|
|
54
|
+
var d, s, S, u, m, n, g, b, v, N;
|
|
55
|
+
class q {
|
|
56
|
+
constructor(e, t) {
|
|
57
|
+
c(this, v);
|
|
58
|
+
c(this, d);
|
|
59
|
+
c(this, s);
|
|
60
|
+
c(this, S);
|
|
61
|
+
c(this, u, /* @__PURE__ */ new Set());
|
|
62
|
+
c(this, m);
|
|
63
|
+
c(this, n);
|
|
64
|
+
c(this, g);
|
|
65
|
+
c(this, b);
|
|
66
|
+
h(this, d, t == null ? void 0 : t.name), this.__manager = t == null ? void 0 : t.__manager, h(this, s, {
|
|
67
|
+
initial: e,
|
|
68
|
+
previous: void 0,
|
|
69
|
+
current: e
|
|
70
|
+
}), h(this, S, (t == null ? void 0 : t.equalityCheck) || ((a, y) => a === y)), t != null && t.validate && this.addMiddleware(t.validate), h(this, g, (t == null ? void 0 : t.notifyAndClose) || !1), h(this, b, (t == null ? void 0 : t.invisible) || !1), h(this, m, (t == null ? void 0 : t.skipSubscribeNotification) || !1), i(this, d) && M.updateStore(this);
|
|
71
|
+
}
|
|
72
|
+
get name() {
|
|
73
|
+
return i(this, d);
|
|
74
|
+
}
|
|
75
|
+
get initial() {
|
|
76
|
+
return i(this, s).initial;
|
|
77
|
+
}
|
|
78
|
+
get previous() {
|
|
79
|
+
return i(this, s).previous;
|
|
80
|
+
}
|
|
81
|
+
get current() {
|
|
82
|
+
return i(this, s).current;
|
|
83
|
+
}
|
|
84
|
+
set current(e) {
|
|
85
|
+
if (!i(this, S).call(this, i(this, s).current, e)) {
|
|
86
|
+
if (i(this, s).previous = i(this, s).current, i(this, n))
|
|
87
|
+
for (const t of i(this, n))
|
|
88
|
+
e = t(e);
|
|
89
|
+
i(this, s).current = e, k(this, v, N).call(this), i(this, g) && this.close();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
get subscribers() {
|
|
93
|
+
return i(this, u);
|
|
94
|
+
}
|
|
95
|
+
addMiddleware(e) {
|
|
96
|
+
i(this, n) || h(this, n, /* @__PURE__ */ new Set()), i(this, n).add(e);
|
|
97
|
+
}
|
|
98
|
+
removeMiddleware(e) {
|
|
99
|
+
var t, a;
|
|
100
|
+
(t = i(this, n)) == null || t.delete(e), (a = i(this, n)) != null && a.size || h(this, n, void 0);
|
|
101
|
+
}
|
|
102
|
+
subscribe(e) {
|
|
103
|
+
return !i(this, b) && !i(this, u).size && I(this), i(this, u).add(e), i(this, m) || e(i(this, s)), () => {
|
|
104
|
+
this.unsubscribe(e);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
unsubscribe(e) {
|
|
108
|
+
i(this, u).delete(e), i(this, u).size || C(this);
|
|
109
|
+
}
|
|
110
|
+
reset() {
|
|
111
|
+
this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
|
|
112
|
+
}
|
|
113
|
+
close() {
|
|
114
|
+
i(this, u).clear(), C(this);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
d = new WeakMap(), s = new WeakMap(), S = new WeakMap(), u = new WeakMap(), m = new WeakMap(), n = new WeakMap(), g = new WeakMap(), b = new WeakMap(), v = new WeakSet(), N = function() {
|
|
118
|
+
for (const e of i(this, u))
|
|
119
|
+
e(i(this, s));
|
|
120
|
+
};
|
|
121
|
+
const f = new q([], {
|
|
122
|
+
invisible: !0
|
|
123
|
+
});
|
|
124
|
+
function I(r) {
|
|
125
|
+
f.current.includes(r) || (f.current = [...f.current, r]);
|
|
126
|
+
}
|
|
127
|
+
function C(r) {
|
|
128
|
+
f.current.includes(r) && (f.current = f.current.filter((e) => e !== r));
|
|
129
|
+
}
|
|
130
|
+
export {
|
|
131
|
+
q as S,
|
|
132
|
+
f as a,
|
|
133
|
+
M as s
|
|
134
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,o=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var m=(i,t,e)=>t in i?F(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,g=(i,t)=>{for(var e in t||(t={}))b.call(t,e)&&m(i,e,t[e]);if(c)for(var e of c(t))p.call(t,e)&&m(i,e,t[e]);return i},A=(i,t)=>o(i,O(t));var q=(i,t,e)=>t.has(i)||d("Cannot "+e);var a=(i,t,e)=>(q(i,t,"read from private field"),e?e.call(i):t.get(i)),u=(i,t,e)=>t.has(i)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),h=(i,t,e,s)=>(q(i,t,"write to private field"),s?s.call(i,e):t.set(i,e),e);const w=require("./easings-DsS5-Kqc.cjs"),C=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),S=require("./Animation-
|
|
1
|
+
"use strict";var F=Object.defineProperty,o=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var m=(i,t,e)=>t in i?F(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,g=(i,t)=>{for(var e in t||(t={}))b.call(t,e)&&m(i,e,t[e]);if(c)for(var e of c(t))p.call(t,e)&&m(i,e,t[e]);return i},A=(i,t)=>o(i,O(t));var q=(i,t,e)=>t.has(i)||d("Cannot "+e);var a=(i,t,e)=>(q(i,t,"read from private field"),e?e.call(i):t.get(i)),u=(i,t,e)=>t.has(i)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),h=(i,t,e,s)=>(q(i,t,"write to private field"),s?s.call(i,e):t.set(i,e),e);const w=require("./easings-DsS5-Kqc.cjs"),C=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),S=require("./Animation-DI864E0i.cjs");var n,r;class T extends S.Animation{constructor(e,s){super(e||0,s);u(this,n,w.linear);u(this,r,1e3);this.updateOptions(A(g({},s),{equalize:!0}))}updateOptions(e){super.updateOptions(e),h(this,n,l.nullishCoalescing(e==null?void 0:e.easing,a(this,n))),h(this,r,l.nullishCoalescing(e==null?void 0:e.duration,a(this,r)))}handleAnimationFrame(e){const s=e.timeElapsedSinceSubscription/1e3/(a(this,r)/1e3),f=a(this,n).call(this,C.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*f,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=T;
|
|
@@ -18,7 +18,7 @@ var n = (e, i, t) => (p(e, i, "read from private field"), t ? t.call(e) : i.get(
|
|
|
18
18
|
import { l as S } from "./easings-BKi40vHz.js";
|
|
19
19
|
import { c as T } from "./math-BOBiC4TN.js";
|
|
20
20
|
import { n as A, p as q } from "./polyfills-X6KXuHg-.js";
|
|
21
|
-
import { A as w } from "./Animation-
|
|
21
|
+
import { A as w } from "./Animation-w6BLTCum.js";
|
|
22
22
|
var s, r;
|
|
23
23
|
class k extends w {
|
|
24
24
|
constructor(t, a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var W=t=>{throw TypeError(t)};var k=(t,s,o)=>s.has(t)||W("Cannot "+o);var i=(t,s,o)=>(k(t,s,"read from private field"),o?o.call(t):s.get(t)),n=(t,s,o)=>s.has(t)?W("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,o),e=(t,s,o,v)=>(k(t,s,"write to private field"),v?v.call(t,o):s.set(t,o),o);const z=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),q=require("detect-gpu"),I=require("./Store-
|
|
1
|
+
"use strict";var W=t=>{throw TypeError(t)};var k=(t,s,o)=>s.has(t)||W("Cannot "+o);var i=(t,s,o)=>(k(t,s,"read from private field"),o?o.call(t):s.get(t)),n=(t,s,o)=>s.has(t)?W("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,o),e=(t,s,o,v)=>(k(t,s,"write to private field"),v?v.call(t,o):s.set(t,o),o);const z=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),q=require("detect-gpu"),I=require("./Store-CDb6RMce.cjs");var r,l,m,c,g,u,w,x,d;class M{constructor(){n(this,r);n(this,l);n(this,m);n(this,c);n(this,g);n(this,u);n(this,w);n(this,x);n(this,d);var s,o;if(e(this,r,"unknown"),e(this,l,"unknown"),e(this,m,0),e(this,c,null),e(this,g,!1),e(this,u,!1),e(this,w,!1),e(this,x,!1),e(this,d,!1),this.resize=()=>{e(this,g,/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)},D.isBrowser){e(this,c,q.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),this.resize(),A.windowResizer.subscribe(this.resize,z.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");e(this,w,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=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],R=["Win32","Win64","Windows","WinCE"],T=["iPhone","iPad","iPod"];O.includes(E)?(e(this,r,"macOS"),e(this,d,!0)):T.includes(E)?(e(this,r,"iOS"),e(this,d,!0)):R.includes(E)?e(this,r,"Windows"):/Android/.test(v)?e(this,r,"Android"):/Linux/.test(E)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const L=new M;var S=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(S||{}),C=(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))(C||{}),p,b,f,h;class _{constructor(){n(this,p);n(this,b);n(this,f);n(this,h);e(this,p,0),e(this,b,0),e(this,f,0),e(this,h,new I.Store(void 0)),this.resize=()=>{e(this,p,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")},D.isBrowser&&(this.resize(),A.windowResizer.subscribe(this.resize,z.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const G=new _;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=L;exports.viewport=G;
|
|
@@ -7,7 +7,7 @@ import { RESIZE_ORDER as A } from "./order/index.js";
|
|
|
7
7
|
import { windowResizer as C } from "./window-resizer/index.js";
|
|
8
8
|
import { i as D } from "./browser-0zX67oeU.js";
|
|
9
9
|
import { getGPUTier as O } from "detect-gpu";
|
|
10
|
-
import { S as I } from "./Store-
|
|
10
|
+
import { S as I } from "./Store-OTdcl6SX.js";
|
|
11
11
|
var h, d, l, c, g, m, p, x, u;
|
|
12
12
|
class L {
|
|
13
13
|
constructor() {
|
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-DI864E0i.cjs"),n=require("../Damped-ipnDc0iX.cjs"),i=require("../Tweened-B1TfANfR.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-w6BLTCum.js";
|
|
2
|
+
import { D as m } from "../Damped-DEHDEq-b.js";
|
|
3
|
+
import { T as t } from "../Tweened-C52xXDLY.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-CDb6RMce.cjs"),q=require("../attributes-Bf2svn4j.cjs"),p=require("../browser-CpzFX2xg.cjs"),w=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class O 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,w.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=O;
|
package/lib/attribute/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var m = (t, e, s) => e.has(t) ||
|
|
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) ?
|
|
6
|
-
import { S as y } from "../Store-
|
|
4
|
+
var m = (t, e, s) => e.has(t) || g("Cannot " + s);
|
|
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-OTdcl6SX.js";
|
|
7
7
|
import { p as S } from "../attributes-69we3byR.js";
|
|
8
8
|
import { i as w } from "../browser-0zX67oeU.js";
|
|
9
|
-
import {
|
|
10
|
-
var i, u,
|
|
9
|
+
import { g as x } from "../dom-0S_WDL4g.js";
|
|
10
|
+
var i, u, a, b, n, p;
|
|
11
11
|
class N extends y {
|
|
12
|
-
constructor(s, o,
|
|
13
|
-
super(
|
|
12
|
+
constructor(s, o, A, f) {
|
|
13
|
+
super(A, f);
|
|
14
14
|
h(this, n);
|
|
15
15
|
h(this, i, null);
|
|
16
16
|
h(this, u);
|
|
17
|
-
h(this,
|
|
17
|
+
h(this, a, null);
|
|
18
18
|
h(this, b, !1);
|
|
19
|
-
|
|
19
|
+
c(this, u, o), w && (c(this, i, x(s)), c(this, a, new MutationObserver((l) => {
|
|
20
20
|
l.forEach((d) => {
|
|
21
21
|
d.type === "attributes" && d.attributeName === r(this, u) && v(this, n, p).call(this);
|
|
22
22
|
});
|
|
@@ -31,18 +31,18 @@ class N extends y {
|
|
|
31
31
|
super.unsubscribe(s), this.subscribers.size || this.unobserve();
|
|
32
32
|
}
|
|
33
33
|
observe() {
|
|
34
|
-
r(this, b) || (
|
|
34
|
+
r(this, b) || (c(this, b, !0), r(this, a).observe(r(this, i), {
|
|
35
35
|
attributes: !0
|
|
36
36
|
}), v(this, n, p).call(this));
|
|
37
37
|
}
|
|
38
38
|
unobserve() {
|
|
39
|
-
r(this, b) && (
|
|
39
|
+
r(this, b) && (c(this, b, !1), r(this, a).disconnect());
|
|
40
40
|
}
|
|
41
41
|
close() {
|
|
42
42
|
super.close(), this.unobserve();
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
i = new WeakMap(), u = new WeakMap(),
|
|
45
|
+
i = new WeakMap(), u = new WeakMap(), a = new WeakMap(), b = new WeakMap(), n = new WeakSet(), p = function() {
|
|
46
46
|
const s = r(this, i).getAttribute(r(this, u));
|
|
47
47
|
s != null && (this.current = S(s));
|
|
48
48
|
};
|
package/lib/canvas/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
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),a=(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 q=require("../css-property/index.cjs"),C=require("../element-resizer/index.cjs"),w=require("../ticker/index.cjs"),z=require("../browser-CpzFX2xg.cjs"),B=require("../jss-GJLvaNfT.cjs"),F=require("../math-GDWEqu7y.cjs");var c,r,m,l,u,p,b,g,h,E,k,x,v,S,P;class y extends HTMLElement{constructor(){super();n(this,h);n(this,c,new q.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,g,1);n(this,x,e=>{a(this,p,F.clamp(devicePixelRatio,1,2)),a(this,l,e.contentRect.width),a(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,P).call(this),o(this,h,S).call(this)});n(this,v,e=>{a(this,b,e.timestamp),a(this,g,e.timeBetweenFrames),o(this,h,S).call(this)});if(z.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets.push(B.createStylesheet({" :host, canvas":{display:"block",width:"100%",height:"100%"}})),a(this,r,document.createElement("canvas")),a(this,m,t(this,r).getContext("2d")),e.appendChild(t(this,r)),t(this,c).subscribe(d=>{typeof d.previous!="undefined"&&d.current!==d.previous&&o(this,h,E).call(this)})}}get fpsCSSProperty(){return t(this,c)}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,g)}}connectedCallback(){t(this,c).observe(),C.elementResizer.subscribe(this,t(this,x)),o(this,h,E).call(this)}disconnectedCallback(){t(this,c).unobserve(),C.elementResizer.unsubscribe(t(this,x)),o(this,h,k).call(this)}}c=new WeakMap,r=new WeakMap,m=new WeakMap,l=new WeakMap,u=new WeakMap,p=new WeakMap,b=new WeakMap,g=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,c).current})},k=function(){w.ticker.unsubscribe(t(this,v))},x=new WeakMap,v=new WeakMap,S=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))},P=function(){this.dispatchEvent(new CustomEvent("canvasResize",{composed:!0,detail:this.detail}))};customElements.get("e-canvas")||customElements.define("e-canvas",y);exports.CanvasElement=y;
|
package/lib/canvas/index.js
CHANGED
|
@@ -2,55 +2,52 @@ var S = (i) => {
|
|
|
2
2
|
throw TypeError(i);
|
|
3
3
|
};
|
|
4
4
|
var x = (i, s, e) => s.has(i) || S("Cannot " + e);
|
|
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,
|
|
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
6
|
import { CSSProperty as P } from "../css-property/index.js";
|
|
7
|
-
import "../Store-C46i0nvr.js";
|
|
8
|
-
import { c as z } from "../math-BOBiC4TN.js";
|
|
9
|
-
import { ticker as w } from "../ticker/index.js";
|
|
10
|
-
import { e as F, q as B } from "../tags-BL3kQp9o.js";
|
|
11
|
-
import { c as L } from "../createStylesheet-COAZH1Mw.js";
|
|
12
7
|
import { elementResizer as C } from "../element-resizer/index.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
var o, c, d, l, p, u, b, f, n, R, y, g, v, E, k;
|
|
21
|
-
class A extends HTMLElement {
|
|
8
|
+
import { ticker as w } from "../ticker/index.js";
|
|
9
|
+
import { i as z } from "../browser-0zX67oeU.js";
|
|
10
|
+
import { c as B } from "../jss-CjccJC-K.js";
|
|
11
|
+
import { c as F } from "../math-BOBiC4TN.js";
|
|
12
|
+
var o, r, d, m, l, u, b, f, n, R, y, g, v, E, k;
|
|
13
|
+
class L extends HTMLElement {
|
|
22
14
|
constructor() {
|
|
23
15
|
super();
|
|
24
16
|
h(this, n);
|
|
25
17
|
h(this, o, new P(this, "--fps", 0));
|
|
26
|
-
h(this,
|
|
18
|
+
h(this, r, null);
|
|
27
19
|
h(this, d, null);
|
|
20
|
+
h(this, m, 0);
|
|
28
21
|
h(this, l, 0);
|
|
29
|
-
h(this, p, 0);
|
|
30
22
|
h(this, u, 1);
|
|
31
23
|
h(this, b, 0);
|
|
32
24
|
h(this, f, 1);
|
|
33
25
|
h(this, g, (e) => {
|
|
34
|
-
a(this, u,
|
|
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, k).call(this), c(this, n, E).call(this);
|
|
35
27
|
});
|
|
36
28
|
h(this, v, (e) => {
|
|
37
|
-
a(this, b, e.timestamp), a(this, f, e.timeBetweenFrames),
|
|
38
|
-
});
|
|
39
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(q), F(this, {
|
|
40
|
-
children: B({
|
|
41
|
-
ref: (r) => {
|
|
42
|
-
a(this, c, r), a(this, d, r.getContext("2d"));
|
|
43
|
-
}
|
|
44
|
-
})
|
|
45
|
-
}), t(this, o).subscribe((r) => {
|
|
46
|
-
typeof r.previous != "undefined" && r.current !== r.previous && m(this, n, R).call(this);
|
|
29
|
+
a(this, b, e.timestamp), a(this, f, e.timeBetweenFrames), c(this, n, E).call(this);
|
|
47
30
|
});
|
|
31
|
+
if (z) {
|
|
32
|
+
const e = this.attachShadow({ mode: "open" });
|
|
33
|
+
e.adoptedStyleSheets.push(
|
|
34
|
+
B({
|
|
35
|
+
" :host, canvas": {
|
|
36
|
+
display: "block",
|
|
37
|
+
width: "100%",
|
|
38
|
+
height: "100%"
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
), a(this, r, document.createElement("canvas")), a(this, d, t(this, r).getContext("2d")), e.appendChild(t(this, r)), t(this, o).subscribe((p) => {
|
|
42
|
+
typeof p.previous != "undefined" && p.current !== p.previous && c(this, n, R).call(this);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
48
45
|
}
|
|
49
46
|
get fpsCSSProperty() {
|
|
50
47
|
return t(this, o);
|
|
51
48
|
}
|
|
52
49
|
get canvasElement() {
|
|
53
|
-
return t(this,
|
|
50
|
+
return t(this, r);
|
|
54
51
|
}
|
|
55
52
|
get context() {
|
|
56
53
|
return t(this, d);
|
|
@@ -59,17 +56,17 @@ class A extends HTMLElement {
|
|
|
59
56
|
return t(this, u);
|
|
60
57
|
}
|
|
61
58
|
get width() {
|
|
62
|
-
return t(this,
|
|
59
|
+
return t(this, m);
|
|
63
60
|
}
|
|
64
61
|
get height() {
|
|
65
|
-
return t(this,
|
|
62
|
+
return t(this, l);
|
|
66
63
|
}
|
|
67
64
|
get detail() {
|
|
68
65
|
return {
|
|
69
|
-
width: t(this,
|
|
70
|
-
height: t(this,
|
|
66
|
+
width: t(this, m),
|
|
67
|
+
height: t(this, l),
|
|
71
68
|
element: this,
|
|
72
|
-
canvasElement: t(this,
|
|
69
|
+
canvasElement: t(this, r),
|
|
73
70
|
pixelRatio: t(this, u),
|
|
74
71
|
context: t(this, d),
|
|
75
72
|
timestamp: t(this, b),
|
|
@@ -77,13 +74,13 @@ class A extends HTMLElement {
|
|
|
77
74
|
};
|
|
78
75
|
}
|
|
79
76
|
connectedCallback() {
|
|
80
|
-
t(this, o).observe(), C.subscribe(this, t(this, g)),
|
|
77
|
+
t(this, o).observe(), C.subscribe(this, t(this, g)), c(this, n, R).call(this);
|
|
81
78
|
}
|
|
82
79
|
disconnectedCallback() {
|
|
83
|
-
t(this, o).unobserve(), C.unsubscribe(t(this, g)),
|
|
80
|
+
t(this, o).unobserve(), C.unsubscribe(t(this, g)), c(this, n, y).call(this);
|
|
84
81
|
}
|
|
85
82
|
}
|
|
86
|
-
o = new WeakMap(),
|
|
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() {
|
|
87
84
|
w.unsubscribe(t(this, v)), this.hasAttribute("static") || w.subscribe(t(this, v), {
|
|
88
85
|
culling: this,
|
|
89
86
|
maxFPS: t(this, o).current
|
|
@@ -105,7 +102,7 @@ o = new WeakMap(), c = new WeakMap(), d = new WeakMap(), l = new WeakMap(), p =
|
|
|
105
102
|
})
|
|
106
103
|
);
|
|
107
104
|
};
|
|
108
|
-
customElements.get("e-canvas") || customElements.define("e-canvas",
|
|
105
|
+
customElements.get("e-canvas") || customElements.define("e-canvas", L);
|
|
109
106
|
export {
|
|
110
|
-
|
|
107
|
+
L as CanvasElement
|
|
111
108
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty,f=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var c=e=>{throw TypeError(e)};var a=(e,s,t)=>s in e?m(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,l=(e,s)=>{for(var t in s||(s={}))T.call(s,t)&&a(e,t,s[t]);if(u)for(var t of u(s))g.call(s,t)&&a(e,t,s[t]);return e},o=(e,s)=>f(e,L(s));var h=(e,s,t)=>s.has(e)||c("Cannot "+t);var n=(e,s,t)=>(h(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>s.has(e)?c("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),b=(e,s,t,r)=>(h(e,s,"write to private field"),r?r.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../Store-
|
|
1
|
+
"use strict";var m=Object.defineProperty,f=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var c=e=>{throw TypeError(e)};var a=(e,s,t)=>s in e?m(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,l=(e,s)=>{for(var t in s||(s={}))T.call(s,t)&&a(e,t,s[t]);if(u)for(var t of u(s))g.call(s,t)&&a(e,t,s[t]);return e},o=(e,s)=>f(e,L(s));var h=(e,s,t)=>s.has(e)||c("Cannot "+t);var n=(e,s,t)=>(h(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>s.has(e)?c("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),b=(e,s,t,r)=>(h(e,s,"write to private field"),r?r.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../Store-CDb6RMce.cjs"),S=require("../string-DhgS_iFl.cjs");var i;class q extends p.Store{constructor(t,r){super(r);d(this,i);b(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=o(l({},this.current),{[t]:r}),r?n(this,i).classList.add(S.camelToKebab(t)):n(this,i).classList.remove(S.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=q;
|
|
@@ -15,7 +15,7 @@ var c = (t, e, s) => e in t ? d(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
15
15
|
}, h = (t, e) => L(t, S(e));
|
|
16
16
|
var l = (t, e, s) => e.has(t) || o("Cannot " + s);
|
|
17
17
|
var n = (t, e, s) => (l(t, e, "read from private field"), s ? s.call(t) : e.get(t)), m = (t, e, s) => e.has(t) ? o("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), f = (t, e, s, r) => (l(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s);
|
|
18
|
-
import { S as T } from "../Store-
|
|
18
|
+
import { S as T } from "../Store-OTdcl6SX.js";
|
|
19
19
|
import { c as p } from "../string-f0Dnk0L1.js";
|
|
20
20
|
var i;
|
|
21
21
|
class g extends T {
|
package/lib/controls/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Q=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||Q("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)?Q("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,a)=>(F(h,n,"write to private field"),a?a.call(h,e):n.set(h,e),e),M=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),j=require("../dom-JBOkFLTh.cjs"),k=require("../ticker/index.cjs");require("../Store-
|
|
1
|
+
"use strict";var Q=h=>{throw TypeError(h)};var F=(h,n,e)=>n.has(h)||Q("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)?Q("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(h):n.set(h,e),i=(h,n,e,a)=>(F(h,n,"write to private field"),a?a.call(h,e):n.set(h,e),e),M=(h,n,e)=>(F(h,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),j=require("../dom-JBOkFLTh.cjs"),k=require("../ticker/index.cjs");require("../Store-CDb6RMce.cjs");const G=require("../easings-DsS5-Kqc.cjs"),J=require("../Tweened-B1TfANfR.cjs"),Z=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-CM4SCDTt.cjs"),_=require("../order/index.cjs");var S;class K{constructor(){s(this,S,new V.Notifier)}get changeEvent(){return t(this,S)}}S=new WeakMap;var w,d,u,D;class p extends K{constructor(e){super();s(this,w,null);s(this,d,null);s(this,u,"offsetHeight");s(this,D,e=>{const a=e.shiftKey?-1:1;let r;e.code==="Space"?r=a*t(this,d)[t(this,u)]*.4:e.code==="ArrowLeft"?r=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowRight"?r=1*t(this,d)[t(this,u)]*.2:e.code==="ArrowUp"?r=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowDown"?r=1*t(this,d)[t(this,u)]*.2:e.code==="PageUp"?r=-1*t(this,d)[t(this,u)]:e.code==="PageDown"?r=1*t(this,d)[t(this,u)]:e.code==="Home"?r=0:e.code==="End"&&(r=t(this,u)==="offsetWidth"?t(this,d).scrollWidth:t(this,d).scrollHeight),r&&(e.stopPropagation(),this.changeEvent.notify("keyboard",r))});m.isBrowser&&(i(this,w,e!=null&&e.element&&j.getElement(e.element)||window),i(this,d,t(this,w)instanceof HTMLElement?t(this,w):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){m.isBrowser&&t(this,w).addEventListener("keydown",t(this,D))}disconnect(){m.isBrowser&&t(this,w).removeEventListener("keydown",t(this,D))}}w=new WeakMap,d=new WeakMap,u=new WeakMap,D=new WeakMap;var b,E,H,P,l,C,f,o,R,N,q,W,B;class ee extends K{constructor(e){super();s(this,o);s(this,b);s(this,E);s(this,H);s(this,P);s(this,l);s(this,C);s(this,f);s(this,q);s(this,W);s(this,B);this.direction=1,i(this,l,new J.Tweened(0,{easing:G.easeInQuad})),i(this,f,!1),i(this,q,a=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",a.timeBetweenFrames*t(this,b)*this.direction*(1-t(this,l).current))}),i(this,W,()=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,b))*this.direction*(1-t(this,l).current))}),i(this,B,()=>{t(this,E)&&(document.hidden?t(this,l).set(1,{equalize:!0}):t(this,l).set(0,{equalize:!0}))}),i(this,b,(e==null?void 0:e.speed)||1),i(this,E,(e==null?void 0:e.interval)||!1),i(this,H,e)}set interval(e){i(this,E,e),t(this,f)&&M(this,o,R).call(this)}set speed(e){i(this,b,e),t(this,f)&&M(this,o,R).call(this)}connect(){t(this,f)||(i(this,f,!0),M(this,o,R).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),M(this,o,N).call(this))}pauseAndContinue(e){e&&!t(this,l).target&&(clearInterval(t(this,C)),t(this,l).set(1,{duration:Math.min(e,1e3)}),i(this,C,setTimeout(()=>{t(this,l).set(0,{duration:Math.min(e,5e3)})},e)))}}b=new WeakMap,E=new WeakMap,H=new WeakMap,P=new WeakMap,l=new WeakMap,C=new WeakMap,f=new WeakMap,o=new WeakSet,R=function(){M(this,o,N).call(this),t(this,E)?i(this,P,setInterval(t(this,W),Math.abs(t(this,b)))):k.ticker.subscribe(t(this,q),t(this,H)),document.addEventListener("visibilitychange",t(this,B))},N=function(){clearInterval(t(this,P)),k.ticker.unsubscribe(t(this,q)),clearInterval(t(this,C)),t(this,l).close(),document.removeEventListener("visibilitychange",t(this,B))},q=new WeakMap,W=new WeakMap,B=new WeakMap;var T,x,I,X;class te extends K{constructor(e){super();s(this,T,null);s(this,x);s(this,I);s(this,X,e=>{let a=0;if(e.preventDefault(),!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)*.5||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)*.5))if(a=(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 r=Date.now();if(r-t(this,I)>40&&(a=100*Math.sign(a)),i(this,I,r),Math.abs(a)<100||t(this,x))return;this.changeEvent.notify("wheel",a),i(this,x,setTimeout(()=>{i(this,x,void 0)},80))}else this.changeEvent.notify("wheel",a)});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,I,Date.now()),m.isBrowser&&i(this,T,e!=null&&e.element&&j.getElement(e.element)||window)}connect(){m.isBrowser&&t(this,T).addEventListener("wheel",t(this,X),{passive:!1})}disconnect(){m.isBrowser&&(t(this,T).removeEventListener("wheel",t(this,X)),clearTimeout(t(this,x)))}}T=new WeakMap,x=new WeakMap,I=new WeakMap,X=new WeakMap;var v,g,A,c,Y,L;const y=class y extends K{constructor(e){super();s(this,g,null);s(this,A,!1);s(this,c,0);s(this,Y,e=>{if(e.composedPath().find(r=>r instanceof HTMLElement&&r.hasAttribute("drag-dead-zone")))return;this.swipe||k.ticker.unsubscribe(t(this,L));let a=e;i(this,c,0),document.documentElement.classList.add("grabbing"),Z.setupDrag(r=>{if(t(this,A)||t(y,v)&&t(y,v)!==t(this,g))return;this.swipe&&i(this,A,!0);const z=a.x-r.x,O=a.y-r.y;this.axis==="x"?i(this,c,z):i(this,c,O),a=r,(this.axis==="x"&&Math.abs(z)>Math.abs(O)||this.axis==="y"&&Math.abs(O)>Math.abs(z))&&(i(y,v,t(this,g)),this.changeEvent.notify("drag",t(this,c)))},()=>{i(y,v,null),this.swipe||(i(this,c,t(this,c)*3),k.ticker.subscribe(t(this,L),{order:_.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),i(this,A,!1)})});s(this,L,()=>{Math.floor(t(this,c))||k.ticker.unsubscribe(t(this,L)),i(this,c,t(this,c)*.95),i(this,c,$.preciseNumber(t(this,c),3)),this.changeEvent.notify("drag",t(this,c))});this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,m.isBrowser&&i(this,g,e!=null&&e.element&&j.getElement(e.element)||document.documentElement)}connect(){m.isBrowser&&t(this,g).addEventListener("pointerdown",t(this,Y))}disconnect(){m.isBrowser&&(t(this,g).removeEventListener("pointerdown",t(this,Y)),k.ticker.unsubscribe(t(this,L)))}};v=new WeakMap,g=new WeakMap,A=new WeakMap,c=new WeakMap,Y=new WeakMap,L=new WeakMap,s(y,v,null);let U=y;exports.AutoplayControls=ee;exports.Controls=K;exports.DragControls=U;exports.KeyboardControls=p;exports.WheelControls=te;
|
package/lib/controls/index.js
CHANGED
|
@@ -5,11 +5,11 @@ var O = (h, n, e) => n.has(h) || Q("Cannot " + e);
|
|
|
5
5
|
var t = (h, n, e) => (O(h, n, "read from private field"), e ? e.call(h) : n.get(h)), s = (h, n, e) => n.has(h) ? Q("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(h) : n.set(h, e), i = (h, n, e, r) => (O(h, n, "write to private field"), r ? r.call(h, e) : n.set(h, e), e), M = (h, n, e) => (O(h, n, "access private method"), e);
|
|
6
6
|
import { Notifier as j } from "../notifier/index.js";
|
|
7
7
|
import { i as m } from "../browser-0zX67oeU.js";
|
|
8
|
-
import {
|
|
8
|
+
import { g as U } from "../dom-0S_WDL4g.js";
|
|
9
9
|
import { ticker as I } from "../ticker/index.js";
|
|
10
|
-
import "../Store-
|
|
10
|
+
import "../Store-OTdcl6SX.js";
|
|
11
11
|
import { e as G } from "../easings-BKi40vHz.js";
|
|
12
|
-
import { T as J } from "../Tweened-
|
|
12
|
+
import { T as J } from "../Tweened-C52xXDLY.js";
|
|
13
13
|
import { s as Z } from "../gestures-D2Fdra_G.js";
|
|
14
14
|
import { p as $ } from "../polyfills-X6KXuHg-.js";
|
|
15
15
|
import { TICK_ORDER as p } 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-CDb6RMce.cjs"),v=require("../dom-JBOkFLTh.cjs"),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));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,11 +5,11 @@ 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
|
|
9
|
-
import {
|
|
8
|
+
import { S as g } from "../Store-OTdcl6SX.js";
|
|
9
|
+
import { g as v } from "../dom-0S_WDL4g.js";
|
|
10
10
|
import { windowResizer as w } from "../window-resizer/index.js";
|
|
11
11
|
var b, o, u, l, c, n;
|
|
12
|
-
class d extends
|
|
12
|
+
class d extends g {
|
|
13
13
|
constructor(e, a, m, f) {
|
|
14
14
|
super(m, f);
|
|
15
15
|
h(this, b);
|
|
@@ -20,7 +20,7 @@ class d extends v {
|
|
|
20
20
|
h(this, n, () => {
|
|
21
21
|
this.check();
|
|
22
22
|
});
|
|
23
|
-
i(this, b,
|
|
23
|
+
i(this, b, v(e)), i(this, o, a), i(this, u, m.toString()), i(this, l, (f == null ? void 0 : f.rawValueCheck) !== !1);
|
|
24
24
|
}
|
|
25
25
|
get currentRawValue() {
|
|
26
26
|
return t(this, u);
|
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-CDb6RMce.cjs"),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;
|
package/lib/dev/index.js
CHANGED
package/lib/device/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-BDPsnAF4.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
|
package/lib/device/index.js
CHANGED