@babylonjs/viewer 7.41.1 → 7.42.0-alpha

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 (619) hide show
  1. package/assets/photoStudio.env +0 -0
  2. package/dist/babylon-viewer.esm.js +2 -0
  3. package/dist/babylon-viewer.esm.js.map +1 -0
  4. package/dist/babylon-viewer.esm.min.js +2 -0
  5. package/dist/babylon-viewer.esm.min.js.map +1 -0
  6. package/dist/chunks/EXT_lights_ies-BHDD74jk.esm.min.js +2 -0
  7. package/dist/chunks/EXT_lights_ies-BHDD74jk.esm.min.js.map +1 -0
  8. package/dist/chunks/EXT_lights_ies-CJfRNbJm.esm.js +84 -0
  9. package/dist/chunks/EXT_lights_ies-CJfRNbJm.esm.js.map +1 -0
  10. package/dist/chunks/EXT_lights_image_based-B460Sv95.esm.min.js +2 -0
  11. package/dist/chunks/EXT_lights_image_based-B460Sv95.esm.min.js.map +1 -0
  12. package/dist/chunks/EXT_lights_image_based-CQ6UCahL.esm.js +171 -0
  13. package/dist/chunks/EXT_lights_image_based-CQ6UCahL.esm.js.map +1 -0
  14. package/dist/chunks/EXT_mesh_gpu_instancing-D77OfiDS.esm.js +86 -0
  15. package/dist/chunks/EXT_mesh_gpu_instancing-D77OfiDS.esm.js.map +1 -0
  16. package/dist/chunks/EXT_mesh_gpu_instancing-GMG29Y9J.esm.min.js +2 -0
  17. package/dist/chunks/EXT_mesh_gpu_instancing-GMG29Y9J.esm.min.js.map +1 -0
  18. package/dist/chunks/EXT_meshopt_compression-CniiOX0a.esm.js +134 -0
  19. package/dist/chunks/EXT_meshopt_compression-CniiOX0a.esm.js.map +1 -0
  20. package/dist/chunks/EXT_meshopt_compression-DCcKdizI.esm.min.js +2 -0
  21. package/dist/chunks/EXT_meshopt_compression-DCcKdizI.esm.min.js.map +1 -0
  22. package/dist/chunks/EXT_texture_avif-By7mk6aS.esm.min.js +2 -0
  23. package/dist/chunks/EXT_texture_avif-By7mk6aS.esm.min.js.map +1 -0
  24. package/dist/chunks/EXT_texture_avif-DnaKno7b.esm.js +44 -0
  25. package/dist/chunks/EXT_texture_avif-DnaKno7b.esm.js.map +1 -0
  26. package/dist/chunks/EXT_texture_webp-Bm29ukIo.esm.js +43 -0
  27. package/dist/chunks/EXT_texture_webp-Bm29ukIo.esm.js.map +1 -0
  28. package/dist/chunks/EXT_texture_webp-DtSWYlAE.esm.min.js +2 -0
  29. package/dist/chunks/EXT_texture_webp-DtSWYlAE.esm.min.js.map +1 -0
  30. package/dist/chunks/ExtrasAsMetadata-BUO8J2zR.esm.js +64 -0
  31. package/dist/chunks/ExtrasAsMetadata-BUO8J2zR.esm.js.map +1 -0
  32. package/dist/chunks/ExtrasAsMetadata-mi3fn9sR.esm.min.js +2 -0
  33. package/dist/chunks/ExtrasAsMetadata-mi3fn9sR.esm.min.js.map +1 -0
  34. package/dist/chunks/KHR_animation_pointer-COeThtQe.esm.min.js +2 -0
  35. package/dist/chunks/KHR_animation_pointer-COeThtQe.esm.min.js.map +1 -0
  36. package/dist/chunks/KHR_animation_pointer-DXqgkZGB.esm.js +352 -0
  37. package/dist/chunks/KHR_animation_pointer-DXqgkZGB.esm.js.map +1 -0
  38. package/dist/chunks/KHR_draco_mesh_compression-Bh9XGNFd.esm.js +610 -0
  39. package/dist/chunks/KHR_draco_mesh_compression-Bh9XGNFd.esm.js.map +1 -0
  40. package/dist/chunks/KHR_draco_mesh_compression-DyU2KIa2.esm.min.js +2 -0
  41. package/dist/chunks/KHR_draco_mesh_compression-DyU2KIa2.esm.min.js.map +1 -0
  42. package/dist/chunks/KHR_interactivity-QP9zFX3U.esm.js +4033 -0
  43. package/dist/chunks/KHR_interactivity-QP9zFX3U.esm.js.map +1 -0
  44. package/dist/chunks/KHR_interactivity-_r7e7vwA.esm.min.js +2 -0
  45. package/dist/chunks/KHR_interactivity-_r7e7vwA.esm.min.js.map +1 -0
  46. package/dist/chunks/KHR_lights_punctual-DWGx9KlE.esm.js +581 -0
  47. package/dist/chunks/KHR_lights_punctual-DWGx9KlE.esm.js.map +1 -0
  48. package/dist/chunks/KHR_lights_punctual-cz3ulMW0.esm.min.js +2 -0
  49. package/dist/chunks/KHR_lights_punctual-cz3ulMW0.esm.min.js.map +1 -0
  50. package/dist/chunks/KHR_materials_anisotropy-BSvZxEnx.esm.js +65 -0
  51. package/dist/chunks/KHR_materials_anisotropy-BSvZxEnx.esm.js.map +1 -0
  52. package/dist/chunks/KHR_materials_anisotropy-CtKPvN_z.esm.min.js +2 -0
  53. package/dist/chunks/KHR_materials_anisotropy-CtKPvN_z.esm.min.js.map +1 -0
  54. package/dist/chunks/KHR_materials_clearcoat-BephgEiM.esm.min.js +2 -0
  55. package/dist/chunks/KHR_materials_clearcoat-BephgEiM.esm.min.js.map +1 -0
  56. package/dist/chunks/KHR_materials_clearcoat-C3QB9HNC.esm.js +96 -0
  57. package/dist/chunks/KHR_materials_clearcoat-C3QB9HNC.esm.js.map +1 -0
  58. package/dist/chunks/KHR_materials_diffuse_transmission-CZvfLdyF.esm.min.js +2 -0
  59. package/dist/chunks/KHR_materials_diffuse_transmission-CZvfLdyF.esm.min.js.map +1 -0
  60. package/dist/chunks/KHR_materials_diffuse_transmission-DuM5GD2L.esm.js +97 -0
  61. package/dist/chunks/KHR_materials_diffuse_transmission-DuM5GD2L.esm.js.map +1 -0
  62. package/dist/chunks/KHR_materials_dispersion-0FtkqUmS.esm.js +62 -0
  63. package/dist/chunks/KHR_materials_dispersion-0FtkqUmS.esm.js.map +1 -0
  64. package/dist/chunks/KHR_materials_dispersion-C7mAat5y.esm.min.js +2 -0
  65. package/dist/chunks/KHR_materials_dispersion-C7mAat5y.esm.min.js.map +1 -0
  66. package/dist/chunks/KHR_materials_emissive_strength-Bz2y9OnA.esm.js +55 -0
  67. package/dist/chunks/KHR_materials_emissive_strength-Bz2y9OnA.esm.js.map +1 -0
  68. package/dist/chunks/KHR_materials_emissive_strength-b7ZNj1HF.esm.min.js +2 -0
  69. package/dist/chunks/KHR_materials_emissive_strength-b7ZNj1HF.esm.min.js.map +1 -0
  70. package/dist/chunks/KHR_materials_ior-C5-JiuLs.esm.min.js +2 -0
  71. package/dist/chunks/KHR_materials_ior-C5-JiuLs.esm.min.js.map +1 -0
  72. package/dist/chunks/KHR_materials_ior-D1jjzmsp.esm.js +64 -0
  73. package/dist/chunks/KHR_materials_ior-D1jjzmsp.esm.js.map +1 -0
  74. package/dist/chunks/KHR_materials_iridescence-CChET9-W.esm.js +72 -0
  75. package/dist/chunks/KHR_materials_iridescence-CChET9-W.esm.js.map +1 -0
  76. package/dist/chunks/KHR_materials_iridescence-hATfgETI.esm.min.js +2 -0
  77. package/dist/chunks/KHR_materials_iridescence-hATfgETI.esm.min.js.map +1 -0
  78. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-B-HlmeqI.esm.js +81 -0
  79. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-B-HlmeqI.esm.js.map +1 -0
  80. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-_IaUmSJE.esm.min.js +2 -0
  81. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-_IaUmSJE.esm.min.js.map +1 -0
  82. package/dist/chunks/KHR_materials_sheen-D2QD8uSC.esm.js +85 -0
  83. package/dist/chunks/KHR_materials_sheen-D2QD8uSC.esm.js.map +1 -0
  84. package/dist/chunks/KHR_materials_sheen-cqxpRyXD.esm.min.js +2 -0
  85. package/dist/chunks/KHR_materials_sheen-cqxpRyXD.esm.min.js.map +1 -0
  86. package/dist/chunks/KHR_materials_specular-DnHIH9RX.esm.min.js +2 -0
  87. package/dist/chunks/KHR_materials_specular-DnHIH9RX.esm.min.js.map +1 -0
  88. package/dist/chunks/KHR_materials_specular-vwRXhXVF.esm.js +75 -0
  89. package/dist/chunks/KHR_materials_specular-vwRXhXVF.esm.js.map +1 -0
  90. package/dist/chunks/KHR_materials_transmission-D81TRCgt.esm.min.js +2 -0
  91. package/dist/chunks/KHR_materials_transmission-D81TRCgt.esm.min.js.map +1 -0
  92. package/dist/chunks/KHR_materials_transmission-nPX6lno-.esm.js +307 -0
  93. package/dist/chunks/KHR_materials_transmission-nPX6lno-.esm.js.map +1 -0
  94. package/dist/chunks/KHR_materials_unlit-CLSTXPsk.esm.min.js +2 -0
  95. package/dist/chunks/KHR_materials_unlit-CLSTXPsk.esm.min.js.map +1 -0
  96. package/dist/chunks/KHR_materials_unlit-pmQPq5qR.esm.js +74 -0
  97. package/dist/chunks/KHR_materials_unlit-pmQPq5qR.esm.js.map +1 -0
  98. package/dist/chunks/KHR_materials_variants-C_XVH51a.esm.js +262 -0
  99. package/dist/chunks/KHR_materials_variants-C_XVH51a.esm.js.map +1 -0
  100. package/dist/chunks/KHR_materials_variants-Czo1ZM8r.esm.min.js +2 -0
  101. package/dist/chunks/KHR_materials_variants-Czo1ZM8r.esm.min.js.map +1 -0
  102. package/dist/chunks/KHR_materials_volume-BJVGGE1g.esm.min.js +2 -0
  103. package/dist/chunks/KHR_materials_volume-BJVGGE1g.esm.min.js.map +1 -0
  104. package/dist/chunks/KHR_materials_volume-C4EKOzF-.esm.js +87 -0
  105. package/dist/chunks/KHR_materials_volume-C4EKOzF-.esm.js.map +1 -0
  106. package/dist/chunks/KHR_mesh_quantization-CZIcA8DN.esm.min.js +2 -0
  107. package/dist/chunks/KHR_mesh_quantization-CZIcA8DN.esm.min.js.map +1 -0
  108. package/dist/chunks/KHR_mesh_quantization-DG9WNux6.esm.js +26 -0
  109. package/dist/chunks/KHR_mesh_quantization-DG9WNux6.esm.js.map +1 -0
  110. package/dist/chunks/KHR_node_hoverability-C1YMkQ95.esm.js +39 -0
  111. package/dist/chunks/KHR_node_hoverability-C1YMkQ95.esm.js.map +1 -0
  112. package/dist/chunks/KHR_node_hoverability-HxHiCdR9.esm.min.js +2 -0
  113. package/dist/chunks/KHR_node_hoverability-HxHiCdR9.esm.min.js.map +1 -0
  114. package/dist/chunks/KHR_node_visibility-C5tc6GOc.esm.js +46 -0
  115. package/dist/chunks/KHR_node_visibility-C5tc6GOc.esm.js.map +1 -0
  116. package/dist/chunks/KHR_node_visibility-CSqn8wRd.esm.min.js +2 -0
  117. package/dist/chunks/KHR_node_visibility-CSqn8wRd.esm.min.js.map +1 -0
  118. package/dist/chunks/KHR_texture_basisu-DA2FE-qb.esm.min.js +2 -0
  119. package/dist/chunks/KHR_texture_basisu-DA2FE-qb.esm.min.js.map +1 -0
  120. package/dist/chunks/KHR_texture_basisu-KtQL54P-.esm.js +43 -0
  121. package/dist/chunks/KHR_texture_basisu-KtQL54P-.esm.js.map +1 -0
  122. package/dist/chunks/KHR_texture_transform-Cb6Q41F3.esm.js +63 -0
  123. package/dist/chunks/KHR_texture_transform-Cb6Q41F3.esm.js.map +1 -0
  124. package/dist/chunks/KHR_texture_transform-GdBAq_uW.esm.min.js +2 -0
  125. package/dist/chunks/KHR_texture_transform-GdBAq_uW.esm.min.js.map +1 -0
  126. package/dist/chunks/KHR_xmp_json_ld-CD_mkZDv.esm.min.js +2 -0
  127. package/dist/chunks/KHR_xmp_json_ld-CD_mkZDv.esm.min.js.map +1 -0
  128. package/dist/chunks/KHR_xmp_json_ld-f1rcQfsd.esm.js +51 -0
  129. package/dist/chunks/KHR_xmp_json_ld-f1rcQfsd.esm.js.map +1 -0
  130. package/dist/chunks/MSFT_audio_emitter-BU83EIcP.esm.min.js +2 -0
  131. package/dist/chunks/MSFT_audio_emitter-BU83EIcP.esm.min.js.map +1 -0
  132. package/dist/chunks/MSFT_audio_emitter-ClwdeJaR.esm.js +2201 -0
  133. package/dist/chunks/MSFT_audio_emitter-ClwdeJaR.esm.js.map +1 -0
  134. package/dist/chunks/MSFT_lod-D3MQWFc3.esm.min.js +2 -0
  135. package/dist/chunks/MSFT_lod-D3MQWFc3.esm.min.js.map +1 -0
  136. package/dist/chunks/MSFT_lod-DkM5iXcm.esm.js +337 -0
  137. package/dist/chunks/MSFT_lod-DkM5iXcm.esm.js.map +1 -0
  138. package/dist/chunks/MSFT_minecraftMesh-CG9JY5Ic.esm.min.js +2 -0
  139. package/dist/chunks/MSFT_minecraftMesh-CG9JY5Ic.esm.min.js.map +1 -0
  140. package/dist/chunks/MSFT_minecraftMesh-Cyjdx_Y_.esm.js +46 -0
  141. package/dist/chunks/MSFT_minecraftMesh-Cyjdx_Y_.esm.js.map +1 -0
  142. package/dist/chunks/MSFT_sRGBFactors-Bm3_fRmt.esm.min.js +2 -0
  143. package/dist/chunks/MSFT_sRGBFactors-Bm3_fRmt.esm.min.js.map +1 -0
  144. package/dist/chunks/MSFT_sRGBFactors-uFdNij-4.esm.js +47 -0
  145. package/dist/chunks/MSFT_sRGBFactors-uFdNij-4.esm.js.map +1 -0
  146. package/dist/chunks/animationGroup-CravGs2P.esm.min.js +2 -0
  147. package/dist/chunks/animationGroup-CravGs2P.esm.min.js.map +1 -0
  148. package/dist/chunks/animationGroup-DqmFa1Nk.esm.js +2482 -0
  149. package/dist/chunks/animationGroup-DqmFa1Nk.esm.js.map +1 -0
  150. package/dist/chunks/assetContainer-0Qu2XIWb.esm.js +1720 -0
  151. package/dist/chunks/assetContainer-0Qu2XIWb.esm.js.map +1 -0
  152. package/dist/chunks/assetContainer-CMuD-n3X.esm.min.js +2 -0
  153. package/dist/chunks/assetContainer-CMuD-n3X.esm.min.js.map +1 -0
  154. package/dist/chunks/audioEngine--EMyAh-L.esm.js +305 -0
  155. package/dist/chunks/audioEngine--EMyAh-L.esm.js.map +1 -0
  156. package/dist/chunks/audioEngine-3doZGQV6.esm.min.js +2 -0
  157. package/dist/chunks/audioEngine-3doZGQV6.esm.min.js.map +1 -0
  158. package/dist/chunks/bakedVertexAnimation-DgMI1D24.esm.min.js +2 -0
  159. package/dist/chunks/bakedVertexAnimation-DgMI1D24.esm.min.js.map +1 -0
  160. package/dist/chunks/bakedVertexAnimation-gQlUctpB.esm.js +114 -0
  161. package/dist/chunks/bakedVertexAnimation-gQlUctpB.esm.js.map +1 -0
  162. package/dist/chunks/basisTextureLoader-B0PY0ILM.esm.js +600 -0
  163. package/dist/chunks/basisTextureLoader-B0PY0ILM.esm.js.map +1 -0
  164. package/dist/chunks/basisTextureLoader-ES0mOtqQ.esm.min.js +2 -0
  165. package/dist/chunks/basisTextureLoader-ES0mOtqQ.esm.min.js.map +1 -0
  166. package/dist/chunks/dds-DEZD6DKL.esm.min.js +2 -0
  167. package/dist/chunks/dds-DEZD6DKL.esm.min.js.map +1 -0
  168. package/dist/chunks/dds-HwVEMga8.esm.js +540 -0
  169. package/dist/chunks/dds-HwVEMga8.esm.js.map +1 -0
  170. package/dist/chunks/ddsTextureLoader-3PDKukdG.esm.js +88 -0
  171. package/dist/chunks/ddsTextureLoader-3PDKukdG.esm.js.map +1 -0
  172. package/dist/chunks/ddsTextureLoader-C62DqYdE.esm.min.js +2 -0
  173. package/dist/chunks/ddsTextureLoader-C62DqYdE.esm.min.js.map +1 -0
  174. package/dist/chunks/decalFragment-B9KsZn_u.esm.min.js +2 -0
  175. package/dist/chunks/decalFragment-B9KsZn_u.esm.min.js.map +1 -0
  176. package/dist/chunks/decalFragment-CNA1EQK9.esm.js +18 -0
  177. package/dist/chunks/decalFragment-CNA1EQK9.esm.js.map +1 -0
  178. package/dist/chunks/default.fragment-BsajFq2Q.esm.js +446 -0
  179. package/dist/chunks/default.fragment-BsajFq2Q.esm.js.map +1 -0
  180. package/dist/chunks/default.fragment-C7O2NjXo.esm.min.js +2 -0
  181. package/dist/chunks/default.fragment-C7O2NjXo.esm.min.js.map +1 -0
  182. package/dist/chunks/default.fragment-CNef5Xlg.esm.min.js +2 -0
  183. package/dist/chunks/default.fragment-CNef5Xlg.esm.min.js.map +1 -0
  184. package/dist/chunks/default.fragment-DAO0SBl-.esm.js +515 -0
  185. package/dist/chunks/default.fragment-DAO0SBl-.esm.js.map +1 -0
  186. package/dist/chunks/default.vertex-Ban5pFUb.esm.js +211 -0
  187. package/dist/chunks/default.vertex-Ban5pFUb.esm.js.map +1 -0
  188. package/dist/chunks/default.vertex-CPjp6YBQ.esm.min.js +2 -0
  189. package/dist/chunks/default.vertex-CPjp6YBQ.esm.min.js.map +1 -0
  190. package/dist/chunks/default.vertex-CemfGK4Y.esm.min.js +2 -0
  191. package/dist/chunks/default.vertex-CemfGK4Y.esm.min.js.map +1 -0
  192. package/dist/chunks/default.vertex-QE4cV7Y2.esm.js +190 -0
  193. package/dist/chunks/default.vertex-QE4cV7Y2.esm.js.map +1 -0
  194. package/dist/chunks/defaultUboDeclaration-B5nIsoCQ.esm.min.js +2 -0
  195. package/dist/chunks/defaultUboDeclaration-B5nIsoCQ.esm.min.js.map +1 -0
  196. package/dist/chunks/defaultUboDeclaration-B8tY8ajW.esm.js +15 -0
  197. package/dist/chunks/defaultUboDeclaration-B8tY8ajW.esm.js.map +1 -0
  198. package/dist/chunks/defaultUboDeclaration-D7yr1BRw.esm.js +13 -0
  199. package/dist/chunks/defaultUboDeclaration-D7yr1BRw.esm.js.map +1 -0
  200. package/dist/chunks/defaultUboDeclaration-Db_EQWlv.esm.min.js +2 -0
  201. package/dist/chunks/defaultUboDeclaration-Db_EQWlv.esm.min.js.map +1 -0
  202. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
  203. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
  204. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
  205. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
  206. package/dist/chunks/dumpTools-C13JzZr_.esm.min.js +2 -0
  207. package/dist/chunks/dumpTools-C13JzZr_.esm.min.js.map +1 -0
  208. package/dist/chunks/dumpTools-D6BRv6Ws.esm.js +200 -0
  209. package/dist/chunks/dumpTools-D6BRv6Ws.esm.js.map +1 -0
  210. package/dist/chunks/engine-29lBc-mw.esm.min.js +2 -0
  211. package/dist/chunks/engine-29lBc-mw.esm.min.js.map +1 -0
  212. package/dist/chunks/engine-Bk6S663t.esm.js +2213 -0
  213. package/dist/chunks/engine-Bk6S663t.esm.js.map +1 -0
  214. package/dist/chunks/engine.common-D_DOB0rT.esm.js +1162 -0
  215. package/dist/chunks/engine.common-D_DOB0rT.esm.js.map +1 -0
  216. package/dist/chunks/engine.common-OpqDqcE2.esm.min.js +2 -0
  217. package/dist/chunks/engine.common-OpqDqcE2.esm.min.js.map +1 -0
  218. package/dist/chunks/envTextureLoader-DS13pG9w.esm.js +64 -0
  219. package/dist/chunks/envTextureLoader-DS13pG9w.esm.js.map +1 -0
  220. package/dist/chunks/envTextureLoader-Dt6q0XDu.esm.min.js +2 -0
  221. package/dist/chunks/envTextureLoader-Dt6q0XDu.esm.min.js.map +1 -0
  222. package/dist/chunks/environmentTextureTools-DKN-Hd8c.esm.min.js +2 -0
  223. package/dist/chunks/environmentTextureTools-DKN-Hd8c.esm.min.js.map +1 -0
  224. package/dist/chunks/environmentTextureTools-DWkvV21A.esm.js +382 -0
  225. package/dist/chunks/environmentTextureTools-DWkvV21A.esm.js.map +1 -0
  226. package/dist/chunks/exrTextureLoader-6o4jfUaF.esm.js +1683 -0
  227. package/dist/chunks/exrTextureLoader-6o4jfUaF.esm.js.map +1 -0
  228. package/dist/chunks/exrTextureLoader-CXV9O3pZ.esm.min.js +2 -0
  229. package/dist/chunks/exrTextureLoader-CXV9O3pZ.esm.min.js.map +1 -0
  230. package/dist/chunks/fogFragment-BdOtsPe3.esm.js +102 -0
  231. package/dist/chunks/fogFragment-BdOtsPe3.esm.js.map +1 -0
  232. package/dist/chunks/fogFragment-Cv3Bqrrg.esm.js +101 -0
  233. package/dist/chunks/fogFragment-Cv3Bqrrg.esm.js.map +1 -0
  234. package/dist/chunks/fogFragment-D91rqvp0.esm.min.js +2 -0
  235. package/dist/chunks/fogFragment-D91rqvp0.esm.min.js.map +1 -0
  236. package/dist/chunks/fogFragment-qdYpZbGA.esm.min.js +2 -0
  237. package/dist/chunks/fogFragment-qdYpZbGA.esm.min.js.map +1 -0
  238. package/dist/chunks/fresnelFunction-DBMK4K-2.esm.min.js +2 -0
  239. package/dist/chunks/fresnelFunction-DBMK4K-2.esm.min.js.map +1 -0
  240. package/dist/chunks/fresnelFunction-o5ZOc6C0.esm.js +12 -0
  241. package/dist/chunks/fresnelFunction-o5ZOc6C0.esm.js.map +1 -0
  242. package/dist/chunks/glTFLoader-Dj_JCgqJ.esm.min.js +2 -0
  243. package/dist/chunks/glTFLoader-Dj_JCgqJ.esm.min.js.map +1 -0
  244. package/dist/chunks/glTFLoader-DnWHbX53.esm.js +7693 -0
  245. package/dist/chunks/glTFLoader-DnWHbX53.esm.js.map +1 -0
  246. package/dist/chunks/glTFLoaderAnimation-A_WVS-lt.esm.min.js +2 -0
  247. package/dist/chunks/glTFLoaderAnimation-A_WVS-lt.esm.min.js.map +1 -0
  248. package/dist/chunks/glTFLoaderAnimation-C3gHlipY.esm.js +77 -0
  249. package/dist/chunks/glTFLoaderAnimation-C3gHlipY.esm.js.map +1 -0
  250. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
  251. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
  252. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
  253. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
  254. package/dist/chunks/harmonicsFunctions-91QStv6v.esm.min.js +2 -0
  255. package/dist/chunks/harmonicsFunctions-91QStv6v.esm.min.js.map +1 -0
  256. package/dist/chunks/harmonicsFunctions-DBJQNoSA.esm.min.js +2 -0
  257. package/dist/chunks/harmonicsFunctions-DBJQNoSA.esm.min.js.map +1 -0
  258. package/dist/chunks/harmonicsFunctions-DXdlMMN6.esm.js +34 -0
  259. package/dist/chunks/harmonicsFunctions-DXdlMMN6.esm.js.map +1 -0
  260. package/dist/chunks/harmonicsFunctions-VtAD6DeX.esm.js +35 -0
  261. package/dist/chunks/harmonicsFunctions-VtAD6DeX.esm.js.map +1 -0
  262. package/dist/chunks/hdrTextureLoader-CYtpPSzs.esm.js +253 -0
  263. package/dist/chunks/hdrTextureLoader-CYtpPSzs.esm.js.map +1 -0
  264. package/dist/chunks/hdrTextureLoader-CzZ1hV7q.esm.min.js +2 -0
  265. package/dist/chunks/hdrTextureLoader-CzZ1hV7q.esm.min.js.map +1 -0
  266. package/dist/chunks/helperFunctions-Bn3a_gzG.esm.js +110 -0
  267. package/dist/chunks/helperFunctions-Bn3a_gzG.esm.js.map +1 -0
  268. package/dist/chunks/helperFunctions-CA_QOVSE.esm.js +83 -0
  269. package/dist/chunks/helperFunctions-CA_QOVSE.esm.js.map +1 -0
  270. package/dist/chunks/helperFunctions-mebe29sq.esm.min.js +2 -0
  271. package/dist/chunks/helperFunctions-mebe29sq.esm.min.js.map +1 -0
  272. package/dist/chunks/helperFunctions-wIdfkMdZ.esm.min.js +2 -0
  273. package/dist/chunks/helperFunctions-wIdfkMdZ.esm.min.js.map +1 -0
  274. package/dist/chunks/iesTextureLoader-D8_bkaCP.esm.min.js +2 -0
  275. package/dist/chunks/iesTextureLoader-D8_bkaCP.esm.min.js.map +1 -0
  276. package/dist/chunks/iesTextureLoader-K1MQUalq.esm.js +189 -0
  277. package/dist/chunks/iesTextureLoader-K1MQUalq.esm.js.map +1 -0
  278. package/dist/chunks/index-Bo5F_mGk.esm.min.js +57 -0
  279. package/dist/chunks/index-Bo5F_mGk.esm.min.js.map +1 -0
  280. package/dist/chunks/index-Dlf001gP.esm.js +74889 -0
  281. package/dist/chunks/index-Dlf001gP.esm.js.map +1 -0
  282. package/dist/chunks/ktxTextureLoader-B6UHYOxL.esm.js +814 -0
  283. package/dist/chunks/ktxTextureLoader-B6UHYOxL.esm.js.map +1 -0
  284. package/dist/chunks/ktxTextureLoader-s_dbtiwN.esm.min.js +2 -0
  285. package/dist/chunks/ktxTextureLoader-s_dbtiwN.esm.min.js.map +1 -0
  286. package/dist/chunks/logDepthDeclaration--xmemf5p.esm.min.js +2 -0
  287. package/dist/chunks/logDepthDeclaration--xmemf5p.esm.min.js.map +1 -0
  288. package/dist/chunks/logDepthDeclaration-Babs-3_m.esm.js +35 -0
  289. package/dist/chunks/logDepthDeclaration-Babs-3_m.esm.js.map +1 -0
  290. package/dist/chunks/logDepthDeclaration-BvoznvSG.esm.min.js +2 -0
  291. package/dist/chunks/logDepthDeclaration-BvoznvSG.esm.min.js.map +1 -0
  292. package/dist/chunks/logDepthDeclaration-_EPT9ybx.esm.js +11 -0
  293. package/dist/chunks/logDepthDeclaration-_EPT9ybx.esm.js.map +1 -0
  294. package/dist/chunks/logDepthVertex-0vve_qKh.esm.js +77 -0
  295. package/dist/chunks/logDepthVertex-0vve_qKh.esm.js.map +1 -0
  296. package/dist/chunks/logDepthVertex-BkGmO8_s.esm.js +81 -0
  297. package/dist/chunks/logDepthVertex-BkGmO8_s.esm.js.map +1 -0
  298. package/dist/chunks/logDepthVertex-CVcNpHQe.esm.min.js +2 -0
  299. package/dist/chunks/logDepthVertex-CVcNpHQe.esm.min.js.map +1 -0
  300. package/dist/chunks/logDepthVertex-DL8eWalk.esm.min.js +2 -0
  301. package/dist/chunks/logDepthVertex-DL8eWalk.esm.min.js.map +1 -0
  302. package/dist/chunks/mainUVVaryingDeclaration-9DUO7sPf.esm.js +11 -0
  303. package/dist/chunks/mainUVVaryingDeclaration-9DUO7sPf.esm.js.map +1 -0
  304. package/dist/chunks/mainUVVaryingDeclaration-DXZGPs7O.esm.js +11 -0
  305. package/dist/chunks/mainUVVaryingDeclaration-DXZGPs7O.esm.js.map +1 -0
  306. package/dist/chunks/mainUVVaryingDeclaration-DaFtbg5X.esm.min.js +2 -0
  307. package/dist/chunks/mainUVVaryingDeclaration-DaFtbg5X.esm.min.js.map +1 -0
  308. package/dist/chunks/mainUVVaryingDeclaration-lKBcMFcP.esm.min.js +2 -0
  309. package/dist/chunks/mainUVVaryingDeclaration-lKBcMFcP.esm.min.js.map +1 -0
  310. package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js +119 -0
  311. package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js.map +1 -0
  312. package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js +2 -0
  313. package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js.map +1 -0
  314. package/dist/chunks/meshUboDeclaration-BN0BlYEZ.esm.js +26 -0
  315. package/dist/chunks/meshUboDeclaration-BN0BlYEZ.esm.js.map +1 -0
  316. package/dist/chunks/meshUboDeclaration-BcQ1P_co.esm.min.js +2 -0
  317. package/dist/chunks/meshUboDeclaration-BcQ1P_co.esm.min.js.map +1 -0
  318. package/dist/chunks/objFileLoader-Lx7JtYFA.esm.min.js +2 -0
  319. package/dist/chunks/objFileLoader-Lx7JtYFA.esm.min.js.map +1 -0
  320. package/dist/chunks/objFileLoader-_nxEPYB4.esm.js +1338 -0
  321. package/dist/chunks/objFileLoader-_nxEPYB4.esm.js.map +1 -0
  322. package/dist/chunks/oitFragment-BPgREULe.esm.js +1240 -0
  323. package/dist/chunks/oitFragment-BPgREULe.esm.js.map +1 -0
  324. package/dist/chunks/oitFragment-CKNxTV0T.esm.min.js +2 -0
  325. package/dist/chunks/oitFragment-CKNxTV0T.esm.min.js.map +1 -0
  326. package/dist/chunks/oitFragment-CT3oWGRL.esm.js +1078 -0
  327. package/dist/chunks/oitFragment-CT3oWGRL.esm.js.map +1 -0
  328. package/dist/chunks/oitFragment-CXrV_64a.esm.min.js +2 -0
  329. package/dist/chunks/oitFragment-CXrV_64a.esm.min.js.map +1 -0
  330. package/dist/chunks/pass.fragment-BugqjVKo.esm.js +15 -0
  331. package/dist/chunks/pass.fragment-BugqjVKo.esm.js.map +1 -0
  332. package/dist/chunks/pass.fragment-X-KK3tOa.esm.min.js +2 -0
  333. package/dist/chunks/pass.fragment-X-KK3tOa.esm.min.js.map +1 -0
  334. package/dist/chunks/pass.fragment-pJ1J3AeO.esm.min.js +2 -0
  335. package/dist/chunks/pass.fragment-pJ1J3AeO.esm.min.js.map +1 -0
  336. package/dist/chunks/pass.fragment-tk9KCmM-.esm.js +15 -0
  337. package/dist/chunks/pass.fragment-tk9KCmM-.esm.js.map +1 -0
  338. package/dist/chunks/pbr.fragment-C4BFWzEP.esm.js +3269 -0
  339. package/dist/chunks/pbr.fragment-C4BFWzEP.esm.js.map +1 -0
  340. package/dist/chunks/pbr.fragment-CTE0zFNb.esm.min.js +2 -0
  341. package/dist/chunks/pbr.fragment-CTE0zFNb.esm.min.js.map +1 -0
  342. package/dist/chunks/pbr.fragment-DZRIiJzv.esm.js +3222 -0
  343. package/dist/chunks/pbr.fragment-DZRIiJzv.esm.js.map +1 -0
  344. package/dist/chunks/pbr.fragment-Dk1kkP87.esm.min.js +2 -0
  345. package/dist/chunks/pbr.fragment-Dk1kkP87.esm.min.js.map +1 -0
  346. package/dist/chunks/pbr.vertex-Ba8BDEep.esm.min.js +2 -0
  347. package/dist/chunks/pbr.vertex-Ba8BDEep.esm.min.js.map +1 -0
  348. package/dist/chunks/pbr.vertex-DM2WONhK.esm.js +223 -0
  349. package/dist/chunks/pbr.vertex-DM2WONhK.esm.js.map +1 -0
  350. package/dist/chunks/pbr.vertex-DVghYyb7.esm.min.js +2 -0
  351. package/dist/chunks/pbr.vertex-DVghYyb7.esm.min.js.map +1 -0
  352. package/dist/chunks/pbr.vertex-DiVjR6Bs.esm.js +348 -0
  353. package/dist/chunks/pbr.vertex-DiVjR6Bs.esm.js.map +1 -0
  354. package/dist/chunks/postprocess.vertex-CtVD6qfW.esm.min.js +2 -0
  355. package/dist/chunks/postprocess.vertex-CtVD6qfW.esm.min.js.map +1 -0
  356. package/dist/chunks/postprocess.vertex-DntzOpKV.esm.js +20 -0
  357. package/dist/chunks/postprocess.vertex-DntzOpKV.esm.js.map +1 -0
  358. package/dist/chunks/rawTexture-BAt5J3G4.esm.min.js +2 -0
  359. package/dist/chunks/rawTexture-BAt5J3G4.esm.min.js.map +1 -0
  360. package/dist/chunks/rawTexture-D0O_yrdQ.esm.js +191 -0
  361. package/dist/chunks/rawTexture-D0O_yrdQ.esm.js.map +1 -0
  362. package/dist/chunks/ray-Bbt37I0I.esm.js +946 -0
  363. package/dist/chunks/ray-Bbt37I0I.esm.js.map +1 -0
  364. package/dist/chunks/ray-OQ0d0a-k.esm.min.js +2 -0
  365. package/dist/chunks/ray-OQ0d0a-k.esm.min.js.map +1 -0
  366. package/dist/chunks/rgbdDecode.fragment-4HjKGwMm.esm.min.js +2 -0
  367. package/dist/chunks/rgbdDecode.fragment-4HjKGwMm.esm.min.js.map +1 -0
  368. package/dist/chunks/rgbdDecode.fragment-CKVGwRZO.esm.js +13 -0
  369. package/dist/chunks/rgbdDecode.fragment-CKVGwRZO.esm.js.map +1 -0
  370. package/dist/chunks/rgbdDecode.fragment-Cn6YVnkB.esm.js +13 -0
  371. package/dist/chunks/rgbdDecode.fragment-Cn6YVnkB.esm.js.map +1 -0
  372. package/dist/chunks/rgbdDecode.fragment-DwcDy8Eo.esm.min.js +2 -0
  373. package/dist/chunks/rgbdDecode.fragment-DwcDy8Eo.esm.min.js.map +1 -0
  374. package/dist/chunks/rgbdEncode.fragment-BUluDIqG.esm.min.js +2 -0
  375. package/dist/chunks/rgbdEncode.fragment-BUluDIqG.esm.min.js.map +1 -0
  376. package/dist/chunks/rgbdEncode.fragment-CEiZq0Qt.esm.js +13 -0
  377. package/dist/chunks/rgbdEncode.fragment-CEiZq0Qt.esm.js.map +1 -0
  378. package/dist/chunks/rgbdEncode.fragment-CY0yYtEl.esm.js +13 -0
  379. package/dist/chunks/rgbdEncode.fragment-CY0yYtEl.esm.js.map +1 -0
  380. package/dist/chunks/rgbdEncode.fragment-DS4_h_Qc.esm.min.js +2 -0
  381. package/dist/chunks/rgbdEncode.fragment-DS4_h_Qc.esm.min.js.map +1 -0
  382. package/dist/chunks/splatFileLoader-C9ykR2nU.esm.js +3387 -0
  383. package/dist/chunks/splatFileLoader-C9ykR2nU.esm.js.map +1 -0
  384. package/dist/chunks/splatFileLoader-fz6lXWf1.esm.min.js +2 -0
  385. package/dist/chunks/splatFileLoader-fz6lXWf1.esm.min.js.map +1 -0
  386. package/dist/chunks/spotLight-BJUVKiS1.esm.min.js +2 -0
  387. package/dist/chunks/spotLight-BJUVKiS1.esm.min.js.map +1 -0
  388. package/dist/chunks/spotLight-DPadbSE2.esm.js +701 -0
  389. package/dist/chunks/spotLight-DPadbSE2.esm.js.map +1 -0
  390. package/dist/chunks/standardMaterial-BFBsF3pv.esm.min.js +2 -0
  391. package/dist/chunks/standardMaterial-BFBsF3pv.esm.min.js.map +1 -0
  392. package/dist/chunks/standardMaterial-eJkfs5dX.esm.js +1807 -0
  393. package/dist/chunks/standardMaterial-eJkfs5dX.esm.js.map +1 -0
  394. package/dist/chunks/stlFileLoader-D-4wZdg7.esm.js +238 -0
  395. package/dist/chunks/stlFileLoader-D-4wZdg7.esm.js.map +1 -0
  396. package/dist/chunks/stlFileLoader-DFdDdaYW.esm.min.js +2 -0
  397. package/dist/chunks/stlFileLoader-DFdDdaYW.esm.min.js.map +1 -0
  398. package/dist/chunks/tgaTextureLoader-84Uwk9uE.esm.min.js +2 -0
  399. package/dist/chunks/tgaTextureLoader-84Uwk9uE.esm.min.js.map +1 -0
  400. package/dist/chunks/tgaTextureLoader-DDAxGDFK.esm.js +349 -0
  401. package/dist/chunks/tgaTextureLoader-DDAxGDFK.esm.js.map +1 -0
  402. package/dist/chunks/thinEngine-CiBi1yBe.esm.min.js +2 -0
  403. package/dist/chunks/thinEngine-CiBi1yBe.esm.min.js.map +1 -0
  404. package/dist/chunks/thinEngine-iDkoF96X.esm.js +3848 -0
  405. package/dist/chunks/thinEngine-iDkoF96X.esm.js.map +1 -0
  406. package/dist/chunks/thinInstanceMesh-DGBYkFXN.esm.js +314 -0
  407. package/dist/chunks/thinInstanceMesh-DGBYkFXN.esm.js.map +1 -0
  408. package/dist/chunks/thinInstanceMesh-MROq1d7v.esm.min.js +2 -0
  409. package/dist/chunks/thinInstanceMesh-MROq1d7v.esm.min.js.map +1 -0
  410. package/dist/chunks/vertexColorMixing-0VXbzCuF.esm.js +428 -0
  411. package/dist/chunks/vertexColorMixing-0VXbzCuF.esm.js.map +1 -0
  412. package/dist/chunks/vertexColorMixing-B3GD6hE2.esm.js +538 -0
  413. package/dist/chunks/vertexColorMixing-B3GD6hE2.esm.js.map +1 -0
  414. package/dist/chunks/vertexColorMixing-ClVYo-h9.esm.min.js +2 -0
  415. package/dist/chunks/vertexColorMixing-ClVYo-h9.esm.min.js.map +1 -0
  416. package/dist/chunks/vertexColorMixing-j0Dix_Wy.esm.min.js +2 -0
  417. package/dist/chunks/vertexColorMixing-j0Dix_Wy.esm.min.js.map +1 -0
  418. package/dist/chunks/webgpuEngine-BLhhEybd.esm.min.js +2 -0
  419. package/dist/chunks/webgpuEngine-BLhhEybd.esm.min.js.map +1 -0
  420. package/dist/chunks/webgpuEngine-Cs5fkngY.esm.js +11533 -0
  421. package/dist/chunks/webgpuEngine-Cs5fkngY.esm.js.map +1 -0
  422. package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
  423. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
  424. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
  425. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
  426. package/lib/index.d.ts +591 -0
  427. package/lib/index.js +2165 -0
  428. package/lib/index.js.map +1 -0
  429. package/package.json +19 -28
  430. package/readme.md +28 -28
  431. package/configuration/configuration.d.ts +0 -107
  432. package/configuration/configuration.js +0 -16
  433. package/configuration/configuration.js.map +0 -1
  434. package/configuration/configurationCompatibility.d.ts +0 -8
  435. package/configuration/configurationCompatibility.js +0 -66
  436. package/configuration/configurationCompatibility.js.map +0 -1
  437. package/configuration/configurationContainer.d.ts +0 -10
  438. package/configuration/configurationContainer.js +0 -10
  439. package/configuration/configurationContainer.js.map +0 -1
  440. package/configuration/globals.d.ts +0 -6
  441. package/configuration/globals.js +0 -18
  442. package/configuration/globals.js.map +0 -1
  443. package/configuration/index.d.ts +0 -2
  444. package/configuration/index.js +0 -4
  445. package/configuration/index.js.map +0 -1
  446. package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
  447. package/configuration/interfaces/cameraConfiguration.js +0 -2
  448. package/configuration/interfaces/cameraConfiguration.js.map +0 -1
  449. package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
  450. package/configuration/interfaces/colorGradingConfiguration.js +0 -2
  451. package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
  452. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
  453. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
  454. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
  455. package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
  456. package/configuration/interfaces/environmentMapConfiguration.js +0 -2
  457. package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
  458. package/configuration/interfaces/groundConfiguration.d.ts +0 -24
  459. package/configuration/interfaces/groundConfiguration.js +0 -2
  460. package/configuration/interfaces/groundConfiguration.js.map +0 -1
  461. package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
  462. package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
  463. package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
  464. package/configuration/interfaces/index.d.ts +0 -15
  465. package/configuration/interfaces/index.js +0 -16
  466. package/configuration/interfaces/index.js.map +0 -1
  467. package/configuration/interfaces/lightConfiguration.d.ts +0 -60
  468. package/configuration/interfaces/lightConfiguration.js +0 -2
  469. package/configuration/interfaces/lightConfiguration.js.map +0 -1
  470. package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
  471. package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
  472. package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
  473. package/configuration/interfaces/modelConfiguration.d.ts +0 -65
  474. package/configuration/interfaces/modelConfiguration.js +0 -2
  475. package/configuration/interfaces/modelConfiguration.js.map +0 -1
  476. package/configuration/interfaces/observersConfiguration.d.ts +0 -5
  477. package/configuration/interfaces/observersConfiguration.js +0 -2
  478. package/configuration/interfaces/observersConfiguration.js.map +0 -1
  479. package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
  480. package/configuration/interfaces/sceneConfiguration.js +0 -2
  481. package/configuration/interfaces/sceneConfiguration.js.map +0 -1
  482. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
  483. package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
  484. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
  485. package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
  486. package/configuration/interfaces/skyboxConfiguration.js +0 -2
  487. package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
  488. package/configuration/interfaces/templateConfiguration.d.ts +0 -67
  489. package/configuration/interfaces/templateConfiguration.js +0 -2
  490. package/configuration/interfaces/templateConfiguration.js.map +0 -1
  491. package/configuration/interfaces/vrConfiguration.d.ts +0 -16
  492. package/configuration/interfaces/vrConfiguration.js +0 -2
  493. package/configuration/interfaces/vrConfiguration.js.map +0 -1
  494. package/configuration/loader.d.ts +0 -4
  495. package/configuration/loader.js +0 -17
  496. package/configuration/loader.js.map +0 -1
  497. package/configuration/mappers.d.ts +0 -43
  498. package/configuration/mappers.js +0 -193
  499. package/configuration/mappers.js.map +0 -1
  500. package/configuration/renderOnlyLoader.d.ts +0 -33
  501. package/configuration/renderOnlyLoader.js +0 -162
  502. package/configuration/renderOnlyLoader.js.map +0 -1
  503. package/configuration/types/default.d.ts +0 -6
  504. package/configuration/types/default.js +0 -121
  505. package/configuration/types/default.js.map +0 -1
  506. package/configuration/types/environmentMap.d.ts +0 -5
  507. package/configuration/types/environmentMap.js +0 -14
  508. package/configuration/types/environmentMap.js.map +0 -1
  509. package/configuration/types/extended.d.ts +0 -6
  510. package/configuration/types/extended.js +0 -317
  511. package/configuration/types/extended.js.map +0 -1
  512. package/configuration/types/index.d.ts +0 -14
  513. package/configuration/types/index.js +0 -51
  514. package/configuration/types/index.js.map +0 -1
  515. package/configuration/types/minimal.d.ts +0 -6
  516. package/configuration/types/minimal.js +0 -43
  517. package/configuration/types/minimal.js.map +0 -1
  518. package/configuration/types/renderOnlyDefault.d.ts +0 -30
  519. package/configuration/types/renderOnlyDefault.js +0 -31
  520. package/configuration/types/renderOnlyDefault.js.map +0 -1
  521. package/configuration/types/shadowLight.d.ts +0 -9
  522. package/configuration/types/shadowLight.js +0 -64
  523. package/configuration/types/shadowLight.js.map +0 -1
  524. package/helper/index.d.ts +0 -29
  525. package/helper/index.js +0 -66
  526. package/helper/index.js.map +0 -1
  527. package/index.d.ts +0 -30
  528. package/index.js +0 -46
  529. package/index.js.map +0 -1
  530. package/initializer.d.ts +0 -11
  531. package/initializer.js +0 -35
  532. package/initializer.js.map +0 -1
  533. package/interfaces.d.ts +0 -5
  534. package/interfaces.js +0 -7
  535. package/interfaces.js.map +0 -1
  536. package/labs/environmentSerializer.d.ts +0 -126
  537. package/labs/environmentSerializer.js +0 -191
  538. package/labs/environmentSerializer.js.map +0 -1
  539. package/labs/texture.d.ts +0 -183
  540. package/labs/texture.js +0 -351
  541. package/labs/texture.js.map +0 -1
  542. package/labs/viewerLabs.d.ts +0 -51
  543. package/labs/viewerLabs.js +0 -134
  544. package/labs/viewerLabs.js.map +0 -1
  545. package/loader/modelLoader.d.ts +0 -56
  546. package/loader/modelLoader.js +0 -202
  547. package/loader/modelLoader.js.map +0 -1
  548. package/loader/plugins/applyMaterialConfig.d.ts +0 -12
  549. package/loader/plugins/applyMaterialConfig.js +0 -16
  550. package/loader/plugins/applyMaterialConfig.js.map +0 -1
  551. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
  552. package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
  553. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
  554. package/loader/plugins/index.d.ts +0 -19
  555. package/loader/plugins/index.js +0 -44
  556. package/loader/plugins/index.js.map +0 -1
  557. package/loader/plugins/loaderPlugin.d.ts +0 -24
  558. package/loader/plugins/loaderPlugin.js +0 -2
  559. package/loader/plugins/loaderPlugin.js.map +0 -1
  560. package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
  561. package/loader/plugins/msftLodLoaderPlugin.js +0 -21
  562. package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
  563. package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
  564. package/loader/plugins/telemetryLoaderPlugin.js +0 -36
  565. package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
  566. package/managers/observablesManager.d.ts +0 -66
  567. package/managers/observablesManager.js +0 -35
  568. package/managers/observablesManager.js.map +0 -1
  569. package/managers/sceneManager.d.ts +0 -245
  570. package/managers/sceneManager.js +0 -1375
  571. package/managers/sceneManager.js.map +0 -1
  572. package/managers/telemetryManager.d.ts +0 -78
  573. package/managers/telemetryManager.js +0 -117
  574. package/managers/telemetryManager.js.map +0 -1
  575. package/model/modelAnimation.d.ts +0 -215
  576. package/model/modelAnimation.js +0 -237
  577. package/model/modelAnimation.js.map +0 -1
  578. package/model/viewerModel.d.ts +0 -233
  579. package/model/viewerModel.js +0 -673
  580. package/model/viewerModel.js.map +0 -1
  581. package/optimizer/custom/extended.d.ts +0 -13
  582. package/optimizer/custom/extended.js +0 -101
  583. package/optimizer/custom/extended.js.map +0 -1
  584. package/optimizer/custom/index.d.ts +0 -9
  585. package/optimizer/custom/index.js +0 -26
  586. package/optimizer/custom/index.js.map +0 -1
  587. package/renderOnlyIndex.d.ts +0 -11
  588. package/renderOnlyIndex.js +0 -18
  589. package/renderOnlyIndex.js.map +0 -1
  590. package/templating/eventManager.d.ts +0 -35
  591. package/templating/eventManager.js +0 -66
  592. package/templating/eventManager.js.map +0 -1
  593. package/templating/plugins/hdButtonPlugin.d.ts +0 -9
  594. package/templating/plugins/hdButtonPlugin.js +0 -22
  595. package/templating/plugins/hdButtonPlugin.js.map +0 -1
  596. package/templating/plugins/printButton.d.ts +0 -9
  597. package/templating/plugins/printButton.js +0 -41
  598. package/templating/plugins/printButton.js.map +0 -1
  599. package/templating/templateManager.d.ts +0 -197
  600. package/templating/templateManager.js +0 -561
  601. package/templating/templateManager.js.map +0 -1
  602. package/templating/viewerTemplatePlugin.d.ts +0 -21
  603. package/templating/viewerTemplatePlugin.js +0 -69
  604. package/templating/viewerTemplatePlugin.js.map +0 -1
  605. package/viewer/defaultViewer.d.ts +0 -130
  606. package/viewer/defaultViewer.js +0 -672
  607. package/viewer/defaultViewer.js.map +0 -1
  608. package/viewer/renderOnlyViewer.d.ts +0 -9
  609. package/viewer/renderOnlyViewer.js +0 -46
  610. package/viewer/renderOnlyViewer.js.map +0 -1
  611. package/viewer/viewer.d.ts +0 -258
  612. package/viewer/viewer.js +0 -783
  613. package/viewer/viewer.js.map +0 -1
  614. package/viewer/viewerManager.d.ts +0 -58
  615. package/viewer/viewerManager.js +0 -91
  616. package/viewer/viewerManager.js.map +0 -1
  617. package/viewer/viewerWithTemplate.d.ts +0 -9
  618. package/viewer/viewerWithTemplate.js +0 -20
  619. package/viewer/viewerWithTemplate.js.map +0 -1
