@babylonjs/viewer 7.27.3 → 7.28.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 (587) hide show
  1. package/assets/photoStudio.env +0 -0
  2. package/dist/babylon-viewer.esm.js +2 -0
  3. package/dist/babylon-viewer.esm.js.map +1 -0
  4. package/dist/babylon-viewer.esm.min.js +2 -0
  5. package/dist/babylon-viewer.esm.min.js.map +1 -0
  6. package/dist/chunks/EXT_lights_image_based-3eXoqwff.esm.min.js +2 -0
  7. package/dist/chunks/EXT_lights_image_based-3eXoqwff.esm.min.js.map +1 -0
  8. package/dist/chunks/EXT_lights_image_based-DgCGZ2BG.esm.js +172 -0
  9. package/dist/chunks/EXT_lights_image_based-DgCGZ2BG.esm.js.map +1 -0
  10. package/dist/chunks/EXT_mesh_gpu_instancing-UFRD8RET.esm.js +86 -0
  11. package/dist/chunks/EXT_mesh_gpu_instancing-UFRD8RET.esm.js.map +1 -0
  12. package/dist/chunks/EXT_mesh_gpu_instancing-jLXZLcnP.esm.min.js +2 -0
  13. package/dist/chunks/EXT_mesh_gpu_instancing-jLXZLcnP.esm.min.js.map +1 -0
  14. package/dist/chunks/EXT_meshopt_compression-2itUWj1c.esm.js +134 -0
  15. package/dist/chunks/EXT_meshopt_compression-2itUWj1c.esm.js.map +1 -0
  16. package/dist/chunks/EXT_meshopt_compression-COSiPUUL.esm.min.js +2 -0
  17. package/dist/chunks/EXT_meshopt_compression-COSiPUUL.esm.min.js.map +1 -0
  18. package/dist/chunks/EXT_texture_avif-DDk0j61R.esm.js +44 -0
  19. package/dist/chunks/EXT_texture_avif-DDk0j61R.esm.js.map +1 -0
  20. package/dist/chunks/EXT_texture_avif-S53GgWUZ.esm.min.js +2 -0
  21. package/dist/chunks/EXT_texture_avif-S53GgWUZ.esm.min.js.map +1 -0
  22. package/dist/chunks/EXT_texture_webp-C9RawsOL.esm.js +43 -0
  23. package/dist/chunks/EXT_texture_webp-C9RawsOL.esm.js.map +1 -0
  24. package/dist/chunks/EXT_texture_webp-D2XKcbvR.esm.min.js +2 -0
  25. package/dist/chunks/EXT_texture_webp-D2XKcbvR.esm.min.js.map +1 -0
  26. package/dist/chunks/ExtrasAsMetadata-CT2uMzBs.esm.js +64 -0
  27. package/dist/chunks/ExtrasAsMetadata-CT2uMzBs.esm.js.map +1 -0
  28. package/dist/chunks/ExtrasAsMetadata-CTQija-r.esm.min.js +2 -0
  29. package/dist/chunks/ExtrasAsMetadata-CTQija-r.esm.min.js.map +1 -0
  30. package/dist/chunks/KHR_animation_pointer-BRkXpXY_.esm.min.js +2 -0
  31. package/dist/chunks/KHR_animation_pointer-BRkXpXY_.esm.min.js.map +1 -0
  32. package/dist/chunks/KHR_animation_pointer-DrPB7NZz.esm.js +343 -0
  33. package/dist/chunks/KHR_animation_pointer-DrPB7NZz.esm.js.map +1 -0
  34. package/dist/chunks/KHR_draco_mesh_compression-3KGuSXAA.esm.min.js +2 -0
  35. package/dist/chunks/KHR_draco_mesh_compression-3KGuSXAA.esm.min.js.map +1 -0
  36. package/dist/chunks/KHR_draco_mesh_compression-CwTlj-Hp.esm.js +610 -0
  37. package/dist/chunks/KHR_draco_mesh_compression-CwTlj-Hp.esm.js.map +1 -0
  38. package/dist/chunks/KHR_interactivity-CPooex_D.esm.js +4033 -0
  39. package/dist/chunks/KHR_interactivity-CPooex_D.esm.js.map +1 -0
  40. package/dist/chunks/KHR_interactivity-CjtTFwNc.esm.min.js +2 -0
  41. package/dist/chunks/KHR_interactivity-CjtTFwNc.esm.min.js.map +1 -0
  42. package/dist/chunks/KHR_lights_punctual-CE_Pbomw.esm.js +1253 -0
  43. package/dist/chunks/KHR_lights_punctual-CE_Pbomw.esm.js.map +1 -0
  44. package/dist/chunks/KHR_lights_punctual-MUrTncyq.esm.min.js +2 -0
  45. package/dist/chunks/KHR_lights_punctual-MUrTncyq.esm.min.js.map +1 -0
  46. package/dist/chunks/KHR_materials_anisotropy-DcEIoErr.esm.js +64 -0
  47. package/dist/chunks/KHR_materials_anisotropy-DcEIoErr.esm.js.map +1 -0
  48. package/dist/chunks/KHR_materials_anisotropy-U-61ECua.esm.min.js +2 -0
  49. package/dist/chunks/KHR_materials_anisotropy-U-61ECua.esm.min.js.map +1 -0
  50. package/dist/chunks/KHR_materials_clearcoat-CtK90V8c.esm.js +96 -0
  51. package/dist/chunks/KHR_materials_clearcoat-CtK90V8c.esm.js.map +1 -0
  52. package/dist/chunks/KHR_materials_clearcoat-DMi2rgcw.esm.min.js +2 -0
  53. package/dist/chunks/KHR_materials_clearcoat-DMi2rgcw.esm.min.js.map +1 -0
  54. package/dist/chunks/KHR_materials_diffuse_transmission-BwohhmnH.esm.js +97 -0
  55. package/dist/chunks/KHR_materials_diffuse_transmission-BwohhmnH.esm.js.map +1 -0
  56. package/dist/chunks/KHR_materials_diffuse_transmission-aRFTAZnS.esm.min.js +2 -0
  57. package/dist/chunks/KHR_materials_diffuse_transmission-aRFTAZnS.esm.min.js.map +1 -0
  58. package/dist/chunks/KHR_materials_dispersion-C0sb52Jw.esm.js +62 -0
  59. package/dist/chunks/KHR_materials_dispersion-C0sb52Jw.esm.js.map +1 -0
  60. package/dist/chunks/KHR_materials_dispersion-C4HCJyeO.esm.min.js +2 -0
  61. package/dist/chunks/KHR_materials_dispersion-C4HCJyeO.esm.min.js.map +1 -0
  62. package/dist/chunks/KHR_materials_emissive_strength-CthUQnvM.esm.js +55 -0
  63. package/dist/chunks/KHR_materials_emissive_strength-CthUQnvM.esm.js.map +1 -0
  64. package/dist/chunks/KHR_materials_emissive_strength-L5aAyvqr.esm.min.js +2 -0
  65. package/dist/chunks/KHR_materials_emissive_strength-L5aAyvqr.esm.min.js.map +1 -0
  66. package/dist/chunks/KHR_materials_ior-BSUtCKDf.esm.js +64 -0
  67. package/dist/chunks/KHR_materials_ior-BSUtCKDf.esm.js.map +1 -0
  68. package/dist/chunks/KHR_materials_ior-DAKNR7z-.esm.min.js +2 -0
  69. package/dist/chunks/KHR_materials_ior-DAKNR7z-.esm.min.js.map +1 -0
  70. package/dist/chunks/KHR_materials_iridescence-BjLvEtdQ.esm.min.js +2 -0
  71. package/dist/chunks/KHR_materials_iridescence-BjLvEtdQ.esm.min.js.map +1 -0
  72. package/dist/chunks/KHR_materials_iridescence-CQ-o2Qag.esm.js +72 -0
  73. package/dist/chunks/KHR_materials_iridescence-CQ-o2Qag.esm.js.map +1 -0
  74. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Cx8AsXK8.esm.min.js +2 -0
  75. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Cx8AsXK8.esm.min.js.map +1 -0
  76. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-iQiy6qp4.esm.js +81 -0
  77. package/dist/chunks/KHR_materials_pbrSpecularGlossiness-iQiy6qp4.esm.js.map +1 -0
  78. package/dist/chunks/KHR_materials_sheen-CQkrxBFM.esm.min.js +2 -0
  79. package/dist/chunks/KHR_materials_sheen-CQkrxBFM.esm.min.js.map +1 -0
  80. package/dist/chunks/KHR_materials_sheen-IPqZM4PN.esm.js +85 -0
  81. package/dist/chunks/KHR_materials_sheen-IPqZM4PN.esm.js.map +1 -0
  82. package/dist/chunks/KHR_materials_specular-BkCr8Zv5.esm.js +75 -0
  83. package/dist/chunks/KHR_materials_specular-BkCr8Zv5.esm.js.map +1 -0
  84. package/dist/chunks/KHR_materials_specular-CVIDVIZl.esm.min.js +2 -0
  85. package/dist/chunks/KHR_materials_specular-CVIDVIZl.esm.min.js.map +1 -0
  86. package/dist/chunks/KHR_materials_transmission--XYp5qZT.esm.min.js +2 -0
  87. package/dist/chunks/KHR_materials_transmission--XYp5qZT.esm.min.js.map +1 -0
  88. package/dist/chunks/KHR_materials_transmission-C5q0bJ71.esm.js +307 -0
  89. package/dist/chunks/KHR_materials_transmission-C5q0bJ71.esm.js.map +1 -0
  90. package/dist/chunks/KHR_materials_unlit-C_0UOWUu.esm.min.js +2 -0
  91. package/dist/chunks/KHR_materials_unlit-C_0UOWUu.esm.min.js.map +1 -0
  92. package/dist/chunks/KHR_materials_unlit-qnEYXc2y.esm.js +74 -0
  93. package/dist/chunks/KHR_materials_unlit-qnEYXc2y.esm.js.map +1 -0
  94. package/dist/chunks/KHR_materials_variants-CXJiHSOj.esm.js +238 -0
  95. package/dist/chunks/KHR_materials_variants-CXJiHSOj.esm.js.map +1 -0
  96. package/dist/chunks/KHR_materials_variants-DYis5Tv2.esm.min.js +2 -0
  97. package/dist/chunks/KHR_materials_variants-DYis5Tv2.esm.min.js.map +1 -0
  98. package/dist/chunks/KHR_materials_volume-BfwkCW5U.esm.min.js +2 -0
  99. package/dist/chunks/KHR_materials_volume-BfwkCW5U.esm.min.js.map +1 -0
  100. package/dist/chunks/KHR_materials_volume-DjJClxGQ.esm.js +87 -0
  101. package/dist/chunks/KHR_materials_volume-DjJClxGQ.esm.js.map +1 -0
  102. package/dist/chunks/KHR_mesh_quantization-BVjp41hH.esm.js +26 -0
  103. package/dist/chunks/KHR_mesh_quantization-BVjp41hH.esm.js.map +1 -0
  104. package/dist/chunks/KHR_mesh_quantization-Bs1ERLau.esm.min.js +2 -0
  105. package/dist/chunks/KHR_mesh_quantization-Bs1ERLau.esm.min.js.map +1 -0
  106. package/dist/chunks/KHR_texture_basisu-CX4ZwCxA.esm.min.js +2 -0
  107. package/dist/chunks/KHR_texture_basisu-CX4ZwCxA.esm.min.js.map +1 -0
  108. package/dist/chunks/KHR_texture_basisu-DpzoPKaR.esm.js +43 -0
  109. package/dist/chunks/KHR_texture_basisu-DpzoPKaR.esm.js.map +1 -0
  110. package/dist/chunks/KHR_texture_transform-BYTNC2PZ.esm.js +63 -0
  111. package/dist/chunks/KHR_texture_transform-BYTNC2PZ.esm.js.map +1 -0
  112. package/dist/chunks/KHR_texture_transform-D2gSKYqq.esm.min.js +2 -0
  113. package/dist/chunks/KHR_texture_transform-D2gSKYqq.esm.min.js.map +1 -0
  114. package/dist/chunks/KHR_xmp_json_ld-B9p_mnIE.esm.min.js +2 -0
  115. package/dist/chunks/KHR_xmp_json_ld-B9p_mnIE.esm.min.js.map +1 -0
  116. package/dist/chunks/KHR_xmp_json_ld-yryfql1G.esm.js +51 -0
  117. package/dist/chunks/KHR_xmp_json_ld-yryfql1G.esm.js.map +1 -0
  118. package/dist/chunks/MSFT_audio_emitter-CsMdhXHJ.esm.min.js +2 -0
  119. package/dist/chunks/MSFT_audio_emitter-CsMdhXHJ.esm.min.js.map +1 -0
  120. package/dist/chunks/MSFT_audio_emitter-bdzRBwn5.esm.js +2207 -0
  121. package/dist/chunks/MSFT_audio_emitter-bdzRBwn5.esm.js.map +1 -0
  122. package/dist/chunks/MSFT_lod-CRv-taiG.esm.js +337 -0
  123. package/dist/chunks/MSFT_lod-CRv-taiG.esm.js.map +1 -0
  124. package/dist/chunks/MSFT_lod-DY6GwVy6.esm.min.js +2 -0
  125. package/dist/chunks/MSFT_lod-DY6GwVy6.esm.min.js.map +1 -0
  126. package/dist/chunks/MSFT_minecraftMesh-BKt5AmWl.esm.js +46 -0
  127. package/dist/chunks/MSFT_minecraftMesh-BKt5AmWl.esm.js.map +1 -0
  128. package/dist/chunks/MSFT_minecraftMesh-Dt7wMpY2.esm.min.js +2 -0
  129. package/dist/chunks/MSFT_minecraftMesh-Dt7wMpY2.esm.min.js.map +1 -0
  130. package/dist/chunks/MSFT_sRGBFactors-72Bu-2h1.esm.min.js +2 -0
  131. package/dist/chunks/MSFT_sRGBFactors-72Bu-2h1.esm.min.js.map +1 -0
  132. package/dist/chunks/MSFT_sRGBFactors-BbWdK1_1.esm.js +47 -0
  133. package/dist/chunks/MSFT_sRGBFactors-BbWdK1_1.esm.js.map +1 -0
  134. package/dist/chunks/animationGroup-Cnv-QRPm.esm.js +2479 -0
  135. package/dist/chunks/animationGroup-Cnv-QRPm.esm.js.map +1 -0
  136. package/dist/chunks/animationGroup-Dj6g76i_.esm.min.js +2 -0
  137. package/dist/chunks/animationGroup-Dj6g76i_.esm.min.js.map +1 -0
  138. package/dist/chunks/assetContainer-C-F4HA2b.esm.js +1720 -0
  139. package/dist/chunks/assetContainer-C-F4HA2b.esm.js.map +1 -0
  140. package/dist/chunks/assetContainer-yzkL3HL9.esm.min.js +2 -0
  141. package/dist/chunks/assetContainer-yzkL3HL9.esm.min.js.map +1 -0
  142. package/dist/chunks/audioEngine-2xiZaVR-.esm.min.js +2 -0
  143. package/dist/chunks/audioEngine-2xiZaVR-.esm.min.js.map +1 -0
  144. package/dist/chunks/audioEngine-Cx0ma7EX.esm.js +305 -0
  145. package/dist/chunks/audioEngine-Cx0ma7EX.esm.js.map +1 -0
  146. package/dist/chunks/bakedVertexAnimation-ANJNS_Pv.esm.min.js +2 -0
  147. package/dist/chunks/bakedVertexAnimation-ANJNS_Pv.esm.min.js.map +1 -0
  148. package/dist/chunks/bakedVertexAnimation-CxyFWdGx.esm.js +119 -0
  149. package/dist/chunks/bakedVertexAnimation-CxyFWdGx.esm.js.map +1 -0
  150. package/dist/chunks/basisTextureLoader-BwtYdV_P.esm.js +600 -0
  151. package/dist/chunks/basisTextureLoader-BwtYdV_P.esm.js.map +1 -0
  152. package/dist/chunks/basisTextureLoader-Dq_XBlPR.esm.min.js +2 -0
  153. package/dist/chunks/basisTextureLoader-Dq_XBlPR.esm.min.js.map +1 -0
  154. package/dist/chunks/dds-D5OqOLui.esm.js +540 -0
  155. package/dist/chunks/dds-D5OqOLui.esm.js.map +1 -0
  156. package/dist/chunks/dds-DK9ShfvY.esm.min.js +2 -0
  157. package/dist/chunks/dds-DK9ShfvY.esm.min.js.map +1 -0
  158. package/dist/chunks/ddsTextureLoader-2ezzl3nq.esm.js +88 -0
  159. package/dist/chunks/ddsTextureLoader-2ezzl3nq.esm.js.map +1 -0
  160. package/dist/chunks/ddsTextureLoader-C3o86gMM.esm.min.js +2 -0
  161. package/dist/chunks/ddsTextureLoader-C3o86gMM.esm.min.js.map +1 -0
  162. package/dist/chunks/decalFragment-Drag0mRm.esm.js +18 -0
  163. package/dist/chunks/decalFragment-Drag0mRm.esm.js.map +1 -0
  164. package/dist/chunks/decalFragment-I7zHHg4g.esm.min.js +2 -0
  165. package/dist/chunks/decalFragment-I7zHHg4g.esm.min.js.map +1 -0
  166. package/dist/chunks/default.fragment-C757ivRm.esm.min.js +2 -0
  167. package/dist/chunks/default.fragment-C757ivRm.esm.min.js.map +1 -0
  168. package/dist/chunks/default.fragment-CBCZy0zH.esm.js +515 -0
  169. package/dist/chunks/default.fragment-CBCZy0zH.esm.js.map +1 -0
  170. package/dist/chunks/default.fragment-CxhchRBe.esm.min.js +2 -0
  171. package/dist/chunks/default.fragment-CxhchRBe.esm.min.js.map +1 -0
  172. package/dist/chunks/default.fragment-vJeaqi0K.esm.js +449 -0
  173. package/dist/chunks/default.fragment-vJeaqi0K.esm.js.map +1 -0
  174. package/dist/chunks/default.vertex-CyPWwm-H.esm.min.js +2 -0
  175. package/dist/chunks/default.vertex-CyPWwm-H.esm.min.js.map +1 -0
  176. package/dist/chunks/default.vertex-DKlAQm_v.esm.min.js +2 -0
  177. package/dist/chunks/default.vertex-DKlAQm_v.esm.min.js.map +1 -0
  178. package/dist/chunks/default.vertex-EbP94etr.esm.js +199 -0
  179. package/dist/chunks/default.vertex-EbP94etr.esm.js.map +1 -0
  180. package/dist/chunks/default.vertex-sXmCc1dY.esm.js +180 -0
  181. package/dist/chunks/default.vertex-sXmCc1dY.esm.js.map +1 -0
  182. package/dist/chunks/defaultUboDeclaration-C3pnDAEV.esm.min.js +2 -0
  183. package/dist/chunks/defaultUboDeclaration-C3pnDAEV.esm.min.js.map +1 -0
  184. package/dist/chunks/defaultUboDeclaration-DKQWE8MQ.esm.min.js +2 -0
  185. package/dist/chunks/defaultUboDeclaration-DKQWE8MQ.esm.min.js.map +1 -0
  186. package/dist/chunks/defaultUboDeclaration-DjoMGLp2.esm.js +13 -0
  187. package/dist/chunks/defaultUboDeclaration-DjoMGLp2.esm.js.map +1 -0
  188. package/dist/chunks/defaultUboDeclaration-HaQvlp0b.esm.js +15 -0
  189. package/dist/chunks/defaultUboDeclaration-HaQvlp0b.esm.js.map +1 -0
  190. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
  191. package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
  192. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
  193. package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
  194. package/dist/chunks/dumpTools-8Kbuuv_t.esm.js +401 -0
  195. package/dist/chunks/dumpTools-8Kbuuv_t.esm.js.map +1 -0
  196. package/dist/chunks/dumpTools-BQULMnHn.esm.min.js +2 -0
  197. package/dist/chunks/dumpTools-BQULMnHn.esm.min.js.map +1 -0
  198. package/dist/chunks/engine-R8ufvngA.esm.js +2174 -0
  199. package/dist/chunks/engine-R8ufvngA.esm.js.map +1 -0
  200. package/dist/chunks/engine-j0ie5u4Y.esm.min.js +2 -0
  201. package/dist/chunks/engine-j0ie5u4Y.esm.min.js.map +1 -0
  202. package/dist/chunks/engine.common-DW5fOVN3.esm.min.js +2 -0
  203. package/dist/chunks/engine.common-DW5fOVN3.esm.min.js.map +1 -0
  204. package/dist/chunks/engine.common-buSIz8Ev.esm.js +1088 -0
  205. package/dist/chunks/engine.common-buSIz8Ev.esm.js.map +1 -0
  206. package/dist/chunks/envTextureLoader-B6pcDqsM.esm.min.js +2 -0
  207. package/dist/chunks/envTextureLoader-B6pcDqsM.esm.min.js.map +1 -0
  208. package/dist/chunks/envTextureLoader-CGhTHASj.esm.js +65 -0
  209. package/dist/chunks/envTextureLoader-CGhTHASj.esm.js.map +1 -0
  210. package/dist/chunks/environmentTextureTools-BDGuP88l.esm.js +382 -0
  211. package/dist/chunks/environmentTextureTools-BDGuP88l.esm.js.map +1 -0
  212. package/dist/chunks/environmentTextureTools-BT0gE-EJ.esm.min.js +2 -0
  213. package/dist/chunks/environmentTextureTools-BT0gE-EJ.esm.min.js.map +1 -0
  214. package/dist/chunks/exrTextureLoader-CN5dc0n8.esm.min.js +2 -0
  215. package/dist/chunks/exrTextureLoader-CN5dc0n8.esm.min.js.map +1 -0
  216. package/dist/chunks/exrTextureLoader-CYQnUrVl.esm.js +1682 -0
  217. package/dist/chunks/exrTextureLoader-CYQnUrVl.esm.js.map +1 -0
  218. package/dist/chunks/fogFragment-6FnKPxpy.esm.min.js +2 -0
  219. package/dist/chunks/fogFragment-6FnKPxpy.esm.min.js.map +1 -0
  220. package/dist/chunks/fogFragment-CizzLpaY.esm.js +102 -0
  221. package/dist/chunks/fogFragment-CizzLpaY.esm.js.map +1 -0
  222. package/dist/chunks/fresnelFunction-B6mPA48a.esm.min.js +2 -0
  223. package/dist/chunks/fresnelFunction-B6mPA48a.esm.min.js.map +1 -0
  224. package/dist/chunks/fresnelFunction-DVso4sEr.esm.js +12 -0
  225. package/dist/chunks/fresnelFunction-DVso4sEr.esm.js.map +1 -0
  226. package/dist/chunks/glTFLoader-CEQKEyEA.esm.min.js +2 -0
  227. package/dist/chunks/glTFLoader-CEQKEyEA.esm.min.js.map +1 -0
  228. package/dist/chunks/glTFLoader-ht4lq0nT.esm.js +7563 -0
  229. package/dist/chunks/glTFLoader-ht4lq0nT.esm.js.map +1 -0
  230. package/dist/chunks/glTFLoaderAnimation-C5YcVTsA.esm.min.js +2 -0
  231. package/dist/chunks/glTFLoaderAnimation-C5YcVTsA.esm.min.js.map +1 -0
  232. package/dist/chunks/glTFLoaderAnimation-DcmHMDkS.esm.js +77 -0
  233. package/dist/chunks/glTFLoaderAnimation-DcmHMDkS.esm.js.map +1 -0
  234. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
  235. package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
  236. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
  237. package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
  238. package/dist/chunks/harmonicsFunctions-BPx91vrF.esm.min.js +2 -0
  239. package/dist/chunks/harmonicsFunctions-BPx91vrF.esm.min.js.map +1 -0
  240. package/dist/chunks/harmonicsFunctions-D3SGmS-X.esm.js +35 -0
  241. package/dist/chunks/harmonicsFunctions-D3SGmS-X.esm.js.map +1 -0
  242. package/dist/chunks/harmonicsFunctions-DCor55C8.esm.js +34 -0
  243. package/dist/chunks/harmonicsFunctions-DCor55C8.esm.js.map +1 -0
  244. package/dist/chunks/harmonicsFunctions-m8lNczKz.esm.min.js +2 -0
  245. package/dist/chunks/harmonicsFunctions-m8lNczKz.esm.min.js.map +1 -0
  246. package/dist/chunks/hdrTextureLoader-CQcm6tqX.esm.js +252 -0
  247. package/dist/chunks/hdrTextureLoader-CQcm6tqX.esm.js.map +1 -0
  248. package/dist/chunks/hdrTextureLoader-DTzTMrfG.esm.min.js +2 -0
  249. package/dist/chunks/hdrTextureLoader-DTzTMrfG.esm.min.js.map +1 -0
  250. package/dist/chunks/helperFunctions-CQ8qVahI.esm.js +80 -0
  251. package/dist/chunks/helperFunctions-CQ8qVahI.esm.js.map +1 -0
  252. package/dist/chunks/helperFunctions-CZxhBJEB.esm.min.js +2 -0
  253. package/dist/chunks/helperFunctions-CZxhBJEB.esm.min.js.map +1 -0
  254. package/dist/chunks/helperFunctions-HLM-sI3x.esm.min.js +2 -0
  255. package/dist/chunks/helperFunctions-HLM-sI3x.esm.min.js.map +1 -0
  256. package/dist/chunks/helperFunctions-wENQHUG-.esm.js +108 -0
  257. package/dist/chunks/helperFunctions-wENQHUG-.esm.js.map +1 -0
  258. package/dist/chunks/index-BC5LF5i9.esm.min.js +57 -0
  259. package/dist/chunks/index-BC5LF5i9.esm.min.js.map +1 -0
  260. package/dist/chunks/index-D0E1moDr.esm.js +71434 -0
  261. package/dist/chunks/index-D0E1moDr.esm.js.map +1 -0
  262. package/dist/chunks/ktxTextureLoader-DuEV4loQ.esm.min.js +2 -0
  263. package/dist/chunks/ktxTextureLoader-DuEV4loQ.esm.min.js.map +1 -0
  264. package/dist/chunks/ktxTextureLoader-Dwzkv6L3.esm.js +814 -0
  265. package/dist/chunks/ktxTextureLoader-Dwzkv6L3.esm.js.map +1 -0
  266. package/dist/chunks/logDepthDeclaration-BiRU-jkq.esm.js +20 -0
  267. package/dist/chunks/logDepthDeclaration-BiRU-jkq.esm.js.map +1 -0
  268. package/dist/chunks/logDepthDeclaration-CgsbzCKe.esm.js +35 -0
  269. package/dist/chunks/logDepthDeclaration-CgsbzCKe.esm.js.map +1 -0
  270. package/dist/chunks/logDepthDeclaration-D5PPo0wt.esm.min.js +2 -0
  271. package/dist/chunks/logDepthDeclaration-D5PPo0wt.esm.min.js.map +1 -0
  272. package/dist/chunks/logDepthDeclaration-p80kxWvc.esm.min.js +2 -0
  273. package/dist/chunks/logDepthDeclaration-p80kxWvc.esm.min.js.map +1 -0
  274. package/dist/chunks/logDepthVertex-C8xmntAE.esm.js +488 -0
  275. package/dist/chunks/logDepthVertex-C8xmntAE.esm.js.map +1 -0
  276. package/dist/chunks/logDepthVertex-Da1k46VZ.esm.min.js +2 -0
  277. package/dist/chunks/logDepthVertex-Da1k46VZ.esm.min.js.map +1 -0
  278. package/dist/chunks/logDepthVertex-DgGvTksF.esm.min.js +2 -0
  279. package/dist/chunks/logDepthVertex-DgGvTksF.esm.min.js.map +1 -0
  280. package/dist/chunks/logDepthVertex-KLC5ytc9.esm.js +77 -0
  281. package/dist/chunks/logDepthVertex-KLC5ytc9.esm.js.map +1 -0
  282. package/dist/chunks/mainUVVaryingDeclaration-BBNnWqL3.esm.min.js +2 -0
  283. package/dist/chunks/mainUVVaryingDeclaration-BBNnWqL3.esm.min.js.map +1 -0
  284. package/dist/chunks/mainUVVaryingDeclaration-CrsDQ7Rw.esm.js +11 -0
  285. package/dist/chunks/mainUVVaryingDeclaration-CrsDQ7Rw.esm.js.map +1 -0
  286. package/dist/chunks/meshUboDeclaration-BvX3Ec7p.esm.min.js +2 -0
  287. package/dist/chunks/meshUboDeclaration-BvX3Ec7p.esm.min.js.map +1 -0
  288. package/dist/chunks/meshUboDeclaration-DRaaTiEk.esm.js +24 -0
  289. package/dist/chunks/meshUboDeclaration-DRaaTiEk.esm.js.map +1 -0
  290. package/dist/chunks/objFileLoader-Ce4aJaFM.esm.js +1338 -0
  291. package/dist/chunks/objFileLoader-Ce4aJaFM.esm.js.map +1 -0
  292. package/dist/chunks/objFileLoader-CrYKstAi.esm.min.js +2 -0
  293. package/dist/chunks/objFileLoader-CrYKstAi.esm.min.js.map +1 -0
  294. package/dist/chunks/oitFragment-CNXv_oV2.esm.js +1210 -0
  295. package/dist/chunks/oitFragment-CNXv_oV2.esm.js.map +1 -0
  296. package/dist/chunks/oitFragment-D-QO9BYL.esm.min.js +2 -0
  297. package/dist/chunks/oitFragment-D-QO9BYL.esm.min.js.map +1 -0
  298. package/dist/chunks/oitFragment-DL-siQkY.esm.js +1150 -0
  299. package/dist/chunks/oitFragment-DL-siQkY.esm.js.map +1 -0
  300. package/dist/chunks/oitFragment-Dh89u6kd.esm.min.js +2 -0
  301. package/dist/chunks/oitFragment-Dh89u6kd.esm.min.js.map +1 -0
  302. package/dist/chunks/pass.fragment-6gActEq9.esm.min.js +2 -0
  303. package/dist/chunks/pass.fragment-6gActEq9.esm.min.js.map +1 -0
  304. package/dist/chunks/pass.fragment-BWtGFHKR.esm.min.js +2 -0
  305. package/dist/chunks/pass.fragment-BWtGFHKR.esm.min.js.map +1 -0
  306. package/dist/chunks/pass.fragment-Cf3scVhm.esm.js +15 -0
  307. package/dist/chunks/pass.fragment-Cf3scVhm.esm.js.map +1 -0
  308. package/dist/chunks/pass.fragment-L2hyelgw.esm.js +15 -0
  309. package/dist/chunks/pass.fragment-L2hyelgw.esm.js.map +1 -0
  310. package/dist/chunks/pbr.fragment-BCiIhSwY.esm.min.js +2 -0
  311. package/dist/chunks/pbr.fragment-BCiIhSwY.esm.min.js.map +1 -0
  312. package/dist/chunks/pbr.fragment-BQsptCnM.esm.js +3165 -0
  313. package/dist/chunks/pbr.fragment-BQsptCnM.esm.js.map +1 -0
  314. package/dist/chunks/pbr.fragment-CV7nHiSW.esm.min.js +2 -0
  315. package/dist/chunks/pbr.fragment-CV7nHiSW.esm.min.js.map +1 -0
  316. package/dist/chunks/pbr.fragment-zekg3AtG.esm.js +3219 -0
  317. package/dist/chunks/pbr.fragment-zekg3AtG.esm.js.map +1 -0
  318. package/dist/chunks/pbr.vertex-BdS85hcR.esm.min.js +2 -0
  319. package/dist/chunks/pbr.vertex-BdS85hcR.esm.min.js.map +1 -0
  320. package/dist/chunks/pbr.vertex-CdmOZTsb.esm.js +335 -0
  321. package/dist/chunks/pbr.vertex-CdmOZTsb.esm.js.map +1 -0
  322. package/dist/chunks/pbr.vertex-Ch16cpRc.esm.min.js +2 -0
  323. package/dist/chunks/pbr.vertex-Ch16cpRc.esm.min.js.map +1 -0
  324. package/dist/chunks/pbr.vertex-DP-JkeNL.esm.js +210 -0
  325. package/dist/chunks/pbr.vertex-DP-JkeNL.esm.js.map +1 -0
  326. package/dist/chunks/postprocess.vertex-BfybF4d2.esm.js +18 -0
  327. package/dist/chunks/postprocess.vertex-BfybF4d2.esm.js.map +1 -0
  328. package/dist/chunks/postprocess.vertex-Bnmi3e9K.esm.min.js +2 -0
  329. package/dist/chunks/postprocess.vertex-Bnmi3e9K.esm.min.js.map +1 -0
  330. package/dist/chunks/postprocess.vertex-CYL4-dVR.esm.js +20 -0
  331. package/dist/chunks/postprocess.vertex-CYL4-dVR.esm.js.map +1 -0
  332. package/dist/chunks/postprocess.vertex-Q5d7l8WF.esm.min.js +2 -0
  333. package/dist/chunks/postprocess.vertex-Q5d7l8WF.esm.min.js.map +1 -0
  334. package/dist/chunks/rawTexture-BWFTuwIO.esm.min.js +2 -0
  335. package/dist/chunks/rawTexture-BWFTuwIO.esm.min.js.map +1 -0
  336. package/dist/chunks/rawTexture-C-BSm1U5.esm.js +191 -0
  337. package/dist/chunks/rawTexture-C-BSm1U5.esm.js.map +1 -0
  338. package/dist/chunks/rgbdDecode.fragment-6nGwVmNO.esm.js +17 -0
  339. package/dist/chunks/rgbdDecode.fragment-6nGwVmNO.esm.js.map +1 -0
  340. package/dist/chunks/rgbdDecode.fragment-CMYihxIb.esm.min.js +2 -0
  341. package/dist/chunks/rgbdDecode.fragment-CMYihxIb.esm.min.js.map +1 -0
  342. package/dist/chunks/rgbdDecode.fragment-D48eh1WK.esm.min.js +2 -0
  343. package/dist/chunks/rgbdDecode.fragment-D48eh1WK.esm.min.js.map +1 -0
  344. package/dist/chunks/rgbdDecode.fragment-u6BSTXhW.esm.js +17 -0
  345. package/dist/chunks/rgbdDecode.fragment-u6BSTXhW.esm.js.map +1 -0
  346. package/dist/chunks/rgbdEncode.fragment-BCiGkDDk.esm.js +17 -0
  347. package/dist/chunks/rgbdEncode.fragment-BCiGkDDk.esm.js.map +1 -0
  348. package/dist/chunks/rgbdEncode.fragment-B_9KO57D.esm.js +17 -0
  349. package/dist/chunks/rgbdEncode.fragment-B_9KO57D.esm.js.map +1 -0
  350. package/dist/chunks/rgbdEncode.fragment-CVrt_4Kj.esm.min.js +2 -0
  351. package/dist/chunks/rgbdEncode.fragment-CVrt_4Kj.esm.min.js.map +1 -0
  352. package/dist/chunks/rgbdEncode.fragment-V259OFB6.esm.min.js +2 -0
  353. package/dist/chunks/rgbdEncode.fragment-V259OFB6.esm.min.js.map +1 -0
  354. package/dist/chunks/splatFileLoader-BO6la5-H.esm.js +3340 -0
  355. package/dist/chunks/splatFileLoader-BO6la5-H.esm.js.map +1 -0
  356. package/dist/chunks/splatFileLoader-S6q5_XPy.esm.min.js +2 -0
  357. package/dist/chunks/splatFileLoader-S6q5_XPy.esm.min.js.map +1 -0
  358. package/dist/chunks/standardMaterial-BH9cL7Zd.esm.js +1809 -0
  359. package/dist/chunks/standardMaterial-BH9cL7Zd.esm.js.map +1 -0
  360. package/dist/chunks/standardMaterial-BMohC2Pw.esm.min.js +2 -0
  361. package/dist/chunks/standardMaterial-BMohC2Pw.esm.min.js.map +1 -0
  362. package/dist/chunks/stlFileLoader-DK1ITZRU.esm.min.js +2 -0
  363. package/dist/chunks/stlFileLoader-DK1ITZRU.esm.min.js.map +1 -0
  364. package/dist/chunks/stlFileLoader-DskoqTwS.esm.js +238 -0
  365. package/dist/chunks/stlFileLoader-DskoqTwS.esm.js.map +1 -0
  366. package/dist/chunks/tgaTextureLoader-BTlbmfHD.esm.js +349 -0
  367. package/dist/chunks/tgaTextureLoader-BTlbmfHD.esm.js.map +1 -0
  368. package/dist/chunks/tgaTextureLoader-BkfZcLS9.esm.min.js +2 -0
  369. package/dist/chunks/tgaTextureLoader-BkfZcLS9.esm.min.js.map +1 -0
  370. package/dist/chunks/thinEngine-0P3L0z6G.esm.js +3721 -0
  371. package/dist/chunks/thinEngine-0P3L0z6G.esm.js.map +1 -0
  372. package/dist/chunks/thinEngine-krcyvyno.esm.min.js +2 -0
  373. package/dist/chunks/thinEngine-krcyvyno.esm.min.js.map +1 -0
  374. package/dist/chunks/thinInstanceMesh-CkU4tmTv.esm.js +314 -0
  375. package/dist/chunks/thinInstanceMesh-CkU4tmTv.esm.js.map +1 -0
  376. package/dist/chunks/thinInstanceMesh-DUNQsOmG.esm.min.js +2 -0
  377. package/dist/chunks/thinInstanceMesh-DUNQsOmG.esm.min.js.map +1 -0
  378. package/dist/chunks/vertexColorMixing-Cs7crUUt.esm.min.js +2 -0
  379. package/dist/chunks/vertexColorMixing-Cs7crUUt.esm.min.js.map +1 -0
  380. package/dist/chunks/vertexColorMixing-DreWOedd.esm.js +528 -0
  381. package/dist/chunks/vertexColorMixing-DreWOedd.esm.js.map +1 -0
  382. package/dist/chunks/webgpuEngine-DG1ciCtE.esm.min.js +2 -0
  383. package/dist/chunks/webgpuEngine-DG1ciCtE.esm.min.js.map +1 -0
  384. package/dist/chunks/webgpuEngine-YE9aMbSH.esm.js +11180 -0
  385. package/dist/chunks/webgpuEngine-YE9aMbSH.esm.js.map +1 -0
  386. package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
  387. package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
  388. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
  389. package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
  390. package/docs/ViewerDefault.jpg +0 -0
  391. package/docs/ViewerParts.jpg +0 -0
  392. package/docs/ViewerSlots.jpg +0 -0
  393. package/docs/ViewerStyled.jpg +0 -0
  394. package/lib/index.d.ts +287 -0
  395. package/lib/index.js +1022 -0
  396. package/lib/index.js.map +1 -0
  397. package/package.json +18 -27
  398. package/readme.md +145 -21
  399. package/configuration/configuration.d.ts +0 -107
  400. package/configuration/configuration.js +0 -16
  401. package/configuration/configuration.js.map +0 -1
  402. package/configuration/configurationCompatibility.d.ts +0 -8
  403. package/configuration/configurationCompatibility.js +0 -66
  404. package/configuration/configurationCompatibility.js.map +0 -1
  405. package/configuration/configurationContainer.d.ts +0 -10
  406. package/configuration/configurationContainer.js +0 -10
  407. package/configuration/configurationContainer.js.map +0 -1
  408. package/configuration/globals.d.ts +0 -6
  409. package/configuration/globals.js +0 -18
  410. package/configuration/globals.js.map +0 -1
  411. package/configuration/index.d.ts +0 -2
  412. package/configuration/index.js +0 -4
  413. package/configuration/index.js.map +0 -1
  414. package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
  415. package/configuration/interfaces/cameraConfiguration.js +0 -2
  416. package/configuration/interfaces/cameraConfiguration.js.map +0 -1
  417. package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
  418. package/configuration/interfaces/colorGradingConfiguration.js +0 -2
  419. package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
  420. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
  421. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
  422. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
  423. package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
  424. package/configuration/interfaces/environmentMapConfiguration.js +0 -2
  425. package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
  426. package/configuration/interfaces/groundConfiguration.d.ts +0 -24
  427. package/configuration/interfaces/groundConfiguration.js +0 -2
  428. package/configuration/interfaces/groundConfiguration.js.map +0 -1
  429. package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
  430. package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
  431. package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
  432. package/configuration/interfaces/index.d.ts +0 -15
  433. package/configuration/interfaces/index.js +0 -16
  434. package/configuration/interfaces/index.js.map +0 -1
  435. package/configuration/interfaces/lightConfiguration.d.ts +0 -60
  436. package/configuration/interfaces/lightConfiguration.js +0 -2
  437. package/configuration/interfaces/lightConfiguration.js.map +0 -1
  438. package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
  439. package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
  440. package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
  441. package/configuration/interfaces/modelConfiguration.d.ts +0 -65
  442. package/configuration/interfaces/modelConfiguration.js +0 -2
  443. package/configuration/interfaces/modelConfiguration.js.map +0 -1
  444. package/configuration/interfaces/observersConfiguration.d.ts +0 -5
  445. package/configuration/interfaces/observersConfiguration.js +0 -2
  446. package/configuration/interfaces/observersConfiguration.js.map +0 -1
  447. package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
  448. package/configuration/interfaces/sceneConfiguration.js +0 -2
  449. package/configuration/interfaces/sceneConfiguration.js.map +0 -1
  450. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
  451. package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
  452. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
  453. package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
  454. package/configuration/interfaces/skyboxConfiguration.js +0 -2
  455. package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
  456. package/configuration/interfaces/templateConfiguration.d.ts +0 -67
  457. package/configuration/interfaces/templateConfiguration.js +0 -2
  458. package/configuration/interfaces/templateConfiguration.js.map +0 -1
  459. package/configuration/interfaces/vrConfiguration.d.ts +0 -16
  460. package/configuration/interfaces/vrConfiguration.js +0 -2
  461. package/configuration/interfaces/vrConfiguration.js.map +0 -1
  462. package/configuration/loader.d.ts +0 -4
  463. package/configuration/loader.js +0 -17
  464. package/configuration/loader.js.map +0 -1
  465. package/configuration/mappers.d.ts +0 -43
  466. package/configuration/mappers.js +0 -192
  467. package/configuration/mappers.js.map +0 -1
  468. package/configuration/renderOnlyLoader.d.ts +0 -33
  469. package/configuration/renderOnlyLoader.js +0 -162
  470. package/configuration/renderOnlyLoader.js.map +0 -1
  471. package/configuration/types/default.d.ts +0 -6
  472. package/configuration/types/default.js +0 -121
  473. package/configuration/types/default.js.map +0 -1
  474. package/configuration/types/environmentMap.d.ts +0 -5
  475. package/configuration/types/environmentMap.js +0 -14
  476. package/configuration/types/environmentMap.js.map +0 -1
  477. package/configuration/types/extended.d.ts +0 -6
  478. package/configuration/types/extended.js +0 -317
  479. package/configuration/types/extended.js.map +0 -1
  480. package/configuration/types/index.d.ts +0 -14
  481. package/configuration/types/index.js +0 -51
  482. package/configuration/types/index.js.map +0 -1
  483. package/configuration/types/minimal.d.ts +0 -6
  484. package/configuration/types/minimal.js +0 -43
  485. package/configuration/types/minimal.js.map +0 -1
  486. package/configuration/types/renderOnlyDefault.d.ts +0 -30
  487. package/configuration/types/renderOnlyDefault.js +0 -31
  488. package/configuration/types/renderOnlyDefault.js.map +0 -1
  489. package/configuration/types/shadowLight.d.ts +0 -9
  490. package/configuration/types/shadowLight.js +0 -64
  491. package/configuration/types/shadowLight.js.map +0 -1
  492. package/helper/index.d.ts +0 -29
  493. package/helper/index.js +0 -66
  494. package/helper/index.js.map +0 -1
  495. package/index.d.ts +0 -30
  496. package/index.js +0 -46
  497. package/index.js.map +0 -1
  498. package/initializer.d.ts +0 -11
  499. package/initializer.js +0 -35
  500. package/initializer.js.map +0 -1
  501. package/interfaces.d.ts +0 -5
  502. package/interfaces.js +0 -7
  503. package/interfaces.js.map +0 -1
  504. package/labs/environmentSerializer.d.ts +0 -126
  505. package/labs/environmentSerializer.js +0 -191
  506. package/labs/environmentSerializer.js.map +0 -1
  507. package/labs/texture.d.ts +0 -183
  508. package/labs/texture.js +0 -350
  509. package/labs/texture.js.map +0 -1
  510. package/labs/viewerLabs.d.ts +0 -51
  511. package/labs/viewerLabs.js +0 -134
  512. package/labs/viewerLabs.js.map +0 -1
  513. package/loader/modelLoader.d.ts +0 -56
  514. package/loader/modelLoader.js +0 -199
  515. package/loader/modelLoader.js.map +0 -1
  516. package/loader/plugins/applyMaterialConfig.d.ts +0 -12
  517. package/loader/plugins/applyMaterialConfig.js +0 -16
  518. package/loader/plugins/applyMaterialConfig.js.map +0 -1
  519. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
  520. package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
  521. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
  522. package/loader/plugins/index.d.ts +0 -19
  523. package/loader/plugins/index.js +0 -44
  524. package/loader/plugins/index.js.map +0 -1
  525. package/loader/plugins/loaderPlugin.d.ts +0 -24
  526. package/loader/plugins/loaderPlugin.js +0 -2
  527. package/loader/plugins/loaderPlugin.js.map +0 -1
  528. package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
  529. package/loader/plugins/msftLodLoaderPlugin.js +0 -21
  530. package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
  531. package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
  532. package/loader/plugins/telemetryLoaderPlugin.js +0 -36
  533. package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
  534. package/managers/observablesManager.d.ts +0 -66
  535. package/managers/observablesManager.js +0 -35
  536. package/managers/observablesManager.js.map +0 -1
  537. package/managers/sceneManager.d.ts +0 -245
  538. package/managers/sceneManager.js +0 -1375
  539. package/managers/sceneManager.js.map +0 -1
  540. package/managers/telemetryManager.d.ts +0 -78
  541. package/managers/telemetryManager.js +0 -117
  542. package/managers/telemetryManager.js.map +0 -1
  543. package/model/modelAnimation.d.ts +0 -215
  544. package/model/modelAnimation.js +0 -237
  545. package/model/modelAnimation.js.map +0 -1
  546. package/model/viewerModel.d.ts +0 -233
  547. package/model/viewerModel.js +0 -673
  548. package/model/viewerModel.js.map +0 -1
  549. package/optimizer/custom/extended.d.ts +0 -13
  550. package/optimizer/custom/extended.js +0 -101
  551. package/optimizer/custom/extended.js.map +0 -1
  552. package/optimizer/custom/index.d.ts +0 -9
  553. package/optimizer/custom/index.js +0 -26
  554. package/optimizer/custom/index.js.map +0 -1
  555. package/renderOnlyIndex.d.ts +0 -11
  556. package/renderOnlyIndex.js +0 -18
  557. package/renderOnlyIndex.js.map +0 -1
  558. package/templating/eventManager.d.ts +0 -35
  559. package/templating/eventManager.js +0 -66
  560. package/templating/eventManager.js.map +0 -1
  561. package/templating/plugins/hdButtonPlugin.d.ts +0 -9
  562. package/templating/plugins/hdButtonPlugin.js +0 -21
  563. package/templating/plugins/hdButtonPlugin.js.map +0 -1
  564. package/templating/plugins/printButton.d.ts +0 -9
  565. package/templating/plugins/printButton.js +0 -40
  566. package/templating/plugins/printButton.js.map +0 -1
  567. package/templating/templateManager.d.ts +0 -197
  568. package/templating/templateManager.js +0 -561
  569. package/templating/templateManager.js.map +0 -1
  570. package/templating/viewerTemplatePlugin.d.ts +0 -21
  571. package/templating/viewerTemplatePlugin.js +0 -69
  572. package/templating/viewerTemplatePlugin.js.map +0 -1
  573. package/viewer/defaultViewer.d.ts +0 -130
  574. package/viewer/defaultViewer.js +0 -672
  575. package/viewer/defaultViewer.js.map +0 -1
  576. package/viewer/renderOnlyViewer.d.ts +0 -9
  577. package/viewer/renderOnlyViewer.js +0 -46
  578. package/viewer/renderOnlyViewer.js.map +0 -1
  579. package/viewer/viewer.d.ts +0 -258
  580. package/viewer/viewer.js +0 -783
  581. package/viewer/viewer.js.map +0 -1
  582. package/viewer/viewerManager.d.ts +0 -58
  583. package/viewer/viewerManager.js +0 -91
  584. package/viewer/viewerManager.js.map +0 -1
  585. package/viewer/viewerWithTemplate.d.ts +0 -9
  586. package/viewer/viewerWithTemplate.js +0 -20
  587. package/viewer/viewerWithTemplate.js.map +0 -1
