@babylonjs/viewer 7.31.2-alpha → 7.32.0

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-Bu99wg1Z.esm.min.js +0 -2
  198. package/dist/chunks/EXT_lights_image_based-Bu99wg1Z.esm.min.js.map +0 -1
  199. package/dist/chunks/EXT_lights_image_based-DPqrDbn9.esm.js +0 -172
  200. package/dist/chunks/EXT_lights_image_based-DPqrDbn9.esm.js.map +0 -1
  201. package/dist/chunks/EXT_mesh_gpu_instancing-CPBiRAdj.esm.min.js +0 -2
  202. package/dist/chunks/EXT_mesh_gpu_instancing-CPBiRAdj.esm.min.js.map +0 -1
  203. package/dist/chunks/EXT_mesh_gpu_instancing-DhIDgDVg.esm.js +0 -86
  204. package/dist/chunks/EXT_mesh_gpu_instancing-DhIDgDVg.esm.js.map +0 -1
  205. package/dist/chunks/EXT_meshopt_compression-D_mGpseT.esm.js +0 -134
  206. package/dist/chunks/EXT_meshopt_compression-D_mGpseT.esm.js.map +0 -1
  207. package/dist/chunks/EXT_meshopt_compression-vbCzUEGj.esm.min.js +0 -2
  208. package/dist/chunks/EXT_meshopt_compression-vbCzUEGj.esm.min.js.map +0 -1
  209. package/dist/chunks/EXT_texture_avif-BCVXrZxi.esm.js +0 -44
  210. package/dist/chunks/EXT_texture_avif-BCVXrZxi.esm.js.map +0 -1
  211. package/dist/chunks/EXT_texture_avif-BgCdr3Jj.esm.min.js +0 -2
  212. package/dist/chunks/EXT_texture_avif-BgCdr3Jj.esm.min.js.map +0 -1
  213. package/dist/chunks/EXT_texture_webp-C7SZVBRt.esm.min.js +0 -2
  214. package/dist/chunks/EXT_texture_webp-C7SZVBRt.esm.min.js.map +0 -1
  215. package/dist/chunks/EXT_texture_webp-CUdLff6B.esm.js +0 -43
  216. package/dist/chunks/EXT_texture_webp-CUdLff6B.esm.js.map +0 -1
  217. package/dist/chunks/ExtrasAsMetadata-Bcup1Yvu.esm.js +0 -64
  218. package/dist/chunks/ExtrasAsMetadata-Bcup1Yvu.esm.js.map +0 -1
  219. package/dist/chunks/ExtrasAsMetadata-mhWZ5cxz.esm.min.js +0 -2
  220. package/dist/chunks/ExtrasAsMetadata-mhWZ5cxz.esm.min.js.map +0 -1
  221. package/dist/chunks/KHR_animation_pointer-CG9HzgYY.esm.js +0 -343
  222. package/dist/chunks/KHR_animation_pointer-CG9HzgYY.esm.js.map +0 -1
  223. package/dist/chunks/KHR_animation_pointer-Ds9iVKW1.esm.min.js +0 -2
  224. package/dist/chunks/KHR_animation_pointer-Ds9iVKW1.esm.min.js.map +0 -1
  225. package/dist/chunks/KHR_draco_mesh_compression-B5PdyfsM.esm.js +0 -610
  226. package/dist/chunks/KHR_draco_mesh_compression-B5PdyfsM.esm.js.map +0 -1
  227. package/dist/chunks/KHR_draco_mesh_compression-BLmRwuRi.esm.min.js +0 -2
  228. package/dist/chunks/KHR_draco_mesh_compression-BLmRwuRi.esm.min.js.map +0 -1
  229. package/dist/chunks/KHR_interactivity-CtK0-uvj.esm.js +0 -4033
  230. package/dist/chunks/KHR_interactivity-CtK0-uvj.esm.js.map +0 -1
  231. package/dist/chunks/KHR_interactivity-DMuDcgyC.esm.min.js +0 -2
  232. package/dist/chunks/KHR_interactivity-DMuDcgyC.esm.min.js.map +0 -1
  233. package/dist/chunks/KHR_lights_punctual-BFl9FZcO.esm.min.js +0 -2
  234. package/dist/chunks/KHR_lights_punctual-BFl9FZcO.esm.min.js.map +0 -1
  235. package/dist/chunks/KHR_lights_punctual-BpH9gcZp.esm.js +0 -1253
  236. package/dist/chunks/KHR_lights_punctual-BpH9gcZp.esm.js.map +0 -1
  237. package/dist/chunks/KHR_materials_anisotropy-masLGEgT.esm.min.js +0 -2
  238. package/dist/chunks/KHR_materials_anisotropy-masLGEgT.esm.min.js.map +0 -1
  239. package/dist/chunks/KHR_materials_anisotropy-rXmfwDo1.esm.js +0 -64
  240. package/dist/chunks/KHR_materials_anisotropy-rXmfwDo1.esm.js.map +0 -1
  241. package/dist/chunks/KHR_materials_clearcoat-BFN54hPf.esm.min.js +0 -2
  242. package/dist/chunks/KHR_materials_clearcoat-BFN54hPf.esm.min.js.map +0 -1
  243. package/dist/chunks/KHR_materials_clearcoat-DjV_jpZT.esm.js +0 -96
  244. package/dist/chunks/KHR_materials_clearcoat-DjV_jpZT.esm.js.map +0 -1
  245. package/dist/chunks/KHR_materials_diffuse_transmission-BhBeIoHv.esm.min.js +0 -2
  246. package/dist/chunks/KHR_materials_diffuse_transmission-BhBeIoHv.esm.min.js.map +0 -1
  247. package/dist/chunks/KHR_materials_diffuse_transmission-CoQNIcsw.esm.js +0 -97
  248. package/dist/chunks/KHR_materials_diffuse_transmission-CoQNIcsw.esm.js.map +0 -1
  249. package/dist/chunks/KHR_materials_dispersion-Cprz2cPV.esm.min.js +0 -2
  250. package/dist/chunks/KHR_materials_dispersion-Cprz2cPV.esm.min.js.map +0 -1
  251. package/dist/chunks/KHR_materials_dispersion-DGOicDvV.esm.js +0 -62
  252. package/dist/chunks/KHR_materials_dispersion-DGOicDvV.esm.js.map +0 -1
  253. package/dist/chunks/KHR_materials_emissive_strength-C4_YqG8q.esm.js +0 -55
  254. package/dist/chunks/KHR_materials_emissive_strength-C4_YqG8q.esm.js.map +0 -1
  255. package/dist/chunks/KHR_materials_emissive_strength-W2dd4r-6.esm.min.js +0 -2
  256. package/dist/chunks/KHR_materials_emissive_strength-W2dd4r-6.esm.min.js.map +0 -1
  257. package/dist/chunks/KHR_materials_ior-BYU-vY5Q.esm.min.js +0 -2
  258. package/dist/chunks/KHR_materials_ior-BYU-vY5Q.esm.min.js.map +0 -1
  259. package/dist/chunks/KHR_materials_ior-DccpU3gD.esm.js +0 -64
  260. package/dist/chunks/KHR_materials_ior-DccpU3gD.esm.js.map +0 -1
  261. package/dist/chunks/KHR_materials_iridescence-D0szEfE_.esm.min.js +0 -2
  262. package/dist/chunks/KHR_materials_iridescence-D0szEfE_.esm.min.js.map +0 -1
  263. package/dist/chunks/KHR_materials_iridescence-DmIcVACG.esm.js +0 -72
  264. package/dist/chunks/KHR_materials_iridescence-DmIcVACG.esm.js.map +0 -1
  265. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-6Dp-wDua.esm.min.js +0 -2
  266. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-6Dp-wDua.esm.min.js.map +0 -1
  267. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-B2O4xz4s.esm.js +0 -81
  268. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-B2O4xz4s.esm.js.map +0 -1
  269. package/dist/chunks/KHR_materials_sheen-Bjgqqags.esm.js +0 -85
  270. package/dist/chunks/KHR_materials_sheen-Bjgqqags.esm.js.map +0 -1
  271. package/dist/chunks/KHR_materials_sheen-CQ9RWHBq.esm.min.js +0 -2
  272. package/dist/chunks/KHR_materials_sheen-CQ9RWHBq.esm.min.js.map +0 -1
  273. package/dist/chunks/KHR_materials_specular-8OIOS29B.esm.min.js +0 -2
  274. package/dist/chunks/KHR_materials_specular-8OIOS29B.esm.min.js.map +0 -1
  275. package/dist/chunks/KHR_materials_specular-DGSiysaL.esm.js +0 -75
  276. package/dist/chunks/KHR_materials_specular-DGSiysaL.esm.js.map +0 -1
  277. package/dist/chunks/KHR_materials_transmission-B95PX_5_.esm.js +0 -307
  278. package/dist/chunks/KHR_materials_transmission-B95PX_5_.esm.js.map +0 -1
  279. package/dist/chunks/KHR_materials_transmission-CKbVlHxS.esm.min.js +0 -2
  280. package/dist/chunks/KHR_materials_transmission-CKbVlHxS.esm.min.js.map +0 -1
  281. package/dist/chunks/KHR_materials_unlit-BxBOrDgv.esm.min.js +0 -2
  282. package/dist/chunks/KHR_materials_unlit-BxBOrDgv.esm.min.js.map +0 -1
  283. package/dist/chunks/KHR_materials_unlit-C37iFQd7.esm.js +0 -74
  284. package/dist/chunks/KHR_materials_unlit-C37iFQd7.esm.js.map +0 -1
  285. package/dist/chunks/KHR_materials_variants-8noH_WpN.esm.min.js +0 -2
  286. package/dist/chunks/KHR_materials_variants-8noH_WpN.esm.min.js.map +0 -1
  287. package/dist/chunks/KHR_materials_variants-Du6GDv5B.esm.js +0 -238
  288. package/dist/chunks/KHR_materials_variants-Du6GDv5B.esm.js.map +0 -1
  289. package/dist/chunks/KHR_materials_volume-CEAHNMZ8.esm.min.js +0 -2
  290. package/dist/chunks/KHR_materials_volume-CEAHNMZ8.esm.min.js.map +0 -1
  291. package/dist/chunks/KHR_materials_volume-FkLUpsDT.esm.js +0 -87
  292. package/dist/chunks/KHR_materials_volume-FkLUpsDT.esm.js.map +0 -1
  293. package/dist/chunks/KHR_mesh_quantization-6Xt7UB1S.esm.min.js +0 -2
  294. package/dist/chunks/KHR_mesh_quantization-6Xt7UB1S.esm.min.js.map +0 -1
  295. package/dist/chunks/KHR_mesh_quantization-c4wmYmTF.esm.js +0 -26
  296. package/dist/chunks/KHR_mesh_quantization-c4wmYmTF.esm.js.map +0 -1
  297. package/dist/chunks/KHR_texture_basisu-8-bmR0TW.esm.js +0 -43
  298. package/dist/chunks/KHR_texture_basisu-8-bmR0TW.esm.js.map +0 -1
  299. package/dist/chunks/KHR_texture_basisu-DwTpt_z2.esm.min.js +0 -2
  300. package/dist/chunks/KHR_texture_basisu-DwTpt_z2.esm.min.js.map +0 -1
  301. package/dist/chunks/KHR_texture_transform-BQ15bsLB.esm.min.js +0 -2
  302. package/dist/chunks/KHR_texture_transform-BQ15bsLB.esm.min.js.map +0 -1
  303. package/dist/chunks/KHR_texture_transform-wFFha0xp.esm.js +0 -63
  304. package/dist/chunks/KHR_texture_transform-wFFha0xp.esm.js.map +0 -1
  305. package/dist/chunks/KHR_xmp_json_ld-CeNxplLR.esm.js +0 -51
  306. package/dist/chunks/KHR_xmp_json_ld-CeNxplLR.esm.js.map +0 -1
  307. package/dist/chunks/KHR_xmp_json_ld-DhU3iBNH.esm.min.js +0 -2
  308. package/dist/chunks/KHR_xmp_json_ld-DhU3iBNH.esm.min.js.map +0 -1
  309. package/dist/chunks/MSFT_audio_emitter-BnRYwq4E.esm.min.js +0 -2
  310. package/dist/chunks/MSFT_audio_emitter-BnRYwq4E.esm.min.js.map +0 -1
  311. package/dist/chunks/MSFT_audio_emitter-DkqPp6tN.esm.js +0 -2207
  312. package/dist/chunks/MSFT_audio_emitter-DkqPp6tN.esm.js.map +0 -1
  313. package/dist/chunks/MSFT_lod-BCEIzSnI.esm.min.js +0 -2
  314. package/dist/chunks/MSFT_lod-BCEIzSnI.esm.min.js.map +0 -1
  315. package/dist/chunks/MSFT_lod-CO61R8sw.esm.js +0 -337
  316. package/dist/chunks/MSFT_lod-CO61R8sw.esm.js.map +0 -1
  317. package/dist/chunks/MSFT_minecraftMesh-BH3sIkON.esm.js +0 -46
  318. package/dist/chunks/MSFT_minecraftMesh-BH3sIkON.esm.js.map +0 -1
  319. package/dist/chunks/MSFT_minecraftMesh-Q1BsF4PP.esm.min.js +0 -2
  320. package/dist/chunks/MSFT_minecraftMesh-Q1BsF4PP.esm.min.js.map +0 -1
  321. package/dist/chunks/MSFT_sRGBFactors-CPT3PGJ2.esm.js +0 -47
  322. package/dist/chunks/MSFT_sRGBFactors-CPT3PGJ2.esm.js.map +0 -1
  323. package/dist/chunks/MSFT_sRGBFactors-guWHOMlP.esm.min.js +0 -2
  324. package/dist/chunks/MSFT_sRGBFactors-guWHOMlP.esm.min.js.map +0 -1
  325. package/dist/chunks/animationGroup-BV7aO-eR.esm.min.js +0 -2
  326. package/dist/chunks/animationGroup-BV7aO-eR.esm.min.js.map +0 -1
  327. package/dist/chunks/animationGroup-fRNxtHpE.esm.js +0 -2479
  328. package/dist/chunks/animationGroup-fRNxtHpE.esm.js.map +0 -1
  329. package/dist/chunks/assetContainer-C2D4MNHn.esm.min.js +0 -2
  330. package/dist/chunks/assetContainer-C2D4MNHn.esm.min.js.map +0 -1
  331. package/dist/chunks/assetContainer-ferB6yjl.esm.js +0 -1720
  332. package/dist/chunks/assetContainer-ferB6yjl.esm.js.map +0 -1
  333. package/dist/chunks/audioEngine-Dl13mOqb.esm.js +0 -305
  334. package/dist/chunks/audioEngine-Dl13mOqb.esm.js.map +0 -1
  335. package/dist/chunks/audioEngine-SZREW2D_.esm.min.js +0 -2
  336. package/dist/chunks/audioEngine-SZREW2D_.esm.min.js.map +0 -1
  337. package/dist/chunks/bakedVertexAnimation-4aXg91oO.esm.js +0 -119
  338. package/dist/chunks/bakedVertexAnimation-4aXg91oO.esm.js.map +0 -1
  339. package/dist/chunks/bakedVertexAnimation-T3cED2HN.esm.min.js +0 -2
  340. package/dist/chunks/bakedVertexAnimation-T3cED2HN.esm.min.js.map +0 -1
  341. package/dist/chunks/basisTextureLoader-DSGQZib9.esm.js +0 -600
  342. package/dist/chunks/basisTextureLoader-DSGQZib9.esm.js.map +0 -1
  343. package/dist/chunks/basisTextureLoader-v4_o_fMz.esm.min.js +0 -2
  344. package/dist/chunks/basisTextureLoader-v4_o_fMz.esm.min.js.map +0 -1
  345. package/dist/chunks/dds-CDf6Vnct.esm.min.js +0 -2
  346. package/dist/chunks/dds-CDf6Vnct.esm.min.js.map +0 -1
  347. package/dist/chunks/dds-DPWUjtZm.esm.js +0 -540
  348. package/dist/chunks/dds-DPWUjtZm.esm.js.map +0 -1
  349. package/dist/chunks/ddsTextureLoader-B5jRVr5R.esm.js +0 -88
  350. package/dist/chunks/ddsTextureLoader-B5jRVr5R.esm.js.map +0 -1
  351. package/dist/chunks/ddsTextureLoader-CHfJAMFs.esm.min.js +0 -2
  352. package/dist/chunks/ddsTextureLoader-CHfJAMFs.esm.min.js.map +0 -1
  353. package/dist/chunks/decalFragment-5zyWGFEd.esm.js +0 -18
  354. package/dist/chunks/decalFragment-5zyWGFEd.esm.js.map +0 -1
  355. package/dist/chunks/decalFragment-Cn-fVxCI.esm.min.js +0 -2
  356. package/dist/chunks/decalFragment-Cn-fVxCI.esm.min.js.map +0 -1
  357. package/dist/chunks/default.fragment-BEoLaP7_.esm.js +0 -442
  358. package/dist/chunks/default.fragment-BEoLaP7_.esm.js.map +0 -1
  359. package/dist/chunks/default.fragment-CmKg3wkR.esm.min.js +0 -2
  360. package/dist/chunks/default.fragment-CmKg3wkR.esm.min.js.map +0 -1
  361. package/dist/chunks/default.fragment-DU5u-tKQ.esm.js +0 -505
  362. package/dist/chunks/default.fragment-DU5u-tKQ.esm.js.map +0 -1
  363. package/dist/chunks/default.fragment-JhBDSfPu.esm.min.js +0 -2
  364. package/dist/chunks/default.fragment-JhBDSfPu.esm.min.js.map +0 -1
  365. package/dist/chunks/default.vertex-CCEtWkWn.esm.min.js +0 -2
  366. package/dist/chunks/default.vertex-CCEtWkWn.esm.min.js.map +0 -1
  367. package/dist/chunks/default.vertex-DcVWTyE_.esm.js +0 -180
  368. package/dist/chunks/default.vertex-DcVWTyE_.esm.js.map +0 -1
  369. package/dist/chunks/default.vertex-uLlXP-ke.esm.min.js +0 -2
  370. package/dist/chunks/default.vertex-uLlXP-ke.esm.min.js.map +0 -1
  371. package/dist/chunks/default.vertex-vRLCIPKo.esm.js +0 -203
  372. package/dist/chunks/default.vertex-vRLCIPKo.esm.js.map +0 -1
  373. package/dist/chunks/defaultUboDeclaration-7bWnlCRA.esm.min.js +0 -2
  374. package/dist/chunks/defaultUboDeclaration-7bWnlCRA.esm.min.js.map +0 -1
  375. package/dist/chunks/defaultUboDeclaration-Ca6N3sbv.esm.js +0 -15
  376. package/dist/chunks/defaultUboDeclaration-Ca6N3sbv.esm.js.map +0 -1
  377. package/dist/chunks/defaultUboDeclaration-DVI7ADQs.esm.min.js +0 -2
  378. package/dist/chunks/defaultUboDeclaration-DVI7ADQs.esm.min.js.map +0 -1
  379. package/dist/chunks/defaultUboDeclaration-nLg0xLMZ.esm.js +0 -13
  380. package/dist/chunks/defaultUboDeclaration-nLg0xLMZ.esm.js.map +0 -1
  381. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +0 -11
  382. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +0 -1
  383. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +0 -2
  384. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +0 -1
  385. package/dist/chunks/dumpTools-CbTZsyY8.esm.js +0 -402
  386. package/dist/chunks/dumpTools-CbTZsyY8.esm.js.map +0 -1
  387. package/dist/chunks/dumpTools-D0DEZ6xo.esm.min.js +0 -2
  388. package/dist/chunks/dumpTools-D0DEZ6xo.esm.min.js.map +0 -1
  389. package/dist/chunks/engine-CJv-6a9O.esm.js +0 -2174
  390. package/dist/chunks/engine-CJv-6a9O.esm.js.map +0 -1
  391. package/dist/chunks/engine-DgducW4e.esm.min.js +0 -2
  392. package/dist/chunks/engine-DgducW4e.esm.min.js.map +0 -1
  393. package/dist/chunks/engine.common-D2W-L46m.esm.js +0 -1088
  394. package/dist/chunks/engine.common-D2W-L46m.esm.js.map +0 -1
  395. package/dist/chunks/engine.common-D4StMtLB.esm.min.js +0 -2
  396. package/dist/chunks/engine.common-D4StMtLB.esm.min.js.map +0 -1
  397. package/dist/chunks/envTextureLoader-CJc7342v.esm.js +0 -65
  398. package/dist/chunks/envTextureLoader-CJc7342v.esm.js.map +0 -1
  399. package/dist/chunks/envTextureLoader-DSspqLXm.esm.min.js +0 -2
  400. package/dist/chunks/envTextureLoader-DSspqLXm.esm.min.js.map +0 -1
  401. package/dist/chunks/environmentTextureTools-CORONKRA.esm.min.js +0 -2
  402. package/dist/chunks/environmentTextureTools-CORONKRA.esm.min.js.map +0 -1
  403. package/dist/chunks/environmentTextureTools-Swa-KQ-3.esm.js +0 -382
  404. package/dist/chunks/environmentTextureTools-Swa-KQ-3.esm.js.map +0 -1
  405. package/dist/chunks/exrTextureLoader-B9HWungW.esm.min.js +0 -2
  406. package/dist/chunks/exrTextureLoader-B9HWungW.esm.min.js.map +0 -1
  407. package/dist/chunks/exrTextureLoader-DunbcZ7d.esm.js +0 -1682
  408. package/dist/chunks/exrTextureLoader-DunbcZ7d.esm.js.map +0 -1
  409. package/dist/chunks/fogFragment-D9mC3pbA.esm.js +0 -102
  410. package/dist/chunks/fogFragment-D9mC3pbA.esm.js.map +0 -1
  411. package/dist/chunks/fogFragment-DPTJpIWQ.esm.min.js +0 -2
  412. package/dist/chunks/fogFragment-DPTJpIWQ.esm.min.js.map +0 -1
  413. package/dist/chunks/fresnelFunction-BkCWVEkT.esm.min.js +0 -2
  414. package/dist/chunks/fresnelFunction-BkCWVEkT.esm.min.js.map +0 -1
  415. package/dist/chunks/fresnelFunction-DOIp4usQ.esm.js +0 -12
  416. package/dist/chunks/fresnelFunction-DOIp4usQ.esm.js.map +0 -1
  417. package/dist/chunks/glTFLoader-CEI2fp2n.esm.js +0 -7577
  418. package/dist/chunks/glTFLoader-CEI2fp2n.esm.js.map +0 -1
  419. package/dist/chunks/glTFLoader-D7VBOuzQ.esm.min.js +0 -2
  420. package/dist/chunks/glTFLoader-D7VBOuzQ.esm.min.js.map +0 -1
  421. package/dist/chunks/glTFLoaderAnimation-CH7YRgX4.esm.js +0 -77
  422. package/dist/chunks/glTFLoaderAnimation-CH7YRgX4.esm.js.map +0 -1
  423. package/dist/chunks/glTFLoaderAnimation-vnFNXnU4.esm.min.js +0 -2
  424. package/dist/chunks/glTFLoaderAnimation-vnFNXnU4.esm.min.js.map +0 -1
  425. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +0 -2
  426. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +0 -1
  427. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +0 -67
  428. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +0 -1
  429. package/dist/chunks/harmonicsFunctions-BKRAxs8o.esm.js +0 -34
  430. package/dist/chunks/harmonicsFunctions-BKRAxs8o.esm.js.map +0 -1
  431. package/dist/chunks/harmonicsFunctions-CCZGF16P.esm.min.js +0 -2
  432. package/dist/chunks/harmonicsFunctions-CCZGF16P.esm.min.js.map +0 -1
  433. package/dist/chunks/harmonicsFunctions-DhrysKHN.esm.min.js +0 -2
  434. package/dist/chunks/harmonicsFunctions-DhrysKHN.esm.min.js.map +0 -1
  435. package/dist/chunks/harmonicsFunctions-QMtc217V.esm.js +0 -35
  436. package/dist/chunks/harmonicsFunctions-QMtc217V.esm.js.map +0 -1
  437. package/dist/chunks/hdrTextureLoader-BHz9fdTt.esm.js +0 -252
  438. package/dist/chunks/hdrTextureLoader-BHz9fdTt.esm.js.map +0 -1
  439. package/dist/chunks/hdrTextureLoader-BiWDXv7M.esm.min.js +0 -2
  440. package/dist/chunks/hdrTextureLoader-BiWDXv7M.esm.min.js.map +0 -1
  441. package/dist/chunks/helperFunctions-B_X2yLxw.esm.min.js +0 -2
  442. package/dist/chunks/helperFunctions-B_X2yLxw.esm.min.js.map +0 -1
  443. package/dist/chunks/helperFunctions-BbV5qw2v.esm.js +0 -108
  444. package/dist/chunks/helperFunctions-BbV5qw2v.esm.js.map +0 -1
  445. package/dist/chunks/helperFunctions-CIS6xTXo.esm.js +0 -80
  446. package/dist/chunks/helperFunctions-CIS6xTXo.esm.js.map +0 -1
  447. package/dist/chunks/helperFunctions-DzZgTEml.esm.min.js +0 -2
  448. package/dist/chunks/helperFunctions-DzZgTEml.esm.min.js.map +0 -1
  449. package/dist/chunks/index-B6NQz4kn.esm.js +0 -72142
  450. package/dist/chunks/index-B6NQz4kn.esm.js.map +0 -1
  451. package/dist/chunks/index-C7KPae9Y.esm.min.js +0 -57
  452. package/dist/chunks/index-C7KPae9Y.esm.min.js.map +0 -1
  453. package/dist/chunks/ktxTextureLoader-D40Yd5Ne.esm.js +0 -814
  454. package/dist/chunks/ktxTextureLoader-D40Yd5Ne.esm.js.map +0 -1
  455. package/dist/chunks/ktxTextureLoader-DVCbKGMP.esm.min.js +0 -2
  456. package/dist/chunks/ktxTextureLoader-DVCbKGMP.esm.min.js.map +0 -1
  457. package/dist/chunks/logDepthDeclaration-CiQSKcW_.esm.js +0 -35
  458. package/dist/chunks/logDepthDeclaration-CiQSKcW_.esm.js.map +0 -1
  459. package/dist/chunks/logDepthDeclaration-DQDUiKGd.esm.js +0 -20
  460. package/dist/chunks/logDepthDeclaration-DQDUiKGd.esm.js.map +0 -1
  461. package/dist/chunks/logDepthDeclaration-OAjWEnc-.esm.min.js +0 -2
  462. package/dist/chunks/logDepthDeclaration-OAjWEnc-.esm.min.js.map +0 -1
  463. package/dist/chunks/logDepthDeclaration-eAf-B4Qw.esm.min.js +0 -2
  464. package/dist/chunks/logDepthDeclaration-eAf-B4Qw.esm.min.js.map +0 -1
  465. package/dist/chunks/logDepthVertex-BxafEG6B.esm.min.js +0 -2
  466. package/dist/chunks/logDepthVertex-BxafEG6B.esm.min.js.map +0 -1
  467. package/dist/chunks/logDepthVertex-D7KN8iZ6.esm.js +0 -488
  468. package/dist/chunks/logDepthVertex-D7KN8iZ6.esm.js.map +0 -1
  469. package/dist/chunks/logDepthVertex-DAIqazpL.esm.min.js +0 -2
  470. package/dist/chunks/logDepthVertex-DAIqazpL.esm.min.js.map +0 -1
  471. package/dist/chunks/logDepthVertex-DAZFp6e0.esm.js +0 -77
  472. package/dist/chunks/logDepthVertex-DAZFp6e0.esm.js.map +0 -1
  473. package/dist/chunks/mainUVVaryingDeclaration-DPJLg27c.esm.js +0 -11
  474. package/dist/chunks/mainUVVaryingDeclaration-DPJLg27c.esm.js.map +0 -1
  475. package/dist/chunks/mainUVVaryingDeclaration-EiRn7D3W.esm.min.js +0 -2
  476. package/dist/chunks/mainUVVaryingDeclaration-EiRn7D3W.esm.min.js.map +0 -1
  477. package/dist/chunks/meshUboDeclaration-BjHe-S8d.esm.min.js +0 -2
  478. package/dist/chunks/meshUboDeclaration-BjHe-S8d.esm.min.js.map +0 -1
  479. package/dist/chunks/meshUboDeclaration-Cn3eKbmX.esm.js +0 -24
  480. package/dist/chunks/meshUboDeclaration-Cn3eKbmX.esm.js.map +0 -1
  481. package/dist/chunks/objFileLoader-BXeddthR.esm.min.js +0 -2
  482. package/dist/chunks/objFileLoader-BXeddthR.esm.min.js.map +0 -1
  483. package/dist/chunks/objFileLoader-CFEEWIIl.esm.js +0 -1338
  484. package/dist/chunks/objFileLoader-CFEEWIIl.esm.js.map +0 -1
  485. package/dist/chunks/oitFragment-BZzzm_wf.esm.min.js +0 -2
  486. package/dist/chunks/oitFragment-BZzzm_wf.esm.min.js.map +0 -1
  487. package/dist/chunks/oitFragment-Bh1KfM3D.esm.js +0 -1210
  488. package/dist/chunks/oitFragment-Bh1KfM3D.esm.js.map +0 -1
  489. package/dist/chunks/oitFragment-DU3ZNNc6.esm.js +0 -1150
  490. package/dist/chunks/oitFragment-DU3ZNNc6.esm.js.map +0 -1
  491. package/dist/chunks/oitFragment-pjH-ZH-d.esm.min.js +0 -2
  492. package/dist/chunks/oitFragment-pjH-ZH-d.esm.min.js.map +0 -1
  493. package/dist/chunks/pass.fragment-Cb0i-qvg.esm.js +0 -15
  494. package/dist/chunks/pass.fragment-Cb0i-qvg.esm.js.map +0 -1
  495. package/dist/chunks/pass.fragment-CbfJPJcn.esm.min.js +0 -2
  496. package/dist/chunks/pass.fragment-CbfJPJcn.esm.min.js.map +0 -1
  497. package/dist/chunks/pass.fragment-DdIndJNa.esm.min.js +0 -2
  498. package/dist/chunks/pass.fragment-DdIndJNa.esm.min.js.map +0 -1
  499. package/dist/chunks/pass.fragment-vN8blXbN.esm.js +0 -15
  500. package/dist/chunks/pass.fragment-vN8blXbN.esm.js.map +0 -1
  501. package/dist/chunks/pbr.fragment-C2G0ox2-.esm.js +0 -3219
  502. package/dist/chunks/pbr.fragment-C2G0ox2-.esm.js.map +0 -1
  503. package/dist/chunks/pbr.fragment-C5Mxb1ea.esm.min.js +0 -2
  504. package/dist/chunks/pbr.fragment-C5Mxb1ea.esm.min.js.map +0 -1
  505. package/dist/chunks/pbr.fragment-CY45SSSY.esm.min.js +0 -2
  506. package/dist/chunks/pbr.fragment-CY45SSSY.esm.min.js.map +0 -1
  507. package/dist/chunks/pbr.fragment-DhchzNW7.esm.js +0 -3165
  508. package/dist/chunks/pbr.fragment-DhchzNW7.esm.js.map +0 -1
  509. package/dist/chunks/pbr.vertex-BDf74Tb0.esm.min.js +0 -2
  510. package/dist/chunks/pbr.vertex-BDf74Tb0.esm.min.js.map +0 -1
  511. package/dist/chunks/pbr.vertex-BmJOHGPR.esm.min.js +0 -2
  512. package/dist/chunks/pbr.vertex-BmJOHGPR.esm.min.js.map +0 -1
  513. package/dist/chunks/pbr.vertex-DQXclaDC.esm.js +0 -338
  514. package/dist/chunks/pbr.vertex-DQXclaDC.esm.js.map +0 -1
  515. package/dist/chunks/pbr.vertex-DzFjZN2y.esm.js +0 -210
  516. package/dist/chunks/pbr.vertex-DzFjZN2y.esm.js.map +0 -1
  517. package/dist/chunks/postprocess.vertex-BBl-_7dj.esm.js +0 -18
  518. package/dist/chunks/postprocess.vertex-BBl-_7dj.esm.js.map +0 -1
  519. package/dist/chunks/postprocess.vertex-BClAAKy6.esm.js +0 -20
  520. package/dist/chunks/postprocess.vertex-BClAAKy6.esm.js.map +0 -1
  521. package/dist/chunks/postprocess.vertex-BkdQlwaC.esm.min.js +0 -2
  522. package/dist/chunks/postprocess.vertex-BkdQlwaC.esm.min.js.map +0 -1
  523. package/dist/chunks/postprocess.vertex-svkVyHTq.esm.min.js +0 -2
  524. package/dist/chunks/postprocess.vertex-svkVyHTq.esm.min.js.map +0 -1
  525. package/dist/chunks/rawTexture-BJRhApe5.esm.min.js +0 -2
  526. package/dist/chunks/rawTexture-BJRhApe5.esm.min.js.map +0 -1
  527. package/dist/chunks/rawTexture-C35ZUbAd.esm.js +0 -191
  528. package/dist/chunks/rawTexture-C35ZUbAd.esm.js.map +0 -1
  529. package/dist/chunks/rgbdDecode.fragment-BxTniwrX.esm.min.js +0 -2
  530. package/dist/chunks/rgbdDecode.fragment-BxTniwrX.esm.min.js.map +0 -1
  531. package/dist/chunks/rgbdDecode.fragment-CP7qS7gr.esm.js +0 -17
  532. package/dist/chunks/rgbdDecode.fragment-CP7qS7gr.esm.js.map +0 -1
  533. package/dist/chunks/rgbdDecode.fragment-QYWWsGy6.esm.js +0 -17
  534. package/dist/chunks/rgbdDecode.fragment-QYWWsGy6.esm.js.map +0 -1
  535. package/dist/chunks/rgbdDecode.fragment-wNMR9n-P.esm.min.js +0 -2
  536. package/dist/chunks/rgbdDecode.fragment-wNMR9n-P.esm.min.js.map +0 -1
  537. package/dist/chunks/rgbdEncode.fragment-BF77xQ1S.esm.js +0 -17
  538. package/dist/chunks/rgbdEncode.fragment-BF77xQ1S.esm.js.map +0 -1
  539. package/dist/chunks/rgbdEncode.fragment-Bd5-3JVl.esm.min.js +0 -2
  540. package/dist/chunks/rgbdEncode.fragment-Bd5-3JVl.esm.min.js.map +0 -1
  541. package/dist/chunks/rgbdEncode.fragment-DA0xtXAM.esm.js +0 -17
  542. package/dist/chunks/rgbdEncode.fragment-DA0xtXAM.esm.js.map +0 -1
  543. package/dist/chunks/rgbdEncode.fragment-DVi_k3Lf.esm.min.js +0 -2
  544. package/dist/chunks/rgbdEncode.fragment-DVi_k3Lf.esm.min.js.map +0 -1
  545. package/dist/chunks/splatFileLoader-ChunqjQD.esm.min.js +0 -2
  546. package/dist/chunks/splatFileLoader-ChunqjQD.esm.min.js.map +0 -1
  547. package/dist/chunks/splatFileLoader-DUr6gOOn.esm.js +0 -3807
  548. package/dist/chunks/splatFileLoader-DUr6gOOn.esm.js.map +0 -1
  549. package/dist/chunks/standardMaterial-D6jitvBE.esm.min.js +0 -2
  550. package/dist/chunks/standardMaterial-D6jitvBE.esm.min.js.map +0 -1
  551. package/dist/chunks/standardMaterial-DlHgPZIM.esm.js +0 -1798
  552. package/dist/chunks/standardMaterial-DlHgPZIM.esm.js.map +0 -1
  553. package/dist/chunks/stlFileLoader-5sUFJ7IH.esm.min.js +0 -2
  554. package/dist/chunks/stlFileLoader-5sUFJ7IH.esm.min.js.map +0 -1
  555. package/dist/chunks/stlFileLoader-DJ-BBX2A.esm.js +0 -238
  556. package/dist/chunks/stlFileLoader-DJ-BBX2A.esm.js.map +0 -1
  557. package/dist/chunks/tgaTextureLoader-BVwiWJsD.esm.js +0 -349
  558. package/dist/chunks/tgaTextureLoader-BVwiWJsD.esm.js.map +0 -1
  559. package/dist/chunks/tgaTextureLoader-DzDouJsZ.esm.min.js +0 -2
  560. package/dist/chunks/tgaTextureLoader-DzDouJsZ.esm.min.js.map +0 -1
  561. package/dist/chunks/thinEngine-By4xcB0c.esm.min.js +0 -2
  562. package/dist/chunks/thinEngine-By4xcB0c.esm.min.js.map +0 -1
  563. package/dist/chunks/thinEngine-CrA16gfj.esm.js +0 -3721
  564. package/dist/chunks/thinEngine-CrA16gfj.esm.js.map +0 -1
  565. package/dist/chunks/thinInstanceMesh-BHC7hPty.esm.min.js +0 -2
  566. package/dist/chunks/thinInstanceMesh-BHC7hPty.esm.min.js.map +0 -1
  567. package/dist/chunks/thinInstanceMesh-BUQi2G1Q.esm.js +0 -314
  568. package/dist/chunks/thinInstanceMesh-BUQi2G1Q.esm.js.map +0 -1
  569. package/dist/chunks/vertexColorMixing-CtCCYedT.esm.js +0 -528
  570. package/dist/chunks/vertexColorMixing-CtCCYedT.esm.js.map +0 -1
  571. package/dist/chunks/vertexColorMixing-CvZive-n.esm.min.js +0 -2
  572. package/dist/chunks/vertexColorMixing-CvZive-n.esm.min.js.map +0 -1
  573. package/dist/chunks/webgpuEngine-Bxraqzju.esm.js +0 -11214
  574. package/dist/chunks/webgpuEngine-Bxraqzju.esm.js.map +0 -1
  575. package/dist/chunks/webgpuEngine-DjPV9U5n.esm.min.js +0 -2
  576. package/dist/chunks/webgpuEngine-DjPV9U5n.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 -327
  586. package/lib/index.js +0 -1153
  587. package/lib/index.js.map +0 -1
