@splinetool/runtime 2.0.67 → 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-6SIPKGSQ.js → runtime-chunk-26PJ2PZE.js} +1 -1
- package/build/{runtime-chunk-6SIPKGSQ.js.br → runtime-chunk-26PJ2PZE.js.br} +0 -0
- package/build/runtime-chunk-26PJ2PZE.js.gz +0 -0
- package/build/{runtime-chunk-JEENI54C.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-LQKJ5BQE.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-YILRZIDA.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-P52UKW7M.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-EM7KULU2.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-TO6TF2CM.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-ZJVCGO54.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-JII4DUKW.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-HGWI2JBT.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-XITQ5OWF.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-V3HWXCOG.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-AJ6RJL72.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-NBAYLCDH.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-52ERQSL4.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-SX4257ET.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-CAMNTARH.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-NPGIHYRE.js → runtime-chunk-RAVR2ONV.js} +1 -1
- package/build/runtime-chunk-RAVR2ONV.js.br +0 -0
- package/build/runtime-chunk-RAVR2ONV.js.gz +0 -0
- package/build/{runtime-chunk-BEKJBZR2.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-EKZWJP4E.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-DF4CFBLV.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-5IODBOHZ.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-E5DWC4WG.js → runtime-chunk-VZVG6MV6.js} +1 -1
- package/build/runtime-chunk-VZVG6MV6.js.br +0 -0
- package/build/runtime-chunk-VZVG6MV6.js.gz +0 -0
- package/build/{runtime-chunk-KLCXINYB.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-ZQS2UDZ6.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-QC4TYCYC.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-S4SR4RSC.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-M54T2TVG.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-HCD7CVAC.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-KOJEEARH.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-BDL6P7P4.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-S7H5BP7X.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-WK6CST52.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-TRNZW23U.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-JEOQBSYP.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-GDYZOJXT.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-2JJXDQIS.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-IVIEMBAO.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-WU6P7WTX.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-L6OKDPH7.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-PH5W5XEI.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-GWRYX4OZ.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-5KAUGGRX.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-LOZ4QGPC.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-U4DFO45X.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-O2FON5XD.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-IR73C4IB.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-52ERQSL4.js.br +0 -0
- package/build/runtime-chunk-52ERQSL4.js.gz +0 -0
- package/build/runtime-chunk-5IODBOHZ.js.br +0 -0
- package/build/runtime-chunk-5IODBOHZ.js.gz +0 -0
- package/build/runtime-chunk-6SIPKGSQ.js.gz +0 -0
- package/build/runtime-chunk-AJ6RJL72.js.br +0 -0
- package/build/runtime-chunk-AJ6RJL72.js.gz +0 -0
- package/build/runtime-chunk-BEKJBZR2.js.br +0 -0
- package/build/runtime-chunk-BEKJBZR2.js.gz +0 -0
- package/build/runtime-chunk-CAMNTARH.js.br +0 -0
- package/build/runtime-chunk-CAMNTARH.js.gz +0 -0
- package/build/runtime-chunk-DF4CFBLV.js.br +0 -0
- package/build/runtime-chunk-DF4CFBLV.js.gz +0 -0
- package/build/runtime-chunk-E5DWC4WG.js.br +0 -0
- package/build/runtime-chunk-E5DWC4WG.js.gz +0 -0
- package/build/runtime-chunk-EKZWJP4E.js.br +0 -3
- package/build/runtime-chunk-EKZWJP4E.js.gz +0 -0
- package/build/runtime-chunk-EM7KULU2.js.br +0 -0
- package/build/runtime-chunk-EM7KULU2.js.gz +0 -0
- package/build/runtime-chunk-H3NKMXAA.js +0 -1
- package/build/runtime-chunk-H3NKMXAA.js.br +0 -0
- package/build/runtime-chunk-H3NKMXAA.js.gz +0 -0
- package/build/runtime-chunk-HGWI2JBT.js.br +0 -0
- package/build/runtime-chunk-HGWI2JBT.js.gz +0 -0
- package/build/runtime-chunk-JEENI54C.js.br +0 -0
- package/build/runtime-chunk-JEENI54C.js.gz +0 -0
- package/build/runtime-chunk-JII4DUKW.js.br +0 -0
- package/build/runtime-chunk-JII4DUKW.js.gz +0 -0
- package/build/runtime-chunk-KLCXINYB.js.br +0 -0
- package/build/runtime-chunk-KLCXINYB.js.gz +0 -0
- package/build/runtime-chunk-LQKJ5BQE.js.br +0 -0
- package/build/runtime-chunk-LQKJ5BQE.js.gz +0 -0
- package/build/runtime-chunk-NBAYLCDH.js.br +0 -0
- package/build/runtime-chunk-NBAYLCDH.js.gz +0 -0
- package/build/runtime-chunk-NPGIHYRE.js.br +0 -0
- package/build/runtime-chunk-NPGIHYRE.js.gz +0 -0
- package/build/runtime-chunk-P52UKW7M.js.br +0 -0
- package/build/runtime-chunk-P52UKW7M.js.gz +0 -0
- package/build/runtime-chunk-SX4257ET.js.br +0 -0
- package/build/runtime-chunk-SX4257ET.js.gz +0 -0
- package/build/runtime-chunk-TN7SLRFX.js.br +0 -0
- package/build/runtime-chunk-TO6TF2CM.js.br +0 -0
- package/build/runtime-chunk-TO6TF2CM.js.gz +0 -0
- package/build/runtime-chunk-V3HWXCOG.js.br +0 -0
- package/build/runtime-chunk-V3HWXCOG.js.gz +0 -0
- package/build/runtime-chunk-XITQ5OWF.js.br +0 -0
- package/build/runtime-chunk-XITQ5OWF.js.gz +0 -0
- package/build/runtime-chunk-YILRZIDA.js.br +0 -0
- package/build/runtime-chunk-YILRZIDA.js.gz +0 -0
- package/build/runtime-chunk-ZJVCGO54.js.br +0 -0
- package/build/runtime-chunk-ZJVCGO54.js.gz +0 -0
- package/build/runtime-classicRuntime-ZQS2UDZ6.js.br +0 -0
- package/build/runtime-classicRuntime-ZQS2UDZ6.js.gz +0 -0
- package/build/runtime-cloners-QC4TYCYC.js.br +0 -0
- package/build/runtime-cloners-QC4TYCYC.js.gz +0 -0
- package/build/runtime-components-S4SR4RSC.js.br +0 -0
- package/build/runtime-components-S4SR4RSC.js.gz +0 -0
- package/build/runtime-createDestroy-M54T2TVG.js.br +0 -0
- package/build/runtime-createDestroy-M54T2TVG.js.gz +0 -0
- package/build/runtime-dragDrop-HCD7CVAC.js.br +0 -0
- package/build/runtime-dragDrop-HCD7CVAC.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-KOJEEARH.js.br +0 -0
- package/build/runtime-gameControls-KOJEEARH.js.gz +0 -0
- package/build/runtime-hair-BDL6P7P4.js.br +0 -2
- package/build/runtime-hair-BDL6P7P4.js.gz +0 -0
- package/build/runtime-mergeStaticGeometries-S7H5BP7X.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-S7H5BP7X.js.gz +0 -0
- package/build/runtime-miscActions-WK6CST52.js.br +0 -0
- package/build/runtime-miscActions-WK6CST52.js.gz +0 -0
- package/build/runtime-mouseHover-TRNZW23U.js.br +0 -0
- package/build/runtime-mouseHover-TRNZW23U.js.gz +0 -0
- package/build/runtime-particles-JEOQBSYP.js.br +0 -0
- package/build/runtime-particles-JEOQBSYP.js.gz +0 -0
- package/build/runtime-paths-GDYZOJXT.js.br +0 -0
- package/build/runtime-paths-GDYZOJXT.js.gz +0 -0
- package/build/runtime-resize-2JJXDQIS.js.br +0 -0
- package/build/runtime-resize-2JJXDQIS.js.gz +0 -0
- package/build/runtime-sceneTransition-IVIEMBAO.js.br +0 -0
- package/build/runtime-sceneTransition-IVIEMBAO.js.gz +0 -0
- package/build/runtime-scroll-WU6P7WTX.js.br +0 -0
- package/build/runtime-scroll-WU6P7WTX.js.gz +0 -0
- package/build/runtime-shapeBlends-6AE23AF4.js +0 -1
- package/build/runtime-shapeBlends-6AE23AF4.js.br +0 -0
- package/build/runtime-shapeBlends-6AE23AF4.js.gz +0 -0
- package/build/runtime-text-L6OKDPH7.js.br +0 -0
- package/build/runtime-text-L6OKDPH7.js.gz +0 -0
- package/build/runtime-textInputs-PH5W5XEI.js.br +0 -0
- package/build/runtime-textInputs-PH5W5XEI.js.gz +0 -0
- package/build/runtime-timeline-GWRYX4OZ.js.br +0 -0
- package/build/runtime-timeline-GWRYX4OZ.js.gz +0 -0
- package/build/runtime-tracking-5KAUGGRX.js.br +0 -0
- package/build/runtime-tracking-5KAUGGRX.js.gz +0 -0
- package/build/runtime-transitions-LOZ4QGPC.js.br +0 -0
- package/build/runtime-transitions-LOZ4QGPC.js.gz +0 -0
- package/build/runtime-ui2d-U4DFO45X.js.br +0 -0
- package/build/runtime-ui2d-U4DFO45X.js.gz +0 -0
- package/build/runtime-vectorShapes-O2FON5XD.js.br +0 -0
- package/build/runtime-vectorShapes-O2FON5XD.js.gz +0 -0
- package/build/runtime-webgpu-IR73C4IB.js.br +0 -0
- package/build/runtime-webgpu-IR73C4IB.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./runtime-chunk-
|
|
1
|
+
import{a as r}from"./runtime-chunk-OYDCCM7U.js";import"./runtime-chunk-RAVR2ONV.js";import"./runtime-chunk-H2DLCIWQ.js";import"./runtime-chunk-XZUEQTES.js";import"./runtime-chunk-OERXYDZQ.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{c as m}from"./runtime-chunk-26PJ2PZE.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as n}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-RNMPWHS7.js";import"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";m.Cloner=r,n("cloners");
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./runtime-chunk-
|
|
1
|
+
import{a as e}from"./runtime-chunk-4VSGBAHA.js";import{a as t}from"./runtime-chunk-BYDEBV4A.js";import{d as n}from"./runtime-chunk-GZKGESGF.js";import{ja as i}from"./runtime-chunk-OERXYDZQ.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{c as s,h as o}from"./runtime-chunk-26PJ2PZE.js";import{d as r,e as a}from"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as p,d}from"./runtime-chunk-TZCHGFVF.js";import{Aa as l,Ba as c,Ia as h,J as u,h as m,i as f,va as y}from"./runtime-chunk-RNMPWHS7.js";import{Oc as v,Sc as g,od as j}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var k=class extends(n(g,t)){constructor(e,t,n){super(),this.isComponentObject=!0,"Instance"===t.type&&"string"==typeof e&&(t=this.transformAssignData(t,n)),this.super_Entity(e,t),this.objectHelper.update()}get isComponentRoot(){return"Component"===this.data.type&&"string"==typeof this.identity}get isInstanceRoot(){return"Instance"===this.data.type&&"string"==typeof this.identity}transformAssignData(e,t){let n=h.getComponentData({scene:t.scene.data,shared:t.shared.data},e.component);if(n){let t,i;for(let s of c.rootOverrideProps)void 0===e[s]?(void 0===t&&(t={...e}),t[s]=n.data[s]):(void 0===i&&(i={}),i[s]=e[s],void 0===t&&(t={...e}),t[s]=f.apply(n.data[s],e[s]));return this.overrideData=i,t}return{...y.defaultData,...e,...a(y.defaultData,c.rootOverrideProps)}}updateByOp(e,t,n,i){let s;if(this.isInstanceRoot&&!i)if(t=this.transformAssignData(t,n),0===e.type&&0===e.path.length&&this.component)for(let t of c.rootOverrideProps)t in e.props&&void 0===e.props[t]&&(void 0===s&&(s={...e,props:{...e.props}}),s.props[t]=this.component.data[t]);else if(0===e.type&&e.path.length>0&&c.rootOverrideProps.includes(e.path[0])){let n=e.path[0];void 0===s&&(s={...e,path:[],props:{[n]:t[n]}})}super.updateByOp(s??e,t,n,i)}updateState(e,t){this.updateState_Entity(e,t)}expandInstanceChildren(t){let n=this.data;if(void 0===this.component){let s=t.scene.find(n.component)??null,r=!1;if(s!==this.oldComponent){if(this.oldComponent){let n=0;for(let i of this.children){if(!o.is(i))break;t.scene.disposeAndUnregisterEntityRecursivelyIfNotReregistered(i),e(i),n+=1}this.children.splice(0,n)}r=!0}if(s){let e={};I(t,[this.uuid],n.overrides,this,s,s,0,r,e);for(let n of this.children)if(o.is(n)){let s=n.data;"Empty"===s.type&&s.animations&&n.traverseEntity(n=>{let s=n.dataPatched;if(n instanceof i&&s.bones&&s.boneInverses){let i=n.dataPatched;if(i.bones&&i.boneInverses){let s=i.bones.map(n=>t.scene.find(e[n])),o=i.boneInverses.map(e=>(new v).fromArray(e)),r=new j(s,o);n.bind(r,n.bindMatrix)}}else n.matrixAutoUpdate=!0})}}this.oldComponent=this.component}}};function D(e,t,n,i){return e.component===t&&r(e.identity,i)?e.overrideData===n?2:1:0}function I(e,t,n,i,r,a,p,d,c){if(p>50)return!1;if(i.component!==r){if(i.component){let e=i.component.instances.indexOf(i);e>=0&&i.component.instances.splice(e,1)}r.instances.find(e=>e===i)||r.instances.push(i),i.component=r}r instanceof k&&r.isInstanceRoot&&r.expandInstanceChildren(e);let h=0;for(let y of r.children)if(o.is(y)){let r=[...t,..."string"==typeof y.identity?[y.identity]:y.identity],v=l.resolve(n,r,1);null!=v&&!(v instanceof m)&&(Object.setPrototypeOf(v,m.prototype),console.error("wrong prototype"));let g,j=null;if(!d){let t=i.children[h];if(j=o.is(t)?t:null,null!==j){let e=D(j,y,v,r);g=e>=1?j.stateSelection:void 0,2!==e&&(j=null)}if(null===j&&(j=e.scene.findInstance(r)??null,null!==j)){let t=D(j,y,v,r);if(g=t>=1?j.stateSelection:void 0,2!==t)j=null;else{let t=j.parent.children.indexOf(j);j.parent.children.splice(t,1),i.children.splice(h,0,j),j.parent===i?t<=h&&console.error("not possible"):(j.parent=i,j.matrixWorldNeedsUpdate=!0,j.resetBBoxNeedsUpdate(),j.updateVisible(),e.pendingDeletes.delete(j))}}}if(null===j){let t=v?f.apply(y.data,v):y.data;u.is(t.type)&&(t={...t,type:"Empty"}),j=s.createEntity(r,t,e),j.overrideData=v,i.add(j),i.children.splice(i.children.length-1,1),i.children.splice(h,0,j),j.updateState(j.data,e),g&&j.changeSelectedState(g,e),e.scene.registerInstanceAndSetUuid(j)}j.isBone&&(c[j.identity[j.identity.length-1]]=j.uuid),h+=1,I(e,t,n,j,y,a,p+1,d,c)}if(!d){let t=h;for(;;){let t=i.children[h];if(!o.is(t))break;e.pendingDeletes.add(t),h+=1}i.children.splice(t,h-t)}return!0}var b=(e,t,n)=>new k(e,t,n);d("Component",b),d("Instance",b),p("components");
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./runtime-chunk-
|
|
1
|
+
import{a as t}from"./runtime-chunk-OYDCCM7U.js";import"./runtime-chunk-RAVR2ONV.js";import"./runtime-chunk-H2DLCIWQ.js";import"./runtime-chunk-XZUEQTES.js";import{ea as e}from"./runtime-chunk-OERXYDZQ.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as i,e as a}from"./runtime-chunk-5WKK4AK6.js";import"./runtime-chunk-26PJ2PZE.js";import{b as o}from"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as r}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-RNMPWHS7.js";import{Cc as s,Ec as n,Fc as d}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var h=(()=>{let t,e,i,a,o=!1;function r(i){!t&&!l()&&(e?.sharedGameControlGlobals.createdObjects.length??0)>0&&(t=requestAnimationFrame(s)),i&&(e=i,a=i.requestRender,!o&&typeof document<"u"&&(document.addEventListener("visibilitychange",n),o=!0))}function s(o){if(!e||!a)return t=void 0,void(i=void 0);let r=i?o-i:0,n=e.sharedGameControlGlobals.createdObjects,d=e.sharedGameControlGlobals.nCreatedPerAction,h=n.length,l=0;for(;l<h;){let t=n[l];void 0===t.userData.createdTime&&(t.userData.createdTime=o),void 0===t.userData.lifetime&&void 0===t.userData.quantity||t.userData.lifetime&&o-t.userData.createdTime<t.userData.lifetime||t.userData.quantity&&d[t.userData.actionId]<=t.userData.quantity?(t.userData.velocity&&(t.position.addScaledVector(t.userData.velocity,r/1e3),t.updateMatrix(),a()),l++):(d[t.userData.actionId]>t.userData.quantity&&d[t.userData.actionId]--,n.splice(l,1),t.removeFromParent(),e.sharedGameControlGlobals.rapierWorld&&t.rigidBody?(e.sharedGameControlGlobals.colliderToEntity.delete(t.rigidBody.collider(0).handle),e.sharedGameControlGlobals.rapierWorld.removeRigidBody(t.rigidBody)):(t.bvhGeometry=void 0,e.sharedGameControlGlobals.entitiesWithTransformAnim=e.sharedGameControlGlobals.entitiesWithTransformAnim.filter(t=>void 0!==t.bvhGeometry)),h--,a())}t=l>0?requestAnimationFrame(s):void 0,i=l>0?o:void 0}function n(){l()?t&&(cancelAnimationFrame(t),t=void 0,i=void 0):r()}return{play:r,dispose:function(){t&&(cancelAnimationFrame(t),t=void 0),o&&typeof document<"u"&&(document.removeEventListener("visibilitychange",n),o=!1),e=void 0,a=void 0,i=void 0}}})();function l(){return!!document&&document.hidden}var c=new n,u=new d,m=new d,p=class{constructor(i,r,n,l,p){this.data=i,this.page=r,this.controlsManager=n,this.shared=l,this.condition=p,this.intervalId=null,this.timeoutIdQueue=[],this.uniqueId=s.generateUUID(),this.dispatch=()=>{if(!1===a(this.shared,this.condition))return!1;this.data.delay?this.timeoutIdQueue.push(window.setTimeout(this.dispatchInner,1e3*this.data.delay)):this.dispatchInner()},this.dispatchFromStart=()=>{if(!1===a(this.shared,this.condition))return!1;this.timeoutIdQueue.push(window.setTimeout(this.dispatchInner,1e3*this.data.delay))},this.dispatchThrottled=o(this.dispatch,1e3/this.data.creationSpeed),this.dispatchStart=()=>{null===this.intervalId&&(this.intervalId=window.setInterval(this.dispatch,1e3/this.data.creationSpeed))},this.dispatchStop=()=>{null!==this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null)},this.dispatchInner=()=>{this.timeoutIdQueue.shift();let t=new e(this.object);if(t.playModeVisible=!0,t.expand(),"world"!==this.data.coordinateSystem){let e=this.data.coordinateSystem,i=this.page.scene.find(e);i&&(i.updateMatrixWorldRigid(),t.hiddenMatrix.copy(i.matrixWorldRigid))}t.scale.copy(this.object.scale),t.position.fromArray(this.data.position.map(t=>"number"==typeof t?t:0)),t.rotation.fromArray(this.data.rotation.map(t=>"number"==typeof t?t:0)),t.updateMatrix(),this.page.add(t);let i=this.controlsManager.sharedGameControlGlobals;i.createdObjects.push(t),void 0===i.nCreatedPerAction[this.uniqueId]?i.nCreatedPerAction[this.uniqueId]=1:i.nCreatedPerAction[this.uniqueId]++,t.updateWorldMatrix(!0,!0),t.traverseObject(this.traverseObjectCB),h.play(),this.controlsManager.requestRender()},this.traverseObjectCB=i=>{let a;if(i.hasNonUniformScale&&i.updateMatrixWorldRigid(),this.controlsManager.sharedGameControlGlobals.rapierWorld){if(i instanceof t){if(!i.objectForSample)return!0===i.object.dataPatched.physics.fusedBody&&"dynamic"===i.object.dataPatched.physics.rigidBody||void 0;if(i.objectForSample.dataPatched.physics.fusedBody)return;a=i.object}else if(i instanceof e)a=i.object;else if(a=i,a.dataPatched.cloner?.hideBase)return!0}else{if(i instanceof t)return;a=i instanceof e?i.object:i}"Time"===this.data.destroy?i.userData.lifetime=1e3*this.data.lifetime:"Quantity"===this.data.destroy&&(i.userData.quantity=this.data.destroyAfterQuantity,i.userData.actionId=this.uniqueId);let o=(new d).fromArray(this.data.velocity.map(t=>"number"==typeof t?t:0)),r=a.dataPatched;if(!("visibility"===r.physics.enabled?!r.visible:!r.physics.enabled)&&(this.controlsManager.sharedGameControlGlobals.rapierWorld?(this.controlsManager.addRigidBody(i,a,{fromCreate:!0,dynamic:this.data.dynamic}),"Collision"===this.data.destroy&&(i.rigidBody?.collider(0).setActiveEvents(1),i.userData.hasCollisionDestroy=!0),i.matrixWorld.decompose(u,c,m),o.applyQuaternion(c),this.data.velocity.some(t=>0!==t)&&this.data.dynamic&&i.rigidBody?.setLinvel(o.divideScalar(this.controlsManager.pixelsPerMeter),!0)):("geometry"in i.object&&this.controlsManager.addBoundsTree(i),this.data.velocity.some(t=>0!==t)&&this.data.dynamic&&(i.userData.velocity=o)),!0===a.dataPatched.physics?.fusedBody))return!0};let y=this.page.scene.find(this.data.object);if(!y)throw new Error("Missing Property");if(this.object=y,"world"!==this.data.coordinateSystem&&!this.page.scene.find(this.data.coordinateSystem))throw new Error("Missing Property");h.play(n)}dispose(){null!==this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null),this.timeoutIdQueue.forEach(t=>window.clearTimeout(t)),this.timeoutIdQueue=[],this.dispatchThrottled.cancel(),this.page.remove(...this.controlsManager.sharedGameControlGlobals.createdObjects),this.controlsManager.sharedGameControlGlobals.createdObjects=[],h.dispose()}},y=class{constructor(t,e,i,a,o){this.data=t,this.page=e,this.controlsManager=i,this.shared=a,this.condition=o,this.timeoutIdQueue=[],this.dispatchInner=()=>{this.objects.forEach(this.destroyCallback)},this.destroyCallback=t=>{this.timeoutIdQueue.shift();let e=this.page.scene.find(t);if(void 0===e)return;let i=this.controlsManager.sharedGameControlGlobals.rapierWorld,a=!i||e.dataPatched.physics?.fusedBody;if(e.cloner){for(let t of e.cloner.children)a?(t.playModeVisible=!1,"positioned"===e.dataPatched.physics?.rigidBody&&this.removeBody(t),t.bvhGeometry&&(t.bvhGeometry=void 0)):void 0===this.clone||this.clone===t?(t.playModeVisible=!1,this.removeBody(t)):void 0===t.playModeVisible&&(t.playModeVisible=!0);e.cloner.syncInstanceMatrices(),(a||void 0===this.clone||!1===this.clone)&&(e.visible=!1,this.removeBody(e),e.bvhGeometry&&(e.bvhGeometry=void 0))}else this.removeBody(e),e.bvhGeometry&&(e.bvhGeometry=void 0),e.visible=!1;this.controlsManager.sharedGameControlGlobals.entitiesWithTransformAnim=void 0===i?this.controlsManager.sharedGameControlGlobals.entitiesWithTransformAnim.filter(t=>void 0!==t.bvhGeometry):this.controlsManager.sharedGameControlGlobals.entitiesWithTransformAnim.filter(t=>void 0!==t.rigidBody),e.destroyedInAction=!0,this.controlsManager.requestRender()},this.objects=[...t.objects]}removeBody(t){let e=t.rigidBody;if(!e)return;let i=this.controlsManager.sharedGameControlGlobals;i.colliderToEntity.delete(e.collider(0).handle),i.kinematicBodyToEntity.delete(e.handle);let a=this.controlsManager;a.fixedBodiesToWatch=a.fixedBodiesToWatch.filter(([,t])=>t!==e),i.rapierWorld.removeRigidBody(e),t.rigidBody=void 0}dispatch(t){if(!1===a(this.shared,this.condition))return!1;this.clone=t,this.data.delay?this.timeoutIdQueue.push(window.setTimeout(this.dispatchInner,1e3*this.data.delay)):this.dispatchInner()}dispatchFromStart(){if(!1===a(this.shared,this.condition))return!1;this.timeoutIdQueue.push(window.setTimeout(this.dispatchInner,1e3*this.data.delay))}dispose(){this.timeoutIdQueue.forEach(t=>window.clearTimeout(t))}};i("Create",({data:t,page:e,eventManager:i,shared:a,actionCondition:o})=>new p(t,e,i.controlsManager,a,o)),i("Destroy",({data:t,page:e,eventManager:i,shared:a,actionCondition:o})=>new y(t,e,i.controlsManager,a,o)),r("create-destroy");
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./runtime-chunk-5IODBOHZ.js";import{f as e}from"./runtime-chunk-EM7KULU2.js";import{a,b as i}from"./runtime-chunk-DZNU62CT.js";import{a as r}from"./runtime-chunk-VAVYZ35B.js";import"./runtime-chunk-FQNSP44B.js";import"./runtime-chunk-V3HWXCOG.js";import"./runtime-chunk-KLCXINYB.js";import"./runtime-chunk-TO6TF2CM.js";import"./runtime-chunk-ZJVCGO54.js";import"./runtime-chunk-SX4257ET.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{f as o,g as n}from"./runtime-chunk-5WKK4AK6.js";import{h as s,v as c}from"./runtime-chunk-6SIPKGSQ.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as h}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-RNMPWHS7.js";import{Ec as d,Fc as p,Gc as l,Oc as v,rd as u}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var m=new p,g=new p,E=new p,f=new u,D=new p,y=new p,b=new p,x=new d,C=new v,j=new l,M=new p,P=new p,T=.2;function w(t,e){!e||(e[0]<e[1]&&(t.x=Math.min(Math.max(t.x,e[0]),e[1])),e[2]<e[3]&&(t.y=Math.min(Math.max(t.y,e[2]),e[3])),e[4]<e[5]&&(t.z=Math.min(Math.max(t.z,e[4]),e[5])))}var I=function(){let t=new v;return(a,i,r)=>{let o=a.obj;t.copy(o.hiddenMatrix),null!==o.parent&&t.premultiply(o.parent.matrixWorld),t.invert(),o.position.copy(i),"global"===a.reference&&w(o.position,a.limits),o.position.applyMatrix4(t),"parent"===a.reference?w(o.position,a.limits):"local"===a.reference&&(x.copy(a.quat0).invert(),o.position.sub(a.position0),o.position.applyQuaternion(x),w(o.position,a.limits),x.invert(),o.position.applyQuaternion(x),o.position.add(a.position0)),t.multiply(r??o.matrixWorld).decompose(D,o.quaternion,y),o.updateMatrix(),o.hasNonUniformScale&&(o.updateMatrixWorld(),o.updateMatrixWorldRigid()),o instanceof c&&e(o.parent)&&o.invalidateDownstreamBooleanData(!0)}}(),S=class{constructor(t,e,a,i,r,n,s){this.object=t,this.id=e,this.data=a,this.dropDestIds=[],this.activeIdx=null,this.wasDragEventTriggered=!1,this.resetDampingFactor=0===this.data.resetSpeed?1:8/this.data.resetSpeed+1,this.snapDampingFactor=0===this.data.snapSpeed?1:8/this.data.snapSpeed+1,this.actionsDrag=o(a,a.dragDropActions.drag,i,r,n,this.object),this.actionsDrop=o(a,a.dragDropActions.drop,i,r,n,this.object);let c=[];this.data.objects.forEach(t=>{let e=i.find(t);!e||!1!==e.data.visible&&(c.push(e),s[e.uuid]&&s[e.uuid].forEach(t=>{let e=i.find(t);!e||!1!==e.data.visible&&c.push(e)}))}),this.data.dropDestinations.forEach(t=>{let e=i.find(t);!e||!1!==e.data.visible&&(this.dropDestIds.push(e.uuid),s[e.uuid]&&s[e.uuid].forEach(t=>{let e=i.find(t);!e||!1!==e.data.visible&&this.dropDestIds.push(e.uuid)}))}),this.dragItems=c.map(t=>("locked"===this.data.planeMode&&(t.userData.lockedPlane=!0),t.userData.worldPosition0=(new p).setFromMatrixPosition(t.matrixWorld),{obj:t,fromPosition:(new p).setFromMatrixPosition(t.matrixWorld),pointStart:new p,pointEnd:new p,paused:!0,currentDampingFactor:this.data.dampingFactor,reset:!1,position0:(new p).copy(t.position),quat0:(new d).copy(t.quaternion),snapped:!1,orientationMatrix:new v,limits:this.data.limits,reference:this.data.referenceFrame}))}get activeDragItem(){return null!==this.activeIdx?this.dragItems[this.activeIdx]:null}dispose(){n(this.actionsDrag),n(this.actionsDrop),this.dragItems.forEach(t=>{t.fromPosition.copy(t.obj.userData.worldPosition0),t.pointStart.copy(t.fromPosition),t.pointEnd.copy(t.pointStart),t.obj.recursiveBBoxNeedsUpdate=!0,t.obj.userData.lockedPlane=void 0,t.obj.position.copy(t.position0),t.obj.quaternion.copy(t.quat0),t.obj.updateMatrix()})}},k=class extends a{constructor(e,a){super(e),this.eventManager=a,this.events=[],this.lastDropDestination=null,this.dragTimeout=null,this.lastCursorRaycastTime=0,this.trailingCursorTimer=null,this.trailingCursorEvent=null,this.onPointerDown=t=>{if(r.length>1)return;this.eventContext.updateRaycaster(t);let{raycaster:e,page:a}=this.eventContext,i=a.raycastWithClones(e);if(this.lastDropDestination=null,0!==i.length){for(let t of this.events){let e=0;for(let{obj:a,pointEnd:r,pointStart:o}of t.dragItems){if(a===i[0].object||a===i[0].object.object||s.is(a)&&a.isAncestorOf(i[0].object.uuid)){if(t.activeIdx=e,t.activeDragItem.reset=!1,t.activeDragItem.currentDampingFactor=t.data.dampingFactor,t.activeDragItem.snapped=!1,"hand"===t.data.cursor&&this.setCursor("grabbing"),this.eventManager.controlsManager.usePhysics){t.activeDragItem.obj.rigidBody&&(t.activeDragItem.obj.rigidBody.setBodyType(2,!0),this.eventManager.controlsManager.sharedGameControlGlobals.kinematicBodyToEntity.set(t.activeDragItem.obj.rigidBody.handle,t.activeDragItem.obj));let e=t.activeDragItem.obj;a.hasNonUniformScale&&a.updateMatrixWorldRigid(),(e.hasNonUniformScale?e.matrixWorldRigid:e.matrixWorld).decompose(D,x,y),void 0===e.prevQ?(e.prevQ=x.clone(),e.prevT=D.clone()):(e.prevQ.copy(x),e.prevT.copy(D)),this.eventManager.controlsManager.sharedGameControlGlobals.entitiesWithTransformAnim.push(t.activeDragItem.obj)}return this.calcPlaneIntersectPos(a,o,t.data.plane,t.data.referenceFrame),r.copy(o),(this.eventManager.controlsManager.usePhysics&&"dynamic"===a.data.physics?.rigidBody||!1===t.data.drop||!1===t.data.resetOnSnapFail)&&t.activeDragItem.fromPosition.setFromMatrixPosition(t.activeDragItem.obj.matrixWorld),this.activeEvent=t,void(this.eventManager.controlsManager.orbitControls&&(this.eventManager.controlsManager.orbitControls.enabled=!1))}e++}}this.activeEvent=null}else this.activeEvent=null},this.runTrailingCursorUpdate=()=>{this.trailingCursorTimer=null;let t=this.trailingCursorEvent;this.trailingCursorEvent=null,null!==t&&0===r.length&&(this.eventContext.updateRaycaster(t),this.lastCursorRaycastTime=performance.now(),this.updateCursorFromRaycast())},this.onPointerMove=e=>{if(r.length>1)return;this.eventContext.updateRaycaster(e);let{raycaster:a,page:i}=this.eventContext;if(0===r.length){if(!this.events.some(t=>"hand"===t.data.cursor||"move"===t.data.cursor))return;let t=performance.now();return t-this.lastCursorRaycastTime<16?(this.trailingCursorEvent=e,void(null===this.trailingCursorTimer&&(this.trailingCursorTimer=window.setTimeout(this.runTrailingCursorUpdate,32)))):(this.trailingCursorEvent=null,this.lastCursorRaycastTime=t,void this.updateCursorFromRaycast())}if(this.activeEvent&&this.activeEvent.activeDragItem){let e,r=this.activeEvent.activeDragItem;if(r.snapped=!1,this.activeEvent.data.drop&&(e=i.raycastWithClones(a).filter(e=>r.obj!==e.object&&!r.obj.isAncestorOf(e.object.uuid)&&!(e.object instanceof t)&&("all"===this.activeEvent.data.dropOn||this.activeEvent.dropDestIds.some(t=>t===e.object.uuid||i.scene.find(t).isAncestorOf(e.object.uuid))))[0]),e){let t=b.copy(e.face.normal).applyMatrix3(j.getNormalMatrix(e.object.matrixWorld));if("center"===this.activeEvent.data.snapTo)r.fromPosition.setFromMatrixPosition(e.object.matrixWorld);else if("surface"===this.activeEvent.data.snapTo){if(r.fromPosition.copy(e.point),"bbox"===this.activeEvent.data.snapSurfaceMode){D.copy(t).applyMatrix3(j.setFromMatrix4(r.obj.matrixWorld).transpose());let e=r.obj;D.x>T?y.x=-e.recursiveBBox.min.x:D.x<-T&&(y.x=-e.recursiveBBox.max.x),D.y>T?y.y=-e.recursiveBBox.min.y:D.y<-T&&(y.y=-e.recursiveBBox.max.y),D.z>T?y.z=-e.recursiveBBox.min.z:D.z<-T&&(y.z=-e.recursiveBBox.max.z),y.applyMatrix3(j.invert())}else y.copy(t).multiplyScalar(this.activeEvent.data.snapSurfaceOffset);r.fromPosition.add(y)}this.activeEvent.data.autoOrient&&(D.set(0,1,0).cross(t),D.length()<1e-4&&D.set(-1,0,0).cross(t),y.crossVectors(b,D),r.orientationMatrix.makeBasis(D,y,t)),r.pointStart.copy(r.fromPosition),r.pointEnd.copy(r.pointStart),r.currentDampingFactor=this.activeEvent.snapDampingFactor,r.snapped=!0,this.lastDropDestination!==e.object&&(this.lastDropDestination=e.object,this.activeEvent.actionsDrop.Transition.forEach(t=>{t.play()}),this.activeEvent.actionsDrop.Animation.forEach(t=>{t.play()}),this.activeEvent.actionsDrop.Audio.forEach(t=>{t.dispatchGameControl("start")}),this.activeEvent.actionsDrop.Particles.forEach(t=>{t.dispatchGameControl("start")}),this.activeEvent.actionsDrop.Create.forEach(t=>{t.dispatchThrottled()}))}else r.orientationMatrix.makeRotationFromQuaternion(r.quat0),this.lastDropDestination=null,r.currentDampingFactor=this.activeEvent.data.dampingFactor,this.calcPlaneIntersectPos(r.obj,r.pointEnd,this.activeEvent.data.plane,this.activeEvent.data.referenceFrame),this.activeEvent.actionsDrop.Transition.forEach(t=>{t.stop(),null!==t.object.currentState&&t.object.changeSelectedState(null,{scene:this.eventContext.page.scene,shared:this.eventContext.sharedAssets})}),this.activeEvent.actionsDrop.Animation.forEach(t=>{t.stop()}),this.activeEvent.actionsDrop.Audio.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrop.Particles.forEach(t=>{t.dispatchGameControl("stop")});this.activeEvent.actionsDrag.Create.forEach(t=>{t.dispatchThrottled()}),this.activeEvent.actionsDrag.SetVariable.forEach(t=>t.checkConditions()),this.activeEvent.actionsDrag.SetVariable.forEach(t=>t.dispatch()),this.activeEvent.actionsDrag.DynamicVariablePlay.forEach(t=>t.dispatch()),this.activeEvent.actionsDrag.ClearLocalStorage.forEach(t=>t.dispatch()),this.activeEvent.actionsDrag.UserAPI.forEach(t=>t.dispatch()),!1===this.activeEvent.wasDragEventTriggered&&(this.activeEvent.wasDragEventTriggered=!0,this.activeEvent.actionsDrag.Transition.forEach(t=>{t.play()}),this.activeEvent.actionsDrag.Animation.forEach(t=>{t.play()}),this.activeEvent.actionsDrag.Audio.forEach(t=>{t.dispatchGameControl("start")}),this.activeEvent.actionsDrag.Particles.forEach(t=>{t.dispatchGameControl("start")})),this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>{!this.activeEvent||(this.activeEvent.wasDragEventTriggered=!1,this.activeEvent.actionsDrag.Audio.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrag.Particles.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrag.Transition.forEach(t=>{t.stop(),null!==t.object.currentState&&t.object.changeSelectedState(null,{scene:this.eventContext.page.scene,shared:this.eventContext.sharedAssets})}),this.activeEvent.actionsDrag.Animation.forEach(t=>{t.stop()}))},500),this.updateDragItem(r),r.obj.dispatchEvent({type:"requestRender"})}},this.onPointerUp=t=>{if(this.activeEvent&&this.activeEvent.activeDragItem){"hand"===this.activeEvent.data.cursor&&this.setCursor("grab");let t="dynamic"===this.activeEvent.activeDragItem.obj.data.physics?.rigidBody;if(!1===this.activeEvent.activeDragItem.snapped&&this.activeEvent.data.drop&&this.activeEvent.data.resetOnSnapFail&&(!1===this.eventManager.controlsManager.usePhysics||!t)&&(this.activeEvent.activeDragItem.reset=this.activeEvent.data.resetOnSnapFail,this.activeEvent.activeDragItem.paused=!1,this.activeEvent.activeDragItem.currentDampingFactor=this.activeEvent.resetDampingFactor),this.eventManager.controlsManager.usePhysics&&t){let t=this.activeEvent.activeDragItem,e=this.eventManager.controlsManager.sharedGameControlGlobals,a=e.entitiesWithTransformAnim.lastIndexOf(t.obj);-1!==a&&e.entitiesWithTransformAnim.splice(a,1);let i=t.obj.rigidBody;i&&(e.kinematicBodyToEntity.delete(i.handle),i.setBodyType(0,!0)),t.paused=!0}!0===this.activeEvent.wasDragEventTriggered&&(this.activeEvent.wasDragEventTriggered=!1,this.activeEvent.actionsDrag.Transition.forEach(t=>{t.stop(),null!==t.object.currentState&&t.object.changeSelectedState(null,{scene:this.eventContext.page.scene,shared:this.eventContext.sharedAssets})}),this.activeEvent.actionsDrag.Animation.forEach(t=>{t.stop()}),this.activeEvent.actionsDrag.Audio.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrag.Particles.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrop.SetVariable.forEach(t=>t.checkConditions()),this.activeEvent.actionsDrop.SetVariable.forEach(t=>t.dispatch()),this.activeEvent.actionsDrop.DynamicVariablePlay.forEach(t=>t.dispatch()),this.activeEvent.actionsDrop.ClearLocalStorage.forEach(t=>t.dispatch()),this.activeEvent.actionsDrop.UserAPI.forEach(t=>t.dispatch())),this.eventManager.controlsManager.orbitControls&&(this.eventManager.controlsManager.orbitControls.enabled=!0)}}}connect(){let t={};if(this.eventContext.page.traverseEntity(e=>{e.component&&(t[e.component.uuid]?t[e.component.uuid].push(e.uuid):t[e.component.uuid]=[e.uuid])}),this.eventContext.page.traverseEntity(e=>{e.data?.events.filter(t=>"DragDrop"===t.data.type&&!t.data.disabled).forEach(a=>{this.events.push(new S(e,a.id,a.data,this.eventContext.page,this.eventContext.sharedAssets,this.eventManager,t))})}),!this.events.length)return;this.domEventsNeeded.clear(),this.domEventsNeeded.add("pointerdown");let e=this.eventContext.domElement;e.addEventListener("pointerdown",this.onPointerDown),e.addEventListener("pointermove",this.onPointerMove),e.addEventListener("pointerup",this.onPointerUp),this.domEventsNeeded.add("pointermove")}disconnect(){if(!this.events.length)return;this.domEventsNeeded.clear();let t=this.eventContext.domElement;t.removeEventListener("pointerdown",this.onPointerDown),t.removeEventListener("pointermove",this.onPointerMove),t.removeEventListener("pointerup",this.onPointerUp),null!==this.trailingCursorTimer&&(clearTimeout(this.trailingCursorTimer),this.trailingCursorTimer=null),this.trailingCursorEvent=null,this.events.forEach(t=>t.dispose())}setCursor(t){this.eventContext.domElement.style.cursor=t}onAnimationFrameDamping(){for(let t of this.events)for(let e of t.dragItems)e.paused||this.updateDragItem(e,!0)}calcPlaneIntersectPos(t,e,a,i){let{getCamera:r,raycaster:o}=this.eventContext;r().getWorldDirection(g),g.negate();let n=x.identity();switch("parent"===i?C.multiplyMatrices(t.parent.matrixWorld,t.hiddenMatrix).decompose(D,n,y):"local"===i&&t.matrixWorld.decompose(D,n,y),a){case"x":D.set(1,0,0).applyQuaternion(n),M.copy(g).cross(D),P.copy(D).cross(M);break;case"y":D.set(0,1,0).applyQuaternion(n),M.copy(g).cross(D),P.copy(D).cross(M);break;case"z":D.set(0,0,1).applyQuaternion(n),M.copy(g).cross(D),P.copy(D).cross(M);break;case"xy":P.set(0,0,1).applyQuaternion(n);break;case"yz":P.set(1,0,0).applyQuaternion(n);break;case"xz":P.set(0,1,0).applyQuaternion(n);break;case"adaptive":g.angleTo(y.set(0,1,0))>Math.PI/6?(D.crossVectors(y.set(0,1,0),g),P.crossVectors(D,y)):P.set(0,1,0);break;default:P.copy(g)}E.setFromMatrixPosition(t.matrixWorld);let s=t.userData.lockedPlane?t.userData.worldPosition0:E;if(f.setFromNormalAndCoplanarPoint(P,s),o.ray.intersectPlane(f,e)&&("x"===a||"y"===a||"z"===a)){let t=y.subVectors(e,s).dot(D);e.copy(s).addScaledVector(D,t)}}updateDragItem(t,e=!1){E.setFromMatrixPosition(t.obj.matrixWorld),"current"===t.reset?m.subVectors(t.fromPosition,E).divideScalar(t.currentDampingFactor):"original"===t.reset?(m.subVectors(t.obj.userData.worldPosition0,E).divideScalar(t.currentDampingFactor),t.fromPosition.copy(t.obj.userData.worldPosition0),t.pointStart.copy(t.fromPosition),t.pointEnd.copy(t.pointStart)):m.subVectors(t.pointEnd,t.pointStart).add(t.fromPosition).sub(E).divideScalar(t.currentDampingFactor),t.paused=!(t.currentDampingFactor>1)||m.length()<.01,(this.activeEvent&&1===this.activeEvent.data.dampingFactor||e)&&I(t,m.add(E),this.activeEvent?.data.drop&&this.activeEvent?.data.autoOrient?t.orientationMatrix:null),t.obj.dispatchEvent({type:"beginEvent",eventName:"DragDrop"}),this.eventManager.requestRender()}updateCursorFromRaycast(){let{raycaster:t,page:e}=this.eventContext,a=e.raycastWithClones(t),i=!1;for(let t of this.events){for(let{obj:e}of t.dragItems)if(e===a[0]?.object||e===a[0]?.object?.object||s.is(e)&&e.isAncestorOf(a[0]?.object.uuid)){switch(i=!0,t.data.cursor){case"hand":this.setCursor("grab");break;case"move":this.setCursor("move")}break}if(i)break}i||this.setCursor("default")}};i("DragDrop",({eventContext:t,eventManager:e})=>new k(t,e)),h("dragdrop");
|
|
1
|
+
import{a as t}from"./runtime-chunk-URWILVZX.js";import{f as e}from"./runtime-chunk-7TIIVZ4T.js";import{a,b as i}from"./runtime-chunk-DZNU62CT.js";import{a as r}from"./runtime-chunk-VAVYZ35B.js";import"./runtime-chunk-FQNSP44B.js";import"./runtime-chunk-KNO4ECOH.js";import"./runtime-chunk-XZUEQTES.js";import"./runtime-chunk-BYDEBV4A.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 n}from"./runtime-chunk-5WKK4AK6.js";import{h as s,v as c}from"./runtime-chunk-26PJ2PZE.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-TPQKWZXC.js";import{a as h}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-RNMPWHS7.js";import{Ec as d,Fc as p,Gc as l,Oc as v,rd as u}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var m=new p,g=new p,E=new p,f=new u,D=new p,y=new p,b=new p,x=new d,C=new v,j=new l,M=new p,P=new p,T=.2;function w(t,e){!e||(e[0]<e[1]&&(t.x=Math.min(Math.max(t.x,e[0]),e[1])),e[2]<e[3]&&(t.y=Math.min(Math.max(t.y,e[2]),e[3])),e[4]<e[5]&&(t.z=Math.min(Math.max(t.z,e[4]),e[5])))}var I=function(){let t=new v;return(a,i,r)=>{let o=a.obj;t.copy(o.hiddenMatrix),null!==o.parent&&t.premultiply(o.parent.matrixWorld),t.invert(),o.position.copy(i),"global"===a.reference&&w(o.position,a.limits),o.position.applyMatrix4(t),"parent"===a.reference?w(o.position,a.limits):"local"===a.reference&&(x.copy(a.quat0).invert(),o.position.sub(a.position0),o.position.applyQuaternion(x),w(o.position,a.limits),x.invert(),o.position.applyQuaternion(x),o.position.add(a.position0)),t.multiply(r??o.matrixWorld).decompose(D,o.quaternion,y),o.updateMatrix(),o.hasNonUniformScale&&(o.updateMatrixWorld(),o.updateMatrixWorldRigid()),o instanceof c&&e(o.parent)&&o.invalidateDownstreamBooleanData(!0)}}(),S=class{constructor(t,e,a,i,r,n,s){this.object=t,this.id=e,this.data=a,this.dropDestIds=[],this.activeIdx=null,this.wasDragEventTriggered=!1,this.resetDampingFactor=0===this.data.resetSpeed?1:8/this.data.resetSpeed+1,this.snapDampingFactor=0===this.data.snapSpeed?1:8/this.data.snapSpeed+1,this.actionsDrag=o(a,a.dragDropActions.drag,i,r,n,this.object),this.actionsDrop=o(a,a.dragDropActions.drop,i,r,n,this.object);let c=[];this.data.objects.forEach(t=>{let e=i.find(t);!e||!1!==e.data.visible&&(c.push(e),s[e.uuid]&&s[e.uuid].forEach(t=>{let e=i.find(t);!e||!1!==e.data.visible&&c.push(e)}))}),this.data.dropDestinations.forEach(t=>{let e=i.find(t);!e||!1!==e.data.visible&&(this.dropDestIds.push(e.uuid),s[e.uuid]&&s[e.uuid].forEach(t=>{let e=i.find(t);!e||!1!==e.data.visible&&this.dropDestIds.push(e.uuid)}))}),this.dragItems=c.map(t=>("locked"===this.data.planeMode&&(t.userData.lockedPlane=!0),t.userData.worldPosition0=(new p).setFromMatrixPosition(t.matrixWorld),{obj:t,fromPosition:(new p).setFromMatrixPosition(t.matrixWorld),pointStart:new p,pointEnd:new p,paused:!0,currentDampingFactor:this.data.dampingFactor,reset:!1,position0:(new p).copy(t.position),quat0:(new d).copy(t.quaternion),snapped:!1,orientationMatrix:new v,limits:this.data.limits,reference:this.data.referenceFrame}))}get activeDragItem(){return null!==this.activeIdx?this.dragItems[this.activeIdx]:null}dispose(){n(this.actionsDrag),n(this.actionsDrop),this.dragItems.forEach(t=>{t.fromPosition.copy(t.obj.userData.worldPosition0),t.pointStart.copy(t.fromPosition),t.pointEnd.copy(t.pointStart),t.obj.recursiveBBoxNeedsUpdate=!0,t.obj.userData.lockedPlane=void 0,t.obj.position.copy(t.position0),t.obj.quaternion.copy(t.quat0),t.obj.updateMatrix()})}},k=class extends a{constructor(e,a){super(e),this.eventManager=a,this.events=[],this.lastDropDestination=null,this.dragTimeout=null,this.lastCursorRaycastTime=0,this.trailingCursorTimer=null,this.trailingCursorEvent=null,this.onPointerDown=t=>{if(r.length>1)return;this.eventContext.updateRaycaster(t);let{raycaster:e,page:a}=this.eventContext,i=a.raycastWithClones(e);if(this.lastDropDestination=null,0!==i.length){for(let t of this.events){let e=0;for(let{obj:a,pointEnd:r,pointStart:o}of t.dragItems){if(a===i[0].object||a===i[0].object.object||s.is(a)&&a.isAncestorOf(i[0].object.uuid)){if(t.activeIdx=e,t.activeDragItem.reset=!1,t.activeDragItem.currentDampingFactor=t.data.dampingFactor,t.activeDragItem.snapped=!1,"hand"===t.data.cursor&&this.setCursor("grabbing"),this.eventManager.controlsManager.usePhysics){t.activeDragItem.obj.rigidBody&&(t.activeDragItem.obj.rigidBody.setBodyType(2,!0),this.eventManager.controlsManager.sharedGameControlGlobals.kinematicBodyToEntity.set(t.activeDragItem.obj.rigidBody.handle,t.activeDragItem.obj));let e=t.activeDragItem.obj;a.hasNonUniformScale&&a.updateMatrixWorldRigid(),(e.hasNonUniformScale?e.matrixWorldRigid:e.matrixWorld).decompose(D,x,y),void 0===e.prevQ?(e.prevQ=x.clone(),e.prevT=D.clone()):(e.prevQ.copy(x),e.prevT.copy(D)),this.eventManager.controlsManager.sharedGameControlGlobals.entitiesWithTransformAnim.push(t.activeDragItem.obj)}return this.calcPlaneIntersectPos(a,o,t.data.plane,t.data.referenceFrame),r.copy(o),(this.eventManager.controlsManager.usePhysics&&"dynamic"===a.data.physics?.rigidBody||!1===t.data.drop||!1===t.data.resetOnSnapFail)&&t.activeDragItem.fromPosition.setFromMatrixPosition(t.activeDragItem.obj.matrixWorld),this.activeEvent=t,void(this.eventManager.controlsManager.orbitControls&&(this.eventManager.controlsManager.orbitControls.enabled=!1))}e++}}this.activeEvent=null}else this.activeEvent=null},this.runTrailingCursorUpdate=()=>{this.trailingCursorTimer=null;let t=this.trailingCursorEvent;this.trailingCursorEvent=null,null!==t&&0===r.length&&(this.eventContext.updateRaycaster(t),this.lastCursorRaycastTime=performance.now(),this.updateCursorFromRaycast())},this.onPointerMove=e=>{if(r.length>1)return;this.eventContext.updateRaycaster(e);let{raycaster:a,page:i}=this.eventContext;if(0===r.length){if(!this.events.some(t=>"hand"===t.data.cursor||"move"===t.data.cursor))return;let t=performance.now();return t-this.lastCursorRaycastTime<16?(this.trailingCursorEvent=e,void(null===this.trailingCursorTimer&&(this.trailingCursorTimer=window.setTimeout(this.runTrailingCursorUpdate,32)))):(this.trailingCursorEvent=null,this.lastCursorRaycastTime=t,void this.updateCursorFromRaycast())}if(this.activeEvent&&this.activeEvent.activeDragItem){let e,r=this.activeEvent.activeDragItem;if(r.snapped=!1,this.activeEvent.data.drop&&(e=i.raycastWithClones(a).filter(e=>r.obj!==e.object&&!r.obj.isAncestorOf(e.object.uuid)&&!(e.object instanceof t)&&("all"===this.activeEvent.data.dropOn||this.activeEvent.dropDestIds.some(t=>t===e.object.uuid||i.scene.find(t).isAncestorOf(e.object.uuid))))[0]),e){let t=b.copy(e.face.normal).applyMatrix3(j.getNormalMatrix(e.object.matrixWorld));if("center"===this.activeEvent.data.snapTo)r.fromPosition.setFromMatrixPosition(e.object.matrixWorld);else if("surface"===this.activeEvent.data.snapTo){if(r.fromPosition.copy(e.point),"bbox"===this.activeEvent.data.snapSurfaceMode){D.copy(t).applyMatrix3(j.setFromMatrix4(r.obj.matrixWorld).transpose());let e=r.obj;D.x>T?y.x=-e.recursiveBBox.min.x:D.x<-T&&(y.x=-e.recursiveBBox.max.x),D.y>T?y.y=-e.recursiveBBox.min.y:D.y<-T&&(y.y=-e.recursiveBBox.max.y),D.z>T?y.z=-e.recursiveBBox.min.z:D.z<-T&&(y.z=-e.recursiveBBox.max.z),y.applyMatrix3(j.invert())}else y.copy(t).multiplyScalar(this.activeEvent.data.snapSurfaceOffset);r.fromPosition.add(y)}this.activeEvent.data.autoOrient&&(D.set(0,1,0).cross(t),D.length()<1e-4&&D.set(-1,0,0).cross(t),y.crossVectors(b,D),r.orientationMatrix.makeBasis(D,y,t)),r.pointStart.copy(r.fromPosition),r.pointEnd.copy(r.pointStart),r.currentDampingFactor=this.activeEvent.snapDampingFactor,r.snapped=!0,this.lastDropDestination!==e.object&&(this.lastDropDestination=e.object,this.activeEvent.actionsDrop.Transition.forEach(t=>{t.play()}),this.activeEvent.actionsDrop.Animation.forEach(t=>{t.play()}),this.activeEvent.actionsDrop.Audio.forEach(t=>{t.dispatchGameControl("start")}),this.activeEvent.actionsDrop.Particles.forEach(t=>{t.dispatchGameControl("start")}),this.activeEvent.actionsDrop.Create.forEach(t=>{t.dispatchThrottled()}))}else r.orientationMatrix.makeRotationFromQuaternion(r.quat0),this.lastDropDestination=null,r.currentDampingFactor=this.activeEvent.data.dampingFactor,this.calcPlaneIntersectPos(r.obj,r.pointEnd,this.activeEvent.data.plane,this.activeEvent.data.referenceFrame),this.activeEvent.actionsDrop.Transition.forEach(t=>{t.stop(),null!==t.object.currentState&&t.object.changeSelectedState(null,{scene:this.eventContext.page.scene,shared:this.eventContext.sharedAssets})}),this.activeEvent.actionsDrop.Animation.forEach(t=>{t.stop()}),this.activeEvent.actionsDrop.Audio.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrop.Particles.forEach(t=>{t.dispatchGameControl("stop")});this.activeEvent.actionsDrag.Create.forEach(t=>{t.dispatchThrottled()}),this.activeEvent.actionsDrag.SetVariable.forEach(t=>t.checkConditions()),this.activeEvent.actionsDrag.SetVariable.forEach(t=>t.dispatch()),this.activeEvent.actionsDrag.DynamicVariablePlay.forEach(t=>t.dispatch()),this.activeEvent.actionsDrag.ClearLocalStorage.forEach(t=>t.dispatch()),this.activeEvent.actionsDrag.UserAPI.forEach(t=>t.dispatch()),!1===this.activeEvent.wasDragEventTriggered&&(this.activeEvent.wasDragEventTriggered=!0,this.activeEvent.actionsDrag.Transition.forEach(t=>{t.play()}),this.activeEvent.actionsDrag.Animation.forEach(t=>{t.play()}),this.activeEvent.actionsDrag.Audio.forEach(t=>{t.dispatchGameControl("start")}),this.activeEvent.actionsDrag.Particles.forEach(t=>{t.dispatchGameControl("start")})),this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>{!this.activeEvent||(this.activeEvent.wasDragEventTriggered=!1,this.activeEvent.actionsDrag.Audio.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrag.Particles.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrag.Transition.forEach(t=>{t.stop(),null!==t.object.currentState&&t.object.changeSelectedState(null,{scene:this.eventContext.page.scene,shared:this.eventContext.sharedAssets})}),this.activeEvent.actionsDrag.Animation.forEach(t=>{t.stop()}))},500),this.updateDragItem(r),r.obj.dispatchEvent({type:"requestRender"})}},this.onPointerUp=t=>{if(this.activeEvent&&this.activeEvent.activeDragItem){"hand"===this.activeEvent.data.cursor&&this.setCursor("grab");let t="dynamic"===this.activeEvent.activeDragItem.obj.data.physics?.rigidBody;if(!1===this.activeEvent.activeDragItem.snapped&&this.activeEvent.data.drop&&this.activeEvent.data.resetOnSnapFail&&(!1===this.eventManager.controlsManager.usePhysics||!t)&&(this.activeEvent.activeDragItem.reset=this.activeEvent.data.resetOnSnapFail,this.activeEvent.activeDragItem.paused=!1,this.activeEvent.activeDragItem.currentDampingFactor=this.activeEvent.resetDampingFactor),this.eventManager.controlsManager.usePhysics&&t){let t=this.activeEvent.activeDragItem,e=this.eventManager.controlsManager.sharedGameControlGlobals,a=e.entitiesWithTransformAnim.lastIndexOf(t.obj);-1!==a&&e.entitiesWithTransformAnim.splice(a,1);let i=t.obj.rigidBody;i&&(e.kinematicBodyToEntity.delete(i.handle),i.setBodyType(0,!0)),t.paused=!0}!0===this.activeEvent.wasDragEventTriggered&&(this.activeEvent.wasDragEventTriggered=!1,this.activeEvent.actionsDrag.Transition.forEach(t=>{t.stop(),null!==t.object.currentState&&t.object.changeSelectedState(null,{scene:this.eventContext.page.scene,shared:this.eventContext.sharedAssets})}),this.activeEvent.actionsDrag.Animation.forEach(t=>{t.stop()}),this.activeEvent.actionsDrag.Audio.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrag.Particles.forEach(t=>{t.dispatchGameControl("stop")}),this.activeEvent.actionsDrop.SetVariable.forEach(t=>t.checkConditions()),this.activeEvent.actionsDrop.SetVariable.forEach(t=>t.dispatch()),this.activeEvent.actionsDrop.DynamicVariablePlay.forEach(t=>t.dispatch()),this.activeEvent.actionsDrop.ClearLocalStorage.forEach(t=>t.dispatch()),this.activeEvent.actionsDrop.UserAPI.forEach(t=>t.dispatch())),this.eventManager.controlsManager.orbitControls&&(this.eventManager.controlsManager.orbitControls.enabled=!0)}}}connect(){let t={};if(this.eventContext.page.traverseEntity(e=>{e.component&&(t[e.component.uuid]?t[e.component.uuid].push(e.uuid):t[e.component.uuid]=[e.uuid])}),this.eventContext.page.traverseEntity(e=>{e.data?.events.filter(t=>"DragDrop"===t.data.type&&!t.data.disabled).forEach(a=>{this.events.push(new S(e,a.id,a.data,this.eventContext.page,this.eventContext.sharedAssets,this.eventManager,t))})}),!this.events.length)return;this.domEventsNeeded.clear(),this.domEventsNeeded.add("pointerdown");let e=this.eventContext.domElement;e.addEventListener("pointerdown",this.onPointerDown),e.addEventListener("pointermove",this.onPointerMove),e.addEventListener("pointerup",this.onPointerUp),this.domEventsNeeded.add("pointermove")}disconnect(){if(!this.events.length)return;this.domEventsNeeded.clear();let t=this.eventContext.domElement;t.removeEventListener("pointerdown",this.onPointerDown),t.removeEventListener("pointermove",this.onPointerMove),t.removeEventListener("pointerup",this.onPointerUp),null!==this.trailingCursorTimer&&(clearTimeout(this.trailingCursorTimer),this.trailingCursorTimer=null),this.trailingCursorEvent=null,this.events.forEach(t=>t.dispose())}setCursor(t){this.eventContext.domElement.style.cursor=t}onAnimationFrameDamping(){for(let t of this.events)for(let e of t.dragItems)e.paused||this.updateDragItem(e,!0)}calcPlaneIntersectPos(t,e,a,i){let{getCamera:r,raycaster:o}=this.eventContext;r().getWorldDirection(g),g.negate();let n=x.identity();switch("parent"===i?C.multiplyMatrices(t.parent.matrixWorld,t.hiddenMatrix).decompose(D,n,y):"local"===i&&t.matrixWorld.decompose(D,n,y),a){case"x":D.set(1,0,0).applyQuaternion(n),M.copy(g).cross(D),P.copy(D).cross(M);break;case"y":D.set(0,1,0).applyQuaternion(n),M.copy(g).cross(D),P.copy(D).cross(M);break;case"z":D.set(0,0,1).applyQuaternion(n),M.copy(g).cross(D),P.copy(D).cross(M);break;case"xy":P.set(0,0,1).applyQuaternion(n);break;case"yz":P.set(1,0,0).applyQuaternion(n);break;case"xz":P.set(0,1,0).applyQuaternion(n);break;case"adaptive":g.angleTo(y.set(0,1,0))>Math.PI/6?(D.crossVectors(y.set(0,1,0),g),P.crossVectors(D,y)):P.set(0,1,0);break;default:P.copy(g)}E.setFromMatrixPosition(t.matrixWorld);let s=t.userData.lockedPlane?t.userData.worldPosition0:E;if(f.setFromNormalAndCoplanarPoint(P,s),o.ray.intersectPlane(f,e)&&("x"===a||"y"===a||"z"===a)){let t=y.subVectors(e,s).dot(D);e.copy(s).addScaledVector(D,t)}}updateDragItem(t,e=!1){E.setFromMatrixPosition(t.obj.matrixWorld),"current"===t.reset?m.subVectors(t.fromPosition,E).divideScalar(t.currentDampingFactor):"original"===t.reset?(m.subVectors(t.obj.userData.worldPosition0,E).divideScalar(t.currentDampingFactor),t.fromPosition.copy(t.obj.userData.worldPosition0),t.pointStart.copy(t.fromPosition),t.pointEnd.copy(t.pointStart)):m.subVectors(t.pointEnd,t.pointStart).add(t.fromPosition).sub(E).divideScalar(t.currentDampingFactor),t.paused=!(t.currentDampingFactor>1)||m.length()<.01,(this.activeEvent&&1===this.activeEvent.data.dampingFactor||e)&&I(t,m.add(E),this.activeEvent?.data.drop&&this.activeEvent?.data.autoOrient?t.orientationMatrix:null),t.obj.dispatchEvent({type:"beginEvent",eventName:"DragDrop"}),this.eventManager.requestRender()}updateCursorFromRaycast(){let{raycaster:t,page:e}=this.eventContext,a=e.raycastWithClones(t),i=!1;for(let t of this.events){for(let{obj:e}of t.dragItems)if(e===a[0]?.object||e===a[0]?.object?.object||s.is(e)&&e.isAncestorOf(a[0]?.object.uuid)){switch(i=!0,t.data.cursor){case"hand":this.setCursor("grab");break;case"move":this.setCursor("move")}break}if(i)break}i||this.setCursor("default")}};i("DragDrop",({eventContext:t,eventManager:e})=>new k(t,e)),h("dragdrop");
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bc as t,Cc as e,Dc as s,I as i,Sc as r,a,c as h,ec as l,oc as o,ua as n,v as m,yc as u,za as _}from"./runtime-chunk-
|
|
1
|
+
import{Bc as t,Cc as e,Dc as s,I as i,Sc as r,a,c as h,ec as l,oc as o,ua as n,v as m,yc as u,za as _}from"./runtime-chunk-NPWNPETE.js";import{d as p}from"./runtime-chunk-UIRA2CWJ.js";import{Dc as d,Kc as c,m as g,qa as B}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var S=new m,T=new d,f=[[0,0],[0,1,1],[0,1,1,2],[0,1,2,2,3],[0,1,2,3,4,4,5],[0,1,2,3,4,5,7,8,9,10]],x=[.2126729,.7151522,.072175],M=class extends a{constructor(t,e){super("vec4"),this._width=0,this._height=0,this._materials=[],this._input=t,this._opts=e,this._rtL=this._makeRT(1,1,"SplineBloom.L"),this._rtA=this._makeRT(1,1,"SplineBloom.A"),this._rtB=this._makeRT(1,1,"SplineBloom.B"),this._outputTexNode=o(this._rtL.texture),this._buildMaterials()}static get type(){return"SplineBloomNode"}_makeRT(t,e,s){let i=new c(t,e,{minFilter:B,magFilter:B,depthBuffer:!1});return r()&&(i.texture.internalFormat="rgba8unorm-srgb"),i.texture.name=s,i}_buildMaterials(){for(let t of this._materials)t.dispose();this._materials=[];let r=(t,e)=>{let s=new h;return s.name=t,s.colorNode=e,s.depthTest=!1,s.depthWrite=!1,s.blending=g,s.needsUpdate=!0,s},a=this._opts.luminanceThreshold,m=Math.max(this._opts.luminanceSmoothing,1e-4),p=this._input,d=i(()=>{let t=p.sample(u()),i=l(_(a),_(a+m),n(t.rgb,e(x[0],x[1],x[2])));return s(t.rgb.mul(i),i)});this._materials.push(r("SplineBloom.luminance",d()));let c=f[this._opts.kernelSize]??f[3],B=1/Math.max(1,this._width),S=1/Math.max(1,this._height),T=this._passSequence(c.length);for(let e=0;e<c.length;e++){let s=B*(c[e]+.5)*this._opts.blurScale,a=S*(c[e]+.5)*this._opts.blurScale,h=o(T[e].from.texture),l=i(()=>{let e=u();return h.sample(e.add(t(-s,a))).add(h.sample(e.add(t(s,a)))).add(h.sample(e.add(t(s,-a)))).add(h.sample(e.add(t(-s,-a)))).mul(.25)});this._materials.push(r(`SplineBloom.blur${e}`,l()))}}_passSequence(t){let e=[],s=this._rtL;for(let i=0;i<t-1;i++){let t=1&i?this._rtB:this._rtA;e.push({from:s,to:t}),s=t}return e.push({from:s,to:this._rtL}),e}renderBloom(t){t.getDrawingBufferSize(T);let e=Math.max(1,Math.round(.5*T.x)),s=Math.max(1,Math.round(.5*T.y));(e!==this._width||s!==this._height)&&(this._width=e,this._height=s,this._rtL.dispose(),this._rtA.dispose(),this._rtB.dispose(),this._rtL=this._makeRT(e,s,"SplineBloom.L"),this._rtA=this._makeRT(e,s,"SplineBloom.A"),this._rtB=this._makeRT(e,s,"SplineBloom.B"),this._outputTexNode.value=this._rtL.texture,this._buildMaterials());let i=f[this._opts.kernelSize]??f[3],r=this._passSequence(i.length),a=t.getRenderTarget(),h=t.getMRT();t.setMRT(null),t.setRenderTarget(this._rtL),S.material=this._materials[0],S.name="SplineBloom.luminance",S.render(t);for(let e=0;e<r.length;e++)t.setRenderTarget(r[e].to),S.material=this._materials[e+1],S.name=`SplineBloom.blur${e}`,S.render(t);t.setRenderTarget(a),t.setMRT(h)}setup(){return this._outputTexNode}dispose(){for(let t of this._materials)t.dispose();this._materials=[],this._rtL.dispose(),this._rtA.dispose(),this._rtB.dispose()}};p("bloom",function(t,e){return new M(t,e)});
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./runtime-chunk-NYOF3PNR.js";import{Ab as e,Bc as r,Dc as s,Fb as a,I as i,Ic as h,J as o,P as l,Sc as _,_b as u,a as d,c as m,eb as n,ec as p,ga as c,gb as B,hb as F,ic as T,oc as g,v as f,yc as C,za as k}from"./runtime-chunk-
|
|
1
|
+
import{a as t}from"./runtime-chunk-NYOF3PNR.js";import{Ab as e,Bc as r,Dc as s,Fb as a,I as i,Ic as h,J as o,P as l,Sc as _,_b as u,a as d,c as m,eb as n,ec as p,ga as c,gb as B,hb as F,ic as T,oc as g,v as f,yc as C,za as k}from"./runtime-chunk-NPWNPETE.js";import{d as x}from"./runtime-chunk-UIRA2CWJ.js";import{Ba as D,Dc as M,Kc as R,m as N,qa as b}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var S=new f,V=new M,I=[0,1,1,2],v=class extends d{constructor(t,e,r,s,a){super("vec4"),this._width=0,this._height=0,this._halfWidth=0,this._halfHeight=0,this._materials=[],this._inputColor=t,this._input=e,this._depth=r,this._params=s,this._opts=a,this._rtCoC=this._makeRT(1,1,"DoF.CoC","coc"),this._rtMasked=this._makeRT(1,1,"DoF.Masked.Far","color"),this._rtCoCBlurred=this._makeRT(1,1,"DoF.CoC.Blurred","coc"),this._rtBlurA=this._makeRT(1,1,"DoF.Blur.Target.A","blur"),this._rtBlurB=this._makeRT(1,1,"DoF.Blur.Target.B","blur"),this._rtIntermediate=this._makeRT(1,1,"DoF.Intermediate","color"),this._rtNear=this._makeRT(1,1,"DoF.Bokeh.Near","color"),this._rtFar=this._makeRT(1,1,"DoF.Bokeh.Far","color"),this._nearTexNode=g(this._rtNear.texture),this._farTexNode=g(this._rtFar.texture),this._cocBlurredTexNode=g(this._rtCoCBlurred.texture),this._buildMaterials()}static get type(){return"SplineDepthOfFieldNode"}_makeRT(t,e,r,s){let a=new R(t,e,{minFilter:b,magFilter:b,depthBuffer:!1,type:"color"===s&&this._opts.halfFloat?D:void 0});return"coc"!==s&&a.texture.type!==D&&_()&&(a.texture.internalFormat="rgba8unorm-srgb"),a.texture.name=r,a}_buildMaterials(){for(let t of this._materials)t.dispose();this._materials=[];let _=(t,e)=>{let r=new m;return r.name=t,r.colorNode=e,r.depthTest=!1,r.depthWrite=!1,r.blending=N,r.needsUpdate=!0,r},{focusDistance:d,focusRange:B,bokehScale:F,cameraNear:f,cameraFar:x}=this._params,D=this._params.orthographic,M=this._input,R=this._depth,b=this._opts.inputUv??(t=>t),S=t=>t,V=1/Math.max(1,this._halfWidth),v=1/Math.max(1,this._halfHeight),w=i(()=>{let t=C().toVar(),r=R.sample(t).toVar(),i=h(a(r,f,x),f,x),o=h(e(r,f,x),f,x),_=u(D.greaterThan(.5),o,i).sub(d).toVar(),m=p(k(0),B,l(_)).toVar();return s(m.mul(T(_,k(0))),m.mul(T(k(0),_)),0,1)});this._materials.push(_("SplineDoF.coc",w()));let A=this._cocBlurSequence();for(let t=0;t<I.length;t++){let e=V*I[t]+.5*V,s=v*I[t]+.5*v,a=g(A[t].from.texture),h=i(()=>{let t=C();return a.sample(t.add(r(-e,s))).add(a.sample(t.add(r(e,s)))).add(a.sample(t.add(r(e,-s)))).add(a.sample(t.add(r(-e,-s)))).mul(.25)});this._materials.push(_(`SplineDoF.cocBlur${t}`,h()))}let W=g(this._rtCoC.texture),j=i(()=>{let t=C().toVar(),e=c(W.sample(t).g.mul(F),0,1);return M.sample(b(t)).mul(e)});this._materials.push(_("SplineDoF.mask",j()));let q=t(),y=(t,e,a,h,l)=>{let u=i(()=>{let t=C().toVar(),i=a.sample(t).toVar(),_=(h?i.r:i.g).mul(F).toVar(),u=s(0).toVar();return o(_.equal(0),()=>{u.assign(e.sample(l(t)))}).Else(()=>{let a=h?n(_,i.g.mul(F)):_,o=r(V,v).mul(a).toVar(),d=s(0).toVar();for(let s=0;s<q.length;s+=2)d.addAssign(e.sample(l(t.add(o.mul(r(q[s],q[s+1]))))));u.assign(d.div(64))}),u});return _(t,u())},H=g(this._rtCoCBlurred.texture),P=g(this._rtIntermediate.texture);this._materials.push(y("SplineDoF.farBase",g(this._rtMasked.texture),W,!1,S),y("SplineDoF.farFill",P,W,!1,S),y("SplineDoF.nearBase",M,H,!0,b),y("SplineDoF.nearFill",P,H,!0,S))}_cocBlurSequence(){let t=[],e=this._rtCoC;for(let r=0;r<I.length-1;r++){let s=1&r?this._rtBlurB:this._rtBlurA;t.push({from:e,to:s}),e=s}return t.push({from:e,to:this._rtCoCBlurred}),t}renderDoF(t){t.getDrawingBufferSize(V);let e=Math.max(1,Math.round(V.x)),r=Math.max(1,Math.round(V.y));if(e!==this._width||r!==this._height){this._width=e,this._height=r,this._halfWidth=Math.max(1,Math.round(.5*e)),this._halfHeight=Math.max(1,Math.round(.5*r)),this._disposeTargets();let t=this._halfWidth,s=this._halfHeight;this._rtCoC=this._makeRT(e,r,"DoF.CoC","coc"),this._rtMasked=this._makeRT(e,r,"DoF.Masked.Far","color"),this._rtCoCBlurred=this._makeRT(t,s,"DoF.CoC.Blurred","coc"),this._rtBlurA=this._makeRT(t,s,"DoF.Blur.Target.A","blur"),this._rtBlurB=this._makeRT(t,s,"DoF.Blur.Target.B","blur"),this._rtIntermediate=this._makeRT(t,s,"DoF.Intermediate","color"),this._rtNear=this._makeRT(t,s,"DoF.Bokeh.Near","color"),this._rtFar=this._makeRT(t,s,"DoF.Bokeh.Far","color"),this._nearTexNode.value=this._rtNear.texture,this._farTexNode.value=this._rtFar.texture,this._cocBlurredTexNode.value=this._rtCoCBlurred.texture,this._buildMaterials()}let s=this._cocBlurSequence(),a=[this._rtCoC,...s.map(t=>t.to),this._rtMasked,this._rtIntermediate,this._rtFar,this._rtIntermediate,this._rtNear],i=t.getRenderTarget(),h=t.getMRT();t.setMRT(null);for(let e=0;e<a.length;e++)t.setRenderTarget(a[e]),S.material=this._materials[e],S.name=this._materials[e].name,S.render(t);t.setRenderTarget(i),t.setMRT(h)}setup(){let t=this._nearTexNode,e=this._farTexNode,r=B(this._cocBlurredTexNode.r.mul(this._params.bokehScale),1),s=this._inputColor.mul(e.a.oneMinus()).add(e);return F(s,t,r)}_disposeTargets(){this._rtCoC.dispose(),this._rtMasked.dispose(),this._rtCoCBlurred.dispose(),this._rtBlurA.dispose(),this._rtBlurB.dispose(),this._rtIntermediate.dispose(),this._rtNear.dispose(),this._rtFar.dispose()}dispose(){for(let t of this._materials)t.dispose();this._materials=[],this._disposeTargets()}};x("depthOfField",function(t,e,r,s,a){return new v(t,e,r,s,a)});
|
|
Binary file
|
|
Binary file
|