@@ -1,673 +0,0 @@
1
- import { Observable } from "@babylonjs/core/Misc/observable.js";
2
- import "@babylonjs/core/Misc/observable.extensions.js";
3
- import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup.js";
4
- import { Animation, CircleEase, BackEase, BounceEase, CubicEase, ElasticEase, ExponentialEase, PowerEase, QuadraticEase, QuarticEase, QuinticEase, SineEase, } from "@babylonjs/core/Animations/index.js";
5
- import { Quaternion, Vector3 } from "@babylonjs/core/Maths/math.vector.js";
6
- import { Tags } from "@babylonjs/core/Misc/tags.js";
7
- import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js";
8
- import { MultiMaterial } from "@babylonjs/core/Materials/multiMaterial.js";
9
- import { Tools } from "@babylonjs/core/Misc/tools.js";
10
- import { GroupModelAnimation, AnimationPlayMode, EasingFunction, AnimationState } from "./modelAnimation.js";
11
- import { deepmerge, extendClassWithConfig } from "../helper/index.js";
12
- import { TransformNode } from "@babylonjs/core/Meshes/transformNode.js";
13
- import { Mesh } from "@babylonjs/core/Meshes/mesh.js";
14
- /**
15
- * The current state of the model
16
- */
17
- export var ModelState;
18
- (function (ModelState) {
19
- ModelState[ModelState["INIT"] = 0] = "INIT";
20
- ModelState[ModelState["LOADING"] = 1] = "LOADING";
21
- ModelState[ModelState["LOADED"] = 2] = "LOADED";
22
- ModelState[ModelState["ENTRY"] = 3] = "ENTRY";
23
- ModelState[ModelState["ENTRYDONE"] = 4] = "ENTRYDONE";
24
- ModelState[ModelState["COMPLETE"] = 5] = "COMPLETE";
25
- ModelState[ModelState["CANCELED"] = 6] = "CANCELED";
26
- ModelState[ModelState["ERROR"] = 7] = "ERROR";
27
- })(ModelState || (ModelState = {}));
28
- /**
29
- * The viewer model is a container for all assets representing a sngle loaded model.
30
- */
31
- var ViewerModel = /** @class */ (function () {
32
- function ViewerModel(_observablesManager, modelConfiguration, _configurationContainer) {
33
- var _this = this;
34
- this._observablesManager = _observablesManager;
35
- this._configurationContainer = _configurationContainer;
36
- /**
37
- * the list of meshes that are a part of this model
38
- */
39
- this._meshes = [];
40
- /**
41
- * ParticleSystems connected to this model
42
- */
43
- this.particleSystems = [];
44
- /**
45
- * Skeletons defined in this model
46
- */
47
- this.skeletons = [];
48
- this._loaderDone = false;
49
- this._animatables = [];
50
- this._frameRate = 60;
51
- this._shadowsRenderedAfterLoad = false;
52
- this.onLoadedObservable = new Observable();
53
- this.onLoadErrorObservable = new Observable();
54
- this.onLoadProgressObservable = new Observable();
55
- this.onCompleteObservable = new Observable();
56
- this.onAfterConfigure = new Observable();
57
- this.state = ModelState.INIT;
58
- var scene = this._configurationContainer && this._configurationContainer.scene;
59
- this.rootMesh = new Mesh("modelRootMesh", scene);
60
- this._pivotMesh = new TransformNode("pivotMesh", scene);
61
- this._pivotMesh.parent = this.rootMesh;
62
- // rotate 180, gltf fun
63
- this._pivotMesh.rotation.y += Math.PI;
64
- this._scaleTransition = new Animation("scaleAnimation", "scaling", this._frameRate, Animation.ANIMATIONTYPE_VECTOR3, Animation.ANIMATIONLOOPMODE_CONSTANT);
65
- this._animations = [];
66
- //create a copy of the configuration to make sure it doesn't change even after it is changed in the viewer
67
- this._modelConfiguration = deepmerge((this._configurationContainer && this._configurationContainer.configuration.model) || {}, modelConfiguration);
68
- if (this._observablesManager) {
69
- this._observablesManager.onModelAddedObservable.notifyObservers(this);
70
- }
71
- if (this._modelConfiguration.entryAnimation) {
72
- this.rootMesh.setEnabled(false);
73
- }
74
- this.onLoadedObservable.add(function () {
75
- _this.updateConfiguration(_this._modelConfiguration);
76
- if (_this._observablesManager) {
77
- _this._observablesManager.onModelLoadedObservable.notifyObservers(_this);
78
- }
79
- _this._initAnimations();
80
- });
81
- this.onCompleteObservable.add(function () {
82
- _this.state = ModelState.COMPLETE;
83
- });
84
- }
85
- Object.defineProperty(ViewerModel.prototype, "shadowsRenderedAfterLoad", {
86
- get: function () {
87
- return this._shadowsRenderedAfterLoad;
88
- },
89
- set: function (rendered) {
90
- if (!rendered) {
91
- throw new Error("can only be enabled");
92
- }
93
- else {
94
- this._shadowsRenderedAfterLoad = rendered;
95
- }
96
- },
97
- enumerable: false,
98
- configurable: true
99
- });
100
- ViewerModel.prototype.getViewerId = function () {
101
- return this._configurationContainer && this._configurationContainer.viewerId;
102
- };
103
- Object.defineProperty(ViewerModel.prototype, "enabled", {
104
- /**
105
- * Is this model enabled?
106
- */
107
- get: function () {
108
- return this.rootMesh.isEnabled();
109
- },
110
- /**
111
- * Set whether this model is enabled or not.
112
- */
113
- set: function (enable) {
114
- this.rootMesh.setEnabled(enable);
115
- },
116
- enumerable: false,
117
- configurable: true
118
- });
119
- Object.defineProperty(ViewerModel.prototype, "loaderDone", {
120
- set: function (done) {
121
- this._loaderDone = done;
122
- this._checkCompleteState();
123
- },
124
- enumerable: false,
125
- configurable: true
126
- });
127
- ViewerModel.prototype._checkCompleteState = function () {
128
- if (this._loaderDone && this.state === ModelState.ENTRYDONE) {
129
- this._modelComplete();
130
- }
131
- };
132
- /**
133
- * Add a mesh to this model.
134
- * Any mesh that has no parent will be provided with the root mesh as its new parent.
135
- *
136
- * @param mesh the new mesh to add
137
- * @param triggerLoaded should this mesh trigger the onLoaded observable. Used when adding meshes manually.
138
- * @returns a promise that will resolve when the model is done loading
139
- */
140
- ViewerModel.prototype.addMesh = function (mesh, triggerLoaded) {
141
- if (!mesh.parent) {
142
- mesh.parent = this._pivotMesh;
143
- }
144
- if (mesh.getClassName() !== "InstancedMesh") {
145
- mesh.receiveShadows = !!this.configuration.receiveShadows;
146
- }
147
- this._meshes.push(mesh);
148
- if (triggerLoaded) {
149
- return this.onLoadedObservable.notifyObserversWithPromise(this);
150
- }
151
- return Promise.resolve(this);
152
- };
153
- Object.defineProperty(ViewerModel.prototype, "meshes", {
154
- /**
155
- * get the list of meshes (excluding the root mesh)
156
- */
157
- get: function () {
158
- return this._meshes;
159
- },
160
- enumerable: false,
161
- configurable: true
162
- });
163
- Object.defineProperty(ViewerModel.prototype, "configuration", {
164
- /**
165
- * Get the model's configuration
166
- */
167
- get: function () {
168
- return this._modelConfiguration;
169
- },
170
- /**
171
- * (Re-)set the model's entire configuration
172
- * @param newConfiguration the new configuration to replace the new one
173
- */
174
- set: function (newConfiguration) {
175
- this._modelConfiguration = newConfiguration;
176
- this._configureModel();
177
- },
178
- enumerable: false,
179
- configurable: true
180
- });
181
- /**
182
- * Update the current configuration with new values.
183
- * Configuration will not be overwritten, but merged with the new configuration.
184
- * Priority is to the new configuration
185
- * @param newConfiguration the configuration to be merged into the current configuration;
186
- */
187
- ViewerModel.prototype.updateConfiguration = function (newConfiguration) {
188
- this._modelConfiguration = deepmerge(this._modelConfiguration, newConfiguration);
189
- this._configureModel();
190
- };
191
- ViewerModel.prototype._initAnimations = function () {
192
- var _this = this;
193
- // check if this is not a gltf loader and init the animations
194
- if (this.skeletons.length) {
195
- this.skeletons.forEach(function (skeleton, idx) {
196
- var ag = new AnimationGroup("animation-" + idx, _this._configurationContainer && _this._configurationContainer.scene);
197
- var add = false;
198
- skeleton.getAnimatables().forEach(function (a) {
199
- if (a.animations && a.animations[0]) {
200
- ag.addTargetedAnimation(a.animations[0], a);
201
- add = true;
202
- }
203
- });
204
- if (add) {
205
- _this.addAnimationGroup(ag);
206
- }
207
- });
208
- }
209
- var completeCallback = function () { };
210
- if (this._modelConfiguration.animation) {
211
- if (this._modelConfiguration.animation.playOnce) {
212
- this._animations.forEach(function (a) {
213
- a.playMode = AnimationPlayMode.ONCE;
214
- });
215
- }
216
- if (this._modelConfiguration.animation.autoStart && this._animations.length) {
217
- var animationName_1 = this._modelConfiguration.animation.autoStart === true ? this._animations[0].name : this._modelConfiguration.animation.autoStart;
218
- completeCallback = function () {
219
- _this.playAnimation(animationName_1);
220
- };
221
- }
222
- }
223
- this._enterScene(completeCallback);
224
- };
225
- /**
226
- * Animates the model from the current position to the default position
227
- * @param completeCallback A function to call when the animation has completed
228
- */
229
- ViewerModel.prototype._enterScene = function (completeCallback) {
230
- var _this = this;
231
- var scene = this.rootMesh.getScene();
232
- var previousValue = scene.animationPropertiesOverride.enableBlending;
233
- var callback = function () {
234
- _this.state = ModelState.ENTRYDONE;
235
- scene.animationPropertiesOverride.enableBlending = previousValue;
236
- _this._checkCompleteState();
237
- if (completeCallback) {
238
- completeCallback();
239
- }
240
- };
241
- if (!this._entryAnimation) {
242
- callback();
243
- return;
244
- }
245
- this.rootMesh.setEnabled(true);
246
- // disable blending for the sake of the entry animation;
247
- scene.animationPropertiesOverride.enableBlending = false;
248
- this._applyAnimation(this._entryAnimation, true, callback);
249
- };
250
- // /**
251
- // * Animates the model from the current position to the exit-screen position
252
- // * @param completeCallback A function to call when the animation has completed
253
- // */
254
- // private _exitScene(completeCallback: () => void): void {
255
- // if (!this._exitAnimation) {
256
- // completeCallback();
257
- // return;
258
- // }
259
- // this._applyAnimation(this._exitAnimation, false, completeCallback);
260
- // }
261
- ViewerModel.prototype._modelComplete = function () {
262
- var _this = this;
263
- //reapply material defines to be sure:
264
- var meshes = this._pivotMesh.getChildMeshes(false);
265
- meshes
266
- .filter(function (m) { return m.material; })
267
- .forEach(function (mesh) {
268
- _this._applyModelMaterialConfiguration(mesh.material);
269
- });
270
- this.state = ModelState.COMPLETE;
271
- this.onCompleteObservable.notifyObservers(this);
272
- };
273
- /**
274
- * Add a new animation group to this model.
275
- * @param animationGroup the new animation group to be added
276
- */
277
- ViewerModel.prototype.addAnimationGroup = function (animationGroup) {
278
- this._animations.push(new GroupModelAnimation(animationGroup));
279
- };
280
- /**
281
- * Get the ModelAnimation array
282
- * @returns the array of ModelAnimations
283
- */
284
- ViewerModel.prototype.getAnimations = function () {
285
- return this._animations;
286
- };
287
- /**
288
- * Get the animations' names. Using the names you can play a specific animation.
289
- * @returns the array of ModelAnimations
290
- */
291
- ViewerModel.prototype.getAnimationNames = function () {
292
- return this._animations.map(function (a) { return a.name; });
293
- };
294
- /**
295
- * Get an animation by the provided name. Used mainly when playing n animation.
296
- * @param name the name of the animation to find
297
- * @returns the ModelAnimation object
298
- */
299
- ViewerModel.prototype._getAnimationByName = function (name) {
300
- // can't use .find, noe available on IE
301
- var filtered = this._animations.filter(function (a) { return a.name === name.trim(); });
302
- if (filtered.length >= 1) {
303
- return filtered[0];
304
- }
305
- else {
306
- return null;
307
- }
308
- };
309
- /**
310
- * Choose an initialized animation using its name and start playing it
311
- * @param name the name of the animation to play
312
- * @returns The model aniamtion to be played.
313
- */
314
- ViewerModel.prototype.playAnimation = function (name) {
315
- var animation = this.setCurrentAnimationByName(name);
316
- if (animation) {
317
- animation.start();
318
- }
319
- return animation;
320
- };
321
- ViewerModel.prototype.setCurrentAnimationByName = function (name) {
322
- var animation = this._getAnimationByName(name.trim());
323
- if (animation) {
324
- if (this.currentAnimation && this.currentAnimation.state !== AnimationState.STOPPED) {
325
- this.currentAnimation.stop();
326
- }
327
- this.currentAnimation = animation;
328
- return animation;
329
- }
330
- else {
331
- throw new Error("animation not found - " + name);
332
- }
333
- };
334
- ViewerModel.prototype._configureModel = function () {
335
- var _this = this;
336
- // this can be changed to the meshes that have rootMesh a parent without breaking anything.
337
- var meshesWithNoParent = [this.rootMesh]; //this._meshes.filter(m => m.parent === this.rootMesh);
338
- var updateMeshesWithNoParent = function (variable, value, param) {
339
- meshesWithNoParent.forEach(function (mesh) {
340
- if (param) {
341
- mesh[variable][param] = value;
342
- }
343
- else {
344
- mesh[variable] = value;
345
- }
346
- });
347
- };
348
- var updateXYZ = function (variable, configValues) {
349
- if (configValues.x !== undefined) {
350
- updateMeshesWithNoParent(variable, configValues.x, "x");
351
- }
352
- if (configValues.y !== undefined) {
353
- updateMeshesWithNoParent(variable, configValues.y, "y");
354
- }
355
- if (configValues.z !== undefined) {
356
- updateMeshesWithNoParent(variable, configValues.z, "z");
357
- }
358
- if (configValues.w !== undefined) {
359
- updateMeshesWithNoParent(variable, configValues.w, "w");
360
- }
361
- };
362
- if (this._modelConfiguration.normalize) {
363
- var center = false;
364
- var unitSize = false;
365
- var parentIndex = void 0;
366
- if (this._modelConfiguration.normalize === true) {
367
- center = true;
368
- unitSize = true;
369
- }
370
- else {
371
- center = !!this._modelConfiguration.normalize.center;
372
- unitSize = !!this._modelConfiguration.normalize.unitSize;
373
- parentIndex = this._modelConfiguration.normalize.parentIndex;
374
- }
375
- var meshesToNormalize = [];
376
- if (parentIndex !== undefined) {
377
- meshesToNormalize.push(this._meshes[parentIndex]);
378
- }
379
- else {
380
- meshesToNormalize = this._pivotMesh.getChildMeshes(true).length === 1 ? [this._pivotMesh] : meshesWithNoParent;
381
- }
382
- if (unitSize) {
383
- meshesToNormalize.forEach(function (mesh) {
384
- mesh.normalizeToUnitCube(true);
385
- mesh.computeWorldMatrix(true);
386
- });
387
- }
388
- if (center) {
389
- meshesToNormalize.forEach(function (mesh) {
390
- var boundingInfo = mesh.getHierarchyBoundingVectors(true);
391
- var sizeVec = boundingInfo.max.subtract(boundingInfo.min);
392
- var halfSizeVec = sizeVec.scale(0.5);
393
- var center = boundingInfo.min.add(halfSizeVec);
394
- mesh.position = center.scale(-1);
395
- mesh.position.y += halfSizeVec.y;
396
- // Recompute Info.
397
- mesh.computeWorldMatrix(true);
398
- });
399
- }
400
- }
401
- else {
402
- // if centered, should be done here
403
- }
404
- // position?
405
- if (this._modelConfiguration.position) {
406
- updateXYZ("position", this._modelConfiguration.position);
407
- }
408
- if (this._modelConfiguration.rotation) {
409
- //quaternion?
410
- if (this._modelConfiguration.rotation.w) {
411
- meshesWithNoParent.forEach(function (mesh) {
412
- if (!mesh.rotationQuaternion) {
413
- mesh.rotationQuaternion = new Quaternion();
414
- }
415
- });
416
- updateXYZ("rotationQuaternion", this._modelConfiguration.rotation);
417
- }
418
- else {
419
- updateXYZ("rotation", this._modelConfiguration.rotation);
420
- }
421
- }
422
- if (this._modelConfiguration.rotationOffsetAxis) {
423
- var rotationAxis_1 = new Vector3(this._modelConfiguration.rotationOffsetAxis.x, this._modelConfiguration.rotationOffsetAxis.y, this._modelConfiguration.rotationOffsetAxis.z);
424
- meshesWithNoParent.forEach(function (m) {
425
- if (_this._modelConfiguration.rotationOffsetAngle) {
426
- m.rotate(rotationAxis_1, _this._modelConfiguration.rotationOffsetAngle);
427
- }
428
- });
429
- }
430
- if (this._modelConfiguration.scaling) {
431
- updateXYZ("scaling", this._modelConfiguration.scaling);
432
- }
433
- if (this._modelConfiguration.castShadow) {
434
- this._meshes.forEach(function (mesh) {
435
- Tags.AddTagsTo(mesh, "castShadow");
436
- });
437
- }
438
- var meshes = this._pivotMesh.getChildMeshes(false);
439
- meshes
440
- .filter(function (m) { return m.material; })
441
- .forEach(function (mesh) {
442
- _this._applyModelMaterialConfiguration(mesh.material);
443
- });
444
- if (this._modelConfiguration.entryAnimation) {
445
- this._entryAnimation = this._modelAnimationConfigurationToObject(this._modelConfiguration.entryAnimation);
446
- }
447
- // if (this._modelConfiguration.exitAnimation) {
448
- // this._exitAnimation = this._modelAnimationConfigurationToObject(this._modelConfiguration.exitAnimation);
449
- // }
450
- this.onAfterConfigure.notifyObservers(this);
451
- };
452
- ViewerModel.prototype._modelAnimationConfigurationToObject = function (animConfig) {
453
- var anim = {
454
- time: 0.5,
455
- };
456
- if (animConfig.scaling) {
457
- anim.scaling = Vector3.Zero();
458
- }
459
- if (animConfig.easingFunction !== undefined) {
460
- anim.easingFunction = animConfig.easingFunction;
461
- }
462
- if (animConfig.easingMode !== undefined) {
463
- anim.easingMode = animConfig.easingMode;
464
- }
465
- extendClassWithConfig(anim, animConfig);
466
- return anim;
467
- };
468
- /**
469
- * Apply a material configuration to a material
470
- * @param material Material to apply configuration to
471
- * @internal
472
- */
473
- ViewerModel.prototype._applyModelMaterialConfiguration = function (material) {
474
- if (!this._modelConfiguration.material) {
475
- return;
476
- }
477
- extendClassWithConfig(material, this._modelConfiguration.material);
478
- if (material instanceof PBRMaterial) {
479
- if (this._modelConfiguration.material.directIntensity !== undefined) {
480
- material.directIntensity = this._modelConfiguration.material.directIntensity;
481
- }
482
- if (this._modelConfiguration.material.emissiveIntensity !== undefined) {
483
- material.emissiveIntensity = this._modelConfiguration.material.emissiveIntensity;
484
- }
485
- if (this._modelConfiguration.material.environmentIntensity !== undefined) {
486
- material.environmentIntensity = this._modelConfiguration.material.environmentIntensity;
487
- }
488
- if (this._modelConfiguration.material.directEnabled !== undefined) {
489
- material.disableLighting = !this._modelConfiguration.material.directEnabled;
490
- }
491
- if (this._configurationContainer && this._configurationContainer.reflectionColor) {
492
- material.reflectionColor = this._configurationContainer.reflectionColor.clone();
493
- }
494
- }
495
- else if (material instanceof MultiMaterial) {
496
- for (var i = 0; i < material.subMaterials.length; i++) {
497
- var subMaterial = material.subMaterials[i];
498
- if (subMaterial) {
499
- this._applyModelMaterialConfiguration(subMaterial);
500
- }
501
- }
502
- }
503
- };
504
- /**
505
- * Start entry/exit animation given an animation configuration
506
- * @param animationConfiguration Entry/Exit animation configuration
507
- * @param isEntry Pass true if the animation is an entry animation
508
- * @param completeCallback Callback to execute when the animation completes
509
- */
510
- ViewerModel.prototype._applyAnimation = function (animationConfiguration, isEntry, completeCallback) {
511
- var animations = [];
512
- //scale
513
- if (animationConfiguration.scaling) {
514
- var scaleStart = isEntry ? animationConfiguration.scaling : new Vector3(1, 1, 1);
515
- var scaleEnd = isEntry ? new Vector3(1, 1, 1) : animationConfiguration.scaling;
516
- if (!scaleStart.equals(scaleEnd)) {
517
- this.rootMesh.scaling = scaleStart;
518
- this._setLinearKeys(this._scaleTransition, this.rootMesh.scaling, scaleEnd, animationConfiguration.time);
519
- animations.push(this._scaleTransition);
520
- }
521
- }
522
- //Start the animation(s)
523
- this.transitionTo(animations, animationConfiguration.time, this._createEasingFunction(animationConfiguration.easingFunction), animationConfiguration.easingMode, function () {
524
- if (completeCallback) {
525
- completeCallback();
526
- }
527
- });
528
- };
529
- /**
530
- * Begin @animations with the specified @easingFunction
531
- * @param animations The BABYLON Animations to begin
532
- * @param duration of transition, in seconds
533
- * @param easingFunction An easing function to apply
534
- * @param easingMode A easing mode to apply to the easingFunction
535
- * @param onAnimationEnd Call back trigger at the end of the animation.
536
- */
537
- ViewerModel.prototype.transitionTo = function (animations, duration, easingFunction, easingMode, // BABYLON.EasingFunction.EASINGMODE_EASEINOUT,
538
- onAnimationEnd) {
539
- if (easingMode === void 0) { easingMode = 2; }
540
- if (easingFunction) {
541
- for (var _i = 0, animations_1 = animations; _i < animations_1.length; _i++) {
542
- var animation = animations_1[_i];
543
- easingFunction.setEasingMode(easingMode);
544
- animation.setEasingFunction(easingFunction);
545
- }
546
- }
547
- //Stop any current animations before starting the new one - merging not yet supported.
548
- this.stopAllAnimations();
549
- this.rootMesh.animations = animations;
550
- if (this.rootMesh.getScene().beginAnimation !== undefined) {
551
- var animatable = this.rootMesh.getScene().beginAnimation(this.rootMesh, 0, this._frameRate * duration, false, 1, function () {
552
- if (onAnimationEnd) {
553
- onAnimationEnd();
554
- }
555
- });
556
- this._animatables.push(animatable);
557
- }
558
- };
559
- /**
560
- * Sets key values on an Animation from first to last frame.
561
- * @param animation The Babylon animation object to set keys on
562
- * @param startValue The value of the first key
563
- * @param endValue The value of the last key
564
- * @param duration The duration of the animation, used to determine the end frame
565
- */
566
- ViewerModel.prototype._setLinearKeys = function (animation, startValue, endValue, duration) {
567
- animation.setKeys([
568
- {
569
- frame: 0,
570
- value: startValue,
571
- },
572
- {
573
- frame: this._frameRate * duration,
574
- value: endValue,
575
- },
576
- ]);
577
- };
578
- /**
579
- * Creates and returns a Babylon easing funtion object based on a string representing the Easing function
580
- * @param easingFunctionID The enum of the easing funtion to create
581
- * @returns The newly created Babylon easing function object
582
- */
583
- ViewerModel.prototype._createEasingFunction = function (easingFunctionID) {
584
- var easingFunction;
585
- switch (easingFunctionID) {
586
- case EasingFunction.CircleEase:
587
- easingFunction = new CircleEase();
588
- break;
589
- case EasingFunction.BackEase:
590
- easingFunction = new BackEase(0.3);
591
- break;
592
- case EasingFunction.BounceEase:
593
- easingFunction = new BounceEase();
594
- break;
595
- case EasingFunction.CubicEase:
596
- easingFunction = new CubicEase();
597
- break;
598
- case EasingFunction.ElasticEase:
599
- easingFunction = new ElasticEase();
600
- break;
601
- case EasingFunction.ExponentialEase:
602
- easingFunction = new ExponentialEase();
603
- break;
604
- case EasingFunction.PowerEase:
605
- easingFunction = new PowerEase();
606
- break;
607
- case EasingFunction.QuadraticEase:
608
- easingFunction = new QuadraticEase();
609
- break;
610
- case EasingFunction.QuarticEase:
611
- easingFunction = new QuarticEase();
612
- break;
613
- case EasingFunction.QuinticEase:
614
- easingFunction = new QuinticEase();
615
- break;
616
- case EasingFunction.SineEase:
617
- easingFunction = new SineEase();
618
- break;
619
- default:
620
- Tools.Log("No ease function found");
621
- break;
622
- }
623
- return easingFunction;
624
- };
625
- /**
626
- * Stops and removes all animations that have been applied to the model
627
- */
628
- ViewerModel.prototype.stopAllAnimations = function () {
629
- if (this.rootMesh) {
630
- this.rootMesh.animations = [];
631
- }
632
- if (this.currentAnimation) {
633
- this.currentAnimation.stop();
634
- }
635
- while (this._animatables.length) {
636
- this._animatables[0].onAnimationEnd = null;
637
- this._animatables[0].stop();
638
- this._animatables.shift();
639
- }
640
- };
641
- /**
642
- * Will remove this model from the viewer (but NOT dispose it).
643
- */
644
- ViewerModel.prototype.remove = function () {
645
- this.stopAllAnimations();
646
- if (this._observablesManager) {
647
- this._observablesManager.onModelRemovedObservable.notifyObservers(this);
648
- }
649
- };
650
- /**
651
- * Dispose this model, including all of its associated assets.
652
- */
653
- ViewerModel.prototype.dispose = function () {
654
- this.remove();
655
- this.onAfterConfigure.clear();
656
- this.onLoadedObservable.clear();
657
- this.onLoadErrorObservable.clear();
658
- this.onLoadProgressObservable.clear();
659
- if (this.loader && this.loader.name === "gltf") {
660
- this.loader.dispose();
661
- }
662
- this.particleSystems.forEach(function (ps) { return ps.dispose(); });
663
- this.particleSystems.length = 0;
664
- this.skeletons.forEach(function (s) { return s.dispose(); });
665
- this.skeletons.length = 0;
666
- this._animations.forEach(function (ag) { return ag.dispose(); });
667
- this._animations.length = 0;
668
- this.rootMesh.dispose(false, true);
669
- };
670
- return ViewerModel;
671
- }());
672
- export { ViewerModel };
673
- //# sourceMappingURL=viewerModel.js.map