package/lib/index.js DELETED
@@ -1,1153 +0,0 @@
1
- import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera.js';
2
- import { HemisphericLight } from '@babylonjs/core/Lights/hemisphericLight.js';
3
- import { loadAssetContainerAsync } from '@babylonjs/core/Loading/sceneLoader.js';
4
- import { PBRMaterial } from '@babylonjs/core/Materials/PBR/pbrMaterial.js';
5
- import { CubeTexture } from '@babylonjs/core/Materials/Textures/cubeTexture.js';
6
- import { Texture } from '@babylonjs/core/Materials/Textures/texture.js';
7
- import { Clamp } from '@babylonjs/core/Maths/math.scalar.functions.js';
8
- import { Vector3, TmpVectors } from '@babylonjs/core/Maths/math.vector.js';
9
- import { CreateBox } from '@babylonjs/core/Meshes/Builders/boxBuilder.js';
10
- import { computeMaxExtents } from '@babylonjs/core/Meshes/meshUtils.js';
11
- import { AsyncLock } from '@babylonjs/core/Misc/asyncLock.js';
12
- import { Observable } from '@babylonjs/core/Misc/observable.js';
13
- import { Scene } from '@babylonjs/core/scene.js';
14
- import { registerBuiltInLoaders } from '@babylonjs/loaders/dynamic.js';
15
- import { Viewport } from '@babylonjs/core/Maths/math.viewport.js';
16
- import { GetHotSpotToRef } from '@babylonjs/core/Meshes/abstractMesh.hotSpot.js';
17
- import { SnapshotRenderingHelper } from '@babylonjs/core/Misc/snapshotRenderingHelper.js';
18
- import { __decorate } from '@babylonjs/core/tslib.es6.js';
19
- import { css, LitElement, html } from 'lit';
20
- import { property, state, query, customElement } from 'lit/decorators.js';
21
- import { Logger } from '@babylonjs/core/Misc/logger.js';
22
- import { Color4 } from '@babylonjs/core/Maths/math.color.js';
23
-
24
- function throwIfAborted(...abortSignals) {
25
- for (const signal of abortSignals) {
26
- signal?.throwIfAborted();
27
- }
28
- }
29
- function createSkybox(scene, camera, environmentTexture, blur) {
30
- const hdrSkybox = CreateBox("hdrSkyBox", undefined, scene);
31
- const hdrSkyboxMaterial = new PBRMaterial("skyBox", scene);
32
- hdrSkyboxMaterial.backFaceCulling = false;
33
- hdrSkyboxMaterial.reflectionTexture = environmentTexture.clone();
34
- if (hdrSkyboxMaterial.reflectionTexture) {
35
- hdrSkyboxMaterial.reflectionTexture.coordinatesMode = Texture.SKYBOX_MODE;
36
- }
37
- hdrSkyboxMaterial.microSurface = 1.0 - blur;
38
- hdrSkyboxMaterial.disableLighting = true;
39
- hdrSkyboxMaterial.twoSidedLighting = true;
40
- hdrSkybox.material = hdrSkyboxMaterial;
41
- hdrSkybox.isPickable = false;
42
- hdrSkybox.infiniteDistance = true;
43
- updateSkybox(hdrSkybox, camera);
44
- return hdrSkybox;
45
- }
46
- function updateSkybox(skybox, camera) {
47
- skybox?.scaling.setAll((camera.maxZ - camera.minZ) / 2);
48
- }
49
- /**
50
- * Provides an experience for viewing a single 3D model.
51
- * @remarks
52
- * The Viewer is not tied to a specific UI framework and can be used with Babylon.js in a browser or with Babylon Native.
53
- * Includes (or will include) support for common model viewing requirements such as:
54
- * - Loading different model formats.
55
- * - Setting up a camera and providing default behaviors like auto orbit and pose interpolation.
56
- * - Framing the loaded model in the camera's view.
57
- * - Setting up the environment, lighting, and tone mapping.
58
- * - Enumerating and playing (or auto playing) animations.
59
- * - Enumerating and switching between material variants.
60
- * - Full screen and XR modes.
61
- */
62
- class Viewer {
63
- constructor(_engine, options) {
64
- this._engine = _engine;
65
- /**
66
- * Fired when the environment has changed.
67
- */
68
- this.onEnvironmentChanged = new Observable();
69
- /**
70
- * Fired when an error occurs while loading the environment.
71
- */
72
- this.onEnvironmentError = new Observable();
73
- /**
74
- * Fired when a model is loaded into the viewer (or unloaded from the viewer).
75
- */
76
- this.onModelChanged = new Observable();
77
- /**
78
- * Fired when an error occurs while loading a model.
79
- */
80
- this.onModelError = new Observable();
81
- /**
82
- * Fired when the selected animation changes.
83
- */
84
- this.onSelectedAnimationChanged = new Observable();
85
- /**
86
- * Fired when the animation speed changes.
87
- */
88
- this.onAnimationSpeedChanged = new Observable();
89
- /**
90
- * Fired when the selected animation is playing or paused.
91
- */
92
- this.onIsAnimationPlayingChanged = new Observable();
93
- /**
94
- * Fired when the current point on the selected animation timeline changes.
95
- */
96
- this.onAnimationProgressChanged = new Observable();
97
- this._skybox = null;
98
- this._light = null;
99
- this._isDisposed = false;
100
- this._loadModelLock = new AsyncLock();
101
- this._loadModelAbortController = null;
102
- this._loadEnvironmentLock = new AsyncLock();
103
- this._environment = null;
104
- this._loadEnvironmentAbortController = null;
105
- this._selectedAnimation = -1;
106
- this._activeAnimationObservers = [];
107
- this._animationSpeed = 1;
108
- this._details = {
109
- viewer: this,
110
- scene: new Scene(this._engine),
111
- model: null,
112
- };
113
- this._details.scene.skipFrustumClipping = true;
114
- this._details.scene.skipPointerMovePicking = true;
115
- this._snapshotHelper = new SnapshotRenderingHelper(this._details.scene, { morphTargetsNumMaxInfluences: 30 });
116
- this._camera = new ArcRotateCamera("camera1", 0, 0, 1, Vector3.Zero(), this._details.scene);
117
- this._camera.attachControl();
118
- this._updateCamera(); // set default camera values
119
- this._autoRotationBehavior = this._camera.getBehaviorByName("AutoRotation");
120
- // Load a default light, but ignore errors as the user might be immediately loading their own environment.
121
- this.resetEnvironment().catch(() => { });
122
- // TODO: render at least back ground. Maybe we can only run renderloop when a mesh is loaded. What to render until then?
123
- const render = () => {
124
- this._details.scene.render();
125
- if (this.isAnimationPlaying) {
126
- this.onAnimationProgressChanged.notifyObservers();
127
- this._autoRotationBehavior.resetLastInteractionTime();
128
- }
129
- };
130
- this._engine.runRenderLoop(render);
131
- this._renderLoopController = {
132
- dispose: () => this._engine.stopRenderLoop(render),
133
- };
134
- options?.onInitialized?.(this._details);
135
- }
136
- /**
137
- * The list of animation names for the currently loaded model.
138
- */
139
- get animations() {
140
- return this._details.model?.animationGroups.map((group) => group.name) ?? [];
141
- }
142
- /**
143
- * The currently selected animation index.
144
- */
145
- get selectedAnimation() {
146
- return this._selectedAnimation;
147
- }
148
- set selectedAnimation(value) {
149
- value = Math.round(Clamp(value, -1, this.animations.length - 1));
150
- if (value !== this._selectedAnimation) {
151
- const startAnimation = this.isAnimationPlaying;
152
- if (this._activeAnimation) {
153
- this._activeAnimationObservers.forEach((observer) => observer.remove());
154
- this._activeAnimationObservers = [];
155
- this._activeAnimation.pause();
156
- this._activeAnimation.goToFrame(0);
157
- }
158
- this._selectedAnimation = value;
159
- if (this._activeAnimation) {
160
- this._activeAnimation.goToFrame(0);
161
- this._activeAnimation.play(true);
162
- if (!startAnimation) {
163
- this.pauseAnimation();
164
- }
165
- this._activeAnimationObservers = [
166
- this._activeAnimation.onAnimationGroupPlayObservable.add(() => {
167
- this.onIsAnimationPlayingChanged.notifyObservers();
168
- }),
169
- this._activeAnimation.onAnimationGroupPauseObservable.add(() => {
170
- this.onIsAnimationPlayingChanged.notifyObservers();
171
- }),
172
- this._activeAnimation.onAnimationGroupEndObservable.add(() => {
173
- this.onIsAnimationPlayingChanged.notifyObservers();
174
- this.onAnimationProgressChanged.notifyObservers();
175
- }),
176
- ];
177
- }
178
- this._updateCamera();
179
- this.onSelectedAnimationChanged.notifyObservers();
180
- }
181
- }
182
- /**
183
- * True if an animation is currently playing.
184
- */
185
- get isAnimationPlaying() {
186
- return this._activeAnimation?.isPlaying ?? false;
187
- }
188
- /**
189
- * The speed scale at which animations are played.
190
- */
191
- get animationSpeed() {
192
- return this._animationSpeed;
193
- }
194
- set animationSpeed(value) {
195
- this._animationSpeed = value;
196
- this._applyAnimationSpeed();
197
- this.onAnimationSpeedChanged.notifyObservers();
198
- }
199
- /**
200
- * The current point on the selected animation timeline, normalized between 0 and 1.
201
- */
202
- get animationProgress() {
203
- if (this._activeAnimation) {
204
- return this._activeAnimation.getCurrentFrame() / (this._activeAnimation.to - this._activeAnimation.from);
205
- }
206
- return 0;
207
- }
208
- set animationProgress(value) {
209
- if (this._activeAnimation) {
210
- this._activeAnimation.goToFrame(value * (this._activeAnimation.to - this._activeAnimation.from));
211
- this.onAnimationProgressChanged.notifyObservers();
212
- this._autoRotationBehavior.resetLastInteractionTime();
213
- }
214
- }
215
- get _activeAnimation() {
216
- return this._details.model?.animationGroups[this._selectedAnimation] ?? null;
217
- }
218
- /**
219
- * Loads a 3D model from the specified URL.
220
- * @remarks
221
- * If a model is already loaded, it will be unloaded before loading the new model.
222
- * @param source A url or File or ArrayBufferView that points to the model to load.
223
- * @param options The options to use when loading the model.
224
- * @param abortSignal An optional signal that can be used to abort the loading process.
225
- */
226
- async loadModel(source, options, abortSignal) {
227
- await this._updateModel(source, options, abortSignal);
228
- }
229
- /**
230
- * Unloads the current 3D model if one is loaded.
231
- * @param abortSignal An optional signal that can be used to abort the reset.
232
- */
233
- async resetModel(abortSignal) {
234
- await this._updateModel(undefined, undefined, abortSignal);
235
- }
236
- async _updateModel(source, options, abortSignal) {
237
- this._throwIfDisposedOrAborted(abortSignal);
238
- this._loadModelAbortController?.abort("New model is being loaded before previous model finished loading.");
239
- const abortController = (this._loadModelAbortController = new AbortController());
240
- await this._loadModelLock.lockAsync(async () => {
241
- throwIfAborted(abortSignal, abortController.signal);
242
- this._snapshotHelper.disableSnapshotRendering();
243
- this._details.model?.dispose();
244
- this._details.model = null;
245
- this.selectedAnimation = -1;
246
- try {
247
- if (source) {
248
- this._details.model = await loadAssetContainerAsync(source, this._details.scene, options);
249
- this._details.model.animationGroups.forEach((group) => {
250
- group.start(true, this.animationSpeed);
251
- group.pause();
252
- });
253
- this.selectedAnimation = 0;
254
- this._snapshotHelper.fixMeshes(this._details.model.meshes);
255
- this._details.model.addAllToScene();
256
- }
257
- this._updateCamera();
258
- this._updateLight();
259
- this._applyAnimationSpeed();
260
- this.onModelChanged.notifyObservers();
261
- }
262
- catch (e) {
263
- this.onModelError.notifyObservers(e);
264
- throw e;
265
- }
266
- finally {
267
- this._snapshotHelper.enableSnapshotRendering();
268
- }
269
- });
270
- }
271
- /**
272
- * Loads an environment texture from the specified url and sets up a corresponding skybox.
273
- * @remarks
274
- * If an environment is already loaded, it will be unloaded before loading the new environment.
275
- * @param url The url of the environment texture to load.
276
- * @param options The options to use when loading the environment.
277
- * @param abortSignal An optional signal that can be used to abort the loading process.
278
- */
279
- async loadEnvironment(url, options, abortSignal) {
280
- await this._updateEnvironment(url, options, abortSignal);
281
- }
282
- /**
283
- * Unloads the current environment if one is loaded.
284
- * @param abortSignal An optional signal that can be used to abort the reset.
285
- */
286
- async resetEnvironment(abortSignal) {
287
- await this._updateEnvironment(undefined, undefined, abortSignal);
288
- }
289
- async _updateEnvironment(url, options, abortSignal) {
290
- this._throwIfDisposedOrAborted(abortSignal);
291
- this._loadEnvironmentAbortController?.abort("New environment is being loaded before previous environment finished loading.");
292
- const abortController = (this._loadEnvironmentAbortController = new AbortController());
293
- await this._loadEnvironmentLock.lockAsync(async () => {
294
- throwIfAborted(abortSignal, abortController.signal);
295
- this._snapshotHelper.disableSnapshotRendering();
296
- this._environment?.dispose();
297
- this._environment = null;
298
- this._details.scene.autoClear = true;
299
- try {
300
- if (url) {
301
- this._environment = await new Promise((resolve, reject) => {
302
- const cubeTexture = CubeTexture.CreateFromPrefilteredData(url, this._details.scene);
303
- this._details.scene.environmentTexture = cubeTexture;
304
- const skybox = createSkybox(this._details.scene, this._camera, cubeTexture, 0.3);
305
- this._snapshotHelper.fixMeshes([skybox]);
306
- this._skybox = skybox;
307
- this._details.scene.autoClear = false;
308
- const dispose = () => {
309
- cubeTexture.dispose();
310
- skybox.dispose();
311
- this._skybox = null;
312
- };
313
- const successObserver = cubeTexture.onLoadObservable.addOnce(() => {
314
- successObserver.remove();
315
- errorObserver.remove();
316
- resolve({
317
- dispose,
318
- });
319
- });
320
- const errorObserver = Texture.OnTextureLoadErrorObservable.add((texture) => {
321
- if (texture === cubeTexture) {
322
- successObserver.remove();
323
- errorObserver.remove();
324
- dispose();
325
- reject(new Error("Failed to load environment texture."));
326
- }
327
- });
328
- });
329
- }
330
- this._updateLight();
331
- this.onEnvironmentChanged.notifyObservers();
332
- }
333
- catch (e) {
334
- this.onEnvironmentError.notifyObservers(e);
335
- throw e;
336
- }
337
- finally {
338
- this._snapshotHelper.enableSnapshotRendering();
339
- }
340
- });
341
- }
342
- /**
343
- * Toggles the play/pause animation state if there is a selected animation.
344
- */
345
- toggleAnimation() {
346
- if (this.isAnimationPlaying) {
347
- this.pauseAnimation();
348
- }
349
- else {
350
- this.playAnimation();
351
- }
352
- }
353
- /**
354
- * Plays the selected animation if there is one.
355
- */
356
- playAnimation() {
357
- this._activeAnimation?.play(true);
358
- }
359
- /**
360
- * Pauses the selected animation if there is one.
361
- */
362
- async pauseAnimation() {
363
- this._activeAnimation?.pause();
364
- }
365
- /**
366
- * Disposes of the resources held by the Viewer.
367
- */
368
- dispose() {
369
- this.selectedAnimation = -1;
370
- this.animationProgress = 0;
371
- this._loadEnvironmentAbortController?.abort("Thew viewer is being disposed.");
372
- this._loadModelAbortController?.abort("Thew viewer is being disposed.");
373
- this._renderLoopController.dispose();
374
- this._details.scene.dispose();
375
- this.onEnvironmentChanged.clear();
376
- this.onEnvironmentError.clear();
377
- this.onModelChanged.clear();
378
- this.onModelError.clear();
379
- this.onSelectedAnimationChanged.clear();
380
- this.onAnimationSpeedChanged.clear();
381
- this.onIsAnimationPlayingChanged.clear();
382
- this.onAnimationProgressChanged.clear();
383
- this._isDisposed = true;
384
- }
385
- /**
386
- * retrun world and canvas coordinates of an hot spot
387
- * @param hotSpotQuery mesh index and surface information to query the hot spot positions
388
- * @param res Query a Hot Spot and does the conversion for Babylon Hot spot to a more generic HotSpotPositions, without Vector types
389
- * @returns true if hotspot found
390
- */
391
- getHotSpotToRef(hotSpotQuery, res) {
392
- if (!this._details.model) {
393
- return false;
394
- }
395
- const worldPos = TmpVectors.Vector3[1];
396
- const screenPos = TmpVectors.Vector3[0];
397
- const mesh = this._details.model.meshes[hotSpotQuery.meshIndex];
398
- if (!mesh) {
399
- return false;
400
- }
401
- GetHotSpotToRef(mesh, hotSpotQuery, worldPos);
402
- const renderWidth = this._engine.getRenderWidth(); // Get the canvas width
403
- const renderHeight = this._engine.getRenderHeight(); // Get the canvas height
404
- const viewportWidth = this._camera.viewport.width * renderWidth;
405
- const viewportHeight = this._camera.viewport.height * renderHeight;
406
- const scene = this._details.scene;
407
- Vector3.ProjectToRef(worldPos, mesh.getWorldMatrix(), scene.getTransformMatrix(), new Viewport(0, 0, viewportWidth, viewportHeight), screenPos);
408
- res.screenPosition = [screenPos.x, screenPos.y];
409
- res.worldPosition = [worldPos.x, worldPos.y, worldPos.z];
410
- return true;
411
- }
412
- _updateCamera() {
413
- // Enable camera's behaviors
414
- this._camera.useFramingBehavior = true;
415
- const framingBehavior = this._camera.getBehaviorByName("Framing");
416
- framingBehavior.framingTime = 0;
417
- framingBehavior.elevationReturnTime = -1;
418
- let radius = 1;
419
- if (this._details.model?.meshes.length) {
420
- // get bounds and prepare framing/camera radius from its values
421
- this._camera.lowerRadiusLimit = null;
422
- const maxExtents = computeMaxExtents(this._details.model.meshes, this._activeAnimation);
423
- const worldExtents = {
424
- min: new Vector3(Math.min(...maxExtents.map((e) => e.minimum.x)), Math.min(...maxExtents.map((e) => e.minimum.y)), Math.min(...maxExtents.map((e) => e.minimum.z))),
425
- max: new Vector3(Math.max(...maxExtents.map((e) => e.maximum.x)), Math.max(...maxExtents.map((e) => e.maximum.y)), Math.max(...maxExtents.map((e) => e.maximum.z))),
426
- };
427
- framingBehavior.zoomOnBoundingInfo(worldExtents.min, worldExtents.max);
428
- const worldSize = worldExtents.max.subtract(worldExtents.min);
429
- const worldCenter = worldExtents.min.add(worldSize.scale(0.5));
430
- radius = worldSize.length() * 1.1;
431
- if (!isFinite(radius)) {
432
- radius = 1;
433
- worldCenter.copyFromFloats(0, 0, 0);
434
- }
435
- this._camera.setTarget(worldCenter);
436
- }
437
- this._camera.lowerRadiusLimit = radius * 0.01;
438
- this._camera.wheelPrecision = 100 / radius;
439
- this._camera.alpha = Math.PI / 2;
440
- this._camera.beta = Math.PI / 2.4;
441
- this._camera.radius = radius;
442
- this._camera.minZ = radius * 0.01;
443
- this._camera.maxZ = radius * 1000;
444
- this._camera.speed = radius * 0.2;
445
- this._camera.useAutoRotationBehavior = true;
446
- this._camera.pinchPrecision = 200 / this._camera.radius;
447
- this._camera.upperRadiusLimit = 5 * this._camera.radius;
448
- this._camera.wheelDeltaPercentage = 0.01;
449
- this._camera.pinchDeltaPercentage = 0.01;
450
- this._camera.restoreStateInterpolationFactor = 0.1;
451
- this._camera.storeState();
452
- updateSkybox(this._skybox, this._camera);
453
- }
454
- _updateLight() {
455
- let shouldHaveDefaultLight;
456
- if (!this._details.model) {
457
- shouldHaveDefaultLight = false;
458
- }
459
- else {
460
- const hasModelProvidedLights = this._details.model.lights.length > 0;
461
- const hasImageBasedLighting = !!this._environment;
462
- const hasMaterials = this._details.model.materials.length > 0;
463
- const hasNonPBRMaterials = this._details.model.materials.some((material) => !(material instanceof PBRMaterial));
464
- if (hasModelProvidedLights) {
465
- shouldHaveDefaultLight = false;
466
- }
467
- else {
468
- shouldHaveDefaultLight = !hasImageBasedLighting || !hasMaterials || hasNonPBRMaterials;
469
- }
470
- }
471
- if (shouldHaveDefaultLight) {
472
- if (!this._light) {
473
- this._light = new HemisphericLight("defaultLight", Vector3.Up(), this._details.scene);
474
- }
475
- }
476
- else {
477
- this._light?.dispose();
478
- this._light = null;
479
- }
480
- }
481
- _applyAnimationSpeed() {
482
- this._details.model?.animationGroups.forEach((group) => (group.speedRatio = this._animationSpeed));
483
- }
484
- /**
485
- * Check for disposed or aborted state (basically everything that can interrupt an async operation).
486
- * @param abortSignals A set of optional AbortSignals to also check.
487
- */
488
- _throwIfDisposedOrAborted(...abortSignals) {
489
- if (this._isDisposed) {
490
- throw new Error("Viewer is disposed.");
491
- }
492
- throwIfAborted(...abortSignals);
493
- }
494
- }
495
- (() => {
496
- registerBuiltInLoaders();
497
- })();
498
-
499
- const defaultCanvasViewerOptions = {};
500
- /**
501
- * Chooses a default engine for the current browser environment.
502
- * @returns The default engine to use.
503
- */
504
- function getDefaultEngine() {
505
- // TODO: When WebGPU is fully production ready, we may want to prefer it if it is supported by the browser.
506
- return "WebGL";
507
- }
508
- /**
509
- * Creates a Viewer instance that is bound to an HTML canvas.
510
- * @remarks
511
- * This function can be shared across multiple UI integrations (e.g. Web Components, React, etc.).
512
- * @param canvas The canvas element to bind the Viewer to.
513
- * @param options The options to use when creating the Viewer and binding it to the specified canvas.
514
- * @returns A Viewer instance that is bound to the specified canvas.
515
- */
516
- async function createViewerForCanvas(canvas, options) {
517
- const finalOptions = { ...defaultCanvasViewerOptions, ...options };
518
- const disposeActions = [];
519
- // If the canvas is resized, note that the engine needs a resize, but don't resize it here as it will result in flickering.
520
- let needsResize = false;
521
- const resizeObserver = new ResizeObserver(() => (needsResize = true));
522
- resizeObserver.observe(canvas);
523
- disposeActions.push(() => resizeObserver.disconnect());
524
- // Create an engine instance.
525
- let engine;
526
- switch (finalOptions.engine ?? getDefaultEngine()) {
527
- case "WebGL": {
528
- // eslint-disable-next-line @typescript-eslint/naming-convention, no-case-declarations
529
- const { Engine } = await import('@babylonjs/core/Engines/engine.js');
530
- engine = new Engine(canvas, undefined, options);
531
- break;
532
- }
533
- case "WebGPU": {
534
- // eslint-disable-next-line @typescript-eslint/naming-convention, no-case-declarations
535
- const { WebGPUEngine } = await import('@babylonjs/core/Engines/webgpuEngine.js');
536
- const webGPUEngine = new WebGPUEngine(canvas, options);
537
- await webGPUEngine.initAsync();
538
- engine = webGPUEngine;
539
- break;
540
- }
541
- }
542
- // Override the onInitialized callback to add in some specific behavior.
543
- const onInitialized = finalOptions.onInitialized;
544
- finalOptions.onInitialized = (details) => {
545
- // Resize if needed right before rendering the Viewer scene to avoid any flickering.
546
- const beforeRenderObserver = details.scene.onBeforeRenderObservable.add(() => {
547
- if (needsResize) {
548
- engine.resize();
549
- needsResize = false;
550
- }
551
- });
552
- disposeActions.push(() => beforeRenderObserver.remove());
553
- // Call the original onInitialized callback, if one was provided.
554
- onInitialized?.(details);
555
- };
556
- // Instantiate the Viewer with the engine and options.
557
- const viewer = new Viewer(engine, finalOptions);
558
- disposeActions.push(viewer.dispose.bind(viewer));
559
- disposeActions.push(() => engine.dispose());
560
- // Override the Viewer's dispose method to add in additional cleanup.
561
- viewer.dispose = () => disposeActions.forEach((dispose) => dispose());
562
- return viewer;
563
- }
564
-
565
- // Icon SVG is pulled from https://fluentuipr.z22.web.core.windows.net/heads/master/public-docsite-v9/storybook/iframe.html?id=icons-catalog--page&viewMode=story
566
- const playFilledIcon = "M17.22 8.68a1.5 1.5 0 0 1 0 2.63l-10 5.5A1.5 1.5 0 0 1 5 15.5v-11A1.5 1.5 0 0 1 7.22 3.2l10 5.5Z";
567
- const pauseFilledIcon = "M5 2a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H5Zm8 0a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-2Z";
568
- const allowedAnimationSpeeds = [0.5, 1, 1.5, 2];
569
- function parseColor(color) {
570
- if (!color) {
571
- return null;
572
- }
573
- const canvas = document.createElement("canvas");
574
- canvas.width = canvas.height = 1;
575
- const context = canvas.getContext("2d");
576
- if (!context) {
577
- throw new Error("Unable to get 2d context for parseColor");
578
- }
579
- context.clearRect(0, 0, 1, 1);
580
- context.fillStyle = color;
581
- context.fillRect(0, 0, 1, 1);
582
- const data = context.getImageData(0, 0, 1, 1).data;
583
- return new Color4(data[0] / 255, data[1] / 255, data[2] / 255, data[3] / 255);
584
- }
585
- /**
586
- * Represents a custom element that displays a 3D model using the Babylon.js Viewer.
587
- */
588
- let HTML3DElement = class HTML3DElement extends LitElement {
589
- constructor() {
590
- super(...arguments);
591
- this._viewerLock = new AsyncLock();
592
- /**
593
- * The engine to use for rendering.
594
- */
595
- this.engine = getDefaultEngine();
596
- /**
597
- * The model URL.
598
- */
599
- this.source = null;
600
- /**
601
- * Forces the model to be loaded with the specified extension.
602
- * @remarks
603
- * If this property is not set, the extension will be inferred from the model URL when possible.
604
- */
605
- this.extension = null;
606
- /**
607
- * The environment URL.
608
- */
609
- this.environment = null;
610
- /**
611
- * The clear color (e.g. background color) for the viewer.
612
- */
613
- this.clearColor = null;
614
- /**
615
- * A string value that encodes one or more hotspots.
616
- */
617
- this.hotspots = null;
618
- /**
619
- * The speed scale at which animations are played.
620
- */
621
- this.animationSpeed = 1;
622
- /**
623
- * The current point on the selected animation timeline, normalized between 0 and 1.
624
- */
625
- this.animationProgress = 0;
626
- this._animations = [];
627
- this._selectedAnimation = -1;
628
- this._isAnimationPlaying = false;
629
- }
630
- /**
631
- * Gets the underlying viewer details (when the underlying viewer is in a loaded state).
632
- * This is useful for advanced scenarios where direct access to the viewer or Babylon scene is needed.
633
- */
634
- get viewerDetails() {
635
- return this._viewerDetails;
636
- }
637
- /**
638
- * Get hotspot world and screen values from a named hotspot
639
- * @param name slot of the hot spot
640
- * @param result resulting world and screen positions
641
- * @returns world and screen space coordinates
642
- */
643
- queryHotSpot(name, result) {
644
- // Retrieve all hotspots inside the viewer element
645
- let resultFound = false;
646
- // Iterate through each hotspot to get the 'data-surface' and 'data-name' attributes
647
- if (this._viewerDetails) {
648
- const hotspot = this.hotspots?.[name];
649
- if (hotspot) {
650
- resultFound = this._viewerDetails.viewer.getHotSpotToRef(hotspot, result);
651
- }
652
- }
653
- return resultFound;
654
- }
655
- /**
656
- * The list of animation names for the currently loaded model.
657
- */
658
- get animations() {
659
- return this._animations;
660
- }
661
- /**
662
- * The currently selected animation index.
663
- */
664
- get selectedAnimation() {
665
- return this._selectedAnimation;
666
- }
667
- /**
668
- * True if an animation is currently playing.
669
- */
670
- get isAnimationPlaying() {
671
- return this._isAnimationPlaying;
672
- }
673
- /**
674
- * Toggles the play/pause animation state if there is a selected animation.
675
- */
676
- toggleAnimation() {
677
- this._viewerDetails?.viewer.toggleAnimation();
678
- }
679
- // eslint-disable-next-line babylonjs/available
680
- connectedCallback() {
681
- super.connectedCallback();
682
- this._setupViewer();
683
- }
684
- // eslint-disable-next-line babylonjs/available
685
- disconnectedCallback() {
686
- super.disconnectedCallback();
687
- this._tearDownViewer();
688
- }
689
- // eslint-disable-next-line babylonjs/available
690
- update(changedProperties) {
691
- super.update(changedProperties);
692
- if (changedProperties.get("engine")) {
693
- this._tearDownViewer();
694
- this._setupViewer();
695
- }
696
- else {
697
- if (changedProperties.has("clearColor")) {
698
- this._updateClearColor();
699
- }
700
- if (changedProperties.has("animationSpeed")) {
701
- this._updateAnimationSpeed();
702
- }
703
- if (changedProperties.has("_selectedAnimation")) {
704
- this._updateSelectedAnimation();
705
- }
706
- if (changedProperties.has("source")) {
707
- this._updateModel();
708
- }
709
- if (changedProperties.has("environment")) {
710
- this._updateEnv();
711
- }
712
- }
713
- }
714
- // eslint-disable-next-line babylonjs/available
715
- render() {
716
- // NOTE: The unnamed 'slot' element holds all child elements of the <babylon-viewer> that do not specify a 'slot' attribute.
717
- return html `
718
- <div class="full-size">
719
- <div id="canvasContainer" class="full-size"></div>
720
- <slot class="full-size children-slot"></slot>
721
- ${this.animations.length === 0
722
- ? ""
723
- : html `
724
- <slot name="tool-bar">
725
- <div part="tool-bar" class="tool-bar">
726
- <div class="progress-control">
727
- <button aria-label="${this.isAnimationPlaying ? "Pause" : "Play"}" @click="${this.toggleAnimation}">
728
- ${!this.isAnimationPlaying
729
- ? html `<svg viewBox="0 0 20 20">
730
- <path d="${playFilledIcon}" fill="currentColor"></path>
731
- </svg>`
732
- : html `<svg viewBox="-3 -2 24 24">
733
- <path d="${pauseFilledIcon}" fill="currentColor"></path>
734
- </svg>`}
735
- </button>
736
- <input
737
- aria-label="Animation Progress"
738
- class="progress-wrapper"
739
- type="range"
740
- min="0"
741
- max="1"
742
- step="0.0001"
743
- .value="${this.animationProgress}"
744
- @input="${this._onProgressChanged}"
745
- @pointerdown="${this._onProgressPointerDown}"
746
- />
747
- </div>
748
- <select aria-label="Select Animation Speed" @change="${this._onAnimationSpeedChanged}">
749
- ${allowedAnimationSpeeds.map((speed) => html `<option value="${speed}" .selected="${this.animationSpeed === speed}">${speed}x</option>`)}
750
- </select>
751
- ${this.animations.length > 1
752
- ? html `<select aria-label="Select Animation" @change="${this._onSelectedAnimationChanged}">
753
- ${this.animations.map((name, index) => html `<option value="${index}" .selected="${this.selectedAnimation == index}">${name}</option>`)}
754
- </select>`
755
- : ""}
756
- </div>
757
- </slot>
758
- `}
759
- </div>
760
- `;
761
- }
762
- addEventListener(type, listener, options) {
763
- super.addEventListener(type, listener, options);
764
- }
765
- _dispatchCustomEvent(type, event) {
766
- this.dispatchEvent(event(type));
767
- }
768
- _onSelectedAnimationChanged(event) {
769
- const selectElement = event.target;
770
- this._selectedAnimation = Number(selectElement.value);
771
- }
772
- _onAnimationSpeedChanged(event) {
773
- const selectElement = event.target;
774
- this.animationSpeed = Number(selectElement.value);
775
- }
776
- _onProgressChanged(event) {
777
- if (this._viewerDetails) {
778
- const input = event.target;
779
- const value = Number(input.value);
780
- if (value !== this.animationProgress) {
781
- this._viewerDetails.viewer.animationProgress = value;
782
- }
783
- }
784
- }
785
- _onProgressPointerDown(event) {
786
- if (this._viewerDetails?.viewer.isAnimationPlaying) {
787
- this._viewerDetails.viewer.pauseAnimation();
788
- const input = event.target;
789
- input.addEventListener("pointerup", () => this._viewerDetails?.viewer.playAnimation(), { once: true });
790
- }
791
- }
792
- async _setupViewer() {
793
- await this._viewerLock.lockAsync(async () => {
794
- // The first time the element is connected, the canvas container may not be available yet.
795
- // Wait for the first update if needed.
796
- if (!this._canvasContainer) {
797
- await this.updateComplete;
798
- }
799
- if (this._canvasContainer && !this._viewerDetails) {
800
- const canvas = document.createElement("canvas");
801
- canvas.className = "full-size";
802
- canvas.setAttribute("touch-action", "none");
803
- this._canvasContainer.appendChild(canvas);
804
- await createViewerForCanvas(canvas, {
805
- engine: this.engine,
806
- onInitialized: (details) => {
807
- this._viewerDetails = details;
808
- details.viewer.onEnvironmentChanged.add(() => {
809
- this._dispatchCustomEvent("environmentchange", (type) => new Event(type));
810
- });
811
- details.viewer.onEnvironmentError.add((error) => {
812
- this._dispatchCustomEvent("environmenterror", (type) => new ErrorEvent(type, { error }));
813
- });
814
- details.viewer.onModelChanged.add(() => {
815
- this._animations = [...details.viewer.animations];
816
- this._dispatchCustomEvent("modelchange", (type) => new Event(type));
817
- });
818
- details.viewer.onModelError.add((error) => {
819
- this._animations = [...details.viewer.animations];
820
- this._dispatchCustomEvent("modelerror", (type) => new ErrorEvent(type, { error }));
821
- });
822
- details.viewer.onSelectedAnimationChanged.add(() => {
823
- this._selectedAnimation = details.viewer.selectedAnimation ?? -1;
824
- this._dispatchCustomEvent("selectedanimationchange", (type) => new Event(type));
825
- });
826
- details.viewer.onAnimationSpeedChanged.add(() => {
827
- let speed = details.viewer.animationSpeed ?? 1;
828
- speed = allowedAnimationSpeeds.reduce((prev, curr) => (Math.abs(curr - speed) < Math.abs(prev - speed) ? curr : prev));
829
- this.animationSpeed = speed;
830
- this._dispatchCustomEvent("animationspeedchange", (type) => new Event(type));
831
- });
832
- details.viewer.onIsAnimationPlayingChanged.add(() => {
833
- this._isAnimationPlaying = details.viewer.isAnimationPlaying ?? false;
834
- this._dispatchCustomEvent("animationplayingchange", (type) => new Event(type));
835
- });
836
- details.viewer.onAnimationProgressChanged.add(() => {
837
- this.animationProgress = details.viewer.animationProgress ?? 0;
838
- this._dispatchCustomEvent("animationprogresschange", (type) => new Event(type));
839
- });
840
- this._updateClearColor();
841
- this._updateSelectedAnimation();
842
- this._updateAnimationSpeed();
843
- this._updateModel();
844
- this._updateEnv();
845
- this._dispatchCustomEvent("viewerready", (type) => new Event(type));
846
- },
847
- });
848
- }
849
- });
850
- }
851
- async _tearDownViewer() {
852
- await this._viewerLock.lockAsync(async () => {
853
- if (this._viewerDetails) {
854
- this._viewerDetails.viewer.dispose();
855
- this._viewerDetails = undefined;
856
- }
857
- // We want to replace the canvas for two reasons:
858
- // 1. When the viewer element is reconnected to the DOM, we don't want to briefly see the last frame of the previous model.
859
- // 2. If we are changing engines (e.g. WebGL to WebGPU), we need to create a new canvas for the new engine.
860
- if (this._canvasContainer && this._canvasContainer.firstElementChild) {
861
- this._canvasContainer.removeChild(this._canvasContainer.firstElementChild);
862
- }
863
- });
864
- }
865
- _updateClearColor() {
866
- if (this._viewerDetails) {
867
- this._viewerDetails.scene.clearColor = this.clearColor ?? new Color4(0, 0, 0, 0);
868
- }
869
- }
870
- _updateAnimationSpeed() {
871
- if (this._viewerDetails) {
872
- this._viewerDetails.viewer.animationSpeed = this.animationSpeed;
873
- }
874
- }
875
- _updateSelectedAnimation() {
876
- if (this._viewerDetails) {
877
- this._viewerDetails.viewer.selectedAnimation = this._selectedAnimation;
878
- }
879
- }
880
- async _updateModel() {
881
- try {
882
- if (this.source) {
883
- await this._viewerDetails?.viewer.loadModel(this.source, { pluginExtension: this.extension ?? undefined });
884
- }
885
- else {
886
- await this._viewerDetails?.viewer.resetModel();
887
- }
888
- }
889
- catch (error) {
890
- Logger.Log(error);
891
- }
892
- }
893
- async _updateEnv() {
894
- try {
895
- if (this.environment) {
896
- await this._viewerDetails?.viewer.loadEnvironment(this.environment);
897
- }
898
- else {
899
- await this._viewerDetails?.viewer.resetEnvironment();
900
- }
901
- }
902
- catch (error) {
903
- Logger.Log(error);
904
- }
905
- }
906
- };
907
- // eslint-disable-next-line @typescript-eslint/naming-convention, jsdoc/require-jsdoc
908
- HTML3DElement.styles = css `
909
- :host {
910
- --ui-foreground-color: white;
911
- --ui-background-hue: 233;
912
- --ui-background-saturation: 8%;
913
- --ui-background-lightness: 39%;
914
- --ui-background-opacity: 0.75;
915
- --ui-background-color: hsla(var(--ui-background-hue), var(--ui-background-saturation), var(--ui-background-lightness), var(--ui-background-opacity));
916
- --ui-background-color-hover: hsla(
917
- var(--ui-background-hue),
918
- var(--ui-background-saturation),
919
- calc(var(--ui-background-lightness) - 10%),
920
- calc(var(--ui-background-opacity) - 0.1)
921
- );
922
- all: inherit;
923
- }
924
-
925
- * {
926
- box-sizing: border-box;
927
- }
928
-
929
- .full-size {
930
- display: block;
931
- position: relative;
932
- width: 100%;
933
- height: 100%;
934
- }
935
-
936
- .children-slot {
937
- position: absolute;
938
- top: 0;
939
- background: transparent;
940
- pointer-events: none;
941
- }
942
-
943
- .tool-bar {
944
- position: absolute;
945
- display: flex;
946
- flex-direction: row;
947
- border-radius: 12px;
948
- border-color: var(--ui-foreground-color);
949
- height: 48px;
950
- width: calc(100% - 24px);
951
- min-width: 150px;
952
- max-width: 1280px;
953
- bottom: 12px;
954
- left: 50%;
955
- transform: translateX(-50%);
956
- background-color: var(--ui-background-color);
957
- color: var(--ui-foreground-color);
958
- -webkit-tap-highlight-color: transparent;
959
- }
960
-
961
- .tool-bar * {
962
- height: 100%;
963
- min-width: 48px;
964
- }
965
-
966
- .tool-bar select {
967
- background: none;
968
- min-width: 52px;
969
- max-width: 128px;
970
- border: 1px solid transparent;
971
- border-radius: inherit;
972
- color: inherit;
973
- font-size: 14px;
974
- padding: 12px;
975
- cursor: pointer;
976
- outline: none;
977
- appearance: none; /* Remove default styling */
978
- -webkit-appearance: none; /* Remove default styling for Safari */
979
- }
980
-
981
- .tool-bar select:hover,
982
- .tool-bar select:focus {
983
- background-color: var(--ui-background-color-hover);
984
- }
985
-
986
- .tool-bar select option {
987
- background-color: var(--ui-background-color);
988
- color: var(--ui-foreground-color);
989
- }
990
-
991
- .tool-bar select:focus-visible {
992
- border-color: inherit;
993
- }
994
-
995
- .tool-bar button {
996
- background: none;
997
- border: 1px solid transparent;
998
- border-radius: inherit;
999
- color: inherit;
1000
- padding: 0;
1001
- cursor: pointer;
1002
- outline: none;
1003
- }
1004
-
1005
- .tool-bar button:hover {
1006
- background-color: var(--ui-background-color-hover);
1007
- }
1008
-
1009
- .tool-bar button:focus-visible {
1010
- border-color: inherit;
1011
- }
1012
-
1013
- .tool-bar button svg {
1014
- width: 32px;
1015
- height: 32px;
1016
- }
1017
-
1018
- .progress-control {
1019
- display: flex;
1020
- flex: 1;
1021
- position: relative;
1022
- overflow: hidden;
1023
- cursor: pointer;
1024
- align-items: center;
1025
- border-radius: inherit;
1026
- border-color: inherit;
1027
- }
1028
-
1029
- .progress-wrapper {
1030
- -webkit-appearance: none;
1031
- cursor: pointer;
1032
- width: 100%;
1033
- height: 100%;
1034
- outline: none;
1035
- border: 1px solid transparent;
1036
- border-radius: inherit;
1037
- padding: 0 12px;
1038
- background-color: transparent;
1039
- }
1040
-
1041
- .progress-wrapper:focus-visible {
1042
- border-color: inherit;
1043
- }
1044
-
1045
- /*Chrome -webkit */
1046
-
1047
- .progress-wrapper::-webkit-slider-thumb {
1048
- -webkit-appearance: none;
1049
- width: 20px;
1050
- height: 20px;
1051
- border: 2px solid;
1052
- color: var(--ui-foreground-color);
1053
- border-radius: 50%;
1054
- background: hsla(var(--ui-background-hue), var(--ui-background-saturation), var(--ui-background-lightness), 1);
1055
- margin-top: -10px;
1056
- }
1057
-
1058
- .progress-wrapper::-webkit-slider-runnable-track {
1059
- height: 2px;
1060
- -webkit-appearance: none;
1061
- background-color: var(--ui-foreground-color);
1062
- }
1063
-
1064
- /** FireFox -moz */
1065
-
1066
- .progress-wrapper::-moz-range-progress {
1067
- height: 2px;
1068
- background-color: var(--ui-foreground-color);
1069
- }
1070
-
1071
- .progress-wrapper::-moz-range-thumb {
1072
- width: 16px;
1073
- height: 16px;
1074
- border: 2px solid var(--ui-foreground-color);
1075
- border-radius: 50%;
1076
- background: hsla(var(--ui-background-hue), var(--ui-background-saturation), var(--ui-background-lightness), 1);
1077
- }
1078
-
1079
- .progress-wrapper::-moz-range-track {
1080
- height: 2px;
1081
- background: var(--ui-foreground-color);
1082
- }
1083
- `;
1084
- __decorate([
1085
- property({ reflect: true })
1086
- ], HTML3DElement.prototype, "engine", void 0);
1087
- __decorate([
1088
- property({ reflect: true })
1089
- ], HTML3DElement.prototype, "source", void 0);
1090
- __decorate([
1091
- property({ reflect: true })
1092
- ], HTML3DElement.prototype, "extension", void 0);
1093
- __decorate([
1094
- property({ reflect: true })
1095
- ], HTML3DElement.prototype, "environment", void 0);
1096
- __decorate([
1097
- property({
1098
- attribute: "clear-color",
1099
- reflect: true,
1100
- type: "string",
1101
- converter: {
1102
- fromAttribute: parseColor,
1103
- toAttribute: (color) => (color ? color.toHexString() : null),
1104
- },
1105
- })
1106
- ], HTML3DElement.prototype, "clearColor", void 0);
1107
- __decorate([
1108
- property({
1109
- type: "string",
1110
- converter: (value) => {
1111
- if (!value) {
1112
- return null;
1113
- }
1114
- const array = value.split(/\s+/);
1115
- if (array.length % 8 !== 0) {
1116
- throw new Error(`hotspots should be defined in sets of 8 elements: 'name meshIndex pointIndex1 pointIndex2 pointIndex3 barycentricCoord1 barycentricCoord2 barycentricCoord3', but a total of ${array.length} elements were found in '${value}'`);
1117
- }
1118
- const hotspots = {};
1119
- for (let offset = 0; offset < array.length; offset += 8) {
1120
- hotspots[array[offset]] = {
1121
- meshIndex: Number(array[offset + 1]),
1122
- pointIndex: [Number(array[offset + 2]), Number(array[offset + 3]), Number(array[offset + 4])],
1123
- barycentric: [Number(array[offset + 5]), Number(array[offset + 6]), Number(array[offset + 7])],
1124
- };
1125
- }
1126
- return hotspots;
1127
- },
1128
- })
1129
- ], HTML3DElement.prototype, "hotspots", void 0);
1130
- __decorate([
1131
- property({ attribute: "animation-speed", reflect: true })
1132
- ], HTML3DElement.prototype, "animationSpeed", void 0);
1133
- __decorate([
1134
- property({ attribute: false })
1135
- ], HTML3DElement.prototype, "animationProgress", void 0);
1136
- __decorate([
1137
- state()
1138
- ], HTML3DElement.prototype, "_animations", void 0);
1139
- __decorate([
1140
- state()
1141
- ], HTML3DElement.prototype, "_selectedAnimation", void 0);
1142
- __decorate([
1143
- state()
1144
- ], HTML3DElement.prototype, "_isAnimationPlaying", void 0);
1145
- __decorate([
1146
- query("#canvasContainer")
1147
- ], HTML3DElement.prototype, "_canvasContainer", void 0);
1148
- HTML3DElement = __decorate([
1149
- customElement("babylon-viewer")
1150
- ], HTML3DElement);
1151
-
1152
- export { HTML3DElement, Viewer, createViewerForCanvas, getDefaultEngine };
1153
- //# sourceMappingURL=index.js.map