aptechka 0.3.0 → 0.4.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/{build-browser-lib/Damped-BvkThM-2.cjs → lib/Damped-B0eRyTcV.cjs} +1 -1
- package/{build-browser-lib/Damped-DEHDBwBz.js → lib/Damped-Do9H-LKf.js} +1 -1
- package/{build-browser-lib/Derived-Bc88XJ8J.js → lib/Derived-Dbjm-dob.js} +1 -1
- package/{build-browser-lib/Derived-SjPdLJiZ.cjs → lib/Derived-vGokdC4b.cjs} +1 -1
- package/{build-browser-lib/SourceManager-CI6NfLzW.cjs → lib/SourceManager-CzcqsC3z.cjs} +1 -1
- package/{build-browser-lib/SourceManager-BoP9RAJr.js → lib/SourceManager-noBYGNeX.js} +1 -1
- package/{build-browser-lib/Store-JOKrNVEr.js → lib/Store-DdDuj5hz.js} +42 -41
- package/lib/Store-Dis8QUAR.cjs +1 -0
- package/{build-browser-lib/Viewport-COsaberc.cjs → lib/Viewport-CRLSlcoi.cjs} +1 -1
- package/{build-browser-lib/Viewport-CXY5xcGJ.js → lib/Viewport-VSV_isot.js} +1 -1
- package/{build-browser-lib/WheelControls-BJdZsEkS.js → lib/WheelControls-BqO_fTyY.js} +1 -1
- package/{build-browser-lib/WheelControls-CctFwJwY.cjs → lib/WheelControls-fiz52vcl.cjs} +1 -1
- package/{build-browser-lib → lib}/abstract-elements/AbstractButtonElement.d.ts +1 -0
- package/{build-browser-lib → lib}/abstract-elements/index.cjs +1 -1
- package/{build-browser-lib → lib}/abstract-elements/index.js +2 -2
- package/{build-browser-lib → lib}/accordion/AccordionElement.d.ts +3 -2
- package/{build-browser-lib → lib}/animation/Damped.d.ts +2 -1
- package/{build-browser-lib → lib}/animation/Tweened.d.ts +3 -2
- package/{build-browser-lib → lib}/animation/index.cjs +1 -1
- package/{build-browser-lib → lib}/animation/index.js +2 -2
- package/{build-browser-lib → lib}/attribute/index.cjs +1 -1
- package/{build-browser-lib → lib}/attribute/index.d.ts +2 -1
- package/{build-browser-lib → lib}/attribute/index.js +2 -2
- package/{build-browser-lib → lib}/canvas/index.cjs +1 -1
- package/{build-browser-lib → lib}/canvas/index.d.ts +1 -0
- package/{build-browser-lib → lib}/canvas/index.js +3 -3
- package/{build-browser-lib → lib}/controls/Controls.d.ts +1 -0
- package/{build-browser-lib → lib}/controls/KeyboardControls.d.ts +1 -0
- package/{build-browser-lib → lib}/controls/LinearControls.d.ts +1 -0
- package/{build-browser-lib → lib}/controls/WheelControls.d.ts +2 -1
- package/{build-browser-lib → lib}/controls/index.cjs +1 -1
- package/{build-browser-lib → lib}/controls/index.js +2 -2
- package/{build-browser-lib/createStylesheet-C0OnN0Br.cjs → lib/createStylesheet-B4vLzvah.cjs} +1 -1
- package/{build-browser-lib/createStylesheet-CD11E4C8.js → lib/createStylesheet-CR-XQRVT.js} +1 -1
- package/{build-browser-lib → lib}/device/Device.d.ts +1 -0
- package/{build-browser-lib → lib}/device/Viewport.d.ts +1 -0
- package/{build-browser-lib → lib}/device/index.cjs +1 -1
- package/{build-browser-lib → lib}/device/index.js +1 -1
- package/lib/dom-0S_WDL4g.js +42 -0
- package/lib/dom-JBOkFLTh.cjs +1 -0
- package/{build-browser-lib → lib}/element-constructor/ElementConstructor.d.ts +14 -2
- package/{build-browser-lib → lib}/element-constructor/createStylesheet.d.ts +1 -0
- package/{build-browser-lib → lib}/element-constructor/createTheme.d.ts +1 -0
- package/lib/element-constructor/index.cjs +1 -0
- package/lib/element-constructor/index.js +124 -0
- package/{build-browser-lib → lib}/element-constructor/tags.d.ts +1 -0
- package/{build-browser-lib → lib}/element-resizer/index.cjs +1 -1
- package/{build-browser-lib → lib}/element-resizer/index.d.ts +1 -0
- package/{build-browser-lib → lib}/element-resizer/index.js +1 -1
- package/{build-browser-lib → lib}/en3/attachments/En3SourceManager.d.ts +3 -2
- package/{build-browser-lib → lib}/en3/core/En3Raycaster.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/core/en3.d.ts +8 -6
- package/{build-browser-lib → lib}/en3/index.cjs +1 -1
- package/{build-browser-lib → lib}/en3/index.js +6 -6
- package/{build-browser-lib → lib}/en3/instances/en3LazyLoader.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/loaders/en3GLTFLoader.d.ts +3 -5
- package/{build-browser-lib → lib}/en3/loaders/en3TextureLoader.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/objects/En3Clip.d.ts +3 -2
- package/{build-browser-lib → lib}/en3/objects/En3ClipHelpers.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/objects/En3GLTF.d.ts +4 -3
- package/{build-browser-lib → lib}/en3/objects/En3Image.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/objects/En3ImageLike.d.ts +3 -2
- package/{build-browser-lib → lib}/en3/objects/En3SourceConsumer.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/objects/En3Video.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/test/En3HTML.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/test/En3ModifiedMaterial.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/utils/coverTexture.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/utils/dispose.d.ts +1 -0
- package/lib/en3/utils/getCurrentViewport.d.ts +9 -0
- package/{build-browser-lib → lib}/en3/utils/traverseMaterials.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/utils/traverseMeshes.d.ts +1 -0
- package/{build-browser-lib → lib}/image/index.cjs +1 -1
- package/{build-browser-lib → lib}/image/index.d.ts +1 -0
- package/{build-browser-lib → lib}/image/index.js +1 -1
- package/{build-browser-lib/index-Dq6GRJ9W.js → lib/index-D-FPaxdJ.js} +3 -3
- package/{build-browser-lib/index--wI4MTuv.cjs → lib/index-MKoD8NCT.cjs} +1 -1
- package/{build-browser-lib → lib}/intersector/index.cjs +1 -1
- package/{build-browser-lib → lib}/intersector/index.d.ts +1 -0
- package/{build-browser-lib → lib}/intersector/index.js +1 -1
- package/{build-browser-lib → lib}/ladder/index.cjs +1 -1
- package/{build-browser-lib → lib}/ladder/index.d.ts +1 -0
- package/{build-browser-lib → lib}/ladder/index.js +1 -1
- package/{build-browser-lib → lib}/layout-box/index.cjs +1 -1
- package/{build-browser-lib → lib}/layout-box/index.d.ts +3 -2
- package/{build-browser-lib → lib}/layout-box/index.js +1 -1
- package/{build-browser-lib → lib}/loading/index.d.ts +1 -0
- package/{build-browser-lib → lib}/media/index.cjs +1 -1
- package/{build-browser-lib → lib}/media/index.d.ts +1 -0
- package/{build-browser-lib → lib}/media/index.js +1 -1
- package/{build-browser-lib → lib}/modal/ModalElement.d.ts +1 -0
- package/{build-browser-lib → lib}/modal/index.cjs +1 -1
- package/{build-browser-lib → lib}/modal/index.js +3 -3
- package/{build-browser-lib → lib}/morph/Link.d.ts +1 -0
- package/{build-browser-lib → lib}/popover/PopoverButtonElement.d.ts +2 -1
- package/{build-browser-lib → lib}/popover/PopoverElement.d.ts +3 -2
- package/{build-browser-lib → lib}/popover/index.cjs +1 -1
- package/{build-browser-lib → lib}/popover/index.js +1 -1
- package/{build-browser-lib → lib}/resized/index.cjs +1 -1
- package/{build-browser-lib → lib}/resized/index.d.ts +2 -1
- package/{build-browser-lib → lib}/resized/index.js +1 -1
- package/{build-browser-lib → lib}/router/Link.d.ts +1 -0
- package/{build-browser-lib → lib}/router/Router.d.ts +1 -0
- package/lib/router/index.cjs +1 -0
- package/{build-browser-lib → lib}/router/index.js +93 -98
- package/{build-browser-lib → lib}/scroll/ScrollElement.d.ts +5 -26
- package/{build-browser-lib → lib}/scroll/ScrollUserElement.d.ts +2 -1
- package/{build-browser-lib → lib}/scroll/ScrollbarElement.d.ts +1 -0
- package/lib/scroll/index.cjs +1 -0
- package/{build-browser-lib → lib}/scroll/index.js +103 -127
- package/lib/scroll-entries/index.cjs +1 -0
- package/{build-browser-lib → lib}/scroll-entries/index.d.ts +1 -0
- package/{build-browser-lib → lib}/scroll-entries/index.js +16 -17
- package/{build-browser-lib → lib}/select/SelectElement.d.ts +1 -0
- package/{build-browser-lib → lib}/select/SelectHeadElement.d.ts +1 -0
- package/{build-browser-lib → lib}/select/SelectOptionElement.d.ts +1 -0
- package/{build-browser-lib → lib}/select/SelectUserElement.d.ts +2 -1
- package/{build-browser-lib → lib}/select/index.cjs +1 -1
- package/{build-browser-lib → lib}/select/index.js +1 -1
- package/{build-browser-lib → lib}/slicer/DecoderElement.d.ts +1 -0
- package/{build-browser-lib → lib}/slicer/SlicerElement.d.ts +3 -2
- package/{build-browser-lib → lib}/slicer/Word.d.ts +1 -0
- package/{build-browser-lib → lib}/source/SourceElement.d.ts +2 -1
- package/{build-browser-lib → lib}/source/SourceManager.d.ts +2 -1
- package/{build-browser-lib → lib}/source/SourceSet.d.ts +1 -0
- package/{build-browser-lib → lib}/source/index.cjs +1 -1
- package/{build-browser-lib → lib}/source/index.js +2 -2
- package/{build-browser-lib → lib}/store/Composed.d.ts +1 -0
- package/{build-browser-lib → lib}/store/CumulativeResource.d.ts +1 -0
- package/{build-browser-lib → lib}/store/Derived.d.ts +1 -0
- package/{build-browser-lib → lib}/store/DerivedArray.d.ts +1 -0
- package/{build-browser-lib → lib}/store/Resource.d.ts +2 -1
- package/{build-browser-lib → lib}/store/Store.d.ts +1 -0
- package/{build-browser-lib → lib}/store/StoreRegistry.d.ts +1 -0
- package/lib/store/index.cjs +1 -0
- package/lib/store/index.js +146 -0
- package/{build-browser-lib → lib}/studio/StudioElement.d.ts +1 -0
- package/{build-browser-lib → lib}/studio/index.cjs +1 -1
- package/{build-browser-lib → lib}/studio/index.js +17 -17
- package/{build-browser-lib → lib}/studio/tweaker/TweakerBooleanManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerColorManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerFieldElement.d.ts +3 -2
- package/{build-browser-lib → lib}/studio/tweaker/TweakerFolderElement.d.ts +4 -3
- package/{build-browser-lib → lib}/studio/tweaker/TweakerLinkManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerNumberManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerRangeManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerSelectManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerStoreManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerStringManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/tweakerManagerConstructors.d.ts +2 -1
- package/lib/tags-D3-tO-m6.cjs +1 -0
- package/lib/tags-D9nd9mMM.js +846 -0
- package/{build-browser-lib → lib}/theme/index.cjs +1 -1
- package/{build-browser-lib → lib}/theme/index.js +2 -2
- package/{build-browser-lib → lib}/ticker/index.d.ts +1 -0
- package/{build-browser-lib → lib}/utils/collisions.d.ts +1 -0
- package/{build-browser-lib → lib}/utils/coordinates.d.ts +1 -0
- package/{build-browser-lib → lib}/utils/dom.d.ts +1 -0
- package/lib/utils/index.cjs +1 -0
- package/{build-browser-lib → lib}/utils/index.d.ts +1 -1
- package/{build-browser-lib → lib}/utils/index.js +68 -67
- package/{build-browser-lib → lib}/utils/math.d.ts +1 -0
- package/{build-browser-lib → lib}/video/index.cjs +1 -1
- package/{build-browser-lib → lib}/video/index.d.ts +1 -0
- package/{build-browser-lib → lib}/video/index.js +1 -1
- package/{build-browser-lib → lib}/window-resizer/index.d.ts +1 -0
- package/package.json +164 -239
- package/build-browser-lib/ComponentElement-B8zjY3Dh.js +0 -92
- package/build-browser-lib/ComponentElement-DuiOKawv.cjs +0 -1
- package/build-browser-lib/Composed-ClTo1f0b.js +0 -79
- package/build-browser-lib/Composed-Mdr4ZFbI.cjs +0 -1
- package/build-browser-lib/ElementConstructor-B61ZFTEB.cjs +0 -1
- package/build-browser-lib/ElementConstructor-CvNdPKJy.js +0 -314
- package/build-browser-lib/Store-D0_rDIsE.cjs +0 -1
- package/build-browser-lib/animation/hooks/index.cjs +0 -1
- package/build-browser-lib/animation/hooks/index.d.ts +0 -8
- package/build-browser-lib/animation/hooks/index.js +0 -32
- package/build-browser-lib/attribute/hooks/index.d.ts +0 -2
- package/build-browser-lib/controls/hooks/index.d.ts +0 -1
- package/build-browser-lib/createStore-CUWrqVrV.cjs +0 -1
- package/build-browser-lib/createStore-DncUX-yj.js +0 -15
- package/build-browser-lib/dom-BY7JhTx5.js +0 -24
- package/build-browser-lib/dom-qY2LdCVL.cjs +0 -1
- package/build-browser-lib/element-constructor/index.cjs +0 -1
- package/build-browser-lib/element-constructor/index.js +0 -125
- package/build-browser-lib/element-resizer/hooks/index.cjs +0 -1
- package/build-browser-lib/element-resizer/hooks/index.d.ts +0 -4
- package/build-browser-lib/element-resizer/hooks/index.js +0 -12
- package/build-browser-lib/en3/utils/getCurrentViewport.d.ts +0 -7
- package/build-browser-lib/instantiate-BYzkD4SE.js +0 -72
- package/build-browser-lib/instantiate-DrQ1MNUN.cjs +0 -1
- package/build-browser-lib/intersector/hooks/index.cjs +0 -1
- package/build-browser-lib/intersector/hooks/index.d.ts +0 -4
- package/build-browser-lib/intersector/hooks/index.js +0 -12
- package/build-browser-lib/jsx/ComponentElement.d.ts +0 -27
- package/build-browser-lib/jsx/h.d.ts +0 -3
- package/build-browser-lib/jsx/hooks/attachInternals.d.ts +0 -1
- package/build-browser-lib/jsx/hooks/attachShadow.d.ts +0 -1
- package/build-browser-lib/jsx/hooks/attachStylesheet.d.ts +0 -2
- package/build-browser-lib/jsx/hooks/createStore.d.ts +0 -3
- package/build-browser-lib/jsx/hooks/index.cjs +0 -1
- package/build-browser-lib/jsx/hooks/index.d.ts +0 -8
- package/build-browser-lib/jsx/hooks/index.js +0 -77
- package/build-browser-lib/jsx/hooks/onConnect.d.ts +0 -2
- package/build-browser-lib/jsx/hooks/onContext.d.ts +0 -3
- package/build-browser-lib/jsx/hooks/onDisconnect.d.ts +0 -2
- package/build-browser-lib/jsx/hooks/withCurrentComponent.d.ts +0 -2
- package/build-browser-lib/jsx/index.cjs +0 -1
- package/build-browser-lib/jsx/index.d.ts +0 -5
- package/build-browser-lib/jsx/index.js +0 -27
- package/build-browser-lib/jsx/instantiate.d.ts +0 -1
- package/build-browser-lib/jsx/register.d.ts +0 -1
- package/build-browser-lib/jsx/render.d.ts +0 -1
- package/build-browser-lib/jsx/type.d.ts +0 -185
- package/build-browser-lib/onConnect-FWEekrNj.js +0 -9
- package/build-browser-lib/onConnect-XY4UppQZ.cjs +0 -1
- package/build-browser-lib/router/index.cjs +0 -1
- package/build-browser-lib/scroll/index.cjs +0 -1
- package/build-browser-lib/scroll-entries/index.cjs +0 -1
- package/build-browser-lib/store/hooks/index.cjs +0 -1
- package/build-browser-lib/store/hooks/index.d.ts +0 -6
- package/build-browser-lib/store/hooks/index.js +0 -26
- package/build-browser-lib/store/index.cjs +0 -1
- package/build-browser-lib/store/index.js +0 -75
- package/build-browser-lib/tags-C2jg1zYB.js +0 -485
- package/build-browser-lib/tags-DX-eNxbA.cjs +0 -1
- package/build-browser-lib/ticker/hooks/index.cjs +0 -1
- package/build-browser-lib/ticker/hooks/index.d.ts +0 -5
- package/build-browser-lib/ticker/hooks/index.js +0 -23
- package/build-browser-lib/utils/index.cjs +0 -1
- package/build-browser-lib/window-resizer/hooks/index.cjs +0 -1
- package/build-browser-lib/window-resizer/hooks/index.d.ts +0 -2
- package/build-browser-lib/window-resizer/hooks/index.js +0 -9
- package/build-browser-lib/withCurrentComponent-Cd8KOtNf.js +0 -7
- package/build-browser-lib/withCurrentComponent-Cig6ryJK.cjs +0 -1
- package/build-vite-plugin-htmc/index.d.ts +0 -7
- package/build-vite-plugin-htmc/index.js +0 -352
- /package/{build-browser-lib → lib}/abstract-elements/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/accordion/index.cjs +0 -0
- /package/{build-browser-lib → lib}/accordion/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/accordion/index.js +0 -0
- /package/{build-browser-lib → lib}/animation/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/attributes-69we3byR.js +0 -0
- /package/{build-browser-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
- /package/{build-browser-lib → lib}/browser-0zX67oeU.js +0 -0
- /package/{build-browser-lib → lib}/browser-CpzFX2xg.cjs +0 -0
- /package/{build-browser-lib → lib}/connector/index.cjs +0 -0
- /package/{build-browser-lib → lib}/connector/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/connector/index.js +0 -0
- /package/{build-browser-lib → lib}/controls/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/createTheme-B_W5dUY9.cjs +0 -0
- /package/{build-browser-lib → lib}/createTheme-D0IoYkYN.js +0 -0
- /package/{build-browser-lib → lib}/css-unit-parser/index.cjs +0 -0
- /package/{build-browser-lib → lib}/css-unit-parser/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/css-unit-parser/index.js +0 -0
- /package/{build-browser-lib → lib}/custom-element/index.cjs +0 -0
- /package/{build-browser-lib → lib}/custom-element/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/custom-element/index.js +0 -0
- /package/{build-browser-lib → lib}/device/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/easings-BKi40vHz.js +0 -0
- /package/{build-browser-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
- /package/{build-browser-lib → lib}/element-constructor/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/element-constructor/knownSvgTags.d.ts +0 -0
- /package/{build-browser-lib → lib}/en3/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/en3/libs/MeshoptDecoder.d.ts +0 -0
- /package/{build-browser-lib → lib}/events-Crwi8fz6.cjs +0 -0
- /package/{build-browser-lib → lib}/events-_C2CztxR.js +0 -0
- /package/{build-browser-lib → lib}/file-EevnUtRj.cjs +0 -0
- /package/{build-browser-lib → lib}/file-lxi_oXJf.js +0 -0
- /package/{build-browser-lib → lib}/function-C10DGppn.js +0 -0
- /package/{build-browser-lib → lib}/function-MthRj-GJ.cjs +0 -0
- /package/{build-browser-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
- /package/{build-browser-lib → lib}/layout-HoBT_Da2.js +0 -0
- /package/{build-browser-lib → lib}/loading/index.cjs +0 -0
- /package/{build-browser-lib → lib}/loading/index.js +0 -0
- /package/{build-browser-lib → lib}/math-BOBiC4TN.js +0 -0
- /package/{build-browser-lib → lib}/math-GDWEqu7y.cjs +0 -0
- /package/{build-browser-lib → lib}/modal/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/morph/Morph.d.ts +0 -0
- /package/{build-browser-lib → lib}/morph/index.cjs +0 -0
- /package/{build-browser-lib → lib}/morph/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/morph/index.js +0 -0
- /package/{build-browser-lib → lib}/notifier/index.cjs +0 -0
- /package/{build-browser-lib → lib}/notifier/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/notifier/index.js +0 -0
- /package/{build-browser-lib → lib}/number-Bo5RdrA1.js +0 -0
- /package/{build-browser-lib → lib}/number-yVpzMdbQ.cjs +0 -0
- /package/{build-browser-lib → lib}/object-BZELAoVj.cjs +0 -0
- /package/{build-browser-lib → lib}/object-R34VLqhp.js +0 -0
- /package/{build-browser-lib → lib}/order/index.cjs +0 -0
- /package/{build-browser-lib → lib}/order/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/order/index.js +0 -0
- /package/{build-browser-lib → lib}/polyfills-CrcS4RcO.cjs +0 -0
- /package/{build-browser-lib → lib}/polyfills-DJUYczFm.js +0 -0
- /package/{build-browser-lib → lib}/popover/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/router/Route.d.ts +0 -0
- /package/{build-browser-lib → lib}/router/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/scroll/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/select/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/slicer/Letter.d.ts +0 -0
- /package/{build-browser-lib → lib}/slicer/index.cjs +0 -0
- /package/{build-browser-lib → lib}/slicer/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/slicer/index.js +0 -0
- /package/{build-browser-lib → lib}/source/SourceClass.d.ts +0 -0
- /package/{build-browser-lib → lib}/source/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/store/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/string-3lAkpJJP.js +0 -0
- /package/{build-browser-lib → lib}/string-vBu90jhV.cjs +0 -0
- /package/{build-browser-lib → lib}/studio/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/studio/studioStorage.d.ts +0 -0
- /package/{build-browser-lib → lib}/style-At6aDoqG.cjs +0 -0
- /package/{build-browser-lib → lib}/style-j2TwriJ_.js +0 -0
- /package/{build-browser-lib → lib}/theme/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/ticker/index.cjs +0 -0
- /package/{build-browser-lib → lib}/ticker/index.js +0 -0
- /package/{build-browser-lib → lib}/utils/array.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/attributes.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/browser.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/canvas.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/cssom.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/decoding.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/easings.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/events.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/file.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/function.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/layout.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/number.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/object.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/polyfills.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/string.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/style.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/ts-shape.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/ts-utility.d.ts +0 -0
- /package/{build-browser-lib → lib}/window-resizer/index.cjs +0 -0
- /package/{build-browser-lib → lib}/window-resizer/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=Object.defineProperty,z=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var D=(r,i,t)=>i in r?v(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,I=(r,i)=>{for(var t in i||(i={}))E.call(i,t)&&D(r,t,i[t]);if(N)for(var t of N(i))G.call(i,t)&&D(r,t,i[t]);return r},M=(r,i)=>z(r,B(i));var P=(r,i,t)=>{if(!i.has(r))throw TypeError("Cannot "+t)};var e=(r,i,t)=>(P(r,i,"read from private field"),t?t.call(r):i.get(r)),n=(r,i,t)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,t)},h=(r,i,t,s)=>(P(r,i,"write to private field"),s?s.call(r,t):i.set(r,t),t);var k=(r,i,t)=>(P(r,i,"access private method"),t);const R=require("./Store-
|
|
1
|
+
"use strict";var v=Object.defineProperty,z=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var D=(r,i,t)=>i in r?v(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,I=(r,i)=>{for(var t in i||(i={}))E.call(i,t)&&D(r,t,i[t]);if(N)for(var t of N(i))G.call(i,t)&&D(r,t,i[t]);return r},M=(r,i)=>z(r,B(i));var P=(r,i,t)=>{if(!i.has(r))throw TypeError("Cannot "+t)};var e=(r,i,t)=>(P(r,i,"read from private field"),t?t.call(r):i.get(r)),n=(r,i,t)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,t)},h=(r,i,t,s)=>(P(r,i,"write to private field"),s?s.call(r,t):i.set(r,t),t);var k=(r,i,t)=>(P(r,i,"access private method"),t);const R=require("./Store-Dis8QUAR.cjs"),w=require("./math-GDWEqu7y.cjs"),C=require("./number-yVpzMdbQ.cjs"),L=require("./polyfills-CrcS4RcO.cjs"),_=require("./ticker/index.cjs");var d,f,x,g,m,b,l,a,c,u,F,j,q,p,S,A;class H extends R.Store{constructor(t,s){super(t||0);n(this,F);n(this,q);n(this,d,void 0);n(this,f,void 0);n(this,x,void 0);n(this,g,void 0);n(this,m,new R.Store(!1));n(this,b,0);n(this,l,0);n(this,a,0);n(this,c,0);n(this,u,void 0);n(this,S,t=>{const s=this.current;C.preciseNumber(this.current,4)===C.preciseNumber(this.target,4)&&(this.stopAnimation(),this.current=this.target),this.current=w.damp(this.current,this.target,e(this,g),t.elapsed);const y=Math.abs(s-this.target);h(this,l,y/t.elapsed)});n(this,A,()=>{this.set(e(this,u),!0)});h(this,g,(s==null?void 0:s.damping)||.01),h(this,f,s==null?void 0:s.order),h(this,d,s==null?void 0:s.maxFPS),h(this,x,s==null?void 0:s.culling),h(this,a,L.nullishCoalescing(s==null?void 0:s.min,-1/0)),h(this,c,L.nullishCoalescing(s==null?void 0:s.max,1/0)),h(this,u,this.current)}get target(){return e(this,u)}get isRunning(){return e(this,m)}get direction(){return e(this,b)}get maxFPS(){return e(this,d)}get speed(){return e(this,l)}get min(){return e(this,a)}set min(t){h(this,a,t),e(this,A).call(this)}get max(){return e(this,c)}set max(t){h(this,c,t),e(this,A).call(this)}get length(){return e(this,c)-e(this,a)}get progress(){return this.length?C.preciseNumber((this.current-e(this,a))/this.length,6):0}get damping(){return e(this,g)}set damping(t){h(this,g,t)}get entry(){return M(I({},super.entry),{min:e(this,a),max:e(this,c),length:this.length,direction:this.direction,progress:this.progress,speed:this.speed})}set(t,s=!1){const y=e(this,u);h(this,u,w.clamp(t,e(this,a),e(this,c))),s&&(this.current=e(this,u)),e(this,u)!==y&&(h(this,l,0),h(this,b,Math.sign(t-e(this,u))||1),k(this,q,p).call(this))}shift(t,s=!1){this.set(e(this,u)+t,s)}close(){super.close(),this.stopAnimation()}reset(){this.set(this.initial,!0)}stopAnimation(){e(this,m).current&&(h(this,l,0),e(this,m).current=!1,_.ticker.unsubscribe(e(this,S)))}}d=new WeakMap,f=new WeakMap,x=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,l=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,F=new WeakSet,j=function(){e(this,m).current||(e(this,m).current=!0,_.ticker.subscribe(e(this,S),{maxFPS:e(this,d),order:e(this,f),culling:e(this,x)}))},q=new WeakSet,p=function(){e(this,g)?this.current!==this.target&&k(this,F,j).call(this):(this.current=this.target,this.stopAnimation())},S=new WeakMap,A=new WeakMap;exports.Damped=H;
|
|
@@ -20,7 +20,7 @@ var i = (r, e, t) => (p(r, e, "read from private field"), t ? t.call(r) : e.get(
|
|
|
20
20
|
e instanceof WeakSet ? e.add(r) : e.set(r, t);
|
|
21
21
|
}, h = (r, e, t, s) => (p(r, e, "write to private field"), s ? s.call(r, t) : e.set(r, t), t);
|
|
22
22
|
var C = (r, e, t) => (p(r, e, "access private method"), t);
|
|
23
|
-
import { S as w } from "./Store-
|
|
23
|
+
import { S as w } from "./Store-DdDuj5hz.js";
|
|
24
24
|
import { c as H, d as J } from "./math-BOBiC4TN.js";
|
|
25
25
|
import { p as D } from "./number-Bo5RdrA1.js";
|
|
26
26
|
import { n as L } from "./polyfills-DJUYczFm.js";
|
|
@@ -7,7 +7,7 @@ var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(
|
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
r instanceof WeakSet ? r.add(s) : r.set(s, e);
|
|
9
9
|
}, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
|
|
10
|
-
import { S as p } from "./Store-
|
|
10
|
+
import { S as p } from "./Store-DdDuj5hz.js";
|
|
11
11
|
var t;
|
|
12
12
|
class d extends p {
|
|
13
13
|
constructor(e, c, l) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-
|
|
1
|
+
"use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-Dis8QUAR.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-
|
|
1
|
+
"use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-Dis8QUAR.cjs");var l,g,q,x,a,p,w;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,w,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const m=/\d+x/g,h=i.find(f=>f.match(m));c(this,q,h?parseInt(h):1);const y=/\d+max/g,P=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(P));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${n(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")),c(this,w,"."+i[i.length-1])}get url(){return n(this,l)}get name(){return n(this,g)}get density(){return n(this,q)}get query(){return n(this,x)}get extension(){return n(this,w)}get queryType(){return n(this,p)}get queryPx(){return n(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,w=new WeakMap;var d;class b{constructor(s){o(this,d,void 0);c(this,d,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const m=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...m,...h]:[...m,...h]).forEach(e=>{n(this,d).has(e[0])||n(this,d).set(e[0],[]),n(this,d).get(e[0]).push(e[1])})}get mediaBuckets(){return n(this,d)}}d=new WeakMap;var E,R;class B extends z.Store{constructor(t){super(void 0);o(this,E,void 0);o(this,R,()=>{let t;n(this,E).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,m=0;t==null||t.forEach(h=>{h.density>m&&h.density<=Math.max(devicePixelRatio,1)&&(m=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,E,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){M.windowResizer.subscribe(n(this,R),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){M.windowResizer.unsubscribe(n(this,R))}}E=new WeakMap,R=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
|
|
@@ -9,7 +9,7 @@ var n = (r, s, t) => (M(r, s, "read from private field"), t ? t.call(r) : s.get(
|
|
|
9
9
|
}, h = (r, s, t, i) => (M(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
|
|
10
10
|
import { RESIZE_ORDER as I } from "./order/index.js";
|
|
11
11
|
import { windowResizer as b } from "./window-resizer/index.js";
|
|
12
|
-
import { S } from "./Store-
|
|
12
|
+
import { S } from "./Store-DdDuj5hz.js";
|
|
13
13
|
var l, g, q, x, o, p, w;
|
|
14
14
|
class k {
|
|
15
15
|
constructor(s) {
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
var
|
|
1
|
+
var p = (s, t, e) => {
|
|
2
2
|
if (!t.has(s))
|
|
3
3
|
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var r = (s, t, e) => (
|
|
5
|
+
var r = (s, t, e) => (p(s, t, "read from private field"), e ? e.call(s) : t.get(s)), a = (s, t, e) => {
|
|
6
6
|
if (t.has(s))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
9
|
-
}, i = (s, t, e, h) => (
|
|
10
|
-
var k = (s, t, e) => (
|
|
11
|
-
import { i as
|
|
12
|
-
var l,
|
|
13
|
-
class
|
|
9
|
+
}, i = (s, t, e, h) => (p(s, t, "write to private field"), h ? h.call(s, e) : t.set(s, e), e);
|
|
10
|
+
var k = (s, t, e) => (p(s, t, "access private method"), e);
|
|
11
|
+
import { i as j } from "./browser-0zX67oeU.js";
|
|
12
|
+
var l, S, o;
|
|
13
|
+
class z {
|
|
14
14
|
constructor() {
|
|
15
15
|
a(this, l, null);
|
|
16
|
-
a(this, o, "");
|
|
17
16
|
a(this, S, "");
|
|
18
|
-
|
|
17
|
+
a(this, o, "");
|
|
18
|
+
j && (i(this, S, document.documentElement.getAttribute("data-project") || "unnamed"), i(this, o, r(this, S) ? r(this, S) + "-store-registry" : "store-registry"));
|
|
19
19
|
}
|
|
20
20
|
get projectName() {
|
|
21
|
-
return r(this,
|
|
21
|
+
return r(this, S);
|
|
22
22
|
}
|
|
23
23
|
get localStoreRegistryName() {
|
|
24
|
-
return r(this,
|
|
24
|
+
return r(this, o);
|
|
25
25
|
}
|
|
26
26
|
get loadedState() {
|
|
27
27
|
return r(this, l);
|
|
28
28
|
}
|
|
29
29
|
saveState() {
|
|
30
30
|
const t = this.getState(), e = JSON.stringify(t);
|
|
31
|
-
localStorage.setItem(r(this,
|
|
31
|
+
localStorage.setItem(r(this, o), e);
|
|
32
32
|
}
|
|
33
33
|
loadState(t = localStorage.getItem(
|
|
34
|
-
r(this,
|
|
34
|
+
r(this, o)
|
|
35
35
|
)) {
|
|
36
|
-
t && (typeof t == "string" ? i(this, l, JSON.parse(t)) : i(this, l, t),
|
|
36
|
+
t && (typeof t == "string" ? i(this, l, JSON.parse(t)) : i(this, l, t), d.current.forEach((e) => {
|
|
37
37
|
this.updateStore(e);
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
40
|
resetState() {
|
|
41
|
-
|
|
41
|
+
d.current.forEach((t) => {
|
|
42
42
|
t.reset();
|
|
43
43
|
}), this.saveState();
|
|
44
44
|
}
|
|
45
45
|
updateStore(t) {
|
|
46
|
-
var h,
|
|
46
|
+
var h, v;
|
|
47
47
|
if (!Array.isArray((h = r(this, l)) == null ? void 0 : h.stores))
|
|
48
48
|
return t;
|
|
49
49
|
const e = t.passport;
|
|
50
50
|
if (e) {
|
|
51
|
-
const
|
|
52
|
-
(
|
|
51
|
+
const A = (v = r(this, l)) == null ? void 0 : v.stores.find(
|
|
52
|
+
(R) => R.name === e.name
|
|
53
53
|
);
|
|
54
|
-
|
|
54
|
+
A && (t.current = A.value);
|
|
55
55
|
}
|
|
56
56
|
return t;
|
|
57
57
|
}
|
|
@@ -59,7 +59,7 @@ class A {
|
|
|
59
59
|
const t = {
|
|
60
60
|
stores: []
|
|
61
61
|
};
|
|
62
|
-
return
|
|
62
|
+
return d.current.forEach((e) => {
|
|
63
63
|
e.passport && (t.stores.find((h) => h.name === e.passport.name) || t.stores.push({
|
|
64
64
|
value: e.current,
|
|
65
65
|
name: e.passport.name
|
|
@@ -67,21 +67,22 @@ class A {
|
|
|
67
67
|
}), t;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
l = new WeakMap(),
|
|
71
|
-
const M = new
|
|
72
|
-
var u, m, g,
|
|
70
|
+
l = new WeakMap(), S = new WeakMap(), o = new WeakMap();
|
|
71
|
+
const M = new z();
|
|
72
|
+
var u, m, g, f, y, n, b, c, w, N, E;
|
|
73
73
|
class q {
|
|
74
74
|
constructor(t, e) {
|
|
75
|
-
a(this,
|
|
75
|
+
a(this, N);
|
|
76
76
|
a(this, u, void 0);
|
|
77
77
|
a(this, m, void 0);
|
|
78
78
|
a(this, g, void 0);
|
|
79
|
-
a(this,
|
|
79
|
+
a(this, f, void 0);
|
|
80
80
|
a(this, y, void 0);
|
|
81
81
|
a(this, n, /* @__PURE__ */ new Set());
|
|
82
82
|
a(this, b, void 0);
|
|
83
83
|
a(this, c, void 0);
|
|
84
|
-
|
|
84
|
+
a(this, w, void 0);
|
|
85
|
+
i(this, u, e == null ? void 0 : e.passport), i(this, m, t), i(this, g, void 0), i(this, f, t), i(this, y, (e == null ? void 0 : e.equalityCheck) || ((h, v) => h === v)), e != null && e.validate && this.addMiddleware(e.validate), i(this, w, (e == null ? void 0 : e.notifyAndClose) || !1), i(this, b, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, u) && M.updateStore(this);
|
|
85
86
|
}
|
|
86
87
|
get passport() {
|
|
87
88
|
return r(this, u);
|
|
@@ -93,14 +94,14 @@ class q {
|
|
|
93
94
|
return r(this, g);
|
|
94
95
|
}
|
|
95
96
|
get current() {
|
|
96
|
-
return r(this,
|
|
97
|
+
return r(this, f);
|
|
97
98
|
}
|
|
98
99
|
set current(t) {
|
|
99
|
-
if (!r(this, y).call(this, r(this,
|
|
100
|
-
if (i(this, g, r(this,
|
|
100
|
+
if (!r(this, y).call(this, r(this, f), t)) {
|
|
101
|
+
if (i(this, g, r(this, f)), r(this, c))
|
|
101
102
|
for (const e of r(this, c))
|
|
102
103
|
t = e(t);
|
|
103
|
-
i(this,
|
|
104
|
+
i(this, f, t), k(this, N, E).call(this), r(this, w) && this.close();
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
get subscribers() {
|
|
@@ -108,7 +109,7 @@ class q {
|
|
|
108
109
|
}
|
|
109
110
|
get entry() {
|
|
110
111
|
return {
|
|
111
|
-
current: r(this,
|
|
112
|
+
current: r(this, f),
|
|
112
113
|
previous: r(this, g)
|
|
113
114
|
};
|
|
114
115
|
}
|
|
@@ -120,33 +121,33 @@ class q {
|
|
|
120
121
|
(e = r(this, c)) == null || e.delete(t), (h = r(this, c)) != null && h.size || i(this, c, void 0);
|
|
121
122
|
}
|
|
122
123
|
subscribe(t) {
|
|
123
|
-
return r(this, u) && !r(this, n).size &&
|
|
124
|
+
return r(this, u) && !r(this, n).size && I(this), r(this, n).add(t), r(this, b) || t(this.entry), () => {
|
|
124
125
|
this.unsubscribe(t);
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
128
|
unsubscribe(t) {
|
|
128
|
-
r(this, n).delete(t), r(this, u) && !r(this, n).size &&
|
|
129
|
+
r(this, n).delete(t), r(this, u) && !r(this, n).size && C(this);
|
|
129
130
|
}
|
|
130
131
|
reset() {
|
|
131
132
|
this.current = this.initial;
|
|
132
133
|
}
|
|
133
134
|
close() {
|
|
134
|
-
r(this, n).clear(), r(this, u) &&
|
|
135
|
+
r(this, n).clear(), r(this, u) && C(this);
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
|
-
u = new WeakMap(), m = new WeakMap(), g = new WeakMap(),
|
|
138
|
+
u = new WeakMap(), m = new WeakMap(), g = new WeakMap(), f = new WeakMap(), y = new WeakMap(), n = new WeakMap(), b = new WeakMap(), c = new WeakMap(), w = new WeakMap(), N = new WeakSet(), E = function() {
|
|
138
139
|
for (const t of r(this, n))
|
|
139
140
|
t(this.entry);
|
|
140
141
|
};
|
|
141
|
-
const
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
const d = new q([]);
|
|
143
|
+
function I(s) {
|
|
144
|
+
d.current.includes(s) || (d.current = [...d.current, s]);
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
146
|
+
function C(s) {
|
|
147
|
+
d.current.includes(s) && (d.current = d.current.filter((t) => t !== s));
|
|
147
148
|
}
|
|
148
149
|
export {
|
|
149
150
|
q as S,
|
|
150
|
-
|
|
151
|
+
d as a,
|
|
151
152
|
M as s
|
|
152
153
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var p=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(p(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,h)=>(p(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(p(s,t,"access private method"),e);const z=require("./browser-CpzFX2xg.cjs");var l,S,o;class M{constructor(){a(this,l,null);a(this,S,"");a(this,o,"");z.isBrowser&&(i(this,S,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,o,r(this,S)?r(this,S)+"-store-registry":"store-registry"))}get projectName(){return r(this,S)}get localStoreRegistryName(){return r(this,o)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,o),e)}loadState(t=localStorage.getItem(r(this,o))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),u.current.forEach(e=>{this.updateStore(e)}))}resetState(){u.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var h,v;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const A=(v=r(this,l))==null?void 0:v.stores.find(q=>q.name===e.name);A&&(t.current=A.value)}return t}getState(){const t={stores:[]};return u.current.forEach(e=>{e.passport&&(t.stores.find(h=>h.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}l=new WeakMap,S=new WeakMap,o=new WeakMap;const C=new M;var f,m,g,d,y,n,b,c,w,N,j;class E{constructor(t,e){a(this,N);a(this,f,void 0);a(this,m,void 0);a(this,g,void 0);a(this,d,void 0);a(this,y,void 0);a(this,n,new Set);a(this,b,void 0);a(this,c,void 0);a(this,w,void 0);i(this,f,e==null?void 0:e.passport),i(this,m,t),i(this,g,void 0),i(this,d,t),i(this,y,(e==null?void 0:e.equalityCheck)||((h,v)=>h===v)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,w,(e==null?void 0:e.notifyAndClose)||!1),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,f)&&C.updateStore(this)}get passport(){return r(this,f)}get initial(){return r(this,m)}get previous(){return r(this,g)}get current(){return r(this,d)}set current(t){if(!r(this,y).call(this,r(this,d),t)){if(i(this,g,r(this,d)),r(this,c))for(const e of r(this,c))t=e(t);i(this,d,t),R(this,N,j).call(this),r(this,w)&&this.close()}}get subscribers(){return r(this,n)}get entry(){return{current:r(this,d),previous:r(this,g)}}addMiddleware(t){r(this,c)||i(this,c,new Set),r(this,c).add(t)}removeMiddleware(t){var e,h;(e=r(this,c))==null||e.delete(t),(h=r(this,c))!=null&&h.size||i(this,c,void 0)}subscribe(t){return r(this,f)&&!r(this,n).size&&I(this),r(this,n).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,f)&&!r(this,n).size&&k(this)}reset(){this.current=this.initial}close(){r(this,n).clear(),r(this,f)&&k(this)}}f=new WeakMap,m=new WeakMap,g=new WeakMap,d=new WeakMap,y=new WeakMap,n=new WeakMap,b=new WeakMap,c=new WeakMap,w=new WeakMap,N=new WeakSet,j=function(){for(const t of r(this,n))t(this.entry)};const u=new E([]);function I(s){u.current.includes(s)||(u.current=[...u.current,s])}function k(s){u.current.includes(s)&&(u.current=u.current.filter(t=>t!==s))}exports.Store=E;exports.activeStores=u;exports.storeRegistry=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var W=(t,n,o)=>{if(!n.has(t))throw TypeError("Cannot "+o)};var i=(t,n,o)=>(W(t,n,"read from private field"),o?o.call(t):n.get(t)),s=(t,n,o)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,o)},e=(t,n,o,v)=>(W(t,n,"write to private field"),v?v.call(t,o):n.set(t,o),o);const k=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),_=require("detect-gpu"),q=require("./Store-
|
|
1
|
+
"use strict";var W=(t,n,o)=>{if(!n.has(t))throw TypeError("Cannot "+o)};var i=(t,n,o)=>(W(t,n,"read from private field"),o?o.call(t):n.get(t)),s=(t,n,o)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,o)},e=(t,n,o,v)=>(W(t,n,"write to private field"),v?v.call(t,o):n.set(t,o),o);const k=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),_=require("detect-gpu"),q=require("./Store-Dis8QUAR.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){s(this,r,"unknown");s(this,l,"unknown");s(this,m,0);s(this,c,null);s(this,g,!1);s(this,u,!1);s(this,w,!1);s(this,x,!1);s(this,d,!1);var n,o;if(D.isBrowser){e(this,c,_.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),A.windowResizer.subscribe(()=>{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)},k.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=(n=window.navigator)==null?void 0:n.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 M=new I;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 L{constructor(){s(this,p,0);s(this,b,0);s(this,f,0);s(this,h,new q.Store(void 0));D.isBrowser&&A.windowResizer.subscribe(()=>{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")},k.RESIZE_ORDER.DEVICE)}get width(){return i(this,p)}get height(){return i(this,b)}get store_type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const z=new L;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=M;exports.viewport=z;
|
|
@@ -11,7 +11,7 @@ import { RESIZE_ORDER as k } from "./order/index.js";
|
|
|
11
11
|
import { windowResizer as A } from "./window-resizer/index.js";
|
|
12
12
|
import { i as C } from "./browser-0zX67oeU.js";
|
|
13
13
|
import { getGPUTier as O } from "detect-gpu";
|
|
14
|
-
import { S as I } from "./Store-
|
|
14
|
+
import { S as I } from "./Store-DdDuj5hz.js";
|
|
15
15
|
var r, d, l, c, g, m, p, x, u;
|
|
16
16
|
class L {
|
|
17
17
|
constructor() {
|
|
@@ -8,7 +8,7 @@ var i = (t, s, e) => (g(t, s, "read from private field"), e ? e.call(t) : s.get(
|
|
|
8
8
|
s instanceof WeakSet ? s.add(t) : s.set(t, e);
|
|
9
9
|
}, l = (t, s, e, r) => (g(t, s, "write to private field"), r ? r.call(t, e) : s.set(t, e), e);
|
|
10
10
|
import { i as d } from "./browser-0zX67oeU.js";
|
|
11
|
-
import { g as x } from "./dom-
|
|
11
|
+
import { g as x } from "./dom-0S_WDL4g.js";
|
|
12
12
|
import { Notifier as b } from "./notifier/index.js";
|
|
13
13
|
var u;
|
|
14
14
|
class E {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var b=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(b(t,s,"read from private field"),e?e.call(t):s.get(t)),l=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(b(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);const n=require("./browser-CpzFX2xg.cjs"),x=require("./dom-
|
|
1
|
+
"use strict";var b=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(b(t,s,"read from private field"),e?e.call(t):s.get(t)),l=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(b(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);const n=require("./browser-CpzFX2xg.cjs"),x=require("./dom-JBOkFLTh.cjs"),E=require("./notifier/index.cjs");var m;class g{constructor(){l(this,m,new E.Notifier)}get changeEvent(){return r(this,m)}}m=new WeakMap;var d,o;class y extends g{constructor(e){super();l(this,d,null);l(this,o,e=>{const a=e.shiftKey?-1:1;let i;e.code==="Space"?i=a*500:e.code==="ArrowLeft"?i=-1*100:e.code==="ArrowRight"?i=1*100:e.code==="ArrowUp"?i=-1*100:e.code==="ArrowDown"?i=1*100:e.code==="PageUp"?i=-1*1e3:e.code==="PageDown"?i=1*1e3:e.code==="Home"?i="min":e.code==="End"&&(i="max"),i&&(e.stopPropagation(),this.changeEvent.notify(i))});n.isBrowser&&h(this,d,e!=null&&e.element&&x.getElement(e.element)||window)}connect(){n.isBrowser&&r(this,d).addEventListener("keydown",r(this,o))}disconnect(){n.isBrowser&&r(this,d).removeEventListener("keydown",r(this,o))}}d=new WeakMap,o=new WeakMap;var c,f,w,u;class M extends g{constructor(e){super();l(this,c,null);l(this,f,void 0);l(this,w,void 0);l(this,u,e=>{let a=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(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(),e.preventDefault(),this.debounce){const i=Date.now();if(i-r(this,w)>40&&(a=100*Math.sign(a)),h(this,w,i),Math.abs(a)<100||r(this,f))return;this.changeEvent.notify(a),h(this,f,setTimeout(()=>{h(this,f,void 0)},80))}else this.changeEvent.notify(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,h(this,w,Date.now()),n.isBrowser&&h(this,c,e!=null&&e.element&&x.getElement(e.element)||window)}connect(){n.isBrowser&&r(this,c).addEventListener("wheel",r(this,u),{passive:!1})}disconnect(){n.isBrowser&&r(this,c).removeEventListener("wheel",r(this,u))}}c=new WeakMap,f=new WeakMap,w=new WeakMap,u=new WeakMap;exports.Controls=g;exports.KeyboardControls=y;exports.WheelControls=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../custom-element/index.cjs");require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../custom-element/index.cjs");require("../Store-Dis8QUAR.cjs");const r=require("../browser-CpzFX2xg.cjs"),s=require("../tags-D3-tO-m6.cjs");class o extends t.CustomElement{constructor(){super(),r.isBrowser&&s.element(this,{style:{cursor:"default"},tabIndex:this.getAttribute("tabindex")||"0",role:"button",onKeydown:e=>{e.code==="Space"&&this.click()},onClick:()=>{this.click()}})}}exports.AbstractButtonElement=o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomElement as e } from "../custom-element/index.js";
|
|
2
|
-
import "../Store-
|
|
2
|
+
import "../Store-DdDuj5hz.js";
|
|
3
3
|
import { i as o } from "../browser-0zX67oeU.js";
|
|
4
|
-
import { e as r } from "../tags-
|
|
4
|
+
import { e as r } from "../tags-D9nd9mMM.js";
|
|
5
5
|
class l extends e {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(), o && r(this, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element';
|
|
2
|
-
import { Attribute } from '../attribute';
|
|
3
1
|
import { Axes2D } from '../utils';
|
|
2
|
+
import { Attribute } from '../attribute';
|
|
3
|
+
import { CustomElement } from '../custom-element';
|
|
4
|
+
|
|
4
5
|
export interface AccordionItemToggleEventDetail {
|
|
5
6
|
opened: boolean;
|
|
6
7
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Store, StoreEntry, StoreOptions } from '../store';
|
|
2
1
|
import { TickerAddOptions } from '../ticker';
|
|
2
|
+
import { Store, StoreEntry, StoreOptions } from '../store';
|
|
3
|
+
|
|
3
4
|
export interface DampedOptions extends TickerAddOptions, StoreOptions<number> {
|
|
4
5
|
damping?: number;
|
|
5
6
|
min?: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Store, StoreEntry, StoreOptions } from '../store';
|
|
2
|
-
import { TickerAddOptions } from '../ticker';
|
|
3
1
|
import { EasingFunction } from '../utils';
|
|
2
|
+
import { TickerAddOptions } from '../ticker';
|
|
3
|
+
import { Store, StoreEntry, StoreOptions } from '../store';
|
|
4
|
+
|
|
4
5
|
export interface TweenedAnimationOptions extends TickerAddOptions {
|
|
5
6
|
easing?: EasingFunction;
|
|
6
7
|
duration?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var L=Object.defineProperty,_=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var D=(r,t,e)=>t in r?L(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,A=(r,t)=>{for(var e in t||(t={}))B.call(t,e)&&D(r,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&D(r,e,t[e]);return r},M=(r,t)=>_(r,z(t));var T=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var i=(r,t,e)=>(T(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},n=(r,t,e,s)=>(T(r,t,"write to private field"),s?s.call(r,e):t.set(r,e),e);var u=(r,t,e)=>(T(r,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../Damped-
|
|
1
|
+
"use strict";var L=Object.defineProperty,_=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var D=(r,t,e)=>t in r?L(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,A=(r,t)=>{for(var e in t||(t={}))B.call(t,e)&&D(r,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&D(r,e,t[e]);return r},M=(r,t)=>_(r,z(t));var T=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var i=(r,t,e)=>(T(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},n=(r,t,e,s)=>(T(r,t,"write to private field"),s?s.call(r,e):t.set(r,e),e);var u=(r,t,e)=>(T(r,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../Damped-B0eRyTcV.cjs"),N=require("../Store-Dis8QUAR.cjs"),H=require("../easings-DsS5-Kqc.cjs"),I=require("../math-GDWEqu7y.cjs"),O=require("../number-yVpzMdbQ.cjs"),F=require("../polyfills-CrcS4RcO.cjs"),R=require("../ticker/index.cjs");var f,b,S,q,g,c,l,m,x,y,k,P,j,a,d,C;class J extends N.Store{constructor(e,s){super(e||0);h(this,y);h(this,P);h(this,a);h(this,f,void 0);h(this,b,void 0);h(this,S,void 0);h(this,q,H.linear);h(this,g,1e3);h(this,c,new N.Store(!1));h(this,l,0);h(this,m,0);h(this,x,0);h(this,C,e=>{const s=(e.timestamp-e.startTimestamp)/1e3/(i(this,g)/1e3),v=i(this,q).call(this,I.clamp(s,0,1));this.current=O.preciseNumber(i(this,l)+(i(this,m)-i(this,l))*v,6),s>1&&u(this,a,d).call(this)});u(this,y,k).call(this,s)}get isRunning(){return i(this,c)}get direction(){return i(this,x)}get length(){return i(this,m)-i(this,l)}get progress(){return this.length?O.preciseNumber((this.current-i(this,l))/this.length,6):0}get entry(){return M(A({},super.entry),{length:this.length,direction:this.direction,progress:this.progress})}set(e,s){s!=null&&s.restart&&(this.current=this.initial),n(this,l,this.current),n(this,m,e),n(this,x,Math.sign(this.length)),u(this,y,k).call(this,s),i(this,g)?(u(this,a,d).call(this),u(this,P,j).call(this)):(this.current=i(this,m),u(this,a,d).call(this))}shift(e,s){this.set(this.current+e,s)}reset(){u(this,a,d).call(this),super.reset()}close(){super.close(),u(this,a,d).call(this)}}f=new WeakMap,b=new WeakMap,S=new WeakMap,q=new WeakMap,g=new WeakMap,c=new WeakMap,l=new WeakMap,m=new WeakMap,x=new WeakMap,y=new WeakSet,k=function(e){n(this,q,F.nullishCoalescing(e==null?void 0:e.easing,i(this,q))),n(this,g,F.nullishCoalescing(e==null?void 0:e.duration,i(this,g))),n(this,f,F.nullishCoalescing(e==null?void 0:e.maxFPS,i(this,f))),n(this,b,F.nullishCoalescing(e==null?void 0:e.order,i(this,b))),n(this,S,F.nullishCoalescing(e==null?void 0:e.culling,i(this,S)))},P=new WeakSet,j=function(){i(this,c).current||(i(this,c).current=!0,R.ticker.subscribe(i(this,C),{maxFPS:i(this,f),order:i(this,b),culling:i(this,S)}))},a=new WeakSet,d=function(){i(this,c).current&&(i(this,c).current=!1,R.ticker.unsubscribe(i(this,C)))},C=new WeakMap;exports.Damped=G.Damped;exports.Tweened=J;
|
|
@@ -20,8 +20,8 @@ var r = (i, e, t) => (D(i, e, "read from private field"), t ? t.call(i) : e.get(
|
|
|
20
20
|
e instanceof WeakSet ? e.add(i) : e.set(i, t);
|
|
21
21
|
}, n = (i, e, t, s) => (D(i, e, "write to private field"), s ? s.call(i, t) : e.set(i, t), t);
|
|
22
22
|
var u = (i, e, t) => (D(i, e, "access private method"), t);
|
|
23
|
-
import { D as $ } from "../Damped-
|
|
24
|
-
import { S as M } from "../Store-
|
|
23
|
+
import { D as $ } from "../Damped-Do9H-LKf.js";
|
|
24
|
+
import { S as M } from "../Store-DdDuj5hz.js";
|
|
25
25
|
import { l as H } from "../easings-BKi40vHz.js";
|
|
26
26
|
import { c as I } from "../math-BOBiC4TN.js";
|
|
27
27
|
import { p as N } from "../number-Bo5RdrA1.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var r=(e,s,t)=>(f(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},a=(e,s,t,c)=>(f(e,s,"write to private field"),c?c.call(e,t):s.set(e,t),t);var v=(e,s,t)=>(f(e,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../Store-
|
|
1
|
+
"use strict";var f=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var r=(e,s,t)=>(f(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},a=(e,s,t,c)=>(f(e,s,"write to private field"),c?c.call(e,t):s.set(e,t),t);var v=(e,s,t)=>(f(e,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../Store-Dis8QUAR.cjs"),A=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),q=require("../dom-JBOkFLTh.cjs");var i,u,b,h,m;class p extends y.Store{constructor(t,c,l,o){super(l,o);n(this,h);n(this,i,null);n(this,u,void 0);n(this,b,null);a(this,u,c),S.isBrowser&&(a(this,i,q.getElement(t)),a(this,b,new MutationObserver(d=>{d.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&v(this,h,m).call(this)})})),o!=null&&o.sync&&this.subscribe(d=>{r(this,i).setAttribute(r(this,u),d.current.toString())}))}subscribe(t){const c=!this.subscribers.size,l=super.subscribe(t);return c&&(r(this,b).observe(r(this,i),{attributes:!0}),v(this,h,m).call(this)),l}unsubscribe(t){super.unsubscribe(t),this.subscribers.size||r(this,b).disconnect()}close(){super.close(),r(this,b).disconnect()}}i=new WeakMap,u=new WeakMap,b=new WeakMap,h=new WeakSet,m=function(){const t=r(this,i).getAttribute(r(this,u));t!=null&&(this.current=A.parseAttributeValue(t))};exports.Attribute=p;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Store, StoreCallback, StoreEntry, StoreOptions } from '../store';
|
|
2
1
|
import { ElementOrSelector } from '../utils';
|
|
2
|
+
import { Store, StoreCallback, StoreEntry, StoreOptions } from '../store';
|
|
3
|
+
|
|
3
4
|
export interface AttributeOptions<T> extends StoreOptions<T> {
|
|
4
5
|
sync?: boolean;
|
|
5
6
|
}
|
|
@@ -8,10 +8,10 @@ var r = (s, e, t) => (l(s, e, "read from private field"), t ? t.call(s) : e.get(
|
|
|
8
8
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
|
9
9
|
}, o = (s, e, t, c) => (l(s, e, "write to private field"), c ? c.call(s, t) : e.set(s, t), t);
|
|
10
10
|
var p = (s, e, t) => (l(s, e, "access private method"), t);
|
|
11
|
-
import { S as g } from "../Store-
|
|
11
|
+
import { S as g } from "../Store-DdDuj5hz.js";
|
|
12
12
|
import { p as A } from "../attributes-69we3byR.js";
|
|
13
13
|
import { i as y } from "../browser-0zX67oeU.js";
|
|
14
|
-
import { g as S } from "../dom-
|
|
14
|
+
import { g as S } from "../dom-0S_WDL4g.js";
|
|
15
15
|
var i, u, b, n, v;
|
|
16
16
|
class B extends g {
|
|
17
17
|
constructor(t, c, m, a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-Dis8QUAR.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-D3-tO-m6.cjs"),b=require("../createStylesheet-B4vLzvah.cjs"),k=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var y=Object.defineProperty,q=Object.getOwnPropertyDescriptor,P=(i,e,s,h)=>{for(var r=h>1?void 0:h?q(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(r=(h?g(e,s,r):g(r))||r);return h&&r&&y(e,s,r),r},R=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(R(i,e,"read from private field"),s?s.call(i):e.get(i)),a=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},c=(i,e,s,h)=>(R(i,e,"write to private field"),h?h.call(i,s):e.set(i,s),s),M=(i,e,s)=>(R(i,e,"access private method"),s),n,p,l,o,d,u,v,_,m,w,x;const O=b.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends W.CustomElement{constructor(){super(),a(this,w),a(this,n,null),a(this,p,null),a(this,l,0),a(this,o,0),a(this,d,1),a(this,u,0),a(this,v,1),a(this,_,e=>{c(this,d,S.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,n).width=t(this,l)*this.pixelRatio,t(this,n).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),M(this,w,x).call(this)}),a(this,m,e=>{c(this,u,e.timestamp),c(this,v,e.elapsed),M(this,w,x).call(this)}),this.openShadow(O),E.element(this,{children:E.canvas({ref:e=>{c(this,n,e),c(this,p,e.getContext("2d"))}})})}get canvasElement(){return t(this,n)}get context(){return t(this,p)}get pixelRatio(){return t(this,d)}get width(){return t(this,l)}get height(){return t(this,o)}get detail(){return{width:t(this,l),height:t(this,o),element:this,canvasElement:t(this,n),pixelRatio:t(this,d),context:t(this,p),timestamp:t(this,u),elapsed:t(this,v)}}connectedCallback(){k.elementResizer.subscribe(this,t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,m),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){k.elementResizer.unsubscribe(t(this,_)),C.ticker.unsubscribe(t(this,m)),t(this,n).remove()}};n=new WeakMap;p=new WeakMap;l=new WeakMap;o=new WeakMap;d=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakSet;x=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=P([W.define("e-canvas")],exports.CanvasElement);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CustomElement as M, define as b } from "../custom-element/index.js";
|
|
2
|
-
import "../Store-
|
|
2
|
+
import "../Store-DdDuj5hz.js";
|
|
3
3
|
import { c as P } from "../math-BOBiC4TN.js";
|
|
4
|
-
import { e as S, q as y } from "../tags-
|
|
5
|
-
import { c as A } from "../createStylesheet-
|
|
4
|
+
import { e as S, q as y } from "../tags-D9nd9mMM.js";
|
|
5
|
+
import { c as A } from "../createStylesheet-CR-XQRVT.js";
|
|
6
6
|
import { elementResizer as k } from "../element-resizer/index.js";
|
|
7
7
|
import { ticker as E } from "../ticker/index.js";
|
|
8
8
|
var O = Object.defineProperty, z = Object.getOwnPropertyDescriptor, D = (t, i, s, r) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var i=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var n=(r,t,e)=>(i(r,t,"read from private field"),e?e.call(r):t.get(r)),l=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../WheelControls-
|
|
1
|
+
"use strict";var i=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var n=(r,t,e)=>(i(r,t,"read from private field"),e?e.call(r):t.get(r)),l=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../WheelControls-fiz52vcl.cjs"),c=require("../ticker/index.cjs");var s;class a extends o.Controls{constructor(e){super();l(this,s,e=>{this.changeEvent.notify(e.elapsed*this.speed)});this.speed=(e==null?void 0:e.speed)||1}connect(){c.ticker.subscribe(n(this,s))}disconnect(){c.ticker.unsubscribe(n(this,s))}}s=new WeakMap;exports.Controls=o.Controls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;exports.LinearControls=a;
|
|
@@ -7,8 +7,8 @@ var o = (s, r, e) => (c(s, r, "read from private field"), e ? e.call(s) : r.get(
|
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
r instanceof WeakSet ? r.add(s) : r.set(s, e);
|
|
9
9
|
};
|
|
10
|
-
import { C as i } from "../WheelControls-
|
|
11
|
-
import { K as p, W as u } from "../WheelControls-
|
|
10
|
+
import { C as i } from "../WheelControls-BqO_fTyY.js";
|
|
11
|
+
import { K as p, W as u } from "../WheelControls-BqO_fTyY.js";
|
|
12
12
|
import { ticker as n } from "../ticker/index.js";
|
|
13
13
|
var t;
|
|
14
14
|
class m extends i {
|
package/{build-browser-lib/createStylesheet-C0OnN0Br.cjs → lib/createStylesheet-B4vLzvah.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./tags-
|
|
1
|
+
"use strict";const n=require("./tags-D3-tO-m6.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";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-CRLSlcoi.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
|