@splinetool/runtime 2.0.75 → 2.0.76

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 (326) hide show
  1. package/AGENTS.md +4 -0
  2. package/build/{runtime-bloom-XL2LGMRS.js → runtime-bloom-QWEX7MRM.js} +1 -1
  3. package/build/runtime-bloom-QWEX7MRM.js.br +0 -0
  4. package/build/runtime-bloom-QWEX7MRM.js.gz +0 -0
  5. package/build/{runtime-brightnessContrast-NVUYXHJN.js → runtime-brightnessContrast-WEITGRB7.js} +1 -1
  6. package/build/runtime-brightnessContrast-WEITGRB7.js.br +0 -0
  7. package/build/runtime-brightnessContrast-WEITGRB7.js.gz +0 -0
  8. package/build/{runtime-chromaticAberration-G6RI2BZ6.js → runtime-chromaticAberration-MWGH6M3J.js} +1 -1
  9. package/build/runtime-chromaticAberration-MWGH6M3J.js.br +0 -0
  10. package/build/runtime-chromaticAberration-MWGH6M3J.js.gz +0 -0
  11. package/build/{runtime-chunk-R3HMGJ7Z.js → runtime-chunk-2DXI65BA.js} +1 -1
  12. package/build/runtime-chunk-2DXI65BA.js.br +0 -0
  13. package/build/runtime-chunk-2DXI65BA.js.gz +0 -0
  14. package/build/runtime-chunk-4XNHGXFP.js +1 -0
  15. package/build/runtime-chunk-4XNHGXFP.js.br +0 -0
  16. package/build/runtime-chunk-4XNHGXFP.js.gz +0 -0
  17. package/build/{runtime-chunk-EHM6N6MH.js → runtime-chunk-6MXQXGJV.js} +1 -1
  18. package/build/runtime-chunk-6MXQXGJV.js.br +0 -0
  19. package/build/runtime-chunk-6MXQXGJV.js.gz +0 -0
  20. package/build/{runtime-chunk-DVNECZG7.js → runtime-chunk-CKC66SDD.js} +1 -1
  21. package/build/runtime-chunk-CKC66SDD.js.br +1 -0
  22. package/build/runtime-chunk-CKC66SDD.js.gz +0 -0
  23. package/build/{runtime-chunk-P7O43BI4.js → runtime-chunk-D6UL7QVP.js} +1 -1
  24. package/build/runtime-chunk-D6UL7QVP.js.br +0 -0
  25. package/build/runtime-chunk-D6UL7QVP.js.gz +0 -0
  26. package/build/{runtime-chunk-3IZ67XSS.js → runtime-chunk-EKCMGGVU.js} +1 -1
  27. package/build/runtime-chunk-EKCMGGVU.js.br +0 -0
  28. package/build/runtime-chunk-EKCMGGVU.js.gz +0 -0
  29. package/build/{runtime-chunk-HPOHBOPX.js → runtime-chunk-EXHKTSKP.js} +1 -1
  30. package/build/runtime-chunk-EXHKTSKP.js.br +0 -0
  31. package/build/runtime-chunk-EXHKTSKP.js.gz +0 -0
  32. package/build/runtime-chunk-GDQWREZV.js +1 -0
  33. package/build/runtime-chunk-GDQWREZV.js.br +0 -0
  34. package/build/runtime-chunk-GDQWREZV.js.gz +0 -0
  35. package/build/{runtime-chunk-O35HY6GE.js → runtime-chunk-GIO4XHW2.js} +1 -1
  36. package/build/runtime-chunk-GIO4XHW2.js.br +0 -0
  37. package/build/runtime-chunk-GIO4XHW2.js.gz +0 -0
  38. package/build/{runtime-chunk-XTWYJIDB.js → runtime-chunk-J6P5ZWHL.js} +1 -1
  39. package/build/runtime-chunk-J6P5ZWHL.js.br +0 -0
  40. package/build/runtime-chunk-J6P5ZWHL.js.gz +0 -0
  41. package/build/{runtime-chunk-7OKNQT4Q.js → runtime-chunk-JEEQYSJN.js} +1 -1
  42. package/build/runtime-chunk-JEEQYSJN.js.br +0 -0
  43. package/build/runtime-chunk-JEEQYSJN.js.gz +0 -0
  44. package/build/{runtime-chunk-2PCMVSFY.js → runtime-chunk-KSHWLQFH.js} +1 -1
  45. package/build/runtime-chunk-KSHWLQFH.js.br +0 -0
  46. package/build/runtime-chunk-KSHWLQFH.js.gz +0 -0
  47. package/build/{runtime-chunk-5FYCQZIK.js → runtime-chunk-LQYHP43C.js} +1 -1
  48. package/build/runtime-chunk-LQYHP43C.js.br +0 -0
  49. package/build/runtime-chunk-LQYHP43C.js.gz +0 -0
  50. package/build/{runtime-chunk-LGDFMPZV.js → runtime-chunk-LTIZNPR7.js} +1 -1
  51. package/build/runtime-chunk-LTIZNPR7.js.br +0 -0
  52. package/build/runtime-chunk-LTIZNPR7.js.gz +0 -0
  53. package/build/{runtime-chunk-BLRWJ6PO.js → runtime-chunk-OBY4GH2G.js} +1 -1
  54. package/build/runtime-chunk-OBY4GH2G.js.br +0 -0
  55. package/build/runtime-chunk-OBY4GH2G.js.gz +0 -0
  56. package/build/{runtime-chunk-CHPJLPOX.js → runtime-chunk-PPYPL2FA.js} +1 -1
  57. package/build/runtime-chunk-PPYPL2FA.js.br +0 -0
  58. package/build/runtime-chunk-PPYPL2FA.js.gz +0 -0
  59. package/build/{runtime-chunk-6P2VZYC7.js → runtime-chunk-QMZHJVIY.js} +1 -1
  60. package/build/runtime-chunk-QMZHJVIY.js.br +0 -0
  61. package/build/runtime-chunk-QMZHJVIY.js.gz +0 -0
  62. package/build/runtime-chunk-QRAO74EQ.js +1 -0
  63. package/build/runtime-chunk-QRAO74EQ.js.br +0 -0
  64. package/build/runtime-chunk-QRAO74EQ.js.gz +0 -0
  65. package/build/{runtime-chunk-JQLDHAYK.js → runtime-chunk-RNPU23IE.js} +1 -1
  66. package/build/{runtime-chunk-JQLDHAYK.js.br → runtime-chunk-RNPU23IE.js.br} +0 -0
  67. package/build/runtime-chunk-RNPU23IE.js.gz +0 -0
  68. package/build/runtime-chunk-TVA4CVPL.js +1 -0
  69. package/build/runtime-chunk-TVA4CVPL.js.br +0 -0
  70. package/build/runtime-chunk-TVA4CVPL.js.gz +0 -0
  71. package/build/{runtime-chunk-LMDWFYT4.js → runtime-chunk-UEMEFP7N.js} +1 -1
  72. package/build/runtime-chunk-UEMEFP7N.js.br +0 -0
  73. package/build/runtime-chunk-UEMEFP7N.js.gz +0 -0
  74. package/build/{runtime-chunk-SMAHKVDJ.js → runtime-chunk-UQQ35LPE.js} +1 -1
  75. package/build/runtime-chunk-UQQ35LPE.js.br +0 -0
  76. package/build/runtime-chunk-UQQ35LPE.js.gz +0 -0
  77. package/build/{runtime-chunk-KQB35G6O.js → runtime-chunk-VIY2ZYET.js} +1 -1
  78. package/build/runtime-chunk-VIY2ZYET.js.br +0 -0
  79. package/build/runtime-chunk-VIY2ZYET.js.gz +0 -0
  80. package/build/{runtime-chunk-2NMFVNZI.js → runtime-chunk-XJHIXU7R.js} +1 -1
  81. package/build/runtime-chunk-XJHIXU7R.js.br +0 -0
  82. package/build/runtime-chunk-XJHIXU7R.js.gz +0 -0
  83. package/build/{runtime-chunk-XUSHQQ6M.js → runtime-chunk-XLNQVH4X.js} +1 -1
  84. package/build/{runtime-chunk-XUSHQQ6M.js.br → runtime-chunk-XLNQVH4X.js.br} +0 -0
  85. package/build/runtime-chunk-XLNQVH4X.js.gz +0 -0
  86. package/build/{runtime-chunk-5HAHC2I4.js → runtime-chunk-YGTCEPBW.js} +1 -1
  87. package/build/runtime-chunk-YGTCEPBW.js.br +0 -0
  88. package/build/runtime-chunk-YGTCEPBW.js.gz +0 -0
  89. package/build/{runtime-chunk-J6NVJRP7.js → runtime-chunk-YQNSWRUG.js} +1 -1
  90. package/build/runtime-chunk-YQNSWRUG.js.br +0 -0
  91. package/build/runtime-chunk-YQNSWRUG.js.gz +0 -0
  92. package/build/{runtime-chunk-SDRGA6HH.js → runtime-chunk-ZTPGBHSM.js} +1 -1
  93. package/build/runtime-chunk-ZTPGBHSM.js.br +0 -0
  94. package/build/runtime-chunk-ZTPGBHSM.js.gz +0 -0
  95. package/build/{runtime-classicRuntime-VL6CHQ4U.js → runtime-classicRuntime-Z7ETK77X.js} +1 -1
  96. package/build/runtime-classicRuntime-Z7ETK77X.js.br +0 -0
  97. package/build/runtime-classicRuntime-Z7ETK77X.js.gz +0 -0
  98. package/build/{runtime-cloners-A22NSDYY.js → runtime-cloners-XESRQZAQ.js} +1 -1
  99. package/build/runtime-cloners-XESRQZAQ.js.br +0 -0
  100. package/build/runtime-cloners-XESRQZAQ.js.gz +0 -0
  101. package/build/{runtime-components-TWNA2WP4.js → runtime-components-HKA7YQLV.js} +1 -1
  102. package/build/runtime-components-HKA7YQLV.js.br +0 -0
  103. package/build/runtime-components-HKA7YQLV.js.gz +0 -0
  104. package/build/{runtime-createDestroy-VEUXNTNP.js → runtime-createDestroy-S3MAGWSU.js} +1 -1
  105. package/build/runtime-createDestroy-S3MAGWSU.js.br +0 -0
  106. package/build/runtime-createDestroy-S3MAGWSU.js.gz +0 -0
  107. package/build/{runtime-depthOfField-UOGP3RXR.js → runtime-depthOfField-3O3BP5UF.js} +1 -1
  108. package/build/runtime-depthOfField-3O3BP5UF.js.br +0 -0
  109. package/build/runtime-depthOfField-3O3BP5UF.js.gz +0 -0
  110. package/build/{runtime-dragDrop-ZSWC4G2N.js → runtime-dragDrop-PE5Y4MWB.js} +1 -1
  111. package/build/runtime-dragDrop-PE5Y4MWB.js.br +0 -0
  112. package/build/runtime-dragDrop-PE5Y4MWB.js.gz +0 -0
  113. package/build/{runtime-gameControls-IGROYZEU.js → runtime-gameControls-5RLJDMUI.js} +1 -1
  114. package/build/runtime-gameControls-5RLJDMUI.js.br +0 -0
  115. package/build/runtime-gameControls-5RLJDMUI.js.gz +0 -0
  116. package/build/{runtime-hair-3G4CHII2.js → runtime-hair-ZXUGRWYE.js} +1 -1
  117. package/build/runtime-hair-ZXUGRWYE.js.br +3 -0
  118. package/build/runtime-hair-ZXUGRWYE.js.gz +0 -0
  119. package/build/{runtime-hueSaturation-LYCL2TIK.js → runtime-hueSaturation-CGKVQ5AX.js} +1 -1
  120. package/build/runtime-hueSaturation-CGKVQ5AX.js.br +0 -0
  121. package/build/runtime-hueSaturation-CGKVQ5AX.js.gz +0 -0
  122. package/build/{runtime-mergeStaticGeometries-PF4JNSYT.js → runtime-mergeStaticGeometries-OYK7BHIT.js} +1 -1
  123. package/build/runtime-mergeStaticGeometries-OYK7BHIT.js.br +0 -0
  124. package/build/runtime-mergeStaticGeometries-OYK7BHIT.js.gz +0 -0
  125. package/build/{runtime-miscActions-GKLJU4O6.js → runtime-miscActions-JBIPB377.js} +1 -1
  126. package/build/runtime-miscActions-JBIPB377.js.br +0 -0
  127. package/build/runtime-miscActions-JBIPB377.js.gz +0 -0
  128. package/build/{runtime-mouseHover-6UDBUW4P.js → runtime-mouseHover-DX3N3X7P.js} +1 -1
  129. package/build/runtime-mouseHover-DX3N3X7P.js.br +0 -0
  130. package/build/runtime-mouseHover-DX3N3X7P.js.gz +0 -0
  131. package/build/{runtime-noise-PNVGOS7A.js → runtime-noise-IAXCCKRI.js} +1 -1
  132. package/build/runtime-noise-IAXCCKRI.js.br +0 -0
  133. package/build/runtime-noise-IAXCCKRI.js.gz +0 -0
  134. package/build/{runtime-particles-PATPAFJ7.js → runtime-particles-RT6PZSWK.js} +1 -1
  135. package/build/runtime-particles-RT6PZSWK.js.br +0 -0
  136. package/build/runtime-particles-RT6PZSWK.js.gz +0 -0
  137. package/build/{runtime-paths-XSOCSCPZ.js → runtime-paths-W4TBZW5Y.js} +1 -1
  138. package/build/runtime-paths-W4TBZW5Y.js.br +0 -0
  139. package/build/runtime-paths-W4TBZW5Y.js.gz +0 -0
  140. package/build/{runtime-pixelation-ZVCDH6UI.js → runtime-pixelation-ETQKXULE.js} +1 -1
  141. package/build/runtime-pixelation-ETQKXULE.js.br +0 -0
  142. package/build/runtime-pixelation-ETQKXULE.js.gz +0 -0
  143. package/build/{runtime-resize-PIJQUW6J.js → runtime-resize-DPVCEPTN.js} +1 -1
  144. package/build/runtime-resize-DPVCEPTN.js.br +0 -0
  145. package/build/runtime-resize-DPVCEPTN.js.gz +0 -0
  146. package/build/{runtime-sceneTransition-2PJZMJUQ.js → runtime-sceneTransition-56IV7SWV.js} +1 -1
  147. package/build/runtime-sceneTransition-56IV7SWV.js.br +0 -0
  148. package/build/runtime-sceneTransition-56IV7SWV.js.gz +0 -0
  149. package/build/{runtime-scroll-YOQSDYVU.js → runtime-scroll-6V3HUZMD.js} +1 -1
  150. package/build/runtime-scroll-6V3HUZMD.js.br +0 -0
  151. package/build/runtime-scroll-6V3HUZMD.js.gz +0 -0
  152. package/build/runtime-shapeBlends-QVPRUMEV.js +1 -0
  153. package/build/runtime-shapeBlends-QVPRUMEV.js.br +4 -0
  154. package/build/runtime-shapeBlends-QVPRUMEV.js.gz +0 -0
  155. package/build/{runtime-text-3YZRC3KX.js → runtime-text-6HDGLXDK.js} +1 -1
  156. package/build/runtime-text-6HDGLXDK.js.br +0 -0
  157. package/build/runtime-text-6HDGLXDK.js.gz +0 -0
  158. package/build/{runtime-textInputs-AYOXKM2X.js → runtime-textInputs-YJHUTIQQ.js} +1 -1
  159. package/build/runtime-textInputs-YJHUTIQQ.js.br +0 -0
  160. package/build/runtime-textInputs-YJHUTIQQ.js.gz +0 -0
  161. package/build/runtime-timeline-MLGEUIGX.js +1 -0
  162. package/build/runtime-timeline-MLGEUIGX.js.br +0 -0
  163. package/build/runtime-timeline-MLGEUIGX.js.gz +0 -0
  164. package/build/{runtime-tracking-S6E3HSYC.js → runtime-tracking-E3ZVHDBK.js} +1 -1
  165. package/build/runtime-tracking-E3ZVHDBK.js.br +0 -0
  166. package/build/runtime-tracking-E3ZVHDBK.js.gz +0 -0
  167. package/build/{runtime-transitions-P5H6UMK2.js → runtime-transitions-ZOOFJNQG.js} +1 -1
  168. package/build/runtime-transitions-ZOOFJNQG.js.br +0 -0
  169. package/build/runtime-transitions-ZOOFJNQG.js.gz +0 -0
  170. package/build/{runtime-ui2d-DBEQBBXV.js → runtime-ui2d-PEQJMQI6.js} +1 -1
  171. package/build/runtime-ui2d-PEQJMQI6.js.br +0 -0
  172. package/build/runtime-ui2d-PEQJMQI6.js.gz +0 -0
  173. package/build/{runtime-vectorShapes-JDZ3XTOC.js → runtime-vectorShapes-JJZBFBYT.js} +1 -1
  174. package/build/runtime-vectorShapes-JJZBFBYT.js.br +0 -0
  175. package/build/runtime-vectorShapes-JJZBFBYT.js.gz +0 -0
  176. package/build/{runtime-vignette-TECYHVQU.js → runtime-vignette-IZCX6M3H.js} +1 -1
  177. package/build/runtime-vignette-IZCX6M3H.js.br +0 -0
  178. package/build/runtime-vignette-IZCX6M3H.js.gz +0 -0
  179. package/build/{runtime-webgpu-5LGKKJZY.js → runtime-webgpu-N3IPXH3K.js} +1 -1
  180. package/build/runtime-webgpu-N3IPXH3K.js.br +0 -0
  181. package/build/runtime-webgpu-N3IPXH3K.js.gz +0 -0
  182. package/build/runtime.cjs +324 -324
  183. package/build/runtime.js +1 -1
  184. package/build/runtime.js.br +0 -0
  185. package/build/runtime.js.gz +0 -0
  186. package/build/runtime.standalone.js +1 -1
  187. package/build/runtime.standalone.js.br +0 -0
  188. package/build/runtime.standalone.js.gz +0 -0
  189. package/build/runtime.standalone.webgl.js +1 -1
  190. package/build/runtime.standalone.webgl.js.br +0 -0
  191. package/build/runtime.standalone.webgl.js.gz +0 -0
  192. package/build/runtime.standalone.webgpu.js +1 -1
  193. package/build/runtime.standalone.webgpu.js.br +0 -0
  194. package/build/runtime.standalone.webgpu.js.gz +0 -0
  195. package/build/runtime.standalone.webgpu.micro.js +1 -1
  196. package/build/runtime.standalone.webgpu.micro.js.br +0 -0
  197. package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
  198. package/build/runtime.standalone.webgpu.min.js +1 -1
  199. package/build/runtime.standalone.webgpu.min.js.br +0 -0
  200. package/build/runtime.standalone.webgpu.min.js.gz +0 -0
  201. package/package.json +1 -1
  202. package/runtime.d.ts +4 -1
  203. package/build/runtime-bloom-XL2LGMRS.js.br +0 -0
  204. package/build/runtime-bloom-XL2LGMRS.js.gz +0 -0
  205. package/build/runtime-brightnessContrast-NVUYXHJN.js.br +0 -0
  206. package/build/runtime-brightnessContrast-NVUYXHJN.js.gz +0 -0
  207. package/build/runtime-chromaticAberration-G6RI2BZ6.js.br +0 -0
  208. package/build/runtime-chromaticAberration-G6RI2BZ6.js.gz +0 -0
  209. package/build/runtime-chunk-2NMFVNZI.js.br +0 -0
  210. package/build/runtime-chunk-2NMFVNZI.js.gz +0 -0
  211. package/build/runtime-chunk-2PCMVSFY.js.br +0 -0
  212. package/build/runtime-chunk-2PCMVSFY.js.gz +0 -0
  213. package/build/runtime-chunk-3IZ67XSS.js.br +0 -0
  214. package/build/runtime-chunk-3IZ67XSS.js.gz +0 -0
  215. package/build/runtime-chunk-5FYCQZIK.js.br +0 -0
  216. package/build/runtime-chunk-5FYCQZIK.js.gz +0 -0
  217. package/build/runtime-chunk-5HAHC2I4.js.br +0 -0
  218. package/build/runtime-chunk-5HAHC2I4.js.gz +0 -0
  219. package/build/runtime-chunk-6P2VZYC7.js.br +0 -0
  220. package/build/runtime-chunk-6P2VZYC7.js.gz +0 -0
  221. package/build/runtime-chunk-7OKNQT4Q.js.br +0 -0
  222. package/build/runtime-chunk-7OKNQT4Q.js.gz +0 -0
  223. package/build/runtime-chunk-BLRWJ6PO.js.br +0 -0
  224. package/build/runtime-chunk-BLRWJ6PO.js.gz +0 -0
  225. package/build/runtime-chunk-CHPJLPOX.js.br +0 -0
  226. package/build/runtime-chunk-CHPJLPOX.js.gz +0 -0
  227. package/build/runtime-chunk-DVNECZG7.js.br +0 -0
  228. package/build/runtime-chunk-DVNECZG7.js.gz +0 -0
  229. package/build/runtime-chunk-EHM6N6MH.js.br +0 -0
  230. package/build/runtime-chunk-EHM6N6MH.js.gz +0 -0
  231. package/build/runtime-chunk-EXCSVK2W.js +0 -1
  232. package/build/runtime-chunk-EXCSVK2W.js.br +0 -0
  233. package/build/runtime-chunk-EXCSVK2W.js.gz +0 -0
  234. package/build/runtime-chunk-HPOHBOPX.js.br +0 -0
  235. package/build/runtime-chunk-HPOHBOPX.js.gz +0 -0
  236. package/build/runtime-chunk-J6NVJRP7.js.br +0 -0
  237. package/build/runtime-chunk-J6NVJRP7.js.gz +0 -0
  238. package/build/runtime-chunk-JQLDHAYK.js.gz +0 -0
  239. package/build/runtime-chunk-KQB35G6O.js.br +0 -0
  240. package/build/runtime-chunk-KQB35G6O.js.gz +0 -0
  241. package/build/runtime-chunk-LGDFMPZV.js.br +0 -0
  242. package/build/runtime-chunk-LGDFMPZV.js.gz +0 -0
  243. package/build/runtime-chunk-LMDWFYT4.js.br +0 -0
  244. package/build/runtime-chunk-LMDWFYT4.js.gz +0 -0
  245. package/build/runtime-chunk-O35HY6GE.js.br +0 -0
  246. package/build/runtime-chunk-O35HY6GE.js.gz +0 -0
  247. package/build/runtime-chunk-P7O43BI4.js.br +0 -0
  248. package/build/runtime-chunk-P7O43BI4.js.gz +0 -0
  249. package/build/runtime-chunk-R3HMGJ7Z.js.br +0 -0
  250. package/build/runtime-chunk-R3HMGJ7Z.js.gz +0 -0
  251. package/build/runtime-chunk-SDRGA6HH.js.br +0 -0
  252. package/build/runtime-chunk-SDRGA6HH.js.gz +0 -0
  253. package/build/runtime-chunk-SMAHKVDJ.js.br +0 -0
  254. package/build/runtime-chunk-SMAHKVDJ.js.gz +0 -0
  255. package/build/runtime-chunk-TRETONDH.js +0 -1
  256. package/build/runtime-chunk-TRETONDH.js.br +0 -0
  257. package/build/runtime-chunk-TRETONDH.js.gz +0 -0
  258. package/build/runtime-chunk-WKBLSXWK.js +0 -1
  259. package/build/runtime-chunk-WKBLSXWK.js.br +0 -0
  260. package/build/runtime-chunk-WKBLSXWK.js.gz +0 -0
  261. package/build/runtime-chunk-XTWYJIDB.js.br +0 -0
  262. package/build/runtime-chunk-XTWYJIDB.js.gz +0 -0
  263. package/build/runtime-chunk-XUSHQQ6M.js.gz +0 -0
  264. package/build/runtime-chunk-Y3BMDVJ7.js +0 -1
  265. package/build/runtime-chunk-Y3BMDVJ7.js.br +0 -0
  266. package/build/runtime-chunk-Y3BMDVJ7.js.gz +0 -0
  267. package/build/runtime-classicRuntime-VL6CHQ4U.js.br +0 -0
  268. package/build/runtime-classicRuntime-VL6CHQ4U.js.gz +0 -0
  269. package/build/runtime-cloners-A22NSDYY.js.br +0 -0
  270. package/build/runtime-cloners-A22NSDYY.js.gz +0 -0
  271. package/build/runtime-components-TWNA2WP4.js.br +0 -0
  272. package/build/runtime-components-TWNA2WP4.js.gz +0 -0
  273. package/build/runtime-createDestroy-VEUXNTNP.js.br +0 -0
  274. package/build/runtime-createDestroy-VEUXNTNP.js.gz +0 -0
  275. package/build/runtime-depthOfField-UOGP3RXR.js.br +0 -0
  276. package/build/runtime-depthOfField-UOGP3RXR.js.gz +0 -0
  277. package/build/runtime-dragDrop-ZSWC4G2N.js.br +0 -0
  278. package/build/runtime-dragDrop-ZSWC4G2N.js.gz +0 -0
  279. package/build/runtime-gameControls-IGROYZEU.js.br +0 -0
  280. package/build/runtime-gameControls-IGROYZEU.js.gz +0 -0
  281. package/build/runtime-hair-3G4CHII2.js.br +0 -2
  282. package/build/runtime-hair-3G4CHII2.js.gz +0 -0
  283. package/build/runtime-hueSaturation-LYCL2TIK.js.br +0 -0
  284. package/build/runtime-hueSaturation-LYCL2TIK.js.gz +0 -0
  285. package/build/runtime-mergeStaticGeometries-PF4JNSYT.js.br +0 -0
  286. package/build/runtime-mergeStaticGeometries-PF4JNSYT.js.gz +0 -0
  287. package/build/runtime-miscActions-GKLJU4O6.js.br +0 -0
  288. package/build/runtime-miscActions-GKLJU4O6.js.gz +0 -0
  289. package/build/runtime-mouseHover-6UDBUW4P.js.br +0 -0
  290. package/build/runtime-mouseHover-6UDBUW4P.js.gz +0 -0
  291. package/build/runtime-noise-PNVGOS7A.js.br +0 -0
  292. package/build/runtime-noise-PNVGOS7A.js.gz +0 -0
  293. package/build/runtime-particles-PATPAFJ7.js.br +0 -0
  294. package/build/runtime-particles-PATPAFJ7.js.gz +0 -0
  295. package/build/runtime-paths-XSOCSCPZ.js.br +0 -0
  296. package/build/runtime-paths-XSOCSCPZ.js.gz +0 -0
  297. package/build/runtime-pixelation-ZVCDH6UI.js.br +0 -0
  298. package/build/runtime-pixelation-ZVCDH6UI.js.gz +0 -0
  299. package/build/runtime-resize-PIJQUW6J.js.br +0 -0
  300. package/build/runtime-resize-PIJQUW6J.js.gz +0 -0
  301. package/build/runtime-sceneTransition-2PJZMJUQ.js.br +0 -0
  302. package/build/runtime-sceneTransition-2PJZMJUQ.js.gz +0 -0
  303. package/build/runtime-scroll-YOQSDYVU.js.br +0 -0
  304. package/build/runtime-scroll-YOQSDYVU.js.gz +0 -0
  305. package/build/runtime-shapeBlends-QBQOFMHU.js +0 -1
  306. package/build/runtime-shapeBlends-QBQOFMHU.js.br +0 -3
  307. package/build/runtime-shapeBlends-QBQOFMHU.js.gz +0 -0
  308. package/build/runtime-text-3YZRC3KX.js.br +0 -0
  309. package/build/runtime-text-3YZRC3KX.js.gz +0 -0
  310. package/build/runtime-textInputs-AYOXKM2X.js.br +0 -0
  311. package/build/runtime-textInputs-AYOXKM2X.js.gz +0 -0
  312. package/build/runtime-timeline-7WC4ZCIT.js +0 -1
  313. package/build/runtime-timeline-7WC4ZCIT.js.br +0 -0
  314. package/build/runtime-timeline-7WC4ZCIT.js.gz +0 -0
  315. package/build/runtime-tracking-S6E3HSYC.js.br +0 -0
  316. package/build/runtime-tracking-S6E3HSYC.js.gz +0 -0
  317. package/build/runtime-transitions-P5H6UMK2.js.br +0 -0
  318. package/build/runtime-transitions-P5H6UMK2.js.gz +0 -0
  319. package/build/runtime-ui2d-DBEQBBXV.js.br +0 -0
  320. package/build/runtime-ui2d-DBEQBBXV.js.gz +0 -0
  321. package/build/runtime-vectorShapes-JDZ3XTOC.js.br +0 -0
  322. package/build/runtime-vectorShapes-JDZ3XTOC.js.gz +0 -0
  323. package/build/runtime-vignette-TECYHVQU.js.br +0 -0
  324. package/build/runtime-vignette-TECYHVQU.js.gz +0 -0
  325. package/build/runtime-webgpu-5LGKKJZY.js.br +0 -0
  326. package/build/runtime-webgpu-5LGKKJZY.js.gz +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splinetool/runtime",
