@splinetool/runtime 2.0.27 → 2.0.29

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.
Files changed (276) hide show
  1. package/build/{runtime-chunk-PXDY3IWO.js → runtime-chunk-3CAM53C5.js} +1 -1
  2. package/build/runtime-chunk-3CAM53C5.js.br +0 -0
  3. package/build/runtime-chunk-3CAM53C5.js.gz +0 -0
  4. package/build/{runtime-chunk-J362S5H7.js → runtime-chunk-3HD5JECA.js} +1 -1
  5. package/build/runtime-chunk-3HD5JECA.js.br +0 -0
  6. package/build/runtime-chunk-3HD5JECA.js.gz +0 -0
  7. package/build/{runtime-chunk-23H2UXOS.js → runtime-chunk-5CU7JBFG.js} +1 -1
  8. package/build/runtime-chunk-5CU7JBFG.js.br +0 -0
  9. package/build/runtime-chunk-5CU7JBFG.js.gz +0 -0
  10. package/build/{runtime-chunk-MJDYWOWK.js → runtime-chunk-6HFMYWRE.js} +1 -1
  11. package/build/runtime-chunk-6HFMYWRE.js.br +0 -0
  12. package/build/runtime-chunk-6HFMYWRE.js.gz +0 -0
  13. package/build/{runtime-chunk-QDF7PADZ.js → runtime-chunk-AX4LXRSA.js} +1 -1
  14. package/build/{runtime-chunk-QDF7PADZ.js.br → runtime-chunk-AX4LXRSA.js.br} +0 -0
  15. package/build/runtime-chunk-AX4LXRSA.js.gz +0 -0
  16. package/build/{runtime-chunk-TQNNI2FL.js → runtime-chunk-BN2Y3BL7.js} +1 -1
  17. package/build/runtime-chunk-BN2Y3BL7.js.br +0 -0
  18. package/build/runtime-chunk-BN2Y3BL7.js.gz +0 -0
  19. package/build/{runtime-chunk-IOF7TM7C.js → runtime-chunk-CEEPOL6R.js} +1 -1
  20. package/build/runtime-chunk-CEEPOL6R.js.br +0 -0
  21. package/build/runtime-chunk-CEEPOL6R.js.gz +0 -0
  22. package/build/{runtime-chunk-U6E6B4F2.js → runtime-chunk-DHLB7Q5N.js} +1 -1
  23. package/build/runtime-chunk-DHLB7Q5N.js.br +0 -0
  24. package/build/runtime-chunk-DHLB7Q5N.js.gz +0 -0
  25. package/build/{runtime-chunk-SY3NKCSI.js → runtime-chunk-DHNYAV3W.js} +1 -1
  26. package/build/runtime-chunk-DHNYAV3W.js.br +0 -0
  27. package/build/runtime-chunk-DHNYAV3W.js.gz +0 -0
  28. package/build/{runtime-chunk-S37K5VV5.js → runtime-chunk-EJBCTAJP.js} +1 -1
  29. package/build/runtime-chunk-EJBCTAJP.js.br +0 -0
  30. package/build/runtime-chunk-EJBCTAJP.js.gz +0 -0
  31. package/build/{runtime-chunk-6UJ5JOQP.js → runtime-chunk-I6IUXVAN.js} +1 -1
  32. package/build/runtime-chunk-I6IUXVAN.js.br +0 -0
  33. package/build/runtime-chunk-I6IUXVAN.js.gz +0 -0
  34. package/build/{runtime-chunk-26DBBUXP.js → runtime-chunk-JEEBN7WQ.js} +1 -1
  35. package/build/runtime-chunk-JEEBN7WQ.js.br +0 -0
  36. package/build/runtime-chunk-JEEBN7WQ.js.gz +0 -0
  37. package/build/{runtime-chunk-JXBURRB4.js → runtime-chunk-JTP6DQNB.js} +1 -1
  38. package/build/runtime-chunk-JTP6DQNB.js.br +0 -0
  39. package/build/runtime-chunk-JTP6DQNB.js.gz +0 -0
  40. package/build/{runtime-chunk-UGRMZ63N.js → runtime-chunk-KKETRDRM.js} +1 -1
  41. package/build/runtime-chunk-KKETRDRM.js.br +0 -0
  42. package/build/runtime-chunk-KKETRDRM.js.gz +0 -0
  43. package/build/{runtime-chunk-Z7QBR5P5.js → runtime-chunk-NKIYQOBY.js} +1 -1
  44. package/build/runtime-chunk-NKIYQOBY.js.br +0 -0
  45. package/build/runtime-chunk-NKIYQOBY.js.gz +0 -0
  46. package/build/{runtime-chunk-J7LRIDY2.js → runtime-chunk-OVMKHLP5.js} +1 -1
  47. package/build/runtime-chunk-OVMKHLP5.js.br +0 -0
  48. package/build/runtime-chunk-OVMKHLP5.js.gz +0 -0
  49. package/build/{runtime-chunk-ESSYLO5K.js → runtime-chunk-P6VBZBQU.js} +1 -1
  50. package/build/runtime-chunk-P6VBZBQU.js.br +0 -0
  51. package/build/runtime-chunk-P6VBZBQU.js.gz +0 -0
  52. package/build/{runtime-chunk-F6RDX4M2.js → runtime-chunk-PDK5SCFJ.js} +1 -1
  53. package/build/runtime-chunk-PDK5SCFJ.js.br +0 -0
  54. package/build/runtime-chunk-PDK5SCFJ.js.gz +0 -0
  55. package/build/runtime-chunk-QK2UOWAL.js +1 -0
  56. package/build/runtime-chunk-QK2UOWAL.js.br +0 -0
  57. package/build/runtime-chunk-QK2UOWAL.js.gz +0 -0
  58. package/build/{runtime-chunk-ZUNT2AWI.js → runtime-chunk-R5P6BMRA.js} +1 -1
  59. package/build/runtime-chunk-R5P6BMRA.js.br +0 -0
  60. package/build/runtime-chunk-R5P6BMRA.js.gz +0 -0
  61. package/build/{runtime-chunk-NBDV3A7D.js → runtime-chunk-RRS4VQGX.js} +1 -1
  62. package/build/{runtime-chunk-NBDV3A7D.js.br → runtime-chunk-RRS4VQGX.js.br} +0 -0
  63. package/build/runtime-chunk-RRS4VQGX.js.gz +0 -0
  64. package/build/{runtime-chunk-LQUI2XCJ.js → runtime-chunk-VLA3MAAC.js} +1 -1
  65. package/build/runtime-chunk-VLA3MAAC.js.br +0 -0
  66. package/build/runtime-chunk-VLA3MAAC.js.gz +0 -0
  67. package/build/{runtime-chunk-OD6QVEIF.js → runtime-chunk-X3EDJOPK.js} +1 -1
  68. package/build/runtime-chunk-X3EDJOPK.js.br +0 -0
  69. package/build/runtime-chunk-X3EDJOPK.js.gz +0 -0
  70. package/build/{runtime-chunk-SHOX6WJ3.js → runtime-chunk-XJGL2NEV.js} +1 -1
  71. package/build/runtime-chunk-XJGL2NEV.js.br +0 -0
  72. package/build/runtime-chunk-XJGL2NEV.js.gz +0 -0
  73. package/build/{runtime-chunk-SYSV3PRC.js → runtime-chunk-Z7XYQ727.js} +1 -1
  74. package/build/runtime-chunk-Z7XYQ727.js.br +0 -0
  75. package/build/runtime-chunk-Z7XYQ727.js.gz +0 -0
  76. package/build/{runtime-chunk-H5VZQLYA.js → runtime-chunk-ZENMVCM4.js} +1 -1
  77. package/build/runtime-chunk-ZENMVCM4.js.br +0 -0
  78. package/build/runtime-chunk-ZENMVCM4.js.gz +0 -0
  79. package/build/{runtime-classicRuntime-RMKRFJX7.js → runtime-classicRuntime-TS6J7VBJ.js} +1 -1
  80. package/build/runtime-classicRuntime-TS6J7VBJ.js.br +0 -0
  81. package/build/runtime-classicRuntime-TS6J7VBJ.js.gz +0 -0
  82. package/build/{runtime-cloners-XXEZRLPJ.js → runtime-cloners-3Q6OWXP4.js} +1 -1
  83. package/build/runtime-cloners-3Q6OWXP4.js.br +0 -0
  84. package/build/runtime-cloners-3Q6OWXP4.js.gz +0 -0
  85. package/build/{runtime-components-KLWPKJCD.js → runtime-components-UTK5NDJ6.js} +1 -1
  86. package/build/runtime-components-UTK5NDJ6.js.br +0 -0
  87. package/build/runtime-components-UTK5NDJ6.js.gz +0 -0
  88. package/build/runtime-conditional-PP2DVNTQ.js +1 -0
  89. package/build/runtime-conditional-PP2DVNTQ.js.br +0 -0
  90. package/build/runtime-conditional-PP2DVNTQ.js.gz +0 -0
  91. package/build/{runtime-createDestroy-OEWMNDJU.js → runtime-createDestroy-B3QSQPEH.js} +1 -1
  92. package/build/runtime-createDestroy-B3QSQPEH.js.br +0 -0
  93. package/build/runtime-createDestroy-B3QSQPEH.js.gz +0 -0
  94. package/build/{runtime-dragDrop-LKB22YGO.js → runtime-dragDrop-5FIDL7FP.js} +1 -1
  95. package/build/runtime-dragDrop-5FIDL7FP.js.br +0 -0
  96. package/build/runtime-dragDrop-5FIDL7FP.js.gz +0 -0
  97. package/build/{runtime-gameControls-24HTAYDT.js → runtime-gameControls-7EQGD7GZ.js} +1 -1
  98. package/build/runtime-gameControls-7EQGD7GZ.js.br +0 -0
  99. package/build/runtime-gameControls-7EQGD7GZ.js.gz +0 -0
  100. package/build/{runtime-hair-VKMXM2HN.js → runtime-hair-OPXSYWBC.js} +1 -1
  101. package/build/runtime-hair-OPXSYWBC.js.br +0 -0
  102. package/build/runtime-hair-OPXSYWBC.js.gz +0 -0
  103. package/build/{runtime-mergeStaticGeometries-LHKAYDJF.js → runtime-mergeStaticGeometries-O5YEJKML.js} +1 -1
  104. package/build/runtime-mergeStaticGeometries-O5YEJKML.js.br +0 -0
  105. package/build/runtime-mergeStaticGeometries-O5YEJKML.js.gz +0 -0
  106. package/build/{runtime-miscActions-2ZXULNTS.js → runtime-miscActions-H24I4JYC.js} +1 -1
  107. package/build/runtime-miscActions-H24I4JYC.js.br +0 -0
  108. package/build/runtime-miscActions-H24I4JYC.js.gz +0 -0
  109. package/build/{runtime-mouseHover-X3SUIUNE.js → runtime-mouseHover-IQYTD2X3.js} +1 -1
  110. package/build/runtime-mouseHover-IQYTD2X3.js.br +0 -0
  111. package/build/runtime-mouseHover-IQYTD2X3.js.gz +0 -0
  112. package/build/{runtime-particles-AHP5WNPJ.js → runtime-particles-3GEA3AZ6.js} +1 -1
  113. package/build/runtime-particles-3GEA3AZ6.js.br +0 -0
  114. package/build/runtime-particles-3GEA3AZ6.js.gz +0 -0
  115. package/build/{runtime-paths-B4YOK3H7.js → runtime-paths-IAOKJVR3.js} +1 -1
  116. package/build/runtime-paths-IAOKJVR3.js.br +0 -0
  117. package/build/runtime-paths-IAOKJVR3.js.gz +0 -0
  118. package/build/{runtime-resize-6YQJXUV3.js → runtime-resize-VSR56KJV.js} +1 -1
  119. package/build/runtime-resize-VSR56KJV.js.br +0 -0
  120. package/build/runtime-resize-VSR56KJV.js.gz +0 -0
  121. package/build/{runtime-sceneTransition-YABGBVI2.js → runtime-sceneTransition-DIGID53S.js} +1 -1
  122. package/build/runtime-sceneTransition-DIGID53S.js.br +0 -0
  123. package/build/runtime-sceneTransition-DIGID53S.js.gz +0 -0
  124. package/build/{runtime-scroll-NLQD3ZBC.js → runtime-scroll-NX44O32S.js} +1 -1
  125. package/build/runtime-scroll-NX44O32S.js.br +0 -0
  126. package/build/runtime-scroll-NX44O32S.js.gz +0 -0
  127. package/build/runtime-shapeBlends-VU2PO6LX.js +1 -0
  128. package/build/runtime-shapeBlends-VU2PO6LX.js.br +0 -0
  129. package/build/runtime-shapeBlends-VU2PO6LX.js.gz +0 -0
  130. package/build/{runtime-text-VFKGAFAH.js → runtime-text-IQ3CQLGC.js} +1 -1
  131. package/build/runtime-text-IQ3CQLGC.js.br +0 -0
  132. package/build/runtime-text-IQ3CQLGC.js.gz +0 -0
  133. package/build/{runtime-textInputs-2RUIT3YF.js → runtime-textInputs-SYMORHXB.js} +1 -1
  134. package/build/runtime-textInputs-SYMORHXB.js.br +0 -0
  135. package/build/runtime-textInputs-SYMORHXB.js.gz +0 -0
  136. package/build/{runtime-timeline-2JDILE3C.js → runtime-timeline-S4UWA6PN.js} +1 -1
  137. package/build/runtime-timeline-S4UWA6PN.js.br +0 -0
  138. package/build/runtime-timeline-S4UWA6PN.js.gz +0 -0
  139. package/build/{runtime-tracking-E3EU2NCE.js → runtime-tracking-UEGT6JVD.js} +1 -1
  140. package/build/runtime-tracking-UEGT6JVD.js.br +0 -0
  141. package/build/runtime-tracking-UEGT6JVD.js.gz +0 -0
  142. package/build/{runtime-transitions-5Q3K5NPG.js → runtime-transitions-TJD4RO25.js} +1 -1
  143. package/build/runtime-transitions-TJD4RO25.js.br +0 -0
  144. package/build/runtime-transitions-TJD4RO25.js.gz +0 -0
  145. package/build/{runtime-ui2d-2M3VG4T4.js → runtime-ui2d-H6OBQZSA.js} +1 -1
  146. package/build/runtime-ui2d-H6OBQZSA.js.br +0 -0
  147. package/build/runtime-ui2d-H6OBQZSA.js.gz +0 -0
  148. package/build/{runtime-vectorShapes-HBC6LEXK.js → runtime-vectorShapes-TCYQOODF.js} +1 -1
  149. package/build/runtime-vectorShapes-TCYQOODF.js.br +0 -0
  150. package/build/runtime-vectorShapes-TCYQOODF.js.gz +0 -0
  151. package/build/{runtime-webgpu-CNMVROCO.js → runtime-webgpu-N5ZXPMC6.js} +1 -1
  152. package/build/runtime-webgpu-N5ZXPMC6.js.br +0 -0
  153. package/build/runtime-webgpu-N5ZXPMC6.js.gz +0 -0
  154. package/build/runtime.cjs +287 -287
  155. package/build/runtime.js +1 -1
  156. package/build/runtime.js.br +0 -0
  157. package/build/runtime.js.gz +0 -0
  158. package/build/runtime.standalone.js +1 -1
  159. package/build/runtime.standalone.js.br +0 -0
  160. package/build/runtime.standalone.js.gz +0 -0
  161. package/build/runtime.standalone.webgl.js +1 -1
  162. package/build/runtime.standalone.webgl.js.br +0 -0
  163. package/build/runtime.standalone.webgl.js.gz +0 -0
  164. package/build/runtime.standalone.webgpu.js +1 -1
  165. package/build/runtime.standalone.webgpu.js.br +0 -0
  166. package/build/runtime.standalone.webgpu.js.gz +0 -0
  167. package/build/runtime.standalone.webgpu.micro.js +1 -1
  168. package/build/runtime.standalone.webgpu.micro.js.br +0 -0
  169. package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
  170. package/build/runtime.standalone.webgpu.min.js +1 -1
  171. package/build/runtime.standalone.webgpu.min.js.br +0 -0
  172. package/build/runtime.standalone.webgpu.min.js.gz +0 -0
  173. package/package.json +2 -2
  174. package/build/runtime-chunk-23H2UXOS.js.br +0 -0
  175. package/build/runtime-chunk-23H2UXOS.js.gz +0 -0
  176. package/build/runtime-chunk-26DBBUXP.js.br +0 -0
  177. package/build/runtime-chunk-26DBBUXP.js.gz +0 -0
  178. package/build/runtime-chunk-6UJ5JOQP.js.br +0 -0
  179. package/build/runtime-chunk-6UJ5JOQP.js.gz +0 -0
  180. package/build/runtime-chunk-ESSYLO5K.js.br +0 -0
  181. package/build/runtime-chunk-ESSYLO5K.js.gz +0 -0
  182. package/build/runtime-chunk-F6RDX4M2.js.br +0 -0
  183. package/build/runtime-chunk-F6RDX4M2.js.gz +0 -0
  184. package/build/runtime-chunk-H5VZQLYA.js.br +0 -0
  185. package/build/runtime-chunk-H5VZQLYA.js.gz +0 -0
  186. package/build/runtime-chunk-IOF7TM7C.js.br +0 -0
  187. package/build/runtime-chunk-IOF7TM7C.js.gz +0 -0
  188. package/build/runtime-chunk-J362S5H7.js.br +0 -0
  189. package/build/runtime-chunk-J362S5H7.js.gz +0 -0
  190. package/build/runtime-chunk-J7LRIDY2.js.br +0 -0
  191. package/build/runtime-chunk-J7LRIDY2.js.gz +0 -0
  192. package/build/runtime-chunk-JXBURRB4.js.br +0 -0
  193. package/build/runtime-chunk-JXBURRB4.js.gz +0 -0
  194. package/build/runtime-chunk-LQUI2XCJ.js.br +0 -0
  195. package/build/runtime-chunk-LQUI2XCJ.js.gz +0 -0
  196. package/build/runtime-chunk-MJDYWOWK.js.br +0 -0
  197. package/build/runtime-chunk-MJDYWOWK.js.gz +0 -0
  198. package/build/runtime-chunk-NBDV3A7D.js.gz +0 -0
  199. package/build/runtime-chunk-OD6QVEIF.js.br +0 -0
  200. package/build/runtime-chunk-OD6QVEIF.js.gz +0 -0
  201. package/build/runtime-chunk-PXDY3IWO.js.br +0 -0
  202. package/build/runtime-chunk-PXDY3IWO.js.gz +0 -0
  203. package/build/runtime-chunk-QDF7PADZ.js.gz +0 -0
  204. package/build/runtime-chunk-RBSYXNI5.js +0 -1
  205. package/build/runtime-chunk-RBSYXNI5.js.br +0 -0
  206. package/build/runtime-chunk-RBSYXNI5.js.gz +0 -0
  207. package/build/runtime-chunk-S37K5VV5.js.br +0 -0
  208. package/build/runtime-chunk-S37K5VV5.js.gz +0 -0
  209. package/build/runtime-chunk-SHOX6WJ3.js.br +0 -0
  210. package/build/runtime-chunk-SHOX6WJ3.js.gz +0 -0
  211. package/build/runtime-chunk-SY3NKCSI.js.br +0 -0
  212. package/build/runtime-chunk-SY3NKCSI.js.gz +0 -0
  213. package/build/runtime-chunk-SYSV3PRC.js.br +0 -0
  214. package/build/runtime-chunk-SYSV3PRC.js.gz +0 -0
  215. package/build/runtime-chunk-TQNNI2FL.js.br +0 -0
  216. package/build/runtime-chunk-TQNNI2FL.js.gz +0 -0
  217. package/build/runtime-chunk-U6E6B4F2.js.br +0 -0
  218. package/build/runtime-chunk-U6E6B4F2.js.gz +0 -0
  219. package/build/runtime-chunk-UGRMZ63N.js.br +0 -0
  220. package/build/runtime-chunk-UGRMZ63N.js.gz +0 -0
  221. package/build/runtime-chunk-Z7QBR5P5.js.br +0 -0
  222. package/build/runtime-chunk-Z7QBR5P5.js.gz +0 -0
  223. package/build/runtime-chunk-ZUNT2AWI.js.br +0 -0
  224. package/build/runtime-chunk-ZUNT2AWI.js.gz +0 -0
  225. package/build/runtime-classicRuntime-RMKRFJX7.js.br +0 -0
  226. package/build/runtime-classicRuntime-RMKRFJX7.js.gz +0 -0
  227. package/build/runtime-cloners-XXEZRLPJ.js.br +0 -0
  228. package/build/runtime-cloners-XXEZRLPJ.js.gz +0 -0
  229. package/build/runtime-components-KLWPKJCD.js.br +0 -0
  230. package/build/runtime-components-KLWPKJCD.js.gz +0 -0
  231. package/build/runtime-conditional-CEO237EN.js +0 -1
  232. package/build/runtime-conditional-CEO237EN.js.br +0 -0
  233. package/build/runtime-conditional-CEO237EN.js.gz +0 -0
  234. package/build/runtime-createDestroy-OEWMNDJU.js.br +0 -0
  235. package/build/runtime-createDestroy-OEWMNDJU.js.gz +0 -0
  236. package/build/runtime-dragDrop-LKB22YGO.js.br +0 -0
  237. package/build/runtime-dragDrop-LKB22YGO.js.gz +0 -0
  238. package/build/runtime-gameControls-24HTAYDT.js.br +0 -0
  239. package/build/runtime-gameControls-24HTAYDT.js.gz +0 -0
  240. package/build/runtime-hair-VKMXM2HN.js.br +0 -3
  241. package/build/runtime-hair-VKMXM2HN.js.gz +0 -0
  242. package/build/runtime-mergeStaticGeometries-LHKAYDJF.js.br +0 -0
  243. package/build/runtime-mergeStaticGeometries-LHKAYDJF.js.gz +0 -0
  244. package/build/runtime-miscActions-2ZXULNTS.js.br +0 -0
  245. package/build/runtime-miscActions-2ZXULNTS.js.gz +0 -0
  246. package/build/runtime-mouseHover-X3SUIUNE.js.br +0 -0
  247. package/build/runtime-mouseHover-X3SUIUNE.js.gz +0 -0
  248. package/build/runtime-particles-AHP5WNPJ.js.br +0 -0
  249. package/build/runtime-particles-AHP5WNPJ.js.gz +0 -0
  250. package/build/runtime-paths-B4YOK3H7.js.br +0 -0
  251. package/build/runtime-paths-B4YOK3H7.js.gz +0 -0
  252. package/build/runtime-resize-6YQJXUV3.js.br +0 -0
  253. package/build/runtime-resize-6YQJXUV3.js.gz +0 -0
  254. package/build/runtime-sceneTransition-YABGBVI2.js.br +0 -0
  255. package/build/runtime-sceneTransition-YABGBVI2.js.gz +0 -0
  256. package/build/runtime-scroll-NLQD3ZBC.js.br +0 -0
  257. package/build/runtime-scroll-NLQD3ZBC.js.gz +0 -0
  258. package/build/runtime-shapeBlends-H2MWUFZ2.js +0 -1
  259. package/build/runtime-shapeBlends-H2MWUFZ2.js.br +0 -0
  260. package/build/runtime-shapeBlends-H2MWUFZ2.js.gz +0 -0
  261. package/build/runtime-text-VFKGAFAH.js.br +0 -0
  262. package/build/runtime-text-VFKGAFAH.js.gz +0 -0
  263. package/build/runtime-textInputs-2RUIT3YF.js.br +0 -0
  264. package/build/runtime-textInputs-2RUIT3YF.js.gz +0 -0
  265. package/build/runtime-timeline-2JDILE3C.js.br +0 -0
  266. package/build/runtime-timeline-2JDILE3C.js.gz +0 -0
  267. package/build/runtime-tracking-E3EU2NCE.js.br +0 -0
  268. package/build/runtime-tracking-E3EU2NCE.js.gz +0 -0
  269. package/build/runtime-transitions-5Q3K5NPG.js.br +0 -0
  270. package/build/runtime-transitions-5Q3K5NPG.js.gz +0 -0
  271. package/build/runtime-ui2d-2M3VG4T4.js.br +0 -0
  272. package/build/runtime-ui2d-2M3VG4T4.js.gz +0 -0
  273. package/build/runtime-vectorShapes-HBC6LEXK.js.br +0 -0
  274. package/build/runtime-vectorShapes-HBC6LEXK.js.gz +0 -0
  275. package/build/runtime-webgpu-CNMVROCO.js.br +0 -0
  276. package/build/runtime-webgpu-CNMVROCO.js.gz +0 -0
