aptechka 0.44.0 → 0.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Animation-D1lL_XhF.cjs +1 -0
- package/lib/Animation-Je56LXXj.js +106 -0
- package/lib/{Damped-DxylD27S.js → Damped-BMmEn7PH.js} +4 -3
- package/lib/Damped-BbJjFOLH.cjs +1 -0
- package/lib/{Store-Cm3LPXlx.js → Store-D2xCXENW.js} +1 -1
- package/lib/Store-DRp_K37w.cjs +1 -0
- package/lib/{Tweened-p5hYr6lL.js → Tweened-BNCj14Jz.js} +4 -3
- package/lib/Tweened-Dk1UNPSH.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +11 -11
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +12 -11
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +7 -6
- package/lib/custom-scrollbar/index.cjs +1 -1
- package/lib/custom-scrollbar/index.js +13 -12
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +7 -6
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +1 -1
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +9 -8
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +6 -5
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +5 -4
- package/lib/index-Cqw2NKev.cjs +1 -0
- package/lib/index-euf5anj6.js +64 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +4 -61
- package/lib/{jss-CjccJC-K.js → jss-BQSxj7Ls.js} +1 -1
- package/lib/jss-B_mh4mIw.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +35 -34
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +10 -9
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +17 -16
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +7 -6
- package/lib/morph/MorphAnnouncer.d.ts +0 -1
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +57 -57
- package/lib/need_redo_tweaker/index.cjs +3 -3
- package/lib/need_redo_tweaker/index.js +260 -260
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +34 -33
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +25 -25
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +3 -3
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +278 -278
- package/lib/scroll-segment/index.cjs +1 -1
- package/lib/scroll-segment/index.js +57 -56
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +6 -6
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +12 -11
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +10 -9
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +13 -12
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/url-CLvdjbII.cjs +1 -0
- package/lib/{url-D0bFvcuq.js → url-CfcHdBT6.js} +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +163 -148
- package/lib/utils/timeouts.d.ts +5 -0
- package/lib/utils/url.d.ts +5 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +7 -6
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +13 -12
- package/package.json +1 -1
- package/lib/Animation-CMiBKrwE.cjs +0 -1
- package/lib/Animation-DPRlQfW2.js +0 -105
- package/lib/Damped-CHZ314Rn.cjs +0 -1
- package/lib/Store-C2J4Q87x.cjs +0 -1
- package/lib/Tweened-Dn6CMA-p.cjs +0 -1
- package/lib/browser-0zX67oeU.js +0 -4
- package/lib/browser-CpzFX2xg.cjs +0 -1
- package/lib/jss-GJLvaNfT.cjs +0 -1
- package/lib/url-Bn9ZrvT3.cjs +0 -1
package/lib/dev/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CSSProperty as o } from "../css-property/index.js";
|
|
2
|
-
import { a as
|
|
3
|
-
import
|
|
2
|
+
import { a as e } from "../Store-D2xCXENW.js";
|
|
3
|
+
import "../index-euf5anj6.js";
|
|
4
|
+
import { ticker as i } from "../ticker/index.js";
|
|
4
5
|
function s() {
|
|
5
|
-
|
|
6
|
-
for (let r = 0; r <
|
|
7
|
-
const
|
|
8
|
-
|
|
6
|
+
i.subscribe(() => {
|
|
7
|
+
for (let r = 0; r < e.current.length; r++) {
|
|
8
|
+
const t = e.current[r];
|
|
9
|
+
t instanceof o && t.check();
|
|
9
10
|
}
|
|
10
11
|
});
|
|
11
12
|
}
|
package/lib/device/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var P=t=>{throw TypeError(t)};var S=(t,s,n)=>s.has(t)||P("Cannot "+n);var i=(t,s,n)=>(S(t,s,"read from private field"),n?n.call(t):s.get(t)),o=(t,s,n)=>s.has(t)?P("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,n),e=(t,s,n,f)=>(S(t,s,"write to private field"),f?f.call(t,n):s.set(t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../order/index.cjs"),k=require("../window-resizer/index.cjs"),z=require("../
|
|
1
|
+
"use strict";var P=t=>{throw TypeError(t)};var S=(t,s,n)=>s.has(t)||P("Cannot "+n);var i=(t,s,n)=>(S(t,s,"read from private field"),n?n.call(t):s.get(t)),o=(t,s,n)=>s.has(t)?P("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,n),e=(t,s,n,f)=>(S(t,s,"write to private field"),f?f.call(t,n):s.set(t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../order/index.cjs"),k=require("../window-resizer/index.cjs"),z=require("../index-Cqw2NKev.cjs"),D=require("../Store-DRp_K37w.cjs");var r,p,b,d,a,u,l,c;class M{constructor(){o(this,r);o(this,p);o(this,b);o(this,d);o(this,a);o(this,u);o(this,l);o(this,c);var s,n;if(e(this,r,"unknown"),e(this,p,"unknown"),e(this,b,0),e(this,d,!1),e(this,a,!1),e(this,u,!1),e(this,l,!1),e(this,c,!1),this.resize=()=>{e(this,d,/Mobi|Android/i.test(navigator.userAgent)),e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,a,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},z.isBrowser){this.resize(),k.windowResizer.subscribe(this.resize,W.RESIZE_ORDER.DEVICE);{const x=document.createElement("canvas"),E=x.getContext("webgl")||x.getContext("experimental-webgl");e(this,u,E&&E instanceof WebGLRenderingContext||!1)}{const x=document.createElement("canvas");x.getContext("2d")&&e(this,l,x.toDataURL("image/webp").indexOf("data:image/webp")==0)}const f=window.navigator.userAgent,v=((n=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:n.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],R=["Win32","Win64","Windows","WinCE"],T=["iPhone","iPad","iPod"];C.includes(v)?(e(this,r,"macOS"),e(this,c,!0)):T.includes(v)?(e(this,r,"iOS"),e(this,c,!0)):R.includes(v)?e(this,r,"Windows"):/Android/.test(f)?e(this,r,"Android"):/Linux/.test(v)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,p)}get gpuTier(){return i(this,b)}get isMobile(){return i(this,d)}get isTouch(){return i(this,a)}get isWebgl(){return i(this,u)}get isWebp(){return i(this,l)}get isApple(){return i(this,c)}}r=new WeakMap,p=new WeakMap,b=new WeakMap,d=new WeakMap,a=new WeakMap,u=new WeakMap,l=new WeakMap,c=new WeakMap;const I=new M;var A=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(A||{}),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||{}),m,g,w,h;class _{constructor(){o(this,m);o(this,g);o(this,w);o(this,h);e(this,m,0),e(this,g,0),e(this,w,0),e(this,h,new D.Store(void 0)),this.resize=()=>{e(this,m,document.documentElement.clientWidth),e(this,g,innerHeight),e(this,w,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")},z.isBrowser&&(this.resize(),k.windowResizer.subscribe(this.resize,W.RESIZE_ORDER.DEVICE))}get width(){return i(this,m)}get height(){return i(this,g)}get type(){return i(this,h)}get pixelRatio(){return i(this,w)}}m=new WeakMap,g=new WeakMap,w=new WeakMap,h=new WeakMap;const q=new _;exports.ViewportBreakpoints=A;exports.ViewportMediaRules=O;exports.device=I;exports.viewport=q;
|
package/lib/device/index.js
CHANGED
|
@@ -5,8 +5,8 @@ var W = (t, s, n) => s.has(t) || P("Cannot " + n);
|
|
|
5
5
|
var e = (t, s, n) => (W(t, s, "read from private field"), n ? n.call(t) : s.get(t)), o = (t, s, n) => s.has(t) ? P("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, n), i = (t, s, n, b) => (W(t, s, "write to private field"), b ? b.call(t, n) : s.set(t, n), n);
|
|
6
6
|
import { RESIZE_ORDER as A } from "../order/index.js";
|
|
7
7
|
import { windowResizer as k } from "../window-resizer/index.js";
|
|
8
|
-
import { i as C } from "../
|
|
9
|
-
import { S as T } from "../Store-
|
|
8
|
+
import { i as C } from "../index-euf5anj6.js";
|
|
9
|
+
import { S as T } from "../Store-D2xCXENW.js";
|
|
10
10
|
var h, w, f, m, a, d, l, c;
|
|
11
11
|
class D {
|
|
12
12
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var h=
|
|
1
|
+
"use strict";var h=n=>{throw TypeError(n)};var y=(n,s,t)=>s.has(n)||h("Cannot "+t);var r=(n,s,t)=>(y(n,s,"read from private field"),t?t.call(n):s.get(n)),u=(n,s,t)=>s.has(n)?h("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(n):s.set(n,t),f=(n,s,t,e)=>(y(n,s,"write to private field"),e?e.call(n,t):s.set(n,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../index-Cqw2NKev.cjs"),v=require("../dom-JBOkFLTh.cjs");var i,o,b;class d{constructor(){u(this,i,[]);u(this,o,null);u(this,b,s=>{r(this,i).map(e=>({subscriber:e,entry:s.find(l=>l.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});z.isBrowser&&window.ResizeObserver&&f(this,o,new ResizeObserver(r(this,b)))}subscribe(s,t){const e=v.getElement(s);if(!e)return()=>{};const l=r(this,i).find(c=>c.element===e);if(!l)r(this,o).observe(e);else{const c=r(this,i).find(m=>m.element===e&&m.entry);c!=null&&c.element.isConnected&&t(c.entry)}return r(this,i).push({element:e,callback:t,entry:(l==null?void 0:l.entry)||null}),()=>{this.unsubscribe(t)}}unsubscribe(s){const t=r(this,i).find(e=>e.callback===s);t&&(f(this,i,r(this,i).filter(e=>e.callback!==t.callback)),r(this,i).find(e=>e.element===t.element)||r(this,o).unobserve(t.element))}}i=new WeakMap,o=new WeakMap,b=new WeakMap;const w=new d;exports.ElementResizer=d;exports.elementResizer=w;
|
|
@@ -3,7 +3,7 @@ var h = (n) => {
|
|
|
3
3
|
};
|
|
4
4
|
var y = (n, t, s) => t.has(n) || h("Cannot " + s);
|
|
5
5
|
var r = (n, t, s) => (y(n, t, "read from private field"), s ? s.call(n) : t.get(n)), b = (n, t, s) => t.has(n) ? h("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), u = (n, t, s, e) => (y(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
|
|
6
|
-
import { i as p } from "../
|
|
6
|
+
import { i as p } from "../index-euf5anj6.js";
|
|
7
7
|
import { g as w } from "../dom-CVWzyXPH.js";
|
|
8
8
|
var i, o, f;
|
|
9
9
|
class z {
|
package/lib/en3/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var de=Object.defineProperty,ue=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable;var Q=s=>{throw TypeError(s)};var J=(s,e,i)=>e in s?de(s,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[e]=i,k=(s,e)=>{for(var i in e||(e={}))fe.call(e,i)&&J(s,i,e[i]);if(Z)for(var i of Z(e))ge.call(e,i)&&J(s,i,e[i]);return s},ee=(s,e)=>ue(s,me(e));var te=(s,e,i)=>e.has(s)||Q("Cannot "+i);var t=(s,e,i)=>(te(s,e,"read from private field"),i?i.call(s):e.get(s)),r=(s,e,i)=>e.has(s)?Q("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,i),n=(s,e,i,a)=>(te(s,e,"write to private field"),a?a.call(s,i):e.set(s,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("../order/index.cjs"),se=require("../window-resizer/index.cjs"),re=require("../ticker/index.cjs"),ae=require("../dom-JBOkFLTh.cjs")
|
|
1
|
+
"use strict";var de=Object.defineProperty,ue=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable;var Q=s=>{throw TypeError(s)};var J=(s,e,i)=>e in s?de(s,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[e]=i,k=(s,e)=>{for(var i in e||(e={}))fe.call(e,i)&&J(s,i,e[i]);if(Z)for(var i of Z(e))ge.call(e,i)&&J(s,i,e[i]);return s},ee=(s,e)=>ue(s,me(e));var te=(s,e,i)=>e.has(s)||Q("Cannot "+i);var t=(s,e,i)=>(te(s,e,"read from private field"),i?i.call(s):e.get(s)),r=(s,e,i)=>e.has(s)?Q("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,i),n=(s,e,i,a)=>(te(s,e,"write to private field"),a?a.call(s,i):e.set(s,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("../order/index.cjs"),se=require("../window-resizer/index.cjs"),re=require("../ticker/index.cjs"),ae=require("../dom-JBOkFLTh.cjs");require("../index-Cqw2NKev.cjs");const u=require("three"),ne=require("../layout-box/index.cjs");function he(s){const e=i=>{i.dispose();for(const a of Object.keys(i)){const h=i[a];h&&typeof h=="object"&&"minFilter"in h&&h.dispose()}};s.traverse(i=>{if(i instanceof u.Mesh){if(i.geometry.dispose(),!Array.isArray(i.material)&&i.material.isMaterial)e(i.material);else if(Array.isArray(i.material))for(const a of i.material)e(a)}})}var P,o,C,v,w,O,D,R;class X{constructor(e,i){r(this,P);r(this,o);r(this,C);r(this,v);r(this,w);r(this,O);r(this,D);r(this,R);n(this,P,e),n(this,o,(i==null?void 0:i.cameraType)==="orthographic"?new u.OrthographicCamera:new u.PerspectiveCamera),n(this,C,new u.Scene),n(this,v,[]),n(this,w,(i==null?void 0:i.cameraDistance)||1e3),t(this,o).near=(i==null?void 0:i.cameraNear)||1,t(this,o).far=(i==null?void 0:i.cameraFar)||11e3,n(this,O,(i==null?void 0:i.cameraFov)||"auto"),t(this,o).position.z=t(this,w),t(this,o).name=`Cameras.${t(this,P)}`,n(this,D,ae.getElement(i==null?void 0:i.sizeElement)||document.documentElement),this.beforeRenderCallback=i==null?void 0:i.beforeRender,n(this,R,new ne.LayoutBox(t(this,D))),t(this,R).onResize(()=>{this.resize()})}get name(){return t(this,P)}get camera(){return t(this,o)}get scene(){return t(this,C)}get box(){return t(this,R)}get cameraDistance(){return t(this,w)}set cameraDistance(e){n(this,w,e),this.resize()}get sizeElement(){return t(this,D)}get isClipped(){return t(this,D)!==d.containerElement}resize(){const{width:e,height:i}=t(this,R);t(this,o).userData.controlled||(t(this,o).position.z=t(this,w)),t(this,o)instanceof u.PerspectiveCamera?(t(this,o).aspect=e/i,t(this,o).fov=t(this,O)==="auto"?2*Math.atan(i/2/t(this,w))*(180/Math.PI):t(this,o).userData.controlled?t(this,o).fov:t(this,O)):t(this,o)instanceof u.OrthographicCamera&&(t(this,o).left=e/-2,t(this,o).right=e/2,t(this,o).top=i/2,t(this,o).bottom=i/-2),t(this,o).updateProjectionMatrix()}destroy(){t(this,v).forEach(e=>{e.userData.box.destroy()}),t(this,C).clear(),he(t(this,C)),d.destroyView(this.name),t(this,R).destroy()}attachToHTMLElement(e,i,a){const h=new ne.LayoutBox(e,ee(k({},a),{containerElement:t(this,D),cartesian:!0,scrollStep:!this.isClipped}));return h.bindObject(i),i.userData.box=h,t(this,v).push(i),i}detachFromHTMLElement(e){n(this,v,t(this,v).filter(i=>i===e?(e.userData.box.destroy(),!1):!0))}add(...e){const i=e[0],a=e[1],h=e[2];return a&&this.attachToHTMLElement(a,i,h),this.scene.add(i),i}remove(e,i){this.scene.remove(e),i&&this.detachFromHTMLElement(e)}}P=new WeakMap,o=new WeakMap,C=new WeakMap,v=new WeakMap,w=new WeakMap,O=new WeakMap,D=new WeakMap,R=new WeakMap;var A,q,F,z,I;class xe{constructor(e){r(this,A);r(this,q);r(this,F);r(this,z);r(this,I);n(this,A,e.targetName||void 0),n(this,q,e.eventDispatcher||e.object3D),n(this,F,e.propagation||!1),n(this,z,e.object3D),n(this,I,t(this,A)?()=>t(this,z).getObjectByName(t(this,A))||t(this,z):()=>t(this,z))}get object3D(){return t(this,z)}get eventDispatcher(){return t(this,q)}get propagation(){return t(this,F)}get target(){return t(this,I).call(this)}dispatch(e,i){this.eventDispatcher.dispatchEvent(k({originalEvent:i,type:e},this.intersection))}}A=new WeakMap,q=new WeakMap,F=new WeakMap,z=new WeakMap,I=new WeakMap;var E,m,H,N,_,B,W;class ye{constructor(){r(this,E,[]);r(this,m,[]);r(this,H,new u.Vector2);r(this,N,new u.Raycaster);r(this,_,e=>{for(let i=0;i<t(this,m).length;i++)t(this,m)[i].dispatch("pointerDown",e)});r(this,B,e=>{for(let i=0;i<t(this,m).length;i++)t(this,m)[i].dispatch("pointerUp",e)});r(this,W,e=>{if(!t(this,E).length)return;t(this,H).x=e.clientX/d.width*2-1,t(this,H).y=-(e.clientY/d.height)*2+1,d.camera&&t(this,N).setFromCamera(t(this,H),d.camera);const i=[];for(const c of t(this,E)){const f=t(this,N).intersectObject(c.target);f.length&&(c.intersection=f[0],i.push(c))}let a=!1;const h=t(this,m).filter(c=>!i.find(f=>f.object3D.uuid===c.object3D.uuid)),y=i.sort((c,f)=>f.object3D.position.z-c.object3D.position.z).filter((c,f)=>a?(h.push(c),!1):(a=!c.propagation,!0)),p=y.filter(c=>!t(this,m).find(f=>f.object3D.uuid===c.object3D.uuid));for(let c=0;c<h.length;c++)h[c].dispatch("pointerLeave",e);for(let c=0;c<p.length;c++)p[c].dispatch("pointerEnter",e);n(this,m,y);for(let c=0;c<t(this,m).length;c++)t(this,m)[c].dispatch("pointerMove",e)});d.containerElement.addEventListener("pointerdown",t(this,_)),d.containerElement.addEventListener("pointerup",t(this,B)),d.containerElement.addEventListener("pointermove",t(this,W))}destroy(){d.containerElement.removeEventListener("pointerdown",t(this,_)),d.containerElement.removeEventListener("pointerup",t(this,B)),d.containerElement.removeEventListener("pointermove",t(this,W)),n(this,E,[]),n(this,m,[])}add(e,i){if(t(this,E).find(h=>h.object3D.uuid===e.uuid))return;const a=new xe(k({object3D:e},i));t(this,E).push(a)}remove(e){n(this,E,t(this,E).filter(i=>i.object3D.uuid!==e.uuid)),n(this,m,t(this,m).filter(i=>i.object3D.uuid!==e.uuid))}}E=new WeakMap,m=new WeakMap,H=new WeakMap,N=new WeakMap,_=new WeakMap,B=new WeakMap,W=new WeakMap;var U,b,l,j,g,M,T,L,Y,S,x,$,G;class Ee{constructor(){r(this,U,`https://unpkg.com/three@0.${u.REVISION}.x`);r(this,b,null);r(this,l,null);r(this,j,null);r(this,g,new Map);r(this,M,0);r(this,T,0);r(this,L,0);r(this,Y,2);r(this,S,!1);r(this,x,null);r(this,$,()=>{n(this,M,t(this,b).clientWidth),n(this,T,t(this,b).clientHeight),n(this,L,Math.min(t(this,Y),devicePixelRatio||1)),t(this,l).setPixelRatio(t(this,L)),t(this,l).setSize(t(this,M),t(this,T)),t(this,x)&&(t(this,x).setPixelRatio(t(this,L)),t(this,x).setSize(t(this,M),t(this,T)))});r(this,G,()=>{t(this,l).setRenderTarget(null),t(this,g).forEach(e=>{this.render(e)})})}get CDNVersion(){return t(this,U)}get containerElement(){return t(this,b)}get webglRenderer(){return t(this,l)}get raycaster(){return t(this,j)}get views(){return t(this,g)}get view(){return this.getView("default")}get camera(){return this.getView("default").camera}get scene(){return this.getView("default").scene}get width(){return t(this,M)}get height(){return t(this,T)}get pixelRatio(){return t(this,L)}get composer(){return t(this,x)}setup(e){if(t(this,S)){console.warn("[en3.setup]: You are trying to setup en3 again.");return}n(this,b,ae.getElement(e==null?void 0:e.containerElement)||document.body),n(this,Y,(e==null?void 0:e.maxPixelRatio)||2),n(this,l,new u.WebGLRenderer(e==null?void 0:e.webGLRendererParameters)),t(this,l).domElement.style.cssText=`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 0;
|
|
4
4
|
top: 0;
|
package/lib/en3/index.js
CHANGED
|
@@ -19,6 +19,7 @@ import { RESIZE_ORDER as be, TICK_ORDER as ye } from "../order/index.js";
|
|
|
19
19
|
import { windowResizer as se } from "../window-resizer/index.js";
|
|
20
20
|
import { ticker as re } from "../ticker/index.js";
|
|
21
21
|
import { g as ce } from "../dom-CVWzyXPH.js";
|
|
22
|
+
import "../index-euf5anj6.js";
|
|
22
23
|
import { Mesh as Z, OrthographicCamera as X, PerspectiveCamera as he, Scene as xe, Vector2 as we, Raycaster as pe, REVISION as De, WebGLRenderer as Re, Vector3 as q } from "three";
|
|
23
24
|
import { LayoutBox as ne } from "../layout-box/index.js";
|
|
24
25
|
function ve(s) {
|
|
@@ -329,13 +330,13 @@ class Le {
|
|
|
329
330
|
}
|
|
330
331
|
U = new WeakMap(), y = new WeakMap(), l = new WeakMap(), O = new WeakMap(), f = new WeakMap(), L = new WeakMap(), T = new WeakMap(), C = new WeakMap(), $ = new WeakMap(), M = new WeakMap(), g = new WeakMap(), B = new WeakMap(), G = new WeakMap();
|
|
331
332
|
const u = new Le();
|
|
332
|
-
function
|
|
333
|
+
function ke(s, e, i) {
|
|
333
334
|
const n = e.x, a = e.y, z = i || s.image.width / s.image.height;
|
|
334
335
|
let E = 0, w = 0, c = s.offset.x, m = s.offset.y, oe = s.rotation, le = s.center.x, de = s.center.y;
|
|
335
336
|
n / a > z ? (E = 1, w = a / n * z) : (w = 1, E = n / a / z), s.matrix.setUvTransform(c, m, E, w, oe, le, de);
|
|
336
337
|
}
|
|
337
338
|
const K = new q(), Te = new q();
|
|
338
|
-
function
|
|
339
|
+
function Fe(s, e = "default") {
|
|
339
340
|
const i = u.getView(e), { width: n, height: a } = u, z = n / a;
|
|
340
341
|
s instanceof q ? K.copy(s) : K.set(...s);
|
|
341
342
|
const E = i.camera.getWorldPosition(Te).distanceTo(K);
|
|
@@ -352,22 +353,22 @@ function ke(s, e = "default") {
|
|
|
352
353
|
return { width: m, height: c, factor: n / m, distance: E, aspect: z };
|
|
353
354
|
}
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
+
function Ie(s, e) {
|
|
356
357
|
s.traverse((i) => {
|
|
357
358
|
i instanceof Z && i.material && (Array.isArray(i.material) ? i.material : [i.material]).forEach(e);
|
|
358
359
|
});
|
|
359
360
|
}
|
|
360
|
-
function
|
|
361
|
+
function Ne(s, e) {
|
|
361
362
|
s.traverse((i) => {
|
|
362
363
|
i instanceof Z && e(i);
|
|
363
364
|
});
|
|
364
365
|
}
|
|
365
366
|
export {
|
|
366
367
|
ae as En3View,
|
|
367
|
-
|
|
368
|
+
ke as coverTexture,
|
|
368
369
|
ve as dispose,
|
|
369
370
|
u as en3,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
371
|
+
Fe as getCurrentViewport,
|
|
372
|
+
Ie as traverseMaterials,
|
|
373
|
+
Ne as traverseMeshes
|
|
373
374
|
};
|
package/lib/iframe/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var u=r=>{throw TypeError(r)};var a=(r,t,e)=>t.has(r)||u("Cannot "+e);var s=(r,t,e)=>(a(r,t,"read from private field"),e?e.call(r):t.get(r)),o=(r,t,e)=>t.has(r)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),c=(r,t,e,i)=>(a(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-
|
|
1
|
+
"use strict";var u=r=>{throw TypeError(r)};var a=(r,t,e)=>t.has(r)||u("Cannot "+e);var s=(r,t,e)=>(a(r,t,"read from private field"),e?e.call(r):t.get(r)),o=(r,t,e)=>t.has(r)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),c=(r,t,e,i)=>(a(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const f=require("../index-Cqw2NKev.cjs");var n,l,m;class E extends h.SourceElement{constructor(){super({sourceSetOptions:{mediaBuckets:!1}});o(this,n,null);o(this,l,()=>{var e,i;(i=(e=this.consumerElement).onload)==null||i.call(e,new Event("load"))});o(this,m,()=>{var e,i;(i=(e=this.consumerElement).onload)==null||i.call(e,new Event("error"))})}createConsumer(){return document.createElement("div")}consumeSource(e){s(this,n)&&(s(this,n).onload=null,s(this,n).onerror=null),this.consumerElement.innerHTML=(e==null?void 0:e.replace(/\\u003C/g,"<").replace(/\\u003E/g,">").replace(/\\"/g,'"'))||"",c(this,n,this.consumerElement.querySelector("iframe")),s(this,n)&&(s(this,n).onload=s(this,l),s(this,n).onerror=s(this,m))}}n=new WeakMap,l=new WeakMap,m=new WeakMap;f.isBrowser&&!customElements.get("e-iframe")&&customElements.define("e-iframe",E);exports.IFrameElement=E;
|
package/lib/iframe/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = (r) => {
|
|
2
2
|
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var s = (r, t, e) => (
|
|
4
|
+
var u = (r, t, e) => t.has(r) || a("Cannot " + e);
|
|
5
|
+
var s = (r, t, e) => (u(r, t, "read from private field"), e ? e.call(r) : t.get(r)), i = (r, t, e) => t.has(r) ? a("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), c = (r, t, e, o) => (u(r, t, "write to private field"), o ? o.call(r, e) : t.set(r, e), e);
|
|
6
6
|
import { SourceElement as E } from "../source/index.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
8
|
+
import "../Store-D2xCXENW.js";
|
|
9
|
+
import { i as f } from "../index-euf5anj6.js";
|
|
9
10
|
var n, m, l;
|
|
10
11
|
class h extends E {
|
|
11
12
|
constructor() {
|
|
@@ -32,7 +33,7 @@ class h extends E {
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
n = new WeakMap(), m = new WeakMap(), l = new WeakMap();
|
|
35
|
-
customElements.get("e-iframe")
|
|
36
|
+
f && !customElements.get("e-iframe") && customElements.define("e-iframe", h);
|
|
36
37
|
export {
|
|
37
38
|
h as IFrameElement
|
|
38
39
|
};
|
package/lib/image/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../device/index.cjs"),i=require("../source/index.cjs");require("../window-resizer/index.cjs");require("../Store-DRp_K37w.cjs");const n=require("../index-Cqw2NKev.cjs");class t extends i.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(e){if(e&&this.hasAttribute("webp")&&r.device.isWebp){const s=e.split(".").slice(0,-1).join(".")+".webp";this.consumerElement.src=s}else this.consumerElement.src=e||""}}n.isBrowser&&!customElements.get("e-image")&&customElements.define("e-image",t);exports.ImageElement=t;
|
package/lib/image/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { device as m } from "../device/index.js";
|
|
2
2
|
import { SourceElement as s } from "../source/index.js";
|
|
3
3
|
import "../window-resizer/index.js";
|
|
4
|
-
import "../Store-
|
|
5
|
-
|
|
4
|
+
import "../Store-D2xCXENW.js";
|
|
5
|
+
import { i } from "../index-euf5anj6.js";
|
|
6
|
+
class r extends s {
|
|
6
7
|
createConsumer() {
|
|
7
8
|
return document.createElement("img");
|
|
8
9
|
}
|
|
@@ -14,7 +15,7 @@ class i extends s {
|
|
|
14
15
|
this.consumerElement.src = e || "";
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
customElements.get("e-image")
|
|
18
|
+
i && !customElements.get("e-image") && customElements.define("e-image", r);
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
r as ImageElement
|
|
20
21
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=s=>{throw TypeError(s)};var w=(s,t,n)=>t.has(s)||d("Cannot "+n);var r=(s,t,n)=>(w(s,t,"read from private field"),n?n.call(s):t.get(s)),f=(s,t,n)=>t.has(s)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,n),h=(s,t,n,e)=>(w(s,t,"write to private field"),e?e.call(s,n):t.set(s,n),n);const p=require("./dom-JBOkFLTh.cjs"),y=typeof window!="undefined"&&typeof window.document!="undefined";var i,u,b;class m{constructor(){f(this,i,[]);f(this,u,null);f(this,b,t=>{r(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});y&&window.IntersectionObserver&&h(this,u,new IntersectionObserver(r(this,b)))}subscribe(t,n){const e=p.getElement(t);if(!e)return()=>{};const o=r(this,i).find(c=>c.element===e);if(!o)r(this,u).observe(e);else{const c=r(this,i).find(l=>l.element===e&&l.entry);c!=null&&c.entry.isIntersecting&&n(c.entry)}return r(this,i).push({element:e,callback:n,entry:(o==null?void 0:o.entry)||null}),()=>{this.unsubscribe(n)}}unsubscribe(t){const n=r(this,i).find(e=>e.callback===t);n&&(h(this,i,r(this,i).filter(e=>e.callback!==t)),r(this,i).find(e=>e.element===n.element)||r(this,u).unobserve(n.element))}}i=new WeakMap,u=new WeakMap,b=new WeakMap;const v=new m;exports.Intersector=m;exports.intersector=v;exports.isBrowser=y;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var m = (s) => {
|
|
2
|
+
throw TypeError(s);
|
|
3
|
+
};
|
|
4
|
+
var y = (s, t, n) => t.has(s) || m("Cannot " + n);
|
|
5
|
+
var i = (s, t, n) => (y(s, t, "read from private field"), n ? n.call(s) : t.get(s)), u = (s, t, n) => t.has(s) ? m("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, n), h = (s, t, n, e) => (y(s, t, "write to private field"), e ? e.call(s, n) : t.set(s, n), n);
|
|
6
|
+
import { g as d } from "./dom-CVWzyXPH.js";
|
|
7
|
+
const w = typeof window != "undefined" && typeof window.document != "undefined";
|
|
8
|
+
var r, f, b;
|
|
9
|
+
class p {
|
|
10
|
+
constructor() {
|
|
11
|
+
u(this, r, []);
|
|
12
|
+
u(this, f, null);
|
|
13
|
+
u(this, b, (t) => {
|
|
14
|
+
i(this, r).map((e) => ({
|
|
15
|
+
subscriber: e,
|
|
16
|
+
entry: t.find((o) => o.target === e.element)
|
|
17
|
+
})).forEach((e) => {
|
|
18
|
+
e.entry && (e.subscriber.entry = e.entry, e.subscriber.callback(e.entry));
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
w && window.IntersectionObserver && h(this, f, new IntersectionObserver(
|
|
22
|
+
i(this, b)
|
|
23
|
+
));
|
|
24
|
+
}
|
|
25
|
+
subscribe(t, n) {
|
|
26
|
+
const e = d(t);
|
|
27
|
+
if (!e)
|
|
28
|
+
return () => {
|
|
29
|
+
};
|
|
30
|
+
const o = i(this, r).find(
|
|
31
|
+
(c) => c.element === e
|
|
32
|
+
);
|
|
33
|
+
if (!o)
|
|
34
|
+
i(this, f).observe(e);
|
|
35
|
+
else {
|
|
36
|
+
const c = i(this, r).find(
|
|
37
|
+
(l) => l.element === e && l.entry
|
|
38
|
+
);
|
|
39
|
+
c != null && c.entry.isIntersecting && n(c.entry);
|
|
40
|
+
}
|
|
41
|
+
return i(this, r).push({
|
|
42
|
+
element: e,
|
|
43
|
+
callback: n,
|
|
44
|
+
entry: (o == null ? void 0 : o.entry) || null
|
|
45
|
+
}), () => {
|
|
46
|
+
this.unsubscribe(n);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
unsubscribe(t) {
|
|
50
|
+
const n = i(this, r).find(
|
|
51
|
+
(e) => e.callback === t
|
|
52
|
+
);
|
|
53
|
+
n && (h(this, r, i(this, r).filter(
|
|
54
|
+
(e) => e.callback !== t
|
|
55
|
+
)), i(this, r).find((e) => e.element === n.element) || i(this, f).unobserve(n.element));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
r = new WeakMap(), f = new WeakMap(), b = new WeakMap();
|
|
59
|
+
const I = new p();
|
|
60
|
+
export {
|
|
61
|
+
p as I,
|
|
62
|
+
I as a,
|
|
63
|
+
w as i
|
|
64
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Cqw2NKev.cjs");require("../dom-JBOkFLTh.cjs");exports.Intersector=e.Intersector;exports.intersector=e.intersector;
|
package/lib/intersector/index.js
CHANGED
|
@@ -1,63 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
var y = (n, t, s) => t.has(n) || m("Cannot " + s);
|
|
5
|
-
var r = (n, t, s) => (y(n, t, "read from private field"), s ? s.call(n) : t.get(n)), f = (n, t, s) => t.has(n) ? m("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), h = (n, t, s, e) => (y(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
|
|
6
|
-
import { i as p } from "../browser-0zX67oeU.js";
|
|
7
|
-
import { g as w } from "../dom-CVWzyXPH.js";
|
|
8
|
-
var i, b, u;
|
|
9
|
-
class g {
|
|
10
|
-
constructor() {
|
|
11
|
-
f(this, i, []);
|
|
12
|
-
f(this, b, null);
|
|
13
|
-
f(this, u, (t) => {
|
|
14
|
-
r(this, i).map((e) => ({
|
|
15
|
-
subscriber: e,
|
|
16
|
-
entry: t.find((o) => o.target === e.element)
|
|
17
|
-
})).forEach((e) => {
|
|
18
|
-
e.entry && (e.subscriber.entry = e.entry, e.subscriber.callback(e.entry));
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
p && window.IntersectionObserver && h(this, b, new IntersectionObserver(
|
|
22
|
-
r(this, u)
|
|
23
|
-
));
|
|
24
|
-
}
|
|
25
|
-
subscribe(t, s) {
|
|
26
|
-
const e = w(t);
|
|
27
|
-
if (!e)
|
|
28
|
-
return () => {
|
|
29
|
-
};
|
|
30
|
-
const o = r(this, i).find(
|
|
31
|
-
(c) => c.element === e
|
|
32
|
-
);
|
|
33
|
-
if (!o)
|
|
34
|
-
r(this, b).observe(e);
|
|
35
|
-
else {
|
|
36
|
-
const c = r(this, i).find(
|
|
37
|
-
(l) => l.element === e && l.entry
|
|
38
|
-
);
|
|
39
|
-
c != null && c.entry.isIntersecting && s(c.entry);
|
|
40
|
-
}
|
|
41
|
-
return r(this, i).push({
|
|
42
|
-
element: e,
|
|
43
|
-
callback: s,
|
|
44
|
-
entry: (o == null ? void 0 : o.entry) || null
|
|
45
|
-
}), () => {
|
|
46
|
-
this.unsubscribe(s);
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
unsubscribe(t) {
|
|
50
|
-
const s = r(this, i).find(
|
|
51
|
-
(e) => e.callback === t
|
|
52
|
-
);
|
|
53
|
-
s && (h(this, i, r(this, i).filter(
|
|
54
|
-
(e) => e.callback !== t
|
|
55
|
-
)), r(this, i).find((e) => e.element === s.element) || r(this, b).unobserve(s.element));
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
i = new WeakMap(), b = new WeakMap(), u = new WeakMap();
|
|
59
|
-
const E = new g();
|
|
1
|
+
import { I as o, a as s } from "../index-euf5anj6.js";
|
|
2
|
+
import "../dom-CVWzyXPH.js";
|
|
60
3
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
4
|
+
o as Intersector,
|
|
5
|
+
s as intersector
|
|
63
6
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./index-Cqw2NKev.cjs"),i=require("./string-DhgS_iFl.cjs");function s(t){let e="";for(const r in t){const n=t[r];typeof n=="object"?(e+=`${r} {`,e+=s(n),e+="}"):e+=`${i.camelToKebab(r)}: ${n};`}return e}function o(t){if(c.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(s(t)),e}return null}exports.createStylesheet=o;exports.styleToString=s;
|
package/lib/ladder/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty;var S=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,
|
|
1
|
+
"use strict";var M=Object.defineProperty;var S=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var v=t=>{throw TypeError(t)};var k=(t,s,e)=>s in t?M(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,w=(t,s)=>{for(var e in s||(s={}))V.call(s,e)&&k(t,e,s[e]);if(S)for(var e of S(s))q.call(s,e)&&k(t,e,s[e]);return t};var g=(t,s,e)=>s.has(t)||v("Cannot "+e);var o=(t,s,e)=>(g(t,s,"read from private field"),e?e.call(t):s.get(t)),p=(t,s,e)=>s.has(t)?v("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),f=(t,s,e,i)=>(g(t,s,"write to private field"),i?i.call(t,e):s.set(t,e),e),b=(t,s,e)=>(g(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../Store-DRp_K37w.cjs");require("../index-Cqw2NKev.cjs");var d,u,a,h,y;class x extends m.Store{constructor(e){super(e,{equalityCheck:()=>!1});p(this,h);p(this,d);p(this,u);p(this,a);f(this,d,w({},e)),f(this,u,new Map),f(this,a,new Set)}get base(){return o(this,d)}get steps(){return o(this,u)}close(){super.close(),o(this,a).clear(),o(this,u).clear()}bind(e){o(this,a).add(e)}unbind(e){o(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){var i;return(i=this.steps.get(e))==null?void 0:i[1]}getExcludedStepsValue(...e){const i=new Map;return e.map(r=>{const n=this.steps.get(r);n&&i.set(r,n)}),b(this,h,y).call(this,i)}getIncludedStepsValue(...e){const i=new Map(this.steps);return e.map(r=>{this.steps.has(r)&&i.delete(r)}),b(this,h,y).call(this,i)}setStep(e,i,r){const n={};for(const c in this.current)n[c]=r[c]||0;this.steps.set(e,[i,n]),this.calculate()}calculate(){this.current=b(this,h,y).call(this,o(this,u))}}d=new WeakMap,u=new WeakMap,a=new WeakMap,h=new WeakSet,y=function(e){const i={};for(const r in this.base)i[r]=this.base[r];for(const r of e){const n=r[1];if(n[0]==="+")for(const c in this.base){const l=n[1][c];i[c]+=l}else if(n[0]==="*")for(const c in this.base){const l=n[1][c];i[c]*=l}else if(n[0]==="/")for(const c in this.base){const l=n[1][c];i[c]/=l}else if(n[0]==="-")for(const c in this.base){const l=n[1][c];i[c]-=l}}for(const r of o(this,a))for(const n in i)r[n]=i[n];return i};exports.Ladder=x;
|
package/lib/ladder/index.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
var
|
|
1
|
+
var w = Object.defineProperty;
|
|
2
2
|
var k = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
throw TypeError(
|
|
3
|
+
var V = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var m = (e) => {
|
|
5
|
+
throw TypeError(e);
|
|
6
6
|
};
|
|
7
|
-
var S = (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
7
|
+
var S = (e, s, t) => s in e ? w(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, v = (e, s) => {
|
|
8
|
+
for (var t in s || (s = {}))
|
|
9
|
+
V.call(s, t) && S(e, t, s[t]);
|
|
10
10
|
if (k)
|
|
11
|
-
for (var
|
|
12
|
-
x.call(s,
|
|
13
|
-
return
|
|
11
|
+
for (var t of k(s))
|
|
12
|
+
x.call(s, t) && S(e, t, s[t]);
|
|
13
|
+
return e;
|
|
14
14
|
};
|
|
15
|
-
var g = (
|
|
16
|
-
var r = (
|
|
17
|
-
import { S as M } from "../Store-
|
|
15
|
+
var g = (e, s, t) => s.has(e) || m("Cannot " + t);
|
|
16
|
+
var r = (e, s, t) => (g(e, s, "read from private field"), t ? t.call(e) : s.get(e)), p = (e, s, t) => s.has(e) ? m("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), d = (e, s, t, i) => (g(e, s, "write to private field"), i ? i.call(e, t) : s.set(e, t), t), b = (e, s, t) => (g(e, s, "access private method"), t);
|
|
17
|
+
import { S as M } from "../Store-D2xCXENW.js";
|
|
18
|
+
import "../index-euf5anj6.js";
|
|
18
19
|
var f, h, a, u, y;
|
|
19
|
-
class
|
|
20
|
-
constructor(
|
|
21
|
-
super(
|
|
20
|
+
class I extends M {
|
|
21
|
+
constructor(t) {
|
|
22
|
+
super(t, {
|
|
22
23
|
equalityCheck: () => !1
|
|
23
24
|
});
|
|
24
25
|
p(this, u);
|
|
25
26
|
p(this, f);
|
|
26
27
|
p(this, h);
|
|
27
28
|
p(this, a);
|
|
28
|
-
d(this, f,
|
|
29
|
+
d(this, f, v({}, t)), d(this, h, /* @__PURE__ */ new Map()), d(this, a, /* @__PURE__ */ new Set());
|
|
29
30
|
}
|
|
30
31
|
get base() {
|
|
31
32
|
return r(this, f);
|
|
@@ -36,47 +37,47 @@ class E extends M {
|
|
|
36
37
|
close() {
|
|
37
38
|
super.close(), r(this, a).clear(), r(this, h).clear();
|
|
38
39
|
}
|
|
39
|
-
bind(
|
|
40
|
-
r(this, a).add(
|
|
40
|
+
bind(t) {
|
|
41
|
+
r(this, a).add(t);
|
|
41
42
|
}
|
|
42
|
-
unbind(
|
|
43
|
-
r(this, a).delete(
|
|
43
|
+
unbind(t) {
|
|
44
|
+
r(this, a).delete(t);
|
|
44
45
|
}
|
|
45
|
-
deleteStep(
|
|
46
|
-
this.steps.delete(
|
|
46
|
+
deleteStep(t) {
|
|
47
|
+
this.steps.delete(t);
|
|
47
48
|
}
|
|
48
|
-
getStepValue(
|
|
49
|
+
getStepValue(t) {
|
|
49
50
|
var i;
|
|
50
|
-
return (i = this.steps.get(
|
|
51
|
+
return (i = this.steps.get(t)) == null ? void 0 : i[1];
|
|
51
52
|
}
|
|
52
|
-
getExcludedStepsValue(...
|
|
53
|
+
getExcludedStepsValue(...t) {
|
|
53
54
|
const i = /* @__PURE__ */ new Map();
|
|
54
|
-
return
|
|
55
|
+
return t.map((c) => {
|
|
55
56
|
const n = this.steps.get(c);
|
|
56
57
|
n && i.set(c, n);
|
|
57
58
|
}), b(this, u, y).call(this, i);
|
|
58
59
|
}
|
|
59
|
-
getIncludedStepsValue(...
|
|
60
|
+
getIncludedStepsValue(...t) {
|
|
60
61
|
const i = new Map(this.steps);
|
|
61
|
-
return
|
|
62
|
+
return t.map((c) => {
|
|
62
63
|
this.steps.has(c) && i.delete(c);
|
|
63
64
|
}), b(this, u, y).call(this, i);
|
|
64
65
|
}
|
|
65
|
-
setStep(
|
|
66
|
+
setStep(t, i, c) {
|
|
66
67
|
const n = {};
|
|
67
68
|
for (const o in this.current)
|
|
68
69
|
n[o] = c[o] || 0;
|
|
69
|
-
this.steps.set(
|
|
70
|
+
this.steps.set(t, [i, n]), this.calculate();
|
|
70
71
|
}
|
|
71
72
|
calculate() {
|
|
72
73
|
this.current = b(this, u, y).call(this, r(this, h));
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
|
-
f = new WeakMap(), h = new WeakMap(), a = new WeakMap(), u = new WeakSet(), y = function(
|
|
76
|
+
f = new WeakMap(), h = new WeakMap(), a = new WeakMap(), u = new WeakSet(), y = function(t) {
|
|
76
77
|
const i = {};
|
|
77
78
|
for (const c in this.base)
|
|
78
79
|
i[c] = this.base[c];
|
|
79
|
-
for (const c of
|
|
80
|
+
for (const c of t) {
|
|
80
81
|
const n = c[1];
|
|
81
82
|
if (n[0] === "+")
|
|
82
83
|
for (const o in this.base) {
|
|
@@ -105,5 +106,5 @@ f = new WeakMap(), h = new WeakMap(), a = new WeakMap(), u = new WeakSet(), y =
|
|
|
105
106
|
return i;
|
|
106
107
|
};
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
I as Ladder
|
|
109
110
|
};
|
package/lib/layout-box/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var J=i=>{throw TypeError(i)};var N=(i,e,s)=>e.has(i)||J("Cannot "+s);var t=(i,e,s)=>(N(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),r=(i,e,s,l)=>(N(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s),L=(i,e,s)=>(N(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),Q=require("../order/index.cjs"),F=require("../scroll-entries/index.cjs"),j=require("../ticker/index.cjs"),tt=require("../
|
|
1
|
+
"use strict";var J=i=>{throw TypeError(i)};var N=(i,e,s)=>e.has(i)||J("Cannot "+s);var t=(i,e,s)=>(N(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),r=(i,e,s,l)=>(N(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s),L=(i,e,s)=>(N(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),Q=require("../order/index.cjs"),F=require("../scroll-entries/index.cjs"),j=require("../ticker/index.cjs"),tt=require("../index-Cqw2NKev.cjs"),et=require("../dom-JBOkFLTh.cjs"),V=require("../layout-Ctc2p3uz.cjs"),st=require("../element-resizer/index.cjs"),it=require("../window-resizer/index.cjs"),dt=require("../notifier/index.cjs");function ht(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),y=Math.atan2(i.m32,i.m33),B=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),a=i.m41,q=i.m42*-1,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:y,rotationY:B,rotationZ:K,translationX:a,translationY:q,translationZ:O}}var u,b,m,R,A,T,v,w,W,k,x,_,X,S,d,C,Y,H,U,g,p,z,o,n,c,E,M,I,f,G,rt,nt,lt,P,D,Z;class ft{constructor(e,s){h(this,f);h(this,u,null);h(this,b,null);h(this,m,[]);h(this,R,"auto");h(this,A,"top");h(this,T,!1);h(this,v,!0);h(this,w,!0);h(this,W,!0);h(this,k,!0);h(this,x,0);h(this,_,0);h(this,X,0);h(this,S,0);h(this,d,0);h(this,C,0);h(this,Y,0);h(this,H,0);h(this,U,0);h(this,g,{x:0,y:0,z:0});h(this,p,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,o,new $.Ladder({x:0,y:0,z:0}));h(this,n,new $.Ladder({x:0,y:0,z:0}));h(this,c,new $.Ladder({x:0,y:0,z:0}));h(this,E,{x:0,y:0,z:0});h(this,M,new Map);h(this,I,new dt.Notifier);h(this,P,()=>{tt.isBrowser&&L(this,f,nt).call(this)});h(this,D,()=>{L(this,f,lt).call(this),L(this,f,G).call(this)});h(this,Z,()=>{const e=F.scrollEntries.getAll(this.element);t(this,M).forEach((s,l)=>{e.includes(l)||(this.deleteScrollStep(s),t(this,M).delete(l))}),e.forEach(s=>{if(!t(this,M).has(s)){const l=()=>s;t(this,M).set(s,l),this.setScrollStep(l)}})});tt.isBrowser&&(r(this,u,et.getElement(e)||document.body),r(this,b,et.getElement(s==null?void 0:s.containerElement)||document.body),r(this,R,(s==null?void 0:s.scrollAxis)||"auto"),r(this,A,(s==null?void 0:s.frontSide)||"top"),r(this,T,(s==null?void 0:s.cartesian)||!1),r(this,v,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,W,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,k,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,n).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,k)&&(F.scrollEntries.notifier.subscribe(t(this,Z)),t(this,Z).call(this)),st.elementResizer.subscribe(this.element,t(this,P)),it.windowResizer.subscribe(t(this,P),Q.RESIZE_ORDER.LAYOUT_BOX),j.ticker.subscribe(t(this,D),{order:Q.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,u)}get containerElement(){return t(this,b)}get position(){return t(this,n).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,E)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,g)}get CSSRotation(){return t(this,p)}get CSSScale(){return t(this,z)}get front(){return t(this,C)}get width(){return t(this,x)}get height(){return t(this,_)}get depth(){return t(this,X)}destroy(){j.ticker.unsubscribe(t(this,D)),st.elementResizer.unsubscribe(t(this,P)),it.windowResizer.unsubscribe(t(this,P)),F.scrollEntries.notifier.unsubscribe(t(this,Z)),t(this,M).clear(),t(this,n).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,n).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,n).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,m).includes(e)||t(this,m).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,m,t(this,m).filter(s=>s!==e))}setPositionStep(...e){t(this,n).setStep(...e)}getPositionStep(...e){return t(this,n).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}getExcludedRotationSteps(...e){return t(this,o).getExcludedStepsValue(...e)}getIncludedRotationSteps(...e){return t(this,o).getIncludedStepsValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}getExcludedScaleSteps(...e){return t(this,c).getExcludedStepsValue(...e)}getIncludedScaleSteps(...e){return t(this,c).getIncludedStepsValue(...e)}deletePositionStep(...e){t(this,n).deleteStep(...e)}getExcludedPositionSteps(...e){return t(this,n).getExcludedStepsValue(...e)}getIncludedPositionSteps(...e){return t(this,n).getIncludedStepsValue(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,n).subscribe(...e)}offPosition(...e){t(this,n).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}onResize(...e){return t(this,I).subscribe(...e)}offResize(...e){return t(this,I).unsubscribe(...e)}}u=new WeakMap,b=new WeakMap,m=new WeakMap,R=new WeakMap,A=new WeakMap,T=new WeakMap,v=new WeakMap,w=new WeakMap,W=new WeakMap,k=new WeakMap,x=new WeakMap,_=new WeakMap,X=new WeakMap,S=new WeakMap,d=new WeakMap,C=new WeakMap,Y=new WeakMap,H=new WeakMap,U=new WeakMap,g=new WeakMap,p=new WeakMap,z=new WeakMap,o=new WeakMap,n=new WeakMap,c=new WeakMap,E=new WeakMap,M=new WeakMap,I=new WeakMap,f=new WeakSet,G=function(){t(this,c).calculate(),t(this,n).calculate(),t(this,o).calculate()},rt=function(){t(this,c).setStep("_size","+",{x:t(this,v)?t(this,x):1,y:t(this,v)?t(this,_):1,z:t(this,v)?t(this,X):1});const e=t(this,w)?t(this,Y):0,s=t(this,w)?t(this,H):0,l=t(this,w)?t(this,U):0;t(this,n).setStep("_position","+",{x:e,y:s,z:l}),t(this,W)?(t(this,c).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,n).setStep("_translation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,o).setStep("_rotation","+",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},nt=function(){const e=getComputedStyle(t(this,u));r(this,x,Math.max(t(this,u).clientWidth,1)),r(this,_,Math.max(t(this,u).clientHeight,1)),r(this,X,Math.max(St.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=V.getCumulativeOffsetLeft(t(this,b)),l=V.getCumulativeOffsetTop(t(this,b)),y=t(this,b).clientWidth,B=t(this,b).clientHeight;if(r(this,d,V.getCumulativeOffsetLeft(t(this,u))-s),r(this,S,V.getCumulativeOffsetTop(t(this,u))-l),t(this,R)==="z"){const q=t(this,d)/y,O=t(this,S)/B;r(this,d,(q-Math.floor(q))*y),r(this,S,(O-Math.floor(O))*B),t(this,A)==="left"?r(this,C,V.getCumulativeOffsetLeft(t(this,u))-s-t(this,d)):r(this,C,V.getCumulativeOffsetTop(t(this,u))-l-t(this,S))}if(r(this,d,t(this,d)+t(this,u).clientLeft),r(this,S,t(this,S)+t(this,u).clientTop),t(this,T)){const q=Math.round(y/2),O=Math.round(B/2),ct=t(this,x)?Math.round(t(this,x)/2):0,ot=t(this,_)?Math.round(t(this,_)/2):0,ut=t(this,d)-q+ct,at=(t(this,S)-O+ot)*-1;r(this,Y,ut),r(this,H,at)}else r(this,Y,t(this,d)),r(this,H,t(this,S));r(this,U,t(this,C)*-1);const K=new WebKitCSSMatrix(e.transform),a=ht(K);t(this,g).x=a.translationX,t(this,g).y=a.translationY,t(this,g).z=a.translationZ,t(this,z).x=a.scaleX,t(this,z).y=a.scaleY,t(this,z).z=a.scaleZ,t(this,p).x=a.rotationX,t(this,p).y=a.rotationY,t(this,p).z=a.rotationZ,L(this,f,rt).call(this),L(this,f,G).call(this),t(this,I).notify()},lt=function(){t(this,E).x=0,t(this,E).y=0,t(this,E).z=0;for(let e=0;e<t(this,m).length;e++){const s=t(this,m)[e]();let l=s.axis;t(this,R)!=="auto"&&(l=t(this,R));const y=s.value*(l==="x"?-1:t(this,T)?1:-1);t(this,E)[l]+=y,t(this,n).setStep(`_scroll_${e}`,"+",{[l]:y})}},P=new WeakMap,D=new WeakMap,Z=new WeakMap;exports.LayoutBox=ft;exports.decomposeCSSMatrix=ht;
|
package/lib/layout-box/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Ladder as N } from "../ladder/index.js";
|
|
|
8
8
|
import { RESIZE_ORDER as St, TICK_ORDER as dt } from "../order/index.js";
|
|
9
9
|
import { scrollEntries as $ } from "../scroll-entries/index.js";
|
|
10
10
|
import { ticker as j } from "../ticker/index.js";
|
|
11
|
-
import { i as tt } from "../
|
|
11
|
+
import { i as tt } from "../index-euf5anj6.js";
|
|
12
12
|
import { g as et } from "../dom-CVWzyXPH.js";
|
|
13
13
|
import { g as F, a as G } from "../layout-DpZo-I0y.js";
|
|
14
14
|
import { elementResizer as st } from "../element-resizer/index.js";
|
package/lib/loading/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var p=i=>{throw TypeError(i)};var f=(i,t,s)=>t.has(i)||p("Cannot "+s);var e=(i,t,s)=>(f(i,t,"read from private field"),s?s.call(i):t.get(i)),a=(i,t,s)=>t.has(i)?p("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,s),g=(i,t,s,
|
|
1
|
+
"use strict";var p=i=>{throw TypeError(i)};var f=(i,t,s)=>t.has(i)||p("Cannot "+s);var e=(i,t,s)=>(f(i,t,"read from private field"),s?s.call(i):t.get(i)),a=(i,t,s)=>t.has(i)?p("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,s),g=(i,t,s,d)=>(f(i,t,"write to private field"),d?d.call(i,s):t.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../events-KVanG9sR.cjs"),u=require("../function-MthRj-GJ.cjs");require("../index-Cqw2NKev.cjs");var o,n,h,r,c;class v{constructor(){a(this,o,new Map);a(this,n,!1);a(this,h,u.debounce(()=>{e(this,n)||(g(this,n,!0),l.dispatchEvent(window,"loadingStart"),e(this,r).call(this))},0));a(this,r,()=>{if(!e(this,n))return;const t=e(this,o).size,s=Array.from(e(this,o)).filter(w=>w[1]).length,d=s/t;l.dispatchEvent(window,"loadingProgress",{detail:{total:t,loaded:s,progress:d}}),d===1&&e(this,c).call(this)});a(this,c,u.debounce(()=>{g(this,n,!1),l.dispatchEvent(window,"loadingComplete",{detail:{total:e(this,o).size}}),e(this,o).clear()},0))}get map(){return e(this,o)}add(t){e(this,o).set(t,!1),e(this,h).call(this)}complete(t){e(this,o).set(t,!0),e(this,r).call(this)}error(t){e(this,o).has(t)&&(console.error(`Failed to load ${t}`),e(this,o).delete(t),l.dispatchEvent(window,"loadingError",{detail:{name:t}})),e(this,r).call(this)}}o=new WeakMap,n=new WeakMap,h=new WeakMap,r=new WeakMap,c=new WeakMap;const m=new v;exports.loading=m;
|