@splinetool/runtime 2.0.68 → 2.0.69
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/{runtime-chunk-UFMPH23Y.js → runtime-chunk-26PJ2PZE.js} +1 -1
- package/build/{runtime-chunk-UFMPH23Y.js.br → runtime-chunk-26PJ2PZE.js.br} +0 -0
- package/build/runtime-chunk-26PJ2PZE.js.gz +0 -0
- package/build/{runtime-chunk-E6HKIXC3.js → runtime-chunk-4QA23ZKD.js} +1 -1
- package/build/runtime-chunk-4QA23ZKD.js.br +0 -0
- package/build/runtime-chunk-4QA23ZKD.js.gz +0 -0
- package/build/{runtime-chunk-CWHRUNE2.js → runtime-chunk-4VSGBAHA.js} +1 -1
- package/build/runtime-chunk-4VSGBAHA.js.br +0 -0
- package/build/runtime-chunk-4VSGBAHA.js.gz +0 -0
- package/build/{runtime-chunk-NFEX7ZP6.js → runtime-chunk-4XJ7U5BB.js} +1 -1
- package/build/runtime-chunk-4XJ7U5BB.js.br +0 -0
- package/build/runtime-chunk-4XJ7U5BB.js.gz +0 -0
- package/build/{runtime-chunk-OFJV3D46.js → runtime-chunk-5MLJYDJF.js} +1 -1
- package/build/runtime-chunk-5MLJYDJF.js.br +0 -0
- package/build/runtime-chunk-5MLJYDJF.js.gz +0 -0
- package/build/{runtime-chunk-R5TQ5SBH.js → runtime-chunk-7TIIVZ4T.js} +1 -1
- package/build/runtime-chunk-7TIIVZ4T.js.br +0 -0
- package/build/runtime-chunk-7TIIVZ4T.js.gz +0 -0
- package/build/{runtime-chunk-INM6DEBB.js → runtime-chunk-BYDEBV4A.js} +1 -1
- package/build/runtime-chunk-BYDEBV4A.js.br +0 -0
- package/build/runtime-chunk-BYDEBV4A.js.gz +0 -0
- package/build/{runtime-chunk-WG7QXBEZ.js → runtime-chunk-GZKGESGF.js} +1 -1
- package/build/runtime-chunk-GZKGESGF.js.br +0 -0
- package/build/runtime-chunk-GZKGESGF.js.gz +0 -0
- package/build/{runtime-chunk-GOLR573W.js → runtime-chunk-H2DLCIWQ.js} +1 -1
- package/build/runtime-chunk-H2DLCIWQ.js.br +0 -0
- package/build/runtime-chunk-H2DLCIWQ.js.gz +0 -0
- package/build/{runtime-chunk-T62ZCJZQ.js → runtime-chunk-H6FWQACH.js} +1 -1
- package/build/runtime-chunk-H6FWQACH.js.br +0 -0
- package/build/runtime-chunk-H6FWQACH.js.gz +0 -0
- package/build/{runtime-chunk-GI7YYFSF.js → runtime-chunk-I2T3KJIC.js} +1 -1
- package/build/runtime-chunk-I2T3KJIC.js.br +0 -0
- package/build/runtime-chunk-I2T3KJIC.js.gz +0 -0
- package/build/{runtime-chunk-5XI6SEAR.js → runtime-chunk-KNO4ECOH.js} +1 -1
- package/build/runtime-chunk-KNO4ECOH.js.br +0 -0
- package/build/runtime-chunk-KNO4ECOH.js.gz +0 -0
- package/build/{runtime-chunk-OSRLWBWK.js → runtime-chunk-KVYBFLWA.js} +1 -1
- package/build/runtime-chunk-KVYBFLWA.js.br +0 -0
- package/build/runtime-chunk-KVYBFLWA.js.gz +0 -0
- package/build/{runtime-chunk-AL7GZUOG.js → runtime-chunk-MVVFCHML.js} +1 -1
- package/build/runtime-chunk-MVVFCHML.js.br +0 -0
- package/build/runtime-chunk-MVVFCHML.js.gz +0 -0
- package/build/{runtime-chunk-AES4LOCU.js → runtime-chunk-NIFSB55C.js} +1 -1
- package/build/runtime-chunk-NIFSB55C.js.br +0 -0
- package/build/runtime-chunk-NIFSB55C.js.gz +0 -0
- package/build/{runtime-chunk-TN7SLRFX.js → runtime-chunk-NPWNPETE.js} +1 -1
- package/build/runtime-chunk-NPWNPETE.js.br +0 -0
- package/build/{runtime-chunk-TN7SLRFX.js.gz → runtime-chunk-NPWNPETE.js.gz} +0 -0
- package/build/{runtime-chunk-VHZEYLZC.js → runtime-chunk-OERXYDZQ.js} +1 -1
- package/build/runtime-chunk-OERXYDZQ.js.br +0 -0
- package/build/runtime-chunk-OERXYDZQ.js.gz +0 -0
- package/build/runtime-chunk-OUX2QSUD.js +1 -0
- package/build/runtime-chunk-OUX2QSUD.js.br +0 -0
- package/build/runtime-chunk-OUX2QSUD.js.gz +0 -0
- package/build/{runtime-chunk-PDDP5ZLV.js → runtime-chunk-OYDCCM7U.js} +1 -1
- package/build/runtime-chunk-OYDCCM7U.js.br +0 -0
- package/build/runtime-chunk-OYDCCM7U.js.gz +0 -0
- package/build/{runtime-chunk-WYCWMCKH.js → runtime-chunk-RAVR2ONV.js} +1 -1
- package/build/{runtime-chunk-WYCWMCKH.js.br → runtime-chunk-RAVR2ONV.js.br} +0 -0
- package/build/runtime-chunk-RAVR2ONV.js.gz +0 -0
- package/build/{runtime-chunk-6HOEQDB5.js → runtime-chunk-SJSTIG6Y.js} +1 -1
- package/build/runtime-chunk-SJSTIG6Y.js.br +0 -0
- package/build/runtime-chunk-SJSTIG6Y.js.gz +0 -0
- package/build/{runtime-chunk-IGCJGMG3.js → runtime-chunk-T3WOTXZR.js} +1 -1
- package/build/runtime-chunk-T3WOTXZR.js.br +0 -0
- package/build/runtime-chunk-T3WOTXZR.js.gz +0 -0
- package/build/{runtime-chunk-3BMR5HPZ.js → runtime-chunk-T5VGN3AX.js} +1 -1
- package/build/runtime-chunk-T5VGN3AX.js.br +0 -0
- package/build/runtime-chunk-T5VGN3AX.js.gz +0 -0
- package/build/{runtime-chunk-XKWOQEUX.js → runtime-chunk-URWILVZX.js} +1 -1
- package/build/runtime-chunk-URWILVZX.js.br +0 -0
- package/build/runtime-chunk-URWILVZX.js.gz +0 -0
- package/build/{runtime-chunk-HWCCAONG.js → runtime-chunk-VZVG6MV6.js} +1 -1
- package/build/{runtime-chunk-HWCCAONG.js.br → runtime-chunk-VZVG6MV6.js.br} +0 -0
- package/build/runtime-chunk-VZVG6MV6.js.gz +0 -0
- package/build/{runtime-chunk-IK3OLWAK.js → runtime-chunk-XZUEQTES.js} +1 -1
- package/build/runtime-chunk-XZUEQTES.js.br +0 -0
- package/build/runtime-chunk-XZUEQTES.js.gz +0 -0
- package/build/{runtime-classicRuntime-T7E4ZTJ3.js → runtime-classicRuntime-2OODWPRZ.js} +1 -1
- package/build/runtime-classicRuntime-2OODWPRZ.js.br +0 -0
- package/build/runtime-classicRuntime-2OODWPRZ.js.gz +0 -0
- package/build/{runtime-cloners-AFFFW7JB.js → runtime-cloners-NIDLOPTX.js} +1 -1
- package/build/runtime-cloners-NIDLOPTX.js.br +0 -0
- package/build/runtime-cloners-NIDLOPTX.js.gz +0 -0
- package/build/{runtime-components-ENIIWHSV.js → runtime-components-DXAIJGJ3.js} +1 -1
- package/build/runtime-components-DXAIJGJ3.js.br +0 -0
- package/build/runtime-components-DXAIJGJ3.js.gz +0 -0
- package/build/{runtime-createDestroy-D42L24YP.js → runtime-createDestroy-6HCANEHK.js} +1 -1
- package/build/runtime-createDestroy-6HCANEHK.js.br +0 -0
- package/build/runtime-createDestroy-6HCANEHK.js.gz +0 -0
- package/build/{runtime-dragDrop-IUQYUCXK.js → runtime-dragDrop-X4KD2YYZ.js} +1 -1
- package/build/runtime-dragDrop-X4KD2YYZ.js.br +0 -0
- package/build/runtime-dragDrop-X4KD2YYZ.js.gz +0 -0
- package/build/{runtime-fxBloom-7MH75D7M.js → runtime-fxBloom-RIK67XXW.js} +1 -1
- package/build/runtime-fxBloom-RIK67XXW.js.br +0 -0
- package/build/runtime-fxBloom-RIK67XXW.js.gz +0 -0
- package/build/{runtime-fxDepthOfField-TFTNDBM5.js → runtime-fxDepthOfField-ADXTR7WN.js} +1 -1
- package/build/runtime-fxDepthOfField-ADXTR7WN.js.br +0 -0
- package/build/runtime-fxDepthOfField-ADXTR7WN.js.gz +0 -0
- package/build/{runtime-gameControls-HVUWT6ZX.js → runtime-gameControls-GMPUVMDN.js} +1 -1
- package/build/runtime-gameControls-GMPUVMDN.js.br +0 -0
- package/build/runtime-gameControls-GMPUVMDN.js.gz +0 -0
- package/build/{runtime-hair-YSTCGEN4.js → runtime-hair-JD52XX37.js} +1 -1
- package/build/runtime-hair-JD52XX37.js.br +3 -0
- package/build/runtime-hair-JD52XX37.js.gz +0 -0
- package/build/{runtime-mergeStaticGeometries-KTT3NSN4.js → runtime-mergeStaticGeometries-VNKYVMAW.js} +1 -1
- package/build/runtime-mergeStaticGeometries-VNKYVMAW.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-VNKYVMAW.js.gz +0 -0
- package/build/{runtime-miscActions-B5LY6SEB.js → runtime-miscActions-XDJLQ4BW.js} +1 -1
- package/build/runtime-miscActions-XDJLQ4BW.js.br +0 -0
- package/build/runtime-miscActions-XDJLQ4BW.js.gz +0 -0
- package/build/{runtime-mouseHover-6W3C72RE.js → runtime-mouseHover-62RJBDHI.js} +1 -1
- package/build/runtime-mouseHover-62RJBDHI.js.br +0 -0
- package/build/runtime-mouseHover-62RJBDHI.js.gz +0 -0
- package/build/{runtime-particles-43UBU34J.js → runtime-particles-537XQTB2.js} +1 -1
- package/build/runtime-particles-537XQTB2.js.br +0 -0
- package/build/runtime-particles-537XQTB2.js.gz +0 -0
- package/build/{runtime-paths-X4H5UN76.js → runtime-paths-3QODDF4U.js} +1 -1
- package/build/runtime-paths-3QODDF4U.js.br +0 -0
- package/build/runtime-paths-3QODDF4U.js.gz +0 -0
- package/build/{runtime-resize-ZUZDUVTW.js → runtime-resize-2NCG2OT2.js} +1 -1
- package/build/runtime-resize-2NCG2OT2.js.br +0 -0
- package/build/runtime-resize-2NCG2OT2.js.gz +0 -0
- package/build/{runtime-sceneTransition-ZVQFT2MO.js → runtime-sceneTransition-VX7XH3RE.js} +1 -1
- package/build/runtime-sceneTransition-VX7XH3RE.js.br +0 -0
- package/build/runtime-sceneTransition-VX7XH3RE.js.gz +0 -0
- package/build/{runtime-scroll-DPIKHEY4.js → runtime-scroll-FWNIAP2D.js} +1 -1
- package/build/runtime-scroll-FWNIAP2D.js.br +0 -0
- package/build/runtime-scroll-FWNIAP2D.js.gz +0 -0
- package/build/runtime-shapeBlends-B5CBBLGM.js +1 -0
- package/build/runtime-shapeBlends-B5CBBLGM.js.br +3 -0
- package/build/runtime-shapeBlends-B5CBBLGM.js.gz +0 -0
- package/build/{runtime-text-UGYO62QG.js → runtime-text-RFVYVPUP.js} +1 -1
- package/build/runtime-text-RFVYVPUP.js.br +0 -0
- package/build/runtime-text-RFVYVPUP.js.gz +0 -0
- package/build/{runtime-textInputs-S3IMPNWJ.js → runtime-textInputs-P3DMFT64.js} +1 -1
- package/build/runtime-textInputs-P3DMFT64.js.br +0 -0
- package/build/runtime-textInputs-P3DMFT64.js.gz +0 -0
- package/build/{runtime-timeline-UTNPUQFJ.js → runtime-timeline-M7LPTMMV.js} +1 -1
- package/build/runtime-timeline-M7LPTMMV.js.br +0 -0
- package/build/runtime-timeline-M7LPTMMV.js.gz +0 -0
- package/build/{runtime-tracking-OXENCD7V.js → runtime-tracking-VHFJEWMB.js} +1 -1
- package/build/runtime-tracking-VHFJEWMB.js.br +0 -0
- package/build/runtime-tracking-VHFJEWMB.js.gz +0 -0
- package/build/{runtime-transitions-XSCMTBZP.js → runtime-transitions-6T3OOPOZ.js} +1 -1
- package/build/runtime-transitions-6T3OOPOZ.js.br +0 -0
- package/build/runtime-transitions-6T3OOPOZ.js.gz +0 -0
- package/build/{runtime-ui2d-6EIINLBC.js → runtime-ui2d-ITNMVHNT.js} +1 -1
- package/build/runtime-ui2d-ITNMVHNT.js.br +0 -0
- package/build/runtime-ui2d-ITNMVHNT.js.gz +0 -0
- package/build/{runtime-vectorShapes-FXPFWYXM.js → runtime-vectorShapes-CZ3USDV2.js} +1 -1
- package/build/runtime-vectorShapes-CZ3USDV2.js.br +0 -0
- package/build/runtime-vectorShapes-CZ3USDV2.js.gz +0 -0
- package/build/{runtime-webgpu-RWLDM2O6.js → runtime-webgpu-3OF3GQWC.js} +1 -1
- package/build/runtime-webgpu-3OF3GQWC.js.br +0 -0
- package/build/runtime-webgpu-3OF3GQWC.js.gz +0 -0
- package/build/runtime.cjs +6 -6
- package/build/runtime.js +1 -1
- package/build/runtime.js.br +0 -0
- package/build/runtime.js.gz +0 -0
- package/build/runtime.standalone.js +1 -1
- package/build/runtime.standalone.js.br +0 -0
- package/build/runtime.standalone.js.gz +0 -0
- package/build/runtime.standalone.webgl.js +1 -1
- package/build/runtime.standalone.webgl.js.br +0 -0
- package/build/runtime.standalone.webgl.js.gz +0 -0
- package/build/runtime.standalone.webgpu.js +1 -1
- package/build/runtime.standalone.webgpu.js.br +0 -0
- package/build/runtime.standalone.webgpu.js.gz +0 -0
- package/build/runtime.standalone.webgpu.micro.js +1 -1
- package/build/runtime.standalone.webgpu.micro.js.br +0 -0
- package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
- package/build/runtime.standalone.webgpu.min.js +1 -1
- package/build/runtime.standalone.webgpu.min.js.br +0 -0
- package/build/runtime.standalone.webgpu.min.js.gz +0 -0
- package/package.json +1 -1
- package/build/runtime-chunk-3BMR5HPZ.js.br +0 -0
- package/build/runtime-chunk-3BMR5HPZ.js.gz +0 -0
- package/build/runtime-chunk-5XI6SEAR.js.br +0 -0
- package/build/runtime-chunk-5XI6SEAR.js.gz +0 -0
- package/build/runtime-chunk-6HOEQDB5.js.br +0 -0
- package/build/runtime-chunk-6HOEQDB5.js.gz +0 -0
- package/build/runtime-chunk-AES4LOCU.js.br +0 -0
- package/build/runtime-chunk-AES4LOCU.js.gz +0 -0
- package/build/runtime-chunk-AL7GZUOG.js.br +0 -0
- package/build/runtime-chunk-AL7GZUOG.js.gz +0 -0
- package/build/runtime-chunk-CWHRUNE2.js.br +0 -0
- package/build/runtime-chunk-CWHRUNE2.js.gz +0 -0
- package/build/runtime-chunk-CZ3BXY7Z.js +0 -1
- package/build/runtime-chunk-CZ3BXY7Z.js.br +0 -0
- package/build/runtime-chunk-CZ3BXY7Z.js.gz +0 -0
- package/build/runtime-chunk-E6HKIXC3.js.br +0 -0
- package/build/runtime-chunk-E6HKIXC3.js.gz +0 -0
- package/build/runtime-chunk-GI7YYFSF.js.br +0 -0
- package/build/runtime-chunk-GI7YYFSF.js.gz +0 -0
- package/build/runtime-chunk-GOLR573W.js.br +0 -0
- package/build/runtime-chunk-GOLR573W.js.gz +0 -0
- package/build/runtime-chunk-HWCCAONG.js.gz +0 -0
- package/build/runtime-chunk-IGCJGMG3.js.br +0 -0
- package/build/runtime-chunk-IGCJGMG3.js.gz +0 -0
- package/build/runtime-chunk-IK3OLWAK.js.br +0 -0
- package/build/runtime-chunk-IK3OLWAK.js.gz +0 -0
- package/build/runtime-chunk-INM6DEBB.js.br +0 -0
- package/build/runtime-chunk-INM6DEBB.js.gz +0 -0
- package/build/runtime-chunk-NFEX7ZP6.js.br +0 -0
- package/build/runtime-chunk-NFEX7ZP6.js.gz +0 -0
- package/build/runtime-chunk-OFJV3D46.js.br +0 -0
- package/build/runtime-chunk-OFJV3D46.js.gz +0 -0
- package/build/runtime-chunk-OSRLWBWK.js.br +0 -0
- package/build/runtime-chunk-OSRLWBWK.js.gz +0 -0
- package/build/runtime-chunk-PDDP5ZLV.js.br +0 -0
- package/build/runtime-chunk-PDDP5ZLV.js.gz +0 -0
- package/build/runtime-chunk-R5TQ5SBH.js.br +0 -0
- package/build/runtime-chunk-R5TQ5SBH.js.gz +0 -0
- package/build/runtime-chunk-T62ZCJZQ.js.br +0 -0
- package/build/runtime-chunk-T62ZCJZQ.js.gz +0 -0
- package/build/runtime-chunk-TN7SLRFX.js.br +0 -0
- package/build/runtime-chunk-UFMPH23Y.js.gz +0 -0
- package/build/runtime-chunk-VHZEYLZC.js.br +0 -0
- package/build/runtime-chunk-VHZEYLZC.js.gz +0 -0
- package/build/runtime-chunk-WG7QXBEZ.js.br +0 -0
- package/build/runtime-chunk-WG7QXBEZ.js.gz +0 -0
- package/build/runtime-chunk-WYCWMCKH.js.gz +0 -0
- package/build/runtime-chunk-XKWOQEUX.js.br +0 -0
- package/build/runtime-chunk-XKWOQEUX.js.gz +0 -0
- package/build/runtime-classicRuntime-T7E4ZTJ3.js.br +0 -0
- package/build/runtime-classicRuntime-T7E4ZTJ3.js.gz +0 -0
- package/build/runtime-cloners-AFFFW7JB.js.br +0 -0
- package/build/runtime-cloners-AFFFW7JB.js.gz +0 -0
- package/build/runtime-components-ENIIWHSV.js.br +0 -0
- package/build/runtime-components-ENIIWHSV.js.gz +0 -0
- package/build/runtime-createDestroy-D42L24YP.js.br +0 -0
- package/build/runtime-createDestroy-D42L24YP.js.gz +0 -0
- package/build/runtime-dragDrop-IUQYUCXK.js.br +0 -0
- package/build/runtime-dragDrop-IUQYUCXK.js.gz +0 -0
- package/build/runtime-fxBloom-7MH75D7M.js.br +0 -0
- package/build/runtime-fxBloom-7MH75D7M.js.gz +0 -0
- package/build/runtime-fxDepthOfField-TFTNDBM5.js.br +0 -0
- package/build/runtime-fxDepthOfField-TFTNDBM5.js.gz +0 -0
- package/build/runtime-gameControls-HVUWT6ZX.js.br +0 -0
- package/build/runtime-gameControls-HVUWT6ZX.js.gz +0 -0
- package/build/runtime-hair-YSTCGEN4.js.br +0 -1
- package/build/runtime-hair-YSTCGEN4.js.gz +0 -0
- package/build/runtime-mergeStaticGeometries-KTT3NSN4.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-KTT3NSN4.js.gz +0 -0
- package/build/runtime-miscActions-B5LY6SEB.js.br +0 -0
- package/build/runtime-miscActions-B5LY6SEB.js.gz +0 -0
- package/build/runtime-mouseHover-6W3C72RE.js.br +0 -0
- package/build/runtime-mouseHover-6W3C72RE.js.gz +0 -0
- package/build/runtime-particles-43UBU34J.js.br +0 -0
- package/build/runtime-particles-43UBU34J.js.gz +0 -0
- package/build/runtime-paths-X4H5UN76.js.br +0 -0
- package/build/runtime-paths-X4H5UN76.js.gz +0 -0
- package/build/runtime-resize-ZUZDUVTW.js.br +0 -0
- package/build/runtime-resize-ZUZDUVTW.js.gz +0 -0
- package/build/runtime-sceneTransition-ZVQFT2MO.js.br +0 -0
- package/build/runtime-sceneTransition-ZVQFT2MO.js.gz +0 -0
- package/build/runtime-scroll-DPIKHEY4.js.br +0 -0
- package/build/runtime-scroll-DPIKHEY4.js.gz +0 -0
- package/build/runtime-shapeBlends-BJLS6Q63.js +0 -1
- package/build/runtime-shapeBlends-BJLS6Q63.js.br +0 -0
- package/build/runtime-shapeBlends-BJLS6Q63.js.gz +0 -0
- package/build/runtime-text-UGYO62QG.js.br +0 -0
- package/build/runtime-text-UGYO62QG.js.gz +0 -0
- package/build/runtime-textInputs-S3IMPNWJ.js.br +0 -0
- package/build/runtime-textInputs-S3IMPNWJ.js.gz +0 -0
- package/build/runtime-timeline-UTNPUQFJ.js.br +0 -0
- package/build/runtime-timeline-UTNPUQFJ.js.gz +0 -0
- package/build/runtime-tracking-OXENCD7V.js.br +0 -0
- package/build/runtime-tracking-OXENCD7V.js.gz +0 -0
- package/build/runtime-transitions-XSCMTBZP.js.br +0 -0
- package/build/runtime-transitions-XSCMTBZP.js.gz +0 -0
- package/build/runtime-ui2d-6EIINLBC.js.br +0 -0
- package/build/runtime-ui2d-6EIINLBC.js.gz +0 -0
- package/build/runtime-vectorShapes-FXPFWYXM.js.br +0 -0
- package/build/runtime-vectorShapes-FXPFWYXM.js.gz +0 -0
- package/build/runtime-webgpu-RWLDM2O6.js.br +0 -0
- package/build/runtime-webgpu-RWLDM2O6.js.gz +0 -0
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,d as i,e as a,f as n,g as s,j as r}from"./runtime-chunk-CZ3BXY7Z.js";import"./runtime-chunk-OFJV3D46.js";import"./runtime-chunk-NTUTXO7Q.js";import"./runtime-chunk-HD7WF3XN.js";import{a as o}from"./runtime-chunk-NFEX7ZP6.js";import{a as l}from"./runtime-chunk-GGSUJEGZ.js";import{a as h,b as c}from"./runtime-chunk-AES4LOCU.js";import"./runtime-chunk-R5TQ5SBH.js";import"./runtime-chunk-FTVQTRM7.js";import{a as d}from"./runtime-chunk-5XI6SEAR.js";import"./runtime-chunk-GOLR573W.js";import"./runtime-chunk-IK3OLWAK.js";import"./runtime-chunk-WG7QXBEZ.js";import{ba as u,ha as p,ja as f}from"./runtime-chunk-VHZEYLZC.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as m,e as y}from"./runtime-chunk-5WKK4AK6.js";import{v as g}from"./runtime-chunk-UFMPH23Y.js";import"./runtime-chunk-RTLL6WIB.js";import{d as v}from"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as k}from"./runtime-chunk-TZCHGFVF.js";import{A as x,B as D,D as T,E as j,Ea as E,Ja as b,Ka as C,La as O,la as A,p as I,ua as w,z as M}from"./runtime-chunk-RNMPWHS7.js";import{Bc as S,Cc as F}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var _=Math.fround;function N(e){return"pingpong"===e||"pingpong-rewind"===e}var B=class{constructor(e){this.config=e,this.effectiveCycleDuration=this.cycleDuration(0)}layout(e){let{config:t}=this;if(N(t.direction)&&e%2==1)return{startDelay:0,endDelay:0};switch(t.delayDirection){case"start-once":return 0===e?{startDelay:t.delay,endDelay:0}:{startDelay:0,endDelay:0};case"start":return{startDelay:t.delay,endDelay:0};case"end":return{startDelay:0,endDelay:t.delay};default:return{startDelay:t.delay,endDelay:t.delay}}}cycleDuration(e){let{config:t}=this,{startDelay:i,endDelay:a}=this.layout(e);return _(t.duration+i+a)}get totalDuration(){let{config:e}=this;if(-1===e.repeat)return 1/0;let t=0;for(let i=0;i<=e.repeat;i++)t=_(t+this.cycleDuration(i));return t}isFinished(e){return e>=this.totalDuration}resolve(e){let t,i,{config:a}=this,n=_(e);if("start-once"===a.delayDirection){let e=_(a.delay+a.duration);if(n<e)t=0,i=n;else{let s=_(n-e);t=1+Math.floor(_(s/a.duration)),i=_(s%a.duration)}}else if(N(a.direction)){let e=this.cycleDuration(0),s=_(e+a.duration),r=Math.floor(_(n/s)),o=_(n%s);o<e?(t=2*r,i=o):(t=2*r+1,i=_(o-e))}else{let e=this.cycleDuration(0);t=Math.floor(_(n/e)),i=_(n%e)}if(-1!==a.repeat&&t>=a.repeat+1)return null;let s,{startDelay:r}=this.layout(t),o=N(a.direction)&&t%2==1,l=r,h=_(l+a.duration);if(i<l)s=o?a.duration:0;else if(i>=h)s=o?0:a.duration;else{let e=_(i-l);s=o?_(a.duration-e):e}return{cycleIndex:t,localTime:s,isReverse:o}}},L=Math.fround;function P(e){return[...e].sort((e,t)=>e.time-t.time)}function R(e){return{easing:e.type,control1:b(e.cubicControls?.control1,[0,0]),control2:b(e.cubicControls?.control2,[1,1]),...e.springParameters}}function Z(e,t){let i=[];for(let a of e??[]){let e=t(a.data);void 0!==e&&i.push({time:a.data.time,ease:R(a.data.easing),value:e})}return{keyframes:P(i)}}function z(t,i){if(0===t.keyframes.length)return;let{index0:a,index1:n,t:s}=function(t,i){if(0===t.length)throw new Error("sampleKeyframes requires at least one keyframe");if(i<=t[0].time)return{index0:0,index1:0,t:1};let{found:a,index:n}=function(e,t){let i=e.length,a=0,n=i;for(;a<n;){let s=a+Math.floor(i/2),r=e[s].time;if(r<t)a=s+1;else{if(!(r>t))return{found:!0,index:s};n=s}i=n-a}return{found:!1,index:a}}(t,i);if(a)return{index0:n,index1:n,t:1};if(n>=t.length){let e=t.length-1;return{index0:e,index1:e,t:1}}let s=n-1,r=n,o=t[s].time,l=t[r].time;if(l===o)return{index0:s,index1:r,t:.5};let h=L(l-o),c={...t[s].ease,control2:t[r].ease.control2};return{index0:s,index1:r,t:e(c,h,L(L(i-o)/h))}}(t.keyframes,i),r=t.read;if(r&&r.index0===a&&r.index1===n&&r.t===s)return;let o={index0:a,index1:n,from:t.keyframes[a].value,to:t.keyframes[n].value,t:s};return t.read=o,o}function G(e){e.read=void 0}function K(e,t,i){return e+(t-e)*i}function U(e,t,i){!e||(e[t]={...e[t],...i})}function W(e,s,r,l,u,p,m){let y=()=>{m.transform=!0,m.bounds=!0,m.boolean=!0,m.render=!0};switch(e.on){case"position":case"scale":{let t=z(e.track,r);if(!t)return;let i=K(t.from,t.to,t.t);return s[e.on][e.axis]=i,U(p,e.on,{[e.axis]:i}),void y()}case"rotation":{let t=z(e.track,r);if(!t)return;let i=K(t.from,t.to,t.t);return s.rotation[e.axis]=i*F.DEG2RAD,U(p,"rotation",{[e.axis]:i}),void y()}case"shapeSize":{let t=z(e.track,r);if(!(t&&s instanceof f))return;let i=K(t.from,t.to,t.t);return s.userData.value={...s.userData.value,[e.axis]:i},U(p,"shapeSize",{[e.axis]:i}),m.size=!0,m.bounds=!0,m.boolean=!0,void(m.render=!0)}case"opacity":{let t=z(e.track,r);if(!t||!(s instanceof g)||Array.isArray(s.material))return;let i=s.material.getLayersOfType("light")[0];if(void 0===i)return;let a=F.lerp(t.from,t.to,t.t);return s.material.transparent=!0,n("alphaOverride",i,{alphaOverride:a},{alphaOverride:a+1},0,l.shared),p&&(p.opacity=a),void(m.render=!0)}case"material":{let t=z(e.track,r);if(!t||0===Object.keys(t.from).length||0===Object.keys(t.to).length)return;let{layer:i}=e,a={};for(let e in i.data){if(!(e in t.from)||!(e in t.to))continue;let r=X(t.from[e],t.to[e],t.t,u);if(void 0===r)continue;a[e]=r;let o=i.getValue(e);void 0!==o&&("alpha"===e&&"number"==typeof o&&o>0&&s instanceof g&&!Array.isArray(s.material)&&(s.material.transparent=!0),n(e,i,t.from,t.to,t.t,l.shared))}return U(p,"material",{[i.uuid]:a}),void(m.render=!0)}case"light":{let t=z(e.track,r);if(!t||!(s instanceof h||s instanceof o||s instanceof c))return;let i=X(t.from,t.to,t.t,u);return s[e.field]=i,U(p,"light",{[e.field]:i}),void(m.render=!0)}case"camera":{let t=z(e.track,r);if(!(t&&s instanceof d))return;let i=K(t.from,t.to,t.t);return s[e.field]=i,void U(p,"camera",{[e.field]:i})}case"cloner":{let t=z(e.track,r);if(!t)return;let n=s.cloner?.parameters,o=i(n,t.from,t.to,t.t);return a(n,o),U(p,"cloner",o),m.cloner=!0,m.boolean=!0,void(m.render=!0)}case"pathExtrusion":{let i=z(e.track,r);if(!i||!v(s))return;let a=t(A,i.from,i.to,i.t),n=s.geometry.userData.parameters;return n.extrusion={...n.extrusion,...a},U(p,"pathExtrusion",a),s.updateGeometryInteractions({extrusion:{...n.extrusion}},l.shared),m.bounds=!0,m.boolean=!0,void(m.render=!0)}case"pathSnapping":{let i=z(e.track,r);if(!i)return;let a=s,n=t(w,i.from,i.to,i.t);return a.userData.pathSnapping={...a.userData.pathSnapping,...n},U(p,"pathSnapping",n),a.updatePathSnapping(a.userData.pathSnapping),void(m.render=!0)}}}function X(e,t,i,a){if("string"==typeof e&&a&&(e=a.color(e)),"string"==typeof t&&a&&(t=a.color(t)),"number"==typeof e)return F.lerp(e,t,i);if(j.is(e))return j.lerp(e,t,i);if(T.is(e))return T.lerp(e,t,i);if(Array.isArray(e))return(e.length>t.length?t:e).map((a,n)=>{if(Array.isArray(a)){let a=e[n].length>t[n].length?t[n].length:e[n].length;return(4===a?D:3===a?x:M).lerp(e[n],t[n],i)}return F.lerp(e[n],t[n],i)});if("object"==typeof e&&null!==e){let n={};for(let s in e){let r=X(e[s],t[s],i,a);void 0!==r&&(n[s]=r)}return n}}var V=new Map,H=new Map,Q=class extends S{constructor(e,t,i,a,n,s,r){super(),this.id=e,this.data=t,this.scene=i,this.sharedAssets=a,this.object=n,this.eventType=s,this.actionCondition=r,this.evaluators=[],this.elapsed=0,this.lastTime=null,this.direction=1,this._playing=!1,this._finished=!1,this.hasPlayedOnce=!1,this.pauseOnNextCycleEnd=!1,this.lastCycleIndex=0;try{let e=E.findTimeline(this.scene.data.objects,this.data.timeline),t=e.duration;this.animatedObjectIds=Object.keys(e.objectTimelines),this.animatedObjectIds.forEach(n=>{let s=this.scene.find(n);if(!s)return;let r=e.objectTimelines[n];!r||this.evaluators.push(function(e,t,i,a,n){let s=function(e,t){let i=[];return C.groupKeyframes(t.keyframes).forEach(t=>{let a=t.path?.[0],n=t.path[1],s=()=>Z(t.keyframes,e=>e.value);switch(a){case"position":case"rotation":case"scale":return void(n&&O.includes(n)&&i.push({on:a,axis:n,track:s()}));case"shape size":return void(n&&O.includes(n)&&"geometry"in e&&i.push({on:"shapeSize",axis:n,track:s()}));case"path extrusion":return void(v(e)&&i.push({on:"pathExtrusion",track:Z(t.keyframes,e=>e.value)}));case"path snapping":return void(e.data.pathSnapping&&i.push({on:"pathSnapping",track:Z(t.keyframes,e=>e.value)}));case"material":return void("Mesh"===e.type&&"material"in e&&function(e,t){let i=p(e.material)?e.material:void 0,a=t.layerId;if(!i||!a)return[];let n=t.keyframes.some(e=>u(e.data.value?.noiseStrength)),s=i.ensureRainbowNoiseCompiled,r=e=>{n&&"function"==typeof s&&s.call(i,e)},o=e=>"data"in e?[{on:"material",layer:e,track:Z(t.keyframes,e=>e.value)}]:[];r(a);let l=i.getLayerByUuid(a);if(l)return o(l);let h=t.path[1];for(let e of i.getLayersOfType(h))r(e.uuid);return(i.getLayersOfType(h)??[]).flatMap(o)}(e,t).forEach(e=>i.push(e)));case"opacity":return void("Mesh"===e.type&&"material"in e&&i.push({on:"opacity",track:s()}));case"cloner":return void i.push({on:"cloner",track:Z(t.keyframes,e=>e.value)});case"camera":return void(e instanceof d&&i.push({on:"camera",field:"zoom",track:s()}));case"light":return void((e instanceof h||e instanceof o||e instanceof c)&&i.push({on:"light",field:t.path[1],track:Z(t.keyframes,e=>e.value)}))}}),i}(e,t);return{duration:i,evaluate(t,i){e.resetBBoxNeedsUpdate();let r={transform:!1,size:!1,cloner:!1,bounds:!1,boolean:!1,render:!1};for(let o of s)W(o,e,t,a,n,i,r);!function(e,t,i){if(t.size&&e instanceof f){let{x:t,y:a,z:n}=e.userData.value;e.updateGeometryInteractions({width:t,height:a,depth:n},i.shared)}t.cloner&&e.cloner?.update(i),t.transform&&e.updateMatrix(),t.bounds&&e.resetBBoxNeedsUpdate(),t.boolean&&e instanceof f&&e.invalidateDownstreamBooleanData(),t.render&&e.dispatchEvent({type:"requestRender"})}(e,r,a)},invalidate(){for(let e of s)G(e.track)}}}(s,{...r},t,{scene:i,shared:a},this.sharedAssets))}),this.schedule=new B((l=this.data,{duration:t,delay:_(l.delay/1e3),delayDirection:l.delayDirection??"start-end",direction:l.direction??"normal",repeat:l.repeat}))}catch(e){throw new Error("Missing property")}var l;n&&(H.has(n.uuid)?H.get(n.uuid).push(this):H.set(n.uuid,[this])),V.set(e,this)}get playing(){return this._playing}get finished(){return this._finished}get paused(){return!this._playing}update(e){null!==this.lastTime&&(this.elapsed=Math.max(0,this.elapsed+(e-this.lastTime)*this.direction)),this.lastTime=e,this.applyAtElapsed()}applyAtElapsed(){if(-1===this.direction&&0===this.elapsed)return void this.pause();let e=this.schedule.resolve(this.elapsed);if(e){if(e.cycleIndex!==this.lastCycleIndex&&(this.lastCycleIndex=e.cycleIndex,this.pauseOnNextCycleEnd))return this.pauseOnNextCycleEnd=!1,void this.pause();for(let t of this.evaluators)t.evaluate(e.localTime)}else 1===this.direction&&this.schedule.isFinished(this.elapsed)&&this.finish()}finish(){this.pause(),this._finished=!0,this.animatedObjectIds.forEach(e=>{let t=this.scene.find(e);t instanceof d&&t.dispatchEvent(r)})}startTicking(){this._playing=!0,this.lastTime=null;for(let e of this.evaluators)e.invalidate();l.add(this)}play(){let e=void 0!==this.eventType&&I(this.eventType)&&"Once"===this.data.runMode&&this.hasPlayedOnce&&this.paused&&this.elapsed>0&&!this._finished;if(void 0!==this.eventType&&I(this.eventType)&&"Once"===this.data.runMode&&this.hasPlayedOnce&&!e||void 0===this.eventType&&this._finished)return!1;this.hasPlayedOnce=!0,this.animatedObjectIds.forEach(e=>{let t=this.scene.find(e);t instanceof d&&t.dispatchEvent(s)}),!e&&(0===this.elapsed||this._finished)&&(this.elapsed=0,this.lastCycleIndex=0,this._finished=!1),this.direction=1,this.startTicking()}pause(){this._playing=!1,this.lastTime=null,l.remove(this)}stop(){this.pause(),this.elapsed=0,this.lastCycleIndex=0,this.applyAtElapsed(),this._finished=!1}seek(e){let t=this.schedule.totalDuration;this.elapsed=e*(Number.isFinite(t)?t:this.schedule.effectiveCycleDuration);for(let e of this.evaluators)e.invalidate();this.applyAtElapsed()}toggle(e){let t=e??-1===this.direction;this._playing&&this.direction===(t?1:-1)?t&&(this.pauseOnNextCycleEnd=!1):(t?(this._finished&&(this.elapsed=0,this.lastCycleIndex=0,this._finished=!1),this.direction=1,this.pauseOnNextCycleEnd=!1):(this.direction=this.schedule.resolve(this.elapsed)?.isReverse?1:-1,this.pauseOnNextCycleEnd=!0),this.startTicking())}playFromCurrent(){this.toggle(!0)}reverseFromCurrent(){this.toggle(!1)}dispose(){this.pause()}},Y=class{constructor(e){this.data=e}dispatch(){this.data.playTimeline?this.pauseTimeline(this.data.playTimeline):this.data.object?this.pauseAllTimelinesFromObject(this.data.object):this.pauseAllTimelines()}pauseTimeline(e){let t=this.getTimelineActions(e);!t.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{t.forEach(e=>{e[this.data.interaction]()}),this.disposeDelay()},this.data.delay)):t.forEach(e=>{e[this.data.interaction]()}))}getTimelineActions(e){let t=V.get(e);return t?[t]:[...V.values()].filter(t=>t.data.timeline===e)}pauseAllTimelinesFromObject(e){let t=H.get(e);!t?.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{t.forEach(e=>e[this.data.interaction]()),this.disposeDelay()},this.data.delay)):t.forEach(e=>e[this.data.interaction]()))}pauseAllTimelines(){let e=[...H.values()];!e.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{e.forEach(e=>{e.forEach(e=>{e[this.data.interaction]()})}),this.disposeDelay()},this.data.delay)):e.forEach(e=>{e.forEach(e=>{e[this.data.interaction]()})}))}disposeDelay(){clearTimeout(this.timeoutId),delete this.timeoutId}dispose(){clearTimeout(this.timeoutId),delete this.timeoutId}},J=class{constructor(e,t,i,a,n,s,r){this.data=t;let o="interaction"in t?t.interaction:"play";if("play"===o||void 0===o)this.interaction=new Q(e,t,i,a,n,s,r);else{if("pause"!==o&&"stop"!==o)throw new Error("Missing property");this.interaction=new Y(t)}}get playing(){return this.interaction instanceof Q&&this.interaction.playing}get finished(){return!(this.interaction instanceof Q)||this.interaction.finished}get paused(){return!(this.interaction instanceof Q)||this.interaction.paused}play(){if(this.interaction instanceof Q)return this.interaction.play();this.interaction.dispatch()}stop(){this.interaction instanceof Q&&this.interaction.stop()}seek(e){this.interaction instanceof Q&&this.interaction.seek(e)}toggle(e){this.interaction instanceof Q?this.interaction.toggle(e):this.interaction.dispatch()}playFromCurrent(){this.interaction instanceof Q?this.interaction.playFromCurrent():this.interaction.dispatch()}dispatchConditional(){this.interaction instanceof Q?y(this.interaction.sharedAssets,this.interaction.actionCondition)&&this.interaction.playFromCurrent():this.interaction.dispatch()}reverseFromCurrent(){this.interaction instanceof Q&&this.interaction.reverseFromCurrent()}dispose(){this.interaction.dispose()}};m("TimelineAnimation",({id:e,data:t,page:i,shared:a,object:n,eventType:s,actionCondition:r})=>new J(e,t,i.scene,a,n,s,r)),k("timeline");
|
|
1
|
+
import{a as e,c as t,d as i,e as a,f as n,g as s,j as r}from"./runtime-chunk-OUX2QSUD.js";import"./runtime-chunk-5MLJYDJF.js";import"./runtime-chunk-NTUTXO7Q.js";import"./runtime-chunk-HD7WF3XN.js";import{a as o}from"./runtime-chunk-4XJ7U5BB.js";import{a as l}from"./runtime-chunk-GGSUJEGZ.js";import{a as h,b as c}from"./runtime-chunk-NIFSB55C.js";import"./runtime-chunk-7TIIVZ4T.js";import"./runtime-chunk-FTVQTRM7.js";import{a as d}from"./runtime-chunk-KNO4ECOH.js";import"./runtime-chunk-H2DLCIWQ.js";import"./runtime-chunk-XZUEQTES.js";import"./runtime-chunk-GZKGESGF.js";import{ba as u,ha as p,ja as f}from"./runtime-chunk-OERXYDZQ.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as m,e as y}from"./runtime-chunk-5WKK4AK6.js";import{v as g}from"./runtime-chunk-26PJ2PZE.js";import"./runtime-chunk-RTLL6WIB.js";import{d as v}from"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as k}from"./runtime-chunk-TZCHGFVF.js";import{A as x,B as D,D as T,E as j,Ea as E,Ja as b,Ka as C,La as O,la as I,p as w,ua as A,z as M}from"./runtime-chunk-RNMPWHS7.js";import{Bc as S,Cc as F}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var N=Math.fround;function _(e){return"pingpong"===e||"pingpong-rewind"===e}var B=class{constructor(e){this.config=e,this.effectiveCycleDuration=this.cycleDuration(0)}layout(e){let{config:t}=this;if(_(t.direction)&&e%2==1)return{startDelay:0,endDelay:0};switch(t.delayDirection){case"start-once":return 0===e?{startDelay:t.delay,endDelay:0}:{startDelay:0,endDelay:0};case"start":return{startDelay:t.delay,endDelay:0};case"end":return{startDelay:0,endDelay:t.delay};default:return{startDelay:t.delay,endDelay:t.delay}}}cycleDuration(e){let{config:t}=this,{startDelay:i,endDelay:a}=this.layout(e);return N(t.duration+i+a)}get totalDuration(){let{config:e}=this;if(-1===e.repeat)return 1/0;let t=0;for(let i=0;i<=e.repeat;i++)t=N(t+this.cycleDuration(i));return t}isFinished(e){return e>=this.totalDuration}resolve(e){let t,i,{config:a}=this,n=N(e);if("start-once"===a.delayDirection){let e=N(a.delay+a.duration);if(n<e)t=0,i=n;else{let s=N(n-e);t=1+Math.floor(N(s/a.duration)),i=N(s%a.duration)}}else if(_(a.direction)){let e=this.cycleDuration(0),s=N(e+a.duration),r=Math.floor(N(n/s)),o=N(n%s);o<e?(t=2*r,i=o):(t=2*r+1,i=N(o-e))}else{let e=this.cycleDuration(0);t=Math.floor(N(n/e)),i=N(n%e)}if(-1!==a.repeat&&t>=a.repeat+1)return null;let s,{startDelay:r}=this.layout(t),o=_(a.direction)&&t%2==1,l=r,h=N(l+a.duration);if(i<l)s=o?a.duration:0;else if(i>=h)s=o?0:a.duration;else{let e=N(i-l);s=o?N(a.duration-e):e}return{cycleIndex:t,localTime:s,isReverse:o}}},P=Math.fround;function L(e){return[...e].sort((e,t)=>e.time-t.time)}function U(e){return{easing:e.type,control1:b(e.cubicControls?.control1,[0,0]),control2:b(e.cubicControls?.control2,[1,1]),...e.springParameters}}function z(e,t){let i=[];for(let a of e??[]){let e=t(a.data);void 0!==e&&i.push({time:a.data.time,ease:U(a.data.easing),value:e})}return{keyframes:L(i)}}function G(t,i){if(0===t.keyframes.length)return;let{index0:a,index1:n,t:s}=function(t,i){if(0===t.length)throw new Error("sampleKeyframes requires at least one keyframe");if(i<=t[0].time)return{index0:0,index1:0,t:1};let{found:a,index:n}=function(e,t){let i=e.length,a=0,n=i;for(;a<n;){let s=a+Math.floor(i/2),r=e[s].time;if(r<t)a=s+1;else{if(!(r>t))return{found:!0,index:s};n=s}i=n-a}return{found:!1,index:a}}(t,i);if(a)return{index0:n,index1:n,t:1};if(n>=t.length){let e=t.length-1;return{index0:e,index1:e,t:1}}let s=n-1,r=n,o=t[s].time,l=t[r].time;if(l===o)return{index0:s,index1:r,t:.5};let h=P(l-o),c={...t[s].ease,control2:t[r].ease.control2};return{index0:s,index1:r,t:e(c,h,P(P(i-o)/h))}}(t.keyframes,i),r=t.read;if(r&&r.index0===a&&r.index1===n&&r.t===s)return;let o={index0:a,index1:n,from:t.keyframes[a].value,to:t.keyframes[n].value,t:s};return t.read=o,o}function Z(e){e.read=void 0}function K(e,t,i){return e+(t-e)*i}function R(e,t,i){!e||(e[t]={...e[t],...i})}function X(e,s,r,l,u,p,m){let y=()=>{m.transform=!0,m.bounds=!0,m.boolean=!0,m.render=!0};switch(e.on){case"position":case"scale":{let t=G(e.track,r);if(!t)return;let i=K(t.from,t.to,t.t);return s[e.on][e.axis]=i,R(p,e.on,{[e.axis]:i}),void y()}case"rotation":{let t=G(e.track,r);if(!t)return;let i=K(t.from,t.to,t.t);return s.rotation[e.axis]=i*F.DEG2RAD,R(p,"rotation",{[e.axis]:i}),void y()}case"shapeSize":{let t=G(e.track,r);if(!(t&&s instanceof f))return;let i=K(t.from,t.to,t.t);return s.userData.value={...s.userData.value,[e.axis]:i},R(p,"shapeSize",{[e.axis]:i}),m.size=!0,m.bounds=!0,m.boolean=!0,void(m.render=!0)}case"opacity":{let t=G(e.track,r);if(!t||!(s instanceof g)||Array.isArray(s.material))return;let i=s.material.getLayersOfType("light")[0];if(void 0===i)return;let a=F.lerp(t.from,t.to,t.t);return s.material.transparent=!0,n("alphaOverride",i,{alphaOverride:a},{alphaOverride:a+1},0,l.shared),p&&(p.opacity=a),void(m.render=!0)}case"material":{let t=G(e.track,r);if(!t||0===Object.keys(t.from).length||0===Object.keys(t.to).length)return;let{layer:i}=e,a={};for(let e in i.data){if(!(e in t.from)||!(e in t.to))continue;let r=Q(t.from[e],t.to[e],t.t,u);if(void 0===r)continue;a[e]=r;let o=i.getValue(e);void 0!==o&&("alpha"===e&&"number"==typeof o&&o>0&&s instanceof g&&!Array.isArray(s.material)&&(s.material.transparent=!0),n(e,i,t.from,t.to,t.t,l.shared))}return R(p,"material",{[i.uuid]:a}),void(m.render=!0)}case"light":{let t=G(e.track,r);if(!t||!(s instanceof h||s instanceof o||s instanceof c))return;let i=Q(t.from,t.to,t.t,u);return s[e.field]=i,R(p,"light",{[e.field]:i}),void(m.render=!0)}case"camera":{let t=G(e.track,r);if(!(t&&s instanceof d))return;let i=K(t.from,t.to,t.t);return s[e.field]=i,void R(p,"camera",{[e.field]:i})}case"cloner":{let t=G(e.track,r);if(!t)return;let n=s.cloner?.parameters,o=i(n,t.from,t.to,t.t);return a(n,o),R(p,"cloner",o),m.cloner=!0,m.boolean=!0,void(m.render=!0)}case"pathExtrusion":{let i=G(e.track,r);if(!i||!v(s))return;let a=t(I,i.from,i.to,i.t),n=s.geometry.userData.parameters;return n.extrusion={...n.extrusion,...a},R(p,"pathExtrusion",a),s.updateGeometryInteractions({extrusion:{...n.extrusion}},l.shared),m.bounds=!0,m.boolean=!0,void(m.render=!0)}case"pathSnapping":{let i=G(e.track,r);if(!i)return;let a=s,n=t(A,i.from,i.to,i.t);return a.userData.pathSnapping={...a.userData.pathSnapping,...n},R(p,"pathSnapping",n),a.updatePathSnapping(a.userData.pathSnapping),void(m.render=!0)}}}function Q(e,t,i,a){if("string"==typeof e&&a&&(e=a.color(e)),"string"==typeof t&&a&&(t=a.color(t)),"number"==typeof e)return F.lerp(e,t,i);if(j.is(e))return j.lerp(e,t,i);if(T.is(e))return T.lerp(e,t,i);if(Array.isArray(e))return(e.length>t.length?t:e).map((a,n)=>{if(Array.isArray(a)){let a=e[n].length>t[n].length?t[n].length:e[n].length;return(4===a?D:3===a?x:M).lerp(e[n],t[n],i)}return F.lerp(e[n],t[n],i)});if("object"==typeof e&&null!==e){let n={};for(let s in e){let r=Q(e[s],t[s],i,a);void 0!==r&&(n[s]=r)}return n}}var V=new Map,W=new Map,H=class extends S{constructor(e,t,i,a,n,s,r){super(),this.id=e,this.data=t,this.scene=i,this.sharedAssets=a,this.object=n,this.eventType=s,this.actionCondition=r,this.evaluators=[],this.elapsed=0,this.lastTime=null,this.direction=1,this._playing=!1,this._finished=!1,this.hasPlayedOnce=!1,this.pauseOnNextCycleEnd=!1,this.lastCycleIndex=0;try{let e=E.findTimeline(this.scene.data.objects,this.data.timeline),t=e.duration;this.animatedObjectIds=Object.keys(e.objectTimelines),this.animatedObjectIds.forEach(n=>{let s=this.scene.find(n);if(!s)return;let r=e.objectTimelines[n];!r||this.evaluators.push(function(e,t,i,a,n){let s=function(e,t){let i=[];return C.groupKeyframes(t.keyframes).forEach(t=>{let a=t.path?.[0],n=t.path[1],s=()=>z(t.keyframes,e=>e.value);switch(a){case"position":case"rotation":case"scale":return void(n&&O.includes(n)&&i.push({on:a,axis:n,track:s()}));case"shape size":return void(n&&O.includes(n)&&"geometry"in e&&i.push({on:"shapeSize",axis:n,track:s()}));case"path extrusion":return void(v(e)&&i.push({on:"pathExtrusion",track:z(t.keyframes,e=>e.value)}));case"path snapping":return void(e.data.pathSnapping&&i.push({on:"pathSnapping",track:z(t.keyframes,e=>e.value)}));case"material":return void("Mesh"===e.type&&"material"in e&&function(e,t){let i=p(e.material)?e.material:void 0,a=t.layerId;if(!i||!a)return[];let n=t.keyframes.some(e=>u(e.data.value?.noiseStrength)),s=i.ensureRainbowNoiseCompiled,r=e=>{n&&"function"==typeof s&&s.call(i,e)},o=e=>"data"in e?[{on:"material",layer:e,track:z(t.keyframes,e=>e.value)}]:[];r(a);let l=i.getLayerByUuid(a);if(l)return o(l);let h=t.path[1];for(let e of i.getLayersOfType(h))r(e.uuid);return(i.getLayersOfType(h)??[]).flatMap(o)}(e,t).forEach(e=>i.push(e)));case"opacity":return void("Mesh"===e.type&&"material"in e&&i.push({on:"opacity",track:s()}));case"cloner":return void i.push({on:"cloner",track:z(t.keyframes,e=>e.value)});case"camera":return void(e instanceof d&&i.push({on:"camera",field:"zoom",track:s()}));case"light":return void((e instanceof h||e instanceof o||e instanceof c)&&i.push({on:"light",field:t.path[1],track:z(t.keyframes,e=>e.value)}))}}),i}(e,t);return{duration:i,evaluate(t,i){e.resetBBoxNeedsUpdate();let r={transform:!1,size:!1,cloner:!1,bounds:!1,boolean:!1,render:!1};for(let o of s)X(o,e,t,a,n,i,r);!function(e,t,i){if(t.size&&e instanceof f){let{x:t,y:a,z:n}=e.userData.value;e.updateGeometryInteractions({width:t,height:a,depth:n},i.shared)}t.cloner&&e.cloner?.update(i),t.transform&&e.updateMatrix(),t.bounds&&e.resetBBoxNeedsUpdate(),t.boolean&&e instanceof f&&e.invalidateDownstreamBooleanData(),t.render&&e.dispatchEvent({type:"requestRender"})}(e,r,a)},invalidate(){for(let e of s)Z(e.track)}}}(s,{...r},t,{scene:i,shared:a},this.sharedAssets))}),this.schedule=new B((l=this.data,{duration:t,delay:N(l.delay/1e3),delayDirection:l.delayDirection??"start-end",direction:l.direction??"normal",repeat:l.repeat}))}catch(e){throw new Error("Missing property")}var l;n&&(W.has(n.uuid)?W.get(n.uuid).push(this):W.set(n.uuid,[this])),V.set(e,this)}get playing(){return this._playing}get finished(){return this._finished}get paused(){return!this._playing}update(e){null!==this.lastTime&&(this.elapsed=Math.max(0,this.elapsed+(e-this.lastTime)*this.direction)),this.lastTime=e,this.applyAtElapsed()}applyAtElapsed(){if(-1===this.direction&&0===this.elapsed)return void this.pause();let e=this.schedule.resolve(this.elapsed);if(e){if(e.cycleIndex!==this.lastCycleIndex&&(this.lastCycleIndex=e.cycleIndex,this.pauseOnNextCycleEnd))return this.pauseOnNextCycleEnd=!1,void this.pause();for(let t of this.evaluators)t.evaluate(e.localTime)}else 1===this.direction&&this.schedule.isFinished(this.elapsed)&&this.finish()}finish(){this.pause(),this._finished=!0,this.animatedObjectIds.forEach(e=>{let t=this.scene.find(e);t instanceof d&&t.dispatchEvent(r)})}startTicking(){this._playing=!0,this.lastTime=null;for(let e of this.evaluators)e.invalidate();l.add(this)}play(){let e=void 0!==this.eventType&&w(this.eventType)&&"Once"===this.data.runMode&&this.hasPlayedOnce&&this.paused&&this.elapsed>0&&!this._finished;if(void 0!==this.eventType&&w(this.eventType)&&"Once"===this.data.runMode&&this.hasPlayedOnce&&!e||void 0===this.eventType&&this._finished)return!1;this.hasPlayedOnce=!0,this.animatedObjectIds.forEach(e=>{let t=this.scene.find(e);t instanceof d&&t.dispatchEvent(s)}),!e&&(0===this.elapsed||this._finished)&&(this.elapsed=0,this.lastCycleIndex=0,this._finished=!1),this.direction=1,this.startTicking()}pause(){this._playing=!1,this.lastTime=null,l.remove(this)}stop(){this.pause(),this.elapsed=0,this.lastCycleIndex=0,this.applyAtElapsed(),this._finished=!1}seek(e){let t=this.schedule.totalDuration;this.elapsed=e*(Number.isFinite(t)?t:this.schedule.effectiveCycleDuration);for(let e of this.evaluators)e.invalidate();this.applyAtElapsed()}toggle(e){let t=e??-1===this.direction;this._playing&&this.direction===(t?1:-1)?t&&(this.pauseOnNextCycleEnd=!1):(t?(this._finished&&(this.elapsed=0,this.lastCycleIndex=0,this._finished=!1),this.direction=1,this.pauseOnNextCycleEnd=!1):(this.direction=this.schedule.resolve(this.elapsed)?.isReverse?1:-1,this.pauseOnNextCycleEnd=!0),this.startTicking())}playFromCurrent(){this.toggle(!0)}reverseFromCurrent(){this.toggle(!1)}dispose(){this.pause()}},J=class{constructor(e){this.data=e}dispatch(){this.data.playTimeline?this.pauseTimeline(this.data.playTimeline):this.data.object?this.pauseAllTimelinesFromObject(this.data.object):this.pauseAllTimelines()}pauseTimeline(e){let t=this.getTimelineActions(e);!t.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{t.forEach(e=>{e[this.data.interaction]()}),this.disposeDelay()},this.data.delay)):t.forEach(e=>{e[this.data.interaction]()}))}getTimelineActions(e){let t=V.get(e);return t?[t]:[...V.values()].filter(t=>t.data.timeline===e)}pauseAllTimelinesFromObject(e){let t=W.get(e);!t?.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{t.forEach(e=>e[this.data.interaction]()),this.disposeDelay()},this.data.delay)):t.forEach(e=>e[this.data.interaction]()))}pauseAllTimelines(){let e=[...W.values()];!e.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{e.forEach(e=>{e.forEach(e=>{e[this.data.interaction]()})}),this.disposeDelay()},this.data.delay)):e.forEach(e=>{e.forEach(e=>{e[this.data.interaction]()})}))}disposeDelay(){clearTimeout(this.timeoutId),delete this.timeoutId}dispose(){clearTimeout(this.timeoutId),delete this.timeoutId}},Y=class{constructor(e,t,i,a,n,s,r){this.data=t;let o="interaction"in t?t.interaction:"play";if("play"===o||void 0===o)this.interaction=new H(e,t,i,a,n,s,r);else{if("pause"!==o&&"stop"!==o)throw new Error("Missing property");this.interaction=new J(t)}}get playing(){return this.interaction instanceof H&&this.interaction.playing}get finished(){return!(this.interaction instanceof H)||this.interaction.finished}get paused(){return!(this.interaction instanceof H)||this.interaction.paused}play(){if(this.interaction instanceof H)return this.interaction.play();this.interaction.dispatch()}stop(){this.interaction instanceof H&&this.interaction.stop()}seek(e){this.interaction instanceof H&&this.interaction.seek(e)}toggle(e){this.interaction instanceof H?this.interaction.toggle(e):this.interaction.dispatch()}playFromCurrent(){this.interaction instanceof H?this.interaction.playFromCurrent():this.interaction.dispatch()}dispatchConditional(){this.interaction instanceof H?y(this.interaction.sharedAssets,this.interaction.actionCondition)&&this.interaction.playFromCurrent():this.interaction.dispatch()}reverseFromCurrent(){this.interaction instanceof H&&this.interaction.reverseFromCurrent()}dispose(){this.interaction.dispose()}};m("TimelineAnimation",({id:e,data:t,page:i,shared:a,object:n,eventType:s,actionCondition:r})=>new Y(e,t,i.scene,a,n,s,r)),k("timeline");
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./runtime-chunk-NBYTQLIB.js";import{f as t}from"./runtime-chunk-R5TQ5SBH.js";import{a as n,b as i}from"./runtime-chunk-DZNU62CT.js";import{a as s}from"./runtime-chunk-VAVYZ35B.js";import{e as a}from"./runtime-chunk-FQNSP44B.js";import"./runtime-chunk-5XI6SEAR.js";import"./runtime-chunk-IK3OLWAK.js";import"./runtime-chunk-WG7QXBEZ.js";import"./runtime-chunk-VHZEYLZC.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{f as o,g as r}from"./runtime-chunk-5WKK4AK6.js";import{d,v as l}from"./runtime-chunk-UFMPH23Y.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as u}from"./runtime-chunk-TZCHGFVF.js";import{s as h,t as c}from"./runtime-chunk-RNMPWHS7.js";import{Ec as p,Fc as m,Oc as v,rd as g}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var E=new m,f=new m,w=new m,y=new m,L=new g,M={type:"requestRender"},F=function(){let e=new m,t=new m;return(n,i,s)=>s>0?(e.subVectors(n,i),e.length()<=s?n:t.copy(i).add(e.normalize().multiplyScalar(s))):i}(),x=function(){let e=new v;return(n,i)=>{n.position.copy(i),null!==n.parent&&(e.copy(n.parent.matrixWorld).invert(),n.position.applyMatrix4(e)),e.copy(n.hiddenMatrix).invert(),n.position.applyMatrix4(e),n.updateMatrix(),n.hasNonUniformScale&&(n.updateMatrixWorld(),n.updateMatrixWorldRigid()),n instanceof l&&t(n.parent)&&n.invalidateDownstreamBooleanData(!0)}}(),D=class{constructor(e,t,n,i,s,a){this.data=e,this.id=t,this.object=n,this.paused=!1,this.currentDampingFactor=1,this.snapComplete=!1,this.isReset=!1,this.worldPosition0=new m,this.timeoutId=null,this.delayFinished=!0,this.wasOutside=!1,this.data={...h.defaultData,...e,...void 0===e.resetOnPointerLeave&&{resetOnPointerLeave:!1}},void 0===e.target||"cursor"===e.target||(this.target=i.find(e.target)),this.data.dampingFactor&&(this.currentDampingFactor=this.data.dampingFactor),this.resetDampingFactor=80/this.data.resetSpeed+1,this.object.getWorldPosition(this.worldPosition0),this.actions=o(e,e.actions,i,s,a,n)}},P=class extends n{constructor(e,t){super(e),this.eventManager=t,this.events=[],this.pairOfEventListeners=[],this.onMouseMove=e=>{if(!(s.length>1)){this.eventContext.updateRaycaster(e);for(let e of this.events)void 0===e.target&&this.updateSingleEvent(e)}},this.onMouseEnter=e=>{for(let e of this.events)void 0===e.target&&(e.isReset=!1,e.currentDampingFactor=e.data.dampingFactor)},this.onMouseLeave=e=>{for(let e of this.events)void 0===e.target&&(e.data.resetOnPointerLeave&&(e.isReset=!0,e.currentDampingFactor=e.resetDampingFactor),this.updateSingleEvent(e))},this.onTargetChange=e=>()=>{this.updateSingleEvent(e)}}connect(){let{page:e}=this.eventContext;if(e.traverseEntity(t=>{let n=t.data?.events.find(e=>"Follow"===e.data.type&&!e.data.disabled);n&&(!e.data.globalPhysics.usePhysics||"dynamic"!==t.dataPatched.physics?.rigidBody)&&this.events.push(new D(n.data,n.id,t,e,this.eventContext.sharedAssets,this.eventManager))}),!this.events.length)return;let{domElement:t,eventElement:n}=this.eventContext;this.domEventsNeeded.clear(),a&&(this.domEventsNeeded.add("pointerdown"),t.addEventListener("pointerdown",this.onMouseMove)),this.domEventsNeeded.add("pointermove"),n.addEventListener("pointermove",this.onMouseMove),this.eventContext.useWindowEvents||(t.addEventListener("pointerenter",this.onMouseEnter),t.addEventListener("pointerleave",this.onMouseLeave));for(let e of this.events)if(void 0!==e.target){let t=e.target,n=this.onTargetChange(e);this.pairOfEventListeners.push([t,n]),t.addEventListener("requestRender",n)}}disconnect(){if(!this.events.length)return;let{domElement:e,eventElement:t}=this.eventContext;this.domEventsNeeded.clear(),a&&e.removeEventListener("pointerdown",this.onMouseMove),t.removeEventListener("pointermove",this.onMouseMove),e.removeEventListener("pointerenter",this.onMouseEnter),e.removeEventListener("pointerleave",this.onMouseLeave);for(let[e,t]of this.pairOfEventListeners)e.removeEventListener("requestRender",t);for(let e of this.events)e.paused=!0,e.isReset=!1,r(e.actions)}onAnimationFrameDamping(){for(let e of this.events)e.paused||this.updateSingleEvent(e,!0)}updateSingleEvent(e,t=!1){this.events.forEach(e=>{e.actions.Create.forEach(e=>{e.dispatchThrottled()})});let{plane:n,limitDistance:i,limitDistanceEnabled:s}=e.data;if(e.object.getWorldPosition(w),e.isReset)y.copy(e.worldPosition0);else if(e.target)e.target.getWorldPosition(y);else{let{getCamera:e,raycaster:t}=this.eventContext;if("custom"===n?(e().getWorldDirection(f),f.negate(),E.copy(f)):"xy"===n?E.set(0,0,1):"xz"===n?E.set(0,1,0):"yz"===n&&E.set(1,0,0),L.setFromNormalAndCoplanarPoint(E,w),!t.ray.intersectPlane(L,y))return}if(!e.isReset)if(y.distanceTo(e.worldPosition0)>i&&s&&e.target){if(e.snapComplete=!1,e.data.snapDelay&&(e.delayFinished=!1,typeof window<"u"&&null!==e.timeoutId&&(window.clearTimeout(e.timeoutId),e.timeoutId=null)),e.wasOutside=!0,!e.data.resetAfterDistanceLimit)return;y.copy(e.worldPosition0),e.currentDampingFactor=e.resetDampingFactor}else if(e.wasOutside&&(e.data.snapDelay&&typeof window<"u"&&(e.timeoutId=window.setTimeout(()=>{e.delayFinished=!0,e.paused=!1,this.updateSingleEvent(e)},1e3*e.data.snapDelay)),e.currentDampingFactor=e.data.dampingFactor,e.wasOutside=!1),!1===e.delayFinished)return;!1===e.data.enabledTranslation[0]&&(y.x=w.x),!1===e.data.enabledTranslation[1]&&(y.y=w.y),!1===e.data.enabledTranslation[2]&&(y.z=w.z);let a=F(w,y,e.wasOutside?0:e.data.maxDelta);if(e.currentDampingFactor>1){let n=E.subVectors(a,w).divideScalar(e.currentDampingFactor);w.add(n),t&&x(e.object,w),e.paused=n.length()<.01}else x(e.object,a),e.paused=!0;e.object?.dispatchEvent({type:"beginEvent",eventName:"Follow"}),e.object.dispatchEvent(M)}},R=new m,b=new m,j=new v,C=new p,S=new p,N=new m,k=new m,O=new m,W=new m,Q=new g,z={type:"requestRender"},T={type:"changeRotation"},A=function(){let e=new v;return function(n,i){null!==n.parent?e.multiplyMatrices(n.parent.matrixWorld,n.hiddenMatrix):e.copy(n.hiddenMatrix),i.premultiply(d(e).invert()),n.rotation.setFromRotationMatrix(i),n.updateMatrix(),n instanceof l&&t(n.parent)&&n.invalidateDownstreamBooleanData(!0)}}(),V=class{constructor(e,t,n,i){this.id=t,this.object=n,this.paused=!1,this.currentDampingFactor=1,this.isReset=!1,this.worldQuaternion0=new p,this.timeoutId=null,this.delayFinished=!0,this.wasOutside=!1,this.data={...c.defaultData,...e,...void 0===e.resetOnPointerLeave&&{resetOnPointerLeave:!1}},void 0===e.target||"cursor"===e.target||(this.target=i.find(e.target)),this.data.dampingFactor&&(this.currentDampingFactor=this.data.dampingFactor),this.object.getWorldQuaternion(this.worldQuaternion0),isNaN(this.worldQuaternion0.x)&&(this.worldQuaternion0.x=0),isNaN(this.worldQuaternion0.y)&&(this.worldQuaternion0.y=0),isNaN(this.worldQuaternion0.z)&&(this.worldQuaternion0.z=0),isNaN(this.worldQuaternion0.w)&&(this.worldQuaternion0.w=1),this.resetDampingFactor=80/this.data.resetSpeed+1}},I=class extends n{constructor(){super(...arguments),this.events=[],this.pairOfEventListeners=[],this.pairOfUserEventListeners=[],this.onMouseMove=e=>{if(!(s.length>1)){this._lastMouseEvent=e,this.eventContext.updateRaycaster(e);for(let e of this.events)void 0===e.target&&this.updateSingleEvent(e)}},this.onMouseEnter=e=>{for(let e of this.events)void 0===e.target&&(e.isReset=!1,e.currentDampingFactor=e.data.dampingFactor)},this.onMouseLeave=e=>{for(let e of this.events)void 0===e.target&&(e.data.resetOnPointerLeave&&(e.isReset=!0,e.currentDampingFactor=e.resetDampingFactor),this.updateSingleEvent(e))},this.onScroll=e=>{if(this._lastMouseEvent){let e=new PointerEvent("pointermove",{clientX:this._lastMouseEvent.clientX,clientY:this._lastMouseEvent.clientY,bubbles:!0,cancelable:!0,view:window});this.eventContext.eventElement.dispatchEvent(e)}},this.onTargetChange=e=>()=>{this.updateSingleEvent(e)},this.createUserEventListener=t=>({eventName:n,target:i})=>{if(!n||!i)return;let s=e(n);s&&"LookAt"===s&&this.updateSingleEvent(t)}}connect(){let{page:e}=this.eventContext;if(e.traverseEntity(t=>{let n=t.data?.events.find(e=>"LookAt"===e.data.type&&!e.data.disabled);n&&(!e.data.globalPhysics.usePhysics||"dynamic"!==t.dataPatched.physics?.rigidBody)&&this.events.push(new V(n.data,n.id,t,e))}),!this.events.length)return;let{domElement:t,eventElement:n}=this.eventContext;this.domEventsNeeded.clear(),a&&(this.domEventsNeeded.add("pointerdown"),t.addEventListener("pointerdown",this.onMouseMove)),this.domEventsNeeded.add("pointermove"),n.addEventListener("pointermove",this.onMouseMove),this.eventContext.useWindowEvents?n.addEventListener("scroll",this.onScroll):(t.addEventListener("pointerenter",this.onMouseEnter),t.addEventListener("pointerleave",this.onMouseLeave));for(let e of this.events){if(void 0!==e.target){let t=this.onTargetChange(e),n=e.target;this.pairOfEventListeners.push([n,t]),n.addEventListener("requestRender",t)}let t=this.createUserEventListener(e),n=e.object;this.pairOfUserEventListeners.push([n,t]),n.addEventListener("userEvent",t)}}disconnect(){if(!this.events.length)return;let{domElement:e,eventElement:t}=this.eventContext;this.domEventsNeeded.clear(),a&&e.removeEventListener("pointerdown",this.onMouseMove),t.removeEventListener("pointermove",this.onMouseMove),e.removeEventListener("pointerenter",this.onMouseEnter),e.removeEventListener("pointerleave",this.onMouseLeave),t.removeEventListener("scroll",this.onScroll);for(let[e,t]of this.pairOfEventListeners)e.removeEventListener("requestRender",t);for(let[e,t]of this.pairOfUserEventListeners)e.removeEventListener("userEvent",t);for(let e of this.events)e.paused=!0,e.isReset=!1}onAnimationFrameDamping(){for(let e of this.events)e.paused||this.updateSingleEvent(e)}updateSingleEvent(e){let{tilt:t,axis:n,distance:i,plane:s,limitDistance:a,enabledRotation:o,limitDistanceEnabled:r}=e.data,{getCamera:l,raycaster:u}=this.eventContext,{object:h,target:c}=e;if(h.getWorldPosition(N),!e.isReset)if(e.target)e.target.getWorldPosition(k);else{if("custom"===s?(l().getWorldDirection(b),b.negate(),Q.setFromNormalAndCoplanarPoint(b,N)):("xy"===s?R.set(0,0,1):"xz"===s?R.set(0,1,0):"yz"===s&&R.set(1,0,0),Q.setFromNormalAndCoplanarPoint(R,N)),!u.ray.intersectPlane(Q,k))return;i>0&&("custom"===s||void 0===s)&&k.addScaledVector(b,i)}if(e.isReset||(c?"target"===t?O.copy(c.up).applyMatrix4(j.extractRotation(c.matrixWorld)).normalize():o.some(e=>!1===e)?("x"===n?(W.set(0,0,1),!1===o[2]&&W.set(0,1,0)):"y"===n?(W.set(1,0,0),!1===o[0]&&W.set(0,0,1)):(W.set(0,1,0),!1===o[1]&&W.set(1,0,0)),O.copy(W).applyQuaternion(e.worldQuaternion0).normalize()):O.set(0,1,0):"custom"===s?O.set(0,1,0):O.copy(R)),e.isReset)S.copy(e.worldQuaternion0);else if(N.distanceTo(k)>a&&r&&c){if(e.data.snapDelay&&(e.delayFinished=!1,typeof window<"u"&&null!==e.timeoutId&&(window.clearTimeout(e.timeoutId),e.timeoutId=null)),e.wasOutside=!0,!e.data.resetAfterDistanceLimit)return;S.copy(e.worldQuaternion0),e.currentDampingFactor=e.resetDampingFactor}else{if(e.wasOutside&&(e.data.snapDelay&&typeof window<"u"&&(e.timeoutId=window.setTimeout(()=>{e.delayFinished=!0,e.paused=!1,this.updateSingleEvent(e)},1e3*e.data.snapDelay)),e.currentDampingFactor=e.data.dampingFactor,e.wasOutside=!1),!1===e.delayFinished)return;(function(e,t,n,i,s,a){let o=j.elements;Z.subVectors(t,n),0===Z.lengthSq()&&(Z.z=1),Z.normalize(),U.crossVectors(i,Z),0===U.lengthSq()&&(1===Math.abs(i.z)?Z.x+=1e-4:Z.z+=1e-4,Z.normalize(),U.crossVectors(i,Z)),U.normalize(),B.crossVectors(Z,U),"x"===s?1===a.z?[U,B,Z]=[Z,U,B]:(U.negate(),[U,Z]=[Z,U]):"y"===s?1===a.x?[U,B,Z]=[B,Z,U]:(U.negate(),[B,Z]=[Z,B]):1===a.x&&(U.negate(),[U,B]=[B,U]),o[0]=U.x,o[4]=B.x,o[8]=Z.x,o[1]=U.y,o[5]=B.y,o[9]=Z.y,o[2]=U.z,o[6]=B.z,o[10]=Z.z})(0,k,N,O,n,W),S.setFromRotationMatrix(j),C.setFromUnitVectors(W.applyQuaternion(S),O),o.some(e=>!1===e)&&"target"!==t&&S.premultiply(C).normalize()}e.currentDampingFactor>1?(h.updateWorldMatrix(!0,!1),C.setFromRotationMatrix(d(h.matrixWorld)),C.slerp(S,1/e.currentDampingFactor),A(h,j.makeRotationFromQuaternion(C)),e.paused=8*(1-C.dot(S))<1e-6):(A(h,j.makeRotationFromQuaternion(S)),e.paused=!0),e.object?.dispatchEvent({type:"beginEvent",eventName:"LookAt"}),h.dispatchEvent(z),h.dispatchEvent(T)}},B=new m,U=new m,Z=new m;i("Follow",({eventContext:e,eventManager:t})=>new P(e,t)),i("LookAt",({eventContext:e})=>new I(e)),u("tracking");
|
|
1
|
+
import{a as e}from"./runtime-chunk-NBYTQLIB.js";import{f as t}from"./runtime-chunk-7TIIVZ4T.js";import{a as n,b as i}from"./runtime-chunk-DZNU62CT.js";import{a as s}from"./runtime-chunk-VAVYZ35B.js";import{e as a}from"./runtime-chunk-FQNSP44B.js";import"./runtime-chunk-KNO4ECOH.js";import"./runtime-chunk-XZUEQTES.js";import"./runtime-chunk-GZKGESGF.js";import"./runtime-chunk-OERXYDZQ.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{f as o,g as r}from"./runtime-chunk-5WKK4AK6.js";import{d,v as l}from"./runtime-chunk-26PJ2PZE.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as u}from"./runtime-chunk-TZCHGFVF.js";import{s as h,t as c}from"./runtime-chunk-RNMPWHS7.js";import{Ec as p,Fc as m,Oc as v,rd as g}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var E=new m,f=new m,w=new m,y=new m,L=new g,M={type:"requestRender"},F=function(){let e=new m,t=new m;return(n,i,s)=>s>0?(e.subVectors(n,i),e.length()<=s?n:t.copy(i).add(e.normalize().multiplyScalar(s))):i}(),x=function(){let e=new v;return(n,i)=>{n.position.copy(i),null!==n.parent&&(e.copy(n.parent.matrixWorld).invert(),n.position.applyMatrix4(e)),e.copy(n.hiddenMatrix).invert(),n.position.applyMatrix4(e),n.updateMatrix(),n.hasNonUniformScale&&(n.updateMatrixWorld(),n.updateMatrixWorldRigid()),n instanceof l&&t(n.parent)&&n.invalidateDownstreamBooleanData(!0)}}(),D=class{constructor(e,t,n,i,s,a){this.data=e,this.id=t,this.object=n,this.paused=!1,this.currentDampingFactor=1,this.snapComplete=!1,this.isReset=!1,this.worldPosition0=new m,this.timeoutId=null,this.delayFinished=!0,this.wasOutside=!1,this.data={...h.defaultData,...e,...void 0===e.resetOnPointerLeave&&{resetOnPointerLeave:!1}},void 0===e.target||"cursor"===e.target||(this.target=i.find(e.target)),this.data.dampingFactor&&(this.currentDampingFactor=this.data.dampingFactor),this.resetDampingFactor=80/this.data.resetSpeed+1,this.object.getWorldPosition(this.worldPosition0),this.actions=o(e,e.actions,i,s,a,n)}},P=class extends n{constructor(e,t){super(e),this.eventManager=t,this.events=[],this.pairOfEventListeners=[],this.onMouseMove=e=>{if(!(s.length>1)){this.eventContext.updateRaycaster(e);for(let e of this.events)void 0===e.target&&this.updateSingleEvent(e)}},this.onMouseEnter=e=>{for(let e of this.events)void 0===e.target&&(e.isReset=!1,e.currentDampingFactor=e.data.dampingFactor)},this.onMouseLeave=e=>{for(let e of this.events)void 0===e.target&&(e.data.resetOnPointerLeave&&(e.isReset=!0,e.currentDampingFactor=e.resetDampingFactor),this.updateSingleEvent(e))},this.onTargetChange=e=>()=>{this.updateSingleEvent(e)}}connect(){let{page:e}=this.eventContext;if(e.traverseEntity(t=>{let n=t.data?.events.find(e=>"Follow"===e.data.type&&!e.data.disabled);n&&(!e.data.globalPhysics.usePhysics||"dynamic"!==t.dataPatched.physics?.rigidBody)&&this.events.push(new D(n.data,n.id,t,e,this.eventContext.sharedAssets,this.eventManager))}),!this.events.length)return;let{domElement:t,eventElement:n}=this.eventContext;this.domEventsNeeded.clear(),a&&(this.domEventsNeeded.add("pointerdown"),t.addEventListener("pointerdown",this.onMouseMove)),this.domEventsNeeded.add("pointermove"),n.addEventListener("pointermove",this.onMouseMove),this.eventContext.useWindowEvents||(t.addEventListener("pointerenter",this.onMouseEnter),t.addEventListener("pointerleave",this.onMouseLeave));for(let e of this.events)if(void 0!==e.target){let t=e.target,n=this.onTargetChange(e);this.pairOfEventListeners.push([t,n]),t.addEventListener("requestRender",n)}}disconnect(){if(!this.events.length)return;let{domElement:e,eventElement:t}=this.eventContext;this.domEventsNeeded.clear(),a&&e.removeEventListener("pointerdown",this.onMouseMove),t.removeEventListener("pointermove",this.onMouseMove),e.removeEventListener("pointerenter",this.onMouseEnter),e.removeEventListener("pointerleave",this.onMouseLeave);for(let[e,t]of this.pairOfEventListeners)e.removeEventListener("requestRender",t);for(let e of this.events)e.paused=!0,e.isReset=!1,r(e.actions)}onAnimationFrameDamping(){for(let e of this.events)e.paused||this.updateSingleEvent(e,!0)}updateSingleEvent(e,t=!1){this.events.forEach(e=>{e.actions.Create.forEach(e=>{e.dispatchThrottled()})});let{plane:n,limitDistance:i,limitDistanceEnabled:s}=e.data;if(e.object.getWorldPosition(w),e.isReset)y.copy(e.worldPosition0);else if(e.target)e.target.getWorldPosition(y);else{let{getCamera:e,raycaster:t}=this.eventContext;if("custom"===n?(e().getWorldDirection(f),f.negate(),E.copy(f)):"xy"===n?E.set(0,0,1):"xz"===n?E.set(0,1,0):"yz"===n&&E.set(1,0,0),L.setFromNormalAndCoplanarPoint(E,w),!t.ray.intersectPlane(L,y))return}if(!e.isReset)if(y.distanceTo(e.worldPosition0)>i&&s&&e.target){if(e.snapComplete=!1,e.data.snapDelay&&(e.delayFinished=!1,typeof window<"u"&&null!==e.timeoutId&&(window.clearTimeout(e.timeoutId),e.timeoutId=null)),e.wasOutside=!0,!e.data.resetAfterDistanceLimit)return;y.copy(e.worldPosition0),e.currentDampingFactor=e.resetDampingFactor}else if(e.wasOutside&&(e.data.snapDelay&&typeof window<"u"&&(e.timeoutId=window.setTimeout(()=>{e.delayFinished=!0,e.paused=!1,this.updateSingleEvent(e)},1e3*e.data.snapDelay)),e.currentDampingFactor=e.data.dampingFactor,e.wasOutside=!1),!1===e.delayFinished)return;!1===e.data.enabledTranslation[0]&&(y.x=w.x),!1===e.data.enabledTranslation[1]&&(y.y=w.y),!1===e.data.enabledTranslation[2]&&(y.z=w.z);let a=F(w,y,e.wasOutside?0:e.data.maxDelta);if(e.currentDampingFactor>1){let n=E.subVectors(a,w).divideScalar(e.currentDampingFactor);w.add(n),t&&x(e.object,w),e.paused=n.length()<.01}else x(e.object,a),e.paused=!0;e.object?.dispatchEvent({type:"beginEvent",eventName:"Follow"}),e.object.dispatchEvent(M)}},b=new m,R=new m,j=new v,C=new p,S=new p,N=new m,O=new m,k=new m,Q=new m,T=new g,z={type:"requestRender"},W={type:"changeRotation"},V=function(){let e=new v;return function(n,i){null!==n.parent?e.multiplyMatrices(n.parent.matrixWorld,n.hiddenMatrix):e.copy(n.hiddenMatrix),i.premultiply(d(e).invert()),n.rotation.setFromRotationMatrix(i),n.updateMatrix(),n instanceof l&&t(n.parent)&&n.invalidateDownstreamBooleanData(!0)}}(),A=class{constructor(e,t,n,i){this.id=t,this.object=n,this.paused=!1,this.currentDampingFactor=1,this.isReset=!1,this.worldQuaternion0=new p,this.timeoutId=null,this.delayFinished=!0,this.wasOutside=!1,this.data={...c.defaultData,...e,...void 0===e.resetOnPointerLeave&&{resetOnPointerLeave:!1}},void 0===e.target||"cursor"===e.target||(this.target=i.find(e.target)),this.data.dampingFactor&&(this.currentDampingFactor=this.data.dampingFactor),this.object.getWorldQuaternion(this.worldQuaternion0),isNaN(this.worldQuaternion0.x)&&(this.worldQuaternion0.x=0),isNaN(this.worldQuaternion0.y)&&(this.worldQuaternion0.y=0),isNaN(this.worldQuaternion0.z)&&(this.worldQuaternion0.z=0),isNaN(this.worldQuaternion0.w)&&(this.worldQuaternion0.w=1),this.resetDampingFactor=80/this.data.resetSpeed+1}},I=class extends n{constructor(){super(...arguments),this.events=[],this.pairOfEventListeners=[],this.pairOfUserEventListeners=[],this.onMouseMove=e=>{if(!(s.length>1)){this._lastMouseEvent=e,this.eventContext.updateRaycaster(e);for(let e of this.events)void 0===e.target&&this.updateSingleEvent(e)}},this.onMouseEnter=e=>{for(let e of this.events)void 0===e.target&&(e.isReset=!1,e.currentDampingFactor=e.data.dampingFactor)},this.onMouseLeave=e=>{for(let e of this.events)void 0===e.target&&(e.data.resetOnPointerLeave&&(e.isReset=!0,e.currentDampingFactor=e.resetDampingFactor),this.updateSingleEvent(e))},this.onScroll=e=>{if(this._lastMouseEvent){let e=new PointerEvent("pointermove",{clientX:this._lastMouseEvent.clientX,clientY:this._lastMouseEvent.clientY,bubbles:!0,cancelable:!0,view:window});this.eventContext.eventElement.dispatchEvent(e)}},this.onTargetChange=e=>()=>{this.updateSingleEvent(e)},this.createUserEventListener=t=>({eventName:n,target:i})=>{if(!n||!i)return;let s=e(n);s&&"LookAt"===s&&this.updateSingleEvent(t)}}connect(){let{page:e}=this.eventContext;if(e.traverseEntity(t=>{let n=t.data?.events.find(e=>"LookAt"===e.data.type&&!e.data.disabled);n&&(!e.data.globalPhysics.usePhysics||"dynamic"!==t.dataPatched.physics?.rigidBody)&&this.events.push(new A(n.data,n.id,t,e))}),!this.events.length)return;let{domElement:t,eventElement:n}=this.eventContext;this.domEventsNeeded.clear(),a&&(this.domEventsNeeded.add("pointerdown"),t.addEventListener("pointerdown",this.onMouseMove)),this.domEventsNeeded.add("pointermove"),n.addEventListener("pointermove",this.onMouseMove),this.eventContext.useWindowEvents?n.addEventListener("scroll",this.onScroll):(t.addEventListener("pointerenter",this.onMouseEnter),t.addEventListener("pointerleave",this.onMouseLeave));for(let e of this.events){if(void 0!==e.target){let t=this.onTargetChange(e),n=e.target;this.pairOfEventListeners.push([n,t]),n.addEventListener("requestRender",t)}let t=this.createUserEventListener(e),n=e.object;this.pairOfUserEventListeners.push([n,t]),n.addEventListener("userEvent",t)}}disconnect(){if(!this.events.length)return;let{domElement:e,eventElement:t}=this.eventContext;this.domEventsNeeded.clear(),a&&e.removeEventListener("pointerdown",this.onMouseMove),t.removeEventListener("pointermove",this.onMouseMove),e.removeEventListener("pointerenter",this.onMouseEnter),e.removeEventListener("pointerleave",this.onMouseLeave),t.removeEventListener("scroll",this.onScroll);for(let[e,t]of this.pairOfEventListeners)e.removeEventListener("requestRender",t);for(let[e,t]of this.pairOfUserEventListeners)e.removeEventListener("userEvent",t);for(let e of this.events)e.paused=!0,e.isReset=!1}onAnimationFrameDamping(){for(let e of this.events)e.paused||this.updateSingleEvent(e)}updateSingleEvent(e){let{tilt:t,axis:n,distance:i,plane:s,limitDistance:a,enabledRotation:o,limitDistanceEnabled:r}=e.data,{getCamera:l,raycaster:u}=this.eventContext,{object:h,target:c}=e;if(h.getWorldPosition(N),!e.isReset)if(e.target)e.target.getWorldPosition(O);else{if("custom"===s?(l().getWorldDirection(R),R.negate(),T.setFromNormalAndCoplanarPoint(R,N)):("xy"===s?b.set(0,0,1):"xz"===s?b.set(0,1,0):"yz"===s&&b.set(1,0,0),T.setFromNormalAndCoplanarPoint(b,N)),!u.ray.intersectPlane(T,O))return;i>0&&("custom"===s||void 0===s)&&O.addScaledVector(R,i)}if(e.isReset||(c?"target"===t?k.copy(c.up).applyMatrix4(j.extractRotation(c.matrixWorld)).normalize():o.some(e=>!1===e)?("x"===n?(Q.set(0,0,1),!1===o[2]&&Q.set(0,1,0)):"y"===n?(Q.set(1,0,0),!1===o[0]&&Q.set(0,0,1)):(Q.set(0,1,0),!1===o[1]&&Q.set(1,0,0)),k.copy(Q).applyQuaternion(e.worldQuaternion0).normalize()):k.set(0,1,0):"custom"===s?k.set(0,1,0):k.copy(b)),e.isReset)S.copy(e.worldQuaternion0);else if(N.distanceTo(O)>a&&r&&c){if(e.data.snapDelay&&(e.delayFinished=!1,typeof window<"u"&&null!==e.timeoutId&&(window.clearTimeout(e.timeoutId),e.timeoutId=null)),e.wasOutside=!0,!e.data.resetAfterDistanceLimit)return;S.copy(e.worldQuaternion0),e.currentDampingFactor=e.resetDampingFactor}else{if(e.wasOutside&&(e.data.snapDelay&&typeof window<"u"&&(e.timeoutId=window.setTimeout(()=>{e.delayFinished=!0,e.paused=!1,this.updateSingleEvent(e)},1e3*e.data.snapDelay)),e.currentDampingFactor=e.data.dampingFactor,e.wasOutside=!1),!1===e.delayFinished)return;(function(e,t,n,i,s,a){let o=j.elements;Z.subVectors(t,n),0===Z.lengthSq()&&(Z.z=1),Z.normalize(),U.crossVectors(i,Z),0===U.lengthSq()&&(1===Math.abs(i.z)?Z.x+=1e-4:Z.z+=1e-4,Z.normalize(),U.crossVectors(i,Z)),U.normalize(),B.crossVectors(Z,U),"x"===s?1===a.z?[U,B,Z]=[Z,U,B]:(U.negate(),[U,Z]=[Z,U]):"y"===s?1===a.x?[U,B,Z]=[B,Z,U]:(U.negate(),[B,Z]=[Z,B]):1===a.x&&(U.negate(),[U,B]=[B,U]),o[0]=U.x,o[4]=B.x,o[8]=Z.x,o[1]=U.y,o[5]=B.y,o[9]=Z.y,o[2]=U.z,o[6]=B.z,o[10]=Z.z})(0,O,N,k,n,Q),S.setFromRotationMatrix(j),C.setFromUnitVectors(Q.applyQuaternion(S),k),o.some(e=>!1===e)&&"target"!==t&&S.premultiply(C).normalize()}e.currentDampingFactor>1?(h.updateWorldMatrix(!0,!1),C.setFromRotationMatrix(d(h.matrixWorld)),C.slerp(S,1/e.currentDampingFactor),V(h,j.makeRotationFromQuaternion(C)),e.paused=8*(1-C.dot(S))<1e-6):(V(h,j.makeRotationFromQuaternion(S)),e.paused=!0),e.object?.dispatchEvent({type:"beginEvent",eventName:"LookAt"}),h.dispatchEvent(z),h.dispatchEvent(W)}},B=new m,U=new m,Z=new m;i("Follow",({eventContext:e,eventManager:t})=>new P(e,t)),i("LookAt",({eventContext:e})=>new I(e)),u("tracking");
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t,k as i,l as e,m as s,n}from"./runtime-chunk-CZ3BXY7Z.js";import"./runtime-chunk-OFJV3D46.js";import"./runtime-chunk-NTUTXO7Q.js";import{a as r,b as a,d as o}from"./runtime-chunk-JXO7S6TH.js";import"./runtime-chunk-HD7WF3XN.js";import{a as h}from"./runtime-chunk-GGSUJEGZ.js";import"./runtime-chunk-R5TQ5SBH.js";import"./runtime-chunk-FTVQTRM7.js";import{a as c}from"./runtime-chunk-5XI6SEAR.js";import"./runtime-chunk-GOLR573W.js";import"./runtime-chunk-IK3OLWAK.js";import"./runtime-chunk-WG7QXBEZ.js";import"./runtime-chunk-VHZEYLZC.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as d,e as m}from"./runtime-chunk-5WKK4AK6.js";import"./runtime-chunk-UFMPH23Y.js";import"./runtime-chunk-RTLL6WIB.js";import{e as l}from"./runtime-chunk-2PT2WH66.js";import{a as u}from"./runtime-chunk-TPQKWZXC.js";import{a as p}from"./runtime-chunk-TZCHGFVF.js";import{p as g}from"./runtime-chunk-RNMPWHS7.js";import{Bc as A,Cc as f}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";function j(t){let i=t.tweens[0]?.data;return{delay:i?.delay??t.delay,delayDirection:i?.delayDirection??"start-once",direction:i?.direction??t.direction,repeat:i?.repeat??t.repeat}}var y={state:null,duration:0,delay:0,delayDirection:"start-once",direction:"normal",repeat:0,easing:0},T=class extends A{constructor(t,i,s,n,r,a){if(super(),this.eventType=t,this.data=i,this.page=s,this.shared=n,this.condition=r,this.runModeOverride=a,this.tweens=[],this.hasPlayedOnce=!1,this.inert=e,!i.object)throw new Error("Missing property");let o=this.page.scene.find(i.object)??this.page.uiCanvas?.find(i.object)??this.page.scene.find2DInUIObjects(i.object);if(!o)throw new Error("Missing property");if(!o.states)throw new Error("Missing property");if(this.object=o,i.tweens.length<2)throw new Error("Missing property");this.init()}get playing(){return!0===this.runner?.isPlaying}get animating(){return!0===this.runner?.isAnimating}get claimTime(){return this.runner?.claimTime}get contested(){let t=this.object.previousAction;return null!==t&&t!==this&&t.animating}init(){this.initialCurrentState=i(this.object,this.object.currentState).id,this.build()}shouldReinit(){return!!m(this.shared,this.condition)||!(this.animating&&!this.loopsForever)}get loopsForever(){return-1===j(this.data).repeat||this.data.tweens.some((t,i)=>i>0&&-1===t.data.repeat)}get runMode(){return void 0!==this.runModeOverride?this.runModeOverride:g(this.eventType)?this.data.runMode:"Repeat"}get currentState(){return"Toggle"===this.runMode?this.initialCurrentState:this.object.currentState}get opensOnCurrent(){return void 0===this.data.tweens[0].data.state&&"Toggle"!==this.runMode}build(){let i=this.data.tweens,e=[];try{let t=i[0].data.state;void 0!==t&&e.push(new n(this.object,t,t,y,this.shared,this.data.allowSlerp??!1,this.page,{},()=>this.inert));for(let t=1;t<i.length;t++){let s=i[t-1],r=i[t];e.push(new n(this.object,void 0===s.data.state?this.currentState:s.data.state,void 0===r.data.state?this.currentState:r.data.state,r.data,this.shared,this.data.allowSlerp??!1,this.page,{},()=>this.inert))}}catch(t){return void(t instanceof Error&&console.error(t.message))}this.tweens=e,this.syncInert(),this.runner=new o({...t(j(this.data)),runMode:this.runMode},e.map(t=>t.runner),{claim:t=>this.claimObject(t),assignCurrentState:()=>this.rebindTweens(),isOwner:()=>this.object.previousAction===this})}claimObject(t){if(this.object.previousAction===this)return!1;let i=this.object.previousAction;if(!0===i?.animating){if(void 0!==t&&void 0!==i.claimTime&&i.claimTime>t)return!1;i.pause()}return this.object.previousAction=this,!0}rebindTweens(){for(let t of this.tweens)try{t.rebind()}catch(t){t instanceof Error&&console.error(t.message)}this.syncInert(),this.object instanceof c&&this.object.wasMovedByUser&&(this.object.wasMovedByUser=!1)}syncInert(){let t=this.tweens.flatMap(t=>t.endpointData);if(this.opensOnCurrent&&t.length>0){let e=i(this.object,this.object.currentState);e&&(t[0]=e.data)}this.inert=s(t);for(let t of this.tweens)t.refresh()}update(t){this.runner?.update(t),!0!==this.runner?.isPlaying&&h.remove(this)}play(){if(!1===m(this.shared,this.condition)||"Once"===this.runMode&&this.hasPlayedOnce)return!1;this.hasPlayedOnce=!0,this.start()}start(){!this.runner||(this.runner.play(h.time),this.runner.isPlaying&&h.add(this))}pause(){this.runner?.stop(),h.remove(this)}stop(){this.pause();let t=void 0===this.data.tweens[0].data.state?this.initialCurrentState:this.data.tweens[0].data.state;l(this.object)?this.object.changeSelectedState(t,{shared:this.shared}):this.object.changeSelectedState(t,{scene:this.page.scene,shared:this.shared}),this.object.currentState=t}seek(t){if(!1===m(this.shared,this.condition))return!1;this.runner?.seek(t)}playDirected(t){if(!1===m(this.shared,this.condition))return!1;!this.runner||(this.runner.playDirected(h.time,t),this.runner.isPlaying&&h.add(this))}playFromCurrent(){this.playDirected(!0)}reverseFromCurrent(){this.playDirected(!1)}dispose(){this.pause()}},w=new Map,b=new WeakSet;function C(t,i){if(void 0===i)return;let e=t.scene.find(i);return e&&Array.isArray(e.identity)?e.identity[0]:i}var F=class extends A{constructor(t,i,e,s,n){super(),this.page=i,this.animationControls=e,this.shared=s,this.condition=n,this.startOnceDelay=0,this.toggleIsForward=!1;let a=C(i,t.object)??t.object;this.data={...t,object:a};let o=this.animationControls.clipIdToAction[t.clipId+"/"+a];if(this.duration=o?.getClip()?.duration??1,this.data.crop2){let t=r(o?.getClip());this.leftFrameTime=this.data.crop2[0]/(t-1)*this.duration,this.rightFrameTime=this.data.crop2[1]/(t-1)*this.duration}else{let t=o?.getClip()?.tracks[0]?.times.length;t&&t>1?(this.leftFrameTime=this.data.crop[0]/t*this.duration,this.rightFrameTime=this.data.crop[1]/t*this.duration):(this.leftFrameTime=0,this.rightFrameTime=this.duration)}this.startOnceDelay=t.delay;let h=w.get(a);h||(h=new Set,w.set(a,h)),h.add(this)}get playing(){return this.threeAnimAction?.isRunning()??!1}cancelPending(){window.clearTimeout(this.timeoutId),delete this.timeoutId}resume(){let t=this.animationControls.clipIdToAction[this.data.clipId+"/"+this.data.object];return!(!t||!b.has(t)||(b.delete(t),this.threeAnimAction=t,t.paused=!1,t.play(),this.animationControls.requestRender(),0))}play(t=!1){if(!1===m(this.shared,this.condition))return!1;window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{if(this.resume()||(this.threeAnimAction=this.animationControls.play(this.data),!this.threeAnimAction))return;b.delete(this.threeAnimAction),this.threeAnimAction.reset(),this.threeAnimAction.time=this.leftFrameTime,this.threeAnimAction._clip.start=this.leftFrameTime,this.threeAnimAction._clip.duration=this.rightFrameTime;let i=this.data.object;Object.entries(this.animationControls.clipIdToAction).forEach(([e,s])=>{let n=e.split("/")[1];this.threeAnimAction!==s&&n===i&&(t?s.fadeOut(.2):s.stop())}),t&&this.threeAnimAction?.fadeIn(.2)},this.startOnceDelay)}pause(){this.threeAnimAction&&(this.threeAnimAction.paused=!0),this.cancelPending()}stop(){this.threeAnimAction?.fadeOut(.2)}seek(t){this.threeAnimAction=this.animationControls.play(this.data),this.threeAnimAction&&(this.threeAnimAction.paused=!0,this.threeAnimAction.time=f.clamp(this.threeAnimAction.time+1/60*t,this.leftFrameTime,this.rightFrameTime-16e-5),this.animationControls.needsUpdate=!0,this.animationControls.requestRender())}toggle(t,i=!1){if(!1===m(this.shared,this.condition))return!1;this.toggleIsForward=t??!this.toggleIsForward,this.threeAnimAction&&(this.threeAnimAction._loopCount=0),this.playing||this.resume()?this.threeAnimAction&&(this.threeAnimAction.timeScale=this.toggleIsForward?1:-1,this.toggleIsForward?(this.threeAnimAction._clip.start=this.leftFrameTime,this.threeAnimAction._clip.duration=this.rightFrameTime):(this.threeAnimAction._clip.start=this.rightFrameTime,this.threeAnimAction._clip.duration=this.leftFrameTime)):this.timeoutId=window.setTimeout(()=>{if(this.threeAnimAction=this.animationControls.play(this.data),this.threeAnimAction){this.toggleIsForward?(this.threeAnimAction.time=this.leftFrameTime,this.threeAnimAction._clip.start=this.leftFrameTime,this.threeAnimAction._clip.duration=this.rightFrameTime):(this.threeAnimAction.time=this.rightFrameTime,this.threeAnimAction._clip.start=this.rightFrameTime,this.threeAnimAction._clip.duration=this.leftFrameTime),this.threeAnimAction.paused=!1,this.threeAnimAction.timeScale=this.toggleIsForward?1:-1;let t=this.data.clipId.split("/")[1];Object.entries(this.animationControls.clipIdToAction).forEach(([e,s])=>{let n=e.split("/")[1];this.threeAnimAction!==s&&n===t&&s.isRunning()&&(i?s.fadeOut(.2):s.stop())}),i&&this.threeAnimAction?.fadeIn(.2)}},this.startOnceDelay)}playFromCurrent(){this.toggle(!0)}reverseFromCurrent(){this.toggle(!1)}dispose(){let t=this.animationControls.clipIdToAction[this.data.clipId+"/"+this.data.object]?.getClip();t&&(t.duration=this.duration),this.pause();let i=w.get(this.data.object);i&&(i.delete(this),0===i.size&&w.delete(this.data.object))}},I=class{constructor(t,i,e){this.data=t,this.page=i,this.animationControls=e,this.objectId=C(i,t.object)}dispatch(){this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{this.apply(),this.disposeDelay()},this.data.delay)):this.apply()}targetsClip(t,i){return!(void 0!==this.objectId&&i!==this.objectId||this.data.clipId&&t!==this.data.clipId)}apply(){(void 0!==this.objectId?[w.get(this.objectId)]:[...w.values()]).forEach(t=>{t?.forEach(t=>{this.targetsClip(t.data.clipId,t.data.object)&&t.cancelPending()})});let t=!1;Object.entries(this.animationControls.clipIdToAction).forEach(([i,e])=>{let[s,n]=i.split("/");if(this.targetsClip(s,n))if("pause"===this.data.interaction){if(!e.isRunning())return;e.paused=!0,b.add(e)}else{if(!e.enabled||!e.isRunning()&&!e.paused)return;e.paused=!0,b.delete(e),e.time=e._clip.start??0,e._loopCount=-1,t=!0}}),t&&(this.animationControls.needsUpdate=!0,this.animationControls.requestRender())}disposeDelay(){clearTimeout(this.timeoutId),delete this.timeoutId}dispose(){this.disposeDelay()}},v=class{constructor(t,i,e,s,n){u.isPause(t)?this.interaction=new I(t,i,e):this.interaction=new F(t,i,e,s,n)}get data(){return this.interaction.data}get playing(){return this.interaction instanceof F&&this.interaction.playing}play(t=!1){if(this.interaction instanceof F)return this.interaction.play(t);this.interaction.dispatch()}pause(){this.interaction instanceof F&&this.interaction.pause()}stop(){this.interaction instanceof F&&this.interaction.stop()}seek(t){this.interaction instanceof F&&this.interaction.seek(t)}toggle(t,i=!1){if(this.interaction instanceof F)return this.interaction.toggle(t,i);this.interaction.dispatch()}playFromCurrent(){this.interaction instanceof F?this.interaction.playFromCurrent():this.interaction.dispatch()}reverseFromCurrent(){this.interaction instanceof F&&this.interaction.reverseFromCurrent()}dispose(){this.interaction.dispose()}};a(n),d("Transition",({eventType:t,data:i,page:e,shared:s,actionCondition:n,runModeOverride:r})=>new T(t,i,e,s,n,r)),d("Animation",({data:t,page:i,eventManager:e,shared:s,actionCondition:n})=>new v(t,i,e.animationControls,s,n)),p("transitions");
|
|
1
|
+
import{i as t,k as i,l as e,m as s,n}from"./runtime-chunk-OUX2QSUD.js";import"./runtime-chunk-5MLJYDJF.js";import"./runtime-chunk-NTUTXO7Q.js";import{a as r,b as a,d as o}from"./runtime-chunk-JXO7S6TH.js";import"./runtime-chunk-HD7WF3XN.js";import{a as h}from"./runtime-chunk-GGSUJEGZ.js";import"./runtime-chunk-7TIIVZ4T.js";import"./runtime-chunk-FTVQTRM7.js";import{a as c}from"./runtime-chunk-KNO4ECOH.js";import"./runtime-chunk-H2DLCIWQ.js";import"./runtime-chunk-XZUEQTES.js";import"./runtime-chunk-GZKGESGF.js";import"./runtime-chunk-OERXYDZQ.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as d,e as m}from"./runtime-chunk-5WKK4AK6.js";import"./runtime-chunk-26PJ2PZE.js";import"./runtime-chunk-RTLL6WIB.js";import{e as l}from"./runtime-chunk-2PT2WH66.js";import{a as u}from"./runtime-chunk-TPQKWZXC.js";import{a as p}from"./runtime-chunk-TZCHGFVF.js";import{p as g}from"./runtime-chunk-RNMPWHS7.js";import{Bc as A,Cc as f}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";function j(t){let i=t.tweens[0]?.data;return{delay:i?.delay??t.delay,delayDirection:i?.delayDirection??"start-once",direction:i?.direction??t.direction,repeat:i?.repeat??t.repeat}}var y={state:null,duration:0,delay:0,delayDirection:"start-once",direction:"normal",repeat:0,easing:0},T=class extends A{constructor(t,i,s,n,r,a){if(super(),this.eventType=t,this.data=i,this.page=s,this.shared=n,this.condition=r,this.runModeOverride=a,this.tweens=[],this.hasPlayedOnce=!1,this.inert=e,!i.object)throw new Error("Missing property");let o=this.page.scene.find(i.object)??this.page.uiCanvas?.find(i.object)??this.page.scene.find2DInUIObjects(i.object);if(!o)throw new Error("Missing property");if(!o.states)throw new Error("Missing property");if(this.object=o,i.tweens.length<2)throw new Error("Missing property");this.init()}get playing(){return!0===this.runner?.isPlaying}get animating(){return!0===this.runner?.isAnimating}get claimTime(){return this.runner?.claimTime}get contested(){let t=this.object.previousAction;return null!==t&&t!==this&&t.animating}init(){this.initialCurrentState=i(this.object,this.object.currentState).id,this.build()}shouldReinit(){return!!m(this.shared,this.condition)||!(this.animating&&!this.loopsForever)}get loopsForever(){return-1===j(this.data).repeat||this.data.tweens.some((t,i)=>i>0&&-1===t.data.repeat)}get runMode(){return void 0!==this.runModeOverride?this.runModeOverride:g(this.eventType)?this.data.runMode:"Repeat"}get currentState(){return"Toggle"===this.runMode?this.initialCurrentState:this.object.currentState}get opensOnCurrent(){return void 0===this.data.tweens[0].data.state&&"Toggle"!==this.runMode}build(){let i=this.data.tweens,e=[];try{let t=i[0].data.state;void 0!==t&&e.push(new n(this.object,t,t,y,this.shared,this.data.allowSlerp??!1,this.page,{},()=>this.inert));for(let t=1;t<i.length;t++){let s=i[t-1],r=i[t];e.push(new n(this.object,void 0===s.data.state?this.currentState:s.data.state,void 0===r.data.state?this.currentState:r.data.state,r.data,this.shared,this.data.allowSlerp??!1,this.page,{},()=>this.inert))}}catch(t){return void(t instanceof Error&&console.error(t.message))}this.tweens=e,this.syncInert(),this.runner=new o({...t(j(this.data)),runMode:this.runMode},e.map(t=>t.runner),{claim:t=>this.claimObject(t),assignCurrentState:()=>this.rebindTweens(),isOwner:()=>this.object.previousAction===this})}claimObject(t){if(this.object.previousAction===this)return!1;let i=this.object.previousAction;if(!0===i?.animating){if(void 0!==t&&void 0!==i.claimTime&&i.claimTime>t)return!1;i.pause()}return this.object.previousAction=this,!0}rebindTweens(){for(let t of this.tweens)try{t.rebind()}catch(t){t instanceof Error&&console.error(t.message)}this.syncInert(),this.object instanceof c&&this.object.wasMovedByUser&&(this.object.wasMovedByUser=!1)}syncInert(){let t=this.tweens.flatMap(t=>t.endpointData);if(this.opensOnCurrent&&t.length>0){let e=i(this.object,this.object.currentState);e&&(t[0]=e.data)}this.inert=s(t);for(let t of this.tweens)t.refresh()}update(t){this.runner?.update(t),!0!==this.runner?.isPlaying&&h.remove(this)}play(){if(!1===m(this.shared,this.condition)||"Once"===this.runMode&&this.hasPlayedOnce)return!1;this.hasPlayedOnce=!0,this.start()}start(){!this.runner||(this.runner.play(h.time),this.runner.isPlaying&&h.add(this))}pause(){this.runner?.stop(),h.remove(this)}stop(){this.pause();let t=void 0===this.data.tweens[0].data.state?this.initialCurrentState:this.data.tweens[0].data.state;l(this.object)?this.object.changeSelectedState(t,{shared:this.shared}):this.object.changeSelectedState(t,{scene:this.page.scene,shared:this.shared}),this.object.currentState=t}seek(t){if(!1===m(this.shared,this.condition))return!1;this.runner?.seek(t)}playDirected(t){if(!1===m(this.shared,this.condition))return!1;!this.runner||(this.runner.playDirected(h.time,t),this.runner.isPlaying&&h.add(this))}playFromCurrent(){this.playDirected(!0)}reverseFromCurrent(){this.playDirected(!1)}dispose(){this.pause()}},w=new Map,b=new WeakSet;function C(t,i){if(void 0===i)return;let e=t.scene.find(i);return e&&Array.isArray(e.identity)?e.identity[0]:i}var F=class extends A{constructor(t,i,e,s,n){super(),this.page=i,this.animationControls=e,this.shared=s,this.condition=n,this.startOnceDelay=0,this.toggleIsForward=!1;let a=C(i,t.object)??t.object;this.data={...t,object:a};let o=this.animationControls.clipIdToAction[t.clipId+"/"+a];if(this.duration=o?.getClip()?.duration??1,this.data.crop2){let t=r(o?.getClip());this.leftFrameTime=this.data.crop2[0]/(t-1)*this.duration,this.rightFrameTime=this.data.crop2[1]/(t-1)*this.duration}else{let t=o?.getClip()?.tracks[0]?.times.length;t&&t>1?(this.leftFrameTime=this.data.crop[0]/t*this.duration,this.rightFrameTime=this.data.crop[1]/t*this.duration):(this.leftFrameTime=0,this.rightFrameTime=this.duration)}this.startOnceDelay=t.delay;let h=w.get(a);h||(h=new Set,w.set(a,h)),h.add(this)}get playing(){return this.threeAnimAction?.isRunning()??!1}cancelPending(){window.clearTimeout(this.timeoutId),delete this.timeoutId}resume(){let t=this.animationControls.clipIdToAction[this.data.clipId+"/"+this.data.object];return!(!t||!b.has(t)||(b.delete(t),this.threeAnimAction=t,t.paused=!1,t.play(),this.animationControls.requestRender(),0))}play(t=!1){if(!1===m(this.shared,this.condition))return!1;window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{if(this.resume()||(this.threeAnimAction=this.animationControls.play(this.data),!this.threeAnimAction))return;b.delete(this.threeAnimAction),this.threeAnimAction.reset(),this.threeAnimAction.time=this.leftFrameTime,this.threeAnimAction._clip.start=this.leftFrameTime,this.threeAnimAction._clip.duration=this.rightFrameTime;let i=this.data.object;Object.entries(this.animationControls.clipIdToAction).forEach(([e,s])=>{let n=e.split("/")[1];this.threeAnimAction!==s&&n===i&&(t?s.fadeOut(.2):s.stop())}),t&&this.threeAnimAction?.fadeIn(.2)},this.startOnceDelay)}pause(){this.threeAnimAction&&(this.threeAnimAction.paused=!0),this.cancelPending()}stop(){this.threeAnimAction?.fadeOut(.2)}seek(t){this.threeAnimAction=this.animationControls.play(this.data),this.threeAnimAction&&(this.threeAnimAction.paused=!0,this.threeAnimAction.time=f.clamp(this.threeAnimAction.time+1/60*t,this.leftFrameTime,this.rightFrameTime-16e-5),this.animationControls.needsUpdate=!0,this.animationControls.requestRender())}toggle(t,i=!1){if(!1===m(this.shared,this.condition))return!1;this.toggleIsForward=t??!this.toggleIsForward,this.threeAnimAction&&(this.threeAnimAction._loopCount=0),this.playing||this.resume()?this.threeAnimAction&&(this.threeAnimAction.timeScale=this.toggleIsForward?1:-1,this.toggleIsForward?(this.threeAnimAction._clip.start=this.leftFrameTime,this.threeAnimAction._clip.duration=this.rightFrameTime):(this.threeAnimAction._clip.start=this.rightFrameTime,this.threeAnimAction._clip.duration=this.leftFrameTime)):this.timeoutId=window.setTimeout(()=>{if(this.threeAnimAction=this.animationControls.play(this.data),this.threeAnimAction){this.toggleIsForward?(this.threeAnimAction.time=this.leftFrameTime,this.threeAnimAction._clip.start=this.leftFrameTime,this.threeAnimAction._clip.duration=this.rightFrameTime):(this.threeAnimAction.time=this.rightFrameTime,this.threeAnimAction._clip.start=this.rightFrameTime,this.threeAnimAction._clip.duration=this.leftFrameTime),this.threeAnimAction.paused=!1,this.threeAnimAction.timeScale=this.toggleIsForward?1:-1;let t=this.data.clipId.split("/")[1];Object.entries(this.animationControls.clipIdToAction).forEach(([e,s])=>{let n=e.split("/")[1];this.threeAnimAction!==s&&n===t&&s.isRunning()&&(i?s.fadeOut(.2):s.stop())}),i&&this.threeAnimAction?.fadeIn(.2)}},this.startOnceDelay)}playFromCurrent(){this.toggle(!0)}reverseFromCurrent(){this.toggle(!1)}dispose(){let t=this.animationControls.clipIdToAction[this.data.clipId+"/"+this.data.object]?.getClip();t&&(t.duration=this.duration),this.pause();let i=w.get(this.data.object);i&&(i.delete(this),0===i.size&&w.delete(this.data.object))}},I=class{constructor(t,i,e){this.data=t,this.page=i,this.animationControls=e,this.objectId=C(i,t.object)}dispatch(){this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{this.apply(),this.disposeDelay()},this.data.delay)):this.apply()}targetsClip(t,i){return!(void 0!==this.objectId&&i!==this.objectId||this.data.clipId&&t!==this.data.clipId)}apply(){(void 0!==this.objectId?[w.get(this.objectId)]:[...w.values()]).forEach(t=>{t?.forEach(t=>{this.targetsClip(t.data.clipId,t.data.object)&&t.cancelPending()})});let t=!1;Object.entries(this.animationControls.clipIdToAction).forEach(([i,e])=>{let[s,n]=i.split("/");if(this.targetsClip(s,n))if("pause"===this.data.interaction){if(!e.isRunning())return;e.paused=!0,b.add(e)}else{if(!e.enabled||!e.isRunning()&&!e.paused)return;e.paused=!0,b.delete(e),e.time=e._clip.start??0,e._loopCount=-1,t=!0}}),t&&(this.animationControls.needsUpdate=!0,this.animationControls.requestRender())}disposeDelay(){clearTimeout(this.timeoutId),delete this.timeoutId}dispose(){this.disposeDelay()}},v=class{constructor(t,i,e,s,n){u.isPause(t)?this.interaction=new I(t,i,e):this.interaction=new F(t,i,e,s,n)}get data(){return this.interaction.data}get playing(){return this.interaction instanceof F&&this.interaction.playing}play(t=!1){if(this.interaction instanceof F)return this.interaction.play(t);this.interaction.dispatch()}pause(){this.interaction instanceof F&&this.interaction.pause()}stop(){this.interaction instanceof F&&this.interaction.stop()}seek(t){this.interaction instanceof F&&this.interaction.seek(t)}toggle(t,i=!1){if(this.interaction instanceof F)return this.interaction.toggle(t,i);this.interaction.dispatch()}playFromCurrent(){this.interaction instanceof F?this.interaction.playFromCurrent():this.interaction.dispatch()}reverseFromCurrent(){this.interaction instanceof F&&this.interaction.reverseFromCurrent()}dispose(){this.interaction.dispose()}};a(n),d("Transition",({eventType:t,data:i,page:e,shared:s,actionCondition:n,runModeOverride:r})=>new T(t,i,e,s,n,r)),d("Animation",({data:t,page:i,eventManager:e,shared:s,actionCondition:n})=>new v(t,i,e.animationControls,s,n)),p("transitions");
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./runtime-chunk-CVUJ3GMH.js";import{a as t,b as i,c as r,d as a,f as s,g as n,h,i as d,j as o,k as m,l as c,m as u,n as l}from"./runtime-chunk-OFJV3D46.js";import"./runtime-chunk-NTUTXO7Q.js";import"./runtime-chunk-FTVQTRM7.js";import{N as p,ja as f}from"./runtime-chunk-VHZEYLZC.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as v}from"./runtime-chunk-UFMPH23Y.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import{f as g,g as y}from"./runtime-chunk-TPQKWZXC.js";import{a as w,f as O,j as P}from"./runtime-chunk-TZCHGFVF.js";import{E as j}from"./runtime-chunk-RNMPWHS7.js";import{Ae as b,Ba as R,Bd as x,Cc as S,Lc as F,Le as T,bd as H,ce as W,dd as D,ld as I}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";function M(e,t,i,r){return r?i:2048/Math.max(1,e,t)}var B=new b(-1,1,1,-1,0,1),E=new class extends D{constructor(){super(),this.setAttribute("position",new H([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new H([0,2,0,0,2,0],2))}},U=new W({defines:{},uniforms:{tDiffuse:new T(null)},vertexShader:"\n\tvarying vec2 vUv;\n\tvoid main() {\n\t\tvUv = uv;\n\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t}",fragmentShader:"\n\tuniform sampler2D tDiffuse;\n\tvarying vec2 vUv;\n\tvoid main() {\n\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\tgl_FragColor = texel;\n\t}"}),z=new class{constructor(e){this._mesh=new I(E,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,B)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}(U),k=null,G=null,C=t.identity(),_=class{constructor(t,i,r,s){var n;this.uuid=t,this.width=i,this.height=r,this.context=s,this.enabled=!0,this.isScreenSpace=!1,this.dpr=window.devicePixelRatio,this.isFrameDirty=!1,this.onRenderRequestedDownstream=()=>{this.isFrameDirty=!0,this.isScreenSpace||e(this),this.context.shared.requestRender()},this._innerApplySize=()=>{let e=this.width,t=this.height;this.renderer.dpr=M(e,t,this.dpr,this.isScreenSpace),this.renderer.setSize(e,t)},this.onFrameOverrideObjectEvent=e=>{if(void 0!==e.target?.uuid){let t=this.frameRoot?.find(e.target.uuid);t&&t.dispatchEvent({...e,target:t})}},this.scene2d=new u(S.generateUUID(),y.defaultData,{dpr:window.devicePixelRatio,shared:s.shared}),this.canvas=(null===k&&(k=document.createElement("canvas")),k),this.renderer=(n=this.canvas,null===G&&(G=new a(n)),G),this.promise=this.init(),this.renderTarget=new F(1,1,{type:R,stencilBuffer:!1,depthBuffer:!1}),s.shared.addUIBuffer(this.uuid,this.renderTarget),this.textureHolder=s.shared.uiBuffer(this.uuid)}get canvasTexture(){return this._canvasTexture||(this._canvasTexture=new x(this.canvas)),this._canvasTexture}async init(){await this.renderer.init(),this.renderer.uiFontReady?.then(()=>{this.frameOverride&&this.onRenderRequestedDownstream()})}render(e){if(this.isFrameDirty){if(this.isFrameDirty=!1,this._innerApplySize(),this.renderer.clear(),this.frameOverride?.draw(this.renderer),this.renderer.render(),this.canvasTexture.needsUpdate=!0,e.blitTextureToTarget)e.blitTextureToTarget(this.canvasTexture,this.renderTarget);else{U.uniforms.tDiffuse.value=this.canvasTexture;let t=e.getRenderTarget();e.setRenderTarget(this.renderTarget),e.clear(),z.render(e),e.setRenderTarget(t)}this.textureHolder?.setNeedsUpdate(!0)}}updateEntity2DByOp(e,t,i,r){this.scene2d.updateEntityByOp(e,t,i,r),this.applySize()}updateTreeByOp(e,t){this.scene2d.updateTreeByOp(e,t),this.applySize()}applyOverrides(e){if(this.frameOverride&&this.frameRoot){this.frameOverride.position=[0,0],this.frameOverride.rotation=0;let t=e?.width??this.width,i=e?.height??this.height;this.frameOverride.width=t,this.frameOverride.height=i,this.frameOverride.localMatrix=C,this.isScreenSpace&&(this.frameOverride.fill.color=j.from0to1([0,0,0,0])),this.frameOverride.data={...this.frameOverride.data,width:t,height:i},L({objectOverride:this.frameOverride,objectRoot:this.frameRoot,newParentWidth:this.frameOverride.width,newParentHeight:this.frameOverride.height,initialParentWidth:this.frameRoot.width,initialParentHeight:this.frameRoot.height}),this.frameOverride.updateWorldMatrix(!0,!1,!0)}}applySize(e,t=window.devicePixelRatio){let i=Math.max(1,e?.width??this.width),r=Math.max(1,e?.height??this.height);this.dpr=t,this.width=i,this.height=r,this._innerApplySize();let a=function(e,t,i,r){let a=M(e,t,i,r),s=Math.max(i,512/Math.min(e,t)),n=Math.min(s,a);return{width:Math.max(1,Math.ceil(e*n)),height:Math.max(1,Math.ceil(t*n))}}(i,r,t,this.isScreenSpace);this.renderTarget.setSize(a.width,a.height),this._canvasTexture?.dispose(),this._canvasTexture=void 0,this.applyOverrides(e),this.frameOverride?.requestRender()}applyFrame(e){let t=this.context.scene.find2D(e);if(t&&t instanceof o)return this.disposeFrameOverride(),this.frameRoot=t,this.frameOverride=t.clone({dpr:this.renderer.dpr,shared:this.context.shared}),this.scene2d.add(this.frameOverride),this.applySize(),this.frame?.addEventListener("render",this.onRenderRequestedDownstream),this.frameOverride.traverse(e=>{e.addEventListener("beginState",this.onFrameOverrideObjectEvent),e.addEventListener("completeState",this.onFrameOverrideObjectEvent)}),this.frame?.requestRender(),t}get frame(){return this.frameOverride}get frameId(){return this.frame?.uuid}find(e){return this.scene2d.find(e)}get texture(){return this.textureHolder?.getTexture(1001)}disposeFrameOverride(){this.frameOverride?.removeEventListener("render",this.onRenderRequestedDownstream),this.frameOverride?.traverse(e=>{e.removeEventListener("beginState",this.onFrameOverrideObjectEvent),e.removeEventListener("completeState",this.onFrameOverrideObjectEvent)}),this.frameOverride&&this.scene2d.remove(this.frameOverride)}};function L({objectOverride:e,objectRoot:t,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s}){if(e instanceof o&&t instanceof o||e instanceof d&&t instanceof d)for(let n=0,h=e.children.length;n<h;n++){let h=e.children[n],d=t.children[n];h&&d&&h.uuid===d.uuid&&V({objectOverride:h,objectRoot:d,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s})}}function V({objectOverride:e,objectRoot:t,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s}){let[n,h]=function(e){if(A(e))return[e.width,e.height];if(e instanceof m){let[t,i]=e.getHalfSize();return[2*t,2*i]}if(e instanceof d){let[t,i]=e.recursiveBBox.getHalfSize();return[2*t,2*i]}return[0,0]}(t),{width:o,height:u,position:p}=l({constraints:e.data,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s,objectInitialWidth:n,objectInitialHeight:h,objectInitialPosition:t.position});if(e.position=p,e.data={...e.data,position:p},e.states)for(let n in e.states)q({stateId:n,objectOverride:e,objectRoot:t,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s});if(A(e)||e instanceof d)A(e)&&(e.width=o,e.height=u,e.data={...e.data,width:o,height:u}),L({objectOverride:e,objectRoot:t,newParentWidth:o,newParentHeight:u,initialParentWidth:n,initialParentHeight:h});else if(e instanceof m){let i=t,r=0!==n?o/n:1,a=0!==h?u/h:1;e.path=c(i.path,r,a),e.data={...e.data,path:e.path}}}function q({stateId:e,objectOverride:t,objectRoot:i,newParentWidth:r,newParentHeight:a,initialParentWidth:s,initialParentHeight:n}){let h=t.states?.[e],d=i.states?.[e];if(h&&d){let{width:i,height:o,position:m}=l({constraints:t.data,newParentWidth:r,newParentHeight:a,initialParentWidth:s,initialParentHeight:n,objectInitialWidth:g.isResizeable(d)?d.width:0,objectInitialHeight:g.isResizeable(d)?d.height:0,objectInitialPosition:d.position});Object.assign(t.states[e],{position:m}),g.isResizeable(h)&&Object.assign(t.states[e],{width:i,height:o})}}function A(e){return e instanceof n||e instanceof o||e instanceof s||e instanceof h}var N=class extends f{constructor(e,t,i){super(e,t,i),this.isUIObject=!0,this.uiCanvas=new _(e+"-canvas",t.geometry.width,t.geometry.height,i),this.uiCanvas.promise.then(()=>{this.applyFrame(this.dataPatched.geometry.frame,i.shared)})}updateByPatchedOpGeometry(e,t,i){super.updateByPatchedOpGeometry(e,t,i),0===e.type&&(void 0!==e.props.frame&&this.applyFrame(e.props.frame,i.shared),(void 0!==e.props.width||void 0!==e.props.height)&&this.applySize(e.props,i.shared))}applySize(e,t){let i=e?.width??this.dataPatched.geometry.width,r=e?.height??this.dataPatched.geometry.height;this.uiCanvas.applySize({width:i,height:r}),this.applyGeometryParametersFromFrame(t)}applyFrame(e,t){this.uiCanvas.applyFrame(e),this.applyGeometryParametersFromFrame(t),this.applyMaterialParametersFromFrame({shared:t})}applyGeometryParametersFromFrame(e){let t=this.frame;t&&(Object.assign(this.data,{geometry:Object.assign(this.data.geometry,{cornerRadius:t.cornerRadius,cornerType:0})}),Object.assign(this.dataPatched,{geometry:Object.assign(this.dataPatched.geometry,{cornerRadius:t.cornerRadius,cornerType:0})}),this.localGeometry?.dispose(),this.localGeometry=p(this.dataPatched.geometry,e,this.data.flatShading,this))}applyMaterialParametersFromFrame(e){let t=this.frame;if(t){let i=t.data.backgroundBlur;Object.assign(this.data.material.layers[0].data.texture,{image:this.uiCanvas.uuid}),Object.assign(this.data.material.layers[1].data,{roughness:i.radius,alpha:i.enabled?1:0}),Object.assign(this.dataPatched.material.layers[0].data.texture,{image:this.uiCanvas.uuid}),Object.assign(this.dataPatched.material.layers[1].data,{roughness:i.radius,alpha:i.enabled?1:0}),this.material.reset?.(this.dataPatched.material,e,!0)}}updateEntity2DByOp(e,t,i,r){this.uiCanvas.updateEntity2DByOp(e,t,i,r),e===this.frameId&&0===t.type&&(void 0!==t.props.cornerRadius?this.applyGeometryParametersFromFrame(r):v(t.path,["backgroundBlur"])&&this.applyMaterialParametersFromFrame({shared:r}))}get frame(){return this.uiCanvas.frame}get frameId(){return this.frame?.uuid}removeInteractionGeometry(e){super.removeInteractionGeometry(e),this.applySize({},e)}updateGeometryInteractions(e,t){super.updateGeometryInteractions(e,t),this.applySize({width:e.width,height:e.height},t);let i={...this.data.geometry,...e};this.localGeometry?.dispose(),this.localGeometry=p(i,t,this.data.flatShading,this)}};O("UIGeometry",(e,t,i)=>new N(e,t,i)),P({Scene2D:u,UICanvas:_,loadHanaUIRUNTIME:r,setHanaUIWasmUrl:i}),w("ui-2d");
|
|
1
|
+
import{a as e}from"./runtime-chunk-CVUJ3GMH.js";import{a as t,b as i,c as r,d as a,f as s,g as n,h,i as d,j as o,k as m,l as c,m as u,n as l}from"./runtime-chunk-5MLJYDJF.js";import"./runtime-chunk-NTUTXO7Q.js";import"./runtime-chunk-FTVQTRM7.js";import{N as p,ja as f}from"./runtime-chunk-OERXYDZQ.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as v}from"./runtime-chunk-26PJ2PZE.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import{f as g,g as y}from"./runtime-chunk-TPQKWZXC.js";import{a as w,f as O,j as P}from"./runtime-chunk-TZCHGFVF.js";import{E as j}from"./runtime-chunk-RNMPWHS7.js";import{Ae as b,Ba as R,Bd as x,Cc as S,Lc as T,Le as F,bd as H,ce as D,dd as W,ld as I}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";function M(e,t,i,r){return r?i:2048/Math.max(1,e,t)}var E=new b(-1,1,1,-1,0,1),B=new class extends W{constructor(){super(),this.setAttribute("position",new H([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new H([0,2,0,0,2,0],2))}},U=new D({defines:{},uniforms:{tDiffuse:new F(null)},vertexShader:"\n\tvarying vec2 vUv;\n\tvoid main() {\n\t\tvUv = uv;\n\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t}",fragmentShader:"\n\tuniform sampler2D tDiffuse;\n\tvarying vec2 vUv;\n\tvoid main() {\n\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\tgl_FragColor = texel;\n\t}"}),z=new class{constructor(e){this._mesh=new I(B,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,E)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}(U),k=null,G=null,_=t.identity(),C=class{constructor(t,i,r,s){var n;this.uuid=t,this.width=i,this.height=r,this.context=s,this.enabled=!0,this.isScreenSpace=!1,this.dpr=window.devicePixelRatio,this.isFrameDirty=!1,this.onRenderRequestedDownstream=()=>{this.isFrameDirty=!0,this.isScreenSpace||e(this),this.context.shared.requestRender()},this._innerApplySize=()=>{let e=this.width,t=this.height;this.renderer.dpr=M(e,t,this.dpr,this.isScreenSpace),this.renderer.setSize(e,t)},this.onFrameOverrideObjectEvent=e=>{if(void 0!==e.target?.uuid){let t=this.frameRoot?.find(e.target.uuid);t&&t.dispatchEvent({...e,target:t})}},this.scene2d=new u(S.generateUUID(),y.defaultData,{dpr:window.devicePixelRatio,shared:s.shared}),this.canvas=(null===k&&(k=document.createElement("canvas")),k),this.renderer=(n=this.canvas,null===G&&(G=new a(n)),G),this.promise=this.init(),this.renderTarget=new T(1,1,{type:R,stencilBuffer:!1,depthBuffer:!1}),s.shared.addUIBuffer(this.uuid,this.renderTarget),this.textureHolder=s.shared.uiBuffer(this.uuid)}get canvasTexture(){return this._canvasTexture||(this._canvasTexture=new x(this.canvas)),this._canvasTexture}async init(){await this.renderer.init(),this.renderer.uiFontReady?.then(()=>{this.frameOverride&&this.onRenderRequestedDownstream()})}render(e){if(this.isFrameDirty){if(this.isFrameDirty=!1,this._innerApplySize(),this.renderer.clear(),this.frameOverride?.draw(this.renderer),this.renderer.render(),this.canvasTexture.needsUpdate=!0,e.blitTextureToTarget)e.blitTextureToTarget(this.canvasTexture,this.renderTarget);else{U.uniforms.tDiffuse.value=this.canvasTexture;let t=e.getRenderTarget();e.setRenderTarget(this.renderTarget),e.clear(),z.render(e),e.setRenderTarget(t)}this.textureHolder?.setNeedsUpdate(!0)}}updateEntity2DByOp(e,t,i,r){this.scene2d.updateEntityByOp(e,t,i,r),this.applySize()}updateTreeByOp(e,t){this.scene2d.updateTreeByOp(e,t),this.applySize()}applyOverrides(e){if(this.frameOverride&&this.frameRoot){this.frameOverride.position=[0,0],this.frameOverride.rotation=0;let t=e?.width??this.width,i=e?.height??this.height;this.frameOverride.width=t,this.frameOverride.height=i,this.frameOverride.localMatrix=_,this.isScreenSpace&&(this.frameOverride.fill.color=j.from0to1([0,0,0,0])),this.frameOverride.data={...this.frameOverride.data,width:t,height:i},L({objectOverride:this.frameOverride,objectRoot:this.frameRoot,newParentWidth:this.frameOverride.width,newParentHeight:this.frameOverride.height,initialParentWidth:this.frameRoot.width,initialParentHeight:this.frameRoot.height}),this.frameOverride.updateWorldMatrix(!0,!1,!0)}}applySize(e,t=window.devicePixelRatio){let i=Math.max(1,e?.width??this.width),r=Math.max(1,e?.height??this.height);this.dpr=t,this.width=i,this.height=r,this._innerApplySize();let a=function(e,t,i,r){let a=M(e,t,i,r),s=Math.max(i,512/Math.min(e,t)),n=Math.min(s,a);return{width:Math.max(1,Math.ceil(e*n)),height:Math.max(1,Math.ceil(t*n))}}(i,r,t,this.isScreenSpace);this.renderTarget.setSize(a.width,a.height),this._canvasTexture?.dispose(),this._canvasTexture=void 0,this.applyOverrides(e),this.frameOverride?.requestRender()}applyFrame(e){let t=this.context.scene.find2D(e);if(t&&t instanceof o)return this.disposeFrameOverride(),this.frameRoot=t,this.frameOverride=t.clone({dpr:this.renderer.dpr,shared:this.context.shared}),this.scene2d.add(this.frameOverride),this.applySize(),this.frame?.addEventListener("render",this.onRenderRequestedDownstream),this.frameOverride.traverse(e=>{e.addEventListener("beginState",this.onFrameOverrideObjectEvent),e.addEventListener("completeState",this.onFrameOverrideObjectEvent)}),this.frame?.requestRender(),t}get frame(){return this.frameOverride}get frameId(){return this.frame?.uuid}find(e){return this.scene2d.find(e)}get texture(){return this.textureHolder?.getTexture(1001)}disposeFrameOverride(){this.frameOverride?.removeEventListener("render",this.onRenderRequestedDownstream),this.frameOverride?.traverse(e=>{e.removeEventListener("beginState",this.onFrameOverrideObjectEvent),e.removeEventListener("completeState",this.onFrameOverrideObjectEvent)}),this.frameOverride&&this.scene2d.remove(this.frameOverride)}};function L({objectOverride:e,objectRoot:t,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s}){if(e instanceof o&&t instanceof o||e instanceof d&&t instanceof d)for(let n=0,h=e.children.length;n<h;n++){let h=e.children[n],d=t.children[n];h&&d&&h.uuid===d.uuid&&q({objectOverride:h,objectRoot:d,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s})}}function q({objectOverride:e,objectRoot:t,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s}){let[n,h]=function(e){if(A(e))return[e.width,e.height];if(e instanceof m){let[t,i]=e.getHalfSize();return[2*t,2*i]}if(e instanceof d){let[t,i]=e.recursiveBBox.getHalfSize();return[2*t,2*i]}return[0,0]}(t),{width:o,height:u,position:p}=l({constraints:e.data,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s,objectInitialWidth:n,objectInitialHeight:h,objectInitialPosition:t.position});if(e.position=p,e.data={...e.data,position:p},e.states)for(let n in e.states)V({stateId:n,objectOverride:e,objectRoot:t,newParentWidth:i,newParentHeight:r,initialParentWidth:a,initialParentHeight:s});if(A(e)||e instanceof d)A(e)&&(e.width=o,e.height=u,e.data={...e.data,width:o,height:u}),L({objectOverride:e,objectRoot:t,newParentWidth:o,newParentHeight:u,initialParentWidth:n,initialParentHeight:h});else if(e instanceof m){let i=t,r=0!==n?o/n:1,a=0!==h?u/h:1;e.path=c(i.path,r,a),e.data={...e.data,path:e.path}}}function V({stateId:e,objectOverride:t,objectRoot:i,newParentWidth:r,newParentHeight:a,initialParentWidth:s,initialParentHeight:n}){let h=t.states?.[e],d=i.states?.[e];if(h&&d){let{width:i,height:o,position:m}=l({constraints:t.data,newParentWidth:r,newParentHeight:a,initialParentWidth:s,initialParentHeight:n,objectInitialWidth:g.isResizeable(d)?d.width:0,objectInitialHeight:g.isResizeable(d)?d.height:0,objectInitialPosition:d.position});Object.assign(t.states[e],{position:m}),g.isResizeable(h)&&Object.assign(t.states[e],{width:i,height:o})}}function A(e){return e instanceof n||e instanceof o||e instanceof s||e instanceof h}var N=class extends f{constructor(e,t,i){super(e,t,i),this.isUIObject=!0,this.uiCanvas=new C(e+"-canvas",t.geometry.width,t.geometry.height,i),this.uiCanvas.promise.then(()=>{this.applyFrame(this.dataPatched.geometry.frame,i.shared)})}updateByPatchedOpGeometry(e,t,i){super.updateByPatchedOpGeometry(e,t,i),0===e.type&&(void 0!==e.props.frame&&this.applyFrame(e.props.frame,i.shared),(void 0!==e.props.width||void 0!==e.props.height)&&this.applySize(e.props,i.shared))}applySize(e,t){let i=e?.width??this.dataPatched.geometry.width,r=e?.height??this.dataPatched.geometry.height;this.uiCanvas.applySize({width:i,height:r}),this.applyGeometryParametersFromFrame(t)}applyFrame(e,t){this.uiCanvas.applyFrame(e),this.applyGeometryParametersFromFrame(t),this.applyMaterialParametersFromFrame({shared:t})}applyGeometryParametersFromFrame(e){let t=this.frame;t&&(Object.assign(this.data,{geometry:Object.assign(this.data.geometry,{cornerRadius:t.cornerRadius,cornerType:0})}),Object.assign(this.dataPatched,{geometry:Object.assign(this.dataPatched.geometry,{cornerRadius:t.cornerRadius,cornerType:0})}),this.localGeometry?.dispose(),this.localGeometry=p(this.dataPatched.geometry,e,this.data.flatShading,this))}applyMaterialParametersFromFrame(e){let t=this.frame;if(t){let i=t.data.backgroundBlur;Object.assign(this.data.material.layers[0].data.texture,{image:this.uiCanvas.uuid}),Object.assign(this.data.material.layers[1].data,{roughness:i.radius,alpha:i.enabled?1:0}),Object.assign(this.dataPatched.material.layers[0].data.texture,{image:this.uiCanvas.uuid}),Object.assign(this.dataPatched.material.layers[1].data,{roughness:i.radius,alpha:i.enabled?1:0}),this.material.reset?.(this.dataPatched.material,e,!0)}}updateEntity2DByOp(e,t,i,r){this.uiCanvas.updateEntity2DByOp(e,t,i,r),e===this.frameId&&0===t.type&&(void 0!==t.props.cornerRadius?this.applyGeometryParametersFromFrame(r):v(t.path,["backgroundBlur"])&&this.applyMaterialParametersFromFrame({shared:r}))}get frame(){return this.uiCanvas.frame}get frameId(){return this.frame?.uuid}removeInteractionGeometry(e){super.removeInteractionGeometry(e),this.applySize({},e)}updateGeometryInteractions(e,t){super.updateGeometryInteractions(e,t),this.applySize({width:e.width,height:e.height},t);let i={...this.data.geometry,...e};this.localGeometry?.dispose(),this.localGeometry=p(i,t,this.data.flatShading,this)}};O("UIGeometry",(e,t,i)=>new N(e,t,i)),P({Scene2D:u,UICanvas:C,loadHanaUIRUNTIME:r,setHanaUIWasmUrl:i}),w("ui-2d");
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ja as t}from"./runtime-chunk-
|
|
1
|
+
import{ja as t}from"./runtime-chunk-OERXYDZQ.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{u as e}from"./runtime-chunk-26PJ2PZE.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as r,f as i}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-RNMPWHS7.js";import"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var n=class extends t{get forceComputeSize(){return!0}get shape(){return this.geometry.userData.shape}updateEntityBoxSize(t,r){let i=this.geometry.getAttribute("position");void 0!==i?e(i,this.geometry.drawRange.start,this.geometry.drawRange.count<1/0?this.geometry.drawRange.count:i.count,t,r):super.updateEntityBoxSize(t,r)}};i("VectorGeometry",(t,e,r)=>new n(t,e,r)),r("vector-shapes");
|
|
Binary file
|
|
Binary file
|