@babylonjs/viewer 7.40.2-alpha → 7.40.2
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.
- package/configuration/configuration.d.ts +107 -0
- package/configuration/configuration.js +16 -0
- package/configuration/configuration.js.map +1 -0
- package/configuration/configurationCompatibility.d.ts +8 -0
- package/configuration/configurationCompatibility.js +66 -0
- package/configuration/configurationCompatibility.js.map +1 -0
- package/configuration/configurationContainer.d.ts +10 -0
- package/configuration/configurationContainer.js +10 -0
- package/configuration/configurationContainer.js.map +1 -0
- package/configuration/globals.d.ts +6 -0
- package/configuration/globals.js +18 -0
- package/configuration/globals.js.map +1 -0
- package/configuration/index.d.ts +2 -0
- package/configuration/index.js +4 -0
- package/configuration/index.js.map +1 -0
- package/configuration/interfaces/cameraConfiguration.d.ts +31 -0
- package/configuration/interfaces/cameraConfiguration.js +2 -0
- package/configuration/interfaces/cameraConfiguration.js.map +1 -0
- package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -0
- package/configuration/interfaces/colorGradingConfiguration.js +2 -0
- package/configuration/interfaces/colorGradingConfiguration.js.map +1 -0
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -0
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +2 -0
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +1 -0
- package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -0
- package/configuration/interfaces/environmentMapConfiguration.js +2 -0
- package/configuration/interfaces/environmentMapConfiguration.js.map +1 -0
- package/configuration/interfaces/groundConfiguration.d.ts +24 -0
- package/configuration/interfaces/groundConfiguration.js +2 -0
- package/configuration/interfaces/groundConfiguration.js.map +1 -0
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +45 -0
- package/configuration/interfaces/imageProcessingConfiguration.js +2 -0
- package/configuration/interfaces/imageProcessingConfiguration.js.map +1 -0
- package/configuration/interfaces/index.d.ts +15 -0
- package/configuration/interfaces/index.js +16 -0
- package/configuration/interfaces/index.js.map +1 -0
- package/configuration/interfaces/lightConfiguration.d.ts +60 -0
- package/configuration/interfaces/lightConfiguration.js +2 -0
- package/configuration/interfaces/lightConfiguration.js.map +1 -0
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -0
- package/configuration/interfaces/modelAnimationConfiguration.js +2 -0
- package/configuration/interfaces/modelAnimationConfiguration.js.map +1 -0
- package/configuration/interfaces/modelConfiguration.d.ts +65 -0
- package/configuration/interfaces/modelConfiguration.js +2 -0
- package/configuration/interfaces/modelConfiguration.js.map +1 -0
- package/configuration/interfaces/observersConfiguration.d.ts +5 -0
- package/configuration/interfaces/observersConfiguration.js +2 -0
- package/configuration/interfaces/observersConfiguration.js.map +1 -0
- package/configuration/interfaces/sceneConfiguration.d.ts +48 -0
- package/configuration/interfaces/sceneConfiguration.js +2 -0
- package/configuration/interfaces/sceneConfiguration.js.map +1 -0
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -0
- package/configuration/interfaces/sceneOptimizerConfiguration.js +2 -0
- package/configuration/interfaces/sceneOptimizerConfiguration.js.map +1 -0
- package/configuration/interfaces/skyboxConfiguration.d.ts +21 -0
- package/configuration/interfaces/skyboxConfiguration.js +2 -0
- package/configuration/interfaces/skyboxConfiguration.js.map +1 -0
- package/configuration/interfaces/templateConfiguration.d.ts +67 -0
- package/configuration/interfaces/templateConfiguration.js +2 -0
- package/configuration/interfaces/templateConfiguration.js.map +1 -0
- package/configuration/interfaces/vrConfiguration.d.ts +16 -0
- package/configuration/interfaces/vrConfiguration.js +2 -0
- package/configuration/interfaces/vrConfiguration.js.map +1 -0
- package/configuration/loader.d.ts +4 -0
- package/configuration/loader.js +17 -0
- package/configuration/loader.js.map +1 -0
- package/configuration/mappers.d.ts +43 -0
- package/configuration/mappers.js +193 -0
- package/configuration/mappers.js.map +1 -0
- package/configuration/renderOnlyLoader.d.ts +33 -0
- package/configuration/renderOnlyLoader.js +162 -0
- package/configuration/renderOnlyLoader.js.map +1 -0
- package/configuration/types/default.d.ts +6 -0
- package/configuration/types/default.js +121 -0
- package/configuration/types/default.js.map +1 -0
- package/configuration/types/environmentMap.d.ts +5 -0
- package/configuration/types/environmentMap.js +14 -0
- package/configuration/types/environmentMap.js.map +1 -0
- package/configuration/types/extended.d.ts +6 -0
- package/configuration/types/extended.js +317 -0
- package/configuration/types/extended.js.map +1 -0
- package/configuration/types/index.d.ts +14 -0
- package/configuration/types/index.js +51 -0
- package/configuration/types/index.js.map +1 -0
- package/configuration/types/minimal.d.ts +6 -0
- package/configuration/types/minimal.js +43 -0
- package/configuration/types/minimal.js.map +1 -0
- package/configuration/types/renderOnlyDefault.d.ts +30 -0
- package/configuration/types/renderOnlyDefault.js +31 -0
- package/configuration/types/renderOnlyDefault.js.map +1 -0
- package/configuration/types/shadowLight.d.ts +9 -0
- package/configuration/types/shadowLight.js +64 -0
- package/configuration/types/shadowLight.js.map +1 -0
- package/helper/index.d.ts +29 -0
- package/helper/index.js +66 -0
- package/helper/index.js.map +1 -0
- package/index.d.ts +30 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/initializer.d.ts +11 -0
- package/initializer.js +35 -0
- package/initializer.js.map +1 -0
- package/interfaces.d.ts +5 -0
- package/interfaces.js +7 -0
- package/interfaces.js.map +1 -0
- package/labs/environmentSerializer.d.ts +126 -0
- package/labs/environmentSerializer.js +191 -0
- package/labs/environmentSerializer.js.map +1 -0
- package/labs/texture.d.ts +183 -0
- package/labs/texture.js +351 -0
- package/labs/texture.js.map +1 -0
- package/labs/viewerLabs.d.ts +51 -0
- package/labs/viewerLabs.js +134 -0
- package/labs/viewerLabs.js.map +1 -0
- package/loader/modelLoader.d.ts +56 -0
- package/loader/modelLoader.js +202 -0
- package/loader/modelLoader.js.map +1 -0
- package/loader/plugins/applyMaterialConfig.d.ts +12 -0
- package/loader/plugins/applyMaterialConfig.js +16 -0
- package/loader/plugins/applyMaterialConfig.js.map +1 -0
- package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -0
- package/loader/plugins/extendedMaterialLoaderPlugin.js +16 -0
- package/loader/plugins/extendedMaterialLoaderPlugin.js.map +1 -0
- package/loader/plugins/index.d.ts +19 -0
- package/loader/plugins/index.js +44 -0
- package/loader/plugins/index.js.map +1 -0
- package/loader/plugins/loaderPlugin.d.ts +24 -0
- package/loader/plugins/loaderPlugin.js +2 -0
- package/loader/plugins/loaderPlugin.js.map +1 -0
- package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -0
- package/loader/plugins/msftLodLoaderPlugin.js +21 -0
- package/loader/plugins/msftLodLoaderPlugin.js.map +1 -0
- package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -0
- package/loader/plugins/telemetryLoaderPlugin.js +36 -0
- package/loader/plugins/telemetryLoaderPlugin.js.map +1 -0
- package/managers/observablesManager.d.ts +66 -0
- package/managers/observablesManager.js +35 -0
- package/managers/observablesManager.js.map +1 -0
- package/managers/sceneManager.d.ts +245 -0
- package/managers/sceneManager.js +1375 -0
- package/managers/sceneManager.js.map +1 -0
- package/managers/telemetryManager.d.ts +78 -0
- package/managers/telemetryManager.js +117 -0
- package/managers/telemetryManager.js.map +1 -0
- package/model/modelAnimation.d.ts +215 -0
- package/model/modelAnimation.js +237 -0
- package/model/modelAnimation.js.map +1 -0
- package/model/viewerModel.d.ts +233 -0
- package/model/viewerModel.js +673 -0
- package/model/viewerModel.js.map +1 -0
- package/optimizer/custom/extended.d.ts +13 -0
- package/optimizer/custom/extended.js +101 -0
- package/optimizer/custom/extended.js.map +1 -0
- package/optimizer/custom/index.d.ts +9 -0
- package/optimizer/custom/index.js +26 -0
- package/optimizer/custom/index.js.map +1 -0
- package/package.json +28 -19
- package/readme.md +28 -28
- package/renderOnlyIndex.d.ts +11 -0
- package/renderOnlyIndex.js +18 -0
- package/renderOnlyIndex.js.map +1 -0
- package/templating/eventManager.d.ts +35 -0
- package/templating/eventManager.js +66 -0
- package/templating/eventManager.js.map +1 -0
- package/templating/plugins/hdButtonPlugin.d.ts +9 -0
- package/templating/plugins/hdButtonPlugin.js +22 -0
- package/templating/plugins/hdButtonPlugin.js.map +1 -0
- package/templating/plugins/printButton.d.ts +9 -0
- package/templating/plugins/printButton.js +41 -0
- package/templating/plugins/printButton.js.map +1 -0
- package/templating/templateManager.d.ts +197 -0
- package/templating/templateManager.js +561 -0
- package/templating/templateManager.js.map +1 -0
- package/templating/viewerTemplatePlugin.d.ts +21 -0
- package/templating/viewerTemplatePlugin.js +69 -0
- package/templating/viewerTemplatePlugin.js.map +1 -0
- package/viewer/defaultViewer.d.ts +130 -0
- package/viewer/defaultViewer.js +672 -0
- package/viewer/defaultViewer.js.map +1 -0
- package/viewer/renderOnlyViewer.d.ts +9 -0
- package/viewer/renderOnlyViewer.js +46 -0
- package/viewer/renderOnlyViewer.js.map +1 -0
- package/viewer/viewer.d.ts +258 -0
- package/viewer/viewer.js +783 -0
- package/viewer/viewer.js.map +1 -0
- package/viewer/viewerManager.d.ts +58 -0
- package/viewer/viewerManager.js +91 -0
- package/viewer/viewerManager.js.map +1 -0
- package/viewer/viewerWithTemplate.d.ts +9 -0
- package/viewer/viewerWithTemplate.js +20 -0
- package/viewer/viewerWithTemplate.js.map +1 -0
- package/assets/photoStudio.env +0 -0
- package/dist/babylon-viewer.esm.js +0 -2
- package/dist/babylon-viewer.esm.js.map +0 -1
- package/dist/babylon-viewer.esm.min.js +0 -2
- package/dist/babylon-viewer.esm.min.js.map +0 -1
- package/dist/chunks/EXT_lights_ies-BrhvRw2-.esm.js +0 -84
- package/dist/chunks/EXT_lights_ies-BrhvRw2-.esm.js.map +0 -1
- package/dist/chunks/EXT_lights_ies-Ddw_Gk8Q.esm.min.js +0 -2
- package/dist/chunks/EXT_lights_ies-Ddw_Gk8Q.esm.min.js.map +0 -1
- package/dist/chunks/EXT_lights_image_based-BjoWM5tf.esm.min.js +0 -2
- package/dist/chunks/EXT_lights_image_based-BjoWM5tf.esm.min.js.map +0 -1
- package/dist/chunks/EXT_lights_image_based-Bt2TW49Q.esm.js +0 -171
- package/dist/chunks/EXT_lights_image_based-Bt2TW49Q.esm.js.map +0 -1
- package/dist/chunks/EXT_mesh_gpu_instancing-Cy595I0S.esm.js +0 -86
- package/dist/chunks/EXT_mesh_gpu_instancing-Cy595I0S.esm.js.map +0 -1
- package/dist/chunks/EXT_mesh_gpu_instancing-DbVyjoq7.esm.min.js +0 -2
- package/dist/chunks/EXT_mesh_gpu_instancing-DbVyjoq7.esm.min.js.map +0 -1
- package/dist/chunks/EXT_meshopt_compression-PLPAdJXy.esm.min.js +0 -2
- package/dist/chunks/EXT_meshopt_compression-PLPAdJXy.esm.min.js.map +0 -1
- package/dist/chunks/EXT_meshopt_compression-ynnPogtK.esm.js +0 -134
- package/dist/chunks/EXT_meshopt_compression-ynnPogtK.esm.js.map +0 -1
- package/dist/chunks/EXT_texture_avif-D2N-IXnv.esm.min.js +0 -2
- package/dist/chunks/EXT_texture_avif-D2N-IXnv.esm.min.js.map +0 -1
- package/dist/chunks/EXT_texture_avif-Vt2hSGI5.esm.js +0 -44
- package/dist/chunks/EXT_texture_avif-Vt2hSGI5.esm.js.map +0 -1
- package/dist/chunks/EXT_texture_webp-CWz2PiP_.esm.min.js +0 -2
- package/dist/chunks/EXT_texture_webp-CWz2PiP_.esm.min.js.map +0 -1
- package/dist/chunks/EXT_texture_webp-i_LM5STR.esm.js +0 -43
- package/dist/chunks/EXT_texture_webp-i_LM5STR.esm.js.map +0 -1
- package/dist/chunks/ExtrasAsMetadata-BPRuILS3.esm.js +0 -64
- package/dist/chunks/ExtrasAsMetadata-BPRuILS3.esm.js.map +0 -1
- package/dist/chunks/ExtrasAsMetadata-BpKCYcU-.esm.min.js +0 -2
- package/dist/chunks/ExtrasAsMetadata-BpKCYcU-.esm.min.js.map +0 -1
- package/dist/chunks/KHR_animation_pointer-D25vJZ-D.esm.js +0 -352
- package/dist/chunks/KHR_animation_pointer-D25vJZ-D.esm.js.map +0 -1
- package/dist/chunks/KHR_animation_pointer-WM3ggesH.esm.min.js +0 -2
- package/dist/chunks/KHR_animation_pointer-WM3ggesH.esm.min.js.map +0 -1
- package/dist/chunks/KHR_draco_mesh_compression-6AbT2wN8.esm.min.js +0 -2
- package/dist/chunks/KHR_draco_mesh_compression-6AbT2wN8.esm.min.js.map +0 -1
- package/dist/chunks/KHR_draco_mesh_compression-Bn3cig1r.esm.js +0 -617
- package/dist/chunks/KHR_draco_mesh_compression-Bn3cig1r.esm.js.map +0 -1
- package/dist/chunks/KHR_interactivity-BN92hPs7.esm.js +0 -4033
- package/dist/chunks/KHR_interactivity-BN92hPs7.esm.js.map +0 -1
- package/dist/chunks/KHR_interactivity-B_CAm57j.esm.min.js +0 -2
- package/dist/chunks/KHR_interactivity-B_CAm57j.esm.min.js.map +0 -1
- package/dist/chunks/KHR_lights_punctual-BGKxFRu8.esm.js +0 -581
- package/dist/chunks/KHR_lights_punctual-BGKxFRu8.esm.js.map +0 -1
- package/dist/chunks/KHR_lights_punctual-DCOXnpRP.esm.min.js +0 -2
- package/dist/chunks/KHR_lights_punctual-DCOXnpRP.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_anisotropy-Dav3eIQr.esm.js +0 -65
- package/dist/chunks/KHR_materials_anisotropy-Dav3eIQr.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_anisotropy-I_WlXBtU.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_anisotropy-I_WlXBtU.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_clearcoat-D_Vx4NDv.esm.js +0 -96
- package/dist/chunks/KHR_materials_clearcoat-D_Vx4NDv.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_clearcoat-DrU2oJzb.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_clearcoat-DrU2oJzb.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_diffuse_transmission-C8j8KtbL.esm.js +0 -97
- package/dist/chunks/KHR_materials_diffuse_transmission-C8j8KtbL.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_diffuse_transmission-YyXsJa9T.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_diffuse_transmission-YyXsJa9T.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_dispersion-3Dk8ELun.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_dispersion-3Dk8ELun.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_dispersion-8_vd0eka.esm.js +0 -62
- package/dist/chunks/KHR_materials_dispersion-8_vd0eka.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_emissive_strength-6VqWp9kS.esm.js +0 -55
- package/dist/chunks/KHR_materials_emissive_strength-6VqWp9kS.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_emissive_strength-Bpd-wcN6.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_emissive_strength-Bpd-wcN6.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_ior-BGPYY59r.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_ior-BGPYY59r.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_ior-Cs0X7UR6.esm.js +0 -64
- package/dist/chunks/KHR_materials_ior-Cs0X7UR6.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_iridescence-BI7_Q9V2.esm.js +0 -72
- package/dist/chunks/KHR_materials_iridescence-BI7_Q9V2.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_iridescence-CvIyjrbg.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_iridescence-CvIyjrbg.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BFUvgZ3P.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BFUvgZ3P.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-C3famAnb.esm.js +0 -81
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-C3famAnb.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_sheen-B4V2NlWD.esm.js +0 -85
- package/dist/chunks/KHR_materials_sheen-B4V2NlWD.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_sheen-CegUHCDa.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_sheen-CegUHCDa.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_specular-CC5wN1RR.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_specular-CC5wN1RR.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_specular-TypCUJDx.esm.js +0 -75
- package/dist/chunks/KHR_materials_specular-TypCUJDx.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_transmission-BY9yIcAF.esm.js +0 -307
- package/dist/chunks/KHR_materials_transmission-BY9yIcAF.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_transmission-SU6SJMhP.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_transmission-SU6SJMhP.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_unlit-DOjLjYi4.esm.js +0 -74
- package/dist/chunks/KHR_materials_unlit-DOjLjYi4.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_unlit-DwCYujyL.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_unlit-DwCYujyL.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_variants-BJUrgDp4.esm.js +0 -262
- package/dist/chunks/KHR_materials_variants-BJUrgDp4.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_variants-BXHHmDq_.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_variants-BXHHmDq_.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_volume-D8a4cCjx.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_volume-D8a4cCjx.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_volume-cyXWRVXR.esm.js +0 -87
- package/dist/chunks/KHR_materials_volume-cyXWRVXR.esm.js.map +0 -1
- package/dist/chunks/KHR_mesh_quantization-BJCC5tJC.esm.min.js +0 -2
- package/dist/chunks/KHR_mesh_quantization-BJCC5tJC.esm.min.js.map +0 -1
- package/dist/chunks/KHR_mesh_quantization-BhTbEUzk.esm.js +0 -26
- package/dist/chunks/KHR_mesh_quantization-BhTbEUzk.esm.js.map +0 -1
- package/dist/chunks/KHR_node_hoverability-C2Bud6ES.esm.min.js +0 -2
- package/dist/chunks/KHR_node_hoverability-C2Bud6ES.esm.min.js.map +0 -1
- package/dist/chunks/KHR_node_hoverability-DlRIeNZh.esm.js +0 -39
- package/dist/chunks/KHR_node_hoverability-DlRIeNZh.esm.js.map +0 -1
- package/dist/chunks/KHR_node_visibility-CB2d0WsR.esm.js +0 -46
- package/dist/chunks/KHR_node_visibility-CB2d0WsR.esm.js.map +0 -1
- package/dist/chunks/KHR_node_visibility-CFk6SMES.esm.min.js +0 -2
- package/dist/chunks/KHR_node_visibility-CFk6SMES.esm.min.js.map +0 -1
- package/dist/chunks/KHR_texture_basisu-B68Sil5v.esm.js +0 -43
- package/dist/chunks/KHR_texture_basisu-B68Sil5v.esm.js.map +0 -1
- package/dist/chunks/KHR_texture_basisu-C2OGAWY7.esm.min.js +0 -2
- package/dist/chunks/KHR_texture_basisu-C2OGAWY7.esm.min.js.map +0 -1
- package/dist/chunks/KHR_texture_transform-Bk2KMc5C.esm.js +0 -63
- package/dist/chunks/KHR_texture_transform-Bk2KMc5C.esm.js.map +0 -1
- package/dist/chunks/KHR_texture_transform-D9MJQRee.esm.min.js +0 -2
- package/dist/chunks/KHR_texture_transform-D9MJQRee.esm.min.js.map +0 -1
- package/dist/chunks/KHR_xmp_json_ld-BkiGlm_U.esm.min.js +0 -2
- package/dist/chunks/KHR_xmp_json_ld-BkiGlm_U.esm.min.js.map +0 -1
- package/dist/chunks/KHR_xmp_json_ld-a9-wGW9D.esm.js +0 -51
- package/dist/chunks/KHR_xmp_json_ld-a9-wGW9D.esm.js.map +0 -1
- package/dist/chunks/MSFT_audio_emitter-B7aM8Qaz.esm.min.js +0 -2
- package/dist/chunks/MSFT_audio_emitter-B7aM8Qaz.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_audio_emitter-D0Z8eJZb.esm.js +0 -2207
- package/dist/chunks/MSFT_audio_emitter-D0Z8eJZb.esm.js.map +0 -1
- package/dist/chunks/MSFT_lod-BjIiS7t9.esm.js +0 -337
- package/dist/chunks/MSFT_lod-BjIiS7t9.esm.js.map +0 -1
- package/dist/chunks/MSFT_lod-DIOF_rM4.esm.min.js +0 -2
- package/dist/chunks/MSFT_lod-DIOF_rM4.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_minecraftMesh-Bx5s-9FS.esm.js +0 -46
- package/dist/chunks/MSFT_minecraftMesh-Bx5s-9FS.esm.js.map +0 -1
- package/dist/chunks/MSFT_minecraftMesh-EqwVrdf4.esm.min.js +0 -2
- package/dist/chunks/MSFT_minecraftMesh-EqwVrdf4.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_sRGBFactors-BJH-moQl.esm.min.js +0 -2
- package/dist/chunks/MSFT_sRGBFactors-BJH-moQl.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_sRGBFactors-Db1zWU4o.esm.js +0 -47
- package/dist/chunks/MSFT_sRGBFactors-Db1zWU4o.esm.js.map +0 -1
- package/dist/chunks/animationGroup-DjpN6ul8.esm.js +0 -2482
- package/dist/chunks/animationGroup-DjpN6ul8.esm.js.map +0 -1
- package/dist/chunks/animationGroup-Duijaphk.esm.min.js +0 -2
- package/dist/chunks/animationGroup-Duijaphk.esm.min.js.map +0 -1
- package/dist/chunks/assetContainer-2ZDjmTJ7.esm.min.js +0 -2
- package/dist/chunks/assetContainer-2ZDjmTJ7.esm.min.js.map +0 -1
- package/dist/chunks/assetContainer-nATkXNwM.esm.js +0 -1720
- package/dist/chunks/assetContainer-nATkXNwM.esm.js.map +0 -1
- package/dist/chunks/audioEngine-C2kMlYrt.esm.js +0 -305
- package/dist/chunks/audioEngine-C2kMlYrt.esm.js.map +0 -1
- package/dist/chunks/audioEngine-iEjhOdSs.esm.min.js +0 -2
- package/dist/chunks/audioEngine-iEjhOdSs.esm.min.js.map +0 -1
- package/dist/chunks/bakedVertexAnimation-CX_LYhI-.esm.js +0 -114
- package/dist/chunks/bakedVertexAnimation-CX_LYhI-.esm.js.map +0 -1
- package/dist/chunks/bakedVertexAnimation-Duhv1yIp.esm.min.js +0 -2
- package/dist/chunks/bakedVertexAnimation-Duhv1yIp.esm.min.js.map +0 -1
- package/dist/chunks/basisTextureLoader-BJrbh335.esm.min.js +0 -2
- package/dist/chunks/basisTextureLoader-BJrbh335.esm.min.js.map +0 -1
- package/dist/chunks/basisTextureLoader-KDTm6Vl6.esm.js +0 -600
- package/dist/chunks/basisTextureLoader-KDTm6Vl6.esm.js.map +0 -1
- package/dist/chunks/dds-BiituSHb.esm.min.js +0 -2
- package/dist/chunks/dds-BiituSHb.esm.min.js.map +0 -1
- package/dist/chunks/dds-CeXwQQLK.esm.js +0 -540
- package/dist/chunks/dds-CeXwQQLK.esm.js.map +0 -1
- package/dist/chunks/ddsTextureLoader-D38C-6i9.esm.min.js +0 -2
- package/dist/chunks/ddsTextureLoader-D38C-6i9.esm.min.js.map +0 -1
- package/dist/chunks/ddsTextureLoader-DZgDhz39.esm.js +0 -88
- package/dist/chunks/ddsTextureLoader-DZgDhz39.esm.js.map +0 -1
- package/dist/chunks/decalFragment-B0hAgbHQ.esm.js +0 -18
- package/dist/chunks/decalFragment-B0hAgbHQ.esm.js.map +0 -1
- package/dist/chunks/decalFragment-BisNb1SA.esm.min.js +0 -2
- package/dist/chunks/decalFragment-BisNb1SA.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-BKDPVw0f.esm.min.js +0 -2
- package/dist/chunks/default.fragment-BKDPVw0f.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-CKRvFrOX.esm.min.js +0 -2
- package/dist/chunks/default.fragment-CKRvFrOX.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-DBNZgft_.esm.js +0 -515
- package/dist/chunks/default.fragment-DBNZgft_.esm.js.map +0 -1
- package/dist/chunks/default.fragment-mEUMwg3j.esm.js +0 -446
- package/dist/chunks/default.fragment-mEUMwg3j.esm.js.map +0 -1
- package/dist/chunks/default.vertex-BIMZfH9h.esm.min.js +0 -2
- package/dist/chunks/default.vertex-BIMZfH9h.esm.min.js.map +0 -1
- package/dist/chunks/default.vertex-BYGJcupS.esm.js +0 -181
- package/dist/chunks/default.vertex-BYGJcupS.esm.js.map +0 -1
- package/dist/chunks/default.vertex-D-mtahDc.esm.min.js +0 -2
- package/dist/chunks/default.vertex-D-mtahDc.esm.min.js.map +0 -1
- package/dist/chunks/default.vertex-uhPv4tjg.esm.js +0 -202
- package/dist/chunks/default.vertex-uhPv4tjg.esm.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-CRSLp0Ab.esm.js +0 -13
- package/dist/chunks/defaultUboDeclaration-CRSLp0Ab.esm.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-CWb_GB6I.esm.min.js +0 -2
- package/dist/chunks/defaultUboDeclaration-CWb_GB6I.esm.min.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-Coy2X5Tb.esm.min.js +0 -2
- package/dist/chunks/defaultUboDeclaration-Coy2X5Tb.esm.min.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-vQgTvkEe.esm.js +0 -15
- package/dist/chunks/defaultUboDeclaration-vQgTvkEe.esm.js.map +0 -1
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +0 -11
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +0 -1
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +0 -2
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +0 -1
- package/dist/chunks/dumpTools-DO-b-FSI.esm.js +0 -200
- package/dist/chunks/dumpTools-DO-b-FSI.esm.js.map +0 -1
- package/dist/chunks/dumpTools-a-Jxv0UI.esm.min.js +0 -2
- package/dist/chunks/dumpTools-a-Jxv0UI.esm.min.js.map +0 -1
- package/dist/chunks/engine-BcUVpC0R.esm.js +0 -2216
- package/dist/chunks/engine-BcUVpC0R.esm.js.map +0 -1
- package/dist/chunks/engine-CBJrzwFS.esm.min.js +0 -2
- package/dist/chunks/engine-CBJrzwFS.esm.min.js.map +0 -1
- package/dist/chunks/engine.common-CSbFYR6g.esm.min.js +0 -2
- package/dist/chunks/engine.common-CSbFYR6g.esm.min.js.map +0 -1
- package/dist/chunks/engine.common-MyFhbP5R.esm.js +0 -1162
- package/dist/chunks/engine.common-MyFhbP5R.esm.js.map +0 -1
- package/dist/chunks/envTextureLoader-DFF091wY.esm.min.js +0 -2
- package/dist/chunks/envTextureLoader-DFF091wY.esm.min.js.map +0 -1
- package/dist/chunks/envTextureLoader-Mp-YE5HT.esm.js +0 -64
- package/dist/chunks/envTextureLoader-Mp-YE5HT.esm.js.map +0 -1
- package/dist/chunks/environmentTextureTools-B2Hu-wcq.esm.min.js +0 -2
- package/dist/chunks/environmentTextureTools-B2Hu-wcq.esm.min.js.map +0 -1
- package/dist/chunks/environmentTextureTools-Dd-a4rbC.esm.js +0 -382
- package/dist/chunks/environmentTextureTools-Dd-a4rbC.esm.js.map +0 -1
- package/dist/chunks/exrTextureLoader-DqVtC6Vz.esm.min.js +0 -2
- package/dist/chunks/exrTextureLoader-DqVtC6Vz.esm.min.js.map +0 -1
- package/dist/chunks/exrTextureLoader-yzAS6vzg.esm.js +0 -1683
- package/dist/chunks/exrTextureLoader-yzAS6vzg.esm.js.map +0 -1
- package/dist/chunks/fogFragment-B6w-VW0A.esm.js +0 -102
- package/dist/chunks/fogFragment-B6w-VW0A.esm.js.map +0 -1
- package/dist/chunks/fogFragment-BdwYc4_S.esm.js +0 -101
- package/dist/chunks/fogFragment-BdwYc4_S.esm.js.map +0 -1
- package/dist/chunks/fogFragment-CKVFmHTL.esm.min.js +0 -2
- package/dist/chunks/fogFragment-CKVFmHTL.esm.min.js.map +0 -1
- package/dist/chunks/fogFragment-CrTUuKN1.esm.min.js +0 -2
- package/dist/chunks/fogFragment-CrTUuKN1.esm.min.js.map +0 -1
- package/dist/chunks/fresnelFunction-BeTviBu9.esm.js +0 -12
- package/dist/chunks/fresnelFunction-BeTviBu9.esm.js.map +0 -1
- package/dist/chunks/fresnelFunction-BsRBgxHr.esm.min.js +0 -2
- package/dist/chunks/fresnelFunction-BsRBgxHr.esm.min.js.map +0 -1
- package/dist/chunks/glTFLoader-BNxQLfRc.esm.min.js +0 -2
- package/dist/chunks/glTFLoader-BNxQLfRc.esm.min.js.map +0 -1
- package/dist/chunks/glTFLoader-C3ib4SHM.esm.js +0 -7586
- package/dist/chunks/glTFLoader-C3ib4SHM.esm.js.map +0 -1
- package/dist/chunks/glTFLoaderAnimation-BNIOeHW6.esm.min.js +0 -2
- package/dist/chunks/glTFLoaderAnimation-BNIOeHW6.esm.min.js.map +0 -1
- package/dist/chunks/glTFLoaderAnimation-CIZW3HpB.esm.js +0 -77
- package/dist/chunks/glTFLoaderAnimation-CIZW3HpB.esm.js.map +0 -1
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +0 -2
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +0 -1
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +0 -67
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-BEk7hjTV.esm.js +0 -35
- package/dist/chunks/harmonicsFunctions-BEk7hjTV.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-DNd3DvtK.esm.js +0 -34
- package/dist/chunks/harmonicsFunctions-DNd3DvtK.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-Dcle49vi.esm.min.js +0 -2
- package/dist/chunks/harmonicsFunctions-Dcle49vi.esm.min.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-yt7loS1y.esm.min.js +0 -2
- package/dist/chunks/harmonicsFunctions-yt7loS1y.esm.min.js.map +0 -1
- package/dist/chunks/hdrTextureLoader-CVa1eQ0k.esm.min.js +0 -2
- package/dist/chunks/hdrTextureLoader-CVa1eQ0k.esm.min.js.map +0 -1
- package/dist/chunks/hdrTextureLoader-vBST57Sm.esm.js +0 -253
- package/dist/chunks/hdrTextureLoader-vBST57Sm.esm.js.map +0 -1
- package/dist/chunks/helperFunctions-CZ3iJ2Zw.esm.js +0 -108
- package/dist/chunks/helperFunctions-CZ3iJ2Zw.esm.js.map +0 -1
- package/dist/chunks/helperFunctions-D0BgwVW1.esm.min.js +0 -2
- package/dist/chunks/helperFunctions-D0BgwVW1.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-DjXuKfJE.esm.min.js +0 -2
- package/dist/chunks/helperFunctions-DjXuKfJE.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-utyx3wAA.esm.js +0 -80
- package/dist/chunks/helperFunctions-utyx3wAA.esm.js.map +0 -1
- package/dist/chunks/iesTextureLoader-CROHHiJh.esm.js +0 -189
- package/dist/chunks/iesTextureLoader-CROHHiJh.esm.js.map +0 -1
- package/dist/chunks/iesTextureLoader-WrbecGoP.esm.min.js +0 -2
- package/dist/chunks/iesTextureLoader-WrbecGoP.esm.min.js.map +0 -1
- package/dist/chunks/index-DnSap2FI.esm.js +0 -74799
- package/dist/chunks/index-DnSap2FI.esm.js.map +0 -1
- package/dist/chunks/index-j2tloO6T.esm.min.js +0 -57
- package/dist/chunks/index-j2tloO6T.esm.min.js.map +0 -1
- package/dist/chunks/ktxTextureLoader-BiAsvhuB.esm.js +0 -814
- package/dist/chunks/ktxTextureLoader-BiAsvhuB.esm.js.map +0 -1
- package/dist/chunks/ktxTextureLoader-DdTyaRVu.esm.min.js +0 -2
- package/dist/chunks/ktxTextureLoader-DdTyaRVu.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-B3OVyLof.esm.min.js +0 -2
- package/dist/chunks/logDepthDeclaration-B3OVyLof.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-B7WZlAEH.esm.min.js +0 -2
- package/dist/chunks/logDepthDeclaration-B7WZlAEH.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-C4zeVBON.esm.js +0 -11
- package/dist/chunks/logDepthDeclaration-C4zeVBON.esm.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-CWmx6aVd.esm.js +0 -35
- package/dist/chunks/logDepthDeclaration-CWmx6aVd.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-7PIzO8Uh.esm.js +0 -81
- package/dist/chunks/logDepthVertex-7PIzO8Uh.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-CplbMCm2.esm.min.js +0 -2
- package/dist/chunks/logDepthVertex-CplbMCm2.esm.min.js.map +0 -1
- package/dist/chunks/logDepthVertex-bHa3hoU5.esm.min.js +0 -2
- package/dist/chunks/logDepthVertex-bHa3hoU5.esm.min.js.map +0 -1
- package/dist/chunks/logDepthVertex-vHSzwfZ-.esm.js +0 -77
- package/dist/chunks/logDepthVertex-vHSzwfZ-.esm.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-CNqYA-gB.esm.min.js +0 -2
- package/dist/chunks/mainUVVaryingDeclaration-CNqYA-gB.esm.min.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-CeQvcMfP.esm.js +0 -11
- package/dist/chunks/mainUVVaryingDeclaration-CeQvcMfP.esm.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-CvsL0qYU.esm.min.js +0 -2
- package/dist/chunks/mainUVVaryingDeclaration-CvsL0qYU.esm.min.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-utHd2T0O.esm.js +0 -11
- package/dist/chunks/mainUVVaryingDeclaration-utHd2T0O.esm.js.map +0 -1
- package/dist/chunks/meshUboDeclaration-BJPUJrXy.esm.min.js +0 -2
- package/dist/chunks/meshUboDeclaration-BJPUJrXy.esm.min.js.map +0 -1
- package/dist/chunks/meshUboDeclaration-VYoDYbYC.esm.js +0 -26
- package/dist/chunks/meshUboDeclaration-VYoDYbYC.esm.js.map +0 -1
- package/dist/chunks/objFileLoader-8afS-_hY.esm.js +0 -1338
- package/dist/chunks/objFileLoader-8afS-_hY.esm.js.map +0 -1
- package/dist/chunks/objFileLoader-BzLe6gaH.esm.min.js +0 -2
- package/dist/chunks/objFileLoader-BzLe6gaH.esm.min.js.map +0 -1
- package/dist/chunks/oitFragment-CHqqW65b.esm.js +0 -1240
- package/dist/chunks/oitFragment-CHqqW65b.esm.js.map +0 -1
- package/dist/chunks/oitFragment-CeyJ_Jg6.esm.min.js +0 -2
- package/dist/chunks/oitFragment-CeyJ_Jg6.esm.min.js.map +0 -1
- package/dist/chunks/oitFragment-D_sf5Zw1.esm.min.js +0 -2
- package/dist/chunks/oitFragment-D_sf5Zw1.esm.min.js.map +0 -1
- package/dist/chunks/oitFragment-alnyZbc9.esm.js +0 -1078
- package/dist/chunks/oitFragment-alnyZbc9.esm.js.map +0 -1
- package/dist/chunks/pass.fragment-CwG7GshA.esm.js +0 -15
- package/dist/chunks/pass.fragment-CwG7GshA.esm.js.map +0 -1
- package/dist/chunks/pass.fragment-DfyFrxFg.esm.min.js +0 -2
- package/dist/chunks/pass.fragment-DfyFrxFg.esm.min.js.map +0 -1
- package/dist/chunks/pass.fragment-DvFaAVdg.esm.min.js +0 -2
- package/dist/chunks/pass.fragment-DvFaAVdg.esm.min.js.map +0 -1
- package/dist/chunks/pass.fragment-ZOmfFzXO.esm.js +0 -15
- package/dist/chunks/pass.fragment-ZOmfFzXO.esm.js.map +0 -1
- package/dist/chunks/pbr.fragment-C3zMQTsB.esm.min.js +0 -2
- package/dist/chunks/pbr.fragment-C3zMQTsB.esm.min.js.map +0 -1
- package/dist/chunks/pbr.fragment-CwRrGfA1.esm.js +0 -3232
- package/dist/chunks/pbr.fragment-CwRrGfA1.esm.js.map +0 -1
- package/dist/chunks/pbr.fragment-nFI8xyI0.esm.min.js +0 -2
- package/dist/chunks/pbr.fragment-nFI8xyI0.esm.min.js.map +0 -1
- package/dist/chunks/pbr.fragment-q5uFa6s9.esm.js +0 -3273
- package/dist/chunks/pbr.fragment-q5uFa6s9.esm.js.map +0 -1
- package/dist/chunks/pbr.vertex-CTHhPDZF.esm.js +0 -214
- package/dist/chunks/pbr.vertex-CTHhPDZF.esm.js.map +0 -1
- package/dist/chunks/pbr.vertex-CzNCwEDt.esm.min.js +0 -2
- package/dist/chunks/pbr.vertex-CzNCwEDt.esm.min.js.map +0 -1
- package/dist/chunks/pbr.vertex-CzdtHEkI.esm.min.js +0 -2
- package/dist/chunks/pbr.vertex-CzdtHEkI.esm.min.js.map +0 -1
- package/dist/chunks/pbr.vertex-xNnroO_M.esm.js +0 -339
- package/dist/chunks/pbr.vertex-xNnroO_M.esm.js.map +0 -1
- package/dist/chunks/postprocess.vertex-BYAf7HA1.esm.min.js +0 -2
- package/dist/chunks/postprocess.vertex-BYAf7HA1.esm.min.js.map +0 -1
- package/dist/chunks/postprocess.vertex-CbyPpEkq.esm.js +0 -20
- package/dist/chunks/postprocess.vertex-CbyPpEkq.esm.js.map +0 -1
- package/dist/chunks/rawTexture-CBbxz3pc.esm.js +0 -191
- package/dist/chunks/rawTexture-CBbxz3pc.esm.js.map +0 -1
- package/dist/chunks/rawTexture-DPGXBgNz.esm.min.js +0 -2
- package/dist/chunks/rawTexture-DPGXBgNz.esm.min.js.map +0 -1
- package/dist/chunks/ray-C_Cg5Enj.esm.js +0 -946
- package/dist/chunks/ray-C_Cg5Enj.esm.js.map +0 -1
- package/dist/chunks/ray-VbeIB6un.esm.min.js +0 -2
- package/dist/chunks/ray-VbeIB6un.esm.min.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-C8j9F7Bp.esm.js +0 -13
- package/dist/chunks/rgbdDecode.fragment-C8j9F7Bp.esm.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-CcXKr577.esm.js +0 -13
- package/dist/chunks/rgbdDecode.fragment-CcXKr577.esm.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-Cwx1U7TE.esm.min.js +0 -2
- package/dist/chunks/rgbdDecode.fragment-Cwx1U7TE.esm.min.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-DAz-9d4q.esm.min.js +0 -2
- package/dist/chunks/rgbdDecode.fragment-DAz-9d4q.esm.min.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-B-B_-l4T.esm.min.js +0 -2
- package/dist/chunks/rgbdEncode.fragment-B-B_-l4T.esm.min.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-C-IhOuE7.esm.js +0 -13
- package/dist/chunks/rgbdEncode.fragment-C-IhOuE7.esm.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-D2kStupC.esm.min.js +0 -2
- package/dist/chunks/rgbdEncode.fragment-D2kStupC.esm.min.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-DqeaHLSx.esm.js +0 -13
- package/dist/chunks/rgbdEncode.fragment-DqeaHLSx.esm.js.map +0 -1
- package/dist/chunks/splatFileLoader-CM4z7s6S.esm.min.js +0 -2
- package/dist/chunks/splatFileLoader-CM4z7s6S.esm.min.js.map +0 -1
- package/dist/chunks/splatFileLoader-DE83jdwc.esm.js +0 -3379
- package/dist/chunks/splatFileLoader-DE83jdwc.esm.js.map +0 -1
- package/dist/chunks/spotLight-98FksSI3.esm.min.js +0 -2
- package/dist/chunks/spotLight-98FksSI3.esm.min.js.map +0 -1
- package/dist/chunks/spotLight-DuWkoiV8.esm.js +0 -701
- package/dist/chunks/spotLight-DuWkoiV8.esm.js.map +0 -1
- package/dist/chunks/standardMaterial-Bp1mTX1d.esm.js +0 -1805
- package/dist/chunks/standardMaterial-Bp1mTX1d.esm.js.map +0 -1
- package/dist/chunks/standardMaterial-D8kKjcZn.esm.min.js +0 -2
- package/dist/chunks/standardMaterial-D8kKjcZn.esm.min.js.map +0 -1
- package/dist/chunks/stlFileLoader-BFPumqQB.esm.js +0 -238
- package/dist/chunks/stlFileLoader-BFPumqQB.esm.js.map +0 -1
- package/dist/chunks/stlFileLoader-BosbmaNZ.esm.min.js +0 -2
- package/dist/chunks/stlFileLoader-BosbmaNZ.esm.min.js.map +0 -1
- package/dist/chunks/tgaTextureLoader-CKRrtbo-.esm.min.js +0 -2
- package/dist/chunks/tgaTextureLoader-CKRrtbo-.esm.min.js.map +0 -1
- package/dist/chunks/tgaTextureLoader-PEVGE0SY.esm.js +0 -349
- package/dist/chunks/tgaTextureLoader-PEVGE0SY.esm.js.map +0 -1
- package/dist/chunks/thinEngine-kKYV_9vd.esm.js +0 -3848
- package/dist/chunks/thinEngine-kKYV_9vd.esm.js.map +0 -1
- package/dist/chunks/thinEngine-x_AyHrxY.esm.min.js +0 -2
- package/dist/chunks/thinEngine-x_AyHrxY.esm.min.js.map +0 -1
- package/dist/chunks/thinInstanceMesh-BlVs6kyh.esm.js +0 -314
- package/dist/chunks/thinInstanceMesh-BlVs6kyh.esm.js.map +0 -1
- package/dist/chunks/thinInstanceMesh-CNDaksPN.esm.min.js +0 -2
- package/dist/chunks/thinInstanceMesh-CNDaksPN.esm.min.js.map +0 -1
- package/dist/chunks/vertexColorMixing-2eNeJSgA.esm.min.js +0 -2
- package/dist/chunks/vertexColorMixing-2eNeJSgA.esm.min.js.map +0 -1
- package/dist/chunks/vertexColorMixing-BjOdZrk-.esm.js +0 -412
- package/dist/chunks/vertexColorMixing-BjOdZrk-.esm.js.map +0 -1
- package/dist/chunks/vertexColorMixing-BpqdwwOR.esm.min.js +0 -2
- package/dist/chunks/vertexColorMixing-BpqdwwOR.esm.min.js.map +0 -1
- package/dist/chunks/vertexColorMixing-CuP50ad9.esm.js +0 -522
- package/dist/chunks/vertexColorMixing-CuP50ad9.esm.js.map +0 -1
- package/dist/chunks/webgpuEngine-BW5Z2CFp.esm.min.js +0 -2
- package/dist/chunks/webgpuEngine-BW5Z2CFp.esm.min.js.map +0 -1
- package/dist/chunks/webgpuEngine-Cwdi0UKo.esm.js +0 -11533
- package/dist/chunks/webgpuEngine-Cwdi0UKo.esm.js.map +0 -1
- package/dist/chunks/workerPool-BUOov2K1.esm.js +0 -122
- package/dist/chunks/workerPool-BUOov2K1.esm.js.map +0 -1
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +0 -2
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +0 -1
- package/lib/index.d.ts +0 -591
- package/lib/index.js +0 -2165
- package/lib/index.js.map +0 -1
|
@@ -0,0 +1,672 @@
|
|
|
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;
|
|
215
|
+
if (!currentElement) {
|
|
216
|
+
var requestFullScreen = fullscreenElement.requestFullscreen || fullscreenElement.webkitRequestFullscreen;
|
|
217
|
+
requestFullScreen.call(fullscreenElement);
|
|
218
|
+
if (viewerElement) {
|
|
219
|
+
viewerElement.classList.add("in-fullscreen");
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
var exitFullscreen = document.exitFullscreen || document.webkitExitFullscreen;
|
|
224
|
+
exitFullscreen.call(document);
|
|
225
|
+
if (viewerElement) {
|
|
226
|
+
viewerElement.classList.remove("in-fullscreen");
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
_this._onModelLoaded = function (model) {
|
|
232
|
+
_this._configureTemplate(model);
|
|
233
|
+
// with a short timeout, making sure everything is there already.
|
|
234
|
+
var hideLoadingDelay = 20;
|
|
235
|
+
if (_this.configuration.lab && _this.configuration.lab.hideLoadingDelay !== undefined) {
|
|
236
|
+
hideLoadingDelay = _this.configuration.lab.hideLoadingDelay;
|
|
237
|
+
}
|
|
238
|
+
setTimeout(function () {
|
|
239
|
+
_this.sceneManager.scene.executeWhenReady(function () {
|
|
240
|
+
_this.hideLoadingScreen();
|
|
241
|
+
});
|
|
242
|
+
}, hideLoadingDelay);
|
|
243
|
+
return;
|
|
244
|
+
};
|
|
245
|
+
_this.onModelLoadedObservable.add(_this._onModelLoaded);
|
|
246
|
+
_this.onModelRemovedObservable.add(function () {
|
|
247
|
+
_this._configureTemplate();
|
|
248
|
+
});
|
|
249
|
+
_this.onEngineInitObservable.add(function () {
|
|
250
|
+
_this.sceneManager.onLightsConfiguredObservable.add(function () {
|
|
251
|
+
_this._configureLights();
|
|
252
|
+
});
|
|
253
|
+
_this.sceneManager.setDefaultMaterial = function (sceneConfig) {
|
|
254
|
+
var conf = sceneConfig.defaultMaterial;
|
|
255
|
+
if (!conf) {
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
if ((conf.materialType === "standard" && this.scene.defaultMaterial.getClassName() !== "StandardMaterial") ||
|
|
259
|
+
(conf.materialType === "pbr" && this.scene.defaultMaterial.getClassName() !== "PBRMaterial")) {
|
|
260
|
+
this.scene.defaultMaterial.dispose();
|
|
261
|
+
if (conf.materialType === "standard") {
|
|
262
|
+
this.scene.defaultMaterial = new StandardMaterial("defaultMaterial", this.scene);
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
this.scene.defaultMaterial = new PBRMaterial("defaultMaterial", this.scene);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
extendClassWithConfig(this.scene.defaultMaterial, conf);
|
|
269
|
+
};
|
|
270
|
+
if (!_this.sceneManager.models.length) {
|
|
271
|
+
_this.hideLoadingScreen();
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
return _this;
|
|
275
|
+
}
|
|
276
|
+
DefaultViewer.prototype.registerTemplatePlugin = function (plugin) {
|
|
277
|
+
var _this = this;
|
|
278
|
+
//validate
|
|
279
|
+
if (!plugin.templateName) {
|
|
280
|
+
throw new Error("No template name provided");
|
|
281
|
+
}
|
|
282
|
+
this._registeredPlugins.push(plugin);
|
|
283
|
+
var template = this.templateManager.getTemplate(plugin.templateName);
|
|
284
|
+
if (!template) {
|
|
285
|
+
throw new Error("Template ".concat(plugin.templateName, " not found"));
|
|
286
|
+
}
|
|
287
|
+
if (plugin.addHTMLTemplate) {
|
|
288
|
+
template.onHTMLRendered.add(function (tmpl) {
|
|
289
|
+
plugin.addHTMLTemplate(tmpl);
|
|
290
|
+
});
|
|
291
|
+
template.redraw();
|
|
292
|
+
}
|
|
293
|
+
if (plugin.eventsToAttach) {
|
|
294
|
+
plugin.eventsToAttach.forEach(function (eventName) {
|
|
295
|
+
plugin.onEvent &&
|
|
296
|
+
_this.templateManager.eventManager.registerCallback(plugin.templateName, function (event) {
|
|
297
|
+
if (plugin.onEvent && plugin.interactionPredicate(event)) {
|
|
298
|
+
plugin.onEvent(event);
|
|
299
|
+
}
|
|
300
|
+
}, eventName);
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* This will be executed when the templates initialize.
|
|
306
|
+
* @returns a promise that will be resolved when the templates are loaded
|
|
307
|
+
*/
|
|
308
|
+
DefaultViewer.prototype._onTemplatesLoaded = function () {
|
|
309
|
+
var _this = this;
|
|
310
|
+
this.showLoadingScreen();
|
|
311
|
+
// navbar
|
|
312
|
+
this._initNavbar();
|
|
313
|
+
// close overlay button
|
|
314
|
+
var template = this.templateManager.getTemplate("overlay");
|
|
315
|
+
if (template) {
|
|
316
|
+
var closeButton = template.parent.querySelector(".close-button");
|
|
317
|
+
if (closeButton) {
|
|
318
|
+
closeButton.addEventListener("pointerdown", function () {
|
|
319
|
+
_this.hideOverlayScreen();
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if (this.configuration.templates && this.configuration.templates.viewer) {
|
|
324
|
+
if (this.configuration.templates.viewer.params && this.configuration.templates.viewer.params.enableDragAndDrop) {
|
|
325
|
+
this.onSceneInitObservable.addOnce(function () {
|
|
326
|
+
var filesInput = new FilesInput(_this.engine, _this.sceneManager.scene, function () { }, function () { }, function () { }, function () { }, function () { }, function (file) {
|
|
327
|
+
_this.loadModel(file);
|
|
328
|
+
}, function () { });
|
|
329
|
+
filesInput.monitorElementForDragNDrop(_this.templateManager.getCanvas());
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return _super.prototype._onTemplatesLoaded.call(this);
|
|
334
|
+
};
|
|
335
|
+
DefaultViewer.prototype._initNavbar = function () {
|
|
336
|
+
var _this = this;
|
|
337
|
+
var navbar = this.templateManager.getTemplate("navBar");
|
|
338
|
+
if (navbar) {
|
|
339
|
+
this.onFrameRenderedObservable.add(this._updateProgressBar);
|
|
340
|
+
this.templateManager.eventManager.registerCallback("navBar", this._handlePointerClick, "click");
|
|
341
|
+
// an example how to trigger the help button. publiclly available
|
|
342
|
+
this.templateManager.eventManager.registerCallback("navBar", function () {
|
|
343
|
+
// do your thing
|
|
344
|
+
}, "pointerdown", ".help-button");
|
|
345
|
+
this.templateManager.eventManager.registerCallback("navBar", function (event) {
|
|
346
|
+
var evt = event.event;
|
|
347
|
+
var element = evt.target;
|
|
348
|
+
if (!_this._currentAnimation) {
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
var gotoFrame = (+element.value / 100) * _this._currentAnimation.frames;
|
|
352
|
+
if (isNaN(gotoFrame)) {
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
_this._currentAnimation.goToFrame(gotoFrame);
|
|
356
|
+
}, "input");
|
|
357
|
+
this.templateManager.eventManager.registerCallback("navBar", function () {
|
|
358
|
+
if (_this._resumePlay) {
|
|
359
|
+
_this._togglePlayPause(true);
|
|
360
|
+
}
|
|
361
|
+
_this._resumePlay = false;
|
|
362
|
+
}, "pointerup", ".progress-wrapper");
|
|
363
|
+
if (window.devicePixelRatio === 1 && navbar.configuration.params && !navbar.configuration.params.hideHdButton) {
|
|
364
|
+
navbar.updateParams({
|
|
365
|
+
hideHdButton: true,
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
this.registerTemplatePlugin(new HDButtonPlugin(this));
|
|
369
|
+
this.registerTemplatePlugin(new PrintButtonPlugin(this));
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
DefaultViewer.prototype._initVR = function () {
|
|
373
|
+
var _this = this;
|
|
374
|
+
if (this.sceneManager.vrHelper) {
|
|
375
|
+
// due to the way the experience helper is exisintg VR, this must be added.
|
|
376
|
+
this.sceneManager.vrHelper.onExitingVR.add(function () {
|
|
377
|
+
var viewerTemplate = _this.templateManager.getTemplate("viewer");
|
|
378
|
+
var viewerElement = viewerTemplate && viewerTemplate.parent;
|
|
379
|
+
if (viewerElement) {
|
|
380
|
+
viewerElement.classList.remove("in-vr");
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
_super.prototype._initVR.call(this);
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* Preparing the container element to present the viewer
|
|
388
|
+
*/
|
|
389
|
+
DefaultViewer.prototype._prepareContainerElement = function () {
|
|
390
|
+
var htmlElement = this.containerElement;
|
|
391
|
+
if (htmlElement.style) {
|
|
392
|
+
htmlElement.style.position = "relative";
|
|
393
|
+
htmlElement.style.height = "100%";
|
|
394
|
+
htmlElement.style.display = "flex";
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* This function will configure the templates and update them after a model was loaded
|
|
399
|
+
* It is mainly responsible to changing the title and subtitle etc'.
|
|
400
|
+
* @param model the model to be used to configure the templates by
|
|
401
|
+
*/
|
|
402
|
+
DefaultViewer.prototype._configureTemplate = function (model) {
|
|
403
|
+
var navbar = this.templateManager.getTemplate("navBar");
|
|
404
|
+
if (!navbar) {
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
var newParams = navbar.configuration.params || {};
|
|
408
|
+
if (!model) {
|
|
409
|
+
newParams.animations = null;
|
|
410
|
+
}
|
|
411
|
+
else {
|
|
412
|
+
var animationNames = model.getAnimationNames();
|
|
413
|
+
newParams.animations = animationNames.map(function (a) {
|
|
414
|
+
return { label: a, value: a };
|
|
415
|
+
});
|
|
416
|
+
if (animationNames.length) {
|
|
417
|
+
this._isAnimationPaused = (model.configuration.animation && !model.configuration.animation.autoStart) || !model.configuration.animation;
|
|
418
|
+
this._animationList = animationNames;
|
|
419
|
+
newParams.paused = this._isAnimationPaused;
|
|
420
|
+
var animationIndex = 0;
|
|
421
|
+
if (model.configuration.animation && typeof model.configuration.animation.autoStart === "string") {
|
|
422
|
+
animationIndex = animationNames.indexOf(model.configuration.animation.autoStart);
|
|
423
|
+
if (animationIndex === -1) {
|
|
424
|
+
animationIndex = 0;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
this._updateAnimationType(newParams.animations[animationIndex], newParams);
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
newParams.animations = null;
|
|
431
|
+
}
|
|
432
|
+
if (model.configuration.thumbnail) {
|
|
433
|
+
newParams.logoImage = model.configuration.thumbnail;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
navbar.updateParams(newParams, false);
|
|
437
|
+
};
|
|
438
|
+
/**
|
|
439
|
+
* This will load a new model to the default viewer
|
|
440
|
+
* overriding the AbstractViewer's loadModel.
|
|
441
|
+
* The scene will automatically be cleared of the old models, if exist.
|
|
442
|
+
* @param model the configuration object (or URL) to load.
|
|
443
|
+
* @returns a promise that will be resolved when the model is loaded
|
|
444
|
+
*/
|
|
445
|
+
DefaultViewer.prototype.loadModel = function (model) {
|
|
446
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
447
|
+
var error_1;
|
|
448
|
+
return __generator(this, function (_a) {
|
|
449
|
+
switch (_a.label) {
|
|
450
|
+
case 0:
|
|
451
|
+
if (!model) {
|
|
452
|
+
model = this.configuration.model;
|
|
453
|
+
}
|
|
454
|
+
this.showLoadingScreen();
|
|
455
|
+
_a.label = 1;
|
|
456
|
+
case 1:
|
|
457
|
+
_a.trys.push([1, 3, , 5]);
|
|
458
|
+
return [4 /*yield*/, _super.prototype.loadModel.call(this, model, true)];
|
|
459
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
460
|
+
case 3:
|
|
461
|
+
error_1 = _a.sent();
|
|
462
|
+
Logger.Log(error_1);
|
|
463
|
+
this.hideLoadingScreen();
|
|
464
|
+
this.showOverlayScreen("error");
|
|
465
|
+
return [4 /*yield*/, Promise.reject(error_1)];
|
|
466
|
+
case 4: return [2 /*return*/, _a.sent()];
|
|
467
|
+
case 5: return [2 /*return*/];
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
};
|
|
472
|
+
/**
|
|
473
|
+
* Show the overlay and the defined sub-screen.
|
|
474
|
+
* Mainly used for help and errors
|
|
475
|
+
* @param subScreen the name of the subScreen. Those can be defined in the configuration object
|
|
476
|
+
* @returns a promise that will be resolved when the overlay is shown
|
|
477
|
+
*/
|
|
478
|
+
DefaultViewer.prototype.showOverlayScreen = function (subScreen) {
|
|
479
|
+
var _this = this;
|
|
480
|
+
var template = this.templateManager.getTemplate("overlay");
|
|
481
|
+
if (!template) {
|
|
482
|
+
return Promise.resolve("Overlay template not found");
|
|
483
|
+
}
|
|
484
|
+
return template.show(function (template) {
|
|
485
|
+
var canvasRect = _this.containerElement.getBoundingClientRect();
|
|
486
|
+
template.parent.style.display = "flex";
|
|
487
|
+
template.parent.style.width = canvasRect.width + "px";
|
|
488
|
+
template.parent.style.height = canvasRect.height + "px";
|
|
489
|
+
template.parent.style.opacity = "1";
|
|
490
|
+
var subTemplate = _this.templateManager.getTemplate(subScreen);
|
|
491
|
+
if (!subTemplate) {
|
|
492
|
+
return Promise.reject(subScreen + " template not found");
|
|
493
|
+
}
|
|
494
|
+
return subTemplate.show(function (template) {
|
|
495
|
+
template.parent.style.display = "flex";
|
|
496
|
+
return Promise.resolve(template);
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Hide the overlay screen.
|
|
502
|
+
* @returns a promise that will be resolved when the overlay is hidden
|
|
503
|
+
*/
|
|
504
|
+
DefaultViewer.prototype.hideOverlayScreen = function () {
|
|
505
|
+
var template = this.templateManager.getTemplate("overlay");
|
|
506
|
+
if (!template) {
|
|
507
|
+
return Promise.resolve("Overlay template not found");
|
|
508
|
+
}
|
|
509
|
+
return template.hide(function (template) {
|
|
510
|
+
template.parent.style.opacity = "0";
|
|
511
|
+
var onTransitionEnd = function () {
|
|
512
|
+
template.parent.removeEventListener("transitionend", onTransitionEnd);
|
|
513
|
+
template.parent.style.display = "none";
|
|
514
|
+
};
|
|
515
|
+
template.parent.addEventListener("transitionend", onTransitionEnd);
|
|
516
|
+
var overlays = template.parent.querySelectorAll(".overlay");
|
|
517
|
+
if (overlays) {
|
|
518
|
+
for (var i = 0; i < overlays.length; ++i) {
|
|
519
|
+
var htmlElement = overlays.item(i);
|
|
520
|
+
htmlElement.style.display = "none";
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
return Promise.resolve(template);
|
|
524
|
+
});
|
|
525
|
+
};
|
|
526
|
+
/**
|
|
527
|
+
* show the viewer (in case it was hidden)
|
|
528
|
+
*
|
|
529
|
+
* @param visibilityFunction an optional function to execute in order to show the container
|
|
530
|
+
* @returns a promise that will be resolved when the viewer is shown
|
|
531
|
+
*/
|
|
532
|
+
DefaultViewer.prototype.show = function (visibilityFunction) {
|
|
533
|
+
var template = this.templateManager.getTemplate("main");
|
|
534
|
+
//not possible, but yet:
|
|
535
|
+
if (!template) {
|
|
536
|
+
return Promise.reject("Main template not found");
|
|
537
|
+
}
|
|
538
|
+
return template.show(visibilityFunction);
|
|
539
|
+
};
|
|
540
|
+
/**
|
|
541
|
+
* hide the viewer (in case it is visible)
|
|
542
|
+
*
|
|
543
|
+
* @param visibilityFunction an optional function to execute in order to hide the container
|
|
544
|
+
* @returns a promise that will be resolved when the viewer is hidden
|
|
545
|
+
*/
|
|
546
|
+
DefaultViewer.prototype.hide = function (visibilityFunction) {
|
|
547
|
+
var template = this.templateManager.getTemplate("main");
|
|
548
|
+
//not possible, but yet:
|
|
549
|
+
if (!template) {
|
|
550
|
+
return Promise.reject("Main template not found");
|
|
551
|
+
}
|
|
552
|
+
return template.hide(visibilityFunction);
|
|
553
|
+
};
|
|
554
|
+
/**
|
|
555
|
+
* Show the loading screen.
|
|
556
|
+
* The loading screen can be configured using the configuration object
|
|
557
|
+
* @returns a promise that will be resolved when the loading screen is shown
|
|
558
|
+
*/
|
|
559
|
+
DefaultViewer.prototype.showLoadingScreen = function () {
|
|
560
|
+
var _this = this;
|
|
561
|
+
var template = this.templateManager.getTemplate("loadingScreen");
|
|
562
|
+
if (!template) {
|
|
563
|
+
return Promise.resolve("Loading Screen template not found");
|
|
564
|
+
}
|
|
565
|
+
return template.show(function (template) {
|
|
566
|
+
var canvasRect = _this.containerElement.getBoundingClientRect();
|
|
567
|
+
// var canvasPositioning = window.getComputedStyle(this.containerElement).position;
|
|
568
|
+
template.parent.style.display = "flex";
|
|
569
|
+
template.parent.style.width = canvasRect.width + "px";
|
|
570
|
+
template.parent.style.height = canvasRect.height + "px";
|
|
571
|
+
template.parent.style.opacity = "1";
|
|
572
|
+
// from the configuration!!!
|
|
573
|
+
var color = "black";
|
|
574
|
+
if (_this.configuration.templates && _this.configuration.templates.loadingScreen) {
|
|
575
|
+
color = (_this.configuration.templates.loadingScreen.params && _this.configuration.templates.loadingScreen.params.backgroundColor) || color;
|
|
576
|
+
}
|
|
577
|
+
template.parent.style.backgroundColor = color;
|
|
578
|
+
return Promise.resolve(template);
|
|
579
|
+
});
|
|
580
|
+
};
|
|
581
|
+
/**
|
|
582
|
+
* Hide the loading screen
|
|
583
|
+
* @returns a promise that will be resolved when the loading screen is hidden
|
|
584
|
+
*/
|
|
585
|
+
DefaultViewer.prototype.hideLoadingScreen = function () {
|
|
586
|
+
var template = this.templateManager.getTemplate("loadingScreen");
|
|
587
|
+
if (!template) {
|
|
588
|
+
return Promise.resolve("Loading Screen template not found");
|
|
589
|
+
}
|
|
590
|
+
return template.hide(function (template) {
|
|
591
|
+
template.parent.style.opacity = "0";
|
|
592
|
+
var onTransitionEnd = function () {
|
|
593
|
+
template.parent.removeEventListener("transitionend", onTransitionEnd);
|
|
594
|
+
template.parent.style.display = "none";
|
|
595
|
+
};
|
|
596
|
+
template.parent.addEventListener("transitionend", onTransitionEnd);
|
|
597
|
+
return Promise.resolve(template);
|
|
598
|
+
});
|
|
599
|
+
};
|
|
600
|
+
DefaultViewer.prototype.dispose = function () {
|
|
601
|
+
this.templateManager.dispose();
|
|
602
|
+
_super.prototype.dispose.call(this);
|
|
603
|
+
};
|
|
604
|
+
DefaultViewer.prototype._onConfigurationLoaded = function (configuration) {
|
|
605
|
+
var _this = this;
|
|
606
|
+
_super.prototype._onConfigurationLoaded.call(this, configuration);
|
|
607
|
+
this.templateManager = new TemplateManager(this.containerElement);
|
|
608
|
+
// initialize the templates
|
|
609
|
+
var templateConfiguration = this.configuration.templates || {};
|
|
610
|
+
this.templateManager.initTemplate(templateConfiguration);
|
|
611
|
+
// when done, execute onTemplatesLoaded()
|
|
612
|
+
this.templateManager.onAllLoaded.add(function () {
|
|
613
|
+
var canvas = _this.templateManager.getCanvas();
|
|
614
|
+
if (canvas) {
|
|
615
|
+
_this._canvas = canvas;
|
|
616
|
+
}
|
|
617
|
+
_this._onTemplateLoaded();
|
|
618
|
+
});
|
|
619
|
+
};
|
|
620
|
+
/**
|
|
621
|
+
* An extension of the light configuration of the abstract viewer.
|
|
622
|
+
*/
|
|
623
|
+
DefaultViewer.prototype._configureLights = function () {
|
|
624
|
+
var _this = this;
|
|
625
|
+
// labs feature - flashlight
|
|
626
|
+
if (this.configuration.lab && this.configuration.lab.flashlight) {
|
|
627
|
+
var lightTarget_1;
|
|
628
|
+
var angle = 0.5;
|
|
629
|
+
var exponent = Math.PI / 2;
|
|
630
|
+
if (typeof this.configuration.lab.flashlight === "object") {
|
|
631
|
+
exponent = this.configuration.lab.flashlight.exponent || exponent;
|
|
632
|
+
angle = this.configuration.lab.flashlight.angle || angle;
|
|
633
|
+
}
|
|
634
|
+
var flashlight_1 = new SpotLight("flashlight", Vector3.Zero(), Vector3.Zero(), exponent, angle, this.sceneManager.scene);
|
|
635
|
+
if (typeof this.configuration.lab.flashlight === "object") {
|
|
636
|
+
flashlight_1.intensity = this.configuration.lab.flashlight.intensity || flashlight_1.intensity;
|
|
637
|
+
if (this.configuration.lab.flashlight.diffuse) {
|
|
638
|
+
flashlight_1.diffuse.r = this.configuration.lab.flashlight.diffuse.r;
|
|
639
|
+
flashlight_1.diffuse.g = this.configuration.lab.flashlight.diffuse.g;
|
|
640
|
+
flashlight_1.diffuse.b = this.configuration.lab.flashlight.diffuse.b;
|
|
641
|
+
}
|
|
642
|
+
if (this.configuration.lab.flashlight.specular) {
|
|
643
|
+
flashlight_1.specular.r = this.configuration.lab.flashlight.specular.r;
|
|
644
|
+
flashlight_1.specular.g = this.configuration.lab.flashlight.specular.g;
|
|
645
|
+
flashlight_1.specular.b = this.configuration.lab.flashlight.specular.b;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
this.sceneManager.scene.constantlyUpdateMeshUnderPointer = true;
|
|
649
|
+
this.sceneManager.scene.onPointerObservable.add(function (eventData) {
|
|
650
|
+
if (eventData.type === 4 && eventData.pickInfo) {
|
|
651
|
+
lightTarget_1 = eventData.pickInfo.pickedPoint;
|
|
652
|
+
}
|
|
653
|
+
else {
|
|
654
|
+
lightTarget_1 = undefined;
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
var updateFlashlightFunction = function () {
|
|
658
|
+
if (_this.sceneManager.camera && flashlight_1) {
|
|
659
|
+
flashlight_1.position.copyFrom(_this.sceneManager.camera.position);
|
|
660
|
+
if (lightTarget_1) {
|
|
661
|
+
lightTarget_1.subtractToRef(flashlight_1.position, flashlight_1.direction);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
this.sceneManager.scene.registerBeforeRender(updateFlashlightFunction);
|
|
666
|
+
this._registeredOnBeforeRenderFunctions.push(updateFlashlightFunction);
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
return DefaultViewer;
|
|
670
|
+
}(AbstractViewerWithTemplate));
|
|
671
|
+
export { DefaultViewer };
|
|
672
|
+
//# sourceMappingURL=defaultViewer.js.map
|