aptechka 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ComponentElement-CIl1lnep.cjs +1 -0
- package/lib/ComponentElement-CzGRgBvs.js +76 -0
- package/lib/ElementConstructor-C_HDpVEZ.cjs +1 -0
- package/{build-browser-lib/ElementConstructor-CvNdPKJy.js → lib/ElementConstructor-ChgHpqb6.js} +89 -77
- 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 +1 -1
- 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/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/animation/hooks/index.d.ts +2 -1
- package/{build-browser-lib → lib}/animation/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/attribute/hooks/index.d.ts +1 -0
- package/{build-browser-lib → lib}/attribute/index.d.ts +2 -1
- 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 +2 -2
- 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/createStore-DncUX-yj.js → lib/createStore-BSUQyZjo.js} +2 -2
- package/{build-browser-lib/createStore-CUWrqVrV.cjs → lib/createStore-D61G4jpF.cjs} +1 -1
- package/{build-browser-lib/createStylesheet-CD11E4C8.js → lib/createStylesheet-CYZlwj0H.js} +1 -1
- package/{build-browser-lib/createStylesheet-C0OnN0Br.cjs → lib/createStylesheet-De-6zF24.cjs} +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}/element-constructor/ElementConstructor.d.ts +12 -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/{build-browser-lib → lib}/element-constructor/index.cjs +1 -1
- package/{build-browser-lib → lib}/element-constructor/index.js +3 -3
- package/{build-browser-lib → lib}/element-constructor/tags.d.ts +1 -0
- package/{build-browser-lib → lib}/element-resizer/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/element-resizer/hooks/index.d.ts +2 -1
- package/{build-browser-lib → lib}/element-resizer/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/element-resizer/index.d.ts +1 -0
- 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 +6 -5
- 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.d.ts +1 -0
- package/{build-browser-lib/index-Dq6GRJ9W.js → lib/index-8MIh-Dcx.js} +2 -2
- package/{build-browser-lib/index--wI4MTuv.cjs → lib/index-CHamNqUl.cjs} +1 -1
- package/{build-browser-lib/instantiate-BYzkD4SE.js → lib/instantiate-CXUQ7AmI.js} +2 -2
- package/{build-browser-lib/instantiate-DrQ1MNUN.cjs → lib/instantiate-D63dC3Vr.cjs} +1 -1
- package/{build-browser-lib → lib}/intersector/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/intersector/hooks/index.d.ts +2 -1
- package/{build-browser-lib → lib}/intersector/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/intersector/index.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/ComponentElement.d.ts +1 -2
- package/{build-browser-lib → lib}/jsx/h.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/hooks/attachStylesheet.d.ts +1 -0
- package/lib/jsx/hooks/createContext.d.ts +2 -0
- package/{build-browser-lib → lib}/jsx/hooks/createStore.d.ts +2 -1
- package/lib/jsx/hooks/index.cjs +1 -0
- package/{build-browser-lib → lib}/jsx/hooks/index.d.ts +1 -1
- package/lib/jsx/hooks/index.js +73 -0
- package/{build-browser-lib → lib}/jsx/hooks/onConnect.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/hooks/onDisconnect.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/hooks/withCurrentComponent.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/index.cjs +1 -1
- package/{build-browser-lib → lib}/jsx/index.js +2 -2
- package/{build-browser-lib → lib}/jsx/type.d.ts +4 -3
- package/{build-browser-lib → lib}/ladder/index.d.ts +1 -0
- package/{build-browser-lib → lib}/layout-box/index.d.ts +3 -2
- package/{build-browser-lib → lib}/loading/index.d.ts +1 -0
- package/{build-browser-lib → lib}/media/index.d.ts +1 -0
- 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 +2 -2
- package/{build-browser-lib → lib}/morph/Link.d.ts +1 -0
- package/{build-browser-lib/onConnect-FWEekrNj.js → lib/onConnect-CNMynOhK.js} +1 -1
- package/{build-browser-lib/onConnect-XY4UppQZ.cjs → lib/onConnect-DyAwFqQQ.cjs} +1 -1
- 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}/resized/index.d.ts +2 -1
- package/{build-browser-lib → lib}/router/Link.d.ts +1 -0
- package/{build-browser-lib → lib}/router/Router.d.ts +1 -0
- package/{build-browser-lib → lib}/router/index.cjs +1 -1
- package/{build-browser-lib → lib}/router/index.js +1 -1
- package/{build-browser-lib → lib}/scroll/ScrollElement.d.ts +5 -4
- package/{build-browser-lib → lib}/scroll/ScrollUserElement.d.ts +2 -1
- package/{build-browser-lib → lib}/scroll/ScrollbarElement.d.ts +1 -0
- package/{build-browser-lib → lib}/scroll/index.cjs +1 -1
- package/{build-browser-lib → lib}/scroll/index.js +2 -2
- package/{build-browser-lib → lib}/scroll-entries/index.d.ts +1 -0
- 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}/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/StoreRegistry.d.ts +1 -0
- package/{build-browser-lib → lib}/store/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/store/hooks/index.d.ts +1 -0
- package/{build-browser-lib → lib}/store/hooks/index.js +1 -1
- 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 +3 -3
- 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/{build-browser-lib/tags-C2jg1zYB.js → lib/tags-DSmoyoPZ.js} +1 -1
- package/{build-browser-lib/tags-DX-eNxbA.cjs → lib/tags-Di21YbUL.cjs} +1 -1
- package/{build-browser-lib → lib}/theme/index.cjs +1 -1
- package/{build-browser-lib → lib}/theme/index.js +1 -1
- package/{build-browser-lib → lib}/ticker/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/ticker/hooks/index.d.ts +2 -1
- package/{build-browser-lib → lib}/ticker/hooks/index.js +1 -1
- 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/math.d.ts +1 -0
- package/{build-browser-lib → lib}/video/index.d.ts +1 -0
- package/{build-browser-lib → lib}/window-resizer/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/window-resizer/hooks/index.d.ts +1 -0
- package/{build-browser-lib → lib}/window-resizer/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/window-resizer/index.d.ts +1 -0
- package/{build-browser-lib/withCurrentComponent-Cig6ryJK.cjs → lib/withCurrentComponent-BDsFmjJ9.cjs} +1 -1
- package/lib/withCurrentComponent-DIBND_yO.js +7 -0
- package/package.json +196 -207
- package/build-browser-lib/ComponentElement-B8zjY3Dh.js +0 -92
- package/build-browser-lib/ComponentElement-DuiOKawv.cjs +0 -1
- package/build-browser-lib/ElementConstructor-B61ZFTEB.cjs +0 -1
- package/build-browser-lib/en3/utils/getCurrentViewport.d.ts +0 -7
- package/build-browser-lib/jsx/hooks/index.cjs +0 -1
- package/build-browser-lib/jsx/hooks/index.js +0 -77
- package/build-browser-lib/jsx/hooks/onContext.d.ts +0 -3
- package/build-browser-lib/withCurrentComponent-Cd8KOtNf.js +0 -7
- package/build-vite-plugin-htmc/index.d.ts +0 -7
- package/build-vite-plugin-htmc/index.js +0 -352
- /package/{build-browser-lib → lib}/Composed-ClTo1f0b.js +0 -0
- /package/{build-browser-lib → lib}/Composed-Mdr4ZFbI.cjs +0 -0
- /package/{build-browser-lib → lib}/Damped-BvkThM-2.cjs +0 -0
- /package/{build-browser-lib → lib}/Damped-DEHDBwBz.js +0 -0
- /package/{build-browser-lib → lib}/Derived-Bc88XJ8J.js +0 -0
- /package/{build-browser-lib → lib}/Derived-SjPdLJiZ.cjs +0 -0
- /package/{build-browser-lib → lib}/SourceManager-BoP9RAJr.js +0 -0
- /package/{build-browser-lib → lib}/SourceManager-CI6NfLzW.cjs +0 -0
- /package/{build-browser-lib → lib}/Store-D0_rDIsE.cjs +0 -0
- /package/{build-browser-lib → lib}/Store-JOKrNVEr.js +0 -0
- /package/{build-browser-lib → lib}/Viewport-COsaberc.cjs +0 -0
- /package/{build-browser-lib → lib}/Viewport-CXY5xcGJ.js +0 -0
- /package/{build-browser-lib → lib}/WheelControls-BJdZsEkS.js +0 -0
- /package/{build-browser-lib → lib}/WheelControls-CctFwJwY.cjs +0 -0
- /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.cjs +0 -0
- /package/{build-browser-lib → lib}/animation/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/animation/index.js +0 -0
- /package/{build-browser-lib → lib}/attribute/index.cjs +0 -0
- /package/{build-browser-lib → lib}/attribute/index.js +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/hooks/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/controls/index.cjs +0 -0
- /package/{build-browser-lib → lib}/controls/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/controls/index.js +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.cjs +0 -0
- /package/{build-browser-lib → lib}/device/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/device/index.js +0 -0
- /package/{build-browser-lib → lib}/dom-BY7JhTx5.js +0 -0
- /package/{build-browser-lib → lib}/dom-qY2LdCVL.cjs +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}/element-resizer/index.cjs +0 -0
- /package/{build-browser-lib → lib}/element-resizer/index.js +0 -0
- /package/{build-browser-lib → lib}/en3/index.cjs +0 -0
- /package/{build-browser-lib → lib}/en3/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/en3/index.js +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}/image/index.cjs +0 -0
- /package/{build-browser-lib → lib}/image/index.js +0 -0
- /package/{build-browser-lib → lib}/intersector/index.cjs +0 -0
- /package/{build-browser-lib → lib}/intersector/index.js +0 -0
- /package/{build-browser-lib → lib}/jsx/hooks/attachInternals.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/hooks/attachShadow.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/instantiate.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/register.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/render.d.ts +0 -0
- /package/{build-browser-lib → lib}/ladder/index.cjs +0 -0
- /package/{build-browser-lib → lib}/ladder/index.js +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}/layout-box/index.cjs +0 -0
- /package/{build-browser-lib → lib}/layout-box/index.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}/media/index.cjs +0 -0
- /package/{build-browser-lib → lib}/media/index.js +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.cjs +0 -0
- /package/{build-browser-lib → lib}/popover/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/popover/index.js +0 -0
- /package/{build-browser-lib → lib}/resized/index.cjs +0 -0
- /package/{build-browser-lib → lib}/resized/index.js +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}/scroll-entries/index.cjs +0 -0
- /package/{build-browser-lib → lib}/scroll-entries/index.js +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.cjs +0 -0
- /package/{build-browser-lib → lib}/source/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/source/index.js +0 -0
- /package/{build-browser-lib → lib}/store/Store.d.ts +0 -0
- /package/{build-browser-lib → lib}/store/index.cjs +0 -0
- /package/{build-browser-lib → lib}/store/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/store/index.js +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/dom.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/index.cjs +0 -0
- /package/{build-browser-lib → lib}/utils/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/index.js +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}/video/index.cjs +0 -0
- /package/{build-browser-lib → lib}/video/index.js +0 -0
- /package/{build-browser-lib → lib}/window-resizer/index.cjs +0 -0
- /package/{build-browser-lib → lib}/window-resizer/index.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var b=Object.defineProperty,k=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var E=(n,e,t)=>e in n?b(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,C=(n,e)=>{for(var t in e||(e={}))v.call(e,t)&&E(n,t,e[t]);if(u)for(var t of u(e))f.call(e,t)&&E(n,t,e[t]);return n},m=(n,e)=>k(n,x(e));var p=(n,e,t)=>{if(!e.has(n))throw TypeError("Cannot "+t)};var c=(n,e,t)=>(p(n,e,"read from private field"),t?t.call(n):e.get(n)),s=(n,e,t)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,t)};const S=require("./ElementConstructor-C_HDpVEZ.cjs");exports.currentComponentElement=null;const d={value:null};exports.contextStack=[];var a,l,i,h,r;class g extends HTMLElement{constructor(t){super();s(this,a,new Set);s(this,l,new Set);s(this,i,new Map);s(this,h,()=>{exports.contextStack.push(c(this,i))});s(this,r,()=>{exports.contextStack=exports.contextStack.filter(t=>t!==c(this,i))});exports.currentComponentElement=this,c(this,h).call(this);const o=t==null?void 0:t.tag(m(C({},t.attributes),{children:t.children}));new S.ElementConstructor(this,C({children:o},d.value)),exports.currentComponentElement=null,d.value=null,c(this,r).call(this)}addConnectCallback(t){c(this,a).add(t)}addDisconnectCallback(t){c(this,l).add(t)}createContext(t,o){c(this,i).set(t,o)}connectedCallback(){exports.currentComponentElement=this,c(this,a).forEach(t=>{const o=t(this);o&&c(this,l).add(o)}),exports.currentComponentElement=null,this.addEventListener("beforeChildrenChange",c(this,h)),this.addEventListener("afterChildrenChange",c(this,r))}disconnectedCallback(){c(this,l).forEach(t=>{t(this)}),this.removeEventListener("beforeChildrenChange",c(this,h)),this.removeEventListener("afterChildrenChange",c(this,r))}}a=new WeakMap,l=new WeakMap,i=new WeakMap,h=new WeakMap,r=new WeakMap;exports.ComponentElement=g;exports.nextComponentAttributes=d;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var k = Object.defineProperty, x = Object.defineProperties;
|
|
2
|
+
var g = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var b = Object.getOwnPropertySymbols;
|
|
4
|
+
var m = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var E = (n, e, t) => e in n ? k(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, C = (n, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
m.call(e, t) && E(n, t, e[t]);
|
|
8
|
+
if (b)
|
|
9
|
+
for (var t of b(e))
|
|
10
|
+
L.call(e, t) && E(n, t, e[t]);
|
|
11
|
+
return n;
|
|
12
|
+
}, f = (n, e) => x(n, g(e));
|
|
13
|
+
var w = (n, e, t) => {
|
|
14
|
+
if (!e.has(n))
|
|
15
|
+
throw TypeError("Cannot " + t);
|
|
16
|
+
};
|
|
17
|
+
var s = (n, e, t) => (w(n, e, "read from private field"), t ? t.call(n) : e.get(n)), l = (n, e, t) => {
|
|
18
|
+
if (e.has(n))
|
|
19
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
+
e instanceof WeakSet ? e.add(n) : e.set(n, t);
|
|
21
|
+
};
|
|
22
|
+
import { E as p } from "./ElementConstructor-ChgHpqb6.js";
|
|
23
|
+
let r = null;
|
|
24
|
+
const v = {
|
|
25
|
+
value: null
|
|
26
|
+
};
|
|
27
|
+
let u = [];
|
|
28
|
+
var d, h, c, a, o;
|
|
29
|
+
class A extends HTMLElement {
|
|
30
|
+
constructor(t) {
|
|
31
|
+
super();
|
|
32
|
+
l(this, d, /* @__PURE__ */ new Set());
|
|
33
|
+
l(this, h, /* @__PURE__ */ new Set());
|
|
34
|
+
l(this, c, /* @__PURE__ */ new Map());
|
|
35
|
+
l(this, a, () => {
|
|
36
|
+
u.push(s(this, c));
|
|
37
|
+
});
|
|
38
|
+
l(this, o, () => {
|
|
39
|
+
u = u.filter((t) => t !== s(this, c));
|
|
40
|
+
});
|
|
41
|
+
r = this, s(this, a).call(this);
|
|
42
|
+
const i = t == null ? void 0 : t.tag(f(C({}, t.attributes), {
|
|
43
|
+
children: t.children
|
|
44
|
+
}));
|
|
45
|
+
new p(this, C({
|
|
46
|
+
children: i
|
|
47
|
+
}, v.value)), r = null, v.value = null, s(this, o).call(this);
|
|
48
|
+
}
|
|
49
|
+
addConnectCallback(t) {
|
|
50
|
+
s(this, d).add(t);
|
|
51
|
+
}
|
|
52
|
+
addDisconnectCallback(t) {
|
|
53
|
+
s(this, h).add(t);
|
|
54
|
+
}
|
|
55
|
+
createContext(t, i) {
|
|
56
|
+
s(this, c).set(t, i);
|
|
57
|
+
}
|
|
58
|
+
connectedCallback() {
|
|
59
|
+
r = this, s(this, d).forEach((t) => {
|
|
60
|
+
const i = t(this);
|
|
61
|
+
i && s(this, h).add(i);
|
|
62
|
+
}), r = null, this.addEventListener("beforeChildrenChange", s(this, a)), this.addEventListener("afterChildrenChange", s(this, o));
|
|
63
|
+
}
|
|
64
|
+
disconnectedCallback() {
|
|
65
|
+
s(this, h).forEach((t) => {
|
|
66
|
+
t(this);
|
|
67
|
+
}), this.removeEventListener("beforeChildrenChange", s(this, a)), this.removeEventListener("afterChildrenChange", s(this, o));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
d = new WeakMap(), h = new WeakMap(), c = new WeakMap(), a = new WeakMap(), o = new WeakMap();
|
|
71
|
+
export {
|
|
72
|
+
A as C,
|
|
73
|
+
u as a,
|
|
74
|
+
r as c,
|
|
75
|
+
v as n
|
|
76
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var $=(l,e,s)=>{if(!e.has(l))throw TypeError("Cannot "+s)};var n=(l,e,s)=>($(l,e,"read from private field"),s?s.call(l):e.get(l)),r=(l,e,s)=>{if(e.has(l))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(l):e.set(l,s)},Q=(l,e,s,t)=>($(l,e,"write to private field"),t?t.call(l,s):e.set(l,s),s);var a=(l,e,s)=>($(l,e,"access private method"),s);const m=require("./Store-D0_rDIsE.cjs"),re=require("./browser-CpzFX2xg.cjs"),X=require("./object-BZELAoVj.cjs"),R=require("./string-vBu90jhV.cjs"),fe=require("./connector/index.cjs"),ce=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view"]);var f,h,d,T,Z,w,_,v,O,S,z,A,j,M,ee,x,te,D,se,y,J,b,V,k,ie,q,ne,E,K,g,L,p,Y,H,oe,F,ae,C,I,N,U,P,B;const G=class G{constructor(...e){r(this,T);r(this,w);r(this,v);r(this,S);r(this,A);r(this,M);r(this,x);r(this,D);r(this,y);r(this,b);r(this,k);r(this,q);r(this,E);r(this,g);r(this,p);r(this,H);r(this,F);r(this,C);r(this,N);r(this,f,void 0);r(this,h,new Set);r(this,d,new Set);r(this,P,()=>{n(this,h).forEach(e=>{e()}),n(this,h).clear()});r(this,B,e=>{n(this,d).forEach(s=>{s(e)}),n(this,d).clear()});const s=e[0],t=e[1];Q(this,f,a(this,T,Z).call(this,s,t==null?void 0:t.forceSvg)),a(this,v,O).call(this,t)}get node(){return n(this,f)}};f=new WeakMap,h=new WeakMap,d=new WeakMap,T=new WeakSet,Z=function(e,s){let t=null;if(e instanceof Node)t=e;else if(typeof e=="string")if(!e.includes("<")&&e.includes("-"))t=new(customElements.get(e));else if(e.includes("<")){const i=document.createElement("div");i.innerHTML=e,t=i.firstElementChild}else ce.has(e)||s?t=document.createElementNS("http://www.w3.org/2000/svg",e):t=document.createElement(e);else t=document.createElement("div");return t},w=new WeakSet,_=function(e){return e instanceof HTMLElement||e instanceof SVGElement},v=new WeakSet,O=function(e){if(!e)return;const s=a(this,w,_).call(this,n(this,f)),t=e.ref;delete e.ref,e!=null&&e.onConnect&&(n(this,h).add(e.onConnect),delete e.onConnect),e!=null&&e.onDisconnect&&(n(this,d).add(e.onDisconnect),delete e.onDisconnect);let i,o;for(const c in e){const u=e[c];c==="class"&&s?a(this,S,z).call(this,u):c==="style"&&s?a(this,x,te).call(this,u):c==="lightChildren"?a(this,g,L).call(this,n(this,f),u):c==="children"?a(this,g,L).call(this,n(this,f)instanceof Element?n(this,f).shadowRoot||n(this,f):n(this,f),u):c.startsWith("on")?(o||(o={}),o[c]=u):(i||(i={}),i[c]=u)}if(a(this,q,ne).call(this,i),a(this,k,ie).call(this,o),t&&(typeof t=="function"?t(n(this,f)):t.current=n(this,f)),re.isBrowser&&(n(this,d).size||n(this,h).size)){const c=n(this,f)instanceof DocumentFragment?n(this,f).firstChild:n(this,f);fe.connector.subscribe(c,{connectCallback:n(this,P),disconnectCallback:n(this,B),unsubscribeAfterDisconnect:!0,maxWaitSec:20})}},S=new WeakSet,z=function(e){const s=n(this,f);if(e){if(typeof e=="string")s.classList.add(e);else if(Array.isArray(e))e.forEach(t=>{a(this,S,z).call(this,t)});else if(typeof e=="object")if(e instanceof m.Store)a(this,A,j).call(this,e);else for(const t in e){const i=e[t];i instanceof m.Store?a(this,M,ee).call(this,t,i):i?s.classList.add(t):s.classList.remove(t)}}else return},A=new WeakSet,j=function(e){const s=n(this,f);n(this,d).add(e.subscribe(({current:t,previous:i})=>{i&&[i].flat().forEach(o=>{o&&s.classList.remove(o)}),t&&[t].flat().forEach(o=>{o&&s.classList.add(o)})}))},M=new WeakSet,ee=function(e,s){const t=n(this,f);n(this,d).add(s.subscribe(({current:i})=>{i?t.classList.add(e):t.classList.remove(e)}))},x=new WeakSet,te=function(e){if(!e)return;const s=n(this,f);s.tagName==="style"||s.tagName==="STYLE"?a(this,y,J).call(this,e):a(this,D,se).call(this,e)},D=new WeakSet,se=function(e){for(const s in e){const t=s,i=e[t];i instanceof m.Store?n(this,d).add(i.subscribe(({current:o})=>{a(this,b,V).call(this,t,o)})):a(this,b,V).call(this,t,i)}},y=new WeakSet,J=function(e){const s=n(this,f);for(const t in e){const i=e[t];if(typeof i=="object"&&!(i instanceof m.Store))s.appendChild(document.createTextNode(`${t} {`)),a(this,y,J).call(this,i),s.appendChild(document.createTextNode("}"));else if(i instanceof m.Store){const o=document.createTextNode("");n(this,d).add(i.subscribe(c=>{c.current?o.nodeValue=`${R.camelToKebab(t)}: ${c.current};`:o.nodeValue=""})),s.appendChild(o)}else s.appendChild(document.createTextNode(`${R.camelToKebab(t)}: ${i};`))}},b=new WeakSet,V=function(e,s){const t=n(this,f);e.includes("--")?s?t.style.setProperty(e,s):t.style.removeProperty(e):s?t.style[e]=s:t.style[e]=""},k=new WeakSet,ie=function(e){if(!e)return;const s=n(this,f);for(const t in e){const i=t,o=R.uncapitalize(i.split("on").slice(1).join("on")),c=e[i];typeof c=="object"?s.addEventListener(o,c.callback,c.options):typeof c=="function"&&s.addEventListener(o,c)}},q=new WeakSet,ne=function(e){for(const s in e){const t=e[s];t instanceof m.Store?n(this,d).add(t.subscribe(({current:i})=>{a(this,E,K).call(this,s,i)})):a(this,E,K).call(this,s,t)}},E=new WeakSet,K=function(e,s){var i,o;const t=n(this,f);e in t&&!((o=(i=t.constructor)==null?void 0:i.observedAttributes)!=null&&o.includes(e))?s!=null&&(t[e]=s.toString()):s!=null&&t.setAttribute(e,s.toString())},g=new WeakSet,L=function(e,s){s&&(s=[s].flat(),s.forEach(t=>{if(t instanceof m.Store){const i=document.createElement("div");i.style.display="contents",e.appendChild(i),n(this,d).add(t.subscribe(({current:o})=>{i.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0})),a(this,F,ae).call(this,i,a(this,H,oe).call(this,o),Array.from(i.childNodes)),i.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(t instanceof G)a(this,p,Y).call(this,e,t.node);else if(t instanceof Function)a(this,g,L).call(this,e,X.isESClass(t)?new t:t());else{const i=a(this,N,U).call(this,t);i instanceof Node&&a(this,p,Y).call(this,e,i)}}))},p=new WeakSet,Y=function(e,s){!(e instanceof ShadowRoot)&&s instanceof HTMLElement&&s.tagName==="STYLE"?(n(this,h).add(()=>{[...document.head.querySelectorAll("style")].find(i=>i.outerHTML===s.outerHTML)||document.head.appendChild(s)}),n(this,d).add(()=>{s.remove()})):e.appendChild(s)},H=new WeakSet,oe=function(e){return[e].flat().map(t=>t instanceof G?t.node:typeof t=="function"?X.isESClass(t)?new t:t():a(this,N,U).call(this,t)).flat().filter(Boolean)},F=new WeakSet,ae=function(e,s,t){t.length>s.length&&t.forEach(i=>{s.find(o=>a(this,C,I).call(this,i,o))||(e.removeChild(i),t=t.filter(o=>o!==i))}),t.forEach((i,o)=>{if(o<s.length){const c=s[o];a(this,C,I).call(this,i,c)||e.replaceChild(c,i)}else e.removeChild(i)});for(let i=t.length;i<s.length;i++)e.appendChild(s[i])},C=new WeakSet,I=function(e,s){return s?s instanceof Node?e.isEqualNode(s):e.textContent===s.toString():!1},N=new WeakSet,U=function(e){if(e instanceof Node)return e;if(e!=null){const s=String(e);if(s.trim().startsWith("<")&&s.trim().endsWith(">")){const t=document.createElement("div");return t.innerHTML=s,t.firstElementChild}else return document.createTextNode(s)}else return},P=new WeakMap,B=new WeakMap;let W=G;exports.ElementConstructor=W;
|
package/{build-browser-lib/ElementConstructor-CvNdPKJy.js → lib/ElementConstructor-ChgHpqb6.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var R = (
|
|
2
|
-
if (!e.has(
|
|
1
|
+
var R = (l, e, s) => {
|
|
2
|
+
if (!e.has(l))
|
|
3
3
|
throw TypeError("Cannot " + s);
|
|
4
4
|
};
|
|
5
|
-
var n = (
|
|
6
|
-
if (e.has(
|
|
5
|
+
var n = (l, e, s) => (R(l, e, "read from private field"), s ? s.call(l) : e.get(l)), f = (l, e, s) => {
|
|
6
|
+
if (e.has(l))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
e instanceof WeakSet ? e.add(
|
|
9
|
-
}, K = (
|
|
10
|
-
var a = (
|
|
8
|
+
e instanceof WeakSet ? e.add(l) : e.set(l, s);
|
|
9
|
+
}, K = (l, e, s, t) => (R(l, e, "write to private field"), t ? t.call(l, s) : e.set(l, s), s);
|
|
10
|
+
var a = (l, e, s) => (R(l, e, "access private method"), s);
|
|
11
11
|
import { S as m } from "./Store-JOKrNVEr.js";
|
|
12
12
|
import { i as fe } from "./browser-0zX67oeU.js";
|
|
13
13
|
import { i as U } from "./object-R34VLqhp.js";
|
|
14
|
-
import { c as Q, u as
|
|
15
|
-
import { connector as
|
|
16
|
-
const
|
|
14
|
+
import { c as Q, u as re } from "./string-3lAkpJJP.js";
|
|
15
|
+
import { connector as ce } from "./connector/index.js";
|
|
16
|
+
const le = /* @__PURE__ */ new Set([
|
|
17
17
|
// 'a', 'style', 'title', 'script',
|
|
18
18
|
"animate",
|
|
19
19
|
"animateMotion",
|
|
@@ -77,16 +77,16 @@ const ce = /* @__PURE__ */ new Set([
|
|
|
77
77
|
"tspan",
|
|
78
78
|
"view"
|
|
79
79
|
]);
|
|
80
|
-
var
|
|
80
|
+
var r, h, d, T, Z, w, _, v, O, y, W, A, j, M, ee, x, te, D, se, S, q, p, z, k, ie, H, ne, E, J, g, L, b, V, F, oe, P, ae, C, Y, N, I, B, G;
|
|
81
81
|
const $ = class $ {
|
|
82
82
|
constructor(...e) {
|
|
83
|
-
f(this,
|
|
83
|
+
f(this, T);
|
|
84
84
|
f(this, w);
|
|
85
|
-
f(this,
|
|
85
|
+
f(this, v);
|
|
86
86
|
f(this, y);
|
|
87
|
+
f(this, A);
|
|
87
88
|
f(this, M);
|
|
88
89
|
f(this, x);
|
|
89
|
-
f(this, v);
|
|
90
90
|
f(this, D);
|
|
91
91
|
f(this, S);
|
|
92
92
|
f(this, p);
|
|
@@ -97,29 +97,29 @@ const $ = class $ {
|
|
|
97
97
|
f(this, b);
|
|
98
98
|
f(this, F);
|
|
99
99
|
f(this, P);
|
|
100
|
-
f(this, L);
|
|
101
100
|
f(this, C);
|
|
102
|
-
f(this,
|
|
103
|
-
f(this,
|
|
101
|
+
f(this, N);
|
|
102
|
+
f(this, r, void 0);
|
|
104
103
|
f(this, h, /* @__PURE__ */ new Set());
|
|
104
|
+
f(this, d, /* @__PURE__ */ new Set());
|
|
105
105
|
f(this, B, () => {
|
|
106
|
-
n(this,
|
|
106
|
+
n(this, h).forEach((e) => {
|
|
107
107
|
e();
|
|
108
|
-
}), n(this,
|
|
108
|
+
}), n(this, h).clear();
|
|
109
109
|
});
|
|
110
110
|
f(this, G, (e) => {
|
|
111
|
-
n(this,
|
|
111
|
+
n(this, d).forEach((s) => {
|
|
112
112
|
s(e);
|
|
113
|
-
}), n(this,
|
|
113
|
+
}), n(this, d).clear();
|
|
114
114
|
});
|
|
115
115
|
const s = e[0], t = e[1];
|
|
116
|
-
K(this,
|
|
116
|
+
K(this, r, a(this, T, Z).call(this, s, t == null ? void 0 : t.forceSvg)), a(this, v, O).call(this, t);
|
|
117
117
|
}
|
|
118
118
|
get node() {
|
|
119
|
-
return n(this,
|
|
119
|
+
return n(this, r);
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
-
|
|
122
|
+
r = new WeakMap(), h = new WeakMap(), d = new WeakMap(), T = new WeakSet(), Z = function(e, s) {
|
|
123
123
|
let t = null;
|
|
124
124
|
if (e instanceof Node)
|
|
125
125
|
t = e;
|
|
@@ -130,7 +130,7 @@ l = new WeakMap(), d = new WeakMap(), h = new WeakMap(), N = new WeakSet(), Z =
|
|
|
130
130
|
const i = document.createElement("div");
|
|
131
131
|
i.innerHTML = e, t = i.firstElementChild;
|
|
132
132
|
} else
|
|
133
|
-
|
|
133
|
+
le.has(e) || s ? t = document.createElementNS(
|
|
134
134
|
"http://www.w3.org/2000/svg",
|
|
135
135
|
e
|
|
136
136
|
) : t = document.createElement(e);
|
|
@@ -139,19 +139,19 @@ l = new WeakMap(), d = new WeakMap(), h = new WeakMap(), N = new WeakSet(), Z =
|
|
|
139
139
|
return t;
|
|
140
140
|
}, w = new WeakSet(), _ = function(e) {
|
|
141
141
|
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
142
|
-
},
|
|
142
|
+
}, v = new WeakSet(), O = function(e) {
|
|
143
143
|
if (!e)
|
|
144
144
|
return;
|
|
145
|
-
const s = a(this, w, _).call(this, n(this,
|
|
146
|
-
delete e.ref, e != null && e.onConnect && (n(this,
|
|
145
|
+
const s = a(this, w, _).call(this, n(this, r)), t = e.ref;
|
|
146
|
+
delete e.ref, e != null && e.onConnect && (n(this, h).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (n(this, d).add(e.onDisconnect), delete e.onDisconnect);
|
|
147
147
|
let i, o;
|
|
148
|
-
for (const
|
|
149
|
-
const u = e[
|
|
150
|
-
|
|
148
|
+
for (const c in e) {
|
|
149
|
+
const u = e[c];
|
|
150
|
+
c === "class" && s ? a(this, y, W).call(this, u) : c === "style" && s ? a(this, x, te).call(this, u) : c === "lightChildren" ? a(this, g, L).call(this, n(this, r), u) : c === "children" ? a(this, g, L).call(this, n(this, r) instanceof Element ? n(this, r).shadowRoot || n(this, r) : n(this, r), u) : c.startsWith("on") ? (o || (o = {}), o[c] = u) : (i || (i = {}), i[c] = u);
|
|
151
151
|
}
|
|
152
|
-
if (a(this, H, ne).call(this, i), a(this, k, ie).call(this, o), t && (typeof t == "function" ? t(n(this,
|
|
153
|
-
const
|
|
154
|
-
|
|
152
|
+
if (a(this, H, ne).call(this, i), a(this, k, ie).call(this, o), t && (typeof t == "function" ? t(n(this, r)) : t.current = n(this, r)), fe && (n(this, d).size || n(this, h).size)) {
|
|
153
|
+
const c = n(this, r) instanceof DocumentFragment ? n(this, r).firstChild : n(this, r);
|
|
154
|
+
ce.subscribe(c, {
|
|
155
155
|
connectCallback: n(this, B),
|
|
156
156
|
disconnectCallback: n(this, G),
|
|
157
157
|
unsubscribeAfterDisconnect: !0,
|
|
@@ -159,7 +159,7 @@ l = new WeakMap(), d = new WeakMap(), h = new WeakMap(), N = new WeakSet(), Z =
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
}, y = new WeakSet(), W = function(e) {
|
|
162
|
-
const s = n(this,
|
|
162
|
+
const s = n(this, r);
|
|
163
163
|
if (e) {
|
|
164
164
|
if (typeof e == "string")
|
|
165
165
|
s.classList.add(e);
|
|
@@ -169,17 +169,17 @@ l = new WeakMap(), d = new WeakMap(), h = new WeakMap(), N = new WeakSet(), Z =
|
|
|
169
169
|
});
|
|
170
170
|
else if (typeof e == "object")
|
|
171
171
|
if (e instanceof m)
|
|
172
|
-
a(this,
|
|
172
|
+
a(this, A, j).call(this, e);
|
|
173
173
|
else
|
|
174
174
|
for (const t in e) {
|
|
175
175
|
const i = e[t];
|
|
176
|
-
i instanceof m ? a(this,
|
|
176
|
+
i instanceof m ? a(this, M, ee).call(this, t, i) : i ? s.classList.add(t) : s.classList.remove(t);
|
|
177
177
|
}
|
|
178
178
|
} else
|
|
179
179
|
return;
|
|
180
|
-
},
|
|
181
|
-
const s = n(this,
|
|
182
|
-
n(this,
|
|
180
|
+
}, A = new WeakSet(), j = function(e) {
|
|
181
|
+
const s = n(this, r);
|
|
182
|
+
n(this, d).add(
|
|
183
183
|
e.subscribe(({ current: t, previous: i }) => {
|
|
184
184
|
i && [i].flat().forEach((o) => {
|
|
185
185
|
o && s.classList.remove(o);
|
|
@@ -188,64 +188,66 @@ l = new WeakMap(), d = new WeakMap(), h = new WeakMap(), N = new WeakSet(), Z =
|
|
|
188
188
|
});
|
|
189
189
|
})
|
|
190
190
|
);
|
|
191
|
-
},
|
|
192
|
-
const t = n(this,
|
|
193
|
-
n(this,
|
|
191
|
+
}, M = new WeakSet(), ee = function(e, s) {
|
|
192
|
+
const t = n(this, r);
|
|
193
|
+
n(this, d).add(
|
|
194
194
|
s.subscribe(({ current: i }) => {
|
|
195
195
|
i ? t.classList.add(e) : t.classList.remove(e);
|
|
196
196
|
})
|
|
197
197
|
);
|
|
198
|
-
},
|
|
198
|
+
}, x = new WeakSet(), te = function(e) {
|
|
199
199
|
if (!e)
|
|
200
200
|
return;
|
|
201
|
-
const s = n(this,
|
|
201
|
+
const s = n(this, r);
|
|
202
202
|
s.tagName === "style" || s.tagName === "STYLE" ? a(this, S, q).call(this, e) : a(this, D, se).call(this, e);
|
|
203
203
|
}, D = new WeakSet(), se = function(e) {
|
|
204
204
|
for (const s in e) {
|
|
205
205
|
const t = s, i = e[t];
|
|
206
|
-
i instanceof m ? n(this,
|
|
206
|
+
i instanceof m ? n(this, d).add(
|
|
207
207
|
i.subscribe(({ current: o }) => {
|
|
208
208
|
a(this, p, z).call(this, t, o);
|
|
209
209
|
})
|
|
210
210
|
) : a(this, p, z).call(this, t, i);
|
|
211
211
|
}
|
|
212
212
|
}, S = new WeakSet(), q = function(e) {
|
|
213
|
-
const s = n(this,
|
|
213
|
+
const s = n(this, r);
|
|
214
214
|
for (const t in e) {
|
|
215
215
|
const i = e[t];
|
|
216
216
|
if (typeof i == "object" && !(i instanceof m))
|
|
217
|
-
s.appendChild(
|
|
217
|
+
s.appendChild(document.createTextNode(`${t} {`)), a(this, S, q).call(this, i), s.appendChild(document.createTextNode("}"));
|
|
218
218
|
else if (i instanceof m) {
|
|
219
|
-
const o =
|
|
220
|
-
n(this,
|
|
221
|
-
i.subscribe((
|
|
222
|
-
|
|
219
|
+
const o = document.createTextNode("");
|
|
220
|
+
n(this, d).add(
|
|
221
|
+
i.subscribe((c) => {
|
|
222
|
+
c.current ? o.nodeValue = `${Q(t)}: ${c.current};` : o.nodeValue = "";
|
|
223
223
|
})
|
|
224
224
|
), s.appendChild(o);
|
|
225
225
|
} else
|
|
226
|
-
s.appendChild(
|
|
226
|
+
s.appendChild(
|
|
227
|
+
document.createTextNode(`${Q(t)}: ${i};`)
|
|
228
|
+
);
|
|
227
229
|
}
|
|
228
230
|
}, p = new WeakSet(), z = function(e, s) {
|
|
229
|
-
const t = n(this,
|
|
231
|
+
const t = n(this, r);
|
|
230
232
|
e.includes("--") ? s ? t.style.setProperty(e, s) : t.style.removeProperty(e) : s ? t.style[e] = s : t.style[e] = "";
|
|
231
233
|
}, k = new WeakSet(), ie = function(e) {
|
|
232
234
|
if (!e)
|
|
233
235
|
return;
|
|
234
|
-
const s = n(this,
|
|
236
|
+
const s = n(this, r);
|
|
235
237
|
for (const t in e) {
|
|
236
|
-
const i = t, o =
|
|
238
|
+
const i = t, o = re(
|
|
237
239
|
i.split("on").slice(1).join("on")
|
|
238
|
-
),
|
|
239
|
-
typeof
|
|
240
|
+
), c = e[i];
|
|
241
|
+
typeof c == "object" ? s.addEventListener(
|
|
240
242
|
o,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
) : typeof
|
|
243
|
+
c.callback,
|
|
244
|
+
c.options
|
|
245
|
+
) : typeof c == "function" && s.addEventListener(o, c);
|
|
244
246
|
}
|
|
245
247
|
}, H = new WeakSet(), ne = function(e) {
|
|
246
248
|
for (const s in e) {
|
|
247
249
|
const t = e[s];
|
|
248
|
-
t instanceof m ? n(this,
|
|
250
|
+
t instanceof m ? n(this, d).add(
|
|
249
251
|
t.subscribe(({ current: i }) => {
|
|
250
252
|
a(this, E, J).call(this, s, i);
|
|
251
253
|
})
|
|
@@ -253,49 +255,59 @@ l = new WeakMap(), d = new WeakMap(), h = new WeakMap(), N = new WeakSet(), Z =
|
|
|
253
255
|
}
|
|
254
256
|
}, E = new WeakSet(), J = function(e, s) {
|
|
255
257
|
var i, o;
|
|
256
|
-
const t = n(this,
|
|
258
|
+
const t = n(this, r);
|
|
257
259
|
e in t && !((o = (i = t.constructor) == null ? void 0 : i.observedAttributes) != null && o.includes(e)) ? s != null && (t[e] = s.toString()) : s != null && t.setAttribute(e, s.toString());
|
|
258
|
-
}, g = new WeakSet(),
|
|
260
|
+
}, g = new WeakSet(), L = function(e, s) {
|
|
259
261
|
s && (s = [s].flat(), s.forEach((t) => {
|
|
260
262
|
if (t instanceof m) {
|
|
261
263
|
const i = document.createElement("div");
|
|
262
|
-
i.style.display = "contents", e.appendChild(i), n(this,
|
|
264
|
+
i.style.display = "contents", e.appendChild(i), n(this, d).add(
|
|
263
265
|
t.subscribe(({ current: o }) => {
|
|
264
|
-
|
|
266
|
+
i.dispatchEvent(
|
|
267
|
+
new CustomEvent("beforeChildrenChange", {
|
|
268
|
+
bubbles: !0,
|
|
269
|
+
composed: !0
|
|
270
|
+
})
|
|
271
|
+
), a(this, P, ae).call(this, i, a(this, F, oe).call(this, o), Array.from(i.childNodes)), i.dispatchEvent(
|
|
272
|
+
new CustomEvent("afterChildrenChange", {
|
|
273
|
+
bubbles: !0,
|
|
274
|
+
composed: !0
|
|
275
|
+
})
|
|
276
|
+
);
|
|
265
277
|
})
|
|
266
278
|
);
|
|
267
279
|
} else if (t instanceof $)
|
|
268
280
|
a(this, b, V).call(this, e, t.node);
|
|
269
281
|
else if (t instanceof Function)
|
|
270
|
-
a(this, g,
|
|
282
|
+
a(this, g, L).call(this, e, U(t) ? new t() : t());
|
|
271
283
|
else {
|
|
272
|
-
const i = a(this,
|
|
284
|
+
const i = a(this, N, I).call(this, t);
|
|
273
285
|
i instanceof Node && a(this, b, V).call(this, e, i);
|
|
274
286
|
}
|
|
275
287
|
}));
|
|
276
288
|
}, b = new WeakSet(), V = function(e, s) {
|
|
277
|
-
!(e instanceof ShadowRoot) && s instanceof HTMLElement && s.tagName === "STYLE" ? (n(this,
|
|
289
|
+
!(e instanceof ShadowRoot) && s instanceof HTMLElement && s.tagName === "STYLE" ? (n(this, h).add(() => {
|
|
278
290
|
[...document.head.querySelectorAll("style")].find((i) => i.outerHTML === s.outerHTML) || document.head.appendChild(s);
|
|
279
|
-
}), n(this,
|
|
291
|
+
}), n(this, d).add(() => {
|
|
280
292
|
s.remove();
|
|
281
293
|
})) : e.appendChild(s);
|
|
282
294
|
}, F = new WeakSet(), oe = function(e) {
|
|
283
|
-
return [e].flat().map((t) => t instanceof $ ? t.node : typeof t == "function" ? U(t) ? new t() : t() : a(this,
|
|
295
|
+
return [e].flat().map((t) => t instanceof $ ? t.node : typeof t == "function" ? U(t) ? new t() : t() : a(this, N, I).call(this, t)).flat().filter(Boolean);
|
|
284
296
|
}, P = new WeakSet(), ae = function(e, s, t) {
|
|
285
297
|
t.length > s.length && t.forEach((i) => {
|
|
286
|
-
s.find((o) => a(this,
|
|
298
|
+
s.find((o) => a(this, C, Y).call(this, i, o)) || (e.removeChild(i), t = t.filter((o) => o !== i));
|
|
287
299
|
}), t.forEach((i, o) => {
|
|
288
300
|
if (o < s.length) {
|
|
289
|
-
const
|
|
290
|
-
a(this,
|
|
301
|
+
const c = s[o];
|
|
302
|
+
a(this, C, Y).call(this, i, c) || e.replaceChild(c, i);
|
|
291
303
|
} else
|
|
292
304
|
e.removeChild(i);
|
|
293
305
|
});
|
|
294
306
|
for (let i = t.length; i < s.length; i++)
|
|
295
307
|
e.appendChild(s[i]);
|
|
296
|
-
},
|
|
308
|
+
}, C = new WeakSet(), Y = function(e, s) {
|
|
297
309
|
return s ? s instanceof Node ? e.isEqualNode(s) : e.textContent === s.toString() : !1;
|
|
298
|
-
},
|
|
310
|
+
}, N = new WeakSet(), I = function(e) {
|
|
299
311
|
if (e instanceof Node)
|
|
300
312
|
return e;
|
|
301
313
|
if (e != null) {
|
|
@@ -304,7 +316,7 @@ l = new WeakMap(), d = new WeakMap(), h = new WeakMap(), N = new WeakSet(), Z =
|
|
|
304
316
|
const t = document.createElement("div");
|
|
305
317
|
return t.innerHTML = s, t.firstElementChild;
|
|
306
318
|
} else
|
|
307
|
-
return
|
|
319
|
+
return document.createTextNode(s);
|
|
308
320
|
} else
|
|
309
321
|
return;
|
|
310
322
|
}, B = new WeakMap(), G = new WeakMap();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),s=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),s=require("../tags-Di21YbUL.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
2
|
import "../Store-JOKrNVEr.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-DSmoyoPZ.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 t=Object.defineProperty,m=Object.defineProperties;var n=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var d=(c,e,r)=>e in c?t(c,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[e]=r,u=(c,e)=>{for(var r in e||(e={}))w.call(e,r)&&d(c,r,e[r]);if(l)for(var r of l(e))S.call(e,r)&&d(c,r,e[r]);return c},a=(c,e)=>m(c,n(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../createStore-
|
|
1
|
+
"use strict";var t=Object.defineProperty,m=Object.defineProperties;var n=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var d=(c,e,r)=>e in c?t(c,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[e]=r,u=(c,e)=>{for(var r in e||(e={}))w.call(e,r)&&d(c,r,e[r]);if(l)for(var r of l(e))S.call(e,r)&&d(c,r,e[r]);return c},a=(c,e)=>m(c,n(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../createStore-D61G4jpF.cjs");require("../../Store-D0_rDIsE.cjs");const q=require("../../Damped-BvkThM-2.cjs"),D=require("../index.cjs");function T(c,e){return g._createStore(r=>new D.Tweened(c,a(u({},e),{culling:(e==null?void 0:e.culling)===!0?r:e==null?void 0:e.culling})))}function f(c,e){return g._createStore(r=>new q.Damped(c,a(u({},e),{culling:(e==null?void 0:e.culling)===!0?r:e==null?void 0:e.culling})))}exports.createDamped=f;exports.createTweened=T;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ElementOrSelector } from '../../utils';
|
|
2
1
|
import { Damped, DampedOptions, Tweened, TweenedOptions } from '..';
|
|
2
|
+
import { ElementOrSelector } from '../../utils';
|
|
3
|
+
|
|
3
4
|
export declare function createTweened(initialValue?: number, options?: Omit<TweenedOptions, ''> & {
|
|
4
5
|
culling?: ElementOrSelector | boolean;
|
|
5
6
|
}): Tweened;
|
|
@@ -10,7 +10,7 @@ var a = (u, e, r) => e in u ? f(u, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
T.call(e, r) && a(u, r, e[r]);
|
|
11
11
|
return u;
|
|
12
12
|
}, c = (u, e) => d(u, w(e));
|
|
13
|
-
import { _ as g } from "../../createStore-
|
|
13
|
+
import { _ as g } from "../../createStore-BSUQyZjo.js";
|
|
14
14
|
import "../../Store-JOKrNVEr.js";
|
|
15
15
|
import { D as _ } from "../../Damped-DEHDBwBz.js";
|
|
16
16
|
import { Tweened as x } from "../index.js";
|
|
@@ -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
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-Di21YbUL.cjs"),b=require("../createStylesheet-De-6zF24.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
2
|
import "../Store-JOKrNVEr.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-DSmoyoPZ.js";
|
|
5
|
+
import { c as A } from "../createStylesheet-CYZlwj0H.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,5 +1,5 @@
|
|
|
1
|
-
import { c as t } from "./ComponentElement-
|
|
2
|
-
import { w as e } from "./withCurrentComponent-
|
|
1
|
+
import { c as t } from "./ComponentElement-CzGRgBvs.js";
|
|
2
|
+
import { w as e } from "./withCurrentComponent-DIBND_yO.js";
|
|
3
3
|
function c(o) {
|
|
4
4
|
e((n) => {
|
|
5
5
|
n.addDisconnectCallback(o);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./ComponentElement-
|
|
1
|
+
"use strict";const t=require("./ComponentElement-CIl1lnep.cjs"),c=require("./withCurrentComponent-BDsFmjJ9.cjs");function o(n){c.withCurrentComponent(e=>{e.addDisconnectCallback(n)})}function r(n){const e=typeof n=="function"?n(t.currentComponentElement):n;return t.currentComponentElement&&o(()=>e.close()),e}exports._createStore=r;exports.onDisconnect=o;
|
package/{build-browser-lib/createStylesheet-C0OnN0Br.cjs → lib/createStylesheet-De-6zF24.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./tags-
|
|
1
|
+
"use strict";const n=require("./tags-Di21YbUL.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
|