@babylonjs/viewer 7.23.0 → 7.23.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/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-D3ZBYLgC.esm.js +170 -0
- package/dist/chunks/EXT_lights_image_based-D3ZBYLgC.esm.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-DyWZGFdC.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_image_based-DyWZGFdC.esm.min.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BsSuxC3A.esm.js +86 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BsSuxC3A.esm.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DtTWXKzv.esm.min.js +2 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-DtTWXKzv.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-BncKn2rD.esm.js +134 -0
- package/dist/chunks/EXT_meshopt_compression-BncKn2rD.esm.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-CjW8GcrA.esm.min.js +2 -0
- package/dist/chunks/EXT_meshopt_compression-CjW8GcrA.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-DLrVqqUz.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_avif-DLrVqqUz.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-wG4GNQfZ.esm.js +44 -0
- package/dist/chunks/EXT_texture_avif-wG4GNQfZ.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-BccV6Svg.esm.js +43 -0
- package/dist/chunks/EXT_texture_webp-BccV6Svg.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-DNAe2ii8.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_webp-DNAe2ii8.esm.min.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-BA0NyQBn.esm.js +64 -0
- package/dist/chunks/ExtrasAsMetadata-BA0NyQBn.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-BN02lRw7.esm.min.js +2 -0
- package/dist/chunks/ExtrasAsMetadata-BN02lRw7.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-B7mk-XJN.esm.min.js +2 -0
- package/dist/chunks/KHR_animation_pointer-B7mk-XJN.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-BFFpQV4X.esm.js +343 -0
- package/dist/chunks/KHR_animation_pointer-BFFpQV4X.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-7zqRIpZt.esm.js +610 -0
- package/dist/chunks/KHR_draco_mesh_compression-7zqRIpZt.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-Bw4rV4ln.esm.min.js +2 -0
- package/dist/chunks/KHR_draco_mesh_compression-Bw4rV4ln.esm.min.js.map +1 -0
- package/dist/chunks/KHR_interactivity-Bd_6hpGb.esm.js +4033 -0
- package/dist/chunks/KHR_interactivity-Bd_6hpGb.esm.js.map +1 -0
- package/dist/chunks/KHR_interactivity-DIJyLERv.esm.min.js +2 -0
- package/dist/chunks/KHR_interactivity-DIJyLERv.esm.min.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-CFUUYlNK.esm.min.js +2 -0
- package/dist/chunks/KHR_lights_punctual-CFUUYlNK.esm.min.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-XL2dnY2h.esm.js +1253 -0
- package/dist/chunks/KHR_lights_punctual-XL2dnY2h.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-04SftzV0.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_anisotropy-04SftzV0.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-gAd08wDG.esm.js +64 -0
- package/dist/chunks/KHR_materials_anisotropy-gAd08wDG.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-9GQaVx6k.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_clearcoat-9GQaVx6k.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-Cv_yIIaW.esm.js +96 -0
- package/dist/chunks/KHR_materials_clearcoat-Cv_yIIaW.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-Dj9EU7q2.esm.js +96 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-Dj9EU7q2.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-fmv70uuH.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-fmv70uuH.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-CCzM2Avp.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_dispersion-CCzM2Avp.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-JNxGdAqc.esm.js +63 -0
- package/dist/chunks/KHR_materials_dispersion-JNxGdAqc.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-D25-ItKl.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_emissive_strength-D25-ItKl.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-DlkptyaM.esm.js +55 -0
- package/dist/chunks/KHR_materials_emissive_strength-DlkptyaM.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-Jqj5Ph_V.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_ior-Jqj5Ph_V.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-KGZBae4Y.esm.js +64 -0
- package/dist/chunks/KHR_materials_ior-KGZBae4Y.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-ByOHUtdO.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_iridescence-ByOHUtdO.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-FmAV1QDy.esm.js +72 -0
- package/dist/chunks/KHR_materials_iridescence-FmAV1QDy.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BiqCrcmj.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-BiqCrcmj.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CRnlTYx-.esm.js +81 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-CRnlTYx-.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-7li6Dlkh.esm.js +85 -0
- package/dist/chunks/KHR_materials_sheen-7li6Dlkh.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-BL2qM8Rp.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_sheen-BL2qM8Rp.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-C2ks7gPC.esm.js +75 -0
- package/dist/chunks/KHR_materials_specular-C2ks7gPC.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-DCAt3T_l.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_specular-DCAt3T_l.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-B8w41MT6.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_transmission-B8w41MT6.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-DRL9BE9q.esm.js +307 -0
- package/dist/chunks/KHR_materials_transmission-DRL9BE9q.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-B-il-TRX.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_unlit-B-il-TRX.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-B44Oqon6.esm.js +74 -0
- package/dist/chunks/KHR_materials_unlit-B44Oqon6.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-BCdEgpch.esm.js +238 -0
- package/dist/chunks/KHR_materials_variants-BCdEgpch.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-ClQElTeo.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_variants-ClQElTeo.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-BXv3M95S.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_volume-BXv3M95S.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-BuUrRniE.esm.js +88 -0
- package/dist/chunks/KHR_materials_volume-BuUrRniE.esm.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-WPngIGGs.esm.min.js +2 -0
- package/dist/chunks/KHR_mesh_quantization-WPngIGGs.esm.min.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-p2nyy6Ym.esm.js +26 -0
- package/dist/chunks/KHR_mesh_quantization-p2nyy6Ym.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-BHsmOUDV.esm.js +43 -0
- package/dist/chunks/KHR_texture_basisu-BHsmOUDV.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-DObdWvzE.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_basisu-DObdWvzE.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-B7NCdTO_.esm.js +63 -0
- package/dist/chunks/KHR_texture_transform-B7NCdTO_.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-D6Ee6UiP.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_transform-D6Ee6UiP.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-Coh_hfCi.esm.js +51 -0
- package/dist/chunks/KHR_xmp_json_ld-Coh_hfCi.esm.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-ijOY8DMb.esm.min.js +2 -0
- package/dist/chunks/KHR_xmp_json_ld-ijOY8DMb.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-CGjUSgI2.esm.min.js +2 -0
- package/dist/chunks/MSFT_audio_emitter-CGjUSgI2.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-fFvTv2YK.esm.js +1600 -0
- package/dist/chunks/MSFT_audio_emitter-fFvTv2YK.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-Bql1icOF.esm.js +337 -0
- package/dist/chunks/MSFT_lod-Bql1icOF.esm.js.map +1 -0
- package/dist/chunks/MSFT_lod-Du_akN0I.esm.min.js +2 -0
- package/dist/chunks/MSFT_lod-Du_akN0I.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-Brch3HUo.esm.min.js +2 -0
- package/dist/chunks/MSFT_minecraftMesh-Brch3HUo.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-jrYC8YE9.esm.js +46 -0
- package/dist/chunks/MSFT_minecraftMesh-jrYC8YE9.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-Dp3CtJ9B.esm.js +47 -0
- package/dist/chunks/MSFT_sRGBFactors-Dp3CtJ9B.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-LZM-HF4P.esm.min.js +2 -0
- package/dist/chunks/MSFT_sRGBFactors-LZM-HF4P.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-Bo08Fxv3.esm.min.js +2 -0
- package/dist/chunks/assetContainer-Bo08Fxv3.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-DVOdWL9b.esm.js +1598 -0
- package/dist/chunks/assetContainer-DVOdWL9b.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-C2Or-Jx_.esm.min.js +2 -0
- package/dist/chunks/basisTextureLoader-C2Or-Jx_.esm.min.js.map +1 -0
- package/dist/chunks/basisTextureLoader-DiYg6uNN.esm.js +600 -0
- package/dist/chunks/basisTextureLoader-DiYg6uNN.esm.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-CDlttCBi.esm.js +87 -0
- package/dist/chunks/ddsTextureLoader-CDlttCBi.esm.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-T_I1TPiz.esm.min.js +2 -0
- package/dist/chunks/ddsTextureLoader-T_I1TPiz.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-C8ZCxgTK.esm.js +515 -0
- package/dist/chunks/default.fragment-C8ZCxgTK.esm.js.map +1 -0
- package/dist/chunks/default.fragment-Conpp30r.esm.js +452 -0
- package/dist/chunks/default.fragment-Conpp30r.esm.js.map +1 -0
- package/dist/chunks/default.fragment-DTP98j1l.esm.min.js +2 -0
- package/dist/chunks/default.fragment-DTP98j1l.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-DjistPBR.esm.min.js +2 -0
- package/dist/chunks/default.fragment-DjistPBR.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-BSCjzhXG.esm.js +178 -0
- package/dist/chunks/default.vertex-BSCjzhXG.esm.js.map +1 -0
- package/dist/chunks/default.vertex-Ba7zxY0T.esm.min.js +2 -0
- package/dist/chunks/default.vertex-Ba7zxY0T.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-CPurFhOJ.esm.js +199 -0
- package/dist/chunks/default.vertex-CPurFhOJ.esm.js.map +1 -0
- package/dist/chunks/default.vertex-D_4jDtBx.esm.min.js +2 -0
- package/dist/chunks/default.vertex-D_4jDtBx.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-BjT2yBnm.esm.js +15 -0
- package/dist/chunks/defaultUboDeclaration-BjT2yBnm.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-BuAk9gJA.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-BuAk9gJA.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-CC8YfLoS.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-CC8YfLoS.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-ClvuiT6M.esm.js +13 -0
- package/dist/chunks/defaultUboDeclaration-ClvuiT6M.esm.js.map +1 -0
- package/dist/chunks/envTextureLoader-DuE-52NK.esm.min.js +2 -0
- package/dist/chunks/envTextureLoader-DuE-52NK.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-ENMUumOz.esm.js +63 -0
- package/dist/chunks/envTextureLoader-ENMUumOz.esm.js.map +1 -0
- package/dist/chunks/environmentTextureTools-Cw-ZbYYv.esm.js +381 -0
- package/dist/chunks/environmentTextureTools-Cw-ZbYYv.esm.js.map +1 -0
- package/dist/chunks/environmentTextureTools-mWXMV1Cr.esm.min.js +2 -0
- package/dist/chunks/environmentTextureTools-mWXMV1Cr.esm.min.js.map +1 -0
- package/dist/chunks/exrTextureLoader-9ioAK1Ph.esm.js +1682 -0
- package/dist/chunks/exrTextureLoader-9ioAK1Ph.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-zc2N62c3.esm.min.js +2 -0
- package/dist/chunks/exrTextureLoader-zc2N62c3.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-DLguActo.esm.min.js +2 -0
- package/dist/chunks/fogFragment-DLguActo.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-sACeXatv.esm.js +102 -0
- package/dist/chunks/fogFragment-sACeXatv.esm.js.map +1 -0
- package/dist/chunks/glTFLoader-BuxqXvJ-.esm.min.js +2 -0
- package/dist/chunks/glTFLoader-BuxqXvJ-.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoader-DB7AOurF.esm.js +7552 -0
- package/dist/chunks/glTFLoader-DB7AOurF.esm.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-BWhMcDgk.esm.min.js +2 -0
- package/dist/chunks/glTFLoaderAnimation-BWhMcDgk.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-DK5fvCTY.esm.js +77 -0
- package/dist/chunks/glTFLoaderAnimation-DK5fvCTY.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-BMUi3P6Y.esm.js +35 -0
- package/dist/chunks/harmonicsFunctions-BMUi3P6Y.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-BWj3xZKa.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-BWj3xZKa.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-D9GUclWs.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-D9GUclWs.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-DQngcILt.esm.js +34 -0
- package/dist/chunks/harmonicsFunctions-DQngcILt.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-3TOTpFyV.esm.min.js +2 -0
- package/dist/chunks/hdrTextureLoader-3TOTpFyV.esm.min.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-zIHMNTOp.esm.js +252 -0
- package/dist/chunks/hdrTextureLoader-zIHMNTOp.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-B_yzbgEv.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-B_yzbgEv.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-BjYz-6zr.esm.js +108 -0
- package/dist/chunks/helperFunctions-BjYz-6zr.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-CXLST6hZ.esm.js +80 -0
- package/dist/chunks/helperFunctions-CXLST6hZ.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-DTBzTIjJ.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-DTBzTIjJ.esm.min.js.map +1 -0
- package/dist/chunks/index-CTNAO7X0.esm.js +81630 -0
- package/dist/chunks/index-CTNAO7X0.esm.js.map +1 -0
- package/dist/chunks/index-DYqHhEAk.esm.min.js +57 -0
- package/dist/chunks/index-DYqHhEAk.esm.min.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-9AGBpjf1.esm.js +814 -0
- package/dist/chunks/ktxTextureLoader-9AGBpjf1.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-DbSU4wBV.esm.min.js +2 -0
- package/dist/chunks/ktxTextureLoader-DbSU4wBV.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-BCN89cGc.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-BCN89cGc.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-CZCatKgj.esm.js +42 -0
- package/dist/chunks/logDepthDeclaration-CZCatKgj.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-_gJVcKC2.esm.js +35 -0
- package/dist/chunks/logDepthDeclaration-_gJVcKC2.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-cpc5vyCy.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-cpc5vyCy.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-7sCVTIjr.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-7sCVTIjr.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-B09oc-mi.esm.js +77 -0
- package/dist/chunks/logDepthVertex-B09oc-mi.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-Bq3-XtSp.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-Bq3-XtSp.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-DZoye-59.esm.js +605 -0
- package/dist/chunks/logDepthVertex-DZoye-59.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-LHNQQPPQ.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-LHNQQPPQ.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-wmRFnah8.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-wmRFnah8.esm.min.js.map +1 -0
- package/dist/chunks/objFileLoader-BvWwH6aj.esm.js +1280 -0
- package/dist/chunks/objFileLoader-BvWwH6aj.esm.js.map +1 -0
- package/dist/chunks/objFileLoader-LDP87u1T.esm.min.js +2 -0
- package/dist/chunks/objFileLoader-LDP87u1T.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-BAVtrG6V.esm.min.js +2 -0
- package/dist/chunks/oitFragment-BAVtrG6V.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-BqzVjWja.esm.js +1210 -0
- package/dist/chunks/oitFragment-BqzVjWja.esm.js.map +1 -0
- package/dist/chunks/oitFragment-CIelz994.esm.js +1166 -0
- package/dist/chunks/oitFragment-CIelz994.esm.js.map +1 -0
- package/dist/chunks/oitFragment-P20Uiy73.esm.min.js +2 -0
- package/dist/chunks/oitFragment-P20Uiy73.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-D-67YTNJ.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-D-67YTNJ.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-ke3_LMQY.esm.js +15 -0
- package/dist/chunks/pass.fragment-ke3_LMQY.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-3QJykQmh.esm.js +3228 -0
- package/dist/chunks/pbr.fragment-3QJykQmh.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-BfhoPEE4.esm.js +3163 -0
- package/dist/chunks/pbr.fragment-BfhoPEE4.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-BpCKAJQO.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-BpCKAJQO.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-Buc8F3ii.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-Buc8F3ii.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-Bwl6238q.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-Bwl6238q.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-COtog_7X.esm.js +335 -0
- package/dist/chunks/pbr.vertex-COtog_7X.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-CX-ksiMG.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-CX-ksiMG.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-WxxbIMZL.esm.js +208 -0
- package/dist/chunks/pbr.vertex-WxxbIMZL.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-6VuephE3.esm.min.js +2 -0
- package/dist/chunks/postprocess.vertex-6VuephE3.esm.min.js.map +1 -0
- package/dist/chunks/postprocess.vertex-y9rNSbFH.esm.js +20 -0
- package/dist/chunks/postprocess.vertex-y9rNSbFH.esm.js.map +1 -0
- package/dist/chunks/rawTexture-BjAjz6eU.esm.min.js +2 -0
- package/dist/chunks/rawTexture-BjAjz6eU.esm.min.js.map +1 -0
- package/dist/chunks/rawTexture-DzCCPFKA.esm.js +562 -0
- package/dist/chunks/rawTexture-DzCCPFKA.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-B2z-Bt71.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-B2z-Bt71.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-CdzoW-6f.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-CdzoW-6f.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-DrLvcO8Q.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-DrLvcO8Q.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-DuXK_20s.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-DuXK_20s.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-B8TjBZ9S.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-B8TjBZ9S.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-CGQHcoVr.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-CGQHcoVr.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-CHPMUGpL.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-CHPMUGpL.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-Ch8KaRMn.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-Ch8KaRMn.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-BOlEs8up.esm.min.js +2 -0
- package/dist/chunks/splatFileLoader-BOlEs8up.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-bjTdN6CH.esm.js +3137 -0
- package/dist/chunks/splatFileLoader-bjTdN6CH.esm.js.map +1 -0
- package/dist/chunks/standardMaterial-AtuI8LET.esm.min.js +2 -0
- package/dist/chunks/standardMaterial-AtuI8LET.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-pkPTNFQZ.esm.js +1809 -0
- package/dist/chunks/standardMaterial-pkPTNFQZ.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-D_S8zIWi.esm.min.js +2 -0
- package/dist/chunks/stlFileLoader-D_S8zIWi.esm.min.js.map +1 -0
- package/dist/chunks/stlFileLoader-LAl8UbnA.esm.js +237 -0
- package/dist/chunks/stlFileLoader-LAl8UbnA.esm.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-6J7hFLap.esm.min.js +2 -0
- package/dist/chunks/tgaTextureLoader-6J7hFLap.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-C9bFUsSu.esm.js +349 -0
- package/dist/chunks/tgaTextureLoader-C9bFUsSu.esm.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-01jRjs2y.esm.js +314 -0
- package/dist/chunks/thinInstanceMesh-01jRjs2y.esm.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-BkM6bBqz.esm.min.js +2 -0
- package/dist/chunks/thinInstanceMesh-BkM6bBqz.esm.min.js.map +1 -0
- package/dist/chunks/vertexColorMixing-BQURABk9.esm.js +528 -0
- package/dist/chunks/vertexColorMixing-BQURABk9.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-DtyijcYJ.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-DtyijcYJ.esm.min.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/lib/index.d.ts +237 -0
- package/lib/index.js +871 -0
- package/lib/index.js.map +1 -0
- package/package.json +17 -27
- package/readme.md +35 -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 -351
- 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 -199
- 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 -675
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"MSFT_audio_emitter-fFvTv2YK.esm.js","sources":["../../../../../dev/core/dist/Animations/animationEvent.js","../../../../../dev/core/dist/Audio/sound.js","../../../../../dev/core/dist/Audio/weightedsound.js","../../../../../dev/loaders/dist/glTF/2.0/Extensions/MSFT_audio_emitter.js"],"sourcesContent":["/**\n * Composed of a frame, and an action function\n */\nexport class AnimationEvent {\n /**\n * Initializes the animation event\n * @param frame The frame for which the event is triggered\n * @param action The event to perform when triggered\n * @param onlyOnce Specifies if the event should be triggered only once\n */\n constructor(\n /** The frame for which the event is triggered **/\n frame, \n /** The event to perform when triggered **/\n action, \n /** Specifies if the event should be triggered only once**/\n onlyOnce) {\n this.frame = frame;\n this.action = action;\n this.onlyOnce = onlyOnce;\n /**\n * Specifies if the animation event is done\n */\n this.isDone = false;\n }\n /** @internal */\n _clone() {\n return new AnimationEvent(this.frame, this.action, this.onlyOnce);\n }\n}\n//# sourceMappingURL=animationEvent.js.map","import { Tools } from \"../Misc/tools\";\nimport { Observable } from \"../Misc/observable\";\nimport { Vector3 } from \"../Maths/math.vector\";\nimport { Logger } from \"../Misc/logger\";\nimport { _WarnImport } from \"../Misc/devTools\";\nimport { EngineStore } from \"../Engines/engineStore\";\nimport { RegisterClass } from \"../Misc/typeStore\";\nimport { AbstractEngine } from \"core/Engines/abstractEngine\";\n/**\n * Defines a sound that can be played in the application.\n * The sound can either be an ambient track or a simple sound played in reaction to a user action.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic\n */\nexport class Sound {\n /**\n * Does the sound loop after it finishes playing once.\n */\n get loop() {\n return this._loop;\n }\n set loop(value) {\n if (value === this._loop) {\n return;\n }\n this._loop = value;\n this.updateOptions({ loop: value });\n }\n /**\n * Gets the current time for the sound.\n */\n get currentTime() {\n if (this._htmlAudioElement) {\n return this._htmlAudioElement.currentTime;\n }\n if (AbstractEngine.audioEngine?.audioContext && (this.isPlaying || this.isPaused)) {\n // The `_currentTime` member is only updated when the sound is paused. Add the time since the last start\n // to get the actual current time.\n const timeSinceLastStart = this.isPaused ? 0 : AbstractEngine.audioEngine.audioContext.currentTime - this._startTime;\n return this._currentTime + timeSinceLastStart;\n }\n return 0;\n }\n /**\n * Does this sound enables spatial sound.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-a-spatial-3d-sound\n */\n get spatialSound() {\n return this._spatialSound;\n }\n /**\n * Does this sound enables spatial sound.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-a-spatial-3d-sound\n */\n set spatialSound(newValue) {\n if (newValue == this._spatialSound) {\n return;\n }\n const wasPlaying = this.isPlaying;\n this.pause();\n if (newValue) {\n this._spatialSound = newValue;\n this._updateSpatialParameters();\n }\n else {\n this._disableSpatialSound();\n }\n if (wasPlaying) {\n this.play();\n }\n }\n /**\n * Create a sound and attach it to a scene\n * @param name Name of your sound\n * @param urlOrArrayBuffer Url to the sound to load async or ArrayBuffer, it also works with MediaStreams and AudioBuffers\n * @param scene defines the scene the sound belongs to\n * @param readyToPlayCallback Provide a callback function if you'd like to load your code once the sound is ready to be played\n * @param options Objects to provide with the current available options: autoplay, loop, volume, spatialSound, maxDistance, rolloffFactor, refDistance, distanceModel, panningModel, streaming\n */\n constructor(name, urlOrArrayBuffer, scene, readyToPlayCallback = null, options) {\n /**\n * Does the sound autoplay once loaded.\n */\n this.autoplay = false;\n this._loop = false;\n /**\n * Does the sound use a custom attenuation curve to simulate the falloff\n * happening when the source gets further away from the camera.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-your-own-custom-attenuation-function\n */\n this.useCustomAttenuation = false;\n /**\n * Is this sound currently played.\n */\n this.isPlaying = false;\n /**\n * Is this sound currently paused.\n */\n this.isPaused = false;\n /**\n * Define the reference distance the sound should be heard perfectly.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-a-spatial-3d-sound\n */\n this.refDistance = 1;\n /**\n * Define the roll off factor of spatial sounds.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-a-spatial-3d-sound\n */\n this.rolloffFactor = 1;\n /**\n * Define the max distance the sound should be heard (intensity just became 0 at this point).\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-a-spatial-3d-sound\n */\n this.maxDistance = 100;\n /**\n * Define the distance attenuation model the sound will follow.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-a-spatial-3d-sound\n */\n this.distanceModel = \"linear\";\n /**\n * Gets or sets an object used to store user defined information for the sound.\n */\n this.metadata = null;\n /**\n * Observable event when the current playing sound finishes.\n */\n this.onEndedObservable = new Observable();\n this._spatialSound = false;\n this._panningModel = \"equalpower\";\n this._playbackRate = 1;\n this._streaming = false;\n this._startTime = 0;\n this._currentTime = 0;\n this._position = Vector3.Zero();\n this._localDirection = new Vector3(1, 0, 0);\n this._volume = 1;\n this._isReadyToPlay = false;\n this._isDirectional = false;\n // Used if you'd like to create a directional sound.\n // If not set, the sound will be omnidirectional\n this._coneInnerAngle = 360;\n this._coneOuterAngle = 360;\n this._coneOuterGain = 0;\n this._isOutputConnected = false;\n this._urlType = \"Unknown\";\n this.name = name;\n scene = scene || EngineStore.LastCreatedScene;\n if (!scene) {\n return;\n }\n this._scene = scene;\n Sound._SceneComponentInitialization(scene);\n this._readyToPlayCallback = readyToPlayCallback;\n // Default custom attenuation function is a linear attenuation\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n this._customAttenuationFunction = (currentVolume, currentDistance, maxDistance, refDistance, rolloffFactor) => {\n if (currentDistance < maxDistance) {\n return currentVolume * (1 - currentDistance / maxDistance);\n }\n else {\n return 0;\n }\n };\n if (options) {\n this.autoplay = options.autoplay || false;\n this._loop = options.loop || false;\n // if volume === 0, we need another way to check this option\n if (options.volume !== undefined) {\n this._volume = options.volume;\n }\n this._spatialSound = options.spatialSound ?? false;\n this.maxDistance = options.maxDistance ?? 100;\n this.useCustomAttenuation = options.useCustomAttenuation ?? false;\n this.rolloffFactor = options.rolloffFactor || 1;\n this.refDistance = options.refDistance || 1;\n this.distanceModel = options.distanceModel || \"linear\";\n this._playbackRate = options.playbackRate || 1;\n this._streaming = options.streaming ?? false;\n this._length = options.length;\n this._offset = options.offset;\n }\n if (AbstractEngine.audioEngine?.canUseWebAudio && AbstractEngine.audioEngine.audioContext) {\n this._soundGain = AbstractEngine.audioEngine.audioContext.createGain();\n this._soundGain.gain.value = this._volume;\n this._inputAudioNode = this._soundGain;\n this._outputAudioNode = this._soundGain;\n if (this._spatialSound) {\n this._createSpatialParameters();\n }\n this._scene.mainSoundTrack.addSound(this);\n let validParameter = true;\n // if no parameter is passed, you need to call setAudioBuffer yourself to prepare the sound\n if (urlOrArrayBuffer) {\n try {\n if (typeof urlOrArrayBuffer === \"string\") {\n this._urlType = \"String\";\n this._url = urlOrArrayBuffer;\n }\n else if (urlOrArrayBuffer instanceof ArrayBuffer) {\n this._urlType = \"ArrayBuffer\";\n }\n else if (urlOrArrayBuffer instanceof HTMLMediaElement) {\n this._urlType = \"MediaElement\";\n }\n else if (urlOrArrayBuffer instanceof MediaStream) {\n this._urlType = \"MediaStream\";\n }\n else if (urlOrArrayBuffer instanceof AudioBuffer) {\n this._urlType = \"AudioBuffer\";\n }\n else if (Array.isArray(urlOrArrayBuffer)) {\n this._urlType = \"Array\";\n }\n let urls = [];\n let codecSupportedFound = false;\n switch (this._urlType) {\n case \"MediaElement\":\n this._streaming = true;\n this._isReadyToPlay = true;\n this._streamingSource = AbstractEngine.audioEngine.audioContext.createMediaElementSource(urlOrArrayBuffer);\n if (this.autoplay) {\n this.play(0, this._offset, this._length);\n }\n if (this._readyToPlayCallback) {\n this._readyToPlayCallback();\n }\n break;\n case \"MediaStream\":\n this._streaming = true;\n this._isReadyToPlay = true;\n this._streamingSource = AbstractEngine.audioEngine.audioContext.createMediaStreamSource(urlOrArrayBuffer);\n if (this.autoplay) {\n this.play(0, this._offset, this._length);\n }\n if (this._readyToPlayCallback) {\n this._readyToPlayCallback();\n }\n break;\n case \"ArrayBuffer\":\n if (urlOrArrayBuffer.byteLength > 0) {\n codecSupportedFound = true;\n this._soundLoaded(urlOrArrayBuffer);\n }\n break;\n case \"AudioBuffer\":\n this._audioBufferLoaded(urlOrArrayBuffer);\n break;\n case \"String\":\n urls.push(urlOrArrayBuffer);\n // eslint-disable-next-line no-fallthrough\n case \"Array\":\n if (urls.length === 0) {\n urls = urlOrArrayBuffer;\n }\n // If we found a supported format, we load it immediately and stop the loop\n for (let i = 0; i < urls.length; i++) {\n const url = urls[i];\n codecSupportedFound =\n (options && options.skipCodecCheck) ||\n (url.indexOf(\".mp3\", url.length - 4) !== -1 && AbstractEngine.audioEngine.isMP3supported) ||\n (url.indexOf(\".ogg\", url.length - 4) !== -1 && AbstractEngine.audioEngine.isOGGsupported) ||\n url.indexOf(\".wav\", url.length - 4) !== -1 ||\n url.indexOf(\".m4a\", url.length - 4) !== -1 ||\n url.indexOf(\".mp4\", url.length - 4) !== -1 ||\n url.indexOf(\"blob:\") !== -1;\n if (codecSupportedFound) {\n // Loading sound\n if (!this._streaming) {\n this._scene._loadFile(url, (data) => {\n this._soundLoaded(data);\n }, undefined, true, true, (exception) => {\n if (exception) {\n Logger.Error(\"XHR \" + exception.status + \" error on: \" + url + \".\");\n }\n Logger.Error(\"Sound creation aborted.\");\n this._scene.mainSoundTrack.removeSound(this);\n });\n }\n // Streaming sound using HTML5 Audio tag\n else {\n this._htmlAudioElement = new Audio(url);\n this._htmlAudioElement.controls = false;\n this._htmlAudioElement.loop = this.loop;\n Tools.SetCorsBehavior(url, this._htmlAudioElement);\n this._htmlAudioElement.preload = \"auto\";\n this._htmlAudioElement.addEventListener(\"canplaythrough\", () => {\n this._isReadyToPlay = true;\n if (this.autoplay) {\n this.play(0, this._offset, this._length);\n }\n if (this._readyToPlayCallback) {\n this._readyToPlayCallback();\n }\n });\n document.body.appendChild(this._htmlAudioElement);\n this._htmlAudioElement.load();\n }\n break;\n }\n }\n break;\n default:\n validParameter = false;\n break;\n }\n if (!validParameter) {\n Logger.Error(\"Parameter must be a URL to the sound, an Array of URLs (.mp3 & .ogg) or an ArrayBuffer of the sound.\");\n }\n else {\n if (!codecSupportedFound) {\n this._isReadyToPlay = true;\n // Simulating a ready to play event to avoid breaking code path\n if (this._readyToPlayCallback) {\n setTimeout(() => {\n if (this._readyToPlayCallback) {\n this._readyToPlayCallback();\n }\n }, 1000);\n }\n }\n }\n }\n catch (ex) {\n Logger.Error(\"Unexpected error. Sound creation aborted.\");\n this._scene.mainSoundTrack.removeSound(this);\n }\n }\n }\n else {\n // Adding an empty sound to avoid breaking audio calls for non Web Audio browsers\n this._scene.mainSoundTrack.addSound(this);\n if (AbstractEngine.audioEngine && !AbstractEngine.audioEngine.WarnedWebAudioUnsupported) {\n Logger.Error(\"Web Audio is not supported by your browser.\");\n AbstractEngine.audioEngine.WarnedWebAudioUnsupported = true;\n }\n // Simulating a ready to play event to avoid breaking code for non web audio browsers\n if (this._readyToPlayCallback) {\n setTimeout(() => {\n if (this._readyToPlayCallback) {\n this._readyToPlayCallback();\n }\n }, 1000);\n }\n }\n }\n /**\n * Release the sound and its associated resources\n */\n dispose() {\n if (AbstractEngine.audioEngine?.canUseWebAudio) {\n if (this.isPlaying) {\n this.stop();\n }\n this._isReadyToPlay = false;\n if (this.soundTrackId === -1) {\n this._scene.mainSoundTrack.removeSound(this);\n }\n else if (this._scene.soundTracks) {\n this._scene.soundTracks[this.soundTrackId].removeSound(this);\n }\n if (this._soundGain) {\n this._soundGain.disconnect();\n this._soundGain = null;\n }\n if (this._soundPanner) {\n this._soundPanner.disconnect();\n this._soundPanner = null;\n }\n if (this._soundSource) {\n this._soundSource.disconnect();\n this._soundSource = null;\n }\n this._audioBuffer = null;\n if (this._htmlAudioElement) {\n this._htmlAudioElement.pause();\n this._htmlAudioElement.src = \"\";\n document.body.removeChild(this._htmlAudioElement);\n }\n if (this._streamingSource) {\n this._streamingSource.disconnect();\n }\n if (this._connectedTransformNode && this._registerFunc) {\n this._connectedTransformNode.unregisterAfterWorldMatrixUpdate(this._registerFunc);\n this._connectedTransformNode = null;\n }\n this._clearTimeoutsAndObservers();\n }\n }\n /**\n * Gets if the sounds is ready to be played or not.\n * @returns true if ready, otherwise false\n */\n isReady() {\n return this._isReadyToPlay;\n }\n /**\n * Get the current class name.\n * @returns current class name\n */\n getClassName() {\n return \"Sound\";\n }\n _audioBufferLoaded(buffer) {\n if (!AbstractEngine.audioEngine?.audioContext) {\n return;\n }\n this._audioBuffer = buffer;\n this._isReadyToPlay = true;\n if (this.autoplay) {\n this.play(0, this._offset, this._length);\n }\n if (this._readyToPlayCallback) {\n this._readyToPlayCallback();\n }\n }\n _soundLoaded(audioData) {\n if (!AbstractEngine.audioEngine?.audioContext) {\n return;\n }\n AbstractEngine.audioEngine.audioContext.decodeAudioData(audioData, (buffer) => {\n this._audioBufferLoaded(buffer);\n }, (err) => {\n Logger.Error(\"Error while decoding audio data for: \" + this.name + \" / Error: \" + err);\n });\n }\n /**\n * Sets the data of the sound from an audiobuffer\n * @param audioBuffer The audioBuffer containing the data\n */\n setAudioBuffer(audioBuffer) {\n if (AbstractEngine.audioEngine?.canUseWebAudio) {\n this._audioBuffer = audioBuffer;\n this._isReadyToPlay = true;\n }\n }\n /**\n * Updates the current sounds options such as maxdistance, loop...\n * @param options A JSON object containing values named as the object properties\n */\n updateOptions(options) {\n if (options) {\n this.loop = options.loop ?? this.loop;\n this.maxDistance = options.maxDistance ?? this.maxDistance;\n this.useCustomAttenuation = options.useCustomAttenuation ?? this.useCustomAttenuation;\n this.rolloffFactor = options.rolloffFactor ?? this.rolloffFactor;\n this.refDistance = options.refDistance ?? this.refDistance;\n this.distanceModel = options.distanceModel ?? this.distanceModel;\n this._playbackRate = options.playbackRate ?? this._playbackRate;\n this._length = options.length ?? undefined;\n this.spatialSound = options.spatialSound ?? this._spatialSound;\n this._setOffset(options.offset ?? undefined);\n this.setVolume(options.volume ?? this._volume);\n this._updateSpatialParameters();\n if (this.isPlaying) {\n if (this._streaming && this._htmlAudioElement) {\n this._htmlAudioElement.playbackRate = this._playbackRate;\n if (this._htmlAudioElement.loop !== this.loop) {\n this._htmlAudioElement.loop = this.loop;\n }\n }\n else {\n if (this._soundSource) {\n this._soundSource.playbackRate.value = this._playbackRate;\n if (this._soundSource.loop !== this.loop) {\n this._soundSource.loop = this.loop;\n }\n if (this._offset !== undefined && this._soundSource.loopStart !== this._offset) {\n this._soundSource.loopStart = this._offset;\n }\n if (this._length !== undefined && this._length !== this._soundSource.loopEnd) {\n this._soundSource.loopEnd = (this._offset | 0) + this._length;\n }\n }\n }\n }\n }\n }\n _createSpatialParameters() {\n if (AbstractEngine.audioEngine?.canUseWebAudio && AbstractEngine.audioEngine.audioContext) {\n if (this._scene.headphone) {\n this._panningModel = \"HRTF\";\n }\n this._soundPanner = this._soundPanner ?? AbstractEngine.audioEngine.audioContext.createPanner();\n if (this._soundPanner && this._outputAudioNode) {\n this._updateSpatialParameters();\n this._soundPanner.connect(this._outputAudioNode);\n this._inputAudioNode = this._soundPanner;\n }\n }\n }\n _disableSpatialSound() {\n if (!this._spatialSound) {\n return;\n }\n this._inputAudioNode = this._soundGain;\n this._soundPanner?.disconnect();\n this._soundPanner = null;\n this._spatialSound = false;\n }\n _updateSpatialParameters() {\n if (!this._spatialSound) {\n return;\n }\n if (this._soundPanner) {\n if (this.useCustomAttenuation) {\n // Tricks to disable in a way embedded Web Audio attenuation\n this._soundPanner.distanceModel = \"linear\";\n this._soundPanner.maxDistance = Number.MAX_VALUE;\n this._soundPanner.refDistance = 1;\n this._soundPanner.rolloffFactor = 1;\n this._soundPanner.panningModel = this._panningModel;\n }\n else {\n this._soundPanner.distanceModel = this.distanceModel;\n this._soundPanner.maxDistance = this.maxDistance;\n this._soundPanner.refDistance = this.refDistance;\n this._soundPanner.rolloffFactor = this.rolloffFactor;\n this._soundPanner.panningModel = this._panningModel;\n }\n }\n else {\n this._createSpatialParameters();\n }\n }\n /**\n * Switch the panning model to HRTF:\n * Renders a stereo output of higher quality than equalpower — it uses a convolution with measured impulse responses from human subjects.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-a-spatial-3d-sound\n */\n switchPanningModelToHRTF() {\n this._panningModel = \"HRTF\";\n this._switchPanningModel();\n }\n /**\n * Switch the panning model to Equal Power:\n * Represents the equal-power panning algorithm, generally regarded as simple and efficient. equalpower is the default value.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-a-spatial-3d-sound\n */\n switchPanningModelToEqualPower() {\n this._panningModel = \"equalpower\";\n this._switchPanningModel();\n }\n _switchPanningModel() {\n if (AbstractEngine.audioEngine?.canUseWebAudio && this._spatialSound && this._soundPanner) {\n this._soundPanner.panningModel = this._panningModel;\n }\n }\n /**\n * Connect this sound to a sound track audio node like gain...\n * @param soundTrackAudioNode the sound track audio node to connect to\n */\n connectToSoundTrackAudioNode(soundTrackAudioNode) {\n if (AbstractEngine.audioEngine?.canUseWebAudio && this._outputAudioNode) {\n if (this._isOutputConnected) {\n this._outputAudioNode.disconnect();\n }\n this._outputAudioNode.connect(soundTrackAudioNode);\n this._isOutputConnected = true;\n }\n }\n /**\n * Transform this sound into a directional source\n * @param coneInnerAngle Size of the inner cone in degree\n * @param coneOuterAngle Size of the outer cone in degree\n * @param coneOuterGain Volume of the sound outside the outer cone (between 0.0 and 1.0)\n */\n setDirectionalCone(coneInnerAngle, coneOuterAngle, coneOuterGain) {\n if (coneOuterAngle < coneInnerAngle) {\n Logger.Error(\"setDirectionalCone(): outer angle of the cone must be superior or equal to the inner angle.\");\n return;\n }\n this._coneInnerAngle = coneInnerAngle;\n this._coneOuterAngle = coneOuterAngle;\n this._coneOuterGain = coneOuterGain;\n this._isDirectional = true;\n if (this.isPlaying && this.loop) {\n this.stop();\n this.play(0, this._offset, this._length);\n }\n }\n /**\n * Gets or sets the inner angle for the directional cone.\n */\n get directionalConeInnerAngle() {\n return this._coneInnerAngle;\n }\n /**\n * Gets or sets the inner angle for the directional cone.\n */\n set directionalConeInnerAngle(value) {\n if (value != this._coneInnerAngle) {\n if (this._coneOuterAngle < value) {\n Logger.Error(\"directionalConeInnerAngle: outer angle of the cone must be superior or equal to the inner angle.\");\n return;\n }\n this._coneInnerAngle = value;\n if (AbstractEngine.audioEngine?.canUseWebAudio && this._spatialSound && this._soundPanner) {\n this._soundPanner.coneInnerAngle = this._coneInnerAngle;\n }\n }\n }\n /**\n * Gets or sets the outer angle for the directional cone.\n */\n get directionalConeOuterAngle() {\n return this._coneOuterAngle;\n }\n /**\n * Gets or sets the outer angle for the directional cone.\n */\n set directionalConeOuterAngle(value) {\n if (value != this._coneOuterAngle) {\n if (value < this._coneInnerAngle) {\n Logger.Error(\"directionalConeOuterAngle: outer angle of the cone must be superior or equal to the inner angle.\");\n return;\n }\n this._coneOuterAngle = value;\n if (AbstractEngine.audioEngine?.canUseWebAudio && this._spatialSound && this._soundPanner) {\n this._soundPanner.coneOuterAngle = this._coneOuterAngle;\n }\n }\n }\n /**\n * Sets the position of the emitter if spatial sound is enabled\n * @param newPosition Defines the new position\n */\n setPosition(newPosition) {\n if (newPosition.equals(this._position)) {\n return;\n }\n this._position.copyFrom(newPosition);\n if (AbstractEngine.audioEngine?.canUseWebAudio &&\n this._spatialSound &&\n this._soundPanner &&\n !isNaN(this._position.x) &&\n !isNaN(this._position.y) &&\n !isNaN(this._position.z)) {\n this._soundPanner.positionX.value = this._position.x;\n this._soundPanner.positionY.value = this._position.y;\n this._soundPanner.positionZ.value = this._position.z;\n }\n }\n /**\n * Sets the local direction of the emitter if spatial sound is enabled\n * @param newLocalDirection Defines the new local direction\n */\n setLocalDirectionToMesh(newLocalDirection) {\n this._localDirection = newLocalDirection;\n if (AbstractEngine.audioEngine?.canUseWebAudio && this._connectedTransformNode && this.isPlaying) {\n this._updateDirection();\n }\n }\n _updateDirection() {\n if (!this._connectedTransformNode || !this._soundPanner) {\n return;\n }\n const mat = this._connectedTransformNode.getWorldMatrix();\n const direction = Vector3.TransformNormal(this._localDirection, mat);\n direction.normalize();\n this._soundPanner.orientationX.value = direction.x;\n this._soundPanner.orientationY.value = direction.y;\n this._soundPanner.orientationZ.value = direction.z;\n }\n /** @internal */\n updateDistanceFromListener() {\n if (AbstractEngine.audioEngine?.canUseWebAudio && this._connectedTransformNode && this.useCustomAttenuation && this._soundGain && this._scene.activeCamera) {\n const distance = this._scene.audioListenerPositionProvider\n ? this._connectedTransformNode.position.subtract(this._scene.audioListenerPositionProvider()).length()\n : this._connectedTransformNode.getDistanceToCamera(this._scene.activeCamera);\n this._soundGain.gain.value = this._customAttenuationFunction(this._volume, distance, this.maxDistance, this.refDistance, this.rolloffFactor);\n }\n }\n /**\n * Sets a new custom attenuation function for the sound.\n * @param callback Defines the function used for the attenuation\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#creating-your-own-custom-attenuation-function\n */\n setAttenuationFunction(callback) {\n this._customAttenuationFunction = callback;\n }\n /**\n * Play the sound\n * @param time (optional) Start the sound after X seconds. Start immediately (0) by default.\n * @param offset (optional) Start the sound at a specific time in seconds\n * @param length (optional) Sound duration (in seconds)\n */\n play(time, offset, length) {\n if (this._isReadyToPlay && this._scene.audioEnabled && AbstractEngine.audioEngine?.audioContext) {\n try {\n this._clearTimeoutsAndObservers();\n let startTime = time ? AbstractEngine.audioEngine?.audioContext.currentTime + time : AbstractEngine.audioEngine?.audioContext.currentTime;\n if (!this._soundSource || !this._streamingSource) {\n if (this._spatialSound && this._soundPanner) {\n if (!isNaN(this._position.x) && !isNaN(this._position.y) && !isNaN(this._position.z)) {\n this._soundPanner.positionX.value = this._position.x;\n this._soundPanner.positionY.value = this._position.y;\n this._soundPanner.positionZ.value = this._position.z;\n }\n if (this._isDirectional) {\n this._soundPanner.coneInnerAngle = this._coneInnerAngle;\n this._soundPanner.coneOuterAngle = this._coneOuterAngle;\n this._soundPanner.coneOuterGain = this._coneOuterGain;\n if (this._connectedTransformNode) {\n this._updateDirection();\n }\n else {\n this._soundPanner.setOrientation(this._localDirection.x, this._localDirection.y, this._localDirection.z);\n }\n }\n }\n }\n if (this._streaming) {\n if (!this._streamingSource) {\n this._streamingSource = AbstractEngine.audioEngine.audioContext.createMediaElementSource(this._htmlAudioElement);\n this._htmlAudioElement.onended = () => {\n this._onended();\n };\n this._htmlAudioElement.playbackRate = this._playbackRate;\n }\n this._streamingSource.disconnect();\n if (this._inputAudioNode) {\n this._streamingSource.connect(this._inputAudioNode);\n }\n if (this._htmlAudioElement) {\n // required to manage properly the new suspended default state of Chrome\n // When the option 'streaming: true' is used, we need first to wait for\n // the audio engine to be unlocked by a user gesture before trying to play\n // an HTML Audio element\n const tryToPlay = () => {\n if (AbstractEngine.audioEngine?.unlocked) {\n const playPromise = this._htmlAudioElement.play();\n // In browsers that don’t yet support this functionality,\n // playPromise won’t be defined.\n if (playPromise !== undefined) {\n playPromise.catch(() => {\n // Automatic playback failed.\n // Waiting for the audio engine to be unlocked by user click on unmute\n AbstractEngine.audioEngine?.lock();\n if (this.loop || this.autoplay) {\n this._audioUnlockedObserver = AbstractEngine.audioEngine?.onAudioUnlockedObservable.addOnce(() => {\n tryToPlay();\n });\n }\n });\n }\n }\n else {\n if (this.loop || this.autoplay) {\n this._audioUnlockedObserver = AbstractEngine.audioEngine?.onAudioUnlockedObservable.addOnce(() => {\n tryToPlay();\n });\n }\n }\n };\n tryToPlay();\n }\n }\n else {\n const tryToPlay = () => {\n if (AbstractEngine.audioEngine?.audioContext) {\n length = length || this._length;\n if (offset !== undefined) {\n this._setOffset(offset);\n }\n if (this._soundSource) {\n const oldSource = this._soundSource;\n oldSource.onended = () => {\n oldSource.disconnect();\n };\n }\n this._soundSource = AbstractEngine.audioEngine?.audioContext.createBufferSource();\n if (this._soundSource && this._inputAudioNode) {\n this._soundSource.buffer = this._audioBuffer;\n this._soundSource.connect(this._inputAudioNode);\n this._soundSource.loop = this.loop;\n if (offset !== undefined) {\n this._soundSource.loopStart = offset;\n }\n if (length !== undefined) {\n this._soundSource.loopEnd = (offset | 0) + length;\n }\n this._soundSource.playbackRate.value = this._playbackRate;\n this._soundSource.onended = () => {\n this._onended();\n };\n startTime = time ? AbstractEngine.audioEngine?.audioContext.currentTime + time : AbstractEngine.audioEngine.audioContext.currentTime;\n const actualOffset = ((this.isPaused ? this.currentTime : 0) + (this._offset ?? 0)) % this._soundSource.buffer.duration;\n this._soundSource.start(startTime, actualOffset, this.loop ? undefined : length);\n }\n }\n };\n if (AbstractEngine.audioEngine?.audioContext.state === \"suspended\") {\n // Wait a bit for FF as context seems late to be ready.\n this._tryToPlayTimeout = setTimeout(() => {\n if (AbstractEngine.audioEngine?.audioContext.state === \"suspended\") {\n // Automatic playback failed.\n // Waiting for the audio engine to be unlocked by user click on unmute\n AbstractEngine.audioEngine.lock();\n if (this.loop || this.autoplay) {\n this._audioUnlockedObserver = AbstractEngine.audioEngine.onAudioUnlockedObservable.addOnce(() => {\n tryToPlay();\n });\n }\n }\n else {\n tryToPlay();\n }\n }, 500);\n }\n else {\n tryToPlay();\n }\n }\n this._startTime = startTime;\n this.isPlaying = true;\n this.isPaused = false;\n }\n catch (ex) {\n Logger.Error(\"Error while trying to play audio: \" + this.name + \", \" + ex.message);\n }\n }\n }\n _onended() {\n this.isPlaying = false;\n this._startTime = 0;\n this._currentTime = 0;\n if (this.onended) {\n this.onended();\n }\n this.onEndedObservable.notifyObservers(this);\n }\n /**\n * Stop the sound\n * @param time (optional) Stop the sound after X seconds. Stop immediately (0) by default.\n */\n stop(time) {\n if (this.isPlaying) {\n this._clearTimeoutsAndObservers();\n if (this._streaming) {\n if (this._htmlAudioElement) {\n this._htmlAudioElement.pause();\n // Test needed for Firefox or it will generate an Invalid State Error\n if (this._htmlAudioElement.currentTime > 0) {\n this._htmlAudioElement.currentTime = 0;\n }\n }\n else {\n this._streamingSource.disconnect();\n }\n this.isPlaying = false;\n }\n else if (AbstractEngine.audioEngine?.audioContext && this._soundSource) {\n const stopTime = time ? AbstractEngine.audioEngine.audioContext.currentTime + time : undefined;\n this._soundSource.onended = () => {\n this.isPlaying = false;\n this.isPaused = false;\n this._startTime = 0;\n this._currentTime = 0;\n if (this._soundSource) {\n this._soundSource.onended = () => void 0;\n }\n this._onended();\n };\n this._soundSource.stop(stopTime);\n }\n else {\n this.isPlaying = false;\n }\n }\n else if (this.isPaused) {\n this.isPaused = false;\n this._startTime = 0;\n this._currentTime = 0;\n }\n }\n /**\n * Put the sound in pause\n */\n pause() {\n if (this.isPlaying) {\n this._clearTimeoutsAndObservers();\n if (this._streaming) {\n if (this._htmlAudioElement) {\n this._htmlAudioElement.pause();\n }\n else {\n this._streamingSource.disconnect();\n }\n this.isPlaying = false;\n this.isPaused = true;\n }\n else if (AbstractEngine.audioEngine?.audioContext && this._soundSource) {\n this._soundSource.onended = () => void 0;\n this._soundSource.stop();\n this.isPlaying = false;\n this.isPaused = true;\n this._currentTime += AbstractEngine.audioEngine.audioContext.currentTime - this._startTime;\n }\n }\n }\n /**\n * Sets a dedicated volume for this sounds\n * @param newVolume Define the new volume of the sound\n * @param time Define time for gradual change to new volume\n */\n setVolume(newVolume, time) {\n if (AbstractEngine.audioEngine?.canUseWebAudio && this._soundGain) {\n if (time && AbstractEngine.audioEngine.audioContext) {\n this._soundGain.gain.cancelScheduledValues(AbstractEngine.audioEngine.audioContext.currentTime);\n this._soundGain.gain.setValueAtTime(this._soundGain.gain.value, AbstractEngine.audioEngine.audioContext.currentTime);\n this._soundGain.gain.linearRampToValueAtTime(newVolume, AbstractEngine.audioEngine.audioContext.currentTime + time);\n }\n else {\n this._soundGain.gain.value = newVolume;\n }\n }\n this._volume = newVolume;\n }\n /**\n * Set the sound play back rate\n * @param newPlaybackRate Define the playback rate the sound should be played at\n */\n setPlaybackRate(newPlaybackRate) {\n this._playbackRate = newPlaybackRate;\n if (this.isPlaying) {\n if (this._streaming && this._htmlAudioElement) {\n this._htmlAudioElement.playbackRate = this._playbackRate;\n }\n else if (this._soundSource) {\n this._soundSource.playbackRate.value = this._playbackRate;\n }\n }\n }\n /**\n * Gets the sound play back rate.\n * @returns the play back rate of the sound\n */\n getPlaybackRate() {\n return this._playbackRate;\n }\n /**\n * Gets the volume of the sound.\n * @returns the volume of the sound\n */\n getVolume() {\n return this._volume;\n }\n /**\n * Attach the sound to a dedicated mesh\n * @param transformNode The transform node to connect the sound with\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#attaching-a-sound-to-a-mesh\n */\n attachToMesh(transformNode) {\n if (this._connectedTransformNode && this._registerFunc) {\n this._connectedTransformNode.unregisterAfterWorldMatrixUpdate(this._registerFunc);\n this._registerFunc = null;\n }\n this._connectedTransformNode = transformNode;\n if (!this._spatialSound) {\n this._spatialSound = true;\n this._createSpatialParameters();\n if (this.isPlaying && this.loop) {\n this.stop();\n this.play(0, this._offset, this._length);\n }\n }\n this._onRegisterAfterWorldMatrixUpdate(this._connectedTransformNode);\n this._registerFunc = (transformNode) => this._onRegisterAfterWorldMatrixUpdate(transformNode);\n this._connectedTransformNode.registerAfterWorldMatrixUpdate(this._registerFunc);\n }\n /**\n * Detach the sound from the previously attached mesh\n * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic#attaching-a-sound-to-a-mesh\n */\n detachFromMesh() {\n if (this._connectedTransformNode && this._registerFunc) {\n this._connectedTransformNode.unregisterAfterWorldMatrixUpdate(this._registerFunc);\n this._registerFunc = null;\n this._connectedTransformNode = null;\n }\n }\n _onRegisterAfterWorldMatrixUpdate(node) {\n if (!node.getBoundingInfo) {\n this.setPosition(node.absolutePosition);\n }\n else {\n const mesh = node;\n const boundingInfo = mesh.getBoundingInfo();\n this.setPosition(boundingInfo.boundingSphere.centerWorld);\n }\n if (AbstractEngine.audioEngine?.canUseWebAudio && this._isDirectional && this.isPlaying) {\n this._updateDirection();\n }\n }\n /**\n * Clone the current sound in the scene.\n * @returns the new sound clone\n */\n clone() {\n if (!this._streaming) {\n const setBufferAndRun = () => {\n if (this._isReadyToPlay) {\n clonedSound._audioBuffer = this.getAudioBuffer();\n clonedSound._isReadyToPlay = true;\n if (clonedSound.autoplay) {\n clonedSound.play(0, this._offset, this._length);\n }\n }\n else {\n setTimeout(setBufferAndRun, 300);\n }\n };\n const currentOptions = {\n autoplay: this.autoplay,\n loop: this.loop,\n volume: this._volume,\n spatialSound: this._spatialSound,\n maxDistance: this.maxDistance,\n useCustomAttenuation: this.useCustomAttenuation,\n rolloffFactor: this.rolloffFactor,\n refDistance: this.refDistance,\n distanceModel: this.distanceModel,\n };\n const clonedSound = new Sound(this.name + \"_cloned\", new ArrayBuffer(0), this._scene, null, currentOptions);\n if (this.useCustomAttenuation) {\n clonedSound.setAttenuationFunction(this._customAttenuationFunction);\n }\n clonedSound.setPosition(this._position);\n clonedSound.setPlaybackRate(this._playbackRate);\n setBufferAndRun();\n return clonedSound;\n }\n // Can't clone a streaming sound\n else {\n return null;\n }\n }\n /**\n * Gets the current underlying audio buffer containing the data\n * @returns the audio buffer\n */\n getAudioBuffer() {\n return this._audioBuffer;\n }\n /**\n * Gets the WebAudio AudioBufferSourceNode, lets you keep track of and stop instances of this Sound.\n * @returns the source node\n */\n getSoundSource() {\n return this._soundSource;\n }\n /**\n * Gets the WebAudio GainNode, gives you precise control over the gain of instances of this Sound.\n * @returns the gain node\n */\n getSoundGain() {\n return this._soundGain;\n }\n /**\n * Serializes the Sound in a JSON representation\n * @returns the JSON representation of the sound\n */\n serialize() {\n const serializationObject = {\n name: this.name,\n url: this._url,\n autoplay: this.autoplay,\n loop: this.loop,\n volume: this._volume,\n spatialSound: this._spatialSound,\n maxDistance: this.maxDistance,\n rolloffFactor: this.rolloffFactor,\n refDistance: this.refDistance,\n distanceModel: this.distanceModel,\n playbackRate: this._playbackRate,\n panningModel: this._panningModel,\n soundTrackId: this.soundTrackId,\n metadata: this.metadata,\n };\n if (this._spatialSound) {\n if (this._connectedTransformNode) {\n serializationObject.connectedMeshId = this._connectedTransformNode.id;\n }\n serializationObject.position = this._position.asArray();\n serializationObject.refDistance = this.refDistance;\n serializationObject.distanceModel = this.distanceModel;\n serializationObject.isDirectional = this._isDirectional;\n serializationObject.localDirectionToMesh = this._localDirection.asArray();\n serializationObject.coneInnerAngle = this._coneInnerAngle;\n serializationObject.coneOuterAngle = this._coneOuterAngle;\n serializationObject.coneOuterGain = this._coneOuterGain;\n }\n return serializationObject;\n }\n /**\n * Parse a JSON representation of a sound to instantiate in a given scene\n * @param parsedSound Define the JSON representation of the sound (usually coming from the serialize method)\n * @param scene Define the scene the new parsed sound should be created in\n * @param rootUrl Define the rooturl of the load in case we need to fetch relative dependencies\n * @param sourceSound Define a sound place holder if do not need to instantiate a new one\n * @returns the newly parsed sound\n */\n static Parse(parsedSound, scene, rootUrl, sourceSound) {\n const soundName = parsedSound.name;\n let soundUrl;\n if (parsedSound.url) {\n soundUrl = rootUrl + parsedSound.url;\n }\n else {\n soundUrl = rootUrl + soundName;\n }\n const options = {\n autoplay: parsedSound.autoplay,\n loop: parsedSound.loop,\n volume: parsedSound.volume,\n spatialSound: parsedSound.spatialSound,\n maxDistance: parsedSound.maxDistance,\n rolloffFactor: parsedSound.rolloffFactor,\n refDistance: parsedSound.refDistance,\n distanceModel: parsedSound.distanceModel,\n playbackRate: parsedSound.playbackRate,\n };\n let newSound;\n if (!sourceSound) {\n newSound = new Sound(soundName, soundUrl, scene, () => {\n scene.removePendingData(newSound);\n }, options);\n scene.addPendingData(newSound);\n }\n else {\n const setBufferAndRun = () => {\n if (sourceSound._isReadyToPlay) {\n newSound._audioBuffer = sourceSound.getAudioBuffer();\n newSound._isReadyToPlay = true;\n if (newSound.autoplay) {\n newSound.play(0, newSound._offset, newSound._length);\n }\n }\n else {\n setTimeout(setBufferAndRun, 300);\n }\n };\n newSound = new Sound(soundName, new ArrayBuffer(0), scene, null, options);\n setBufferAndRun();\n }\n if (parsedSound.position) {\n const soundPosition = Vector3.FromArray(parsedSound.position);\n newSound.setPosition(soundPosition);\n }\n if (parsedSound.isDirectional) {\n newSound.setDirectionalCone(parsedSound.coneInnerAngle || 360, parsedSound.coneOuterAngle || 360, parsedSound.coneOuterGain || 0);\n if (parsedSound.localDirectionToMesh) {\n const localDirectionToMesh = Vector3.FromArray(parsedSound.localDirectionToMesh);\n newSound.setLocalDirectionToMesh(localDirectionToMesh);\n }\n }\n if (parsedSound.connectedMeshId) {\n const connectedMesh = scene.getMeshById(parsedSound.connectedMeshId);\n if (connectedMesh) {\n newSound.attachToMesh(connectedMesh);\n }\n }\n if (parsedSound.metadata) {\n newSound.metadata = parsedSound.metadata;\n }\n return newSound;\n }\n _setOffset(value) {\n if (this._offset === value) {\n return;\n }\n if (this.isPaused) {\n this.stop();\n this.isPaused = false;\n }\n this._offset = value;\n }\n _clearTimeoutsAndObservers() {\n if (this._tryToPlayTimeout) {\n clearTimeout(this._tryToPlayTimeout);\n this._tryToPlayTimeout = null;\n }\n if (this._audioUnlockedObserver) {\n AbstractEngine.audioEngine?.onAudioUnlockedObservable.remove(this._audioUnlockedObserver);\n this._audioUnlockedObserver = null;\n }\n }\n}\n/**\n * @internal\n */\nSound._SceneComponentInitialization = (_) => {\n throw _WarnImport(\"AudioSceneComponent\");\n};\n// Register Class Name\nRegisterClass(\"BABYLON.Sound\", Sound);\n//# sourceMappingURL=sound.js.map","import { Logger } from \"../Misc/logger\";\n/**\n * Wraps one or more Sound objects and selects one with random weight for playback.\n */\nexport class WeightedSound {\n /**\n * Creates a new WeightedSound from the list of sounds given.\n * @param loop When true a Sound will be selected and played when the current playing Sound completes.\n * @param sounds Array of Sounds that will be selected from.\n * @param weights Array of number values for selection weights; length must equal sounds, values will be normalized to 1\n */\n constructor(loop, sounds, weights) {\n /** When true a Sound will be selected and played when the current playing Sound completes. */\n this.loop = false;\n this._coneInnerAngle = 360;\n this._coneOuterAngle = 360;\n this._volume = 1;\n /** A Sound is currently playing. */\n this.isPlaying = false;\n /** A Sound is currently paused. */\n this.isPaused = false;\n this._sounds = [];\n this._weights = [];\n if (sounds.length !== weights.length) {\n throw new Error(\"Sounds length does not equal weights length\");\n }\n this.loop = loop;\n this._weights = weights;\n // Normalize the weights\n let weightSum = 0;\n for (const weight of weights) {\n weightSum += weight;\n }\n const invWeightSum = weightSum > 0 ? 1 / weightSum : 0;\n for (let i = 0; i < this._weights.length; i++) {\n this._weights[i] *= invWeightSum;\n }\n this._sounds = sounds;\n for (const sound of this._sounds) {\n sound.onEndedObservable.add(() => {\n this._onended();\n });\n }\n }\n /**\n * The size of cone in degrees for a directional sound in which there will be no attenuation.\n */\n get directionalConeInnerAngle() {\n return this._coneInnerAngle;\n }\n /**\n * The size of cone in degrees for a directional sound in which there will be no attenuation.\n */\n set directionalConeInnerAngle(value) {\n if (value !== this._coneInnerAngle) {\n if (this._coneOuterAngle < value) {\n Logger.Error(\"directionalConeInnerAngle: outer angle of the cone must be superior or equal to the inner angle.\");\n return;\n }\n this._coneInnerAngle = value;\n for (const sound of this._sounds) {\n sound.directionalConeInnerAngle = value;\n }\n }\n }\n /**\n * Size of cone in degrees for a directional sound outside of which there will be no sound.\n * Listener angles between innerAngle and outerAngle will falloff linearly.\n */\n get directionalConeOuterAngle() {\n return this._coneOuterAngle;\n }\n /**\n * Size of cone in degrees for a directional sound outside of which there will be no sound.\n * Listener angles between innerAngle and outerAngle will falloff linearly.\n */\n set directionalConeOuterAngle(value) {\n if (value !== this._coneOuterAngle) {\n if (value < this._coneInnerAngle) {\n Logger.Error(\"directionalConeOuterAngle: outer angle of the cone must be superior or equal to the inner angle.\");\n return;\n }\n this._coneOuterAngle = value;\n for (const sound of this._sounds) {\n sound.directionalConeOuterAngle = value;\n }\n }\n }\n /**\n * Playback volume.\n */\n get volume() {\n return this._volume;\n }\n /**\n * Playback volume.\n */\n set volume(value) {\n if (value !== this._volume) {\n for (const sound of this._sounds) {\n sound.setVolume(value);\n }\n }\n }\n _onended() {\n if (this._currentIndex !== undefined) {\n this._sounds[this._currentIndex].autoplay = false;\n }\n if (this.loop && this.isPlaying) {\n this.play();\n }\n else {\n this.isPlaying = false;\n }\n }\n /**\n * Suspend playback\n */\n pause() {\n this.isPaused = true;\n if (this._currentIndex !== undefined) {\n this._sounds[this._currentIndex].pause();\n }\n }\n /**\n * Stop playback\n */\n stop() {\n this.isPlaying = false;\n if (this._currentIndex !== undefined) {\n this._sounds[this._currentIndex].stop();\n }\n }\n /**\n * Start playback.\n * @param startOffset Position the clip head at a specific time in seconds.\n */\n play(startOffset) {\n if (!this.isPaused) {\n this.stop();\n const randomValue = Math.random();\n let total = 0;\n for (let i = 0; i < this._weights.length; i++) {\n total += this._weights[i];\n if (randomValue <= total) {\n this._currentIndex = i;\n break;\n }\n }\n }\n const sound = this._sounds[this._currentIndex];\n if (sound.isReady()) {\n sound.play(0, this.isPaused ? undefined : startOffset);\n }\n else {\n sound.autoplay = true;\n }\n this.isPlaying = true;\n this.isPaused = false;\n }\n}\n//# sourceMappingURL=weightedsound.js.map","import { Vector3 } from \"core/Maths/math.vector\";\nimport { Tools } from \"core/Misc/tools\";\nimport { AnimationEvent } from \"core/Animations/animationEvent\";\nimport { Sound } from \"core/Audio/sound\";\nimport { WeightedSound } from \"core/Audio/weightedsound\";\nimport { GLTFLoader, ArrayItem } from \"../glTFLoader\";\nimport { registerGLTFExtension, unregisterGLTFExtension } from \"../glTFLoaderExtensionRegistry\";\nconst NAME = \"MSFT_audio_emitter\";\n/**\n * [Specification](https://github.com/najadojo/glTF/blob/MSFT_audio_emitter/extensions/2.0/Vendor/MSFT_audio_emitter/README.md)\n * !!! Experimental Extension Subject to Changes !!!\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class MSFT_audio_emitter {\n /**\n * @internal\n */\n constructor(loader) {\n /**\n * The name of this extension.\n */\n this.name = NAME;\n this._loader = loader;\n this.enabled = this._loader.isExtensionUsed(NAME);\n }\n /** @internal */\n dispose() {\n this._loader = null;\n this._clips = null;\n this._emitters = null;\n }\n /** @internal */\n onLoading() {\n const extensions = this._loader.gltf.extensions;\n if (extensions && extensions[this.name]) {\n const extension = extensions[this.name];\n this._clips = extension.clips;\n this._emitters = extension.emitters;\n ArrayItem.Assign(this._clips);\n ArrayItem.Assign(this._emitters);\n }\n }\n /**\n * @internal\n */\n loadSceneAsync(context, scene) {\n return GLTFLoader.LoadExtensionAsync(context, scene, this.name, (extensionContext, extension) => {\n const promises = new Array();\n promises.push(this._loader.loadSceneAsync(context, scene));\n for (const emitterIndex of extension.emitters) {\n const emitter = ArrayItem.Get(`${extensionContext}/emitters`, this._emitters, emitterIndex);\n if (emitter.refDistance != undefined ||\n emitter.maxDistance != undefined ||\n emitter.rolloffFactor != undefined ||\n emitter.distanceModel != undefined ||\n emitter.innerAngle != undefined ||\n emitter.outerAngle != undefined) {\n throw new Error(`${extensionContext}: Direction or Distance properties are not allowed on emitters attached to a scene`);\n }\n promises.push(this._loadEmitterAsync(`${extensionContext}/emitters/${emitter.index}`, emitter));\n }\n return Promise.all(promises).then(() => { });\n });\n }\n /**\n * @internal\n */\n loadNodeAsync(context, node, assign) {\n return GLTFLoader.LoadExtensionAsync(context, node, this.name, (extensionContext, extension) => {\n const promises = new Array();\n return this._loader\n .loadNodeAsync(extensionContext, node, (babylonMesh) => {\n for (const emitterIndex of extension.emitters) {\n const emitter = ArrayItem.Get(`${extensionContext}/emitters`, this._emitters, emitterIndex);\n promises.push(this._loadEmitterAsync(`${extensionContext}/emitters/${emitter.index}`, emitter).then(() => {\n for (const sound of emitter._babylonSounds) {\n sound.attachToMesh(babylonMesh);\n if (emitter.innerAngle != undefined || emitter.outerAngle != undefined) {\n sound.setLocalDirectionToMesh(Vector3.Forward());\n sound.setDirectionalCone(2 * Tools.ToDegrees(emitter.innerAngle == undefined ? Math.PI : emitter.innerAngle), 2 * Tools.ToDegrees(emitter.outerAngle == undefined ? Math.PI : emitter.outerAngle), 0);\n }\n }\n }));\n }\n assign(babylonMesh);\n })\n .then((babylonMesh) => {\n return Promise.all(promises).then(() => {\n return babylonMesh;\n });\n });\n });\n }\n /**\n * @internal\n */\n loadAnimationAsync(context, animation) {\n return GLTFLoader.LoadExtensionAsync(context, animation, this.name, (extensionContext, extension) => {\n return this._loader.loadAnimationAsync(context, animation).then((babylonAnimationGroup) => {\n const promises = new Array();\n ArrayItem.Assign(extension.events);\n for (const event of extension.events) {\n promises.push(this._loadAnimationEventAsync(`${extensionContext}/events/${event.index}`, context, animation, event, babylonAnimationGroup));\n }\n return Promise.all(promises).then(() => {\n return babylonAnimationGroup;\n });\n });\n });\n }\n _loadClipAsync(context, clip) {\n if (clip._objectURL) {\n return clip._objectURL;\n }\n let promise;\n if (clip.uri) {\n promise = this._loader.loadUriAsync(context, clip, clip.uri);\n }\n else {\n const bufferView = ArrayItem.Get(`${context}/bufferView`, this._loader.gltf.bufferViews, clip.bufferView);\n promise = this._loader.loadBufferViewAsync(`/bufferViews/${bufferView.index}`, bufferView);\n }\n clip._objectURL = promise.then((data) => {\n return URL.createObjectURL(new Blob([data], { type: clip.mimeType }));\n });\n return clip._objectURL;\n }\n _loadEmitterAsync(context, emitter) {\n emitter._babylonSounds = emitter._babylonSounds || [];\n if (!emitter._babylonData) {\n const clipPromises = new Array();\n const name = emitter.name || `emitter${emitter.index}`;\n const options = {\n loop: false,\n autoplay: false,\n volume: emitter.volume == undefined ? 1 : emitter.volume,\n };\n for (let i = 0; i < emitter.clips.length; i++) {\n const clipContext = `/extensions/${this.name}/clips`;\n const clip = ArrayItem.Get(clipContext, this._clips, emitter.clips[i].clip);\n clipPromises.push(this._loadClipAsync(`${clipContext}/${emitter.clips[i].clip}`, clip).then((objectURL) => {\n const sound = (emitter._babylonSounds[i] = new Sound(name, objectURL, this._loader.babylonScene, null, options));\n sound.refDistance = emitter.refDistance || 1;\n sound.maxDistance = emitter.maxDistance || 256;\n sound.rolloffFactor = emitter.rolloffFactor || 1;\n sound.distanceModel = emitter.distanceModel || \"exponential\";\n }));\n }\n const promise = Promise.all(clipPromises).then(() => {\n const weights = emitter.clips.map((clip) => {\n return clip.weight || 1;\n });\n const weightedSound = new WeightedSound(emitter.loop || false, emitter._babylonSounds, weights);\n if (emitter.innerAngle) {\n weightedSound.directionalConeInnerAngle = 2 * Tools.ToDegrees(emitter.innerAngle);\n }\n if (emitter.outerAngle) {\n weightedSound.directionalConeOuterAngle = 2 * Tools.ToDegrees(emitter.outerAngle);\n }\n if (emitter.volume) {\n weightedSound.volume = emitter.volume;\n }\n emitter._babylonData.sound = weightedSound;\n });\n emitter._babylonData = {\n loaded: promise,\n };\n }\n return emitter._babylonData.loaded;\n }\n _getEventAction(context, sound, action, time, startOffset) {\n switch (action) {\n case \"play\" /* IMSFTAudioEmitter_AnimationEventAction.play */: {\n return (currentFrame) => {\n const frameOffset = (startOffset || 0) + (currentFrame - time);\n sound.play(frameOffset);\n };\n }\n case \"stop\" /* IMSFTAudioEmitter_AnimationEventAction.stop */: {\n return () => {\n sound.stop();\n };\n }\n case \"pause\" /* IMSFTAudioEmitter_AnimationEventAction.pause */: {\n return () => {\n sound.pause();\n };\n }\n default: {\n throw new Error(`${context}: Unsupported action ${action}`);\n }\n }\n }\n _loadAnimationEventAsync(context, animationContext, animation, event, babylonAnimationGroup) {\n if (babylonAnimationGroup.targetedAnimations.length == 0) {\n return Promise.resolve();\n }\n const babylonAnimation = babylonAnimationGroup.targetedAnimations[0];\n const emitterIndex = event.emitter;\n const emitter = ArrayItem.Get(`/extensions/${this.name}/emitters`, this._emitters, emitterIndex);\n return this._loadEmitterAsync(context, emitter).then(() => {\n const sound = emitter._babylonData.sound;\n if (sound) {\n const babylonAnimationEvent = new AnimationEvent(event.time, this._getEventAction(context, sound, event.action, event.time, event.startOffset));\n babylonAnimation.animation.addEvent(babylonAnimationEvent);\n // Make sure all started audio stops when this animation is terminated.\n babylonAnimationGroup.onAnimationGroupEndObservable.add(() => {\n sound.stop();\n });\n babylonAnimationGroup.onAnimationGroupPauseObservable.add(() => {\n sound.pause();\n });\n }\n });\n }\n}\nunregisterGLTFExtension(NAME);\nregisterGLTFExtension(NAME, true, (loader) => new MSFT_audio_emitter(loader));\n//# sourceMappingURL=MSFT_audio_emitter.js.map"],"names":[],"mappings":";;;;;;AAAA;AACA;AACA;AACO,MAAM,cAAc,CAAC;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,WAAW;AACf;AACA,IAAI,KAAK;AACT;AACA,IAAI,MAAM;AACV;AACA,IAAI,QAAQ,EAAE;AACd,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,QAAQ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AAC7B,QAAQ,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACjC;AACA;AACA;AACA,QAAQ,IAAI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K,EAAE;AACvB,gBAAgB,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AAChK,gBAAgB,gBAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAC3E;AACA,gBAAgB,qBAAqB,CAAC,6BAA6B,CAAC,GAAG,CAAC,MAAM;AAC9E,oBAAoB,KAAK,CAAC,IAAI,EAAE,CAAC;AACjC,iBAAiB,CAAC,CAAC;AACnB,gBAAgB,qBAAqB,CAAC,+BAA+B,CAAC,GAAG,CAAC,MAAM;AAChF,oBAAoB,KAAK,CAAC,KAAK,EAAE,CAAC;AAClC,iBAAiB,CAAC,CAAC;AACnB,aAAa;AACb,SAAS,CAAC,CAAC;AACX,KAAK;AACL,CAAC;AACD,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAC9B,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,KAAK,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;;;;"}
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { aq as Observable, aS as Deferred, ak as unregisterGLTFExtension, al as registerGLTFExtension } from './index-CTNAO7X0.esm.js';
|
|
2
|
+
import { GLTFLoader, ArrayItem } from './glTFLoader-DB7AOurF.esm.js';
|
|
3
|
+
import './rawTexture-DzCCPFKA.esm.js';
|
|
4
|
+
import './assetContainer-DVOdWL9b.esm.js';
|
|
5
|
+
import './glTFLoaderAnimation-DK5fvCTY.esm.js';
|
|
6
|
+
|
|
7
|
+
const NAME = "MSFT_lod";
|
|
8
|
+
/**
|
|
9
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/MSFT_lod/README.md)
|
|
10
|
+
*/
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
12
|
+
class MSFT_lod {
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
constructor(loader) {
|
|
17
|
+
/**
|
|
18
|
+
* The name of this extension.
|
|
19
|
+
*/
|
|
20
|
+
this.name = NAME;
|
|
21
|
+
/**
|
|
22
|
+
* Defines a number that determines the order the extensions are applied.
|
|
23
|
+
*/
|
|
24
|
+
this.order = 100;
|
|
25
|
+
/**
|
|
26
|
+
* Maximum number of LODs to load, starting from the lowest LOD.
|
|
27
|
+
*/
|
|
28
|
+
this.maxLODsToLoad = 10;
|
|
29
|
+
/**
|
|
30
|
+
* Observable raised when all node LODs of one level are loaded.
|
|
31
|
+
* The event data is the index of the loaded LOD starting from zero.
|
|
32
|
+
* Dispose the loader to cancel the loading of the next level of LODs.
|
|
33
|
+
*/
|
|
34
|
+
this.onNodeLODsLoadedObservable = new Observable();
|
|
35
|
+
/**
|
|
36
|
+
* Observable raised when all material LODs of one level are loaded.
|
|
37
|
+
* The event data is the index of the loaded LOD starting from zero.
|
|
38
|
+
* Dispose the loader to cancel the loading of the next level of LODs.
|
|
39
|
+
*/
|
|
40
|
+
this.onMaterialLODsLoadedObservable = new Observable();
|
|
41
|
+
this._bufferLODs = new Array();
|
|
42
|
+
this._nodeIndexLOD = null;
|
|
43
|
+
this._nodeSignalLODs = new Array();
|
|
44
|
+
this._nodePromiseLODs = new Array();
|
|
45
|
+
this._nodeBufferLODs = new Array();
|
|
46
|
+
this._materialIndexLOD = null;
|
|
47
|
+
this._materialSignalLODs = new Array();
|
|
48
|
+
this._materialPromiseLODs = new Array();
|
|
49
|
+
this._materialBufferLODs = new Array();
|
|
50
|
+
this._loader = loader;
|
|
51
|
+
// Options takes precedence. The maxLODsToLoad extension property is retained for back compat.
|
|
52
|
+
// For new extensions, they should only use options.
|
|
53
|
+
this.maxLODsToLoad = this._loader.parent.extensionOptions[NAME]?.maxLODsToLoad ?? this.maxLODsToLoad;
|
|
54
|
+
this.enabled = this._loader.isExtensionUsed(NAME);
|
|
55
|
+
}
|
|
56
|
+
/** @internal */
|
|
57
|
+
dispose() {
|
|
58
|
+
this._loader = null;
|
|
59
|
+
this._nodeIndexLOD = null;
|
|
60
|
+
this._nodeSignalLODs.length = 0;
|
|
61
|
+
this._nodePromiseLODs.length = 0;
|
|
62
|
+
this._nodeBufferLODs.length = 0;
|
|
63
|
+
this._materialIndexLOD = null;
|
|
64
|
+
this._materialSignalLODs.length = 0;
|
|
65
|
+
this._materialPromiseLODs.length = 0;
|
|
66
|
+
this._materialBufferLODs.length = 0;
|
|
67
|
+
this.onMaterialLODsLoadedObservable.clear();
|
|
68
|
+
this.onNodeLODsLoadedObservable.clear();
|
|
69
|
+
}
|
|
70
|
+
/** @internal */
|
|
71
|
+
onReady() {
|
|
72
|
+
for (let indexLOD = 0; indexLOD < this._nodePromiseLODs.length; indexLOD++) {
|
|
73
|
+
const promise = Promise.all(this._nodePromiseLODs[indexLOD]).then(() => {
|
|
74
|
+
if (indexLOD !== 0) {
|
|
75
|
+
this._loader.endPerformanceCounter(`Node LOD ${indexLOD}`);
|
|
76
|
+
this._loader.log(`Loaded node LOD ${indexLOD}`);
|
|
77
|
+
}
|
|
78
|
+
this.onNodeLODsLoadedObservable.notifyObservers(indexLOD);
|
|
79
|
+
if (indexLOD !== this._nodePromiseLODs.length - 1) {
|
|
80
|
+
this._loader.startPerformanceCounter(`Node LOD ${indexLOD + 1}`);
|
|
81
|
+
this._loadBufferLOD(this._nodeBufferLODs, indexLOD + 1);
|
|
82
|
+
if (this._nodeSignalLODs[indexLOD]) {
|
|
83
|
+
this._nodeSignalLODs[indexLOD].resolve();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
this._loader._completePromises.push(promise);
|
|
88
|
+
}
|
|
89
|
+
for (let indexLOD = 0; indexLOD < this._materialPromiseLODs.length; indexLOD++) {
|
|
90
|
+
const promise = Promise.all(this._materialPromiseLODs[indexLOD]).then(() => {
|
|
91
|
+
if (indexLOD !== 0) {
|
|
92
|
+
this._loader.endPerformanceCounter(`Material LOD ${indexLOD}`);
|
|
93
|
+
this._loader.log(`Loaded material LOD ${indexLOD}`);
|
|
94
|
+
}
|
|
95
|
+
this.onMaterialLODsLoadedObservable.notifyObservers(indexLOD);
|
|
96
|
+
if (indexLOD !== this._materialPromiseLODs.length - 1) {
|
|
97
|
+
this._loader.startPerformanceCounter(`Material LOD ${indexLOD + 1}`);
|
|
98
|
+
this._loadBufferLOD(this._materialBufferLODs, indexLOD + 1);
|
|
99
|
+
if (this._materialSignalLODs[indexLOD]) {
|
|
100
|
+
this._materialSignalLODs[indexLOD].resolve();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
this._loader._completePromises.push(promise);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
loadSceneAsync(context, scene) {
|
|
111
|
+
const promise = this._loader.loadSceneAsync(context, scene);
|
|
112
|
+
this._loadBufferLOD(this._bufferLODs, 0);
|
|
113
|
+
return promise;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
loadNodeAsync(context, node, assign) {
|
|
119
|
+
return GLTFLoader.LoadExtensionAsync(context, node, this.name, (extensionContext, extension) => {
|
|
120
|
+
let firstPromise;
|
|
121
|
+
const nodeLODs = this._getLODs(extensionContext, node, this._loader.gltf.nodes, extension.ids);
|
|
122
|
+
this._loader.logOpen(`${extensionContext}`);
|
|
123
|
+
for (let indexLOD = 0; indexLOD < nodeLODs.length; indexLOD++) {
|
|
124
|
+
const nodeLOD = nodeLODs[indexLOD];
|
|
125
|
+
if (indexLOD !== 0) {
|
|
126
|
+
this._nodeIndexLOD = indexLOD;
|
|
127
|
+
this._nodeSignalLODs[indexLOD] = this._nodeSignalLODs[indexLOD] || new Deferred();
|
|
128
|
+
}
|
|
129
|
+
const assignWrap = (babylonTransformNode) => {
|
|
130
|
+
assign(babylonTransformNode);
|
|
131
|
+
babylonTransformNode.setEnabled(false);
|
|
132
|
+
};
|
|
133
|
+
const promise = this._loader.loadNodeAsync(`/nodes/${nodeLOD.index}`, nodeLOD, assignWrap).then((babylonMesh) => {
|
|
134
|
+
if (indexLOD !== 0) {
|
|
135
|
+
// TODO: should not rely on _babylonTransformNode
|
|
136
|
+
const previousNodeLOD = nodeLODs[indexLOD - 1];
|
|
137
|
+
if (previousNodeLOD._babylonTransformNode) {
|
|
138
|
+
this._disposeTransformNode(previousNodeLOD._babylonTransformNode);
|
|
139
|
+
delete previousNodeLOD._babylonTransformNode;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
babylonMesh.setEnabled(true);
|
|
143
|
+
return babylonMesh;
|
|
144
|
+
});
|
|
145
|
+
this._nodePromiseLODs[indexLOD] = this._nodePromiseLODs[indexLOD] || [];
|
|
146
|
+
if (indexLOD === 0) {
|
|
147
|
+
firstPromise = promise;
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
this._nodeIndexLOD = null;
|
|
151
|
+
this._nodePromiseLODs[indexLOD].push(promise);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
this._loader.logClose();
|
|
155
|
+
return firstPromise;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
*/
|
|
161
|
+
_loadMaterialAsync(context, material, babylonMesh, babylonDrawMode, assign) {
|
|
162
|
+
// Don't load material LODs if already loading a node LOD.
|
|
163
|
+
if (this._nodeIndexLOD) {
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
return GLTFLoader.LoadExtensionAsync(context, material, this.name, (extensionContext, extension) => {
|
|
167
|
+
let firstPromise;
|
|
168
|
+
const materialLODs = this._getLODs(extensionContext, material, this._loader.gltf.materials, extension.ids);
|
|
169
|
+
this._loader.logOpen(`${extensionContext}`);
|
|
170
|
+
for (let indexLOD = 0; indexLOD < materialLODs.length; indexLOD++) {
|
|
171
|
+
const materialLOD = materialLODs[indexLOD];
|
|
172
|
+
if (indexLOD !== 0) {
|
|
173
|
+
this._materialIndexLOD = indexLOD;
|
|
174
|
+
}
|
|
175
|
+
const promise = this._loader
|
|
176
|
+
._loadMaterialAsync(`/materials/${materialLOD.index}`, materialLOD, babylonMesh, babylonDrawMode, (babylonMaterial) => {
|
|
177
|
+
if (indexLOD === 0) {
|
|
178
|
+
assign(babylonMaterial);
|
|
179
|
+
}
|
|
180
|
+
})
|
|
181
|
+
.then((babylonMaterial) => {
|
|
182
|
+
if (indexLOD !== 0) {
|
|
183
|
+
assign(babylonMaterial);
|
|
184
|
+
// TODO: should not rely on _data
|
|
185
|
+
const previousDataLOD = materialLODs[indexLOD - 1]._data;
|
|
186
|
+
if (previousDataLOD[babylonDrawMode]) {
|
|
187
|
+
this._disposeMaterials([previousDataLOD[babylonDrawMode].babylonMaterial]);
|
|
188
|
+
delete previousDataLOD[babylonDrawMode];
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return babylonMaterial;
|
|
192
|
+
});
|
|
193
|
+
this._materialPromiseLODs[indexLOD] = this._materialPromiseLODs[indexLOD] || [];
|
|
194
|
+
if (indexLOD === 0) {
|
|
195
|
+
firstPromise = promise;
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
this._materialIndexLOD = null;
|
|
199
|
+
this._materialPromiseLODs[indexLOD].push(promise);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
this._loader.logClose();
|
|
203
|
+
return firstPromise;
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @internal
|
|
208
|
+
*/
|
|
209
|
+
_loadUriAsync(context, property, uri) {
|
|
210
|
+
// Defer the loading of uris if loading a node or material LOD.
|
|
211
|
+
if (this._nodeIndexLOD !== null) {
|
|
212
|
+
this._loader.log(`deferred`);
|
|
213
|
+
const previousIndexLOD = this._nodeIndexLOD - 1;
|
|
214
|
+
this._nodeSignalLODs[previousIndexLOD] = this._nodeSignalLODs[previousIndexLOD] || new Deferred();
|
|
215
|
+
return this._nodeSignalLODs[this._nodeIndexLOD - 1].promise.then(() => {
|
|
216
|
+
return this._loader.loadUriAsync(context, property, uri);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
else if (this._materialIndexLOD !== null) {
|
|
220
|
+
this._loader.log(`deferred`);
|
|
221
|
+
const previousIndexLOD = this._materialIndexLOD - 1;
|
|
222
|
+
this._materialSignalLODs[previousIndexLOD] = this._materialSignalLODs[previousIndexLOD] || new Deferred();
|
|
223
|
+
return this._materialSignalLODs[previousIndexLOD].promise.then(() => {
|
|
224
|
+
return this._loader.loadUriAsync(context, property, uri);
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
return null;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @internal
|
|
231
|
+
*/
|
|
232
|
+
loadBufferAsync(context, buffer, byteOffset, byteLength) {
|
|
233
|
+
if (this._loader.parent.useRangeRequests && !buffer.uri) {
|
|
234
|
+
if (!this._loader.bin) {
|
|
235
|
+
throw new Error(`${context}: Uri is missing or the binary glTF is missing its binary chunk`);
|
|
236
|
+
}
|
|
237
|
+
const loadAsync = (bufferLODs, indexLOD) => {
|
|
238
|
+
const start = byteOffset;
|
|
239
|
+
const end = start + byteLength - 1;
|
|
240
|
+
let bufferLOD = bufferLODs[indexLOD];
|
|
241
|
+
if (bufferLOD) {
|
|
242
|
+
bufferLOD.start = Math.min(bufferLOD.start, start);
|
|
243
|
+
bufferLOD.end = Math.max(bufferLOD.end, end);
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
bufferLOD = { start: start, end: end, loaded: new Deferred() };
|
|
247
|
+
bufferLODs[indexLOD] = bufferLOD;
|
|
248
|
+
}
|
|
249
|
+
return bufferLOD.loaded.promise.then((data) => {
|
|
250
|
+
return new Uint8Array(data.buffer, data.byteOffset + byteOffset - bufferLOD.start, byteLength);
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
this._loader.log(`deferred`);
|
|
254
|
+
if (this._nodeIndexLOD !== null) {
|
|
255
|
+
return loadAsync(this._nodeBufferLODs, this._nodeIndexLOD);
|
|
256
|
+
}
|
|
257
|
+
else if (this._materialIndexLOD !== null) {
|
|
258
|
+
return loadAsync(this._materialBufferLODs, this._materialIndexLOD);
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
return loadAsync(this._bufferLODs, 0);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
_loadBufferLOD(bufferLODs, indexLOD) {
|
|
267
|
+
const bufferLOD = bufferLODs[indexLOD];
|
|
268
|
+
if (bufferLOD) {
|
|
269
|
+
this._loader.log(`Loading buffer range [${bufferLOD.start}-${bufferLOD.end}]`);
|
|
270
|
+
this._loader.bin.readAsync(bufferLOD.start, bufferLOD.end - bufferLOD.start + 1).then((data) => {
|
|
271
|
+
bufferLOD.loaded.resolve(data);
|
|
272
|
+
}, (error) => {
|
|
273
|
+
bufferLOD.loaded.reject(error);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* @returns an array of LOD properties from lowest to highest.
|
|
279
|
+
* @param context
|
|
280
|
+
* @param property
|
|
281
|
+
* @param array
|
|
282
|
+
* @param ids
|
|
283
|
+
*/
|
|
284
|
+
_getLODs(context, property, array, ids) {
|
|
285
|
+
if (this.maxLODsToLoad <= 0) {
|
|
286
|
+
throw new Error("maxLODsToLoad must be greater than zero");
|
|
287
|
+
}
|
|
288
|
+
const properties = [];
|
|
289
|
+
for (let i = ids.length - 1; i >= 0; i--) {
|
|
290
|
+
properties.push(ArrayItem.Get(`${context}/ids/${ids[i]}`, array, ids[i]));
|
|
291
|
+
if (properties.length === this.maxLODsToLoad) {
|
|
292
|
+
return properties;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
properties.push(property);
|
|
296
|
+
return properties;
|
|
297
|
+
}
|
|
298
|
+
_disposeTransformNode(babylonTransformNode) {
|
|
299
|
+
const babylonMaterials = [];
|
|
300
|
+
const babylonMaterial = babylonTransformNode.material;
|
|
301
|
+
if (babylonMaterial) {
|
|
302
|
+
babylonMaterials.push(babylonMaterial);
|
|
303
|
+
}
|
|
304
|
+
for (const babylonMesh of babylonTransformNode.getChildMeshes()) {
|
|
305
|
+
if (babylonMesh.material) {
|
|
306
|
+
babylonMaterials.push(babylonMesh.material);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
babylonTransformNode.dispose();
|
|
310
|
+
const babylonMaterialsToDispose = babylonMaterials.filter((babylonMaterial) => this._loader.babylonScene.meshes.every((mesh) => mesh.material != babylonMaterial));
|
|
311
|
+
this._disposeMaterials(babylonMaterialsToDispose);
|
|
312
|
+
}
|
|
313
|
+
_disposeMaterials(babylonMaterials) {
|
|
314
|
+
const babylonTextures = {};
|
|
315
|
+
for (const babylonMaterial of babylonMaterials) {
|
|
316
|
+
for (const babylonTexture of babylonMaterial.getActiveTextures()) {
|
|
317
|
+
babylonTextures[babylonTexture.uniqueId] = babylonTexture;
|
|
318
|
+
}
|
|
319
|
+
babylonMaterial.dispose();
|
|
320
|
+
}
|
|
321
|
+
for (const uniqueId in babylonTextures) {
|
|
322
|
+
for (const babylonMaterial of this._loader.babylonScene.materials) {
|
|
323
|
+
if (babylonMaterial.hasTexture(babylonTextures[uniqueId])) {
|
|
324
|
+
delete babylonTextures[uniqueId];
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
for (const uniqueId in babylonTextures) {
|
|
329
|
+
babylonTextures[uniqueId].dispose();
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
unregisterGLTFExtension(NAME);
|
|
334
|
+
registerGLTFExtension(NAME, true, (loader) => new MSFT_lod(loader));
|
|
335
|
+
|
|
336
|
+
export { MSFT_lod };
|
|
337
|
+
//# sourceMappingURL=MSFT_lod-Bql1icOF.esm.js.map
|