@babylonjs/viewer 7.31.2 → 7.32.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 (591) 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-CDopGRNr.esm.js +172 -0
  7. package/dist/chunks/EXT_lights_image_based-CDopGRNr.esm.js.map +1 -0
  8. package/dist/chunks/EXT_lights_image_based-q6T-_Bzb.esm.min.js +2 -0
  9. package/dist/chunks/EXT_lights_image_based-q6T-_Bzb.esm.min.js.map +1 -0
  10. package/dist/chunks/EXT_mesh_gpu_instancing-10uWuD3F.esm.js +86 -0
  11. package/dist/chunks/EXT_mesh_gpu_instancing-10uWuD3F.esm.js.map +1 -0
  12. package/dist/chunks/EXT_mesh_gpu_instancing-DYjQQLLn.esm.min.js +2 -0
  13. package/dist/chunks/EXT_mesh_gpu_instancing-DYjQQLLn.esm.min.js.map +1 -0
  14. package/dist/chunks/EXT_meshopt_compression-BWq30g0F.esm.min.js +2 -0
  15. package/dist/chunks/EXT_meshopt_compression-BWq30g0F.esm.min.js.map +1 -0
  16. package/dist/chunks/EXT_meshopt_compression-C9Pirnos.esm.js +134 -0
  17. package/dist/chunks/EXT_meshopt_compression-C9Pirnos.esm.js.map +1 -0
  18. package/dist/chunks/EXT_texture_avif-B_VIN8aI.esm.js +44 -0
  19. package/dist/chunks/EXT_texture_avif-B_VIN8aI.esm.js.map +1 -0
  20. package/dist/chunks/EXT_texture_avif-DnUv1Yeh.esm.min.js +2 -0
  21. package/dist/chunks/EXT_texture_avif-DnUv1Yeh.esm.min.js.map +1 -0
  22. package/dist/chunks/EXT_texture_webp-BfHGQCWW.esm.min.js +2 -0
  23. package/dist/chunks/EXT_texture_webp-BfHGQCWW.esm.min.js.map +1 -0
  24. package/dist/chunks/EXT_texture_webp-W95hOYWT.esm.js +43 -0
  25. package/dist/chunks/EXT_texture_webp-W95hOYWT.esm.js.map +1 -0
  26. package/dist/chunks/ExtrasAsMetadata-DdYJIDzV.esm.min.js +2 -0
  27. package/dist/chunks/ExtrasAsMetadata-DdYJIDzV.esm.min.js.map +1 -0
  28. package/dist/chunks/ExtrasAsMetadata-rW8UpjG2.esm.js +64 -0
  29. package/dist/chunks/ExtrasAsMetadata-rW8UpjG2.esm.js.map +1 -0
  30. package/dist/chunks/KHR_animation_pointer-CdYR0UR8.esm.min.js +2 -0
  31. package/dist/chunks/KHR_animation_pointer-CdYR0UR8.esm.min.js.map +1 -0
  32. package/dist/chunks/KHR_animation_pointer-Rjt-qxNx.esm.js +343 -0
  33. package/dist/chunks/KHR_animation_pointer-Rjt-qxNx.esm.js.map +1 -0
  34. package/dist/chunks/KHR_draco_mesh_compression-CgfdTbAZ.esm.js +610 -0
  35. package/dist/chunks/KHR_draco_mesh_compression-CgfdTbAZ.esm.js.map +1 -0
  36. package/dist/chunks/KHR_draco_mesh_compression-GLtSClFV.esm.min.js +2 -0
  37. package/dist/chunks/KHR_draco_mesh_compression-GLtSClFV.esm.min.js.map +1 -0
  38. package/dist/chunks/KHR_interactivity-B3x99lbk.esm.js +4033 -0
  39. package/dist/chunks/KHR_interactivity-B3x99lbk.esm.js.map +1 -0
  40. package/dist/chunks/KHR_interactivity-CqCzhaxw.esm.min.js +2 -0
  41. package/dist/chunks/KHR_interactivity-CqCzhaxw.esm.min.js.map +1 -0
  42. package/dist/chunks/KHR_lights_punctual-Cw8eS1cT.esm.min.js +2 -0
  43. package/dist/chunks/KHR_lights_punctual-Cw8eS1cT.esm.min.js.map +1 -0
  44. package/dist/chunks/KHR_lights_punctual-Z4Ra1ySe.esm.js +1253 -0
  45. package/dist/chunks/KHR_lights_punctual-Z4Ra1ySe.esm.js.map +1 -0
  46. package/dist/chunks/KHR_materials_anisotropy-JxcuM51j.esm.min.js +2 -0
  47. package/dist/chunks/KHR_materials_anisotropy-JxcuM51j.esm.min.js.map +1 -0
  48. package/dist/chunks/KHR_materials_anisotropy-fh1xB3sv.esm.js +64 -0
  49. package/dist/chunks/KHR_materials_anisotropy-fh1xB3sv.esm.js.map +1 -0
  50. package/dist/chunks/KHR_materials_clearcoat--YTVVqgN.esm.min.js +2 -0
  51. package/dist/chunks/KHR_materials_clearcoat--YTVVqgN.esm.min.js.map +1 -0
  52. package/dist/chunks/KHR_materials_clearcoat-CVcIeWHz.esm.js +96 -0
  53. package/dist/chunks/KHR_materials_clearcoat-CVcIeWHz.esm.js.map +1 -0
  54. package/dist/chunks/KHR_materials_diffuse_transmission-B4lZ6eXv.esm.min.js +2 -0
  55. package/dist/chunks/KHR_materials_diffuse_transmission-B4lZ6eXv.esm.min.js.map +1 -0
  56. package/dist/chunks/KHR_materials_diffuse_transmission-Cp0pY39g.esm.js +97 -0
  57. package/dist/chunks/KHR_materials_diffuse_transmission-Cp0pY39g.esm.js.map +1 -0
  58. package/dist/chunks/KHR_materials_dispersion-D83Zshe2.esm.min.js +2 -0
  59. package/dist/chunks/KHR_materials_dispersion-D83Zshe2.esm.min.js.map +1 -0
  60. package/dist/chunks/KHR_materials_dispersion-DKb_rJPB.esm.js +62 -0
  61. package/dist/chunks/KHR_materials_dispersion-DKb_rJPB.esm.js.map +1 -0
  62. package/dist/chunks/KHR_materials_emissive_strength-B90KzwZK.esm.js +55 -0
  63. package/dist/chunks/KHR_materials_emissive_strength-B90KzwZK.esm.js.map +1 -0
  64. package/dist/chunks/KHR_materials_emissive_strength-ChrdSlDZ.esm.min.js +2 -0
  65. package/dist/chunks/KHR_materials_emissive_strength-ChrdSlDZ.esm.min.js.map +1 -0
  66. package/dist/chunks/KHR_materials_ior-B6pGKd5o.esm.min.js +2 -0
  67. package/dist/chunks/KHR_materials_ior-B6pGKd5o.esm.min.js.map +1 -0
  68. package/dist/chunks/KHR_materials_ior-DXcjYqRC.esm.js +64 -0
  69. package/dist/chunks/KHR_materials_ior-DXcjYqRC.esm.js.map +1 -0
  70. package/dist/chunks/KHR_materials_iridescence-B3fVF-v7.esm.js +72 -0
  71. package/dist/chunks/KHR_materials_iridescence-B3fVF-v7.esm.js.map +1 -0
  72. package/dist/chunks/KHR_materials_iridescence-BF6OjNmL.esm.min.js +2 -0
  73. package/dist/chunks/KHR_materials_iridescence-BF6OjNmL.esm.min.js.map +1 -0
  74. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BqmQgk3T.esm.min.js +2 -0
  75. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BqmQgk3T.esm.min.js.map +1 -0
  76. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CF43gdID.esm.js +81 -0
  77. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CF43gdID.esm.js.map +1 -0
  78. package/dist/chunks/KHR_materials_sheen-Cv4YXp2h.esm.js +85 -0
  79. package/dist/chunks/KHR_materials_sheen-Cv4YXp2h.esm.js.map +1 -0
  80. package/dist/chunks/KHR_materials_sheen-DKjF9cYP.esm.min.js +2 -0
  81. package/dist/chunks/KHR_materials_sheen-DKjF9cYP.esm.min.js.map +1 -0
  82. package/dist/chunks/KHR_materials_specular-Bs8qBw8B.esm.min.js +2 -0
  83. package/dist/chunks/KHR_materials_specular-Bs8qBw8B.esm.min.js.map +1 -0
  84. package/dist/chunks/KHR_materials_specular-C4woZX0C.esm.js +75 -0
  85. package/dist/chunks/KHR_materials_specular-C4woZX0C.esm.js.map +1 -0
  86. package/dist/chunks/KHR_materials_transmission-CbyDxIWi.esm.js +307 -0
  87. package/dist/chunks/KHR_materials_transmission-CbyDxIWi.esm.js.map +1 -0
  88. package/dist/chunks/KHR_materials_transmission-tRNpUyUy.esm.min.js +2 -0
  89. package/dist/chunks/KHR_materials_transmission-tRNpUyUy.esm.min.js.map +1 -0
  90. package/dist/chunks/KHR_materials_unlit-CGnKApAV.esm.min.js +2 -0
  91. package/dist/chunks/KHR_materials_unlit-CGnKApAV.esm.min.js.map +1 -0
  92. package/dist/chunks/KHR_materials_unlit-CxN-bSND.esm.js +74 -0
  93. package/dist/chunks/KHR_materials_unlit-CxN-bSND.esm.js.map +1 -0
  94. package/dist/chunks/KHR_materials_variants-BME7nYSv.esm.min.js +2 -0
  95. package/dist/chunks/KHR_materials_variants-BME7nYSv.esm.min.js.map +1 -0
  96. package/dist/chunks/KHR_materials_variants-BW1vPabI.esm.js +238 -0
  97. package/dist/chunks/KHR_materials_variants-BW1vPabI.esm.js.map +1 -0
  98. package/dist/chunks/KHR_materials_volume-COv8iXf0.esm.js +87 -0
  99. package/dist/chunks/KHR_materials_volume-COv8iXf0.esm.js.map +1 -0
  100. package/dist/chunks/KHR_materials_volume-CotjfS2V.esm.min.js +2 -0
  101. package/dist/chunks/KHR_materials_volume-CotjfS2V.esm.min.js.map +1 -0
  102. package/dist/chunks/KHR_mesh_quantization-BaZjJqHC.esm.min.js +2 -0
  103. package/dist/chunks/KHR_mesh_quantization-BaZjJqHC.esm.min.js.map +1 -0
  104. package/dist/chunks/KHR_mesh_quantization-DeUMSpxL.esm.js +26 -0
  105. package/dist/chunks/KHR_mesh_quantization-DeUMSpxL.esm.js.map +1 -0
  106. package/dist/chunks/KHR_node_visibility-8O8rEQwE.esm.min.js +2 -0
  107. package/dist/chunks/KHR_node_visibility-8O8rEQwE.esm.min.js.map +1 -0
  108. package/dist/chunks/KHR_node_visibility-pPBUIope.esm.js +46 -0
  109. package/dist/chunks/KHR_node_visibility-pPBUIope.esm.js.map +1 -0
  110. package/dist/chunks/KHR_texture_basisu-4WE8JG7H.esm.js +43 -0
  111. package/dist/chunks/KHR_texture_basisu-4WE8JG7H.esm.js.map +1 -0
  112. package/dist/chunks/KHR_texture_basisu-BDZRyupb.esm.min.js +2 -0
  113. package/dist/chunks/KHR_texture_basisu-BDZRyupb.esm.min.js.map +1 -0
  114. package/dist/chunks/KHR_texture_transform-BvTLyT1G.esm.min.js +2 -0
  115. package/dist/chunks/KHR_texture_transform-BvTLyT1G.esm.min.js.map +1 -0
  116. package/dist/chunks/KHR_texture_transform-D4XIqDOo.esm.js +63 -0
  117. package/dist/chunks/KHR_texture_transform-D4XIqDOo.esm.js.map +1 -0
  118. package/dist/chunks/KHR_xmp_json_ld-DRqeO20E.esm.js +51 -0
  119. package/dist/chunks/KHR_xmp_json_ld-DRqeO20E.esm.js.map +1 -0
  120. package/dist/chunks/KHR_xmp_json_ld-c5IzV8KB.esm.min.js +2 -0
  121. package/dist/chunks/KHR_xmp_json_ld-c5IzV8KB.esm.min.js.map +1 -0
  122. package/dist/chunks/MSFT_audio_emitter-C1G0NVBi.esm.min.js +2 -0
  123. package/dist/chunks/MSFT_audio_emitter-C1G0NVBi.esm.min.js.map +1 -0
  124. package/dist/chunks/MSFT_audio_emitter-s22h5nnb.esm.js +2207 -0
  125. package/dist/chunks/MSFT_audio_emitter-s22h5nnb.esm.js.map +1 -0
  126. package/dist/chunks/MSFT_lod-BLdDEY59.esm.min.js +2 -0
  127. package/dist/chunks/MSFT_lod-BLdDEY59.esm.min.js.map +1 -0
  128. package/dist/chunks/MSFT_lod-Dmw1DZHV.esm.js +337 -0
  129. package/dist/chunks/MSFT_lod-Dmw1DZHV.esm.js.map +1 -0
  130. package/dist/chunks/MSFT_minecraftMesh-DUv_spbD.esm.js +46 -0
  131. package/dist/chunks/MSFT_minecraftMesh-DUv_spbD.esm.js.map +1 -0
  132. package/dist/chunks/MSFT_minecraftMesh-DhArgem1.esm.min.js +2 -0
  133. package/dist/chunks/MSFT_minecraftMesh-DhArgem1.esm.min.js.map +1 -0
  134. package/dist/chunks/MSFT_sRGBFactors-CsaqkUZp.esm.min.js +2 -0
  135. package/dist/chunks/MSFT_sRGBFactors-CsaqkUZp.esm.min.js.map +1 -0
  136. package/dist/chunks/MSFT_sRGBFactors-Dp_3aVaC.esm.js +47 -0
  137. package/dist/chunks/MSFT_sRGBFactors-Dp_3aVaC.esm.js.map +1 -0
  138. package/dist/chunks/animationGroup-CKmlw-i3.esm.js +2479 -0
  139. package/dist/chunks/animationGroup-CKmlw-i3.esm.js.map +1 -0
  140. package/dist/chunks/animationGroup-GtqAzbzf.esm.min.js +2 -0
  141. package/dist/chunks/animationGroup-GtqAzbzf.esm.min.js.map +1 -0
  142. package/dist/chunks/assetContainer-Ceo5x8Zm.esm.min.js +2 -0
  143. package/dist/chunks/assetContainer-Ceo5x8Zm.esm.min.js.map +1 -0
  144. package/dist/chunks/assetContainer-CnQIJTFR.esm.js +1720 -0
  145. package/dist/chunks/assetContainer-CnQIJTFR.esm.js.map +1 -0
  146. package/dist/chunks/audioEngine-BfaiGNib.esm.min.js +2 -0
  147. package/dist/chunks/audioEngine-BfaiGNib.esm.min.js.map +1 -0
  148. package/dist/chunks/audioEngine-C2mnEIi2.esm.js +305 -0
  149. package/dist/chunks/audioEngine-C2mnEIi2.esm.js.map +1 -0
  150. package/dist/chunks/bakedVertexAnimation-CNy3hYSH.esm.min.js +2 -0
  151. package/dist/chunks/bakedVertexAnimation-CNy3hYSH.esm.min.js.map +1 -0
  152. package/dist/chunks/bakedVertexAnimation-D7t2W3J_.esm.js +119 -0
  153. package/dist/chunks/bakedVertexAnimation-D7t2W3J_.esm.js.map +1 -0
  154. package/dist/chunks/basisTextureLoader-D0860s4J.esm.js +600 -0
  155. package/dist/chunks/basisTextureLoader-D0860s4J.esm.js.map +1 -0
  156. package/dist/chunks/basisTextureLoader-eVbIiHhB.esm.min.js +2 -0
  157. package/dist/chunks/basisTextureLoader-eVbIiHhB.esm.min.js.map +1 -0
  158. package/dist/chunks/dds-GqGCHvoi.esm.js +540 -0
  159. package/dist/chunks/dds-GqGCHvoi.esm.js.map +1 -0
  160. package/dist/chunks/dds-jRpu0xF8.esm.min.js +2 -0
  161. package/dist/chunks/dds-jRpu0xF8.esm.min.js.map +1 -0
  162. package/dist/chunks/ddsTextureLoader-8xoDxlKd.esm.js +88 -0
  163. package/dist/chunks/ddsTextureLoader-8xoDxlKd.esm.js.map +1 -0
  164. package/dist/chunks/ddsTextureLoader-BtmKjW90.esm.min.js +2 -0
  165. package/dist/chunks/ddsTextureLoader-BtmKjW90.esm.min.js.map +1 -0
  166. package/dist/chunks/decalFragment-CKG6d1V6.esm.js +18 -0
  167. package/dist/chunks/decalFragment-CKG6d1V6.esm.js.map +1 -0
  168. package/dist/chunks/decalFragment-mwIkJe-e.esm.min.js +2 -0
  169. package/dist/chunks/decalFragment-mwIkJe-e.esm.min.js.map +1 -0
  170. package/dist/chunks/default.fragment-BqGwAuOf.esm.min.js +2 -0
  171. package/dist/chunks/default.fragment-BqGwAuOf.esm.min.js.map +1 -0
  172. package/dist/chunks/default.fragment-CG8FD0Rg.esm.js +442 -0
  173. package/dist/chunks/default.fragment-CG8FD0Rg.esm.js.map +1 -0
  174. package/dist/chunks/default.fragment-CIjKpM8B.esm.js +505 -0
  175. package/dist/chunks/default.fragment-CIjKpM8B.esm.js.map +1 -0
  176. package/dist/chunks/default.fragment-Wkjs5I_z.esm.min.js +2 -0
  177. package/dist/chunks/default.fragment-Wkjs5I_z.esm.min.js.map +1 -0
  178. package/dist/chunks/default.vertex-BnxzDBHh.esm.min.js +2 -0
  179. package/dist/chunks/default.vertex-BnxzDBHh.esm.min.js.map +1 -0
  180. package/dist/chunks/default.vertex-CFvMS6M-.esm.js +180 -0
  181. package/dist/chunks/default.vertex-CFvMS6M-.esm.js.map +1 -0
  182. package/dist/chunks/default.vertex-CPShXhLK.esm.js +203 -0
  183. package/dist/chunks/default.vertex-CPShXhLK.esm.js.map +1 -0
  184. package/dist/chunks/default.vertex-DgkFfqnH.esm.min.js +2 -0
  185. package/dist/chunks/default.vertex-DgkFfqnH.esm.min.js.map +1 -0
  186. package/dist/chunks/defaultUboDeclaration-CTbodOuG.esm.js +15 -0
  187. package/dist/chunks/defaultUboDeclaration-CTbodOuG.esm.js.map +1 -0
  188. package/dist/chunks/defaultUboDeclaration-CapKtoOS.esm.min.js +2 -0
  189. package/dist/chunks/defaultUboDeclaration-CapKtoOS.esm.min.js.map +1 -0
  190. package/dist/chunks/defaultUboDeclaration-DiewFDDA.esm.js +13 -0
  191. package/dist/chunks/defaultUboDeclaration-DiewFDDA.esm.js.map +1 -0
  192. package/dist/chunks/defaultUboDeclaration-LO4MmAkR.esm.min.js +2 -0
  193. package/dist/chunks/defaultUboDeclaration-LO4MmAkR.esm.min.js.map +1 -0
  194. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
  195. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
  196. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
  197. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
  198. package/dist/chunks/dumpTools-CxvwLo3g.esm.js +402 -0
  199. package/dist/chunks/dumpTools-CxvwLo3g.esm.js.map +1 -0
  200. package/dist/chunks/dumpTools-CyP5ZvdK.esm.min.js +2 -0
  201. package/dist/chunks/dumpTools-CyP5ZvdK.esm.min.js.map +1 -0
  202. package/dist/chunks/engine-BLNZ3dRh.esm.min.js +2 -0
  203. package/dist/chunks/engine-BLNZ3dRh.esm.min.js.map +1 -0
  204. package/dist/chunks/engine-C--U48ZP.esm.js +2174 -0
  205. package/dist/chunks/engine-C--U48ZP.esm.js.map +1 -0
  206. package/dist/chunks/engine.common-C7o_vXeC.esm.js +1088 -0
  207. package/dist/chunks/engine.common-C7o_vXeC.esm.js.map +1 -0
  208. package/dist/chunks/engine.common-GQ3pGGhr.esm.min.js +2 -0
  209. package/dist/chunks/engine.common-GQ3pGGhr.esm.min.js.map +1 -0
  210. package/dist/chunks/envTextureLoader-CbaapMaV.esm.min.js +2 -0
  211. package/dist/chunks/envTextureLoader-CbaapMaV.esm.min.js.map +1 -0
  212. package/dist/chunks/envTextureLoader-D5elTxHm.esm.js +65 -0
  213. package/dist/chunks/envTextureLoader-D5elTxHm.esm.js.map +1 -0
  214. package/dist/chunks/environmentTextureTools-BUKZeUbj.esm.js +382 -0
  215. package/dist/chunks/environmentTextureTools-BUKZeUbj.esm.js.map +1 -0
  216. package/dist/chunks/environmentTextureTools-BvKXwdIb.esm.min.js +2 -0
  217. package/dist/chunks/environmentTextureTools-BvKXwdIb.esm.min.js.map +1 -0
  218. package/dist/chunks/exrTextureLoader-Bp1aHXqU.esm.min.js +2 -0
  219. package/dist/chunks/exrTextureLoader-Bp1aHXqU.esm.min.js.map +1 -0
  220. package/dist/chunks/exrTextureLoader-DUnQtW_O.esm.js +1682 -0
  221. package/dist/chunks/exrTextureLoader-DUnQtW_O.esm.js.map +1 -0
  222. package/dist/chunks/fogFragment-845krJwJ.esm.js +102 -0
  223. package/dist/chunks/fogFragment-845krJwJ.esm.js.map +1 -0
  224. package/dist/chunks/fogFragment-CM_Qcdd6.esm.min.js +2 -0
  225. package/dist/chunks/fogFragment-CM_Qcdd6.esm.min.js.map +1 -0
  226. package/dist/chunks/fresnelFunction-Dc0mVMWo.esm.js +12 -0
  227. package/dist/chunks/fresnelFunction-Dc0mVMWo.esm.js.map +1 -0
  228. package/dist/chunks/fresnelFunction-DkAIFWI8.esm.min.js +2 -0
  229. package/dist/chunks/fresnelFunction-DkAIFWI8.esm.min.js.map +1 -0
  230. package/dist/chunks/glTFLoader-CV4gaEkD.esm.js +7577 -0
  231. package/dist/chunks/glTFLoader-CV4gaEkD.esm.js.map +1 -0
  232. package/dist/chunks/glTFLoader-DzWe9vIp.esm.min.js +2 -0
  233. package/dist/chunks/glTFLoader-DzWe9vIp.esm.min.js.map +1 -0
  234. package/dist/chunks/glTFLoaderAnimation-3Zuh0x4N.esm.min.js +2 -0
  235. package/dist/chunks/glTFLoaderAnimation-3Zuh0x4N.esm.min.js.map +1 -0
  236. package/dist/chunks/glTFLoaderAnimation-DpxtyG4M.esm.js +77 -0
  237. package/dist/chunks/glTFLoaderAnimation-DpxtyG4M.esm.js.map +1 -0
  238. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
  239. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
  240. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
  241. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
  242. package/dist/chunks/harmonicsFunctions-BOsnxydC.esm.min.js +2 -0
  243. package/dist/chunks/harmonicsFunctions-BOsnxydC.esm.min.js.map +1 -0
  244. package/dist/chunks/harmonicsFunctions-CAWVqZJW.esm.min.js +2 -0
  245. package/dist/chunks/harmonicsFunctions-CAWVqZJW.esm.min.js.map +1 -0
  246. package/dist/chunks/harmonicsFunctions-CkGodmw9.esm.js +34 -0
  247. package/dist/chunks/harmonicsFunctions-CkGodmw9.esm.js.map +1 -0
  248. package/dist/chunks/harmonicsFunctions-DKodc8zw.esm.js +35 -0
  249. package/dist/chunks/harmonicsFunctions-DKodc8zw.esm.js.map +1 -0
  250. package/dist/chunks/hdrTextureLoader-ByhFbT40.esm.js +252 -0
  251. package/dist/chunks/hdrTextureLoader-ByhFbT40.esm.js.map +1 -0
  252. package/dist/chunks/hdrTextureLoader-CwVtc8WX.esm.min.js +2 -0
  253. package/dist/chunks/hdrTextureLoader-CwVtc8WX.esm.min.js.map +1 -0
  254. package/dist/chunks/helperFunctions-9Kix5CWU.esm.min.js +2 -0
  255. package/dist/chunks/helperFunctions-9Kix5CWU.esm.min.js.map +1 -0
  256. package/dist/chunks/helperFunctions-C145ftBm.esm.js +108 -0
  257. package/dist/chunks/helperFunctions-C145ftBm.esm.js.map +1 -0
  258. package/dist/chunks/helperFunctions-FzjH-et-.esm.min.js +2 -0
  259. package/dist/chunks/helperFunctions-FzjH-et-.esm.min.js.map +1 -0
  260. package/dist/chunks/helperFunctions-wRMS-5W9.esm.js +80 -0
  261. package/dist/chunks/helperFunctions-wRMS-5W9.esm.js.map +1 -0
  262. package/dist/chunks/index-C7wduKU8.esm.min.js +57 -0
  263. package/dist/chunks/index-C7wduKU8.esm.min.js.map +1 -0
  264. package/dist/chunks/index-CnOgh385.esm.js +72146 -0
  265. package/dist/chunks/index-CnOgh385.esm.js.map +1 -0
  266. package/dist/chunks/ktxTextureLoader-5D3NYHnG.esm.min.js +2 -0
  267. package/dist/chunks/ktxTextureLoader-5D3NYHnG.esm.min.js.map +1 -0
  268. package/dist/chunks/ktxTextureLoader-CvZNXQNL.esm.js +814 -0
  269. package/dist/chunks/ktxTextureLoader-CvZNXQNL.esm.js.map +1 -0
  270. package/dist/chunks/logDepthDeclaration-2feX8osP.esm.min.js +2 -0
  271. package/dist/chunks/logDepthDeclaration-2feX8osP.esm.min.js.map +1 -0
  272. package/dist/chunks/logDepthDeclaration-BliNNYez.esm.js +35 -0
  273. package/dist/chunks/logDepthDeclaration-BliNNYez.esm.js.map +1 -0
  274. package/dist/chunks/logDepthDeclaration-CKLo3ElW.esm.min.js +2 -0
  275. package/dist/chunks/logDepthDeclaration-CKLo3ElW.esm.min.js.map +1 -0
  276. package/dist/chunks/logDepthDeclaration-DVmD2FAu.esm.js +20 -0
  277. package/dist/chunks/logDepthDeclaration-DVmD2FAu.esm.js.map +1 -0
  278. package/dist/chunks/logDepthVertex-76a7I1xR.esm.min.js +2 -0
  279. package/dist/chunks/logDepthVertex-76a7I1xR.esm.min.js.map +1 -0
  280. package/dist/chunks/logDepthVertex-CmMKhXZL.esm.min.js +2 -0
  281. package/dist/chunks/logDepthVertex-CmMKhXZL.esm.min.js.map +1 -0
  282. package/dist/chunks/logDepthVertex-PmhAe4yN.esm.js +77 -0
  283. package/dist/chunks/logDepthVertex-PmhAe4yN.esm.js.map +1 -0
  284. package/dist/chunks/logDepthVertex-z0kR93w0.esm.js +488 -0
  285. package/dist/chunks/logDepthVertex-z0kR93w0.esm.js.map +1 -0
  286. package/dist/chunks/mainUVVaryingDeclaration-DWJo6emc.esm.min.js +2 -0
  287. package/dist/chunks/mainUVVaryingDeclaration-DWJo6emc.esm.min.js.map +1 -0
  288. package/dist/chunks/mainUVVaryingDeclaration-tLECb3OH.esm.js +11 -0
  289. package/dist/chunks/mainUVVaryingDeclaration-tLECb3OH.esm.js.map +1 -0
  290. package/dist/chunks/meshUboDeclaration-BDAwP9a9.esm.min.js +2 -0
  291. package/dist/chunks/meshUboDeclaration-BDAwP9a9.esm.min.js.map +1 -0
  292. package/dist/chunks/meshUboDeclaration-aToCxj1L.esm.js +24 -0
  293. package/dist/chunks/meshUboDeclaration-aToCxj1L.esm.js.map +1 -0
  294. package/dist/chunks/objFileLoader-BbgCiNCH.esm.min.js +2 -0
  295. package/dist/chunks/objFileLoader-BbgCiNCH.esm.min.js.map +1 -0
  296. package/dist/chunks/objFileLoader-CcbJMUMr.esm.js +1338 -0
  297. package/dist/chunks/objFileLoader-CcbJMUMr.esm.js.map +1 -0
  298. package/dist/chunks/oitFragment-B7IdTPoC.esm.min.js +2 -0
  299. package/dist/chunks/oitFragment-B7IdTPoC.esm.min.js.map +1 -0
  300. package/dist/chunks/oitFragment-BpnacugF.esm.min.js +2 -0
  301. package/dist/chunks/oitFragment-BpnacugF.esm.min.js.map +1 -0
  302. package/dist/chunks/oitFragment-DAK0Srx_.esm.js +1210 -0
  303. package/dist/chunks/oitFragment-DAK0Srx_.esm.js.map +1 -0
  304. package/dist/chunks/oitFragment-usF5fk2u.esm.js +1150 -0
  305. package/dist/chunks/oitFragment-usF5fk2u.esm.js.map +1 -0
  306. package/dist/chunks/pass.fragment-BUr9DFzF.esm.min.js +2 -0
  307. package/dist/chunks/pass.fragment-BUr9DFzF.esm.min.js.map +1 -0
  308. package/dist/chunks/pass.fragment-Cbtf4ee2.esm.min.js +2 -0
  309. package/dist/chunks/pass.fragment-Cbtf4ee2.esm.min.js.map +1 -0
  310. package/dist/chunks/pass.fragment-D5Mkku3L.esm.js +15 -0
  311. package/dist/chunks/pass.fragment-D5Mkku3L.esm.js.map +1 -0
  312. package/dist/chunks/pass.fragment-Dwf06Uze.esm.js +15 -0
  313. package/dist/chunks/pass.fragment-Dwf06Uze.esm.js.map +1 -0
  314. package/dist/chunks/pbr.fragment-B4CjQQaq.esm.js +3165 -0
  315. package/dist/chunks/pbr.fragment-B4CjQQaq.esm.js.map +1 -0
  316. package/dist/chunks/pbr.fragment-Bg2wEKkm.esm.min.js +2 -0
  317. package/dist/chunks/pbr.fragment-Bg2wEKkm.esm.min.js.map +1 -0
  318. package/dist/chunks/pbr.fragment-CxZACkf_.esm.js +3219 -0
  319. package/dist/chunks/pbr.fragment-CxZACkf_.esm.js.map +1 -0
  320. package/dist/chunks/pbr.fragment-DcokD5B_.esm.min.js +2 -0
  321. package/dist/chunks/pbr.fragment-DcokD5B_.esm.min.js.map +1 -0
  322. package/dist/chunks/pbr.vertex-5SRP8KXJ.esm.min.js +2 -0
  323. package/dist/chunks/pbr.vertex-5SRP8KXJ.esm.min.js.map +1 -0
  324. package/dist/chunks/pbr.vertex-BWv0twuA.esm.js +338 -0
  325. package/dist/chunks/pbr.vertex-BWv0twuA.esm.js.map +1 -0
  326. package/dist/chunks/pbr.vertex-Bbx8BskM.esm.js +210 -0
  327. package/dist/chunks/pbr.vertex-Bbx8BskM.esm.js.map +1 -0
  328. package/dist/chunks/pbr.vertex-aeZ_1RAJ.esm.min.js +2 -0
  329. package/dist/chunks/pbr.vertex-aeZ_1RAJ.esm.min.js.map +1 -0
  330. package/dist/chunks/postprocess.vertex-CEjN3z-W.esm.js +20 -0
  331. package/dist/chunks/postprocess.vertex-CEjN3z-W.esm.js.map +1 -0
  332. package/dist/chunks/postprocess.vertex-CVjXIDGV.esm.js +18 -0
  333. package/dist/chunks/postprocess.vertex-CVjXIDGV.esm.js.map +1 -0
  334. package/dist/chunks/postprocess.vertex-Dvgpsu0Y.esm.min.js +2 -0
  335. package/dist/chunks/postprocess.vertex-Dvgpsu0Y.esm.min.js.map +1 -0
  336. package/dist/chunks/postprocess.vertex-gox_-nsm.esm.min.js +2 -0
  337. package/dist/chunks/postprocess.vertex-gox_-nsm.esm.min.js.map +1 -0
  338. package/dist/chunks/rawTexture-I7-tnxxH.esm.min.js +2 -0
  339. package/dist/chunks/rawTexture-I7-tnxxH.esm.min.js.map +1 -0
  340. package/dist/chunks/rawTexture-abGBS0-i.esm.js +191 -0
  341. package/dist/chunks/rawTexture-abGBS0-i.esm.js.map +1 -0
  342. package/dist/chunks/rgbdDecode.fragment-CjxqtPsU.esm.js +17 -0
  343. package/dist/chunks/rgbdDecode.fragment-CjxqtPsU.esm.js.map +1 -0
  344. package/dist/chunks/rgbdDecode.fragment-DEcAWioK.esm.min.js +2 -0
  345. package/dist/chunks/rgbdDecode.fragment-DEcAWioK.esm.min.js.map +1 -0
  346. package/dist/chunks/rgbdDecode.fragment-Duu9xa2S.esm.js +17 -0
  347. package/dist/chunks/rgbdDecode.fragment-Duu9xa2S.esm.js.map +1 -0
  348. package/dist/chunks/rgbdDecode.fragment-yjfEE5mx.esm.min.js +2 -0
  349. package/dist/chunks/rgbdDecode.fragment-yjfEE5mx.esm.min.js.map +1 -0
  350. package/dist/chunks/rgbdEncode.fragment-1_NW-5V_.esm.min.js +2 -0
  351. package/dist/chunks/rgbdEncode.fragment-1_NW-5V_.esm.min.js.map +1 -0
  352. package/dist/chunks/rgbdEncode.fragment-CJAwppJJ.esm.js +17 -0
  353. package/dist/chunks/rgbdEncode.fragment-CJAwppJJ.esm.js.map +1 -0
  354. package/dist/chunks/rgbdEncode.fragment-D416P3AA.esm.js +17 -0
  355. package/dist/chunks/rgbdEncode.fragment-D416P3AA.esm.js.map +1 -0
  356. package/dist/chunks/rgbdEncode.fragment-D6EIa5jq.esm.min.js +2 -0
  357. package/dist/chunks/rgbdEncode.fragment-D6EIa5jq.esm.min.js.map +1 -0
  358. package/dist/chunks/splatFileLoader-CE6YSo_Y.esm.js +3807 -0
  359. package/dist/chunks/splatFileLoader-CE6YSo_Y.esm.js.map +1 -0
  360. package/dist/chunks/splatFileLoader-DAeaAZJI.esm.min.js +2 -0
  361. package/dist/chunks/splatFileLoader-DAeaAZJI.esm.min.js.map +1 -0
  362. package/dist/chunks/standardMaterial-DnekZhjH.esm.min.js +2 -0
  363. package/dist/chunks/standardMaterial-DnekZhjH.esm.min.js.map +1 -0
  364. package/dist/chunks/standardMaterial-n0DBtsuy.esm.js +1798 -0
  365. package/dist/chunks/standardMaterial-n0DBtsuy.esm.js.map +1 -0
  366. package/dist/chunks/stlFileLoader-BMtNneaz.esm.js +238 -0
  367. package/dist/chunks/stlFileLoader-BMtNneaz.esm.js.map +1 -0
  368. package/dist/chunks/stlFileLoader-DI7yI2LZ.esm.min.js +2 -0
  369. package/dist/chunks/stlFileLoader-DI7yI2LZ.esm.min.js.map +1 -0
  370. package/dist/chunks/tgaTextureLoader-3-npb4_J.esm.js +349 -0
  371. package/dist/chunks/tgaTextureLoader-3-npb4_J.esm.js.map +1 -0
  372. package/dist/chunks/tgaTextureLoader-aDt1XJOX.esm.min.js +2 -0
  373. package/dist/chunks/tgaTextureLoader-aDt1XJOX.esm.min.js.map +1 -0
  374. package/dist/chunks/thinEngine-D-t2gDpJ.esm.min.js +2 -0
  375. package/dist/chunks/thinEngine-D-t2gDpJ.esm.min.js.map +1 -0
  376. package/dist/chunks/thinEngine-rID5rIIx.esm.js +3721 -0
  377. package/dist/chunks/thinEngine-rID5rIIx.esm.js.map +1 -0
  378. package/dist/chunks/thinInstanceMesh-C7iV7h7y.esm.min.js +2 -0
  379. package/dist/chunks/thinInstanceMesh-C7iV7h7y.esm.min.js.map +1 -0
  380. package/dist/chunks/thinInstanceMesh-DEIv5NXL.esm.js +314 -0
  381. package/dist/chunks/thinInstanceMesh-DEIv5NXL.esm.js.map +1 -0
  382. package/dist/chunks/vertexColorMixing-Bhg4zEYG.esm.js +528 -0
  383. package/dist/chunks/vertexColorMixing-Bhg4zEYG.esm.js.map +1 -0
  384. package/dist/chunks/vertexColorMixing-VLdZJiuY.esm.min.js +2 -0
  385. package/dist/chunks/vertexColorMixing-VLdZJiuY.esm.min.js.map +1 -0
  386. package/dist/chunks/webgpuEngine-Ct9vv5-q.esm.min.js +2 -0
  387. package/dist/chunks/webgpuEngine-Ct9vv5-q.esm.min.js.map +1 -0
  388. package/dist/chunks/webgpuEngine-DpiK5CyS.esm.js +11214 -0
  389. package/dist/chunks/webgpuEngine-DpiK5CyS.esm.js.map +1 -0
  390. package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
  391. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
  392. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
  393. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
  394. package/docs/ViewerDefault.jpg +0 -0
  395. package/docs/ViewerParts.jpg +0 -0
  396. package/docs/ViewerSlots.jpg +0 -0
  397. package/docs/ViewerStyled.jpg +0 -0
  398. package/lib/index.d.ts +327 -0
  399. package/lib/index.js +1153 -0
  400. package/lib/index.js.map +1 -0
  401. package/package.json +18 -27
  402. package/readme.md +145 -21
  403. package/configuration/configuration.d.ts +0 -107
  404. package/configuration/configuration.js +0 -16
  405. package/configuration/configuration.js.map +0 -1
  406. package/configuration/configurationCompatibility.d.ts +0 -8
  407. package/configuration/configurationCompatibility.js +0 -66
  408. package/configuration/configurationCompatibility.js.map +0 -1
  409. package/configuration/configurationContainer.d.ts +0 -10
  410. package/configuration/configurationContainer.js +0 -10
  411. package/configuration/configurationContainer.js.map +0 -1
  412. package/configuration/globals.d.ts +0 -6
  413. package/configuration/globals.js +0 -18
  414. package/configuration/globals.js.map +0 -1
  415. package/configuration/index.d.ts +0 -2
  416. package/configuration/index.js +0 -4
  417. package/configuration/index.js.map +0 -1
  418. package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
  419. package/configuration/interfaces/cameraConfiguration.js +0 -2
  420. package/configuration/interfaces/cameraConfiguration.js.map +0 -1
  421. package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
  422. package/configuration/interfaces/colorGradingConfiguration.js +0 -2
  423. package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
  424. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
  425. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
  426. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
  427. package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
  428. package/configuration/interfaces/environmentMapConfiguration.js +0 -2
  429. package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
  430. package/configuration/interfaces/groundConfiguration.d.ts +0 -24
  431. package/configuration/interfaces/groundConfiguration.js +0 -2
  432. package/configuration/interfaces/groundConfiguration.js.map +0 -1
  433. package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
  434. package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
  435. package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
  436. package/configuration/interfaces/index.d.ts +0 -15
  437. package/configuration/interfaces/index.js +0 -16
  438. package/configuration/interfaces/index.js.map +0 -1
  439. package/configuration/interfaces/lightConfiguration.d.ts +0 -60
  440. package/configuration/interfaces/lightConfiguration.js +0 -2
  441. package/configuration/interfaces/lightConfiguration.js.map +0 -1
  442. package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
  443. package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
  444. package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
  445. package/configuration/interfaces/modelConfiguration.d.ts +0 -65
  446. package/configuration/interfaces/modelConfiguration.js +0 -2
  447. package/configuration/interfaces/modelConfiguration.js.map +0 -1
  448. package/configuration/interfaces/observersConfiguration.d.ts +0 -5
  449. package/configuration/interfaces/observersConfiguration.js +0 -2
  450. package/configuration/interfaces/observersConfiguration.js.map +0 -1
  451. package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
  452. package/configuration/interfaces/sceneConfiguration.js +0 -2
  453. package/configuration/interfaces/sceneConfiguration.js.map +0 -1
  454. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
  455. package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
  456. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
  457. package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
  458. package/configuration/interfaces/skyboxConfiguration.js +0 -2
  459. package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
  460. package/configuration/interfaces/templateConfiguration.d.ts +0 -67
  461. package/configuration/interfaces/templateConfiguration.js +0 -2
  462. package/configuration/interfaces/templateConfiguration.js.map +0 -1
  463. package/configuration/interfaces/vrConfiguration.d.ts +0 -16
  464. package/configuration/interfaces/vrConfiguration.js +0 -2
  465. package/configuration/interfaces/vrConfiguration.js.map +0 -1
  466. package/configuration/loader.d.ts +0 -4
  467. package/configuration/loader.js +0 -17
  468. package/configuration/loader.js.map +0 -1
  469. package/configuration/mappers.d.ts +0 -43
  470. package/configuration/mappers.js +0 -192
  471. package/configuration/mappers.js.map +0 -1
  472. package/configuration/renderOnlyLoader.d.ts +0 -33
  473. package/configuration/renderOnlyLoader.js +0 -162
  474. package/configuration/renderOnlyLoader.js.map +0 -1
  475. package/configuration/types/default.d.ts +0 -6
  476. package/configuration/types/default.js +0 -121
  477. package/configuration/types/default.js.map +0 -1
  478. package/configuration/types/environmentMap.d.ts +0 -5
  479. package/configuration/types/environmentMap.js +0 -14
  480. package/configuration/types/environmentMap.js.map +0 -1
  481. package/configuration/types/extended.d.ts +0 -6
  482. package/configuration/types/extended.js +0 -317
  483. package/configuration/types/extended.js.map +0 -1
  484. package/configuration/types/index.d.ts +0 -14
  485. package/configuration/types/index.js +0 -51
  486. package/configuration/types/index.js.map +0 -1
  487. package/configuration/types/minimal.d.ts +0 -6
  488. package/configuration/types/minimal.js +0 -43
  489. package/configuration/types/minimal.js.map +0 -1
  490. package/configuration/types/renderOnlyDefault.d.ts +0 -30
  491. package/configuration/types/renderOnlyDefault.js +0 -31
  492. package/configuration/types/renderOnlyDefault.js.map +0 -1
  493. package/configuration/types/shadowLight.d.ts +0 -9
  494. package/configuration/types/shadowLight.js +0 -64
  495. package/configuration/types/shadowLight.js.map +0 -1
  496. package/helper/index.d.ts +0 -29
  497. package/helper/index.js +0 -66
  498. package/helper/index.js.map +0 -1
  499. package/index.d.ts +0 -30
  500. package/index.js +0 -46
  501. package/index.js.map +0 -1
  502. package/initializer.d.ts +0 -11
  503. package/initializer.js +0 -35
  504. package/initializer.js.map +0 -1
  505. package/interfaces.d.ts +0 -5
  506. package/interfaces.js +0 -7
  507. package/interfaces.js.map +0 -1
  508. package/labs/environmentSerializer.d.ts +0 -126
  509. package/labs/environmentSerializer.js +0 -191
  510. package/labs/environmentSerializer.js.map +0 -1
  511. package/labs/texture.d.ts +0 -183
  512. package/labs/texture.js +0 -350
  513. package/labs/texture.js.map +0 -1
  514. package/labs/viewerLabs.d.ts +0 -51
  515. package/labs/viewerLabs.js +0 -134
  516. package/labs/viewerLabs.js.map +0 -1
  517. package/loader/modelLoader.d.ts +0 -56
  518. package/loader/modelLoader.js +0 -199
  519. package/loader/modelLoader.js.map +0 -1
  520. package/loader/plugins/applyMaterialConfig.d.ts +0 -12
  521. package/loader/plugins/applyMaterialConfig.js +0 -16
  522. package/loader/plugins/applyMaterialConfig.js.map +0 -1
  523. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
  524. package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
  525. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
  526. package/loader/plugins/index.d.ts +0 -19
  527. package/loader/plugins/index.js +0 -44
  528. package/loader/plugins/index.js.map +0 -1
  529. package/loader/plugins/loaderPlugin.d.ts +0 -24
  530. package/loader/plugins/loaderPlugin.js +0 -2
  531. package/loader/plugins/loaderPlugin.js.map +0 -1
  532. package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
  533. package/loader/plugins/msftLodLoaderPlugin.js +0 -21
  534. package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
  535. package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
  536. package/loader/plugins/telemetryLoaderPlugin.js +0 -36
  537. package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
  538. package/managers/observablesManager.d.ts +0 -66
  539. package/managers/observablesManager.js +0 -35
  540. package/managers/observablesManager.js.map +0 -1
  541. package/managers/sceneManager.d.ts +0 -245
  542. package/managers/sceneManager.js +0 -1375
  543. package/managers/sceneManager.js.map +0 -1
  544. package/managers/telemetryManager.d.ts +0 -78
  545. package/managers/telemetryManager.js +0 -117
  546. package/managers/telemetryManager.js.map +0 -1
  547. package/model/modelAnimation.d.ts +0 -215
  548. package/model/modelAnimation.js +0 -237
  549. package/model/modelAnimation.js.map +0 -1
  550. package/model/viewerModel.d.ts +0 -233
  551. package/model/viewerModel.js +0 -673
  552. package/model/viewerModel.js.map +0 -1
  553. package/optimizer/custom/extended.d.ts +0 -13
  554. package/optimizer/custom/extended.js +0 -101
  555. package/optimizer/custom/extended.js.map +0 -1
  556. package/optimizer/custom/index.d.ts +0 -9
  557. package/optimizer/custom/index.js +0 -26
  558. package/optimizer/custom/index.js.map +0 -1
  559. package/renderOnlyIndex.d.ts +0 -11
  560. package/renderOnlyIndex.js +0 -18
  561. package/renderOnlyIndex.js.map +0 -1
  562. package/templating/eventManager.d.ts +0 -35
  563. package/templating/eventManager.js +0 -66
  564. package/templating/eventManager.js.map +0 -1
  565. package/templating/plugins/hdButtonPlugin.d.ts +0 -9
  566. package/templating/plugins/hdButtonPlugin.js +0 -21
  567. package/templating/plugins/hdButtonPlugin.js.map +0 -1
  568. package/templating/plugins/printButton.d.ts +0 -9
  569. package/templating/plugins/printButton.js +0 -40
  570. package/templating/plugins/printButton.js.map +0 -1
  571. package/templating/templateManager.d.ts +0 -197
  572. package/templating/templateManager.js +0 -561
  573. package/templating/templateManager.js.map +0 -1
  574. package/templating/viewerTemplatePlugin.d.ts +0 -21
  575. package/templating/viewerTemplatePlugin.js +0 -69
  576. package/templating/viewerTemplatePlugin.js.map +0 -1
  577. package/viewer/defaultViewer.d.ts +0 -130
  578. package/viewer/defaultViewer.js +0 -672
  579. package/viewer/defaultViewer.js.map +0 -1
  580. package/viewer/renderOnlyViewer.d.ts +0 -9
  581. package/viewer/renderOnlyViewer.js +0 -46
  582. package/viewer/renderOnlyViewer.js.map +0 -1
  583. package/viewer/viewer.d.ts +0 -258
  584. package/viewer/viewer.js +0 -783
  585. package/viewer/viewer.js.map +0 -1
  586. package/viewer/viewerManager.d.ts +0 -58
  587. package/viewer/viewerManager.js +0 -91
  588. package/viewer/viewerManager.js.map +0 -1
  589. package/viewer/viewerWithTemplate.d.ts +0 -9
  590. package/viewer/viewerWithTemplate.js +0 -20
  591. package/viewer/viewerWithTemplate.js.map +0 -1