@@ -1 +1 @@
1
- import{a as t,b as e,d as r}from"./runtime-chunk-26DBBUXP.js";import{f as i}from"./runtime-chunk-RTLL6WIB.js";import{J as a,xa as o}from"./runtime-chunk-AIWIOLR6.js";import{Ae as s,Ec as n,Fc as p,Oc as h,Rc as c,Tc as m,bd as f,dd as u,ud as d,wd as l,we as g,xe as v}from"./runtime-chunk-BVVSZMXD.js";var C=new p,j=new g,T=class extends l{constructor(t){let e=new u,r=new d({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],a=[],o={},s=new m(15711266),n=new m(15711266),p=new m(2857471);function h(t,e,r){c(t,r),c(e,r)}function c(t,e){i.push(0,0,0),a.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(i.length/3-1)}h("n1","n2",s),h("n2","n4",s),h("n4","n3",s),h("n3","n1",s),h("f1","f2",s),h("f2","f4",s),h("f4","f3",s),h("f3","f1",s),h("n1","f1",s),h("n2","f2",s),h("n3","f3",s),h("n4","f4",s),h("p","n1",n),h("p","n2",n),h("p","n3",n),h("p","n4",n),h("u1","u2",p),h("u2","u3",p),h("u3","u1",p),e.setAttribute("position",new f(i,3)),e.setAttribute("color",new f(a,3)),super(e,r),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let t=this.geometry,e=this.pointMap;j.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;y("n1",e,t,j,-1,-1,r),y("n2",e,t,j,1,-1,r),y("n3",e,t,j,-1,1,r),y("n4",e,t,j,1,1,r);let i=r;y("f1",e,t,j,-1,-1,i),y("f2",e,t,j,1,-1,i),y("f3",e,t,j,-1,1,i),y("f4",e,t,j,1,1,i);let a=i;y("u1",e,t,j,.35,1.1,a),y("u2",e,t,j,-.35,1.1,a),y("u3",e,t,j,0,1.55,a),t.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function y(t,e,r,i,a,o,s){C.set(a,o,s).unproject(i);let n=e[t];if(void 0!==n){let t=r.getAttribute("position");for(let e=0,r=n.length;e<r;e++)t.setXYZ(n[e],C.x,C.y,C.z)}}var w=class extends(t(T)){constructor(t){super(t),this.object=t,this.name=`CombinedCameraHelper: ${t.uuid}`}updateMatrixWorld(t){super.updateMatrixWorld(t),this.updateTarget()}updateTarget(){let t=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(t)}raycast(t,r){e(this.object,this.geometry,t,r,!0)}};function P(t){return 1-Math.pow(1-t,3)}var x=new p,b=new p,_=new n,M=new p,O=new p,F=new p,A=class extends(r(g,w)){constructor(t="",e={...o.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=a.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let t=this._projectionTransition;if(void 0===t)return;if(this.disposed)return void this._endProjectionTransition();t.raf=requestAnimationFrame(this._tickProjectionTransition);let e=A.projectionTransitionRequestRender??t.requestRender;this.updateProjectionMatrix(),e?.()},this.super_Entity(t,e),this.previousProjectionMatrix=new h,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new s(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new v(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(t){let e=A.projectionTransitionsEnabled;A.projectionTransitionsEnabled=!1;try{return t()}finally{A.projectionTransitionsEnabled=e}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(t){this.perspCamera.fov=t}get fov(){return this.perspCamera.fov}setNear(t,e){"PerspectiveCamera"===t?this.perspCamera.near=e:this.orthoCamera.near=e}setZoom(t,e){e>=0&&("PerspectiveCamera"===t?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}set cameraType(t){"PerspectiveCamera"===t?this.toPerspective():"OrthographicCamera"===t&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(t){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=t:this.orthoCamera.near=t}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(t){t>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}lookAt(t,e,r){"number"==typeof t&&(t=new p(t,e,r)),super.lookAt(t),this.getWorldPosition(x),this.targetOffset=x.distanceTo(t)}getTarget(t=new p){return this.getWorldDirection(b),this.getWorldPosition(x),b.multiplyScalar(this.targetOffset),t.copy(x).add(b),t}getDistanceToTarget(){let t=this.getTarget();return this.getWorldPosition(x),x.distanceTo(t)}updateUp(){this.getWorldQuaternion(_),M.set(0,0,1).applyQuaternion(_),O.copy(c.DEFAULT_UP),this.isUpVectorFlipped&&O.negate(),O.applyQuaternion(_),F.copy(c.DEFAULT_UP).projectOnPlane(M),this.angleOffsetFromUp=F.angleTo(O),this.angleOffsetFromUp*=F.cross(O).dot(M)>=0?1:-1}updateTransformState(t,e){let r=super.updateTransformState(t,e);return void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(t){let e=t.getWorldPosition(new p),r=t.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:e.clone().add(r),target:e}}getViewToTarget(t){let e=this.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:t.clone().sub(e),target:t}}getViewToObject(t){let e=new p;return t.getWorldPosition(e),this.getViewToTarget(e)}setViewplaneSize(t,e,r=!1){if(this.aspect=t/e,r){let r=t>e?this.aspect:1,i=t>e?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-t,this.right=.5*t,this.top=.5*e,this.bottom=.5*-e;this.updateProjectionMatrix()}copyViewPlaneSize(t){this.aspect=t.aspect,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let t=this._projectionTransition;if(void 0===t)return 1;let e=(performance.now()-t.start)/t.duration;return e>=1?1:e<=0?0:P(e)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return A.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=A.projectionTransitionMinAgeMs}_beginProjectionTransition(t){let e=this._projectionTransition;void 0===e&&(e={from:new h,blend:new h,blendInverse:new h,start:0,duration:A.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:t},this._projectionTransition=e),e.from.copy(this.projectionMatrix),e.start=performance.now(),e.duration=A.projectionTransitionDuration,e.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,t&&(e.requestRender=t),0!==e.raf&&cancelAnimationFrame(e.raf),e.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;let e=(performance.now()-t.start)/t.duration;if(e>=1)return void this._endProjectionTransition();let r=P(e),i=t.from.elements,a=this._activeSubCamera.projectionMatrix.elements,o=t.blend.elements,s=t.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*s),p=r*n/(r*n+(1-r)*Math.max(1e-6,a[15]-a[11]*s));for(let t=0;t<16;t++)o[t]=i[t]+(a[t]-i[t])*p;t.blendInverse.copy(t.blend).invert(),this.projectionMatrix=t.blend,this.projectionMatrixInverse=t.blendInverse}_endProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;0!==t.raf&&cancelAnimationFrame(t.raf),this._projectionTransition=void 0;let e=this._activeSubCamera;this.projectionMatrix=e.projectionMatrix,this.projectionMatrixInverse=e.projectionMatrixInverse}_syncProjectionTransition(t){let e=t._projectionTransition;if(void 0===e)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new h,blend:new h,blendInverse:new h,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(e.from),r.start=e.start,r.duration=e.duration,r.referenceDepth=e.referenceDepth,this._applyProjectionTransition()}setFocalLength(t){this.perspCamera.setFocalLength(t),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(t,e,r,i,a,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(t,e,r,i,a,o):this.orthoCamera.setViewOffset(t,e,r,i,a,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(t,e){return super.copy(t,e),this.parent=t.parent,this.orthoCamera.copy(t.orthoCamera),this.perspCamera.copy(t.perspCamera),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.far=t.far,this.view=null===t.view?null:Object.assign({},t.view),this._cameraType=t._cameraType,this.aspect=t.aspect,this.fov=t.fov,this.focus=t.focus,this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this.targetOffset=a.sanitizeTargetOffset(t.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(t),this}toCameraState(t=[]){let e={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return i(e,t)}updateCameraSubtype(t,e){let r="perspective"===t?"PerspectiveCamera":"OrthographicCamera";void 0!==e.zoom&&this.setZoom(r,e.zoom),void 0!==e.near&&this.setNear(r,e.near),void 0!==e.fov&&"PerspectiveCamera"===r&&(this.fov=e.fov)}updateState(t,e){this.updateCameraState(t,e)}updateCameraState(t,e){this.updateState_Entity(t,e),void 0!==t.far&&(this.far=t.far),void 0!==t.orthographic&&this.updateCameraSubtype("orthographic",t.orthographic),void 0!==t.perspective&&this.updateCameraSubtype("perspective",t.perspective),void 0!==t.type&&(t.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(e?.shared.requestRender),this.cameraType=t.type),void 0!==t.up&&this.up.fromArray(t.up.map(t=>"number"==typeof t?t:0)),void 0!==t.targetOffset&&(this.targetOffset=a.sanitizeTargetOffset(t.targetOffset)),void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(t,e,r){super.updateByPatchedOp(t,e,r),1===t.path.length&&0===t.type&&this.updateCameraSubtype(t.path[0],t.props)}toState(t){return{...super.toState(t),...this.toCameraState(t),type:this.cameraType}}},V=A;V.projectionTransitionsEnabled=!1,V.projectionTransitionDuration=350,V.projectionTransitionMinAgeMs=1e3;export{V as a};
1
+ import{a as t,b as e,d as r}from"./runtime-chunk-JEEBN7WQ.js";import{f as i}from"./runtime-chunk-RTLL6WIB.js";import{J as a,xa as o}from"./runtime-chunk-AIWIOLR6.js";import{Ae as s,Ec as n,Fc as p,Oc as h,Rc as c,Tc as m,bd as f,dd as u,ud as d,wd as l,we as g,xe as v}from"./runtime-chunk-BVVSZMXD.js";var C=new p,j=new g,T=class extends l{constructor(t){let e=new u,r=new d({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],a=[],o={},s=new m(15711266),n=new m(15711266),p=new m(2857471);function h(t,e,r){c(t,r),c(e,r)}function c(t,e){i.push(0,0,0),a.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(i.length/3-1)}h("n1","n2",s),h("n2","n4",s),h("n4","n3",s),h("n3","n1",s),h("f1","f2",s),h("f2","f4",s),h("f4","f3",s),h("f3","f1",s),h("n1","f1",s),h("n2","f2",s),h("n3","f3",s),h("n4","f4",s),h("p","n1",n),h("p","n2",n),h("p","n3",n),h("p","n4",n),h("u1","u2",p),h("u2","u3",p),h("u3","u1",p),e.setAttribute("position",new f(i,3)),e.setAttribute("color",new f(a,3)),super(e,r),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let t=this.geometry,e=this.pointMap;j.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;y("n1",e,t,j,-1,-1,r),y("n2",e,t,j,1,-1,r),y("n3",e,t,j,-1,1,r),y("n4",e,t,j,1,1,r);let i=r;y("f1",e,t,j,-1,-1,i),y("f2",e,t,j,1,-1,i),y("f3",e,t,j,-1,1,i),y("f4",e,t,j,1,1,i);let a=i;y("u1",e,t,j,.35,1.1,a),y("u2",e,t,j,-.35,1.1,a),y("u3",e,t,j,0,1.55,a),t.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function y(t,e,r,i,a,o,s){C.set(a,o,s).unproject(i);let n=e[t];if(void 0!==n){let t=r.getAttribute("position");for(let e=0,r=n.length;e<r;e++)t.setXYZ(n[e],C.x,C.y,C.z)}}var w=class extends(t(T)){constructor(t){super(t),this.object=t,this.name=`CombinedCameraHelper: ${t.uuid}`}updateMatrixWorld(t){super.updateMatrixWorld(t),this.updateTarget()}updateTarget(){let t=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(t)}raycast(t,r){e(this.object,this.geometry,t,r,!0)}};function P(t){return 1-Math.pow(1-t,3)}var x=new p,b=new p,_=new n,M=new p,O=new p,F=new p,A=class extends(r(g,w)){constructor(t="",e={...o.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=a.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let t=this._projectionTransition;if(void 0===t)return;if(this.disposed)return void this._endProjectionTransition();t.raf=requestAnimationFrame(this._tickProjectionTransition);let e=A.projectionTransitionRequestRender??t.requestRender;this.updateProjectionMatrix(),e?.()},this.super_Entity(t,e),this.previousProjectionMatrix=new h,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new s(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new v(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(t){let e=A.projectionTransitionsEnabled;A.projectionTransitionsEnabled=!1;try{return t()}finally{A.projectionTransitionsEnabled=e}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(t){this.perspCamera.fov=t}get fov(){return this.perspCamera.fov}setNear(t,e){"PerspectiveCamera"===t?this.perspCamera.near=e:this.orthoCamera.near=e}setZoom(t,e){e>=0&&("PerspectiveCamera"===t?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}set cameraType(t){"PerspectiveCamera"===t?this.toPerspective():"OrthographicCamera"===t&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(t){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=t:this.orthoCamera.near=t}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(t){t>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}lookAt(t,e,r){"number"==typeof t&&(t=new p(t,e,r)),super.lookAt(t),this.getWorldPosition(x),this.targetOffset=x.distanceTo(t)}getTarget(t=new p){return this.getWorldDirection(b),this.getWorldPosition(x),b.multiplyScalar(this.targetOffset),t.copy(x).add(b),t}getDistanceToTarget(){let t=this.getTarget();return this.getWorldPosition(x),x.distanceTo(t)}updateUp(){this.getWorldQuaternion(_),M.set(0,0,1).applyQuaternion(_),O.copy(c.DEFAULT_UP),this.isUpVectorFlipped&&O.negate(),O.applyQuaternion(_),F.copy(c.DEFAULT_UP).projectOnPlane(M),this.angleOffsetFromUp=F.angleTo(O),this.angleOffsetFromUp*=F.cross(O).dot(M)>=0?1:-1}updateTransformState(t,e){let r=super.updateTransformState(t,e);return void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(t){let e=t.getWorldPosition(new p),r=t.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:e.clone().add(r),target:e}}getViewToTarget(t){let e=this.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:t.clone().sub(e),target:t}}getViewToObject(t){let e=new p;return t.getWorldPosition(e),this.getViewToTarget(e)}setViewplaneSize(t,e,r=!1){if(this.aspect=t/e,r){let r=t>e?this.aspect:1,i=t>e?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-t,this.right=.5*t,this.top=.5*e,this.bottom=.5*-e;this.updateProjectionMatrix()}copyViewPlaneSize(t){this.aspect=t.aspect,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let t=this._projectionTransition;if(void 0===t)return 1;let e=(performance.now()-t.start)/t.duration;return e>=1?1:e<=0?0:P(e)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return A.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=A.projectionTransitionMinAgeMs}_beginProjectionTransition(t){let e=this._projectionTransition;void 0===e&&(e={from:new h,blend:new h,blendInverse:new h,start:0,duration:A.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:t},this._projectionTransition=e),e.from.copy(this.projectionMatrix),e.start=performance.now(),e.duration=A.projectionTransitionDuration,e.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,t&&(e.requestRender=t),0!==e.raf&&cancelAnimationFrame(e.raf),e.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;let e=(performance.now()-t.start)/t.duration;if(e>=1)return void this._endProjectionTransition();let r=P(e),i=t.from.elements,a=this._activeSubCamera.projectionMatrix.elements,o=t.blend.elements,s=t.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*s),p=r*n/(r*n+(1-r)*Math.max(1e-6,a[15]-a[11]*s));for(let t=0;t<16;t++)o[t]=i[t]+(a[t]-i[t])*p;t.blendInverse.copy(t.blend).invert(),this.projectionMatrix=t.blend,this.projectionMatrixInverse=t.blendInverse}_endProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;0!==t.raf&&cancelAnimationFrame(t.raf),this._projectionTransition=void 0;let e=this._activeSubCamera;this.projectionMatrix=e.projectionMatrix,this.projectionMatrixInverse=e.projectionMatrixInverse}_syncProjectionTransition(t){let e=t._projectionTransition;if(void 0===e)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new h,blend:new h,blendInverse:new h,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(e.from),r.start=e.start,r.duration=e.duration,r.referenceDepth=e.referenceDepth,this._applyProjectionTransition()}setFocalLength(t){this.perspCamera.setFocalLength(t),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(t,e,r,i,a,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(t,e,r,i,a,o):this.orthoCamera.setViewOffset(t,e,r,i,a,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(t,e){return super.copy(t,e),this.parent=t.parent,this.orthoCamera.copy(t.orthoCamera),this.perspCamera.copy(t.perspCamera),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.far=t.far,this.view=null===t.view?null:Object.assign({},t.view),this._cameraType=t._cameraType,this.aspect=t.aspect,this.fov=t.fov,this.focus=t.focus,this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this.targetOffset=a.sanitizeTargetOffset(t.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(t),this}toCameraState(t=[]){let e={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return i(e,t)}updateCameraSubtype(t,e){let r="perspective"===t?"PerspectiveCamera":"OrthographicCamera";void 0!==e.zoom&&this.setZoom(r,e.zoom),void 0!==e.near&&this.setNear(r,e.near),void 0!==e.fov&&"PerspectiveCamera"===r&&(this.fov=e.fov)}updateState(t,e){this.updateCameraState(t,e)}updateCameraState(t,e){this.updateState_Entity(t,e),void 0!==t.far&&(this.far=t.far),void 0!==t.orthographic&&this.updateCameraSubtype("orthographic",t.orthographic),void 0!==t.perspective&&this.updateCameraSubtype("perspective",t.perspective),void 0!==t.type&&(t.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(e?.shared.requestRender),this.cameraType=t.type),void 0!==t.up&&this.up.fromArray(t.up.map(t=>"number"==typeof t?t:0)),void 0!==t.targetOffset&&(this.targetOffset=a.sanitizeTargetOffset(t.targetOffset)),void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(t,e,r){super.updateByPatchedOp(t,e,r),1===t.path.length&&0===t.type&&this.updateCameraSubtype(t.path[0],t.props)}toState(t){return{...super.toState(t),...this.toCameraState(t),type:this.cameraType}}},W=A;W.projectionTransitionsEnabled=!1,W.projectionTransitionDuration=350,W.projectionTransitionMinAgeMs=1e3;export{W as a};
@@ -1 +1 @@
1
- import{d as s}from"./runtime-chunk-IOF7TM7C.js";import{a as t,b as i}from"./runtime-chunk-26DBBUXP.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};
1
+ import{d as s}from"./runtime-chunk-CEEPOL6R.js";import{a as t,b as i}from"./runtime-chunk-JEEBN7WQ.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};