@babylonjs/viewer 7.26.2 → 7.26.3-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 (578) hide show
  1. package/dist/babylon-viewer.esm.js +2 -0
  2. package/dist/babylon-viewer.esm.js.map +1 -0
  3. package/dist/babylon-viewer.esm.min.js +2 -0
  4. package/dist/babylon-viewer.esm.min.js.map +1 -0
  5. package/dist/chunks/EXT_lights_image_based-CX9xWDUc.esm.min.js +2 -0
  6. package/dist/chunks/EXT_lights_image_based-CX9xWDUc.esm.min.js.map +1 -0
  7. package/dist/chunks/EXT_lights_image_based-D2376Rhk.esm.js +171 -0
  8. package/dist/chunks/EXT_lights_image_based-D2376Rhk.esm.js.map +1 -0
  9. package/dist/chunks/EXT_mesh_gpu_instancing-COx3jzFo.esm.js +86 -0
  10. package/dist/chunks/EXT_mesh_gpu_instancing-COx3jzFo.esm.js.map +1 -0
  11. package/dist/chunks/EXT_mesh_gpu_instancing-DucZlyik.esm.min.js +2 -0
  12. package/dist/chunks/EXT_mesh_gpu_instancing-DucZlyik.esm.min.js.map +1 -0
  13. package/dist/chunks/EXT_meshopt_compression-CYrBmER6.esm.js +134 -0
  14. package/dist/chunks/EXT_meshopt_compression-CYrBmER6.esm.js.map +1 -0
  15. package/dist/chunks/EXT_meshopt_compression-RcQCBtJG.esm.min.js +2 -0
  16. package/dist/chunks/EXT_meshopt_compression-RcQCBtJG.esm.min.js.map +1 -0
  17. package/dist/chunks/EXT_texture_avif-BhIxh8Y2.esm.min.js +2 -0
  18. package/dist/chunks/EXT_texture_avif-BhIxh8Y2.esm.min.js.map +1 -0
  19. package/dist/chunks/EXT_texture_avif-Ca5z5sd4.esm.js +44 -0
  20. package/dist/chunks/EXT_texture_avif-Ca5z5sd4.esm.js.map +1 -0
  21. package/dist/chunks/EXT_texture_webp-BqckITjY.esm.js +43 -0
  22. package/dist/chunks/EXT_texture_webp-BqckITjY.esm.js.map +1 -0
  23. package/dist/chunks/EXT_texture_webp-CkyuNFGt.esm.min.js +2 -0
  24. package/dist/chunks/EXT_texture_webp-CkyuNFGt.esm.min.js.map +1 -0
  25. package/dist/chunks/ExtrasAsMetadata-B5tcWWcU.esm.js +64 -0
  26. package/dist/chunks/ExtrasAsMetadata-B5tcWWcU.esm.js.map +1 -0
  27. package/dist/chunks/ExtrasAsMetadata-DXurtCTq.esm.min.js +2 -0
  28. package/dist/chunks/ExtrasAsMetadata-DXurtCTq.esm.min.js.map +1 -0
  29. package/dist/chunks/KHR_animation_pointer--IiYfSMj.esm.min.js +2 -0
  30. package/dist/chunks/KHR_animation_pointer--IiYfSMj.esm.min.js.map +1 -0
  31. package/dist/chunks/KHR_animation_pointer-DfN1Ew0i.esm.js +343 -0
  32. package/dist/chunks/KHR_animation_pointer-DfN1Ew0i.esm.js.map +1 -0
  33. package/dist/chunks/KHR_draco_mesh_compression-CRrH0RjE.esm.js +610 -0
  34. package/dist/chunks/KHR_draco_mesh_compression-CRrH0RjE.esm.js.map +1 -0
  35. package/dist/chunks/KHR_draco_mesh_compression-Dx3wBJzh.esm.min.js +2 -0
  36. package/dist/chunks/KHR_draco_mesh_compression-Dx3wBJzh.esm.min.js.map +1 -0
  37. package/dist/chunks/KHR_interactivity-BhxUQ3Nl.esm.min.js +2 -0
  38. package/dist/chunks/KHR_interactivity-BhxUQ3Nl.esm.min.js.map +1 -0
  39. package/dist/chunks/KHR_interactivity-DHimeDac.esm.js +4033 -0
  40. package/dist/chunks/KHR_interactivity-DHimeDac.esm.js.map +1 -0
  41. package/dist/chunks/KHR_lights_punctual-CKLPiVPx.esm.js +1253 -0
  42. package/dist/chunks/KHR_lights_punctual-CKLPiVPx.esm.js.map +1 -0
  43. package/dist/chunks/KHR_lights_punctual-Dl3Xt0qH.esm.min.js +2 -0
  44. package/dist/chunks/KHR_lights_punctual-Dl3Xt0qH.esm.min.js.map +1 -0
  45. package/dist/chunks/KHR_materials_anisotropy-BlKga02r.esm.min.js +2 -0
  46. package/dist/chunks/KHR_materials_anisotropy-BlKga02r.esm.min.js.map +1 -0
  47. package/dist/chunks/KHR_materials_anisotropy-D_vFuzc0.esm.js +64 -0
  48. package/dist/chunks/KHR_materials_anisotropy-D_vFuzc0.esm.js.map +1 -0
  49. package/dist/chunks/KHR_materials_clearcoat-2P7-x3fR.esm.js +96 -0
  50. package/dist/chunks/KHR_materials_clearcoat-2P7-x3fR.esm.js.map +1 -0
  51. package/dist/chunks/KHR_materials_clearcoat-JLop7Kfg.esm.min.js +2 -0
  52. package/dist/chunks/KHR_materials_clearcoat-JLop7Kfg.esm.min.js.map +1 -0
  53. package/dist/chunks/KHR_materials_diffuse_transmission-BJY5giTc.esm.min.js +2 -0
  54. package/dist/chunks/KHR_materials_diffuse_transmission-BJY5giTc.esm.min.js.map +1 -0
  55. package/dist/chunks/KHR_materials_diffuse_transmission-DwFIB9fg.esm.js +97 -0
  56. package/dist/chunks/KHR_materials_diffuse_transmission-DwFIB9fg.esm.js.map +1 -0
  57. package/dist/chunks/KHR_materials_dispersion-5ELsBp34.esm.min.js +2 -0
  58. package/dist/chunks/KHR_materials_dispersion-5ELsBp34.esm.min.js.map +1 -0
  59. package/dist/chunks/KHR_materials_dispersion-CFS1T2yw.esm.js +62 -0
  60. package/dist/chunks/KHR_materials_dispersion-CFS1T2yw.esm.js.map +1 -0
  61. package/dist/chunks/KHR_materials_emissive_strength-BjBRYGm9.esm.js +55 -0
  62. package/dist/chunks/KHR_materials_emissive_strength-BjBRYGm9.esm.js.map +1 -0
  63. package/dist/chunks/KHR_materials_emissive_strength-CPQefGT0.esm.min.js +2 -0
  64. package/dist/chunks/KHR_materials_emissive_strength-CPQefGT0.esm.min.js.map +1 -0
  65. package/dist/chunks/KHR_materials_ior-COc1f40R.esm.min.js +2 -0
  66. package/dist/chunks/KHR_materials_ior-COc1f40R.esm.min.js.map +1 -0
  67. package/dist/chunks/KHR_materials_ior-DA7pWw9x.esm.js +64 -0
  68. package/dist/chunks/KHR_materials_ior-DA7pWw9x.esm.js.map +1 -0
  69. package/dist/chunks/KHR_materials_iridescence-C5zkC2Qa.esm.min.js +2 -0
  70. package/dist/chunks/KHR_materials_iridescence-C5zkC2Qa.esm.min.js.map +1 -0
  71. package/dist/chunks/KHR_materials_iridescence-CmvJW1oh.esm.js +72 -0
  72. package/dist/chunks/KHR_materials_iridescence-CmvJW1oh.esm.js.map +1 -0
  73. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-7VdedH19.esm.js +81 -0
  74. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-7VdedH19.esm.js.map +1 -0
  75. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CDCzt8M3.esm.min.js +2 -0
  76. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CDCzt8M3.esm.min.js.map +1 -0
  77. package/dist/chunks/KHR_materials_sheen-BFHRryyJ.esm.js +85 -0
  78. package/dist/chunks/KHR_materials_sheen-BFHRryyJ.esm.js.map +1 -0
  79. package/dist/chunks/KHR_materials_sheen-Dr_bKj0V.esm.min.js +2 -0
  80. package/dist/chunks/KHR_materials_sheen-Dr_bKj0V.esm.min.js.map +1 -0
  81. package/dist/chunks/KHR_materials_specular-CMp7dQ3N.esm.js +75 -0
  82. package/dist/chunks/KHR_materials_specular-CMp7dQ3N.esm.js.map +1 -0
  83. package/dist/chunks/KHR_materials_specular-Do-bJ9Tz.esm.min.js +2 -0
  84. package/dist/chunks/KHR_materials_specular-Do-bJ9Tz.esm.min.js.map +1 -0
  85. package/dist/chunks/KHR_materials_transmission-C8Na2aOr.esm.min.js +2 -0
  86. package/dist/chunks/KHR_materials_transmission-C8Na2aOr.esm.min.js.map +1 -0
  87. package/dist/chunks/KHR_materials_transmission-DiAYQhUP.esm.js +307 -0
  88. package/dist/chunks/KHR_materials_transmission-DiAYQhUP.esm.js.map +1 -0
  89. package/dist/chunks/KHR_materials_unlit-AqTZLxcL.esm.min.js +2 -0
  90. package/dist/chunks/KHR_materials_unlit-AqTZLxcL.esm.min.js.map +1 -0
  91. package/dist/chunks/KHR_materials_unlit-CwaIOdG_.esm.js +74 -0
  92. package/dist/chunks/KHR_materials_unlit-CwaIOdG_.esm.js.map +1 -0
  93. package/dist/chunks/KHR_materials_variants--8JMISBO.esm.js +238 -0
  94. package/dist/chunks/KHR_materials_variants--8JMISBO.esm.js.map +1 -0
  95. package/dist/chunks/KHR_materials_variants-CY2ksNW8.esm.min.js +2 -0
  96. package/dist/chunks/KHR_materials_variants-CY2ksNW8.esm.min.js.map +1 -0
  97. package/dist/chunks/KHR_materials_volume-16xOP2pG.esm.js +87 -0
  98. package/dist/chunks/KHR_materials_volume-16xOP2pG.esm.js.map +1 -0
  99. package/dist/chunks/KHR_materials_volume-eVBmT7Py.esm.min.js +2 -0
  100. package/dist/chunks/KHR_materials_volume-eVBmT7Py.esm.min.js.map +1 -0
  101. package/dist/chunks/KHR_mesh_quantization-CzxT4LfP.esm.min.js +2 -0
  102. package/dist/chunks/KHR_mesh_quantization-CzxT4LfP.esm.min.js.map +1 -0
  103. package/dist/chunks/KHR_mesh_quantization-DXlvMjPl.esm.js +26 -0
  104. package/dist/chunks/KHR_mesh_quantization-DXlvMjPl.esm.js.map +1 -0
  105. package/dist/chunks/KHR_texture_basisu-DwyvsvjH.esm.js +43 -0
  106. package/dist/chunks/KHR_texture_basisu-DwyvsvjH.esm.js.map +1 -0
  107. package/dist/chunks/KHR_texture_basisu-_W9Br-Jl.esm.min.js +2 -0
  108. package/dist/chunks/KHR_texture_basisu-_W9Br-Jl.esm.min.js.map +1 -0
  109. package/dist/chunks/KHR_texture_transform-BrggkZGk.esm.min.js +2 -0
  110. package/dist/chunks/KHR_texture_transform-BrggkZGk.esm.min.js.map +1 -0
  111. package/dist/chunks/KHR_texture_transform-C86eLMga.esm.js +63 -0
  112. package/dist/chunks/KHR_texture_transform-C86eLMga.esm.js.map +1 -0
  113. package/dist/chunks/KHR_xmp_json_ld-B4kyQRbU.esm.js +51 -0
  114. package/dist/chunks/KHR_xmp_json_ld-B4kyQRbU.esm.js.map +1 -0
  115. package/dist/chunks/KHR_xmp_json_ld-C3CU_p-l.esm.min.js +2 -0
  116. package/dist/chunks/KHR_xmp_json_ld-C3CU_p-l.esm.min.js.map +1 -0
  117. package/dist/chunks/MSFT_audio_emitter-B3Ta8qMN.esm.min.js +2 -0
  118. package/dist/chunks/MSFT_audio_emitter-B3Ta8qMN.esm.min.js.map +1 -0
  119. package/dist/chunks/MSFT_audio_emitter-D8nIcuBy.esm.js +2236 -0
  120. package/dist/chunks/MSFT_audio_emitter-D8nIcuBy.esm.js.map +1 -0
  121. package/dist/chunks/MSFT_lod-CEIzxRis.esm.js +337 -0
  122. package/dist/chunks/MSFT_lod-CEIzxRis.esm.js.map +1 -0
  123. package/dist/chunks/MSFT_lod-DZOikD8t.esm.min.js +2 -0
  124. package/dist/chunks/MSFT_lod-DZOikD8t.esm.min.js.map +1 -0
  125. package/dist/chunks/MSFT_minecraftMesh-B7vBtMTM.esm.js +46 -0
  126. package/dist/chunks/MSFT_minecraftMesh-B7vBtMTM.esm.js.map +1 -0
  127. package/dist/chunks/MSFT_minecraftMesh-DQCCOSGW.esm.min.js +2 -0
  128. package/dist/chunks/MSFT_minecraftMesh-DQCCOSGW.esm.min.js.map +1 -0
  129. package/dist/chunks/MSFT_sRGBFactors-ApBMqY9Y.esm.min.js +2 -0
  130. package/dist/chunks/MSFT_sRGBFactors-ApBMqY9Y.esm.min.js.map +1 -0
  131. package/dist/chunks/MSFT_sRGBFactors-DCyPuGAW.esm.js +47 -0
  132. package/dist/chunks/MSFT_sRGBFactors-DCyPuGAW.esm.js.map +1 -0
  133. package/dist/chunks/assetContainer-4Y8qxrkP.esm.min.js +2 -0
  134. package/dist/chunks/assetContainer-4Y8qxrkP.esm.min.js.map +1 -0
  135. package/dist/chunks/assetContainer-yduDDAg5.esm.js +1598 -0
  136. package/dist/chunks/assetContainer-yduDDAg5.esm.js.map +1 -0
  137. package/dist/chunks/audioEngine-B2lVczv1.esm.js +305 -0
  138. package/dist/chunks/audioEngine-B2lVczv1.esm.js.map +1 -0
  139. package/dist/chunks/audioEngine-BdTR6pZz.esm.min.js +2 -0
  140. package/dist/chunks/audioEngine-BdTR6pZz.esm.min.js.map +1 -0
  141. package/dist/chunks/bakedVertexAnimation-DVAdtwv1.esm.min.js +2 -0
  142. package/dist/chunks/bakedVertexAnimation-DVAdtwv1.esm.min.js.map +1 -0
  143. package/dist/chunks/bakedVertexAnimation-DeNM3h2Z.esm.js +119 -0
  144. package/dist/chunks/bakedVertexAnimation-DeNM3h2Z.esm.js.map +1 -0
  145. package/dist/chunks/basisTextureLoader-B0x2JhtN.esm.min.js +2 -0
  146. package/dist/chunks/basisTextureLoader-B0x2JhtN.esm.min.js.map +1 -0
  147. package/dist/chunks/basisTextureLoader-kG8CWoCn.esm.js +600 -0
  148. package/dist/chunks/basisTextureLoader-kG8CWoCn.esm.js.map +1 -0
  149. package/dist/chunks/dds-B4XmtkSp.esm.js +540 -0
  150. package/dist/chunks/dds-B4XmtkSp.esm.js.map +1 -0
  151. package/dist/chunks/dds-DeNz8hS-.esm.min.js +2 -0
  152. package/dist/chunks/dds-DeNz8hS-.esm.min.js.map +1 -0
  153. package/dist/chunks/ddsTextureLoader-BjLEbHHS.esm.js +88 -0
  154. package/dist/chunks/ddsTextureLoader-BjLEbHHS.esm.js.map +1 -0
  155. package/dist/chunks/ddsTextureLoader-D9FHqe-R.esm.min.js +2 -0
  156. package/dist/chunks/ddsTextureLoader-D9FHqe-R.esm.min.js.map +1 -0
  157. package/dist/chunks/decalFragment-BRIy9zMn.esm.min.js +2 -0
  158. package/dist/chunks/decalFragment-BRIy9zMn.esm.min.js.map +1 -0
  159. package/dist/chunks/decalFragment-DjXy6GUY.esm.js +18 -0
  160. package/dist/chunks/decalFragment-DjXy6GUY.esm.js.map +1 -0
  161. package/dist/chunks/default.fragment-BaBj8oN2.esm.js +515 -0
  162. package/dist/chunks/default.fragment-BaBj8oN2.esm.js.map +1 -0
  163. package/dist/chunks/default.fragment-C77QNDVC.esm.js +449 -0
  164. package/dist/chunks/default.fragment-C77QNDVC.esm.js.map +1 -0
  165. package/dist/chunks/default.fragment-CzYoM-ST.esm.min.js +2 -0
  166. package/dist/chunks/default.fragment-CzYoM-ST.esm.min.js.map +1 -0
  167. package/dist/chunks/default.fragment-D2M5EU_o.esm.min.js +2 -0
  168. package/dist/chunks/default.fragment-D2M5EU_o.esm.min.js.map +1 -0
  169. package/dist/chunks/default.vertex-BMMLYJyE.esm.min.js +2 -0
  170. package/dist/chunks/default.vertex-BMMLYJyE.esm.min.js.map +1 -0
  171. package/dist/chunks/default.vertex-CI6v3Y74.esm.js +199 -0
  172. package/dist/chunks/default.vertex-CI6v3Y74.esm.js.map +1 -0
  173. package/dist/chunks/default.vertex-DS3Btklm.esm.js +180 -0
  174. package/dist/chunks/default.vertex-DS3Btklm.esm.js.map +1 -0
  175. package/dist/chunks/default.vertex-sG6vJK6V.esm.min.js +2 -0
  176. package/dist/chunks/default.vertex-sG6vJK6V.esm.min.js.map +1 -0
  177. package/dist/chunks/defaultUboDeclaration-CfEdjUu2.esm.js +15 -0
  178. package/dist/chunks/defaultUboDeclaration-CfEdjUu2.esm.js.map +1 -0
  179. package/dist/chunks/defaultUboDeclaration-EXGQjmeR.esm.min.js +2 -0
  180. package/dist/chunks/defaultUboDeclaration-EXGQjmeR.esm.min.js.map +1 -0
  181. package/dist/chunks/defaultUboDeclaration-Qio0jGUO.esm.min.js +2 -0
  182. package/dist/chunks/defaultUboDeclaration-Qio0jGUO.esm.min.js.map +1 -0
  183. package/dist/chunks/defaultUboDeclaration-tUtq3goK.esm.js +13 -0
  184. package/dist/chunks/defaultUboDeclaration-tUtq3goK.esm.js.map +1 -0
  185. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
  186. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
  187. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
  188. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
  189. package/dist/chunks/dumpTools-BxY8w25M.esm.js +400 -0
  190. package/dist/chunks/dumpTools-BxY8w25M.esm.js.map +1 -0
  191. package/dist/chunks/dumpTools-Che-gwG7.esm.min.js +2 -0
  192. package/dist/chunks/dumpTools-Che-gwG7.esm.min.js.map +1 -0
  193. package/dist/chunks/engine-06Wd-_3h.esm.min.js +2 -0
  194. package/dist/chunks/engine-06Wd-_3h.esm.min.js.map +1 -0
  195. package/dist/chunks/engine-wEbS27-R.esm.js +2174 -0
  196. package/dist/chunks/engine-wEbS27-R.esm.js.map +1 -0
  197. package/dist/chunks/engine.common-BxiwlBr3.esm.min.js +2 -0
  198. package/dist/chunks/engine.common-BxiwlBr3.esm.min.js.map +1 -0
  199. package/dist/chunks/engine.common-DRFOWS2A.esm.js +1088 -0
  200. package/dist/chunks/engine.common-DRFOWS2A.esm.js.map +1 -0
  201. package/dist/chunks/envTextureLoader-Deb8hyWv.esm.js +64 -0
  202. package/dist/chunks/envTextureLoader-Deb8hyWv.esm.js.map +1 -0
  203. package/dist/chunks/envTextureLoader-nt7RB7jF.esm.min.js +2 -0
  204. package/dist/chunks/envTextureLoader-nt7RB7jF.esm.min.js.map +1 -0
  205. package/dist/chunks/environmentTextureTools-CnU6sdsm.esm.js +382 -0
  206. package/dist/chunks/environmentTextureTools-CnU6sdsm.esm.js.map +1 -0
  207. package/dist/chunks/environmentTextureTools-CqxQLfVS.esm.min.js +2 -0
  208. package/dist/chunks/environmentTextureTools-CqxQLfVS.esm.min.js.map +1 -0
  209. package/dist/chunks/exrTextureLoader-DgqYue7c.esm.min.js +2 -0
  210. package/dist/chunks/exrTextureLoader-DgqYue7c.esm.min.js.map +1 -0
  211. package/dist/chunks/exrTextureLoader-au_729k4.esm.js +1682 -0
  212. package/dist/chunks/exrTextureLoader-au_729k4.esm.js.map +1 -0
  213. package/dist/chunks/fogFragment-8tEI-kPW.esm.min.js +2 -0
  214. package/dist/chunks/fogFragment-8tEI-kPW.esm.min.js.map +1 -0
  215. package/dist/chunks/fogFragment-CULs-7PE.esm.js +102 -0
  216. package/dist/chunks/fogFragment-CULs-7PE.esm.js.map +1 -0
  217. package/dist/chunks/fresnelFunction-B4KI4E8h.esm.js +12 -0
  218. package/dist/chunks/fresnelFunction-B4KI4E8h.esm.js.map +1 -0
  219. package/dist/chunks/fresnelFunction-CeLpSg7g.esm.min.js +2 -0
  220. package/dist/chunks/fresnelFunction-CeLpSg7g.esm.min.js.map +1 -0
  221. package/dist/chunks/glTFLoader-BSsxhX_B.esm.js +7552 -0
  222. package/dist/chunks/glTFLoader-BSsxhX_B.esm.js.map +1 -0
  223. package/dist/chunks/glTFLoader-Cdf6EEh4.esm.min.js +2 -0
  224. package/dist/chunks/glTFLoader-Cdf6EEh4.esm.min.js.map +1 -0
  225. package/dist/chunks/glTFLoaderAnimation-KvPgN70Y.esm.min.js +2 -0
  226. package/dist/chunks/glTFLoaderAnimation-KvPgN70Y.esm.min.js.map +1 -0
  227. package/dist/chunks/glTFLoaderAnimation-vK1xPOOh.esm.js +77 -0
  228. package/dist/chunks/glTFLoaderAnimation-vK1xPOOh.esm.js.map +1 -0
  229. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
  230. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
  231. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
  232. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
  233. package/dist/chunks/harmonicsFunctions-CnvdxOXs.esm.min.js +2 -0
  234. package/dist/chunks/harmonicsFunctions-CnvdxOXs.esm.min.js.map +1 -0
  235. package/dist/chunks/harmonicsFunctions-CwZrA_es.esm.js +34 -0
  236. package/dist/chunks/harmonicsFunctions-CwZrA_es.esm.js.map +1 -0
  237. package/dist/chunks/harmonicsFunctions-D23NP4_R.esm.min.js +2 -0
  238. package/dist/chunks/harmonicsFunctions-D23NP4_R.esm.min.js.map +1 -0
  239. package/dist/chunks/harmonicsFunctions-DWAunDBq.esm.js +35 -0
  240. package/dist/chunks/harmonicsFunctions-DWAunDBq.esm.js.map +1 -0
  241. package/dist/chunks/hdrTextureLoader-BBszpiSE.esm.js +252 -0
  242. package/dist/chunks/hdrTextureLoader-BBszpiSE.esm.js.map +1 -0
  243. package/dist/chunks/hdrTextureLoader-DlqeGac5.esm.min.js +2 -0
  244. package/dist/chunks/hdrTextureLoader-DlqeGac5.esm.min.js.map +1 -0
  245. package/dist/chunks/helperFunctions-B-IxnCCi.esm.js +108 -0
  246. package/dist/chunks/helperFunctions-B-IxnCCi.esm.js.map +1 -0
  247. package/dist/chunks/helperFunctions-BJn_zA2T.esm.js +80 -0
  248. package/dist/chunks/helperFunctions-BJn_zA2T.esm.js.map +1 -0
  249. package/dist/chunks/helperFunctions-CdXvdI3d.esm.min.js +2 -0
  250. package/dist/chunks/helperFunctions-CdXvdI3d.esm.min.js.map +1 -0
  251. package/dist/chunks/helperFunctions-Cz2oFjJD.esm.min.js +2 -0
  252. package/dist/chunks/helperFunctions-Cz2oFjJD.esm.min.js.map +1 -0
  253. package/dist/chunks/index-DEZD8qGB.esm.min.js +57 -0
  254. package/dist/chunks/index-DEZD8qGB.esm.min.js.map +1 -0
  255. package/dist/chunks/index-rM42Fwtd.esm.js +73922 -0
  256. package/dist/chunks/index-rM42Fwtd.esm.js.map +1 -0
  257. package/dist/chunks/ktxTextureLoader-5XE4saqV.esm.min.js +2 -0
  258. package/dist/chunks/ktxTextureLoader-5XE4saqV.esm.min.js.map +1 -0
  259. package/dist/chunks/ktxTextureLoader-CzOXMl46.esm.js +814 -0
  260. package/dist/chunks/ktxTextureLoader-CzOXMl46.esm.js.map +1 -0
  261. package/dist/chunks/logDepthDeclaration-C1e5P6MP.esm.min.js +2 -0
  262. package/dist/chunks/logDepthDeclaration-C1e5P6MP.esm.min.js.map +1 -0
  263. package/dist/chunks/logDepthDeclaration-CP73F-Ht.esm.min.js +2 -0
  264. package/dist/chunks/logDepthDeclaration-CP73F-Ht.esm.min.js.map +1 -0
  265. package/dist/chunks/logDepthDeclaration-Cpcs5duV.esm.js +20 -0
  266. package/dist/chunks/logDepthDeclaration-Cpcs5duV.esm.js.map +1 -0
  267. package/dist/chunks/logDepthDeclaration-tZj2QrWI.esm.js +35 -0
  268. package/dist/chunks/logDepthDeclaration-tZj2QrWI.esm.js.map +1 -0
  269. package/dist/chunks/logDepthVertex-BHds0cL7.esm.min.js +2 -0
  270. package/dist/chunks/logDepthVertex-BHds0cL7.esm.min.js.map +1 -0
  271. package/dist/chunks/logDepthVertex-C77H-mUN.esm.js +77 -0
  272. package/dist/chunks/logDepthVertex-C77H-mUN.esm.js.map +1 -0
  273. package/dist/chunks/logDepthVertex-CRCv55t1.esm.min.js +2 -0
  274. package/dist/chunks/logDepthVertex-CRCv55t1.esm.min.js.map +1 -0
  275. package/dist/chunks/logDepthVertex-D71T3PUi.esm.js +488 -0
  276. package/dist/chunks/logDepthVertex-D71T3PUi.esm.js.map +1 -0
  277. package/dist/chunks/mainUVVaryingDeclaration-DH5Gw79d.esm.min.js +2 -0
  278. package/dist/chunks/mainUVVaryingDeclaration-DH5Gw79d.esm.min.js.map +1 -0
  279. package/dist/chunks/mainUVVaryingDeclaration-DjaUAU9d.esm.js +11 -0
  280. package/dist/chunks/mainUVVaryingDeclaration-DjaUAU9d.esm.js.map +1 -0
  281. package/dist/chunks/meshUboDeclaration-Dfhjtzfu.esm.js +24 -0
  282. package/dist/chunks/meshUboDeclaration-Dfhjtzfu.esm.js.map +1 -0
  283. package/dist/chunks/meshUboDeclaration-JuXAHT9v.esm.min.js +2 -0
  284. package/dist/chunks/meshUboDeclaration-JuXAHT9v.esm.min.js.map +1 -0
  285. package/dist/chunks/objFileLoader-7U6Dolv_.esm.js +1280 -0
  286. package/dist/chunks/objFileLoader-7U6Dolv_.esm.js.map +1 -0
  287. package/dist/chunks/objFileLoader-_Uh3sl5M.esm.min.js +2 -0
  288. package/dist/chunks/objFileLoader-_Uh3sl5M.esm.min.js.map +1 -0
  289. package/dist/chunks/oitFragment-B761cGSz.esm.js +1150 -0
  290. package/dist/chunks/oitFragment-B761cGSz.esm.js.map +1 -0
  291. package/dist/chunks/oitFragment-BEyzdlIX.esm.min.js +2 -0
  292. package/dist/chunks/oitFragment-BEyzdlIX.esm.min.js.map +1 -0
  293. package/dist/chunks/oitFragment-BJxddGxd.esm.min.js +2 -0
  294. package/dist/chunks/oitFragment-BJxddGxd.esm.min.js.map +1 -0
  295. package/dist/chunks/oitFragment-DxRU43Qk.esm.js +1210 -0
  296. package/dist/chunks/oitFragment-DxRU43Qk.esm.js.map +1 -0
  297. package/dist/chunks/pass.fragment-BezLFEaR.esm.min.js +2 -0
  298. package/dist/chunks/pass.fragment-BezLFEaR.esm.min.js.map +1 -0
  299. package/dist/chunks/pass.fragment-CI0Hbebv.esm.min.js +2 -0
  300. package/dist/chunks/pass.fragment-CI0Hbebv.esm.min.js.map +1 -0
  301. package/dist/chunks/pass.fragment-CKuTIGRc.esm.js +15 -0
  302. package/dist/chunks/pass.fragment-CKuTIGRc.esm.js.map +1 -0
  303. package/dist/chunks/pass.fragment-M4VAGwSP.esm.js +15 -0
  304. package/dist/chunks/pass.fragment-M4VAGwSP.esm.js.map +1 -0
  305. package/dist/chunks/pbr.fragment-BnTARhOZ.esm.js +3165 -0
  306. package/dist/chunks/pbr.fragment-BnTARhOZ.esm.js.map +1 -0
  307. package/dist/chunks/pbr.fragment-CFwXu2ZW.esm.min.js +2 -0
  308. package/dist/chunks/pbr.fragment-CFwXu2ZW.esm.min.js.map +1 -0
  309. package/dist/chunks/pbr.fragment-CZH3Z6Fz.esm.min.js +2 -0
  310. package/dist/chunks/pbr.fragment-CZH3Z6Fz.esm.min.js.map +1 -0
  311. package/dist/chunks/pbr.fragment-DXb2YUXa.esm.js +3219 -0
  312. package/dist/chunks/pbr.fragment-DXb2YUXa.esm.js.map +1 -0
  313. package/dist/chunks/pbr.vertex-B0UjdSCd.esm.min.js +2 -0
  314. package/dist/chunks/pbr.vertex-B0UjdSCd.esm.min.js.map +1 -0
  315. package/dist/chunks/pbr.vertex-BK-SOy7u.esm.js +210 -0
  316. package/dist/chunks/pbr.vertex-BK-SOy7u.esm.js.map +1 -0
  317. package/dist/chunks/pbr.vertex-BU96l1oL.esm.js +335 -0
  318. package/dist/chunks/pbr.vertex-BU96l1oL.esm.js.map +1 -0
  319. package/dist/chunks/pbr.vertex-BqZLjnyL.esm.min.js +2 -0
  320. package/dist/chunks/pbr.vertex-BqZLjnyL.esm.min.js.map +1 -0
  321. package/dist/chunks/postprocess.vertex-BXwgd-7B.esm.min.js +2 -0
  322. package/dist/chunks/postprocess.vertex-BXwgd-7B.esm.min.js.map +1 -0
  323. package/dist/chunks/postprocess.vertex-BbvDeWLH.esm.min.js +2 -0
  324. package/dist/chunks/postprocess.vertex-BbvDeWLH.esm.min.js.map +1 -0
  325. package/dist/chunks/postprocess.vertex-Ck5Z_51x.esm.js +20 -0
  326. package/dist/chunks/postprocess.vertex-Ck5Z_51x.esm.js.map +1 -0
  327. package/dist/chunks/postprocess.vertex-pT9f0tdJ.esm.js +18 -0
  328. package/dist/chunks/postprocess.vertex-pT9f0tdJ.esm.js.map +1 -0
  329. package/dist/chunks/rawTexture-1Rq8qsxm.esm.min.js +2 -0
  330. package/dist/chunks/rawTexture-1Rq8qsxm.esm.min.js.map +1 -0
  331. package/dist/chunks/rawTexture-D_BRK-o8.esm.js +191 -0
  332. package/dist/chunks/rawTexture-D_BRK-o8.esm.js.map +1 -0
  333. package/dist/chunks/rgbdDecode.fragment-BGF4g1hZ.esm.js +17 -0
  334. package/dist/chunks/rgbdDecode.fragment-BGF4g1hZ.esm.js.map +1 -0
  335. package/dist/chunks/rgbdDecode.fragment-C2vWUMvk.esm.js +17 -0
  336. package/dist/chunks/rgbdDecode.fragment-C2vWUMvk.esm.js.map +1 -0
  337. package/dist/chunks/rgbdDecode.fragment-Cf7oe5zh.esm.min.js +2 -0
  338. package/dist/chunks/rgbdDecode.fragment-Cf7oe5zh.esm.min.js.map +1 -0
  339. package/dist/chunks/rgbdDecode.fragment-CkuXLnPU.esm.min.js +2 -0
  340. package/dist/chunks/rgbdDecode.fragment-CkuXLnPU.esm.min.js.map +1 -0
  341. package/dist/chunks/rgbdEncode.fragment-D1q7KpIB.esm.min.js +2 -0
  342. package/dist/chunks/rgbdEncode.fragment-D1q7KpIB.esm.min.js.map +1 -0
  343. package/dist/chunks/rgbdEncode.fragment-DziyA8SH.esm.js +17 -0
  344. package/dist/chunks/rgbdEncode.fragment-DziyA8SH.esm.js.map +1 -0
  345. package/dist/chunks/rgbdEncode.fragment-EbVo_OS3.esm.min.js +2 -0
  346. package/dist/chunks/rgbdEncode.fragment-EbVo_OS3.esm.min.js.map +1 -0
  347. package/dist/chunks/rgbdEncode.fragment-O0WkfdaA.esm.js +17 -0
  348. package/dist/chunks/rgbdEncode.fragment-O0WkfdaA.esm.js.map +1 -0
  349. package/dist/chunks/splatFileLoader-Civo1vlZ.esm.min.js +2 -0
  350. package/dist/chunks/splatFileLoader-Civo1vlZ.esm.min.js.map +1 -0
  351. package/dist/chunks/splatFileLoader-D3Gb0TOq.esm.js +3202 -0
  352. package/dist/chunks/splatFileLoader-D3Gb0TOq.esm.js.map +1 -0
  353. package/dist/chunks/standardMaterial-C4ytj3UV.esm.min.js +2 -0
  354. package/dist/chunks/standardMaterial-C4ytj3UV.esm.min.js.map +1 -0
  355. package/dist/chunks/standardMaterial-Ds152YtF.esm.js +1809 -0
  356. package/dist/chunks/standardMaterial-Ds152YtF.esm.js.map +1 -0
  357. package/dist/chunks/stlFileLoader-DEyXKGGV.esm.js +237 -0
  358. package/dist/chunks/stlFileLoader-DEyXKGGV.esm.js.map +1 -0
  359. package/dist/chunks/stlFileLoader-O0L9MhOP.esm.min.js +2 -0
  360. package/dist/chunks/stlFileLoader-O0L9MhOP.esm.min.js.map +1 -0
  361. package/dist/chunks/tgaTextureLoader-2LzCuq-y.esm.min.js +2 -0
  362. package/dist/chunks/tgaTextureLoader-2LzCuq-y.esm.min.js.map +1 -0
  363. package/dist/chunks/tgaTextureLoader-C1ZPR3Z6.esm.js +349 -0
  364. package/dist/chunks/tgaTextureLoader-C1ZPR3Z6.esm.js.map +1 -0
  365. package/dist/chunks/thinEngine-DMsfsUJl.esm.min.js +2 -0
  366. package/dist/chunks/thinEngine-DMsfsUJl.esm.min.js.map +1 -0
  367. package/dist/chunks/thinEngine-Ka7-uzzY.esm.js +3721 -0
  368. package/dist/chunks/thinEngine-Ka7-uzzY.esm.js.map +1 -0
  369. package/dist/chunks/thinInstanceMesh-CnqlNkHp.esm.js +314 -0
  370. package/dist/chunks/thinInstanceMesh-CnqlNkHp.esm.js.map +1 -0
  371. package/dist/chunks/thinInstanceMesh-DvDlskuJ.esm.min.js +2 -0
  372. package/dist/chunks/thinInstanceMesh-DvDlskuJ.esm.min.js.map +1 -0
  373. package/dist/chunks/vertexColorMixing-6-uBAQ55.esm.js +528 -0
  374. package/dist/chunks/vertexColorMixing-6-uBAQ55.esm.js.map +1 -0
  375. package/dist/chunks/vertexColorMixing-BCQLn981.esm.min.js +2 -0
  376. package/dist/chunks/vertexColorMixing-BCQLn981.esm.min.js.map +1 -0
  377. package/dist/chunks/webgpuEngine-DWUcPn9n.esm.min.js +2 -0
  378. package/dist/chunks/webgpuEngine-DWUcPn9n.esm.min.js.map +1 -0
  379. package/dist/chunks/webgpuEngine-_VOc_CYS.esm.js +11170 -0
  380. package/dist/chunks/webgpuEngine-_VOc_CYS.esm.js.map +1 -0
  381. package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
  382. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
  383. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
  384. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
  385. package/lib/index.d.ts +281 -0
  386. package/lib/index.js +965 -0
  387. package/lib/index.js.map +1 -0
  388. package/package.json +17 -27
  389. package/readme.md +35 -21
  390. package/configuration/configuration.d.ts +0 -107
  391. package/configuration/configuration.js +0 -16
  392. package/configuration/configuration.js.map +0 -1
  393. package/configuration/configurationCompatibility.d.ts +0 -8
  394. package/configuration/configurationCompatibility.js +0 -66
  395. package/configuration/configurationCompatibility.js.map +0 -1
  396. package/configuration/configurationContainer.d.ts +0 -10
  397. package/configuration/configurationContainer.js +0 -10
  398. package/configuration/configurationContainer.js.map +0 -1
  399. package/configuration/globals.d.ts +0 -6
  400. package/configuration/globals.js +0 -18
  401. package/configuration/globals.js.map +0 -1
  402. package/configuration/index.d.ts +0 -2
  403. package/configuration/index.js +0 -4
  404. package/configuration/index.js.map +0 -1
  405. package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
  406. package/configuration/interfaces/cameraConfiguration.js +0 -2
  407. package/configuration/interfaces/cameraConfiguration.js.map +0 -1
  408. package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
  409. package/configuration/interfaces/colorGradingConfiguration.js +0 -2
  410. package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
  411. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
  412. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
  413. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
  414. package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
  415. package/configuration/interfaces/environmentMapConfiguration.js +0 -2
  416. package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
  417. package/configuration/interfaces/groundConfiguration.d.ts +0 -24
  418. package/configuration/interfaces/groundConfiguration.js +0 -2
  419. package/configuration/interfaces/groundConfiguration.js.map +0 -1
  420. package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
  421. package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
  422. package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
  423. package/configuration/interfaces/index.d.ts +0 -15
  424. package/configuration/interfaces/index.js +0 -16
  425. package/configuration/interfaces/index.js.map +0 -1
  426. package/configuration/interfaces/lightConfiguration.d.ts +0 -60
  427. package/configuration/interfaces/lightConfiguration.js +0 -2
  428. package/configuration/interfaces/lightConfiguration.js.map +0 -1
  429. package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
  430. package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
  431. package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
  432. package/configuration/interfaces/modelConfiguration.d.ts +0 -65
  433. package/configuration/interfaces/modelConfiguration.js +0 -2
  434. package/configuration/interfaces/modelConfiguration.js.map +0 -1
  435. package/configuration/interfaces/observersConfiguration.d.ts +0 -5
  436. package/configuration/interfaces/observersConfiguration.js +0 -2
  437. package/configuration/interfaces/observersConfiguration.js.map +0 -1
  438. package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
  439. package/configuration/interfaces/sceneConfiguration.js +0 -2
  440. package/configuration/interfaces/sceneConfiguration.js.map +0 -1
  441. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
  442. package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
  443. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
  444. package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
  445. package/configuration/interfaces/skyboxConfiguration.js +0 -2
  446. package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
  447. package/configuration/interfaces/templateConfiguration.d.ts +0 -67
  448. package/configuration/interfaces/templateConfiguration.js +0 -2
  449. package/configuration/interfaces/templateConfiguration.js.map +0 -1
  450. package/configuration/interfaces/vrConfiguration.d.ts +0 -16
  451. package/configuration/interfaces/vrConfiguration.js +0 -2
  452. package/configuration/interfaces/vrConfiguration.js.map +0 -1
  453. package/configuration/loader.d.ts +0 -4
  454. package/configuration/loader.js +0 -17
  455. package/configuration/loader.js.map +0 -1
  456. package/configuration/mappers.d.ts +0 -43
  457. package/configuration/mappers.js +0 -192
  458. package/configuration/mappers.js.map +0 -1
  459. package/configuration/renderOnlyLoader.d.ts +0 -33
  460. package/configuration/renderOnlyLoader.js +0 -162
  461. package/configuration/renderOnlyLoader.js.map +0 -1
  462. package/configuration/types/default.d.ts +0 -6
  463. package/configuration/types/default.js +0 -121
  464. package/configuration/types/default.js.map +0 -1
  465. package/configuration/types/environmentMap.d.ts +0 -5
  466. package/configuration/types/environmentMap.js +0 -14
  467. package/configuration/types/environmentMap.js.map +0 -1
  468. package/configuration/types/extended.d.ts +0 -6
  469. package/configuration/types/extended.js +0 -317
  470. package/configuration/types/extended.js.map +0 -1
  471. package/configuration/types/index.d.ts +0 -14
  472. package/configuration/types/index.js +0 -51
  473. package/configuration/types/index.js.map +0 -1
  474. package/configuration/types/minimal.d.ts +0 -6
  475. package/configuration/types/minimal.js +0 -43
  476. package/configuration/types/minimal.js.map +0 -1
  477. package/configuration/types/renderOnlyDefault.d.ts +0 -30
  478. package/configuration/types/renderOnlyDefault.js +0 -31
  479. package/configuration/types/renderOnlyDefault.js.map +0 -1
  480. package/configuration/types/shadowLight.d.ts +0 -9
  481. package/configuration/types/shadowLight.js +0 -64
  482. package/configuration/types/shadowLight.js.map +0 -1
  483. package/helper/index.d.ts +0 -29
  484. package/helper/index.js +0 -66
  485. package/helper/index.js.map +0 -1
  486. package/index.d.ts +0 -30
  487. package/index.js +0 -46
  488. package/index.js.map +0 -1
  489. package/initializer.d.ts +0 -11
  490. package/initializer.js +0 -35
  491. package/initializer.js.map +0 -1
  492. package/interfaces.d.ts +0 -5
  493. package/interfaces.js +0 -7
  494. package/interfaces.js.map +0 -1
  495. package/labs/environmentSerializer.d.ts +0 -126
  496. package/labs/environmentSerializer.js +0 -191
  497. package/labs/environmentSerializer.js.map +0 -1
  498. package/labs/texture.d.ts +0 -183
  499. package/labs/texture.js +0 -350
  500. package/labs/texture.js.map +0 -1
  501. package/labs/viewerLabs.d.ts +0 -51
  502. package/labs/viewerLabs.js +0 -134
  503. package/labs/viewerLabs.js.map +0 -1
  504. package/loader/modelLoader.d.ts +0 -56
  505. package/loader/modelLoader.js +0 -199
  506. package/loader/modelLoader.js.map +0 -1
  507. package/loader/plugins/applyMaterialConfig.d.ts +0 -12
  508. package/loader/plugins/applyMaterialConfig.js +0 -16
  509. package/loader/plugins/applyMaterialConfig.js.map +0 -1
  510. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
  511. package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
  512. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
  513. package/loader/plugins/index.d.ts +0 -19
  514. package/loader/plugins/index.js +0 -44
  515. package/loader/plugins/index.js.map +0 -1
  516. package/loader/plugins/loaderPlugin.d.ts +0 -24
  517. package/loader/plugins/loaderPlugin.js +0 -2
  518. package/loader/plugins/loaderPlugin.js.map +0 -1
  519. package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
  520. package/loader/plugins/msftLodLoaderPlugin.js +0 -21
  521. package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
  522. package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
  523. package/loader/plugins/telemetryLoaderPlugin.js +0 -36
  524. package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
  525. package/managers/observablesManager.d.ts +0 -66
  526. package/managers/observablesManager.js +0 -35
  527. package/managers/observablesManager.js.map +0 -1
  528. package/managers/sceneManager.d.ts +0 -245
  529. package/managers/sceneManager.js +0 -1375
  530. package/managers/sceneManager.js.map +0 -1
  531. package/managers/telemetryManager.d.ts +0 -78
  532. package/managers/telemetryManager.js +0 -117
  533. package/managers/telemetryManager.js.map +0 -1
  534. package/model/modelAnimation.d.ts +0 -215
  535. package/model/modelAnimation.js +0 -237
  536. package/model/modelAnimation.js.map +0 -1
  537. package/model/viewerModel.d.ts +0 -233
  538. package/model/viewerModel.js +0 -673
  539. package/model/viewerModel.js.map +0 -1
  540. package/optimizer/custom/extended.d.ts +0 -13
  541. package/optimizer/custom/extended.js +0 -101
  542. package/optimizer/custom/extended.js.map +0 -1
  543. package/optimizer/custom/index.d.ts +0 -9
  544. package/optimizer/custom/index.js +0 -26
  545. package/optimizer/custom/index.js.map +0 -1
  546. package/renderOnlyIndex.d.ts +0 -11
  547. package/renderOnlyIndex.js +0 -18
  548. package/renderOnlyIndex.js.map +0 -1
  549. package/templating/eventManager.d.ts +0 -35
  550. package/templating/eventManager.js +0 -66
  551. package/templating/eventManager.js.map +0 -1
  552. package/templating/plugins/hdButtonPlugin.d.ts +0 -9
  553. package/templating/plugins/hdButtonPlugin.js +0 -21
  554. package/templating/plugins/hdButtonPlugin.js.map +0 -1
  555. package/templating/plugins/printButton.d.ts +0 -9
  556. package/templating/plugins/printButton.js +0 -40
  557. package/templating/plugins/printButton.js.map +0 -1
  558. package/templating/templateManager.d.ts +0 -197
  559. package/templating/templateManager.js +0 -561
  560. package/templating/templateManager.js.map +0 -1
  561. package/templating/viewerTemplatePlugin.d.ts +0 -21
  562. package/templating/viewerTemplatePlugin.js +0 -69
  563. package/templating/viewerTemplatePlugin.js.map +0 -1
  564. package/viewer/defaultViewer.d.ts +0 -130
  565. package/viewer/defaultViewer.js +0 -675
  566. package/viewer/defaultViewer.js.map +0 -1
  567. package/viewer/renderOnlyViewer.d.ts +0 -9
  568. package/viewer/renderOnlyViewer.js +0 -46
  569. package/viewer/renderOnlyViewer.js.map +0 -1
  570. package/viewer/viewer.d.ts +0 -258
  571. package/viewer/viewer.js +0 -783
  572. package/viewer/viewer.js.map +0 -1
  573. package/viewer/viewerManager.d.ts +0 -58
  574. package/viewer/viewerManager.js +0 -91
  575. package/viewer/viewerManager.js.map +0 -1
  576. package/viewer/viewerWithTemplate.d.ts +0 -9
  577. package/viewer/viewerWithTemplate.js +0 -20
  578. package/viewer/viewerWithTemplate.js.map +0 -1