@@ -0,0 +1,122 @@
1
+ /**
2
+ * Helper class to push actions to a pool of workers.
3
+ */
4
+ class WorkerPool {
5
+ /**
6
+ * Constructor
7
+ * @param workers Array of workers to use for actions
8
+ */
9
+ constructor(workers) {
10
+ this._pendingActions = new Array();
11
+ this._workerInfos = workers.map((worker) => ({
12
+ workerPromise: Promise.resolve(worker),
13
+ idle: true,
14
+ }));
15
+ }
16
+ /**
17
+ * Terminates all workers and clears any pending actions.
18
+ */
19
+ dispose() {
20
+ for (const workerInfo of this._workerInfos) {
21
+ workerInfo.workerPromise.then((worker) => {
22
+ worker.terminate();
23
+ });
24
+ }
25
+ this._workerInfos.length = 0;
26
+ this._pendingActions.length = 0;
27
+ }
28
+ /**
29
+ * Pushes an action to the worker pool. If all the workers are active, the action will be
30
+ * pended until a worker has completed its action.
31
+ * @param action The action to perform. Call onComplete when the action is complete.
32
+ */
33
+ push(action) {
34
+ if (!this._executeOnIdleWorker(action)) {
35
+ this._pendingActions.push(action);
36
+ }
37
+ }
38
+ _executeOnIdleWorker(action) {
39
+ for (const workerInfo of this._workerInfos) {
40
+ if (workerInfo.idle) {
41
+ this._execute(workerInfo, action);
42
+ return true;
43
+ }
44
+ }
45
+ return false;
46
+ }
47
+ _execute(workerInfo, action) {
48
+ workerInfo.idle = false;
49
+ workerInfo.workerPromise.then((worker) => {
50
+ action(worker, () => {
51
+ const nextAction = this._pendingActions.shift();
52
+ if (nextAction) {
53
+ this._execute(workerInfo, nextAction);
54
+ }
55
+ else {
56
+ workerInfo.idle = true;
57
+ }
58
+ });
59
+ });
60
+ }
61
+ }
62
+ /**
63
+ * Similar to the WorkerPool class except it creates and destroys workers automatically with a maximum of `maxWorkers` workers.
64
+ * Workers are terminated when it is idle for at least `idleTimeElapsedBeforeRelease` milliseconds.
65
+ */
66
+ class AutoReleaseWorkerPool extends WorkerPool {
67
+ constructor(maxWorkers, createWorkerAsync, options = AutoReleaseWorkerPool.DefaultOptions) {
68
+ super([]);
69
+ this._maxWorkers = maxWorkers;
70
+ this._createWorkerAsync = createWorkerAsync;
71
+ this._options = options;
72
+ }
73
+ push(action) {
74
+ if (!this._executeOnIdleWorker(action)) {
75
+ if (this._workerInfos.length < this._maxWorkers) {
76
+ const workerInfo = {
77
+ workerPromise: this._createWorkerAsync(),
78
+ idle: false,
79
+ };
80
+ this._workerInfos.push(workerInfo);
81
+ this._execute(workerInfo, action);
82
+ }
83
+ else {
84
+ this._pendingActions.push(action);
85
+ }
86
+ }
87
+ }
88
+ _execute(workerInfo, action) {
89
+ // Reset the idle timeout.
90
+ if (workerInfo.timeoutId) {
91
+ clearTimeout(workerInfo.timeoutId);
92
+ delete workerInfo.timeoutId;
93
+ }
94
+ super._execute(workerInfo, (worker, onComplete) => {
95
+ action(worker, () => {
96
+ onComplete();
97
+ if (workerInfo.idle) {
98
+ // Schedule the worker to be terminated after the elapsed time.
99
+ workerInfo.timeoutId = setTimeout(() => {
100
+ workerInfo.workerPromise.then((worker) => {
101
+ worker.terminate();
102
+ });
103
+ const indexOf = this._workerInfos.indexOf(workerInfo);
104
+ if (indexOf !== -1) {
105
+ this._workerInfos.splice(indexOf, 1);
106
+ }
107
+ }, this._options.idleTimeElapsedBeforeRelease);
108
+ }
109
+ });
110
+ });
111
+ }
112
+ }
113
+ /**
114
+ * Default options for the constructor.
115
+ * Override to change the defaults.
116
+ */
117
+ AutoReleaseWorkerPool.DefaultOptions = {
118
+ idleTimeElapsedBeforeRelease: 1000,
119
+ };
120
+
121
+ export { AutoReleaseWorkerPool as A };
122
+ //# sourceMappingURL=workerPool-BUOov2K1.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workerPool-BUOov2K1.esm.js","sources":["../../../../../dev/core/dist/Misc/workerPool.js"],"sourcesContent":["/**\n * Helper class to push actions to a pool of workers.\n */\nexport class WorkerPool {\n /**\n * Constructor\n * @param workers Array of workers to use for actions\n */\n constructor(workers) {\n this._pendingActions = new Array();\n this._workerInfos = workers.map((worker) => ({\n workerPromise: Promise.resolve(worker),\n idle: true,\n }));\n }\n /**\n * Terminates all workers and clears any pending actions.\n */\n dispose() {\n for (const workerInfo of this._workerInfos) {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n }\n this._workerInfos.length = 0;\n this._pendingActions.length = 0;\n }\n /**\n * Pushes an action to the worker pool. If all the workers are active, the action will be\n * pended until a worker has completed its action.\n * @param action The action to perform. Call onComplete when the action is complete.\n */\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n this._pendingActions.push(action);\n }\n }\n _executeOnIdleWorker(action) {\n for (const workerInfo of this._workerInfos) {\n if (workerInfo.idle) {\n this._execute(workerInfo, action);\n return true;\n }\n }\n return false;\n }\n _execute(workerInfo, action) {\n workerInfo.idle = false;\n workerInfo.workerPromise.then((worker) => {\n action(worker, () => {\n const nextAction = this._pendingActions.shift();\n if (nextAction) {\n this._execute(workerInfo, nextAction);\n }\n else {\n workerInfo.idle = true;\n }\n });\n });\n }\n}\n/**\n * Similar to the WorkerPool class except it creates and destroys workers automatically with a maximum of `maxWorkers` workers.\n * Workers are terminated when it is idle for at least `idleTimeElapsedBeforeRelease` milliseconds.\n */\nexport class AutoReleaseWorkerPool extends WorkerPool {\n constructor(maxWorkers, createWorkerAsync, options = AutoReleaseWorkerPool.DefaultOptions) {\n super([]);\n this._maxWorkers = maxWorkers;\n this._createWorkerAsync = createWorkerAsync;\n this._options = options;\n }\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n if (this._workerInfos.length < this._maxWorkers) {\n const workerInfo = {\n workerPromise: this._createWorkerAsync(),\n idle: false,\n };\n this._workerInfos.push(workerInfo);\n this._execute(workerInfo, action);\n }\n else {\n this._pendingActions.push(action);\n }\n }\n }\n _execute(workerInfo, action) {\n // Reset the idle timeout.\n if (workerInfo.timeoutId) {\n clearTimeout(workerInfo.timeoutId);\n delete workerInfo.timeoutId;\n }\n super._execute(workerInfo, (worker, onComplete) => {\n action(worker, () => {\n onComplete();\n if (workerInfo.idle) {\n // Schedule the worker to be terminated after the elapsed time.\n workerInfo.timeoutId = setTimeout(() => {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n const indexOf = this._workerInfos.indexOf(workerInfo);\n if (indexOf !== -1) {\n this._workerInfos.splice(indexOf, 1);\n }\n }, this._options.idleTimeElapsedBeforeRelease);\n }\n });\n });\n }\n}\n/**\n * Default options for the constructor.\n * Override to change the defaults.\n */\nAutoReleaseWorkerPool.DefaultOptions = {\n idleTimeElapsedBeforeRelease: 1000,\n};\n//# sourceMappingURL=workerPool.js.map"],"names":[],"mappings":"AAAA;AACA;AACA;AACO,MAAM,UAAU,CAAC;AACxB;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,OAAO,EAAE;AACzB,QAAQ,IAAI,CAAC,eAAe,GAAG,IAAI,KAAK,EAAE;AAC1C,QAAQ,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,MAAM;AACrD,YAAY,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;AAClD,YAAY,IAAI,EAAE,IAAI;AACtB,SAAS,CAAC,CAAC;AACX;AACA;AACA;AACA;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,YAAY,EAAE;AACpD,YAAY,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK;AACtD,gBAAgB,MAAM,CAAC,SAAS,EAAE;AAClC,aAAa,CAAC;AACd;AACA,QAAQ,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;AACpC,QAAQ,IAAI,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,CAAC,MAAM,EAAE;AACjB,QAAQ,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE;AAChD,YAAY,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;AAC7C;AACA;AACA,IAAI,oBAAoB,CAAC,MAAM,EAAE;AACjC,QAAQ,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,YAAY,EAAE;AACpD,YAAY,IAAI,UAAU,CAAC,IAAI,EAAE;AACjC,gBAAgB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;AACjD,gBAAgB,OAAO,IAAI;AAC3B;AACA;AACA,QAAQ,OAAO,KAAK;AACpB;AACA,IAAI,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE;AACjC,QAAQ,UAAU,CAAC,IAAI,GAAG,KAAK;AAC/B,QAAQ,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK;AAClD,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM;AACjC,gBAAgB,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE;AAC/D,gBAAgB,IAAI,UAAU,EAAE;AAChC,oBAAoB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;AACzD;AACA,qBAAqB;AACrB,oBAAoB,UAAU,CAAC,IAAI,GAAG,IAAI;AAC1C;AACA,aAAa,CAAC;AACd,SAAS,CAAC;AACV;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,qBAAqB,SAAS,UAAU,CAAC;AACtD,IAAI,WAAW,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,GAAG,qBAAqB,CAAC,cAAc,EAAE;AAC/F,QAAQ,KAAK,CAAC,EAAE,CAAC;AACjB,QAAQ,IAAI,CAAC,WAAW,GAAG,UAAU;AACrC,QAAQ,IAAI,CAAC,kBAAkB,GAAG,iBAAiB;AACnD,QAAQ,IAAI,CAAC,QAAQ,GAAG,OAAO;AAC/B;AACA,IAAI,IAAI,CAAC,MAAM,EAAE;AACjB,QAAQ,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE;AAChD,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE;AAC7D,gBAAgB,MAAM,UAAU,GAAG;AACnC,oBAAoB,aAAa,EAAE,IAAI,CAAC,kBAAkB,EAAE;AAC5D,oBAAoB,IAAI,EAAE,KAAK;AAC/B,iBAAiB;AACjB,gBAAgB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC;AAClD,gBAAgB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;AACjD;AACA,iBAAiB;AACjB,gBAAgB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;AACjD;AACA;AACA;AACA,IAAI,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE;AACjC;AACA,QAAQ,IAAI,UAAU,CAAC,SAAS,EAAE;AAClC,YAAY,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC;AAC9C,YAAY,OAAO,UAAU,CAAC,SAAS;AACvC;AACA,QAAQ,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK;AAC3D,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM;AACjC,gBAAgB,UAAU,EAAE;AAC5B,gBAAgB,IAAI,UAAU,CAAC,IAAI,EAAE;AACrC;AACA,oBAAoB,UAAU,CAAC,SAAS,GAAG,UAAU,CAAC,MAAM;AAC5D,wBAAwB,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK;AAClE,4BAA4B,MAAM,CAAC,SAAS,EAAE;AAC9C,yBAAyB,CAAC;AAC1B,wBAAwB,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC;AAC7E,wBAAwB,IAAI,OAAO,KAAK,CAAC,CAAC,EAAE;AAC5C,4BAA4B,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;AAChE;AACA,qBAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,4BAA4B,CAAC;AAClE;AACA,aAAa,CAAC;AACd,SAAS,CAAC;AACV;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,CAAC,cAAc,GAAG;AACvC,IAAI,4BAA4B,EAAE,IAAI;AACtC,CAAC;;;;"}
@@ -0,0 +1,2 @@
1
+ class e{constructor(e){this._pendingActions=new Array,this._workerInfos=e.map((e=>({workerPromise:Promise.resolve(e),idle:!0})))}dispose(){for(const e of this._workerInfos)e.workerPromise.then((e=>{e.terminate()}));this._workerInfos.length=0,this._pendingActions.length=0}push(e){this._executeOnIdleWorker(e)||this._pendingActions.push(e)}_executeOnIdleWorker(e){for(const s of this._workerInfos)if(s.idle)return this._execute(s,e),!0;return!1}_execute(e,s){e.idle=!1,e.workerPromise.then((t=>{s(t,(()=>{const s=this._pendingActions.shift();s?this._execute(e,s):e.idle=!0}))}))}}class s extends e{constructor(e,t,i=s.DefaultOptions){super([]),this._maxWorkers=e,this._createWorkerAsync=t,this._options=i}push(e){if(!this._executeOnIdleWorker(e))if(this._workerInfos.length<this._maxWorkers){const s={workerPromise:this._createWorkerAsync(),idle:!1};this._workerInfos.push(s),this._execute(s,e)}else this._pendingActions.push(e)}_execute(e,s){e.timeoutId&&(clearTimeout(e.timeoutId),delete e.timeoutId),super._execute(e,((t,i)=>{s(t,(()=>{i(),e.idle&&(e.timeoutId=setTimeout((()=>{e.workerPromise.then((e=>{e.terminate()}));const s=this._workerInfos.indexOf(e);-1!==s&&this._workerInfos.splice(s,1)}),this._options.idleTimeElapsedBeforeRelease))}))}))}}s.DefaultOptions={idleTimeElapsedBeforeRelease:1e3};export{s as A};
2
+ //# sourceMappingURL=workerPool-BWHiDmEZ.esm.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workerPool-BWHiDmEZ.esm.min.js","sources":["../../../../../dev/core/dist/Misc/workerPool.js"],"sourcesContent":["/**\n * Helper class to push actions to a pool of workers.\n */\nexport class WorkerPool {\n /**\n * Constructor\n * @param workers Array of workers to use for actions\n */\n constructor(workers) {\n this._pendingActions = new Array();\n this._workerInfos = workers.map((worker) => ({\n workerPromise: Promise.resolve(worker),\n idle: true,\n }));\n }\n /**\n * Terminates all workers and clears any pending actions.\n */\n dispose() {\n for (const workerInfo of this._workerInfos) {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n }\n this._workerInfos.length = 0;\n this._pendingActions.length = 0;\n }\n /**\n * Pushes an action to the worker pool. If all the workers are active, the action will be\n * pended until a worker has completed its action.\n * @param action The action to perform. Call onComplete when the action is complete.\n */\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n this._pendingActions.push(action);\n }\n }\n _executeOnIdleWorker(action) {\n for (const workerInfo of this._workerInfos) {\n if (workerInfo.idle) {\n this._execute(workerInfo, action);\n return true;\n }\n }\n return false;\n }\n _execute(workerInfo, action) {\n workerInfo.idle = false;\n workerInfo.workerPromise.then((worker) => {\n action(worker, () => {\n const nextAction = this._pendingActions.shift();\n if (nextAction) {\n this._execute(workerInfo, nextAction);\n }\n else {\n workerInfo.idle = true;\n }\n });\n });\n }\n}\n/**\n * Similar to the WorkerPool class except it creates and destroys workers automatically with a maximum of `maxWorkers` workers.\n * Workers are terminated when it is idle for at least `idleTimeElapsedBeforeRelease` milliseconds.\n */\nexport class AutoReleaseWorkerPool extends WorkerPool {\n constructor(maxWorkers, createWorkerAsync, options = AutoReleaseWorkerPool.DefaultOptions) {\n super([]);\n this._maxWorkers = maxWorkers;\n this._createWorkerAsync = createWorkerAsync;\n this._options = options;\n }\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n if (this._workerInfos.length < this._maxWorkers) {\n const workerInfo = {\n workerPromise: this._createWorkerAsync(),\n idle: false,\n };\n this._workerInfos.push(workerInfo);\n this._execute(workerInfo, action);\n }\n else {\n this._pendingActions.push(action);\n }\n }\n }\n _execute(workerInfo, action) {\n // Reset the idle timeout.\n if (workerInfo.timeoutId) {\n clearTimeout(workerInfo.timeoutId);\n delete workerInfo.timeoutId;\n }\n super._execute(workerInfo, (worker, onComplete) => {\n action(worker, () => {\n onComplete();\n if (workerInfo.idle) {\n // Schedule the worker to be terminated after the elapsed time.\n workerInfo.timeoutId = setTimeout(() => {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n const indexOf = this._workerInfos.indexOf(workerInfo);\n if (indexOf !== -1) {\n this._workerInfos.splice(indexOf, 1);\n }\n }, this._options.idleTimeElapsedBeforeRelease);\n }\n });\n });\n }\n}\n/**\n * Default options for the constructor.\n * Override to change the defaults.\n */\nAutoReleaseWorkerPool.DefaultOptions = {\n idleTimeElapsedBeforeRelease: 1000,\n};\n//# sourceMappingURL=workerPool.js.map"],"names":["WorkerPool","constructor","workers","this","_pendingActions","Array","_workerInfos","map","worker","workerPromise","Promise","resolve","idle","dispose","workerInfo","then","terminate","length","push","action","_executeOnIdleWorker","_execute","nextAction","shift","AutoReleaseWorkerPool","maxWorkers","createWorkerAsync","options","DefaultOptions","super","_maxWorkers","_createWorkerAsync","_options","timeoutId","clearTimeout","onComplete","setTimeout","indexOf","splice","idleTimeElapsedBeforeRelease"],"mappings":"AAGO,MAAMA,EAKT,WAAAC,CAAYC,GACRC,KAAKC,gBAAkB,IAAIC,MAC3BF,KAAKG,aAAeJ,EAAQK,KAAKC,IAAY,CACzCC,cAAeC,QAAQC,QAAQH,GAC/BI,MAAM,KAElB,CAII,OAAAC,GACI,IAAK,MAAMC,KAAcX,KAAKG,aAC1BQ,EAAWL,cAAcM,MAAMP,IAC3BA,EAAOQ,WAAW,IAG1Bb,KAAKG,aAAaW,OAAS,EAC3Bd,KAAKC,gBAAgBa,OAAS,CACtC,CAMI,IAAAC,CAAKC,GACIhB,KAAKiB,qBAAqBD,IAC3BhB,KAAKC,gBAAgBc,KAAKC,EAEtC,CACI,oBAAAC,CAAqBD,GACjB,IAAK,MAAML,KAAcX,KAAKG,aAC1B,GAAIQ,EAAWF,KAEX,OADAT,KAAKkB,SAASP,EAAYK,IACnB,EAGf,OAAO,CACf,CACI,QAAAE,CAASP,EAAYK,GACjBL,EAAWF,MAAO,EAClBE,EAAWL,cAAcM,MAAMP,IAC3BW,EAAOX,GAAQ,KACX,MAAMc,EAAanB,KAAKC,gBAAgBmB,QACpCD,EACAnB,KAAKkB,SAASP,EAAYQ,GAG1BR,EAAWF,MAAO,CACtC,GACc,GAEd,EAMO,MAAMY,UAA8BxB,EACvC,WAAAC,CAAYwB,EAAYC,EAAmBC,EAAUH,EAAsBI,gBACvEC,MAAM,IACN1B,KAAK2B,YAAcL,EACnBtB,KAAK4B,mBAAqBL,EAC1BvB,KAAK6B,SAAWL,CACxB,CACI,IAAAT,CAAKC,GACD,IAAKhB,KAAKiB,qBAAqBD,GAC3B,GAAIhB,KAAKG,aAAaW,OAASd,KAAK2B,YAAa,CAC7C,MAAMhB,EAAa,CACfL,cAAeN,KAAK4B,qBACpBnB,MAAM,GAEVT,KAAKG,aAAaY,KAAKJ,GACvBX,KAAKkB,SAASP,EAAYK,EAC1C,MAEgBhB,KAAKC,gBAAgBc,KAAKC,EAG1C,CACI,QAAAE,CAASP,EAAYK,GAEbL,EAAWmB,YACXC,aAAapB,EAAWmB,kBACjBnB,EAAWmB,WAEtBJ,MAAMR,SAASP,GAAY,CAACN,EAAQ2B,KAChChB,EAAOX,GAAQ,KACX2B,IACIrB,EAAWF,OAEXE,EAAWmB,UAAYG,YAAW,KAC9BtB,EAAWL,cAAcM,MAAMP,IAC3BA,EAAOQ,WAAW,IAEtB,MAAMqB,EAAUlC,KAAKG,aAAa+B,QAAQvB,IACzB,IAAbuB,GACAlC,KAAKG,aAAagC,OAAOD,EAAS,EAC9D,GACuBlC,KAAK6B,SAASO,8BACrC,GACc,GAEd,EAMAf,EAAsBI,eAAiB,CACnCW,6BAA8B"}
Binary file
Binary file
Binary file
Binary file
package/lib/index.d.ts ADDED
@@ -0,0 +1,327 @@
1
+ import { Nullable, AssetContainer, HotSpotQuery, IDisposable, AbstractEngine, LoadAssetContainerOptions, AbstractEngineOptions, EngineOptions, WebGPUEngineOptions } from '@babylonjs/core/index.js';
2
+ import { Observable } from '@babylonjs/core/Misc/observable.js';
3
+ import { Scene } from '@babylonjs/core/scene.js';
4
+ import * as lit_html from 'lit-html';
5
+ import * as lit from 'lit';
6
+ import { LitElement, PropertyValues } from 'lit';
7
+ import { Color4 } from '@babylonjs/core/Maths/math.color.js';
8
+
9
+ type ViewerDetails = {
10
+ /**
11
+ * Gets the Viewer instance.
12
+ */
13
+ viewer: Viewer;
14
+ /**
15
+ * Provides access to the Scene managed by the Viewer.
16
+ */
17
+ scene: Scene;
18
+ /**
19
+ * Provides access to the currently loaded model.
20
+ */
21
+ model: Nullable<AssetContainer>;
22
+ };
23
+ type ViewerOptions = Partial<Readonly<{
24
+ /**
25
+ * Called once when the viewer is initialized and provides viewer details that can be used for advanced customization.
26
+ */
27
+ onInitialized: (details: Readonly<ViewerDetails>) => void;
28
+ }>>;
29
+ type ViewerHotSpotQuery = {
30
+ /**
31
+ * The index of the mesh within the loaded model.
32
+ */
33
+ meshIndex: number;
34
+ } & HotSpotQuery;
35
+ /**
36
+ * Information computed from the hot spot surface data, canvas and mesh datas
37
+ */
38
+ type ViewerHotSpot = {
39
+ /**
40
+ * 2D canvas position in pixels
41
+ */
42
+ screenPosition: [number, number];
43
+ /**
44
+ * 3D world coordinates
45
+ */
46
+ worldPosition: [number, number, number];
47
+ };
48
+ /**
49
+ * Provides an experience for viewing a single 3D model.
50
+ * @remarks
51
+ * The Viewer is not tied to a specific UI framework and can be used with Babylon.js in a browser or with Babylon Native.
52
+ * Includes (or will include) support for common model viewing requirements such as:
53
+ * - Loading different model formats.
54
+ * - Setting up a camera and providing default behaviors like auto orbit and pose interpolation.
55
+ * - Framing the loaded model in the camera's view.
56
+ * - Setting up the environment, lighting, and tone mapping.
57
+ * - Enumerating and playing (or auto playing) animations.
58
+ * - Enumerating and switching between material variants.
59
+ * - Full screen and XR modes.
60
+ */
61
+ declare class Viewer implements IDisposable {
62
+ private readonly _engine;
63
+ /**
64
+ * Fired when the environment has changed.
65
+ */
66
+ readonly onEnvironmentChanged: Observable<void>;
67
+ /**
68
+ * Fired when an error occurs while loading the environment.
69
+ */
70
+ readonly onEnvironmentError: Observable<unknown>;
71
+ /**
72
+ * Fired when a model is loaded into the viewer (or unloaded from the viewer).
73
+ */
74
+ readonly onModelChanged: Observable<void>;
75
+ /**
76
+ * Fired when an error occurs while loading a model.
77
+ */
78
+ readonly onModelError: Observable<unknown>;
79
+ /**
80
+ * Fired when the selected animation changes.
81
+ */
82
+ readonly onSelectedAnimationChanged: Observable<void>;
83
+ /**
84
+ * Fired when the animation speed changes.
85
+ */
86
+ readonly onAnimationSpeedChanged: Observable<void>;
87
+ /**
88
+ * Fired when the selected animation is playing or paused.
89
+ */
90
+ readonly onIsAnimationPlayingChanged: Observable<void>;
91
+ /**
92
+ * Fired when the current point on the selected animation timeline changes.
93
+ */
94
+ readonly onAnimationProgressChanged: Observable<void>;
95
+ private readonly _details;
96
+ private readonly _snapshotHelper;
97
+ private readonly _camera;
98
+ private readonly _autoRotationBehavior;
99
+ private readonly _renderLoopController;
100
+ private _skybox;
101
+ private _light;
102
+ private _isDisposed;
103
+ private readonly _loadModelLock;
104
+ private _loadModelAbortController;
105
+ private readonly _loadEnvironmentLock;
106
+ private _environment;
107
+ private _loadEnvironmentAbortController;
108
+ private _selectedAnimation;
109
+ private _activeAnimationObservers;
110
+ private _animationSpeed;
111
+ constructor(_engine: AbstractEngine, options?: ViewerOptions);
112
+ /**
113
+ * The list of animation names for the currently loaded model.
114
+ */
115
+ get animations(): readonly string[];
116
+ /**
117
+ * The currently selected animation index.
118
+ */
119
+ get selectedAnimation(): number;
120
+ set selectedAnimation(value: number);
121
+ /**
122
+ * True if an animation is currently playing.
123
+ */
124
+ get isAnimationPlaying(): boolean;
125
+ /**
126
+ * The speed scale at which animations are played.
127
+ */
128
+ get animationSpeed(): number;
129
+ set animationSpeed(value: number);
130
+ /**
131
+ * The current point on the selected animation timeline, normalized between 0 and 1.
132
+ */
133
+ get animationProgress(): number;
134
+ set animationProgress(value: number);
135
+ private get _activeAnimation();
136
+ /**
137
+ * Loads a 3D model from the specified URL.
138
+ * @remarks
139
+ * If a model is already loaded, it will be unloaded before loading the new model.
140
+ * @param source A url or File or ArrayBufferView that points to the model to load.
141
+ * @param options The options to use when loading the model.
142
+ * @param abortSignal An optional signal that can be used to abort the loading process.
143
+ */
144
+ loadModel(source: string | File | ArrayBufferView, options?: LoadAssetContainerOptions, abortSignal?: AbortSignal): Promise<void>;
145
+ /**
146
+ * Unloads the current 3D model if one is loaded.
147
+ * @param abortSignal An optional signal that can be used to abort the reset.
148
+ */
149
+ resetModel(abortSignal?: AbortSignal): Promise<void>;
150
+ private _updateModel;
151
+ /**
152
+ * Loads an environment texture from the specified url and sets up a corresponding skybox.
153
+ * @remarks
154
+ * If an environment is already loaded, it will be unloaded before loading the new environment.
155
+ * @param url The url of the environment texture to load.
156
+ * @param options The options to use when loading the environment.
157
+ * @param abortSignal An optional signal that can be used to abort the loading process.
158
+ */
159
+ loadEnvironment(url: string, options?: {}, abortSignal?: AbortSignal): Promise<void>;
160
+ /**
161
+ * Unloads the current environment if one is loaded.
162
+ * @param abortSignal An optional signal that can be used to abort the reset.
163
+ */
164
+ resetEnvironment(abortSignal?: AbortSignal): Promise<void>;
165
+ private _updateEnvironment;
166
+ /**
167
+ * Toggles the play/pause animation state if there is a selected animation.
168
+ */
169
+ toggleAnimation(): void;
170
+ /**
171
+ * Plays the selected animation if there is one.
172
+ */
173
+ playAnimation(): void;
174
+ /**
175
+ * Pauses the selected animation if there is one.
176
+ */
177
+ pauseAnimation(): Promise<void>;
178
+ /**
179
+ * Disposes of the resources held by the Viewer.
180
+ */
181
+ dispose(): void;
182
+ /**
183
+ * retrun world and canvas coordinates of an hot spot
184
+ * @param hotSpotQuery mesh index and surface information to query the hot spot positions
185
+ * @param res Query a Hot Spot and does the conversion for Babylon Hot spot to a more generic HotSpotPositions, without Vector types
186
+ * @returns true if hotspot found
187
+ */
188
+ getHotSpotToRef(hotSpotQuery: Readonly<ViewerHotSpotQuery>, res: ViewerHotSpot): boolean;
189
+ private _updateCamera;
190
+ private _updateLight;
191
+ private _applyAnimationSpeed;
192
+ /**
193
+ * Check for disposed or aborted state (basically everything that can interrupt an async operation).
194
+ * @param abortSignals A set of optional AbortSignals to also check.
195
+ */
196
+ private _throwIfDisposedOrAborted;
197
+ }
198
+
199
+ /**
200
+ * Options for creating a Viewer instance that is bound to an HTML canvas.
201
+ */
202
+ type CanvasViewerOptions = ViewerOptions & (({
203
+ engine?: undefined;
204
+ } & AbstractEngineOptions) | ({
205
+ engine: "WebGL";
206
+ } & EngineOptions) | ({
207
+ engine: "WebGPU";
208
+ } & WebGPUEngineOptions));
209
+ /**
210
+ * Chooses a default engine for the current browser environment.
211
+ * @returns The default engine to use.
212
+ */
213
+ declare function getDefaultEngine(): NonNullable<CanvasViewerOptions["engine"]>;
214
+ /**
215
+ * Creates a Viewer instance that is bound to an HTML canvas.
216
+ * @remarks
217
+ * This function can be shared across multiple UI integrations (e.g. Web Components, React, etc.).
218
+ * @param canvas The canvas element to bind the Viewer to.
219
+ * @param options The options to use when creating the Viewer and binding it to the specified canvas.
220
+ * @returns A Viewer instance that is bound to the specified canvas.
221
+ */
222
+ declare function createViewerForCanvas(canvas: HTMLCanvasElement, options?: CanvasViewerOptions): Promise<Viewer>;
223
+
224
+ interface HTML3DElementEventMap extends HTMLElementEventMap {
225
+ viewerready: Event;
226
+ environmentchange: Event;
227
+ environmenterror: ErrorEvent;
228
+ modelchange: Event;
229
+ modelerror: ErrorEvent;
230
+ selectedanimationchange: Event;
231
+ animationspeedchange: Event;
232
+ animationplayingchange: Event;
233
+ animationprogresschange: Event;
234
+ }
235
+ /**
236
+ * Represents a custom element that displays a 3D model using the Babylon.js Viewer.
237
+ */
238
+ declare class HTML3DElement extends LitElement {
239
+ private readonly _viewerLock;
240
+ private _viewerDetails?;
241
+ static styles: lit.CSSResult;
242
+ /**
243
+ * Gets the underlying viewer details (when the underlying viewer is in a loaded state).
244
+ * This is useful for advanced scenarios where direct access to the viewer or Babylon scene is needed.
245
+ */
246
+ get viewerDetails(): Readonly<ViewerDetails> | undefined;
247
+ /**
248
+ * Get hotspot world and screen values from a named hotspot
249
+ * @param name slot of the hot spot
250
+ * @param result resulting world and screen positions
251
+ * @returns world and screen space coordinates
252
+ */
253
+ queryHotSpot(name: string, result: ViewerHotSpot): boolean;
254
+ /**
255
+ * The engine to use for rendering.
256
+ */
257
+ engine: NonNullable<CanvasViewerOptions["engine"]>;
258
+ /**
259
+ * The model URL.
260
+ */
261
+ source: Nullable<string>;
262
+ /**
263
+ * Forces the model to be loaded with the specified extension.
264
+ * @remarks
265
+ * If this property is not set, the extension will be inferred from the model URL when possible.
266
+ */
267
+ extension: Nullable<string>;
268
+ /**
269
+ * The environment URL.
270
+ */
271
+ environment: Nullable<string>;
272
+ /**
273
+ * The clear color (e.g. background color) for the viewer.
274
+ */
275
+ clearColor: Nullable<Color4>;
276
+ /**
277
+ * A string value that encodes one or more hotspots.
278
+ */
279
+ hotspots: Nullable<Record<string, ViewerHotSpotQuery>>;
280
+ /**
281
+ * The list of animation names for the currently loaded model.
282
+ */
283
+ get animations(): readonly string[];
284
+ /**
285
+ * The currently selected animation index.
286
+ */
287
+ get selectedAnimation(): number;
288
+ /**
289
+ * True if an animation is currently playing.
290
+ */
291
+ get isAnimationPlaying(): boolean;
292
+ /**
293
+ * The speed scale at which animations are played.
294
+ */
295
+ animationSpeed: number;
296
+ /**
297
+ * The current point on the selected animation timeline, normalized between 0 and 1.
298
+ */
299
+ animationProgress: number;
300
+ private _animations;
301
+ private _selectedAnimation;
302
+ private _isAnimationPlaying;
303
+ private _canvasContainer;
304
+ /**
305
+ * Toggles the play/pause animation state if there is a selected animation.
306
+ */
307
+ toggleAnimation(): void;
308
+ connectedCallback(): void;
309
+ disconnectedCallback(): void;
310
+ update(changedProperties: PropertyValues): void;
311
+ render(): lit_html.TemplateResult<1>;
312
+ addEventListener<K extends keyof HTML3DElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTML3DElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
313
+ private _dispatchCustomEvent;
314
+ private _onSelectedAnimationChanged;
315
+ private _onAnimationSpeedChanged;
316
+ private _onProgressChanged;
317
+ private _onProgressPointerDown;
318
+ private _setupViewer;
319
+ private _tearDownViewer;
320
+ private _updateClearColor;
321
+ private _updateAnimationSpeed;
322
+ private _updateSelectedAnimation;
323
+ private _updateModel;
324
+ private _updateEnv;
325
+ }
326
+
327
+ export { type CanvasViewerOptions, HTML3DElement, Viewer, type ViewerDetails, type ViewerHotSpot, type ViewerHotSpotQuery, type ViewerOptions, createViewerForCanvas, getDefaultEngine };