@splinetool/runtime 2.0.99 → 2.0.101
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-aiAssistant-NNF3F5QO.js → runtime-aiAssistant-JYKXMMRS.js} +1 -1
- package/build/runtime-aiAssistant-JYKXMMRS.js.br +0 -0
- package/build/runtime-aiAssistant-JYKXMMRS.js.gz +0 -0
- package/build/runtime-apiServices-II44FZUJ.js +1 -0
- package/build/runtime-apiServices-II44FZUJ.js.br +0 -0
- package/build/runtime-apiServices-II44FZUJ.js.gz +0 -0
- package/build/{runtime-audio-IMCJS7SZ.js → runtime-audio-PFLKMACM.js} +1 -1
- package/build/runtime-audio-PFLKMACM.js.br +0 -0
- package/build/runtime-audio-PFLKMACM.js.gz +0 -0
- package/build/{runtime-bloom-7B3ZAMXY.js → runtime-bloom-BOI6KO5B.js} +1 -1
- package/build/runtime-bloom-BOI6KO5B.js.br +0 -0
- package/build/runtime-bloom-BOI6KO5B.js.gz +0 -0
- package/build/{runtime-brightnessContrast-HQGNA5X2.js → runtime-brightnessContrast-6ZMNRJAO.js} +1 -1
- package/build/runtime-brightnessContrast-6ZMNRJAO.js.br +0 -0
- package/build/runtime-brightnessContrast-6ZMNRJAO.js.gz +0 -0
- package/build/{runtime-chromaticAberration-7QQBIOCV.js → runtime-chromaticAberration-72CZWXTD.js} +1 -1
- package/build/runtime-chromaticAberration-72CZWXTD.js.br +0 -0
- package/build/runtime-chromaticAberration-72CZWXTD.js.gz +0 -0
- package/build/{runtime-chunk-M7S2GXRN.js → runtime-chunk-357LYO3J.js} +1 -1
- package/build/runtime-chunk-357LYO3J.js.br +0 -0
- package/build/runtime-chunk-357LYO3J.js.gz +0 -0
- package/build/{runtime-chunk-PMJ2AYHR.js → runtime-chunk-3F3Y2G5B.js} +1 -1
- package/build/runtime-chunk-3F3Y2G5B.js.br +0 -0
- package/build/runtime-chunk-3F3Y2G5B.js.gz +0 -0
- package/build/{runtime-chunk-FKNVV4NA.js → runtime-chunk-52FUITQN.js} +1 -1
- package/build/runtime-chunk-52FUITQN.js.br +0 -0
- package/build/runtime-chunk-52FUITQN.js.gz +0 -0
- package/build/{runtime-chunk-E6D7DGFO.js → runtime-chunk-5CXAJPAF.js} +1 -1
- package/build/runtime-chunk-5CXAJPAF.js.br +0 -0
- package/build/runtime-chunk-5CXAJPAF.js.gz +0 -0
- package/build/{runtime-chunk-KADJVVUY.js → runtime-chunk-5VCUVBXQ.js} +1 -1
- package/build/runtime-chunk-5VCUVBXQ.js.br +1 -0
- package/build/runtime-chunk-5VCUVBXQ.js.gz +0 -0
- package/build/{runtime-chunk-MABNKREI.js → runtime-chunk-6GYTYA7C.js} +1 -1
- package/build/runtime-chunk-6GYTYA7C.js.br +0 -0
- package/build/runtime-chunk-6GYTYA7C.js.gz +0 -0
- package/build/{runtime-chunk-PY32P2MB.js → runtime-chunk-7MEZ2KDU.js} +1 -1
- package/build/runtime-chunk-7MEZ2KDU.js.br +0 -0
- package/build/runtime-chunk-7MEZ2KDU.js.gz +0 -0
- package/build/runtime-chunk-AORANPJP.js +1 -0
- package/build/runtime-chunk-AORANPJP.js.br +0 -0
- package/build/runtime-chunk-AORANPJP.js.gz +0 -0
- package/build/{runtime-chunk-4GO5OFNC.js → runtime-chunk-AWUFMMKH.js} +1 -1
- package/build/runtime-chunk-AWUFMMKH.js.br +0 -0
- package/build/runtime-chunk-AWUFMMKH.js.gz +0 -0
- package/build/{runtime-chunk-RQFBMEVZ.js → runtime-chunk-B3ARQO3Z.js} +1 -1
- package/build/{runtime-chunk-RQFBMEVZ.js.br → runtime-chunk-B3ARQO3Z.js.br} +0 -0
- package/build/runtime-chunk-B3ARQO3Z.js.gz +0 -0
- package/build/runtime-chunk-BEWSX4P6.js +1 -0
- package/build/runtime-chunk-BEWSX4P6.js.br +0 -0
- package/build/runtime-chunk-BEWSX4P6.js.gz +0 -0
- package/build/{runtime-chunk-WKNVDX3N.js → runtime-chunk-D7JBGVG7.js} +1 -1
- package/build/runtime-chunk-D7JBGVG7.js.br +0 -0
- package/build/runtime-chunk-D7JBGVG7.js.gz +0 -0
- package/build/{runtime-chunk-TVEOQL6G.js → runtime-chunk-EYCGSFF7.js} +1 -1
- package/build/runtime-chunk-EYCGSFF7.js.br +0 -0
- package/build/runtime-chunk-EYCGSFF7.js.gz +0 -0
- package/build/runtime-chunk-GPEQDP4A.js +1 -0
- package/build/runtime-chunk-GPEQDP4A.js.br +0 -0
- package/build/runtime-chunk-GPEQDP4A.js.gz +0 -0
- package/build/runtime-chunk-HKN5JQH2.js +1 -0
- package/build/runtime-chunk-HKN5JQH2.js.br +0 -0
- package/build/runtime-chunk-HKN5JQH2.js.gz +0 -0
- package/build/{runtime-chunk-KPYQWJET.js → runtime-chunk-HUSJ7KZG.js} +1 -1
- package/build/runtime-chunk-HUSJ7KZG.js.br +0 -0
- package/build/runtime-chunk-HUSJ7KZG.js.gz +0 -0
- package/build/{runtime-chunk-O4OBJK5I.js → runtime-chunk-IADZBF4C.js} +1 -1
- package/build/runtime-chunk-IADZBF4C.js.br +0 -0
- package/build/runtime-chunk-IADZBF4C.js.gz +0 -0
- package/build/{runtime-chunk-E6R2EOZN.js → runtime-chunk-IIR3Y2PX.js} +1 -1
- package/build/runtime-chunk-IIR3Y2PX.js.br +0 -0
- package/build/runtime-chunk-IIR3Y2PX.js.gz +0 -0
- package/build/{runtime-chunk-4XXEJLMG.js → runtime-chunk-JBRM62V6.js} +1 -1
- package/build/runtime-chunk-JBRM62V6.js.br +0 -0
- package/build/runtime-chunk-JBRM62V6.js.gz +0 -0
- package/build/{runtime-chunk-T3SAGIHK.js → runtime-chunk-MIPG36RU.js} +1 -1
- package/build/runtime-chunk-MIPG36RU.js.br +0 -0
- package/build/runtime-chunk-MIPG36RU.js.gz +0 -0
- package/build/{runtime-chunk-H3ODKGZ7.js → runtime-chunk-NY4SLVL4.js} +1 -1
- package/build/runtime-chunk-NY4SLVL4.js.br +0 -0
- package/build/runtime-chunk-NY4SLVL4.js.gz +0 -0
- package/build/{runtime-chunk-ZJAEOKE6.js → runtime-chunk-OBB4M3GU.js} +1 -1
- package/build/runtime-chunk-OBB4M3GU.js.br +0 -0
- package/build/runtime-chunk-OBB4M3GU.js.gz +0 -0
- package/build/{runtime-chunk-LCR6LO6Q.js → runtime-chunk-OSFWHAMN.js} +1 -1
- package/build/runtime-chunk-OSFWHAMN.js.br +0 -0
- package/build/runtime-chunk-OSFWHAMN.js.gz +0 -0
- package/build/{runtime-chunk-P7Y5SVAD.js → runtime-chunk-PYMHVL3C.js} +1 -1
- package/build/runtime-chunk-PYMHVL3C.js.br +0 -0
- package/build/runtime-chunk-PYMHVL3C.js.gz +0 -0
- package/build/{runtime-chunk-HGOGHH4M.js → runtime-chunk-Q7BYLYP7.js} +1 -1
- package/build/runtime-chunk-Q7BYLYP7.js.br +0 -0
- package/build/runtime-chunk-Q7BYLYP7.js.gz +0 -0
- package/build/{runtime-chunk-N53OSDKC.js → runtime-chunk-SXHQLHLW.js} +1 -1
- package/build/{runtime-chunk-N53OSDKC.js.br → runtime-chunk-SXHQLHLW.js.br} +0 -0
- package/build/runtime-chunk-SXHQLHLW.js.gz +0 -0
- package/build/{runtime-chunk-7CNMX337.js → runtime-chunk-VA6WKZXP.js} +1 -1
- package/build/runtime-chunk-VA6WKZXP.js.br +0 -0
- package/build/runtime-chunk-VA6WKZXP.js.gz +0 -0
- package/build/{runtime-chunk-CXA5NFNP.js → runtime-chunk-WK3XJ2YB.js} +1 -1
- package/build/runtime-chunk-WK3XJ2YB.js.br +0 -0
- package/build/runtime-chunk-WK3XJ2YB.js.gz +0 -0
- package/build/{runtime-chunk-SEVXOA7Q.js → runtime-chunk-YDR7MZGF.js} +1 -1
- package/build/runtime-chunk-YDR7MZGF.js.br +0 -0
- package/build/runtime-chunk-YDR7MZGF.js.gz +0 -0
- package/build/runtime-chunk-YH7N5LRF.js +1 -0
- package/build/runtime-chunk-YH7N5LRF.js.br +0 -0
- package/build/runtime-chunk-YH7N5LRF.js.gz +0 -0
- package/build/{runtime-chunk-LM62BADA.js → runtime-chunk-YPL52E4O.js} +1 -1
- package/build/runtime-chunk-YPL52E4O.js.br +0 -0
- package/build/runtime-chunk-YPL52E4O.js.gz +0 -0
- package/build/{runtime-classicRuntime-QRJGHJF3.js → runtime-classicRuntime-IYA2AK5E.js} +1 -1
- package/build/runtime-classicRuntime-IYA2AK5E.js.br +0 -0
- package/build/runtime-classicRuntime-IYA2AK5E.js.gz +0 -0
- package/build/runtime-cloners-IP4B45UK.js +1 -0
- package/build/runtime-cloners-IP4B45UK.js.br +3 -0
- package/build/runtime-cloners-IP4B45UK.js.gz +0 -0
- package/build/{runtime-components-U6Y3CFLI.js → runtime-components-BF3GMZ52.js} +1 -1
- package/build/runtime-components-BF3GMZ52.js.br +0 -0
- package/build/runtime-components-BF3GMZ52.js.gz +0 -0
- package/build/{runtime-conditional-DE4PFQQI.js → runtime-conditional-V4O43AFY.js} +1 -1
- package/build/runtime-conditional-V4O43AFY.js.br +0 -0
- package/build/runtime-conditional-V4O43AFY.js.gz +0 -0
- package/build/{runtime-createDestroy-VKBMFQYZ.js → runtime-createDestroy-BIQXIAYO.js} +1 -1
- package/build/runtime-createDestroy-BIQXIAYO.js.br +0 -0
- package/build/runtime-createDestroy-BIQXIAYO.js.gz +0 -0
- package/build/{runtime-depthOfField-VFVDL447.js → runtime-depthOfField-PSOUFSGP.js} +1 -1
- package/build/runtime-depthOfField-PSOUFSGP.js.br +0 -0
- package/build/runtime-depthOfField-PSOUFSGP.js.gz +0 -0
- package/build/{runtime-dragDrop-6BEBTD3K.js → runtime-dragDrop-WYJRT22Q.js} +1 -1
- package/build/runtime-dragDrop-WYJRT22Q.js.br +0 -0
- package/build/runtime-dragDrop-WYJRT22Q.js.gz +0 -0
- package/build/{runtime-gameControls-3KGKNHOQ.js → runtime-gameControls-YYSSAWFT.js} +1 -1
- package/build/runtime-gameControls-YYSSAWFT.js.br +0 -0
- package/build/runtime-gameControls-YYSSAWFT.js.gz +0 -0
- package/build/runtime-hair-KEXD7S64.js +1 -0
- package/build/runtime-hair-KEXD7S64.js.br +1 -0
- package/build/runtime-hair-KEXD7S64.js.gz +0 -0
- package/build/{runtime-hueSaturation-TAUU2VZR.js → runtime-hueSaturation-G2JT6P4G.js} +1 -1
- package/build/runtime-hueSaturation-G2JT6P4G.js.br +0 -0
- package/build/runtime-hueSaturation-G2JT6P4G.js.gz +0 -0
- package/build/{runtime-mergeStaticGeometries-LQZU4BQS.js → runtime-mergeStaticGeometries-RDDTTVN2.js} +1 -1
- package/build/runtime-mergeStaticGeometries-RDDTTVN2.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-RDDTTVN2.js.gz +0 -0
- package/build/{runtime-miscActions-MUUPFMVZ.js → runtime-miscActions-SQEVCHD6.js} +1 -1
- package/build/runtime-miscActions-SQEVCHD6.js.br +0 -0
- package/build/runtime-miscActions-SQEVCHD6.js.gz +0 -0
- package/build/{runtime-mouseHover-DZDHUY63.js → runtime-mouseHover-PVE2QUFI.js} +1 -1
- package/build/runtime-mouseHover-PVE2QUFI.js.br +0 -0
- package/build/runtime-mouseHover-PVE2QUFI.js.gz +0 -0
- package/build/{runtime-noise-WG33B6W6.js → runtime-noise-UZ5EXJW7.js} +1 -1
- package/build/runtime-noise-UZ5EXJW7.js.br +0 -0
- package/build/runtime-noise-UZ5EXJW7.js.gz +0 -0
- package/build/{runtime-particles-FNMJLGAY.js → runtime-particles-QMKT2E2M.js} +1 -1
- package/build/runtime-particles-QMKT2E2M.js.br +0 -0
- package/build/runtime-particles-QMKT2E2M.js.gz +0 -0
- package/build/{runtime-paths-A723JIAY.js → runtime-paths-G2QXI7II.js} +1 -1
- package/build/runtime-paths-G2QXI7II.js.br +0 -0
- package/build/runtime-paths-G2QXI7II.js.gz +0 -0
- package/build/{runtime-pixelation-N47BVMJD.js → runtime-pixelation-REH3LYGQ.js} +1 -1
- package/build/runtime-pixelation-REH3LYGQ.js.br +0 -0
- package/build/runtime-pixelation-REH3LYGQ.js.gz +0 -0
- package/build/{runtime-resize-DOVSOJ5D.js → runtime-resize-U6VSAW63.js} +1 -1
- package/build/runtime-resize-U6VSAW63.js.br +0 -0
- package/build/runtime-resize-U6VSAW63.js.gz +0 -0
- package/build/{runtime-sceneTransition-37LCXK5A.js → runtime-sceneTransition-IFTVI4XL.js} +1 -1
- package/build/runtime-sceneTransition-IFTVI4XL.js.br +0 -0
- package/build/runtime-sceneTransition-IFTVI4XL.js.gz +0 -0
- package/build/{runtime-scroll-7IA4BXTP.js → runtime-scroll-4TIXCG7C.js} +1 -1
- package/build/runtime-scroll-4TIXCG7C.js.br +0 -0
- package/build/runtime-scroll-4TIXCG7C.js.gz +0 -0
- package/build/runtime-shapeBlends-4HPDCYMY.js +1 -0
- package/build/runtime-shapeBlends-4HPDCYMY.js.br +0 -0
- package/build/runtime-shapeBlends-4HPDCYMY.js.gz +0 -0
- package/build/{runtime-text-53KI7WMP.js → runtime-text-3GGOC64X.js} +1 -1
- package/build/runtime-text-3GGOC64X.js.br +0 -0
- package/build/runtime-text-3GGOC64X.js.gz +0 -0
- package/build/{runtime-textInputs-TEM3A5UW.js → runtime-textInputs-LKHFZZIA.js} +1 -1
- package/build/runtime-textInputs-LKHFZZIA.js.br +0 -0
- package/build/runtime-textInputs-LKHFZZIA.js.gz +0 -0
- package/build/runtime-timeline-SICDYTVP.js +1 -0
- package/build/runtime-timeline-SICDYTVP.js.br +0 -0
- package/build/runtime-timeline-SICDYTVP.js.gz +0 -0
- package/build/{runtime-tracking-CQOVCOUL.js → runtime-tracking-AZFZEWAF.js} +1 -1
- package/build/runtime-tracking-AZFZEWAF.js.br +0 -0
- package/build/runtime-tracking-AZFZEWAF.js.gz +0 -0
- package/build/runtime-transitions-S6E7WME3.js +1 -0
- package/build/runtime-transitions-S6E7WME3.js.br +0 -0
- package/build/runtime-transitions-S6E7WME3.js.gz +0 -0
- package/build/{runtime-ui2d-IX6WRAJK.js → runtime-ui2d-IU6BMLCA.js} +1 -1
- package/build/runtime-ui2d-IU6BMLCA.js.br +0 -0
- package/build/runtime-ui2d-IU6BMLCA.js.gz +0 -0
- package/build/runtime-updater-QAQQJKLZ.js +1 -0
- package/build/runtime-updater-QAQQJKLZ.js.br +2 -0
- package/build/runtime-updater-QAQQJKLZ.js.gz +0 -0
- package/build/{runtime-variables-AFZY4GV6.js → runtime-variables-I5YZMLEW.js} +1 -1
- package/build/runtime-variables-I5YZMLEW.js.br +0 -0
- package/build/runtime-variables-I5YZMLEW.js.gz +0 -0
- package/build/{runtime-vectorShapes-EZ6HN5EX.js → runtime-vectorShapes-ZGLU5TLJ.js} +1 -1
- package/build/runtime-vectorShapes-ZGLU5TLJ.js.br +0 -0
- package/build/runtime-vectorShapes-ZGLU5TLJ.js.gz +0 -0
- package/build/{runtime-video-DDOVIOHX.js → runtime-video-VSGOH3JE.js} +1 -1
- package/build/runtime-video-VSGOH3JE.js.br +0 -0
- package/build/runtime-video-VSGOH3JE.js.gz +0 -0
- package/build/{runtime-vignette-T6EP3UE3.js → runtime-vignette-HK6KS66E.js} +1 -1
- package/build/runtime-vignette-HK6KS66E.js.br +0 -0
- package/build/runtime-vignette-HK6KS66E.js.gz +0 -0
- package/build/{runtime-webgpu-F4WYQNH7.js → runtime-webgpu-YDFMWVCK.js} +1 -1
- package/build/runtime-webgpu-YDFMWVCK.js.br +0 -0
- package/build/{runtime-webgpu-F4WYQNH7.js.gz → runtime-webgpu-YDFMWVCK.js.gz} +0 -0
- package/build/runtime.cjs +392 -392
- 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-aiAssistant-NNF3F5QO.js.br +0 -0
- package/build/runtime-aiAssistant-NNF3F5QO.js.gz +0 -0
- package/build/runtime-apiServices-GGJ4D4DP.js +0 -1
- package/build/runtime-apiServices-GGJ4D4DP.js.br +0 -0
- package/build/runtime-apiServices-GGJ4D4DP.js.gz +0 -0
- package/build/runtime-audio-IMCJS7SZ.js.br +0 -0
- package/build/runtime-audio-IMCJS7SZ.js.gz +0 -0
- package/build/runtime-bloom-7B3ZAMXY.js.br +0 -0
- package/build/runtime-bloom-7B3ZAMXY.js.gz +0 -0
- package/build/runtime-brightnessContrast-HQGNA5X2.js.br +0 -0
- package/build/runtime-brightnessContrast-HQGNA5X2.js.gz +0 -0
- package/build/runtime-chromaticAberration-7QQBIOCV.js.br +0 -0
- package/build/runtime-chromaticAberration-7QQBIOCV.js.gz +0 -0
- package/build/runtime-chunk-2BYRMVRD.js +0 -1
- package/build/runtime-chunk-2BYRMVRD.js.br +0 -0
- package/build/runtime-chunk-2BYRMVRD.js.gz +0 -0
- package/build/runtime-chunk-2XCYQQPK.js +0 -1
- package/build/runtime-chunk-2XCYQQPK.js.br +0 -0
- package/build/runtime-chunk-2XCYQQPK.js.gz +0 -0
- package/build/runtime-chunk-4GO5OFNC.js.br +0 -0
- package/build/runtime-chunk-4GO5OFNC.js.gz +0 -0
- package/build/runtime-chunk-4XXEJLMG.js.br +0 -0
- package/build/runtime-chunk-4XXEJLMG.js.gz +0 -0
- package/build/runtime-chunk-7CNMX337.js.br +0 -0
- package/build/runtime-chunk-7CNMX337.js.gz +0 -0
- package/build/runtime-chunk-CXA5NFNP.js.br +0 -0
- package/build/runtime-chunk-CXA5NFNP.js.gz +0 -0
- package/build/runtime-chunk-E6D7DGFO.js.br +0 -0
- package/build/runtime-chunk-E6D7DGFO.js.gz +0 -0
- package/build/runtime-chunk-E6R2EOZN.js.br +0 -0
- package/build/runtime-chunk-E6R2EOZN.js.gz +0 -0
- package/build/runtime-chunk-FKNVV4NA.js.br +0 -0
- package/build/runtime-chunk-FKNVV4NA.js.gz +0 -0
- package/build/runtime-chunk-FL4LYSMP.js +0 -1
- package/build/runtime-chunk-FL4LYSMP.js.br +0 -0
- package/build/runtime-chunk-FL4LYSMP.js.gz +0 -0
- package/build/runtime-chunk-H3ODKGZ7.js.br +0 -0
- package/build/runtime-chunk-H3ODKGZ7.js.gz +0 -0
- package/build/runtime-chunk-HGOGHH4M.js.br +0 -0
- package/build/runtime-chunk-HGOGHH4M.js.gz +0 -0
- package/build/runtime-chunk-IYKDXWML.js +0 -1
- package/build/runtime-chunk-IYKDXWML.js.br +0 -0
- package/build/runtime-chunk-IYKDXWML.js.gz +0 -0
- package/build/runtime-chunk-KADJVVUY.js.br +0 -4
- package/build/runtime-chunk-KADJVVUY.js.gz +0 -0
- package/build/runtime-chunk-KPYQWJET.js.br +0 -0
- package/build/runtime-chunk-KPYQWJET.js.gz +0 -0
- package/build/runtime-chunk-LCR6LO6Q.js.br +0 -0
- package/build/runtime-chunk-LCR6LO6Q.js.gz +0 -0
- package/build/runtime-chunk-LM62BADA.js.br +0 -0
- package/build/runtime-chunk-LM62BADA.js.gz +0 -0
- package/build/runtime-chunk-M7S2GXRN.js.br +0 -0
- package/build/runtime-chunk-M7S2GXRN.js.gz +0 -0
- package/build/runtime-chunk-MABNKREI.js.br +0 -0
- package/build/runtime-chunk-MABNKREI.js.gz +0 -0
- package/build/runtime-chunk-N53OSDKC.js.gz +0 -0
- package/build/runtime-chunk-O4OBJK5I.js.br +0 -0
- package/build/runtime-chunk-O4OBJK5I.js.gz +0 -0
- package/build/runtime-chunk-P7Y5SVAD.js.br +0 -0
- package/build/runtime-chunk-P7Y5SVAD.js.gz +0 -0
- package/build/runtime-chunk-PMJ2AYHR.js.br +0 -0
- package/build/runtime-chunk-PMJ2AYHR.js.gz +0 -0
- package/build/runtime-chunk-PY32P2MB.js.br +0 -0
- package/build/runtime-chunk-PY32P2MB.js.gz +0 -0
- package/build/runtime-chunk-RQFBMEVZ.js.gz +0 -0
- package/build/runtime-chunk-SEVXOA7Q.js.br +0 -0
- package/build/runtime-chunk-SEVXOA7Q.js.gz +0 -0
- package/build/runtime-chunk-T3SAGIHK.js.br +0 -0
- package/build/runtime-chunk-T3SAGIHK.js.gz +0 -0
- package/build/runtime-chunk-TVEOQL6G.js.br +0 -0
- package/build/runtime-chunk-TVEOQL6G.js.gz +0 -0
- package/build/runtime-chunk-VCM7LVUJ.js +0 -1
- package/build/runtime-chunk-VCM7LVUJ.js.br +0 -0
- package/build/runtime-chunk-VCM7LVUJ.js.gz +0 -0
- package/build/runtime-chunk-WKNVDX3N.js.br +0 -0
- package/build/runtime-chunk-WKNVDX3N.js.gz +0 -0
- package/build/runtime-chunk-ZJAEOKE6.js.br +0 -0
- package/build/runtime-chunk-ZJAEOKE6.js.gz +0 -0
- package/build/runtime-classicRuntime-QRJGHJF3.js.br +0 -0
- package/build/runtime-classicRuntime-QRJGHJF3.js.gz +0 -0
- package/build/runtime-cloners-3SCF7B47.js +0 -1
- package/build/runtime-cloners-3SCF7B47.js.br +0 -0
- package/build/runtime-cloners-3SCF7B47.js.gz +0 -0
- package/build/runtime-components-U6Y3CFLI.js.br +0 -0
- package/build/runtime-components-U6Y3CFLI.js.gz +0 -0
- package/build/runtime-conditional-DE4PFQQI.js.br +0 -0
- package/build/runtime-conditional-DE4PFQQI.js.gz +0 -0
- package/build/runtime-createDestroy-VKBMFQYZ.js.br +0 -0
- package/build/runtime-createDestroy-VKBMFQYZ.js.gz +0 -0
- package/build/runtime-depthOfField-VFVDL447.js.br +0 -0
- package/build/runtime-depthOfField-VFVDL447.js.gz +0 -0
- package/build/runtime-dragDrop-6BEBTD3K.js.br +0 -0
- package/build/runtime-dragDrop-6BEBTD3K.js.gz +0 -0
- package/build/runtime-gameControls-3KGKNHOQ.js.br +0 -0
- package/build/runtime-gameControls-3KGKNHOQ.js.gz +0 -0
- package/build/runtime-hair-CM56MBE5.js +0 -1
- package/build/runtime-hair-CM56MBE5.js.br +0 -3
- package/build/runtime-hair-CM56MBE5.js.gz +0 -0
- package/build/runtime-hueSaturation-TAUU2VZR.js.br +0 -0
- package/build/runtime-hueSaturation-TAUU2VZR.js.gz +0 -0
- package/build/runtime-mergeStaticGeometries-LQZU4BQS.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-LQZU4BQS.js.gz +0 -0
- package/build/runtime-miscActions-MUUPFMVZ.js.br +0 -0
- package/build/runtime-miscActions-MUUPFMVZ.js.gz +0 -0
- package/build/runtime-mouseHover-DZDHUY63.js.br +0 -0
- package/build/runtime-mouseHover-DZDHUY63.js.gz +0 -0
- package/build/runtime-noise-WG33B6W6.js.br +0 -0
- package/build/runtime-noise-WG33B6W6.js.gz +0 -0
- package/build/runtime-particles-FNMJLGAY.js.br +0 -0
- package/build/runtime-particles-FNMJLGAY.js.gz +0 -0
- package/build/runtime-paths-A723JIAY.js.br +0 -0
- package/build/runtime-paths-A723JIAY.js.gz +0 -0
- package/build/runtime-pixelation-N47BVMJD.js.br +0 -0
- package/build/runtime-pixelation-N47BVMJD.js.gz +0 -0
- package/build/runtime-resize-DOVSOJ5D.js.br +0 -0
- package/build/runtime-resize-DOVSOJ5D.js.gz +0 -0
- package/build/runtime-sceneTransition-37LCXK5A.js.br +0 -0
- package/build/runtime-sceneTransition-37LCXK5A.js.gz +0 -0
- package/build/runtime-scroll-7IA4BXTP.js.br +0 -0
- package/build/runtime-scroll-7IA4BXTP.js.gz +0 -0
- package/build/runtime-shapeBlends-TYMCN2YY.js +0 -1
- package/build/runtime-shapeBlends-TYMCN2YY.js.br +0 -0
- package/build/runtime-shapeBlends-TYMCN2YY.js.gz +0 -0
- package/build/runtime-text-53KI7WMP.js.br +0 -0
- package/build/runtime-text-53KI7WMP.js.gz +0 -0
- package/build/runtime-textInputs-TEM3A5UW.js.br +0 -0
- package/build/runtime-textInputs-TEM3A5UW.js.gz +0 -0
- package/build/runtime-timeline-NBD73ZGM.js +0 -1
- package/build/runtime-timeline-NBD73ZGM.js.br +0 -0
- package/build/runtime-timeline-NBD73ZGM.js.gz +0 -0
- package/build/runtime-tracking-CQOVCOUL.js.br +0 -0
- package/build/runtime-tracking-CQOVCOUL.js.gz +0 -0
- package/build/runtime-transitions-PKD4ONL7.js +0 -1
- package/build/runtime-transitions-PKD4ONL7.js.br +0 -0
- package/build/runtime-transitions-PKD4ONL7.js.gz +0 -0
- package/build/runtime-ui2d-IX6WRAJK.js.br +0 -0
- package/build/runtime-ui2d-IX6WRAJK.js.gz +0 -0
- package/build/runtime-updater-42LKGUWN.js +0 -1
- package/build/runtime-updater-42LKGUWN.js.br +0 -1
- package/build/runtime-updater-42LKGUWN.js.gz +0 -0
- package/build/runtime-variables-AFZY4GV6.js.br +0 -0
- package/build/runtime-variables-AFZY4GV6.js.gz +0 -0
- package/build/runtime-vectorShapes-EZ6HN5EX.js.br +0 -0
- package/build/runtime-vectorShapes-EZ6HN5EX.js.gz +0 -0
- package/build/runtime-video-DDOVIOHX.js.br +0 -0
- package/build/runtime-video-DDOVIOHX.js.gz +0 -0
- package/build/runtime-vignette-T6EP3UE3.js.br +0 -0
- package/build/runtime-vignette-T6EP3UE3.js.gz +0 -0
- package/build/runtime-webgpu-F4WYQNH7.js.br +0 -0
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,c as t}from"./runtime-chunk-HD7WF3XN.js";import{g as i}from"./runtime-chunk-RTLL6WIB.js";import{Sa as s}from"./runtime-chunk-H3ODKGZ7.js";import{Ab as n,Bb as r,Cb as a,Me as h,qe as o}from"./runtime-chunk-KPOUV3HD.js";var l=null;function d(e){l=e}function p(){return l}function c(e){let t=e?.tracks.filter(e=>"vector"===e.ValueTypeName||"quaternion"===e.ValueTypeName).map(e=>e.times.length);if(t?.length){let e=i(t);return e&&e>2?e:2}return 2}function u(e){let t=this._clip.duration,i=this._clip.start??0,s=this.loop,r=this.time+e,h=this._loopCount,o=s===a;if(0===e)return-1===h||!o||1&~h?r:t-(r-i);if(s===n){-1===h&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===h&&(e>=0?(h=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),r>=t||r<i){let s=Math.floor((r-i)/(t-i));r-=(t-i)*s,h+=Math.abs(s);let n=this.repetitions-h;if(n<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,o||(r=e>0?t:i,1===this.repetitions&&(r=t)),this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===n){let t=e<0;this._setEndings(t,!t,o)}else this._setEndings(!1,!1,o);this._loopCount=h,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:s})}}else this.time=r;if(o&&!(1&~h))return t-(r-i)}return r}var g=!1,m=new WeakSet;function f(e){return Array.isArray(e.identity)?e.identity[0]:e.uuid}function w(e){return"Empty"===e.data.type&&Array.isArray(e.data.animations)?e.data.animations:[]}function y(e,t){return"number"==typeof e&&isFinite(e)&&e>0?e:t}function T(e,t){let i=e.filter(e=>e.info.id===t);if(i.length)return i;let s=e.filter(e=>e.info.name===t);if(s.length)return s;let n=t.toLowerCase(),r=e.filter(e=>e.info.name.toLowerCase()===n);return r.length?r:e.filter(e=>e.info.name.toLowerCase().endsWith("_"+n))}function v(e){return`"${e.name}" has no imported animation clips — getAnimations() lists the objects that do.`}function k(e,t,i){if(!i)return`no clip "${e}" in the scene — getAnimations() lists them.`;let s=t.map(e=>`"${e.info.name}"`).join(", ");return`"${i.name}" has no clip "${e}" — its clips: ${s}.`}var C=class{constructor(e,t,i,n){this.scene=e,this.requestRender=t,this.updateDisplayProgress=i,this.animationInspectorState=n,this.clipIdToAction={},this.activeClip=null,this.clipDurations=new WeakMap,this.needsUpdate=!1,this.addClip=e=>{"Empty"===e.data.type&&Array.isArray(e.data.animations)&&e.data.animations.forEach((t,i)=>{let n=t[0]+"/"+f(e);if(this.clipIdToAction[n])return;let r=o.parse(s(t));e.animations[i]=r,this.clipDurations.set(r,r.duration);let a=this.mixer.clipAction(r,e);!1===g&&(Object.getPrototypeOf(a)._updateTime=u,g=!0),a.clampWhenFinished=!0,this.clipIdToAction[n]=a})},this.mixer=new h(e),this.scene.traverseEntity(this.addClip)}rebindClips(){this.mixer.stopAllAction(),this.mixer=new h(this.scene),this.clipIdToAction={},this.activeClip=null,this.scene.traverseEntity(this.addClip)}deleteClip(e,t){let i=this.scene.find(t);if(!i)return;let s=i.animations.find(t=>t.uuid===e);if(!s)return;let n=this.clipIdToAction[e];!n||(n.stop(),this.mixer.uncacheClip(s),delete this.clipIdToAction[e],i.animations=i.animations.filter(t=>t.uuid!==e))}get isPlaying(){return Object.values(this.clipIdToAction).some(e=>e.isRunning())}playFromInspector(e){this.mixer.stopAllAction();let t=this.clipIdToAction[e];!t||(t.play(),this.activeClip=t.getClip(),this.scene.markShadowsDirty(),this.requestRender())}onExitPlayMode(){Object.values(this.clipIdToAction).forEach(e=>{e.repetitions=1/0,e.loop=r,e.timeScale=1,m.delete(e)}),this.mixer.stopAllAction(),this.scene.markShadowsDirty(),this.requestRender()}play(e){let t=e.clipId+"/"+e.object,i=this.clipIdToAction[t];if(i)return i.repetitions=e.repeat>=0?e.repeat+1:1/0,i.loop="pingpong"!==e.direction&&"pingpong-rewind"!==e.direction||0===e.repeat?r:a,i.play(),i.paused=!1,this.requestRender(),i}startClip(e,t,{start:i=0,end:s,fade:n=0}){m.delete(e),e.reset(),e.time=i;let r=e.getClip();r.start=i,r.duration=s??this.fullDuration(e),Object.entries(this.clipIdToAction).forEach(([i,s])=>{s===e||i.split("/")[1]!==t||(m.delete(s),n>0?s.fadeOut(n):s.stop())}),n>0&&e.fadeIn(n)}resumeClip(e){return!!m.has(e)&&(m.delete(e),e.paused=!1,e.play(),this.requestRender(),!0)}holdClips(e,t){let i=!1;Object.entries(this.clipIdToAction).forEach(([s,n])=>{let[r,a]=s.split("/");if(t(r,a))if("pause"===e){if(!n.isRunning())return;n.paused=!0,m.add(n)}else{if(!n.enabled||!n.isRunning()&&!n.paused)return;n.paused=!0,m.delete(n),n.time=n.getClip().start??0,n._loopCount=-1,i=!0}}),i&&(this.needsUpdate=!0,this.scene.markShadowsDirty(),this.requestRender())}animatedEntity(e){let t;return e.traverseEntity(e=>!!t||(w(e).length?(t=e,!0):void 0)),t||e.traverseEntityAncestors(e=>{!t&&w(e).length&&(t=e)}),t}clips(e){return this.ownedClips(e).map(e=>e.info)}playClip(e,t,i={}){let s=this.ownedClips(e);if(!s.length)return{ok:!1,warning:v(e)};let n=void 0===t?s[0]:T(s,t)[0];if(!n)return{ok:!1,warning:k(t,s,e)};let r=this.play({clipId:n.info.id,object:n.key,repeat:(a=i.loop,void 0===a||!0===a?-1:"number"==typeof a&&a>=1?Math.round(a)-1:0),direction:i.pingpong?"pingpong":"normal"});var a;return r?(r.timeScale=y(i.speed,1),this.resumeClip(r)||this.startClip(r,n.key,{fade:y(i.fade,0)}),{ok:!0,clip:n.info}):{ok:!1,warning:`clip "${n.info.name}" has not loaded yet.`}}holdClipsOf(e,t,i){let s=this.ownedClips(t);if(t&&!s.length)return{ok:!1,warning:v(t)};if(void 0!==i){let e=T(s,i);if(!e.length)return{ok:!1,warning:k(i,s,t)};s=e}let n=new Set(s.map(e=>e.info.id+"/"+e.key));return this.holdClips(e,(e,t)=>n.has(e+"/"+t)),{ok:!0}}ownedClips(e){let t=[];if(e){let i=this.animatedEntity(e);i&&t.push(i)}else this.scene.traverseEntity(e=>{w(e).length&&t.push(e)});return t.flatMap(e=>{let t=f(e),i={id:e.uuid,name:e.name};return w(e).map(([e,s])=>{let n=this.clipIdToAction[e+"/"+t];return{info:{id:e,name:s,duration:n?Math.round(1e3*this.fullDuration(n))/1e3:0,object:i},key:t,action:n}})})}fullDuration(e){let t=e.getClip();return this.clipDurations.get(t)??t.duration}resumeFromInspector(e){let t=this.clipIdToAction[e];!t||(t.play(),t.paused=!1,this.scene.markShadowsDirty(),this.requestRender())}pauseFromInspector(e){let t=this.clipIdToAction[e];!t||(t.paused=!0)}stop(){this.mixer.stopAllAction(),this.scene.markShadowsDirty(),this.requestRender()}update(e){if(this.needsUpdate)this.needsUpdate=!1;else if(!1===this.isPlaying||this.animationInspectorState?.isScrubbing)return;this.mixer.update(e/1e3),this.activeClip&&this.updateDisplayProgress(Math.round(this.mixer.time/this.activeClip.duration*(this.maxFrames-1)%(this.maxFrames-1))),this.requestRender()}get maxFrames(){return c(this.activeClip??void 0)}setProgressFromInspector(e,t){if(!this.clipIdToAction[t])return;this.activeClip!==this.clipIdToAction[t].getClip()&&this.playFromInspector(t);let i=this.clipIdToAction[t].paused;this.clipIdToAction[t].paused=!1,this.mixer.setTime(Math.min(e/(this.maxFrames-1),.9999)*this.activeClip.duration),this.scene.markShadowsDirty(),this.requestRender(),i&&(this.clipIdToAction[t].paused=!0)}},A="imported animations only play while the scene runs (Play mode, the Preview tab, exports).";function I(e,t){let i=e=>`no object named "${e}".`,s=(s,n,r)=>{let a=e();if(!a)return{ok:!1,warning:A};if(void 0===n)return a.holdClipsOf(s,void 0,r);let h=t(n);return h?a.holdClipsOf(s,h,r):{ok:!1,warning:i(n)}};return{getAnimations:s=>{let n=e();if(!n)return{clips:[],warning:A};if(void 0===s)return{clips:n.clips()};let r=t(s);return r?{clips:n.clips(r)}:{clips:[],warning:i(s)}},playAnimation:(s,n,r)=>{let a=e();if(!a)return{warning:A};let h=t(s);if(!h)return{warning:i(s)};let o=a.playClip(h,n,r);return{clip:o.clip,warning:o.warning}},pauseAnimation:(e,t)=>s("pause",e,t),stopAnimation:(e,t)=>s("stop",e,t)}}var R=Math.fround;function x(e){return"pingpong"===e||"pingpong-rewind"===e}function P(e,t){return t?"start"===e?"end":"end"===e?"start":e:e}var D=class{constructor(e,t,i={}){this.hooks=i,this.isPlaying=!1,this.playingIndex=0,this.seekIndex=-1,this.currentRepeat=0,this.isReversed=!1,this.startTime=0,this.isToggledForward=!1,this.hasPlayedOnce=!1,this.isFirstTweenAfterStart=!1,this.hasClaimed=!1,this.isUnwinding=!1,this.config=e,this.tweens=t,this.delay=R(e.delay/1e3)}get currentTween(){return this.tweens[this.playingIndex]}get claimTime(){return this.claimedAt}play(e){if(0===this.tweens.length||this.isPlaying&&"Toggle"!==this.config.runMode||this.hasPlayedOnce&&"Once"===this.config.runMode)return;let t=this.isPlaying;this.isPlaying=!0,this.hasPlayedOnce=!0,this.isUnwinding=!1,this.currentRepeat=this.passRepeat,this.startTime=e,this.seekIndex=-1,!1===this.hooks.isOwner?.()&&(this.isToggledForward=!1,!t&&!this.isReversed&&this.hooks.assignCurrentState?.()),this.hasClaimed=!1,this.claimedAt=void 0,"Toggle"===this.config.runMode?(this.toggleDirection(),t?this.openPass():this.startChain()):this.startChain()}stop(){this.currentTween?.stop(),this.isPlaying=!1,this.isReversed=!1,this.hasClaimed=!1,this.claimedAt=void 0,this.isUnwinding=!1}unwindFromHere(){this.isUnwinding=!0,this.currentRepeat=0,this.currentTween?.endAfterCurrentPass()}get passRepeat(){return this.isUnwinding?0:this.config.repeat}playDirected(e,t){if(0===this.tweens.length)return;let i=this.isPlaying;i&&this.isForward===t?t||this.unwindFromHere():(this.isPlaying=!0,this.hasPlayedOnce=!0,this.isUnwinding=!t,this.currentRepeat=this.passRepeat,this.startTime=e,this.seekIndex=-1,this.isToggledForward=t,this.isReversed=!t,!1===this.hooks.isOwner?.()&&!i&&!this.isReversed&&this.hooks.assignCurrentState?.(),this.hasClaimed=!1,this.claimedAt=void 0,i?this.openPass():this.startChain())}get isAnimating(){return this.isPlaying&&this.hasClaimed}get isForward(){return!this.isReversed}seek(e){if(0===this.tweens.length)return;this.hooks.claim?.();let t=this.tweens.reduce((e,t)=>e+t.duration,0)*e,i=this.tweens.length-1,s=1,n=0;for(let e=0;e<this.tweens.length;e++){let r=this.tweens[e];if(n+r.duration>t){i=e,s=(t-n)/r.duration;break}n+=r.duration}for(0===s&&i>0&&(i-=1,s=1),-1===this.seekIndex&&(this.seekIndex=0);this.seekIndex<i;)this.tweens[this.seekIndex].seek(1),this.seekIndex+=1,this.tweens[this.seekIndex].rearm();for(;this.seekIndex>i;)this.tweens[this.seekIndex].seek(0),this.seekIndex-=1,this.tweens[this.seekIndex].seek(1);this.tweens[i].seek(s)}update(i){if(!this.isPlaying)return;if(this.claimWhenDue(i)){if(!1===this.hooks.isOwner?.())return void this.stop();this.currentTween.rearm()}if(this.hasClaimed&&!1===this.hooks.isOwner?.())return void this.stop();let s=P(this.config.delayDirection,this.isReversed);if(t(i,this.startTime,this.leadingDelay)||(this.currentTween.update(i),!this.isPlaying)||this.currentTween.isPlaying)return;if(this.isFirstTweenAfterStart=!1,this.isReversed?this.playingIndex>0:this.playingIndex<this.tweens.length-1)return void this.advanceToNextTween();let n=0;if("end"===s||"start-end"===s){if(t(i,this.currentTween.endTime,this.delay))return;n=this.delay}0!==this.currentRepeat?(this.currentRepeat>0&&(this.currentRepeat-=1),x(this.config.direction)&&("Toggle"===this.config.runMode?this.toggleDirection():this.isReversed=!this.isReversed),this.startTime=e(this.currentTween.endTime,n),this.playingIndex=this.isReversed?this.tweens.length-1:0,"normal"===this.config.direction&&this.currentTween.seek(this.currentTween.isReversed?1:0),this.openPass()):this.stop()}advanceToNextTween(){let e=this.currentTween;e.isPingpong&&e.config.repeat%2==1&&e.seek(e.isReversed?0:1);let t=e.endTime,i=this.isReversed;this.playingIndex+=i?-1:1;let s=this.currentTween;i&&s.isPingpong&&s.config.repeat%2==1&&s.seek(1),this.resume(t)}startChain(){this.playingIndex=this.isReversed?this.tweens.length-1:0,this.isFirstTweenAfterStart=!0,this.openPass()}openPass(){if(this.claimWhenDue(this.startTime)&&!1===this.hooks.isOwner?.())return void this.stop();let t=this.tweens[0];this.hasClaimed&&!this.isReversed&&t&&0===t.duration&&(t.seek(1),!this.isPlaying)||this.resume(e(this.startTime,this.leadingDelay))}claimWhenDue(i){return!this.hasClaimed&&!t(i,this.startTime,this.leadingDelay)&&(this.hasClaimed=!0,this.claimedAt=e(this.startTime,this.leadingDelay),this.hooks.claim?.(this.claimedAt),!0)}get leadingDelay(){let e=P(this.config.delayDirection,this.isReversed);return"start-once"===e?this.isFirstTweenAfterStart?this.delay:0:"start"!==e&&"start-end"!==e||this.isReversed||0!==this.playingIndex||x(this.config.direction)&&!this.isFirstTweenAfterStart?0:this.delay}resume(e){let t=this.currentTween;this.isReversed&&"pingpong-rewind"===this.config.direction&&(t.overrideDirection="pingpong-rewind"),t.isReversed=!(!this.isReversed||"normal"!==t.repeatDirection&&t.config.repeat%2==1),t.start(e),this.isUnwinding&&t.endAfterCurrentPass()}toggleDirection(){this.isToggledForward=!this.isToggledForward,this.isReversed=!this.isToggledForward}};export{c as a,f as b,C as c,I as d,d as e,p as f,D as g};
|
|
1
|
+
import{b as e,c as t}from"./runtime-chunk-HD7WF3XN.js";import{g as i}from"./runtime-chunk-RTLL6WIB.js";import{Sa as s}from"./runtime-chunk-NY4SLVL4.js";import{Ab as n,Bb as r,Cb as a,Me as h,qe as o}from"./runtime-chunk-KPOUV3HD.js";var l=null;function d(e){l=e}function p(){return l}function c(e){let t=e?.tracks.filter(e=>"vector"===e.ValueTypeName||"quaternion"===e.ValueTypeName).map(e=>e.times.length);if(t?.length){let e=i(t);return e&&e>2?e:2}return 2}function u(e){let t=this._clip.duration,i=this._clip.start??0,s=this.loop,r=this.time+e,h=this._loopCount,o=s===a;if(0===e)return-1===h||!o||1&~h?r:t-(r-i);if(s===n){-1===h&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===h&&(e>=0?(h=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),r>=t||r<i){let s=Math.floor((r-i)/(t-i));r-=(t-i)*s,h+=Math.abs(s);let n=this.repetitions-h;if(n<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,o||(r=e>0?t:i,1===this.repetitions&&(r=t)),this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===n){let t=e<0;this._setEndings(t,!t,o)}else this._setEndings(!1,!1,o);this._loopCount=h,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:s})}}else this.time=r;if(o&&!(1&~h))return t-(r-i)}return r}var g=!1,m=new WeakSet;function f(e){return Array.isArray(e.identity)?e.identity[0]:e.uuid}function w(e){return"Empty"===e.data.type&&Array.isArray(e.data.animations)?e.data.animations:[]}function y(e,t){return"number"==typeof e&&isFinite(e)&&e>0?e:t}function T(e,t){let i=e.filter(e=>e.info.id===t);if(i.length)return i;let s=e.filter(e=>e.info.name===t);if(s.length)return s;let n=t.toLowerCase(),r=e.filter(e=>e.info.name.toLowerCase()===n);return r.length?r:e.filter(e=>e.info.name.toLowerCase().endsWith("_"+n))}function v(e){return`"${e.name}" has no imported animation clips — getAnimations() lists the objects that do.`}function k(e,t,i){if(!i)return`no clip "${e}" in the scene — getAnimations() lists them.`;let s=t.map(e=>`"${e.info.name}"`).join(", ");return`"${i.name}" has no clip "${e}" — its clips: ${s}.`}var C=class{constructor(e,t,i,n){this.scene=e,this.requestRender=t,this.updateDisplayProgress=i,this.animationInspectorState=n,this.clipIdToAction={},this.activeClip=null,this.clipDurations=new WeakMap,this.needsUpdate=!1,this.addClip=e=>{"Empty"===e.data.type&&Array.isArray(e.data.animations)&&e.data.animations.forEach((t,i)=>{let n=t[0]+"/"+f(e);if(this.clipIdToAction[n])return;let r=o.parse(s(t));e.animations[i]=r,this.clipDurations.set(r,r.duration);let a=this.mixer.clipAction(r,e);!1===g&&(Object.getPrototypeOf(a)._updateTime=u,g=!0),a.clampWhenFinished=!0,this.clipIdToAction[n]=a})},this.mixer=new h(e),this.scene.traverseEntity(this.addClip)}rebindClips(){this.mixer.stopAllAction(),this.mixer=new h(this.scene),this.clipIdToAction={},this.activeClip=null,this.scene.traverseEntity(this.addClip)}deleteClip(e,t){let i=this.scene.find(t);if(!i)return;let s=i.animations.find(t=>t.uuid===e);if(!s)return;let n=this.clipIdToAction[e];!n||(n.stop(),this.mixer.uncacheClip(s),delete this.clipIdToAction[e],i.animations=i.animations.filter(t=>t.uuid!==e))}get isPlaying(){return Object.values(this.clipIdToAction).some(e=>e.isRunning())}playFromInspector(e){this.mixer.stopAllAction();let t=this.clipIdToAction[e];!t||(t.play(),this.activeClip=t.getClip(),this.scene.markShadowsDirty(),this.requestRender())}onExitPlayMode(){Object.values(this.clipIdToAction).forEach(e=>{e.repetitions=1/0,e.loop=r,e.timeScale=1,m.delete(e)}),this.mixer.stopAllAction(),this.scene.markShadowsDirty(),this.requestRender()}play(e){let t=e.clipId+"/"+e.object,i=this.clipIdToAction[t];if(i)return i.repetitions=e.repeat>=0?e.repeat+1:1/0,i.loop="pingpong"!==e.direction&&"pingpong-rewind"!==e.direction||0===e.repeat?r:a,i.play(),i.paused=!1,this.requestRender(),i}startClip(e,t,{start:i=0,end:s,fade:n=0}){m.delete(e),e.reset(),e.time=i;let r=e.getClip();r.start=i,r.duration=s??this.fullDuration(e),Object.entries(this.clipIdToAction).forEach(([i,s])=>{s===e||i.split("/")[1]!==t||(m.delete(s),n>0?s.fadeOut(n):s.stop())}),n>0&&e.fadeIn(n)}resumeClip(e){return!!m.has(e)&&(m.delete(e),e.paused=!1,e.play(),this.requestRender(),!0)}holdClips(e,t){let i=!1;Object.entries(this.clipIdToAction).forEach(([s,n])=>{let[r,a]=s.split("/");if(t(r,a))if("pause"===e){if(!n.isRunning())return;n.paused=!0,m.add(n)}else{if(!n.enabled||!n.isRunning()&&!n.paused)return;n.paused=!0,m.delete(n),n.time=n.getClip().start??0,n._loopCount=-1,i=!0}}),i&&(this.needsUpdate=!0,this.scene.markShadowsDirty(),this.requestRender())}animatedEntity(e){let t;return e.traverseEntity(e=>!!t||(w(e).length?(t=e,!0):void 0)),t||e.traverseEntityAncestors(e=>{!t&&w(e).length&&(t=e)}),t}clips(e){return this.ownedClips(e).map(e=>e.info)}playClip(e,t,i={}){let s=this.ownedClips(e);if(!s.length)return{ok:!1,warning:v(e)};let n=void 0===t?s[0]:T(s,t)[0];if(!n)return{ok:!1,warning:k(t,s,e)};let r=this.play({clipId:n.info.id,object:n.key,repeat:(a=i.loop,void 0===a||!0===a?-1:"number"==typeof a&&a>=1?Math.round(a)-1:0),direction:i.pingpong?"pingpong":"normal"});var a;return r?(r.timeScale=y(i.speed,1),this.resumeClip(r)||this.startClip(r,n.key,{fade:y(i.fade,0)}),{ok:!0,clip:n.info}):{ok:!1,warning:`clip "${n.info.name}" has not loaded yet.`}}holdClipsOf(e,t,i){let s=this.ownedClips(t);if(t&&!s.length)return{ok:!1,warning:v(t)};if(void 0!==i){let e=T(s,i);if(!e.length)return{ok:!1,warning:k(i,s,t)};s=e}let n=new Set(s.map(e=>e.info.id+"/"+e.key));return this.holdClips(e,(e,t)=>n.has(e+"/"+t)),{ok:!0}}ownedClips(e){let t=[];if(e){let i=this.animatedEntity(e);i&&t.push(i)}else this.scene.traverseEntity(e=>{w(e).length&&t.push(e)});return t.flatMap(e=>{let t=f(e),i={id:e.uuid,name:e.name};return w(e).map(([e,s])=>{let n=this.clipIdToAction[e+"/"+t];return{info:{id:e,name:s,duration:n?Math.round(1e3*this.fullDuration(n))/1e3:0,object:i},key:t,action:n}})})}fullDuration(e){let t=e.getClip();return this.clipDurations.get(t)??t.duration}resumeFromInspector(e){let t=this.clipIdToAction[e];!t||(t.play(),t.paused=!1,this.scene.markShadowsDirty(),this.requestRender())}pauseFromInspector(e){let t=this.clipIdToAction[e];!t||(t.paused=!0)}stop(){this.mixer.stopAllAction(),this.scene.markShadowsDirty(),this.requestRender()}update(e){if(this.needsUpdate)this.needsUpdate=!1;else if(!1===this.isPlaying||this.animationInspectorState?.isScrubbing)return;this.mixer.update(e/1e3),this.activeClip&&this.updateDisplayProgress(Math.round(this.mixer.time/this.activeClip.duration*(this.maxFrames-1)%(this.maxFrames-1))),this.requestRender()}get maxFrames(){return c(this.activeClip??void 0)}setProgressFromInspector(e,t){if(!this.clipIdToAction[t])return;this.activeClip!==this.clipIdToAction[t].getClip()&&this.playFromInspector(t);let i=this.clipIdToAction[t].paused;this.clipIdToAction[t].paused=!1,this.mixer.setTime(Math.min(e/(this.maxFrames-1),.9999)*this.activeClip.duration),this.scene.markShadowsDirty(),this.requestRender(),i&&(this.clipIdToAction[t].paused=!0)}},A="imported animations only play while the scene runs (Play mode, the Preview tab, exports).";function I(e,t){let i=e=>`no object named "${e}".`,s=(s,n,r)=>{let a=e();if(!a)return{ok:!1,warning:A};if(void 0===n)return a.holdClipsOf(s,void 0,r);let h=t(n);return h?a.holdClipsOf(s,h,r):{ok:!1,warning:i(n)}};return{getAnimations:s=>{let n=e();if(!n)return{clips:[],warning:A};if(void 0===s)return{clips:n.clips()};let r=t(s);return r?{clips:n.clips(r)}:{clips:[],warning:i(s)}},playAnimation:(s,n,r)=>{let a=e();if(!a)return{warning:A};let h=t(s);if(!h)return{warning:i(s)};let o=a.playClip(h,n,r);return{clip:o.clip,warning:o.warning}},pauseAnimation:(e,t)=>s("pause",e,t),stopAnimation:(e,t)=>s("stop",e,t)}}var R=Math.fround;function x(e){return"pingpong"===e||"pingpong-rewind"===e}function P(e,t){return t?"start"===e?"end":"end"===e?"start":e:e}var D=class{constructor(e,t,i={}){this.hooks=i,this.isPlaying=!1,this.playingIndex=0,this.seekIndex=-1,this.currentRepeat=0,this.isReversed=!1,this.startTime=0,this.isToggledForward=!1,this.hasPlayedOnce=!1,this.isFirstTweenAfterStart=!1,this.hasClaimed=!1,this.isUnwinding=!1,this.config=e,this.tweens=t,this.delay=R(e.delay/1e3)}get currentTween(){return this.tweens[this.playingIndex]}get claimTime(){return this.claimedAt}play(e){if(0===this.tweens.length||this.isPlaying&&"Toggle"!==this.config.runMode||this.hasPlayedOnce&&"Once"===this.config.runMode)return;let t=this.isPlaying;this.isPlaying=!0,this.hasPlayedOnce=!0,this.isUnwinding=!1,this.currentRepeat=this.passRepeat,this.startTime=e,this.seekIndex=-1,!1===this.hooks.isOwner?.()&&(this.isToggledForward=!1,!t&&!this.isReversed&&this.hooks.assignCurrentState?.()),this.hasClaimed=!1,this.claimedAt=void 0,"Toggle"===this.config.runMode?(this.toggleDirection(),t?this.openPass():this.startChain()):this.startChain()}stop(){this.currentTween?.stop(),this.isPlaying=!1,this.isReversed=!1,this.hasClaimed=!1,this.claimedAt=void 0,this.isUnwinding=!1}unwindFromHere(){this.isUnwinding=!0,this.currentRepeat=0,this.currentTween?.endAfterCurrentPass()}get passRepeat(){return this.isUnwinding?0:this.config.repeat}playDirected(e,t){if(0===this.tweens.length)return;let i=this.isPlaying;i&&this.isForward===t?t||this.unwindFromHere():(this.isPlaying=!0,this.hasPlayedOnce=!0,this.isUnwinding=!t,this.currentRepeat=this.passRepeat,this.startTime=e,this.seekIndex=-1,this.isToggledForward=t,this.isReversed=!t,!1===this.hooks.isOwner?.()&&!i&&!this.isReversed&&this.hooks.assignCurrentState?.(),this.hasClaimed=!1,this.claimedAt=void 0,i?this.openPass():this.startChain())}get isAnimating(){return this.isPlaying&&this.hasClaimed}get isForward(){return!this.isReversed}seek(e){if(0===this.tweens.length)return;this.hooks.claim?.();let t=this.tweens.reduce((e,t)=>e+t.duration,0)*e,i=this.tweens.length-1,s=1,n=0;for(let e=0;e<this.tweens.length;e++){let r=this.tweens[e];if(n+r.duration>t){i=e,s=(t-n)/r.duration;break}n+=r.duration}for(0===s&&i>0&&(i-=1,s=1),-1===this.seekIndex&&(this.seekIndex=0);this.seekIndex<i;)this.tweens[this.seekIndex].seek(1),this.seekIndex+=1,this.tweens[this.seekIndex].rearm();for(;this.seekIndex>i;)this.tweens[this.seekIndex].seek(0),this.seekIndex-=1,this.tweens[this.seekIndex].seek(1);this.tweens[i].seek(s)}update(i){if(!this.isPlaying)return;if(this.claimWhenDue(i)){if(!1===this.hooks.isOwner?.())return void this.stop();this.currentTween.rearm()}if(this.hasClaimed&&!1===this.hooks.isOwner?.())return void this.stop();let s=P(this.config.delayDirection,this.isReversed);if(t(i,this.startTime,this.leadingDelay)||(this.currentTween.update(i),!this.isPlaying)||this.currentTween.isPlaying)return;if(this.isFirstTweenAfterStart=!1,this.isReversed?this.playingIndex>0:this.playingIndex<this.tweens.length-1)return void this.advanceToNextTween();let n=0;if("end"===s||"start-end"===s){if(t(i,this.currentTween.endTime,this.delay))return;n=this.delay}0!==this.currentRepeat?(this.currentRepeat>0&&(this.currentRepeat-=1),x(this.config.direction)&&("Toggle"===this.config.runMode?this.toggleDirection():this.isReversed=!this.isReversed),this.startTime=e(this.currentTween.endTime,n),this.playingIndex=this.isReversed?this.tweens.length-1:0,"normal"===this.config.direction&&this.currentTween.seek(this.currentTween.isReversed?1:0),this.openPass()):this.stop()}advanceToNextTween(){let e=this.currentTween;e.isPingpong&&e.config.repeat%2==1&&e.seek(e.isReversed?0:1);let t=e.endTime,i=this.isReversed;this.playingIndex+=i?-1:1;let s=this.currentTween;i&&s.isPingpong&&s.config.repeat%2==1&&s.seek(1),this.resume(t)}startChain(){this.playingIndex=this.isReversed?this.tweens.length-1:0,this.isFirstTweenAfterStart=!0,this.openPass()}openPass(){if(this.claimWhenDue(this.startTime)&&!1===this.hooks.isOwner?.())return void this.stop();let t=this.tweens[0];this.hasClaimed&&!this.isReversed&&t&&0===t.duration&&(t.seek(1),!this.isPlaying)||this.resume(e(this.startTime,this.leadingDelay))}claimWhenDue(i){return!this.hasClaimed&&!t(i,this.startTime,this.leadingDelay)&&(this.hasClaimed=!0,this.claimedAt=e(this.startTime,this.leadingDelay),this.hooks.claim?.(this.claimedAt),!0)}get leadingDelay(){let e=P(this.config.delayDirection,this.isReversed);return"start-once"===e?this.isFirstTweenAfterStart?this.delay:0:"start"!==e&&"start-end"!==e||this.isReversed||0!==this.playingIndex||x(this.config.direction)&&!this.isFirstTweenAfterStart?0:this.delay}resume(e){let t=this.currentTween;this.isReversed&&"pingpong-rewind"===this.config.direction&&(t.overrideDirection="pingpong-rewind"),t.isReversed=!(!this.isReversed||"normal"!==t.repeatDirection&&t.config.repeat%2==1),t.start(e),this.isUnwinding&&t.endAfterCurrentPass()}toggleDirection(){this.isToggledForward=!this.isToggledForward,this.isReversed=!this.isToggledForward}};export{c as a,f as b,C as c,I as d,d as e,p as f,D as g};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./runtime-chunk-TU4KDRKR.js";import{$ as o}from"./runtime-chunk-
|
|
1
|
+
import{a as e}from"./runtime-chunk-TU4KDRKR.js";import{$ as o}from"./runtime-chunk-AORANPJP.js";import{Fc as n,Hc as t,Lc as r}from"./runtime-chunk-KPOUV3HD.js";function s(e){return!0===e?.depthPrepass}var i=!0;try{i="0"!==new URLSearchParams(window.location.search).get("dbgdepthprepass")}catch{}function a(e){return i&&e.transparent&&e.depthTest&&!e.wireframe&&!e.shapeBlend&&!function(e){let o=e?.layers;if(!o)return!1;for(let e of o)if("transmission"===e.data.type&&e.data.visible)return!0;return!1}(e.data)}var c={enabled:!1},l=new WeakMap;function u(e){if(!c.enabled)return e;let o=l.get(e);return o||(o={...e,bloom:{...e.bloom,kernelSize:0},depthOfField:{...e.depthOfField,enabled:!1}},l.set(e,o)),o}var f=new WeakSet;function p(e){if(!e.isPointLight&&!e.isSpotLight&&!e.isDirectionalLight)return!1;if(c.enabled){if(!0===e.castShadow)return e.castShadow=!1,f.add(e),!0}else if(f.has(e)&&(f.delete(e),!1===e.castShadow))return e.castShadow=!0,!0;return!1}function h(s,i){switch(s.type){case"cavity":return function(e,o){return{...d(e,o),ridge:e.ridge,valley:e.valley}}(s,i);case"dust":return function(n,t){return{...d(n,t),color:e(n.color,t),coverage:o(n.coverage,t)??.2,softness:o(n.softness,t)??.2,noiseStrength:o(n.noiseStrength,t)??.2,noiseScale:o(n.noiseScale,t)??1}}(s,i);case"fresnel":return function(o,n){let{bias:t,scale:r,intensity:s,factor:i,color:a}=o;return{...d(o,n),color:e(a,n),bias:t,scale:r,intensity:s,factor:i}}(s,i);case"gradient":return function(e,o){let{gradientType:t,smooth:s,colors:i,steps:a,angle:c,offset:l,morph:u}=e;return{...d(e,o),gradientType:t,smooth:s,colors:i.map(e=>new r(e[0],e[1],e[2],e[3])),num:i.length,steps:a,offset:new n(...l.map(e=>"number"==typeof e?e:0)),morph:new n(...u.map(e=>"number"==typeof e?e:0)),angle:c}}(s,i);case"depth":return function(e,o){let{gradientType:n,near:s,far:i,isVector:a,isWorldSpace:c,origin:l,direction:u,colors:f,steps:p,smooth:h}=e;return{...d(e,o),gradientType:n,near:s,far:i,isVector:a,isWorldSpace:c,origin:new t(...l),direction:u?new t(...u):new t(1,0,0),colors:f.map(e=>void 0!==e?new r(e[0],e[1],e[2],e[3]):new r(0,0,0,0)),steps:p.slice(0,f.length),smooth:h}}(s,i);case"normal":return function(e,o){let{cnormal:n}=e;return{...d(e,o),cnormal:new t(n[0],n[1],n[2])}}(s,i);case"noise":return function(o,r){return{...d(o,r),scale:o.scale,move:o.move,fA:new n(...o.fA.map(e=>"number"==typeof e?e:0)),fB:new n(...o.fB.map(e=>"number"==typeof e?e:0)),size:new t(...o.size),distortion:new n(...o.distortion.map(e=>"number"==typeof e?e:0)),colorA:e(o.colorA,r),colorB:e(o.colorB,r),colorC:e(o.colorC,r),colorD:e(o.colorD,r),noiseType:o.noiseType,voronoiStyle:o.voronoiStyle,highCut:o.highCut,lowCut:o.lowCut,smoothness:o.smoothness,seed:o.seed,quality:o.quality}}(s,i);case"rainbow":return function(e,o){return{...d(e,o),filmThickness:e.filmThickness,movement:e.movement,wavelengths:new t(...e.wavelengths),noiseStrength:e.noiseStrength,noiseScale:e.noiseScale,offset:new t(...e.offset)}}(s,i);case"toon":return function(o,n){return{...d(o,n),positioning:o.positioning,colors:o.colors.map(e=>new r(e[0],e[1],e[2],e[3])),num:o.colors.length,steps:o.steps,source:new t(...o.source),isWorldSpace:o.isWorldSpace,noiseStrength:o.noiseStrength,noiseScale:o.noiseScale,shadowColor:e(o.shadowColor,n),offset:new t(...o.offset)}}(s,i);case"outline":return function(o,n){return{...d(o,n),outlineColor:e(o.outlineColor,n),contourColor:e(o.contourColor,n),outlineWidth:o.outlineWidth,contourWidth:o.contourWidth,outlineThreshold:o.outlineThreshold,contourThreshold:o.contourThreshold,outlineSmoothing:o.outlineSmoothing,contourFrequency:o.contourFrequency,contourDirection:new t(...o.contourDirection),positionalLines:o.positionalLines,compensation:o.compensation}}(s,i);case"transmission":return function(o,n){return{...d(o,n),thickness:o.thickness,ior:o.ior,roughness:o.roughness,attenuationColor:void 0!==o.attenuationColor?e(o.attenuationColor,n):{r:1,g:1,b:1,a:1},attenuationDistance:o.attenuationDistance??0}}(s,i);case"reflection":return function(e,n){return{...d(e,n),blur:o(e.blur,n)??0,thickness:o(e.thickness,n)??.001,steps:o(e.steps,n)??60,stepSize:o(e.stepSize,n)??.005,tracingMode:e.tracingMode,mirror:e.mirror??0}}(s,i);case"pattern":return function(o,t){return{...d(o,t),style:o.style,projection:o.projection,axis:o.axis,blending:o.blending,offset:new n(...o.offset.map(e=>"number"==typeof e?e:0)),colorA:e(o.colorA,t),colorB:e(o.colorB,t),frequency:new n(...o.frequency.map(e=>"number"==typeof e?e:0)),size:o.size,variation:o.variation,smoothness:o.smoothness,zigzag:o.zigzag,rotation:o.rotation,vertical:new n(...o.vertical.map(e=>"number"==typeof e?e:0)),horizontal:new n(...o.horizontal.map(e=>"number"==typeof e?e:0)),sides:o.sides}}(s,i);case"vertexColor":return d(s,i);default:return function(o,n){return{...d(o,n),color:e(o.color,n)}}(s,i)}}function m(e){return{type:e.type}}function d(e,o){let{alpha:n,mode:t,isMask:r}=e,s="string"==typeof n?Number(o.getVariable(n)??100)/100:n;return{...m(e),alpha:s,mode:t,isMask:r}}export{s as a,a as b,c,u as d,p as e,h as f};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as s}from"./runtime-chunk-
|
|
1
|
+
import{e as s}from"./runtime-chunk-YPL52E4O.js";import{a as t,b as i}from"./runtime-chunk-YDR7MZGF.js";import{Be as a,Hc as o,Vc as e,Ve as h,Ye as r,Zc as d}from"./runtime-chunk-KPOUV3HD.js";var n=class extends(t(h)){constructor(s,t=15,i=6710886){super(s,t,i),this.object=s,this.name=`PointLightHelper: ${s.uuid}`}raycast(s,t){i(this.object,n.geometryHelper,s,t)}},p=class extends(s(a,n)){constructor(s,t,i){super(),this.super_Entity(s,t),this.castShadow=!0,this.shadow.mapSize.width=1024,this.shadow.mapSize.height=1024,this.shadow.normalBias=1,this.layers.enable(3);let a=this.shadow.camera;a.fov=90,a.aspect=1,a.near=100,a.far=2500;let h=new o(-a.far+this.position.x,-a.far+this.position.y,-a.far+this.position.z),n=new o(a.far+this.position.x,a.far+this.position.y,a.far+this.position.z),p=new d(h,n),c=new r(p,new e(16755200));c.visible=!1,this.gizmos.shadowmap=c,this.update()}update(){if(this.shadow&&(this.shadow.camera.updateProjectionMatrix(),this.gizmos))for(let s in this.gizmos){let t=this.gizmos[s];if(t instanceof r){let s=this.shadow.camera,i=new o(-s.far+this.position.x,-s.far+this.position.y,-s.far+this.position.z),a=new o(s.far+this.position.x,s.far+this.position.y,s.far+this.position.z);t.box.set(i,a),t.updateMatrixWorld(!0)}}}updateMatrixWorld(s){super.updateMatrixWorld(s),this.objectHelper&&this.objectHelper.update()}updateState(s,t){this.updateState_Light(s,t),void 0!==s.distance&&(this.distance=s.distance),void 0!==s.decay&&(this.decay=s.decay),void 0!==s.shadowRadius&&(this.shadow.radius=s.shadowRadius),void 0!==s.shadowResolution&&(this.shadow.mapSize.set(s.shadowResolution,s.shadowResolution),this.shadow.map&&(this.shadow.map.dispose(),this.shadow.map=null))}};export{p as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as t}from"./runtime-chunk-
|
|
1
|
+
import{e as t}from"./runtime-chunk-YPL52E4O.js";import{a as e,b as s}from"./runtime-chunk-YDR7MZGF.js";import{Ae as a,De as i,Ec as o,Gc as h,Hc as r,Ue as d,We as n,Xe as c}from"./runtime-chunk-KPOUV3HD.js";var l=class extends(e(n)){constructor(t,e=15,s=10066329){super(t,e,s),this.object=t,this.added=!1,this.name=`DirectionalLightHelper: ${t.uuid}`}raycast(t,e){s(this.object,l.geometryHelper,t,e)}},p=class extends(t(i,l)){constructor(t,e,s){super(),this.super_Entity(t,e),this.castShadow=!0,this.shadow.mapSize.width=2048,this.shadow.mapSize.height=2048,this.shadow.normalBias=1,this.layers.enable(3);let a=this.shadow.camera;a.top=1250,a.bottom=-1250,a.right=1250,a.left=-1250,a.near=-1e4,a.far=2500;let i=new c(this.shadow.camera);i.visible=!1,this.gizmos.shadowmap=i}update(){this.shadow.camera.updateProjectionMatrix();for(let t in this.gizmos){let e=this.gizmos[t];e instanceof c&&e.update()}}updateMatrixWorld(t){super.updateMatrixWorld(t),this.objectHelper&&this.objectHelper.update()}updateState(t,e){this.updateState_Light(t,e);let s=void 0!==t.depth&&t.depth!==this.shadow.camera.far||void 0!==t.size&&t.size/2!==this.shadow.camera.right;void 0!==t.size&&function(t,e){t.shadow.camera.right=e/2,t.shadow.camera.left=-e/2,t.shadow.camera.top=e/2,t.shadow.camera.bottom=-e/2,t.shadow.needsUpdate=!0}(this,t.size),void 0!==t.shadowRadius&&(this.shadow.radius=t.shadowRadius),void 0!==t.shadowResolution&&(this.shadow.mapSize.set(t.shadowResolution,t.shadowResolution),this.shadow.map&&(this.shadow.map.dispose(),this.shadow.map=null)),void 0!==t.penumbraSize&&e.scene.markPenumbraSizeDirty(),s&&this.update()}},m=class extends(e(d)){constructor(t,e=6710886){super(t,e),this.object=t,this.matrix=t.matrixWorld,this.name=`SpotLightHelper: ${t.uuid}`}raycast(t,e){s(this.object,m.geometryHelper,t,e)}update(){if(void 0!==this.object){let t=m._vector,e=this.object.distance?this.object.distance:1e3,s=e*Math.tan(this.object.angle);this.cone.scale.set(s,s,e),t.setFromMatrixPosition(this.object.target.matrixWorld),this.cone.lookAt(t);let a=void 0!==this.color?this.color:this.light.color;if(this.cone.material instanceof Array)for(let t=0,e=this.cone.material.length;t<e;t++)this.cone.material[t].color.set(a);else this.cone.material.color.set(a)}}},u=m;u._vector=new r;var w=new r,b=new r,g=new h,v=class extends(t(a,u)){constructor(t,e,s){super(),this.super_Entity(t,e),this.castShadow=!0,this.shadow.mapSize.width=1024,this.shadow.mapSize.height=1024,this.shadow.normalBias=1,this.layers.enable(3);let a=this.shadow.camera;a.fov=2*o.RAD2DEG*this.angle,a.aspect=1,a.near=100,a.far=2500;let i=new c(this.shadow.camera);i.visible=!1,this.gizmos.shadowmap=i,this.update()}update(){this.shadow.camera.updateProjectionMatrix();for(let t in this.gizmos){let e=this.gizmos[t];e instanceof c&&e.update()}}updateMatrixWorld(t){super.updateMatrixWorld(t),b.setFromMatrixPosition(this.matrixWorld),g.setFromRotationMatrix(this.matrixWorld),w.copy(this.up).applyQuaternion(g).negate().multiplyScalar(this.distance),this.target.position.copy(b).add(w),this.target.updateMatrixWorld(),this.objectHelper&&this.objectHelper.update()}updateState(t,e){this.updateState_Light(t,e),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.angle&&(this.angle=t.angle),void 0!==t.penumbra&&(this.penumbra=t.penumbra),void 0!==t.shadowRadius&&(this.shadow.radius=t.shadowRadius),void 0!==t.penumbraSize&&e.scene.markPenumbraSizeDirty(),void 0!==t.shadowResolution&&(this.shadow.mapSize.set(t.shadowResolution,t.shadowResolution),this.shadow.map&&(this.shadow.map.dispose(),this.shadow.map=null))}};export{p as a,v as b};
|
|
Binary file
|
|
Binary file
|