@@ -1,675 +0,0 @@
1
- import { __awaiter, __extends, __generator } from "@babylonjs/core/tslib.es6.js";
2
- import { TemplateManager } from "../templating/templateManager.js";
3
- import { FilesInput } from "@babylonjs/core/Misc/filesInput.js";
4
- import { SpotLight } from "@babylonjs/core/Lights/spotLight.js";
5
- import { Vector3 } from "@babylonjs/core/Maths/math.js";
6
- import { AbstractViewerWithTemplate } from "./viewerWithTemplate.js";
7
- import { StandardMaterial } from "@babylonjs/core/Materials/standardMaterial.js";
8
- import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js";
9
- // eslint-disable-next-line import/no-internal-modules
10
- import { extendClassWithConfig } from "../helper/index.js";
11
- import { AnimationState } from "../model/modelAnimation.js";
12
- import { HDButtonPlugin } from "../templating/plugins/hdButtonPlugin.js";
13
- import { PrintButtonPlugin } from "../templating/plugins/printButton.js";
14
- import { Logger } from "@babylonjs/core/Misc/logger.js";
15
- import "@babylonjs/core/Lights/Shadows/shadowGeneratorSceneComponent.js";
16
- /**
17
- * The Default viewer is the default implementation of the AbstractViewer.
18
- * It uses the templating system to render a new canvas and controls.
19
- */
20
- var DefaultViewer = /** @class */ (function (_super) {
21
- __extends(DefaultViewer, _super);
22
- /**
23
- * Create a new default viewer
24
- * @param containerElement the element in which the templates will be rendered
25
- * @param initialConfiguration the initial configuration. Defaults to extending the default configuration
26
- */
27
- function DefaultViewer(containerElement, initialConfiguration) {
28
- if (initialConfiguration === void 0) { initialConfiguration = { extends: "default" }; }
29
- var _this = _super.call(this, containerElement, initialConfiguration) || this;
30
- _this.containerElement = containerElement;
31
- _this._registeredPlugins = [];
32
- _this._handlePointerClick = function (event) {
33
- var pointerDown = event.event;
34
- if (pointerDown.button !== 0) {
35
- return;
36
- }
37
- var element = event.event.target;
38
- if (!element) {
39
- return;
40
- }
41
- var parentClasses = element.parentElement.classList;
42
- var elementClasses = element.classList;
43
- var elementName = "";
44
- for (var i = 0; i < elementClasses.length; ++i) {
45
- var className = elementClasses[i];
46
- if (className.indexOf("-button") !== -1 || className.indexOf("-wrapper") !== -1) {
47
- elementName = className;
48
- break;
49
- }
50
- }
51
- switch (elementName) {
52
- case "speed-button":
53
- case "types-button":
54
- if (parentClasses.contains("open")) {
55
- parentClasses.remove("open");
56
- }
57
- else {
58
- parentClasses.add("open");
59
- }
60
- break;
61
- case "play-pause-button":
62
- _this._togglePlayPause();
63
- break;
64
- case "label-option-button": {
65
- var value = element.dataset["value"];
66
- var label = element.querySelector("span.animation-label");
67
- if (label && value) {
68
- _this._updateAnimationType({ value: value.trim(), label: label.innerHTML });
69
- }
70
- break;
71
- }
72
- case "speed-option-button": {
73
- if (!_this._currentAnimation) {
74
- return;
75
- }
76
- var speed = element.dataset["value"];
77
- if (speed) {
78
- _this._updateAnimationSpeed(speed);
79
- }
80
- break;
81
- }
82
- case "progress-wrapper":
83
- _this._resumePlay = !_this._isAnimationPaused;
84
- if (_this._resumePlay) {
85
- _this._togglePlayPause(true);
86
- }
87
- break;
88
- case "fullscreen-button":
89
- _this.toggleFullscreen();
90
- break;
91
- case "vr-button":
92
- _this.toggleVR();
93
- break;
94
- default:
95
- return;
96
- }
97
- };
98
- /**
99
- * Plays or Pauses animation
100
- * @param noUiUpdate
101
- */
102
- _this._togglePlayPause = function (noUiUpdate) {
103
- if (!_this._currentAnimation) {
104
- return;
105
- }
106
- if (_this._isAnimationPaused) {
107
- _this._currentAnimation.restart();
108
- }
109
- else {
110
- _this._currentAnimation.pause();
111
- }
112
- _this._isAnimationPaused = !_this._isAnimationPaused;
113
- if (noUiUpdate) {
114
- return;
115
- }
116
- var navbar = _this.templateManager.getTemplate("navBar");
117
- if (!navbar) {
118
- return;
119
- }
120
- navbar.updateParams({
121
- paused: _this._isAnimationPaused,
122
- });
123
- };
124
- /**
125
- * Control progress bar position based on animation current frame
126
- */
127
- _this._updateProgressBar = function () {
128
- var navbar = _this.templateManager.getTemplate("navBar");
129
- if (!navbar) {
130
- return;
131
- }
132
- var progressSlider = navbar.parent.querySelector("input.progress-wrapper");
133
- if (progressSlider && _this._currentAnimation) {
134
- var progress = (_this._currentAnimation.currentFrame / _this._currentAnimation.frames) * 100;
135
- var currentValue = progressSlider.valueAsNumber;
136
- if (Math.abs(currentValue - progress) > 0.5) {
137
- // Only move if greater than a 1% change
138
- progressSlider.value = "" + progress;
139
- }
140
- if (_this._currentAnimation.state === AnimationState.PLAYING) {
141
- if (_this.sceneManager.camera.autoRotationBehavior && !_this._oldIdleRotationValue) {
142
- _this._oldIdleRotationValue = _this.sceneManager.camera.autoRotationBehavior.idleRotationSpeed;
143
- _this.sceneManager.camera.autoRotationBehavior.idleRotationSpeed = 0;
144
- }
145
- }
146
- else {
147
- if (_this.sceneManager.camera.autoRotationBehavior && _this._oldIdleRotationValue) {
148
- _this.sceneManager.camera.autoRotationBehavior.idleRotationSpeed = _this._oldIdleRotationValue;
149
- _this._oldIdleRotationValue = 0;
150
- }
151
- }
152
- }
153
- };
154
- /**
155
- * Update Current Animation Speed
156
- * @param speed
157
- * @param paramsObject
158
- */
159
- _this._updateAnimationSpeed = function (speed, paramsObject) {
160
- var navbar = _this.templateManager.getTemplate("navBar");
161
- if (!navbar) {
162
- return;
163
- }
164
- if (speed && _this._currentAnimation) {
165
- _this._currentAnimation.speedRatio = parseFloat(speed);
166
- if (!_this._isAnimationPaused) {
167
- _this._currentAnimation.restart();
168
- }
169
- if (paramsObject) {
170
- paramsObject.selectedSpeed = speed + "x";
171
- }
172
- else {
173
- navbar.updateParams({
174
- selectedSpeed: speed + "x",
175
- });
176
- }
177
- }
178
- };
179
- /**
180
- * Update Current Animation Type
181
- * @param data
182
- * @param data.label
183
- * @param data.value
184
- * @param paramsObject
185
- */
186
- _this._updateAnimationType = function (data, paramsObject) {
187
- var navbar = _this.templateManager.getTemplate("navBar");
188
- if (!navbar) {
189
- return;
190
- }
191
- if (data) {
192
- _this._currentAnimation = _this.sceneManager.models[0].setCurrentAnimationByName(data.value);
193
- }
194
- if (paramsObject) {
195
- paramsObject.selectedAnimation = _this._animationList.indexOf(data.value) + 1;
196
- paramsObject.selectedAnimationName = data.label;
197
- }
198
- else {
199
- navbar.updateParams({
200
- selectedAnimation: _this._animationList.indexOf(data.value) + 1,
201
- selectedAnimationName: data.label,
202
- });
203
- }
204
- _this._updateAnimationSpeed("1.0", paramsObject);
205
- };
206
- /**
207
- * Toggle fullscreen of the entire viewer
208
- */
209
- _this.toggleFullscreen = function () {
210
- var viewerTemplate = _this.templateManager.getTemplate("viewer");
211
- var viewerElement = viewerTemplate && viewerTemplate.parent;
212
- var fullscreenElement = _this.fullscreenElement || viewerElement;
213
- if (fullscreenElement) {
214
- var currentElement = document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;
215
- if (!currentElement) {
216
- var requestFullScreen = fullscreenElement.requestFullscreen ||
217
- fullscreenElement.webkitRequestFullscreen ||
218
- fullscreenElement.msRequestFullscreen ||
219
- fullscreenElement.mozRequestFullScreen;
220
- requestFullScreen.call(fullscreenElement);
221
- if (viewerElement) {
222
- viewerElement.classList.add("in-fullscreen");
223
- }
224
- }
225
- else {
226
- var exitFullscreen = document.exitFullscreen || document.webkitExitFullscreen || document.msExitFullscreen || document.mozCancelFullScreen;
227
- exitFullscreen.call(document);
228
- if (viewerElement) {
229
- viewerElement.classList.remove("in-fullscreen");
230
- }
231
- }
232
- }
233
- };
234
- _this._onModelLoaded = function (model) {
235
- _this._configureTemplate(model);
236
- // with a short timeout, making sure everything is there already.
237
- var hideLoadingDelay = 20;
238
- if (_this.configuration.lab && _this.configuration.lab.hideLoadingDelay !== undefined) {
239
- hideLoadingDelay = _this.configuration.lab.hideLoadingDelay;
240
- }
241
- setTimeout(function () {
242
- _this.sceneManager.scene.executeWhenReady(function () {
243
- _this.hideLoadingScreen();
244
- });
245
- }, hideLoadingDelay);
246
- return;
247
- };
248
- _this.onModelLoadedObservable.add(_this._onModelLoaded);
249
- _this.onModelRemovedObservable.add(function () {
250
- _this._configureTemplate();
251
- });
252
- _this.onEngineInitObservable.add(function () {
253
- _this.sceneManager.onLightsConfiguredObservable.add(function () {
254
- _this._configureLights();
255
- });
256
- _this.sceneManager.setDefaultMaterial = function (sceneConfig) {
257
- var conf = sceneConfig.defaultMaterial;
258
- if (!conf) {
259
- return;
260
- }
261
- if ((conf.materialType === "standard" && this.scene.defaultMaterial.getClassName() !== "StandardMaterial") ||
262
- (conf.materialType === "pbr" && this.scene.defaultMaterial.getClassName() !== "PBRMaterial")) {
263
- this.scene.defaultMaterial.dispose();
264
- if (conf.materialType === "standard") {
265
- this.scene.defaultMaterial = new StandardMaterial("defaultMaterial", this.scene);
266
- }
267
- else {
268
- this.scene.defaultMaterial = new PBRMaterial("defaultMaterial", this.scene);
269
- }
270
- }
271
- extendClassWithConfig(this.scene.defaultMaterial, conf);
272
- };
273
- if (!_this.sceneManager.models.length) {
274
- _this.hideLoadingScreen();
275
- }
276
- });
277
- return _this;
278
- }
279
- DefaultViewer.prototype.registerTemplatePlugin = function (plugin) {
280
- var _this = this;
281
- //validate
282
- if (!plugin.templateName) {
283
- throw new Error("No template name provided");
284
- }
285
- this._registeredPlugins.push(plugin);
286
- var template = this.templateManager.getTemplate(plugin.templateName);
287
- if (!template) {
288
- throw new Error("Template ".concat(plugin.templateName, " not found"));
289
- }
290
- if (plugin.addHTMLTemplate) {
291
- template.onHTMLRendered.add(function (tmpl) {
292
- plugin.addHTMLTemplate(tmpl);
293
- });
294
- template.redraw();
295
- }
296
- if (plugin.eventsToAttach) {
297
- plugin.eventsToAttach.forEach(function (eventName) {
298
- plugin.onEvent &&
299
- _this.templateManager.eventManager.registerCallback(plugin.templateName, function (event) {
300
- if (plugin.onEvent && plugin.interactionPredicate(event)) {
301
- plugin.onEvent(event);
302
- }
303
- }, eventName);
304
- });
305
- }
306
- };
307
- /**
308
- * This will be executed when the templates initialize.
309
- * @returns a promise that will be resolved when the templates are loaded
310
- */
311
- DefaultViewer.prototype._onTemplatesLoaded = function () {
312
- var _this = this;
313
- this.showLoadingScreen();
314
- // navbar
315
- this._initNavbar();
316
- // close overlay button
317
- var template = this.templateManager.getTemplate("overlay");
318
- if (template) {
319
- var closeButton = template.parent.querySelector(".close-button");
320
- if (closeButton) {
321
- closeButton.addEventListener("pointerdown", function () {
322
- _this.hideOverlayScreen();
323
- });
324
- }
325
- }
326
- if (this.configuration.templates && this.configuration.templates.viewer) {
327
- if (this.configuration.templates.viewer.params && this.configuration.templates.viewer.params.enableDragAndDrop) {
328
- this.onSceneInitObservable.addOnce(function () {
329
- var filesInput = new FilesInput(_this.engine, _this.sceneManager.scene, function () { }, function () { }, function () { }, function () { }, function () { }, function (file) {
330
- _this.loadModel(file);
331
- }, function () { });
332
- filesInput.monitorElementForDragNDrop(_this.templateManager.getCanvas());
333
- });
334
- }
335
- }
336
- return _super.prototype._onTemplatesLoaded.call(this);
337
- };
338
- DefaultViewer.prototype._initNavbar = function () {
339
- var _this = this;
340
- var navbar = this.templateManager.getTemplate("navBar");
341
- if (navbar) {
342
- this.onFrameRenderedObservable.add(this._updateProgressBar);
343
- this.templateManager.eventManager.registerCallback("navBar", this._handlePointerClick, "click");
344
- // an example how to trigger the help button. publiclly available
345
- this.templateManager.eventManager.registerCallback("navBar", function () {
346
- // do your thing
347
- }, "pointerdown", ".help-button");
348
- this.templateManager.eventManager.registerCallback("navBar", function (event) {
349
- var evt = event.event;
350
- var element = evt.target;
351
- if (!_this._currentAnimation) {
352
- return;
353
- }
354
- var gotoFrame = (+element.value / 100) * _this._currentAnimation.frames;
355
- if (isNaN(gotoFrame)) {
356
- return;
357
- }
358
- _this._currentAnimation.goToFrame(gotoFrame);
359
- }, "input");
360
- this.templateManager.eventManager.registerCallback("navBar", function () {
361
- if (_this._resumePlay) {
362
- _this._togglePlayPause(true);
363
- }
364
- _this._resumePlay = false;
365
- }, "pointerup", ".progress-wrapper");
366
- if (window.devicePixelRatio === 1 && navbar.configuration.params && !navbar.configuration.params.hideHdButton) {
367
- navbar.updateParams({
368
- hideHdButton: true,
369
- });
370
- }
371
- this.registerTemplatePlugin(new HDButtonPlugin(this));
372
- this.registerTemplatePlugin(new PrintButtonPlugin(this));
373
- }
374
- };
375
- DefaultViewer.prototype._initVR = function () {
376
- var _this = this;
377
- if (this.sceneManager.vrHelper) {
378
- // due to the way the experience helper is exisintg VR, this must be added.
379
- this.sceneManager.vrHelper.onExitingVR.add(function () {
380
- var viewerTemplate = _this.templateManager.getTemplate("viewer");
381
- var viewerElement = viewerTemplate && viewerTemplate.parent;
382
- if (viewerElement) {
383
- viewerElement.classList.remove("in-vr");
384
- }
385
- });
386
- }
387
- _super.prototype._initVR.call(this);
388
- };
389
- /**
390
- * Preparing the container element to present the viewer
391
- */
392
- DefaultViewer.prototype._prepareContainerElement = function () {
393
- var htmlElement = this.containerElement;
394
- if (htmlElement.style) {
395
- htmlElement.style.position = "relative";
396
- htmlElement.style.height = "100%";
397
- htmlElement.style.display = "flex";
398
- }
399
- };
400
- /**
401
- * This function will configure the templates and update them after a model was loaded
402
- * It is mainly responsible to changing the title and subtitle etc'.
403
- * @param model the model to be used to configure the templates by
404
- */
405
- DefaultViewer.prototype._configureTemplate = function (model) {
406
- var navbar = this.templateManager.getTemplate("navBar");
407
- if (!navbar) {
408
- return;
409
- }
410
- var newParams = navbar.configuration.params || {};
411
- if (!model) {
412
- newParams.animations = null;
413
- }
414
- else {
415
- var animationNames = model.getAnimationNames();
416
- newParams.animations = animationNames.map(function (a) {
417
- return { label: a, value: a };
418
- });
419
- if (animationNames.length) {
420
- this._isAnimationPaused = (model.configuration.animation && !model.configuration.animation.autoStart) || !model.configuration.animation;
421
- this._animationList = animationNames;
422
- newParams.paused = this._isAnimationPaused;
423
- var animationIndex = 0;
424
- if (model.configuration.animation && typeof model.configuration.animation.autoStart === "string") {
425
- animationIndex = animationNames.indexOf(model.configuration.animation.autoStart);
426
- if (animationIndex === -1) {
427
- animationIndex = 0;
428
- }
429
- }
430
- this._updateAnimationType(newParams.animations[animationIndex], newParams);
431
- }
432
- else {
433
- newParams.animations = null;
434
- }
435
- if (model.configuration.thumbnail) {
436
- newParams.logoImage = model.configuration.thumbnail;
437
- }
438
- }
439
- navbar.updateParams(newParams, false);
440
- };
441
- /**
442
- * This will load a new model to the default viewer
443
- * overriding the AbstractViewer's loadModel.
444
- * The scene will automatically be cleared of the old models, if exist.
445
- * @param model the configuration object (or URL) to load.
446
- * @returns a promise that will be resolved when the model is loaded
447
- */
448
- DefaultViewer.prototype.loadModel = function (model) {
449
- return __awaiter(this, void 0, void 0, function () {
450
- var error_1;
451
- return __generator(this, function (_a) {
452
- switch (_a.label) {
453
- case 0:
454
- if (!model) {
455
- model = this.configuration.model;
456
- }
457
- this.showLoadingScreen();
458
- _a.label = 1;
459
- case 1:
460
- _a.trys.push([1, 3, , 5]);
461
- return [4 /*yield*/, _super.prototype.loadModel.call(this, model, true)];
462
- case 2: return [2 /*return*/, _a.sent()];
463
- case 3:
464
- error_1 = _a.sent();
465
- Logger.Log(error_1);
466
- this.hideLoadingScreen();
467
- this.showOverlayScreen("error");
468
- return [4 /*yield*/, Promise.reject(error_1)];
469
- case 4: return [2 /*return*/, _a.sent()];
470
- case 5: return [2 /*return*/];
471
- }
472
- });
473
- });
474
- };
475
- /**
476
- * Show the overlay and the defined sub-screen.
477
- * Mainly used for help and errors
478
- * @param subScreen the name of the subScreen. Those can be defined in the configuration object
479
- * @returns a promise that will be resolved when the overlay is shown
480
- */
481
- DefaultViewer.prototype.showOverlayScreen = function (subScreen) {
482
- var _this = this;
483
- var template = this.templateManager.getTemplate("overlay");
484
- if (!template) {
485
- return Promise.resolve("Overlay template not found");
486
- }
487
- return template.show(function (template) {
488
- var canvasRect = _this.containerElement.getBoundingClientRect();
489
- template.parent.style.display = "flex";
490
- template.parent.style.width = canvasRect.width + "px";
491
- template.parent.style.height = canvasRect.height + "px";
492
- template.parent.style.opacity = "1";
493
- var subTemplate = _this.templateManager.getTemplate(subScreen);
494
- if (!subTemplate) {
495
- return Promise.reject(subScreen + " template not found");
496
- }
497
- return subTemplate.show(function (template) {
498
- template.parent.style.display = "flex";
499
- return Promise.resolve(template);
500
- });
501
- });
502
- };
503
- /**
504
- * Hide the overlay screen.
505
- * @returns a promise that will be resolved when the overlay is hidden
506
- */
507
- DefaultViewer.prototype.hideOverlayScreen = function () {
508
- var template = this.templateManager.getTemplate("overlay");
509
- if (!template) {
510
- return Promise.resolve("Overlay template not found");
511
- }
512
- return template.hide(function (template) {
513
- template.parent.style.opacity = "0";
514
- var onTransitionEnd = function () {
515
- template.parent.removeEventListener("transitionend", onTransitionEnd);
516
- template.parent.style.display = "none";
517
- };
518
- template.parent.addEventListener("transitionend", onTransitionEnd);
519
- var overlays = template.parent.querySelectorAll(".overlay");
520
- if (overlays) {
521
- for (var i = 0; i < overlays.length; ++i) {
522
- var htmlElement = overlays.item(i);
523
- htmlElement.style.display = "none";
524
- }
525
- }
526
- return Promise.resolve(template);
527
- });
528
- };
529
- /**
530
- * show the viewer (in case it was hidden)
531
- *
532
- * @param visibilityFunction an optional function to execute in order to show the container
533
- * @returns a promise that will be resolved when the viewer is shown
534
- */
535
- DefaultViewer.prototype.show = function (visibilityFunction) {
536
- var template = this.templateManager.getTemplate("main");
537
- //not possible, but yet:
538
- if (!template) {
539
- return Promise.reject("Main template not found");
540
- }
541
- return template.show(visibilityFunction);
542
- };
543
- /**
544
- * hide the viewer (in case it is visible)
545
- *
546
- * @param visibilityFunction an optional function to execute in order to hide the container
547
- * @returns a promise that will be resolved when the viewer is hidden
548
- */
549
- DefaultViewer.prototype.hide = function (visibilityFunction) {
550
- var template = this.templateManager.getTemplate("main");
551
- //not possible, but yet:
552
- if (!template) {
553
- return Promise.reject("Main template not found");
554
- }
555
- return template.hide(visibilityFunction);
556
- };
557
- /**
558
- * Show the loading screen.
559
- * The loading screen can be configured using the configuration object
560
- * @returns a promise that will be resolved when the loading screen is shown
561
- */
562
- DefaultViewer.prototype.showLoadingScreen = function () {
563
- var _this = this;
564
- var template = this.templateManager.getTemplate("loadingScreen");
565
- if (!template) {
566
- return Promise.resolve("Loading Screen template not found");
567
- }
568
- return template.show(function (template) {
569
- var canvasRect = _this.containerElement.getBoundingClientRect();
570
- // var canvasPositioning = window.getComputedStyle(this.containerElement).position;
571
- template.parent.style.display = "flex";
572
- template.parent.style.width = canvasRect.width + "px";
573
- template.parent.style.height = canvasRect.height + "px";
574
- template.parent.style.opacity = "1";
575
- // from the configuration!!!
576
- var color = "black";
577
- if (_this.configuration.templates && _this.configuration.templates.loadingScreen) {
578
- color = (_this.configuration.templates.loadingScreen.params && _this.configuration.templates.loadingScreen.params.backgroundColor) || color;
579
- }
580
- template.parent.style.backgroundColor = color;
581
- return Promise.resolve(template);
582
- });
583
- };
584
- /**
585
- * Hide the loading screen
586
- * @returns a promise that will be resolved when the loading screen is hidden
587
- */
588
- DefaultViewer.prototype.hideLoadingScreen = function () {
589
- var template = this.templateManager.getTemplate("loadingScreen");
590
- if (!template) {
591
- return Promise.resolve("Loading Screen template not found");
592
- }
593
- return template.hide(function (template) {
594
- template.parent.style.opacity = "0";
595
- var onTransitionEnd = function () {
596
- template.parent.removeEventListener("transitionend", onTransitionEnd);
597
- template.parent.style.display = "none";
598
- };
599
- template.parent.addEventListener("transitionend", onTransitionEnd);
600
- return Promise.resolve(template);
601
- });
602
- };
603
- DefaultViewer.prototype.dispose = function () {
604
- this.templateManager.dispose();
605
- _super.prototype.dispose.call(this);
606
- };
607
- DefaultViewer.prototype._onConfigurationLoaded = function (configuration) {
608
- var _this = this;
609
- _super.prototype._onConfigurationLoaded.call(this, configuration);
610
- this.templateManager = new TemplateManager(this.containerElement);
611
- // initialize the templates
612
- var templateConfiguration = this.configuration.templates || {};
613
- this.templateManager.initTemplate(templateConfiguration);
614
- // when done, execute onTemplatesLoaded()
615
- this.templateManager.onAllLoaded.add(function () {
616
- var canvas = _this.templateManager.getCanvas();
617
- if (canvas) {
618
- _this._canvas = canvas;
619
- }
620
- _this._onTemplateLoaded();
621
- });
622
- };
623
- /**
624
- * An extension of the light configuration of the abstract viewer.
625
- */
626
- DefaultViewer.prototype._configureLights = function () {
627
- var _this = this;
628
- // labs feature - flashlight
629
- if (this.configuration.lab && this.configuration.lab.flashlight) {
630
- var lightTarget_1;
631
- var angle = 0.5;
632
- var exponent = Math.PI / 2;
633
- if (typeof this.configuration.lab.flashlight === "object") {
634
- exponent = this.configuration.lab.flashlight.exponent || exponent;
635
- angle = this.configuration.lab.flashlight.angle || angle;
636
- }
637
- var flashlight_1 = new SpotLight("flashlight", Vector3.Zero(), Vector3.Zero(), exponent, angle, this.sceneManager.scene);
638
- if (typeof this.configuration.lab.flashlight === "object") {
639
- flashlight_1.intensity = this.configuration.lab.flashlight.intensity || flashlight_1.intensity;
640
- if (this.configuration.lab.flashlight.diffuse) {
641
- flashlight_1.diffuse.r = this.configuration.lab.flashlight.diffuse.r;
642
- flashlight_1.diffuse.g = this.configuration.lab.flashlight.diffuse.g;
643
- flashlight_1.diffuse.b = this.configuration.lab.flashlight.diffuse.b;
644
- }
645
- if (this.configuration.lab.flashlight.specular) {
646
- flashlight_1.specular.r = this.configuration.lab.flashlight.specular.r;
647
- flashlight_1.specular.g = this.configuration.lab.flashlight.specular.g;
648
- flashlight_1.specular.b = this.configuration.lab.flashlight.specular.b;
649
- }
650
- }
651
- this.sceneManager.scene.constantlyUpdateMeshUnderPointer = true;
652
- this.sceneManager.scene.onPointerObservable.add(function (eventData) {
653
- if (eventData.type === 4 && eventData.pickInfo) {
654
- lightTarget_1 = eventData.pickInfo.pickedPoint;
655
- }
656
- else {
657
- lightTarget_1 = undefined;
658
- }
659
- });
660
- var updateFlashlightFunction = function () {
661
- if (_this.sceneManager.camera && flashlight_1) {
662
- flashlight_1.position.copyFrom(_this.sceneManager.camera.position);
663
- if (lightTarget_1) {
664
- lightTarget_1.subtractToRef(flashlight_1.position, flashlight_1.direction);
665
- }
666
- }
667
- };
668
- this.sceneManager.scene.registerBeforeRender(updateFlashlightFunction);
669
- this._registeredOnBeforeRenderFunctions.push(updateFlashlightFunction);
670
- }
671
- };
672
- return DefaultViewer;
673
- }(AbstractViewerWithTemplate));
674
- export { DefaultViewer };
675
- //# sourceMappingURL=defaultViewer.js.map