@@ -1,65 +0,0 @@
1
- import type { IModelAnimationConfiguration } from "./modelAnimationConfiguration";
2
- export interface IModelConfiguration {
3
- id?: string;
4
- url?: string;
5
- root?: string;
6
- file?: string | File;
7
- loader?: string;
8
- position?: {
9
- x: number;
10
- y: number;
11
- z: number;
12
- };
13
- rotation?: {
14
- x: number;
15
- y: number;
16
- z: number;
17
- w?: number;
18
- };
19
- scaling?: {
20
- x: number;
21
- y: number;
22
- z: number;
23
- };
24
- parentObjectIndex?: number;
25
- castShadow?: boolean;
26
- receiveShadows?: boolean;
27
- normalize?: boolean | {
28
- center?: boolean;
29
- unitSize?: boolean;
30
- parentIndex?: number;
31
- };
32
- title?: string;
33
- subtitle?: string;
34
- thumbnail?: string;
35
- animation?: {
36
- autoStart?: boolean | string;
37
- playOnce?: boolean;
38
- autoStartIndex?: number;
39
- };
40
- entryAnimation?: IModelAnimationConfiguration;
41
- exitAnimation?: IModelAnimationConfiguration;
42
- material?: {
43
- directEnabled?: boolean;
44
- directIntensity?: number;
45
- emissiveIntensity?: number;
46
- environmentIntensity?: number;
47
- [propName: string]: any;
48
- };
49
- /**
50
- * Rotation offset axis definition
51
- */
52
- rotationOffsetAxis?: {
53
- x: number;
54
- y: number;
55
- z: number;
56
- };
57
- /**
58
- * the offset angle
59
- */
60
- rotationOffsetAngle?: number;
61
- loaderConfiguration?: {
62
- maxLODsToLoad?: number;
63
- progressiveLoading?: boolean;
64
- };
65
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=modelConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modelConfiguration.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/interfaces/modelConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import type { IModelAnimationConfiguration } from \"./modelAnimationConfiguration\";\r\n\r\nexport interface IModelConfiguration {\r\n id?: string;\r\n url?: string;\r\n root?: string; //optional\r\n file?: string | File; // is a file being loaded? root and url ignored\r\n loader?: string; // obj, gltf?\r\n position?: { x: number; y: number; z: number };\r\n rotation?: { x: number; y: number; z: number; w?: number };\r\n scaling?: { x: number; y: number; z: number };\r\n parentObjectIndex?: number; // the index of the parent object of the model in the loaded meshes array.\r\n\r\n castShadow?: boolean;\r\n receiveShadows?: boolean;\r\n normalize?:\r\n | boolean\r\n | {\r\n center?: boolean;\r\n unitSize?: boolean;\r\n parentIndex?: number;\r\n }; // should the model be scaled to unit-size\r\n\r\n title?: string;\r\n subtitle?: string;\r\n thumbnail?: string; // URL or data-url\r\n\r\n animation?: {\r\n autoStart?: boolean | string;\r\n playOnce?: boolean;\r\n autoStartIndex?: number;\r\n };\r\n\r\n entryAnimation?: IModelAnimationConfiguration;\r\n exitAnimation?: IModelAnimationConfiguration;\r\n\r\n material?: {\r\n directEnabled?: boolean;\r\n directIntensity?: number;\r\n emissiveIntensity?: number;\r\n environmentIntensity?: number;\r\n [propName: string]: any;\r\n };\r\n\r\n /**\r\n * Rotation offset axis definition\r\n */\r\n rotationOffsetAxis?: {\r\n x: number;\r\n y: number;\r\n z: number;\r\n };\r\n\r\n /**\r\n * the offset angle\r\n */\r\n rotationOffsetAngle?: number;\r\n\r\n loaderConfiguration?: {\r\n maxLODsToLoad?: number;\r\n progressiveLoading?: boolean;\r\n };\r\n\r\n // [propName: string]: any; // further configuration, like title and creator\r\n}\r\n"]}
@@ -1,5 +0,0 @@
1
- export interface IObserversConfiguration {
2
- onEngineInit?: string;
3
- onSceneInit?: string;
4
- onModelLoaded?: string;
5
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=observersConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"observersConfiguration.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/interfaces/observersConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface IObserversConfiguration {\r\n onEngineInit?: string;\r\n onSceneInit?: string;\r\n onModelLoaded?: string;\r\n}\r\n"]}
@@ -1,48 +0,0 @@
1
- import type { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
2
- import type { IColorGradingConfiguration } from "./colorGradingConfiguration";
3
- import type { IGlowLayerOptions } from "@babylonjs/core/Layers/glowLayer.js";
4
- export interface ISceneConfiguration {
5
- debug?: boolean;
6
- clearColor?: {
7
- r: number;
8
- g: number;
9
- b: number;
10
- a: number;
11
- };
12
- /** @deprecated Please use environmentMap.mainColor instead. */
13
- mainColor?: {
14
- r?: number;
15
- g?: number;
16
- b?: number;
17
- };
18
- imageProcessingConfiguration?: IImageProcessingConfiguration;
19
- environmentTexture?: string;
20
- colorGrading?: IColorGradingConfiguration;
21
- environmentRotationY?: number;
22
- /** @deprecated Please use default rendering pipeline. */
23
- glow?: boolean | IGlowLayerOptions;
24
- disableHdr?: boolean;
25
- renderInBackground?: boolean;
26
- disableCameraControl?: boolean;
27
- animationPropertiesOverride?: {
28
- [propName: string]: any;
29
- };
30
- defaultMaterial?: {
31
- materialType: "standard" | "pbr";
32
- [propName: string]: any;
33
- };
34
- flags?: {
35
- shadowsEnabled?: boolean;
36
- particlesEnabled?: boolean;
37
- collisionsEnabled?: boolean;
38
- lightsEnabled?: boolean;
39
- texturesEnabled?: boolean;
40
- lensFlaresEnabled?: boolean;
41
- proceduralTexturesEnabled?: boolean;
42
- renderTargetsEnabled?: boolean;
43
- spritesEnabled?: boolean;
44
- skeletonsEnabled?: boolean;
45
- audioEnabled?: boolean;
46
- };
47
- assetsRootURL?: string;
48
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sceneConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sceneConfiguration.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/interfaces/sceneConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import type { IImageProcessingConfiguration } from \"./imageProcessingConfiguration\";\r\nimport type { IColorGradingConfiguration } from \"./colorGradingConfiguration\";\r\nimport type { IGlowLayerOptions } from \"core/Layers/glowLayer\";\r\n\r\nexport interface ISceneConfiguration {\r\n debug?: boolean;\r\n clearColor?: { r: number; g: number; b: number; a: number };\r\n /** @deprecated Please use environmentMap.mainColor instead. */\r\n mainColor?: { r?: number; g?: number; b?: number };\r\n imageProcessingConfiguration?: IImageProcessingConfiguration;\r\n environmentTexture?: string;\r\n colorGrading?: IColorGradingConfiguration;\r\n environmentRotationY?: number;\r\n /** @deprecated Please use default rendering pipeline. */\r\n glow?: boolean | IGlowLayerOptions;\r\n disableHdr?: boolean;\r\n renderInBackground?: boolean;\r\n disableCameraControl?: boolean;\r\n animationPropertiesOverride?: {\r\n [propName: string]: any;\r\n };\r\n defaultMaterial?: {\r\n materialType: \"standard\" | \"pbr\";\r\n [propName: string]: any;\r\n };\r\n flags?: {\r\n shadowsEnabled?: boolean;\r\n particlesEnabled?: boolean;\r\n collisionsEnabled?: boolean;\r\n lightsEnabled?: boolean;\r\n texturesEnabled?: boolean;\r\n lensFlaresEnabled?: boolean;\r\n proceduralTexturesEnabled?: boolean;\r\n renderTargetsEnabled?: boolean;\r\n spritesEnabled?: boolean;\r\n skeletonsEnabled?: boolean;\r\n audioEnabled?: boolean;\r\n };\r\n assetsRootURL?: string;\r\n}\r\n"]}
@@ -1,23 +0,0 @@
1
- export interface ISceneOptimizerConfiguration {
2
- targetFrameRate?: number;
3
- trackerDuration?: number;
4
- autoGeneratePriorities?: boolean;
5
- improvementMode?: boolean;
6
- degradation?: string;
7
- types?: {
8
- texture?: ISceneOptimizerParameters;
9
- hardwareScaling?: ISceneOptimizerParameters;
10
- shadow?: ISceneOptimizerParameters;
11
- postProcess?: ISceneOptimizerParameters;
12
- lensFlare?: ISceneOptimizerParameters;
13
- particles?: ISceneOptimizerParameters;
14
- renderTarget?: ISceneOptimizerParameters;
15
- mergeMeshes?: ISceneOptimizerParameters;
16
- };
17
- custom?: string;
18
- }
19
- export interface ISceneOptimizerParameters {
20
- priority?: number;
21
- maximumSize?: number;
22
- step?: number;
23
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sceneOptimizerConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sceneOptimizerConfiguration.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/interfaces/sceneOptimizerConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface ISceneOptimizerConfiguration {\r\n targetFrameRate?: number;\r\n trackerDuration?: number;\r\n autoGeneratePriorities?: boolean;\r\n improvementMode?: boolean;\r\n degradation?: string; // low, moderate, high\r\n types?: {\r\n texture?: ISceneOptimizerParameters;\r\n hardwareScaling?: ISceneOptimizerParameters;\r\n shadow?: ISceneOptimizerParameters;\r\n postProcess?: ISceneOptimizerParameters;\r\n lensFlare?: ISceneOptimizerParameters;\r\n particles?: ISceneOptimizerParameters;\r\n renderTarget?: ISceneOptimizerParameters;\r\n mergeMeshes?: ISceneOptimizerParameters;\r\n };\r\n custom?: string;\r\n}\r\n\r\nexport interface ISceneOptimizerParameters {\r\n priority?: number;\r\n maximumSize?: number;\r\n step?: number;\r\n}\r\n"]}
@@ -1,21 +0,0 @@
1
- import type { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
2
- export interface ISkyboxConfiguration {
3
- cubeTexture?: {
4
- noMipMap?: boolean;
5
- gammaSpace?: boolean;
6
- url?: string | Array<string>;
7
- };
8
- color?: {
9
- r: number;
10
- g: number;
11
- b: number;
12
- };
13
- /** @deprecated */ pbr?: boolean;
14
- scale?: number;
15
- /** @deprecated */ blur?: number;
16
- material?: {
17
- imageProcessingConfiguration?: IImageProcessingConfiguration;
18
- [propName: string]: any;
19
- };
20
- infiniteDistance?: boolean;
21
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=skyboxConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skyboxConfiguration.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/interfaces/skyboxConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import type { IImageProcessingConfiguration } from \"./imageProcessingConfiguration\";\r\n\r\nexport interface ISkyboxConfiguration {\r\n cubeTexture?: {\r\n noMipMap?: boolean;\r\n gammaSpace?: boolean;\r\n url?: string | Array<string>;\r\n };\r\n color?: { r: number; g: number; b: number };\r\n /** @deprecated */ pbr?: boolean;\r\n scale?: number;\r\n /** @deprecated */ blur?: number;\r\n material?: {\r\n imageProcessingConfiguration?: IImageProcessingConfiguration;\r\n [propName: string]: any;\r\n };\r\n infiniteDistance?: boolean;\r\n}\r\n"]}
@@ -1,67 +0,0 @@
1
- /**
2
- * A single template configuration object
3
- */
4
- export interface ITemplateConfiguration {
5
- /**
6
- * can be either the id of the template's html element or a URL.
7
- * See - https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#location-vs-html
8
- */
9
- location?: string;
10
- /**
11
- * If no location is provided you can provide here the raw html of this template.
12
- * See https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#location-vs-html
13
- */
14
- html?: string;
15
- id?: string;
16
- /**
17
- * Parameters that will be delivered to the template and will render it accordingly.
18
- */
19
- params?: {
20
- [key: string]: string | number | boolean | object;
21
- };
22
- /**
23
- * Events to attach to this template.
24
- * event name is the key. the value can either be a boolean (attach to the parent element)
25
- * or a map of html id elements.
26
- *
27
- * See - https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#event-binding
28
- */
29
- events?: {
30
- pointerdown?: boolean | {
31
- [id: string]: boolean;
32
- };
33
- pointerup?: boolean | {
34
- [id: string]: boolean;
35
- };
36
- pointermove?: boolean | {
37
- [id: string]: boolean;
38
- };
39
- pointerover?: boolean | {
40
- [id: string]: boolean;
41
- };
42
- pointerout?: boolean | {
43
- [id: string]: boolean;
44
- };
45
- pointerenter?: boolean | {
46
- [id: string]: boolean;
47
- };
48
- pointerleave?: boolean | {
49
- [id: string]: boolean;
50
- };
51
- pointercancel?: boolean | {
52
- [id: string]: boolean;
53
- };
54
- click?: boolean | {
55
- [id: string]: boolean;
56
- };
57
- dragstart?: boolean | {
58
- [id: string]: boolean;
59
- };
60
- drop?: boolean | {
61
- [id: string]: boolean;
62
- };
63
- [key: string]: boolean | {
64
- [id: string]: boolean;
65
- } | undefined;
66
- };
67
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=templateConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"templateConfiguration.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/interfaces/templateConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * A single template configuration object\r\n */\r\nexport interface ITemplateConfiguration {\r\n /**\r\n * can be either the id of the template's html element or a URL.\r\n * See - https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#location-vs-html\r\n */\r\n location?: string; // #template-id OR http://example.com/loading.html\r\n /**\r\n * If no location is provided you can provide here the raw html of this template.\r\n * See https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#location-vs-html\r\n */\r\n html?: string; // raw html string\r\n id?: string;\r\n /**\r\n * Parameters that will be delivered to the template and will render it accordingly.\r\n */\r\n params?: { [key: string]: string | number | boolean | object };\r\n /**\r\n * Events to attach to this template.\r\n * event name is the key. the value can either be a boolean (attach to the parent element)\r\n * or a map of html id elements.\r\n *\r\n * See - https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#event-binding\r\n */\r\n events?: {\r\n // pointer events\r\n pointerdown?: boolean | { [id: string]: boolean };\r\n pointerup?: boolean | { [id: string]: boolean };\r\n pointermove?: boolean | { [id: string]: boolean };\r\n pointerover?: boolean | { [id: string]: boolean };\r\n pointerout?: boolean | { [id: string]: boolean };\r\n pointerenter?: boolean | { [id: string]: boolean };\r\n pointerleave?: boolean | { [id: string]: boolean };\r\n pointercancel?: boolean | { [id: string]: boolean };\r\n //click, just in case\r\n click?: boolean | { [id: string]: boolean };\r\n // drag and drop\r\n dragstart?: boolean | { [id: string]: boolean };\r\n drop?: boolean | { [id: string]: boolean };\r\n\r\n [key: string]: boolean | { [id: string]: boolean } | undefined;\r\n };\r\n}\r\n"]}
@@ -1,16 +0,0 @@
1
- import type { VRExperienceHelperOptions } from "@babylonjs/core/Cameras/VR/vrExperienceHelper.js";
2
- export interface IVRConfiguration {
3
- disabled?: boolean;
4
- objectScaleFactor?: number;
5
- disableInteractions?: boolean;
6
- disableTeleportation?: boolean;
7
- overrideFloorMeshName?: string;
8
- vrOptions?: VRExperienceHelperOptions;
9
- modelHeightCorrection?: number | boolean;
10
- rotateUsingControllers?: boolean;
11
- cameraPosition?: {
12
- x: number;
13
- y: number;
14
- z: number;
15
- };
16
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=vrConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vrConfiguration.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/interfaces/vrConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import type { VRExperienceHelperOptions } from \"core/Cameras/VR/vrExperienceHelper\";\r\n\r\nexport interface IVRConfiguration {\r\n disabled?: boolean;\r\n objectScaleFactor?: number;\r\n disableInteractions?: boolean;\r\n disableTeleportation?: boolean;\r\n overrideFloorMeshName?: string;\r\n vrOptions?: VRExperienceHelperOptions;\r\n modelHeightCorrection?: number | boolean;\r\n rotateUsingControllers?: boolean; // experimental feature\r\n cameraPosition?: { x: number; y: number; z: number };\r\n}\r\n"]}
@@ -1,4 +0,0 @@
1
- import { RenderOnlyConfigurationLoader } from "./renderOnlyLoader";
2
- export declare class ConfigurationLoader extends RenderOnlyConfigurationLoader {
3
- protected getExtendedConfig(type: string | undefined): import("./configuration").ViewerConfiguration;
4
- }
@@ -1,17 +0,0 @@
1
- import { __extends } from "@babylonjs/core/tslib.es6.js";
2
- import { RenderOnlyConfigurationLoader } from "./renderOnlyLoader.js";
3
- // eslint-disable-next-line import/no-internal-modules
4
- import { getConfigurationType } from "./types/index.js";
5
- var ConfigurationLoader = /** @class */ (function (_super) {
6
- __extends(ConfigurationLoader, _super);
7
- function ConfigurationLoader() {
8
- return _super !== null && _super.apply(this, arguments) || this;
9
- }
10
- // eslint-disable-next-line @typescript-eslint/naming-convention
11
- ConfigurationLoader.prototype.getExtendedConfig = function (type) {
12
- return getConfigurationType(type || "extended");
13
- };
14
- return ConfigurationLoader;
15
- }(RenderOnlyConfigurationLoader));
16
- export { ConfigurationLoader };
17
- //# sourceMappingURL=loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../../tools/viewer/src/configuration/loader.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACnE,sDAAsD;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD;IAAyC,uCAA6B;IAAtE;;IAKA,CAAC;IAJG,gEAAgE;IAC7C,+CAAiB,GAApC,UAAqC,IAAwB;QACzD,OAAO,oBAAoB,CAAC,IAAI,IAAI,UAAU,CAAC,CAAC;IACpD,CAAC;IACL,0BAAC;AAAD,CAAC,AALD,CAAyC,6BAA6B,GAKrE","sourcesContent":["import { RenderOnlyConfigurationLoader } from \"./renderOnlyLoader\";\r\n// eslint-disable-next-line import/no-internal-modules\r\nimport { getConfigurationType } from \"./types/index\";\r\n\r\nexport class ConfigurationLoader extends RenderOnlyConfigurationLoader {\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n protected override getExtendedConfig(type: string | undefined) {\r\n return getConfigurationType(type || \"extended\");\r\n }\r\n}\r\n"]}
@@ -1,43 +0,0 @@
1
- import type { ViewerConfiguration } from "./configuration";
2
- /**
3
- * This is the mapper's interface. Implement this function to create your own mapper and register it at the mapper manager
4
- */
5
- export interface IMapper {
6
- map(rawSource: any): ViewerConfiguration;
7
- }
8
- /**
9
- * The MapperManager manages the different implemented mappers.
10
- * It allows the user to register new mappers as well and use them to parse their own configuration data
11
- */
12
- export declare class MapperManager {
13
- private _mappers;
14
- /**
15
- * The default mapper is the JSON mapper.
16
- */
17
- static DefaultMapper: string;
18
- constructor();
19
- /**
20
- * Get a specific configuration mapper.
21
- *
22
- * @param type the name of the mapper to load
23
- * @returns the mapper
24
- */
25
- getMapper(type: string): IMapper;
26
- /**
27
- * Use this function to register your own configuration mapper.
28
- * After a mapper is registered, it can be used to parse the specific type fo configuration to the standard ViewerConfiguration.
29
- * @param type the name of the mapper. This will be used to define the configuration type and/or to get the mapper
30
- * @param mapper The implemented mapper
31
- */
32
- registerMapper(type: string, mapper: IMapper): void;
33
- /**
34
- * Dispose the mapper manager and all of its mappers.
35
- */
36
- dispose(): void;
37
- }
38
- /**
39
- * mapperManager is a singleton of the type MapperManager.
40
- * The mapperManager can be disposed directly with calling mapperManager.dispose()
41
- * or indirectly with using BabylonViewer.disposeAll()
42
- */
43
- export declare const mapperManager: MapperManager;
@@ -1,192 +0,0 @@
1
- import { Tools } from "@babylonjs/core/Misc/tools.js";
2
- // eslint-disable-next-line import/no-internal-modules
3
- import { kebabToCamel } from "../helper/index.js";
4
- /**
5
- * This is a simple HTML mapper.
6
- * This mapper parses a single HTML element and returns the configuration from its attributes.
7
- * it parses numbers and boolean values to the corresponding variable types.
8
- * The following HTML element:
9
- * <div test="1" random-flag="true" a.string.object="test"> will result in the following configuration:
10
- *
11
- * {
12
- * test: 1, //a number!
13
- * randomFlag: boolean, //camelCase and boolean
14
- * a: {
15
- * string: {
16
- * object: "test" //dot-separated object levels
17
- * }
18
- * }
19
- * }
20
- */
21
- var HTMLMapper = /** @class */ (function () {
22
- function HTMLMapper() {
23
- }
24
- /**
25
- * Map a specific element and get configuration from it
26
- * @param element the HTML element to analyze.
27
- * @returns a ViewerConfiguration object from the provided HTML Element
28
- */
29
- HTMLMapper.prototype.map = function (element) {
30
- var config = {};
31
- var _loop_1 = function (attrIdx) {
32
- var attr = element.attributes.item(attrIdx);
33
- if (!attr) {
34
- return "continue";
35
- }
36
- // map "object.property" to the right configuration place.
37
- var split = attr.nodeName.split(".");
38
- split.reduce(function (currentConfig, key, idx) {
39
- //convert html-style to json-style
40
- var camelKey = kebabToCamel(key);
41
- if (idx === split.length - 1) {
42
- var val = attr.nodeValue; // firefox warns nodeValue is deprecated, but I found no sign of it anywhere.
43
- if (val === "true") {
44
- val = true;
45
- }
46
- else if (val === "false") {
47
- val = false;
48
- }
49
- else if (val === "undefined") {
50
- val = undefined;
51
- }
52
- else if (val === "null") {
53
- val = null;
54
- }
55
- else {
56
- var isnum = !isNaN(parseFloat(val)) && isFinite(val); ///^\d+$/.test(val);
57
- if (isnum) {
58
- var number = parseFloat(val);
59
- if (!isNaN(number)) {
60
- val = number;
61
- }
62
- }
63
- }
64
- currentConfig[camelKey] = val;
65
- }
66
- else {
67
- currentConfig[camelKey] = currentConfig[camelKey] || {};
68
- }
69
- return currentConfig[camelKey];
70
- }, config);
71
- };
72
- for (var attrIdx = 0; attrIdx < element.attributes.length; ++attrIdx) {
73
- _loop_1(attrIdx);
74
- }
75
- return config;
76
- };
77
- return HTMLMapper;
78
- }());
79
- /**
80
- * A simple string-to-JSON mapper.
81
- * This is the main mapper, used to analyze downloaded JSON-Configuration or JSON payload
82
- */
83
- var JSONMapper = /** @class */ (function () {
84
- function JSONMapper() {
85
- }
86
- JSONMapper.prototype.map = function (rawSource) {
87
- return JSON.parse(rawSource);
88
- };
89
- return JSONMapper;
90
- }());
91
- /**
92
- * The DOM Mapper will traverse an entire DOM Tree and will load the configuration from the
93
- * DOM elements and attributes.
94
- */
95
- var DOMMapper = /** @class */ (function () {
96
- function DOMMapper() {
97
- }
98
- /**
99
- * The mapping function that will convert HTML data to a viewer configuration object
100
- * @param baseElement the baseElement from which to start traversing
101
- * @returns a ViewerConfiguration object from the provided HTML Element
102
- */
103
- DOMMapper.prototype.map = function (baseElement) {
104
- var htmlMapper = new HTMLMapper();
105
- var config = htmlMapper.map(baseElement);
106
- var traverseChildren = function (element, partConfig) {
107
- var children = element.children;
108
- if (children.length) {
109
- for (var i = 0; i < children.length; ++i) {
110
- var item = children.item(i);
111
- // use the HTML Mapper to read configuration from a single element
112
- var configMapped = htmlMapper.map(item);
113
- var key = kebabToCamel(item.nodeName.toLowerCase());
114
- if (item.attributes.getNamedItem("array") && item.attributes.getNamedItem("array").nodeValue === "true") {
115
- partConfig[key] = [];
116
- }
117
- else {
118
- if (element.attributes.getNamedItem("array") && element.attributes.getNamedItem("array").nodeValue === "true") {
119
- partConfig.push(configMapped);
120
- }
121
- else if (partConfig[key]) {
122
- //exists already! probably an array
123
- element.setAttribute("array", "true");
124
- var oldItem = partConfig[key];
125
- partConfig = [oldItem, configMapped];
126
- }
127
- else {
128
- partConfig[key] = configMapped;
129
- }
130
- }
131
- traverseChildren(item, partConfig[key] || configMapped);
132
- }
133
- }
134
- return partConfig;
135
- };
136
- traverseChildren(baseElement, config);
137
- return config;
138
- };
139
- return DOMMapper;
140
- }());
141
- /**
142
- * The MapperManager manages the different implemented mappers.
143
- * It allows the user to register new mappers as well and use them to parse their own configuration data
144
- */
145
- export var MapperManager = /** @class */ (function () {
146
- function MapperManager() {
147
- this._mappers = {
148
- html: new HTMLMapper(),
149
- json: new JSONMapper(),
150
- dom: new DOMMapper(),
151
- };
152
- }
153
- /**
154
- * Get a specific configuration mapper.
155
- *
156
- * @param type the name of the mapper to load
157
- * @returns the mapper
158
- */
159
- MapperManager.prototype.getMapper = function (type) {
160
- if (!this._mappers[type]) {
161
- Tools.Error("No mapper defined for " + type);
162
- }
163
- return this._mappers[type];
164
- };
165
- /**
166
- * Use this function to register your own configuration mapper.
167
- * After a mapper is registered, it can be used to parse the specific type fo configuration to the standard ViewerConfiguration.
168
- * @param type the name of the mapper. This will be used to define the configuration type and/or to get the mapper
169
- * @param mapper The implemented mapper
170
- */
171
- MapperManager.prototype.registerMapper = function (type, mapper) {
172
- this._mappers[type] = mapper;
173
- };
174
- /**
175
- * Dispose the mapper manager and all of its mappers.
176
- */
177
- MapperManager.prototype.dispose = function () {
178
- this._mappers = {};
179
- };
180
- /**
181
- * The default mapper is the JSON mapper.
182
- */
183
- MapperManager.DefaultMapper = "json";
184
- return MapperManager;
185
- }());
186
- /**
187
- * mapperManager is a singleton of the type MapperManager.
188
- * The mapperManager can be disposed directly with calling mapperManager.dispose()
189
- * or indirectly with using BabylonViewer.disposeAll()
190
- */
191
- export var mapperManager = new MapperManager();
192
- //# sourceMappingURL=mappers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../tools/viewer/src/configuration/mappers.ts"],"names":[],"mappings":"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","sourcesContent":["import { Tools } from \"core/Misc/tools\";\r\nimport type { ViewerConfiguration } from \"./configuration\";\r\n\r\n// eslint-disable-next-line import/no-internal-modules\r\nimport { kebabToCamel } from \"../helper/index\";\r\n\r\n/**\r\n * This is the mapper's interface. Implement this function to create your own mapper and register it at the mapper manager\r\n */\r\nexport interface IMapper {\r\n map(rawSource: any): ViewerConfiguration;\r\n}\r\n\r\n/**\r\n * This is a simple HTML mapper.\r\n * This mapper parses a single HTML element and returns the configuration from its attributes.\r\n * it parses numbers and boolean values to the corresponding variable types.\r\n * The following HTML element:\r\n * <div test=\"1\" random-flag=\"true\" a.string.object=\"test\"> will result in the following configuration:\r\n *\r\n * {\r\n * test: 1, //a number!\r\n * randomFlag: boolean, //camelCase and boolean\r\n * a: {\r\n * string: {\r\n * object: \"test\" //dot-separated object levels\r\n * }\r\n * }\r\n * }\r\n */\r\nclass HTMLMapper implements IMapper {\r\n /**\r\n * Map a specific element and get configuration from it\r\n * @param element the HTML element to analyze.\r\n * @returns a ViewerConfiguration object from the provided HTML Element\r\n */\r\n map(element: HTMLElement): ViewerConfiguration {\r\n const config = {};\r\n for (let attrIdx = 0; attrIdx < element.attributes.length; ++attrIdx) {\r\n const attr = element.attributes.item(attrIdx);\r\n if (!attr) {\r\n continue;\r\n }\r\n // map \"object.property\" to the right configuration place.\r\n const split = attr.nodeName.split(\".\");\r\n split.reduce((currentConfig: { [key: string]: any }, key, idx) => {\r\n //convert html-style to json-style\r\n const camelKey = kebabToCamel(key);\r\n if (idx === split.length - 1) {\r\n let val: any = attr!.nodeValue; // firefox warns nodeValue is deprecated, but I found no sign of it anywhere.\r\n if (val === \"true\") {\r\n val = true;\r\n } else if (val === \"false\") {\r\n val = false;\r\n } else if (val === \"undefined\") {\r\n val = undefined;\r\n } else if (val === \"null\") {\r\n val = null;\r\n } else {\r\n const isnum = !isNaN(parseFloat(val)) && isFinite(val); ///^\\d+$/.test(val);\r\n if (isnum) {\r\n const number = parseFloat(val);\r\n if (!isNaN(number)) {\r\n val = number;\r\n }\r\n }\r\n }\r\n currentConfig[camelKey] = val;\r\n } else {\r\n currentConfig[camelKey] = currentConfig[camelKey] || {};\r\n }\r\n return currentConfig[camelKey];\r\n }, config);\r\n }\r\n\r\n return config;\r\n }\r\n}\r\n\r\n/**\r\n * A simple string-to-JSON mapper.\r\n * This is the main mapper, used to analyze downloaded JSON-Configuration or JSON payload\r\n */\r\nclass JSONMapper implements IMapper {\r\n map(rawSource: string) {\r\n return JSON.parse(rawSource);\r\n }\r\n}\r\n\r\n/**\r\n * The DOM Mapper will traverse an entire DOM Tree and will load the configuration from the\r\n * DOM elements and attributes.\r\n */\r\nclass DOMMapper implements IMapper {\r\n /**\r\n * The mapping function that will convert HTML data to a viewer configuration object\r\n * @param baseElement the baseElement from which to start traversing\r\n * @returns a ViewerConfiguration object from the provided HTML Element\r\n */\r\n map(baseElement: HTMLElement): ViewerConfiguration {\r\n const htmlMapper = new HTMLMapper();\r\n const config = htmlMapper.map(baseElement);\r\n\r\n const traverseChildren = function (element: HTMLElement, partConfig: any) {\r\n const children = element.children;\r\n if (children.length) {\r\n for (let i = 0; i < children.length; ++i) {\r\n const item = <HTMLElement>children.item(i);\r\n // use the HTML Mapper to read configuration from a single element\r\n const configMapped = htmlMapper.map(item);\r\n const key = kebabToCamel(item.nodeName.toLowerCase());\r\n if (item.attributes.getNamedItem(\"array\") && item.attributes.getNamedItem(\"array\")!.nodeValue === \"true\") {\r\n partConfig[key] = [];\r\n } else {\r\n if (element.attributes.getNamedItem(\"array\") && element.attributes.getNamedItem(\"array\")!.nodeValue === \"true\") {\r\n partConfig.push(configMapped);\r\n } else if (partConfig[key]) {\r\n //exists already! probably an array\r\n element.setAttribute(\"array\", \"true\");\r\n const oldItem = partConfig[key];\r\n partConfig = [oldItem, configMapped];\r\n } else {\r\n partConfig[key] = configMapped;\r\n }\r\n }\r\n traverseChildren(item, partConfig[key] || configMapped);\r\n }\r\n }\r\n return partConfig;\r\n };\r\n\r\n traverseChildren(baseElement, config);\r\n\r\n return config;\r\n }\r\n}\r\n\r\n/**\r\n * The MapperManager manages the different implemented mappers.\r\n * It allows the user to register new mappers as well and use them to parse their own configuration data\r\n */\r\nexport class MapperManager {\r\n private _mappers: { [key: string]: IMapper };\r\n /**\r\n * The default mapper is the JSON mapper.\r\n */\r\n public static DefaultMapper = \"json\";\r\n\r\n constructor() {\r\n this._mappers = {\r\n html: new HTMLMapper(),\r\n json: new JSONMapper(),\r\n dom: new DOMMapper(),\r\n };\r\n }\r\n\r\n /**\r\n * Get a specific configuration mapper.\r\n *\r\n * @param type the name of the mapper to load\r\n * @returns the mapper\r\n */\r\n public getMapper(type: string) {\r\n if (!this._mappers[type]) {\r\n Tools.Error(\"No mapper defined for \" + type);\r\n }\r\n return this._mappers[type];\r\n }\r\n\r\n /**\r\n * Use this function to register your own configuration mapper.\r\n * After a mapper is registered, it can be used to parse the specific type fo configuration to the standard ViewerConfiguration.\r\n * @param type the name of the mapper. This will be used to define the configuration type and/or to get the mapper\r\n * @param mapper The implemented mapper\r\n */\r\n public registerMapper(type: string, mapper: IMapper) {\r\n this._mappers[type] = mapper;\r\n }\r\n\r\n /**\r\n * Dispose the mapper manager and all of its mappers.\r\n */\r\n public dispose() {\r\n this._mappers = {};\r\n }\r\n}\r\n\r\n/**\r\n * mapperManager is a singleton of the type MapperManager.\r\n * The mapperManager can be disposed directly with calling mapperManager.dispose()\r\n * or indirectly with using BabylonViewer.disposeAll()\r\n */\r\nexport const mapperManager = new MapperManager();\r\n"]}
@@ -1,33 +0,0 @@
1
- import type { ViewerConfiguration } from "./configuration";
2
- /**
3
- * The configuration loader will load the configuration object from any source and will use the defined mapper to
4
- * parse the object and return a conform ViewerConfiguration.
5
- * It is a private member of the scene.
6
- */
7
- export declare class RenderOnlyConfigurationLoader {
8
- private _enableCache;
9
- private _configurationCache;
10
- private _loadRequests;
11
- constructor(_enableCache?: boolean);
12
- private _getConfigurationTypeExcludeTemplate;
13
- protected getExtendedConfig(type: string | undefined): ViewerConfiguration;
14
- /**
15
- * load a configuration object that is defined in the initial configuration provided.
16
- * The viewer configuration can extend different types of configuration objects and have an extra configuration defined.
17
- *
18
- * @param initConfig the initial configuration that has the definitions of further configuration to load.
19
- * @param callback an optional callback that will be called sync, if noconfiguration needs to be loaded or configuration is payload-only
20
- * @returns A promise that delivers the extended viewer configuration, when done.
21
- */
22
- loadConfiguration(initConfig?: ViewerConfiguration, callback?: (config: ViewerConfiguration) => void): Promise<ViewerConfiguration>;
23
- /**
24
- * Dispose the configuration loader. This will cancel file requests, if active.
25
- */
26
- dispose(): void;
27
- /**
28
- * This function will process the initial configuration and make needed changes for the viewer to work.
29
- * @param config the mutable(!) initial configuration to process
30
- */
31
- private _processInitialConfiguration;
32
- private _loadFile;
33
- }