@babylonjs/viewer 7.32.4-alpha → 7.32.4

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 (587) hide show
  1. package/configuration/configuration.d.ts +107 -0
  2. package/configuration/configuration.js +16 -0
  3. package/configuration/configuration.js.map +1 -0
  4. package/configuration/configurationCompatibility.d.ts +8 -0
  5. package/configuration/configurationCompatibility.js +66 -0
  6. package/configuration/configurationCompatibility.js.map +1 -0
  7. package/configuration/configurationContainer.d.ts +10 -0
  8. package/configuration/configurationContainer.js +10 -0
  9. package/configuration/configurationContainer.js.map +1 -0
  10. package/configuration/globals.d.ts +6 -0
  11. package/configuration/globals.js +18 -0
  12. package/configuration/globals.js.map +1 -0
  13. package/configuration/index.d.ts +2 -0
  14. package/configuration/index.js +4 -0
  15. package/configuration/index.js.map +1 -0
  16. package/configuration/interfaces/cameraConfiguration.d.ts +31 -0
  17. package/configuration/interfaces/cameraConfiguration.js +2 -0
  18. package/configuration/interfaces/cameraConfiguration.js.map +1 -0
  19. package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -0
  20. package/configuration/interfaces/colorGradingConfiguration.js +2 -0
  21. package/configuration/interfaces/colorGradingConfiguration.js.map +1 -0
  22. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -0
  23. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +2 -0
  24. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +1 -0
  25. package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -0
  26. package/configuration/interfaces/environmentMapConfiguration.js +2 -0
  27. package/configuration/interfaces/environmentMapConfiguration.js.map +1 -0
  28. package/configuration/interfaces/groundConfiguration.d.ts +24 -0
  29. package/configuration/interfaces/groundConfiguration.js +2 -0
  30. package/configuration/interfaces/groundConfiguration.js.map +1 -0
  31. package/configuration/interfaces/imageProcessingConfiguration.d.ts +45 -0
  32. package/configuration/interfaces/imageProcessingConfiguration.js +2 -0
  33. package/configuration/interfaces/imageProcessingConfiguration.js.map +1 -0
  34. package/configuration/interfaces/index.d.ts +15 -0
  35. package/configuration/interfaces/index.js +16 -0
  36. package/configuration/interfaces/index.js.map +1 -0
  37. package/configuration/interfaces/lightConfiguration.d.ts +60 -0
  38. package/configuration/interfaces/lightConfiguration.js +2 -0
  39. package/configuration/interfaces/lightConfiguration.js.map +1 -0
  40. package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -0
  41. package/configuration/interfaces/modelAnimationConfiguration.js +2 -0
  42. package/configuration/interfaces/modelAnimationConfiguration.js.map +1 -0
  43. package/configuration/interfaces/modelConfiguration.d.ts +65 -0
  44. package/configuration/interfaces/modelConfiguration.js +2 -0
  45. package/configuration/interfaces/modelConfiguration.js.map +1 -0
  46. package/configuration/interfaces/observersConfiguration.d.ts +5 -0
  47. package/configuration/interfaces/observersConfiguration.js +2 -0
  48. package/configuration/interfaces/observersConfiguration.js.map +1 -0
  49. package/configuration/interfaces/sceneConfiguration.d.ts +48 -0
  50. package/configuration/interfaces/sceneConfiguration.js +2 -0
  51. package/configuration/interfaces/sceneConfiguration.js.map +1 -0
  52. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -0
  53. package/configuration/interfaces/sceneOptimizerConfiguration.js +2 -0
  54. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +1 -0
  55. package/configuration/interfaces/skyboxConfiguration.d.ts +21 -0
  56. package/configuration/interfaces/skyboxConfiguration.js +2 -0
  57. package/configuration/interfaces/skyboxConfiguration.js.map +1 -0
  58. package/configuration/interfaces/templateConfiguration.d.ts +67 -0
  59. package/configuration/interfaces/templateConfiguration.js +2 -0
  60. package/configuration/interfaces/templateConfiguration.js.map +1 -0
  61. package/configuration/interfaces/vrConfiguration.d.ts +16 -0
  62. package/configuration/interfaces/vrConfiguration.js +2 -0
  63. package/configuration/interfaces/vrConfiguration.js.map +1 -0
  64. package/configuration/loader.d.ts +4 -0
  65. package/configuration/loader.js +17 -0
  66. package/configuration/loader.js.map +1 -0
  67. package/configuration/mappers.d.ts +43 -0
  68. package/configuration/mappers.js +192 -0
  69. package/configuration/mappers.js.map +1 -0
  70. package/configuration/renderOnlyLoader.d.ts +33 -0
  71. package/configuration/renderOnlyLoader.js +162 -0
  72. package/configuration/renderOnlyLoader.js.map +1 -0
  73. package/configuration/types/default.d.ts +6 -0
  74. package/configuration/types/default.js +121 -0
  75. package/configuration/types/default.js.map +1 -0
  76. package/configuration/types/environmentMap.d.ts +5 -0
  77. package/configuration/types/environmentMap.js +14 -0
  78. package/configuration/types/environmentMap.js.map +1 -0
  79. package/configuration/types/extended.d.ts +6 -0
  80. package/configuration/types/extended.js +317 -0
  81. package/configuration/types/extended.js.map +1 -0
  82. package/configuration/types/index.d.ts +14 -0
  83. package/configuration/types/index.js +51 -0
  84. package/configuration/types/index.js.map +1 -0
  85. package/configuration/types/minimal.d.ts +6 -0
  86. package/configuration/types/minimal.js +43 -0
  87. package/configuration/types/minimal.js.map +1 -0
  88. package/configuration/types/renderOnlyDefault.d.ts +30 -0
  89. package/configuration/types/renderOnlyDefault.js +31 -0
  90. package/configuration/types/renderOnlyDefault.js.map +1 -0
  91. package/configuration/types/shadowLight.d.ts +9 -0
  92. package/configuration/types/shadowLight.js +64 -0
  93. package/configuration/types/shadowLight.js.map +1 -0
  94. package/helper/index.d.ts +29 -0
  95. package/helper/index.js +66 -0
  96. package/helper/index.js.map +1 -0
  97. package/index.d.ts +30 -0
  98. package/index.js +46 -0
  99. package/index.js.map +1 -0
  100. package/initializer.d.ts +11 -0
  101. package/initializer.js +35 -0
  102. package/initializer.js.map +1 -0
  103. package/interfaces.d.ts +5 -0
  104. package/interfaces.js +7 -0
  105. package/interfaces.js.map +1 -0
  106. package/labs/environmentSerializer.d.ts +126 -0
  107. package/labs/environmentSerializer.js +191 -0
  108. package/labs/environmentSerializer.js.map +1 -0
  109. package/labs/texture.d.ts +183 -0
  110. package/labs/texture.js +350 -0
  111. package/labs/texture.js.map +1 -0
  112. package/labs/viewerLabs.d.ts +51 -0
  113. package/labs/viewerLabs.js +134 -0
  114. package/labs/viewerLabs.js.map +1 -0
  115. package/loader/modelLoader.d.ts +56 -0
  116. package/loader/modelLoader.js +199 -0
  117. package/loader/modelLoader.js.map +1 -0
  118. package/loader/plugins/applyMaterialConfig.d.ts +12 -0
  119. package/loader/plugins/applyMaterialConfig.js +16 -0
  120. package/loader/plugins/applyMaterialConfig.js.map +1 -0
  121. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -0
  122. package/loader/plugins/extendedMaterialLoaderPlugin.js +16 -0
  123. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +1 -0
  124. package/loader/plugins/index.d.ts +19 -0
  125. package/loader/plugins/index.js +44 -0
  126. package/loader/plugins/index.js.map +1 -0
  127. package/loader/plugins/loaderPlugin.d.ts +24 -0
  128. package/loader/plugins/loaderPlugin.js +2 -0
  129. package/loader/plugins/loaderPlugin.js.map +1 -0
  130. package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -0
  131. package/loader/plugins/msftLodLoaderPlugin.js +21 -0
  132. package/loader/plugins/msftLodLoaderPlugin.js.map +1 -0
  133. package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -0
  134. package/loader/plugins/telemetryLoaderPlugin.js +36 -0
  135. package/loader/plugins/telemetryLoaderPlugin.js.map +1 -0
  136. package/managers/observablesManager.d.ts +66 -0
  137. package/managers/observablesManager.js +35 -0
  138. package/managers/observablesManager.js.map +1 -0
  139. package/managers/sceneManager.d.ts +245 -0
  140. package/managers/sceneManager.js +1375 -0
  141. package/managers/sceneManager.js.map +1 -0
  142. package/managers/telemetryManager.d.ts +78 -0
  143. package/managers/telemetryManager.js +117 -0
  144. package/managers/telemetryManager.js.map +1 -0
  145. package/model/modelAnimation.d.ts +215 -0
  146. package/model/modelAnimation.js +237 -0
  147. package/model/modelAnimation.js.map +1 -0
  148. package/model/viewerModel.d.ts +233 -0
  149. package/model/viewerModel.js +673 -0
  150. package/model/viewerModel.js.map +1 -0
  151. package/optimizer/custom/extended.d.ts +13 -0
  152. package/optimizer/custom/extended.js +101 -0
  153. package/optimizer/custom/extended.js.map +1 -0
  154. package/optimizer/custom/index.d.ts +9 -0
  155. package/optimizer/custom/index.js +26 -0
  156. package/optimizer/custom/index.js.map +1 -0
  157. package/package.json +27 -18
  158. package/readme.md +21 -145
  159. package/renderOnlyIndex.d.ts +11 -0
  160. package/renderOnlyIndex.js +18 -0
  161. package/renderOnlyIndex.js.map +1 -0
  162. package/templating/eventManager.d.ts +35 -0
  163. package/templating/eventManager.js +66 -0
  164. package/templating/eventManager.js.map +1 -0
  165. package/templating/plugins/hdButtonPlugin.d.ts +9 -0
  166. package/templating/plugins/hdButtonPlugin.js +21 -0
  167. package/templating/plugins/hdButtonPlugin.js.map +1 -0
  168. package/templating/plugins/printButton.d.ts +9 -0
  169. package/templating/plugins/printButton.js +40 -0
  170. package/templating/plugins/printButton.js.map +1 -0
  171. package/templating/templateManager.d.ts +197 -0
  172. package/templating/templateManager.js +561 -0
  173. package/templating/templateManager.js.map +1 -0
  174. package/templating/viewerTemplatePlugin.d.ts +21 -0
  175. package/templating/viewerTemplatePlugin.js +69 -0
  176. package/templating/viewerTemplatePlugin.js.map +1 -0
  177. package/viewer/defaultViewer.d.ts +130 -0
  178. package/viewer/defaultViewer.js +672 -0
  179. package/viewer/defaultViewer.js.map +1 -0
  180. package/viewer/renderOnlyViewer.d.ts +9 -0
  181. package/viewer/renderOnlyViewer.js +46 -0
  182. package/viewer/renderOnlyViewer.js.map +1 -0
  183. package/viewer/viewer.d.ts +258 -0
  184. package/viewer/viewer.js +783 -0
  185. package/viewer/viewer.js.map +1 -0
  186. package/viewer/viewerManager.d.ts +58 -0
  187. package/viewer/viewerManager.js +91 -0
  188. package/viewer/viewerManager.js.map +1 -0
  189. package/viewer/viewerWithTemplate.d.ts +9 -0
  190. package/viewer/viewerWithTemplate.js +20 -0
  191. package/viewer/viewerWithTemplate.js.map +1 -0
  192. package/assets/photoStudio.env +0 -0
  193. package/dist/babylon-viewer.esm.js +0 -2
  194. package/dist/babylon-viewer.esm.js.map +0 -1
  195. package/dist/babylon-viewer.esm.min.js +0 -2
  196. package/dist/babylon-viewer.esm.min.js.map +0 -1
  197. package/dist/chunks/EXT_lights_image_based-ZxCC8nGH.esm.min.js +0 -2
  198. package/dist/chunks/EXT_lights_image_based-ZxCC8nGH.esm.min.js.map +0 -1
  199. package/dist/chunks/EXT_lights_image_based-jIYFBmxr.esm.js +0 -171
  200. package/dist/chunks/EXT_lights_image_based-jIYFBmxr.esm.js.map +0 -1
  201. package/dist/chunks/EXT_mesh_gpu_instancing-CLa_-Jvi.esm.js +0 -86
  202. package/dist/chunks/EXT_mesh_gpu_instancing-CLa_-Jvi.esm.js.map +0 -1
  203. package/dist/chunks/EXT_mesh_gpu_instancing-D_1fkPFG.esm.min.js +0 -2
  204. package/dist/chunks/EXT_mesh_gpu_instancing-D_1fkPFG.esm.min.js.map +0 -1
  205. package/dist/chunks/EXT_meshopt_compression-B9hgOFUY.esm.js +0 -134
  206. package/dist/chunks/EXT_meshopt_compression-B9hgOFUY.esm.js.map +0 -1
  207. package/dist/chunks/EXT_meshopt_compression-DgFFrC2o.esm.min.js +0 -2
  208. package/dist/chunks/EXT_meshopt_compression-DgFFrC2o.esm.min.js.map +0 -1
  209. package/dist/chunks/EXT_texture_avif-C4llft5I.esm.min.js +0 -2
  210. package/dist/chunks/EXT_texture_avif-C4llft5I.esm.min.js.map +0 -1
  211. package/dist/chunks/EXT_texture_avif-CZz89FSb.esm.js +0 -44
  212. package/dist/chunks/EXT_texture_avif-CZz89FSb.esm.js.map +0 -1
  213. package/dist/chunks/EXT_texture_webp-BLkz7CQu.esm.min.js +0 -2
  214. package/dist/chunks/EXT_texture_webp-BLkz7CQu.esm.min.js.map +0 -1
  215. package/dist/chunks/EXT_texture_webp-zLKuKDTb.esm.js +0 -43
  216. package/dist/chunks/EXT_texture_webp-zLKuKDTb.esm.js.map +0 -1
  217. package/dist/chunks/ExtrasAsMetadata-Cp8x7GPL.esm.js +0 -64
  218. package/dist/chunks/ExtrasAsMetadata-Cp8x7GPL.esm.js.map +0 -1
  219. package/dist/chunks/ExtrasAsMetadata-D0UlqiOb.esm.min.js +0 -2
  220. package/dist/chunks/ExtrasAsMetadata-D0UlqiOb.esm.min.js.map +0 -1
  221. package/dist/chunks/KHR_animation_pointer-BRAkvMH_.esm.js +0 -343
  222. package/dist/chunks/KHR_animation_pointer-BRAkvMH_.esm.js.map +0 -1
  223. package/dist/chunks/KHR_animation_pointer-CRTQWu9W.esm.min.js +0 -2
  224. package/dist/chunks/KHR_animation_pointer-CRTQWu9W.esm.min.js.map +0 -1
  225. package/dist/chunks/KHR_draco_mesh_compression-CId2nuCk.esm.js +0 -610
  226. package/dist/chunks/KHR_draco_mesh_compression-CId2nuCk.esm.js.map +0 -1
  227. package/dist/chunks/KHR_draco_mesh_compression-HUKEVQ_-.esm.min.js +0 -2
  228. package/dist/chunks/KHR_draco_mesh_compression-HUKEVQ_-.esm.min.js.map +0 -1
  229. package/dist/chunks/KHR_interactivity-CIda2cSk.esm.js +0 -4033
  230. package/dist/chunks/KHR_interactivity-CIda2cSk.esm.js.map +0 -1
  231. package/dist/chunks/KHR_interactivity-Ds7setGl.esm.min.js +0 -2
  232. package/dist/chunks/KHR_interactivity-Ds7setGl.esm.min.js.map +0 -1
  233. package/dist/chunks/KHR_lights_punctual-BMpCy8cq.esm.min.js +0 -2
  234. package/dist/chunks/KHR_lights_punctual-BMpCy8cq.esm.min.js.map +0 -1
  235. package/dist/chunks/KHR_lights_punctual-pCOHamUn.esm.js +0 -1253
  236. package/dist/chunks/KHR_lights_punctual-pCOHamUn.esm.js.map +0 -1
  237. package/dist/chunks/KHR_materials_anisotropy-DZPTrAH7.esm.min.js +0 -2
  238. package/dist/chunks/KHR_materials_anisotropy-DZPTrAH7.esm.min.js.map +0 -1
  239. package/dist/chunks/KHR_materials_anisotropy-DgHRn9UN.esm.js +0 -65
  240. package/dist/chunks/KHR_materials_anisotropy-DgHRn9UN.esm.js.map +0 -1
  241. package/dist/chunks/KHR_materials_clearcoat-BWEAguQY.esm.min.js +0 -2
  242. package/dist/chunks/KHR_materials_clearcoat-BWEAguQY.esm.min.js.map +0 -1
  243. package/dist/chunks/KHR_materials_clearcoat-WWrnKg5I.esm.js +0 -96
  244. package/dist/chunks/KHR_materials_clearcoat-WWrnKg5I.esm.js.map +0 -1
  245. package/dist/chunks/KHR_materials_diffuse_transmission-CyvK1i8y.esm.min.js +0 -2
  246. package/dist/chunks/KHR_materials_diffuse_transmission-CyvK1i8y.esm.min.js.map +0 -1
  247. package/dist/chunks/KHR_materials_diffuse_transmission-DF-WNJby.esm.js +0 -97
  248. package/dist/chunks/KHR_materials_diffuse_transmission-DF-WNJby.esm.js.map +0 -1
  249. package/dist/chunks/KHR_materials_dispersion-Bt1xU5AH.esm.js +0 -62
  250. package/dist/chunks/KHR_materials_dispersion-Bt1xU5AH.esm.js.map +0 -1
  251. package/dist/chunks/KHR_materials_dispersion-Df4Otak6.esm.min.js +0 -2
  252. package/dist/chunks/KHR_materials_dispersion-Df4Otak6.esm.min.js.map +0 -1
  253. package/dist/chunks/KHR_materials_emissive_strength-BYW6q6RC.esm.min.js +0 -2
  254. package/dist/chunks/KHR_materials_emissive_strength-BYW6q6RC.esm.min.js.map +0 -1
  255. package/dist/chunks/KHR_materials_emissive_strength-jtd5_jVg.esm.js +0 -55
  256. package/dist/chunks/KHR_materials_emissive_strength-jtd5_jVg.esm.js.map +0 -1
  257. package/dist/chunks/KHR_materials_ior-DGDpfwVR.esm.min.js +0 -2
  258. package/dist/chunks/KHR_materials_ior-DGDpfwVR.esm.min.js.map +0 -1
  259. package/dist/chunks/KHR_materials_ior-Y3LtBj2N.esm.js +0 -64
  260. package/dist/chunks/KHR_materials_ior-Y3LtBj2N.esm.js.map +0 -1
  261. package/dist/chunks/KHR_materials_iridescence-2wuKI5RA.esm.js +0 -72
  262. package/dist/chunks/KHR_materials_iridescence-2wuKI5RA.esm.js.map +0 -1
  263. package/dist/chunks/KHR_materials_iridescence-BJyAgv35.esm.min.js +0 -2
  264. package/dist/chunks/KHR_materials_iridescence-BJyAgv35.esm.min.js.map +0 -1
  265. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Ba9xqrYk.esm.js +0 -81
  266. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Ba9xqrYk.esm.js.map +0 -1
  267. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CHCgAnSZ.esm.min.js +0 -2
  268. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CHCgAnSZ.esm.min.js.map +0 -1
  269. package/dist/chunks/KHR_materials_sheen-BX_OcTwf.esm.js +0 -85
  270. package/dist/chunks/KHR_materials_sheen-BX_OcTwf.esm.js.map +0 -1
  271. package/dist/chunks/KHR_materials_sheen-DVuQ9AQX.esm.min.js +0 -2
  272. package/dist/chunks/KHR_materials_sheen-DVuQ9AQX.esm.min.js.map +0 -1
  273. package/dist/chunks/KHR_materials_specular-Cm4CPhLP.esm.min.js +0 -2
  274. package/dist/chunks/KHR_materials_specular-Cm4CPhLP.esm.min.js.map +0 -1
  275. package/dist/chunks/KHR_materials_specular-DjbHVUSj.esm.js +0 -75
  276. package/dist/chunks/KHR_materials_specular-DjbHVUSj.esm.js.map +0 -1
  277. package/dist/chunks/KHR_materials_transmission-CYcDIhaH.esm.min.js +0 -2
  278. package/dist/chunks/KHR_materials_transmission-CYcDIhaH.esm.min.js.map +0 -1
  279. package/dist/chunks/KHR_materials_transmission-zVYPbnUr.esm.js +0 -307
  280. package/dist/chunks/KHR_materials_transmission-zVYPbnUr.esm.js.map +0 -1
  281. package/dist/chunks/KHR_materials_unlit-AunZ5_bV.esm.min.js +0 -2
  282. package/dist/chunks/KHR_materials_unlit-AunZ5_bV.esm.min.js.map +0 -1
  283. package/dist/chunks/KHR_materials_unlit-CnS7Ldwb.esm.js +0 -74
  284. package/dist/chunks/KHR_materials_unlit-CnS7Ldwb.esm.js.map +0 -1
  285. package/dist/chunks/KHR_materials_variants-DD9E67d8.esm.min.js +0 -2
  286. package/dist/chunks/KHR_materials_variants-DD9E67d8.esm.min.js.map +0 -1
  287. package/dist/chunks/KHR_materials_variants-RP8JJMGZ.esm.js +0 -238
  288. package/dist/chunks/KHR_materials_variants-RP8JJMGZ.esm.js.map +0 -1
  289. package/dist/chunks/KHR_materials_volume-CjKKarS5.esm.js +0 -87
  290. package/dist/chunks/KHR_materials_volume-CjKKarS5.esm.js.map +0 -1
  291. package/dist/chunks/KHR_materials_volume-DPB36cxh.esm.min.js +0 -2
  292. package/dist/chunks/KHR_materials_volume-DPB36cxh.esm.min.js.map +0 -1
  293. package/dist/chunks/KHR_mesh_quantization-BPcszKh1.esm.min.js +0 -2
  294. package/dist/chunks/KHR_mesh_quantization-BPcszKh1.esm.min.js.map +0 -1
  295. package/dist/chunks/KHR_mesh_quantization-cxxP8igQ.esm.js +0 -26
  296. package/dist/chunks/KHR_mesh_quantization-cxxP8igQ.esm.js.map +0 -1
  297. package/dist/chunks/KHR_node_visibility-BV30a6Xl.esm.js +0 -46
  298. package/dist/chunks/KHR_node_visibility-BV30a6Xl.esm.js.map +0 -1
  299. package/dist/chunks/KHR_node_visibility-DjWzbEdZ.esm.min.js +0 -2
  300. package/dist/chunks/KHR_node_visibility-DjWzbEdZ.esm.min.js.map +0 -1
  301. package/dist/chunks/KHR_texture_basisu-BTzpDGu1.esm.js +0 -43
  302. package/dist/chunks/KHR_texture_basisu-BTzpDGu1.esm.js.map +0 -1
  303. package/dist/chunks/KHR_texture_basisu-Dr2dwgmO.esm.min.js +0 -2
  304. package/dist/chunks/KHR_texture_basisu-Dr2dwgmO.esm.min.js.map +0 -1
  305. package/dist/chunks/KHR_texture_transform-BWeooiMy.esm.min.js +0 -2
  306. package/dist/chunks/KHR_texture_transform-BWeooiMy.esm.min.js.map +0 -1
  307. package/dist/chunks/KHR_texture_transform-Be6DOCoL.esm.js +0 -63
  308. package/dist/chunks/KHR_texture_transform-Be6DOCoL.esm.js.map +0 -1
  309. package/dist/chunks/KHR_xmp_json_ld-BfFbIcP4.esm.js +0 -51
  310. package/dist/chunks/KHR_xmp_json_ld-BfFbIcP4.esm.js.map +0 -1
  311. package/dist/chunks/KHR_xmp_json_ld-C6VeHRIM.esm.min.js +0 -2
  312. package/dist/chunks/KHR_xmp_json_ld-C6VeHRIM.esm.min.js.map +0 -1
  313. package/dist/chunks/MSFT_audio_emitter-CV0oafCj.esm.min.js +0 -2
  314. package/dist/chunks/MSFT_audio_emitter-CV0oafCj.esm.min.js.map +0 -1
  315. package/dist/chunks/MSFT_audio_emitter-CZ-LfIcQ.esm.js +0 -2207
  316. package/dist/chunks/MSFT_audio_emitter-CZ-LfIcQ.esm.js.map +0 -1
  317. package/dist/chunks/MSFT_lod-BMAU-Bzw.esm.js +0 -337
  318. package/dist/chunks/MSFT_lod-BMAU-Bzw.esm.js.map +0 -1
  319. package/dist/chunks/MSFT_lod-D0tpsHHL.esm.min.js +0 -2
  320. package/dist/chunks/MSFT_lod-D0tpsHHL.esm.min.js.map +0 -1
  321. package/dist/chunks/MSFT_minecraftMesh-CH2TkSvt.esm.js +0 -46
  322. package/dist/chunks/MSFT_minecraftMesh-CH2TkSvt.esm.js.map +0 -1
  323. package/dist/chunks/MSFT_minecraftMesh-D03KKrC0.esm.min.js +0 -2
  324. package/dist/chunks/MSFT_minecraftMesh-D03KKrC0.esm.min.js.map +0 -1
  325. package/dist/chunks/MSFT_sRGBFactors-Bly0yW6v.esm.min.js +0 -2
  326. package/dist/chunks/MSFT_sRGBFactors-Bly0yW6v.esm.min.js.map +0 -1
  327. package/dist/chunks/MSFT_sRGBFactors-W4op87XT.esm.js +0 -47
  328. package/dist/chunks/MSFT_sRGBFactors-W4op87XT.esm.js.map +0 -1
  329. package/dist/chunks/animationGroup-D3FvtmQJ.esm.js +0 -2479
  330. package/dist/chunks/animationGroup-D3FvtmQJ.esm.js.map +0 -1
  331. package/dist/chunks/animationGroup-X_-EoCuA.esm.min.js +0 -2
  332. package/dist/chunks/animationGroup-X_-EoCuA.esm.min.js.map +0 -1
  333. package/dist/chunks/assetContainer-CMPFRHGv.esm.js +0 -1720
  334. package/dist/chunks/assetContainer-CMPFRHGv.esm.js.map +0 -1
  335. package/dist/chunks/assetContainer-CiEcm9CG.esm.min.js +0 -2
  336. package/dist/chunks/assetContainer-CiEcm9CG.esm.min.js.map +0 -1
  337. package/dist/chunks/audioEngine-BBwIWrAZ.esm.min.js +0 -2
  338. package/dist/chunks/audioEngine-BBwIWrAZ.esm.min.js.map +0 -1
  339. package/dist/chunks/audioEngine-DXxzFvDp.esm.js +0 -305
  340. package/dist/chunks/audioEngine-DXxzFvDp.esm.js.map +0 -1
  341. package/dist/chunks/bakedVertexAnimation-B-6SGd-2.esm.min.js +0 -2
  342. package/dist/chunks/bakedVertexAnimation-B-6SGd-2.esm.min.js.map +0 -1
  343. package/dist/chunks/bakedVertexAnimation-BThe76zu.esm.js +0 -114
  344. package/dist/chunks/bakedVertexAnimation-BThe76zu.esm.js.map +0 -1
  345. package/dist/chunks/basisTextureLoader-BVQEpWF3.esm.min.js +0 -2
  346. package/dist/chunks/basisTextureLoader-BVQEpWF3.esm.min.js.map +0 -1
  347. package/dist/chunks/basisTextureLoader-DfjGQFAP.esm.js +0 -600
  348. package/dist/chunks/basisTextureLoader-DfjGQFAP.esm.js.map +0 -1
  349. package/dist/chunks/dds-BFhUsBwT.esm.min.js +0 -2
  350. package/dist/chunks/dds-BFhUsBwT.esm.min.js.map +0 -1
  351. package/dist/chunks/dds-icNcBCOb.esm.js +0 -540
  352. package/dist/chunks/dds-icNcBCOb.esm.js.map +0 -1
  353. package/dist/chunks/ddsTextureLoader-BKh6cxU7.esm.min.js +0 -2
  354. package/dist/chunks/ddsTextureLoader-BKh6cxU7.esm.min.js.map +0 -1
  355. package/dist/chunks/ddsTextureLoader-KKxI-Nnm.esm.js +0 -88
  356. package/dist/chunks/ddsTextureLoader-KKxI-Nnm.esm.js.map +0 -1
  357. package/dist/chunks/decalFragment-DjthXKsA.esm.min.js +0 -2
  358. package/dist/chunks/decalFragment-DjthXKsA.esm.min.js.map +0 -1
  359. package/dist/chunks/decalFragment-spNX_yuu.esm.js +0 -18
  360. package/dist/chunks/decalFragment-spNX_yuu.esm.js.map +0 -1
  361. package/dist/chunks/default.fragment-CTOrvbSb.esm.js +0 -497
  362. package/dist/chunks/default.fragment-CTOrvbSb.esm.js.map +0 -1
  363. package/dist/chunks/default.fragment-CxsFoSAp.esm.min.js +0 -2
  364. package/dist/chunks/default.fragment-CxsFoSAp.esm.min.js.map +0 -1
  365. package/dist/chunks/default.fragment-n0S9o6Y-.esm.js +0 -431
  366. package/dist/chunks/default.fragment-n0S9o6Y-.esm.js.map +0 -1
  367. package/dist/chunks/default.fragment-yQbyMf0-.esm.min.js +0 -2
  368. package/dist/chunks/default.fragment-yQbyMf0-.esm.min.js.map +0 -1
  369. package/dist/chunks/default.vertex-BDaVwIfC.esm.js +0 -179
  370. package/dist/chunks/default.vertex-BDaVwIfC.esm.js.map +0 -1
  371. package/dist/chunks/default.vertex-BYRLc6t1.esm.min.js +0 -2
  372. package/dist/chunks/default.vertex-BYRLc6t1.esm.min.js.map +0 -1
  373. package/dist/chunks/default.vertex-Cz6vPCcy.esm.min.js +0 -2
  374. package/dist/chunks/default.vertex-Cz6vPCcy.esm.min.js.map +0 -1
  375. package/dist/chunks/default.vertex-DDFoUwv-.esm.js +0 -201
  376. package/dist/chunks/default.vertex-DDFoUwv-.esm.js.map +0 -1
  377. package/dist/chunks/defaultUboDeclaration-B0PSCYWh.esm.js +0 -15
  378. package/dist/chunks/defaultUboDeclaration-B0PSCYWh.esm.js.map +0 -1
  379. package/dist/chunks/defaultUboDeclaration-B6kC_-DX.esm.min.js +0 -2
  380. package/dist/chunks/defaultUboDeclaration-B6kC_-DX.esm.min.js.map +0 -1
  381. package/dist/chunks/defaultUboDeclaration-BE0n6id8.esm.js +0 -13
  382. package/dist/chunks/defaultUboDeclaration-BE0n6id8.esm.js.map +0 -1
  383. package/dist/chunks/defaultUboDeclaration-BGX489dV.esm.min.js +0 -2
  384. package/dist/chunks/defaultUboDeclaration-BGX489dV.esm.min.js.map +0 -1
  385. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +0 -11
  386. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +0 -1
  387. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +0 -2
  388. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +0 -1
  389. package/dist/chunks/dumpTools-D0f3VRtL.esm.js +0 -200
  390. package/dist/chunks/dumpTools-D0f3VRtL.esm.js.map +0 -1
  391. package/dist/chunks/dumpTools-DQpRV36f.esm.min.js +0 -2
  392. package/dist/chunks/dumpTools-DQpRV36f.esm.min.js.map +0 -1
  393. package/dist/chunks/engine-BDUZJ-0x.esm.min.js +0 -2
  394. package/dist/chunks/engine-BDUZJ-0x.esm.min.js.map +0 -1
  395. package/dist/chunks/engine-DmYC-FHl.esm.js +0 -2186
  396. package/dist/chunks/engine-DmYC-FHl.esm.js.map +0 -1
  397. package/dist/chunks/engine.common-BSSM9Qr_.esm.js +0 -1103
  398. package/dist/chunks/engine.common-BSSM9Qr_.esm.js.map +0 -1
  399. package/dist/chunks/engine.common-aJ-g9-SJ.esm.min.js +0 -2
  400. package/dist/chunks/engine.common-aJ-g9-SJ.esm.min.js.map +0 -1
  401. package/dist/chunks/envTextureLoader-C7qENr0t.esm.js +0 -64
  402. package/dist/chunks/envTextureLoader-C7qENr0t.esm.js.map +0 -1
  403. package/dist/chunks/envTextureLoader-tg86DzIi.esm.min.js +0 -2
  404. package/dist/chunks/envTextureLoader-tg86DzIi.esm.min.js.map +0 -1
  405. package/dist/chunks/environmentTextureTools-CTiGHhVw.esm.min.js +0 -2
  406. package/dist/chunks/environmentTextureTools-CTiGHhVw.esm.min.js.map +0 -1
  407. package/dist/chunks/environmentTextureTools-Ce9s74L9.esm.js +0 -382
  408. package/dist/chunks/environmentTextureTools-Ce9s74L9.esm.js.map +0 -1
  409. package/dist/chunks/exrTextureLoader-CBfm_TnI.esm.min.js +0 -2
  410. package/dist/chunks/exrTextureLoader-CBfm_TnI.esm.min.js.map +0 -1
  411. package/dist/chunks/exrTextureLoader-Cgc27hrF.esm.js +0 -1682
  412. package/dist/chunks/exrTextureLoader-Cgc27hrF.esm.js.map +0 -1
  413. package/dist/chunks/fogFragment-BkoNGDmt.esm.min.js +0 -2
  414. package/dist/chunks/fogFragment-BkoNGDmt.esm.min.js.map +0 -1
  415. package/dist/chunks/fogFragment-qKIMGMUW.esm.js +0 -102
  416. package/dist/chunks/fogFragment-qKIMGMUW.esm.js.map +0 -1
  417. package/dist/chunks/fresnelFunction-CwXhcuRj.esm.js +0 -12
  418. package/dist/chunks/fresnelFunction-CwXhcuRj.esm.js.map +0 -1
  419. package/dist/chunks/fresnelFunction-CzICDnGm.esm.min.js +0 -2
  420. package/dist/chunks/fresnelFunction-CzICDnGm.esm.min.js.map +0 -1
  421. package/dist/chunks/glTFLoader-BtsmmMGg.esm.js +0 -7577
  422. package/dist/chunks/glTFLoader-BtsmmMGg.esm.js.map +0 -1
  423. package/dist/chunks/glTFLoader-E_EILL6w.esm.min.js +0 -2
  424. package/dist/chunks/glTFLoader-E_EILL6w.esm.min.js.map +0 -1
  425. package/dist/chunks/glTFLoaderAnimation-D2-5H6HZ.esm.js +0 -77
  426. package/dist/chunks/glTFLoaderAnimation-D2-5H6HZ.esm.js.map +0 -1
  427. package/dist/chunks/glTFLoaderAnimation-DoXsmgNT.esm.min.js +0 -2
  428. package/dist/chunks/glTFLoaderAnimation-DoXsmgNT.esm.min.js.map +0 -1
  429. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +0 -2
  430. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +0 -1
  431. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +0 -67
  432. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +0 -1
  433. package/dist/chunks/harmonicsFunctions-BIdGSOV8.esm.min.js +0 -2
  434. package/dist/chunks/harmonicsFunctions-BIdGSOV8.esm.min.js.map +0 -1
  435. package/dist/chunks/harmonicsFunctions-CxjVwFDm.esm.js +0 -34
  436. package/dist/chunks/harmonicsFunctions-CxjVwFDm.esm.js.map +0 -1
  437. package/dist/chunks/harmonicsFunctions-D6pJOlhQ.esm.min.js +0 -2
  438. package/dist/chunks/harmonicsFunctions-D6pJOlhQ.esm.min.js.map +0 -1
  439. package/dist/chunks/harmonicsFunctions-qADkUwEs.esm.js +0 -35
  440. package/dist/chunks/harmonicsFunctions-qADkUwEs.esm.js.map +0 -1
  441. package/dist/chunks/hdrTextureLoader-BWg7nVzr.esm.min.js +0 -2
  442. package/dist/chunks/hdrTextureLoader-BWg7nVzr.esm.min.js.map +0 -1
  443. package/dist/chunks/hdrTextureLoader-Cn8KSQ0g.esm.js +0 -252
  444. package/dist/chunks/hdrTextureLoader-Cn8KSQ0g.esm.js.map +0 -1
  445. package/dist/chunks/helperFunctions-B3fHVB6R.esm.js +0 -108
  446. package/dist/chunks/helperFunctions-B3fHVB6R.esm.js.map +0 -1
  447. package/dist/chunks/helperFunctions-BCDPFpWW.esm.min.js +0 -2
  448. package/dist/chunks/helperFunctions-BCDPFpWW.esm.min.js.map +0 -1
  449. package/dist/chunks/helperFunctions-CXLowI-2.esm.min.js +0 -2
  450. package/dist/chunks/helperFunctions-CXLowI-2.esm.min.js.map +0 -1
  451. package/dist/chunks/helperFunctions-WOVMikvi.esm.js +0 -80
  452. package/dist/chunks/helperFunctions-WOVMikvi.esm.js.map +0 -1
  453. package/dist/chunks/index-2Ge8ZSfM.esm.min.js +0 -57
  454. package/dist/chunks/index-2Ge8ZSfM.esm.min.js.map +0 -1
  455. package/dist/chunks/index-hqUXEYXs.esm.js +0 -73109
  456. package/dist/chunks/index-hqUXEYXs.esm.js.map +0 -1
  457. package/dist/chunks/ktxTextureLoader-BE710vk4.esm.js +0 -814
  458. package/dist/chunks/ktxTextureLoader-BE710vk4.esm.js.map +0 -1
  459. package/dist/chunks/ktxTextureLoader-CRqXIqyu.esm.min.js +0 -2
  460. package/dist/chunks/ktxTextureLoader-CRqXIqyu.esm.min.js.map +0 -1
  461. package/dist/chunks/logDepthDeclaration-BuJU0MMq.esm.js +0 -35
  462. package/dist/chunks/logDepthDeclaration-BuJU0MMq.esm.js.map +0 -1
  463. package/dist/chunks/logDepthDeclaration-CjSD0BhQ.esm.js +0 -20
  464. package/dist/chunks/logDepthDeclaration-CjSD0BhQ.esm.js.map +0 -1
  465. package/dist/chunks/logDepthDeclaration-DKRQ_Rjj.esm.min.js +0 -2
  466. package/dist/chunks/logDepthDeclaration-DKRQ_Rjj.esm.min.js.map +0 -1
  467. package/dist/chunks/logDepthDeclaration-DR661XC5.esm.min.js +0 -2
  468. package/dist/chunks/logDepthDeclaration-DR661XC5.esm.min.js.map +0 -1
  469. package/dist/chunks/logDepthVertex-CbkA7Sru.esm.min.js +0 -2
  470. package/dist/chunks/logDepthVertex-CbkA7Sru.esm.min.js.map +0 -1
  471. package/dist/chunks/logDepthVertex-Crdl3_SI.esm.js +0 -77
  472. package/dist/chunks/logDepthVertex-Crdl3_SI.esm.js.map +0 -1
  473. package/dist/chunks/logDepthVertex-DSS0lG_-.esm.js +0 -487
  474. package/dist/chunks/logDepthVertex-DSS0lG_-.esm.js.map +0 -1
  475. package/dist/chunks/logDepthVertex-c4OCP-UG.esm.min.js +0 -2
  476. package/dist/chunks/logDepthVertex-c4OCP-UG.esm.min.js.map +0 -1
  477. package/dist/chunks/mainUVVaryingDeclaration-Bn01qEw6.esm.js +0 -11
  478. package/dist/chunks/mainUVVaryingDeclaration-Bn01qEw6.esm.js.map +0 -1
  479. package/dist/chunks/mainUVVaryingDeclaration-CZecLEYG.esm.min.js +0 -2
  480. package/dist/chunks/mainUVVaryingDeclaration-CZecLEYG.esm.min.js.map +0 -1
  481. package/dist/chunks/meshUboDeclaration-CGZ0n19g.esm.min.js +0 -2
  482. package/dist/chunks/meshUboDeclaration-CGZ0n19g.esm.min.js.map +0 -1
  483. package/dist/chunks/meshUboDeclaration-DhHhoJww.esm.js +0 -24
  484. package/dist/chunks/meshUboDeclaration-DhHhoJww.esm.js.map +0 -1
  485. package/dist/chunks/objFileLoader-47WP7y45.esm.js +0 -1338
  486. package/dist/chunks/objFileLoader-47WP7y45.esm.js.map +0 -1
  487. package/dist/chunks/objFileLoader-D5PLPEW6.esm.min.js +0 -2
  488. package/dist/chunks/objFileLoader-D5PLPEW6.esm.min.js.map +0 -1
  489. package/dist/chunks/oitFragment-BJ3zN_6I.esm.min.js +0 -2
  490. package/dist/chunks/oitFragment-BJ3zN_6I.esm.min.js.map +0 -1
  491. package/dist/chunks/oitFragment-BhmFLNob.esm.js +0 -1150
  492. package/dist/chunks/oitFragment-BhmFLNob.esm.js.map +0 -1
  493. package/dist/chunks/oitFragment-C4urVGKr.esm.min.js +0 -2
  494. package/dist/chunks/oitFragment-C4urVGKr.esm.min.js.map +0 -1
  495. package/dist/chunks/oitFragment-ChNi1bZY.esm.js +0 -1210
  496. package/dist/chunks/oitFragment-ChNi1bZY.esm.js.map +0 -1
  497. package/dist/chunks/pass.fragment-C1XV0kFQ.esm.min.js +0 -2
  498. package/dist/chunks/pass.fragment-C1XV0kFQ.esm.min.js.map +0 -1
  499. package/dist/chunks/pass.fragment-C6dELmFb.esm.min.js +0 -2
  500. package/dist/chunks/pass.fragment-C6dELmFb.esm.min.js.map +0 -1
  501. package/dist/chunks/pass.fragment-CET9HJQq.esm.js +0 -15
  502. package/dist/chunks/pass.fragment-CET9HJQq.esm.js.map +0 -1
  503. package/dist/chunks/pass.fragment-Vgms5sr-.esm.js +0 -15
  504. package/dist/chunks/pass.fragment-Vgms5sr-.esm.js.map +0 -1
  505. package/dist/chunks/pbr.fragment-CL1i1_7o.esm.min.js +0 -2
  506. package/dist/chunks/pbr.fragment-CL1i1_7o.esm.min.js.map +0 -1
  507. package/dist/chunks/pbr.fragment-D3YrjM8W.esm.js +0 -3163
  508. package/dist/chunks/pbr.fragment-D3YrjM8W.esm.js.map +0 -1
  509. package/dist/chunks/pbr.fragment-DEkHqpMR.esm.js +0 -3218
  510. package/dist/chunks/pbr.fragment-DEkHqpMR.esm.js.map +0 -1
  511. package/dist/chunks/pbr.fragment-WRhh878K.esm.min.js +0 -2
  512. package/dist/chunks/pbr.fragment-WRhh878K.esm.min.js.map +0 -1
  513. package/dist/chunks/pbr.vertex-BWIMIdzQ.esm.min.js +0 -2
  514. package/dist/chunks/pbr.vertex-BWIMIdzQ.esm.min.js.map +0 -1
  515. package/dist/chunks/pbr.vertex-BdvqGTOh.esm.js +0 -338
  516. package/dist/chunks/pbr.vertex-BdvqGTOh.esm.js.map +0 -1
  517. package/dist/chunks/pbr.vertex-BrMWAgwK.esm.min.js +0 -2
  518. package/dist/chunks/pbr.vertex-BrMWAgwK.esm.min.js.map +0 -1
  519. package/dist/chunks/pbr.vertex-LE833F_r.esm.js +0 -212
  520. package/dist/chunks/pbr.vertex-LE833F_r.esm.js.map +0 -1
  521. package/dist/chunks/postprocess.vertex-BPcO7a4q.esm.min.js +0 -2
  522. package/dist/chunks/postprocess.vertex-BPcO7a4q.esm.min.js.map +0 -1
  523. package/dist/chunks/postprocess.vertex-DcHgN4jQ.esm.js +0 -20
  524. package/dist/chunks/postprocess.vertex-DcHgN4jQ.esm.js.map +0 -1
  525. package/dist/chunks/rawTexture-DVvQbIM0.esm.min.js +0 -2
  526. package/dist/chunks/rawTexture-DVvQbIM0.esm.min.js.map +0 -1
  527. package/dist/chunks/rawTexture-Rbqo-GRc.esm.js +0 -191
  528. package/dist/chunks/rawTexture-Rbqo-GRc.esm.js.map +0 -1
  529. package/dist/chunks/rgbdDecode.fragment-C5X07jvh.esm.min.js +0 -2
  530. package/dist/chunks/rgbdDecode.fragment-C5X07jvh.esm.min.js.map +0 -1
  531. package/dist/chunks/rgbdDecode.fragment-C7OaZ46a.esm.js +0 -17
  532. package/dist/chunks/rgbdDecode.fragment-C7OaZ46a.esm.js.map +0 -1
  533. package/dist/chunks/rgbdDecode.fragment-DsRUVsyp.esm.min.js +0 -2
  534. package/dist/chunks/rgbdDecode.fragment-DsRUVsyp.esm.min.js.map +0 -1
  535. package/dist/chunks/rgbdDecode.fragment-tnAhM74-.esm.js +0 -17
  536. package/dist/chunks/rgbdDecode.fragment-tnAhM74-.esm.js.map +0 -1
  537. package/dist/chunks/rgbdEncode.fragment-CTXRjM5m.esm.min.js +0 -2
  538. package/dist/chunks/rgbdEncode.fragment-CTXRjM5m.esm.min.js.map +0 -1
  539. package/dist/chunks/rgbdEncode.fragment-CUc5WzIi.esm.js +0 -17
  540. package/dist/chunks/rgbdEncode.fragment-CUc5WzIi.esm.js.map +0 -1
  541. package/dist/chunks/rgbdEncode.fragment-CpMzg8df.esm.js +0 -17
  542. package/dist/chunks/rgbdEncode.fragment-CpMzg8df.esm.js.map +0 -1
  543. package/dist/chunks/rgbdEncode.fragment-D1ks-6Cc.esm.min.js +0 -2
  544. package/dist/chunks/rgbdEncode.fragment-D1ks-6Cc.esm.min.js.map +0 -1
  545. package/dist/chunks/splatFileLoader-BRg69mae.esm.min.js +0 -2
  546. package/dist/chunks/splatFileLoader-BRg69mae.esm.min.js.map +0 -1
  547. package/dist/chunks/splatFileLoader-ORM7U2s1.esm.js +0 -3807
  548. package/dist/chunks/splatFileLoader-ORM7U2s1.esm.js.map +0 -1
  549. package/dist/chunks/standardMaterial-8Das0pY6.esm.min.js +0 -2
  550. package/dist/chunks/standardMaterial-8Das0pY6.esm.min.js.map +0 -1
  551. package/dist/chunks/standardMaterial-BghTco1N.esm.js +0 -1805
  552. package/dist/chunks/standardMaterial-BghTco1N.esm.js.map +0 -1
  553. package/dist/chunks/stlFileLoader-BtK7UxiZ.esm.min.js +0 -2
  554. package/dist/chunks/stlFileLoader-BtK7UxiZ.esm.min.js.map +0 -1
  555. package/dist/chunks/stlFileLoader-D56UjEjy.esm.js +0 -238
  556. package/dist/chunks/stlFileLoader-D56UjEjy.esm.js.map +0 -1
  557. package/dist/chunks/tgaTextureLoader-CMz1UJMj.esm.min.js +0 -2
  558. package/dist/chunks/tgaTextureLoader-CMz1UJMj.esm.min.js.map +0 -1
  559. package/dist/chunks/tgaTextureLoader-vE_GvtAx.esm.js +0 -349
  560. package/dist/chunks/tgaTextureLoader-vE_GvtAx.esm.js.map +0 -1
  561. package/dist/chunks/thinEngine-BVVFYnLX.esm.js +0 -3721
  562. package/dist/chunks/thinEngine-BVVFYnLX.esm.js.map +0 -1
  563. package/dist/chunks/thinEngine-CNC-oTV2.esm.min.js +0 -2
  564. package/dist/chunks/thinEngine-CNC-oTV2.esm.min.js.map +0 -1
  565. package/dist/chunks/thinInstanceMesh-CSH6oaNv.esm.min.js +0 -2
  566. package/dist/chunks/thinInstanceMesh-CSH6oaNv.esm.min.js.map +0 -1
  567. package/dist/chunks/thinInstanceMesh-CZCCyuxU.esm.js +0 -314
  568. package/dist/chunks/thinInstanceMesh-CZCCyuxU.esm.js.map +0 -1
  569. package/dist/chunks/vertexColorMixing-CsqVdM6B.esm.min.js +0 -2
  570. package/dist/chunks/vertexColorMixing-CsqVdM6B.esm.min.js.map +0 -1
  571. package/dist/chunks/vertexColorMixing-Da-5w0e1.esm.js +0 -522
  572. package/dist/chunks/vertexColorMixing-Da-5w0e1.esm.js.map +0 -1
  573. package/dist/chunks/webgpuEngine-CBBRb6C8.esm.js +0 -11228
  574. package/dist/chunks/webgpuEngine-CBBRb6C8.esm.js.map +0 -1
  575. package/dist/chunks/webgpuEngine-DYbBoIRg.esm.min.js +0 -2
  576. package/dist/chunks/webgpuEngine-DYbBoIRg.esm.min.js.map +0 -1
  577. package/dist/chunks/workerPool-BUOov2K1.esm.js +0 -122
  578. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +0 -1
  579. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +0 -2
  580. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +0 -1
  581. package/docs/ViewerDefault.jpg +0 -0
  582. package/docs/ViewerParts.jpg +0 -0
  583. package/docs/ViewerSlots.jpg +0 -0
  584. package/docs/ViewerStyled.jpg +0 -0
  585. package/lib/index.d.ts +0 -372
  586. package/lib/index.js +0 -1312
  587. package/lib/index.js.map +0 -1
