@splinetool/runtime 2.0.174 → 2.0.176
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-FYR42K7J.js → runtime-bloom-RQXY5DZG.js} +1 -1
- package/build/runtime-bloom-RQXY5DZG.js.br +0 -0
- package/build/runtime-bloom-RQXY5DZG.js.gz +0 -0
- package/build/{runtime-brightnessContrast-Z2TD6CI5.js → runtime-brightnessContrast-DAVLR35Y.js} +1 -1
- package/build/runtime-brightnessContrast-DAVLR35Y.js.br +0 -0
- package/build/runtime-brightnessContrast-DAVLR35Y.js.gz +0 -0
- package/build/{runtime-chromaticAberration-AJT4YYPF.js → runtime-chromaticAberration-DBT2U77E.js} +1 -1
- package/build/runtime-chromaticAberration-DBT2U77E.js.br +0 -0
- package/build/runtime-chromaticAberration-DBT2U77E.js.gz +0 -0
- package/build/{runtime-chunk-ZQ6GABHO.js → runtime-chunk-2C62GX4Z.js} +1 -1
- package/build/runtime-chunk-2C62GX4Z.js.br +0 -0
- package/build/runtime-chunk-2C62GX4Z.js.gz +0 -0
- package/build/{runtime-chunk-NKSEAFY5.js → runtime-chunk-3TA2HUQW.js} +1 -1
- package/build/runtime-chunk-3TA2HUQW.js.br +0 -0
- package/build/runtime-chunk-3TA2HUQW.js.gz +0 -0
- package/build/{runtime-chunk-OMYRSFIV.js → runtime-chunk-3XJ3PCUB.js} +1 -1
- package/build/runtime-chunk-3XJ3PCUB.js.br +0 -0
- package/build/runtime-chunk-3XJ3PCUB.js.gz +0 -0
- package/build/{runtime-chunk-2LFUXWW6.js → runtime-chunk-3ZKERL5U.js} +1 -1
- package/build/runtime-chunk-3ZKERL5U.js.br +0 -0
- package/build/runtime-chunk-3ZKERL5U.js.gz +0 -0
- package/build/{runtime-chunk-6AOWU5K7.js → runtime-chunk-67CEF35M.js} +1 -1
- package/build/runtime-chunk-67CEF35M.js.br +1 -0
- package/build/runtime-chunk-67CEF35M.js.gz +0 -0
- package/build/{runtime-chunk-SEEZBSBW.js → runtime-chunk-C2KTGEPL.js} +1 -1
- package/build/runtime-chunk-C2KTGEPL.js.br +0 -0
- package/build/runtime-chunk-C2KTGEPL.js.gz +0 -0
- package/build/{runtime-chunk-YLFI4U64.js → runtime-chunk-DGCXIX6R.js} +1 -1
- package/build/runtime-chunk-DGCXIX6R.js.br +0 -0
- package/build/runtime-chunk-DGCXIX6R.js.gz +0 -0
- package/build/{runtime-chunk-DMPXQBP5.js → runtime-chunk-EYTCVCPP.js} +1 -1
- package/build/runtime-chunk-EYTCVCPP.js.br +0 -0
- package/build/runtime-chunk-EYTCVCPP.js.gz +0 -0
- package/build/{runtime-chunk-5BPJU2PC.js → runtime-chunk-H2F4TR44.js} +1 -1
- package/build/runtime-chunk-H2F4TR44.js.br +0 -0
- package/build/runtime-chunk-H2F4TR44.js.gz +0 -0
- package/build/{runtime-chunk-N4VG2FWX.js → runtime-chunk-HD3Q5T5R.js} +1 -1
- package/build/runtime-chunk-HD3Q5T5R.js.br +0 -0
- package/build/runtime-chunk-HD3Q5T5R.js.gz +0 -0
- package/build/{runtime-chunk-B4XFIU4H.js → runtime-chunk-HPTMDXRU.js} +1 -1
- package/build/runtime-chunk-HPTMDXRU.js.br +0 -0
- package/build/runtime-chunk-HPTMDXRU.js.gz +0 -0
- package/build/{runtime-chunk-NXTMZQOP.js → runtime-chunk-HRRJSLEC.js} +1 -1
- package/build/runtime-chunk-HRRJSLEC.js.br +0 -0
- package/build/runtime-chunk-HRRJSLEC.js.gz +0 -0
- package/build/{runtime-chunk-HKIGHESY.js → runtime-chunk-J7SAMDUV.js} +1 -1
- package/build/runtime-chunk-J7SAMDUV.js.br +0 -0
- package/build/{runtime-chunk-HKIGHESY.js.gz → runtime-chunk-J7SAMDUV.js.gz} +0 -0
- package/build/{runtime-chunk-DYHWFBYP.js → runtime-chunk-JX5XV2NQ.js} +1 -1
- package/build/runtime-chunk-JX5XV2NQ.js.br +0 -0
- package/build/runtime-chunk-JX5XV2NQ.js.gz +0 -0
- package/build/{runtime-chunk-62XCGTXK.js → runtime-chunk-LEXJQCI4.js} +1 -1
- package/build/runtime-chunk-LEXJQCI4.js.br +0 -0
- package/build/runtime-chunk-LEXJQCI4.js.gz +0 -0
- package/build/{runtime-chunk-6MPQFBOZ.js → runtime-chunk-NMBG3SAF.js} +1 -1
- package/build/runtime-chunk-NMBG3SAF.js.br +0 -0
- package/build/runtime-chunk-NMBG3SAF.js.gz +0 -0
- package/build/{runtime-chunk-T2SHEGMH.js → runtime-chunk-O7YRQAEV.js} +1 -1
- package/build/runtime-chunk-O7YRQAEV.js.br +0 -0
- package/build/runtime-chunk-O7YRQAEV.js.gz +0 -0
- package/build/{runtime-chunk-VDGQ2JWR.js → runtime-chunk-PDRTF4LS.js} +1 -1
- package/build/runtime-chunk-PDRTF4LS.js.br +0 -0
- package/build/runtime-chunk-PDRTF4LS.js.gz +0 -0
- package/build/{runtime-chunk-KEIAO4O4.js → runtime-chunk-QORUSDYI.js} +1 -1
- package/build/runtime-chunk-QORUSDYI.js.br +0 -0
- package/build/runtime-chunk-QORUSDYI.js.gz +0 -0
- package/build/{runtime-chunk-PEIDK5PP.js → runtime-chunk-U6UE6C4Q.js} +1 -1
- package/build/{runtime-chunk-PEIDK5PP.js.br → runtime-chunk-U6UE6C4Q.js.br} +0 -0
- package/build/runtime-chunk-U6UE6C4Q.js.gz +0 -0
- package/build/{runtime-chunk-LC5G667E.js → runtime-chunk-U7S52CLA.js} +1 -1
- package/build/runtime-chunk-U7S52CLA.js.br +0 -0
- package/build/runtime-chunk-U7S52CLA.js.gz +0 -0
- package/build/{runtime-chunk-JNYOOICX.js → runtime-chunk-XP4GFXNG.js} +1 -1
- package/build/runtime-chunk-XP4GFXNG.js.br +0 -0
- package/build/runtime-chunk-XP4GFXNG.js.gz +0 -0
- package/build/{runtime-chunk-D37HCVO6.js → runtime-chunk-YEZNLRKO.js} +1 -1
- package/build/runtime-chunk-YEZNLRKO.js.br +0 -0
- package/build/runtime-chunk-YEZNLRKO.js.gz +0 -0
- package/build/{runtime-chunk-FZ2YQ764.js → runtime-chunk-YSVFQMQ5.js} +1 -1
- package/build/runtime-chunk-YSVFQMQ5.js.br +0 -0
- package/build/runtime-chunk-YSVFQMQ5.js.gz +0 -0
- package/build/{runtime-chunk-6OWUQOAZ.js → runtime-chunk-Z2VAUNWU.js} +1 -1
- package/build/runtime-chunk-Z2VAUNWU.js.br +0 -0
- package/build/runtime-chunk-Z2VAUNWU.js.gz +0 -0
- package/build/{runtime-chunk-RAGFCRSI.js → runtime-chunk-Z47D7VHE.js} +1 -1
- package/build/runtime-chunk-Z47D7VHE.js.br +0 -0
- package/build/runtime-chunk-Z47D7VHE.js.gz +0 -0
- package/build/{runtime-chunk-Y7OYPWZK.js → runtime-chunk-ZZHPLB37.js} +1 -1
- package/build/{runtime-chunk-Y7OYPWZK.js.br → runtime-chunk-ZZHPLB37.js.br} +0 -0
- package/build/runtime-chunk-ZZHPLB37.js.gz +0 -0
- package/build/{runtime-classicRuntime-5CNZ5QZ4.js → runtime-classicRuntime-XXCGE7CW.js} +1 -1
- package/build/runtime-classicRuntime-XXCGE7CW.js.br +0 -0
- package/build/runtime-classicRuntime-XXCGE7CW.js.gz +0 -0
- package/build/{runtime-cloners-XP3YY4Y7.js → runtime-cloners-4CDUQZ2J.js} +1 -1
- package/build/runtime-cloners-4CDUQZ2J.js.br +0 -0
- package/build/runtime-cloners-4CDUQZ2J.js.gz +0 -0
- package/build/{runtime-components-R2C3G2JX.js → runtime-components-QATTXV6Z.js} +1 -1
- package/build/runtime-components-QATTXV6Z.js.br +0 -0
- package/build/runtime-components-QATTXV6Z.js.gz +0 -0
- package/build/{runtime-createDestroy-4JRU2VWW.js → runtime-createDestroy-RTXOFOO5.js} +1 -1
- package/build/runtime-createDestroy-RTXOFOO5.js.br +0 -0
- package/build/runtime-createDestroy-RTXOFOO5.js.gz +0 -0
- package/build/{runtime-depthOfField-QL3GNCZE.js → runtime-depthOfField-BFKWTX5P.js} +1 -1
- package/build/runtime-depthOfField-BFKWTX5P.js.br +0 -0
- package/build/runtime-depthOfField-BFKWTX5P.js.gz +0 -0
- package/build/{runtime-dragDrop-IGS2MGLK.js → runtime-dragDrop-VBOZCC5B.js} +1 -1
- package/build/runtime-dragDrop-VBOZCC5B.js.br +0 -0
- package/build/runtime-dragDrop-VBOZCC5B.js.gz +0 -0
- package/build/{runtime-gameControls-A4WWWU7C.js → runtime-gameControls-WD55OP6R.js} +1 -1
- package/build/runtime-gameControls-WD55OP6R.js.br +0 -0
- package/build/runtime-gameControls-WD55OP6R.js.gz +0 -0
- package/build/{runtime-hair-SIYVHXSB.js → runtime-hair-PYBTE3SQ.js} +1 -1
- package/build/runtime-hair-PYBTE3SQ.js.br +3 -0
- package/build/runtime-hair-PYBTE3SQ.js.gz +0 -0
- package/build/{runtime-hueSaturation-GWZGW5VM.js → runtime-hueSaturation-362NXWK4.js} +1 -1
- package/build/runtime-hueSaturation-362NXWK4.js.br +0 -0
- package/build/runtime-hueSaturation-362NXWK4.js.gz +0 -0
- package/build/{runtime-mergeStaticGeometries-6OOMS3PK.js → runtime-mergeStaticGeometries-L64VW4OP.js} +1 -1
- package/build/runtime-mergeStaticGeometries-L64VW4OP.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-L64VW4OP.js.gz +0 -0
- package/build/{runtime-miscActions-S7FI6B6D.js → runtime-miscActions-JTWRDXFY.js} +1 -1
- package/build/runtime-miscActions-JTWRDXFY.js.br +0 -0
- package/build/runtime-miscActions-JTWRDXFY.js.gz +0 -0
- package/build/{runtime-mouseHover-VRZ3MYHE.js → runtime-mouseHover-AZSBUQ5M.js} +1 -1
- package/build/runtime-mouseHover-AZSBUQ5M.js.br +0 -0
- package/build/runtime-mouseHover-AZSBUQ5M.js.gz +0 -0
- package/build/{runtime-noise-LQ2CILV3.js → runtime-noise-ELZSK3HI.js} +1 -1
- package/build/runtime-noise-ELZSK3HI.js.br +0 -0
- package/build/runtime-noise-ELZSK3HI.js.gz +0 -0
- package/build/{runtime-particles-3UFUHKS3.js → runtime-particles-M4L73J2I.js} +1 -1
- package/build/runtime-particles-M4L73J2I.js.br +0 -0
- package/build/runtime-particles-M4L73J2I.js.gz +0 -0
- package/build/{runtime-paths-VFVLHJBC.js → runtime-paths-BZFGBZ5Z.js} +1 -1
- package/build/runtime-paths-BZFGBZ5Z.js.br +0 -0
- package/build/runtime-paths-BZFGBZ5Z.js.gz +0 -0
- package/build/{runtime-pixelation-7ZUJEPD3.js → runtime-pixelation-OPQXUSR7.js} +1 -1
- package/build/runtime-pixelation-OPQXUSR7.js.br +0 -0
- package/build/runtime-pixelation-OPQXUSR7.js.gz +0 -0
- package/build/{runtime-resize-YK4NQLX2.js → runtime-resize-MRPGQQTR.js} +1 -1
- package/build/runtime-resize-MRPGQQTR.js.br +0 -0
- package/build/runtime-resize-MRPGQQTR.js.gz +0 -0
- package/build/{runtime-sceneTransition-4WUF3KCT.js → runtime-sceneTransition-FR62L6XI.js} +1 -1
- package/build/runtime-sceneTransition-FR62L6XI.js.br +0 -0
- package/build/runtime-sceneTransition-FR62L6XI.js.gz +0 -0
- package/build/{runtime-scroll-QHM35WME.js → runtime-scroll-H3UQYGNR.js} +1 -1
- package/build/runtime-scroll-H3UQYGNR.js.br +0 -0
- package/build/runtime-scroll-H3UQYGNR.js.gz +0 -0
- package/build/runtime-shapeBlends-IJWOHIZ3.js +1 -0
- package/build/runtime-shapeBlends-IJWOHIZ3.js.br +2 -0
- package/build/runtime-shapeBlends-IJWOHIZ3.js.gz +0 -0
- package/build/{runtime-text-OADJITF5.js → runtime-text-6UIAPRQ5.js} +1 -1
- package/build/runtime-text-6UIAPRQ5.js.br +0 -0
- package/build/runtime-text-6UIAPRQ5.js.gz +0 -0
- package/build/{runtime-textInputs-AXPLYP7H.js → runtime-textInputs-7ZD54QRN.js} +1 -1
- package/build/runtime-textInputs-7ZD54QRN.js.br +0 -0
- package/build/runtime-textInputs-7ZD54QRN.js.gz +0 -0
- package/build/{runtime-timeline-KVFZELXU.js → runtime-timeline-54AELQQA.js} +1 -1
- package/build/runtime-timeline-54AELQQA.js.br +0 -0
- package/build/runtime-timeline-54AELQQA.js.gz +0 -0
- package/build/{runtime-tracking-BN5IDDXC.js → runtime-tracking-CYFNVOVG.js} +1 -1
- package/build/runtime-tracking-CYFNVOVG.js.br +0 -0
- package/build/runtime-tracking-CYFNVOVG.js.gz +0 -0
- package/build/{runtime-transitions-K6TBXS4S.js → runtime-transitions-HNLLSBWA.js} +1 -1
- package/build/runtime-transitions-HNLLSBWA.js.br +0 -0
- package/build/runtime-transitions-HNLLSBWA.js.gz +0 -0
- package/build/{runtime-ui2d-RPL4S7DC.js → runtime-ui2d-CMFMG5MB.js} +1 -1
- package/build/runtime-ui2d-CMFMG5MB.js.br +0 -0
- package/build/runtime-ui2d-CMFMG5MB.js.gz +0 -0
- package/build/{runtime-vectorShapes-XVIG5YPK.js → runtime-vectorShapes-QCG6XXFP.js} +1 -1
- package/build/runtime-vectorShapes-QCG6XXFP.js.br +0 -0
- package/build/runtime-vectorShapes-QCG6XXFP.js.gz +0 -0
- package/build/{runtime-vignette-QVMOFL65.js → runtime-vignette-ZBKQ3MGU.js} +1 -1
- package/build/runtime-vignette-ZBKQ3MGU.js.br +0 -0
- package/build/runtime-vignette-ZBKQ3MGU.js.gz +0 -0
- package/build/{runtime-webgpu-GEXRR7OJ.js → runtime-webgpu-OAFEYMRZ.js} +1 -1
- package/build/runtime-webgpu-OAFEYMRZ.js.br +0 -0
- package/build/runtime-webgpu-OAFEYMRZ.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 +1 -1
- package/build/runtime-bloom-FYR42K7J.js.br +0 -0
- package/build/runtime-bloom-FYR42K7J.js.gz +0 -0
- package/build/runtime-brightnessContrast-Z2TD6CI5.js.br +0 -0
- package/build/runtime-brightnessContrast-Z2TD6CI5.js.gz +0 -0
- package/build/runtime-chromaticAberration-AJT4YYPF.js.br +0 -0
- package/build/runtime-chromaticAberration-AJT4YYPF.js.gz +0 -0
- package/build/runtime-chunk-2LFUXWW6.js.br +0 -0
- package/build/runtime-chunk-2LFUXWW6.js.gz +0 -0
- package/build/runtime-chunk-5BPJU2PC.js.br +0 -0
- package/build/runtime-chunk-5BPJU2PC.js.gz +0 -0
- package/build/runtime-chunk-62XCGTXK.js.br +0 -0
- package/build/runtime-chunk-62XCGTXK.js.gz +0 -0
- package/build/runtime-chunk-6AOWU5K7.js.br +0 -3
- package/build/runtime-chunk-6AOWU5K7.js.gz +0 -0
- package/build/runtime-chunk-6MPQFBOZ.js.br +0 -0
- package/build/runtime-chunk-6MPQFBOZ.js.gz +0 -0
- package/build/runtime-chunk-6OWUQOAZ.js.br +0 -0
- package/build/runtime-chunk-6OWUQOAZ.js.gz +0 -0
- package/build/runtime-chunk-B4XFIU4H.js.br +0 -0
- package/build/runtime-chunk-B4XFIU4H.js.gz +0 -0
- package/build/runtime-chunk-D37HCVO6.js.br +0 -0
- package/build/runtime-chunk-D37HCVO6.js.gz +0 -0
- package/build/runtime-chunk-DMPXQBP5.js.br +0 -0
- package/build/runtime-chunk-DMPXQBP5.js.gz +0 -0
- package/build/runtime-chunk-DYHWFBYP.js.br +0 -0
- package/build/runtime-chunk-DYHWFBYP.js.gz +0 -0
- package/build/runtime-chunk-FZ2YQ764.js.br +0 -0
- package/build/runtime-chunk-FZ2YQ764.js.gz +0 -0
- package/build/runtime-chunk-HKIGHESY.js.br +0 -0
- package/build/runtime-chunk-JNYOOICX.js.br +0 -0
- package/build/runtime-chunk-JNYOOICX.js.gz +0 -0
- package/build/runtime-chunk-KEIAO4O4.js.br +0 -0
- package/build/runtime-chunk-KEIAO4O4.js.gz +0 -0
- package/build/runtime-chunk-LC5G667E.js.br +0 -0
- package/build/runtime-chunk-LC5G667E.js.gz +0 -0
- package/build/runtime-chunk-N4VG2FWX.js.br +0 -0
- package/build/runtime-chunk-N4VG2FWX.js.gz +0 -0
- package/build/runtime-chunk-NKSEAFY5.js.br +0 -0
- package/build/runtime-chunk-NKSEAFY5.js.gz +0 -0
- package/build/runtime-chunk-NXTMZQOP.js.br +0 -0
- package/build/runtime-chunk-NXTMZQOP.js.gz +0 -0
- package/build/runtime-chunk-OMYRSFIV.js.br +0 -0
- package/build/runtime-chunk-OMYRSFIV.js.gz +0 -0
- package/build/runtime-chunk-PEIDK5PP.js.gz +0 -0
- package/build/runtime-chunk-RAGFCRSI.js.br +0 -0
- package/build/runtime-chunk-RAGFCRSI.js.gz +0 -0
- package/build/runtime-chunk-SEEZBSBW.js.br +0 -0
- package/build/runtime-chunk-SEEZBSBW.js.gz +0 -0
- package/build/runtime-chunk-T2SHEGMH.js.br +0 -0
- package/build/runtime-chunk-T2SHEGMH.js.gz +0 -0
- package/build/runtime-chunk-VDGQ2JWR.js.br +0 -0
- package/build/runtime-chunk-VDGQ2JWR.js.gz +0 -0
- package/build/runtime-chunk-Y7OYPWZK.js.gz +0 -0
- package/build/runtime-chunk-YLFI4U64.js.br +0 -0
- package/build/runtime-chunk-YLFI4U64.js.gz +0 -0
- package/build/runtime-chunk-ZQ6GABHO.js.br +0 -0
- package/build/runtime-chunk-ZQ6GABHO.js.gz +0 -0
- package/build/runtime-classicRuntime-5CNZ5QZ4.js.br +0 -0
- package/build/runtime-classicRuntime-5CNZ5QZ4.js.gz +0 -0
- package/build/runtime-cloners-XP3YY4Y7.js.br +0 -0
- package/build/runtime-cloners-XP3YY4Y7.js.gz +0 -0
- package/build/runtime-components-R2C3G2JX.js.br +0 -0
- package/build/runtime-components-R2C3G2JX.js.gz +0 -0
- package/build/runtime-createDestroy-4JRU2VWW.js.br +0 -0
- package/build/runtime-createDestroy-4JRU2VWW.js.gz +0 -0
- package/build/runtime-depthOfField-QL3GNCZE.js.br +0 -0
- package/build/runtime-depthOfField-QL3GNCZE.js.gz +0 -0
- package/build/runtime-dragDrop-IGS2MGLK.js.br +0 -0
- package/build/runtime-dragDrop-IGS2MGLK.js.gz +0 -0
- package/build/runtime-gameControls-A4WWWU7C.js.br +0 -0
- package/build/runtime-gameControls-A4WWWU7C.js.gz +0 -0
- package/build/runtime-hair-SIYVHXSB.js.br +0 -3
- package/build/runtime-hair-SIYVHXSB.js.gz +0 -0
- package/build/runtime-hueSaturation-GWZGW5VM.js.br +0 -0
- package/build/runtime-hueSaturation-GWZGW5VM.js.gz +0 -0
- package/build/runtime-mergeStaticGeometries-6OOMS3PK.js.br +0 -8
- package/build/runtime-mergeStaticGeometries-6OOMS3PK.js.gz +0 -0
- package/build/runtime-miscActions-S7FI6B6D.js.br +0 -0
- package/build/runtime-miscActions-S7FI6B6D.js.gz +0 -0
- package/build/runtime-mouseHover-VRZ3MYHE.js.br +0 -0
- package/build/runtime-mouseHover-VRZ3MYHE.js.gz +0 -0
- package/build/runtime-noise-LQ2CILV3.js.br +0 -0
- package/build/runtime-noise-LQ2CILV3.js.gz +0 -0
- package/build/runtime-particles-3UFUHKS3.js.br +0 -0
- package/build/runtime-particles-3UFUHKS3.js.gz +0 -0
- package/build/runtime-paths-VFVLHJBC.js.br +0 -0
- package/build/runtime-paths-VFVLHJBC.js.gz +0 -0
- package/build/runtime-pixelation-7ZUJEPD3.js.br +0 -0
- package/build/runtime-pixelation-7ZUJEPD3.js.gz +0 -0
- package/build/runtime-resize-YK4NQLX2.js.br +0 -0
- package/build/runtime-resize-YK4NQLX2.js.gz +0 -0
- package/build/runtime-sceneTransition-4WUF3KCT.js.br +0 -0
- package/build/runtime-sceneTransition-4WUF3KCT.js.gz +0 -0
- package/build/runtime-scroll-QHM35WME.js.br +0 -0
- package/build/runtime-scroll-QHM35WME.js.gz +0 -0
- package/build/runtime-shapeBlends-ZA4TGYAN.js +0 -1
- package/build/runtime-shapeBlends-ZA4TGYAN.js.br +0 -3
- package/build/runtime-shapeBlends-ZA4TGYAN.js.gz +0 -0
- package/build/runtime-text-OADJITF5.js.br +0 -0
- package/build/runtime-text-OADJITF5.js.gz +0 -0
- package/build/runtime-textInputs-AXPLYP7H.js.br +0 -0
- package/build/runtime-textInputs-AXPLYP7H.js.gz +0 -0
- package/build/runtime-timeline-KVFZELXU.js.br +0 -0
- package/build/runtime-timeline-KVFZELXU.js.gz +0 -0
- package/build/runtime-tracking-BN5IDDXC.js.br +0 -0
- package/build/runtime-tracking-BN5IDDXC.js.gz +0 -0
- package/build/runtime-transitions-K6TBXS4S.js.br +0 -0
- package/build/runtime-transitions-K6TBXS4S.js.gz +0 -0
- package/build/runtime-ui2d-RPL4S7DC.js.br +0 -0
- package/build/runtime-ui2d-RPL4S7DC.js.gz +0 -0
- package/build/runtime-vectorShapes-XVIG5YPK.js.br +0 -0
- package/build/runtime-vectorShapes-XVIG5YPK.js.gz +0 -0
- package/build/runtime-vignette-QVMOFL65.js.br +0 -0
- package/build/runtime-vignette-QVMOFL65.js.gz +0 -0
- package/build/runtime-webgpu-GEXRR7OJ.js.br +0 -0
- package/build/runtime-webgpu-GEXRR7OJ.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as n}from"./runtime-chunk-
|
|
1
|
+
import{h as n}from"./runtime-chunk-J7SAMDUV.js";function e(o){if(o.component){let t=o.component.instances.indexOf(o);t>=0&&o.component.instances.splice(t,1);for(let t of o.children)n.is(t)&&e(t)}}export{e as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./runtime-chunk-YLFI4U64.js";import{b as e}from"./runtime-chunk-SEEZBSBW.js";import{H as i,ia as r}from"./runtime-chunk-FZ2YQ764.js";import{f as n,v as s}from"./runtime-chunk-HKIGHESY.js";import{c as o}from"./runtime-chunk-RTLL6WIB.js";import{c as a}from"./runtime-chunk-2PT2WH66.js";import{L as l}from"./runtime-chunk-ADHKZQMB.js";import{Ec as h,Gc as c,Hc as d,Qc as u,Rc as p,Tc as m,Yc as f,sd as y}from"./runtime-chunk-KPOUV3HD.js";import{a as b,b as x}from"./runtime-chunk-ML3Z74BL.js";var g=x(b((t,e)=>{var i,r;i=t,r=function(){return t.importState=function(e){var i=new t;return i.importState(e),i},t;function t(){return function(t){var e=0,i=0,r=0,n=1;0==t.length&&(t=[+new Date]);var s=function(){var t=4022871197,e=function(e){e=e.toString();for(var i=0;i<e.length;i++){var r=.02519603282416938*(t+=e.charCodeAt(i));r-=t=r>>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)};return e.version="Mash 0.9",e}();e=s(" "),i=s(" "),r=s(" ");for(var o=0;o<t.length;o++)(e-=s(t[o]))<0&&(e+=1),(i-=s(t[o]))<0&&(i+=1),(r-=s(t[o]))<0&&(r+=1);s=null;var a=function(){var t=2091639*e+2.3283064365386963e-10*n;return e=i,i=r,r=t-(n=0|t)};return a.next=a,a.uint32=function(){return 4294967296*a()},a.fract53=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.version="Alea 0.9",a.args=t,a.exportState=function(){return[e,i,r,n]},a.importState=function(t){e=+t[0]||0,i=+t[1]||0,r=+t[2]||0,n=+t[3]||0},a}(Array.prototype.slice.call(arguments))}},"object"==typeof t?e.exports=r():"function"==typeof define&&define.amd?define(r):i.Alea=r()})()),v=.5*(Math.sqrt(3)-1),M=(3-Math.sqrt(3))/6,w=1/3,j=1/6,A=(Math.sqrt(5),Math.sqrt(5),t=>0|Math.floor(t)),S=new Float64Array([1,1,-1,1,1,-1,-1,-1,1,0,-1,0,1,0,-1,0,0,1,0,-1,0,1,0,-1]),F=new Float64Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0,1,0,1,-1,0,1,1,0,-1,-1,0,-1,0,1,1,0,-1,1,0,1,-1,0,-1,-1]);function _(t){let e=new Uint8Array(512);for(let t=0;t<256;t++)e[t]=t;for(let i=0;i<255;i++){let r=i+~~(t()*(256-i)),n=e[i];e[i]=e[r],e[r]=n}for(let t=256;t<512;t++)e[t]=e[t-256];return e}var C=new f,z=class{constructor(t){this.weightAttribute=null;let e=t.geometry;if(!e.isBufferGeometry||3!==e.attributes.position.itemSize)throw new Error("THREE.MeshSurfaceSampler: Requires BufferGeometry triangle mesh.");e.index&&(e=e.toNonIndexed()),this.geometry=e,this.randomFunction=Math.random,this.positionAttribute=this.geometry.getAttribute("position"),this.distribution=null}build(){let t=this.positionAttribute,e=new Float32Array(t.count/3);for(let i=0;i<t.count;i+=3){let r=1;C.a.fromBufferAttribute(t,i),C.b.fromBufferAttribute(t,i+1),C.c.fromBufferAttribute(t,i+2),r*=C.getArea(),e[i/3]=r}this.distribution=new Float32Array(t.count/3);let i=0;for(let t=0;t<e.length;t++)i+=e[t],this.distribution[t]=i;return this}setRandomGenerator(t){return this.randomFunction=t,this}sample(t,e){if(this.distribution){let i=this.distribution[this.distribution.length-1],r=this.binarySearch(this.randomFunction()*i);return this.sampleFace(r,t,e)}}binarySearch(t){if(!this.distribution)return 0;let e=this.distribution,i=0,r=e.length-1,n=-1;for(;i<=r;){let s=Math.ceil((i+r)/2);if(0===s||e[s-1]<=t&&e[s]>t){n=s;break}t<e[s]?r=s-1:i=s+1}return n}sampleFace(t,e,i){let r=this.randomFunction(),n=this.randomFunction();return r+n>1&&(r=1-r,n=1-n),C.a.fromBufferAttribute(this.positionAttribute,3*t),C.b.fromBufferAttribute(this.positionAttribute,3*t+1),C.c.fromBufferAttribute(this.positionAttribute,3*t+2),e.set(0,0,0).addScaledVector(C.a,r).addScaledVector(C.b,n).addScaledVector(C.c,1-(r+n)),C.getNormal(i),this}},W={x:[1,0,0],"-x":[-1,0,0],y:[0,1,0],"-y":[0,-1,0],z:[0,0,1],"-z":[0,0,-1]},O={polygon_center:0,edge:1,vertex:2},N=(t,e)=>(i,r)=>e&&0!==i&&0!==t?t*r/100:0,B=(t,e)=>{let i=Math.abs(e),r=-1*i;return(t- -1)*(i-r)/2+r},P=new d,T=new d,E=new d,U=new d;function k(t,e){let i=E.fromArray(t),r=U.fromArray(e);T.copy(r).sub(i);let n=T.length();return T.normalize().multiplyScalar(.5*n),P.copy(i).add(T).toArray()}var I,V,R,D,L=new f,q=new d,G=new d,H=new d,$=class extends y{},Q=class extends ${constructor(t,e){super(void 0,void 0,e),this.source=t,this.isClonerInstancedMesh=!0,this.pivotMatrix=new u,this.previousModelViewMatrix=new u,this.copyPreviousMatrix=!0,this.capacity=e,this.count=0,this.matrixAutoUpdate=!1}raycast(t,e){}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorld.multiply(this.pivotMatrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(let e of this.children)e.updateMatrixWorld(t)}updateWorldMatrix(t,e){let i=this.parent;if(t&&null!==i&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorld.multiply(this.pivotMatrix),e)for(let t of this.children)t.updateWorldMatrix(!1,!0)}onAfterRender(t,e,i,r,n,s){this.copyPreviousMatrix&&this.previousModelViewMatrix.copy(this.modelViewMatrix)}get visible(){return!0!==this.source.cloner?.insideBoolean&&(this.source.visible||this.source.dataPatched.visible&&!0===this.source.dataPatched.cloner?.hideBase)}set visible(t){}get castShadow(){return this.source.castShadow}set castShadow(t){}get receiveShadow(){return this.source.receiveShadow}set receiveShadow(t){}get layers(){return this.source.layers}set layers(t){}get geometry(){return this.source.geometry}set geometry(t){}get material(){return this.source.material}set material(t){}get morphTargetInfluences(){return this.source.morphTargetInfluences}set morphTargetInfluences(t){}},Y=t=>.5*(1-Math.cos(t*Math.PI)),Z=class{constructor(){this.perlin=new Array(4096)}noise(t,e=0,i=0){if(null==this.perlin){this.perlin=new Array(4096);for(let t=0;t<4096;t++)this.perlin[t]=Math.random()}t<0&&(t=-t),e<0&&(e=-e),i<0&&(i=-i);let r,n,s,o,a,l=Math.floor(t),h=Math.floor(e),c=Math.floor(i),d=t-l,u=e-h,p=i-c,m=0,f=.5;for(let t=0;t<4;t++){let t=l+(h<<4)+(c<<8);r=Y(d),n=Y(u),s=this.perlin[4095&t],s+=r*(this.perlin[t+1&4095]-s),o=this.perlin[t+16&4095],o+=r*(this.perlin[t+16+1&4095]-o),s+=n*(o-s),t+=256,o=this.perlin[4095&t],o+=r*(this.perlin[t+1&4095]-o),a=this.perlin[t+16&4095],a+=r*(this.perlin[t+16+1&4095]-a),o+=n*(a-o),s+=Y(p)*(o-s),m+=s*f,f*=.5,l<<=1,d*=2,h<<=1,u*=2,c<<=1,p*=2,d>=1&&(l++,d--),u>=1&&(h++,u--),p>=1&&(c++,p--)}return m}noiseSeed(t){let e=(()=>{let t,e;return{setSeed(i){e=t=(i??4294967296*Math.random())>>>0},getSeed:()=>t,rand:()=>(e=(1664525*e+1013904223)%4294967296,e/4294967296)}})();e.setSeed(t),this.perlin=new Array(4096);for(let t=0;t<4096;t++)this.perlin[t]=e.rand()}},K=1e-4,J=new d,X=new d;i.then(t=>{V=[(I=t).get_face_center,I.get_edge_midpoint,I.get_vertex_position],R=[I.get_face_normal,I.get_edge_normal,I.get_vertex_normal],D=[I.face_count,I.edge_count,I.vertex_count]}),new u;var tt=new u,et=new u,it=new u,rt=new u,nt=new u,st=new u,ot=new d,at=new d,lt=new d,ht=new d,ct=new d,dt=new d,ut=new d,pt=new d,mt=new d,ft=new d,yt=new d,bt=new p,xt=new c;function gt(t){return t?t.version??t.data?.version??0:-1}function vt(t,e){return["number"==typeof t?.[0]?t[0]:"string"==typeof t?.[0]&&e?parseFloat(String(e.shared.getVariable(t[0])??"0")):0,"number"==typeof t?.[1]?t[1]:"string"==typeof t?.[1]&&e?parseFloat(String(e.shared.getVariable(t[1])??"0")):0,"number"==typeof t?.[2]?t[2]:"string"==typeof t?.[2]&&e?parseFloat(String(e.shared.getVariable(t[2])??"0")):0]}var Mt=class{constructor(t,e){this.data=t,this.is3D=e,this.perlin=new Z,"perlin"===t.noiseType?(this.perlin.noiseSeed(t.seed),this.noise=e?(t,e,i)=>this.perlin.noise(t,e,i):t=>this.perlin.noise(t)):this.noise=e?function(t=Math.random){let e=_(t),i=new Float64Array(e).map(t=>F[t%12*3]),r=new Float64Array(e).map(t=>F[t%12*3+1]),n=new Float64Array(e).map(t=>F[t%12*3+2]);return function(t,s,o){let a,l,h,c,d,u,p,m,f,y,b=(t+s+o)*w,x=A(t+b),g=A(s+b),v=A(o+b),M=(x+g+v)*j,S=t-(x-M),F=s-(g-M),_=o-(v-M);S>=F?F>=_?(d=1,u=0,p=0,m=1,f=1,y=0):S>=_?(d=1,u=0,p=0,m=1,f=0,y=1):(d=0,u=0,p=1,m=1,f=0,y=1):F<_?(d=0,u=0,p=1,m=0,f=1,y=1):S<_?(d=0,u=1,p=0,m=0,f=1,y=1):(d=0,u=1,p=0,m=1,f=1,y=0);let C=S-d+j,z=F-u+j,W=_-p+j,O=S-m+2*j,N=F-f+2*j,B=_-y+2*j,P=S-1+.5,T=F-1+.5,E=_-1+.5,U=255&x,k=255&g,I=255&v,V=.6-S*S-F*F-_*_;if(V<0)a=0;else{let t=U+e[k+e[I]];V*=V,a=V*V*(i[t]*S+r[t]*F+n[t]*_)}let R=.6-C*C-z*z-W*W;if(R<0)l=0;else{let t=U+d+e[k+u+e[I+p]];R*=R,l=R*R*(i[t]*C+r[t]*z+n[t]*W)}let D=.6-O*O-N*N-B*B;if(D<0)h=0;else{let t=U+m+e[k+f+e[I+y]];D*=D,h=D*D*(i[t]*O+r[t]*N+n[t]*B)}let L=.6-P*P-T*T-E*E;if(L<0)c=0;else{let t=U+1+e[k+1+e[I+1]];L*=L,c=L*L*(i[t]*P+r[t]*T+n[t]*E)}return 32*(a+l+h+c)}}((0,g.default)(t.seed)):function(t=Math.random){let e=_(t),i=new Float64Array(e).map(t=>S[t%12*2]),r=new Float64Array(e).map(t=>S[t%12*2+1]);return function(t,n){let s,o,a=0,l=0,h=0,c=(t+n)*v,d=A(t+c),u=A(n+c),p=(d+u)*M,m=t-(d-p),f=n-(u-p);m>f?(s=1,o=0):(s=0,o=1);let y=m-s+M,b=f-o+M,x=m-1+2*M,g=f-1+2*M,w=255&d,j=255&u,S=.5-m*m-f*f;if(S>=0){let t=w+e[j];S*=S,a=S*S*(i[t]*m+r[t]*f)}let F=.5-y*y-b*b;if(F>=0){let t=w+s+e[j+o];F*=F,l=F*F*(i[t]*y+r[t]*b)}let _=.5-x*x-g*g;if(_>=0){let t=w+1+e[j+1];_*=_,h=_*_*(i[t]*x+r[t]*g)}return 70*(a+l+h)}}((0,g.default)(t.seed??""))}},wt=class extends(n(m)){constructor(t,e){super(),this.parameters=e,this.isCloner=!0,this.objectForSample=void 0,this._pendingMediaLoad=!1,this.random=null,this.surfaceSamplerCache=null,this.surfacePointsCache=null,this.object=t}resetOnMove(){this.removeFromParent(),this.parent=null}removeFromParent(){return super.removeFromParent(),this.instancedMesh?.removeFromParent(),this}dispose(){this.removeFromParent(),this._disposeInstancedMesh(),this._invalidateBoolean(),this._syncEnclosingCopies(!0)}createCopy(){return new jt(this)}_syncEnclosingCopies(t){!t&&this.parent!==this.object.parent||this.object.traverseEntityAncestors(e=>{let i=e.cloner;void 0===i||null===i.parent||(t&&i.expandCopies(),i.invalidateTransform(this.object))})}_invalidateBoolean(){this.object instanceof s&&this.object.onClonerLayoutUpdated()}expandClones(t){null===this.parent?this.updateState(this.parameters,t):this.expandCopies()}expandCopies(){for(let t of this.children)t instanceof r&&t.expand();this._syncInstancedMesh()}invalidateTransform(t){this.matrixWorldNeedsUpdate=!0}onObjUpdateMatrix(){"toObject"!==this.parameters.type&&(this.matrixWorldNeedsUpdate=!0)}update(t){this._syncEnclosingCopies(this._layout(t))}_layout(t){let e=this.children.length;switch(this._updateCount(t),this.parameters.type){case"radial":this._updateRadial(this.parameters,t);break;case"linear":this._updateLinear(this.parameters,t);break;case"grid":this._updateGrid(this.parameters,t);break;case"toObject":this._updateToObject(this.parameters,t)}for(let t of this.children){let e=t.transformOverride;void 0!==e&&(t.position.fromArray(e.position),t.rotation.fromArray(e.rotation),t.scale.fromArray(e.scale)),t.updateMatrix(),t.hasNonUniformScale&&(t.updateMatrixWorld(),t.updateMatrixWorldRigid())}return this._syncInstancedMesh(),this._invalidateBoolean(),this.children.length!==e}get instancingActive(){return void 0!==this.instancedMesh}get insideBoolean(){return null!==this.parent&&"booleanOp"in this.parent}_instancingEligible(){if(!0!==this.parameters.instanced)return!1;let t=this.object;return!(t.entityChildrenCount()>0||!0!==t.isMesh||a(t)||!0===t.isDecalObject)}_syncInstancedMesh(){if(!this._instancingEligible())return void this._disposeInstancedMesh();let t=this.instancedMesh;if(void 0!==t&&t.capacity<this.children.length&&(this._disposeInstancedMesh(),t=void 0),void 0===t){let e=Math.max(8,Math.ceil(1.5*this.children.length));t=this.instancedMesh=new Q(this.object,e)}t.matrix=this.matrix,t.matrixWorldNeedsUpdate=!0,t.parent!==this.parent&&(t.removeFromParent(),this.parent?.add(t)),this.syncInstanceMatrices()}syncInstanceMatrices(){this._invalidateBoolean();let t=this.instancedMesh;if(void 0===t)return;let e=0;for(let i of this.children)!1!==i.playModeVisible&&(et.copy(i.matrix).multiply(i.pivotMatrix),t.setMatrixAt(e++,et));t.count=e,t.instanceMatrix.needsUpdate=!0,t.boundingSphere=null}_disposeInstancedMesh(){let t=this.instancedMesh;void 0!==t&&(this.instancedMesh=void 0,t.removeFromParent(),t.dispose())}_updateCount(t,e){let i;if(void 0!==e)i=e;else{let e=vt(this.parameters.grid.count,t);i="grid"===this.parameters.type?Math.round(e[0])*Math.round(e[1])*Math.round(e[2]):this.parameters.count}if("toObject"===this.parameters.type)if(this.parameters.toObject.object){if(void 0===e&&"random"!==this.parameters.toObject.spreadType)return}else i=0;if(this.children.length!==i)if(this.children.length<i)for(let t=0,e=i-this.children.length;t<e;++t){let t=new r(this.object);t.expand(),this.add(t)}else for(;this.children.length>i;){let t=this.children.pop();t.parent=null,t.dispatchEvent({type:"removed"}),this.dispatchEvent({type:"childremoved",child:t})}}getRandom(t,e=!1){return(null===this.random||this.random.data.seed!==t.seed||this.random.data.noiseType!==t.noiseType||this.random.is3D!==e)&&(this.random=new Mt(t,e)),this.random}_updateRadial(t,e){let i,r=t.radial,n=r.start*h.DEG2RAD,s=n-r.end*h.DEG2RAD,o=vt(r.rotation,e),a=new p(o[0],o[1],o[2]);switch(r.axis){case"z":i=new d(0,0,1);break;case"y":i=new d(0,1,0);break;default:i=new d(1,0,0)}let c=t.randomnessObject??l.defaultData([1,1,1]).randomnessObject,u=!0===this.parameters.randomness&&0!==c.strength?this.getRandom(c):null,m=vt(r.scale,e),f=vt(r.position,e),y=vt(c.scale,e),b=vt(c.position,e),x=vt(c.rotation,e),g=s/t.count,v=N(c.strength,this.parameters.randomness);for(let[t,e]of this.children.entries()){let s=t*(c.freqScale/10)+c.movement,o=null===u?0:u.noise(s,s,s),l=t+1;e.scale.x=m[0]+v(l,B(o,y[0]))||K,e.scale.y=m[1]+v(l,B(o,y[1]))||K,e.scale.z=m[2]+v(l,B(o,y[2]))||K;let h=g*t-n;switch(r.axis){default:case"x":bt.set(0,h,0);break;case"y":bt.set(0,0,h);break;case"z":bt.set(h,0,0)}ut.copy(i).applyQuaternion(xt.setFromEuler(bt)).multiplyScalar(r.radius),e.position.set(ut.x+(f[0]+v(l,B(o,b[0]))),ut.y+(f[1]+v(l,B(o,b[1]))),ut.z+(f[2]+v(l,B(o,b[2]))));let d=v(l,B(o,x[0])),p=v(l,B(o,x[1])),M=v(l,B(o,x[2]));!0===r.alignment?e.rotation.set(bt.x+(a.x+d),bt.y+(a.y+p),bt.z+(a.z+M)):e.rotation.set(a.x+d,a.y+p,a.z+M)}}_updateLinear(t,e){if("linear"!==t.type)throw new Error;let i=t.linear,r=vt(i.rotation,e),n=vt(i.scale,e),s=vt(i.position,e),o=new p(r[0]??0,r[1]??0,r[2]??0),a=t.randomnessObject??l.defaultData([1,1,1]).randomnessObject,h=vt(a.rotation,e),c=vt(a.scale,e),d=vt(a.position,e),u=!0===this.parameters.randomness&&0!==a.strength?this.getRandom(a):null,m=N(a.strength,this.parameters.randomness);for(let[t,e]of this.children.entries()){let i=t*(a.freqScale/10)+a.movement,r=null===u?0:u.noise(i,i,i),l=t+1,p=m(l,B(r,h[0])),f=m(l,B(r,h[1])),y=m(l,B(r,h[2]));e.scale.x=1+(n[0]-1)*t+m(l,B(r,c[0]))||K,e.scale.y=1+(n[1]-1)*t+m(l,B(r,c[1]))||K,e.scale.z=1+(n[2]-1)*t+m(l,B(r,c[2]))||K,e.rotation.set(o.x*t+p,o.y*t+f,o.z*t+y),e.position.x=s[0]*t+m(l,B(r,d[0])),e.position.y=s[1]*t+m(l,B(r,d[1])),e.position.z=s[2]*t+m(l,B(r,d[2]))}}_updateGrid(t,e){let i=0,r=t.grid,n=t.randomnessObject??l.defaultData([1,1,1]).randomnessObject,s=vt(n.scale,e),o=vt(n.rotation,e),a=vt(n.position,e),h=!0===this.parameters.randomness&&0!==n.strength?this.getRandom(n,!0):null,c=N(n.strength,this.parameters.randomness),u=vt(r.count,e),p=vt(r.size,e);if(!0===r.useCenter){let t={x:u[0]%2==0?2:1,y:u[1]%2==0?2:1,z:u[2]%2==0?2:1},e=new d(p[0]*(u[0]-t.x)*.5,p[1]*(u[1]-t.y)*.5,p[2]*(u[2]-t.z)*.5);for(let t=0;t<u[0];t++)for(let r=0;r<u[1];r++)for(let l=0;l<u[2];l++){let d=this.children[i++];if(!d)continue;let u=null===h?0:h.noise((t+1)*(n.freqScale/10)+n.movement,(r+1)*(n.freqScale/10)+n.movement,(l+1)*(n.freqScale/10)+n.movement);d.scale.x=1+c(i,B(u,s[0]))||K,d.scale.y=1+c(i,B(u,s[1]))||K,d.scale.z=1+c(i,B(u,s[2]))||K;let m=c(i,B(u,o[0])),f=c(i,B(u,o[1])),y=c(i,B(u,o[2]));d.rotation.set(m,f,y),d.position.x=p[0]*t-e.x+c(i,B(u,a[0])),d.position.y=p[1]*r-e.y+c(i,B(u,a[1])),d.position.z=p[2]*l-e.z+c(i,B(u,a[2]))}}else for(let t=0;t<u[0];t++)for(let e=0;e<u[1];e++)for(let r=0;r<u[2];r++){let l=this.children[i++];if(!l)continue;let d=null===h?0:h.noise((t+1)*(n.freqScale/10)+n.movement,(e+1)*(n.freqScale/10)+n.movement,(r+1)*(n.freqScale/10)+n.movement);l.scale.x=1+c(i,B(d,s[0]))||K,l.scale.y=1+c(i,B(d,s[1]))||K,l.scale.z=1+c(i,B(d,s[2]))||K;let u=c(i,B(d,o[0])),m=c(i,B(d,o[1])),f=c(i,B(d,o[2]));l.rotation.set(u,m,f),l.position.x=p[0]*t+c(i,B(d,a[0])),l.position.y=-p[1]*e+c(i,B(d,a[1])),l.position.z=-p[2]*r+c(i,B(d,a[2]))}}_updateToObject(i,r){if("toObject"!==i.type)throw new Error;let{toObject:n}=i,s=vt(n.rotation,r),o=vt(n.position,r),a=vt(n.scale,r),h=new p(s[0],s[1],s[2]),c=i.randomnessObject??l.defaultData([1,1,1]).randomnessObject,d=vt(c.rotation,r),u=vt(c.position,r),m=vt(c.scale,r),f=!0===this.parameters.randomness&&0!==c.strength?this.getRandom(c):null,y=N(c.strength,this.parameters.randomness);if(!n.object){for(let[,t]of this.children.entries())t.position.set(0,0,0),t.scale.setScalar(1),t.rotation.set(0,0,0);return this.objectForSample=void 0,void this.invalidateSurfaceCaches()}if(!this.objectForSample)return;if(this.objectForSample instanceof t){if(!this.objectForSample.font?.isLoaded||void 0===this.objectForSample.geometry.attributes.position)return void(this._pendingMediaLoad=!0);this._pendingMediaLoad=!1}if(void 0===this.objectForSample.geometry&&this.objectForSample.isAncestorOf(this.object.uuid))return void console.warn(`Oh no! The object "${this.object.name}" (${this.object.uuid}) seem to be a child/descendant of the object it's being cloned to. Please re-parent it so that they are siblings instead.`);let b=this.getSubdivData();if(b.length>0){let t=Math.round(b.length*n.count/100);this._updateCount(r,t)}else{let t=this.objectForSample.geometry.getAttribute("position");if(!t||isNaN(t.count)||0===t.count)return void console.warn(`Oh no! The object "${this.object.name}" (${this.object.uuid}) cannot be cloned on the surface of "${this.objectForSample.name}" (${this.objectForSample.uuid}) because the latter does not have a valid geometry.`)}this.objectForSample.updateMatrixWorld();let x="random"===n.spreadType,v=null;x&&(v=this.getSurfaceSampler(),v.setRandomGenerator((0,g.default)(this.object.uuid+n.seed)));let M=W[n.axis],w=this.children;ot.fromArray(M);let j=this.objectForSample instanceof e;j&&it.copy(this.objectForSample.matrixWorld).invert(),"normal"!==n.align&&this.object.getWorldDirection(dt),ft.set(ot.y,ot.z,ot.x).normalize(),yt.copy(ft).cross(ot).normalize(),nt.makeBasis(ft,ot,yt).invert();for(let[t,e]of w.entries()){let i=t*(c.freqScale/10)+c.movement,r=null===f?0:f.noise(i,i,i),s=t+1,l=y(s,B(r,d[0])),p=y(s,B(r,d[1])),g=y(s,B(r,d[2]));x?v.sample(lt,ht):(b.length&&(lt.fromArray(b[t].pos),ht.fromArray(b[t].norm)),j&<.applyMatrix4(it)),e.position.copy(lt);let M="normal"===n.align?ht:dt,w=at.fromArray(o);at.x+=y(s,B(r,u[0])),at.y+=y(s,B(r,u[1])),at.z+=y(s,B(r,u[2]));let A=Math.acos(M.dot(ot)),S=ct.crossVectors(ot,M).normalize(),F=tt.makeRotationAxis(S,A);pt.copy(M).cross(this.object.up).normalize(),mt.copy(pt).cross(M).normalize(),rt.makeBasis(pt,M,mt),st.multiplyMatrices(rt,nt),bt.setFromRotationMatrix(st),w.applyMatrix4(F),e.position.add(w),e.rotation.set(bt.x+h.x+l,bt.y+h.y+p,bt.z+h.z+g),e.scale.set(1+a[0]+y(s,B(r,m[0]))||K,1+a[1]+y(s,B(r,m[1]))||K,1+a[2]+y(s,B(r,m[2]))||K),e.scale.multiply(this.object.scale)}}getSurfaceSampler(){let t=this.objectForSample,e=t.geometry,i=e.getAttribute("position"),r=e.index,n=this.surfaceSamplerCache;if(null!==n&&n.geometry===e&&n.position===i&&n.positionVersion===gt(i)&&n.index===r&&n.indexVersion===(null===r?-1:r.version))return n.sampler;let s=new z(t).build();return this.surfaceSamplerCache={geometry:e,position:i,positionVersion:gt(i),index:r,indexVersion:null===r?-1:r.version,sampler:s},s}invalidateSurfaceCaches(){this.surfaceSamplerCache=null,this.surfacePointsCache=null}getSubdivData(){if(!this.objectForSample)return[];let t=this.parameters.toObject.spreadType;if("random"===t)return[];let i=this.objectForSample instanceof e,r=this.objectForSample.geometry;if(!i&&r){let e=this.surfacePointsCache,i=r.getAttribute("position");if(null!==e&&e.spreadType===t&&e.geometry===r&&e.position===i&&e.positionVersion===gt(i)&&e.index===r.index&&e.indexVersion===(null===r.index?-1:r.index.version))return e.points}let n=new Map,s=(t,e)=>{let i=Math.round(1e4*t[0])+"_"+Math.round(1e4*t[1])+"_"+Math.round(1e4*t[2]),r=n.get(i);r?(r.pos[0]+=t[0],r.pos[1]+=t[1],r.pos[2]+=t[2],r.norm[0]+=e[0],r.norm[1]+=e[1],r.norm[2]+=e[2],r.count+=1):n.set(i,{pos:[...t],norm:[...e],count:1})};if(i){let e=this.objectForSample,i=O[t],r=D[i],n=V[i],o=R[i],a=r(e.subdivPointerNew);for(let t=0;t<=a-1;t++){let i=n(e.subdivPointerNew,t),r=o(e.subdivPointerNew,t);J.fromArray(i).applyMatrix4(e.matrixWorld),X.fromArray(r),s(J.toArray(),X.toArray())}}else(r.index?function(t){let e=[],i=Math.floor(t.index.count/3);for(let r=0;r<i;r++)if(q.fromArray(t.index.array,3*r),L.setFromAttributeAndIndices(t.attributes.position,q.x,q.y,q.z),L.getNormal(G),L.getMidpoint(H),!(isNaN(H.x)||isNaN(H.y)||isNaN(H.z))){let{a:t,b:i,c:r}=L,n=t.toArray(),s=i.toArray(),o=r.toArray(),a=t.distanceTo(i),l=i.distanceTo(r),h=r.distanceTo(t),c=k(n,s),d=k(s,o),u=k(o,n),p=[a,l,h],m=Math.max(...p),f=p.filter(t=>Math.round(t)===Math.round(m)).length>1,y=[],b=L.getMidpoint(H).toArray();m===a&&!f&&(y=[d,u,u],b=c),m===l&&!f&&(y=[c,u,u],b=d),m===h&&!f&&(y=[c,d,d],b=u),f&&(y=[c,d,u]),e.push({vertices:[n,s,o],faceCenters:y,midpoint:b,norm:L.getNormal(G).toArray()})}return e}(r):function(t){let e=[],{position:i}=t.attributes;for(let t=0;t<i.count;t++){L.setFromAttributeAndIndices(i,3*t,3*t+1,3*t+2),L.getNormal(G),L.getMidpoint(H);let r=L.a.toArray(),n=L.b.toArray(),s=L.c.toArray();e.push({vertices:[r,n,s],faceCenters:[k(r,n),k(n,s),k(s,r)],midpoint:H.toArray(),norm:G.toArray()})}return e}(r)).forEach((e,i)=>{"polygon_center"===t&&s(e.midpoint,e.norm),"vertex"===t&&(s(e.vertices[0],e.norm),s(e.vertices[1],e.norm),s(e.vertices[2],e.norm)),"edge"===t&&(s(e.faceCenters[0],e.norm),s(e.faceCenters[1],e.norm),s(e.faceCenters[2],e.norm))});let o=Array.from(n.values());for(let t of o)t.pos[0]/=t.count,t.pos[1]/=t.count,t.pos[2]/=t.count,t.norm[0]/=t.count,t.norm[1]/=t.count,t.norm[2]/=t.count;if(!i&&r){let e=r.getAttribute("position");this.surfacePointsCache={spreadType:t,geometry:r,position:e,positionVersion:gt(e),index:r.index,indexVersion:null===r.index?-1:r.index.version,points:o}}return o}updateState(t,e){this.parameters=o(t);let{parent:i,matrix:r}=this;if("toObject"!==this.parameters.type)this.invalidateSurfaceCaches(),(null===this.parent||this.parent!==this.object)&&(this.removeFromParent(),this.object.parent?.add(this),this.matrix=this.object.matrix,this.matrixWorldNeedsUpdate=!0,this.matrixAutoUpdate=!1);else if(null===this.parent||this.parent.uuid!==this.parameters.toObject.object){this.removeFromParent(),this.invalidateSurfaceCaches();let t=e.scene.find(this.parameters.toObject.object);this.objectForSample=t instanceof s?t:void 0,this.matrix=new u,this.matrixWorldNeedsUpdate=!0,this.matrixAutoUpdate=!1,t&&t.add(this)}let n=this._layout(e);this._syncEnclosingCopies(n||this.parent!==i||this.matrix!==r)}get pendingMediaLoad(){return this._pendingMediaLoad}},jt=class extends wt{constructor(t){super(t.object,t.parameters),this.source=t,this.matrixAutoUpdate=!1}get insideBoolean(){return this.source.insideBoolean}expand(){this.matrix=this.source.matrix,this.matrixWorldNeedsUpdate=!0;let t=0;for(let e of this.source.children){if(!(e instanceof r))continue;let i=this.children[t];void 0===i&&(i=new r(this.object),this.add(i)),i.matrix=e.matrix,i.matrixWorldNeedsUpdate=!0,i.expand(),t+=1}for(;this.children.length>t;)this.remove(this.children[t])}};export{wt as a};
|
|
1
|
+
import{a as t}from"./runtime-chunk-DGCXIX6R.js";import{b as e}from"./runtime-chunk-C2KTGEPL.js";import{H as i,ia as r}from"./runtime-chunk-YSVFQMQ5.js";import{f as n,v as s}from"./runtime-chunk-J7SAMDUV.js";import{c as o}from"./runtime-chunk-RTLL6WIB.js";import{c as a}from"./runtime-chunk-2PT2WH66.js";import{L as l}from"./runtime-chunk-ADHKZQMB.js";import{Ec as h,Gc as c,Hc as d,Qc as u,Rc as p,Tc as m,Yc as f,sd as y}from"./runtime-chunk-KPOUV3HD.js";import{a as b,b as x}from"./runtime-chunk-ML3Z74BL.js";var g=x(b((t,e)=>{var i,r;i=t,r=function(){return t.importState=function(e){var i=new t;return i.importState(e),i},t;function t(){return function(t){var e=0,i=0,r=0,n=1;0==t.length&&(t=[+new Date]);var s=function(){var t=4022871197,e=function(e){e=e.toString();for(var i=0;i<e.length;i++){var r=.02519603282416938*(t+=e.charCodeAt(i));r-=t=r>>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)};return e.version="Mash 0.9",e}();e=s(" "),i=s(" "),r=s(" ");for(var o=0;o<t.length;o++)(e-=s(t[o]))<0&&(e+=1),(i-=s(t[o]))<0&&(i+=1),(r-=s(t[o]))<0&&(r+=1);s=null;var a=function(){var t=2091639*e+2.3283064365386963e-10*n;return e=i,i=r,r=t-(n=0|t)};return a.next=a,a.uint32=function(){return 4294967296*a()},a.fract53=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.version="Alea 0.9",a.args=t,a.exportState=function(){return[e,i,r,n]},a.importState=function(t){e=+t[0]||0,i=+t[1]||0,r=+t[2]||0,n=+t[3]||0},a}(Array.prototype.slice.call(arguments))}},"object"==typeof t?e.exports=r():"function"==typeof define&&define.amd?define(r):i.Alea=r()})()),v=.5*(Math.sqrt(3)-1),M=(3-Math.sqrt(3))/6,w=1/3,j=1/6,A=(Math.sqrt(5),Math.sqrt(5),t=>0|Math.floor(t)),S=new Float64Array([1,1,-1,1,1,-1,-1,-1,1,0,-1,0,1,0,-1,0,0,1,0,-1,0,1,0,-1]),_=new Float64Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0,1,0,1,-1,0,1,1,0,-1,-1,0,-1,0,1,1,0,-1,1,0,1,-1,0,-1,-1]);function F(t){let e=new Uint8Array(512);for(let t=0;t<256;t++)e[t]=t;for(let i=0;i<255;i++){let r=i+~~(t()*(256-i)),n=e[i];e[i]=e[r],e[r]=n}for(let t=256;t<512;t++)e[t]=e[t-256];return e}var C=new f,z=class{constructor(t){this.weightAttribute=null;let e=t.geometry;if(!e.isBufferGeometry||3!==e.attributes.position.itemSize)throw new Error("THREE.MeshSurfaceSampler: Requires BufferGeometry triangle mesh.");e.index&&(e=e.toNonIndexed()),this.geometry=e,this.randomFunction=Math.random,this.positionAttribute=this.geometry.getAttribute("position"),this.distribution=null}build(){let t=this.positionAttribute,e=new Float32Array(t.count/3);for(let i=0;i<t.count;i+=3){let r=1;C.a.fromBufferAttribute(t,i),C.b.fromBufferAttribute(t,i+1),C.c.fromBufferAttribute(t,i+2),r*=C.getArea(),e[i/3]=r}this.distribution=new Float32Array(t.count/3);let i=0;for(let t=0;t<e.length;t++)i+=e[t],this.distribution[t]=i;return this}setRandomGenerator(t){return this.randomFunction=t,this}sample(t,e){if(this.distribution){let i=this.distribution[this.distribution.length-1],r=this.binarySearch(this.randomFunction()*i);return this.sampleFace(r,t,e)}}binarySearch(t){if(!this.distribution)return 0;let e=this.distribution,i=0,r=e.length-1,n=-1;for(;i<=r;){let s=Math.ceil((i+r)/2);if(0===s||e[s-1]<=t&&e[s]>t){n=s;break}t<e[s]?r=s-1:i=s+1}return n}sampleFace(t,e,i){let r=this.randomFunction(),n=this.randomFunction();return r+n>1&&(r=1-r,n=1-n),C.a.fromBufferAttribute(this.positionAttribute,3*t),C.b.fromBufferAttribute(this.positionAttribute,3*t+1),C.c.fromBufferAttribute(this.positionAttribute,3*t+2),e.set(0,0,0).addScaledVector(C.a,r).addScaledVector(C.b,n).addScaledVector(C.c,1-(r+n)),C.getNormal(i),this}},O={x:[1,0,0],"-x":[-1,0,0],y:[0,1,0],"-y":[0,-1,0],z:[0,0,1],"-z":[0,0,-1]},W={polygon_center:0,edge:1,vertex:2},N=(t,e)=>(i,r)=>e&&0!==i&&0!==t?t*r/100:0,P=(t,e)=>{let i=Math.abs(e),r=-1*i;return(t- -1)*(i-r)/2+r},T=new d,B=new d,U=new d,V=new d;function k(t,e){let i=U.fromArray(t),r=V.fromArray(e);B.copy(r).sub(i);let n=B.length();return B.normalize().multiplyScalar(.5*n),T.copy(i).add(B).toArray()}var E,R,D,I,L=new f,q=new d,G=new d,H=new d,$=class extends y{},Q=class extends ${constructor(t,e){super(void 0,void 0,e),this.source=t,this.isClonerInstancedMesh=!0,this.pivotMatrix=new u,this.previousModelViewMatrix=new u,this.copyPreviousMatrix=!0,this.capacity=e,this.count=0,this.matrixAutoUpdate=!1}raycast(t,e){}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorld.multiply(this.pivotMatrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(let e of this.children)e.updateMatrixWorld(t)}updateWorldMatrix(t,e){let i=this.parent;if(t&&null!==i&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorld.multiply(this.pivotMatrix),e)for(let t of this.children)t.updateWorldMatrix(!1,!0)}onAfterRender(t,e,i,r,n,s){this.copyPreviousMatrix&&this.previousModelViewMatrix.copy(this.modelViewMatrix)}get visible(){return!0!==this.source.cloner?.insideBoolean&&(this.source.visible||this.source.dataPatched.visible&&!0===this.source.dataPatched.cloner?.hideBase)}set visible(t){}get castShadow(){return this.source.castShadow}set castShadow(t){}get receiveShadow(){return this.source.receiveShadow}set receiveShadow(t){}get layers(){return this.source.layers}set layers(t){}get geometry(){return this.source.geometry}set geometry(t){}get material(){return this.source.material}set material(t){}get morphTargetInfluences(){return this.source.morphTargetInfluences}set morphTargetInfluences(t){}},K=t=>.5*(1-Math.cos(t*Math.PI)),X=class{constructor(){this.perlin=new Array(4096)}noise(t,e=0,i=0){if(null==this.perlin){this.perlin=new Array(4096);for(let t=0;t<4096;t++)this.perlin[t]=Math.random()}t<0&&(t=-t),e<0&&(e=-e),i<0&&(i=-i);let r,n,s,o,a,l=Math.floor(t),h=Math.floor(e),c=Math.floor(i),d=t-l,u=e-h,p=i-c,m=0,f=.5;for(let t=0;t<4;t++){let t=l+(h<<4)+(c<<8);r=K(d),n=K(u),s=this.perlin[4095&t],s+=r*(this.perlin[t+1&4095]-s),o=this.perlin[t+16&4095],o+=r*(this.perlin[t+16+1&4095]-o),s+=n*(o-s),t+=256,o=this.perlin[4095&t],o+=r*(this.perlin[t+1&4095]-o),a=this.perlin[t+16&4095],a+=r*(this.perlin[t+16+1&4095]-a),o+=n*(a-o),s+=K(p)*(o-s),m+=s*f,f*=.5,l<<=1,d*=2,h<<=1,u*=2,c<<=1,p*=2,d>=1&&(l++,d--),u>=1&&(h++,u--),p>=1&&(c++,p--)}return m}noiseSeed(t){let e=(()=>{let t,e;return{setSeed(i){e=t=(i??4294967296*Math.random())>>>0},getSeed:()=>t,rand:()=>(e=(1664525*e+1013904223)%4294967296,e/4294967296)}})();e.setSeed(t),this.perlin=new Array(4096);for(let t=0;t<4096;t++)this.perlin[t]=e.rand()}},Y=1e-4,Z=new d,J=new d;i.then(t=>{R=[(E=t).get_face_center,E.get_edge_midpoint,E.get_vertex_position],D=[E.get_face_normal,E.get_edge_normal,E.get_vertex_normal],I=[E.face_count,E.edge_count,E.vertex_count]}),new u;var tt=new u,et=new u,it=new u,rt=new u,nt=new u,st=new u,ot=new d,at=new d,lt=new d,ht=new d,ct=new d,dt=new d,ut=new d,pt=new d,mt=new d,ft=new d,yt=new d,bt=new p,xt=new c;function gt(t){return t?t.version??t.data?.version??0:-1}function vt(t,e){return["number"==typeof t?.[0]?t[0]:"string"==typeof t?.[0]&&e?parseFloat(String(e.shared.getVariable(t[0])??"0")):0,"number"==typeof t?.[1]?t[1]:"string"==typeof t?.[1]&&e?parseFloat(String(e.shared.getVariable(t[1])??"0")):0,"number"==typeof t?.[2]?t[2]:"string"==typeof t?.[2]&&e?parseFloat(String(e.shared.getVariable(t[2])??"0")):0]}var Mt=class{constructor(t,e){this.data=t,this.is3D=e,this.perlin=new X,"perlin"===t.noiseType?(this.perlin.noiseSeed(t.seed),this.noise=e?(t,e,i)=>this.perlin.noise(t,e,i):t=>this.perlin.noise(t)):this.noise=e?function(t=Math.random){let e=F(t),i=new Float64Array(e).map(t=>_[t%12*3]),r=new Float64Array(e).map(t=>_[t%12*3+1]),n=new Float64Array(e).map(t=>_[t%12*3+2]);return function(t,s,o){let a,l,h,c,d,u,p,m,f,y,b=(t+s+o)*w,x=A(t+b),g=A(s+b),v=A(o+b),M=(x+g+v)*j,S=t-(x-M),_=s-(g-M),F=o-(v-M);S>=_?_>=F?(d=1,u=0,p=0,m=1,f=1,y=0):S>=F?(d=1,u=0,p=0,m=1,f=0,y=1):(d=0,u=0,p=1,m=1,f=0,y=1):_<F?(d=0,u=0,p=1,m=0,f=1,y=1):S<F?(d=0,u=1,p=0,m=0,f=1,y=1):(d=0,u=1,p=0,m=1,f=1,y=0);let C=S-d+j,z=_-u+j,O=F-p+j,W=S-m+2*j,N=_-f+2*j,P=F-y+2*j,T=S-1+.5,B=_-1+.5,U=F-1+.5,V=255&x,k=255&g,E=255&v,R=.6-S*S-_*_-F*F;if(R<0)a=0;else{let t=V+e[k+e[E]];R*=R,a=R*R*(i[t]*S+r[t]*_+n[t]*F)}let D=.6-C*C-z*z-O*O;if(D<0)l=0;else{let t=V+d+e[k+u+e[E+p]];D*=D,l=D*D*(i[t]*C+r[t]*z+n[t]*O)}let I=.6-W*W-N*N-P*P;if(I<0)h=0;else{let t=V+m+e[k+f+e[E+y]];I*=I,h=I*I*(i[t]*W+r[t]*N+n[t]*P)}let L=.6-T*T-B*B-U*U;if(L<0)c=0;else{let t=V+1+e[k+1+e[E+1]];L*=L,c=L*L*(i[t]*T+r[t]*B+n[t]*U)}return 32*(a+l+h+c)}}((0,g.default)(t.seed)):function(t=Math.random){let e=F(t),i=new Float64Array(e).map(t=>S[t%12*2]),r=new Float64Array(e).map(t=>S[t%12*2+1]);return function(t,n){let s,o,a=0,l=0,h=0,c=(t+n)*v,d=A(t+c),u=A(n+c),p=(d+u)*M,m=t-(d-p),f=n-(u-p);m>f?(s=1,o=0):(s=0,o=1);let y=m-s+M,b=f-o+M,x=m-1+2*M,g=f-1+2*M,w=255&d,j=255&u,S=.5-m*m-f*f;if(S>=0){let t=w+e[j];S*=S,a=S*S*(i[t]*m+r[t]*f)}let _=.5-y*y-b*b;if(_>=0){let t=w+s+e[j+o];_*=_,l=_*_*(i[t]*y+r[t]*b)}let F=.5-x*x-g*g;if(F>=0){let t=w+1+e[j+1];F*=F,h=F*F*(i[t]*x+r[t]*g)}return 70*(a+l+h)}}((0,g.default)(t.seed??""))}},wt=class extends(n(m)){constructor(t,e){super(),this.parameters=e,this.isCloner=!0,this.objectForSample=void 0,this._pendingMediaLoad=!1,this.random=null,this.surfaceSamplerCache=null,this.surfacePointsCache=null,this.object=t}resetOnMove(){this.removeFromParent(),this.parent=null}removeFromParent(){return super.removeFromParent(),this.instancedMesh?.removeFromParent(),this}dispose(){this.removeFromParent(),this._disposeInstancedMesh(),this._invalidateBoolean(),this._syncEnclosingCopies(!0)}createCopy(){return new jt(this)}_syncEnclosingCopies(t){!t&&this.parent!==this.object.parent||this.object.traverseEntityAncestors(e=>{let i=e.cloner;void 0===i||null===i.parent||(t&&i.expandCopies(),i.invalidateTransform(this.object))})}_invalidateBoolean(){this.object instanceof s&&this.object.onClonerLayoutUpdated()}expandClones(t){null===this.parent?this.updateState(this.parameters,t):this.expandCopies()}expandCopies(){for(let t of this.children)t instanceof r&&t.expand();this._syncInstancedMesh()}invalidateTransform(t){this.matrixWorldNeedsUpdate=!0}onObjUpdateMatrix(){"toObject"!==this.parameters.type&&(this.matrixWorldNeedsUpdate=!0)}update(t){this._syncEnclosingCopies(this._layout(t))}_layout(t){let e=this.children.length;switch(this._updateCount(t),this.parameters.type){case"radial":this._updateRadial(this.parameters,t);break;case"linear":this._updateLinear(this.parameters,t);break;case"grid":this._updateGrid(this.parameters,t);break;case"toObject":this._updateToObject(this.parameters,t)}for(let t of this.children){let e=t.transformOverride;void 0!==e&&(t.position.fromArray(e.position),t.rotation.fromArray(e.rotation),t.scale.fromArray(e.scale)),t.updateMatrix(),t.hasNonUniformScale&&(t.updateMatrixWorld(),t.updateMatrixWorldRigid())}return this._syncInstancedMesh(),this._invalidateBoolean(),this.children.length!==e}get instancingActive(){return void 0!==this.instancedMesh}get insideBoolean(){return null!==this.parent&&"booleanOp"in this.parent}_instancingEligible(){if(!0!==this.parameters.instanced)return!1;let t=this.object;return!(t.entityChildrenCount()>0||!0!==t.isMesh||a(t)||!0===t.isDecalObject)}_syncInstancedMesh(){if(!this._instancingEligible())return void this._disposeInstancedMesh();let t=this.instancedMesh;if(void 0!==t&&t.capacity<this.children.length&&(this._disposeInstancedMesh(),t=void 0),void 0===t){let e=Math.max(8,Math.ceil(1.5*this.children.length));t=this.instancedMesh=new Q(this.object,e)}t.matrix=this.matrix,t.matrixWorldNeedsUpdate=!0,t.parent!==this.parent&&(t.removeFromParent(),this.parent?.add(t)),this.syncInstanceMatrices()}syncInstanceMatrices(){this._invalidateBoolean();let t=this.instancedMesh;if(void 0===t)return;let e=0;for(let i of this.children)!1!==i.playModeVisible&&(et.copy(i.matrix).multiply(i.pivotMatrix),t.setMatrixAt(e++,et));t.count=e,t.instanceMatrix.needsUpdate=!0,t.boundingSphere=null}_disposeInstancedMesh(){let t=this.instancedMesh;void 0!==t&&(this.instancedMesh=void 0,t.removeFromParent(),t.dispose())}_updateCount(t,e){let i;if(void 0!==e)i=e;else{let e=vt(this.parameters.grid.count,t);i="grid"===this.parameters.type?Math.round(e[0])*Math.round(e[1])*Math.round(e[2]):this.parameters.count}if("toObject"===this.parameters.type)if(this.parameters.toObject.object){if(void 0===e&&"random"!==this.parameters.toObject.spreadType)return}else i=0;if(this.children.length!==i)if(this.children.length<i)for(let t=0,e=i-this.children.length;t<e;++t){let t=new r(this.object);t.expand(),this.add(t)}else for(;this.children.length>i;){let t=this.children.pop();t.parent=null,t.dispatchEvent({type:"removed"}),this.dispatchEvent({type:"childremoved",child:t})}}getRandom(t,e=!1){return(null===this.random||this.random.data.seed!==t.seed||this.random.data.noiseType!==t.noiseType||this.random.is3D!==e)&&(this.random=new Mt(t,e)),this.random}_updateRadial(t,e){let i,r=t.radial,n=r.start*h.DEG2RAD,s=n-r.end*h.DEG2RAD,o=vt(r.rotation,e),a=new p(o[0],o[1],o[2]);switch(r.axis){case"z":i=new d(0,0,1);break;case"y":i=new d(0,1,0);break;default:i=new d(1,0,0)}let c=t.randomnessObject??l.defaultData([1,1,1]).randomnessObject,u=!0===this.parameters.randomness&&0!==c.strength?this.getRandom(c):null,m=vt(r.scale,e),f=vt(r.position,e),y=vt(c.scale,e),b=vt(c.position,e),x=vt(c.rotation,e),g=s/t.count,v=N(c.strength,this.parameters.randomness);for(let[t,e]of this.children.entries()){let s=t*(c.freqScale/10)+c.movement,o=null===u?0:u.noise(s,s,s),l=t+1;e.scale.x=m[0]+v(l,P(o,y[0]))||Y,e.scale.y=m[1]+v(l,P(o,y[1]))||Y,e.scale.z=m[2]+v(l,P(o,y[2]))||Y;let h=g*t-n;switch(r.axis){default:case"x":bt.set(0,h,0);break;case"y":bt.set(0,0,h);break;case"z":bt.set(h,0,0)}ut.copy(i).applyQuaternion(xt.setFromEuler(bt)).multiplyScalar(r.radius),e.position.set(ut.x+(f[0]+v(l,P(o,b[0]))),ut.y+(f[1]+v(l,P(o,b[1]))),ut.z+(f[2]+v(l,P(o,b[2]))));let d=v(l,P(o,x[0])),p=v(l,P(o,x[1])),M=v(l,P(o,x[2]));!0===r.alignment?e.rotation.set(bt.x+(a.x+d),bt.y+(a.y+p),bt.z+(a.z+M)):e.rotation.set(a.x+d,a.y+p,a.z+M)}}_updateLinear(t,e){if("linear"!==t.type)throw new Error;let i=t.linear,r=vt(i.rotation,e),n=vt(i.scale,e),s=vt(i.position,e),o=new p(r[0]??0,r[1]??0,r[2]??0),a=t.randomnessObject??l.defaultData([1,1,1]).randomnessObject,h=vt(a.rotation,e),c=vt(a.scale,e),d=vt(a.position,e),u=!0===this.parameters.randomness&&0!==a.strength?this.getRandom(a):null,m=N(a.strength,this.parameters.randomness);for(let[t,e]of this.children.entries()){let i=t*(a.freqScale/10)+a.movement,r=null===u?0:u.noise(i,i,i),l=t+1,p=m(l,P(r,h[0])),f=m(l,P(r,h[1])),y=m(l,P(r,h[2]));e.scale.x=1+(n[0]-1)*t+m(l,P(r,c[0]))||Y,e.scale.y=1+(n[1]-1)*t+m(l,P(r,c[1]))||Y,e.scale.z=1+(n[2]-1)*t+m(l,P(r,c[2]))||Y,e.rotation.set(o.x*t+p,o.y*t+f,o.z*t+y),e.position.x=s[0]*t+m(l,P(r,d[0])),e.position.y=s[1]*t+m(l,P(r,d[1])),e.position.z=s[2]*t+m(l,P(r,d[2]))}}_updateGrid(t,e){let i=0,r=t.grid,n=t.randomnessObject??l.defaultData([1,1,1]).randomnessObject,s=vt(n.scale,e),o=vt(n.rotation,e),a=vt(n.position,e),h=!0===this.parameters.randomness&&0!==n.strength?this.getRandom(n,!0):null,c=N(n.strength,this.parameters.randomness),u=vt(r.count,e),p=vt(r.size,e);if(!0===r.useCenter){let t={x:u[0]%2==0?2:1,y:u[1]%2==0?2:1,z:u[2]%2==0?2:1},e=new d(p[0]*(u[0]-t.x)*.5,p[1]*(u[1]-t.y)*.5,p[2]*(u[2]-t.z)*.5);for(let t=0;t<u[0];t++)for(let r=0;r<u[1];r++)for(let l=0;l<u[2];l++){let d=this.children[i++];if(!d)continue;let u=null===h?0:h.noise((t+1)*(n.freqScale/10)+n.movement,(r+1)*(n.freqScale/10)+n.movement,(l+1)*(n.freqScale/10)+n.movement);d.scale.x=1+c(i,P(u,s[0]))||Y,d.scale.y=1+c(i,P(u,s[1]))||Y,d.scale.z=1+c(i,P(u,s[2]))||Y;let m=c(i,P(u,o[0])),f=c(i,P(u,o[1])),y=c(i,P(u,o[2]));d.rotation.set(m,f,y),d.position.x=p[0]*t-e.x+c(i,P(u,a[0])),d.position.y=p[1]*r-e.y+c(i,P(u,a[1])),d.position.z=p[2]*l-e.z+c(i,P(u,a[2]))}}else for(let t=0;t<u[0];t++)for(let e=0;e<u[1];e++)for(let r=0;r<u[2];r++){let l=this.children[i++];if(!l)continue;let d=null===h?0:h.noise((t+1)*(n.freqScale/10)+n.movement,(e+1)*(n.freqScale/10)+n.movement,(r+1)*(n.freqScale/10)+n.movement);l.scale.x=1+c(i,P(d,s[0]))||Y,l.scale.y=1+c(i,P(d,s[1]))||Y,l.scale.z=1+c(i,P(d,s[2]))||Y;let u=c(i,P(d,o[0])),m=c(i,P(d,o[1])),f=c(i,P(d,o[2]));l.rotation.set(u,m,f),l.position.x=p[0]*t+c(i,P(d,a[0])),l.position.y=-p[1]*e+c(i,P(d,a[1])),l.position.z=-p[2]*r+c(i,P(d,a[2]))}}_updateToObject(i,r){if("toObject"!==i.type)throw new Error;let{toObject:n}=i,s=vt(n.rotation,r),o=vt(n.position,r),a=vt(n.scale,r),h=new p(s[0],s[1],s[2]),c=i.randomnessObject??l.defaultData([1,1,1]).randomnessObject,d=vt(c.rotation,r),u=vt(c.position,r),m=vt(c.scale,r),f=!0===this.parameters.randomness&&0!==c.strength?this.getRandom(c):null,y=N(c.strength,this.parameters.randomness);if(!n.object){for(let[,t]of this.children.entries())t.position.set(0,0,0),t.scale.setScalar(1),t.rotation.set(0,0,0);return this.objectForSample=void 0,void this.invalidateSurfaceCaches()}if(!this.objectForSample)return;if(this.objectForSample instanceof t){if(!this.objectForSample.font?.isLoaded||void 0===this.objectForSample.geometry.attributes.position)return void(this._pendingMediaLoad=!0);this._pendingMediaLoad=!1}if(void 0===this.objectForSample.geometry&&this.objectForSample.isAncestorOf(this.object.uuid))return void console.warn(`Oh no! The object "${this.object.name}" (${this.object.uuid}) seem to be a child/descendant of the object it's being cloned to. Please re-parent it so that they are siblings instead.`);let b=this.getSubdivData();if(b.length>0){let t=Math.round(b.length*n.count/100);this._updateCount(r,t)}else{let t=this.objectForSample.geometry.getAttribute("position");if(!t||isNaN(t.count)||0===t.count)return void console.warn(`Oh no! The object "${this.object.name}" (${this.object.uuid}) cannot be cloned on the surface of "${this.objectForSample.name}" (${this.objectForSample.uuid}) because the latter does not have a valid geometry.`)}this.objectForSample.updateMatrixWorld();let x="random"===n.spreadType,v=null;x&&(v=this.getSurfaceSampler(),v.setRandomGenerator((0,g.default)(this.object.uuid+n.seed)));let M=O[n.axis],w=this.children;ot.fromArray(M);let j=this.objectForSample instanceof e;j&&it.copy(this.objectForSample.matrixWorld).invert(),"normal"!==n.align&&this.object.getWorldDirection(dt),ft.set(ot.y,ot.z,ot.x).normalize(),yt.copy(ft).cross(ot).normalize(),nt.makeBasis(ft,ot,yt).invert();for(let[t,e]of w.entries()){let i=t*(c.freqScale/10)+c.movement,r=null===f?0:f.noise(i,i,i),s=t+1,l=y(s,P(r,d[0])),p=y(s,P(r,d[1])),g=y(s,P(r,d[2]));x?v.sample(lt,ht):(b.length&&(lt.fromArray(b[t].pos),ht.fromArray(b[t].norm)),j&<.applyMatrix4(it)),e.position.copy(lt);let M="normal"===n.align?ht:dt,w=at.fromArray(o);at.x+=y(s,P(r,u[0])),at.y+=y(s,P(r,u[1])),at.z+=y(s,P(r,u[2]));let A=Math.acos(M.dot(ot)),S=ct.crossVectors(ot,M).normalize(),_=tt.makeRotationAxis(S,A);pt.copy(M).cross(this.object.up).normalize(),mt.copy(pt).cross(M).normalize(),rt.makeBasis(pt,M,mt),st.multiplyMatrices(rt,nt),bt.setFromRotationMatrix(st),w.applyMatrix4(_),e.position.add(w),e.rotation.set(bt.x+h.x+l,bt.y+h.y+p,bt.z+h.z+g),e.scale.set(1+a[0]+y(s,P(r,m[0]))||Y,1+a[1]+y(s,P(r,m[1]))||Y,1+a[2]+y(s,P(r,m[2]))||Y),e.scale.multiply(this.object.scale)}}getSurfaceSampler(){let t=this.objectForSample,e=t.geometry,i=e.getAttribute("position"),r=e.index,n=this.surfaceSamplerCache;if(null!==n&&n.geometry===e&&n.position===i&&n.positionVersion===gt(i)&&n.index===r&&n.indexVersion===(null===r?-1:r.version))return n.sampler;let s=new z(t).build();return this.surfaceSamplerCache={geometry:e,position:i,positionVersion:gt(i),index:r,indexVersion:null===r?-1:r.version,sampler:s},s}invalidateSurfaceCaches(){this.surfaceSamplerCache=null,this.surfacePointsCache=null}getSubdivData(){if(!this.objectForSample)return[];let t=this.parameters.toObject.spreadType;if("random"===t)return[];let i=this.objectForSample instanceof e,r=this.objectForSample.geometry;if(!i&&r){let e=this.surfacePointsCache,i=r.getAttribute("position");if(null!==e&&e.spreadType===t&&e.geometry===r&&e.position===i&&e.positionVersion===gt(i)&&e.index===r.index&&e.indexVersion===(null===r.index?-1:r.index.version))return e.points}let n=new Map,s=(t,e)=>{let i=Math.round(1e4*t[0])+"_"+Math.round(1e4*t[1])+"_"+Math.round(1e4*t[2]),r=n.get(i);r?(r.pos[0]+=t[0],r.pos[1]+=t[1],r.pos[2]+=t[2],r.norm[0]+=e[0],r.norm[1]+=e[1],r.norm[2]+=e[2],r.count+=1):n.set(i,{pos:[...t],norm:[...e],count:1})};if(i){let e=this.objectForSample,i=W[t],r=I[i],n=R[i],o=D[i],a=r(e.subdivPointerNew);for(let t=0;t<=a-1;t++){let i=n(e.subdivPointerNew,t),r=o(e.subdivPointerNew,t);Z.fromArray(i).applyMatrix4(e.matrixWorld),J.fromArray(r),s(Z.toArray(),J.toArray())}}else(r.index?function(t){let e=[],i=Math.floor(t.index.count/3);for(let r=0;r<i;r++)if(q.fromArray(t.index.array,3*r),L.setFromAttributeAndIndices(t.attributes.position,q.x,q.y,q.z),L.getNormal(G),L.getMidpoint(H),!(isNaN(H.x)||isNaN(H.y)||isNaN(H.z))){let{a:t,b:i,c:r}=L,n=t.toArray(),s=i.toArray(),o=r.toArray(),a=t.distanceTo(i),l=i.distanceTo(r),h=r.distanceTo(t),c=k(n,s),d=k(s,o),u=k(o,n),p=[a,l,h],m=Math.max(...p),f=p.filter(t=>Math.round(t)===Math.round(m)).length>1,y=[],b=L.getMidpoint(H).toArray();m===a&&!f&&(y=[d,u,u],b=c),m===l&&!f&&(y=[c,u,u],b=d),m===h&&!f&&(y=[c,d,d],b=u),f&&(y=[c,d,u]),e.push({vertices:[n,s,o],faceCenters:y,midpoint:b,norm:L.getNormal(G).toArray()})}return e}(r):function(t){let e=[],{position:i}=t.attributes;for(let t=0;t<i.count;t++){L.setFromAttributeAndIndices(i,3*t,3*t+1,3*t+2),L.getNormal(G),L.getMidpoint(H);let r=L.a.toArray(),n=L.b.toArray(),s=L.c.toArray();e.push({vertices:[r,n,s],faceCenters:[k(r,n),k(n,s),k(s,r)],midpoint:H.toArray(),norm:G.toArray()})}return e}(r)).forEach((e,i)=>{"polygon_center"===t&&s(e.midpoint,e.norm),"vertex"===t&&(s(e.vertices[0],e.norm),s(e.vertices[1],e.norm),s(e.vertices[2],e.norm)),"edge"===t&&(s(e.faceCenters[0],e.norm),s(e.faceCenters[1],e.norm),s(e.faceCenters[2],e.norm))});let o=Array.from(n.values());for(let t of o)t.pos[0]/=t.count,t.pos[1]/=t.count,t.pos[2]/=t.count,t.norm[0]/=t.count,t.norm[1]/=t.count,t.norm[2]/=t.count;if(!i&&r){let e=r.getAttribute("position");this.surfacePointsCache={spreadType:t,geometry:r,position:e,positionVersion:gt(e),index:r.index,indexVersion:null===r.index?-1:r.index.version,points:o}}return o}updateState(t,e){this.parameters=o(t);let{parent:i,matrix:r}=this;if("toObject"!==this.parameters.type)this.invalidateSurfaceCaches(),(null===this.parent||this.parent!==this.object)&&(this.removeFromParent(),this.object.parent?.add(this),this.matrix=this.object.matrix,this.matrixWorldNeedsUpdate=!0,this.matrixAutoUpdate=!1);else if(null===this.parent||this.parent.uuid!==this.parameters.toObject.object){this.removeFromParent(),this.invalidateSurfaceCaches();let t=e.scene.find(this.parameters.toObject.object);this.objectForSample=t instanceof s?t:void 0,this.matrix=new u,this.matrixWorldNeedsUpdate=!0,this.matrixAutoUpdate=!1,t&&t.add(this)}let n=this._layout(e);this._syncEnclosingCopies(n||this.parent!==i||this.matrix!==r)}get pendingMediaLoad(){return this._pendingMediaLoad}},jt=class extends wt{constructor(t){super(t.object,t.parameters),this.source=t,this.matrixAutoUpdate=!1}get insideBoolean(){return this.source.insideBoolean}expand(){this.matrix=this.source.matrix,this.matrixWorldNeedsUpdate=!0;let t=0;for(let e of this.source.children){if(!(e instanceof r))continue;let i=this.children[t];void 0===i&&(i=new r(this.object),this.add(i)),i.matrix=e.matrix,i.matrixWorldNeedsUpdate=!0,i.expand(),t+=1}for(;this.children.length>t;)this.remove(this.children[t])}};export{wt as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t;function e(e){t=e}function r(e){return function(t,{basePath:e,moduleUrl:r,cdnBuild:l}){if(void 0!==e)return{url:`${e}/${t}`};let n=`${l}/${t}`;if(void 0===r||r.startsWith("file:"))return{url:n};let i=r.slice(0,r.lastIndexOf("/")+1)+t;return i===n?{url:i}:{url:i,fallback:n}}(e,{basePath:t,moduleUrl:"string"==typeof import.meta.url?import.meta.url:void 0,cdnBuild:"https://cdn.spline.design/@splinetool/runtime@2.0.
|
|
1
|
+
var t;function e(e){t=e}function r(e){return function(t,{basePath:e,moduleUrl:r,cdnBuild:l}){if(void 0!==e)return{url:`${e}/${t}`};let n=`${l}/${t}`;if(void 0===r||r.startsWith("file:"))return{url:n};let i=r.slice(0,r.lastIndexOf("/")+1)+t;return i===n?{url:i}:{url:i,fallback:n}}(e,{basePath:t,moduleUrl:"string"==typeof import.meta.url?import.meta.url:void 0,cdnBuild:"https://cdn.spline.design/@splinetool/runtime@2.0.176/build"})}async function l(t){let{url:e,fallback:l}=r(t);try{let t=await fetch(e,{mode:"cors"});if(void 0===l||t.ok&&!t.headers.get("content-type")?.startsWith("text/html"))return t;t.body?.cancel()}catch(t){if(void 0===l)throw t}return fetch(l,{mode:"cors"})}function n(t,e){let{url:l,fallback:n}=r(e);void 0!==n&&t.addEventListener("error",()=>{t.src=n},{once:!0}),t.src=l}export{e as a,l as b,n as c};
|
|
Binary file
|
|
Binary file
|