@babylonjs/viewer 7.32.0 → 7.32.2-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/photoStudio.env +0 -0
- package/dist/babylon-viewer.esm.js +2 -0
- package/dist/babylon-viewer.esm.js.map +1 -0
- package/dist/babylon-viewer.esm.min.js +2 -0
- package/dist/babylon-viewer.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-B8XTp4OG.esm.min.js +2 -0
- package/dist/chunks/EXT_lights_image_based-B8XTp4OG.esm.min.js.map +1 -0
- package/dist/chunks/EXT_lights_image_based-Cn6X_qPX.esm.js +171 -0
- package/dist/chunks/EXT_lights_image_based-Cn6X_qPX.esm.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BQupi_u8.esm.js +86 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-BQupi_u8.esm.js.map +1 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-P77mXzGh.esm.min.js +2 -0
- package/dist/chunks/EXT_mesh_gpu_instancing-P77mXzGh.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-CN4BZxFx.esm.min.js +2 -0
- package/dist/chunks/EXT_meshopt_compression-CN4BZxFx.esm.min.js.map +1 -0
- package/dist/chunks/EXT_meshopt_compression-DBNAENuf.esm.js +134 -0
- package/dist/chunks/EXT_meshopt_compression-DBNAENuf.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-Ba1Boarm.esm.js +44 -0
- package/dist/chunks/EXT_texture_avif-Ba1Boarm.esm.js.map +1 -0
- package/dist/chunks/EXT_texture_avif-DgFZYmUE.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_avif-DgFZYmUE.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-BSbq6mc4.esm.min.js +2 -0
- package/dist/chunks/EXT_texture_webp-BSbq6mc4.esm.min.js.map +1 -0
- package/dist/chunks/EXT_texture_webp-CbAIfJfh.esm.js +43 -0
- package/dist/chunks/EXT_texture_webp-CbAIfJfh.esm.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-DAtdIqs_.esm.min.js +2 -0
- package/dist/chunks/ExtrasAsMetadata-DAtdIqs_.esm.min.js.map +1 -0
- package/dist/chunks/ExtrasAsMetadata-DwbxK78V.esm.js +64 -0
- package/dist/chunks/ExtrasAsMetadata-DwbxK78V.esm.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-BrzMuRuS.esm.min.js +2 -0
- package/dist/chunks/KHR_animation_pointer-BrzMuRuS.esm.min.js.map +1 -0
- package/dist/chunks/KHR_animation_pointer-IQbL0SXa.esm.js +343 -0
- package/dist/chunks/KHR_animation_pointer-IQbL0SXa.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-BI4pFTmj.esm.js +610 -0
- package/dist/chunks/KHR_draco_mesh_compression-BI4pFTmj.esm.js.map +1 -0
- package/dist/chunks/KHR_draco_mesh_compression-BqeEEUyr.esm.min.js +2 -0
- package/dist/chunks/KHR_draco_mesh_compression-BqeEEUyr.esm.min.js.map +1 -0
- package/dist/chunks/KHR_interactivity-7PU7_8rJ.esm.js +4033 -0
- package/dist/chunks/KHR_interactivity-7PU7_8rJ.esm.js.map +1 -0
- package/dist/chunks/KHR_interactivity-B8rYAp1l.esm.min.js +2 -0
- package/dist/chunks/KHR_interactivity-B8rYAp1l.esm.min.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-CYofZCQz.esm.js +1253 -0
- package/dist/chunks/KHR_lights_punctual-CYofZCQz.esm.js.map +1 -0
- package/dist/chunks/KHR_lights_punctual-Cnt0HhZw.esm.min.js +2 -0
- package/dist/chunks/KHR_lights_punctual-Cnt0HhZw.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-BDC7dPN-.esm.js +64 -0
- package/dist/chunks/KHR_materials_anisotropy-BDC7dPN-.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_anisotropy-DM_m5Yjs.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_anisotropy-DM_m5Yjs.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-DoVQ60P-.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_clearcoat-DoVQ60P-.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_clearcoat-MHlTjFS2.esm.js +96 -0
- package/dist/chunks/KHR_materials_clearcoat-MHlTjFS2.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-B7zMKu49.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-B7zMKu49.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-BcNvWZh4.esm.js +97 -0
- package/dist/chunks/KHR_materials_diffuse_transmission-BcNvWZh4.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-FFkQywRJ.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_dispersion-FFkQywRJ.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_dispersion-sWtC0h0j.esm.js +62 -0
- package/dist/chunks/KHR_materials_dispersion-sWtC0h0j.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-B4L0HFx9.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_emissive_strength-B4L0HFx9.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_emissive_strength-DDMBvZiG.esm.js +55 -0
- package/dist/chunks/KHR_materials_emissive_strength-DDMBvZiG.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-Diwd_dqA.esm.js +64 -0
- package/dist/chunks/KHR_materials_ior-Diwd_dqA.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_ior-DoEfvoeZ.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_ior-DoEfvoeZ.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-CRoW_IKD.esm.js +72 -0
- package/dist/chunks/KHR_materials_iridescence-CRoW_IKD.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_iridescence-FEmiNfqM.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_iridescence-FEmiNfqM.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Ddfv63bg.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-Ddfv63bg.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-lWer6IfM.esm.js +81 -0
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-lWer6IfM.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-BLCLsfqA.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_sheen-BLCLsfqA.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_sheen-COIounpO.esm.js +85 -0
- package/dist/chunks/KHR_materials_sheen-COIounpO.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-BOiZHxPD.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_specular-BOiZHxPD.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_specular-CRl-ixUx.esm.js +75 -0
- package/dist/chunks/KHR_materials_specular-CRl-ixUx.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-B4Jmsl6v.esm.js +307 -0
- package/dist/chunks/KHR_materials_transmission-B4Jmsl6v.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_transmission-CdehwTmw.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_transmission-CdehwTmw.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-C8Jbefzz.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_unlit-C8Jbefzz.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_unlit-CuGh4Sro.esm.js +74 -0
- package/dist/chunks/KHR_materials_unlit-CuGh4Sro.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-B3tzzx3Z.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_variants-B3tzzx3Z.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_variants-m9IFz_jP.esm.js +238 -0
- package/dist/chunks/KHR_materials_variants-m9IFz_jP.esm.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-BdKeMwZN.esm.min.js +2 -0
- package/dist/chunks/KHR_materials_volume-BdKeMwZN.esm.min.js.map +1 -0
- package/dist/chunks/KHR_materials_volume-q16cGKmE.esm.js +87 -0
- package/dist/chunks/KHR_materials_volume-q16cGKmE.esm.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-CflASHQz.esm.js +26 -0
- package/dist/chunks/KHR_mesh_quantization-CflASHQz.esm.js.map +1 -0
- package/dist/chunks/KHR_mesh_quantization-DE0R59jl.esm.min.js +2 -0
- package/dist/chunks/KHR_mesh_quantization-DE0R59jl.esm.min.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-BgeE73Ze.esm.js +46 -0
- package/dist/chunks/KHR_node_visibility-BgeE73Ze.esm.js.map +1 -0
- package/dist/chunks/KHR_node_visibility-CgUTv_pA.esm.min.js +2 -0
- package/dist/chunks/KHR_node_visibility-CgUTv_pA.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-BJxEDjDa.esm.js +43 -0
- package/dist/chunks/KHR_texture_basisu-BJxEDjDa.esm.js.map +1 -0
- package/dist/chunks/KHR_texture_basisu-D_vniTdx.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_basisu-D_vniTdx.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-DK4I-ePv.esm.min.js +2 -0
- package/dist/chunks/KHR_texture_transform-DK4I-ePv.esm.min.js.map +1 -0
- package/dist/chunks/KHR_texture_transform-i6FxEJ49.esm.js +63 -0
- package/dist/chunks/KHR_texture_transform-i6FxEJ49.esm.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-BTsCWeul.esm.min.js +2 -0
- package/dist/chunks/KHR_xmp_json_ld-BTsCWeul.esm.min.js.map +1 -0
- package/dist/chunks/KHR_xmp_json_ld-VwwhEnSE.esm.js +51 -0
- package/dist/chunks/KHR_xmp_json_ld-VwwhEnSE.esm.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-BzjpetWN.esm.js +2207 -0
- package/dist/chunks/MSFT_audio_emitter-BzjpetWN.esm.js.map +1 -0
- package/dist/chunks/MSFT_audio_emitter-CdxHe61c.esm.min.js +2 -0
- package/dist/chunks/MSFT_audio_emitter-CdxHe61c.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_lod-BC54_cXM.esm.min.js +2 -0
- package/dist/chunks/MSFT_lod-BC54_cXM.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_lod-C5QkeJyT.esm.js +337 -0
- package/dist/chunks/MSFT_lod-C5QkeJyT.esm.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-CdiThw6g.esm.min.js +2 -0
- package/dist/chunks/MSFT_minecraftMesh-CdiThw6g.esm.min.js.map +1 -0
- package/dist/chunks/MSFT_minecraftMesh-DZQMyo0K.esm.js +46 -0
- package/dist/chunks/MSFT_minecraftMesh-DZQMyo0K.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-CHsSamBU.esm.js +47 -0
- package/dist/chunks/MSFT_sRGBFactors-CHsSamBU.esm.js.map +1 -0
- package/dist/chunks/MSFT_sRGBFactors-etYgpJk8.esm.min.js +2 -0
- package/dist/chunks/MSFT_sRGBFactors-etYgpJk8.esm.min.js.map +1 -0
- package/dist/chunks/animationGroup-C9p7Mo3_.esm.js +2479 -0
- package/dist/chunks/animationGroup-C9p7Mo3_.esm.js.map +1 -0
- package/dist/chunks/animationGroup-D5Hah2hW.esm.min.js +2 -0
- package/dist/chunks/animationGroup-D5Hah2hW.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-CRjDdlri.esm.min.js +2 -0
- package/dist/chunks/assetContainer-CRjDdlri.esm.min.js.map +1 -0
- package/dist/chunks/assetContainer-SZdZx0n2.esm.js +1720 -0
- package/dist/chunks/assetContainer-SZdZx0n2.esm.js.map +1 -0
- package/dist/chunks/audioEngine-DK2tZ5Tw.esm.min.js +2 -0
- package/dist/chunks/audioEngine-DK2tZ5Tw.esm.min.js.map +1 -0
- package/dist/chunks/audioEngine-o-Dk4NZp.esm.js +305 -0
- package/dist/chunks/audioEngine-o-Dk4NZp.esm.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-BYPqD9bj.esm.min.js +2 -0
- package/dist/chunks/bakedVertexAnimation-BYPqD9bj.esm.min.js.map +1 -0
- package/dist/chunks/bakedVertexAnimation-Ivk7DJxr.esm.js +119 -0
- package/dist/chunks/bakedVertexAnimation-Ivk7DJxr.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-CrqwzgU2.esm.js +600 -0
- package/dist/chunks/basisTextureLoader-CrqwzgU2.esm.js.map +1 -0
- package/dist/chunks/basisTextureLoader-Y-YmHEKn.esm.min.js +2 -0
- package/dist/chunks/basisTextureLoader-Y-YmHEKn.esm.min.js.map +1 -0
- package/dist/chunks/dds-BMdEUfkQ.esm.js +540 -0
- package/dist/chunks/dds-BMdEUfkQ.esm.js.map +1 -0
- package/dist/chunks/dds-DRxsrTQn.esm.min.js +2 -0
- package/dist/chunks/dds-DRxsrTQn.esm.min.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-BhnnJKmv.esm.min.js +2 -0
- package/dist/chunks/ddsTextureLoader-BhnnJKmv.esm.min.js.map +1 -0
- package/dist/chunks/ddsTextureLoader-C_c5qgII.esm.js +88 -0
- package/dist/chunks/ddsTextureLoader-C_c5qgII.esm.js.map +1 -0
- package/dist/chunks/decalFragment-9kal3cZr.esm.min.js +2 -0
- package/dist/chunks/decalFragment-9kal3cZr.esm.min.js.map +1 -0
- package/dist/chunks/decalFragment-XbvR5jRi.esm.js +18 -0
- package/dist/chunks/decalFragment-XbvR5jRi.esm.js.map +1 -0
- package/dist/chunks/default.fragment-1B_EQpt5.esm.js +431 -0
- package/dist/chunks/default.fragment-1B_EQpt5.esm.js.map +1 -0
- package/dist/chunks/default.fragment-BWNgomOd.esm.min.js +2 -0
- package/dist/chunks/default.fragment-BWNgomOd.esm.min.js.map +1 -0
- package/dist/chunks/default.fragment-BySLmyY3.esm.js +497 -0
- package/dist/chunks/default.fragment-BySLmyY3.esm.js.map +1 -0
- package/dist/chunks/default.fragment-C6EP4y61.esm.min.js +2 -0
- package/dist/chunks/default.fragment-C6EP4y61.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-BZOurTT8.esm.min.js +2 -0
- package/dist/chunks/default.vertex-BZOurTT8.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-CNOvpSlw.esm.min.js +2 -0
- package/dist/chunks/default.vertex-CNOvpSlw.esm.min.js.map +1 -0
- package/dist/chunks/default.vertex-DMbU-806.esm.js +201 -0
- package/dist/chunks/default.vertex-DMbU-806.esm.js.map +1 -0
- package/dist/chunks/default.vertex-DkvkQFLW.esm.js +179 -0
- package/dist/chunks/default.vertex-DkvkQFLW.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-1QfD2viD.esm.js +15 -0
- package/dist/chunks/defaultUboDeclaration-1QfD2viD.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-B0dW-uNE.esm.js +13 -0
- package/dist/chunks/defaultUboDeclaration-B0dW-uNE.esm.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-DbXpdWTF.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-DbXpdWTF.esm.min.js.map +1 -0
- package/dist/chunks/defaultUboDeclaration-Du_ftZpF.esm.min.js +2 -0
- package/dist/chunks/defaultUboDeclaration-Du_ftZpF.esm.min.js.map +1 -0
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +11 -0
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +1 -0
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +2 -0
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +1 -0
- package/dist/chunks/dumpTools-BnUSPfjX.esm.min.js +2 -0
- package/dist/chunks/dumpTools-BnUSPfjX.esm.min.js.map +1 -0
- package/dist/chunks/dumpTools-oxtb62yS.esm.js +200 -0
- package/dist/chunks/dumpTools-oxtb62yS.esm.js.map +1 -0
- package/dist/chunks/engine-BYlZ0Q0o.esm.min.js +2 -0
- package/dist/chunks/engine-BYlZ0Q0o.esm.min.js.map +1 -0
- package/dist/chunks/engine-Du6IYVDY.esm.js +2186 -0
- package/dist/chunks/engine-Du6IYVDY.esm.js.map +1 -0
- package/dist/chunks/engine.common-69ML5IDB.esm.js +1103 -0
- package/dist/chunks/engine.common-69ML5IDB.esm.js.map +1 -0
- package/dist/chunks/engine.common-BQrdCgvf.esm.min.js +2 -0
- package/dist/chunks/engine.common-BQrdCgvf.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-CsZTo2Wy.esm.min.js +2 -0
- package/dist/chunks/envTextureLoader-CsZTo2Wy.esm.min.js.map +1 -0
- package/dist/chunks/envTextureLoader-MMOqvZLE.esm.js +64 -0
- package/dist/chunks/envTextureLoader-MMOqvZLE.esm.js.map +1 -0
- package/dist/chunks/environmentTextureTools-CluF4s7s.esm.min.js +2 -0
- package/dist/chunks/environmentTextureTools-CluF4s7s.esm.min.js.map +1 -0
- package/dist/chunks/environmentTextureTools-DWL7GIG6.esm.js +382 -0
- package/dist/chunks/environmentTextureTools-DWL7GIG6.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-Bulzf2Vi.esm.js +1682 -0
- package/dist/chunks/exrTextureLoader-Bulzf2Vi.esm.js.map +1 -0
- package/dist/chunks/exrTextureLoader-D1aLz0F7.esm.min.js +2 -0
- package/dist/chunks/exrTextureLoader-D1aLz0F7.esm.min.js.map +1 -0
- package/dist/chunks/fogFragment-B9QhKWO-.esm.js +102 -0
- package/dist/chunks/fogFragment-B9QhKWO-.esm.js.map +1 -0
- package/dist/chunks/fogFragment-ClYT0wD2.esm.min.js +2 -0
- package/dist/chunks/fogFragment-ClYT0wD2.esm.min.js.map +1 -0
- package/dist/chunks/fresnelFunction-CUNQZX7C.esm.js +12 -0
- package/dist/chunks/fresnelFunction-CUNQZX7C.esm.js.map +1 -0
- package/dist/chunks/fresnelFunction-Tkxk4vij.esm.min.js +2 -0
- package/dist/chunks/fresnelFunction-Tkxk4vij.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoader-BCYl1-Xs.esm.min.js +2 -0
- package/dist/chunks/glTFLoader-BCYl1-Xs.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoader-CxE8gS1S.esm.js +7577 -0
- package/dist/chunks/glTFLoader-CxE8gS1S.esm.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-BmEAcvcD.esm.min.js +2 -0
- package/dist/chunks/glTFLoaderAnimation-BmEAcvcD.esm.min.js.map +1 -0
- package/dist/chunks/glTFLoaderAnimation-C1Vc4AI-.esm.js +77 -0
- package/dist/chunks/glTFLoaderAnimation-C1Vc4AI-.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-B2_wCQDl.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-B2_wCQDl.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-C4bM_5-u.esm.min.js +2 -0
- package/dist/chunks/harmonicsFunctions-C4bM_5-u.esm.min.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-DJuB_bU8.esm.js +34 -0
- package/dist/chunks/harmonicsFunctions-DJuB_bU8.esm.js.map +1 -0
- package/dist/chunks/harmonicsFunctions-nZyiYRoj.esm.js +35 -0
- package/dist/chunks/harmonicsFunctions-nZyiYRoj.esm.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-CaPDd4df.esm.min.js +2 -0
- package/dist/chunks/hdrTextureLoader-CaPDd4df.esm.min.js.map +1 -0
- package/dist/chunks/hdrTextureLoader-Mv_pKDM8.esm.js +252 -0
- package/dist/chunks/hdrTextureLoader-Mv_pKDM8.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-BbIoHEF4.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-BbIoHEF4.esm.min.js.map +1 -0
- package/dist/chunks/helperFunctions-CW0EgG0f.esm.js +108 -0
- package/dist/chunks/helperFunctions-CW0EgG0f.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-CrMCwBQm.esm.js +80 -0
- package/dist/chunks/helperFunctions-CrMCwBQm.esm.js.map +1 -0
- package/dist/chunks/helperFunctions-D4_yG-tx.esm.min.js +2 -0
- package/dist/chunks/helperFunctions-D4_yG-tx.esm.min.js.map +1 -0
- package/dist/chunks/index-DIS6_sGP.esm.min.js +57 -0
- package/dist/chunks/index-DIS6_sGP.esm.min.js.map +1 -0
- package/dist/chunks/index-DegvfR1d.esm.js +73103 -0
- package/dist/chunks/index-DegvfR1d.esm.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-DHEsWoDp.esm.min.js +2 -0
- package/dist/chunks/ktxTextureLoader-DHEsWoDp.esm.min.js.map +1 -0
- package/dist/chunks/ktxTextureLoader-KjWBQUy0.esm.js +814 -0
- package/dist/chunks/ktxTextureLoader-KjWBQUy0.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-CUEWdLWu.esm.js +20 -0
- package/dist/chunks/logDepthDeclaration-CUEWdLWu.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-DLUasWQA.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-DLUasWQA.esm.min.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-DiwHuSZs.esm.js +35 -0
- package/dist/chunks/logDepthDeclaration-DiwHuSZs.esm.js.map +1 -0
- package/dist/chunks/logDepthDeclaration-R_Bq0GVW.esm.min.js +2 -0
- package/dist/chunks/logDepthDeclaration-R_Bq0GVW.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-5QVLVdff.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-5QVLVdff.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-ArOJcEwo.esm.js +487 -0
- package/dist/chunks/logDepthVertex-ArOJcEwo.esm.js.map +1 -0
- package/dist/chunks/logDepthVertex-B-lEWXTv.esm.min.js +2 -0
- package/dist/chunks/logDepthVertex-B-lEWXTv.esm.min.js.map +1 -0
- package/dist/chunks/logDepthVertex-DO03rgqq.esm.js +77 -0
- package/dist/chunks/logDepthVertex-DO03rgqq.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-BYHZ5gZj.esm.js +11 -0
- package/dist/chunks/mainUVVaryingDeclaration-BYHZ5gZj.esm.js.map +1 -0
- package/dist/chunks/mainUVVaryingDeclaration-Ddzu0hSi.esm.min.js +2 -0
- package/dist/chunks/mainUVVaryingDeclaration-Ddzu0hSi.esm.min.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-BZtPU2_C.esm.js +24 -0
- package/dist/chunks/meshUboDeclaration-BZtPU2_C.esm.js.map +1 -0
- package/dist/chunks/meshUboDeclaration-CVOg8DLh.esm.min.js +2 -0
- package/dist/chunks/meshUboDeclaration-CVOg8DLh.esm.min.js.map +1 -0
- package/dist/chunks/objFileLoader-D5AG5SjI.esm.min.js +2 -0
- package/dist/chunks/objFileLoader-D5AG5SjI.esm.min.js.map +1 -0
- package/dist/chunks/objFileLoader-DSqJ7X_c.esm.js +1338 -0
- package/dist/chunks/objFileLoader-DSqJ7X_c.esm.js.map +1 -0
- package/dist/chunks/oitFragment-1qBMlrkO.esm.js +1210 -0
- package/dist/chunks/oitFragment-1qBMlrkO.esm.js.map +1 -0
- package/dist/chunks/oitFragment-DyHbil-l.esm.min.js +2 -0
- package/dist/chunks/oitFragment-DyHbil-l.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-RuwnOhoK.esm.min.js +2 -0
- package/dist/chunks/oitFragment-RuwnOhoK.esm.min.js.map +1 -0
- package/dist/chunks/oitFragment-fUe7CoIh.esm.js +1150 -0
- package/dist/chunks/oitFragment-fUe7CoIh.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-CuRI8fIc.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-CuRI8fIc.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-noJmYVIJ.esm.js +15 -0
- package/dist/chunks/pass.fragment-noJmYVIJ.esm.js.map +1 -0
- package/dist/chunks/pass.fragment-p-2v79IL.esm.min.js +2 -0
- package/dist/chunks/pass.fragment-p-2v79IL.esm.min.js.map +1 -0
- package/dist/chunks/pass.fragment-tk82sFJ6.esm.js +15 -0
- package/dist/chunks/pass.fragment-tk82sFJ6.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-0isM2RDO.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-0isM2RDO.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-CQwRKsPq.esm.min.js +2 -0
- package/dist/chunks/pbr.fragment-CQwRKsPq.esm.min.js.map +1 -0
- package/dist/chunks/pbr.fragment-Cv4B5N3E.esm.js +3218 -0
- package/dist/chunks/pbr.fragment-Cv4B5N3E.esm.js.map +1 -0
- package/dist/chunks/pbr.fragment-DZ1YXmvg.esm.js +3163 -0
- package/dist/chunks/pbr.fragment-DZ1YXmvg.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-AcwmuY8d.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-AcwmuY8d.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-B1zLwNyp.esm.js +212 -0
- package/dist/chunks/pbr.vertex-B1zLwNyp.esm.js.map +1 -0
- package/dist/chunks/pbr.vertex-BpME9KwH.esm.min.js +2 -0
- package/dist/chunks/pbr.vertex-BpME9KwH.esm.min.js.map +1 -0
- package/dist/chunks/pbr.vertex-CgwQ60xZ.esm.js +338 -0
- package/dist/chunks/pbr.vertex-CgwQ60xZ.esm.js.map +1 -0
- package/dist/chunks/postprocess.vertex-B48DQT9E.esm.min.js +2 -0
- package/dist/chunks/postprocess.vertex-B48DQT9E.esm.min.js.map +1 -0
- package/dist/chunks/postprocess.vertex-DSiTPZuW.esm.js +20 -0
- package/dist/chunks/postprocess.vertex-DSiTPZuW.esm.js.map +1 -0
- package/dist/chunks/rawTexture-BKLwf090.esm.min.js +2 -0
- package/dist/chunks/rawTexture-BKLwf090.esm.min.js.map +1 -0
- package/dist/chunks/rawTexture-CS4hH7c2.esm.js +191 -0
- package/dist/chunks/rawTexture-CS4hH7c2.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-0PGXB-wE.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-0PGXB-wE.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-B8Bthavq.esm.js +17 -0
- package/dist/chunks/rgbdDecode.fragment-B8Bthavq.esm.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-BwDybmQX.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-BwDybmQX.esm.min.js.map +1 -0
- package/dist/chunks/rgbdDecode.fragment-Cd4iOPoC.esm.min.js +2 -0
- package/dist/chunks/rgbdDecode.fragment-Cd4iOPoC.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-B3td7Zj3.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-B3td7Zj3.esm.min.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-BqLdz2Gh.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-BqLdz2Gh.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-DbbiR0ih.esm.js +17 -0
- package/dist/chunks/rgbdEncode.fragment-DbbiR0ih.esm.js.map +1 -0
- package/dist/chunks/rgbdEncode.fragment-p5xM-Kmh.esm.min.js +2 -0
- package/dist/chunks/rgbdEncode.fragment-p5xM-Kmh.esm.min.js.map +1 -0
- package/dist/chunks/splatFileLoader-Bi1lAWV_.esm.js +3807 -0
- package/dist/chunks/splatFileLoader-Bi1lAWV_.esm.js.map +1 -0
- package/dist/chunks/splatFileLoader-HMqfORk1.esm.min.js +2 -0
- package/dist/chunks/splatFileLoader-HMqfORk1.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-B3d66aQf.esm.min.js +2 -0
- package/dist/chunks/standardMaterial-B3d66aQf.esm.min.js.map +1 -0
- package/dist/chunks/standardMaterial-CbqZxPV-.esm.js +1805 -0
- package/dist/chunks/standardMaterial-CbqZxPV-.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-C2eJAljn.esm.js +238 -0
- package/dist/chunks/stlFileLoader-C2eJAljn.esm.js.map +1 -0
- package/dist/chunks/stlFileLoader-VIiW1Yx4.esm.min.js +2 -0
- package/dist/chunks/stlFileLoader-VIiW1Yx4.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-DDJcDDay.esm.min.js +2 -0
- package/dist/chunks/tgaTextureLoader-DDJcDDay.esm.min.js.map +1 -0
- package/dist/chunks/tgaTextureLoader-HZYgwONB.esm.js +349 -0
- package/dist/chunks/tgaTextureLoader-HZYgwONB.esm.js.map +1 -0
- package/dist/chunks/thinEngine-8mrkouPj.esm.js +3721 -0
- package/dist/chunks/thinEngine-8mrkouPj.esm.js.map +1 -0
- package/dist/chunks/thinEngine-B4fR3Csu.esm.min.js +2 -0
- package/dist/chunks/thinEngine-B4fR3Csu.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-BqfyuGPb.esm.min.js +2 -0
- package/dist/chunks/thinInstanceMesh-BqfyuGPb.esm.min.js.map +1 -0
- package/dist/chunks/thinInstanceMesh-CjbxVoTp.esm.js +314 -0
- package/dist/chunks/thinInstanceMesh-CjbxVoTp.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-BTUHCbUc.esm.js +527 -0
- package/dist/chunks/vertexColorMixing-BTUHCbUc.esm.js.map +1 -0
- package/dist/chunks/vertexColorMixing-DR08p7pm.esm.min.js +2 -0
- package/dist/chunks/vertexColorMixing-DR08p7pm.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-JntQDObR.esm.min.js +2 -0
- package/dist/chunks/webgpuEngine-JntQDObR.esm.min.js.map +1 -0
- package/dist/chunks/webgpuEngine-fcMywLYk.esm.js +11228 -0
- package/dist/chunks/webgpuEngine-fcMywLYk.esm.js.map +1 -0
- package/dist/chunks/workerPool-BUOov2K1.esm.js +122 -0
- package/dist/chunks/workerPool-BUOov2K1.esm.js.map +1 -0
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +2 -0
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +1 -0
- package/docs/ViewerDefault.jpg +0 -0
- package/docs/ViewerParts.jpg +0 -0
- package/docs/ViewerSlots.jpg +0 -0
- package/docs/ViewerStyled.jpg +0 -0
- package/lib/index.d.ts +372 -0
- package/lib/index.js +1312 -0
- package/lib/index.js.map +1 -0
- package/package.json +18 -27
- package/readme.md +145 -21
- package/configuration/configuration.d.ts +0 -107
- package/configuration/configuration.js +0 -16
- package/configuration/configuration.js.map +0 -1
- package/configuration/configurationCompatibility.d.ts +0 -8
- package/configuration/configurationCompatibility.js +0 -66
- package/configuration/configurationCompatibility.js.map +0 -1
- package/configuration/configurationContainer.d.ts +0 -10
- package/configuration/configurationContainer.js +0 -10
- package/configuration/configurationContainer.js.map +0 -1
- package/configuration/globals.d.ts +0 -6
- package/configuration/globals.js +0 -18
- package/configuration/globals.js.map +0 -1
- package/configuration/index.d.ts +0 -2
- package/configuration/index.js +0 -4
- package/configuration/index.js.map +0 -1
- package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
- package/configuration/interfaces/cameraConfiguration.js +0 -2
- package/configuration/interfaces/cameraConfiguration.js.map +0 -1
- package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
- package/configuration/interfaces/colorGradingConfiguration.js +0 -2
- package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
- package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
- package/configuration/interfaces/environmentMapConfiguration.js +0 -2
- package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
- package/configuration/interfaces/groundConfiguration.d.ts +0 -24
- package/configuration/interfaces/groundConfiguration.js +0 -2
- package/configuration/interfaces/groundConfiguration.js.map +0 -1
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
- package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
- package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
- package/configuration/interfaces/index.d.ts +0 -15
- package/configuration/interfaces/index.js +0 -16
- package/configuration/interfaces/index.js.map +0 -1
- package/configuration/interfaces/lightConfiguration.d.ts +0 -60
- package/configuration/interfaces/lightConfiguration.js +0 -2
- package/configuration/interfaces/lightConfiguration.js.map +0 -1
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
- package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
- package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
- package/configuration/interfaces/modelConfiguration.d.ts +0 -65
- package/configuration/interfaces/modelConfiguration.js +0 -2
- package/configuration/interfaces/modelConfiguration.js.map +0 -1
- package/configuration/interfaces/observersConfiguration.d.ts +0 -5
- package/configuration/interfaces/observersConfiguration.js +0 -2
- package/configuration/interfaces/observersConfiguration.js.map +0 -1
- package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
- package/configuration/interfaces/sceneConfiguration.js +0 -2
- package/configuration/interfaces/sceneConfiguration.js.map +0 -1
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
- package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
- package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
- package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
- package/configuration/interfaces/skyboxConfiguration.js +0 -2
- package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
- package/configuration/interfaces/templateConfiguration.d.ts +0 -67
- package/configuration/interfaces/templateConfiguration.js +0 -2
- package/configuration/interfaces/templateConfiguration.js.map +0 -1
- package/configuration/interfaces/vrConfiguration.d.ts +0 -16
- package/configuration/interfaces/vrConfiguration.js +0 -2
- package/configuration/interfaces/vrConfiguration.js.map +0 -1
- package/configuration/loader.d.ts +0 -4
- package/configuration/loader.js +0 -17
- package/configuration/loader.js.map +0 -1
- package/configuration/mappers.d.ts +0 -43
- package/configuration/mappers.js +0 -192
- package/configuration/mappers.js.map +0 -1
- package/configuration/renderOnlyLoader.d.ts +0 -33
- package/configuration/renderOnlyLoader.js +0 -162
- package/configuration/renderOnlyLoader.js.map +0 -1
- package/configuration/types/default.d.ts +0 -6
- package/configuration/types/default.js +0 -121
- package/configuration/types/default.js.map +0 -1
- package/configuration/types/environmentMap.d.ts +0 -5
- package/configuration/types/environmentMap.js +0 -14
- package/configuration/types/environmentMap.js.map +0 -1
- package/configuration/types/extended.d.ts +0 -6
- package/configuration/types/extended.js +0 -317
- package/configuration/types/extended.js.map +0 -1
- package/configuration/types/index.d.ts +0 -14
- package/configuration/types/index.js +0 -51
- package/configuration/types/index.js.map +0 -1
- package/configuration/types/minimal.d.ts +0 -6
- package/configuration/types/minimal.js +0 -43
- package/configuration/types/minimal.js.map +0 -1
- package/configuration/types/renderOnlyDefault.d.ts +0 -30
- package/configuration/types/renderOnlyDefault.js +0 -31
- package/configuration/types/renderOnlyDefault.js.map +0 -1
- package/configuration/types/shadowLight.d.ts +0 -9
- package/configuration/types/shadowLight.js +0 -64
- package/configuration/types/shadowLight.js.map +0 -1
- package/helper/index.d.ts +0 -29
- package/helper/index.js +0 -66
- package/helper/index.js.map +0 -1
- package/index.d.ts +0 -30
- package/index.js +0 -46
- package/index.js.map +0 -1
- package/initializer.d.ts +0 -11
- package/initializer.js +0 -35
- package/initializer.js.map +0 -1
- package/interfaces.d.ts +0 -5
- package/interfaces.js +0 -7
- package/interfaces.js.map +0 -1
- package/labs/environmentSerializer.d.ts +0 -126
- package/labs/environmentSerializer.js +0 -191
- package/labs/environmentSerializer.js.map +0 -1
- package/labs/texture.d.ts +0 -183
- package/labs/texture.js +0 -350
- package/labs/texture.js.map +0 -1
- package/labs/viewerLabs.d.ts +0 -51
- package/labs/viewerLabs.js +0 -134
- package/labs/viewerLabs.js.map +0 -1
- package/loader/modelLoader.d.ts +0 -56
- package/loader/modelLoader.js +0 -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 -672
- package/viewer/defaultViewer.js.map +0 -1
- package/viewer/renderOnlyViewer.d.ts +0 -9
- package/viewer/renderOnlyViewer.js +0 -46
- package/viewer/renderOnlyViewer.js.map +0 -1
- package/viewer/viewer.d.ts +0 -258
- package/viewer/viewer.js +0 -783
- package/viewer/viewer.js.map +0 -1
- package/viewer/viewerManager.d.ts +0 -58
- package/viewer/viewerManager.js +0 -91
- package/viewer/viewerManager.js.map +0 -1
- package/viewer/viewerWithTemplate.d.ts +0 -9
- package/viewer/viewerWithTemplate.js +0 -20
- package/viewer/viewerWithTemplate.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extended.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/types/extended.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,sCAAwB;AAExC;;;GAGG;AACH,MAAM,CAAC,IAAM,qBAAqB,GAAwB;IACtD,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE;QACJ,QAAQ,EAAE,QAAQ;QAClB,GAAG,EAAE,kBAAkB;QACvB,QAAQ,EAAE,GAAG;QACb,kBAAkB,EAAE,IAAI;QACxB,cAAc,EAAE,kBAAkB,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC;QAChD,cAAc,EAAE,CAAC,kBAAkB,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC;QACjD,SAAS,EAAE;YACP,OAAO,EAAE;gBACL,IAAI,EAAE,CAAC;gBACP,IAAI,EAAE,CAAC;gBACP,aAAa,EAAE,GAAG;gBAClB,gBAAgB,EAAE,kBAAkB;gBACpC,uBAAuB,EAAE,IAAI;gBAC7B,mBAAmB,EAAE,IAAI;gBACzB,WAAW,EAAE,GAAG;gBAChB,kBAAkB,EAAE,KAAK;gBACzB,WAAW,EAAE,KAAK;aACrB;YACD,UAAU,EAAE;gBACR,IAAI,EAAE,CAAC;gBACP,oBAAoB,EAAE,IAAI;gBAC1B,iBAAiB,EAAE,mBAAmB;gBACtC,sBAAsB,EAAE,IAAI;gBAC5B,kBAAkB,EAAE,KAAK;aAC5B;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,CAAC;gBACP,0BAA0B,EAAE,IAAI;gBAChC,0BAA0B,EAAE,CAAC,GAAG;aACnC;SACJ;QACD,gBAAgB,EAAE,CAAC;QACnB,gBAAgB,EAAE,GAAG;QACrB,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,kBAAkB;QACpC,eAAe,EAAE,kBAAkB;QACnC,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,MAAM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AAC;aACP;YACD,IAAI,EAAE,GAAG;YACT,cAAc,EAAE,CAAC;YACjB,UAAU,EAAE,CAAC;SAChB;QACD,aAAa,EAAE;YACX,OAAO,EAAE;gBACL,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP;YACD,IAAI,EAAE,GAAG;YACT,cAAc,EAAE,CAAC;YACjB,UAAU,EAAE,CAAC;SAChB;QACD,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;KACvB;IACD,cAAc,EAAE;QACZ,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,GAAG;QACd,SAAS,EAAE;YACP,CAAC,EAAE,kBAAkB;YACrB,CAAC,EAAE,kBAAkB;YACrB,CAAC,EAAE,kBAAkB;SACxB;KACJ;IACD,GAAG,EAAE;QACD,yBAAyB,EAAE;YACvB,YAAY,EAAE,IAAI;YAClB,cAAc,EAAE,GAAG;YACnB,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,IAAI;SACpB;KACJ;CACJ,CAAC","sourcesContent":["import type { ViewerConfiguration } from \"./../configuration\";\r\nimport { Tools } from \"core/Misc/tools\";\r\n\r\n/**\r\n * The viewer's \"extended\" configuration.\r\n * This configuration defines specific objects and parameters that we think make any model look good.\r\n */\r\nexport const extendedConfiguration: ViewerConfiguration = {\r\n version: \"3.2.0\",\r\n extends: \"default\",\r\n camera: {\r\n exposure: 3.034578,\r\n fov: 0.7853981633974483,\r\n contrast: 1.6,\r\n toneMappingEnabled: true,\r\n upperBetaLimit: 1.3962634015954636 + Math.PI / 2,\r\n lowerBetaLimit: -1.4835298641951802 + Math.PI / 2,\r\n behaviors: {\r\n framing: {\r\n type: 2,\r\n mode: 0,\r\n positionScale: 0.5,\r\n defaultElevation: 0.2617993877991494,\r\n elevationReturnWaitTime: 3000,\r\n elevationReturnTime: 2000,\r\n framingTime: 500,\r\n zoomStopsAnimation: false,\r\n radiusScale: 0.866,\r\n },\r\n autoRotate: {\r\n type: 0,\r\n idleRotationWaitTime: 4000,\r\n idleRotationSpeed: 0.17453292519943295,\r\n idleRotationSpinupTime: 2500,\r\n zoomStopsAnimation: false,\r\n },\r\n bouncing: {\r\n type: 1,\r\n lowerRadiusTransitionRange: 0.05,\r\n upperRadiusTransitionRange: -0.2,\r\n },\r\n },\r\n upperRadiusLimit: 5,\r\n lowerRadiusLimit: 0.5,\r\n frameOnModelLoad: true,\r\n framingElevation: 0.2617993877991494,\r\n framingRotation: 1.5707963267948966,\r\n radius: 2,\r\n alpha: 1.5708,\r\n beta: Math.PI * 0.5 - 0.2618,\r\n wheelPrecision: 300,\r\n minZ: 0.1,\r\n maxZ: 50,\r\n fovMode: 0,\r\n pinchPrecision: 1500,\r\n panningSensibility: 3000,\r\n },\r\n lights: {\r\n light0: {\r\n type: 0,\r\n frustumEdgeFalloff: 0,\r\n intensity: 7,\r\n intensityMode: 0,\r\n radius: 0.6,\r\n range: 4.4,\r\n spotAngle: 60,\r\n diffuse: {\r\n r: 1,\r\n g: 1,\r\n b: 1,\r\n },\r\n position: {\r\n x: -2,\r\n y: 2.5,\r\n z: 2,\r\n },\r\n target: {\r\n x: 0,\r\n y: 0,\r\n z: 0,\r\n },\r\n enabled: true,\r\n shadowEnabled: true,\r\n shadowBufferSize: 512,\r\n shadowMinZ: 1,\r\n shadowMaxZ: 10,\r\n shadowFieldOfView: 60,\r\n shadowFrustumSize: 2,\r\n shadowConfig: {\r\n useBlurCloseExponentialShadowMap: true,\r\n useKernelBlur: true,\r\n blurScale: 1.0,\r\n bias: 0.001,\r\n depthScale: 50 * (10 - 1),\r\n frustumEdgeFalloff: 0,\r\n },\r\n },\r\n light1: {\r\n type: 0,\r\n frustumEdgeFalloff: 0,\r\n intensity: 7,\r\n intensityMode: 0,\r\n radius: 0.4,\r\n range: 5.8,\r\n spotAngle: 57,\r\n diffuse: {\r\n r: 1,\r\n g: 1,\r\n b: 1,\r\n },\r\n position: {\r\n x: 4,\r\n y: 3,\r\n z: -0.5,\r\n },\r\n target: {\r\n x: 0,\r\n y: 0,\r\n z: 0,\r\n },\r\n enabled: true,\r\n shadowEnabled: false,\r\n shadowBufferSize: 512,\r\n shadowMinZ: 0.2,\r\n shadowMaxZ: 10,\r\n shadowFieldOfView: 28,\r\n shadowFrustumSize: 2,\r\n },\r\n light2: {\r\n type: 0,\r\n frustumEdgeFalloff: 0,\r\n intensity: 1,\r\n intensityMode: 0,\r\n radius: 0.5,\r\n range: 6,\r\n spotAngle: 42.85,\r\n diffuse: {\r\n r: 0.8,\r\n g: 0.8,\r\n b: 0.8,\r\n },\r\n position: {\r\n x: -1,\r\n y: 3,\r\n z: -3,\r\n },\r\n target: {\r\n x: 0,\r\n y: 0,\r\n z: 0,\r\n },\r\n enabled: true,\r\n shadowEnabled: false,\r\n shadowBufferSize: 512,\r\n shadowMinZ: 0.2,\r\n shadowMaxZ: 10,\r\n shadowFieldOfView: 45,\r\n shadowFrustumSize: 2,\r\n },\r\n },\r\n ground: {\r\n shadowLevel: 0.9,\r\n texture: \"Ground_2.0-1024.png\",\r\n material: {\r\n primaryColorHighlightLevel: 0.035,\r\n primaryColorShadowLevel: 0,\r\n enableNoise: true,\r\n useRGBColor: false,\r\n maxSimultaneousLights: 1,\r\n diffuseTexture: {\r\n gammaSpace: true,\r\n },\r\n },\r\n opacity: 1,\r\n mirror: false,\r\n receiveShadows: true,\r\n size: 5,\r\n },\r\n skybox: {\r\n scale: 11,\r\n cubeTexture: {\r\n url: \"Skybox_2.0-256.dds\",\r\n },\r\n material: {\r\n primaryColorHighlightLevel: 0.03,\r\n primaryColorShadowLevel: 0.03,\r\n enableNoise: true,\r\n useRGBColor: false,\r\n reflectionTexture: {\r\n gammaSpace: true,\r\n },\r\n },\r\n },\r\n engine: {\r\n renderInBackground: true,\r\n },\r\n scene: {\r\n flags: {\r\n shadowsEnabled: true,\r\n particlesEnabled: false,\r\n collisionsEnabled: false,\r\n lightsEnabled: true,\r\n texturesEnabled: true,\r\n lensFlaresEnabled: false,\r\n proceduralTexturesEnabled: false,\r\n renderTargetsEnabled: true,\r\n spritesEnabled: false,\r\n skeletonsEnabled: true,\r\n audioEnabled: false,\r\n },\r\n defaultMaterial: {\r\n materialType: \"pbr\",\r\n reflectivityColor: {\r\n r: 0.1,\r\n g: 0.1,\r\n b: 0.1,\r\n },\r\n microSurface: 0.6,\r\n },\r\n clearColor: {\r\n r: 0.9,\r\n g: 0.9,\r\n b: 0.9,\r\n a: 1.0,\r\n },\r\n imageProcessingConfiguration: {\r\n vignetteCenterX: 0,\r\n vignetteCenterY: 0,\r\n vignetteColor: {\r\n r: 0.086,\r\n g: 0.184,\r\n b: 0.259,\r\n a: 1,\r\n },\r\n vignetteWeight: 0.855,\r\n vignetteStretch: 0.5,\r\n vignetteBlendMode: 0,\r\n vignetteCameraFov: 0.7853981633974483,\r\n isEnabled: true,\r\n colorCurves: {\r\n shadowsHue: 0,\r\n shadowsDensity: 0,\r\n shadowsSaturation: 0,\r\n shadowsExposure: 0,\r\n midtonesHue: 0,\r\n midtonesDensity: 0,\r\n midtonesExposure: 0,\r\n midtonesSaturation: 0,\r\n highlightsHue: 0,\r\n highlightsDensity: 0,\r\n highlightsExposure: 0,\r\n highlightsSaturation: 0,\r\n },\r\n },\r\n assetsRootURL: \"https://viewer.babylonjs.com/assets/environment/\",\r\n },\r\n loaderPlugins: {\r\n extendedMaterial: true,\r\n applyMaterialConfig: true,\r\n msftLod: true,\r\n telemetry: true,\r\n },\r\n model: {\r\n rotationOffsetAxis: {\r\n x: 0,\r\n y: -1,\r\n z: 0,\r\n },\r\n rotationOffsetAngle: Tools.ToRadians(210),\r\n material: {\r\n directEnabled: true,\r\n directIntensity: 0.884,\r\n emissiveIntensity: 1.04,\r\n environmentIntensity: 0.6,\r\n },\r\n entryAnimation: {\r\n scaling: {\r\n x: 0,\r\n y: 0,\r\n z: 0,\r\n },\r\n time: 0.5,\r\n easingFunction: 4,\r\n easingMode: 1,\r\n },\r\n exitAnimation: {\r\n scaling: {\r\n x: 0,\r\n y: 0,\r\n z: 0,\r\n },\r\n time: 0.5,\r\n easingFunction: 4,\r\n easingMode: 1,\r\n },\r\n normalize: true,\r\n castShadow: true,\r\n receiveShadows: true,\r\n },\r\n environmentMap: {\r\n texture: \"EnvMap_3.0-256.env\",\r\n rotationY: 3,\r\n tintLevel: 0.4,\r\n mainColor: {\r\n r: 0.8823529411764706,\r\n g: 0.8823529411764706,\r\n b: 0.8823529411764706,\r\n },\r\n },\r\n lab: {\r\n defaultRenderingPipelines: {\r\n bloomEnabled: true,\r\n bloomThreshold: 1.0,\r\n fxaaEnabled: true,\r\n bloomWeight: 0.05,\r\n },\r\n },\r\n};\r\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { minimalConfiguration } from "./minimal";
|
|
2
|
-
import { defaultConfiguration } from "./default";
|
|
3
|
-
import type { ViewerConfiguration } from "../configuration";
|
|
4
|
-
/**
|
|
5
|
-
* Get the configuration type you need to use as the base for your viewer.
|
|
6
|
-
* The types can either be a single string, or comma separated types that will extend each other. for example:
|
|
7
|
-
*
|
|
8
|
-
* "default, environmentMap" will first load the default configuration and will extend it using the environmentMap configuration.
|
|
9
|
-
*
|
|
10
|
-
* @param types a comma-separated string of the type(s) or configuration to load.
|
|
11
|
-
* @returns the configuration object
|
|
12
|
-
*/
|
|
13
|
-
declare const getConfigurationType: (types: string) => ViewerConfiguration;
|
|
14
|
-
export { getConfigurationType, defaultConfiguration, minimalConfiguration };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { minimalConfiguration } from "./minimal.js";
|
|
2
|
-
import { defaultConfiguration } from "./default.js";
|
|
3
|
-
import { extendedConfiguration } from "./extended.js";
|
|
4
|
-
import { shadowDirectionalLightConfiguration, shadowSpotlLightConfiguration } from "./shadowLight.js";
|
|
5
|
-
import { environmentMapConfiguration } from "./environmentMap.js";
|
|
6
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
7
|
-
import { deepmerge } from "../../helper/index.js";
|
|
8
|
-
/**
|
|
9
|
-
* Get the configuration type you need to use as the base for your viewer.
|
|
10
|
-
* The types can either be a single string, or comma separated types that will extend each other. for example:
|
|
11
|
-
*
|
|
12
|
-
* "default, environmentMap" will first load the default configuration and will extend it using the environmentMap configuration.
|
|
13
|
-
*
|
|
14
|
-
* @param types a comma-separated string of the type(s) or configuration to load.
|
|
15
|
-
* @returns the configuration object
|
|
16
|
-
*/
|
|
17
|
-
var getConfigurationType = function (types) {
|
|
18
|
-
var config = {};
|
|
19
|
-
var typesSeparated = types.split(",");
|
|
20
|
-
typesSeparated.forEach(function (type) {
|
|
21
|
-
switch (type.trim()) {
|
|
22
|
-
case "environmentMap":
|
|
23
|
-
config = deepmerge(config, environmentMapConfiguration);
|
|
24
|
-
break;
|
|
25
|
-
case "shadowDirectionalLight":
|
|
26
|
-
config = deepmerge(config, shadowDirectionalLightConfiguration);
|
|
27
|
-
break;
|
|
28
|
-
case "shadowSpotLight":
|
|
29
|
-
config = deepmerge(config, shadowSpotlLightConfiguration);
|
|
30
|
-
break;
|
|
31
|
-
case "default":
|
|
32
|
-
config = deepmerge(config, defaultConfiguration);
|
|
33
|
-
break;
|
|
34
|
-
case "minimal":
|
|
35
|
-
config = deepmerge(config, minimalConfiguration);
|
|
36
|
-
break;
|
|
37
|
-
case "none":
|
|
38
|
-
break;
|
|
39
|
-
case "extended":
|
|
40
|
-
default:
|
|
41
|
-
config = deepmerge(config, extendedConfiguration);
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
if (config.extends) {
|
|
45
|
-
config = deepmerge(config, getConfigurationType(config.extends));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
return config;
|
|
49
|
-
};
|
|
50
|
-
export { getConfigurationType, defaultConfiguration, minimalConfiguration };
|
|
51
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":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;gBAClD,MAAM;SACb;QAED,IAAI,MAAM,CAAC,OAAO,EAAE;YAChB,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;SACpE;IACL,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["import { minimalConfiguration } from \"./minimal\";\r\nimport { defaultConfiguration } from \"./default\";\r\nimport { extendedConfiguration } from \"./extended\";\r\nimport type { ViewerConfiguration } from \"../configuration\";\r\nimport { shadowDirectionalLightConfiguration, shadowSpotlLightConfiguration } from \"./shadowLight\";\r\nimport { environmentMapConfiguration } from \"./environmentMap\";\r\n// eslint-disable-next-line import/no-internal-modules\r\nimport { deepmerge } from \"../../helper/index\";\r\n\r\n/**\r\n * Get the configuration type you need to use as the base for your viewer.\r\n * The types can either be a single string, or comma separated types that will extend each other. for example:\r\n *\r\n * \"default, environmentMap\" will first load the default configuration and will extend it using the environmentMap configuration.\r\n *\r\n * @param types a comma-separated string of the type(s) or configuration to load.\r\n * @returns the configuration object\r\n */\r\nconst getConfigurationType = function (types: string): ViewerConfiguration {\r\n let config: ViewerConfiguration = {};\r\n const typesSeparated = types.split(\",\");\r\n typesSeparated.forEach((type) => {\r\n switch (type.trim()) {\r\n case \"environmentMap\":\r\n config = deepmerge(config, environmentMapConfiguration);\r\n break;\r\n case \"shadowDirectionalLight\":\r\n config = deepmerge(config, shadowDirectionalLightConfiguration);\r\n break;\r\n case \"shadowSpotLight\":\r\n config = deepmerge(config, shadowSpotlLightConfiguration);\r\n break;\r\n case \"default\":\r\n config = deepmerge(config, defaultConfiguration);\r\n break;\r\n case \"minimal\":\r\n config = deepmerge(config, minimalConfiguration);\r\n break;\r\n case \"none\":\r\n break;\r\n case \"extended\":\r\n default:\r\n config = deepmerge(config, extendedConfiguration);\r\n break;\r\n }\r\n\r\n if (config.extends) {\r\n config = deepmerge(config, getConfigurationType(config.extends));\r\n }\r\n });\r\n return config;\r\n};\r\n\r\nexport { getConfigurationType, defaultConfiguration, minimalConfiguration };\r\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ViewerConfiguration } from "./../configuration";
|
|
2
|
-
/**
|
|
3
|
-
* The minimal configuration needed to make the viewer work.
|
|
4
|
-
* Some functionalities might not work correctly (like fill-screen)
|
|
5
|
-
*/
|
|
6
|
-
export declare const minimalConfiguration: ViewerConfiguration;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defaultTemplate, fillContainer, loadingScreen, defaultViewer, overlay, error, loading, close } from "babylonjs-viewer-assets";
|
|
2
|
-
/**
|
|
3
|
-
* The minimal configuration needed to make the viewer work.
|
|
4
|
-
* Some functionalities might not work correctly (like fill-screen)
|
|
5
|
-
*/
|
|
6
|
-
export var minimalConfiguration = {
|
|
7
|
-
version: "0.1",
|
|
8
|
-
templates: {
|
|
9
|
-
main: {
|
|
10
|
-
html: defaultTemplate,
|
|
11
|
-
},
|
|
12
|
-
fillContainer: {
|
|
13
|
-
html: fillContainer,
|
|
14
|
-
params: {
|
|
15
|
-
disable: false,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
loadingScreen: {
|
|
19
|
-
html: loadingScreen,
|
|
20
|
-
params: {
|
|
21
|
-
backgroundColor: "#000000",
|
|
22
|
-
loadingImage: loading,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
viewer: {
|
|
26
|
-
html: defaultViewer,
|
|
27
|
-
},
|
|
28
|
-
overlay: {
|
|
29
|
-
html: overlay,
|
|
30
|
-
params: {
|
|
31
|
-
closeImage: close,
|
|
32
|
-
closeText: "Close",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
error: {
|
|
36
|
-
html: error,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
engine: {
|
|
40
|
-
antialiasing: true,
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=minimal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"minimal.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/types/minimal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEvI;;;GAGG;AACH,MAAM,CAAC,IAAM,oBAAoB,GAAwB;IACrD,OAAO,EAAE,KAAK;IACd,SAAS,EAAE;QACP,IAAI,EAAE;YACF,IAAI,EAAE,eAAe;SACxB;QACD,aAAa,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE;gBACJ,OAAO,EAAE,KAAK;aACjB;SACJ;QACD,aAAa,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE;gBACJ,eAAe,EAAE,SAAS;gBAC1B,YAAY,EAAE,OAAO;aACxB;SACJ;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,aAAa;SACtB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,OAAO;YACb,MAAM,EAAE;gBACJ,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,OAAO;aACrB;SACJ;QACD,KAAK,EAAE;YACH,IAAI,EAAE,KAAK;SACd;KACJ;IACD,MAAM,EAAE;QACJ,YAAY,EAAE,IAAI;KACrB;CACJ,CAAC","sourcesContent":["import type { ViewerConfiguration } from \"./../configuration\";\r\nimport { defaultTemplate, fillContainer, loadingScreen, defaultViewer, overlay, error, loading, close } from \"babylonjs-viewer-assets\";\r\n\r\n/**\r\n * The minimal configuration needed to make the viewer work.\r\n * Some functionalities might not work correctly (like fill-screen)\r\n */\r\nexport const minimalConfiguration: ViewerConfiguration = {\r\n version: \"0.1\",\r\n templates: {\r\n main: {\r\n html: defaultTemplate,\r\n },\r\n fillContainer: {\r\n html: fillContainer,\r\n params: {\r\n disable: false,\r\n },\r\n },\r\n loadingScreen: {\r\n html: loadingScreen,\r\n params: {\r\n backgroundColor: \"#000000\",\r\n loadingImage: loading,\r\n },\r\n },\r\n viewer: {\r\n html: defaultViewer,\r\n },\r\n overlay: {\r\n html: overlay,\r\n params: {\r\n closeImage: close,\r\n closeText: \"Close\",\r\n },\r\n },\r\n error: {\r\n html: error,\r\n },\r\n },\r\n engine: {\r\n antialiasing: true,\r\n },\r\n};\r\n"]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The render only default configuration of the viewer, including templates (canvas, overly, loading screen)
|
|
3
|
-
* This configuration doesn't hold specific parameters, and only defines objects that are needed for the render only viewer viewer to fully work correctly.
|
|
4
|
-
*/
|
|
5
|
-
export declare const renderOnlyDefaultConfiguration: {
|
|
6
|
-
version: string;
|
|
7
|
-
camera: {
|
|
8
|
-
behaviors: {
|
|
9
|
-
autoRotate: {
|
|
10
|
-
type: number;
|
|
11
|
-
};
|
|
12
|
-
framing: {
|
|
13
|
-
type: number;
|
|
14
|
-
zoomOnBoundingInfo: boolean;
|
|
15
|
-
zoomStopsAnimation: boolean;
|
|
16
|
-
};
|
|
17
|
-
bouncing: {
|
|
18
|
-
type: number;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
skybox: {};
|
|
23
|
-
ground: {
|
|
24
|
-
receiveShadows: boolean;
|
|
25
|
-
};
|
|
26
|
-
engine: {
|
|
27
|
-
antialiasing: boolean;
|
|
28
|
-
};
|
|
29
|
-
scene: {};
|
|
30
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The render only default configuration of the viewer, including templates (canvas, overly, loading screen)
|
|
3
|
-
* This configuration doesn't hold specific parameters, and only defines objects that are needed for the render only viewer viewer to fully work correctly.
|
|
4
|
-
*/
|
|
5
|
-
export var renderOnlyDefaultConfiguration = {
|
|
6
|
-
version: "3.2.0-alpha4",
|
|
7
|
-
camera: {
|
|
8
|
-
behaviors: {
|
|
9
|
-
autoRotate: {
|
|
10
|
-
type: 0,
|
|
11
|
-
},
|
|
12
|
-
framing: {
|
|
13
|
-
type: 2,
|
|
14
|
-
zoomOnBoundingInfo: true,
|
|
15
|
-
zoomStopsAnimation: false,
|
|
16
|
-
},
|
|
17
|
-
bouncing: {
|
|
18
|
-
type: 1,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
skybox: {},
|
|
23
|
-
ground: {
|
|
24
|
-
receiveShadows: true,
|
|
25
|
-
},
|
|
26
|
-
engine: {
|
|
27
|
-
antialiasing: true,
|
|
28
|
-
},
|
|
29
|
-
scene: {},
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=renderOnlyDefault.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderOnlyDefault.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/types/renderOnlyDefault.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,IAAM,8BAA8B,GAAG;IAC1C,OAAO,EAAE,cAAc;IACvB,MAAM,EAAE;QACJ,SAAS,EAAE;YACP,UAAU,EAAE;gBACR,IAAI,EAAE,CAAC;aACV;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,CAAC;gBACP,kBAAkB,EAAE,IAAI;gBACxB,kBAAkB,EAAE,KAAK;aAC5B;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,CAAC;aACV;SACJ;KACJ;IACD,MAAM,EAAE,EAAE;IACV,MAAM,EAAE;QACJ,cAAc,EAAE,IAAI;KACvB;IACD,MAAM,EAAE;QACJ,YAAY,EAAE,IAAI;KACrB;IACD,KAAK,EAAE,EAAE;CACZ,CAAC","sourcesContent":["/**\r\n * The render only default configuration of the viewer, including templates (canvas, overly, loading screen)\r\n * This configuration doesn't hold specific parameters, and only defines objects that are needed for the render only viewer viewer to fully work correctly.\r\n */\r\nexport const renderOnlyDefaultConfiguration = {\r\n version: \"3.2.0-alpha4\",\r\n camera: {\r\n behaviors: {\r\n autoRotate: {\r\n type: 0,\r\n },\r\n framing: {\r\n type: 2,\r\n zoomOnBoundingInfo: true,\r\n zoomStopsAnimation: false,\r\n },\r\n bouncing: {\r\n type: 1,\r\n },\r\n },\r\n },\r\n skybox: {},\r\n ground: {\r\n receiveShadows: true,\r\n },\r\n engine: {\r\n antialiasing: true,\r\n },\r\n scene: {},\r\n};\r\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ViewerConfiguration } from "./../configuration";
|
|
2
|
-
/**
|
|
3
|
-
* Defines a default directional shadow light for normalized objects (!)
|
|
4
|
-
*/
|
|
5
|
-
export declare const shadowDirectionalLightConfiguration: ViewerConfiguration;
|
|
6
|
-
/**
|
|
7
|
-
* Defines a default shadow-enabled spot light for normalized objects.
|
|
8
|
-
*/
|
|
9
|
-
export declare const shadowSpotlLightConfiguration: ViewerConfiguration;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines a default directional shadow light for normalized objects (!)
|
|
3
|
-
*/
|
|
4
|
-
export var shadowDirectionalLightConfiguration = {
|
|
5
|
-
model: {
|
|
6
|
-
receiveShadows: true,
|
|
7
|
-
castShadow: true,
|
|
8
|
-
},
|
|
9
|
-
ground: {
|
|
10
|
-
receiveShadows: true,
|
|
11
|
-
},
|
|
12
|
-
lights: {
|
|
13
|
-
shadowDirectionalLight: {
|
|
14
|
-
type: 1,
|
|
15
|
-
shadowEnabled: true,
|
|
16
|
-
target: { x: 0, y: 0, z: 0.5 },
|
|
17
|
-
position: { x: 1.49, y: 2.39, z: -1.33 },
|
|
18
|
-
diffuse: { r: 0.867, g: 0.816, b: 0.788 },
|
|
19
|
-
intensity: 4.887,
|
|
20
|
-
intensityMode: 0,
|
|
21
|
-
shadowBufferSize: 1024,
|
|
22
|
-
shadowFrustumSize: 6.0,
|
|
23
|
-
shadowFieldOfView: 50.977,
|
|
24
|
-
shadowMinZ: 0.1,
|
|
25
|
-
shadowMaxZ: 10.0,
|
|
26
|
-
shadowConfig: {
|
|
27
|
-
blurKernel: 32,
|
|
28
|
-
useBlurCloseExponentialShadowMap: true,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Defines a default shadow-enabled spot light for normalized objects.
|
|
35
|
-
*/
|
|
36
|
-
export var shadowSpotlLightConfiguration = {
|
|
37
|
-
model: {
|
|
38
|
-
receiveShadows: true,
|
|
39
|
-
castShadow: true,
|
|
40
|
-
},
|
|
41
|
-
ground: {
|
|
42
|
-
receiveShadows: true,
|
|
43
|
-
},
|
|
44
|
-
lights: {
|
|
45
|
-
shadowSpotLight: {
|
|
46
|
-
type: 2,
|
|
47
|
-
intensity: 2,
|
|
48
|
-
shadowEnabled: true,
|
|
49
|
-
target: { x: 0, y: 0, z: 0.5 },
|
|
50
|
-
position: { x: 0, y: 3.5, z: 3.7 },
|
|
51
|
-
angle: 1,
|
|
52
|
-
shadowOrthoScale: 0.5,
|
|
53
|
-
shadowBufferSize: 1024,
|
|
54
|
-
shadowMinZ: 0.1,
|
|
55
|
-
shadowMaxZ: 50.0,
|
|
56
|
-
shadowConfig: {
|
|
57
|
-
frustumEdgeFalloff: 0.5,
|
|
58
|
-
blurKernel: 32,
|
|
59
|
-
useBlurExponentialShadowMap: true,
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
//# sourceMappingURL=shadowLight.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shadowLight.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/types/shadowLight.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,IAAM,mCAAmC,GAAwB;IACpE,KAAK,EAAE;QACH,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,IAAI;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,gBAAgB,EAAE,IAAI;YACtB,UAAU,EAAE,GAAG;YACf,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE;gBACV,kBAAkB,EAAE,GAAG;gBACvB,UAAU,EAAE,EAAE;gBACd,2BAA2B,EAAE,IAAI;aACpC;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import type { ViewerConfiguration } from \"./../configuration\";\r\n\r\n/**\r\n * Defines a default directional shadow light for normalized objects (!)\r\n */\r\nexport const shadowDirectionalLightConfiguration: ViewerConfiguration = {\r\n model: {\r\n receiveShadows: true,\r\n castShadow: true,\r\n },\r\n ground: {\r\n receiveShadows: true,\r\n },\r\n lights: {\r\n shadowDirectionalLight: {\r\n type: 1,\r\n shadowEnabled: true,\r\n target: { x: 0, y: 0, z: 0.5 },\r\n position: { x: 1.49, y: 2.39, z: -1.33 },\r\n diffuse: { r: 0.867, g: 0.816, b: 0.788 },\r\n intensity: 4.887,\r\n intensityMode: 0,\r\n shadowBufferSize: 1024,\r\n shadowFrustumSize: 6.0,\r\n shadowFieldOfView: 50.977,\r\n shadowMinZ: 0.1,\r\n shadowMaxZ: 10.0,\r\n shadowConfig: {\r\n blurKernel: 32,\r\n useBlurCloseExponentialShadowMap: true,\r\n },\r\n },\r\n },\r\n};\r\n\r\n/**\r\n * Defines a default shadow-enabled spot light for normalized objects.\r\n */\r\nexport const shadowSpotlLightConfiguration: ViewerConfiguration = {\r\n model: {\r\n receiveShadows: true,\r\n castShadow: true,\r\n },\r\n ground: {\r\n receiveShadows: true,\r\n },\r\n lights: {\r\n shadowSpotLight: {\r\n type: 2,\r\n intensity: 2,\r\n shadowEnabled: true,\r\n target: { x: 0, y: 0, z: 0.5 },\r\n position: { x: 0, y: 3.5, z: 3.7 },\r\n angle: 1,\r\n shadowOrthoScale: 0.5,\r\n shadowBufferSize: 1024,\r\n shadowMinZ: 0.1,\r\n shadowMaxZ: 50.0,\r\n shadowConfig: {\r\n frustumEdgeFalloff: 0.5,\r\n blurKernel: 32,\r\n useBlurExponentialShadowMap: true,\r\n },\r\n },\r\n },\r\n};\r\n"]}
|
package/helper/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
declare const expDm: Ideepmerge;
|
|
2
|
-
export { expDm as deepmerge };
|
|
3
|
-
/**
|
|
4
|
-
* Is the provided string a URL?
|
|
5
|
-
*
|
|
6
|
-
* @param urlToCheck the url to inspect
|
|
7
|
-
* @returns true if the string is a URL
|
|
8
|
-
*/
|
|
9
|
-
export declare function isUrl(urlToCheck: string): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Convert a string from kebab-case to camelCase
|
|
12
|
-
* @param s string to convert
|
|
13
|
-
* @returns the converted string
|
|
14
|
-
*/
|
|
15
|
-
export declare function kebabToCamel(s: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* Convert a string from camelCase to kebab-case
|
|
18
|
-
* @param str string to convert
|
|
19
|
-
* @returns the converted string
|
|
20
|
-
*/
|
|
21
|
-
export declare function camelToKebab(str: string): string | null;
|
|
22
|
-
/**
|
|
23
|
-
* This will extend an object with configuration values.
|
|
24
|
-
* What it practically does it take the keys from the configuration and set them on the object.
|
|
25
|
-
* If the configuration is a tree, it will traverse into the tree.
|
|
26
|
-
* @param object the object to extend
|
|
27
|
-
* @param config the configuration object that will extend the object
|
|
28
|
-
*/
|
|
29
|
-
export declare function extendClassWithConfig(object: any, config: any): void;
|
package/helper/index.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as deepmerge from "deepmerge";
|
|
2
|
-
var expDm = deepmerge["default"];
|
|
3
|
-
export { expDm as deepmerge };
|
|
4
|
-
/**
|
|
5
|
-
* Is the provided string a URL?
|
|
6
|
-
*
|
|
7
|
-
* @param urlToCheck the url to inspect
|
|
8
|
-
* @returns true if the string is a URL
|
|
9
|
-
*/
|
|
10
|
-
export function isUrl(urlToCheck) {
|
|
11
|
-
if (urlToCheck.indexOf("http") === 0 || urlToCheck.indexOf("/") === 0 || urlToCheck.indexOf("./") === 0 || urlToCheck.indexOf("../") === 0) {
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Convert a string from kebab-case to camelCase
|
|
18
|
-
* @param s string to convert
|
|
19
|
-
* @returns the converted string
|
|
20
|
-
*/
|
|
21
|
-
export function kebabToCamel(s) {
|
|
22
|
-
return s.replace(/(-\w)/g, function (m) {
|
|
23
|
-
return m[1].toUpperCase();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
//https://gist.github.com/youssman/745578062609e8acac9f
|
|
27
|
-
/**
|
|
28
|
-
* Convert a string from camelCase to kebab-case
|
|
29
|
-
* @param str string to convert
|
|
30
|
-
* @returns the converted string
|
|
31
|
-
*/
|
|
32
|
-
export function camelToKebab(str) {
|
|
33
|
-
return !str
|
|
34
|
-
? null
|
|
35
|
-
: str.replace(/([A-Z])/g, function (g) {
|
|
36
|
-
return "-" + g[0].toLowerCase();
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* This will extend an object with configuration values.
|
|
41
|
-
* What it practically does it take the keys from the configuration and set them on the object.
|
|
42
|
-
* If the configuration is a tree, it will traverse into the tree.
|
|
43
|
-
* @param object the object to extend
|
|
44
|
-
* @param config the configuration object that will extend the object
|
|
45
|
-
*/
|
|
46
|
-
export function extendClassWithConfig(object, config) {
|
|
47
|
-
if (!config || typeof config !== "object") {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
Object.keys(config).forEach(function (key) {
|
|
51
|
-
if (key in object && typeof object[key] !== "function") {
|
|
52
|
-
// if (typeof object[key] === 'function') return;
|
|
53
|
-
// if it is an object, iterate internally until reaching basic types
|
|
54
|
-
// but null is an object so if its null and config[key] is not an object eg. number, the number should be set
|
|
55
|
-
if (typeof object[key] === "object" && (object[key] !== null || typeof config[key] === "object")) {
|
|
56
|
-
extendClassWithConfig(object[key], config[key]);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
if (config[key] !== undefined) {
|
|
60
|
-
object[key] = config[key];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=index.js.map
|
package/helper/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../tools/viewer/src/helper/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AAEvC,IAAM,KAAK,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC;AACnC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,UAAU,KAAK,CAAC,UAAkB;IACpC,IAAI,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QACxI,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,CAAS;IAClC,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC;QAClC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9B,CAAC,CAAC,CAAC;AACP,CAAC;AAED,uDAAuD;AACvD;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,GAAW;IACpC,OAAO,CAAC,GAAG;QACP,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;YAC/B,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACpC,CAAC,CAAC,CAAC;AACb,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAW,EAAE,MAAW;IAC1D,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QACvC,OAAO;KACV;IACD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,UAAU,GAAG;QACrC,IAAI,GAAG,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,UAAU,EAAE;YACpD,iDAAiD;YACjD,oEAAoE;YACpE,6GAA6G;YAC7G,IAAI,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,QAAQ,CAAC,EAAE;gBAC9F,qBAAqB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;aACnD;iBAAM;gBACH,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;oBAC3B,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;iBAC7B;aACJ;SACJ;IACL,CAAC,CAAC,CAAC;AACP,CAAC","sourcesContent":["import * as deepmerge from \"deepmerge\";\r\n\r\nconst expDm = deepmerge[\"default\"];\r\nexport { expDm as deepmerge };\r\n\r\n/**\r\n * Is the provided string a URL?\r\n *\r\n * @param urlToCheck the url to inspect\r\n * @returns true if the string is a URL\r\n */\r\nexport function isUrl(urlToCheck: string): boolean {\r\n if (urlToCheck.indexOf(\"http\") === 0 || urlToCheck.indexOf(\"/\") === 0 || urlToCheck.indexOf(\"./\") === 0 || urlToCheck.indexOf(\"../\") === 0) {\r\n return true;\r\n }\r\n return false;\r\n}\r\n\r\n/**\r\n * Convert a string from kebab-case to camelCase\r\n * @param s string to convert\r\n * @returns the converted string\r\n */\r\nexport function kebabToCamel(s: string) {\r\n return s.replace(/(-\\w)/g, function (m) {\r\n return m[1].toUpperCase();\r\n });\r\n}\r\n\r\n//https://gist.github.com/youssman/745578062609e8acac9f\r\n/**\r\n * Convert a string from camelCase to kebab-case\r\n * @param str string to convert\r\n * @returns the converted string\r\n */\r\nexport function camelToKebab(str: string) {\r\n return !str\r\n ? null\r\n : str.replace(/([A-Z])/g, function (g) {\r\n return \"-\" + g[0].toLowerCase();\r\n });\r\n}\r\n\r\n/**\r\n * This will extend an object with configuration values.\r\n * What it practically does it take the keys from the configuration and set them on the object.\r\n * If the configuration is a tree, it will traverse into the tree.\r\n * @param object the object to extend\r\n * @param config the configuration object that will extend the object\r\n */\r\nexport function extendClassWithConfig(object: any, config: any) {\r\n if (!config || typeof config !== \"object\") {\r\n return;\r\n }\r\n Object.keys(config).forEach(function (key) {\r\n if (key in object && typeof object[key] !== \"function\") {\r\n // if (typeof object[key] === 'function') return;\r\n // if it is an object, iterate internally until reaching basic types\r\n // but null is an object so if its null and config[key] is not an object eg. number, the number should be set\r\n if (typeof object[key] === \"object\" && (object[key] !== null || typeof config[key] === \"object\")) {\r\n extendClassWithConfig(object[key], config[key]);\r\n } else {\r\n if (config[key] !== undefined) {\r\n object[key] = config[key];\r\n }\r\n }\r\n }\r\n });\r\n}\r\n"]}
|
package/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { mapperManager } from "./configuration/mappers";
|
|
2
|
-
import { viewerGlobals } from "./configuration/globals";
|
|
3
|
-
import { viewerManager } from "./viewer/viewerManager";
|
|
4
|
-
import { DefaultViewer } from "./viewer/defaultViewer";
|
|
5
|
-
import { AbstractViewer } from "./viewer/viewer";
|
|
6
|
-
import { telemetryManager } from "./managers/telemetryManager";
|
|
7
|
-
import { ModelLoader } from "./loader/modelLoader";
|
|
8
|
-
import { ViewerModel, ModelState } from "./model/viewerModel";
|
|
9
|
-
import { AnimationPlayMode, AnimationState } from "./model/modelAnimation";
|
|
10
|
-
import { ILoaderPlugin } from "./loader/plugins/loaderPlugin";
|
|
11
|
-
import { AbstractViewerNavbarButton } from "./templating/viewerTemplatePlugin";
|
|
12
|
-
import { registerCustomOptimizer } from "./optimizer/custom/index";
|
|
13
|
-
/**
|
|
14
|
-
* BabylonJS Viewer
|
|
15
|
-
*
|
|
16
|
-
* An HTML-Based viewer for 3D models, based on BabylonJS and its extensions.
|
|
17
|
-
*/
|
|
18
|
-
import * as BABYLON from "@babylonjs/core/index.js";
|
|
19
|
-
import "@babylonjs/loaders/index.js";
|
|
20
|
-
import "pepjs";
|
|
21
|
-
import { InitTags } from "./initializer";
|
|
22
|
-
declare const disableInit: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Dispose all viewers currently registered
|
|
25
|
-
*/
|
|
26
|
-
declare function disposeAll(): void;
|
|
27
|
-
declare const Version: string;
|
|
28
|
-
export { BABYLON, Version, InitTags, DefaultViewer, AbstractViewer, viewerGlobals, telemetryManager, disableInit, viewerManager, mapperManager, disposeAll, ModelLoader, ViewerModel, AnimationPlayMode, AnimationState, ModelState, ILoaderPlugin, AbstractViewerNavbarButton, registerCustomOptimizer, };
|
|
29
|
-
export { GLTF2 } from "@babylonjs/loaders/glTF/index.js";
|
|
30
|
-
export * from "./configuration/index";
|
package/index.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { mapperManager } from "./configuration/mappers.js";
|
|
2
|
-
import { viewerGlobals } from "./configuration/globals.js";
|
|
3
|
-
import { viewerManager } from "./viewer/viewerManager.js";
|
|
4
|
-
import { DefaultViewer } from "./viewer/defaultViewer.js";
|
|
5
|
-
import { AbstractViewer } from "./viewer/viewer.js";
|
|
6
|
-
import { telemetryManager } from "./managers/telemetryManager.js";
|
|
7
|
-
import { ModelLoader } from "./loader/modelLoader.js";
|
|
8
|
-
import { ViewerModel, ModelState } from "./model/viewerModel.js";
|
|
9
|
-
import { AnimationPlayMode, AnimationState } from "./model/modelAnimation.js";
|
|
10
|
-
import { AbstractViewerNavbarButton } from "./templating/viewerTemplatePlugin.js";
|
|
11
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
12
|
-
import { registerCustomOptimizer } from "./optimizer/custom/index.js";
|
|
13
|
-
import { Logger } from "@babylonjs/core/Misc/logger.js";
|
|
14
|
-
/**
|
|
15
|
-
* BabylonJS Viewer
|
|
16
|
-
*
|
|
17
|
-
* An HTML-Based viewer for 3D models, based on BabylonJS and its extensions.
|
|
18
|
-
*/
|
|
19
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
20
|
-
import * as BABYLON from "@babylonjs/core/index.js";
|
|
21
|
-
// load needed modules.
|
|
22
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
23
|
-
import "@babylonjs/loaders/index.js";
|
|
24
|
-
import "pepjs";
|
|
25
|
-
import { initListeners, InitTags } from "./initializer.js";
|
|
26
|
-
initListeners();
|
|
27
|
-
//deprecated, here for backwards compatibility
|
|
28
|
-
var disableInit = viewerGlobals.disableInit;
|
|
29
|
-
/**
|
|
30
|
-
* Dispose all viewers currently registered
|
|
31
|
-
*/
|
|
32
|
-
function disposeAll() {
|
|
33
|
-
viewerManager.dispose();
|
|
34
|
-
mapperManager.dispose();
|
|
35
|
-
telemetryManager.dispose();
|
|
36
|
-
}
|
|
37
|
-
var Version = viewerGlobals.version;
|
|
38
|
-
Logger.Log("Babylon.js viewer (v" + Version + ")");
|
|
39
|
-
// public API for initialization
|
|
40
|
-
export { BABYLON, Version, InitTags, DefaultViewer, AbstractViewer, viewerGlobals, telemetryManager, disableInit, viewerManager, mapperManager, disposeAll, ModelLoader, ViewerModel, AnimationPlayMode, AnimationState, ModelState, AbstractViewerNavbarButton, registerCustomOptimizer, };
|
|
41
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
42
|
-
export { GLTF2 } from "@babylonjs/loaders/glTF/index.js";
|
|
43
|
-
// export publicliy all configuration interfaces
|
|
44
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
45
|
-
export * from "./configuration/index.js";
|
|
46
|
-
//# sourceMappingURL=index.js.map
|
package/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../tools/viewer/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,sDAAsD;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,uCAAyB;AAE1C;;;;GAIG;AAEH,sDAAsD;AACtD,OAAO,KAAK,OAAO,iCAAmB;AAEtC,uBAAuB;AACvB,sDAAsD;AACtD,qCAAuB;AACvB,OAAO,OAAO,CAAC;AAEf,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAExD,aAAa,EAAE,CAAC;AAEhB,8CAA8C;AAC9C,IAAM,WAAW,GAAY,aAAa,CAAC,WAAW,CAAC;AAEvD;;GAEG;AACH,SAAS,UAAU;IACf,aAAa,CAAC,OAAO,EAAE,CAAC;IACxB,aAAa,CAAC,OAAO,EAAE,CAAC;IACxB,gBAAgB,CAAC,OAAO,EAAE,CAAC;AAC/B,CAAC;AAED,IAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC;AAEtC,MAAM,CAAC,GAAG,CAAC,sBAAsB,GAAG,OAAO,GAAG,GAAG,CAAC,CAAC;AAEnD,gCAAgC;AAChC,OAAO,EACH,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,aAAa,EACb,UAAU,EACV,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,UAAU,EAEV,0BAA0B,EAC1B,uBAAuB,GAC1B,CAAC;AACF,sDAAsD;AACtD,OAAO,EAAE,KAAK,EAAE,yCAA2B;AAC3C,gDAAgD;AAChD,sDAAsD;AACtD,cAAc,uBAAuB,CAAC","sourcesContent":["import { mapperManager } from \"./configuration/mappers\";\r\nimport { viewerGlobals } from \"./configuration/globals\";\r\nimport { viewerManager } from \"./viewer/viewerManager\";\r\nimport { DefaultViewer } from \"./viewer/defaultViewer\";\r\nimport { AbstractViewer } from \"./viewer/viewer\";\r\nimport { telemetryManager } from \"./managers/telemetryManager\";\r\nimport { ModelLoader } from \"./loader/modelLoader\";\r\nimport { ViewerModel, ModelState } from \"./model/viewerModel\";\r\nimport { AnimationPlayMode, AnimationState } from \"./model/modelAnimation\";\r\nimport { ILoaderPlugin } from \"./loader/plugins/loaderPlugin\";\r\nimport { AbstractViewerNavbarButton } from \"./templating/viewerTemplatePlugin\";\r\n// eslint-disable-next-line import/no-internal-modules\r\nimport { registerCustomOptimizer } from \"./optimizer/custom/index\";\r\nimport { Logger } from \"core/Misc/logger\";\r\n\r\n/**\r\n * BabylonJS Viewer\r\n *\r\n * An HTML-Based viewer for 3D models, based on BabylonJS and its extensions.\r\n */\r\n\r\n// eslint-disable-next-line import/no-internal-modules\r\nimport * as BABYLON from \"core/index\";\r\n\r\n// load needed modules.\r\n// eslint-disable-next-line import/no-internal-modules\r\nimport \"loaders/index\";\r\nimport \"pepjs\";\r\n\r\nimport { initListeners, InitTags } from \"./initializer\";\r\n\r\ninitListeners();\r\n\r\n//deprecated, here for backwards compatibility\r\nconst disableInit: boolean = viewerGlobals.disableInit;\r\n\r\n/**\r\n * Dispose all viewers currently registered\r\n */\r\nfunction disposeAll() {\r\n viewerManager.dispose();\r\n mapperManager.dispose();\r\n telemetryManager.dispose();\r\n}\r\n\r\nconst Version = viewerGlobals.version;\r\n\r\nLogger.Log(\"Babylon.js viewer (v\" + Version + \")\");\r\n\r\n// public API for initialization\r\nexport {\r\n BABYLON,\r\n Version,\r\n InitTags,\r\n DefaultViewer,\r\n AbstractViewer,\r\n viewerGlobals,\r\n telemetryManager,\r\n disableInit,\r\n viewerManager,\r\n mapperManager,\r\n disposeAll,\r\n ModelLoader,\r\n ViewerModel,\r\n AnimationPlayMode,\r\n AnimationState,\r\n ModelState,\r\n ILoaderPlugin,\r\n AbstractViewerNavbarButton,\r\n registerCustomOptimizer,\r\n};\r\n// eslint-disable-next-line import/no-internal-modules\r\nexport { GLTF2 } from \"loaders/glTF/index\";\r\n// export publicliy all configuration interfaces\r\n// eslint-disable-next-line import/no-internal-modules\r\nexport * from \"./configuration/index\";\r\n"]}
|
package/initializer.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Will attach an init function the DOMContentLoaded event.
|
|
3
|
-
* The init function will be removed automatically after the event was triggered.
|
|
4
|
-
*/
|
|
5
|
-
export declare function initListeners(): void;
|
|
6
|
-
/**
|
|
7
|
-
* Select all HTML tags on the page that match the selector and initialize a viewer
|
|
8
|
-
*
|
|
9
|
-
* @param selector the selector to initialize the viewer on (default is 'babylon')
|
|
10
|
-
*/
|
|
11
|
-
export declare function InitTags(selector?: string): void;
|
package/initializer.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DefaultViewer } from "./viewer/defaultViewer.js";
|
|
2
|
-
import { mapperManager } from "./configuration/mappers.js";
|
|
3
|
-
import { viewerGlobals } from "./configuration/globals.js";
|
|
4
|
-
/**
|
|
5
|
-
* Will attach an init function the DOMContentLoaded event.
|
|
6
|
-
* The init function will be removed automatically after the event was triggered.
|
|
7
|
-
*/
|
|
8
|
-
export function initListeners() {
|
|
9
|
-
document.addEventListener("DOMContentLoaded", init);
|
|
10
|
-
function init() {
|
|
11
|
-
document.removeEventListener("DOMContentLoaded", init);
|
|
12
|
-
if (viewerGlobals.disableInit) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
InitTags();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Select all HTML tags on the page that match the selector and initialize a viewer
|
|
20
|
-
*
|
|
21
|
-
* @param selector the selector to initialize the viewer on (default is 'babylon')
|
|
22
|
-
*/
|
|
23
|
-
export function InitTags(selector) {
|
|
24
|
-
if (selector === void 0) { selector = "babylon"; }
|
|
25
|
-
var elements = document.querySelectorAll(selector);
|
|
26
|
-
for (var i = 0; i < elements.length; ++i) {
|
|
27
|
-
var element = elements.item(i);
|
|
28
|
-
// get the html configuration
|
|
29
|
-
var configMapper = mapperManager.getMapper("dom");
|
|
30
|
-
var config = configMapper.map(element);
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
32
|
-
new DefaultViewer(element, config);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=initializer.js.map
|
package/initializer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initializer.js","sourceRoot":"","sources":["../../../tools/viewer/src/initializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;;GAGG;AACH,MAAM,UAAU,aAAa;IACzB,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;IACpD,SAAS,IAAI;QACT,QAAQ,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;QACvD,IAAI,aAAa,CAAC,WAAW,EAAE;YAC3B,OAAO;SACV;QACD,QAAQ,EAAE,CAAC;IACf,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,QAA4B;IAA5B,yBAAA,EAAA,oBAA4B;IACjD,IAAM,QAAQ,GAAG,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACrD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;QACtC,IAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAEjC,6BAA6B;QAC7B,IAAM,YAAY,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACpD,IAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAEzC,6DAA6D;QAC7D,IAAI,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;KACtC;AACL,CAAC","sourcesContent":["import { DefaultViewer } from \"./viewer/defaultViewer\";\r\nimport { mapperManager } from \"./configuration/mappers\";\r\nimport { viewerGlobals } from \"./configuration/globals\";\r\n\r\n/**\r\n * Will attach an init function the DOMContentLoaded event.\r\n * The init function will be removed automatically after the event was triggered.\r\n */\r\nexport function initListeners() {\r\n document.addEventListener(\"DOMContentLoaded\", init);\r\n function init() {\r\n document.removeEventListener(\"DOMContentLoaded\", init);\r\n if (viewerGlobals.disableInit) {\r\n return;\r\n }\r\n InitTags();\r\n }\r\n}\r\n\r\n/**\r\n * Select all HTML tags on the page that match the selector and initialize a viewer\r\n *\r\n * @param selector the selector to initialize the viewer on (default is 'babylon')\r\n */\r\nexport function InitTags(selector: string = \"babylon\") {\r\n const elements = document.querySelectorAll(selector);\r\n for (let i = 0; i < elements.length; ++i) {\r\n const element = elements.item(i);\r\n\r\n // get the html configuration\r\n const configMapper = mapperManager.getMapper(\"dom\");\r\n const config = configMapper.map(element);\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n new DefaultViewer(element, config);\r\n }\r\n}\r\n"]}
|
package/interfaces.d.ts
DELETED
package/interfaces.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export var CameraBehavior;
|
|
2
|
-
(function (CameraBehavior) {
|
|
3
|
-
CameraBehavior[CameraBehavior["AUTOROTATION"] = 0] = "AUTOROTATION";
|
|
4
|
-
CameraBehavior[CameraBehavior["BOUNCING"] = 1] = "BOUNCING";
|
|
5
|
-
CameraBehavior[CameraBehavior["FRAMING"] = 2] = "FRAMING";
|
|
6
|
-
})(CameraBehavior || (CameraBehavior = {}));
|
|
7
|
-
//# sourceMappingURL=interfaces.js.map
|
package/interfaces.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../tools/viewer/src/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAkB,cAIjB;AAJD,WAAkB,cAAc;IAC5B,mEAAY,CAAA;IACZ,2DAAQ,CAAA;IACR,yDAAO,CAAA;AACX,CAAC,EAJiB,cAAc,KAAd,cAAc,QAI/B","sourcesContent":["export const enum CameraBehavior {\r\n AUTOROTATION,\r\n BOUNCING,\r\n FRAMING,\r\n}\r\n"]}
|