@babylonjs/viewer 7.30.0 → 7.30.1-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 (587) 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_image_based-B8QkHePo.esm.js +172 -0
  7. package/dist/chunks/EXT_lights_image_based-B8QkHePo.esm.js.map +1 -0
  8. package/dist/chunks/EXT_lights_image_based-BSiU8YlV.esm.min.js +2 -0
  9. package/dist/chunks/EXT_lights_image_based-BSiU8YlV.esm.min.js.map +1 -0
  10. package/dist/chunks/EXT_mesh_gpu_instancing-hZ-8qY7C.esm.min.js +2 -0
  11. package/dist/chunks/EXT_mesh_gpu_instancing-hZ-8qY7C.esm.min.js.map +1 -0
  12. package/dist/chunks/EXT_mesh_gpu_instancing-wJVTdqxC.esm.js +86 -0
  13. package/dist/chunks/EXT_mesh_gpu_instancing-wJVTdqxC.esm.js.map +1 -0
  14. package/dist/chunks/EXT_meshopt_compression-B2B6s_wQ.esm.min.js +2 -0
  15. package/dist/chunks/EXT_meshopt_compression-B2B6s_wQ.esm.min.js.map +1 -0
  16. package/dist/chunks/EXT_meshopt_compression-NtmqtMgU.esm.js +134 -0
  17. package/dist/chunks/EXT_meshopt_compression-NtmqtMgU.esm.js.map +1 -0
  18. package/dist/chunks/EXT_texture_avif-CHILVmx8.esm.js +44 -0
  19. package/dist/chunks/EXT_texture_avif-CHILVmx8.esm.js.map +1 -0
  20. package/dist/chunks/EXT_texture_avif-CS00cTRS.esm.min.js +2 -0
  21. package/dist/chunks/EXT_texture_avif-CS00cTRS.esm.min.js.map +1 -0
  22. package/dist/chunks/EXT_texture_webp-Bkq-q6FG.esm.min.js +2 -0
  23. package/dist/chunks/EXT_texture_webp-Bkq-q6FG.esm.min.js.map +1 -0
  24. package/dist/chunks/EXT_texture_webp-DN0lE3ZI.esm.js +43 -0
  25. package/dist/chunks/EXT_texture_webp-DN0lE3ZI.esm.js.map +1 -0
  26. package/dist/chunks/ExtrasAsMetadata-BBYH2MWy.esm.js +64 -0
  27. package/dist/chunks/ExtrasAsMetadata-BBYH2MWy.esm.js.map +1 -0
  28. package/dist/chunks/ExtrasAsMetadata-DIPrXR0e.esm.min.js +2 -0
  29. package/dist/chunks/ExtrasAsMetadata-DIPrXR0e.esm.min.js.map +1 -0
  30. package/dist/chunks/KHR_animation_pointer-Bi9FNmzm.esm.js +343 -0
  31. package/dist/chunks/KHR_animation_pointer-Bi9FNmzm.esm.js.map +1 -0
  32. package/dist/chunks/KHR_animation_pointer-cRE1VpCW.esm.min.js +2 -0
  33. package/dist/chunks/KHR_animation_pointer-cRE1VpCW.esm.min.js.map +1 -0
  34. package/dist/chunks/KHR_draco_mesh_compression-B7X-Y-9y.esm.js +610 -0
  35. package/dist/chunks/KHR_draco_mesh_compression-B7X-Y-9y.esm.js.map +1 -0
  36. package/dist/chunks/KHR_draco_mesh_compression-C3N7uxkp.esm.min.js +2 -0
  37. package/dist/chunks/KHR_draco_mesh_compression-C3N7uxkp.esm.min.js.map +1 -0
  38. package/dist/chunks/KHR_interactivity-C0idLGI_.esm.min.js +2 -0
  39. package/dist/chunks/KHR_interactivity-C0idLGI_.esm.min.js.map +1 -0
  40. package/dist/chunks/KHR_interactivity-DP9ukTBy.esm.js +4033 -0
  41. package/dist/chunks/KHR_interactivity-DP9ukTBy.esm.js.map +1 -0
  42. package/dist/chunks/KHR_lights_punctual-Brv0Wuoh.esm.js +1253 -0
  43. package/dist/chunks/KHR_lights_punctual-Brv0Wuoh.esm.js.map +1 -0
  44. package/dist/chunks/KHR_lights_punctual-D5rY7e9I.esm.min.js +2 -0
  45. package/dist/chunks/KHR_lights_punctual-D5rY7e9I.esm.min.js.map +1 -0
  46. package/dist/chunks/KHR_materials_anisotropy-CNTB-Obv.esm.min.js +2 -0
  47. package/dist/chunks/KHR_materials_anisotropy-CNTB-Obv.esm.min.js.map +1 -0
  48. package/dist/chunks/KHR_materials_anisotropy-uViUcrBX.esm.js +64 -0
  49. package/dist/chunks/KHR_materials_anisotropy-uViUcrBX.esm.js.map +1 -0
  50. package/dist/chunks/KHR_materials_clearcoat-C3xAVuBX.esm.min.js +2 -0
  51. package/dist/chunks/KHR_materials_clearcoat-C3xAVuBX.esm.min.js.map +1 -0
  52. package/dist/chunks/KHR_materials_clearcoat-CGnx-Def.esm.js +96 -0
  53. package/dist/chunks/KHR_materials_clearcoat-CGnx-Def.esm.js.map +1 -0
  54. package/dist/chunks/KHR_materials_diffuse_transmission-C6jtnXQp.esm.js +97 -0
  55. package/dist/chunks/KHR_materials_diffuse_transmission-C6jtnXQp.esm.js.map +1 -0
  56. package/dist/chunks/KHR_materials_diffuse_transmission-Chq7fNC6.esm.min.js +2 -0
  57. package/dist/chunks/KHR_materials_diffuse_transmission-Chq7fNC6.esm.min.js.map +1 -0
  58. package/dist/chunks/KHR_materials_dispersion-CdwDEjkD.esm.min.js +2 -0
  59. package/dist/chunks/KHR_materials_dispersion-CdwDEjkD.esm.min.js.map +1 -0
  60. package/dist/chunks/KHR_materials_dispersion-i3C5_tOQ.esm.js +62 -0
  61. package/dist/chunks/KHR_materials_dispersion-i3C5_tOQ.esm.js.map +1 -0
  62. package/dist/chunks/KHR_materials_emissive_strength-Ci0aHrSf.esm.js +55 -0
  63. package/dist/chunks/KHR_materials_emissive_strength-Ci0aHrSf.esm.js.map +1 -0
  64. package/dist/chunks/KHR_materials_emissive_strength-oOS672hJ.esm.min.js +2 -0
  65. package/dist/chunks/KHR_materials_emissive_strength-oOS672hJ.esm.min.js.map +1 -0
  66. package/dist/chunks/KHR_materials_ior-BczbilaN.esm.min.js +2 -0
  67. package/dist/chunks/KHR_materials_ior-BczbilaN.esm.min.js.map +1 -0
  68. package/dist/chunks/KHR_materials_ior-DAgTpEPO.esm.js +64 -0
  69. package/dist/chunks/KHR_materials_ior-DAgTpEPO.esm.js.map +1 -0
  70. package/dist/chunks/KHR_materials_iridescence-BvH-DyMM.esm.js +72 -0
  71. package/dist/chunks/KHR_materials_iridescence-BvH-DyMM.esm.js.map +1 -0
  72. package/dist/chunks/KHR_materials_iridescence-Cs329Tec.esm.min.js +2 -0
  73. package/dist/chunks/KHR_materials_iridescence-Cs329Tec.esm.min.js.map +1 -0
  74. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BAoCWbDD.esm.js +81 -0
  75. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BAoCWbDD.esm.js.map +1 -0
  76. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-RptdeCpW.esm.min.js +2 -0
  77. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-RptdeCpW.esm.min.js.map +1 -0
  78. package/dist/chunks/KHR_materials_sheen-C48YqGyP.esm.js +85 -0
  79. package/dist/chunks/KHR_materials_sheen-C48YqGyP.esm.js.map +1 -0
  80. package/dist/chunks/KHR_materials_sheen-CENbfA8s.esm.min.js +2 -0
  81. package/dist/chunks/KHR_materials_sheen-CENbfA8s.esm.min.js.map +1 -0
  82. package/dist/chunks/KHR_materials_specular-BVunKKIv.esm.js +75 -0
  83. package/dist/chunks/KHR_materials_specular-BVunKKIv.esm.js.map +1 -0
  84. package/dist/chunks/KHR_materials_specular-DzkwSxAP.esm.min.js +2 -0
  85. package/dist/chunks/KHR_materials_specular-DzkwSxAP.esm.min.js.map +1 -0
  86. package/dist/chunks/KHR_materials_transmission-BTHUpaVT.esm.min.js +2 -0
  87. package/dist/chunks/KHR_materials_transmission-BTHUpaVT.esm.min.js.map +1 -0
  88. package/dist/chunks/KHR_materials_transmission-BgZKGZqg.esm.js +307 -0
  89. package/dist/chunks/KHR_materials_transmission-BgZKGZqg.esm.js.map +1 -0
  90. package/dist/chunks/KHR_materials_unlit-CU2DPO94.esm.js +74 -0
  91. package/dist/chunks/KHR_materials_unlit-CU2DPO94.esm.js.map +1 -0
  92. package/dist/chunks/KHR_materials_unlit-qeFFDJsN.esm.min.js +2 -0
  93. package/dist/chunks/KHR_materials_unlit-qeFFDJsN.esm.min.js.map +1 -0
  94. package/dist/chunks/KHR_materials_variants-BYcHAfKt.esm.min.js +2 -0
  95. package/dist/chunks/KHR_materials_variants-BYcHAfKt.esm.min.js.map +1 -0
  96. package/dist/chunks/KHR_materials_variants-DfibokCz.esm.js +238 -0
  97. package/dist/chunks/KHR_materials_variants-DfibokCz.esm.js.map +1 -0
  98. package/dist/chunks/KHR_materials_volume-BLgQKdLc.esm.min.js +2 -0
  99. package/dist/chunks/KHR_materials_volume-BLgQKdLc.esm.min.js.map +1 -0
  100. package/dist/chunks/KHR_materials_volume-CeusrX5Q.esm.js +87 -0
  101. package/dist/chunks/KHR_materials_volume-CeusrX5Q.esm.js.map +1 -0
  102. package/dist/chunks/KHR_mesh_quantization-B1lFBE4i.esm.min.js +2 -0
  103. package/dist/chunks/KHR_mesh_quantization-B1lFBE4i.esm.min.js.map +1 -0
  104. package/dist/chunks/KHR_mesh_quantization-CTlthm9b.esm.js +26 -0
  105. package/dist/chunks/KHR_mesh_quantization-CTlthm9b.esm.js.map +1 -0
  106. package/dist/chunks/KHR_texture_basisu-DxfhU-WD.esm.min.js +2 -0
  107. package/dist/chunks/KHR_texture_basisu-DxfhU-WD.esm.min.js.map +1 -0
  108. package/dist/chunks/KHR_texture_basisu-kee0jVUy.esm.js +43 -0
  109. package/dist/chunks/KHR_texture_basisu-kee0jVUy.esm.js.map +1 -0
  110. package/dist/chunks/KHR_texture_transform-9DUjN2OI.esm.js +63 -0
  111. package/dist/chunks/KHR_texture_transform-9DUjN2OI.esm.js.map +1 -0
  112. package/dist/chunks/KHR_texture_transform-DbQFyzy6.esm.min.js +2 -0
  113. package/dist/chunks/KHR_texture_transform-DbQFyzy6.esm.min.js.map +1 -0
  114. package/dist/chunks/KHR_xmp_json_ld-CXJGx-sA.esm.js +51 -0
  115. package/dist/chunks/KHR_xmp_json_ld-CXJGx-sA.esm.js.map +1 -0
  116. package/dist/chunks/KHR_xmp_json_ld-tRIKOwLG.esm.min.js +2 -0
  117. package/dist/chunks/KHR_xmp_json_ld-tRIKOwLG.esm.min.js.map +1 -0
  118. package/dist/chunks/MSFT_audio_emitter-CI0Nml3O.esm.js +2207 -0
  119. package/dist/chunks/MSFT_audio_emitter-CI0Nml3O.esm.js.map +1 -0
  120. package/dist/chunks/MSFT_audio_emitter-DpCifHwR.esm.min.js +2 -0
  121. package/dist/chunks/MSFT_audio_emitter-DpCifHwR.esm.min.js.map +1 -0
  122. package/dist/chunks/MSFT_lod-B9ex3lVq.esm.js +337 -0
  123. package/dist/chunks/MSFT_lod-B9ex3lVq.esm.js.map +1 -0
  124. package/dist/chunks/MSFT_lod-z8dJ8Drm.esm.min.js +2 -0
  125. package/dist/chunks/MSFT_lod-z8dJ8Drm.esm.min.js.map +1 -0
  126. package/dist/chunks/MSFT_minecraftMesh-CtBZz4pl.esm.min.js +2 -0
  127. package/dist/chunks/MSFT_minecraftMesh-CtBZz4pl.esm.min.js.map +1 -0
  128. package/dist/chunks/MSFT_minecraftMesh-nf1sPsge.esm.js +46 -0
  129. package/dist/chunks/MSFT_minecraftMesh-nf1sPsge.esm.js.map +1 -0
  130. package/dist/chunks/MSFT_sRGBFactors-CRYLn1p6.esm.min.js +2 -0
  131. package/dist/chunks/MSFT_sRGBFactors-CRYLn1p6.esm.min.js.map +1 -0
  132. package/dist/chunks/MSFT_sRGBFactors-CeWD8LAk.esm.js +47 -0
  133. package/dist/chunks/MSFT_sRGBFactors-CeWD8LAk.esm.js.map +1 -0
  134. package/dist/chunks/animationGroup-B_9qZnYC.esm.min.js +2 -0
  135. package/dist/chunks/animationGroup-B_9qZnYC.esm.min.js.map +1 -0
  136. package/dist/chunks/animationGroup-Caf5e8cG.esm.js +2479 -0
  137. package/dist/chunks/animationGroup-Caf5e8cG.esm.js.map +1 -0
  138. package/dist/chunks/assetContainer-B2UWLifX.esm.min.js +2 -0
  139. package/dist/chunks/assetContainer-B2UWLifX.esm.min.js.map +1 -0
  140. package/dist/chunks/assetContainer-C3VbcE_z.esm.js +1720 -0
  141. package/dist/chunks/assetContainer-C3VbcE_z.esm.js.map +1 -0
  142. package/dist/chunks/audioEngine-BsSa5q28.esm.js +305 -0
  143. package/dist/chunks/audioEngine-BsSa5q28.esm.js.map +1 -0
  144. package/dist/chunks/audioEngine-Q9RaM40V.esm.min.js +2 -0
  145. package/dist/chunks/audioEngine-Q9RaM40V.esm.min.js.map +1 -0
  146. package/dist/chunks/bakedVertexAnimation-Dl6TUwlE.esm.min.js +2 -0
  147. package/dist/chunks/bakedVertexAnimation-Dl6TUwlE.esm.min.js.map +1 -0
  148. package/dist/chunks/bakedVertexAnimation-FeXNV03T.esm.js +119 -0
  149. package/dist/chunks/bakedVertexAnimation-FeXNV03T.esm.js.map +1 -0
  150. package/dist/chunks/basisTextureLoader-BDG3XE5Y.esm.min.js +2 -0
  151. package/dist/chunks/basisTextureLoader-BDG3XE5Y.esm.min.js.map +1 -0
  152. package/dist/chunks/basisTextureLoader-DfZMofRb.esm.js +600 -0
  153. package/dist/chunks/basisTextureLoader-DfZMofRb.esm.js.map +1 -0
  154. package/dist/chunks/dds-Igr2kHF_.esm.min.js +2 -0
  155. package/dist/chunks/dds-Igr2kHF_.esm.min.js.map +1 -0
  156. package/dist/chunks/dds-o4OMNRtH.esm.js +540 -0
  157. package/dist/chunks/dds-o4OMNRtH.esm.js.map +1 -0
  158. package/dist/chunks/ddsTextureLoader-CnyOXLtf.esm.min.js +2 -0
  159. package/dist/chunks/ddsTextureLoader-CnyOXLtf.esm.min.js.map +1 -0
  160. package/dist/chunks/ddsTextureLoader-VMzKzLn-.esm.js +88 -0
  161. package/dist/chunks/ddsTextureLoader-VMzKzLn-.esm.js.map +1 -0
  162. package/dist/chunks/decalFragment-Dd54mbG2.esm.min.js +2 -0
  163. package/dist/chunks/decalFragment-Dd54mbG2.esm.min.js.map +1 -0
  164. package/dist/chunks/decalFragment-DfryH-xh.esm.js +18 -0
  165. package/dist/chunks/decalFragment-DfryH-xh.esm.js.map +1 -0
  166. package/dist/chunks/default.fragment-CnYfGMJp.esm.js +449 -0
  167. package/dist/chunks/default.fragment-CnYfGMJp.esm.js.map +1 -0
  168. package/dist/chunks/default.fragment-CsdUsRw_.esm.min.js +2 -0
  169. package/dist/chunks/default.fragment-CsdUsRw_.esm.min.js.map +1 -0
  170. package/dist/chunks/default.fragment-D0ITB58w.esm.js +515 -0
  171. package/dist/chunks/default.fragment-D0ITB58w.esm.js.map +1 -0
  172. package/dist/chunks/default.fragment-D6IvjaEp.esm.min.js +2 -0
  173. package/dist/chunks/default.fragment-D6IvjaEp.esm.min.js.map +1 -0
  174. package/dist/chunks/default.vertex-Ch_6OmJk.esm.min.js +2 -0
  175. package/dist/chunks/default.vertex-Ch_6OmJk.esm.min.js.map +1 -0
  176. package/dist/chunks/default.vertex-DqT17MVn.esm.js +199 -0
  177. package/dist/chunks/default.vertex-DqT17MVn.esm.js.map +1 -0
  178. package/dist/chunks/default.vertex-ld9hqDyj.esm.js +180 -0
  179. package/dist/chunks/default.vertex-ld9hqDyj.esm.js.map +1 -0
  180. package/dist/chunks/default.vertex-wi8elnOd.esm.min.js +2 -0
  181. package/dist/chunks/default.vertex-wi8elnOd.esm.min.js.map +1 -0
  182. package/dist/chunks/defaultUboDeclaration--F3dwx1S.esm.js +15 -0
  183. package/dist/chunks/defaultUboDeclaration--F3dwx1S.esm.js.map +1 -0
  184. package/dist/chunks/defaultUboDeclaration-B1N9B5Gl.esm.min.js +2 -0
  185. package/dist/chunks/defaultUboDeclaration-B1N9B5Gl.esm.min.js.map +1 -0
  186. package/dist/chunks/defaultUboDeclaration-CVb37fjo.esm.min.js +2 -0
  187. package/dist/chunks/defaultUboDeclaration-CVb37fjo.esm.min.js.map +1 -0
  188. package/dist/chunks/defaultUboDeclaration-OtAuvsYL.esm.js +13 -0
  189. package/dist/chunks/defaultUboDeclaration-OtAuvsYL.esm.js.map +1 -0
  190. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
  191. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
  192. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
  193. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
  194. package/dist/chunks/dumpTools-Cd98CM01.esm.js +402 -0
  195. package/dist/chunks/dumpTools-Cd98CM01.esm.js.map +1 -0
  196. package/dist/chunks/dumpTools-kyQtrfmm.esm.min.js +2 -0
  197. package/dist/chunks/dumpTools-kyQtrfmm.esm.min.js.map +1 -0
  198. package/dist/chunks/engine-B3yxhwnS.esm.js +2174 -0
  199. package/dist/chunks/engine-B3yxhwnS.esm.js.map +1 -0
  200. package/dist/chunks/engine-CPXcFlBT.esm.min.js +2 -0
  201. package/dist/chunks/engine-CPXcFlBT.esm.min.js.map +1 -0
  202. package/dist/chunks/engine.common-B6M8bu3t.esm.js +1088 -0
  203. package/dist/chunks/engine.common-B6M8bu3t.esm.js.map +1 -0
  204. package/dist/chunks/engine.common-cpembRo8.esm.min.js +2 -0
  205. package/dist/chunks/engine.common-cpembRo8.esm.min.js.map +1 -0
  206. package/dist/chunks/envTextureLoader-BtwI9GPN.esm.js +65 -0
  207. package/dist/chunks/envTextureLoader-BtwI9GPN.esm.js.map +1 -0
  208. package/dist/chunks/envTextureLoader-D9erruFA.esm.min.js +2 -0
  209. package/dist/chunks/envTextureLoader-D9erruFA.esm.min.js.map +1 -0
  210. package/dist/chunks/environmentTextureTools-BCJKgGWI.esm.min.js +2 -0
  211. package/dist/chunks/environmentTextureTools-BCJKgGWI.esm.min.js.map +1 -0
  212. package/dist/chunks/environmentTextureTools-DIr7XYmL.esm.js +382 -0
  213. package/dist/chunks/environmentTextureTools-DIr7XYmL.esm.js.map +1 -0
  214. package/dist/chunks/exrTextureLoader-BIpKPFKS.esm.js +1682 -0
  215. package/dist/chunks/exrTextureLoader-BIpKPFKS.esm.js.map +1 -0
  216. package/dist/chunks/exrTextureLoader-D4DP8CEI.esm.min.js +2 -0
  217. package/dist/chunks/exrTextureLoader-D4DP8CEI.esm.min.js.map +1 -0
  218. package/dist/chunks/fogFragment-CT1rtmII.esm.js +102 -0
  219. package/dist/chunks/fogFragment-CT1rtmII.esm.js.map +1 -0
  220. package/dist/chunks/fogFragment-Caucp7gO.esm.min.js +2 -0
  221. package/dist/chunks/fogFragment-Caucp7gO.esm.min.js.map +1 -0
  222. package/dist/chunks/fresnelFunction-C-YnVKZy.esm.js +12 -0
  223. package/dist/chunks/fresnelFunction-C-YnVKZy.esm.js.map +1 -0
  224. package/dist/chunks/fresnelFunction-DXV-Gn3X.esm.min.js +2 -0
  225. package/dist/chunks/fresnelFunction-DXV-Gn3X.esm.min.js.map +1 -0
  226. package/dist/chunks/glTFLoader-BUEhZ_Yx.esm.js +7577 -0
  227. package/dist/chunks/glTFLoader-BUEhZ_Yx.esm.js.map +1 -0
  228. package/dist/chunks/glTFLoader-Bikb9kQP.esm.min.js +2 -0
  229. package/dist/chunks/glTFLoader-Bikb9kQP.esm.min.js.map +1 -0
  230. package/dist/chunks/glTFLoaderAnimation-DoayKrau.esm.min.js +2 -0
  231. package/dist/chunks/glTFLoaderAnimation-DoayKrau.esm.min.js.map +1 -0
  232. package/dist/chunks/glTFLoaderAnimation-DrC2hKeR.esm.js +77 -0
  233. package/dist/chunks/glTFLoaderAnimation-DrC2hKeR.esm.js.map +1 -0
  234. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
  235. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
  236. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
  237. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
  238. package/dist/chunks/harmonicsFunctions-CvPMLLnj.esm.js +34 -0
  239. package/dist/chunks/harmonicsFunctions-CvPMLLnj.esm.js.map +1 -0
  240. package/dist/chunks/harmonicsFunctions-D36-AdS5.esm.js +35 -0
  241. package/dist/chunks/harmonicsFunctions-D36-AdS5.esm.js.map +1 -0
  242. package/dist/chunks/harmonicsFunctions-DZ2FogZq.esm.min.js +2 -0
  243. package/dist/chunks/harmonicsFunctions-DZ2FogZq.esm.min.js.map +1 -0
  244. package/dist/chunks/harmonicsFunctions-Dqm6bWBy.esm.min.js +2 -0
  245. package/dist/chunks/harmonicsFunctions-Dqm6bWBy.esm.min.js.map +1 -0
  246. package/dist/chunks/hdrTextureLoader-CiuIhL8I.esm.js +252 -0
  247. package/dist/chunks/hdrTextureLoader-CiuIhL8I.esm.js.map +1 -0
  248. package/dist/chunks/hdrTextureLoader-QQ6TEFPn.esm.min.js +2 -0
  249. package/dist/chunks/hdrTextureLoader-QQ6TEFPn.esm.min.js.map +1 -0
  250. package/dist/chunks/helperFunctions-BmpTMP9U.esm.min.js +2 -0
  251. package/dist/chunks/helperFunctions-BmpTMP9U.esm.min.js.map +1 -0
  252. package/dist/chunks/helperFunctions-Cb7U87AV.esm.js +108 -0
  253. package/dist/chunks/helperFunctions-Cb7U87AV.esm.js.map +1 -0
  254. package/dist/chunks/helperFunctions-DbJ3JhM0.esm.js +80 -0
  255. package/dist/chunks/helperFunctions-DbJ3JhM0.esm.js.map +1 -0
  256. package/dist/chunks/helperFunctions-M382PZ6f.esm.min.js +2 -0
  257. package/dist/chunks/helperFunctions-M382PZ6f.esm.min.js.map +1 -0
  258. package/dist/chunks/index-CIyiNmMD.esm.min.js +57 -0
  259. package/dist/chunks/index-CIyiNmMD.esm.min.js.map +1 -0
  260. package/dist/chunks/index-DV_mRp0V.esm.js +72045 -0
  261. package/dist/chunks/index-DV_mRp0V.esm.js.map +1 -0
  262. package/dist/chunks/ktxTextureLoader-B1e7g2Se.esm.js +814 -0
  263. package/dist/chunks/ktxTextureLoader-B1e7g2Se.esm.js.map +1 -0
  264. package/dist/chunks/ktxTextureLoader-CfLNNmBj.esm.min.js +2 -0
  265. package/dist/chunks/ktxTextureLoader-CfLNNmBj.esm.min.js.map +1 -0
  266. package/dist/chunks/logDepthDeclaration-AKRPAXbv.esm.js +20 -0
  267. package/dist/chunks/logDepthDeclaration-AKRPAXbv.esm.js.map +1 -0
  268. package/dist/chunks/logDepthDeclaration-BFlc1Sz5.esm.js +35 -0
  269. package/dist/chunks/logDepthDeclaration-BFlc1Sz5.esm.js.map +1 -0
  270. package/dist/chunks/logDepthDeclaration-BkU1fH0B.esm.min.js +2 -0
  271. package/dist/chunks/logDepthDeclaration-BkU1fH0B.esm.min.js.map +1 -0
  272. package/dist/chunks/logDepthDeclaration-C6GKSjog.esm.min.js +2 -0
  273. package/dist/chunks/logDepthDeclaration-C6GKSjog.esm.min.js.map +1 -0
  274. package/dist/chunks/logDepthVertex-BOQAtuDj.esm.js +77 -0
  275. package/dist/chunks/logDepthVertex-BOQAtuDj.esm.js.map +1 -0
  276. package/dist/chunks/logDepthVertex-Co2KvxUo.esm.min.js +2 -0
  277. package/dist/chunks/logDepthVertex-Co2KvxUo.esm.min.js.map +1 -0
  278. package/dist/chunks/logDepthVertex-H_MJJ_GQ.esm.min.js +2 -0
  279. package/dist/chunks/logDepthVertex-H_MJJ_GQ.esm.min.js.map +1 -0
  280. package/dist/chunks/logDepthVertex-u512xo4x.esm.js +488 -0
  281. package/dist/chunks/logDepthVertex-u512xo4x.esm.js.map +1 -0
  282. package/dist/chunks/mainUVVaryingDeclaration-BeDhg2oD.esm.js +11 -0
  283. package/dist/chunks/mainUVVaryingDeclaration-BeDhg2oD.esm.js.map +1 -0
  284. package/dist/chunks/mainUVVaryingDeclaration-C3OpRYwk.esm.min.js +2 -0
  285. package/dist/chunks/mainUVVaryingDeclaration-C3OpRYwk.esm.min.js.map +1 -0
  286. package/dist/chunks/meshUboDeclaration-DS9O2grO.esm.min.js +2 -0
  287. package/dist/chunks/meshUboDeclaration-DS9O2grO.esm.min.js.map +1 -0
  288. package/dist/chunks/meshUboDeclaration-Dj2hscRy.esm.js +24 -0
  289. package/dist/chunks/meshUboDeclaration-Dj2hscRy.esm.js.map +1 -0
  290. package/dist/chunks/objFileLoader-BbMgApzR.esm.min.js +2 -0
  291. package/dist/chunks/objFileLoader-BbMgApzR.esm.min.js.map +1 -0
  292. package/dist/chunks/objFileLoader-BpsC8pGC.esm.js +1338 -0
  293. package/dist/chunks/objFileLoader-BpsC8pGC.esm.js.map +1 -0
  294. package/dist/chunks/oitFragment-BlZOVBNE.esm.js +1210 -0
  295. package/dist/chunks/oitFragment-BlZOVBNE.esm.js.map +1 -0
  296. package/dist/chunks/oitFragment-D5kQEOJH.esm.min.js +2 -0
  297. package/dist/chunks/oitFragment-D5kQEOJH.esm.min.js.map +1 -0
  298. package/dist/chunks/oitFragment-HW7VZaca.esm.min.js +2 -0
  299. package/dist/chunks/oitFragment-HW7VZaca.esm.min.js.map +1 -0
  300. package/dist/chunks/oitFragment-JXDEu0bi.esm.js +1150 -0
  301. package/dist/chunks/oitFragment-JXDEu0bi.esm.js.map +1 -0
  302. package/dist/chunks/pass.fragment-BJQq2qAp.esm.js +15 -0
  303. package/dist/chunks/pass.fragment-BJQq2qAp.esm.js.map +1 -0
  304. package/dist/chunks/pass.fragment-BxD_kCkX.esm.min.js +2 -0
  305. package/dist/chunks/pass.fragment-BxD_kCkX.esm.min.js.map +1 -0
  306. package/dist/chunks/pass.fragment-By7gsCOP.esm.js +15 -0
  307. package/dist/chunks/pass.fragment-By7gsCOP.esm.js.map +1 -0
  308. package/dist/chunks/pass.fragment-CBeObuzk.esm.min.js +2 -0
  309. package/dist/chunks/pass.fragment-CBeObuzk.esm.min.js.map +1 -0
  310. package/dist/chunks/pbr.fragment-BYJy3TyL.esm.js +3165 -0
  311. package/dist/chunks/pbr.fragment-BYJy3TyL.esm.js.map +1 -0
  312. package/dist/chunks/pbr.fragment-Cjqfjhki.esm.min.js +2 -0
  313. package/dist/chunks/pbr.fragment-Cjqfjhki.esm.min.js.map +1 -0
  314. package/dist/chunks/pbr.fragment-fj1P_BfA.esm.min.js +2 -0
  315. package/dist/chunks/pbr.fragment-fj1P_BfA.esm.min.js.map +1 -0
  316. package/dist/chunks/pbr.fragment-wP-c85IY.esm.js +3219 -0
  317. package/dist/chunks/pbr.fragment-wP-c85IY.esm.js.map +1 -0
  318. package/dist/chunks/pbr.vertex-BviiatXf.esm.js +335 -0
  319. package/dist/chunks/pbr.vertex-BviiatXf.esm.js.map +1 -0
  320. package/dist/chunks/pbr.vertex-DEEQfrHH.esm.js +210 -0
  321. package/dist/chunks/pbr.vertex-DEEQfrHH.esm.js.map +1 -0
  322. package/dist/chunks/pbr.vertex-DK-wI3nj.esm.min.js +2 -0
  323. package/dist/chunks/pbr.vertex-DK-wI3nj.esm.min.js.map +1 -0
  324. package/dist/chunks/pbr.vertex-SS6Eh96F.esm.min.js +2 -0
  325. package/dist/chunks/pbr.vertex-SS6Eh96F.esm.min.js.map +1 -0
  326. package/dist/chunks/postprocess.vertex-BbTJmjCf.esm.min.js +2 -0
  327. package/dist/chunks/postprocess.vertex-BbTJmjCf.esm.min.js.map +1 -0
  328. package/dist/chunks/postprocess.vertex-CNs3MRKb.esm.js +20 -0
  329. package/dist/chunks/postprocess.vertex-CNs3MRKb.esm.js.map +1 -0
  330. package/dist/chunks/postprocess.vertex-CTo285Z2.esm.min.js +2 -0
  331. package/dist/chunks/postprocess.vertex-CTo285Z2.esm.min.js.map +1 -0
  332. package/dist/chunks/postprocess.vertex-y147vu4l.esm.js +18 -0
  333. package/dist/chunks/postprocess.vertex-y147vu4l.esm.js.map +1 -0
  334. package/dist/chunks/rawTexture-6isRmFti.esm.js +191 -0
  335. package/dist/chunks/rawTexture-6isRmFti.esm.js.map +1 -0
  336. package/dist/chunks/rawTexture-D4XnSF1r.esm.min.js +2 -0
  337. package/dist/chunks/rawTexture-D4XnSF1r.esm.min.js.map +1 -0
  338. package/dist/chunks/rgbdDecode.fragment-3lEy-Ka7.esm.js +17 -0
  339. package/dist/chunks/rgbdDecode.fragment-3lEy-Ka7.esm.js.map +1 -0
  340. package/dist/chunks/rgbdDecode.fragment-COQem3tF.esm.js +17 -0
  341. package/dist/chunks/rgbdDecode.fragment-COQem3tF.esm.js.map +1 -0
  342. package/dist/chunks/rgbdDecode.fragment-DXGiOnN0.esm.min.js +2 -0
  343. package/dist/chunks/rgbdDecode.fragment-DXGiOnN0.esm.min.js.map +1 -0
  344. package/dist/chunks/rgbdDecode.fragment-H721Xf9-.esm.min.js +2 -0
  345. package/dist/chunks/rgbdDecode.fragment-H721Xf9-.esm.min.js.map +1 -0
  346. package/dist/chunks/rgbdEncode.fragment-B4OD9ZtF.esm.min.js +2 -0
  347. package/dist/chunks/rgbdEncode.fragment-B4OD9ZtF.esm.min.js.map +1 -0
  348. package/dist/chunks/rgbdEncode.fragment-CQiCuTLF.esm.js +17 -0
  349. package/dist/chunks/rgbdEncode.fragment-CQiCuTLF.esm.js.map +1 -0
  350. package/dist/chunks/rgbdEncode.fragment-CX3nTLp5.esm.js +17 -0
  351. package/dist/chunks/rgbdEncode.fragment-CX3nTLp5.esm.js.map +1 -0
  352. package/dist/chunks/rgbdEncode.fragment-CdBxB5jv.esm.min.js +2 -0
  353. package/dist/chunks/rgbdEncode.fragment-CdBxB5jv.esm.min.js.map +1 -0
  354. package/dist/chunks/splatFileLoader-3iaRLBaz.esm.min.js +2 -0
  355. package/dist/chunks/splatFileLoader-3iaRLBaz.esm.min.js.map +1 -0
  356. package/dist/chunks/splatFileLoader-B9nfzA38.esm.js +3598 -0
  357. package/dist/chunks/splatFileLoader-B9nfzA38.esm.js.map +1 -0
  358. package/dist/chunks/standardMaterial-PSnYwoCV.esm.min.js +2 -0
  359. package/dist/chunks/standardMaterial-PSnYwoCV.esm.min.js.map +1 -0
  360. package/dist/chunks/standardMaterial-sHuTQ1tu.esm.js +1800 -0
  361. package/dist/chunks/standardMaterial-sHuTQ1tu.esm.js.map +1 -0
  362. package/dist/chunks/stlFileLoader-CGeDwcKD.esm.js +238 -0
  363. package/dist/chunks/stlFileLoader-CGeDwcKD.esm.js.map +1 -0
  364. package/dist/chunks/stlFileLoader-CMvJa97I.esm.min.js +2 -0
  365. package/dist/chunks/stlFileLoader-CMvJa97I.esm.min.js.map +1 -0
  366. package/dist/chunks/tgaTextureLoader-DA9PD4-W.esm.min.js +2 -0
  367. package/dist/chunks/tgaTextureLoader-DA9PD4-W.esm.min.js.map +1 -0
  368. package/dist/chunks/tgaTextureLoader-tLbUn9Fj.esm.js +349 -0
  369. package/dist/chunks/tgaTextureLoader-tLbUn9Fj.esm.js.map +1 -0
  370. package/dist/chunks/thinEngine-BHJfErVb.esm.js +3721 -0
  371. package/dist/chunks/thinEngine-BHJfErVb.esm.js.map +1 -0
  372. package/dist/chunks/thinEngine-Dm9mz21A.esm.min.js +2 -0
  373. package/dist/chunks/thinEngine-Dm9mz21A.esm.min.js.map +1 -0
  374. package/dist/chunks/thinInstanceMesh-BmyPW1W0.esm.js +314 -0
  375. package/dist/chunks/thinInstanceMesh-BmyPW1W0.esm.js.map +1 -0
  376. package/dist/chunks/thinInstanceMesh-FE1_0Dpq.esm.min.js +2 -0
  377. package/dist/chunks/thinInstanceMesh-FE1_0Dpq.esm.min.js.map +1 -0
  378. package/dist/chunks/vertexColorMixing-q2DcZ4Dn.esm.js +528 -0
  379. package/dist/chunks/vertexColorMixing-q2DcZ4Dn.esm.js.map +1 -0
  380. package/dist/chunks/vertexColorMixing-rp5ckHF-.esm.min.js +2 -0
  381. package/dist/chunks/vertexColorMixing-rp5ckHF-.esm.min.js.map +1 -0
  382. package/dist/chunks/webgpuEngine-B_ikij35.esm.js +11191 -0
  383. package/dist/chunks/webgpuEngine-B_ikij35.esm.js.map +1 -0
  384. package/dist/chunks/webgpuEngine-CsJfrYZY.esm.min.js +2 -0
  385. package/dist/chunks/webgpuEngine-CsJfrYZY.esm.min.js.map +1 -0
  386. package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
  387. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
  388. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
  389. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
  390. package/docs/ViewerDefault.jpg +0 -0
  391. package/docs/ViewerParts.jpg +0 -0
  392. package/docs/ViewerSlots.jpg +0 -0
  393. package/docs/ViewerStyled.jpg +0 -0
  394. package/lib/index.d.ts +325 -0
  395. package/lib/index.js +1116 -0
  396. package/lib/index.js.map +1 -0
  397. package/package.json +18 -27
  398. package/readme.md +145 -21
  399. package/configuration/configuration.d.ts +0 -107
  400. package/configuration/configuration.js +0 -16
  401. package/configuration/configuration.js.map +0 -1
  402. package/configuration/configurationCompatibility.d.ts +0 -8
  403. package/configuration/configurationCompatibility.js +0 -66
  404. package/configuration/configurationCompatibility.js.map +0 -1
  405. package/configuration/configurationContainer.d.ts +0 -10
  406. package/configuration/configurationContainer.js +0 -10
  407. package/configuration/configurationContainer.js.map +0 -1
  408. package/configuration/globals.d.ts +0 -6
  409. package/configuration/globals.js +0 -18
  410. package/configuration/globals.js.map +0 -1
  411. package/configuration/index.d.ts +0 -2
  412. package/configuration/index.js +0 -4
  413. package/configuration/index.js.map +0 -1
  414. package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
  415. package/configuration/interfaces/cameraConfiguration.js +0 -2
  416. package/configuration/interfaces/cameraConfiguration.js.map +0 -1
  417. package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
  418. package/configuration/interfaces/colorGradingConfiguration.js +0 -2
  419. package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
  420. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
  421. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
  422. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
  423. package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
  424. package/configuration/interfaces/environmentMapConfiguration.js +0 -2
  425. package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
  426. package/configuration/interfaces/groundConfiguration.d.ts +0 -24
  427. package/configuration/interfaces/groundConfiguration.js +0 -2
  428. package/configuration/interfaces/groundConfiguration.js.map +0 -1
  429. package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
  430. package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
  431. package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
  432. package/configuration/interfaces/index.d.ts +0 -15
  433. package/configuration/interfaces/index.js +0 -16
  434. package/configuration/interfaces/index.js.map +0 -1
  435. package/configuration/interfaces/lightConfiguration.d.ts +0 -60
  436. package/configuration/interfaces/lightConfiguration.js +0 -2
  437. package/configuration/interfaces/lightConfiguration.js.map +0 -1
  438. package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
  439. package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
  440. package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
  441. package/configuration/interfaces/modelConfiguration.d.ts +0 -65
  442. package/configuration/interfaces/modelConfiguration.js +0 -2
  443. package/configuration/interfaces/modelConfiguration.js.map +0 -1
  444. package/configuration/interfaces/observersConfiguration.d.ts +0 -5
  445. package/configuration/interfaces/observersConfiguration.js +0 -2
  446. package/configuration/interfaces/observersConfiguration.js.map +0 -1
  447. package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
  448. package/configuration/interfaces/sceneConfiguration.js +0 -2
  449. package/configuration/interfaces/sceneConfiguration.js.map +0 -1
  450. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
  451. package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
  452. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
  453. package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
  454. package/configuration/interfaces/skyboxConfiguration.js +0 -2
  455. package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
  456. package/configuration/interfaces/templateConfiguration.d.ts +0 -67
  457. package/configuration/interfaces/templateConfiguration.js +0 -2
  458. package/configuration/interfaces/templateConfiguration.js.map +0 -1
  459. package/configuration/interfaces/vrConfiguration.d.ts +0 -16
  460. package/configuration/interfaces/vrConfiguration.js +0 -2
  461. package/configuration/interfaces/vrConfiguration.js.map +0 -1
  462. package/configuration/loader.d.ts +0 -4
  463. package/configuration/loader.js +0 -17
  464. package/configuration/loader.js.map +0 -1
  465. package/configuration/mappers.d.ts +0 -43
  466. package/configuration/mappers.js +0 -192
  467. package/configuration/mappers.js.map +0 -1
  468. package/configuration/renderOnlyLoader.d.ts +0 -33
  469. package/configuration/renderOnlyLoader.js +0 -162
  470. package/configuration/renderOnlyLoader.js.map +0 -1
  471. package/configuration/types/default.d.ts +0 -6
  472. package/configuration/types/default.js +0 -121
  473. package/configuration/types/default.js.map +0 -1
  474. package/configuration/types/environmentMap.d.ts +0 -5
  475. package/configuration/types/environmentMap.js +0 -14
  476. package/configuration/types/environmentMap.js.map +0 -1
  477. package/configuration/types/extended.d.ts +0 -6
  478. package/configuration/types/extended.js +0 -317
  479. package/configuration/types/extended.js.map +0 -1
  480. package/configuration/types/index.d.ts +0 -14
  481. package/configuration/types/index.js +0 -51
  482. package/configuration/types/index.js.map +0 -1
  483. package/configuration/types/minimal.d.ts +0 -6
  484. package/configuration/types/minimal.js +0 -43
  485. package/configuration/types/minimal.js.map +0 -1
  486. package/configuration/types/renderOnlyDefault.d.ts +0 -30
  487. package/configuration/types/renderOnlyDefault.js +0 -31
  488. package/configuration/types/renderOnlyDefault.js.map +0 -1
  489. package/configuration/types/shadowLight.d.ts +0 -9
  490. package/configuration/types/shadowLight.js +0 -64
  491. package/configuration/types/shadowLight.js.map +0 -1
  492. package/helper/index.d.ts +0 -29
  493. package/helper/index.js +0 -66
  494. package/helper/index.js.map +0 -1
  495. package/index.d.ts +0 -30
  496. package/index.js +0 -46
  497. package/index.js.map +0 -1
  498. package/initializer.d.ts +0 -11
  499. package/initializer.js +0 -35
  500. package/initializer.js.map +0 -1
  501. package/interfaces.d.ts +0 -5
  502. package/interfaces.js +0 -7
  503. package/interfaces.js.map +0 -1
  504. package/labs/environmentSerializer.d.ts +0 -126
  505. package/labs/environmentSerializer.js +0 -191
  506. package/labs/environmentSerializer.js.map +0 -1
  507. package/labs/texture.d.ts +0 -183
  508. package/labs/texture.js +0 -350
  509. package/labs/texture.js.map +0 -1
  510. package/labs/viewerLabs.d.ts +0 -51
  511. package/labs/viewerLabs.js +0 -134
  512. package/labs/viewerLabs.js.map +0 -1
  513. package/loader/modelLoader.d.ts +0 -56
  514. package/loader/modelLoader.js +0 -199
  515. package/loader/modelLoader.js.map +0 -1
  516. package/loader/plugins/applyMaterialConfig.d.ts +0 -12
  517. package/loader/plugins/applyMaterialConfig.js +0 -16
  518. package/loader/plugins/applyMaterialConfig.js.map +0 -1
  519. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
  520. package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
  521. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
  522. package/loader/plugins/index.d.ts +0 -19
  523. package/loader/plugins/index.js +0 -44
  524. package/loader/plugins/index.js.map +0 -1
  525. package/loader/plugins/loaderPlugin.d.ts +0 -24
  526. package/loader/plugins/loaderPlugin.js +0 -2
  527. package/loader/plugins/loaderPlugin.js.map +0 -1
  528. package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
  529. package/loader/plugins/msftLodLoaderPlugin.js +0 -21
  530. package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
  531. package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
  532. package/loader/plugins/telemetryLoaderPlugin.js +0 -36
  533. package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
  534. package/managers/observablesManager.d.ts +0 -66
  535. package/managers/observablesManager.js +0 -35
  536. package/managers/observablesManager.js.map +0 -1
  537. package/managers/sceneManager.d.ts +0 -245
  538. package/managers/sceneManager.js +0 -1375
  539. package/managers/sceneManager.js.map +0 -1
  540. package/managers/telemetryManager.d.ts +0 -78
  541. package/managers/telemetryManager.js +0 -117
  542. package/managers/telemetryManager.js.map +0 -1
  543. package/model/modelAnimation.d.ts +0 -215
  544. package/model/modelAnimation.js +0 -237
  545. package/model/modelAnimation.js.map +0 -1
  546. package/model/viewerModel.d.ts +0 -233
  547. package/model/viewerModel.js +0 -673
  548. package/model/viewerModel.js.map +0 -1
  549. package/optimizer/custom/extended.d.ts +0 -13
  550. package/optimizer/custom/extended.js +0 -101
  551. package/optimizer/custom/extended.js.map +0 -1
  552. package/optimizer/custom/index.d.ts +0 -9
  553. package/optimizer/custom/index.js +0 -26
  554. package/optimizer/custom/index.js.map +0 -1
  555. package/renderOnlyIndex.d.ts +0 -11
  556. package/renderOnlyIndex.js +0 -18
  557. package/renderOnlyIndex.js.map +0 -1
  558. package/templating/eventManager.d.ts +0 -35
  559. package/templating/eventManager.js +0 -66
  560. package/templating/eventManager.js.map +0 -1
  561. package/templating/plugins/hdButtonPlugin.d.ts +0 -9
  562. package/templating/plugins/hdButtonPlugin.js +0 -21
  563. package/templating/plugins/hdButtonPlugin.js.map +0 -1
  564. package/templating/plugins/printButton.d.ts +0 -9
  565. package/templating/plugins/printButton.js +0 -40
  566. package/templating/plugins/printButton.js.map +0 -1
  567. package/templating/templateManager.d.ts +0 -197
  568. package/templating/templateManager.js +0 -561
  569. package/templating/templateManager.js.map +0 -1
  570. package/templating/viewerTemplatePlugin.d.ts +0 -21
  571. package/templating/viewerTemplatePlugin.js +0 -69
  572. package/templating/viewerTemplatePlugin.js.map +0 -1
  573. package/viewer/defaultViewer.d.ts +0 -130
  574. package/viewer/defaultViewer.js +0 -672
  575. package/viewer/defaultViewer.js.map +0 -1
  576. package/viewer/renderOnlyViewer.d.ts +0 -9
  577. package/viewer/renderOnlyViewer.js +0 -46
  578. package/viewer/renderOnlyViewer.js.map +0 -1
  579. package/viewer/viewer.d.ts +0 -258
  580. package/viewer/viewer.js +0 -783
  581. package/viewer/viewer.js.map +0 -1
  582. package/viewer/viewerManager.d.ts +0 -58
  583. package/viewer/viewerManager.js +0 -91
  584. package/viewer/viewerManager.js.map +0 -1
  585. package/viewer/viewerWithTemplate.d.ts +0 -9
  586. package/viewer/viewerWithTemplate.js +0 -20
  587. package/viewer/viewerWithTemplate.js.map +0 -1