3
- "version": "2.0.75",
3
+ "version": "2.0.76",
4
4
  "description": "Spline is a collaborative design platform for creating production-ready interactive experiences in multiple dimensions. © 2026 Spline, Inc.",
5
5
  "keywords": [
6
6
  "spline",
package/runtime.d.ts CHANGED
@@ -411,7 +411,10 @@ declare module '@splinetool/runtime' {
411
411
  cb: (e: SplineEvent) => void
412
412
  ): void;
413
413
  /**
414
- * Deactivates runtime
414
+ * Deactivates runtime. Also releases the canvas's WebGL context, since a
415
+ * page only gets a limited number of live contexts: the canvas cannot
416
+ * be drawn on until a new Application (or `load()` on this one) restores
417
+ * it. The release fires no `webglcontextlost` event on the canvas.
415
418
  */
416
419
  dispose(): void;
417
420
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{e,g as t,j as r}from"./runtime-chunk-R3HMGJ7Z.js";import{a,b as n}from"./runtime-chunk-HD7WF3XN.js";import{c as i,e as s,f as o}from"./runtime-chunk-5FYCQZIK.js";import{a as l}from"./runtime-chunk-O35HY6GE.js";import{b as u}from"./runtime-chunk-CHPJLPOX.js";import{Z as d,ba as c,ca as p,i as h,ia as f,ja as g}from"./runtime-chunk-WKBLSXWK.js";import{v as m}from"./runtime-chunk-LMDWFYT4.js";import{d as b,e as y}from"./runtime-chunk-RTLL6WIB.js";import{c as v,d as w,e as S}from"./runtime-chunk-2PT2WH66.js";import{A as j,B as A,G as V,H as M,M as D,N as R,O as k,P as x,Q as E,R as O,ca as B,la as C,oa as P,z as G}from"./runtime-chunk-JBTA64YE.js";import{Cc as N,Dc as F,Ec as I,Fc as z,Oc as T,Pc as q,Tc as W}from"./runtime-chunk-BVVSZMXD.js";var L=Math.fround,H=[.01,100],X=[.01,1e4],Y=[.01,1e3],Z=[.01,1e3];function J(e,[t,r]){return Math.min(Math.max(e,t),r)}function K(e,t,r,a,n){e=J(e,H),t=J(t,X),r=J(r,Y),a=J(a,Z);let i=Math.sqrt(t/e),s=r/(2*Math.sqrt(t*e)),o=s<1?i*Math.sqrt(1-s*s):0,l=s<1?(s*i-a)/o:-a+i;return e=>{let t=void 0!==n?n*e:e;return t=s<1?Math.exp(-t*s*i)*(1*Math.cos(o*t)+l*Math.sin(o*t)):(1+l*t)*Math.exp(-t*i),0===e||1===e?e:1-t}}var Q=L(.001),U=L(1e-7),$=L(.1);function _(e,t){return L(L(1-L(3*t))+L(3*e))}function ee(e,t){return L(L(3*t)-L(6*e))}function te(e){return L(3*e)}function re(e,t,r){return L(L(L(L(L(_(t,r)*e)+ee(t,r))*e)+te(t))*e)}function ae(e,t,r){let a=L(L(L(3*_(t,r))*e)*e),n=L(L(2*ee(t,r))*e);return L(L(a+n)+te(t))}var ne=e=>e;function ie(e,t,r,a){if(e=L(e),t=L(t),r=L(r),a=L(a),e<0||e>1||r<0||r>1||e===t&&r===a)return ne;let n=new Float32Array(11);for(let t=0;t<11;t++)n[t]=re(L(t*$),e,r);return i=>0===(i=L(i))||1===i?i:re((t=>{let a=0,i=1;for(;10!==i&&n[i]<=t;)a=L(a+$),i+=1;i-=1;let s=L(L(t-n[i])/L(n[i+1]-n[i])),o=L(a+L(s*$)),l=ae(o,e,r);return l>=Q?function(e,t,r,a){for(let n=0;n<4;n++){let n=ae(t,r,a);if(0===n)return t;let i=L(re(t,r,a)-e);t=L(t-L(i/n))}return t}(t,o,e,r):0===l?o:function(e,t,r,a,n){let i,s=0,o=0;do{s=L(t+L(L(r-t)/2)),i=L(re(s,a,n)-e),i>0?r=s:t=s,o+=1}while(Math.abs(i)>U&&o<10);return s}(t,a,L(a+$),e,r)})(i),t,a)}var se=L(1.70158);function oe(e,t,r){switch(e.easing){case 0:default:return r;case 1:return ie(.25,.1,.25,1)(r);case 2:return ie(.42,0,1,1)(r);case 3:return ie(0,0,.58,1)(r);case 4:return ie(.42,0,.58,1)(r);case 7:return ie(.25,1,.5,1)(r);case 8:return Math.floor(r);case 5:{let{control1:t,control2:a}=e;return t&&a?ie(t[0],t[1],a[0],a[1])(r):r}case 6:{let{mass:a,stiffness:n,damping:i,velocity:s}=e;return void 0===a||void 0===n||void 0===i||void 0===s?r:L(K(a,n,i,s,t)(r))}}}L(se+1);var le=Math.fround,ue=class{constructor(e,t,r){this.apply=t,this.onStart=r,this.isPlaying=!1,this.isReversed=!1,this.endTime=0,this.startTime=0,this.isFirstLerpAfterStart=!1,this.config=e,this.duration=function(e,t){if(6!==e.easing)return t;let{mass:r,stiffness:a,damping:n,velocity:i}=e;return void 0===r||void 0===a||void 0===n||void 0===i?t:function(e,t,r,a){let n=.16666666666666666,i=0,s=0,o=K(e,t,r,a);for(let e=0;e<1e5;e++)if(i+=n,1===o(i)){if(s+=1,s>=16)break}else s=0;return L(i*n)}(r,a,n,i)}(e.ease,le(e.duration/1e3)),this.delay=le(e.delay/1e3),this.currentRepeat=e.repeat}get repeatDirection(){return this.overrideDirection??this.config.direction}get isPingpong(){let e=this.repeatDirection;return"pingpong"===e||"pingpong-rewind"===e}get actualDelayDirection(){return this.isReversed?"start"===this.config.delayDirection?"end":"end"===this.config.delayDirection?"start":this.config.delayDirection:this.config.delayDirection}start(e){this.isPlaying=!0,this.currentRepeat=this.config.repeat,this.isFirstLerpAfterStart=!0,this.startTime=e,this.onStart?.()}endAfterCurrentPass(){this.currentRepeat<0&&(this.currentRepeat=0)}stop(){this.isPlaying=!1}rearm(){this.onStart?.()}seek(e){this.lerp(e)}update(e){if(!this.isPlaying)return;let t=a(e,this.startTime),r=0;if(this.isFirstLerpAfterStart||!this.isPingpong){let e=this.actualDelayDirection;if("start-once"===this.config.delayDirection&&this.isFirstLerpAfterStart||"start"===e||"start-end"===e){if(t<this.delay)return;r=this.delay}}t=le(t-r);let i=0===this.duration?1:Math.min(Math.max(le(t/this.duration),0),1);if(this.lerp(i),!this.isPlaying||1!==i)return;let s=this.actualDelayDirection;if("end"===s||"start-end"===s){if(t<le(this.duration+this.delay))return;this.endTime=n(this.startTime,le(le(r+this.duration)+this.delay))}else this.endTime=n(this.startTime,le(r+this.duration));this.isFirstLerpAfterStart=!1,0!==this.currentRepeat?(this.currentRepeat>0&&(this.currentRepeat-=1),this.isPingpong?this.isReversed=!this.isReversed:this.lerp(0),this.startTime=e,this.onStart?.()):this.stop()}lerp(e){"pingpong-rewind"===this.repeatDirection&&this.isReversed?(e=le(1-e),e=this.ease(e),e=le(1-e)):e=this.ease(e),this.apply(e)}ease(e){return oe(this.config.ease,this.duration,e)}},{degToRad:de,radToDeg:ce}=N,pe=new z,he=new z,fe=new I;function ge(e,t,r,a,n,i){let s=void 0!==r[e]?r[e]:void 0,o=a[e];if(null==o)return;let l=null!=s?"string"==typeof s?Number(n.getVariable(s)??0):s:t[e],u="string"==typeof o?Number(n.getVariable(o)??0):o;return l!==u?{update:r=>{let a=N.lerp(l,u,r);t[e]=i?Math.trunc(a):a},start:()=>{t[e]=l},end:()=>{t[e]=u}}:void 0}function me(e,t,r,a,n,i){let s=r[e]?r[e]:void 0,o=a[e];if(!o)return;let l=t[e],u=[...s??l].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e),d=[...o].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e);return u.length!==d.length||b(u,d)?void 0:{update:r=>{u.forEach((a,n)=>{let s=N.lerp(a,d[n],r);t[e][n]=i?Math.trunc(s):s})},start:()=>{Object.assign(t[e],u)},end:()=>{Object.assign(t[e],d)}}}function be(e,t,r){return t.forEach((t,a)=>{e.setComponent(a,"string"==typeof t?Number(r.getVariable(t)??0):t)}),e}function ye(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=i?be(new z,i,n):o.clone(),u=be(new z,s,n);return l.equals(u)?void 0:{update:e=>{o.lerpVectors(l,u,e)},start:()=>{o.copy(l)},end:()=>{o.copy(u)}}}function ve(e,t,r){return t.forEach((t,a)=>{e.setComponent(a,"string"==typeof t?Number(r.getVariable(t)??0):t)}),e}function we(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=!(o instanceof F),u=o instanceof F?o:(new F).fromArray(o),d=i?ve(new F,i,n):u.clone(),c=ve(new F,s,n);return d.equals(c)?void 0:{update:r=>{u.lerpVectors(d,c,r),l&&(t[e]=u.toArray())},start:()=>{u.copy(d),l&&(t[e]=u.toArray())},end:()=>{u.copy(c),l&&(t[e]=u.toArray())}}}function Se(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=new h(o.r,o.g,o.b,o.a),u=i?"string"==typeof i?n.getColor(i).clone():new h(i.r,i.g,i.b,i.a):l.clone(),d="string"==typeof s?n.getColor(s).clone():new h(s.r,s.g,s.b,s.a);return u.equals(d)?void 0:{update:r=>{l.lerpColors(u,d,r);let a=N.lerp(u.a,d.a,r);l.a=a,t[e]={r:l.r,g:l.g,b:l.b,a:l.a}},start:()=>{l.copy(u)},end:()=>{l.copy(d)}}}function je(e,t,r,a,n){return"number"==typeof t[e]?ge(e,t,r??{},a,n):Array.isArray(t[e])?me(e,t,r??{},a,n):void 0}function Ae(e,t){if(e)for(let[r,a]of Object.entries(t)){let t=e[r];if(Array.isArray(t)&&Array.isArray(a)){let e=Math.min(t.length,a.length);for(let r=0;r<e;r++)t[r]=a[r]}else e[r]=a}}function Ve(e,t,r,a){let n={};if(!t||!r)return n;for(let i of e){let e=t[i],s=r[i];if("number"==typeof e&&"number"==typeof s)n[i]=N.lerp(e,s,a);else if(Array.isArray(e)&&Array.isArray(s)){let t=Math.min(e.length,s.length);n[i]=Array.from({length:t},(t,r)=>N.lerp(e[r],s[r],a))}}return n}function Me(e,t,r,a,n){let i=e.getValue(a);if(void 0!==i){if("colors"===a)return function(e,t,r,a="colors"){if(!e.hasValue(a)||!(a in r))return;let n=[],i=e.getValue(a),s=t?t[a]:i.map(e=>e.toArray()),o=r[a];for(let e=0;e<i.length;++e){let t=[...s[e]],r=[...o[e]];A.isEqual(t,r)||n.push({update:a=>{i[e].fromArray(A.lerp(t,r,a))},start:()=>{i[e].fromArray(t)},end:()=>{i[e].fromArray(r)}})}return n.length?n:void 0}(e,t,r,a);if(Array.isArray(i))return"steps"===a?function(e,t,r,a="steps"){if(!e.hasValue(a)||!(a in r))return;let n=[],i=e.getValue(a),s=t?t[a]:i,o=r[a];return b(s,o)||n.push({update:t=>{let r=[...i];for(let e=0;e<i.length;++e){let a=s[e],n=o[e];r[e]=N.lerp(a,n,t)}e.setValue(a,r)},start:()=>{e.setValue(a,s)},end:()=>{e.setValue(a,o)}}),n.length?n:void 0}(e,t,r,a):void 0;if("number"==typeof i)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:e.getValue(a),s=r[a],o="string"==typeof i?Number(n.getVariable(i)??0):i,l="string"==typeof s?Number(n.getVariable(s)??0):s;return{update:t=>{e.setValue(a,N.lerp(o,l,t))},start:()=>{e.setValue(a,o)},end:()=>{e.setValue(a,l)}}}(e,t,r,a,n);if("boolean"!=typeof i){if(i instanceof F)return function(e,t,r,a){if(!e.hasValue(a)||!(a in r))return;let n=e.getValue(a),i=t?(new F).fromArray(t[a]):n.clone(),s=(new F).fromArray(r[a]);return i.equals(s)?void 0:{update:e=>{n.lerpVectors(i,s,e)},start:()=>{n.copy(i)},end:()=>{n.copy(s)}}}(e,t,r,a);if(i instanceof z)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=e.getValue(a),s=t?t[a]:void 0,o=r[a],l=s?be(new z,s,n):i.clone(),u=be(new z,o,n);return l.equals(u)?void 0:{update:e=>{i.lerpVectors(l,u,e)},start:()=>{i.copy(l)},end:()=>{i.copy(u)}}}(e,t,r,a,n);if(i instanceof h)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:void 0,s=r[a],o=e.getValue(a),l=i?"string"==typeof i?n.color(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.color(s).clone():new h(s.r,s.g,s.b,s.a);if(l.equals(u))return;let d=o.clone();return{update:t=>{e.getValue(a)!==d&&e.setValue(a,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,r,a,n);if(i instanceof W)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:void 0,s=r[a],o=e.getValue(a),l=i?"string"==typeof i?n.color(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.color(s).clone():(new W).setRGB(s.r,s.g,s.b);if(l.equals(u))return;let d=o.clone();return{update:t=>{e.getValue(a)!==d&&e.setValue(a,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,r,a,n);if("isTexture"in i)return function(e,t,r,a="texture",n){if(!e.hasValue(a)||!(a in r))return;let i=e=>Number("string"==typeof e?n?.getVariable(e)??0:e??0),s=e.getNode("rotation"),o=t?i(t[a]?.rotation):(s?.value??0)*N.RAD2DEG,l=i(r[a]?.rotation);if(s&&Math.abs(o-l)>1e-9)return{update:e=>{s.value=N.lerp(o,l,e)*N.DEG2RAD},start:()=>{s.value=o*N.DEG2RAD},end:()=>{s.value=l*N.DEG2RAD}};let u=function(e){let t=e.getNode("mat");if("function"==typeof t?.updateMatrix)return t;let r=e.getValue("mat");return"function"==typeof r?.updateMatrix?r:void 0}(e);if(!u)return;let d=t?t[a]:u,c=r[a],p=[...d.repeat],h=[...d.offset],f=[...c.repeat],g=[...c.offset],m=d.rotation??0,b=c.rotation??0;return G.isEqual(p,f)&&G.isEqual(h,g)&&m===b?void 0:{update:e=>{u.repeat=G.lerp(p,f,e),u.offset=G.lerp(h,g,e),u.rotation=N.lerp(m,b,e),u.updateMatrix()},start:()=>{u.repeat=[...p],u.offset=[...h],u.rotation=m,u.updateMatrix()},end:()=>{u.repeat=[...f],u.offset=[...g],u.rotation=b,u.updateMatrix()}}}(e,t,r,a,n)}}}function De(e,t,r,a){let n=[],i=d(r,a)||!!t.layers&&d(t,a);n.push(function(e,t){return{update:()=>{e.setTransparent(t)}}}(e,i)),function(e,t,r){let a=e.ensureRainbowNoiseCompiled;if("function"==typeof a)for(let n of[...e.layers]){if("rainbow"!==n.type)continue;let i=t.layers?.data(n.uuid),s=r.layers.data(n.uuid);(c(i?.noiseStrength)||c(s?.noiseStrength))&&a.call(e,n.uuid)}}(e,t,r);for(let i of e.layers){let e=t.layers?.data(i.uuid),s=r.layers.data(i.uuid);if(!s||"light"!==i.type&&(!(i.visible??1)||!(s.visible??1)))continue;let o=p[i.type]??[],l=i.getNames().filter(e=>!o.includes(e)&&!B.some(t=>e.includes(t)));for(let t of l)try{let r=Me(i,e,s,t,a);r&&(Array.isArray(r)?n.push(...r):n.push(r))}catch(e){console.error(`lerpMaterial: unexpected material layer for ${t}`,e)}}return n}function Re(e,t,r,a,n,i){let s=Me(t,r,a,e,i);!s||(Array.isArray(s)?s.forEach(e=>e.update(n)):s.update(n))}new q;var ke=new z,xe=new q;var Ee=[["radial",R],["linear",k],["grid",x],["toObject",E],["randomnessObject",O]];function Oe(e,t,r,a){if(!e)return{};let n=Ve(["count"],t,r,a);void 0!==n.count&&(n.count=Math.trunc(n.count));for(let[i,s]of Ee){if(!e[i])continue;let o=Ve(s,t[i],r[i],a);Object.keys(o).length&&(n[i]=o)}return n}function Be(e,t){if(e){void 0!==t.count&&(e.count=t.count);for(let[r]of Ee){let a=t[r];a&&Ae(e[r],a)}}}function Ce(a,n,d,c,p){let h=[];return a.data.visible&&h.push(...function(e,t,r,a,n){let i,l,u,d,c,p,h,f,g=[];if(S(e)?(i=we("position",e,t,r,n),i&&g.push(i),u=ge("rotation",e,t,r,n),u&&g.push(u),d=we("shear",e,t,r,n),d&&g.push(d)):(f={slide:t.pathSnapping?.slide??e.updatedPathSnapping?.slide??e.dataPatched.pathSnapping?.slide??0,offset:t.pathSnapping?.offset??e.updatedPathSnapping?.offset??e.dataPatched.pathSnapping?.offset??0},p=ge("slide",f,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,r.pathSnapping??e.dataPatched.pathSnapping,n),p&&g.push(p),h=ge("offset",f,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,r.pathSnapping??e.dataPatched.pathSnapping,n),h&&g.push(h),!p&&!h&&(i=ye("position",e,t,r,n),i&&g.push(i),l=ye("scale",e,t,r,n),l&&g.push(l),u=function(e,t,r,a,n){let i=t?.rotation?t.rotation.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*N.DEG2RAD):void 0,s=r.rotation?.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*N.DEG2RAD);if(!s)return;let o=i?(new z).fromArray(i):(new z).setFromEuler(e.rotation),l=(new z).fromArray(s);if(o.equals(l))return;let u=ke.subVectors(l,o);if(a&&u.toArray().every(e=>Math.abs(e)<2*Math.PI)){let t=(new I).setFromEuler(xe.setFromVector3(o)),r=(new I).setFromEuler(xe.setFromVector3(l));return{update:a=>{!function(e,t,r,a){if(0===a)return r.copy(e);if(1===a)return r.copy(t);let n=e.w*t.w+e.x*t.x+e.y*t.y+e.z*t.z;if(n>=1)return r.copy(e);let i=1-n*n;if(i<=Number.EPSILON){let n=1-a;return r.w=n*e.w+a*t.w,r.x=n*e.x+a*t.x,r.y=n*e.y+a*t.y,r.z=n*e.z+a*t.z,r.normalize(),r}let s=Math.sqrt(i),o=Math.atan2(s,n),l=Math.sin((1-a)*o)/s,u=Math.sin(a*o)/s;r.w=e.w*l+t.w*u,r.x=e.x*l+t.x*u,r.y=e.y*l+t.y*u,r.z=e.z*l+t.z*u}(t,r,e.quaternion,a)},start:()=>{e.rotation.setFromVector3(o)},end:()=>{e.rotation.setFromVector3(l)}}}return{update:t=>{ke.lerpVectors(o,l,t),e.rotation.setFromVector3(ke)},start:()=>{e.rotation.setFromVector3(o)},end:()=>{e.rotation.setFromVector3(l)}}}(e,t,r,a,n),u&&g.push(u),c=function(e,t,r,a){let n=r[e]?r[e]:void 0,i=a[e];if(!i)return;let s=t[e],o=n?(new T).fromArray(n):s.clone(),l=new z,u=new I,d=new z;o.decompose(l,u,d);let c=(new T).fromArray(i),p=new z,h=new I,f=new z;return c.decompose(p,h,f),o.equals(c)?void 0:{update:e=>{fe.slerpQuaternions(u,h,e),pe.lerpVectors(l,p,e),he.lerpVectors(d,f,e),s.compose(pe,fe,he)},start:()=>{s.compose(l,u,d)},end:()=>{s.compose(p,h,f)}}}("hiddenMatrix",e,t,r),c&&g.push(c))),i||l||u||c||p||h){let r=S(e)?()=>{e.updateWorldMatrix(!0,!1,!0),e.resetBBoxNeedsUpdate()}:()=>{e.updateMatrix(),e.hasNonUniformScale&&(e.updateMatrixWorld(),e.updateMatrixWorldRigid()),e.parent?.matrixWorldFusedFalse&&(e.matrixWorld.multiplyMatrices(e.parent.matrixWorldFusedFalse,e.matrix),e.matrixWorldNeedsUpdate=!1),s(e)&&o(e.parent)&&e.invalidateDownstreamBooleanData(!0),e.updatePathSnapping(Object.assign({},t.pathSnapping,f))};g.push({update:r,start:r,end:r})}return g}(a,n,d,p,c.shared)),S(a)?h.push(...function(a,n,i,s,o){let l,u,d,c,p,h,f,g,m,b,y,v,w,S,j,A=[];if("width"in a&&(l=ge("width",a,n,i,o),l&&A.push(l)),"height"in a&&(u=ge("height",a,n,i,o),u&&A.push(u)),a instanceof e||a instanceof r){let t={...n.fill},r={...i.fill};void 0!==t.enabled&&t.enabled!==r.enabled&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.fill.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),d=Se("color",a.fill,t,r,o),d&&A.push(d)}if(a instanceof e){let t={...n.stroke},r={...i.stroke};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.stroke.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),c=Se("color",a.stroke,t,r,o),c&&A.push(c),p=ge("thickness",a.stroke,t,r,o),p&&A.push(p)}if(a instanceof e){let t={...n.dropShadow},r={...i.dropShadow};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.dropShadow.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),h=Se("color",a.dropShadow,t,r,o),h&&A.push(h),f=ge("blurRadius",a.dropShadow,t,r,o),f&&A.push(f),m=ge("spread",a.dropShadow,t,r,o),m&&A.push(m),g=we("offset",a.dropShadow,t,r,o),g&&A.push(g)}if(a instanceof e){let t={...n.innerShadow},r={...i.innerShadow};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.innerShadow.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),b=Se("color",a.innerShadow,t,r,o),b&&A.push(b),y=ge("blurRadius",a.innerShadow,t,r,o),y&&A.push(y),w=ge("spread",a.innerShadow,t,r,o),w&&A.push(w),v=we("offset",a.innerShadow,t,r,o),v&&A.push(v)}if(a instanceof e||a instanceof r){let t={...n.backgroundBlur},r={...i.backgroundBlur};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.backgroundBlur.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),r.enabled||Object.assign(r,{enabled:!0,radius:0})),S=ge("radius",a.backgroundBlur,t,r,o),S&&A.push(S)}if(a instanceof e){let t={...n.layerBlur},r={...i.layerBlur};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.layerBlur.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),r.enabled||Object.assign(r,{enabled:!0,radius:0})),j=ge("radius",a.layerBlur,t,r,o),j&&A.push(j)}if(a instanceof r||a instanceof t){let e=me("cornerRadius",a,n,i,o);e&&A.push(e)}return A}(a,n,d,0,c.shared)):(a.data.visible&&h.push(...function(e,t,r,a){let n=[];if(!("cloner"in r)||!e.cloner)return n;let i=e.cloner,s="cloner"in t?t.cloner:{},o=r.cloner;D.forEach(e=>{let t;t="count"===e?ge("count",i.parameters,s,o,a.shared,!0):je(e,i.parameters,s??{},o,a.shared),t&&n.push(t)});let l=function(e,t,r,a){if("radial"!==e.parameters.type)return;let n=t.radial,i=r.radial;if(!i)return;let s=e.parameters.radial,o=[];return R.forEach(e=>{let t=je(e,s,n??{},i,a);t&&o.push(t)}),o}(i,s,o,a.shared);l?.length&&n.push(...l);let u=function(e,t,r,a){if("linear"!==e.parameters.type)return;let n=t.linear,i=r.linear;if(!i)return;let s=[],o=e.parameters.linear;return k.forEach(e=>{let t=je(e,o,n??{},i,a);t&&s.push(t)}),s}(i,s,o,a.shared);u?.length&&n.push(...u);let d=function(e,t,r,a){if("grid"!==e.parameters.type)return;let n=t.grid,i=r.grid;if(!i)return;let s=[],o=e.parameters.grid;return x.forEach(e=>{let t;t="count"===e?me(e,o,n??{},i,a,!0):je(e,o,n??{},i,a),t&&s.push(t)}),s}(i,s,o,a.shared);d?.length&&n.push(...d);let c=function(e,t,r,a){if("toObject"!==e.parameters.type)return;let n=t.toObject,i=r.toObject;if(!i)return;let s=[],o=e.parameters.toObject;return E.forEach(e=>{let t;t="count"===e?ge(e,o,n??{},i,a,!0):je(e,o,n??{},i,a),t&&s.push(t)}),s}(i,s,o,a.shared);c?.length&&n.push(...c);let p=function(e,t,r,a){if(!e.parameters.randomness)return;let n=t.randomnessObject,i=r.randomnessObject;if(!i)return;let s=[],o=e.parameters.randomnessObject;return O.forEach(e=>{let t=je(e,o,n??{},i,a);t&&s.push(t)}),s}(i,s,o,a.shared);return p?.length&&n.push(...p),n.length&&n.push({update:()=>{i.update(a)}}),n}(a,n,d,c)),a instanceof m?(a instanceof g&&a.data.visible&&h.push(...function(e,t,r,a){let n=[];if(!("geometry"in r)||v(e))return n;let i=e.geometry.userData.parameters,s="geometry"in t?t.geometry:{},o=r.geometry;if(e instanceof u){let t=function(e,t,r,a){if(void 0===r.scaleBaked)return;let n=(t.scaleBaked??e.appliedGeometrySize??e.data.geometry.scaleBaked).map(e=>"string"==typeof e?Number(a.shared.getVariable(e)??0):e),i=r.scaleBaked.map(e=>"string"==typeof e?Number(a.shared.getVariable(e)??0):e);if(j.isEqual(n,i))return;let s=[];return s.push({update:t=>{e.updateGeometryInteractions({scaleBaked:[N.lerp(n[0],i[0],t),N.lerp(n[1],i[1],t),N.lerp(n[2],i[2],t)]},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)},start:()=>{e.updateGeometryInteractions({scaleBaked:n},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)},end:()=>{e.updateGeometryInteractions({scaleBaked:i},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)}}),s}(e,s,o,a);t&&n.push(...t)}else{let t={},r=e.appliedGeometrySize;if(Object.assign(t,y(i,P),r?{width:r[0],height:r[1],depth:r[2]}:{},y(s,P)),P.forEach(e=>{let r=je(e,t,s,o,a.shared);r&&n.push(r)}),w(e)){Object.assign(t,{extrusion:{...i.extrusion}});let e=function(e,t,r,a){if(!r.extrusion)return;let n=e.extrusion,i=t.extrusion??{},s=r.extrusion,o=[];return C.forEach(e=>{let t=je(e,n,i,s,a);t&&o.push(t)}),o}(t,s,o,a.shared);e&&n.push(...e)}n.length&&n.push({update:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)},start:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)},end:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)}})}return n}(a,n,d,c)),a.data.visible&&!(a instanceof f&&a.materialOverride)&&h.push(...function(e,t,r,a){let n=[];if(Array.isArray(e.material)){if(!("materials"in r)||!r.materials)return n;let i="materials"in t&&t.materials?t.materials:[],s=r.materials;e.material.forEach((e,t)=>{if(!s[t])return;let r=i[t]??{},o=s[t];"string"==typeof r||"string"==typeof o||n.push(...De(e,r,o,a))})}else{if(!("material"in r)||!r.material)return n;let i="material"in t&&t.material?t.material:{},s=r.material;if("string"==typeof i||"string"==typeof s)return n;n.push(...De(e.material,i,s,a))}return n}(a,n,d,c.shared))):i.is(a)?a.data.visible&&h.push(...function(e,t,r,a){let n=[];if(void 0!==r.intensity){let i=ge("intensity",e,t,r,a);i&&n.push(i)}if(void 0!==r.color){let i=function(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=i?"string"==typeof i?n.getColor(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.getColor(s).clone():(new W).setRGB(s.r,s.g,s.b);if(l.equals(u))return;let d=o.clone();return{update:r=>{d.lerpColors(l,u,r),t[e]?.copy?.(d)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}("color",e,t,r,a);i&&n.push(i)}return n}(a,n,d,c.shared)):a instanceof l&&h.push(...function(e,t,r,a){let n=[],i="OrthographicCamera"===e.cameraType?t.orthographic?.zoom:t.perspective?.zoom,s="OrthographicCamera"===e.cameraType?r.orthographic?.zoom:r.perspective?.zoom;if(void 0!==s){let t=i??e.zoom,r=s;t!==r&&n.push({update:a=>{e.zoom=N.lerp(t,r,a),e.updateProjectionMatrix()},start:()=>{e.zoom=t,e.updateProjectionMatrix()},end:()=>{e.zoom=r,e.updateProjectionMatrix()}})}if(void 0!==r.targetOffset){let i=ge("targetOffset",e,t,r,a);i&&n.push(i)}return n}(a,n,d,c.shared))),h.length?{update:e=>{h.forEach(t=>t.update(e))},start:e=>{h.forEach(t=>t.start?.(e))},end:e=>{h.forEach(t=>t.end?.(e))}}:void 0}var Pe={type:"beginState"};function Ge(e){if(5===e.easing){let{control1:t,control2:r}=e;return{easing:5,control1:t??M.defaultData.control1,control2:r??M.defaultData.control2}}if(6===e.easing){let{mass:t,stiffness:r,damping:a,velocity:n}=e;return{easing:6,mass:t??V.defaultData.mass,stiffness:r??V.defaultData.stiffness,damping:a??V.defaultData.damping,velocity:n??V.defaultData.velocity}}return{easing:e.easing}}function Ne(e){return{delay:e.delay,delayDirection:e.delayDirection??"start-end",direction:e.direction??"normal",repeat:e.repeat}}var Fe={type:"completeState",isfromEntity:!1};function Ie(e,t){let r,a;if("string"==typeof t?(r=t,a=e.states?.[r]):null===t&&(r=null,a=e.data),void 0!==r&&void 0!==a)return{id:r,data:a}}var ze=["position","rotation","scale","shear","hiddenMatrix"],Te=new Set;function qe(e){if(e.length<2)return Te;let t=new Set,[r,...a]=e;for(let e of ze){let n=r[e];void 0!==n&&a.every(t=>b(t[e],n))&&t.add(e)}return t}var We=class{constructor(e,t,r,a,n,i,s,o={},l=()=>Te){var u;this.object=e,this.fromRef=t,this.toRef=r,this.data=a,this.sharedAssets=n,this.allowSlerp=i,this.page=s,this.hooks=o,this.inert=l,this.builtReversed=!1,this.startStateId=null,this.buildCallback=()=>{this.builtReversed=this.runner.isReversed,this.startStateId=S(this.object)?null:this.object.transitionState.state,this.callback=Ce(this.object,{},function(e,t){if(0===t.size)return e;let r={...e};for(let e of t)delete r[e];return r}(this.end.data,this.inert()),{scene:this.page.scene,shared:this.sharedAssets},this.allowSlerp)},this.onChange=e=>{this.builtReversed!==this.runner.isReversed&&this.buildCallback(),this.callback&&(this.callback.update(e),this.object.requestRender()),this.writeState(e)},this.runner=new ue({duration:(u=a).duration,ease:Ge(u),...Ne(u)},this.onChange,this.buildCallback),this.rebind()}rebind(){let{fromRef:e,toRef:t}=this;if(void 0===e){let e=Ie(this.object,this.object.currentState===t?this.object.prevState:this.object.currentState);if(!e)throw new Error("Missing property");this.from=e}else{let t=Ie(this.object,e);if(!t)throw new Error("Missing property");this.from=t}if(void 0===t)throw new Error("Missing property");let r=Ie(this.object,t);if(!r)throw new Error("Missing property");this.to=r,this.buildCallback()}refresh(){this.buildCallback()}get endpointData(){return[this.from.data,this.to.data]}get targetStateId(){return this.builtReversed?this.from.id:this.to.id}get start(){return this.builtReversed?this.to:this.from}get end(){return this.builtReversed?this.from:this.to}writeState(e){if(0===e||S(this.object))return;let t=1===e,r=e>.5?this.targetStateId:this.startStateId,a=this.object.transitionState;a.settled===t&&a.state===r||(this.object.transitionState={settled:t,state:r},this.object.reversibleToState=this.end.id,this.object.prevState!==this.object.currentState&&(this.object.prevState=this.object.currentState),this.object.currentState=r,this.object.dispatchEvent({type:"transitionState",settled:t,state:r}),this.object.dispatchEvent({type:t?"completeState":"beginState",state:r}),this.object.traverseEntity(e=>{e!==this.object&&e instanceof l&&e.dispatchEvent(t?Fe:Pe)}),t?this.hooks.onComplete?.(r):this.hooks.onBegin?.(r))}};export{oe as a,ue as b,Ve as c,Oe as d,Be as e,Re as f,Pe as g,Ge as h,Ne as i,Fe as j,Ie as k,Te as l,qe as m,We as n};
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{a as e,b as t}from"./runtime-chunk-JQLDHAYK.js";import{b as a,e as i,g as s}from"./runtime-chunk-5FYCQZIK.js";import{a as r}from"./runtime-chunk-TU4KDRKR.js";import{a as n}from"./runtime-chunk-O35HY6GE.js";import{a as l,b as o}from"./runtime-chunk-EHM6N6MH.js";import{Y as h,d as u,e as c,i as d,ia as p}from"./runtime-chunk-WKBLSXWK.js";import{b as y,h as m,j as f,v as g}from"./runtime-chunk-LMDWFYT4.js";import{c as b}from"./runtime-chunk-2PT2WH66.js";import{c as v,l as C}from"./runtime-chunk-TZCHGFVF.js";import{pa as S,sa as k,w as A,ya as w}from"./runtime-chunk-JBTA64YE.js";import{Ne as F,Oc as L,Tc as H,Uc as O,Vc as j,cd as B,jd as M,ld as T,ve as D}from"./runtime-chunk-BVVSZMXD.js";function U(e){return e instanceof p&&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 E(e){return e.getLayersOfType("reflection").filter(e=>e.data.visible).length}function x(e){return e.getLayersOfType("reflection").some(e=>e.data.visible&&1===e.data.mirror)}function I(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 s="number"==typeof e.blur?e.blur:null;t=Math.min(t,s??0),a=Math.max(a,s??10)}return t===1/0?null:{min:t,max:a}}function P(e){for(let t of e.getLayersOfType("reflection")){let e=t.data;if(!e.visible)continue;let{blur:a,thickness:i,steps:s,stepSize:r}=e;return"number"!=typeof a||"number"!=typeof i||"number"!=typeof s||"number"!=typeof r?"variable":{blur:a,thickness:i,steps:s,stepSize:r,tracingMode:1===e.tracingMode?1:0}}return null}function W(e,t){let a={outline:!1,cavity:!1},i=512&e.layers.mask,s=t.getLayersOfType("transmission"),r=t.getLayersOfType("outline"),n=E(t),h=t.getLayersOfType("cavity");return(r.length>0||h.length>0)&&(e.layers.set(8),s.length>0&&e.layers.enable(3),n>0&&e.layers.enable(4),a.outline=r.length>0,a.cavity=h.length>0,o(e),l(e)),0===s.length&&0===r.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,s=t.getLayersOfType("transmission").filter(e=>e.data.visible),r=t.getLayersOfType("outline").filter(e=>e.data.visible),n=E(t),l=t.getLayersOfType("cavity").filter(e=>e.data.visible);return s.length>0&&(e.layers.set(3),(r.length>0||l.length>0)&&e.layers.enable(8),n>0&&e.layers.enable(4),i=!0),0===s.length&&0===r.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 K(e,t){var a;if(!t.layers)return!1;let i=512&e.layers.mask,s=!1,r=E(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 r>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),s=!0),0===r&&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),s}function Y(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 p)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 p)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 p)if(Array.isArray(e.material))for(let a=0;a<e.material.length;a++)K(e,e.material[a])&&(t=!0);else K(e,e.material)&&(t=!0)}),t}var Q=new F,R=new L,Z=new M,J=new B;function N(e,t,a,i=!1){let s=e.cloner;if(s){let r=null;if(e.raycast===T.prototype.raycast||e.raycast===g.prototype.raycast){let t=e.geometry;t&&(null===t.boundingSphere&&t.computeBoundingSphere(),r=t.boundingSphere)}for(let n of s.children){if(null!==r&&(J.copy(r).applyMatrix4(n.matrixWorld),!t.ray.intersectsSphere(J)))continue;let s=R.copy(n.matrixWorld).invert(),l=Z.copy(t.ray).applyMatrix4(s),o=e.matrixWorld;l.applyMatrix4(o);let h=Q;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 X=class extends(f(j)){constructor(e,t,a){if(super(),this.data=t,this.bgColor=new d(1,1,1,1),this.fog=null,this.backupFog=new O(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 H,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=r(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 p)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=r(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=r(e.aoColor,t))}updateByOp(e,t,a,i){let s=this.data.uiFrame;super.updateByOp(e,t,a,i);let r=t;y(e.path,["fog"])?this.updateFog(r.fog,a.shared):y(e.path,["sky"])?this.updateSky(r.sky,a.shared):y(e.path,["grading"])?this.gradingState=r.grading??null:y(e.path,["ao"])?this.updateAo(r.ao,a.shared):y(e.path,["ambient"])?this.updateAmbientLight(r.ambient,a.shared):y(e.path,["shadow"])?this.updateShadow(r.shadow):0===e.type&&0===e.path.length&&(void 0!==e.props.uiFrame||s!==r.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(r(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 instanceof n&&e.isDescendantOf(this)&&(this.activeCamera!==this.personalCamera&&(this.activeCamera.objectHelper.visible=!0),this.activeCamera=e,e.objectHelper.visible=!1)}get playCamera(){let e=this.scene?.find(this.data.publish.playCamera);return e instanceof n?e: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(s=>{if(!s.visible)return!0;s instanceof e&&s.visible&&a<c&&(this.penumbraSizeArrayCache[a]=s.data.penumbraSize??.5,a+=1),s instanceof t&&s.visible&&a<u-c&&(this.penumbraSizeArrayCache[c+i]=s.data.penumbraSize??.5,i+=1)})}raycastWithClones(e){let t=[],a=r=>{for(let n of r.children){let r=n.cloner;m.is(n)&&(n.visible||r?.object.data.visible)&&((i(n)||s(n)&&this.scene.enableHelpers&&n.objectHelper.visible)&&(e.intersectObject(n,!1,t),N(n,e,t,!0)),a(n))}};return a(this),t}updateEntity2DByOp(e,t,a,i){this.uiCanvas?.updateEntity2DByOp(e,t,a,i)}};export{x as a,I as b,P as c,Y as d,_ as e,G as f,N as g,X as h};
Binary file
Binary file