@splinetool/runtime 2.0.48 → 2.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{runtime-chunk-A36JAU4B.js → runtime-chunk-3B2HGN24.js} +1 -1
- package/build/runtime-chunk-3B2HGN24.js.br +0 -0
- package/build/runtime-chunk-3B2HGN24.js.gz +0 -0
- package/build/{runtime-chunk-U32PZRL6.js → runtime-chunk-4EH2XFYY.js} +1 -1
- package/build/runtime-chunk-4EH2XFYY.js.br +0 -0
- package/build/runtime-chunk-4EH2XFYY.js.gz +0 -0
- package/build/{runtime-chunk-NSK65RAM.js → runtime-chunk-54QYM3MM.js} +1 -1
- package/build/runtime-chunk-54QYM3MM.js.br +0 -0
- package/build/runtime-chunk-54QYM3MM.js.gz +0 -0
- package/build/{runtime-chunk-WGFFXVJZ.js → runtime-chunk-A5SHLSKX.js} +1 -1
- package/build/runtime-chunk-A5SHLSKX.js.br +0 -0
- package/build/runtime-chunk-A5SHLSKX.js.gz +0 -0
- package/build/{runtime-chunk-TMDXKKQ4.js → runtime-chunk-AAJG7OQA.js} +1 -1
- package/build/runtime-chunk-AAJG7OQA.js.br +0 -0
- package/build/runtime-chunk-AAJG7OQA.js.gz +0 -0
- package/build/{runtime-chunk-6LJ5WY63.js → runtime-chunk-ABVRWCND.js} +1 -1
- package/build/runtime-chunk-ABVRWCND.js.br +0 -0
- package/build/runtime-chunk-ABVRWCND.js.gz +0 -0
- package/build/{runtime-chunk-5NLFBNZI.js → runtime-chunk-ALC6ISFF.js} +1 -1
- package/build/runtime-chunk-ALC6ISFF.js.br +0 -0
- package/build/runtime-chunk-ALC6ISFF.js.gz +0 -0
- package/build/{runtime-chunk-YGATMBAX.js → runtime-chunk-BIQP6R2E.js} +1 -1
- package/build/runtime-chunk-BIQP6R2E.js.br +0 -0
- package/build/runtime-chunk-BIQP6R2E.js.gz +0 -0
- package/build/{runtime-chunk-QD3UP23G.js → runtime-chunk-CFUHJXWW.js} +1 -1
- package/build/runtime-chunk-CFUHJXWW.js.br +0 -0
- package/build/runtime-chunk-CFUHJXWW.js.gz +0 -0
- package/build/{runtime-chunk-6JTK6F6I.js → runtime-chunk-CGRJT4H4.js} +1 -1
- package/build/runtime-chunk-CGRJT4H4.js.br +0 -0
- package/build/runtime-chunk-CGRJT4H4.js.gz +0 -0
- package/build/{runtime-chunk-DMJI4UIV.js → runtime-chunk-D3NXY575.js} +1 -1
- package/build/runtime-chunk-D3NXY575.js.br +0 -0
- package/build/runtime-chunk-D3NXY575.js.gz +0 -0
- package/build/{runtime-chunk-QL2BCCXM.js → runtime-chunk-JH5OFC4J.js} +1 -1
- package/build/runtime-chunk-JH5OFC4J.js.br +0 -0
- package/build/runtime-chunk-JH5OFC4J.js.gz +0 -0
- package/build/{runtime-chunk-UDV2XWYQ.js → runtime-chunk-JRZXX57L.js} +1 -1
- package/build/runtime-chunk-JRZXX57L.js.br +0 -0
- package/build/runtime-chunk-JRZXX57L.js.gz +0 -0
- package/build/{runtime-chunk-ZJIRBJZN.js → runtime-chunk-KGRWOXPD.js} +1 -1
- package/build/runtime-chunk-KGRWOXPD.js.br +0 -0
- package/build/runtime-chunk-KGRWOXPD.js.gz +0 -0
- package/build/{runtime-chunk-7HGAQJIA.js → runtime-chunk-KYWOL4FO.js} +1 -1
- package/build/runtime-chunk-KYWOL4FO.js.br +0 -0
- package/build/runtime-chunk-KYWOL4FO.js.gz +0 -0
- package/build/{runtime-chunk-FXPI7RLE.js → runtime-chunk-LEXX7XOL.js} +1 -1
- package/build/runtime-chunk-LEXX7XOL.js.br +0 -0
- package/build/runtime-chunk-LEXX7XOL.js.gz +0 -0
- package/build/{runtime-chunk-Y6CNOLEP.js → runtime-chunk-QU4YWWPM.js} +1 -1
- package/build/runtime-chunk-QU4YWWPM.js.br +0 -0
- package/build/runtime-chunk-QU4YWWPM.js.gz +0 -0
- package/build/{runtime-chunk-H5U3GBQ6.js → runtime-chunk-R6SG422O.js} +1 -1
- package/build/runtime-chunk-R6SG422O.js.br +0 -0
- package/build/runtime-chunk-R6SG422O.js.gz +0 -0
- package/build/{runtime-chunk-2FX3QYW5.js → runtime-chunk-RQTWS576.js} +1 -1
- package/build/runtime-chunk-RQTWS576.js.br +0 -0
- package/build/runtime-chunk-RQTWS576.js.gz +0 -0
- package/build/{runtime-chunk-ODTGSTZC.js → runtime-chunk-SKL72FMW.js} +1 -1
- package/build/runtime-chunk-SKL72FMW.js.br +0 -0
- package/build/runtime-chunk-SKL72FMW.js.gz +0 -0
- package/build/{runtime-chunk-AH4PVIQP.js → runtime-chunk-UGYY3TE5.js} +1 -1
- package/build/runtime-chunk-UGYY3TE5.js.br +0 -0
- package/build/runtime-chunk-UGYY3TE5.js.gz +0 -0
- package/build/{runtime-chunk-523ESMM6.js → runtime-chunk-UQZ4RL7R.js} +1 -1
- package/build/runtime-chunk-UQZ4RL7R.js.br +0 -0
- package/build/runtime-chunk-UQZ4RL7R.js.gz +0 -0
- package/build/{runtime-chunk-OBTV3JZN.js → runtime-chunk-WY4SDMN3.js} +1 -1
- package/build/runtime-chunk-WY4SDMN3.js.br +1 -0
- package/build/runtime-chunk-WY4SDMN3.js.gz +0 -0
- package/build/{runtime-chunk-BEGNEON5.js → runtime-chunk-XVKC3GTF.js} +1 -1
- package/build/runtime-chunk-XVKC3GTF.js.br +0 -0
- package/build/runtime-chunk-XVKC3GTF.js.gz +0 -0
- package/build/{runtime-chunk-M5RZDL5J.js → runtime-chunk-YJTOFWUO.js} +1 -1
- package/build/runtime-chunk-YJTOFWUO.js.br +0 -0
- package/build/runtime-chunk-YJTOFWUO.js.gz +0 -0
- package/build/{runtime-classicRuntime-ENHEVRJJ.js → runtime-classicRuntime-B2COIB35.js} +1 -1
- package/build/runtime-classicRuntime-B2COIB35.js.br +0 -0
- package/build/runtime-classicRuntime-B2COIB35.js.gz +0 -0
- package/build/{runtime-cloners-5KFRVNUZ.js → runtime-cloners-RPTIIXIY.js} +1 -1
- package/build/runtime-cloners-RPTIIXIY.js.br +0 -0
- package/build/runtime-cloners-RPTIIXIY.js.gz +0 -0
- package/build/{runtime-components-JEXWFDAH.js → runtime-components-UXZNYXDN.js} +1 -1
- package/build/runtime-components-UXZNYXDN.js.br +0 -0
- package/build/runtime-components-UXZNYXDN.js.gz +0 -0
- package/build/{runtime-createDestroy-DYRRP2TV.js → runtime-createDestroy-ESM4PSNF.js} +1 -1
- package/build/runtime-createDestroy-ESM4PSNF.js.br +0 -0
- package/build/runtime-createDestroy-ESM4PSNF.js.gz +0 -0
- package/build/{runtime-dragDrop-VPMPAPII.js → runtime-dragDrop-D7YOCWAO.js} +1 -1
- package/build/runtime-dragDrop-D7YOCWAO.js.br +0 -0
- package/build/runtime-dragDrop-D7YOCWAO.js.gz +0 -0
- package/build/{runtime-gameControls-TIFD25BN.js → runtime-gameControls-6KBAJLUE.js} +1 -1
- package/build/runtime-gameControls-6KBAJLUE.js.br +0 -0
- package/build/runtime-gameControls-6KBAJLUE.js.gz +0 -0
- package/build/{runtime-hair-ICCHMCSI.js → runtime-hair-MJN3Q7FU.js} +1 -1
- package/build/runtime-hair-MJN3Q7FU.js.br +2 -0
- package/build/runtime-hair-MJN3Q7FU.js.gz +0 -0
- package/build/{runtime-mergeStaticGeometries-JKT4FZ3T.js → runtime-mergeStaticGeometries-66XHJCUJ.js} +1 -1
- package/build/runtime-mergeStaticGeometries-66XHJCUJ.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-66XHJCUJ.js.gz +0 -0
- package/build/{runtime-miscActions-BN5ZXANK.js → runtime-miscActions-V64WLHDQ.js} +1 -1
- package/build/runtime-miscActions-V64WLHDQ.js.br +0 -0
- package/build/runtime-miscActions-V64WLHDQ.js.gz +0 -0
- package/build/{runtime-mouseHover-562ZFWP6.js → runtime-mouseHover-OT5UUTKX.js} +1 -1
- package/build/runtime-mouseHover-OT5UUTKX.js.br +0 -0
- package/build/runtime-mouseHover-OT5UUTKX.js.gz +0 -0
- package/build/{runtime-particles-PF22FTZV.js → runtime-particles-RZVGI6RG.js} +1 -1
- package/build/runtime-particles-RZVGI6RG.js.br +0 -0
- package/build/runtime-particles-RZVGI6RG.js.gz +0 -0
- package/build/{runtime-paths-2ZX2POTG.js → runtime-paths-GHSTNP5N.js} +1 -1
- package/build/runtime-paths-GHSTNP5N.js.br +0 -0
- package/build/runtime-paths-GHSTNP5N.js.gz +0 -0
- package/build/{runtime-resize-QPNMZCEM.js → runtime-resize-IPWYUT6P.js} +1 -1
- package/build/runtime-resize-IPWYUT6P.js.br +0 -0
- package/build/runtime-resize-IPWYUT6P.js.gz +0 -0
- package/build/{runtime-sceneTransition-7SL6FRYQ.js → runtime-sceneTransition-BAOBPWP2.js} +1 -1
- package/build/runtime-sceneTransition-BAOBPWP2.js.br +0 -0
- package/build/runtime-sceneTransition-BAOBPWP2.js.gz +0 -0
- package/build/{runtime-scroll-IVP4QPUR.js → runtime-scroll-LDBVGTY7.js} +1 -1
- package/build/runtime-scroll-LDBVGTY7.js.br +0 -0
- package/build/runtime-scroll-LDBVGTY7.js.gz +0 -0
- package/build/runtime-shapeBlends-FCVAMLTP.js +1 -0
- package/build/runtime-shapeBlends-FCVAMLTP.js.br +0 -0
- package/build/runtime-shapeBlends-FCVAMLTP.js.gz +0 -0
- package/build/{runtime-text-RV4IQN7Y.js → runtime-text-VCGMGBZ5.js} +1 -1
- package/build/runtime-text-VCGMGBZ5.js.br +0 -0
- package/build/runtime-text-VCGMGBZ5.js.gz +0 -0
- package/build/{runtime-textInputs-JUN7XH5O.js → runtime-textInputs-QK6UTNH2.js} +1 -1
- package/build/runtime-textInputs-QK6UTNH2.js.br +0 -0
- package/build/runtime-textInputs-QK6UTNH2.js.gz +0 -0
- package/build/{runtime-timeline-P3UELCLH.js → runtime-timeline-A4MYQAI6.js} +1 -1
- package/build/runtime-timeline-A4MYQAI6.js.br +0 -0
- package/build/runtime-timeline-A4MYQAI6.js.gz +0 -0
- package/build/{runtime-tracking-5EXNNI2E.js → runtime-tracking-WDUCSHW4.js} +1 -1
- package/build/runtime-tracking-WDUCSHW4.js.br +0 -0
- package/build/runtime-tracking-WDUCSHW4.js.gz +0 -0
- package/build/{runtime-transitions-F2TVNI54.js → runtime-transitions-E65FPWMI.js} +1 -1
- package/build/runtime-transitions-E65FPWMI.js.br +0 -0
- package/build/runtime-transitions-E65FPWMI.js.gz +0 -0
- package/build/{runtime-ui2d-MJNEENR5.js → runtime-ui2d-V4OY3GOI.js} +1 -1
- package/build/runtime-ui2d-V4OY3GOI.js.br +0 -0
- package/build/runtime-ui2d-V4OY3GOI.js.gz +0 -0
- package/build/{runtime-vectorShapes-ZDX3O4IY.js → runtime-vectorShapes-BJDJMOYN.js} +1 -1
- package/build/runtime-vectorShapes-BJDJMOYN.js.br +0 -0
- package/build/runtime-vectorShapes-BJDJMOYN.js.gz +0 -0
- package/build/{runtime-webgpu-VSRC4CT3.js → runtime-webgpu-WABQUMLC.js} +1 -1
- package/build/runtime-webgpu-WABQUMLC.js.br +0 -0
- package/build/runtime-webgpu-WABQUMLC.js.gz +0 -0
- package/build/runtime.cjs +5 -5
- package/build/runtime.js +1 -1
- package/build/runtime.js.br +0 -0
- package/build/runtime.js.gz +0 -0
- package/build/runtime.standalone.js +1 -1
- package/build/runtime.standalone.js.br +0 -0
- package/build/runtime.standalone.js.gz +0 -0
- package/build/runtime.standalone.webgl.js +1 -1
- package/build/runtime.standalone.webgl.js.br +0 -0
- package/build/runtime.standalone.webgl.js.gz +0 -0
- package/build/runtime.standalone.webgpu.js +1 -1
- package/build/runtime.standalone.webgpu.js.br +0 -0
- package/build/runtime.standalone.webgpu.js.gz +0 -0
- package/build/runtime.standalone.webgpu.micro.js +1 -1
- package/build/runtime.standalone.webgpu.micro.js.br +0 -0
- package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
- package/build/runtime.standalone.webgpu.min.js +1 -1
- package/build/runtime.standalone.webgpu.min.js.br +0 -0
- package/build/runtime.standalone.webgpu.min.js.gz +0 -0
- package/package.json +1 -1
- package/build/runtime-chunk-2FX3QYW5.js.br +0 -0
- package/build/runtime-chunk-2FX3QYW5.js.gz +0 -0
- package/build/runtime-chunk-523ESMM6.js.br +0 -0
- package/build/runtime-chunk-523ESMM6.js.gz +0 -0
- package/build/runtime-chunk-5NLFBNZI.js.br +0 -0
- package/build/runtime-chunk-5NLFBNZI.js.gz +0 -0
- package/build/runtime-chunk-6JTK6F6I.js.br +0 -0
- package/build/runtime-chunk-6JTK6F6I.js.gz +0 -0
- package/build/runtime-chunk-6LJ5WY63.js.br +0 -0
- package/build/runtime-chunk-6LJ5WY63.js.gz +0 -0
- package/build/runtime-chunk-7HGAQJIA.js.br +0 -0
- package/build/runtime-chunk-7HGAQJIA.js.gz +0 -0
- package/build/runtime-chunk-A36JAU4B.js.br +0 -0
- package/build/runtime-chunk-A36JAU4B.js.gz +0 -0
- package/build/runtime-chunk-AH4PVIQP.js.br +0 -0
- package/build/runtime-chunk-AH4PVIQP.js.gz +0 -0
- package/build/runtime-chunk-BEGNEON5.js.br +0 -0
- package/build/runtime-chunk-BEGNEON5.js.gz +0 -0
- package/build/runtime-chunk-DMJI4UIV.js.br +0 -0
- package/build/runtime-chunk-DMJI4UIV.js.gz +0 -0
- package/build/runtime-chunk-FXPI7RLE.js.br +0 -0
- package/build/runtime-chunk-FXPI7RLE.js.gz +0 -0
- package/build/runtime-chunk-H5U3GBQ6.js.br +0 -0
- package/build/runtime-chunk-H5U3GBQ6.js.gz +0 -0
- package/build/runtime-chunk-M5RZDL5J.js.br +0 -0
- package/build/runtime-chunk-M5RZDL5J.js.gz +0 -0
- package/build/runtime-chunk-NSK65RAM.js.br +0 -0
- package/build/runtime-chunk-NSK65RAM.js.gz +0 -0
- package/build/runtime-chunk-OBTV3JZN.js.br +0 -3
- package/build/runtime-chunk-OBTV3JZN.js.gz +0 -0
- package/build/runtime-chunk-ODTGSTZC.js.br +0 -0
- package/build/runtime-chunk-ODTGSTZC.js.gz +0 -0
- package/build/runtime-chunk-QD3UP23G.js.br +0 -0
- package/build/runtime-chunk-QD3UP23G.js.gz +0 -0
- package/build/runtime-chunk-QL2BCCXM.js.br +0 -0
- package/build/runtime-chunk-QL2BCCXM.js.gz +0 -0
- package/build/runtime-chunk-TMDXKKQ4.js.br +0 -0
- package/build/runtime-chunk-TMDXKKQ4.js.gz +0 -0
- package/build/runtime-chunk-U32PZRL6.js.br +0 -0
- package/build/runtime-chunk-U32PZRL6.js.gz +0 -0
- package/build/runtime-chunk-UDV2XWYQ.js.br +0 -0
- package/build/runtime-chunk-UDV2XWYQ.js.gz +0 -0
- package/build/runtime-chunk-WGFFXVJZ.js.br +0 -0
- package/build/runtime-chunk-WGFFXVJZ.js.gz +0 -0
- package/build/runtime-chunk-Y6CNOLEP.js.br +0 -0
- package/build/runtime-chunk-Y6CNOLEP.js.gz +0 -0
- package/build/runtime-chunk-YGATMBAX.js.br +0 -0
- package/build/runtime-chunk-YGATMBAX.js.gz +0 -0
- package/build/runtime-chunk-ZJIRBJZN.js.br +0 -0
- package/build/runtime-chunk-ZJIRBJZN.js.gz +0 -0
- package/build/runtime-classicRuntime-ENHEVRJJ.js.br +0 -0
- package/build/runtime-classicRuntime-ENHEVRJJ.js.gz +0 -0
- package/build/runtime-cloners-5KFRVNUZ.js.br +0 -1
- package/build/runtime-cloners-5KFRVNUZ.js.gz +0 -0
- package/build/runtime-components-JEXWFDAH.js.br +0 -0
- package/build/runtime-components-JEXWFDAH.js.gz +0 -0
- package/build/runtime-createDestroy-DYRRP2TV.js.br +0 -0
- package/build/runtime-createDestroy-DYRRP2TV.js.gz +0 -0
- package/build/runtime-dragDrop-VPMPAPII.js.br +0 -0
- package/build/runtime-dragDrop-VPMPAPII.js.gz +0 -0
- package/build/runtime-gameControls-TIFD25BN.js.br +0 -0
- package/build/runtime-gameControls-TIFD25BN.js.gz +0 -0
- package/build/runtime-hair-ICCHMCSI.js.br +0 -1
- package/build/runtime-hair-ICCHMCSI.js.gz +0 -0
- package/build/runtime-mergeStaticGeometries-JKT4FZ3T.js.br +0 -0
- package/build/runtime-mergeStaticGeometries-JKT4FZ3T.js.gz +0 -0
- package/build/runtime-miscActions-BN5ZXANK.js.br +0 -0
- package/build/runtime-miscActions-BN5ZXANK.js.gz +0 -0
- package/build/runtime-mouseHover-562ZFWP6.js.br +0 -0
- package/build/runtime-mouseHover-562ZFWP6.js.gz +0 -0
- package/build/runtime-particles-PF22FTZV.js.br +0 -0
- package/build/runtime-particles-PF22FTZV.js.gz +0 -0
- package/build/runtime-paths-2ZX2POTG.js.br +0 -0
- package/build/runtime-paths-2ZX2POTG.js.gz +0 -0
- package/build/runtime-resize-QPNMZCEM.js.br +0 -0
- package/build/runtime-resize-QPNMZCEM.js.gz +0 -0
- package/build/runtime-sceneTransition-7SL6FRYQ.js.br +0 -0
- package/build/runtime-sceneTransition-7SL6FRYQ.js.gz +0 -0
- package/build/runtime-scroll-IVP4QPUR.js.br +0 -0
- package/build/runtime-scroll-IVP4QPUR.js.gz +0 -0
- package/build/runtime-shapeBlends-6AFSJ3TO.js +0 -1
- package/build/runtime-shapeBlends-6AFSJ3TO.js.br +0 -2
- package/build/runtime-shapeBlends-6AFSJ3TO.js.gz +0 -0
- package/build/runtime-text-RV4IQN7Y.js.br +0 -0
- package/build/runtime-text-RV4IQN7Y.js.gz +0 -0
- package/build/runtime-textInputs-JUN7XH5O.js.br +0 -0
- package/build/runtime-textInputs-JUN7XH5O.js.gz +0 -0
- package/build/runtime-timeline-P3UELCLH.js.br +0 -0
- package/build/runtime-timeline-P3UELCLH.js.gz +0 -0
- package/build/runtime-tracking-5EXNNI2E.js.br +0 -0
- package/build/runtime-tracking-5EXNNI2E.js.gz +0 -0
- package/build/runtime-transitions-F2TVNI54.js.br +0 -0
- package/build/runtime-transitions-F2TVNI54.js.gz +0 -0
- package/build/runtime-ui2d-MJNEENR5.js.br +0 -0
- package/build/runtime-ui2d-MJNEENR5.js.gz +0 -0
- package/build/runtime-vectorShapes-ZDX3O4IY.js.br +0 -0
- package/build/runtime-vectorShapes-ZDX3O4IY.js.gz +0 -0
- package/build/runtime-webgpu-VSRC4CT3.js.br +0 -0
- package/build/runtime-webgpu-VSRC4CT3.js.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./runtime-chunk-TU4KDRKR.js";import{W as o}from"./runtime-chunk-
|
|
1
|
+
import{a as e}from"./runtime-chunk-TU4KDRKR.js";import{W as o}from"./runtime-chunk-AAJG7OQA.js";import{Dc as n,Fc as t,Jc as r}from"./runtime-chunk-BVVSZMXD.js";var i={enabled:!1},s=new WeakMap;function a(e){if(!i.enabled)return e;let o=s.get(e);return o||(o={...e,bloom:{...e.bloom,kernelSize:0},depthOfField:{...e.depthOfField,enabled:!1}},s.set(e,o)),o}var c=new WeakSet;function l(e){if(!e.isPointLight&&!e.isSpotLight&&!e.isDirectionalLight)return!1;if(i.enabled){if(!0===e.castShadow)return e.castShadow=!1,c.add(e),!0}else if(c.has(e)&&(c.delete(e),!1===e.castShadow))return e.castShadow=!0,!0;return!1}function u(i,s){switch(i.type){case"cavity":return function(e,o){return{...h(e,o),ridge:e.ridge,valley:e.valley}}(i,s);case"dust":return function(n,t){return{...h(n,t),color:e(n.color,t),coverage:o(n.coverage,t)??.2,softness:o(n.softness,t)??.2,noiseStrength:o(n.noiseStrength,t)??.2,noiseScale:o(n.noiseScale,t)??1}}(i,s);case"fresnel":return function(o,n){let{bias:t,scale:r,intensity:i,factor:s,color:a}=o;return{...h(o,n),color:e(a,n),bias:t,scale:r,intensity:i,factor:s}}(i,s);case"gradient":return function(e,o){let{gradientType:t,smooth:i,colors:s,steps:a,angle:c,offset:l,morph:u}=e;return{...h(e,o),gradientType:t,smooth:i,colors:s.map(e=>new r(e[0],e[1],e[2],e[3])),num:s.length,steps:a,offset:new n(...l.map(e=>"number"==typeof e?e:0)),morph:new n(...u.map(e=>"number"==typeof e?e:0)),angle:c}}(i,s);case"depth":return function(e,o){let{gradientType:n,near:i,far:s,isVector:a,isWorldSpace:c,origin:l,direction:u,colors:f,steps:p,smooth:m}=e;return{...h(e,o),gradientType:n,near:i,far:s,isVector:a,isWorldSpace:c,origin:new t(...l),direction:u?new t(...u):new t(1,0,0),colors:f.map(e=>void 0!==e?new r(e[0],e[1],e[2],e[3]):new r(0,0,0,0)),steps:p.slice(0,f.length),smooth:m}}(i,s);case"normal":return function(e,o){let{cnormal:n}=e;return{...h(e,o),cnormal:new t(n[0],n[1],n[2])}}(i,s);case"noise":return function(o,r){return{...h(o,r),scale:o.scale,move:o.move,fA:new n(...o.fA.map(e=>"number"==typeof e?e:0)),fB:new n(...o.fB.map(e=>"number"==typeof e?e:0)),size:new t(...o.size),distortion:new n(...o.distortion.map(e=>"number"==typeof e?e:0)),colorA:e(o.colorA,r),colorB:e(o.colorB,r),colorC:e(o.colorC,r),colorD:e(o.colorD,r),noiseType:o.noiseType,voronoiStyle:o.voronoiStyle,highCut:o.highCut,lowCut:o.lowCut,smoothness:o.smoothness,seed:o.seed,quality:o.quality}}(i,s);case"rainbow":return function(e,o){return{...h(e,o),filmThickness:e.filmThickness,movement:e.movement,wavelengths:new t(...e.wavelengths),noiseStrength:e.noiseStrength,noiseScale:e.noiseScale,offset:new t(...e.offset)}}(i,s);case"toon":return function(o,n){return{...h(o,n),positioning:o.positioning,colors:o.colors.map(e=>new r(e[0],e[1],e[2],e[3])),num:o.colors.length,steps:o.steps,source:new t(...o.source),isWorldSpace:o.isWorldSpace,noiseStrength:o.noiseStrength,noiseScale:o.noiseScale,shadowColor:e(o.shadowColor,n),offset:new t(...o.offset)}}(i,s);case"outline":return function(o,n){return{...h(o,n),outlineColor:e(o.outlineColor,n),contourColor:e(o.contourColor,n),outlineWidth:o.outlineWidth,contourWidth:o.contourWidth,outlineThreshold:o.outlineThreshold,contourThreshold:o.contourThreshold,outlineSmoothing:o.outlineSmoothing,contourFrequency:o.contourFrequency,contourDirection:new t(...o.contourDirection),positionalLines:o.positionalLines,compensation:o.compensation}}(i,s);case"transmission":return function(o,n){return{...h(o,n),thickness:o.thickness,ior:o.ior,roughness:o.roughness,attenuationColor:void 0!==o.attenuationColor?e(o.attenuationColor,n):{r:1,g:1,b:1,a:1},attenuationDistance:o.attenuationDistance??0}}(i,s);case"reflection":return function(e,n){return{...h(e,n),blur:o(e.blur,n)??0,thickness:o(e.thickness,n)??.001,steps:o(e.steps,n)??60,stepSize:o(e.stepSize,n)??.005,tracingMode:e.tracingMode,mirror:e.mirror??0}}(i,s);case"pattern":return function(o,t){return{...h(o,t),style:o.style,projection:o.projection,axis:o.axis,blending:o.blending,offset:new n(...o.offset.map(e=>"number"==typeof e?e:0)),colorA:e(o.colorA,t),colorB:e(o.colorB,t),frequency:new n(...o.frequency.map(e=>"number"==typeof e?e:0)),size:o.size,variation:o.variation,smoothness:o.smoothness,zigzag:o.zigzag,rotation:o.rotation,vertical:new n(...o.vertical.map(e=>"number"==typeof e?e:0)),horizontal:new n(...o.horizontal.map(e=>"number"==typeof e?e:0)),sides:o.sides}}(i,s);case"vertexColor":return h(i,s);default:return function(o,n){return{...h(o,n),color:e(o.color,n)}}(i,s)}}function f(e){return{type:e.type}}function h(e,o){let{alpha:n,mode:t,isMask:r}=e,i="string"==typeof n?Number(o.getVariable(n)??100)/100:n;return{...f(e),alpha:i,mode:t,isMask:r}}export{i as a,a as b,l as c,u as d};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t}from"./runtime-chunk-
|
|
1
|
+
import{a as e,b as t}from"./runtime-chunk-SKL72FMW.js";import{b as a,e as i,g as r}from"./runtime-chunk-QU4YWWPM.js";import{a as s}from"./runtime-chunk-TU4KDRKR.js";import{a as n}from"./runtime-chunk-4EH2XFYY.js";import{a as l,b as o}from"./runtime-chunk-RQTWS576.js";import{T as h,d as u,da as c,e as d,h as p}from"./runtime-chunk-AAJG7OQA.js";import{b as y,h as m,j as g,v as f}from"./runtime-chunk-ABVRWCND.js";import{c as b}from"./runtime-chunk-2PT2WH66.js";import{c as v,l as C}from"./runtime-chunk-TZCHGFVF.js";import{oa as S,ra as k,v as A,xa as w}from"./runtime-chunk-NMRQ6IV4.js";import{Ne as F,Oc as L,Tc as O,Uc as j,Vc as H,cd as M,jd as T,ld as B,ve as D}from"./runtime-chunk-BVVSZMXD.js";function U(e){return e instanceof c&&e.needsAO&&!b(e)&&!0!==e.isDecalObject}function z(e){let t=e.cloner;if(t&&Array.isArray(t.children))for(let a of t.children)a?.layers&&(a.layers.mask=e.layers.mask)}function x(e){return e.getLayersOfType("reflection").filter(e=>e.data.visible).length}function P(e){return e.getLayersOfType("reflection").some(e=>e.data.visible&&1===e.data.mirror)}function E(e){let t=1/0,a=-1/0;for(let i of e.getLayersOfType("reflection")){let e=i.data;if(!e.visible||1===e.mirror)continue;let r="number"==typeof e.blur?e.blur:null;t=Math.min(t,r??0),a=Math.max(a,r??10)}return t===1/0?null:{min:t,max:a}}function I(e){for(let t of e.getLayersOfType("reflection")){let e=t.data;if(!e.visible)continue;let{blur:a,thickness:i,steps:r,stepSize:s}=e;return"number"!=typeof a||"number"!=typeof i||"number"!=typeof r||"number"!=typeof s?"variable":{blur:a,thickness:i,steps:r,stepSize:s,tracingMode:1===e.tracingMode?1:0}}return null}function W(e,t){let a={outline:!1,cavity:!1},i=512&e.layers.mask,r=t.getLayersOfType("transmission"),s=t.getLayersOfType("outline"),n=x(t),h=t.getLayersOfType("cavity");return(s.length>0||h.length>0)&&(e.layers.set(8),r.length>0&&e.layers.enable(3),n>0&&e.layers.enable(4),a.outline=s.length>0,a.cavity=h.length>0,o(e),l(e)),0===r.length&&0===s.length&&0===h.length&&0===n&&e.layers.set(0),i&&e.layers.set(9),!i&&U(e)&&e.layers.enable(5),z(e),a}function V(e,t){if(!t.layers)return!1;let a=512&e.layers.mask,i=!1,r=t.getLayersOfType("transmission").filter(e=>e.data.visible),s=t.getLayersOfType("outline").filter(e=>e.data.visible),n=x(t),l=t.getLayersOfType("cavity").filter(e=>e.data.visible);return r.length>0&&(e.layers.set(3),(s.length>0||l.length>0)&&e.layers.enable(8),n>0&&e.layers.enable(4),i=!0),0===r.length&&0===s.length&&0===l.length&&0===n&&e.layers.set(0),a&&e.layers.set(9),!a&&U(e)&&e.layers.enable(5),z(e),i}function Q(e,t){var a;if(!t.layers)return!1;let i=512&e.layers.mask,r=!1,s=x(t),n=t.getLayersOfType("transmission").filter(e=>e.data.visible),l=t.getLayersOfType("outline").filter(e=>e.data.visible),o=t.getLayersOfType("cavity").filter(e=>e.data.visible);return s>0&&((a=e.userData).__splinePlanarMirror??(a.__splinePlanarMirror=0),e.layers.set(4),n.length>0&&e.layers.enable(3),(l.length>0||o.length>0)&&e.layers.enable(8),r=!0),0===s&&0===n.length&&0===l.length&&0===o.length&&e.layers.set(0),i&&e.layers.set(9),!i&&U(e)&&e.layers.enable(5),z(e),r}function R(e){let t={outline:!1,cavity:!1},a=e=>{t.outline=t.outline||e.outline,t.cavity=t.cavity||e.cavity};return e.traverseEntity(e=>{if(e instanceof c)if(Array.isArray(e.material))for(let t=0;t<e.material.length;t++)a(W(e,e.material[t]));else a(W(e,e.material))}),t}function _(e){let t=!1;return e.traverseEntity(e=>{if(e instanceof c)if(Array.isArray(e.material))for(let a=0;a<e.material.length;a++)V(e,e.material[a])&&(t=!0);else V(e,e.material)&&(t=!0)}),t}function G(e){let t=!1;return e.traverseEntity(e=>{if(e instanceof c)if(Array.isArray(e.material))for(let a=0;a<e.material.length;a++)Q(e,e.material[a])&&(t=!0);else Q(e,e.material)&&(t=!0)}),t}var K=new F,N=new L,Y=new T,X=new M;function Z(e,t,a,i=!1){let r=e.cloner;if(r){let s=null;if(e.raycast===B.prototype.raycast||e.raycast===f.prototype.raycast){let t=e.geometry;t&&(null===t.boundingSphere&&t.computeBoundingSphere(),s=t.boundingSphere)}for(let n of r.children){if(null!==s&&(X.copy(s).applyMatrix4(n.matrixWorld),!t.ray.intersectsSphere(X)))continue;let r=N.copy(n.matrixWorld).invert(),l=Y.copy(t.ray).applyMatrix4(r),o=e.matrixWorld;l.applyMatrix4(o);let h=K;h.set(l.origin,l.direction),h.near=t.near,h.far=t.far,h.layers.mask=t.layers.mask;let u=h.intersectObject(e,!1);u.length>0&&a.push({...u[0],object:i?n:e})}}}var J=class extends(g(H)){constructor(e,t,a){if(super(),this.data=t,this.bgColor=new p(1,1,1,1),this.fog=null,this.backupFog=new j(16777215,.1,2e3),this.fogUseBGColor=!1,this.fogMode="linear",this.fogDensity=S.getDensity({}),this.fogHeightFalloff=S.getHeightFalloff({}),this.fogHeightBase=S.getHeightBase({}),this.isActive=!1,this.skyState=null,this.skyStateVersion=0,this.gradingState=null,this.skyHdriHolder=null,this.aoColor=new O,this.penumbraSizeArrayCache=null,this.super_Entity(e,t),this.personalCamera=new n(A,{...w.defaultData,...t.camera,name:"Personal Camera"}),this.personalCamera.objectHelper.visible=!1,this.add(this.personalCamera),this.activeCamera=this.personalCamera,this.ambientLight=new D(13882323,8553090,.75*Math.PI),this.ambientLight.name="Default Ambient Light",this.ambientLight.layers.enable(3),this.ambientLight.removeFromParent(),this.add(this.ambientLight),t.uiScene){let i=C();null===i?v("ui-2d","a page's 2D scene"):this.uiScene=new i.Scene2D((Array.isArray(e)?e[0]:e)+"-ui",t.uiScene,{dpr:window.devicePixelRatio,shared:a.shared})}else t.uiFrame&&this.createUICanvas(t.uiFrame,a)}get scene(){return this.parent}get postprocessing(){return this.data.postprocessing}get frameId(){return this.data.uiFrame}get frame(){return this.uiCanvas?.frame}createUICanvas(e,t){let a=C();null!==a?(this.uiCanvas=new a.UICanvas(this.uuid+"-uiscreen",window.innerWidth,window.innerHeight,t),this.uiCanvas.isScreenSpace=!0,this.uiCanvas.promise.then(()=>{this.uiCanvas?.applyFrame(e),this.uiCanvas?.applySize()})):v("ui-2d","a page's UI canvas")}updateVisible(){}setBackgroundColor(e){this.bgColor=e,!0===this.fogUseBGColor&&(this.backupFog.color=e)}entityChildrenCount(){return this.uiScene?this.uiScene.children.length:super.entityChildrenCount()}updateAmbientLight(e,t){void 0!==e.color&&(this.ambientLight.color=s(e.color,t)),void 0!==e.intensity&&(this.ambientLight.intensity=e.intensity*Math.PI),void 0!==e.enabled&&(e.enabled?this.add(this.ambientLight):this.remove(this.ambientLight))}onDeactive(){this.isActive=!1}onActive(e){this.isActive=!0,e.fog=this.fog,this.traverseEntity(e=>{e instanceof a&&e.recomputeBoolean()}),this.updateShadow(this.data.shadow)}forceMaterialsUpdate(){this.traverseEntity(e=>{if(e instanceof c)if(Array.isArray(e.material))for(let t of e.material)t.needsUpdate=!0;else e.material.needsUpdate=!0,e.material.dispose()})}updateShadow(e){if(void 0===e.softShadowQuality&&void 0===e.type||!this.isActive)return;let t=this.data.shadow,a=k.isSoft(t);h(a,t?.softShadowQuality)&&this.forceMaterialsUpdate()}updateFog(e,t){e.enabled?this.fog=this.backupFog:this.fog=null,this.isActive&&(this.scene.fog=this.fog),this.fogUseBGColor=e.useBackgroundColor,e.useBackgroundColor?this.backupFog.color.set(this.bgColor):this.backupFog.color=s(e.color,t),this.backupFog.near=e.near,this.backupFog.far=e.far,this.fogMode=S.getMode(e),this.fogDensity=S.getDensity(e),this.fogHeightFalloff=S.getHeightFalloff(e),this.fogHeightBase=S.getHeightBase(e)}updateSky(e,t){this.skyState=e??null,this.skyStateVersion++;let a=e?.hdri?.image;this.skyHdriHolder=null!=a?t.image(a):null}updateAo(e,t){void 0!==e.aoColor&&(this.aoColor=s(e.aoColor,t))}updateByOp(e,t,a,i){let r=this.data.uiFrame;super.updateByOp(e,t,a,i);let s=t;y(e.path,["fog"])?this.updateFog(s.fog,a.shared):y(e.path,["sky"])?this.updateSky(s.sky,a.shared):y(e.path,["grading"])?this.gradingState=s.grading??null:y(e.path,["ao"])?this.updateAo(s.ao,a.shared):y(e.path,["ambient"])?this.updateAmbientLight(s.ambient,a.shared):y(e.path,["shadow"])?this.updateShadow(s.shadow):0===e.type&&0===e.path.length&&(void 0!==e.props.uiFrame||r!==s.uiFrame)&&this.updateUIFrame(e.props.uiFrame,a)}updateUIFrame(e,t){e?(this.uiCanvas||this.createUICanvas(e,t),this.uiCanvas.enabled=!0,this.uiCanvas.applyFrame(e)):this.uiCanvas&&(this.uiCanvas.enabled=!1)}updateState(e,t){this.updateState_Entity(e,t),void 0!==e.backgroundColor&&this.setBackgroundColor(s(e.backgroundColor,t.shared)),void 0!==e.fog&&this.updateFog(e.fog,t.shared),void 0!==e.sky&&this.updateSky(e.sky,t.shared),void 0!==e.grading&&(this.gradingState=e.grading),void 0!==e.ambient&&this.updateAmbientLight(e.ambient,t.shared),void 0!==e.ao&&this.updateAo(e.ao,t.shared),void 0!==e.shadow&&this.updateShadow(e.shadow)}createFrame(e,t){}raycast(e,t){super.raycast(e,t)}switchActiveCamera(e){e&&e.isDescendantOf(this)&&(this.activeCamera!==this.personalCamera&&(this.activeCamera.objectHelper.visible=!0),this.activeCamera=e,e.objectHelper.visible=!1)}get playCamera(){return this.scene?.find(this.data.publish.playCamera)??this.personalCamera}switchToPlayCamera(){this.switchActiveCamera(this.playCamera)}get penumbraSizeArray(){return null===this.penumbraSizeArrayCache&&this.updatePenumbraSizeArray(),this.penumbraSizeArrayCache}updatePenumbraSizeArray(){this.penumbraSizeArrayCache=new Array(u).fill(.5);let a=0,i=0;this.traverseEntity(r=>{if(!r.visible)return!0;r instanceof e&&r.visible&&a<d&&(this.penumbraSizeArrayCache[a]=r.data.penumbraSize??.5,a+=1),r instanceof t&&r.visible&&a<u-d&&(this.penumbraSizeArrayCache[d+i]=r.data.penumbraSize??.5,i+=1)})}raycastWithClones(e){let t=[],a=s=>{for(let n of s.children){let s=n.cloner;m.is(n)&&(n.visible||s?.object.data.visible)&&((i(n)||r(n)&&this.scene.enableHelpers&&n.objectHelper.visible)&&(e.intersectObject(n,!1,t),Z(n,e,t,!0)),a(n))}};return a(this),t}updateEntity2DByOp(e,t,a,i){this.uiCanvas?.updateEntity2DByOp(e,t,a,i)}};export{P as a,E as b,I as c,R as d,_ as e,G as f,Z as g,J as h};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t}from"./runtime-chunk-
|
|
1
|
+
import{a as e,b as t}from"./runtime-chunk-RQTWS576.js";import{c as s,d as o}from"./runtime-chunk-ALC6ISFF.js";import{da as r}from"./runtime-chunk-AAJG7OQA.js";import{h as i,o as a,p as n,q as d,r as h,s as l,t as m,v as p}from"./runtime-chunk-ABVRWCND.js";import{i as u}from"./runtime-chunk-2PT2WH66.js";import{Oc as c,bd as y,dd as g,ue as f}from"./runtime-chunk-BVVSZMXD.js";var b=new c,A=new c,M=new c,S=new c,v=new c;function w(e){let t=!1;return e.scene.objects.traverse((e,s)=>{"BooleanGeometry"===s.geometry?.type&&(t=!0)}),t}function D(e,t){let s=e.cloner;return void 0!==s&&s.parent===t?s:void 0}var x=new Float32Array(0);function B(e,t,s,o){let r=16*(t.children.length+1);x.length<r&&(x=new Float32Array(r));let i=0,a=e=>{e.toArray(x,16*i),i++},n=!0!==t.parameters.hideBase;n&&a(o),M.multiplyMatrices(e.hiddenMatrix,e.matrix);for(let e of t.children)!u(e)||!1===e.playModeVisible||(S.multiplyMatrices(e.hiddenMatrix,e.matrix).multiply(e.pivotMatrix),v.multiplyMatrices(M,S),(!n||!v.equals(o))&&a(v));try{return 0===i?0:m(s,x.subarray(0,16*i))}finally{l(s)}}var O,F=class extends r{constructor(e,t,s){super(e,t),this.data=t,this.meshSetAddresses=[],this.needsTransformForDownstream=!1,this.geometry=new g,this.onAfterRender=(e,t,s,o,r,i)=>{super.onAfterRender(e,t,s,o,r,i),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,s){super.updateByPatchedOp(e,t,s),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(s,o=!0){if(-1!==this.booleanMeshSetAddress&&!s)return;for(let e=0;e<this.children.length;e++){let t=this.children[e];t instanceof F&&!0===t.dataPatched.visible&&t.recomputeBoolean(!0===s,o)}this.meshSetAddresses=[];for(let e=0;e<this.children.length;e++){let t=this.children[e];if(t instanceof p&&!0===t.dataPatched.visible&&t.geometry.attributes.position?.count>0&&t.geometry.drawRange.count>0&&0!==t.booleanMeshSetAddress){b.multiplyMatrices(t.hiddenMatrix,t.matrix).multiply(t.pivotMatrix);try{let e=D(t,this);if(-1===t.booleanMeshSetAddress){if((t.geometry.index??t.geometry.getAttribute("position")).count/3<15e5){let r=a(t.geometry,!0===s,o);t.booleanMeshSetAddress=void 0===e||-1===r?r:B(t,e,r,b)}if(-1===t.booleanMeshSetAddress)return;void 0===e&&h(t.booleanMeshSetAddress,b),t.booleanMatrixInvOld.copy(b).invert(),t.booleanWasTransformed=!1}else t instanceof F&&!0===t.needsTransformForDownstream?(void 0===e?h(t.booleanMeshSetAddress,b):t.booleanMeshSetAddress=B(t,e,t.booleanMeshSetAddress,b),t.needsTransformForDownstream=!1):!0===t.booleanWasTransformed&&(h(t.booleanMeshSetAddress,A.multiplyMatrices(b,t.booleanMatrixInvOld)),t.booleanMatrixInvOld.copy(b).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 g,this.geometry.userData=e.userData,this.geometry.boundingSphere=e.boundingSphere,this.geometry.setAttribute("position",new y([],3))}return void this.geometry.setDrawRange(0,0)}if(!0===s)return d(this.meshSetAddresses,this.booleanOp);let r=this.geometry;r.dispose(),this.geometry=new g,this.geometry.userData=r.userData,this.geometry.boundingSphere=r.boundingSphere;try{this.booleanMeshSetAddress=n(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()}};(O||(O={})).is=function(e){return i.is(e)&&e instanceof f};var P=(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&&(this.castShadow=e.shadows)}},T=e=>e instanceof p,j=e=>null!==e&&e instanceof F,k=e=>s.is(e);export{w as a,F as b,O as c,P as d,T as e,j as f,k as g};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s}from"./runtime-chunk-
|
|
1
|
+
import{d as s}from"./runtime-chunk-QU4YWWPM.js";import{a as t,b as i}from"./runtime-chunk-ALC6ISFF.js";import{Fc as a,Tc as o,Te as e,We as h,Xc as r,ze as d}from"./runtime-chunk-BVVSZMXD.js";var n=class extends(t(e)){constructor(s,t=15,i=6710886){super(s,t,i),this.object=s,this.name=`PointLightHelper: ${s.uuid}`}raycast(s,t){i(this.object,n.geometryHelper,s,t)}},p=class extends(s(d,n)){constructor(s,t,i){super(),this.super_Entity(s,t),this.castShadow=!0,this.shadow.mapSize.width=1024,this.shadow.mapSize.height=1024,this.shadow.normalBias=1,this.layers.enable(3);let e=this.shadow.camera;e.fov=90,e.aspect=1,e.near=100,e.far=2500;let d=new a(-e.far+this.position.x,-e.far+this.position.y,-e.far+this.position.z),n=new a(e.far+this.position.x,e.far+this.position.y,e.far+this.position.z),p=new r(d,n),c=new h(p,new o(16755200));c.visible=!1,this.gizmos.shadowmap=c,this.update()}update(){if(this.shadow&&(this.shadow.camera.updateProjectionMatrix(),this.gizmos))for(let s in this.gizmos){let t=this.gizmos[s];if(t instanceof h){let s=this.shadow.camera,i=new a(-s.far+this.position.x,-s.far+this.position.y,-s.far+this.position.z),o=new a(s.far+this.position.x,s.far+this.position.y,s.far+this.position.z);t.box.set(i,o),t.updateMatrixWorld(!0)}}}updateMatrixWorld(s){super.updateMatrixWorld(s),this.objectHelper&&this.objectHelper.update()}updateState(s,t){this.updateState_Light(s,t),void 0!==s.distance&&(this.distance=s.distance),void 0!==s.decay&&(this.decay=s.decay),void 0!==s.shadowRadius&&(this.shadow.radius=s.shadowRadius),void 0!==s.shadowResolution&&(this.shadow.mapSize.set(s.shadowResolution,s.shadowResolution),this.shadow.map&&(this.shadow.map.dispose(),this.shadow.map=null))}};export{p as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ea as e,g as t}from"./runtime-chunk-
|
|
1
|
+
import{ea as e,g as t}from"./runtime-chunk-AAJG7OQA.js";import{Cc as r,Fc as a,Zc as o,bd as n}from"./runtime-chunk-BVVSZMXD.js";function i(r){if(Array.isArray(r.material)){for(let e of r.material)if(0===e.getLayersOfType("outline").length)return}else if(!t(r.material)||0===r.material.getLayersOfType("outline").length)return;r instanceof e&&r.is2DAndNoDepth?function(e){if(e.geometry.attributes.extrudeNormals||!e.geometry.attributes.position)return;let t=e.geometry.attributes.position.array,r=new Float32Array(t.length),o=new a;for(let e=0;e<t.length;e+=3)o.set(t[e],t[e+1],t[e+2]).normalize(),r[e]=o.x,r[e+1]=o.y,r[e+2]=o.z;e.geometry.setAttribute("extrudeNormal",new n(r,3))}(r):function(e){if(e.geometry.attributes.extrudeNormal||!e.geometry.attributes.position||!e.geometry.attributes.normal)return;let t=new Map,r=e.geometry.attributes,o=r.position.array,i=r.normal.array,l=new Float32Array(o.length);for(let e=0;e<o.length;e+=3){let r=`${o[e]}_${o[e+1]}_${o[e+2]}`,n=new a(i[e],i[e+1],i[e+2]);t.has(r)?t.get(r)?.normals.push(n):t.set(r,{normals:[n],result:new a})}t.forEach((e,t)=>{for(let t of e.normals)e.result.add(t);e.result.divideScalar(e.normals.length)});for(let e=0;e<o.length;e+=3){let r=`${o[e]}_${o[e+1]}_${o[e+2]}`,a=t.get(r)?.result;a&&(l[e]=a.x,l[e+1]=a.y,l[e+2]=a.z)}e.geometry.setAttribute("extrudeNormal",new n(l,3))}(r)}function l(e){return Math.min(2047,Math.max(1,Math.round(2048*e)))/2048}function s(e){if(!e.geometry.attributes.position)return;let t=e.geometry.attributes,a=t.position.array,n=t.randomColor;if(void 0!==n&&3*n.count===a.length)return;let i=new Float32Array(a.length),s=parseInt(e.uuid.replace(/\D/g,"")),u=[l(r.seededRandom(s)),l(r.seededRandom(s+1e4)),l(r.seededRandom(s+2e4))];for(let e=0;e<a.length;e++)i[e]=u[e%3];e.geometry.setAttribute("randomColor",new o(i,3))}export{i as a,s as b};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as t}from"./runtime-chunk-
|
|
1
|
+
import{d as t}from"./runtime-chunk-QU4YWWPM.js";import{a as s,b as a}from"./runtime-chunk-ALC6ISFF.js";import{Be as e,Cc as i,Ec as o,Fc as h,Se as r,Ue as d,Ve as n,ye as c}from"./runtime-chunk-BVVSZMXD.js";var l=class extends(s(d)){constructor(t,s=15,a=10066329){super(t,s,a),this.object=t,this.added=!1,this.name=`DirectionalLightHelper: ${t.uuid}`}raycast(t,s){a(this.object,l.geometryHelper,t,s)}},p=class extends(t(e,l)){constructor(t,s,a){super(),this.super_Entity(t,s),this.castShadow=!0,this.shadow.mapSize.width=2048,this.shadow.mapSize.height=2048,this.shadow.normalBias=1,this.layers.enable(3);let e=this.shadow.camera;e.top=1250,e.bottom=-1250,e.right=1250,e.left=-1250,e.near=-1e4,e.far=2500;let i=new n(this.shadow.camera);i.visible=!1,this.gizmos.shadowmap=i}update(){this.shadow.camera.updateProjectionMatrix();for(let t in this.gizmos){let s=this.gizmos[t];s instanceof n&&s.update()}}updateMatrixWorld(t){super.updateMatrixWorld(t),this.objectHelper&&this.objectHelper.update()}updateState(t,s){this.updateState_Light(t,s);let a=void 0!==t.depth&&t.depth!==this.shadow.camera.far||void 0!==t.size&&t.size/2!==this.shadow.camera.right;void 0!==t.size&&function(t,s){t.shadow.camera.right=s/2,t.shadow.camera.left=-s/2,t.shadow.camera.top=s/2,t.shadow.camera.bottom=-s/2,t.shadow.needsUpdate=!0}(this,t.size),void 0!==t.shadowRadius&&(this.shadow.radius=t.shadowRadius),void 0!==t.shadowResolution&&(this.shadow.mapSize.set(t.shadowResolution,t.shadowResolution),this.shadow.map&&(this.shadow.map.dispose(),this.shadow.map=null)),void 0!==t.penumbraSize&&s.scene.markPenumbraSizeDirty(),a&&this.update()}},m=class extends(s(r)){constructor(t,s=6710886){super(t,s),this.object=t,this.matrix=t.matrixWorld,this.name=`SpotLightHelper: ${t.uuid}`}raycast(t,s){a(this.object,m.geometryHelper,t,s)}update(){if(void 0!==this.object){let t=m._vector,s=this.object.distance?this.object.distance:1e3,a=s*Math.tan(this.object.angle);this.cone.scale.set(a,a,s),t.setFromMatrixPosition(this.object.target.matrixWorld),this.cone.lookAt(t);let e=void 0!==this.color?this.color:this.light.color;if(this.cone.material instanceof Array)for(let t=0,s=this.cone.material.length;t<s;t++)this.cone.material[t].color.set(e);else this.cone.material.color.set(e)}}},u=m;u._vector=new h;var w=new h,b=new h,g=new o,v=class extends(t(c,u)){constructor(t,s,a){super(),this.super_Entity(t,s),this.castShadow=!0,this.shadow.mapSize.width=1024,this.shadow.mapSize.height=1024,this.shadow.normalBias=1,this.layers.enable(3);let e=this.shadow.camera;e.fov=2*i.RAD2DEG*this.angle,e.aspect=1,e.near=100,e.far=2500;let o=new n(this.shadow.camera);o.visible=!1,this.gizmos.shadowmap=o,this.update()}update(){this.shadow.camera.updateProjectionMatrix();for(let t in this.gizmos){let s=this.gizmos[t];s instanceof n&&s.update()}}updateMatrixWorld(t){super.updateMatrixWorld(t),b.setFromMatrixPosition(this.matrixWorld),g.setFromRotationMatrix(this.matrixWorld),w.copy(this.up).applyQuaternion(g).negate().multiplyScalar(this.distance),this.target.position.copy(b).add(w),this.target.updateMatrixWorld(),this.objectHelper&&this.objectHelper.update()}updateState(t,s){this.updateState_Light(t,s),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.angle&&(this.angle=t.angle),void 0!==t.penumbra&&(this.penumbra=t.penumbra),void 0!==t.shadowRadius&&(this.shadow.radius=t.shadowRadius),void 0!==t.penumbraSize&&s.scene.markPenumbraSizeDirty(),void 0!==t.shadowResolution&&(this.shadow.mapSize.set(t.shadowResolution,t.shadowResolution),this.shadow.map&&(this.shadow.map.dispose(),this.shadow.map=null))}};export{p as a,v as b};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ea as t}from"./runtime-chunk-
|
|
1
|
+
import{ea as t}from"./runtime-chunk-AAJG7OQA.js";import{Fc as e,Oc as r,jd as i}from"./runtime-chunk-BVVSZMXD.js";var s=new e,n=new r,a=new i,h=class extends t{constructor(t,e,r){super(t,e,r),this.data=e}get textGeometry(){return this.geometry}get charWidths(){return this.textGeometry.charWidths}get charCoords(){return this.textGeometry.charCoords}get wrappedText(){return this.textGeometry.wrappedText}get font(){return this.textGeometry.font}get initialOffsetY(){let t=this.dataPatched;return this.font?.getLineInitialOffsetY(this.lineHeight,this.wrappedText.length,"number"==typeof t.geometry.height?t.geometry.height:1,this.fontScale,t.geometry.verticalAlign)??0}get fontScale(){let t=this.dataPatched;return this.font?t.geometry.fontSize/this.font.unitsPerEm:1}get AD(){return Math.abs(this.ascender-this.descender)}get ascender(){return(this.font?.ascender??1)*this.fontScale}get descender(){return(this.font?.descender??1)*this.fontScale}get lineHeight(){let t=this.dataPatched;return t.geometry.fontSize*t.geometry.lineHeight}raycast(t,e){let{matrixWorld:r}=this;if(!isNaN(t.ray.origin.x)&&0!==this.scale.x&&0!==this.scale.y&&0!==this.scale.z&&(n.copy(r).invert(),a.copy(t.ray).applyMatrix4(n),a.intersectBox(this.singleBBox,s))){let i=s.applyMatrix4(r),n=t.ray.origin.distanceTo(i);e.push({distance:n,point:i.clone(),object:this})}}};export{h as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./runtime-chunk-
|
|
1
|
+
import{a as e}from"./runtime-chunk-4EH2XFYY.js";import{ea as t}from"./runtime-chunk-AAJG7OQA.js";import{h as a}from"./runtime-chunk-ABVRWCND.js";import{c as s,e as i,f as o}from"./runtime-chunk-2PT2WH66.js";import{b as r}from"./runtime-chunk-BPWKE4TV.js";import{Ca as n,v as d}from"./runtime-chunk-NMRQ6IV4.js";import{Fc as c}from"./runtime-chunk-BVVSZMXD.js";var l=new c;function u(e,t,s=!1){let i=[],c=a=>{let s=a.data;delete a.states,a.currentState=null,a.reversibleToState=null,a.currentTransitionEvent=null;for(let e of s.states){let t={...e.data};a.states||(a.states={}),a.states[e.id]=r.patch(s,t)}p(e.scene,a,null,t,void 0!==s.events.find(e=>"Follow"===e.data.type||"LookAt"===e.data.type)),f(e)};e.scene.traverse2D(c),e.traverseChildren(r=>{if(s&&(r.rigidBody?.setTranslation(r.position0,!0),r.rigidBody?.setRotation(r.rotation0,!0),r.rigidBody?.setLinvel(l,!0),r.rigidBody?.setAngvel(l,!0)),!a.is(r))return;let u=r.uuid,f=r.data;if(delete r.states,r.uuid===d)return;let m=!1;i.some(t=>e.scene.find(u)?.isDescendantOf(t))?m=!0:!0===f.physics?.fusedBody&&"dynamic"===f.physics.rigidBody&&i.push(u),r.data=f,r.currentState=null,r.reversibleToState=null,r.currentTransitionEvent=null,r.transitionState={settled:!0,state:null};for(let t of f.states){let a={...t.data};!0===e.data.globalPhysics.usePhysics&&f.physics&&("dynamic"===f.physics.rigidBody||m)&&(void 0!==t.data.position&&delete a.position,void 0!==t.data.rotation&&delete a.rotation,void 0!==t.data.hiddenMatrix&&delete a.hiddenMatrix),r.states||(r.states={}),r.states[t.id]=n.patch(f,a)}p(e.scene,r,null,t,void 0!==f.events.find(e=>"Follow"===e.data.type||"LookAt"===e.data.type)),o(r)&&r.frame&&(r.frame.traverse(e=>c(e)),r.uiCanvas?.applySize())}),f(e),e.frame&&(e.frame.traverse(e=>c(e)),e.uiCanvas?.applySize())}function f(e){e.traverseEntity(t=>{for(let a of t.data.events){let t=[];switch(a.data.type){case"Follow":case"MouseHover":case"Scroll":case"MouseDown":case"MouseUp":case"MousePress":case"KeyUp":case"KeyDown":case"KeyPress":case"Collision":t.push(...a.data.actions);break;case"GameControl":for(let e of Object.values(a.data.gameActions))t.push(...e);break;case"DragDrop":t.push(...a.data.dragDropActions.drag,...a.data.dragDropActions.drop);break;case"Conditional":t.push(...a.data.inActions,...a.data.outActions)}for(let a of t)if("Create"===a.data.type&&"Yes"===a.data.hideBase){let t=e.scene.find(a.data.object);t&&(t.visible=!1)}}})}function p(a,o,r,n,d=!1){if(a.markShadowsDirty(),o instanceof t&&!s(o)&&o.removeInteractionGeometry(n),i(o)?o.changeSelectedState(r,{shared:n},d):o.changeSelectedState(r,{scene:a,shared:n},d),o instanceof t&&o.updateGeometryGroupsIfNeeded(),o instanceof e&&o.updateCameraState(o.dataPatched,{scene:a,shared:n}),!i(o)){if(o.cloner){let e=!1;for(let t of o.cloner.children)t.playModeVisible=void 0,void 0!==t.transformOverride&&(t.transformOverride=void 0,e=!0);e&&a.addPendingUpdateCloner(o),o.cloner.syncInstanceMatrices()}o.updateVisible()}}export{u as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./runtime-chunk-
|
|
1
|
+
import{a as t}from"./runtime-chunk-XVKC3GTF.js";import{d as e}from"./runtime-chunk-ALC6ISFF.js";import{Sc as s}from"./runtime-chunk-BVVSZMXD.js";var r=class extends(e(s,t)){constructor(t,e,s){super(),this.super_Entity(t,e),this.context=s,this.objectHelper.update()}updateState(t,e){this.updateState_Entity(t,e)}};export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
G �ø�۵n��й�T ��7��������!��iDtCz5�y!:���o�t�̖%�p�q+/P1M|f��%*o��aŗ۴/Y��f��&�M7֖��|�L�
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,b as e}from"./runtime-chunk-
|
|
1
|
+
import{a as t,b as e}from"./runtime-chunk-ALC6ISFF.js";import{Ec as s,Fc as r,Sc as a,Xe as i}from"./runtime-chunk-BVVSZMXD.js";var o=new r(1,1,1),m=new r,d=new r,u=new s,c=class extends(t(i)){constructor(t,e=15){super(e),this.object=t,this.dummy=new a,this.object.updateMatrixWorld(),this.name=`EmptyObjectHelper: ${t.uuid}`,this.matrix=this.dummy.matrixWorld,this.matrixAutoUpdate=!1,this.object.isBone&&(this.visible=!1)}raycast(t,s){e(this.object,c.geometryHelper,t,s,!1,this.dummy)}update(){}updateMatrix(){}updateMatrixWorld(t){this.object.matrixWorld.decompose(m,u,d),this.matrix.compose(m,u,o),super.updateMatrixWorld(t)}updateWorldMatrix(t,e){}};export{c as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./runtime-chunk-
|
|
1
|
+
import{a as t}from"./runtime-chunk-XVKC3GTF.js";import{d as e}from"./runtime-chunk-ALC6ISFF.js";import{Sc as s}from"./runtime-chunk-BVVSZMXD.js";var r=class extends(e(s,t)){constructor(t,e){super(),this.super_Entity(t,e),this.objectHelper.update(),"Empty"===this.data.type&&(this.objectHelper.visible=!1)}updateState(t,e){this.updateState_Entity(t,e),"buffer"in t&&1===Object.keys(t).length&&e.scene.reloadSplats()}};export{r as a};
|
|
Binary file
|
|
Binary file
|