@@ -0,0 +1,1088 @@
1
+ import { m as PrecisionDate, C as Constants, A as AbstractEngine, n as IsWindowObjectExist, o as IsDocumentAvailable, E as EngineStore } from './index-DV_mRp0V.esm.js';
2
+
3
+ /**
4
+ * Performance monitor tracks rolling average frame-time and frame-time variance over a user defined sliding-window
5
+ */
6
+ class PerformanceMonitor {
7
+ /**
8
+ * constructor
9
+ * @param frameSampleSize The number of samples required to saturate the sliding window
10
+ */
11
+ constructor(frameSampleSize = 30) {
12
+ this._enabled = true;
13
+ this._rollingFrameTime = new RollingAverage(frameSampleSize);
14
+ }
15
+ /**
16
+ * Samples current frame
17
+ * @param timeMs A timestamp in milliseconds of the current frame to compare with other frames
18
+ */
19
+ sampleFrame(timeMs = PrecisionDate.Now) {
20
+ if (!this._enabled) {
21
+ return;
22
+ }
23
+ if (this._lastFrameTimeMs != null) {
24
+ const dt = timeMs - this._lastFrameTimeMs;
25
+ this._rollingFrameTime.add(dt);
26
+ }
27
+ this._lastFrameTimeMs = timeMs;
28
+ }
29
+ /**
30
+ * Returns the average frame time in milliseconds over the sliding window (or the subset of frames sampled so far)
31
+ */
32
+ get averageFrameTime() {
33
+ return this._rollingFrameTime.average;
34
+ }
35
+ /**
36
+ * Returns the variance frame time in milliseconds over the sliding window (or the subset of frames sampled so far)
37
+ */
38
+ get averageFrameTimeVariance() {
39
+ return this._rollingFrameTime.variance;
40
+ }
41
+ /**
42
+ * Returns the frame time of the most recent frame
43
+ */
44
+ get instantaneousFrameTime() {
45
+ return this._rollingFrameTime.history(0);
46
+ }
47
+ /**
48
+ * Returns the average framerate in frames per second over the sliding window (or the subset of frames sampled so far)
49
+ */
50
+ get averageFPS() {
51
+ return 1000.0 / this._rollingFrameTime.average;
52
+ }
53
+ /**
54
+ * Returns the average framerate in frames per second using the most recent frame time
55
+ */
56
+ get instantaneousFPS() {
57
+ const history = this._rollingFrameTime.history(0);
58
+ if (history === 0) {
59
+ return 0;
60
+ }
61
+ return 1000.0 / history;
62
+ }
63
+ /**
64
+ * Returns true if enough samples have been taken to completely fill the sliding window
65
+ */
66
+ get isSaturated() {
67
+ return this._rollingFrameTime.isSaturated();
68
+ }
69
+ /**
70
+ * Enables contributions to the sliding window sample set
71
+ */
72
+ enable() {
73
+ this._enabled = true;
74
+ }
75
+ /**
76
+ * Disables contributions to the sliding window sample set
77
+ * Samples will not be interpolated over the disabled period
78
+ */
79
+ disable() {
80
+ this._enabled = false;
81
+ //clear last sample to avoid interpolating over the disabled period when next enabled
82
+ this._lastFrameTimeMs = null;
83
+ }
84
+ /**
85
+ * Returns true if sampling is enabled
86
+ */
87
+ get isEnabled() {
88
+ return this._enabled;
89
+ }
90
+ /**
91
+ * Resets performance monitor
92
+ */
93
+ reset() {
94
+ //clear last sample to avoid interpolating over the disabled period when next enabled
95
+ this._lastFrameTimeMs = null;
96
+ //wipe record
97
+ this._rollingFrameTime.reset();
98
+ }
99
+ }
100
+ /**
101
+ * RollingAverage
102
+ *
103
+ * Utility to efficiently compute the rolling average and variance over a sliding window of samples
104
+ */
105
+ class RollingAverage {
106
+ /**
107
+ * constructor
108
+ * @param length The number of samples required to saturate the sliding window
109
+ */
110
+ constructor(length) {
111
+ this._samples = new Array(length);
112
+ this.reset();
113
+ }
114
+ /**
115
+ * Adds a sample to the sample set
116
+ * @param v The sample value
117
+ */
118
+ add(v) {
119
+ //http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance
120
+ let delta;
121
+ //we need to check if we've already wrapped round
122
+ if (this.isSaturated()) {
123
+ //remove bottom of stack from mean
124
+ const bottomValue = this._samples[this._pos];
125
+ delta = bottomValue - this.average;
126
+ this.average -= delta / (this._sampleCount - 1);
127
+ this._m2 -= delta * (bottomValue - this.average);
128
+ }
129
+ else {
130
+ this._sampleCount++;
131
+ }
132
+ //add new value to mean
133
+ delta = v - this.average;
134
+ this.average += delta / this._sampleCount;
135
+ this._m2 += delta * (v - this.average);
136
+ //set the new variance
137
+ this.variance = this._m2 / (this._sampleCount - 1);
138
+ this._samples[this._pos] = v;
139
+ this._pos++;
140
+ this._pos %= this._samples.length; //positive wrap around
141
+ }
142
+ /**
143
+ * Returns previously added values or null if outside of history or outside the sliding window domain
144
+ * @param i Index in history. For example, pass 0 for the most recent value and 1 for the value before that
145
+ * @returns Value previously recorded with add() or null if outside of range
146
+ */
147
+ history(i) {
148
+ if (i >= this._sampleCount || i >= this._samples.length) {
149
+ return 0;
150
+ }
151
+ const i0 = this._wrapPosition(this._pos - 1.0);
152
+ return this._samples[this._wrapPosition(i0 - i)];
153
+ }
154
+ /**
155
+ * Returns true if enough samples have been taken to completely fill the sliding window
156
+ * @returns true if sample-set saturated
157
+ */
158
+ isSaturated() {
159
+ return this._sampleCount >= this._samples.length;
160
+ }
161
+ /**
162
+ * Resets the rolling average (equivalent to 0 samples taken so far)
163
+ */
164
+ reset() {
165
+ this.average = 0;
166
+ this.variance = 0;
167
+ this._sampleCount = 0;
168
+ this._pos = 0;
169
+ this._m2 = 0;
170
+ }
171
+ /**
172
+ * Wraps a value around the sample range boundaries
173
+ * @param i Position in sample range, for example if the sample length is 5, and i is -3, then 2 will be returned.
174
+ * @returns Wrapped position in sample range
175
+ */
176
+ _wrapPosition(i) {
177
+ const max = this._samples.length;
178
+ return ((i % max) + max) % max;
179
+ }
180
+ }
181
+
182
+ /**
183
+ * Wrapper around a render target (either single or multi textures)
184
+ */
185
+ class RenderTargetWrapper {
186
+ /**
187
+ * Gets the depth/stencil texture (if created by a createDepthStencilTexture() call)
188
+ */
189
+ get depthStencilTexture() {
190
+ return this._depthStencilTexture;
191
+ }
192
+ /**
193
+ * Indicates if the depth/stencil texture has a stencil aspect
194
+ */
195
+ get depthStencilTextureWithStencil() {
196
+ return this._depthStencilTextureWithStencil;
197
+ }
198
+ /**
199
+ * Defines if the render target wrapper is for a cube texture or if false a 2d texture
200
+ */
201
+ get isCube() {
202
+ return this._isCube;
203
+ }
204
+ /**
205
+ * Defines if the render target wrapper is for a single or multi target render wrapper
206
+ */
207
+ get isMulti() {
208
+ return this._isMulti;
209
+ }
210
+ /**
211
+ * Defines if the render target wrapper is for a single or an array of textures
212
+ */
213
+ get is2DArray() {
214
+ return this.layers > 0;
215
+ }
216
+ /**
217
+ * Defines if the render target wrapper is for a 3D texture
218
+ */
219
+ get is3D() {
220
+ return this.depth > 0;
221
+ }
222
+ /**
223
+ * Gets the size of the render target wrapper (used for cubes, as width=height in this case)
224
+ */
225
+ get size() {
226
+ return this.width;
227
+ }
228
+ /**
229
+ * Gets the width of the render target wrapper
230
+ */
231
+ get width() {
232
+ return this._size.width || this._size;
233
+ }
234
+ /**
235
+ * Gets the height of the render target wrapper
236
+ */
237
+ get height() {
238
+ return this._size.height || this._size;
239
+ }
240
+ /**
241
+ * Gets the number of layers of the render target wrapper (only used if is2DArray is true and wrapper is not a multi render target)
242
+ */
243
+ get layers() {
244
+ return this._size.layers || 0;
245
+ }
246
+ /**
247
+ * Gets the depth of the render target wrapper (only used if is3D is true and wrapper is not a multi render target)
248
+ */
249
+ get depth() {
250
+ return this._size.depth || 0;
251
+ }
252
+ /**
253
+ * Gets the render texture. If this is a multi render target, gets the first texture
254
+ */
255
+ get texture() {
256
+ return this._textures?.[0] ?? null;
257
+ }
258
+ /**
259
+ * Gets the list of render textures. If we are not in a multi render target, the list will be null (use the texture getter instead)
260
+ */
261
+ get textures() {
262
+ return this._textures;
263
+ }
264
+ /**
265
+ * Gets the face indices that correspond to the list of render textures. If we are not in a multi render target, the list will be null
266
+ */
267
+ get faceIndices() {
268
+ return this._faceIndices;
269
+ }
270
+ /**
271
+ * Gets the layer indices that correspond to the list of render textures. If we are not in a multi render target, the list will be null
272
+ */
273
+ get layerIndices() {
274
+ return this._layerIndices;
275
+ }
276
+ /**
277
+ * Gets the sample count of the render target
278
+ */
279
+ get samples() {
280
+ return this._samples;
281
+ }
282
+ /**
283
+ * Sets the sample count of the render target
284
+ * @param value sample count
285
+ * @param initializeBuffers If set to true, the engine will make an initializing call to drawBuffers (only used when isMulti=true).
286
+ * @param force true to force calling the update sample count engine function even if the current sample count is equal to value
287
+ * @returns the sample count that has been set
288
+ */
289
+ setSamples(value, initializeBuffers = true, force = false) {
290
+ if (this.samples === value && !force) {
291
+ return value;
292
+ }
293
+ const result = this._isMulti
294
+ ? this._engine.updateMultipleRenderTargetTextureSampleCount(this, value, initializeBuffers)
295
+ : this._engine.updateRenderTargetTextureSampleCount(this, value);
296
+ this._samples = value;
297
+ return result;
298
+ }
299
+ /**
300
+ * Initializes the render target wrapper
301
+ * @param isMulti true if the wrapper is a multi render target
302
+ * @param isCube true if the wrapper should render to a cube texture
303
+ * @param size size of the render target (width/height/layers)
304
+ * @param engine engine used to create the render target
305
+ * @param label defines the label to use for the wrapper (for debugging purpose only)
306
+ */
307
+ constructor(isMulti, isCube, size, engine, label) {
308
+ this._textures = null;
309
+ this._faceIndices = null;
310
+ this._layerIndices = null;
311
+ /** @internal */
312
+ this._samples = 1;
313
+ /** @internal */
314
+ this._attachments = null;
315
+ /** @internal */
316
+ this._generateStencilBuffer = false;
317
+ /** @internal */
318
+ this._generateDepthBuffer = false;
319
+ /** @internal */
320
+ this._depthStencilTextureWithStencil = false;
321
+ this._isMulti = isMulti;
322
+ this._isCube = isCube;
323
+ this._size = size;
324
+ this._engine = engine;
325
+ this._depthStencilTexture = null;
326
+ this.label = label;
327
+ }
328
+ /**
329
+ * Sets the render target texture(s)
330
+ * @param textures texture(s) to set
331
+ */
332
+ setTextures(textures) {
333
+ if (Array.isArray(textures)) {
334
+ this._textures = textures;
335
+ }
336
+ else if (textures) {
337
+ this._textures = [textures];
338
+ }
339
+ else {
340
+ this._textures = null;
341
+ }
342
+ }
343
+ /**
344
+ * Set a texture in the textures array
345
+ * @param texture The texture to set
346
+ * @param index The index in the textures array to set
347
+ * @param disposePrevious If this function should dispose the previous texture
348
+ */
349
+ setTexture(texture, index = 0, disposePrevious = true) {
350
+ if (!this._textures) {
351
+ this._textures = [];
352
+ }
353
+ if (this._textures[index] === texture) {
354
+ return;
355
+ }
356
+ if (this._textures[index] && disposePrevious) {
357
+ this._textures[index].dispose();
358
+ }
359
+ this._textures[index] = texture;
360
+ }
361
+ /**
362
+ * Sets the layer and face indices of every render target texture bound to each color attachment
363
+ * @param layers The layers of each texture to be set
364
+ * @param faces The faces of each texture to be set
365
+ */
366
+ setLayerAndFaceIndices(layers, faces) {
367
+ this._layerIndices = layers;
368
+ this._faceIndices = faces;
369
+ }
370
+ /**
371
+ * Sets the layer and face indices of a texture in the textures array that should be bound to each color attachment
372
+ * @param index The index of the texture in the textures array to modify
373
+ * @param layer The layer of the texture to be set
374
+ * @param face The face of the texture to be set
375
+ */
376
+ setLayerAndFaceIndex(index = 0, layer, face) {
377
+ if (!this._layerIndices) {
378
+ this._layerIndices = [];
379
+ }
380
+ if (!this._faceIndices) {
381
+ this._faceIndices = [];
382
+ }
383
+ if (layer !== undefined && layer >= 0) {
384
+ this._layerIndices[index] = layer;
385
+ }
386
+ if (face !== undefined && face >= 0) {
387
+ this._faceIndices[index] = face;
388
+ }
389
+ }
390
+ /**
391
+ * Creates the depth/stencil texture
392
+ * @param comparisonFunction Comparison function to use for the texture
393
+ * @param bilinearFiltering true if bilinear filtering should be used when sampling the texture
394
+ * @param generateStencil Not used anymore. "format" will be used to determine if stencil should be created
395
+ * @param samples sample count to use when creating the texture (default: 1)
396
+ * @param format format of the depth texture (default: Constants.TEXTUREFORMAT_DEPTH32_FLOAT)
397
+ * @param label defines the label to use for the texture (for debugging purpose only)
398
+ * @returns the depth/stencil created texture
399
+ */
400
+ createDepthStencilTexture(comparisonFunction = 0, bilinearFiltering = true, generateStencil = false, samples = 1, format = Constants.TEXTUREFORMAT_DEPTH32_FLOAT, label) {
401
+ this._depthStencilTexture?.dispose();
402
+ this._depthStencilTextureWithStencil = generateStencil;
403
+ this._depthStencilTextureLabel = label;
404
+ this._depthStencilTexture = this._engine.createDepthStencilTexture(this._size, {
405
+ bilinearFiltering,
406
+ comparisonFunction,
407
+ generateStencil,
408
+ isCube: this._isCube,
409
+ samples,
410
+ depthTextureFormat: format,
411
+ label,
412
+ }, this);
413
+ return this._depthStencilTexture;
414
+ }
415
+ /**
416
+ * @deprecated Use shareDepth instead
417
+ * @param renderTarget Destination renderTarget
418
+ */
419
+ _shareDepth(renderTarget) {
420
+ this.shareDepth(renderTarget);
421
+ }
422
+ /**
423
+ * Shares the depth buffer of this render target with another render target.
424
+ * @param renderTarget Destination renderTarget
425
+ */
426
+ shareDepth(renderTarget) {
427
+ if (this._depthStencilTexture) {
428
+ if (renderTarget._depthStencilTexture) {
429
+ renderTarget._depthStencilTexture.dispose();
430
+ }
431
+ renderTarget._depthStencilTexture = this._depthStencilTexture;
432
+ renderTarget._depthStencilTextureWithStencil = this._depthStencilTextureWithStencil;
433
+ this._depthStencilTexture.incrementReferences();
434
+ }
435
+ }
436
+ /**
437
+ * @internal
438
+ */
439
+ _swapAndDie(target) {
440
+ if (this.texture) {
441
+ this.texture._swapAndDie(target);
442
+ }
443
+ this._textures = null;
444
+ this.dispose(true);
445
+ }
446
+ _cloneRenderTargetWrapper() {
447
+ let rtw = null;
448
+ if (this._isMulti) {
449
+ const textureArray = this.textures;
450
+ if (textureArray && textureArray.length > 0) {
451
+ let generateDepthTexture = false;
452
+ let textureCount = textureArray.length;
453
+ let depthTextureFormat = -1;
454
+ const lastTextureSource = textureArray[textureArray.length - 1]._source;
455
+ if (lastTextureSource === 14 /* InternalTextureSource.Depth */ || lastTextureSource === 12 /* InternalTextureSource.DepthStencil */) {
456
+ generateDepthTexture = true;
457
+ depthTextureFormat = textureArray[textureArray.length - 1].format;
458
+ textureCount--;
459
+ }
460
+ const samplingModes = [];
461
+ const types = [];
462
+ const formats = [];
463
+ const targetTypes = [];
464
+ const faceIndex = [];
465
+ const layerIndex = [];
466
+ const layerCounts = [];
467
+ const internalTexture2Index = {};
468
+ for (let i = 0; i < textureCount; ++i) {
469
+ const texture = textureArray[i];
470
+ samplingModes.push(texture.samplingMode);
471
+ types.push(texture.type);
472
+ formats.push(texture.format);
473
+ const index = internalTexture2Index[texture.uniqueId];
474
+ if (index !== undefined) {
475
+ targetTypes.push(-1);
476
+ layerCounts.push(0);
477
+ }
478
+ else {
479
+ internalTexture2Index[texture.uniqueId] = i;
480
+ if (texture.is2DArray) {
481
+ targetTypes.push(Constants.TEXTURE_2D_ARRAY);
482
+ layerCounts.push(texture.depth);
483
+ }
484
+ else if (texture.isCube) {
485
+ targetTypes.push(Constants.TEXTURE_CUBE_MAP);
486
+ layerCounts.push(0);
487
+ } /*else if (texture.isCubeArray) {
488
+ targetTypes.push(Constants.TEXTURE_CUBE_MAP_ARRAY);
489
+ layerCounts.push(texture.depth);
490
+ }*/
491
+ else if (texture.is3D) {
492
+ targetTypes.push(Constants.TEXTURE_3D);
493
+ layerCounts.push(texture.depth);
494
+ }
495
+ else {
496
+ targetTypes.push(Constants.TEXTURE_2D);
497
+ layerCounts.push(0);
498
+ }
499
+ }
500
+ if (this._faceIndices) {
501
+ faceIndex.push(this._faceIndices[i] ?? 0);
502
+ }
503
+ if (this._layerIndices) {
504
+ layerIndex.push(this._layerIndices[i] ?? 0);
505
+ }
506
+ }
507
+ const optionsMRT = {
508
+ samplingModes,
509
+ generateMipMaps: textureArray[0].generateMipMaps,
510
+ generateDepthBuffer: this._generateDepthBuffer,
511
+ generateStencilBuffer: this._generateStencilBuffer,
512
+ generateDepthTexture,
513
+ depthTextureFormat,
514
+ types,
515
+ formats,
516
+ textureCount,
517
+ targetTypes,
518
+ faceIndex,
519
+ layerIndex,
520
+ layerCounts,
521
+ label: this.label,
522
+ };
523
+ const size = {
524
+ width: this.width,
525
+ height: this.height,
526
+ depth: this.depth,
527
+ };
528
+ rtw = this._engine.createMultipleRenderTarget(size, optionsMRT);
529
+ for (let i = 0; i < textureCount; ++i) {
530
+ if (targetTypes[i] !== -1) {
531
+ continue;
532
+ }
533
+ const index = internalTexture2Index[textureArray[i].uniqueId];
534
+ rtw.setTexture(rtw.textures[index], i);
535
+ }
536
+ }
537
+ }
538
+ else {
539
+ const options = {};
540
+ options.generateDepthBuffer = this._generateDepthBuffer;
541
+ options.generateMipMaps = this.texture?.generateMipMaps ?? false;
542
+ options.generateStencilBuffer = this._generateStencilBuffer;
543
+ options.samplingMode = this.texture?.samplingMode;
544
+ options.type = this.texture?.type;
545
+ options.format = this.texture?.format;
546
+ options.noColorAttachment = !this._textures;
547
+ options.label = this.label;
548
+ if (this.isCube) {
549
+ rtw = this._engine.createRenderTargetCubeTexture(this.width, options);
550
+ }
551
+ else {
552
+ const size = {
553
+ width: this.width,
554
+ height: this.height,
555
+ layers: this.is2DArray || this.is3D ? this.texture?.depth : undefined,
556
+ };
557
+ rtw = this._engine.createRenderTargetTexture(size, options);
558
+ }
559
+ if (rtw.texture) {
560
+ rtw.texture.isReady = true;
561
+ }
562
+ }
563
+ return rtw;
564
+ }
565
+ _swapRenderTargetWrapper(target) {
566
+ if (this._textures && target._textures) {
567
+ for (let i = 0; i < this._textures.length; ++i) {
568
+ this._textures[i]._swapAndDie(target._textures[i], false);
569
+ target._textures[i].isReady = true;
570
+ }
571
+ }
572
+ if (this._depthStencilTexture && target._depthStencilTexture) {
573
+ this._depthStencilTexture._swapAndDie(target._depthStencilTexture);
574
+ target._depthStencilTexture.isReady = true;
575
+ }
576
+ this._textures = null;
577
+ this._depthStencilTexture = null;
578
+ }
579
+ /** @internal */
580
+ _rebuild() {
581
+ const rtw = this._cloneRenderTargetWrapper();
582
+ if (!rtw) {
583
+ return;
584
+ }
585
+ if (this._depthStencilTexture) {
586
+ const samplingMode = this._depthStencilTexture.samplingMode;
587
+ const format = this._depthStencilTexture.format;
588
+ const bilinear = samplingMode === Constants.TEXTURE_BILINEAR_SAMPLINGMODE ||
589
+ samplingMode === Constants.TEXTURE_TRILINEAR_SAMPLINGMODE ||
590
+ samplingMode === Constants.TEXTURE_LINEAR_LINEAR_MIPNEAREST;
591
+ rtw.createDepthStencilTexture(this._depthStencilTexture._comparisonFunction, bilinear, this._depthStencilTextureWithStencil, this._depthStencilTexture.samples, format, this._depthStencilTextureLabel);
592
+ }
593
+ if (this.samples > 1) {
594
+ rtw.setSamples(this.samples);
595
+ }
596
+ rtw._swapRenderTargetWrapper(this);
597
+ rtw.dispose();
598
+ }
599
+ /**
600
+ * Releases the internal render textures
601
+ */
602
+ releaseTextures() {
603
+ if (this._textures) {
604
+ for (let i = 0; i < this._textures?.length ?? 0; ++i) {
605
+ this._textures[i].dispose();
606
+ }
607
+ }
608
+ this._textures = null;
609
+ }
610
+ /**
611
+ * Disposes the whole render target wrapper
612
+ * @param disposeOnlyFramebuffers true if only the frame buffers should be released (used for the WebGL engine). If false, all the textures will also be released
613
+ */
614
+ dispose(disposeOnlyFramebuffers = false) {
615
+ if (!disposeOnlyFramebuffers) {
616
+ this._depthStencilTexture?.dispose();
617
+ this._depthStencilTexture = null;
618
+ this.releaseTextures();
619
+ }
620
+ this._engine._releaseRenderTargetWrapper(this);
621
+ }
622
+ }
623
+
624
+ AbstractEngine.prototype.createDepthStencilTexture = function (size, options, rtWrapper) {
625
+ if (options.isCube) {
626
+ const width = size.width || size;
627
+ return this._createDepthStencilCubeTexture(width, options);
628
+ }
629
+ else {
630
+ return this._createDepthStencilTexture(size, options, rtWrapper);
631
+ }
632
+ };
633
+
634
+ AbstractEngine.prototype.displayLoadingUI = function () {
635
+ if (!IsWindowObjectExist()) {
636
+ return;
637
+ }
638
+ const loadingScreen = this.loadingScreen;
639
+ if (loadingScreen) {
640
+ loadingScreen.displayLoadingUI();
641
+ }
642
+ };
643
+ AbstractEngine.prototype.hideLoadingUI = function () {
644
+ if (!IsWindowObjectExist()) {
645
+ return;
646
+ }
647
+ const loadingScreen = this._loadingScreen;
648
+ if (loadingScreen) {
649
+ loadingScreen.hideLoadingUI();
650
+ }
651
+ };
652
+ Object.defineProperty(AbstractEngine.prototype, "loadingScreen", {
653
+ get: function () {
654
+ if (!this._loadingScreen && this._renderingCanvas) {
655
+ this._loadingScreen = AbstractEngine.DefaultLoadingScreenFactory(this._renderingCanvas);
656
+ }
657
+ return this._loadingScreen;
658
+ },
659
+ set: function (value) {
660
+ this._loadingScreen = value;
661
+ },
662
+ enumerable: true,
663
+ configurable: true,
664
+ });
665
+ Object.defineProperty(AbstractEngine.prototype, "loadingUIText", {
666
+ set: function (value) {
667
+ this.loadingScreen.loadingUIText = value;
668
+ },
669
+ enumerable: true,
670
+ configurable: true,
671
+ });
672
+ Object.defineProperty(AbstractEngine.prototype, "loadingUIBackgroundColor", {
673
+ set: function (value) {
674
+ this.loadingScreen.loadingUIBackgroundColor = value;
675
+ },
676
+ enumerable: true,
677
+ configurable: true,
678
+ });
679
+
680
+ AbstractEngine.prototype.getInputElement = function () {
681
+ return this._renderingCanvas;
682
+ };
683
+ AbstractEngine.prototype.getRenderingCanvasClientRect = function () {
684
+ if (!this._renderingCanvas) {
685
+ return null;
686
+ }
687
+ return this._renderingCanvas.getBoundingClientRect();
688
+ };
689
+ AbstractEngine.prototype.getInputElementClientRect = function () {
690
+ if (!this._renderingCanvas) {
691
+ return null;
692
+ }
693
+ return this.getInputElement().getBoundingClientRect();
694
+ };
695
+ AbstractEngine.prototype.getAspectRatio = function (viewportOwner, useScreen = false) {
696
+ const viewport = viewportOwner.viewport;
697
+ return (this.getRenderWidth(useScreen) * viewport.width) / (this.getRenderHeight(useScreen) * viewport.height);
698
+ };
699
+ AbstractEngine.prototype.getScreenAspectRatio = function () {
700
+ return this.getRenderWidth(true) / this.getRenderHeight(true);
701
+ };
702
+ AbstractEngine.prototype._verifyPointerLock = function () {
703
+ this._onPointerLockChange?.();
704
+ };
705
+
706
+ AbstractEngine.prototype.setAlphaEquation = function (equation) {
707
+ if (this._alphaEquation === equation) {
708
+ return;
709
+ }
710
+ switch (equation) {
711
+ case Constants.ALPHA_EQUATION_ADD:
712
+ this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_ADD, Constants.GL_ALPHA_EQUATION_ADD);
713
+ break;
714
+ case Constants.ALPHA_EQUATION_SUBSTRACT:
715
+ this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_SUBTRACT, Constants.GL_ALPHA_EQUATION_SUBTRACT);
716
+ break;
717
+ case Constants.ALPHA_EQUATION_REVERSE_SUBTRACT:
718
+ this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_REVERSE_SUBTRACT, Constants.GL_ALPHA_EQUATION_REVERSE_SUBTRACT);
719
+ break;
720
+ case Constants.ALPHA_EQUATION_MAX:
721
+ this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_MAX, Constants.GL_ALPHA_EQUATION_MAX);
722
+ break;
723
+ case Constants.ALPHA_EQUATION_MIN:
724
+ this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_MIN, Constants.GL_ALPHA_EQUATION_MIN);
725
+ break;
726
+ case Constants.ALPHA_EQUATION_DARKEN:
727
+ this._alphaState.setAlphaEquationParameters(Constants.GL_ALPHA_EQUATION_MIN, Constants.GL_ALPHA_EQUATION_ADD);
728
+ break;
729
+ }
730
+ this._alphaEquation = equation;
731
+ };
732
+
733
+ AbstractEngine.prototype.getInputElement = function () {
734
+ return this._renderingCanvas;
735
+ };
736
+ AbstractEngine.prototype.getDepthFunction = function () {
737
+ return this._depthCullingState.depthFunc;
738
+ };
739
+ AbstractEngine.prototype.setDepthFunction = function (depthFunc) {
740
+ this._depthCullingState.depthFunc = depthFunc;
741
+ };
742
+ AbstractEngine.prototype.setDepthFunctionToGreater = function () {
743
+ this.setDepthFunction(Constants.GREATER);
744
+ };
745
+ AbstractEngine.prototype.setDepthFunctionToGreaterOrEqual = function () {
746
+ this.setDepthFunction(Constants.GEQUAL);
747
+ };
748
+ AbstractEngine.prototype.setDepthFunctionToLess = function () {
749
+ this.setDepthFunction(Constants.LESS);
750
+ };
751
+ AbstractEngine.prototype.setDepthFunctionToLessOrEqual = function () {
752
+ this.setDepthFunction(Constants.LEQUAL);
753
+ };
754
+ AbstractEngine.prototype.getDepthWrite = function () {
755
+ return this._depthCullingState.depthMask;
756
+ };
757
+ AbstractEngine.prototype.setDepthWrite = function (enable) {
758
+ this._depthCullingState.depthMask = enable;
759
+ };
760
+ AbstractEngine.prototype.getStencilBuffer = function () {
761
+ return this._stencilState.stencilTest;
762
+ };
763
+ AbstractEngine.prototype.setStencilBuffer = function (enable) {
764
+ this._stencilState.stencilTest = enable;
765
+ };
766
+ AbstractEngine.prototype.getStencilMask = function () {
767
+ return this._stencilState.stencilMask;
768
+ };
769
+ AbstractEngine.prototype.setStencilMask = function (mask) {
770
+ this._stencilState.stencilMask = mask;
771
+ };
772
+ AbstractEngine.prototype.getStencilFunction = function () {
773
+ return this._stencilState.stencilFunc;
774
+ };
775
+ AbstractEngine.prototype.getStencilFunctionReference = function () {
776
+ return this._stencilState.stencilFuncRef;
777
+ };
778
+ AbstractEngine.prototype.getStencilFunctionMask = function () {
779
+ return this._stencilState.stencilFuncMask;
780
+ };
781
+ AbstractEngine.prototype.setStencilFunction = function (stencilFunc) {
782
+ this._stencilState.stencilFunc = stencilFunc;
783
+ };
784
+ AbstractEngine.prototype.setStencilFunctionReference = function (reference) {
785
+ this._stencilState.stencilFuncRef = reference;
786
+ };
787
+ AbstractEngine.prototype.setStencilFunctionMask = function (mask) {
788
+ this._stencilState.stencilFuncMask = mask;
789
+ };
790
+ AbstractEngine.prototype.getStencilOperationFail = function () {
791
+ return this._stencilState.stencilOpStencilFail;
792
+ };
793
+ AbstractEngine.prototype.getStencilOperationDepthFail = function () {
794
+ return this._stencilState.stencilOpDepthFail;
795
+ };
796
+ AbstractEngine.prototype.getStencilOperationPass = function () {
797
+ return this._stencilState.stencilOpStencilDepthPass;
798
+ };
799
+ AbstractEngine.prototype.setStencilOperationFail = function (operation) {
800
+ this._stencilState.stencilOpStencilFail = operation;
801
+ };
802
+ AbstractEngine.prototype.setStencilOperationDepthFail = function (operation) {
803
+ this._stencilState.stencilOpDepthFail = operation;
804
+ };
805
+ AbstractEngine.prototype.setStencilOperationPass = function (operation) {
806
+ this._stencilState.stencilOpStencilDepthPass = operation;
807
+ };
808
+ AbstractEngine.prototype.cacheStencilState = function () {
809
+ this._cachedStencilBuffer = this.getStencilBuffer();
810
+ this._cachedStencilFunction = this.getStencilFunction();
811
+ this._cachedStencilMask = this.getStencilMask();
812
+ this._cachedStencilOperationPass = this.getStencilOperationPass();
813
+ this._cachedStencilOperationFail = this.getStencilOperationFail();
814
+ this._cachedStencilOperationDepthFail = this.getStencilOperationDepthFail();
815
+ this._cachedStencilReference = this.getStencilFunctionReference();
816
+ };
817
+ AbstractEngine.prototype.restoreStencilState = function () {
818
+ this.setStencilFunction(this._cachedStencilFunction);
819
+ this.setStencilMask(this._cachedStencilMask);
820
+ this.setStencilBuffer(this._cachedStencilBuffer);
821
+ this.setStencilOperationPass(this._cachedStencilOperationPass);
822
+ this.setStencilOperationFail(this._cachedStencilOperationFail);
823
+ this.setStencilOperationDepthFail(this._cachedStencilOperationDepthFail);
824
+ this.setStencilFunctionReference(this._cachedStencilReference);
825
+ };
826
+ AbstractEngine.prototype.setAlphaConstants = function (r, g, b, a) {
827
+ this._alphaState.setAlphaBlendConstants(r, g, b, a);
828
+ };
829
+ AbstractEngine.prototype.getAlphaMode = function () {
830
+ return this._alphaMode;
831
+ };
832
+ AbstractEngine.prototype.getAlphaEquation = function () {
833
+ return this._alphaEquation;
834
+ };
835
+
836
+ AbstractEngine.prototype.getRenderPassNames = function () {
837
+ return this._renderPassNames;
838
+ };
839
+ AbstractEngine.prototype.getCurrentRenderPassName = function () {
840
+ return this._renderPassNames[this.currentRenderPassId];
841
+ };
842
+ AbstractEngine.prototype.createRenderPassId = function (name) {
843
+ // Note: render pass id == 0 is always for the main render pass
844
+ const id = ++AbstractEngine._RenderPassIdCounter;
845
+ this._renderPassNames[id] = name ?? "NONAME";
846
+ return id;
847
+ };
848
+ AbstractEngine.prototype.releaseRenderPassId = function (id) {
849
+ this._renderPassNames[id] = undefined;
850
+ for (let s = 0; s < this.scenes.length; ++s) {
851
+ const scene = this.scenes[s];
852
+ for (let m = 0; m < scene.meshes.length; ++m) {
853
+ const mesh = scene.meshes[m];
854
+ if (mesh.subMeshes) {
855
+ for (let b = 0; b < mesh.subMeshes.length; ++b) {
856
+ const subMesh = mesh.subMeshes[b];
857
+ subMesh._removeDrawWrapper(id);
858
+ }
859
+ }
860
+ }
861
+ }
862
+ };
863
+
864
+ /** @internal */
865
+ function _DisableTouchAction(canvas) {
866
+ if (!canvas || !canvas.setAttribute) {
867
+ return;
868
+ }
869
+ canvas.setAttribute("touch-action", "none");
870
+ canvas.style.touchAction = "none";
871
+ canvas.style.webkitTapHighlightColor = "transparent";
872
+ }
873
+ /** @internal */
874
+ function _CommonInit(commonEngine, canvas, creationOptions) {
875
+ commonEngine._onCanvasFocus = () => {
876
+ commonEngine.onCanvasFocusObservable.notifyObservers(commonEngine);
877
+ };
878
+ commonEngine._onCanvasBlur = () => {
879
+ commonEngine.onCanvasBlurObservable.notifyObservers(commonEngine);
880
+ };
881
+ commonEngine._onCanvasContextMenu = (evt) => {
882
+ if (commonEngine.disableContextMenu) {
883
+ evt.preventDefault();
884
+ }
885
+ };
886
+ canvas.addEventListener("focus", commonEngine._onCanvasFocus);
887
+ canvas.addEventListener("blur", commonEngine._onCanvasBlur);
888
+ canvas.addEventListener("contextmenu", commonEngine._onCanvasContextMenu);
889
+ commonEngine._onBlur = () => {
890
+ if (commonEngine.disablePerformanceMonitorInBackground) {
891
+ commonEngine.performanceMonitor.disable();
892
+ }
893
+ commonEngine._windowIsBackground = true;
894
+ };
895
+ commonEngine._onFocus = () => {
896
+ if (commonEngine.disablePerformanceMonitorInBackground) {
897
+ commonEngine.performanceMonitor.enable();
898
+ }
899
+ commonEngine._windowIsBackground = false;
900
+ };
901
+ commonEngine._onCanvasPointerOut = (ev) => {
902
+ // Check that the element at the point of the pointer out isn't the canvas and if it isn't, notify observers
903
+ // Note: This is a workaround for a bug with Safari
904
+ if (document.elementFromPoint(ev.clientX, ev.clientY) !== canvas) {
905
+ commonEngine.onCanvasPointerOutObservable.notifyObservers(ev);
906
+ }
907
+ };
908
+ const hostWindow = commonEngine.getHostWindow(); // it calls IsWindowObjectExist()
909
+ if (hostWindow && typeof hostWindow.addEventListener === "function") {
910
+ hostWindow.addEventListener("blur", commonEngine._onBlur);
911
+ hostWindow.addEventListener("focus", commonEngine._onFocus);
912
+ }
913
+ canvas.addEventListener("pointerout", commonEngine._onCanvasPointerOut);
914
+ if (!creationOptions.doNotHandleTouchAction) {
915
+ _DisableTouchAction(canvas);
916
+ }
917
+ // Create Audio Engine if needed.
918
+ if (!AbstractEngine.audioEngine && creationOptions.audioEngine && AbstractEngine.AudioEngineFactory) {
919
+ AbstractEngine.audioEngine = AbstractEngine.AudioEngineFactory(commonEngine.getRenderingCanvas(), commonEngine.getAudioContext(), commonEngine.getAudioDestination());
920
+ }
921
+ if (IsDocumentAvailable()) {
922
+ // Fullscreen
923
+ commonEngine._onFullscreenChange = () => {
924
+ commonEngine.isFullscreen = !!document.fullscreenElement;
925
+ // Pointer lock
926
+ if (commonEngine.isFullscreen && commonEngine._pointerLockRequested && canvas) {
927
+ RequestPointerlock(canvas);
928
+ }
929
+ };
930
+ document.addEventListener("fullscreenchange", commonEngine._onFullscreenChange, false);
931
+ document.addEventListener("webkitfullscreenchange", commonEngine._onFullscreenChange, false);
932
+ // Pointer lock
933
+ commonEngine._onPointerLockChange = () => {
934
+ commonEngine.isPointerLock = document.pointerLockElement === canvas;
935
+ };
936
+ document.addEventListener("pointerlockchange", commonEngine._onPointerLockChange, false);
937
+ document.addEventListener("webkitpointerlockchange", commonEngine._onPointerLockChange, false);
938
+ }
939
+ commonEngine.enableOfflineSupport = AbstractEngine.OfflineProviderFactory !== undefined;
940
+ commonEngine._deterministicLockstep = !!creationOptions.deterministicLockstep;
941
+ commonEngine._lockstepMaxSteps = creationOptions.lockstepMaxSteps || 0;
942
+ commonEngine._timeStep = creationOptions.timeStep || 1 / 60;
943
+ }
944
+ /** @internal */
945
+ function _CommonDispose(commonEngine, canvas) {
946
+ // Release audio engine
947
+ if (EngineStore.Instances.length === 1 && AbstractEngine.audioEngine) {
948
+ AbstractEngine.audioEngine.dispose();
949
+ AbstractEngine.audioEngine = null;
950
+ }
951
+ // Events
952
+ const hostWindow = commonEngine.getHostWindow(); // it calls IsWindowObjectExist()
953
+ if (hostWindow && typeof hostWindow.removeEventListener === "function") {
954
+ hostWindow.removeEventListener("blur", commonEngine._onBlur);
955
+ hostWindow.removeEventListener("focus", commonEngine._onFocus);
956
+ }
957
+ if (canvas) {
958
+ canvas.removeEventListener("focus", commonEngine._onCanvasFocus);
959
+ canvas.removeEventListener("blur", commonEngine._onCanvasBlur);
960
+ canvas.removeEventListener("pointerout", commonEngine._onCanvasPointerOut);
961
+ canvas.removeEventListener("contextmenu", commonEngine._onCanvasContextMenu);
962
+ }
963
+ if (IsDocumentAvailable()) {
964
+ document.removeEventListener("fullscreenchange", commonEngine._onFullscreenChange);
965
+ document.removeEventListener("mozfullscreenchange", commonEngine._onFullscreenChange);
966
+ document.removeEventListener("webkitfullscreenchange", commonEngine._onFullscreenChange);
967
+ document.removeEventListener("msfullscreenchange", commonEngine._onFullscreenChange);
968
+ document.removeEventListener("pointerlockchange", commonEngine._onPointerLockChange);
969
+ document.removeEventListener("mspointerlockchange", commonEngine._onPointerLockChange);
970
+ document.removeEventListener("mozpointerlockchange", commonEngine._onPointerLockChange);
971
+ document.removeEventListener("webkitpointerlockchange", commonEngine._onPointerLockChange);
972
+ }
973
+ }
974
+ /**
975
+ * Get Font size information
976
+ * @param font font name
977
+ * @returns an object containing ascent, height and descent
978
+ */
979
+ function GetFontOffset(font) {
980
+ const text = document.createElement("span");
981
+ text.textContent = "Hg";
982
+ text.style.font = font;
983
+ const block = document.createElement("div");
984
+ block.style.display = "inline-block";
985
+ block.style.width = "1px";
986
+ block.style.height = "0px";
987
+ block.style.verticalAlign = "bottom";
988
+ const div = document.createElement("div");
989
+ div.style.whiteSpace = "nowrap";
990
+ div.appendChild(text);
991
+ div.appendChild(block);
992
+ document.body.appendChild(div);
993
+ let fontAscent = 0;
994
+ let fontHeight = 0;
995
+ try {
996
+ fontHeight = block.getBoundingClientRect().top - text.getBoundingClientRect().top;
997
+ block.style.verticalAlign = "baseline";
998
+ fontAscent = block.getBoundingClientRect().top - text.getBoundingClientRect().top;
999
+ }
1000
+ finally {
1001
+ document.body.removeChild(div);
1002
+ }
1003
+ return { ascent: fontAscent, height: fontHeight, descent: fontHeight - fontAscent };
1004
+ }
1005
+ /** @internal */
1006
+ function CreateImageBitmapFromSource(engine, imageSource, options) {
1007
+ const promise = new Promise((resolve, reject) => {
1008
+ const image = new Image();
1009
+ image.onload = () => {
1010
+ image.decode().then(() => {
1011
+ engine.createImageBitmap(image, options).then((imageBitmap) => {
1012
+ resolve(imageBitmap);
1013
+ });
1014
+ });
1015
+ };
1016
+ image.onerror = () => {
1017
+ reject(`Error loading image ${image.src}`);
1018
+ };
1019
+ image.src = imageSource;
1020
+ });
1021
+ return promise;
1022
+ }
1023
+ /** @internal */
1024
+ function ResizeImageBitmap(engine, image, bufferWidth, bufferHeight) {
1025
+ const canvas = engine.createCanvas(bufferWidth, bufferHeight);
1026
+ const context = canvas.getContext("2d");
1027
+ if (!context) {
1028
+ throw new Error("Unable to get 2d context for resizeImageBitmap");
1029
+ }
1030
+ context.drawImage(image, 0, 0);
1031
+ // Create VertexData from map data
1032
+ // Cast is due to wrong definition in lib.d.ts from ts 1.3 - https://github.com/Microsoft/TypeScript/issues/949
1033
+ const buffer = context.getImageData(0, 0, bufferWidth, bufferHeight).data;
1034
+ return buffer;
1035
+ }
1036
+ /**
1037
+ * Ask the browser to promote the current element to fullscreen rendering mode
1038
+ * @param element defines the DOM element to promote
1039
+ */
1040
+ function RequestFullscreen(element) {
1041
+ const requestFunction = element.requestFullscreen || element.webkitRequestFullscreen;
1042
+ if (!requestFunction) {
1043
+ return;
1044
+ }
1045
+ requestFunction.call(element);
1046
+ }
1047
+ /**
1048
+ * Asks the browser to exit fullscreen mode
1049
+ */
1050
+ function ExitFullscreen() {
1051
+ const anyDoc = document;
1052
+ if (document.exitFullscreen) {
1053
+ document.exitFullscreen();
1054
+ }
1055
+ else if (anyDoc.webkitCancelFullScreen) {
1056
+ anyDoc.webkitCancelFullScreen();
1057
+ }
1058
+ }
1059
+ /**
1060
+ * Ask the browser to promote the current element to pointerlock mode
1061
+ * @param element defines the DOM element to promote
1062
+ */
1063
+ function RequestPointerlock(element) {
1064
+ if (element.requestPointerLock) {
1065
+ // In some browsers, requestPointerLock returns a promise.
1066
+ // Handle possible rejections to avoid an unhandled top-level exception.
1067
+ const promise = element.requestPointerLock();
1068
+ if (promise instanceof Promise)
1069
+ promise
1070
+ .then(() => {
1071
+ element.focus();
1072
+ })
1073
+ .catch(() => { });
1074
+ else
1075
+ element.focus();
1076
+ }
1077
+ }
1078
+ /**
1079
+ * Asks the browser to exit pointerlock mode
1080
+ */
1081
+ function ExitPointerlock() {
1082
+ if (document.exitPointerLock) {
1083
+ document.exitPointerLock();
1084
+ }
1085
+ }
1086
+
1087
+ export { CreateImageBitmapFromSource as C, ExitFullscreen as E, GetFontOffset as G, PerformanceMonitor as P, RenderTargetWrapper as R, _CommonInit as _, ResizeImageBitmap as a, RequestFullscreen as b, RequestPointerlock as c, ExitPointerlock as d, _CommonDispose as e };
1088
+ //# sourceMappingURL=engine.common-B6M8bu3t.esm.js.map