@babylonjs/viewer 7.34.0 → 7.34.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/photoStudio.env +0 -0
- package/dist/babylon-viewer.esm.js +2 -0
- package/dist/babylon-viewer.esm.js.map +1 -0
- package/dist/babylon-viewer.esm.min.js +2 -0
- package/dist/babylon-viewer.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-BEB9e7Qh.esm.js +171 -0
- package/dist/chunks/EXT_lights_image_based-BEB9e7Qh.esm.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-Br8-9wwx.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_image_based-Br8-9wwx.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BUTrwpB0.esm.min.js +2 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BUTrwpB0.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-C-4YO_s6.esm.js +86 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-C-4YO_s6.esm.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-BHk7K3Br.esm.min.js +2 -0
- package/dist/chunks/EXT_meshopt_compression-BHk7K3Br.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-Bp4FGzz3.esm.js +134 -0
- package/dist/chunks/EXT_meshopt_compression-Bp4FGzz3.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-BT3uVW17.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_avif-BT3uVW17.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-CxBJ6ntN.esm.js +44 -0
- package/dist/chunks/EXT_texture_avif-CxBJ6ntN.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-Begfekal.esm.js +43 -0
- package/dist/chunks/EXT_texture_webp-Begfekal.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-M1R5TH_R.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_webp-M1R5TH_R.esm.min.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-r0vaPDZE.esm.js +64 -0
- package/dist/chunks/ExtrasAsMetadata-r0vaPDZE.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-uxeIyFfk.esm.min.js +2 -0
- package/dist/chunks/ExtrasAsMetadata-uxeIyFfk.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-azm4zdfA.esm.js +343 -0
- package/dist/chunks/KHR_animation_pointer-azm4zdfA.esm.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-lsaRvMAH.esm.min.js +2 -0
- package/dist/chunks/KHR_animation_pointer-lsaRvMAH.esm.min.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-BNnrofQn.esm.min.js +2 -0
- package/dist/chunks/KHR_draco_mesh_compression-BNnrofQn.esm.min.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-D7_kBTYi.esm.js +610 -0
- package/dist/chunks/KHR_draco_mesh_compression-D7_kBTYi.esm.js.map +1 -0
- package/dist/chunks/KHR_interactivity-C-IZTHUi.esm.js +4033 -0
- package/dist/chunks/KHR_interactivity-C-IZTHUi.esm.js.map +1 -0
- package/dist/chunks/KHR_interactivity-D94LiThl.esm.min.js +2 -0
- package/dist/chunks/KHR_interactivity-D94LiThl.esm.min.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-BKp5EsJW.esm.min.js +2 -0
- package/dist/chunks/KHR_lights_punctual-BKp5EsJW.esm.min.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-BsgBFc-N.esm.js +1253 -0
- package/dist/chunks/KHR_lights_punctual-BsgBFc-N.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-Cci_9nQT.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_anisotropy-Cci_9nQT.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-Com5V5jb.esm.js +65 -0
- package/dist/chunks/KHR_materials_anisotropy-Com5V5jb.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-B2tF2bDO.esm.js +96 -0
- package/dist/chunks/KHR_materials_clearcoat-B2tF2bDO.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-Bkko3vNA.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_clearcoat-Bkko3vNA.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-C93oTsl_.esm.js +97 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-C93oTsl_.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-DOAIHvPx.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-DOAIHvPx.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-BvRzmrb6.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_dispersion-BvRzmrb6.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-DU-FpvrX.esm.js +62 -0
- package/dist/chunks/KHR_materials_dispersion-DU-FpvrX.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-D8jz9ubV.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_emissive_strength-D8jz9ubV.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-k2jOQJcB.esm.js +55 -0
- package/dist/chunks/KHR_materials_emissive_strength-k2jOQJcB.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-BlFLqthz.esm.js +64 -0
- package/dist/chunks/KHR_materials_ior-BlFLqthz.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-CaNh5P7D.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_ior-CaNh5P7D.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-DcRdhRHC.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_iridescence-DcRdhRHC.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-Hm2o5GnD.esm.js +72 -0
- package/dist/chunks/KHR_materials_iridescence-Hm2o5GnD.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Cc1XJ2jt.esm.js +81 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Cc1XJ2jt.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-lbg_7it1.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-lbg_7it1.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-oeySBwn7.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_sheen-oeySBwn7.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-s-nV79vS.esm.js +85 -0
- package/dist/chunks/KHR_materials_sheen-s-nV79vS.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-CtlLd3cx.esm.js +75 -0
- package/dist/chunks/KHR_materials_specular-CtlLd3cx.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-YeZxGsR4.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_specular-YeZxGsR4.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-BtIBwFe-.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_transmission-BtIBwFe-.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-hBRj9QhL.esm.js +307 -0
- package/dist/chunks/KHR_materials_transmission-hBRj9QhL.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-Bl8v8mcy.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_unlit-Bl8v8mcy.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-CJJFEgUn.esm.js +74 -0
- package/dist/chunks/KHR_materials_unlit-CJJFEgUn.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-BJ7RgiKn.esm.js +238 -0
- package/dist/chunks/KHR_materials_variants-BJ7RgiKn.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-CmgN5juT.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_variants-CmgN5juT.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-ClPnCrip.esm.js +87 -0
- package/dist/chunks/KHR_materials_volume-ClPnCrip.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-DZDfjrMu.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_volume-DZDfjrMu.esm.min.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-4r2qmkMe.esm.min.js +2 -0
- package/dist/chunks/KHR_mesh_quantization-4r2qmkMe.esm.min.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-D564WthK.esm.js +26 -0
- package/dist/chunks/KHR_mesh_quantization-D564WthK.esm.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-DRIeteM0.esm.min.js +2 -0
- package/dist/chunks/KHR_node_visibility-DRIeteM0.esm.min.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-z2Q5_j6c.esm.js +46 -0
- package/dist/chunks/KHR_node_visibility-z2Q5_j6c.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-Buw_seVM.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_basisu-Buw_seVM.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-jJQpU0tI.esm.js +43 -0
- package/dist/chunks/KHR_texture_basisu-jJQpU0tI.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-Bg6Ww6KK.esm.js +63 -0
- package/dist/chunks/KHR_texture_transform-Bg6Ww6KK.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-MF_Umnpf.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_transform-MF_Umnpf.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-ApS_Ggtg.esm.js +51 -0
- package/dist/chunks/KHR_xmp_json_ld-ApS_Ggtg.esm.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-DW2A-Tru.esm.min.js +2 -0
- package/dist/chunks/KHR_xmp_json_ld-DW2A-Tru.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-Cvy5H4Ub.esm.js +2207 -0
- package/dist/chunks/MSFT_audio_emitter-Cvy5H4Ub.esm.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-IbKlZupE.esm.min.js +2 -0
- package/dist/chunks/MSFT_audio_emitter-IbKlZupE.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_lod-C7JIUYia.esm.js +337 -0
- package/dist/chunks/MSFT_lod-C7JIUYia.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-CJKlM_fO.esm.min.js +2 -0
- package/dist/chunks/MSFT_lod-CJKlM_fO.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-BkqXXbee.esm.min.js +2 -0
- package/dist/chunks/MSFT_minecraftMesh-BkqXXbee.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-C-6Z9tKo.esm.js +46 -0
- package/dist/chunks/MSFT_minecraftMesh-C-6Z9tKo.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-BHDlQP7E.esm.js +47 -0
- package/dist/chunks/MSFT_sRGBFactors-BHDlQP7E.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-DozcvHI6.esm.min.js +2 -0
- package/dist/chunks/MSFT_sRGBFactors-DozcvHI6.esm.min.js.map +1 -0
- package/dist/chunks/animationGroup-BZm6xWq7.esm.js +2481 -0
- package/dist/chunks/animationGroup-BZm6xWq7.esm.js.map +1 -0
- package/dist/chunks/animationGroup-C7ArA9IC.esm.min.js +2 -0
- package/dist/chunks/animationGroup-C7ArA9IC.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-C7aU6J42.esm.min.js +2 -0
- package/dist/chunks/assetContainer-C7aU6J42.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-CVxLcv0V.esm.js +1720 -0
- package/dist/chunks/assetContainer-CVxLcv0V.esm.js.map +1 -0
- package/dist/chunks/audioEngine-D2G43YUD.esm.min.js +2 -0
- package/dist/chunks/audioEngine-D2G43YUD.esm.min.js.map +1 -0
- package/dist/chunks/audioEngine-D_NZCItC.esm.js +305 -0
- package/dist/chunks/audioEngine-D_NZCItC.esm.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-B1XNLs9d.esm.min.js +2 -0
- package/dist/chunks/bakedVertexAnimation-B1XNLs9d.esm.min.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-gHMbdYg_.esm.js +114 -0
- package/dist/chunks/bakedVertexAnimation-gHMbdYg_.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-BeRKqYms.esm.min.js +2 -0
- package/dist/chunks/basisTextureLoader-BeRKqYms.esm.min.js.map +1 -0
- package/dist/chunks/basisTextureLoader-DJmf7otq.esm.js +600 -0
- package/dist/chunks/basisTextureLoader-DJmf7otq.esm.js.map +1 -0
- package/dist/chunks/dds-C5Midc6k.esm.min.js +2 -0
- package/dist/chunks/dds-C5Midc6k.esm.min.js.map +1 -0
- package/dist/chunks/dds-CKWh82d1.esm.js +540 -0
- package/dist/chunks/dds-CKWh82d1.esm.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-CNu9OJwy.esm.js +88 -0
- package/dist/chunks/ddsTextureLoader-CNu9OJwy.esm.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-D5ql7SCs.esm.min.js +2 -0
- package/dist/chunks/ddsTextureLoader-D5ql7SCs.esm.min.js.map +1 -0
- package/dist/chunks/decalFragment-DO1YdAw3.esm.js +18 -0
- package/dist/chunks/decalFragment-DO1YdAw3.esm.js.map +1 -0
- package/dist/chunks/decalFragment-DUQwsFx9.esm.min.js +2 -0
- package/dist/chunks/decalFragment-DUQwsFx9.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-BBSwmAWO.esm.js +433 -0
- package/dist/chunks/default.fragment-BBSwmAWO.esm.js.map +1 -0
- package/dist/chunks/default.fragment-CxBu72nd.esm.min.js +2 -0
- package/dist/chunks/default.fragment-CxBu72nd.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-D37ivhnt.esm.js +497 -0
- package/dist/chunks/default.fragment-D37ivhnt.esm.js.map +1 -0
- package/dist/chunks/default.fragment-msRxUAup.esm.min.js +2 -0
- package/dist/chunks/default.fragment-msRxUAup.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-BHIbJTjy.esm.js +201 -0
- package/dist/chunks/default.vertex-BHIbJTjy.esm.js.map +1 -0
- package/dist/chunks/default.vertex-BOd2Qv9P.esm.js +181 -0
- package/dist/chunks/default.vertex-BOd2Qv9P.esm.js.map +1 -0
- package/dist/chunks/default.vertex-BRKvxfhx.esm.min.js +2 -0
- package/dist/chunks/default.vertex-BRKvxfhx.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-CFCnsFU5.esm.min.js +2 -0
- package/dist/chunks/default.vertex-CFCnsFU5.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-BDDUZQmd.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-BDDUZQmd.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-BMW-HGyh.esm.js +15 -0
- package/dist/chunks/defaultUboDeclaration-BMW-HGyh.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-DX8jM9He.esm.js +13 -0
- package/dist/chunks/defaultUboDeclaration-DX8jM9He.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-RTn_PpL_.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-RTn_PpL_.esm.min.js.map +1 -0
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
- package/dist/chunks/dumpTools-DYp3w3NU.esm.min.js +2 -0
- package/dist/chunks/dumpTools-DYp3w3NU.esm.min.js.map +1 -0
- package/dist/chunks/dumpTools-Dj_wBXom.esm.js +200 -0
- package/dist/chunks/dumpTools-Dj_wBXom.esm.js.map +1 -0
- package/dist/chunks/engine-DfOircaH.esm.js +2186 -0
- package/dist/chunks/engine-DfOircaH.esm.js.map +1 -0
- package/dist/chunks/engine-DkBh62gg.esm.min.js +2 -0
- package/dist/chunks/engine-DkBh62gg.esm.min.js.map +1 -0
- package/dist/chunks/engine.common-BGLtEPJP.esm.min.js +2 -0
- package/dist/chunks/engine.common-BGLtEPJP.esm.min.js.map +1 -0
- package/dist/chunks/engine.common-DrnSgg7_.esm.js +1103 -0
- package/dist/chunks/engine.common-DrnSgg7_.esm.js.map +1 -0
- package/dist/chunks/envTextureLoader-CCqa6_oK.esm.min.js +2 -0
- package/dist/chunks/envTextureLoader-CCqa6_oK.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-DUQS8agg.esm.js +64 -0
- package/dist/chunks/envTextureLoader-DUQS8agg.esm.js.map +1 -0
- package/dist/chunks/environmentTextureTools-Cjku-xo2.esm.min.js +2 -0
- package/dist/chunks/environmentTextureTools-Cjku-xo2.esm.min.js.map +1 -0
- package/dist/chunks/environmentTextureTools-DTu4ytBf.esm.js +382 -0
- package/dist/chunks/environmentTextureTools-DTu4ytBf.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-DfvzCmoB.esm.min.js +2 -0
- package/dist/chunks/exrTextureLoader-DfvzCmoB.esm.min.js.map +1 -0
- package/dist/chunks/exrTextureLoader-K__XW5Zc.esm.js +1682 -0
- package/dist/chunks/exrTextureLoader-K__XW5Zc.esm.js.map +1 -0
- package/dist/chunks/fogFragment-Bk61XQFj.esm.js +101 -0
- package/dist/chunks/fogFragment-Bk61XQFj.esm.js.map +1 -0
- package/dist/chunks/fogFragment-C8E9g7r_.esm.min.js +2 -0
- package/dist/chunks/fogFragment-C8E9g7r_.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-CW2_bHW9.esm.js +102 -0
- package/dist/chunks/fogFragment-CW2_bHW9.esm.js.map +1 -0
- package/dist/chunks/fogFragment-guOD1DZ1.esm.min.js +2 -0
- package/dist/chunks/fogFragment-guOD1DZ1.esm.min.js.map +1 -0
- package/dist/chunks/fresnelFunction-BNVKUlS3.esm.min.js +2 -0
- package/dist/chunks/fresnelFunction-BNVKUlS3.esm.min.js.map +1 -0
- package/dist/chunks/fresnelFunction-BOEXxIw6.esm.js +12 -0
- package/dist/chunks/fresnelFunction-BOEXxIw6.esm.js.map +1 -0
- package/dist/chunks/glTFLoader-CMHLVglk.esm.min.js +2 -0
- package/dist/chunks/glTFLoader-CMHLVglk.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoader-D7M1J7fn.esm.js +7577 -0
- package/dist/chunks/glTFLoader-D7M1J7fn.esm.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-1QdvxJ7E.esm.min.js +2 -0
- package/dist/chunks/glTFLoaderAnimation-1QdvxJ7E.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-BdWOiK9h.esm.js +77 -0
- package/dist/chunks/glTFLoaderAnimation-BdWOiK9h.esm.js.map +1 -0
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +2 -0
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +1 -0
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +67 -0
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-Beb2TxAM.esm.js +35 -0
- package/dist/chunks/harmonicsFunctions-Beb2TxAM.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-C6jDN0dy.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-C6jDN0dy.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-CMS3PSqz.esm.js +34 -0
- package/dist/chunks/harmonicsFunctions-CMS3PSqz.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-CqzZBFbE.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-CqzZBFbE.esm.min.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-CVs2U2Rw.esm.js +252 -0
- package/dist/chunks/hdrTextureLoader-CVs2U2Rw.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-DLIhEKX4.esm.min.js +2 -0
- package/dist/chunks/hdrTextureLoader-DLIhEKX4.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-9CkLYuFr.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-9CkLYuFr.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-CeWHU8oh.esm.js +80 -0
- package/dist/chunks/helperFunctions-CeWHU8oh.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-DLh5d4JS.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-DLh5d4JS.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-DacdSSYC.esm.js +108 -0
- package/dist/chunks/helperFunctions-DacdSSYC.esm.js.map +1 -0
- package/dist/chunks/index-5kEL_yof.esm.min.js +57 -0
- package/dist/chunks/index-5kEL_yof.esm.min.js.map +1 -0
- package/dist/chunks/index-m1EiqxIr.esm.js +73598 -0
- package/dist/chunks/index-m1EiqxIr.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-BYcq-xe1.esm.js +814 -0
- package/dist/chunks/ktxTextureLoader-BYcq-xe1.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-Dynikv6c.esm.min.js +2 -0
- package/dist/chunks/ktxTextureLoader-Dynikv6c.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-B1ZMgSPP.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-B1ZMgSPP.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-BR7cPkVg.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-BR7cPkVg.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-BVU_gU9h.esm.js +11 -0
- package/dist/chunks/logDepthDeclaration-BVU_gU9h.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-DyKxtW3j.esm.js +35 -0
- package/dist/chunks/logDepthDeclaration-DyKxtW3j.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-B8FSqFQN.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-B8FSqFQN.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-BpTtRGSX.esm.js +77 -0
- package/dist/chunks/logDepthVertex-BpTtRGSX.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-Cw3onKQz.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-Cw3onKQz.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-DlFFpSfV.esm.js +77 -0
- package/dist/chunks/logDepthVertex-DlFFpSfV.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-BUeaFFPg.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-BUeaFFPg.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-CezktNDs.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-CezktNDs.esm.min.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-DWVGaJr6.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-DWVGaJr6.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-DarHDF5o.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-DarHDF5o.esm.min.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-CXdHTUHh.esm.min.js +2 -0
- package/dist/chunks/meshUboDeclaration-CXdHTUHh.esm.min.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-CvKNEEuH.esm.js +24 -0
- package/dist/chunks/meshUboDeclaration-CvKNEEuH.esm.js.map +1 -0
- package/dist/chunks/objFileLoader-CG7ZwV32.esm.js +1338 -0
- package/dist/chunks/objFileLoader-CG7ZwV32.esm.js.map +1 -0
- package/dist/chunks/objFileLoader-DdXegmrQ.esm.min.js +2 -0
- package/dist/chunks/objFileLoader-DdXegmrQ.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-DH0Si1lH.esm.min.js +2 -0
- package/dist/chunks/oitFragment-DH0Si1lH.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-DacVe9Iw.esm.js +1210 -0
- package/dist/chunks/oitFragment-DacVe9Iw.esm.js.map +1 -0
- package/dist/chunks/oitFragment-Db6IowYx.esm.js +1051 -0
- package/dist/chunks/oitFragment-Db6IowYx.esm.js.map +1 -0
- package/dist/chunks/oitFragment-ab5FENxQ.esm.min.js +2 -0
- package/dist/chunks/oitFragment-ab5FENxQ.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-7EaW9--R.esm.js +15 -0
- package/dist/chunks/pass.fragment-7EaW9--R.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-BVHzkPFx.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-BVHzkPFx.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-CTWnbToC.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-CTWnbToC.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-CgGYBPmZ.esm.js +15 -0
- package/dist/chunks/pass.fragment-CgGYBPmZ.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-C70h0Xib.esm.js +3165 -0
- package/dist/chunks/pbr.fragment-C70h0Xib.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-D86fG4K0.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-D86fG4K0.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-qM4PZRwc.esm.js +3218 -0
- package/dist/chunks/pbr.fragment-qM4PZRwc.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-xGNNCi3j.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-xGNNCi3j.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-BValfsNl.esm.js +338 -0
- package/dist/chunks/pbr.vertex-BValfsNl.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-D9MipP8n.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-D9MipP8n.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-DEzdDnv4.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-DEzdDnv4.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-gopjxooT.esm.js +214 -0
- package/dist/chunks/pbr.vertex-gopjxooT.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-CVuatzxS.esm.js +20 -0
- package/dist/chunks/postprocess.vertex-CVuatzxS.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-kdc27ma_.esm.min.js +2 -0
- package/dist/chunks/postprocess.vertex-kdc27ma_.esm.min.js.map +1 -0
- package/dist/chunks/rawTexture-C-h1LMhW.esm.js +191 -0
- package/dist/chunks/rawTexture-C-h1LMhW.esm.js.map +1 -0
- package/dist/chunks/rawTexture-CqC4yNSp.esm.min.js +2 -0
- package/dist/chunks/rawTexture-CqC4yNSp.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment--pnm_hYa.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment--pnm_hYa.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-BVobdVnX.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-BVobdVnX.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-DEXmTheU.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-DEXmTheU.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-ctyyIwuI.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-ctyyIwuI.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-BIGXtmpi.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-BIGXtmpi.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-Bd_zrJ9K.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-Bd_zrJ9K.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-BjN5sONj.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-BjN5sONj.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-QwNqhfhX.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-QwNqhfhX.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-C5IgCUEa.esm.min.js +2 -0
- package/dist/chunks/splatFileLoader-C5IgCUEa.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-D6naMsQp.esm.js +3947 -0
- package/dist/chunks/splatFileLoader-D6naMsQp.esm.js.map +1 -0
- package/dist/chunks/standardMaterial-CnPA8npU.esm.js +1805 -0
- package/dist/chunks/standardMaterial-CnPA8npU.esm.js.map +1 -0
- package/dist/chunks/standardMaterial-ody3yQY6.esm.min.js +2 -0
- package/dist/chunks/standardMaterial-ody3yQY6.esm.min.js.map +1 -0
- package/dist/chunks/stlFileLoader-BNAW9jON.esm.js +238 -0
- package/dist/chunks/stlFileLoader-BNAW9jON.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-BiDbaDpU.esm.min.js +2 -0
- package/dist/chunks/stlFileLoader-BiDbaDpU.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-C6FSgdLy.esm.min.js +2 -0
- package/dist/chunks/tgaTextureLoader-C6FSgdLy.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-Cv-2bjXZ.esm.js +349 -0
- package/dist/chunks/tgaTextureLoader-Cv-2bjXZ.esm.js.map +1 -0
- package/dist/chunks/thinEngine-B9huFqh1.esm.js +3721 -0
- package/dist/chunks/thinEngine-B9huFqh1.esm.js.map +1 -0
- package/dist/chunks/thinEngine-BvR9v8ZN.esm.min.js +2 -0
- package/dist/chunks/thinEngine-BvR9v8ZN.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-3cAVM6PX.esm.min.js +2 -0
- package/dist/chunks/thinInstanceMesh-3cAVM6PX.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-BXY063UK.esm.js +314 -0
- package/dist/chunks/thinInstanceMesh-BXY063UK.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-6NZdC6gQ.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-6NZdC6gQ.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-Bj14PmMm.esm.js +522 -0
- package/dist/chunks/vertexColorMixing-Bj14PmMm.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-CiAjPbQ4.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-CiAjPbQ4.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-sefCCI26.esm.js +412 -0
- package/dist/chunks/vertexColorMixing-sefCCI26.esm.js.map +1 -0
- package/dist/chunks/webgpuEngine-C190P0t5.esm.min.js +2 -0
- package/dist/chunks/webgpuEngine-C190P0t5.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-DdrsFPmf.esm.js +11228 -0
- package/dist/chunks/webgpuEngine-DdrsFPmf.esm.js.map +1 -0
- package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
- package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
- package/docs/ViewerDefault.jpg +0 -0
- package/docs/ViewerParts.jpg +0 -0
- package/docs/ViewerSlots.jpg +0 -0
- package/docs/ViewerStyled.jpg +0 -0
- package/lib/index.d.ts +489 -0
- package/lib/index.js +1722 -0
- package/lib/index.js.map +1 -0
- package/package.json +18 -27
- package/readme.md +145 -21
- package/configuration/configuration.d.ts +0 -107
- package/configuration/configuration.js +0 -16
- package/configuration/configuration.js.map +0 -1
- package/configuration/configurationCompatibility.d.ts +0 -8
- package/configuration/configurationCompatibility.js +0 -66
- package/configuration/configurationCompatibility.js.map +0 -1
- package/configuration/configurationContainer.d.ts +0 -10
- package/configuration/configurationContainer.js +0 -10
- package/configuration/configurationContainer.js.map +0 -1
- package/configuration/globals.d.ts +0 -6
- package/configuration/globals.js +0 -18
- package/configuration/globals.js.map +0 -1
- package/configuration/index.d.ts +0 -2
- package/configuration/index.js +0 -4
- package/configuration/index.js.map +0 -1
- package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
- package/configuration/interfaces/cameraConfiguration.js +0 -2
- package/configuration/interfaces/cameraConfiguration.js.map +0 -1
- package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
- package/configuration/interfaces/colorGradingConfiguration.js +0 -2
- package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
- package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
- package/configuration/interfaces/environmentMapConfiguration.js +0 -2
- package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
- package/configuration/interfaces/groundConfiguration.d.ts +0 -24
- package/configuration/interfaces/groundConfiguration.js +0 -2
- package/configuration/interfaces/groundConfiguration.js.map +0 -1
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
- package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
- package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
- package/configuration/interfaces/index.d.ts +0 -15
- package/configuration/interfaces/index.js +0 -16
- package/configuration/interfaces/index.js.map +0 -1
- package/configuration/interfaces/lightConfiguration.d.ts +0 -60
- package/configuration/interfaces/lightConfiguration.js +0 -2
- package/configuration/interfaces/lightConfiguration.js.map +0 -1
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
- package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
- package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
- package/configuration/interfaces/modelConfiguration.d.ts +0 -65
- package/configuration/interfaces/modelConfiguration.js +0 -2
- package/configuration/interfaces/modelConfiguration.js.map +0 -1
- package/configuration/interfaces/observersConfiguration.d.ts +0 -5
- package/configuration/interfaces/observersConfiguration.js +0 -2
- package/configuration/interfaces/observersConfiguration.js.map +0 -1
- package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
- package/configuration/interfaces/sceneConfiguration.js +0 -2
- package/configuration/interfaces/sceneConfiguration.js.map +0 -1
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
- package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
- package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
- package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
- package/configuration/interfaces/skyboxConfiguration.js +0 -2
- package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
- package/configuration/interfaces/templateConfiguration.d.ts +0 -67
- package/configuration/interfaces/templateConfiguration.js +0 -2
- package/configuration/interfaces/templateConfiguration.js.map +0 -1
- package/configuration/interfaces/vrConfiguration.d.ts +0 -16
- package/configuration/interfaces/vrConfiguration.js +0 -2
- package/configuration/interfaces/vrConfiguration.js.map +0 -1
- package/configuration/loader.d.ts +0 -4
- package/configuration/loader.js +0 -17
- package/configuration/loader.js.map +0 -1
- package/configuration/mappers.d.ts +0 -43
- package/configuration/mappers.js +0 -192
- package/configuration/mappers.js.map +0 -1
- package/configuration/renderOnlyLoader.d.ts +0 -33
- package/configuration/renderOnlyLoader.js +0 -162
- package/configuration/renderOnlyLoader.js.map +0 -1
- package/configuration/types/default.d.ts +0 -6
- package/configuration/types/default.js +0 -121
- package/configuration/types/default.js.map +0 -1
- package/configuration/types/environmentMap.d.ts +0 -5
- package/configuration/types/environmentMap.js +0 -14
- package/configuration/types/environmentMap.js.map +0 -1
- package/configuration/types/extended.d.ts +0 -6
- package/configuration/types/extended.js +0 -317
- package/configuration/types/extended.js.map +0 -1
- package/configuration/types/index.d.ts +0 -14
- package/configuration/types/index.js +0 -51
- package/configuration/types/index.js.map +0 -1
- package/configuration/types/minimal.d.ts +0 -6
- package/configuration/types/minimal.js +0 -43
- package/configuration/types/minimal.js.map +0 -1
- package/configuration/types/renderOnlyDefault.d.ts +0 -30
- package/configuration/types/renderOnlyDefault.js +0 -31
- package/configuration/types/renderOnlyDefault.js.map +0 -1
- package/configuration/types/shadowLight.d.ts +0 -9
- package/configuration/types/shadowLight.js +0 -64
- package/configuration/types/shadowLight.js.map +0 -1
- package/helper/index.d.ts +0 -29
- package/helper/index.js +0 -66
- package/helper/index.js.map +0 -1
- package/index.d.ts +0 -30
- package/index.js +0 -46
- package/index.js.map +0 -1
- package/initializer.d.ts +0 -11
- package/initializer.js +0 -35
- package/initializer.js.map +0 -1
- package/interfaces.d.ts +0 -5
- package/interfaces.js +0 -7
- package/interfaces.js.map +0 -1
- package/labs/environmentSerializer.d.ts +0 -126
- package/labs/environmentSerializer.js +0 -191
- package/labs/environmentSerializer.js.map +0 -1
- package/labs/texture.d.ts +0 -183
- package/labs/texture.js +0 -350
- package/labs/texture.js.map +0 -1
- package/labs/viewerLabs.d.ts +0 -51
- package/labs/viewerLabs.js +0 -134
- package/labs/viewerLabs.js.map +0 -1
- package/loader/modelLoader.d.ts +0 -56
- package/loader/modelLoader.js +0 -202
- package/loader/modelLoader.js.map +0 -1
- package/loader/plugins/applyMaterialConfig.d.ts +0 -12
- package/loader/plugins/applyMaterialConfig.js +0 -16
- package/loader/plugins/applyMaterialConfig.js.map +0 -1
- package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
- package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
- package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
- package/loader/plugins/index.d.ts +0 -19
- package/loader/plugins/index.js +0 -44
- package/loader/plugins/index.js.map +0 -1
- package/loader/plugins/loaderPlugin.d.ts +0 -24
- package/loader/plugins/loaderPlugin.js +0 -2
- package/loader/plugins/loaderPlugin.js.map +0 -1
- package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
- package/loader/plugins/msftLodLoaderPlugin.js +0 -21
- package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
- package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
- package/loader/plugins/telemetryLoaderPlugin.js +0 -36
- package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
- package/managers/observablesManager.d.ts +0 -66
- package/managers/observablesManager.js +0 -35
- package/managers/observablesManager.js.map +0 -1
- package/managers/sceneManager.d.ts +0 -245
- package/managers/sceneManager.js +0 -1375
- package/managers/sceneManager.js.map +0 -1
- package/managers/telemetryManager.d.ts +0 -78
- package/managers/telemetryManager.js +0 -117
- package/managers/telemetryManager.js.map +0 -1
- package/model/modelAnimation.d.ts +0 -215
- package/model/modelAnimation.js +0 -237
- package/model/modelAnimation.js.map +0 -1
- package/model/viewerModel.d.ts +0 -233
- package/model/viewerModel.js +0 -673
- package/model/viewerModel.js.map +0 -1
- package/optimizer/custom/extended.d.ts +0 -13
- package/optimizer/custom/extended.js +0 -101
- package/optimizer/custom/extended.js.map +0 -1
- package/optimizer/custom/index.d.ts +0 -9
- package/optimizer/custom/index.js +0 -26
- package/optimizer/custom/index.js.map +0 -1
- package/renderOnlyIndex.d.ts +0 -11
- package/renderOnlyIndex.js +0 -18
- package/renderOnlyIndex.js.map +0 -1
- package/templating/eventManager.d.ts +0 -35
- package/templating/eventManager.js +0 -66
- package/templating/eventManager.js.map +0 -1
- package/templating/plugins/hdButtonPlugin.d.ts +0 -9
- package/templating/plugins/hdButtonPlugin.js +0 -21
- package/templating/plugins/hdButtonPlugin.js.map +0 -1
- package/templating/plugins/printButton.d.ts +0 -9
- package/templating/plugins/printButton.js +0 -40
- package/templating/plugins/printButton.js.map +0 -1
- package/templating/templateManager.d.ts +0 -197
- package/templating/templateManager.js +0 -561
- package/templating/templateManager.js.map +0 -1
- package/templating/viewerTemplatePlugin.d.ts +0 -21
- package/templating/viewerTemplatePlugin.js +0 -69
- package/templating/viewerTemplatePlugin.js.map +0 -1
- package/viewer/defaultViewer.d.ts +0 -130
- package/viewer/defaultViewer.js +0 -672
- package/viewer/defaultViewer.js.map +0 -1
- package/viewer/renderOnlyViewer.d.ts +0 -9
- package/viewer/renderOnlyViewer.js +0 -46
- package/viewer/renderOnlyViewer.js.map +0 -1
- package/viewer/viewer.d.ts +0 -258
- package/viewer/viewer.js +0 -783
- package/viewer/viewer.js.map +0 -1
- package/viewer/viewerManager.d.ts +0 -58
- package/viewer/viewerManager.js +0 -91
- package/viewer/viewerManager.js.map +0 -1
- package/viewer/viewerWithTemplate.d.ts +0 -9
- package/viewer/viewerWithTemplate.js +0 -20
- package/viewer/viewerWithTemplate.js.map +0 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper class to push actions to a pool of workers.
|
|
3
|
+
*/
|
|
4
|
+
class WorkerPool {
|
|
5
|
+
/**
|
|
6
|
+
* Constructor
|
|
7
|
+
* @param workers Array of workers to use for actions
|
|
8
|
+
*/
|
|
9
|
+
constructor(workers) {
|
|
10
|
+
this._pendingActions = new Array();
|
|
11
|
+
this._workerInfos = workers.map((worker) => ({
|
|
12
|
+
workerPromise: Promise.resolve(worker),
|
|
13
|
+
idle: true,
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Terminates all workers and clears any pending actions.
|
|
18
|
+
*/
|
|
19
|
+
dispose() {
|
|
20
|
+
for (const workerInfo of this._workerInfos) {
|
|
21
|
+
workerInfo.workerPromise.then((worker) => {
|
|
22
|
+
worker.terminate();
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
this._workerInfos.length = 0;
|
|
26
|
+
this._pendingActions.length = 0;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Pushes an action to the worker pool. If all the workers are active, the action will be
|
|
30
|
+
* pended until a worker has completed its action.
|
|
31
|
+
* @param action The action to perform. Call onComplete when the action is complete.
|
|
32
|
+
*/
|
|
33
|
+
push(action) {
|
|
34
|
+
if (!this._executeOnIdleWorker(action)) {
|
|
35
|
+
this._pendingActions.push(action);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
_executeOnIdleWorker(action) {
|
|
39
|
+
for (const workerInfo of this._workerInfos) {
|
|
40
|
+
if (workerInfo.idle) {
|
|
41
|
+
this._execute(workerInfo, action);
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
_execute(workerInfo, action) {
|
|
48
|
+
workerInfo.idle = false;
|
|
49
|
+
workerInfo.workerPromise.then((worker) => {
|
|
50
|
+
action(worker, () => {
|
|
51
|
+
const nextAction = this._pendingActions.shift();
|
|
52
|
+
if (nextAction) {
|
|
53
|
+
this._execute(workerInfo, nextAction);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
workerInfo.idle = true;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Similar to the WorkerPool class except it creates and destroys workers automatically with a maximum of `maxWorkers` workers.
|
|
64
|
+
* Workers are terminated when it is idle for at least `idleTimeElapsedBeforeRelease` milliseconds.
|
|
65
|
+
*/
|
|
66
|
+
class AutoReleaseWorkerPool extends WorkerPool {
|
|
67
|
+
constructor(maxWorkers, createWorkerAsync, options = AutoReleaseWorkerPool.DefaultOptions) {
|
|
68
|
+
super([]);
|
|
69
|
+
this._maxWorkers = maxWorkers;
|
|
70
|
+
this._createWorkerAsync = createWorkerAsync;
|
|
71
|
+
this._options = options;
|
|
72
|
+
}
|
|
73
|
+
push(action) {
|
|
74
|
+
if (!this._executeOnIdleWorker(action)) {
|
|
75
|
+
if (this._workerInfos.length < this._maxWorkers) {
|
|
76
|
+
const workerInfo = {
|
|
77
|
+
workerPromise: this._createWorkerAsync(),
|
|
78
|
+
idle: false,
|
|
79
|
+
};
|
|
80
|
+
this._workerInfos.push(workerInfo);
|
|
81
|
+
this._execute(workerInfo, action);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
this._pendingActions.push(action);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
_execute(workerInfo, action) {
|
|
89
|
+
// Reset the idle timeout.
|
|
90
|
+
if (workerInfo.timeoutId) {
|
|
91
|
+
clearTimeout(workerInfo.timeoutId);
|
|
92
|
+
delete workerInfo.timeoutId;
|
|
93
|
+
}
|
|
94
|
+
super._execute(workerInfo, (worker, onComplete) => {
|
|
95
|
+
action(worker, () => {
|
|
96
|
+
onComplete();
|
|
97
|
+
if (workerInfo.idle) {
|
|
98
|
+
// Schedule the worker to be terminated after the elapsed time.
|
|
99
|
+
workerInfo.timeoutId = setTimeout(() => {
|
|
100
|
+
workerInfo.workerPromise.then((worker) => {
|
|
101
|
+
worker.terminate();
|
|
102
|
+
});
|
|
103
|
+
const indexOf = this._workerInfos.indexOf(workerInfo);
|
|
104
|
+
if (indexOf !== -1) {
|
|
105
|
+
this._workerInfos.splice(indexOf, 1);
|
|
106
|
+
}
|
|
107
|
+
}, this._options.idleTimeElapsedBeforeRelease);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Default options for the constructor.
|
|
115
|
+
* Override to change the defaults.
|
|
116
|
+
*/
|
|
117
|
+
AutoReleaseWorkerPool.DefaultOptions = {
|
|
118
|
+
idleTimeElapsedBeforeRelease: 1000,
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { AutoReleaseWorkerPool as A };
|
|
122
|
+
//# sourceMappingURL=workerPool-BUOov2K1.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workerPool-BUOov2K1.esm.js","sources":["../../../../../dev/core/dist/Misc/workerPool.js"],"sourcesContent":["/**\n * Helper class to push actions to a pool of workers.\n */\nexport class WorkerPool {\n /**\n * Constructor\n * @param workers Array of workers to use for actions\n */\n constructor(workers) {\n this._pendingActions = new Array();\n this._workerInfos = workers.map((worker) => ({\n workerPromise: Promise.resolve(worker),\n idle: true,\n }));\n }\n /**\n * Terminates all workers and clears any pending actions.\n */\n dispose() {\n for (const workerInfo of this._workerInfos) {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n }\n this._workerInfos.length = 0;\n this._pendingActions.length = 0;\n }\n /**\n * Pushes an action to the worker pool. If all the workers are active, the action will be\n * pended until a worker has completed its action.\n * @param action The action to perform. Call onComplete when the action is complete.\n */\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n this._pendingActions.push(action);\n }\n }\n _executeOnIdleWorker(action) {\n for (const workerInfo of this._workerInfos) {\n if (workerInfo.idle) {\n this._execute(workerInfo, action);\n return true;\n }\n }\n return false;\n }\n _execute(workerInfo, action) {\n workerInfo.idle = false;\n workerInfo.workerPromise.then((worker) => {\n action(worker, () => {\n const nextAction = this._pendingActions.shift();\n if (nextAction) {\n this._execute(workerInfo, nextAction);\n }\n else {\n workerInfo.idle = true;\n }\n });\n });\n }\n}\n/**\n * Similar to the WorkerPool class except it creates and destroys workers automatically with a maximum of `maxWorkers` workers.\n * Workers are terminated when it is idle for at least `idleTimeElapsedBeforeRelease` milliseconds.\n */\nexport class AutoReleaseWorkerPool extends WorkerPool {\n constructor(maxWorkers, createWorkerAsync, options = AutoReleaseWorkerPool.DefaultOptions) {\n super([]);\n this._maxWorkers = maxWorkers;\n this._createWorkerAsync = createWorkerAsync;\n this._options = options;\n }\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n if (this._workerInfos.length < this._maxWorkers) {\n const workerInfo = {\n workerPromise: this._createWorkerAsync(),\n idle: false,\n };\n this._workerInfos.push(workerInfo);\n this._execute(workerInfo, action);\n }\n else {\n this._pendingActions.push(action);\n }\n }\n }\n _execute(workerInfo, action) {\n // Reset the idle timeout.\n if (workerInfo.timeoutId) {\n clearTimeout(workerInfo.timeoutId);\n delete workerInfo.timeoutId;\n }\n super._execute(workerInfo, (worker, onComplete) => {\n action(worker, () => {\n onComplete();\n if (workerInfo.idle) {\n // Schedule the worker to be terminated after the elapsed time.\n workerInfo.timeoutId = setTimeout(() => {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n const indexOf = this._workerInfos.indexOf(workerInfo);\n if (indexOf !== -1) {\n this._workerInfos.splice(indexOf, 1);\n }\n }, this._options.idleTimeElapsedBeforeRelease);\n }\n });\n });\n }\n}\n/**\n * Default options for the constructor.\n * Override to change the defaults.\n */\nAutoReleaseWorkerPool.DefaultOptions = {\n idleTimeElapsedBeforeRelease: 1000,\n};\n//# sourceMappingURL=workerPool.js.map"],"names":[],"mappings":"AAAA;AACA;AACA;AACO,MAAM,UAAU,CAAC;AACxB;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,OAAO,EAAE;AACzB,QAAQ,IAAI,CAAC,eAAe,GAAG,IAAI,KAAK,EAAE;AAC1C,QAAQ,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,MAAM;AACrD,YAAY,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;AAClD,YAAY,IAAI,EAAE,IAAI;AACtB,SAAS,CAAC,CAAC;AACX;AACA;AACA;AACA;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,YAAY,EAAE;AACpD,YAAY,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK;AACtD,gBAAgB,MAAM,CAAC,SAAS,EAAE;AAClC,aAAa,CAAC;AACd;AACA,QAAQ,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;AACpC,QAAQ,IAAI,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,CAAC,MAAM,EAAE;AACjB,QAAQ,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE;AAChD,YAAY,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;AAC7C;AACA;AACA,IAAI,oBAAoB,CAAC,MAAM,EAAE;AACjC,QAAQ,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,YAAY,EAAE;AACpD,YAAY,IAAI,UAAU,CAAC,IAAI,EAAE;AACjC,gBAAgB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;AACjD,gBAAgB,OAAO,IAAI;AAC3B;AACA;AACA,QAAQ,OAAO,KAAK;AACpB;AACA,IAAI,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE;AACjC,QAAQ,UAAU,CAAC,IAAI,GAAG,KAAK;AAC/B,QAAQ,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK;AAClD,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM;AACjC,gBAAgB,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE;AAC/D,gBAAgB,IAAI,UAAU,EAAE;AAChC,oBAAoB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;AACzD;AACA,qBAAqB;AACrB,oBAAoB,UAAU,CAAC,IAAI,GAAG,IAAI;AAC1C;AACA,aAAa,CAAC;AACd,SAAS,CAAC;AACV;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,qBAAqB,SAAS,UAAU,CAAC;AACtD,IAAI,WAAW,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,GAAG,qBAAqB,CAAC,cAAc,EAAE;AAC/F,QAAQ,KAAK,CAAC,EAAE,CAAC;AACjB,QAAQ,IAAI,CAAC,WAAW,GAAG,UAAU;AACrC,QAAQ,IAAI,CAAC,kBAAkB,GAAG,iBAAiB;AACnD,QAAQ,IAAI,CAAC,QAAQ,GAAG,OAAO;AAC/B;AACA,IAAI,IAAI,CAAC,MAAM,EAAE;AACjB,QAAQ,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE;AAChD,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE;AAC7D,gBAAgB,MAAM,UAAU,GAAG;AACnC,oBAAoB,aAAa,EAAE,IAAI,CAAC,kBAAkB,EAAE;AAC5D,oBAAoB,IAAI,EAAE,KAAK;AAC/B,iBAAiB;AACjB,gBAAgB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC;AAClD,gBAAgB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;AACjD;AACA,iBAAiB;AACjB,gBAAgB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;AACjD;AACA;AACA;AACA,IAAI,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE;AACjC;AACA,QAAQ,IAAI,UAAU,CAAC,SAAS,EAAE;AAClC,YAAY,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC;AAC9C,YAAY,OAAO,UAAU,CAAC,SAAS;AACvC;AACA,QAAQ,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK;AAC3D,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM;AACjC,gBAAgB,UAAU,EAAE;AAC5B,gBAAgB,IAAI,UAAU,CAAC,IAAI,EAAE;AACrC;AACA,oBAAoB,UAAU,CAAC,SAAS,GAAG,UAAU,CAAC,MAAM;AAC5D,wBAAwB,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK;AAClE,4BAA4B,MAAM,CAAC,SAAS,EAAE;AAC9C,yBAAyB,CAAC;AAC1B,wBAAwB,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC;AAC7E,wBAAwB,IAAI,OAAO,KAAK,CAAC,CAAC,EAAE;AAC5C,4BAA4B,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;AAChE;AACA,qBAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,4BAA4B,CAAC;AAClE;AACA,aAAa,CAAC;AACd,SAAS,CAAC;AACV;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,CAAC,cAAc,GAAG;AACvC,IAAI,4BAA4B,EAAE,IAAI;AACtC,CAAC;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
class e{constructor(e){this._pendingActions=new Array,this._workerInfos=e.map((e=>({workerPromise:Promise.resolve(e),idle:!0})))}dispose(){for(const e of this._workerInfos)e.workerPromise.then((e=>{e.terminate()}));this._workerInfos.length=0,this._pendingActions.length=0}push(e){this._executeOnIdleWorker(e)||this._pendingActions.push(e)}_executeOnIdleWorker(e){for(const s of this._workerInfos)if(s.idle)return this._execute(s,e),!0;return!1}_execute(e,s){e.idle=!1,e.workerPromise.then((t=>{s(t,(()=>{const s=this._pendingActions.shift();s?this._execute(e,s):e.idle=!0}))}))}}class s extends e{constructor(e,t,i=s.DefaultOptions){super([]),this._maxWorkers=e,this._createWorkerAsync=t,this._options=i}push(e){if(!this._executeOnIdleWorker(e))if(this._workerInfos.length<this._maxWorkers){const s={workerPromise:this._createWorkerAsync(),idle:!1};this._workerInfos.push(s),this._execute(s,e)}else this._pendingActions.push(e)}_execute(e,s){e.timeoutId&&(clearTimeout(e.timeoutId),delete e.timeoutId),super._execute(e,((t,i)=>{s(t,(()=>{i(),e.idle&&(e.timeoutId=setTimeout((()=>{e.workerPromise.then((e=>{e.terminate()}));const s=this._workerInfos.indexOf(e);-1!==s&&this._workerInfos.splice(s,1)}),this._options.idleTimeElapsedBeforeRelease))}))}))}}s.DefaultOptions={idleTimeElapsedBeforeRelease:1e3};export{s as A};
|
|
2
|
+
//# sourceMappingURL=workerPool-BWHiDmEZ.esm.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workerPool-BWHiDmEZ.esm.min.js","sources":["../../../../../dev/core/dist/Misc/workerPool.js"],"sourcesContent":["/**\n * Helper class to push actions to a pool of workers.\n */\nexport class WorkerPool {\n /**\n * Constructor\n * @param workers Array of workers to use for actions\n */\n constructor(workers) {\n this._pendingActions = new Array();\n this._workerInfos = workers.map((worker) => ({\n workerPromise: Promise.resolve(worker),\n idle: true,\n }));\n }\n /**\n * Terminates all workers and clears any pending actions.\n */\n dispose() {\n for (const workerInfo of this._workerInfos) {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n }\n this._workerInfos.length = 0;\n this._pendingActions.length = 0;\n }\n /**\n * Pushes an action to the worker pool. If all the workers are active, the action will be\n * pended until a worker has completed its action.\n * @param action The action to perform. Call onComplete when the action is complete.\n */\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n this._pendingActions.push(action);\n }\n }\n _executeOnIdleWorker(action) {\n for (const workerInfo of this._workerInfos) {\n if (workerInfo.idle) {\n this._execute(workerInfo, action);\n return true;\n }\n }\n return false;\n }\n _execute(workerInfo, action) {\n workerInfo.idle = false;\n workerInfo.workerPromise.then((worker) => {\n action(worker, () => {\n const nextAction = this._pendingActions.shift();\n if (nextAction) {\n this._execute(workerInfo, nextAction);\n }\n else {\n workerInfo.idle = true;\n }\n });\n });\n }\n}\n/**\n * Similar to the WorkerPool class except it creates and destroys workers automatically with a maximum of `maxWorkers` workers.\n * Workers are terminated when it is idle for at least `idleTimeElapsedBeforeRelease` milliseconds.\n */\nexport class AutoReleaseWorkerPool extends WorkerPool {\n constructor(maxWorkers, createWorkerAsync, options = AutoReleaseWorkerPool.DefaultOptions) {\n super([]);\n this._maxWorkers = maxWorkers;\n this._createWorkerAsync = createWorkerAsync;\n this._options = options;\n }\n push(action) {\n if (!this._executeOnIdleWorker(action)) {\n if (this._workerInfos.length < this._maxWorkers) {\n const workerInfo = {\n workerPromise: this._createWorkerAsync(),\n idle: false,\n };\n this._workerInfos.push(workerInfo);\n this._execute(workerInfo, action);\n }\n else {\n this._pendingActions.push(action);\n }\n }\n }\n _execute(workerInfo, action) {\n // Reset the idle timeout.\n if (workerInfo.timeoutId) {\n clearTimeout(workerInfo.timeoutId);\n delete workerInfo.timeoutId;\n }\n super._execute(workerInfo, (worker, onComplete) => {\n action(worker, () => {\n onComplete();\n if (workerInfo.idle) {\n // Schedule the worker to be terminated after the elapsed time.\n workerInfo.timeoutId = setTimeout(() => {\n workerInfo.workerPromise.then((worker) => {\n worker.terminate();\n });\n const indexOf = this._workerInfos.indexOf(workerInfo);\n if (indexOf !== -1) {\n this._workerInfos.splice(indexOf, 1);\n }\n }, this._options.idleTimeElapsedBeforeRelease);\n }\n });\n });\n }\n}\n/**\n * Default options for the constructor.\n * Override to change the defaults.\n */\nAutoReleaseWorkerPool.DefaultOptions = {\n idleTimeElapsedBeforeRelease: 1000,\n};\n//# sourceMappingURL=workerPool.js.map"],"names":["WorkerPool","constructor","workers","this","_pendingActions","Array","_workerInfos","map","worker","workerPromise","Promise","resolve","idle","dispose","workerInfo","then","terminate","length","push","action","_executeOnIdleWorker","_execute","nextAction","shift","AutoReleaseWorkerPool","maxWorkers","createWorkerAsync","options","DefaultOptions","super","_maxWorkers","_createWorkerAsync","_options","timeoutId","clearTimeout","onComplete","setTimeout","indexOf","splice","idleTimeElapsedBeforeRelease"],"mappings":"AAGO,MAAMA,EAKT,WAAAC,CAAYC,GACRC,KAAKC,gBAAkB,IAAIC,MAC3BF,KAAKG,aAAeJ,EAAQK,KAAKC,IAAY,CACzCC,cAAeC,QAAQC,QAAQH,GAC/BI,MAAM,KAElB,CAII,OAAAC,GACI,IAAK,MAAMC,KAAcX,KAAKG,aAC1BQ,EAAWL,cAAcM,MAAMP,IAC3BA,EAAOQ,WAAW,IAG1Bb,KAAKG,aAAaW,OAAS,EAC3Bd,KAAKC,gBAAgBa,OAAS,CACtC,CAMI,IAAAC,CAAKC,GACIhB,KAAKiB,qBAAqBD,IAC3BhB,KAAKC,gBAAgBc,KAAKC,EAEtC,CACI,oBAAAC,CAAqBD,GACjB,IAAK,MAAML,KAAcX,KAAKG,aAC1B,GAAIQ,EAAWF,KAEX,OADAT,KAAKkB,SAASP,EAAYK,IACnB,EAGf,OAAO,CACf,CACI,QAAAE,CAASP,EAAYK,GACjBL,EAAWF,MAAO,EAClBE,EAAWL,cAAcM,MAAMP,IAC3BW,EAAOX,GAAQ,KACX,MAAMc,EAAanB,KAAKC,gBAAgBmB,QACpCD,EACAnB,KAAKkB,SAASP,EAAYQ,GAG1BR,EAAWF,MAAO,CACtC,GACc,GAEd,EAMO,MAAMY,UAA8BxB,EACvC,WAAAC,CAAYwB,EAAYC,EAAmBC,EAAUH,EAAsBI,gBACvEC,MAAM,IACN1B,KAAK2B,YAAcL,EACnBtB,KAAK4B,mBAAqBL,EAC1BvB,KAAK6B,SAAWL,CACxB,CACI,IAAAT,CAAKC,GACD,IAAKhB,KAAKiB,qBAAqBD,GAC3B,GAAIhB,KAAKG,aAAaW,OAASd,KAAK2B,YAAa,CAC7C,MAAMhB,EAAa,CACfL,cAAeN,KAAK4B,qBACpBnB,MAAM,GAEVT,KAAKG,aAAaY,KAAKJ,GACvBX,KAAKkB,SAASP,EAAYK,EAC1C,MAEgBhB,KAAKC,gBAAgBc,KAAKC,EAG1C,CACI,QAAAE,CAASP,EAAYK,GAEbL,EAAWmB,YACXC,aAAapB,EAAWmB,kBACjBnB,EAAWmB,WAEtBJ,MAAMR,SAASP,GAAY,CAACN,EAAQ2B,KAChChB,EAAOX,GAAQ,KACX2B,IACIrB,EAAWF,OAEXE,EAAWmB,UAAYG,YAAW,KAC9BtB,EAAWL,cAAcM,MAAMP,IAC3BA,EAAOQ,WAAW,IAEtB,MAAMqB,EAAUlC,KAAKG,aAAa+B,QAAQvB,IACzB,IAAbuB,GACAlC,KAAKG,aAAagC,OAAOD,EAAS,EAC9D,GACuBlC,KAAK6B,SAASO,8BACrC,GACc,GAEd,EAMAf,EAAsBI,eAAiB,CACnCW,6BAA8B"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import { LoadAssetContainerOptions, Nullable, AssetContainer, HotSpotQuery, IDisposable, AbstractEngine, AbstractEngineOptions, EngineOptions, WebGPUEngineOptions } from '@babylonjs/core/index.js';
|
|
2
|
+
import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera.js';
|
|
3
|
+
import { Observable } from '@babylonjs/core/Misc/observable.js';
|
|
4
|
+
import { Scene } from '@babylonjs/core/scene.js';
|
|
5
|
+
import * as lit_html from 'lit-html';
|
|
6
|
+
import * as lit from 'lit';
|
|
7
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
8
|
+
import { Color4 } from '@babylonjs/core/Maths/math.color.js';
|
|
9
|
+
|
|
10
|
+
declare const toneMappingOptions: readonly ["none", "standard", "aces", "neutral"];
|
|
11
|
+
type ToneMapping = (typeof toneMappingOptions)[number];
|
|
12
|
+
type LoadModelOptions = LoadAssetContainerOptions & {
|
|
13
|
+
/**
|
|
14
|
+
* The default animation index.
|
|
15
|
+
*/
|
|
16
|
+
defaultAnimation?: number;
|
|
17
|
+
};
|
|
18
|
+
type CameraAutoOrbit = {
|
|
19
|
+
/**
|
|
20
|
+
* Whether the camera should automatically orbit around the model when idle.
|
|
21
|
+
*/
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The speed at which the camera orbits around the model when idle.
|
|
25
|
+
*/
|
|
26
|
+
speed: number;
|
|
27
|
+
/**
|
|
28
|
+
* The delay in milliseconds before the camera starts orbiting around the model when idle.
|
|
29
|
+
*/
|
|
30
|
+
delay: number;
|
|
31
|
+
};
|
|
32
|
+
type PostProcessing = {
|
|
33
|
+
/**
|
|
34
|
+
* The tone mapping to use for rendering the scene.
|
|
35
|
+
*/
|
|
36
|
+
toneMapping: ToneMapping;
|
|
37
|
+
/**
|
|
38
|
+
* The contrast applied to the scene.
|
|
39
|
+
*/
|
|
40
|
+
contrast: number;
|
|
41
|
+
/**
|
|
42
|
+
* The exposure applied to the scene.
|
|
43
|
+
*/
|
|
44
|
+
exposure: number;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Checks if the given value is a valid tone mapping option.
|
|
48
|
+
* @param value The value to check.
|
|
49
|
+
* @returns True if the value is a valid tone mapping option, otherwise false.
|
|
50
|
+
*/
|
|
51
|
+
declare function isToneMapping(value: string): value is ToneMapping;
|
|
52
|
+
type ViewerDetails = {
|
|
53
|
+
/**
|
|
54
|
+
* Gets the Viewer instance.
|
|
55
|
+
*/
|
|
56
|
+
viewer: Viewer;
|
|
57
|
+
/**
|
|
58
|
+
* Provides access to the Scene managed by the Viewer.
|
|
59
|
+
*/
|
|
60
|
+
scene: Scene;
|
|
61
|
+
/**
|
|
62
|
+
* Provides access to the Camera managed by the Viewer.
|
|
63
|
+
*/
|
|
64
|
+
camera: ArcRotateCamera;
|
|
65
|
+
/**
|
|
66
|
+
* Provides access to the currently loaded model.
|
|
67
|
+
*/
|
|
68
|
+
model: Nullable<AssetContainer>;
|
|
69
|
+
};
|
|
70
|
+
type ViewerOptions = Partial<Readonly<{
|
|
71
|
+
/**
|
|
72
|
+
* Called once when the viewer is initialized and provides viewer details that can be used for advanced customization.
|
|
73
|
+
*/
|
|
74
|
+
onInitialized: (details: Readonly<ViewerDetails>) => void;
|
|
75
|
+
}>>;
|
|
76
|
+
type EnvironmentOptions = Partial<Readonly<{}>>;
|
|
77
|
+
type ViewerHotSpotQuery = {
|
|
78
|
+
/**
|
|
79
|
+
* The type of the hot spot.
|
|
80
|
+
*/
|
|
81
|
+
type: "surface";
|
|
82
|
+
/**
|
|
83
|
+
* The index of the mesh within the loaded model.
|
|
84
|
+
*/
|
|
85
|
+
meshIndex: number;
|
|
86
|
+
} & HotSpotQuery;
|
|
87
|
+
/**
|
|
88
|
+
* Provides the result of a hot spot query.
|
|
89
|
+
*/
|
|
90
|
+
declare class ViewerHotSpotResult {
|
|
91
|
+
/**
|
|
92
|
+
* 2D canvas position in pixels
|
|
93
|
+
*/
|
|
94
|
+
readonly screenPosition: [x: number, y: number];
|
|
95
|
+
/**
|
|
96
|
+
* 3D world coordinates
|
|
97
|
+
*/
|
|
98
|
+
readonly worldPosition: [x: number, y: number, z: number];
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @experimental
|
|
102
|
+
* Provides an experience for viewing a single 3D model.
|
|
103
|
+
* @remarks
|
|
104
|
+
* The Viewer is not tied to a specific UI framework and can be used with Babylon.js in a browser or with Babylon Native.
|
|
105
|
+
* Includes (or will include) support for common model viewing requirements such as:
|
|
106
|
+
* - Loading different model formats.
|
|
107
|
+
* - Setting up a camera and providing default behaviors like auto orbit and pose interpolation.
|
|
108
|
+
* - Framing the loaded model in the camera's view.
|
|
109
|
+
* - Setting up the environment, lighting, and tone mapping.
|
|
110
|
+
* - Enumerating and playing (or auto playing) animations.
|
|
111
|
+
* - Enumerating and switching between material variants.
|
|
112
|
+
* - Full screen and XR modes.
|
|
113
|
+
*/
|
|
114
|
+
declare class Viewer implements IDisposable {
|
|
115
|
+
private readonly _engine;
|
|
116
|
+
/**
|
|
117
|
+
* Fired when the environment has changed.
|
|
118
|
+
*/
|
|
119
|
+
readonly onEnvironmentChanged: Observable<void>;
|
|
120
|
+
/**
|
|
121
|
+
* Fired when an error occurs while loading the environment.
|
|
122
|
+
*/
|
|
123
|
+
readonly onEnvironmentError: Observable<unknown>;
|
|
124
|
+
/**
|
|
125
|
+
* Fired when the skybox blur changes.
|
|
126
|
+
*/
|
|
127
|
+
readonly onSkyboxBlurChanged: Observable<void>;
|
|
128
|
+
/**
|
|
129
|
+
* Fired when the post processing state changes.
|
|
130
|
+
*/
|
|
131
|
+
readonly onPostProcessingChanged: Observable<void>;
|
|
132
|
+
/**
|
|
133
|
+
* Fired when a model is loaded into the viewer (or unloaded from the viewer).
|
|
134
|
+
*/
|
|
135
|
+
readonly onModelChanged: Observable<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Fired when an error occurs while loading a model.
|
|
138
|
+
*/
|
|
139
|
+
readonly onModelError: Observable<unknown>;
|
|
140
|
+
/**
|
|
141
|
+
* Fired when progress changes on loading activity.
|
|
142
|
+
*/
|
|
143
|
+
readonly onLoadingProgressChanged: Observable<void>;
|
|
144
|
+
/**
|
|
145
|
+
* Fired when the camera auto orbit state changes.
|
|
146
|
+
*/
|
|
147
|
+
readonly onCameraAutoOrbitChanged: Observable<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Fired when the selected animation changes.
|
|
150
|
+
*/
|
|
151
|
+
readonly onSelectedAnimationChanged: Observable<void>;
|
|
152
|
+
/**
|
|
153
|
+
* Fired when the animation speed changes.
|
|
154
|
+
*/
|
|
155
|
+
readonly onAnimationSpeedChanged: Observable<void>;
|
|
156
|
+
/**
|
|
157
|
+
* Fired when the selected animation is playing or paused.
|
|
158
|
+
*/
|
|
159
|
+
readonly onIsAnimationPlayingChanged: Observable<void>;
|
|
160
|
+
/**
|
|
161
|
+
* Fired when the current point on the selected animation timeline changes.
|
|
162
|
+
*/
|
|
163
|
+
readonly onAnimationProgressChanged: Observable<void>;
|
|
164
|
+
private readonly _details;
|
|
165
|
+
private readonly _snapshotHelper;
|
|
166
|
+
private readonly _autoRotationBehavior;
|
|
167
|
+
private readonly _renderLoopController;
|
|
168
|
+
private readonly _imageProcessingConfigurationObserver;
|
|
169
|
+
private _skybox;
|
|
170
|
+
private _skyboxBlur;
|
|
171
|
+
private _light;
|
|
172
|
+
private _toneMappingEnabled;
|
|
173
|
+
private _toneMappingType;
|
|
174
|
+
private _contrast;
|
|
175
|
+
private _exposure;
|
|
176
|
+
private _isDisposed;
|
|
177
|
+
private readonly _loadModelLock;
|
|
178
|
+
private _loadModelAbortController;
|
|
179
|
+
private readonly _loadEnvironmentLock;
|
|
180
|
+
private _environment;
|
|
181
|
+
private _loadEnvironmentAbortController;
|
|
182
|
+
private _isLoadingModel;
|
|
183
|
+
private _modelLoadingProgress;
|
|
184
|
+
private _selectedAnimation;
|
|
185
|
+
private _activeAnimationObservers;
|
|
186
|
+
private _animationSpeed;
|
|
187
|
+
constructor(_engine: AbstractEngine, options?: ViewerOptions);
|
|
188
|
+
/**
|
|
189
|
+
* The camera auto orbit configuration.
|
|
190
|
+
*/
|
|
191
|
+
get cameraAutoOrbit(): Readonly<CameraAutoOrbit>;
|
|
192
|
+
set cameraAutoOrbit(value: Partial<Readonly<CameraAutoOrbit>>);
|
|
193
|
+
/**
|
|
194
|
+
* A value between 0 and 1 that specifies how much to blur the skybox.
|
|
195
|
+
*/
|
|
196
|
+
get skyboxBlur(): number;
|
|
197
|
+
set skyboxBlur(value: number);
|
|
198
|
+
/**
|
|
199
|
+
* The post processing configuration.
|
|
200
|
+
*/
|
|
201
|
+
get postProcessing(): PostProcessing;
|
|
202
|
+
set postProcessing(value: Partial<Readonly<PostProcessing>>);
|
|
203
|
+
/**
|
|
204
|
+
* Gets information about loading activity.
|
|
205
|
+
* @remarks
|
|
206
|
+
* false indicates no loading activity.
|
|
207
|
+
* true indicates loading activity with no progress information.
|
|
208
|
+
* A number between 0 and 1 indicates loading activity with progress information.
|
|
209
|
+
*/
|
|
210
|
+
get loadingProgress(): boolean | number;
|
|
211
|
+
/**
|
|
212
|
+
* The list of animation names for the currently loaded model.
|
|
213
|
+
*/
|
|
214
|
+
get animations(): readonly string[];
|
|
215
|
+
/**
|
|
216
|
+
* The currently selected animation index.
|
|
217
|
+
*/
|
|
218
|
+
get selectedAnimation(): number;
|
|
219
|
+
set selectedAnimation(value: number);
|
|
220
|
+
/**
|
|
221
|
+
* True if an animation is currently playing.
|
|
222
|
+
*/
|
|
223
|
+
get isAnimationPlaying(): boolean;
|
|
224
|
+
/**
|
|
225
|
+
* The speed scale at which animations are played.
|
|
226
|
+
*/
|
|
227
|
+
get animationSpeed(): number;
|
|
228
|
+
set animationSpeed(value: number);
|
|
229
|
+
/**
|
|
230
|
+
* The current point on the selected animation timeline, normalized between 0 and 1.
|
|
231
|
+
*/
|
|
232
|
+
get animationProgress(): number;
|
|
233
|
+
set animationProgress(value: number);
|
|
234
|
+
private get _activeAnimation();
|
|
235
|
+
/**
|
|
236
|
+
* Loads a 3D model from the specified URL.
|
|
237
|
+
* @remarks
|
|
238
|
+
* If a model is already loaded, it will be unloaded before loading the new model.
|
|
239
|
+
* @param source A url or File or ArrayBufferView that points to the model to load.
|
|
240
|
+
* @param options The options to use when loading the model.
|
|
241
|
+
* @param abortSignal An optional signal that can be used to abort the loading process.
|
|
242
|
+
*/
|
|
243
|
+
loadModel(source: string | File | ArrayBufferView, options?: LoadModelOptions, abortSignal?: AbortSignal): Promise<void>;
|
|
244
|
+
/**
|
|
245
|
+
* Unloads the current 3D model if one is loaded.
|
|
246
|
+
* @param abortSignal An optional signal that can be used to abort the reset.
|
|
247
|
+
*/
|
|
248
|
+
resetModel(abortSignal?: AbortSignal): Promise<void>;
|
|
249
|
+
private _updateModel;
|
|
250
|
+
/**
|
|
251
|
+
* Loads an environment texture from the specified url and sets up a corresponding skybox.
|
|
252
|
+
* @remarks
|
|
253
|
+
* If an environment is already loaded, it will be unloaded before loading the new environment.
|
|
254
|
+
* @param url The url of the environment texture to load.
|
|
255
|
+
* @param options The options to use when loading the environment.
|
|
256
|
+
* @param abortSignal An optional signal that can be used to abort the loading process.
|
|
257
|
+
*/
|
|
258
|
+
loadEnvironment(url: string, options?: EnvironmentOptions, abortSignal?: AbortSignal): Promise<void>;
|
|
259
|
+
/**
|
|
260
|
+
* Unloads the current environment if one is loaded.
|
|
261
|
+
* @param abortSignal An optional signal that can be used to abort the reset.
|
|
262
|
+
*/
|
|
263
|
+
resetEnvironment(abortSignal?: AbortSignal): Promise<void>;
|
|
264
|
+
private _updateEnvironment;
|
|
265
|
+
/**
|
|
266
|
+
* Toggles the play/pause animation state if there is a selected animation.
|
|
267
|
+
*/
|
|
268
|
+
toggleAnimation(): void;
|
|
269
|
+
/**
|
|
270
|
+
* Plays the selected animation if there is one.
|
|
271
|
+
*/
|
|
272
|
+
playAnimation(): void;
|
|
273
|
+
/**
|
|
274
|
+
* Pauses the selected animation if there is one.
|
|
275
|
+
*/
|
|
276
|
+
pauseAnimation(): Promise<void>;
|
|
277
|
+
/**
|
|
278
|
+
* Disposes of the resources held by the Viewer.
|
|
279
|
+
*/
|
|
280
|
+
dispose(): void;
|
|
281
|
+
/**
|
|
282
|
+
* retrun world and canvas coordinates of an hot spot
|
|
283
|
+
* @param query mesh index and surface information to query the hot spot positions
|
|
284
|
+
* @param result Query a Hot Spot and does the conversion for Babylon Hot spot to a more generic HotSpotPositions, without Vector types
|
|
285
|
+
* @returns true if hotspot found
|
|
286
|
+
*/
|
|
287
|
+
getHotSpotToRef(query: Readonly<ViewerHotSpotQuery>, result: ViewerHotSpotResult): boolean;
|
|
288
|
+
private _updateCamera;
|
|
289
|
+
private _updateLight;
|
|
290
|
+
private _applyAnimationSpeed;
|
|
291
|
+
/**
|
|
292
|
+
* Check for disposed or aborted state (basically everything that can interrupt an async operation).
|
|
293
|
+
* @param abortSignals A set of optional AbortSignals to also check.
|
|
294
|
+
*/
|
|
295
|
+
private _throwIfDisposedOrAborted;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Options for creating a Viewer instance that is bound to an HTML canvas.
|
|
300
|
+
*/
|
|
301
|
+
type CanvasViewerOptions = ViewerOptions & (({
|
|
302
|
+
engine?: undefined;
|
|
303
|
+
} & AbstractEngineOptions) | ({
|
|
304
|
+
engine: "WebGL";
|
|
305
|
+
} & EngineOptions) | ({
|
|
306
|
+
engine: "WebGPU";
|
|
307
|
+
} & WebGPUEngineOptions));
|
|
308
|
+
/**
|
|
309
|
+
* Chooses a default engine for the current browser environment.
|
|
310
|
+
* @returns The default engine to use.
|
|
311
|
+
*/
|
|
312
|
+
declare function getDefaultEngine(): NonNullable<CanvasViewerOptions["engine"]>;
|
|
313
|
+
/**
|
|
314
|
+
* Creates a Viewer instance that is bound to an HTML canvas.
|
|
315
|
+
* @remarks
|
|
316
|
+
* This function can be shared across multiple UI integrations (e.g. Web Components, React, etc.).
|
|
317
|
+
* @param canvas The canvas element to bind the Viewer to.
|
|
318
|
+
* @param options The options to use when creating the Viewer and binding it to the specified canvas.
|
|
319
|
+
* @returns A Viewer instance that is bound to the specified canvas.
|
|
320
|
+
*/
|
|
321
|
+
declare function createViewerForCanvas(canvas: HTMLCanvasElement, options?: CanvasViewerOptions): Promise<Viewer>;
|
|
322
|
+
|
|
323
|
+
type HotSpot = ViewerHotSpotQuery & {
|
|
324
|
+
cameraOrbit?: [alpha: number, beta: number, radius: number];
|
|
325
|
+
};
|
|
326
|
+
interface HTML3DElementEventMap extends HTMLElementEventMap {
|
|
327
|
+
viewerready: Event;
|
|
328
|
+
environmentchange: Event;
|
|
329
|
+
environmenterror: ErrorEvent;
|
|
330
|
+
modelchange: Event;
|
|
331
|
+
modelerror: ErrorEvent;
|
|
332
|
+
loadingprogresschange: Event;
|
|
333
|
+
selectedanimationchange: Event;
|
|
334
|
+
animationspeedchange: Event;
|
|
335
|
+
animationplayingchange: Event;
|
|
336
|
+
animationprogresschange: Event;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Represents a custom element that displays a 3D model using the Babylon.js Viewer.
|
|
340
|
+
*/
|
|
341
|
+
declare class HTML3DElement extends LitElement {
|
|
342
|
+
private readonly _viewerLock;
|
|
343
|
+
private _viewerDetails?;
|
|
344
|
+
private readonly _propertyBindings;
|
|
345
|
+
static styles: lit.CSSResult;
|
|
346
|
+
/**
|
|
347
|
+
* Gets the underlying viewer details (when the underlying viewer is in a loaded state).
|
|
348
|
+
* This is useful for advanced scenarios where direct access to the viewer or Babylon scene is needed.
|
|
349
|
+
*/
|
|
350
|
+
get viewerDetails(): Readonly<ViewerDetails> | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* Get hotspot world and screen values from a named hotspot
|
|
353
|
+
* @param name slot of the hot spot
|
|
354
|
+
* @param result resulting world and screen positions
|
|
355
|
+
* @returns world and screen space coordinates
|
|
356
|
+
*/
|
|
357
|
+
queryHotSpot(name: string, result: ViewerHotSpotResult): boolean;
|
|
358
|
+
private _queryHotSpot;
|
|
359
|
+
/**
|
|
360
|
+
* Updates the camera to focus on a named hotspot.
|
|
361
|
+
* @param name The name of the hotspot to focus on.
|
|
362
|
+
* @returns true if the hotspot was found and the camera was updated, false otherwise.
|
|
363
|
+
*/
|
|
364
|
+
focusHotSpot(name: string): boolean;
|
|
365
|
+
/**
|
|
366
|
+
* The engine to use for rendering.
|
|
367
|
+
*/
|
|
368
|
+
engine: NonNullable<CanvasViewerOptions["engine"]>;
|
|
369
|
+
/**
|
|
370
|
+
* The model URL.
|
|
371
|
+
*/
|
|
372
|
+
source: Nullable<string>;
|
|
373
|
+
/**
|
|
374
|
+
* Forces the model to be loaded with the specified extension.
|
|
375
|
+
* @remarks
|
|
376
|
+
* If this property is not set, the extension will be inferred from the model URL when possible.
|
|
377
|
+
*/
|
|
378
|
+
extension: Nullable<string>;
|
|
379
|
+
/**
|
|
380
|
+
* The environment URL.
|
|
381
|
+
*/
|
|
382
|
+
environment: Nullable<string>;
|
|
383
|
+
private _loadingProgress;
|
|
384
|
+
/**
|
|
385
|
+
* Gets information about loading activity.
|
|
386
|
+
* @remarks
|
|
387
|
+
* false indicates no loading activity.
|
|
388
|
+
* true indicates loading activity with no progress information.
|
|
389
|
+
* A number between 0 and 1 indicates loading activity with progress information.
|
|
390
|
+
*/
|
|
391
|
+
get loadingProgress(): boolean | number;
|
|
392
|
+
/**
|
|
393
|
+
* A value between 0 and 1 that specifies how much to blur the skybox.
|
|
394
|
+
*/
|
|
395
|
+
skyboxBlur: Nullable<number>;
|
|
396
|
+
/**
|
|
397
|
+
* The tone mapping to use for rendering the scene.
|
|
398
|
+
*/
|
|
399
|
+
toneMapping: Nullable<ToneMapping>;
|
|
400
|
+
/**
|
|
401
|
+
* The contrast applied to the scene.
|
|
402
|
+
*/
|
|
403
|
+
contrast: Nullable<number>;
|
|
404
|
+
/**
|
|
405
|
+
* The exposure applied to the scene.
|
|
406
|
+
*/
|
|
407
|
+
exposure: Nullable<number>;
|
|
408
|
+
/**
|
|
409
|
+
* The clear color (e.g. background color) for the viewer.
|
|
410
|
+
*/
|
|
411
|
+
clearColor: Nullable<Color4>;
|
|
412
|
+
/**
|
|
413
|
+
* Enables or disables camera auto-orbit.
|
|
414
|
+
*/
|
|
415
|
+
cameraAutoOrbit: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* The speed at which the camera auto-orbits around the target.
|
|
418
|
+
*/
|
|
419
|
+
cameraAutoOrbitSpeed: Nullable<number>;
|
|
420
|
+
/**
|
|
421
|
+
* The delay in milliseconds before the camera starts auto-orbiting.
|
|
422
|
+
*/
|
|
423
|
+
cameraAutoOrbitDelay: Nullable<number>;
|
|
424
|
+
/**
|
|
425
|
+
* Camera orbit can only be set as an attribute, and is set on the camera each time a new model is loaded.
|
|
426
|
+
* For access to the real time camera properties, use viewerDetails.camera.
|
|
427
|
+
*/
|
|
428
|
+
private _cameraOrbitCoercer;
|
|
429
|
+
/**
|
|
430
|
+
* Camera target can only be set as an attribute, and is set on the camera each time a new model is loaded.
|
|
431
|
+
* For access to the real time camera properties, use viewerDetails.camera.
|
|
432
|
+
*/
|
|
433
|
+
private _cameraTargetCoercer;
|
|
434
|
+
/**
|
|
435
|
+
* A string value that encodes one or more hotspots.
|
|
436
|
+
*/
|
|
437
|
+
hotSpots: Readonly<Record<string, HotSpot>>;
|
|
438
|
+
private get _hasHotSpots();
|
|
439
|
+
/**
|
|
440
|
+
* True if the default animation should play automatically when a model is loaded.
|
|
441
|
+
*/
|
|
442
|
+
animationAutoPlay: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* The list of animation names for the currently loaded model.
|
|
445
|
+
*/
|
|
446
|
+
get animations(): readonly string[];
|
|
447
|
+
private get _hasAnimations();
|
|
448
|
+
/**
|
|
449
|
+
* The currently selected animation index.
|
|
450
|
+
*/
|
|
451
|
+
selectedAnimation: Nullable<number>;
|
|
452
|
+
/**
|
|
453
|
+
* True if an animation is currently playing.
|
|
454
|
+
*/
|
|
455
|
+
get isAnimationPlaying(): boolean;
|
|
456
|
+
/**
|
|
457
|
+
* The speed scale at which animations are played.
|
|
458
|
+
*/
|
|
459
|
+
animationSpeed: number;
|
|
460
|
+
/**
|
|
461
|
+
* The current point on the selected animation timeline, normalized between 0 and 1.
|
|
462
|
+
*/
|
|
463
|
+
animationProgress: number;
|
|
464
|
+
private _animations;
|
|
465
|
+
private _isAnimationPlaying;
|
|
466
|
+
private _canvasContainer;
|
|
467
|
+
/**
|
|
468
|
+
* Toggles the play/pause animation state if there is a selected animation.
|
|
469
|
+
*/
|
|
470
|
+
toggleAnimation(): void;
|
|
471
|
+
connectedCallback(): void;
|
|
472
|
+
disconnectedCallback(): void;
|
|
473
|
+
update(changedProperties: PropertyValues<this>): void;
|
|
474
|
+
render(): lit_html.TemplateResult<1>;
|
|
475
|
+
addEventListener<K extends keyof HTML3DElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTML3DElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
476
|
+
private _dispatchCustomEvent;
|
|
477
|
+
private _onSelectedAnimationChanged;
|
|
478
|
+
private _onAnimationSpeedChanged;
|
|
479
|
+
private _onAnimationTimelineChanged;
|
|
480
|
+
private _onAnimationTimelinePointerDown;
|
|
481
|
+
private _onHotSpotsChanged;
|
|
482
|
+
private _createPropertyBinding;
|
|
483
|
+
private _setupViewer;
|
|
484
|
+
private _tearDownViewer;
|
|
485
|
+
private _updateModel;
|
|
486
|
+
private _updateEnv;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export { type CameraAutoOrbit, type CanvasViewerOptions, type EnvironmentOptions, HTML3DElement, type LoadModelOptions, type PostProcessing, type ToneMapping, Viewer, type ViewerDetails, type ViewerHotSpotQuery, ViewerHotSpotResult, type ViewerOptions, createViewerForCanvas, getDefaultEngine, isToneMapping };
|