aptechka 0.5.44 → 0.7.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-6Na1MCtM.cjs +1 -0
- package/lib/Animation-CELiTw3n.js +132 -0
- package/lib/Composed-DmLYTh1b.js +35 -0
- package/lib/Composed-Dx2hs-va.cjs +1 -0
- package/lib/{Damped-P4MkCGoY.js → Damped-Mx_FNNVz.js} +2 -5
- package/lib/Damped-loFiBsBy.cjs +1 -0
- package/lib/{Derived-kPJs5JC5.js → Derived-DlCvc0xQ.js} +1 -1
- package/lib/{Derived-B-g8dYgh.cjs → Derived-a6MDQEPY.cjs} +1 -1
- package/lib/ElementConstructor-CAZ2ra8m.cjs +1 -0
- package/lib/ElementConstructor-OYlPJf2L.js +366 -0
- package/lib/Resource-D3TQormz.cjs +1 -0
- package/lib/Resource-DIcoALGo.js +64 -0
- package/lib/{SourceManager-Q-PB-Rkh.js → SourceManager-Bz329f90.js} +1 -1
- package/lib/{SourceManager-vSlsMKUE.cjs → SourceManager-kxr5eUyL.cjs} +1 -1
- package/lib/Store-6s0YXK4o.cjs +1 -0
- package/lib/{Store-BQXXikps.js → Store-BI2xxXOA.js} +42 -42
- package/lib/Tweened-B_mclQ61.cjs +1 -0
- package/lib/Tweened-NE8M9onF.js +48 -0
- package/lib/{Viewport-DMB0dO-s.cjs → Viewport-CJeKnL5V.cjs} +1 -1
- package/lib/{Viewport-CFFhFKqX.js → Viewport-D9IL7kUQ.js} +1 -1
- package/lib/_createStore-Cf1MyeHa.cjs +1 -0
- package/lib/_createStore-Ck9bHolX.js +12 -0
- package/lib/accordion/AccordionElement.d.ts +3 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +140 -104
- package/lib/animation/Animation.d.ts +10 -18
- package/lib/animation/Damped.d.ts +3 -5
- package/lib/animation/Tweened.d.ts +0 -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 +31 -31
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +3 -3
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +3 -3
- 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/counter/index.d.ts +8 -0
- package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-CR_yi5tp.js} +1 -1
- package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-p23sZ7Ey.cjs} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +1 -0
- package/lib/css-property/index.js +36 -32
- 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/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +114 -113
- package/lib/en3/core/En3Raycaster.d.ts +20 -0
- package/lib/en3/core/En3View.d.ts +1 -1
- package/lib/en3/core/en3.d.ts +5 -1
- package/lib/en3/helpers/En3Controls.d.ts +5 -0
- package/lib/en3/helpers/En3GridHelper.d.ts +8 -0
- package/lib/en3/helpers/En3Object3dManager.d.ts +12 -0
- package/lib/en3/helpers/En3OrbitControls.d.ts +8 -0
- package/lib/en3/helpers/En3TransformControls.d.ts +8 -0
- package/lib/en3/helpers/index.cjs +1 -0
- package/lib/en3/helpers/index.d.ts +2 -0
- package/lib/en3/helpers/index.js +1165 -0
- package/lib/en3/index.cjs +1 -213
- package/lib/en3/index.d.ts +1 -19
- package/lib/en3/index.js +4 -3305
- package/lib/en3/libs/index.d.ts +1 -0
- package/lib/en3/loaders/{en3GLTFLoader.d.ts → _En3GLTFLoader.d.ts} +2 -4
- package/lib/en3/loaders/_En3TextureLoader.d.ts +8 -0
- package/lib/en3/loaders/index.cjs +1 -0
- package/lib/en3/loaders/index.d.ts +3 -0
- package/lib/en3/loaders/index.js +1757 -0
- package/lib/en3/loaders/loaders.d.ts +13 -0
- package/lib/en3/misc/index.cjs +10 -0
- package/lib/en3/misc/index.d.ts +2 -0
- package/lib/en3/misc/index.js +115 -0
- package/lib/en3/objects/En3Clip.d.ts +1 -1
- package/lib/en3/objects/En3GLTF.d.ts +2 -1
- package/lib/en3/objects/En3ImageLike.d.ts +2 -1
- package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
- package/lib/en3/objects/fluid/index.d.ts +0 -3
- package/lib/en3/objects/index.d.ts +7 -0
- package/lib/en3/utils/index.cjs +1 -0
- package/lib/en3/utils/index.d.ts +5 -0
- package/lib/en3/utils/index.js +43 -0
- package/lib/en3-C4mzaF6q.cjs +8 -0
- package/lib/en3-hbkN1OPu.js +343 -0
- package/lib/globals-DMjysUXI.js +8 -0
- package/lib/globals-bYKki-b9.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-BN9X-l9M.js → index-BAH_fO2N.js} +3 -3
- package/lib/{index-BbgmbQ-5.cjs → index-D1LQUR-R.cjs} +1 -1
- package/lib/instantiate-D19Uvc31.js +125 -0
- package/lib/instantiate-Db5gGSYG.cjs +1 -0
- package/lib/jsx/ComponentElement.d.ts +18 -0
- package/lib/jsx/globals.d.ts +13 -0
- package/lib/jsx/h.d.ts +7 -0
- package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
- package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
- package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
- package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
- package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
- package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
- package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
- package/lib/jsx/hooks/onAnimationFrame.js +22 -0
- package/lib/jsx/hooks/onElementResize.cjs +1 -0
- package/lib/jsx/hooks/onElementResize.d.ts +5 -0
- package/lib/jsx/hooks/onElementResize.js +11 -0
- package/lib/jsx/hooks/onIntersection.cjs +1 -0
- package/lib/jsx/hooks/onIntersection.d.ts +5 -0
- package/lib/jsx/hooks/onIntersection.js +11 -0
- package/lib/jsx/hooks/onWindowResize.cjs +1 -0
- package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
- package/lib/jsx/hooks/onWindowResize.js +8 -0
- package/lib/jsx/hooks/store/createArrayStore.d.ts +3 -0
- package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedComponent.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedComponents.d.ts +3 -0
- package/lib/jsx/hooks/store/createResource.d.ts +3 -0
- package/lib/jsx/hooks/store/createStore.d.ts +3 -0
- package/lib/jsx/hooks/store/index.cjs +1 -0
- package/lib/jsx/hooks/store/index.d.ts +7 -0
- package/lib/jsx/hooks/store/index.js +49 -0
- package/lib/jsx/hooks/watchAttribute.cjs +1 -0
- package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
- package/lib/jsx/hooks/watchAttribute.js +17 -0
- package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
- package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
- package/lib/jsx/hooks/watchCSSProperty.js +17 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +13 -0
- package/lib/jsx/index.js +91 -0
- package/lib/jsx/instantiate.d.ts +5 -0
- package/lib/jsx/register.d.ts +1 -0
- package/lib/jsx/render.d.ts +6 -0
- package/lib/jsx/type.d.ts +188 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.d.ts +2 -0
- package/lib/ladder/index.js +84 -66
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.d.ts +9 -0
- package/lib/layout-box/index.js +190 -164
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +7 -7
- package/lib/morph/Morph.d.ts +2 -2
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.d.ts +1 -1
- package/lib/morph/index.js +135 -143
- package/lib/notifier/index.d.ts +2 -2
- package/lib/notifier/index.js +3 -1
- package/lib/onConnect-DGP866cj.cjs +1 -0
- package/lib/onConnect-y5DrxJ9P.js +7 -0
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/polyfills-CM4SCDTt.cjs +1 -0
- package/lib/polyfills-X6KXuHg-.js +33 -0
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/router/Router.d.ts +11 -3
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.d.ts +1 -1
- package/lib/router/index.js +185 -165
- package/lib/scroll/ScrollElement.d.ts +2 -19
- package/lib/scroll/ScrollSection.d.ts +23 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +81 -77
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/ArrayStore.d.ts +21 -0
- package/lib/store/Store.d.ts +1 -7
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -2
- package/lib/store/index.js +65 -139
- package/lib/tags-BqJKcIve.js +485 -0
- package/lib/tags-ld5jemJw.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerColorManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerFolderElement.d.ts +2 -0
- package/lib/tweaker/TweakerLinkManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
- package/lib/tweaker/TweakerSelectManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +7 -7
- package/lib/tweaker/TweakerStringManagerElement.d.ts +3 -5
- package/lib/tweaker/index.cjs +3 -3
- package/lib/tweaker/index.js +535 -412
- package/lib/tweaker/tweakerManagerConstructors.d.ts +2 -2
- package/lib/tweaker/tweakerStorage.d.ts +8 -1
- package/lib/url-C3dWnJQg.cjs +1 -0
- package/lib/url-DMNfW7uN.js +22 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +39 -34
- package/lib/utils/number.d.ts +1 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +107 -3
- package/lib/Animation-DDHjrbtL.cjs +0 -1
- package/lib/Animation-Dq_05jlR.js +0 -217
- package/lib/DRACOLoader-C2CFpMGS.cjs +0 -2
- package/lib/DRACOLoader-D2KY2dku.js +0 -241
- package/lib/Damped-l0mnlhar.cjs +0 -1
- package/lib/KTX2Loader-DdUl1XiY.cjs +0 -2
- package/lib/KTX2Loader-DqpAffDj.js +0 -536
- package/lib/Store-C-1ruEIm.cjs +0 -1
- package/lib/Tweened-CwDC2zl8.js +0 -51
- package/lib/Tweened-DIt9j9B-.cjs +0 -1
- package/lib/animation/AnimationLink.d.ts +0 -13
- package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
- package/lib/en3/test/En3HTML.d.ts +0 -10
- package/lib/polyfills-BA-CL_HF.js +0 -27
- package/lib/polyfills-DHs2SNbz.cjs +0 -1
- package/lib/store/CumulativeResource.d.ts +0 -13
- package/lib/tags-CMPg9ETZ.js +0 -848
- package/lib/tags-Djb6mb1o.cjs +0 -1
- package/lib/tweaker/TweakerRangeManagerElement.d.ts +0 -11
- /package/lib/en3/{loaders → core}/en3Cache.d.ts +0 -0
- /package/lib/{MeshoptDecoder-CMeN3oU0.cjs → en3/libs/index.cjs} +0 -0
- /package/lib/{MeshoptDecoder-6XfTpOG2.js → en3/libs/index.js} +0 -0
- /package/lib/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
- /package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +0 -0
|
@@ -19,7 +19,7 @@ var n = (e, t, s) => (h(e, t, "read from private field"), s ? s.call(e) : t.get(
|
|
|
19
19
|
throw TypeError("Cannot add the same private member more than once");
|
|
20
20
|
t instanceof WeakSet ? t.add(e) : t.set(e, s);
|
|
21
21
|
}, m = (e, t, s, r) => (h(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s);
|
|
22
|
-
import { S as x } from "../Store-
|
|
22
|
+
import { S as x } from "../Store-BI2xxXOA.js";
|
|
23
23
|
import { c as f } from "../string-f0Dnk0L1.js";
|
|
24
24
|
var i;
|
|
25
25
|
class K extends x {
|
package/lib/controls/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var N=(r,n,e)=>{if(!n.has(r))throw TypeError("Cannot "+e)};var t=(r,n,e)=>(N(r,n,"read from private field"),e?e.call(r):n.get(r)),s=(r,n,e)=>{if(n.has(r))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(r):n.set(r,e)},i=(r,n,e,a)=>(N(r,n,"write to private field"),a?a.call(r,e):n.set(r,e),e);var L=(r,n,e)=>(N(r,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),Q=require("../dom-JBOkFLTh.cjs"),M=require("../ticker/index.cjs");require("../Store-
|
|
1
|
+
"use strict";var N=(r,n,e)=>{if(!n.has(r))throw TypeError("Cannot "+e)};var t=(r,n,e)=>(N(r,n,"read from private field"),e?e.call(r):n.get(r)),s=(r,n,e)=>{if(n.has(r))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(r):n.set(r,e)},i=(r,n,e,a)=>(N(r,n,"write to private field"),a?a.call(r,e):n.set(r,e),e);var L=(r,n,e)=>(N(r,n,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../notifier/index.cjs"),m=require("../browser-CpzFX2xg.cjs"),Q=require("../dom-JBOkFLTh.cjs"),M=require("../ticker/index.cjs");require("../Store-6s0YXK4o.cjs");const G=require("../easings-DsS5-Kqc.cjs"),J=require("../Tweened-B_mclQ61.cjs"),Z=require("../gestures-DHLrn6Q8.cjs"),$=require("../polyfills-CM4SCDTt.cjs"),_=require("../order/index.cjs");var z;class R{constructor(){s(this,z,new V.Notifier)}get changeEvent(){return t(this,z)}}z=new WeakMap;var o,d,u,D;class p extends R{constructor(e){super();s(this,o,null);s(this,d,null);s(this,u,"offsetHeight");s(this,D,e=>{const a=e.shiftKey?-1:1;let h;e.code==="Space"?h=a*t(this,d)[t(this,u)]*.4:e.code==="ArrowLeft"?h=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowRight"?h=1*t(this,d)[t(this,u)]*.2:e.code==="ArrowUp"?h=-1*t(this,d)[t(this,u)]*.2:e.code==="ArrowDown"?h=1*t(this,d)[t(this,u)]*.2:e.code==="PageUp"?h=-1*t(this,d)[t(this,u)]:e.code==="PageDown"?h=1*t(this,d)[t(this,u)]:e.code==="Home"?h=0:e.code==="End"&&(h=t(this,u)==="offsetWidth"?t(this,d).scrollWidth:t(this,d).scrollHeight),h&&(e.stopPropagation(),this.changeEvent.notify("keyboard",h))});m.isBrowser&&(i(this,o,e!=null&&e.element&&Q.getElement(e.element)||window),i(this,d,t(this,o)instanceof HTMLElement?t(this,o):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,o).addEventListener("keydown",t(this,D))}disconnect(){m.isBrowser&&t(this,o).removeEventListener("keydown",t(this,D))}}o=new WeakMap,d=new WeakMap,u=new WeakMap,D=new WeakMap;var w,y,H,P,l,k,f,C,S,W,U,q,X,B;class ee extends R{constructor(e){super();s(this,C);s(this,W);s(this,w,void 0);s(this,y,void 0);s(this,H,void 0);s(this,P,void 0);s(this,l,void 0);s(this,k,void 0);s(this,f,void 0);s(this,q,void 0);s(this,X,void 0);s(this,B,void 0);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,w)*this.direction*(1-t(this,l).current))}),i(this,X,()=>{t(this,l).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,w))*this.direction*(1-t(this,l).current))}),i(this,B,()=>{t(this,y)&&(document.hidden?t(this,l).set(1,{equalize:!0}):t(this,l).set(0,{equalize:!0}))}),i(this,w,(e==null?void 0:e.speed)||1),i(this,y,(e==null?void 0:e.interval)||!1),i(this,H,e)}set interval(e){i(this,y,e),t(this,f)&&L(this,C,S).call(this)}set speed(e){i(this,w,e),t(this,f)&&L(this,C,S).call(this)}connect(){t(this,f)||(i(this,f,!0),L(this,C,S).call(this))}disconnect(){t(this,f)&&(i(this,f,!1),L(this,W,U).call(this))}pauseAndContinue(e){e&&!t(this,l).target&&(clearInterval(t(this,k)),t(this,l).set(1,{duration:Math.min(e,1e3)}),i(this,k,setTimeout(()=>{t(this,l).set(0,{duration:Math.min(e,5e3)})},e)))}}w=new WeakMap,y=new WeakMap,H=new WeakMap,P=new WeakMap,l=new WeakMap,k=new WeakMap,f=new WeakMap,C=new WeakSet,S=function(){L(this,W,U).call(this),t(this,y)?i(this,P,setInterval(t(this,X),Math.abs(t(this,w)))):M.ticker.subscribe(t(this,q),t(this,H)),document.addEventListener("visibilitychange",t(this,B))},W=new WeakSet,U=function(){clearInterval(t(this,P)),M.ticker.unsubscribe(t(this,q)),clearInterval(t(this,k)),t(this,l).close(),document.removeEventListener("visibilitychange",t(this,B))},q=new WeakMap,X=new WeakMap,B=new WeakMap;var T,E,I,Y;class te extends R{constructor(e){super();s(this,T,null);s(this,E,void 0);s(this,I,void 0);s(this,Y,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 h=Date.now();if(h-t(this,I)>40&&(a=100*Math.sign(a)),i(this,I,h),Math.abs(a)<100||t(this,E))return;this.changeEvent.notify("wheel",a),i(this,E,setTimeout(()=>{i(this,E,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&&Q.getElement(e.element)||window)}connect(){m.isBrowser&&t(this,T).addEventListener("wheel",t(this,Y),{passive:!1})}disconnect(){m.isBrowser&&(t(this,T).removeEventListener("wheel",t(this,Y)),clearTimeout(t(this,E)))}}T=new WeakMap,E=new WeakMap,I=new WeakMap,Y=new WeakMap;var x,b,A,c,K,v;const g=class g extends R{constructor(e){super();s(this,b,null);s(this,A,!1);s(this,c,0);s(this,K,e=>{if(e.composedPath().find(h=>h instanceof HTMLElement&&h.hasAttribute("drag-dead-zone")))return;this.swipe||M.ticker.unsubscribe(t(this,v));let a=e;i(this,c,0),document.documentElement.classList.add("grabbing"),Z.setupDrag(h=>{if(t(this,A)||t(g,x)&&t(g,x)!==t(this,b))return;this.swipe&&i(this,A,!0);const O=a.x-h.x,F=a.y-h.y;this.axis==="x"?i(this,c,O):i(this,c,F),a=h,(this.axis==="x"&&Math.abs(O)>Math.abs(F)||this.axis==="y"&&Math.abs(F)>Math.abs(O))&&(i(g,x,t(this,b)),this.changeEvent.notify("drag",t(this,c)))},()=>{i(g,x,null),this.swipe||(i(this,c,t(this,c)*3),M.ticker.subscribe(t(this,v),{order:_.TICK_ORDER.SCROLL-1})),document.documentElement.classList.remove("grabbing"),i(this,A,!1)})});s(this,v,()=>{Math.floor(t(this,c))||M.ticker.unsubscribe(t(this,v)),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,b,e!=null&&e.element&&Q.getElement(e.element)||document.documentElement)}connect(){m.isBrowser&&t(this,b).addEventListener("pointerdown",t(this,K))}disconnect(){m.isBrowser&&(t(this,b).removeEventListener("pointerdown",t(this,K)),M.ticker.unsubscribe(t(this,v)))}};x=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,K=new WeakMap,v=new WeakMap,s(g,x,null);let j=g;exports.AutoplayControls=ee;exports.Controls=R;exports.DragControls=j;exports.KeyboardControls=p;exports.WheelControls=te;
|
package/lib/controls/index.js
CHANGED
|
@@ -12,11 +12,11 @@ import { Notifier as j } from "../notifier/index.js";
|
|
|
12
12
|
import { i as m } from "../browser-0zX67oeU.js";
|
|
13
13
|
import { g as Q } from "../dom-0S_WDL4g.js";
|
|
14
14
|
import { ticker as M } from "../ticker/index.js";
|
|
15
|
-
import "../Store-
|
|
15
|
+
import "../Store-BI2xxXOA.js";
|
|
16
16
|
import { e as G } from "../easings-BKi40vHz.js";
|
|
17
|
-
import { T as J } from "../Tweened-
|
|
17
|
+
import { T as J } from "../Tweened-NE8M9onF.js";
|
|
18
18
|
import { s as Z } from "../gestures-D2Fdra_G.js";
|
|
19
|
-
import { p as $ } from "../polyfills-
|
|
19
|
+
import { p as $ } from "../polyfills-X6KXuHg-.js";
|
|
20
20
|
import { TICK_ORDER as p } from "../order/index.js";
|
|
21
21
|
var B;
|
|
22
22
|
class F {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./tags-
|
|
1
|
+
"use strict";const n=require("./tags-ld5jemJw.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var w=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(w(s,r,"read from private field"),e?e.call(s):r.get(s)),c=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},i=(s,r,e,n)=>(w(s,r,"write to private field"),n?n.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../css-value-parser/index.cjs"),V=require("../order/index.cjs"),g=require("../Store-6s0YXK4o.cjs"),p=require("../dom-JBOkFLTh.cjs"),f=require("../window-resizer/index.cjs");var a,b,u,o,h,l;class v extends g.Store{constructor(e,n,d,S){super(d,S);c(this,a,void 0);c(this,b,void 0);c(this,u,void 0);c(this,o,void 0);c(this,h,!1);c(this,l,()=>{this.check()});i(this,a,p.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),f.windowResizer.subscribe(t(this,l),V.RESIZE_ORDER.CSS_VARIABLE))}unobserve(){t(this,h)&&(i(this,h,!1),f.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=R.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=v;
|
|
@@ -12,5 +12,6 @@ export declare class CSSProperty<StoreType extends number | boolean | string, St
|
|
|
12
12
|
unobserve(): void;
|
|
13
13
|
subscribe(callback: StoreCallback<StoreEntry<StoreType>>): () => void;
|
|
14
14
|
unsubscribe(callback: StoreCallback<StoreEntry<StoreType>>): void;
|
|
15
|
+
close(): void;
|
|
15
16
|
check(): void;
|
|
16
17
|
}
|
|
@@ -1,58 +1,62 @@
|
|
|
1
|
-
var
|
|
2
|
-
if (!
|
|
1
|
+
var p = (s, r, e) => {
|
|
2
|
+
if (!r.has(s))
|
|
3
3
|
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var t = (
|
|
6
|
-
if (
|
|
5
|
+
var t = (s, r, e) => (p(s, r, "read from private field"), e ? e.call(s) : r.get(s)), h = (s, r, e) => {
|
|
6
|
+
if (r.has(s))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
import { cssValueParser as
|
|
11
|
-
import { RESIZE_ORDER as
|
|
12
|
-
import { S as
|
|
13
|
-
import { g
|
|
14
|
-
import { windowResizer as
|
|
15
|
-
var b,
|
|
16
|
-
class
|
|
17
|
-
constructor(e,
|
|
18
|
-
super(m,
|
|
8
|
+
r instanceof WeakSet ? r.add(s) : r.set(s, e);
|
|
9
|
+
}, i = (s, r, e, a) => (p(s, r, "write to private field"), a ? a.call(s, e) : r.set(s, e), e);
|
|
10
|
+
import { cssValueParser as w } from "../css-value-parser/index.js";
|
|
11
|
+
import { RESIZE_ORDER as R } from "../order/index.js";
|
|
12
|
+
import { S as V } from "../Store-BI2xxXOA.js";
|
|
13
|
+
import { g } from "../dom-0S_WDL4g.js";
|
|
14
|
+
import { windowResizer as S } from "../window-resizer/index.js";
|
|
15
|
+
var b, o, u, l, c, n;
|
|
16
|
+
class P extends V {
|
|
17
|
+
constructor(e, a, m, f) {
|
|
18
|
+
super(m, f);
|
|
19
19
|
h(this, b, void 0);
|
|
20
|
-
h(this,
|
|
21
|
-
h(this,
|
|
22
|
-
h(this,
|
|
23
|
-
h(this,
|
|
20
|
+
h(this, o, void 0);
|
|
21
|
+
h(this, u, void 0);
|
|
22
|
+
h(this, l, void 0);
|
|
23
|
+
h(this, c, !1);
|
|
24
|
+
h(this, n, () => {
|
|
24
25
|
this.check();
|
|
25
26
|
});
|
|
26
|
-
|
|
27
|
+
i(this, b, g(e)), i(this, o, a), i(this, u, m.toString()), i(this, l, (f == null ? void 0 : f.rawValueCheck) !== !1);
|
|
27
28
|
}
|
|
28
29
|
get currentRawValue() {
|
|
29
|
-
return t(this,
|
|
30
|
+
return t(this, u);
|
|
30
31
|
}
|
|
31
32
|
observe() {
|
|
32
|
-
this
|
|
33
|
+
t(this, c) || (i(this, c, !0), S.subscribe(t(this, n), R.CSS_VARIABLE));
|
|
33
34
|
}
|
|
34
35
|
unobserve() {
|
|
35
|
-
this
|
|
36
|
+
t(this, c) && (i(this, c, !1), S.unsubscribe(t(this, n)));
|
|
36
37
|
}
|
|
37
38
|
subscribe(e) {
|
|
38
|
-
return this.observe(), super.subscribe(e);
|
|
39
|
+
return this.subscribers.size || this.observe(), super.subscribe(e);
|
|
39
40
|
}
|
|
40
41
|
unsubscribe(e) {
|
|
41
|
-
super.unsubscribe(e), this.unobserve();
|
|
42
|
+
super.unsubscribe(e), this.subscribers.size || this.unobserve();
|
|
43
|
+
}
|
|
44
|
+
close() {
|
|
45
|
+
this.unobserve(), super.close();
|
|
42
46
|
}
|
|
43
47
|
check() {
|
|
44
48
|
const e = getComputedStyle(t(this, b)).getPropertyValue(
|
|
45
|
-
t(this,
|
|
49
|
+
t(this, o)
|
|
46
50
|
);
|
|
47
|
-
if (!(t(this,
|
|
48
|
-
if (
|
|
49
|
-
const
|
|
50
|
-
this.current =
|
|
51
|
+
if (!(t(this, l) && t(this, u) === e))
|
|
52
|
+
if (i(this, u, e), e) {
|
|
53
|
+
const a = w.parse(t(this, u));
|
|
54
|
+
this.current = a;
|
|
51
55
|
} else
|
|
52
56
|
this.current = this.initial;
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
|
-
b = new WeakMap(),
|
|
59
|
+
b = new WeakMap(), o = new WeakMap(), u = new WeakMap(), l = new WeakMap(), c = new WeakMap(), n = new WeakMap();
|
|
56
60
|
export {
|
|
57
|
-
|
|
61
|
+
P as CSSProperty
|
|
58
62
|
};
|
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-6s0YXK4o.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-CJeKnL5V.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
|
package/lib/device/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../ElementConstructor-CAZ2ra8m.cjs"),e=require("../tags-ld5jemJw.cjs"),r=require("../createStylesheet-p23sZ7Ey.cjs"),a=require("../createTheme-Cfaw9UmV.cjs");exports.ElementConstructor=t.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=r.createStylesheet;exports.createTheme=a.createTheme;
|
|
@@ -1,124 +1,125 @@
|
|
|
1
|
-
import { E as e
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
1
|
+
import { E as e } from "../ElementConstructor-OYlPJf2L.js";
|
|
2
|
+
import { a as r, b as o, c as i, d as l, f as d, g as m, h as p, i as c, j as n, k as u, l as b, m as h, n as f, o as g, p as y, q as k, r as x, s as v, t as q, u as E, v as j, aZ as w, w as C, x as S, y as T, z as V, A as z, B as A, C as B, D, E as F, F as G, e as H, G as I, H as J, aY as K, I as L, J as M, K as N, L as O, M as P, aX as Q, N as R, O as U, P as W, Q as X, R as Y, S as Z, T as _, U as $, V as aa, W as sa, X as ea, aU as ta, Y as ra, Z as oa, _ as ia, $ as la, a0 as da, a1 as ma, a2 as pa, a3 as ca, a4 as na, a5 as ua, a6 as ba, a7 as ha, a8 as fa, a9 as ga, aa as ya, ab as ka, ac as xa, ad as va, ae as qa, af as Ea, ag as ja, ah as wa, ai as Ca, aj as Sa, ak as Ta, al as Va, am as za, an as Aa, ao as Ba, ap as Da, aq as Fa, ar as Ga, as as Ha, at as Ia, au as Ja, av as Ka, aw as La, ax as Ma, ay as Na, az as Oa, aA as Pa, aB as Qa, aC as Ra, aD as Ua, aE as Wa, aF as Xa, aG as Ya, aH as Za, aI as _a, aJ as $a, aK as as, aL as ss, aM as es, aN as ts, aO as rs, aP as os, aQ as is, aR as ls, aS as ds, aT as ms, aV as ps, aW as cs } from "../tags-BqJKcIve.js";
|
|
3
|
+
import { c as us } from "../createStylesheet-CR_yi5tp.js";
|
|
4
|
+
import { c as hs } from "../createTheme-CHnsCgAr.js";
|
|
4
5
|
export {
|
|
5
6
|
e as ElementConstructor,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
r as a,
|
|
8
|
+
o as abbr,
|
|
9
|
+
i as address,
|
|
10
|
+
l as area,
|
|
11
|
+
d as article,
|
|
12
|
+
m as aside,
|
|
13
|
+
p as audio,
|
|
14
|
+
c as b,
|
|
15
|
+
n as base,
|
|
16
|
+
u as bdi,
|
|
17
|
+
b as bdo,
|
|
18
|
+
h as blockquote,
|
|
19
|
+
f as body,
|
|
20
|
+
g as br,
|
|
21
|
+
y as button,
|
|
22
|
+
k as canvas,
|
|
23
|
+
x as caption,
|
|
23
24
|
v as cite,
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
q as code,
|
|
26
|
+
E as col,
|
|
26
27
|
j as colgroup,
|
|
27
28
|
w as contents,
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
us as createStylesheet,
|
|
30
|
+
hs as createTheme,
|
|
30
31
|
C as data,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
32
|
+
S as datalist,
|
|
33
|
+
T as dd,
|
|
34
|
+
V as del,
|
|
35
|
+
z as details,
|
|
36
|
+
A as dfn,
|
|
37
|
+
B as dialog,
|
|
38
|
+
D as div,
|
|
39
|
+
F as dl,
|
|
40
|
+
G as dt,
|
|
41
|
+
H as element,
|
|
42
|
+
I as em,
|
|
43
|
+
J as embed,
|
|
44
|
+
K as empty,
|
|
45
|
+
L as fieldset,
|
|
46
|
+
M as figcaption,
|
|
47
|
+
N as figure,
|
|
48
|
+
O as footer,
|
|
49
|
+
P as form,
|
|
50
|
+
Q as fragment,
|
|
51
|
+
R as h1,
|
|
52
|
+
U as h2,
|
|
53
|
+
W as h3,
|
|
54
|
+
X as h4,
|
|
55
|
+
Y as h5,
|
|
56
|
+
Z as h6,
|
|
57
|
+
_ as head,
|
|
58
|
+
$ as header,
|
|
59
|
+
aa as hgroup,
|
|
60
|
+
sa as hr,
|
|
61
|
+
ea as html,
|
|
62
|
+
ta as htmlVar,
|
|
63
|
+
ra as i,
|
|
64
|
+
oa as iframe,
|
|
65
|
+
ia as img,
|
|
66
|
+
la as input,
|
|
67
|
+
da as ins,
|
|
68
|
+
ma as kbd,
|
|
69
|
+
pa as label,
|
|
70
|
+
ca as legend,
|
|
71
|
+
na as li,
|
|
72
|
+
ua as link,
|
|
73
|
+
ba as main,
|
|
74
|
+
ha as map,
|
|
75
|
+
fa as mark,
|
|
76
|
+
ga as menu,
|
|
77
|
+
ya as meta,
|
|
78
|
+
ka as meter,
|
|
79
|
+
xa as nav,
|
|
79
80
|
va as noscript,
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
qa as object,
|
|
82
|
+
Ea as ol,
|
|
82
83
|
ja as optgroup,
|
|
83
84
|
wa as option,
|
|
84
85
|
Ca as output,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
86
|
+
Sa as p,
|
|
87
|
+
Ta as picture,
|
|
88
|
+
Va as pre,
|
|
89
|
+
za as progress,
|
|
90
|
+
Aa as q,
|
|
91
|
+
Ba as rp,
|
|
92
|
+
Da as rt,
|
|
93
|
+
Fa as ruby,
|
|
94
|
+
Ga as s,
|
|
95
|
+
Ha as samp,
|
|
96
|
+
Ia as script,
|
|
97
|
+
Ja as search,
|
|
98
|
+
Ka as section,
|
|
99
|
+
La as select,
|
|
100
|
+
Ma as slot,
|
|
101
|
+
Na as small,
|
|
102
|
+
Oa as source,
|
|
103
|
+
Pa as span,
|
|
104
|
+
Qa as strong,
|
|
105
|
+
Ra as style,
|
|
106
|
+
Ua as sub,
|
|
107
|
+
Wa as summary,
|
|
108
|
+
Xa as sup,
|
|
109
|
+
Ya as table,
|
|
110
|
+
Za as tbody,
|
|
111
|
+
_a as td,
|
|
112
|
+
$a as template,
|
|
113
|
+
as as textarea,
|
|
114
|
+
ss as tfoot,
|
|
115
|
+
es as th,
|
|
116
|
+
ts as thead,
|
|
117
|
+
rs as time,
|
|
118
|
+
os as title,
|
|
119
|
+
is as tr,
|
|
120
|
+
ls as track,
|
|
121
|
+
ds as u,
|
|
122
|
+
ms as ul,
|
|
123
|
+
ps as video,
|
|
124
|
+
cs as wbr
|
|
124
125
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Intersection, Object3D } from 'three';
|
|
2
|
+
|
|
3
|
+
export type En3RaycasterEventType = 'pointerDown' | 'pointerUp' | 'pointerMove' | 'pointerLeave' | 'pointerEnter' | 'pointerMove';
|
|
4
|
+
export type En3RaycasterEvent = {
|
|
5
|
+
type: En3RaycasterEventType;
|
|
6
|
+
originalEvent: PointerEvent;
|
|
7
|
+
} & Intersection<Object3D>;
|
|
8
|
+
export interface En3RaycasterOptions {
|
|
9
|
+
targetName?: string;
|
|
10
|
+
eventDispatcher?: Object3D;
|
|
11
|
+
propagation?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type En3RaycasterCallback = (event: En3RaycasterEvent) => void;
|
|
14
|
+
export declare class En3Raycaster {
|
|
15
|
+
#private;
|
|
16
|
+
constructor();
|
|
17
|
+
destroy(): void;
|
|
18
|
+
add(object3D: Object3D, options?: En3RaycasterOptions): void;
|
|
19
|
+
remove(object3D: Object3D): void;
|
|
20
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayoutBox, LayoutBoxOptions } from '../../layout-box';
|
|
2
|
-
import { Object3D, OrthographicCamera, PerspectiveCamera, Scene } from 'three';
|
|
3
2
|
import { ElementOrSelector } from '../../utils';
|
|
3
|
+
import { Object3D, OrthographicCamera, PerspectiveCamera, Scene } from 'three';
|
|
4
4
|
|
|
5
5
|
export interface En3ViewOptions {
|
|
6
6
|
cameraType?: 'perspective' | 'orthographic';
|
package/lib/en3/core/en3.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementOrSelector } from '../../utils';
|
|
2
2
|
import { WebGLRenderer, WebGLRendererParameters } from 'three';
|
|
3
3
|
import { En3View, En3ViewOptions } from './En3View';
|
|
4
|
+
import { En3Raycaster } from './En3Raycaster';
|
|
4
5
|
|
|
5
6
|
export interface En3Options {
|
|
6
7
|
webGLRendererParameters?: WebGLRendererParameters;
|
|
@@ -8,14 +9,18 @@ export interface En3Options {
|
|
|
8
9
|
containerElement?: ElementOrSelector<HTMLElement>;
|
|
9
10
|
view?: En3ViewOptions;
|
|
10
11
|
cacheAssets?: boolean;
|
|
12
|
+
zIndex?: number;
|
|
11
13
|
}
|
|
12
14
|
declare class En3 {
|
|
13
15
|
#private;
|
|
14
16
|
get CDNVersion(): string;
|
|
15
17
|
get containerElement(): HTMLElement;
|
|
16
18
|
get webglRenderer(): WebGLRenderer;
|
|
19
|
+
get raycaster(): En3Raycaster;
|
|
17
20
|
get views(): Map<string, En3View>;
|
|
18
21
|
get view(): En3View;
|
|
22
|
+
get camera(): import('three').PerspectiveCamera | import('three').OrthographicCamera;
|
|
23
|
+
get scene(): import('three').Scene;
|
|
19
24
|
get width(): number;
|
|
20
25
|
get height(): number;
|
|
21
26
|
get pixelRatio(): number;
|
|
@@ -26,7 +31,6 @@ declare class En3 {
|
|
|
26
31
|
getView(viewName: string): En3View;
|
|
27
32
|
destroyView(viewName: string): void;
|
|
28
33
|
render(view: En3View): void;
|
|
29
|
-
onResize?(): void;
|
|
30
34
|
}
|
|
31
35
|
export declare const en3: En3;
|
|
32
36
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Object3D } from 'three';
|
|
2
|
+
|
|
3
|
+
export interface En3Object3dManagerOptions {
|
|
4
|
+
step?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class En3Object3dManager {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(object3d: Object3D, options?: En3Object3dManagerOptions);
|
|
9
|
+
get object3d(): Object3D<import('three').Object3DEventMap>;
|
|
10
|
+
destroy(): void;
|
|
11
|
+
save(): void;
|
|
12
|
+
}
|