@splinetool/runtime 2.0.136 → 2.0.137
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-bloom-G2W73REP.js → runtime-bloom-A76ZUWHG.js} +1 -1
- package/build/runtime-bloom-A76ZUWHG.js.br +0 -0
- package/build/runtime-bloom-A76ZUWHG.js.gz +0 -0
- package/build/{runtime-brightnessContrast-HF7UADUZ.js → runtime-brightnessContrast-VYLWTUTU.js} +1 -1
- package/build/runtime-brightnessContrast-VYLWTUTU.js.br +0 -0
- package/build/runtime-brightnessContrast-VYLWTUTU.js.gz +0 -0
- package/build/{runtime-chromaticAberration-TN3UAMBY.js → runtime-chromaticAberration-5PVBZ4SB.js} +1 -1
- package/build/runtime-chromaticAberration-5PVBZ4SB.js.br +0 -0
- package/build/runtime-chromaticAberration-5PVBZ4SB.js.gz +0 -0
- package/build/{runtime-chunk-LY7SO2TH.js → runtime-chunk-2CH5F6NK.js} +1 -1
- package/build/runtime-chunk-2CH5F6NK.js.br +3 -0
- package/build/runtime-chunk-2CH5F6NK.js.gz +0 -0
- package/build/{runtime-chunk-Y5KIM6JD.js → runtime-chunk-2HAYBZSK.js} +1 -1
- package/build/runtime-chunk-2HAYBZSK.js.br +0 -0
- package/build/runtime-chunk-2HAYBZSK.js.gz +0 -0
- package/build/{runtime-chunk-J35IEF7U.js → runtime-chunk-4P34GXFU.js} +1 -1
- package/build/runtime-chunk-4P34GXFU.js.br +0 -0
- package/build/runtime-chunk-4P34GXFU.js.gz +0 -0
- package/build/{runtime-chunk-WJ4PDNAF.js → runtime-chunk-5NU3D3YT.js} +1 -1
- package/build/runtime-chunk-5NU3D3YT.js.br +0 -0
- package/build/runtime-chunk-5NU3D3YT.js.gz +0 -0
- package/build/{runtime-chunk-MPAERLOC.js → runtime-chunk-5WRQOZI6.js} +1 -1
- package/build/runtime-chunk-5WRQOZI6.js.br +0 -0
- package/build/runtime-chunk-5WRQOZI6.js.gz +0 -0
- package/build/{runtime-chunk-SG55UYQR.js → runtime-chunk-6KZ3RCS6.js} +1 -1
- package/build/runtime-chunk-6KZ3RCS6.js.br +0 -0
- package/build/runtime-chunk-6KZ3RCS6.js.gz +0 -0
- package/build/{runtime-chunk-DTWJMB36.js → runtime-chunk-7LXAXUQO.js} +1 -1
- package/build/runtime-chunk-7LXAXUQO.js.br +0 -0
- package/build/runtime-chunk-7LXAXUQO.js.gz +0 -0
- package/build/{runtime-chunk-GECI4KP4.js → runtime-chunk-ABKADKFD.js} +1 -1
- package/build/runtime-chunk-ABKADKFD.js.br +0 -0
- package/build/runtime-chunk-ABKADKFD.js.gz +0 -0
- package/build/{runtime-chunk-GB4L573W.js → runtime-chunk-CBZC4KQ4.js} +1 -1
- package/build/runtime-chunk-CBZC4KQ4.js.br +0 -0
- package/build/runtime-chunk-CBZC4KQ4.js.gz +0 -0
- package/build/{runtime-chunk-LHQWGCW3.js → runtime-chunk-DXI3XJCD.js} +1 -1
- package/build/runtime-chunk-DXI3XJCD.js.br +0 -0
- package/build/runtime-chunk-DXI3XJCD.js.gz +0 -0
- package/build/{runtime-chunk-YDC5V6RK.js → runtime-chunk-GGEO3H32.js} +1 -1
- package/build/runtime-chunk-GGEO3H32.js.br +0 -0
- package/build/runtime-chunk-GGEO3H32.js.gz +0 -0
- package/build/{runtime-chunk-OGF6AKEY.js → runtime-chunk-HFKX6FJ2.js} +1 -1
- package/build/runtime-chunk-HFKX6FJ2.js.br +0 -0
- package/build/runtime-chunk-HFKX6FJ2.js.gz +0 -0
- package/build/{runtime-chunk-2A4CFSEL.js → runtime-chunk-KEHZ3RRX.js} +1 -1
- package/build/runtime-chunk-KEHZ3RRX.js.br +0 -0
- package/build/runtime-chunk-KEHZ3RRX.js.gz +0 -0
- package/build/{runtime-chunk-I32DJTRK.js → runtime-chunk-KY7KPFZZ.js} +1 -1
- package/build/runtime-chunk-KY7KPFZZ.js.br +0 -0
- package/build/runtime-chunk-KY7KPFZZ.js.gz +0 -0
- package/build/{runtime-chunk-Q55KZ7YJ.js → runtime-chunk-N4I2AF2X.js} +1 -1
- package/build/{runtime-chunk-Q55KZ7YJ.js.br → runtime-chunk-N4I2AF2X.js.br} +0 -0
- package/build/{runtime-chunk-Q55KZ7YJ.js.gz → runtime-chunk-N4I2AF2X.js.gz} +0 -0
- package/build/{runtime-chunk-IQXOC3CZ.js → runtime-chunk-NFTNVZWH.js} +1 -1
- package/build/runtime-chunk-NFTNVZWH.js.br +0 -0
- package/build/runtime-chunk-NFTNVZWH.js.gz +0 -0
- package/build/{runtime-chunk-4KJKCBUO.js → runtime-chunk-OXLN66YR.js} +1 -1
- package/build/runtime-chunk-OXLN66YR.js.br +0 -0
- package/build/{runtime-chunk-4KJKCBUO.js.gz → runtime-chunk-OXLN66YR.js.gz} +0 -0
- package/build/{runtime-chunk-SL23QPDR.js → runtime-chunk-PASBPKCJ.js} +1 -1
- package/build/{runtime-chunk-SL23QPDR.js.br → runtime-chunk-PASBPKCJ.js.br} +0 -0
- package/build/runtime-chunk-PASBPKCJ.js.gz +0 -0
- package/build/{runtime-chunk-P4MIP3YD.js → runtime-chunk-QFPGSF3D.js} +1 -1
- package/build/runtime-chunk-QFPGSF3D.js.br +0 -0
- package/build/runtime-chunk-QFPGSF3D.js.gz +0 -0
- package/build/{runtime-chunk-DR2RMT7O.js → runtime-chunk-SFNQYIC6.js} +1 -1
- package/build/{runtime-chunk-DR2RMT7O.js.br → runtime-chunk-SFNQYIC6.js.br} +0 -0
- package/build/runtime-chunk-SFNQYIC6.js.gz +0 -0
- package/build/{runtime-chunk-XDJ5YBJY.js → runtime-chunk-TMUY3M4H.js} +1 -1
- package/build/runtime-chunk-TMUY3M4H.js.br +0 -0
- package/build/runtime-chunk-TMUY3M4H.js.gz +0 -0
- package/build/{runtime-chunk-PP56KKX5.js → runtime-chunk-TRG773KK.js} +1 -1
- package/build/runtime-chunk-TRG773KK.js.br +0 -0
- package/build/runtime-chunk-TRG773KK.js.gz +0 -0
- package/build/{runtime-chunk-6TWWTYVO.js → runtime-chunk-UPJDVSPB.js} +1 -1
- package/build/runtime-chunk-UPJDVSPB.js.br +0 -0
- package/build/runtime-chunk-UPJDVSPB.js.gz +0 -0
- package/build/{runtime-chunk-YILLASAT.js → runtime-chunk-VM3GGSGR.js} +1 -1
- package/build/runtime-chunk-VM3GGSGR.js.br +0 -0
- package/build/runtime-chunk-VM3GGSGR.js.gz +0 -0
- package/build/{runtime-chunk-NFFJSKHR.js → runtime-chunk-WE7BPYCY.js} +1 -1
- package/build/runtime-chunk-WE7BPYCY.js.br +0 -0
- package/build/runtime-chunk-WE7BPYCY.js.gz +0 -0
- package/build/{runtime-chunk-TM7D5U6P.js → runtime-chunk-WJEN2UV4.js} +1 -1
- package/build/runtime-chunk-WJEN2UV4.js.br +0 -0
- package/build/runtime-chunk-WJEN2UV4.js.gz +0 -0
- package/build/{runtime-chunk-VIFHZUFX.js → runtime-chunk-X2L7LAZQ.js} +1 -1
- package/build/runtime-chunk-X2L7LAZQ.js.br +0 -0
- package/build/runtime-chunk-X2L7LAZQ.js.gz +0 -0
- package/build/{runtime-classicRuntime-VSWLNO2X.js → runtime-classicRuntime-F3BUGF2G.js} +1 -1
- package/build/runtime-classicRuntime-F3BUGF2G.js.br +0 -0
- package/build/runtime-classicRuntime-F3BUGF2G.js.gz +0 -0
- package/build/{runtime-cloners-DIGONEHH.js → runtime-cloners-OBCJDJPR.js} +1 -1
- package/build/runtime-cloners-OBCJDJPR.js.br +0 -0
- package/build/runtime-cloners-OBCJDJPR.js.gz +0 -0
- package/build/{runtime-components-DNSXC6NZ.js → runtime-components-S2RGUGVK.js} +1 -1
- package/build/runtime-components-S2RGUGVK.js.br +0 -0
- package/build/runtime-components-S2RGUGVK.js.gz +0 -0
- package/build/{runtime-createDestroy-IOAA3FVA.js → runtime-createDestroy-3GV66WXV.js} +1 -1
- package/build/runtime-createDestroy-3GV66WXV.js.br +0 -0
- package/build/runtime-createDestroy-3GV66WXV.js.gz +0 -0
- package/build/{runtime-depthOfField-OEX7VIZM.js → runtime-depthOfField-5XUSVLJY.js} +1 -1
- package/build/runtime-depthOfField-5XUSVLJY.js.br +0 -0
- package/build/runtime-depthOfField-5XUSVLJY.js.gz +0 -0
- package/build/{runtime-dragDrop-SSDUORUZ.js → runtime-dragDrop-LKJ3GFAB.js} +1 -1
- package/build/runtime-dragDrop-LKJ3GFAB.js.br +0 -0
- package/build/runtime-dragDrop-LKJ3GFAB.js.gz +0 -0
- package/build/{runtime-gameControls-JGUFZKIY.js → runtime-gameControls-WCWEDTTW.js} +1 -1
- package/build/runtime-gameControls-WCWEDTTW.js.br +0 -0
- package/build/runtime-gameControls-WCWEDTTW.js.gz +0 -0
- package/build/{runtime-hair-D7SDPOOH.js → runtime-hair-VFRGBR3I.js} +1 -1
- package/build/runtime-hair-VFRGBR3I.js.br +2 -0
- package/build/runtime-hair-VFRGBR3I.js.gz +0 -0
- package/build/{runtime-hueSaturation-TFS73UQQ.js → runtime-hueSaturation-JYCQZ4B5.js} +1 -1
- package/build/runtime-hueSaturation-JYCQZ4B5.js.br +0 -0
- package/build/runtime-hueSaturation-JYCQZ4B5.js.gz +0 -0
- package/build/{runtime-mergeStaticGeometries-KO7VB2BJ.js → runtime-mergeStaticGeometries-4MFVVR72.js} +1 -1
- package/build/runtime-mergeStaticGeometries-4MFVVR72.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-4MFVVR72.js.gz +0 -0
- package/build/{runtime-miscActions-VZ3Y2D75.js → runtime-miscActions-QTTE5LXQ.js} +1 -1
- package/build/runtime-miscActions-QTTE5LXQ.js.br +0 -0
- package/build/runtime-miscActions-QTTE5LXQ.js.gz +0 -0
- package/build/{runtime-mouseHover-B2A56OXQ.js → runtime-mouseHover-O7XSV4ZH.js} +1 -1
- package/build/runtime-mouseHover-O7XSV4ZH.js.br +0 -0
- package/build/runtime-mouseHover-O7XSV4ZH.js.gz +0 -0
- package/build/{runtime-noise-BXPTQY4V.js → runtime-noise-E6O2DSDO.js} +1 -1
- package/build/runtime-noise-E6O2DSDO.js.br +0 -0
- package/build/runtime-noise-E6O2DSDO.js.gz +0 -0
- package/build/{runtime-particles-M3LEMPGK.js → runtime-particles-SQSQ7LNI.js} +1 -1
- package/build/runtime-particles-SQSQ7LNI.js.br +0 -0
- package/build/runtime-particles-SQSQ7LNI.js.gz +0 -0
- package/build/{runtime-paths-AQ2WLHA4.js → runtime-paths-D3JVGMBX.js} +1 -1
- package/build/runtime-paths-D3JVGMBX.js.br +0 -0
- package/build/runtime-paths-D3JVGMBX.js.gz +0 -0
- package/build/{runtime-pixelation-5SXYXCSB.js → runtime-pixelation-MIHKXKUZ.js} +1 -1
- package/build/runtime-pixelation-MIHKXKUZ.js.br +0 -0
- package/build/runtime-pixelation-MIHKXKUZ.js.gz +0 -0
- package/build/{runtime-resize-DBQXZF43.js → runtime-resize-HM6AE4TS.js} +1 -1
- package/build/runtime-resize-HM6AE4TS.js.br +0 -0
- package/build/runtime-resize-HM6AE4TS.js.gz +0 -0
- package/build/{runtime-sceneTransition-RCHXGNLR.js → runtime-sceneTransition-AWSAJPSW.js} +1 -1
- package/build/runtime-sceneTransition-AWSAJPSW.js.br +0 -0
- package/build/runtime-sceneTransition-AWSAJPSW.js.gz +0 -0
- package/build/{runtime-scroll-SVGJVSQA.js → runtime-scroll-5TY5RYID.js} +1 -1
- package/build/runtime-scroll-5TY5RYID.js.br +0 -0
- package/build/runtime-scroll-5TY5RYID.js.gz +0 -0
- package/build/runtime-shapeBlends-6SXRKNXY.js +1 -0
- package/build/runtime-shapeBlends-6SXRKNXY.js.br +0 -0
- package/build/runtime-shapeBlends-6SXRKNXY.js.gz +0 -0
- package/build/{runtime-text-5AOM5MW5.js → runtime-text-MMWNR6N4.js} +1 -1
- package/build/runtime-text-MMWNR6N4.js.br +0 -0
- package/build/runtime-text-MMWNR6N4.js.gz +0 -0
- package/build/{runtime-textInputs-UO3GI4G5.js → runtime-textInputs-GJJHK4YH.js} +1 -1
- package/build/runtime-textInputs-GJJHK4YH.js.br +0 -0
- package/build/runtime-textInputs-GJJHK4YH.js.gz +0 -0
- package/build/{runtime-timeline-B2BBS4KA.js → runtime-timeline-UFMHI6CI.js} +1 -1
- package/build/runtime-timeline-UFMHI6CI.js.br +0 -0
- package/build/runtime-timeline-UFMHI6CI.js.gz +0 -0
- package/build/{runtime-tracking-K3BXXPOK.js → runtime-tracking-CRQXCRNL.js} +1 -1
- package/build/runtime-tracking-CRQXCRNL.js.br +0 -0
- package/build/runtime-tracking-CRQXCRNL.js.gz +0 -0
- package/build/{runtime-transitions-6VSJYDS6.js → runtime-transitions-7S5NUTFF.js} +1 -1
- package/build/runtime-transitions-7S5NUTFF.js.br +0 -0
- package/build/runtime-transitions-7S5NUTFF.js.gz +0 -0
- package/build/{runtime-ui2d-4UZSC6CB.js → runtime-ui2d-TZPN2KSD.js} +1 -1
- package/build/runtime-ui2d-TZPN2KSD.js.br +0 -0
- package/build/runtime-ui2d-TZPN2KSD.js.gz +0 -0
- package/build/{runtime-vectorShapes-NNYSPKSC.js → runtime-vectorShapes-WLYHQF4C.js} +1 -1
- package/build/runtime-vectorShapes-WLYHQF4C.js.br +0 -0
- package/build/runtime-vectorShapes-WLYHQF4C.js.gz +0 -0
- package/build/{runtime-vignette-AN2KW6O5.js → runtime-vignette-GL2TEUR3.js} +1 -1
- package/build/runtime-vignette-GL2TEUR3.js.br +0 -0
- package/build/runtime-vignette-GL2TEUR3.js.gz +0 -0
- package/build/{runtime-webgpu-CS5SDG7B.js → runtime-webgpu-6VSY7W2V.js} +1 -1
- package/build/runtime-webgpu-6VSY7W2V.js.br +0 -0
- package/build/runtime-webgpu-6VSY7W2V.js.gz +0 -0
- package/build/runtime.cjs +7 -7
- 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 +3 -3
- package/build/runtime-bloom-G2W73REP.js.br +0 -0
- package/build/runtime-bloom-G2W73REP.js.gz +0 -0
- package/build/runtime-brightnessContrast-HF7UADUZ.js.br +0 -0
- package/build/runtime-brightnessContrast-HF7UADUZ.js.gz +0 -0
- package/build/runtime-chromaticAberration-TN3UAMBY.js.br +0 -0
- package/build/runtime-chromaticAberration-TN3UAMBY.js.gz +0 -0
- package/build/runtime-chunk-2A4CFSEL.js.br +0 -0
- package/build/runtime-chunk-2A4CFSEL.js.gz +0 -0
- package/build/runtime-chunk-4KJKCBUO.js.br +0 -0
- package/build/runtime-chunk-6TWWTYVO.js.br +0 -0
- package/build/runtime-chunk-6TWWTYVO.js.gz +0 -0
- package/build/runtime-chunk-DR2RMT7O.js.gz +0 -0
- package/build/runtime-chunk-DTWJMB36.js.br +0 -0
- package/build/runtime-chunk-DTWJMB36.js.gz +0 -0
- package/build/runtime-chunk-GB4L573W.js.br +0 -0
- package/build/runtime-chunk-GB4L573W.js.gz +0 -0
- package/build/runtime-chunk-GECI4KP4.js.br +0 -0
- package/build/runtime-chunk-GECI4KP4.js.gz +0 -0
- package/build/runtime-chunk-I32DJTRK.js.br +0 -0
- package/build/runtime-chunk-I32DJTRK.js.gz +0 -0
- package/build/runtime-chunk-IQXOC3CZ.js.br +0 -0
- package/build/runtime-chunk-IQXOC3CZ.js.gz +0 -0
- package/build/runtime-chunk-J35IEF7U.js.br +0 -0
- package/build/runtime-chunk-J35IEF7U.js.gz +0 -0
- package/build/runtime-chunk-LHQWGCW3.js.br +0 -0
- package/build/runtime-chunk-LHQWGCW3.js.gz +0 -0
- package/build/runtime-chunk-LY7SO2TH.js.br +0 -0
- package/build/runtime-chunk-LY7SO2TH.js.gz +0 -0
- package/build/runtime-chunk-MPAERLOC.js.br +0 -0
- package/build/runtime-chunk-MPAERLOC.js.gz +0 -0
- package/build/runtime-chunk-NFFJSKHR.js.br +0 -0
- package/build/runtime-chunk-NFFJSKHR.js.gz +0 -0
- package/build/runtime-chunk-OGF6AKEY.js.br +0 -0
- package/build/runtime-chunk-OGF6AKEY.js.gz +0 -0
- package/build/runtime-chunk-P4MIP3YD.js.br +0 -0
- package/build/runtime-chunk-P4MIP3YD.js.gz +0 -0
- package/build/runtime-chunk-PP56KKX5.js.br +0 -0
- package/build/runtime-chunk-PP56KKX5.js.gz +0 -0
- package/build/runtime-chunk-SG55UYQR.js.br +0 -3
- package/build/runtime-chunk-SG55UYQR.js.gz +0 -0
- package/build/runtime-chunk-SL23QPDR.js.gz +0 -0
- package/build/runtime-chunk-TM7D5U6P.js.br +0 -0
- package/build/runtime-chunk-TM7D5U6P.js.gz +0 -0
- package/build/runtime-chunk-VIFHZUFX.js.br +0 -0
- package/build/runtime-chunk-VIFHZUFX.js.gz +0 -0
- package/build/runtime-chunk-WJ4PDNAF.js.br +0 -0
- package/build/runtime-chunk-WJ4PDNAF.js.gz +0 -0
- package/build/runtime-chunk-XDJ5YBJY.js.br +0 -0
- package/build/runtime-chunk-XDJ5YBJY.js.gz +0 -0
- package/build/runtime-chunk-Y5KIM6JD.js.br +0 -0
- package/build/runtime-chunk-Y5KIM6JD.js.gz +0 -0
- package/build/runtime-chunk-YDC5V6RK.js.br +0 -0
- package/build/runtime-chunk-YDC5V6RK.js.gz +0 -0
- package/build/runtime-chunk-YILLASAT.js.br +0 -0
- package/build/runtime-chunk-YILLASAT.js.gz +0 -0
- package/build/runtime-classicRuntime-VSWLNO2X.js.br +0 -0
- package/build/runtime-classicRuntime-VSWLNO2X.js.gz +0 -0
- package/build/runtime-cloners-DIGONEHH.js.br +0 -0
- package/build/runtime-cloners-DIGONEHH.js.gz +0 -0
- package/build/runtime-components-DNSXC6NZ.js.br +0 -0
- package/build/runtime-components-DNSXC6NZ.js.gz +0 -0
- package/build/runtime-createDestroy-IOAA3FVA.js.br +0 -0
- package/build/runtime-createDestroy-IOAA3FVA.js.gz +0 -0
- package/build/runtime-depthOfField-OEX7VIZM.js.br +0 -0
- package/build/runtime-depthOfField-OEX7VIZM.js.gz +0 -0
- package/build/runtime-dragDrop-SSDUORUZ.js.br +0 -0
- package/build/runtime-dragDrop-SSDUORUZ.js.gz +0 -0
- package/build/runtime-gameControls-JGUFZKIY.js.br +0 -0
- package/build/runtime-gameControls-JGUFZKIY.js.gz +0 -0
- package/build/runtime-hair-D7SDPOOH.js.br +0 -3
- package/build/runtime-hair-D7SDPOOH.js.gz +0 -0
- package/build/runtime-hueSaturation-TFS73UQQ.js.br +0 -0
- package/build/runtime-hueSaturation-TFS73UQQ.js.gz +0 -0
- package/build/runtime-mergeStaticGeometries-KO7VB2BJ.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-KO7VB2BJ.js.gz +0 -0
- package/build/runtime-miscActions-VZ3Y2D75.js.br +0 -0
- package/build/runtime-miscActions-VZ3Y2D75.js.gz +0 -0
- package/build/runtime-mouseHover-B2A56OXQ.js.br +0 -0
- package/build/runtime-mouseHover-B2A56OXQ.js.gz +0 -0
- package/build/runtime-noise-BXPTQY4V.js.br +0 -0
- package/build/runtime-noise-BXPTQY4V.js.gz +0 -0
- package/build/runtime-particles-M3LEMPGK.js.br +0 -0
- package/build/runtime-particles-M3LEMPGK.js.gz +0 -0
- package/build/runtime-paths-AQ2WLHA4.js.br +0 -0
- package/build/runtime-paths-AQ2WLHA4.js.gz +0 -0
- package/build/runtime-pixelation-5SXYXCSB.js.br +0 -0
- package/build/runtime-pixelation-5SXYXCSB.js.gz +0 -0
- package/build/runtime-resize-DBQXZF43.js.br +0 -0
- package/build/runtime-resize-DBQXZF43.js.gz +0 -0
- package/build/runtime-sceneTransition-RCHXGNLR.js.br +0 -0
- package/build/runtime-sceneTransition-RCHXGNLR.js.gz +0 -0
- package/build/runtime-scroll-SVGJVSQA.js.br +0 -0
- package/build/runtime-scroll-SVGJVSQA.js.gz +0 -0
- package/build/runtime-shapeBlends-5ZAFVAKG.js +0 -1
- package/build/runtime-shapeBlends-5ZAFVAKG.js.br +0 -0
- package/build/runtime-shapeBlends-5ZAFVAKG.js.gz +0 -0
- package/build/runtime-text-5AOM5MW5.js.br +0 -0
- package/build/runtime-text-5AOM5MW5.js.gz +0 -0
- package/build/runtime-textInputs-UO3GI4G5.js.br +0 -0
- package/build/runtime-textInputs-UO3GI4G5.js.gz +0 -0
- package/build/runtime-timeline-B2BBS4KA.js.br +0 -0
- package/build/runtime-timeline-B2BBS4KA.js.gz +0 -0
- package/build/runtime-tracking-K3BXXPOK.js.br +0 -0
- package/build/runtime-tracking-K3BXXPOK.js.gz +0 -0
- package/build/runtime-transitions-6VSJYDS6.js.br +0 -0
- package/build/runtime-transitions-6VSJYDS6.js.gz +0 -0
- package/build/runtime-ui2d-4UZSC6CB.js.br +0 -0
- package/build/runtime-ui2d-4UZSC6CB.js.gz +0 -0
- package/build/runtime-vectorShapes-NNYSPKSC.js.br +0 -0
- package/build/runtime-vectorShapes-NNYSPKSC.js.gz +0 -0
- package/build/runtime-vignette-AN2KW6O5.js.br +0 -0
- package/build/runtime-vignette-AN2KW6O5.js.gz +0 -0
- package/build/runtime-webgpu-CS5SDG7B.js.br +0 -0
- package/build/runtime-webgpu-CS5SDG7B.js.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t}from"./runtime-chunk-MPAERLOC.js";import{a as r,b as i,c as s,d as o}from"./runtime-chunk-6TWWTYVO.js";import{na as a}from"./runtime-chunk-YILLASAT.js";import{h as n,o as h,p,q as c,r as m,s as d,t as l,v as u}from"./runtime-chunk-4KJKCBUO.js";import{f}from"./runtime-chunk-RTLL6WIB.js";import{i as g}from"./runtime-chunk-2PT2WH66.js";import{Aa as y,K as v}from"./runtime-chunk-ADHKZQMB.js";import{Ce as C,Gc as T,Hc as b,Qc as j,Tc as w,Vc as P,dd as M,fd as x,wd as O,we as A,yd as S,ye as _,ze as F}from"./runtime-chunk-KPOUV3HD.js";var D=new b,W=new _,V=class extends S{constructor(e){let t=new x,r=new O({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],s=[],o={},a=new P(15711266),n=new P(15711266),h=new P(2857471);function p(e,t,r){c(e,r),c(t,r)}function c(e,t){i.push(0,0,0),s.push(t.r,t.g,t.b),void 0===o[e]&&(o[e]=[]),o[e].push(i.length/3-1)}p("n1","n2",a),p("n2","n4",a),p("n4","n3",a),p("n3","n1",a),p("f1","f2",a),p("f2","f4",a),p("f4","f3",a),p("f3","f1",a),p("n1","f1",a),p("n2","f2",a),p("n3","f3",a),p("n4","f4",a),p("p","n1",n),p("p","n2",n),p("p","n3",n),p("p","n4",n),p("u1","u2",h),p("u2","u3",h),p("u3","u1",h),t.setAttribute("position",new M(i,3)),t.setAttribute("color",new M(s,3)),super(t,r),this.type="CameraHelper",this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let e=this.geometry,t=this.pointMap;W.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;U("n1",t,e,W,-1,-1,r),U("n2",t,e,W,1,-1,r),U("n3",t,e,W,-1,1,r),U("n4",t,e,W,1,1,r);let i=r;U("f1",t,e,W,-1,-1,i),U("f2",t,e,W,1,-1,i),U("f3",t,e,W,-1,1,i),U("f4",t,e,W,1,1,i);let s=i;U("u1",t,e,W,.35,1.1,s),U("u2",t,e,W,-.35,1.1,s),U("u3",t,e,W,0,1.55,s),e.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function U(e,t,r,i,s,o,a){D.set(s,o,a).unproject(i);let n=t[e];if(void 0!==n){let e=r.getAttribute("position");for(let t=0,r=n.length;t<r;t++)e.setXYZ(n[t],D.x,D.y,D.z)}}var I=class extends(r(V)){constructor(e){super(e),this.object=e,this.name=`CombinedCameraHelper: ${e.uuid}`}updateMatrixWorld(e){super.updateMatrixWorld(e),this.updateTarget()}updateTarget(){let e=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(e)}raycast(e,t){i(this.object,this.geometry,e,t,!0)}};function L(e){return 1-Math.pow(1-e,3)}var z=new b,B=new b,H=new T,k=new b,R=new b,E=new b,q=class extends(o(_,I)){constructor(e="",t={...y.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=v.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let e=this._projectionTransition;if(void 0===e)return;if(this.disposed)return void this._endProjectionTransition();e.raf=requestAnimationFrame(this._tickProjectionTransition);let t=q.projectionTransitionRequestRender??e.requestRender;this.updateProjectionMatrix(),t?.()},this.super_Entity(e,t),this.previousProjectionMatrix=new j,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new C(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new F(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(e){let t=q.projectionTransitionsEnabled;q.projectionTransitionsEnabled=!1;try{return e()}finally{q.projectionTransitionsEnabled=t}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(e){this.perspCamera.fov=e}get fov(){return this.perspCamera.fov}setNear(e,t){"PerspectiveCamera"===e?this.perspCamera.near=t:this.orthoCamera.near=t}setZoom(e,t){t>=0&&("PerspectiveCamera"===e?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}set cameraType(e){"PerspectiveCamera"===e?this.toPerspective():"OrthographicCamera"===e&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(e){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=e:this.orthoCamera.near=e}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(e){e>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}lookAt(e,t,r){"number"==typeof e&&(e=new b(e,t,r)),super.lookAt(e),this.getWorldPosition(z),this.targetOffset=z.distanceTo(e)}getTarget(e=new b){return this.getWorldDirection(B),this.getWorldPosition(z),B.multiplyScalar(this.targetOffset),e.copy(z).add(B),e}getDistanceToTarget(){let e=this.getTarget();return this.getWorldPosition(z),z.distanceTo(e)}updateUp(){this.getWorldQuaternion(H),k.set(0,0,1).applyQuaternion(H),R.copy(w.DEFAULT_UP),this.isUpVectorFlipped&&R.negate(),R.applyQuaternion(H),E.copy(w.DEFAULT_UP).projectOnPlane(k),this.angleOffsetFromUp=E.angleTo(R),this.angleOffsetFromUp*=E.cross(R).dot(k)>=0?1:-1}updateTransformState(e,t){let r=super.updateTransformState(e,t);return void 0!==e.isUpVectorFlipped&&(this.isUpVectorFlipped=e.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(e){let t=e.getWorldPosition(new b),r=e.getWorldDirection(new b).multiplyScalar(this.targetOffset);return{position:t.clone().add(r),target:t}}getViewToTarget(e){let t=this.getWorldDirection(new b).multiplyScalar(this.targetOffset);return{position:e.clone().sub(t),target:e}}getViewToObject(e){let t=new b;return e.getWorldPosition(t),this.getViewToTarget(t)}setViewplaneSize(e,t,r=!1){if(this.aspect=e/t,r){let r=e>t?this.aspect:1,i=e>t?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-e,this.right=.5*e,this.top=.5*t,this.bottom=.5*-t;this.updateProjectionMatrix()}copyViewPlaneSize(e){this.aspect=e.aspect,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let e=this._projectionTransition;if(void 0===e)return 1;let t=(performance.now()-e.start)/e.duration;return t>=1?1:t<=0?0:L(t)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return q.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=q.projectionTransitionMinAgeMs}_beginProjectionTransition(e){let t=this._projectionTransition;void 0===t&&(t={from:new j,blend:new j,blendInverse:new j,start:0,duration:q.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:e},this._projectionTransition=t),t.from.copy(this.projectionMatrix),t.start=performance.now(),t.duration=q.projectionTransitionDuration,t.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,e&&(t.requestRender=e),0!==t.raf&&cancelAnimationFrame(t.raf),t.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let e=this._projectionTransition;if(void 0===e)return;let t=(performance.now()-e.start)/e.duration;if(t>=1)return void this._endProjectionTransition();let r=L(t),i=e.from.elements,s=this._activeSubCamera.projectionMatrix.elements,o=e.blend.elements,a=e.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*a),h=r*n/(r*n+(1-r)*Math.max(1e-6,s[15]-s[11]*a));for(let e=0;e<16;e++)o[e]=i[e]+(s[e]-i[e])*h;e.blendInverse.copy(e.blend).invert(),this.projectionMatrix=e.blend,this.projectionMatrixInverse=e.blendInverse}_endProjectionTransition(){let e=this._projectionTransition;if(void 0===e)return;0!==e.raf&&cancelAnimationFrame(e.raf),this._projectionTransition=void 0;let t=this._activeSubCamera;this.projectionMatrix=t.projectionMatrix,this.projectionMatrixInverse=t.projectionMatrixInverse}_syncProjectionTransition(e){let t=e._projectionTransition;if(void 0===t)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new j,blend:new j,blendInverse:new j,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(t.from),r.start=t.start,r.duration=t.duration,r.referenceDepth=t.referenceDepth,this._applyProjectionTransition()}setFocalLength(e){this.perspCamera.setFocalLength(e),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(e,t,r,i,s,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(e,t,r,i,s,o):this.orthoCamera.setViewOffset(e,t,r,i,s,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(e,t){return super.copy(e,t),this.parent=e.parent,this.orthoCamera.copy(e.orthoCamera),this.perspCamera.copy(e.perspCamera),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.far=e.far,this.view=null===e.view?null:Object.assign({},e.view),this._cameraType=e._cameraType,this.aspect=e.aspect,this.fov=e.fov,this.focus=e.focus,this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this.targetOffset=v.sanitizeTargetOffset(e.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(e),this}toCameraState(e=[]){let t={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return f(t,e)}updateCameraSubtype(e,t){let r="perspective"===e?"PerspectiveCamera":"OrthographicCamera";void 0!==t.zoom&&this.setZoom(r,t.zoom),void 0!==t.near&&this.setNear(r,t.near),void 0!==t.fov&&"PerspectiveCamera"===r&&(this.fov=t.fov)}updateState(e,t){this.updateCameraState(e,t)}updateCameraState(e,t){this.updateState_Entity(e,t),void 0!==e.far&&(this.far=e.far),void 0!==e.orthographic&&this.updateCameraSubtype("orthographic",e.orthographic),void 0!==e.perspective&&this.updateCameraSubtype("perspective",e.perspective),void 0!==e.type&&(e.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(t?.shared.requestRender),this.cameraType=e.type),void 0!==e.up&&this.up.fromArray(e.up.map(e=>"number"==typeof e?e:0)),void 0!==e.targetOffset&&(this.targetOffset=v.sanitizeTargetOffset(e.targetOffset)),void 0!==e.isUpVectorFlipped&&(this.isUpVectorFlipped=e.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(e,t,r){super.updateByPatchedOp(e,t,r),1===e.path.length&&0===e.type&&this.updateCameraSubtype(e.path[0],e.props)}toState(e){return{...super.toState(e),...this.toCameraState(e),type:this.cameraType}}},G=q;G.projectionTransitionsEnabled=!1,G.projectionTransitionDuration=350,G.projectionTransitionMinAgeMs=1e3;var K=new j,Q=new j,N=new j,Z=new j,Y=new j;function J(e){let t=!1;return e.scene.objects.traverse((e,r)=>{"BooleanGeometry"===r.geometry?.type&&(t=!0)}),t}function X(e,t){let r=e.cloner;return void 0!==r&&r.parent===t?r:void 0}var $=new Float32Array(0);function ee(e,t,r,i){let s=16*(t.children.length+1);$.length<s&&($=new Float32Array(s));let o=0,a=e=>{e.toArray($,16*o),o++},n=!0!==t.parameters.hideBase;n&&a(i),N.copy(e.matrix);for(let e of t.children)!g(e)||!1===e.playModeVisible||(Z.copy(e.matrix).multiply(e.pivotMatrix),Y.multiplyMatrices(N,Z),(!n||!Y.equals(i))&&a(Y));try{return 0===o?0:l(r,$.subarray(0,16*o))}finally{d(r)}}var te=class extends a{constructor(e,t,r){super(e,t),this.data=t,this.meshSetAddresses=[],this.needsTransformForDownstream=!1,this.geometry=new x,this.onAfterRender=(e,t,r,i,s,o)=>{super.onAfterRender(e,t,r,i,s,o),this.recomputeBoolean()},this.geometry.userData.parameters={width:0,height:0,depth:0}}get booleanOp(){return this.data.geometry.operation}get phongAngle(){return this.data.geometry.phongAngle??45}get isLOD(){return this.recomputeBoolean(),!1}updateByPatchedOp(e,t,r){super.updateByPatchedOp(e,t,r),1===e.path.length&&"geometry"===e.path[0]&&0===e.type&&void 0!==e.props.operation&&(this.freeBooleanPointer(),this.resetBBoxNeedsUpdate())}freeBooleanPointer(){super.freeBooleanPointer(),this.geometry.dispose()}recomputeBoolean(r,i=!0){if(-1!==this.booleanMeshSetAddress&&!r)return;for(let e=0;e<this.children.length;e++){let t=this.children[e];t instanceof te&&!0===t.dataPatched.visible&&t.recomputeBoolean(!0===r,i)}this.meshSetAddresses=[];for(let e=0;e<this.children.length;e++){let t=this.children[e];if(t instanceof u&&!0===t.dataPatched.visible&&t.geometry.attributes.position?.count>0&&t.geometry.drawRange.count>0&&0!==t.booleanMeshSetAddress){K.copy(t.matrix).multiply(t.pivotMatrix);try{let e=X(t,this);if(-1===t.booleanMeshSetAddress){if((t.geometry.index??t.geometry.getAttribute("position")).count/3<15e5){let s=h(t.geometry,!0===r,i);t.booleanMeshSetAddress=void 0===e||-1===s?s:ee(t,e,s,K)}if(-1===t.booleanMeshSetAddress)return;void 0===e&&m(t.booleanMeshSetAddress,K),t.booleanMatrixInvOld.copy(K).invert(),t.booleanWasTransformed=!1}else t instanceof te&&!0===t.needsTransformForDownstream?(void 0===e?m(t.booleanMeshSetAddress,K):t.booleanMeshSetAddress=ee(t,e,t.booleanMeshSetAddress,K),t.needsTransformForDownstream=!1):!0===t.booleanWasTransformed&&(m(t.booleanMeshSetAddress,Q.multiplyMatrices(K,t.booleanMatrixInvOld)),t.booleanMatrixInvOld.copy(K).invert(),t.booleanWasTransformed=!1)}catch(e){console.error(e),t.booleanMeshSetAddress=0,t.geometry.userData.booleanOperationDidFail=!0;continue}if(0===t.booleanMeshSetAddress)continue;this.meshSetAddresses.push(t.booleanMeshSetAddress),t.geometry.userData.booleanOperationDidFail=!1}}if(0===this.meshSetAddresses.length){if(0!==this.geometry.getAttribute("position")?.array.length){let e=this.geometry;e.dispose(),this.geometry=new x,this.geometry.userData=e.userData,this.geometry.boundingSphere=e.boundingSphere,this.geometry.setAttribute("position",new M([],3))}return void this.geometry.setDrawRange(0,0)}if(!0===r)return c(this.meshSetAddresses,this.booleanOp);let s=this.geometry;s.dispose(),this.geometry=new x,this.geometry.userData=s.userData,this.geometry.boundingSphere=s.boundingSphere;try{this.booleanMeshSetAddress=p(this.meshSetAddresses,this.booleanOp,this.geometry,this.phongAngle)}catch(e){this.booleanMeshSetAddress=0,this.geometry.userData.booleanOperationDidFail=!0,console.error(e)}this.booleanMatrixInvOld.copy(this.matrix).invert(),this.needsTransformForDownstream=!0,e(this),t(this)}dispose(){super.dispose(),this.geometry.dispose()}},re=new WeakSet;function ie(e){return e.isPointLight?1:(e.isSpotLight,3)}function se(e){return e.isDirectionalLight?0:e.isSpotLight?1:2}var oe,ae=[];function ne(e){ae.length=0,e.traverseVisible(e=>{(function(e){let t=e;return!0===t.isPointLight||!0===t.isSpotLight||!0===t.isDirectionalLight})(e)&&(!0===e.castShadow||re.has(e))&&ae.push(e)});let t=!1;if(0===ae.length)return t;ae.sort((e,t)=>se(e)-se(t)||e.id-t.id);let r=12;for(let e of ae){let i=ie(e);i<=r?(r-=i,re.delete(e)&&(e.castShadow=!0,t=!0)):!0===e.castShadow&&(e.castShadow=!1,re.add(e))}return ae.length=0,t}(oe||(oe={})).is=function(e){return n.is(e)&&e instanceof A};var he=(e,t)=>class extends(o(e,t)){updateState_Light(e,t){if(this.updateState_Entity(e,t),void 0!==e.color&&(this.color=t.shared.color(e.color)),void 0!==e.intensity&&(this.intensity=e.intensity*Math.PI),void 0!==e.depth){let t=this.shadow;t.camera.far=e.depth,t.needsUpdate=!0}void 0!==e.shadows&&(function(e){re.delete(e)}(this),this.castShadow=e.shadows)}},pe=e=>e instanceof u,ce=e=>null!==e&&e instanceof te,me=e=>s.is(e);export{G as a,J as b,te as c,ne as d,oe as e,he as f,pe as g,ce as h,me as i};
|
|
1
|
+
import{a as e,b as t}from"./runtime-chunk-5WRQOZI6.js";import{a as r,b as i,c as s,d as o}from"./runtime-chunk-UPJDVSPB.js";import{na as a}from"./runtime-chunk-VM3GGSGR.js";import{h as n,o as h,p,q as c,r as m,s as d,t as l,v as u}from"./runtime-chunk-OXLN66YR.js";import{f}from"./runtime-chunk-RTLL6WIB.js";import{i as g}from"./runtime-chunk-2PT2WH66.js";import{Aa as y,K as v}from"./runtime-chunk-ADHKZQMB.js";import{Ce as C,Gc as b,Hc as T,Qc as j,Tc as w,Vc as P,dd as M,fd as x,wd as O,we as S,yd as A,ye as _,ze as F}from"./runtime-chunk-KPOUV3HD.js";var D=new T,W=new _,V=class extends A{constructor(e){let t=new x,r=new O({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],s=[],o={},a=new P(15711266),n=new P(15711266),h=new P(2857471);function p(e,t,r){c(e,r),c(t,r)}function c(e,t){i.push(0,0,0),s.push(t.r,t.g,t.b),void 0===o[e]&&(o[e]=[]),o[e].push(i.length/3-1)}p("n1","n2",a),p("n2","n4",a),p("n4","n3",a),p("n3","n1",a),p("f1","f2",a),p("f2","f4",a),p("f4","f3",a),p("f3","f1",a),p("n1","f1",a),p("n2","f2",a),p("n3","f3",a),p("n4","f4",a),p("p","n1",n),p("p","n2",n),p("p","n3",n),p("p","n4",n),p("u1","u2",h),p("u2","u3",h),p("u3","u1",h),t.setAttribute("position",new M(i,3)),t.setAttribute("color",new M(s,3)),super(t,r),this.type="CameraHelper",this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let e=this.geometry,t=this.pointMap;W.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;U("n1",t,e,W,-1,-1,r),U("n2",t,e,W,1,-1,r),U("n3",t,e,W,-1,1,r),U("n4",t,e,W,1,1,r);let i=r;U("f1",t,e,W,-1,-1,i),U("f2",t,e,W,1,-1,i),U("f3",t,e,W,-1,1,i),U("f4",t,e,W,1,1,i);let s=i;U("u1",t,e,W,.35,1.1,s),U("u2",t,e,W,-.35,1.1,s),U("u3",t,e,W,0,1.55,s),e.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function U(e,t,r,i,s,o,a){D.set(s,o,a).unproject(i);let n=t[e];if(void 0!==n){let e=r.getAttribute("position");for(let t=0,r=n.length;t<r;t++)e.setXYZ(n[t],D.x,D.y,D.z)}}var I=class extends(r(V)){constructor(e){super(e),this.object=e,this.name=`CombinedCameraHelper: ${e.uuid}`}updateMatrixWorld(e){super.updateMatrixWorld(e),this.updateTarget()}updateTarget(){let e=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(e)}raycast(e,t){i(this.object,this.geometry,e,t,!0)}};function z(e){return 1-Math.pow(1-e,3)}var B=new T,L=new T,R=new b,H=new T,k=new T,q=new T,E=class extends(o(_,I)){constructor(e="",t={...y.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=v.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let e=this._projectionTransition;if(void 0===e)return;if(this.disposed)return void this._endProjectionTransition();e.raf=requestAnimationFrame(this._tickProjectionTransition);let t=E.projectionTransitionRequestRender??e.requestRender;this.updateProjectionMatrix(),t?.()},this.super_Entity(e,t),this.previousProjectionMatrix=new j,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new C(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new F(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(e){let t=E.projectionTransitionsEnabled;E.projectionTransitionsEnabled=!1;try{return e()}finally{E.projectionTransitionsEnabled=t}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(e){this.perspCamera.fov=e}get fov(){return this.perspCamera.fov}setNear(e,t){"PerspectiveCamera"===e?this.perspCamera.near=t:this.orthoCamera.near=t}setZoom(e,t){t>=0&&("PerspectiveCamera"===e?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}set cameraType(e){"PerspectiveCamera"===e?this.toPerspective():"OrthographicCamera"===e&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(e){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=e:this.orthoCamera.near=e}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(e){e>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}lookAt(e,t,r){"number"==typeof e&&(e=new T(e,t,r)),super.lookAt(e),this.getWorldPosition(B),this.targetOffset=B.distanceTo(e)}getTarget(e=new T){return this.getWorldDirection(L),this.getWorldPosition(B),L.multiplyScalar(this.targetOffset),e.copy(B).add(L),e}getDistanceToTarget(){let e=this.getTarget();return this.getWorldPosition(B),B.distanceTo(e)}updateUp(){this.getWorldQuaternion(R),H.set(0,0,1).applyQuaternion(R),k.copy(w.DEFAULT_UP),this.isUpVectorFlipped&&k.negate(),k.applyQuaternion(R),q.copy(w.DEFAULT_UP).projectOnPlane(H),this.angleOffsetFromUp=q.angleTo(k),this.angleOffsetFromUp*=q.cross(k).dot(H)>=0?1:-1}updateTransformState(e,t){let r=super.updateTransformState(e,t);return void 0!==e.isUpVectorFlipped&&(this.isUpVectorFlipped=e.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(e){let t=e.getWorldPosition(new T),r=e.getWorldDirection(new T).multiplyScalar(this.targetOffset);return{position:t.clone().add(r),target:t}}getViewToTarget(e){let t=this.getWorldDirection(new T).multiplyScalar(this.targetOffset);return{position:e.clone().sub(t),target:e}}getViewToObject(e){let t=new T;return e.getWorldPosition(t),this.getViewToTarget(t)}setViewplaneSize(e,t,r=!1){if(this.aspect=e/t,r){let r=e>t?this.aspect:1,i=e>t?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-e,this.right=.5*e,this.top=.5*t,this.bottom=.5*-t;this.updateProjectionMatrix()}copyViewPlaneSize(e){this.aspect=e.aspect,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let e=this._projectionTransition;if(void 0===e)return 1;let t=(performance.now()-e.start)/e.duration;return t>=1?1:t<=0?0:z(t)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return E.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=E.projectionTransitionMinAgeMs}_beginProjectionTransition(e){let t=this._projectionTransition;void 0===t&&(t={from:new j,blend:new j,blendInverse:new j,start:0,duration:E.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:e},this._projectionTransition=t),t.from.copy(this.projectionMatrix),t.start=performance.now(),t.duration=E.projectionTransitionDuration,t.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,e&&(t.requestRender=e),0!==t.raf&&cancelAnimationFrame(t.raf),t.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let e=this._projectionTransition;if(void 0===e)return;let t=(performance.now()-e.start)/e.duration;if(t>=1)return void this._endProjectionTransition();let r=z(t),i=e.from.elements,s=this._activeSubCamera.projectionMatrix.elements,o=e.blend.elements,a=e.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*a),h=r*n/(r*n+(1-r)*Math.max(1e-6,s[15]-s[11]*a));for(let e=0;e<16;e++)o[e]=i[e]+(s[e]-i[e])*h;e.blendInverse.copy(e.blend).invert(),this.projectionMatrix=e.blend,this.projectionMatrixInverse=e.blendInverse}_endProjectionTransition(){let e=this._projectionTransition;if(void 0===e)return;0!==e.raf&&cancelAnimationFrame(e.raf),this._projectionTransition=void 0;let t=this._activeSubCamera;this.projectionMatrix=t.projectionMatrix,this.projectionMatrixInverse=t.projectionMatrixInverse}_syncProjectionTransition(e){let t=e._projectionTransition;if(void 0===t)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new j,blend:new j,blendInverse:new j,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(t.from),r.start=t.start,r.duration=t.duration,r.referenceDepth=t.referenceDepth,this._applyProjectionTransition()}setFocalLength(e){this.perspCamera.setFocalLength(e),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(e,t,r,i,s,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(e,t,r,i,s,o):this.orthoCamera.setViewOffset(e,t,r,i,s,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(e,t){return super.copy(e,t),this.parent=e.parent,this.orthoCamera.copy(e.orthoCamera),this.perspCamera.copy(e.perspCamera),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.far=e.far,this.view=null===e.view?null:Object.assign({},e.view),this._cameraType=e._cameraType,this.aspect=e.aspect,this.fov=e.fov,this.focus=e.focus,this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this.targetOffset=v.sanitizeTargetOffset(e.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(e),this}toCameraState(e=[]){let t={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return f(t,e)}updateCameraSubtype(e,t){let r="perspective"===e?"PerspectiveCamera":"OrthographicCamera";void 0!==t.zoom&&this.setZoom(r,t.zoom),void 0!==t.near&&this.setNear(r,t.near),void 0!==t.fov&&"PerspectiveCamera"===r&&(this.fov=t.fov)}updateState(e,t){this.updateCameraState(e,t)}updateCameraState(e,t){this.updateState_Entity(e,t),void 0!==e.far&&(this.far=e.far),void 0!==e.orthographic&&this.updateCameraSubtype("orthographic",e.orthographic),void 0!==e.perspective&&this.updateCameraSubtype("perspective",e.perspective),void 0!==e.type&&(e.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(t?.shared.requestRender),this.cameraType=e.type),void 0!==e.up&&this.up.fromArray(e.up.map(e=>"number"==typeof e?e:0)),void 0!==e.targetOffset&&(this.targetOffset=v.sanitizeTargetOffset(e.targetOffset)),void 0!==e.isUpVectorFlipped&&(this.isUpVectorFlipped=e.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(e,t,r){super.updateByPatchedOp(e,t,r),1===e.path.length&&0===e.type&&this.updateCameraSubtype(e.path[0],e.props)}toState(e){return{...super.toState(e),...this.toCameraState(e),type:this.cameraType}}},G=E;G.projectionTransitionsEnabled=!1,G.projectionTransitionDuration=350,G.projectionTransitionMinAgeMs=1e3;var Q=new j,N=new j,Z=new j,K=new j,X=new j;function Y(e){let t=!1;return e.scene.objects.traverse((e,r)=>{"BooleanGeometry"===r.geometry?.type&&(t=!0)}),t}function J(e,t){let r=e.cloner;return void 0!==r&&r.parent===t?r:void 0}var $=new Float32Array(0);function ee(e,t,r,i){let s=16*(t.children.length+1);$.length<s&&($=new Float32Array(s));let o=0,a=e=>{e.toArray($,16*o),o++},n=!0!==t.parameters.hideBase;n&&a(i),Z.copy(e.matrix);for(let e of t.children)!g(e)||!1===e.playModeVisible||(K.copy(e.matrix).multiply(e.pivotMatrix),X.multiplyMatrices(Z,K),(!n||!X.equals(i))&&a(X));try{return 0===o?0:l(r,$.subarray(0,16*o))}finally{d(r)}}var te=class extends a{constructor(e,t,r){super(e,t),this.data=t,this.meshSetAddresses=[],this.needsTransformForDownstream=!1,this.geometry=new x,this.onAfterRender=(e,t,r,i,s,o)=>{super.onAfterRender(e,t,r,i,s,o),this.recomputeBoolean()},this.geometry.userData.parameters={width:0,height:0,depth:0}}get booleanOp(){return this.data.geometry.operation}get phongAngle(){return this.data.geometry.phongAngle??45}get isLOD(){return this.recomputeBoolean(),!1}updateByPatchedOp(e,t,r){super.updateByPatchedOp(e,t,r),1===e.path.length&&"geometry"===e.path[0]&&0===e.type&&void 0!==e.props.operation&&(this.freeBooleanPointer(),this.resetBBoxNeedsUpdate())}freeBooleanPointer(){super.freeBooleanPointer(),this.geometry.dispose()}recomputeBoolean(r,i=!0){if(-1!==this.booleanMeshSetAddress&&!r)return;for(let e=0;e<this.children.length;e++){let t=this.children[e];t instanceof te&&!0===t.dataPatched.visible&&t.recomputeBoolean(!0===r,i)}this.meshSetAddresses=[];for(let e=0;e<this.children.length;e++){let t=this.children[e];if(t instanceof u&&!0===t.dataPatched.visible&&t.geometry.attributes.position?.count>0&&t.geometry.drawRange.count>0&&0!==t.booleanMeshSetAddress){Q.copy(t.matrix).multiply(t.pivotMatrix);try{let e=J(t,this);if(-1===t.booleanMeshSetAddress){if((t.geometry.index??t.geometry.getAttribute("position")).count/3<15e5){let s=h(t.geometry,!0===r,i);t.booleanMeshSetAddress=void 0===e||-1===s?s:ee(t,e,s,Q)}if(-1===t.booleanMeshSetAddress)return;void 0===e&&m(t.booleanMeshSetAddress,Q),t.booleanMatrixInvOld.copy(Q).invert(),t.booleanWasTransformed=!1}else t instanceof te&&!0===t.needsTransformForDownstream?(void 0===e?m(t.booleanMeshSetAddress,Q):t.booleanMeshSetAddress=ee(t,e,t.booleanMeshSetAddress,Q),t.needsTransformForDownstream=!1):!0===t.booleanWasTransformed&&(m(t.booleanMeshSetAddress,N.multiplyMatrices(Q,t.booleanMatrixInvOld)),t.booleanMatrixInvOld.copy(Q).invert(),t.booleanWasTransformed=!1)}catch(e){console.error(e),t.booleanMeshSetAddress=0,t.geometry.userData.booleanOperationDidFail=!0;continue}if(0===t.booleanMeshSetAddress)continue;this.meshSetAddresses.push(t.booleanMeshSetAddress),t.geometry.userData.booleanOperationDidFail=!1}}if(0===this.meshSetAddresses.length){if(0!==this.geometry.getAttribute("position")?.array.length){let e=this.geometry;e.dispose(),this.geometry=new x,this.geometry.userData=e.userData,this.geometry.boundingSphere=e.boundingSphere,this.geometry.setAttribute("position",new M([],3))}return void this.geometry.setDrawRange(0,0)}if(!0===r)return c(this.meshSetAddresses,this.booleanOp);let s=this.geometry;s.dispose(),this.geometry=new x,this.geometry.userData=s.userData,this.geometry.boundingSphere=s.boundingSphere;try{this.booleanMeshSetAddress=p(this.meshSetAddresses,this.booleanOp,this.geometry,this.phongAngle)}catch(e){this.booleanMeshSetAddress=0,this.geometry.userData.booleanOperationDidFail=!0,console.error(e)}this.booleanMatrixInvOld.copy(this.matrix).invert(),this.needsTransformForDownstream=!0,e(this),t(this)}dispose(){super.dispose(),this.geometry.dispose()}},re=new WeakSet;function ie(e){return e.isPointLight?1:(e.isSpotLight,3)}function se(e){return e.isDirectionalLight?0:e.isSpotLight?1:2}var oe,ae=[];function ne(e){ae.length=0,e.traverseVisible(e=>{(function(e){let t=e;return!0===t.isPointLight||!0===t.isSpotLight||!0===t.isDirectionalLight})(e)&&(!0===e.castShadow||re.has(e))&&ae.push(e)});let t=!1;if(0===ae.length)return t;ae.sort((e,t)=>se(e)-se(t)||e.id-t.id);let r=12;for(let e of ae){let i=ie(e);i<=r?(r-=i,re.delete(e)&&(e.castShadow=!0,t=!0)):!0===e.castShadow&&(e.castShadow=!1,re.add(e))}return ae.length=0,t}(oe||(oe={})).is=function(e){return n.is(e)&&e instanceof S};var he=(e,t)=>class extends(o(e,t)){updateState_Light(e,t){if(this.updateState_Entity(e,t),void 0!==e.color&&(this.color=t.shared.color(e.color)),void 0!==e.intensity&&(this.intensity=e.intensity*Math.PI),void 0!==e.depth){let t=this.shadow;t.camera.far=e.depth,t.needsUpdate=!0}void 0!==e.shadows&&(function(e){re.delete(e)}(this),this.castShadow=e.shadows)}},pe=e=>e instanceof u,ce=e=>null!==e&&e instanceof te,me=e=>s.is(e);export{G as a,Y as b,te as c,ne as d,oe as e,he as f,pe as g,ce as h,me as i};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./runtime-chunk-
|
|
1
|
+
import{j as e}from"./runtime-chunk-OXLN66YR.js";import{Gd as t,Hc as r,Qc as i,Ye as n,ed as a,ld as o}from"./runtime-chunk-KPOUV3HD.js";var s;(s||(s={})).is=e=>"objectHelper"in e;var l=(r,i)=>class extends(e(r)){constructor(){super(...arguments),this.objectHelper=new i(this),this.gizmos={}}get geometryHelper(){return i.geometryHelper}raycast(e,t){this.objectHelper.raycast(e,t)}showGizmos(){for(let e in this.gizmos){let t=this.gizmos[e];t instanceof n&&(t.visible=!0)}}updateEntityBoxSize(e,r){this.objectHelper.visible&&this.geometryHelper instanceof t?(e.setScalar(0),r.set(this.geometryHelper.parameters.width,this.geometryHelper.parameters.height,this.geometryHelper.parameters.height).multiplyScalar(.5)):super.updateEntityBoxSize(e,r)}hideGizmos(){for(let e in this.gizmos){let t=this.gizmos[e];t instanceof n&&(t.visible=!1)}}},c=e=>{var r;return(r=class extends e{}).geometryHelper=new t(30,30,30),r},p=new o,u=new a,m=new i,f=(e,t,i,n,a=!1,o=e)=>{let s=t,l=o.matrixWorld;if(null===s.boundingSphere&&s.computeBoundingSphere(),u.copy(s.boundingSphere),u.applyMatrix4(l),!1===i.ray.intersectsSphere(u)||(m.copy(l).invert(),p.copy(i.ray).applyMatrix4(m),null!==s.boundingBox&&!1===p.intersectsBox(s.boundingBox)))return;let c,f,h,d,g,y,x=s.index,b=s.attributes.position,w=s.drawRange;if(!1===a){for(g=Math.max(0,w.start),y=Math.min(x.count,w.start+w.count);g<y;g+=3)if(f=x.getX(g),h=x.getX(g+1),d=x.getX(g+2),c=H(e,i,p,b,f,h,d),c)return c.faceIndex=Math.floor(g/3),void n.push(c)}else{let t=s.attributes.position,a=new r,l=new r,c=new r,u=new r,m=2,f=1/((o.scale.x+o.scale.y+o.scale.z)/3),h=f*f;for(let r=Math.max(0,w.start),s=Math.min(t.count,w.start+w.count)-1;r<s;r+=m){if(a.fromBufferAttribute(t,r),l.fromBufferAttribute(t,r+1),p.distanceSqToSegment(a,l,u,c)>h)continue;u.applyMatrix4(o.matrixWorld);let s=i.ray.origin.distanceTo(u);s<i.near||s>i.far||n.push({distance:s,point:c.clone().applyMatrix4(o.matrixWorld),object:e})}}function H(e,t,i,n,a,o,s){let l=new r,c=new r,p=new r,u=new r,m=new r;if(l.fromBufferAttribute(n,a),c.fromBufferAttribute(n,o),p.fromBufferAttribute(n,s),null===i.intersectTriangle(l,c,p,!1,u))return null;m.copy(u),m.applyMatrix4(e.matrixWorld);let f=t.ray.origin.distanceTo(m);return f<t.near||f>t.far?null:{faceIndex:1,distance:f,point:m.clone(),object:e}}};export{c as a,f as b,s as c,l as d};
|
|
Binary file
|
|
Binary file
|