@@ -1,122 +0,0 @@
1
- /**
2
- * Helper class to push actions to a pool of workers.
3
- */
4
- class WorkerPool {
5
- /**
6
- * Constructor
7
- * @param workers Array of workers to use for actions
8
- */
9
- constructor(workers) {
10
- this._pendingActions = new Array();
11
- this._workerInfos = workers.map((worker) => ({
12
- workerPromise: Promise.resolve(worker),
13
- idle: true,
14
- }));
15
- }
16
- /**
17
- * Terminates all workers and clears any pending actions.
18
- */
19
- dispose() {
20
- for (const workerInfo of this._workerInfos) {
21
- workerInfo.workerPromise.then((worker) => {
22
- worker.terminate();
23
- });
24
- }
25
- this._workerInfos.length = 0;
26
- this._pendingActions.length = 0;
27
- }
28
- /**
29
- * Pushes an action to the worker pool. If all the workers are active, the action will be
30
- * pended until a worker has completed its action.
31
- * @param action The action to perform. Call onComplete when the action is complete.
32
- */
33
- push(action) {
34
- if (!this._executeOnIdleWorker(action)) {
35
- this._pendingActions.push(action);
36
- }
37
- }
38
- _executeOnIdleWorker(action) {
39
- for (const workerInfo of this._workerInfos) {
40
- if (workerInfo.idle) {
41
- this._execute(workerInfo, action);
42
- return true;
43
- }
44
- }
45
- return false;
46
- }
47
- _execute(workerInfo, action) {
48
- workerInfo.idle = false;
49
- workerInfo.workerPromise.then((worker) => {
50
- action(worker, () => {
51
- const nextAction = this._pendingActions.shift();
52
- if (nextAction) {
53
- this._execute(workerInfo, nextAction);
54
- }
55
- else {
56
- workerInfo.idle = true;
57
- }
58
- });
59
- });
60
- }
61
- }
62
- /**
63
- * Similar to the WorkerPool class except it creates and destroys workers automatically with a maximum of `maxWorkers` workers.
64
- * Workers are terminated when it is idle for at least `idleTimeElapsedBeforeRelease` milliseconds.
65
- */
66
- class AutoReleaseWorkerPool extends WorkerPool {
67
- constructor(maxWorkers, createWorkerAsync, options = AutoReleaseWorkerPool.DefaultOptions) {
68
- super([]);
69
- this._maxWorkers = maxWorkers;
70
- this._createWorkerAsync = createWorkerAsync;
71
- this._options = options;
72
- }
73
- push(action) {
74
- if (!this._executeOnIdleWorker(action)) {
75
- if (this._workerInfos.length < this._maxWorkers) {
76
- const workerInfo = {
77
- workerPromise: this._createWorkerAsync(),
78
- idle: false,
79
- };
80
- this._workerInfos.push(workerInfo);
81
- this._execute(workerInfo, action);
82
- }
83
- else {
84
- this._pendingActions.push(action);
85
- }
86
- }
87
- }
88
- _execute(workerInfo, action) {
89
- // Reset the idle timeout.
90
- if (workerInfo.timeoutId) {
91
- clearTimeout(workerInfo.timeoutId);
92
- delete workerInfo.timeoutId;
93
- }
94
- super._execute(workerInfo, (worker, onComplete) => {
95
- action(worker, () => {
96
- onComplete();
97
- if (workerInfo.idle) {
98
- // Schedule the worker to be terminated after the elapsed time.
99
- workerInfo.timeoutId = setTimeout(() => {
100
- workerInfo.workerPromise.then((worker) => {
101
- worker.terminate();
102
- });
103
- const indexOf = this._workerInfos.indexOf(workerInfo);
104
- if (indexOf !== -1) {
105
- this._workerInfos.splice(indexOf, 1);
106
- }
107
- }, this._options.idleTimeElapsedBeforeRelease);
108
- }
109
- });
110
- });
111
- }
112
- }
113
- /**
114
- * Default options for the constructor.
115
- * Override to change the defaults.
116
- */
117
- AutoReleaseWorkerPool.DefaultOptions = {
118
- idleTimeElapsedBeforeRelease: 1000,
119
- };
120
-
121
- export { AutoReleaseWorkerPool as A };
122
- //# sourceMappingURL=workerPool-BUOov2K1.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workerPool-BUOov2K1.esm.js","sources":["../../../../../dev/core/dist/Misc/workerPool.js"],"sourcesContent":["/**\n * Helper class to push actions to a pool of workers.\n */\nexport class WorkerPool {\n /**\n * Constructor\n * @param workers Array of workers to use for actions\n */\n constructor(workers) {\n this._pendingActions = new Array();\n this._workerInfos = workers.map((worker) => ({\n workerPromise: Promise.resolve(worker),\n idle: true,\n }));\n }\n /**\n * Terminates all workers and clears any pending actions.\n */\n dispose() {\n for (const workerInfo of this._workerInfos) {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n }\n this._workerInfos.length = 0;\n this._pendingActions.length = 0;\n }\n /**\n * Pushes an action to the worker pool. If all the workers are active, the action will be\n * pended until a worker has completed its action.\n * @param action The action to perform. Call onComplete when the action is complete.\n */\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n this._pendingActions.push(action);\n }\n }\n _executeOnIdleWorker(action) {\n for (const workerInfo of this._workerInfos) {\n if (workerInfo.idle) {\n this._execute(workerInfo, action);\n return true;\n }\n }\n return false;\n }\n _execute(workerInfo, action) {\n workerInfo.idle = false;\n workerInfo.workerPromise.then((worker) => {\n action(worker, () => {\n const nextAction = this._pendingActions.shift();\n if (nextAction) {\n this._execute(workerInfo, nextAction);\n }\n else {\n workerInfo.idle = true;\n }\n });\n });\n }\n}\n/**\n * Similar to the WorkerPool class except it creates and destroys workers automatically with a maximum of `maxWorkers` workers.\n * Workers are terminated when it is idle for at least `idleTimeElapsedBeforeRelease` milliseconds.\n */\nexport class AutoReleaseWorkerPool extends WorkerPool {\n constructor(maxWorkers, createWorkerAsync, options = AutoReleaseWorkerPool.DefaultOptions) {\n super([]);\n this._maxWorkers = maxWorkers;\n this._createWorkerAsync = createWorkerAsync;\n this._options = options;\n }\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n if (this._workerInfos.length < this._maxWorkers) {\n const workerInfo = {\n workerPromise: this._createWorkerAsync(),\n idle: false,\n };\n this._workerInfos.push(workerInfo);\n this._execute(workerInfo, action);\n }\n else {\n this._pendingActions.push(action);\n }\n }\n }\n _execute(workerInfo, action) {\n // Reset the idle timeout.\n if (workerInfo.timeoutId) {\n clearTimeout(workerInfo.timeoutId);\n delete workerInfo.timeoutId;\n }\n super._execute(workerInfo, (worker, onComplete) => {\n action(worker, () => {\n onComplete();\n if (workerInfo.idle) {\n // Schedule the worker to be terminated after the elapsed time.\n workerInfo.timeoutId = setTimeout(() => {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n const indexOf = this._workerInfos.indexOf(workerInfo);\n if (indexOf !== -1) {\n this._workerInfos.splice(indexOf, 1);\n }\n }, this._options.idleTimeElapsedBeforeRelease);\n }\n });\n });\n }\n}\n/**\n * Default options for the constructor.\n * Override to change the defaults.\n */\nAutoReleaseWorkerPool.DefaultOptions = {\n idleTimeElapsedBeforeRelease: 1000,\n};\n//# sourceMappingURL=workerPool.js.map"],"names":[],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- class e{constructor(e){this._pendingActions=new Array,this._workerInfos=e.map((e=>({workerPromise:Promise.resolve(e),idle:!0})))}dispose(){for(const e of this._workerInfos)e.workerPromise.then((e=>{e.terminate()}));this._workerInfos.length=0,this._pendingActions.length=0}push(e){this._executeOnIdleWorker(e)||this._pendingActions.push(e)}_executeOnIdleWorker(e){for(const s of this._workerInfos)if(s.idle)return this._execute(s,e),!0;return!1}_execute(e,s){e.idle=!1,e.workerPromise.then((t=>{s(t,(()=>{const s=this._pendingActions.shift();s?this._execute(e,s):e.idle=!0}))}))}}class s extends e{constructor(e,t,i=s.DefaultOptions){super([]),this._maxWorkers=e,this._createWorkerAsync=t,this._options=i}push(e){if(!this._executeOnIdleWorker(e))if(this._workerInfos.length<this._maxWorkers){const s={workerPromise:this._createWorkerAsync(),idle:!1};this._workerInfos.push(s),this._execute(s,e)}else this._pendingActions.push(e)}_execute(e,s){e.timeoutId&&(clearTimeout(e.timeoutId),delete e.timeoutId),super._execute(e,((t,i)=>{s(t,(()=>{i(),e.idle&&(e.timeoutId=setTimeout((()=>{e.workerPromise.then((e=>{e.terminate()}));const s=this._workerInfos.indexOf(e);-1!==s&&this._workerInfos.splice(s,1)}),this._options.idleTimeElapsedBeforeRelease))}))}))}}s.DefaultOptions={idleTimeElapsedBeforeRelease:1e3};export{s as A};
2
- //# sourceMappingURL=workerPool-BWHiDmEZ.esm.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workerPool-BWHiDmEZ.esm.min.js","sources":["../../../../../dev/core/dist/Misc/workerPool.js"],"sourcesContent":["/**\n * Helper class to push actions to a pool of workers.\n */\nexport class WorkerPool {\n /**\n * Constructor\n * @param workers Array of workers to use for actions\n */\n constructor(workers) {\n this._pendingActions = new Array();\n this._workerInfos = workers.map((worker) => ({\n workerPromise: Promise.resolve(worker),\n idle: true,\n }));\n }\n /**\n * Terminates all workers and clears any pending actions.\n */\n dispose() {\n for (const workerInfo of this._workerInfos) {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n }\n this._workerInfos.length = 0;\n this._pendingActions.length = 0;\n }\n /**\n * Pushes an action to the worker pool. If all the workers are active, the action will be\n * pended until a worker has completed its action.\n * @param action The action to perform. Call onComplete when the action is complete.\n */\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n this._pendingActions.push(action);\n }\n }\n _executeOnIdleWorker(action) {\n for (const workerInfo of this._workerInfos) {\n if (workerInfo.idle) {\n this._execute(workerInfo, action);\n return true;\n }\n }\n return false;\n }\n _execute(workerInfo, action) {\n workerInfo.idle = false;\n workerInfo.workerPromise.then((worker) => {\n action(worker, () => {\n const nextAction = this._pendingActions.shift();\n if (nextAction) {\n this._execute(workerInfo, nextAction);\n }\n else {\n workerInfo.idle = true;\n }\n });\n });\n }\n}\n/**\n * Similar to the WorkerPool class except it creates and destroys workers automatically with a maximum of `maxWorkers` workers.\n * Workers are terminated when it is idle for at least `idleTimeElapsedBeforeRelease` milliseconds.\n */\nexport class AutoReleaseWorkerPool extends WorkerPool {\n constructor(maxWorkers, createWorkerAsync, options = AutoReleaseWorkerPool.DefaultOptions) {\n super([]);\n this._maxWorkers = maxWorkers;\n this._createWorkerAsync = createWorkerAsync;\n this._options = options;\n }\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n if (this._workerInfos.length < this._maxWorkers) {\n const workerInfo = {\n workerPromise: this._createWorkerAsync(),\n idle: false,\n };\n this._workerInfos.push(workerInfo);\n this._execute(workerInfo, action);\n }\n else {\n this._pendingActions.push(action);\n }\n }\n }\n _execute(workerInfo, action) {\n // Reset the idle timeout.\n if (workerInfo.timeoutId) {\n clearTimeout(workerInfo.timeoutId);\n delete workerInfo.timeoutId;\n }\n super._execute(workerInfo, (worker, onComplete) => {\n action(worker, () => {\n onComplete();\n if (workerInfo.idle) {\n // Schedule the worker to be terminated after the elapsed time.\n workerInfo.timeoutId = setTimeout(() => {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n const indexOf = this._workerInfos.indexOf(workerInfo);\n if (indexOf !== -1) {\n this._workerInfos.splice(indexOf, 1);\n }\n }, this._options.idleTimeElapsedBeforeRelease);\n }\n });\n });\n }\n}\n/**\n * Default options for the constructor.\n * Override to change the defaults.\n */\nAutoReleaseWorkerPool.DefaultOptions = {\n idleTimeElapsedBeforeRelease: 1000,\n};\n//# sourceMappingURL=workerPool.js.map"],"names":["WorkerPool","constructor","workers","this","_pendingActions","Array","_workerInfos","map","worker","workerPromise","Promise","resolve","idle","dispose","workerInfo","then","terminate","length","push","action","_executeOnIdleWorker","_execute","nextAction","shift","AutoReleaseWorkerPool","maxWorkers","createWorkerAsync","options","DefaultOptions","super","_maxWorkers","_createWorkerAsync","_options","timeoutId","clearTimeout","onComplete","setTimeout","indexOf","splice","idleTimeElapsedBeforeRelease"],"mappings":"AAGO,MAAMA,EAKT,WAAAC,CAAYC,GACRC,KAAKC,gBAAkB,IAAIC,MAC3BF,KAAKG,aAAeJ,EAAQK,KAAKC,IAAY,CACzCC,cAAeC,QAAQC,QAAQH,GAC/BI,MAAM,KAElB,CAII,OAAAC,GACI,IAAK,MAAMC,KAAcX,KAAKG,aAC1BQ,EAAWL,cAAcM,MAAMP,IAC3BA,EAAOQ,WAAW,IAG1Bb,KAAKG,aAAaW,OAAS,EAC3Bd,KAAKC,gBAAgBa,OAAS,CACtC,CAMI,IAAAC,CAAKC,GACIhB,KAAKiB,qBAAqBD,IAC3BhB,KAAKC,gBAAgBc,KAAKC,EAEtC,CACI,oBAAAC,CAAqBD,GACjB,IAAK,MAAML,KAAcX,KAAKG,aAC1B,GAAIQ,EAAWF,KAEX,OADAT,KAAKkB,SAASP,EAAYK,IACnB,EAGf,OAAO,CACf,CACI,QAAAE,CAASP,EAAYK,GACjBL,EAAWF,MAAO,EAClBE,EAAWL,cAAcM,MAAMP,IAC3BW,EAAOX,GAAQ,KACX,MAAMc,EAAanB,KAAKC,gBAAgBmB,QACpCD,EACAnB,KAAKkB,SAASP,EAAYQ,GAG1BR,EAAWF,MAAO,CACtC,GACc,GAEd,EAMO,MAAMY,UAA8BxB,EACvC,WAAAC,CAAYwB,EAAYC,EAAmBC,EAAUH,EAAsBI,gBACvEC,MAAM,IACN1B,KAAK2B,YAAcL,EACnBtB,KAAK4B,mBAAqBL,EAC1BvB,KAAK6B,SAAWL,CACxB,CACI,IAAAT,CAAKC,GACD,IAAKhB,KAAKiB,qBAAqBD,GAC3B,GAAIhB,KAAKG,aAAaW,OAASd,KAAK2B,YAAa,CAC7C,MAAMhB,EAAa,CACfL,cAAeN,KAAK4B,qBACpBnB,MAAM,GAEVT,KAAKG,aAAaY,KAAKJ,GACvBX,KAAKkB,SAASP,EAAYK,EAC1C,MAEgBhB,KAAKC,gBAAgBc,KAAKC,EAG1C,CACI,QAAAE,CAASP,EAAYK,GAEbL,EAAWmB,YACXC,aAAapB,EAAWmB,kBACjBnB,EAAWmB,WAEtBJ,MAAMR,SAASP,GAAY,CAACN,EAAQ2B,KAChChB,EAAOX,GAAQ,KACX2B,IACIrB,EAAWF,OAEXE,EAAWmB,UAAYG,YAAW,KAC9BtB,EAAWL,cAAcM,MAAMP,IAC3BA,EAAOQ,WAAW,IAEtB,MAAMqB,EAAUlC,KAAKG,aAAa+B,QAAQvB,IACzB,IAAbuB,GACAlC,KAAKG,aAAagC,OAAOD,EAAS,EAC9D,GACuBlC,KAAK6B,SAASO,8BACrC,GACc,GAEd,EAMAf,EAAsBI,eAAiB,CACnCW,6BAA8B"}
Binary file
Binary file
Binary file
Binary file
package/lib/index.d.ts DELETED
@@ -1,372 +0,0 @@
1
- import { Nullable, AssetContainer, HotSpotQuery, IDisposable, AbstractEngine, LoadAssetContainerOptions, AbstractEngineOptions, EngineOptions, WebGPUEngineOptions } from '@babylonjs/core/index.js';
2
- import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera.js';
3
- import { Observable } from '@babylonjs/core/Misc/observable.js';
4
- import { Scene } from '@babylonjs/core/scene.js';
5
- import * as lit_html from 'lit-html';
6
- import * as lit from 'lit';
7
- import { LitElement, PropertyValues } from 'lit';
8
- import { Color4 } from '@babylonjs/core/Maths/math.color.js';
9
-
10
- type ViewerDetails = {
11
- /**
12
- * Gets the Viewer instance.
13
- */
14
- viewer: Viewer;
15
- /**
16
- * Provides access to the Scene managed by the Viewer.
17
- */
18
- scene: Scene;
19
- /**
20
- * Provides access to the Camera managed by the Viewer.
21
- */
22
- camera: ArcRotateCamera;
23
- /**
24
- * Provides access to the currently loaded model.
25
- */
26
- model: Nullable<AssetContainer>;
27
- };
28
- type ViewerOptions = Partial<Readonly<{
29
- /**
30
- * Called once when the viewer is initialized and provides viewer details that can be used for advanced customization.
31
- */
32
- onInitialized: (details: Readonly<ViewerDetails>) => void;
33
- }>>;
34
- type EnvironmentOptions = Partial<Readonly<{}>>;
35
- type ViewerHotSpotQuery = {
36
- /**
37
- * The index of the mesh within the loaded model.
38
- */
39
- meshIndex: number;
40
- } & HotSpotQuery;
41
- /**
42
- * Information computed from the hot spot surface data, canvas and mesh datas
43
- */
44
- type ViewerHotSpot = {
45
- /**
46
- * 2D canvas position in pixels
47
- */
48
- screenPosition: [number, number];
49
- /**
50
- * 3D world coordinates
51
- */
52
- worldPosition: [number, number, number];
53
- };
54
- /**
55
- * @experimental
56
- * Provides an experience for viewing a single 3D model.
57
- * @remarks
58
- * The Viewer is not tied to a specific UI framework and can be used with Babylon.js in a browser or with Babylon Native.
59
- * Includes (or will include) support for common model viewing requirements such as:
60
- * - Loading different model formats.
61
- * - Setting up a camera and providing default behaviors like auto orbit and pose interpolation.
62
- * - Framing the loaded model in the camera's view.
63
- * - Setting up the environment, lighting, and tone mapping.
64
- * - Enumerating and playing (or auto playing) animations.
65
- * - Enumerating and switching between material variants.
66
- * - Full screen and XR modes.
67
- */
68
- declare class Viewer implements IDisposable {
69
- private readonly _engine;
70
- /**
71
- * Fired when the environment has changed.
72
- */
73
- readonly onEnvironmentChanged: Observable<void>;
74
- /**
75
- * Fired when an error occurs while loading the environment.
76
- */
77
- readonly onEnvironmentError: Observable<unknown>;
78
- /**
79
- * Fired when the skybox blur changes.
80
- */
81
- readonly onSkyboxBlurChanged: Observable<void>;
82
- /**
83
- * Fired when a model is loaded into the viewer (or unloaded from the viewer).
84
- */
85
- readonly onModelChanged: Observable<void>;
86
- /**
87
- * Fired when an error occurs while loading a model.
88
- */
89
- readonly onModelError: Observable<unknown>;
90
- /**
91
- * Fired when the camera auto orbit state changes.
92
- */
93
- readonly onCameraAutoOrbitChanged: Observable<void>;
94
- /**
95
- * Fired when the selected animation changes.
96
- */
97
- readonly onSelectedAnimationChanged: Observable<void>;
98
- /**
99
- * Fired when the animation speed changes.
100
- */
101
- readonly onAnimationSpeedChanged: Observable<void>;
102
- /**
103
- * Fired when the selected animation is playing or paused.
104
- */
105
- readonly onIsAnimationPlayingChanged: Observable<void>;
106
- /**
107
- * Fired when the current point on the selected animation timeline changes.
108
- */
109
- readonly onAnimationProgressChanged: Observable<void>;
110
- private readonly _details;
111
- private readonly _snapshotHelper;
112
- private readonly _autoRotationBehavior;
113
- private readonly _renderLoopController;
114
- private _skybox;
115
- private _skyboxBlur;
116
- private _light;
117
- private _isDisposed;
118
- private readonly _loadModelLock;
119
- private _loadModelAbortController;
120
- private readonly _loadEnvironmentLock;
121
- private _environment;
122
- private _loadEnvironmentAbortController;
123
- private _selectedAnimation;
124
- private _activeAnimationObservers;
125
- private _animationSpeed;
126
- constructor(_engine: AbstractEngine, options?: ViewerOptions);
127
- /**
128
- * Enables or disables camera auto orbit.
129
- */
130
- get cameraAutoOrbit(): boolean;
131
- set cameraAutoOrbit(value: boolean);
132
- /**
133
- * A value between 0 and 1 that specifies how much to blur the skybox.
134
- */
135
- get skyboxBlur(): number;
136
- set skyboxBlur(value: number);
137
- /**
138
- * The list of animation names for the currently loaded model.
139
- */
140
- get animations(): readonly string[];
141
- /**
142
- * The currently selected animation index.
143
- */
144
- get selectedAnimation(): number;
145
- set selectedAnimation(value: number);
146
- /**
147
- * True if an animation is currently playing.
148
- */
149
- get isAnimationPlaying(): boolean;
150
- /**
151
- * The speed scale at which animations are played.
152
- */
153
- get animationSpeed(): number;
154
- set animationSpeed(value: number);
155
- /**
156
- * The current point on the selected animation timeline, normalized between 0 and 1.
157
- */
158
- get animationProgress(): number;
159
- set animationProgress(value: number);
160
- private get _activeAnimation();
161
- /**
162
- * Loads a 3D model from the specified URL.
163
- * @remarks
164
- * If a model is already loaded, it will be unloaded before loading the new model.
165
- * @param source A url or File or ArrayBufferView that points to the model to load.
166
- * @param options The options to use when loading the model.
167
- * @param abortSignal An optional signal that can be used to abort the loading process.
168
- */
169
- loadModel(source: string | File | ArrayBufferView, options?: LoadAssetContainerOptions, abortSignal?: AbortSignal): Promise<void>;
170
- /**
171
- * Unloads the current 3D model if one is loaded.
172
- * @param abortSignal An optional signal that can be used to abort the reset.
173
- */
174
- resetModel(abortSignal?: AbortSignal): Promise<void>;
175
- private _updateModel;
176
- /**
177
- * Loads an environment texture from the specified url and sets up a corresponding skybox.
178
- * @remarks
179
- * If an environment is already loaded, it will be unloaded before loading the new environment.
180
- * @param url The url of the environment texture to load.
181
- * @param options The options to use when loading the environment.
182
- * @param abortSignal An optional signal that can be used to abort the loading process.
183
- */
184
- loadEnvironment(url: string, options?: EnvironmentOptions, abortSignal?: AbortSignal): Promise<void>;
185
- /**
186
- * Unloads the current environment if one is loaded.
187
- * @param abortSignal An optional signal that can be used to abort the reset.
188
- */
189
- resetEnvironment(abortSignal?: AbortSignal): Promise<void>;
190
- private _updateEnvironment;
191
- /**
192
- * Toggles the play/pause animation state if there is a selected animation.
193
- */
194
- toggleAnimation(): void;
195
- /**
196
- * Plays the selected animation if there is one.
197
- */
198
- playAnimation(): void;
199
- /**
200
- * Pauses the selected animation if there is one.
201
- */
202
- pauseAnimation(): Promise<void>;
203
- /**
204
- * Disposes of the resources held by the Viewer.
205
- */
206
- dispose(): void;
207
- /**
208
- * retrun world and canvas coordinates of an hot spot
209
- * @param hotSpotQuery mesh index and surface information to query the hot spot positions
210
- * @param res Query a Hot Spot and does the conversion for Babylon Hot spot to a more generic HotSpotPositions, without Vector types
211
- * @returns true if hotspot found
212
- */
213
- getHotSpotToRef(hotSpotQuery: Readonly<ViewerHotSpotQuery>, res: ViewerHotSpot): boolean;
214
- private _updateCamera;
215
- private _updateLight;
216
- private _applyAnimationSpeed;
217
- /**
218
- * Check for disposed or aborted state (basically everything that can interrupt an async operation).
219
- * @param abortSignals A set of optional AbortSignals to also check.
220
- */
221
- private _throwIfDisposedOrAborted;
222
- }
223
-
224
- /**
225
- * Options for creating a Viewer instance that is bound to an HTML canvas.
226
- */
227
- type CanvasViewerOptions = ViewerOptions & (({
228
- engine?: undefined;
229
- } & AbstractEngineOptions) | ({
230
- engine: "WebGL";
231
- } & EngineOptions) | ({
232
- engine: "WebGPU";
233
- } & WebGPUEngineOptions));
234
- /**
235
- * Chooses a default engine for the current browser environment.
236
- * @returns The default engine to use.
237
- */
238
- declare function getDefaultEngine(): NonNullable<CanvasViewerOptions["engine"]>;
239
- /**
240
- * Creates a Viewer instance that is bound to an HTML canvas.
241
- * @remarks
242
- * This function can be shared across multiple UI integrations (e.g. Web Components, React, etc.).
243
- * @param canvas The canvas element to bind the Viewer to.
244
- * @param options The options to use when creating the Viewer and binding it to the specified canvas.
245
- * @returns A Viewer instance that is bound to the specified canvas.
246
- */
247
- declare function createViewerForCanvas(canvas: HTMLCanvasElement, options?: CanvasViewerOptions): Promise<Viewer>;
248
-
249
- interface HTML3DElementEventMap extends HTMLElementEventMap {
250
- viewerready: Event;
251
- environmentchange: Event;
252
- environmenterror: ErrorEvent;
253
- modelchange: Event;
254
- modelerror: ErrorEvent;
255
- selectedanimationchange: Event;
256
- animationspeedchange: Event;
257
- animationplayingchange: Event;
258
- animationprogresschange: Event;
259
- }
260
- /**
261
- * Represents a custom element that displays a 3D model using the Babylon.js Viewer.
262
- */
263
- declare class HTML3DElement extends LitElement {
264
- private readonly _viewerLock;
265
- private _viewerDetails?;
266
- private readonly _propertyBindings;
267
- static styles: lit.CSSResult;
268
- /**
269
- * Gets the underlying viewer details (when the underlying viewer is in a loaded state).
270
- * This is useful for advanced scenarios where direct access to the viewer or Babylon scene is needed.
271
- */
272
- get viewerDetails(): Readonly<ViewerDetails> | undefined;
273
- /**
274
- * Get hotspot world and screen values from a named hotspot
275
- * @param name slot of the hot spot
276
- * @param result resulting world and screen positions
277
- * @returns world and screen space coordinates
278
- */
279
- queryHotSpot(name: string, result: ViewerHotSpot): boolean;
280
- /**
281
- * The engine to use for rendering.
282
- */
283
- engine: NonNullable<CanvasViewerOptions["engine"]>;
284
- /**
285
- * The model URL.
286
- */
287
- source: Nullable<string>;
288
- /**
289
- * Forces the model to be loaded with the specified extension.
290
- * @remarks
291
- * If this property is not set, the extension will be inferred from the model URL when possible.
292
- */
293
- extension: Nullable<string>;
294
- /**
295
- * The environment URL.
296
- */
297
- environment: Nullable<string>;
298
- /**
299
- * A value between 0 and 1 that specifies how much to blur the skybox.
300
- */
301
- skyboxBlur: Nullable<number>;
302
- /**
303
- * The clear color (e.g. background color) for the viewer.
304
- */
305
- clearColor: Nullable<Color4>;
306
- /**
307
- * Enables or disables camera auto-orbit.
308
- */
309
- cameraAutoOrbit: boolean;
310
- /**
311
- * Camera orbit can only be set as an attribute, and is set on the camera each time a new model is loaded.
312
- * For access to the real time camera properties, use viewerDetails.camera.
313
- */
314
- private _cameraOrbitCoercer;
315
- /**
316
- * Camera target can only be set as an attribute, and is set on the camera each time a new model is loaded.
317
- * For access to the real time camera properties, use viewerDetails.camera.
318
- */
319
- private _cameraTargetCoercer;
320
- /**
321
- * A string value that encodes one or more hotspots.
322
- */
323
- hotspots: Nullable<Record<string, ViewerHotSpotQuery>>;
324
- /**
325
- * True if the default animation should play automatically when a model is loaded.
326
- */
327
- animationAutoPlay: boolean;
328
- /**
329
- * The list of animation names for the currently loaded model.
330
- */
331
- get animations(): readonly string[];
332
- /**
333
- * The currently selected animation index.
334
- */
335
- selectedAnimation: number;
336
- /**
337
- * True if an animation is currently playing.
338
- */
339
- get isAnimationPlaying(): boolean;
340
- /**
341
- * The speed scale at which animations are played.
342
- */
343
- animationSpeed: number;
344
- /**
345
- * The current point on the selected animation timeline, normalized between 0 and 1.
346
- */
347
- animationProgress: number;
348
- private _animations;
349
- private _isAnimationPlaying;
350
- private _canvasContainer;
351
- /**
352
- * Toggles the play/pause animation state if there is a selected animation.
353
- */
354
- toggleAnimation(): void;
355
- connectedCallback(): void;
356
- disconnectedCallback(): void;
357
- update(changedProperties: PropertyValues<this>): void;
358
- render(): lit_html.TemplateResult<1>;
359
- addEventListener<K extends keyof HTML3DElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTML3DElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
360
- private _dispatchCustomEvent;
361
- private _onSelectedAnimationChanged;
362
- private _onAnimationSpeedChanged;
363
- private _onProgressChanged;
364
- private _onProgressPointerDown;
365
- private _createPropertyBinding;
366
- private _setupViewer;
367
- private _tearDownViewer;
368
- private _updateModel;
369
- private _updateEnv;
370
- }
371
-
372
- export { type CanvasViewerOptions, type EnvironmentOptions, HTML3DElement, Viewer, type ViewerDetails, type ViewerHotSpot, type ViewerHotSpotQuery, type ViewerOptions, createViewerForCanvas, getDefaultEngine };