@babylonjs/viewer 7.41.1-alpha → 7.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configuration/configuration.d.ts +107 -0
- package/configuration/configuration.js +16 -0
- package/configuration/configuration.js.map +1 -0
- package/configuration/configurationCompatibility.d.ts +8 -0
- package/configuration/configurationCompatibility.js +66 -0
- package/configuration/configurationCompatibility.js.map +1 -0
- package/configuration/configurationContainer.d.ts +10 -0
- package/configuration/configurationContainer.js +10 -0
- package/configuration/configurationContainer.js.map +1 -0
- package/configuration/globals.d.ts +6 -0
- package/configuration/globals.js +18 -0
- package/configuration/globals.js.map +1 -0
- package/configuration/index.d.ts +2 -0
- package/configuration/index.js +4 -0
- package/configuration/index.js.map +1 -0
- package/configuration/interfaces/cameraConfiguration.d.ts +31 -0
- package/configuration/interfaces/cameraConfiguration.js +2 -0
- package/configuration/interfaces/cameraConfiguration.js.map +1 -0
- package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -0
- package/configuration/interfaces/colorGradingConfiguration.js +2 -0
- package/configuration/interfaces/colorGradingConfiguration.js.map +1 -0
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -0
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +2 -0
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +1 -0
- package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -0
- package/configuration/interfaces/environmentMapConfiguration.js +2 -0
- package/configuration/interfaces/environmentMapConfiguration.js.map +1 -0
- package/configuration/interfaces/groundConfiguration.d.ts +24 -0
- package/configuration/interfaces/groundConfiguration.js +2 -0
- package/configuration/interfaces/groundConfiguration.js.map +1 -0
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +45 -0
- package/configuration/interfaces/imageProcessingConfiguration.js +2 -0
- package/configuration/interfaces/imageProcessingConfiguration.js.map +1 -0
- package/configuration/interfaces/index.d.ts +15 -0
- package/configuration/interfaces/index.js +16 -0
- package/configuration/interfaces/index.js.map +1 -0
- package/configuration/interfaces/lightConfiguration.d.ts +60 -0
- package/configuration/interfaces/lightConfiguration.js +2 -0
- package/configuration/interfaces/lightConfiguration.js.map +1 -0
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -0
- package/configuration/interfaces/modelAnimationConfiguration.js +2 -0
- package/configuration/interfaces/modelAnimationConfiguration.js.map +1 -0
- package/configuration/interfaces/modelConfiguration.d.ts +65 -0
- package/configuration/interfaces/modelConfiguration.js +2 -0
- package/configuration/interfaces/modelConfiguration.js.map +1 -0
- package/configuration/interfaces/observersConfiguration.d.ts +5 -0
- package/configuration/interfaces/observersConfiguration.js +2 -0
- package/configuration/interfaces/observersConfiguration.js.map +1 -0
- package/configuration/interfaces/sceneConfiguration.d.ts +48 -0
- package/configuration/interfaces/sceneConfiguration.js +2 -0
- package/configuration/interfaces/sceneConfiguration.js.map +1 -0
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -0
- package/configuration/interfaces/sceneOptimizerConfiguration.js +2 -0
- package/configuration/interfaces/sceneOptimizerConfiguration.js.map +1 -0
- package/configuration/interfaces/skyboxConfiguration.d.ts +21 -0
- package/configuration/interfaces/skyboxConfiguration.js +2 -0
- package/configuration/interfaces/skyboxConfiguration.js.map +1 -0
- package/configuration/interfaces/templateConfiguration.d.ts +67 -0
- package/configuration/interfaces/templateConfiguration.js +2 -0
- package/configuration/interfaces/templateConfiguration.js.map +1 -0
- package/configuration/interfaces/vrConfiguration.d.ts +16 -0
- package/configuration/interfaces/vrConfiguration.js +2 -0
- package/configuration/interfaces/vrConfiguration.js.map +1 -0
- package/configuration/loader.d.ts +4 -0
- package/configuration/loader.js +17 -0
- package/configuration/loader.js.map +1 -0
- package/configuration/mappers.d.ts +43 -0
- package/configuration/mappers.js +193 -0
- package/configuration/mappers.js.map +1 -0
- package/configuration/renderOnlyLoader.d.ts +33 -0
- package/configuration/renderOnlyLoader.js +162 -0
- package/configuration/renderOnlyLoader.js.map +1 -0
- package/configuration/types/default.d.ts +6 -0
- package/configuration/types/default.js +121 -0
- package/configuration/types/default.js.map +1 -0
- package/configuration/types/environmentMap.d.ts +5 -0
- package/configuration/types/environmentMap.js +14 -0
- package/configuration/types/environmentMap.js.map +1 -0
- package/configuration/types/extended.d.ts +6 -0
- package/configuration/types/extended.js +317 -0
- package/configuration/types/extended.js.map +1 -0
- package/configuration/types/index.d.ts +14 -0
- package/configuration/types/index.js +51 -0
- package/configuration/types/index.js.map +1 -0
- package/configuration/types/minimal.d.ts +6 -0
- package/configuration/types/minimal.js +43 -0
- package/configuration/types/minimal.js.map +1 -0
- package/configuration/types/renderOnlyDefault.d.ts +30 -0
- package/configuration/types/renderOnlyDefault.js +31 -0
- package/configuration/types/renderOnlyDefault.js.map +1 -0
- package/configuration/types/shadowLight.d.ts +9 -0
- package/configuration/types/shadowLight.js +64 -0
- package/configuration/types/shadowLight.js.map +1 -0
- package/helper/index.d.ts +29 -0
- package/helper/index.js +66 -0
- package/helper/index.js.map +1 -0
- package/index.d.ts +30 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/initializer.d.ts +11 -0
- package/initializer.js +35 -0
- package/initializer.js.map +1 -0
- package/interfaces.d.ts +5 -0
- package/interfaces.js +7 -0
- package/interfaces.js.map +1 -0
- package/labs/environmentSerializer.d.ts +126 -0
- package/labs/environmentSerializer.js +191 -0
- package/labs/environmentSerializer.js.map +1 -0
- package/labs/texture.d.ts +183 -0
- package/labs/texture.js +351 -0
- package/labs/texture.js.map +1 -0
- package/labs/viewerLabs.d.ts +51 -0
- package/labs/viewerLabs.js +134 -0
- package/labs/viewerLabs.js.map +1 -0
- package/loader/modelLoader.d.ts +56 -0
- package/loader/modelLoader.js +202 -0
- package/loader/modelLoader.js.map +1 -0
- package/loader/plugins/applyMaterialConfig.d.ts +12 -0
- package/loader/plugins/applyMaterialConfig.js +16 -0
- package/loader/plugins/applyMaterialConfig.js.map +1 -0
- package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -0
- package/loader/plugins/extendedMaterialLoaderPlugin.js +16 -0
- package/loader/plugins/extendedMaterialLoaderPlugin.js.map +1 -0
- package/loader/plugins/index.d.ts +19 -0
- package/loader/plugins/index.js +44 -0
- package/loader/plugins/index.js.map +1 -0
- package/loader/plugins/loaderPlugin.d.ts +24 -0
- package/loader/plugins/loaderPlugin.js +2 -0
- package/loader/plugins/loaderPlugin.js.map +1 -0
- package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -0
- package/loader/plugins/msftLodLoaderPlugin.js +21 -0
- package/loader/plugins/msftLodLoaderPlugin.js.map +1 -0
- package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -0
- package/loader/plugins/telemetryLoaderPlugin.js +36 -0
- package/loader/plugins/telemetryLoaderPlugin.js.map +1 -0
- package/managers/observablesManager.d.ts +66 -0
- package/managers/observablesManager.js +35 -0
- package/managers/observablesManager.js.map +1 -0
- package/managers/sceneManager.d.ts +245 -0
- package/managers/sceneManager.js +1375 -0
- package/managers/sceneManager.js.map +1 -0
- package/managers/telemetryManager.d.ts +78 -0
- package/managers/telemetryManager.js +117 -0
- package/managers/telemetryManager.js.map +1 -0
- package/model/modelAnimation.d.ts +215 -0
- package/model/modelAnimation.js +237 -0
- package/model/modelAnimation.js.map +1 -0
- package/model/viewerModel.d.ts +233 -0
- package/model/viewerModel.js +673 -0
- package/model/viewerModel.js.map +1 -0
- package/optimizer/custom/extended.d.ts +13 -0
- package/optimizer/custom/extended.js +101 -0
- package/optimizer/custom/extended.js.map +1 -0
- package/optimizer/custom/index.d.ts +9 -0
- package/optimizer/custom/index.js +26 -0
- package/optimizer/custom/index.js.map +1 -0
- package/package.json +28 -19
- package/readme.md +28 -28
- package/renderOnlyIndex.d.ts +11 -0
- package/renderOnlyIndex.js +18 -0
- package/renderOnlyIndex.js.map +1 -0
- package/templating/eventManager.d.ts +35 -0
- package/templating/eventManager.js +66 -0
- package/templating/eventManager.js.map +1 -0
- package/templating/plugins/hdButtonPlugin.d.ts +9 -0
- package/templating/plugins/hdButtonPlugin.js +22 -0
- package/templating/plugins/hdButtonPlugin.js.map +1 -0
- package/templating/plugins/printButton.d.ts +9 -0
- package/templating/plugins/printButton.js +41 -0
- package/templating/plugins/printButton.js.map +1 -0
- package/templating/templateManager.d.ts +197 -0
- package/templating/templateManager.js +561 -0
- package/templating/templateManager.js.map +1 -0
- package/templating/viewerTemplatePlugin.d.ts +21 -0
- package/templating/viewerTemplatePlugin.js +69 -0
- package/templating/viewerTemplatePlugin.js.map +1 -0
- package/viewer/defaultViewer.d.ts +130 -0
- package/viewer/defaultViewer.js +672 -0
- package/viewer/defaultViewer.js.map +1 -0
- package/viewer/renderOnlyViewer.d.ts +9 -0
- package/viewer/renderOnlyViewer.js +46 -0
- package/viewer/renderOnlyViewer.js.map +1 -0
- package/viewer/viewer.d.ts +258 -0
- package/viewer/viewer.js +783 -0
- package/viewer/viewer.js.map +1 -0
- package/viewer/viewerManager.d.ts +58 -0
- package/viewer/viewerManager.js +91 -0
- package/viewer/viewerManager.js.map +1 -0
- package/viewer/viewerWithTemplate.d.ts +9 -0
- package/viewer/viewerWithTemplate.js +20 -0
- package/viewer/viewerWithTemplate.js.map +1 -0
- package/assets/photoStudio.env +0 -0
- package/dist/babylon-viewer.esm.js +0 -2
- package/dist/babylon-viewer.esm.js.map +0 -1
- package/dist/babylon-viewer.esm.min.js +0 -2
- package/dist/babylon-viewer.esm.min.js.map +0 -1
- package/dist/chunks/EXT_lights_ies-BS2USlck.esm.min.js +0 -2
- package/dist/chunks/EXT_lights_ies-BS2USlck.esm.min.js.map +0 -1
- package/dist/chunks/EXT_lights_ies-C-joQ5O4.esm.js +0 -84
- package/dist/chunks/EXT_lights_ies-C-joQ5O4.esm.js.map +0 -1
- package/dist/chunks/EXT_lights_image_based-C3wbbb5Z.esm.js +0 -171
- package/dist/chunks/EXT_lights_image_based-C3wbbb5Z.esm.js.map +0 -1
- package/dist/chunks/EXT_lights_image_based-DDdRDnM2.esm.min.js +0 -2
- package/dist/chunks/EXT_lights_image_based-DDdRDnM2.esm.min.js.map +0 -1
- package/dist/chunks/EXT_mesh_gpu_instancing-AXAnRQN7.esm.js +0 -86
- package/dist/chunks/EXT_mesh_gpu_instancing-AXAnRQN7.esm.js.map +0 -1
- package/dist/chunks/EXT_mesh_gpu_instancing-BcjPo6uC.esm.min.js +0 -2
- package/dist/chunks/EXT_mesh_gpu_instancing-BcjPo6uC.esm.min.js.map +0 -1
- package/dist/chunks/EXT_meshopt_compression-DlUkQB2P.esm.js +0 -134
- package/dist/chunks/EXT_meshopt_compression-DlUkQB2P.esm.js.map +0 -1
- package/dist/chunks/EXT_meshopt_compression-yJ4OpORd.esm.min.js +0 -2
- package/dist/chunks/EXT_meshopt_compression-yJ4OpORd.esm.min.js.map +0 -1
- package/dist/chunks/EXT_texture_avif-BQWbvJfK.esm.min.js +0 -2
- package/dist/chunks/EXT_texture_avif-BQWbvJfK.esm.min.js.map +0 -1
- package/dist/chunks/EXT_texture_avif-C0pGpnGv.esm.js +0 -44
- package/dist/chunks/EXT_texture_avif-C0pGpnGv.esm.js.map +0 -1
- package/dist/chunks/EXT_texture_webp-Dd7Uqtmh.esm.min.js +0 -2
- package/dist/chunks/EXT_texture_webp-Dd7Uqtmh.esm.min.js.map +0 -1
- package/dist/chunks/EXT_texture_webp-DehlrnW-.esm.js +0 -43
- package/dist/chunks/EXT_texture_webp-DehlrnW-.esm.js.map +0 -1
- package/dist/chunks/ExtrasAsMetadata-C5NMuDj4.esm.js +0 -64
- package/dist/chunks/ExtrasAsMetadata-C5NMuDj4.esm.js.map +0 -1
- package/dist/chunks/ExtrasAsMetadata-Cp3LHdoG.esm.min.js +0 -2
- package/dist/chunks/ExtrasAsMetadata-Cp3LHdoG.esm.min.js.map +0 -1
- package/dist/chunks/KHR_animation_pointer-DEBOwDXh.esm.min.js +0 -2
- package/dist/chunks/KHR_animation_pointer-DEBOwDXh.esm.min.js.map +0 -1
- package/dist/chunks/KHR_animation_pointer-Dx1OeG2b.esm.js +0 -352
- package/dist/chunks/KHR_animation_pointer-Dx1OeG2b.esm.js.map +0 -1
- package/dist/chunks/KHR_draco_mesh_compression-Ch0QOlBL.esm.min.js +0 -2
- package/dist/chunks/KHR_draco_mesh_compression-Ch0QOlBL.esm.min.js.map +0 -1
- package/dist/chunks/KHR_draco_mesh_compression-D59SFLyo.esm.js +0 -610
- package/dist/chunks/KHR_draco_mesh_compression-D59SFLyo.esm.js.map +0 -1
- package/dist/chunks/KHR_interactivity-Blj_9jts.esm.min.js +0 -2
- package/dist/chunks/KHR_interactivity-Blj_9jts.esm.min.js.map +0 -1
- package/dist/chunks/KHR_interactivity-CR0LYUa7.esm.js +0 -4033
- package/dist/chunks/KHR_interactivity-CR0LYUa7.esm.js.map +0 -1
- package/dist/chunks/KHR_lights_punctual--w0a62AP.esm.js +0 -581
- package/dist/chunks/KHR_lights_punctual--w0a62AP.esm.js.map +0 -1
- package/dist/chunks/KHR_lights_punctual-BojffBbG.esm.min.js +0 -2
- package/dist/chunks/KHR_lights_punctual-BojffBbG.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_anisotropy-BPtHWkOQ.esm.js +0 -65
- package/dist/chunks/KHR_materials_anisotropy-BPtHWkOQ.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_anisotropy-DU5_bnCL.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_anisotropy-DU5_bnCL.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_clearcoat-BBuRlPhc.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_clearcoat-BBuRlPhc.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_clearcoat-Eg0xbuWN.esm.js +0 -96
- package/dist/chunks/KHR_materials_clearcoat-Eg0xbuWN.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_diffuse_transmission-Bkzk60Y5.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_diffuse_transmission-Bkzk60Y5.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_diffuse_transmission-C3DaLgRY.esm.js +0 -97
- package/dist/chunks/KHR_materials_diffuse_transmission-C3DaLgRY.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_dispersion-DL_XFhxj.esm.js +0 -62
- package/dist/chunks/KHR_materials_dispersion-DL_XFhxj.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_dispersion-DbMQPBgM.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_dispersion-DbMQPBgM.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_emissive_strength-BuHyjtBD.esm.js +0 -55
- package/dist/chunks/KHR_materials_emissive_strength-BuHyjtBD.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_emissive_strength-Djlr_ul3.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_emissive_strength-Djlr_ul3.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_ior-BIe6qBOo.esm.js +0 -64
- package/dist/chunks/KHR_materials_ior-BIe6qBOo.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_ior-DOfaAmNY.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_ior-DOfaAmNY.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_iridescence-BgElZgUu.esm.js +0 -72
- package/dist/chunks/KHR_materials_iridescence-BgElZgUu.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_iridescence-lUeo07SZ.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_iridescence-lUeo07SZ.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-9ShQyhJ6.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-9ShQyhJ6.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DE5LjLg6.esm.js +0 -81
- package/dist/chunks/KHR_materials_pbrSpecularGlossiness-DE5LjLg6.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_sheen-BfZe6ZFu.esm.js +0 -85
- package/dist/chunks/KHR_materials_sheen-BfZe6ZFu.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_sheen-OWjuK2V4.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_sheen-OWjuK2V4.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_specular-dowPxbW3.esm.js +0 -75
- package/dist/chunks/KHR_materials_specular-dowPxbW3.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_specular-nWeBZu0R.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_specular-nWeBZu0R.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_transmission-BPNQkK0O.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_transmission-BPNQkK0O.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_transmission-CHr_yLLX.esm.js +0 -307
- package/dist/chunks/KHR_materials_transmission-CHr_yLLX.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_unlit-BYXpcsdj.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_unlit-BYXpcsdj.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_unlit-Cr7YsDHT.esm.js +0 -74
- package/dist/chunks/KHR_materials_unlit-Cr7YsDHT.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_variants-BCVX3sJa.esm.js +0 -262
- package/dist/chunks/KHR_materials_variants-BCVX3sJa.esm.js.map +0 -1
- package/dist/chunks/KHR_materials_variants-BXzl6KpJ.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_variants-BXzl6KpJ.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_volume-BD9KEaJz.esm.min.js +0 -2
- package/dist/chunks/KHR_materials_volume-BD9KEaJz.esm.min.js.map +0 -1
- package/dist/chunks/KHR_materials_volume-DrqGUGW6.esm.js +0 -87
- package/dist/chunks/KHR_materials_volume-DrqGUGW6.esm.js.map +0 -1
- package/dist/chunks/KHR_mesh_quantization-Dg22auJA.esm.min.js +0 -2
- package/dist/chunks/KHR_mesh_quantization-Dg22auJA.esm.min.js.map +0 -1
- package/dist/chunks/KHR_mesh_quantization-hvxpvTbe.esm.js +0 -26
- package/dist/chunks/KHR_mesh_quantization-hvxpvTbe.esm.js.map +0 -1
- package/dist/chunks/KHR_node_hoverability-BDiqFmBB.esm.js +0 -39
- package/dist/chunks/KHR_node_hoverability-BDiqFmBB.esm.js.map +0 -1
- package/dist/chunks/KHR_node_hoverability-CumkOtZM.esm.min.js +0 -2
- package/dist/chunks/KHR_node_hoverability-CumkOtZM.esm.min.js.map +0 -1
- package/dist/chunks/KHR_node_visibility-BKEa-Yfj.esm.min.js +0 -2
- package/dist/chunks/KHR_node_visibility-BKEa-Yfj.esm.min.js.map +0 -1
- package/dist/chunks/KHR_node_visibility-K0fsD4Vv.esm.js +0 -46
- package/dist/chunks/KHR_node_visibility-K0fsD4Vv.esm.js.map +0 -1
- package/dist/chunks/KHR_texture_basisu-8YVY1pKo.esm.js +0 -43
- package/dist/chunks/KHR_texture_basisu-8YVY1pKo.esm.js.map +0 -1
- package/dist/chunks/KHR_texture_basisu-BM__NeSW.esm.min.js +0 -2
- package/dist/chunks/KHR_texture_basisu-BM__NeSW.esm.min.js.map +0 -1
- package/dist/chunks/KHR_texture_transform--qxpdvRw.esm.js +0 -63
- package/dist/chunks/KHR_texture_transform--qxpdvRw.esm.js.map +0 -1
- package/dist/chunks/KHR_texture_transform-C0MO-oJp.esm.min.js +0 -2
- package/dist/chunks/KHR_texture_transform-C0MO-oJp.esm.min.js.map +0 -1
- package/dist/chunks/KHR_xmp_json_ld-D9FpHvJo.esm.js +0 -51
- package/dist/chunks/KHR_xmp_json_ld-D9FpHvJo.esm.js.map +0 -1
- package/dist/chunks/KHR_xmp_json_ld-DeXPWWQE.esm.min.js +0 -2
- package/dist/chunks/KHR_xmp_json_ld-DeXPWWQE.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_audio_emitter-BbICSwFH.esm.min.js +0 -2
- package/dist/chunks/MSFT_audio_emitter-BbICSwFH.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_audio_emitter-Dd5lbfUc.esm.js +0 -2201
- package/dist/chunks/MSFT_audio_emitter-Dd5lbfUc.esm.js.map +0 -1
- package/dist/chunks/MSFT_lod-B0zrRF3s.esm.js +0 -337
- package/dist/chunks/MSFT_lod-B0zrRF3s.esm.js.map +0 -1
- package/dist/chunks/MSFT_lod-Bd4znUfD.esm.min.js +0 -2
- package/dist/chunks/MSFT_lod-Bd4znUfD.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_minecraftMesh-CdIpMgsb.esm.min.js +0 -2
- package/dist/chunks/MSFT_minecraftMesh-CdIpMgsb.esm.min.js.map +0 -1
- package/dist/chunks/MSFT_minecraftMesh-WFc8m_Ka.esm.js +0 -46
- package/dist/chunks/MSFT_minecraftMesh-WFc8m_Ka.esm.js.map +0 -1
- package/dist/chunks/MSFT_sRGBFactors-CTbtGna8.esm.js +0 -47
- package/dist/chunks/MSFT_sRGBFactors-CTbtGna8.esm.js.map +0 -1
- package/dist/chunks/MSFT_sRGBFactors-yTSoBQJx.esm.min.js +0 -2
- package/dist/chunks/MSFT_sRGBFactors-yTSoBQJx.esm.min.js.map +0 -1
- package/dist/chunks/animationGroup-8TJDgymS.esm.js +0 -2482
- package/dist/chunks/animationGroup-8TJDgymS.esm.js.map +0 -1
- package/dist/chunks/animationGroup-toXtd3a1.esm.min.js +0 -2
- package/dist/chunks/animationGroup-toXtd3a1.esm.min.js.map +0 -1
- package/dist/chunks/assetContainer-7pMDUaac.esm.min.js +0 -2
- package/dist/chunks/assetContainer-7pMDUaac.esm.min.js.map +0 -1
- package/dist/chunks/assetContainer-DYzO0AbX.esm.js +0 -1720
- package/dist/chunks/assetContainer-DYzO0AbX.esm.js.map +0 -1
- package/dist/chunks/audioEngine-Kz4HSEXd.esm.min.js +0 -2
- package/dist/chunks/audioEngine-Kz4HSEXd.esm.min.js.map +0 -1
- package/dist/chunks/audioEngine-peiGqjr6.esm.js +0 -305
- package/dist/chunks/audioEngine-peiGqjr6.esm.js.map +0 -1
- package/dist/chunks/bakedVertexAnimation-BZvcL01J.esm.min.js +0 -2
- package/dist/chunks/bakedVertexAnimation-BZvcL01J.esm.min.js.map +0 -1
- package/dist/chunks/bakedVertexAnimation-CPflSjER.esm.js +0 -114
- package/dist/chunks/bakedVertexAnimation-CPflSjER.esm.js.map +0 -1
- package/dist/chunks/basisTextureLoader-CR0XhSAg.esm.js +0 -600
- package/dist/chunks/basisTextureLoader-CR0XhSAg.esm.js.map +0 -1
- package/dist/chunks/basisTextureLoader-DVJdcB62.esm.min.js +0 -2
- package/dist/chunks/basisTextureLoader-DVJdcB62.esm.min.js.map +0 -1
- package/dist/chunks/dds-6EdM5O6M.esm.js +0 -540
- package/dist/chunks/dds-6EdM5O6M.esm.js.map +0 -1
- package/dist/chunks/dds-DVX_K9B3.esm.min.js +0 -2
- package/dist/chunks/dds-DVX_K9B3.esm.min.js.map +0 -1
- package/dist/chunks/ddsTextureLoader-BAK7Ib2Z.esm.min.js +0 -2
- package/dist/chunks/ddsTextureLoader-BAK7Ib2Z.esm.min.js.map +0 -1
- package/dist/chunks/ddsTextureLoader-_nktVxwZ.esm.js +0 -88
- package/dist/chunks/ddsTextureLoader-_nktVxwZ.esm.js.map +0 -1
- package/dist/chunks/decalFragment-C_Cews3-.esm.js +0 -18
- package/dist/chunks/decalFragment-C_Cews3-.esm.js.map +0 -1
- package/dist/chunks/decalFragment-Dmj88EX9.esm.min.js +0 -2
- package/dist/chunks/decalFragment-Dmj88EX9.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-Bv_nR7po.esm.min.js +0 -2
- package/dist/chunks/default.fragment-Bv_nR7po.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-CkZQyJVM.esm.min.js +0 -2
- package/dist/chunks/default.fragment-CkZQyJVM.esm.min.js.map +0 -1
- package/dist/chunks/default.fragment-CyFHDykY.esm.js +0 -446
- package/dist/chunks/default.fragment-CyFHDykY.esm.js.map +0 -1
- package/dist/chunks/default.fragment-ej-2z5tS.esm.js +0 -515
- package/dist/chunks/default.fragment-ej-2z5tS.esm.js.map +0 -1
- package/dist/chunks/default.vertex-16mVOFgT.esm.js +0 -211
- package/dist/chunks/default.vertex-16mVOFgT.esm.js.map +0 -1
- package/dist/chunks/default.vertex-D--q2At3.esm.min.js +0 -2
- package/dist/chunks/default.vertex-D--q2At3.esm.min.js.map +0 -1
- package/dist/chunks/default.vertex-DDlgZTrR.esm.js +0 -190
- package/dist/chunks/default.vertex-DDlgZTrR.esm.js.map +0 -1
- package/dist/chunks/default.vertex-_jqs3KiZ.esm.min.js +0 -2
- package/dist/chunks/default.vertex-_jqs3KiZ.esm.min.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-8YG0iNg8.esm.js +0 -15
- package/dist/chunks/defaultUboDeclaration-8YG0iNg8.esm.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-BoBSRTbi.esm.js +0 -13
- package/dist/chunks/defaultUboDeclaration-BoBSRTbi.esm.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-Dt_5vo1d.esm.min.js +0 -2
- package/dist/chunks/defaultUboDeclaration-Dt_5vo1d.esm.min.js.map +0 -1
- package/dist/chunks/defaultUboDeclaration-R6gGjkAM.esm.min.js +0 -2
- package/dist/chunks/defaultUboDeclaration-R6gGjkAM.esm.min.js.map +0 -1
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js +0 -11
- package/dist/chunks/drawWrapper.functions-CKg3_9x4.esm.js.map +0 -1
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js +0 -2
- package/dist/chunks/drawWrapper.functions-ng7lvueZ.esm.min.js.map +0 -1
- package/dist/chunks/dumpTools-Bhux0wvM.esm.js +0 -200
- package/dist/chunks/dumpTools-Bhux0wvM.esm.js.map +0 -1
- package/dist/chunks/dumpTools-CHCb2UkY.esm.min.js +0 -2
- package/dist/chunks/dumpTools-CHCb2UkY.esm.min.js.map +0 -1
- package/dist/chunks/engine-DF_zE4qj.esm.js +0 -2213
- package/dist/chunks/engine-DF_zE4qj.esm.js.map +0 -1
- package/dist/chunks/engine-DVmdDcyP.esm.min.js +0 -2
- package/dist/chunks/engine-DVmdDcyP.esm.min.js.map +0 -1
- package/dist/chunks/engine.common-CvOmoKru.esm.js +0 -1162
- package/dist/chunks/engine.common-CvOmoKru.esm.js.map +0 -1
- package/dist/chunks/engine.common-DpTzktQJ.esm.min.js +0 -2
- package/dist/chunks/engine.common-DpTzktQJ.esm.min.js.map +0 -1
- package/dist/chunks/envTextureLoader-4YxGm-Px.esm.js +0 -64
- package/dist/chunks/envTextureLoader-4YxGm-Px.esm.js.map +0 -1
- package/dist/chunks/envTextureLoader-DMQui088.esm.min.js +0 -2
- package/dist/chunks/envTextureLoader-DMQui088.esm.min.js.map +0 -1
- package/dist/chunks/environmentTextureTools-BPGrTBPI.esm.min.js +0 -2
- package/dist/chunks/environmentTextureTools-BPGrTBPI.esm.min.js.map +0 -1
- package/dist/chunks/environmentTextureTools-DvkpsqkN.esm.js +0 -382
- package/dist/chunks/environmentTextureTools-DvkpsqkN.esm.js.map +0 -1
- package/dist/chunks/exrTextureLoader-BRkB54sO.esm.js +0 -1683
- package/dist/chunks/exrTextureLoader-BRkB54sO.esm.js.map +0 -1
- package/dist/chunks/exrTextureLoader-BtN7_zst.esm.min.js +0 -2
- package/dist/chunks/exrTextureLoader-BtN7_zst.esm.min.js.map +0 -1
- package/dist/chunks/fogFragment-BrGGFaiu.esm.js +0 -101
- package/dist/chunks/fogFragment-BrGGFaiu.esm.js.map +0 -1
- package/dist/chunks/fogFragment-ByOwwQur.esm.min.js +0 -2
- package/dist/chunks/fogFragment-ByOwwQur.esm.min.js.map +0 -1
- package/dist/chunks/fogFragment-Chod24nu.esm.min.js +0 -2
- package/dist/chunks/fogFragment-Chod24nu.esm.min.js.map +0 -1
- package/dist/chunks/fogFragment-gZfybCpt.esm.js +0 -102
- package/dist/chunks/fogFragment-gZfybCpt.esm.js.map +0 -1
- package/dist/chunks/fresnelFunction-BdEia8ob.esm.min.js +0 -2
- package/dist/chunks/fresnelFunction-BdEia8ob.esm.min.js.map +0 -1
- package/dist/chunks/fresnelFunction-DBlxfmri.esm.js +0 -12
- package/dist/chunks/fresnelFunction-DBlxfmri.esm.js.map +0 -1
- package/dist/chunks/glTFLoader-D4C1IGb3.esm.min.js +0 -2
- package/dist/chunks/glTFLoader-D4C1IGb3.esm.min.js.map +0 -1
- package/dist/chunks/glTFLoader-fUFiWvYb.esm.js +0 -7693
- package/dist/chunks/glTFLoader-fUFiWvYb.esm.js.map +0 -1
- package/dist/chunks/glTFLoaderAnimation-BB_Vw079.esm.min.js +0 -2
- package/dist/chunks/glTFLoaderAnimation-BB_Vw079.esm.min.js.map +0 -1
- package/dist/chunks/glTFLoaderAnimation-CttmY50U.esm.js +0 -77
- package/dist/chunks/glTFLoaderAnimation-CttmY50U.esm.js.map +0 -1
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js +0 -2
- package/dist/chunks/gltfPathToObjectConverter-Dyt_Y9jE.esm.min.js.map +0 -1
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js +0 -67
- package/dist/chunks/gltfPathToObjectConverter-GcUmfOyo.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-B0Rp1hEo.esm.min.js +0 -2
- package/dist/chunks/harmonicsFunctions-B0Rp1hEo.esm.min.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-Cca_z552.esm.js +0 -34
- package/dist/chunks/harmonicsFunctions-Cca_z552.esm.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-D4ID83NC.esm.min.js +0 -2
- package/dist/chunks/harmonicsFunctions-D4ID83NC.esm.min.js.map +0 -1
- package/dist/chunks/harmonicsFunctions-HJ5dbl0w.esm.js +0 -35
- package/dist/chunks/harmonicsFunctions-HJ5dbl0w.esm.js.map +0 -1
- package/dist/chunks/hdrTextureLoader-C3kqy6YV.esm.js +0 -253
- package/dist/chunks/hdrTextureLoader-C3kqy6YV.esm.js.map +0 -1
- package/dist/chunks/hdrTextureLoader-Dhlluz4z.esm.min.js +0 -2
- package/dist/chunks/hdrTextureLoader-Dhlluz4z.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-BJotVqUd.esm.min.js +0 -2
- package/dist/chunks/helperFunctions-BJotVqUd.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-C66wRWtu.esm.js +0 -110
- package/dist/chunks/helperFunctions-C66wRWtu.esm.js.map +0 -1
- package/dist/chunks/helperFunctions-DwEZ9rqh.esm.min.js +0 -2
- package/dist/chunks/helperFunctions-DwEZ9rqh.esm.min.js.map +0 -1
- package/dist/chunks/helperFunctions-gnki_9Kj.esm.js +0 -83
- package/dist/chunks/helperFunctions-gnki_9Kj.esm.js.map +0 -1
- package/dist/chunks/iesTextureLoader-QDs2Cwy5.esm.js +0 -189
- package/dist/chunks/iesTextureLoader-QDs2Cwy5.esm.js.map +0 -1
- package/dist/chunks/iesTextureLoader-pwA6Q4HK.esm.min.js +0 -2
- package/dist/chunks/iesTextureLoader-pwA6Q4HK.esm.min.js.map +0 -1
- package/dist/chunks/index-C6hXZyZb.esm.js +0 -74889
- package/dist/chunks/index-C6hXZyZb.esm.js.map +0 -1
- package/dist/chunks/index-rZVkfTE6.esm.min.js +0 -57
- package/dist/chunks/index-rZVkfTE6.esm.min.js.map +0 -1
- package/dist/chunks/ktxTextureLoader-jVu-Sj-0.esm.js +0 -814
- package/dist/chunks/ktxTextureLoader-jVu-Sj-0.esm.js.map +0 -1
- package/dist/chunks/ktxTextureLoader-zG9azrZF.esm.min.js +0 -2
- package/dist/chunks/ktxTextureLoader-zG9azrZF.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-0cA1pTvQ.esm.min.js +0 -2
- package/dist/chunks/logDepthDeclaration-0cA1pTvQ.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-CYxYhXIS.esm.js +0 -11
- package/dist/chunks/logDepthDeclaration-CYxYhXIS.esm.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-D4KGxdX-.esm.min.js +0 -2
- package/dist/chunks/logDepthDeclaration-D4KGxdX-.esm.min.js.map +0 -1
- package/dist/chunks/logDepthDeclaration-DJlt2-H5.esm.js +0 -35
- package/dist/chunks/logDepthDeclaration-DJlt2-H5.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-BS2JEtXA.esm.min.js +0 -2
- package/dist/chunks/logDepthVertex-BS2JEtXA.esm.min.js.map +0 -1
- package/dist/chunks/logDepthVertex-DKPfA10X.esm.js +0 -81
- package/dist/chunks/logDepthVertex-DKPfA10X.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-ojTShW5I.esm.js +0 -77
- package/dist/chunks/logDepthVertex-ojTShW5I.esm.js.map +0 -1
- package/dist/chunks/logDepthVertex-v-0pHNc-.esm.min.js +0 -2
- package/dist/chunks/logDepthVertex-v-0pHNc-.esm.min.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-BAzmbS0W.esm.min.js +0 -2
- package/dist/chunks/mainUVVaryingDeclaration-BAzmbS0W.esm.min.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-Cnux1jkK.esm.js +0 -11
- package/dist/chunks/mainUVVaryingDeclaration-Cnux1jkK.esm.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-CwS0hUUZ.esm.min.js +0 -2
- package/dist/chunks/mainUVVaryingDeclaration-CwS0hUUZ.esm.min.js.map +0 -1
- package/dist/chunks/mainUVVaryingDeclaration-DCawby1A.esm.js +0 -11
- package/dist/chunks/mainUVVaryingDeclaration-DCawby1A.esm.js.map +0 -1
- package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js +0 -119
- package/dist/chunks/mesh.vertexData.functions-B_pMCAzZ.esm.js.map +0 -1
- package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js +0 -2
- package/dist/chunks/mesh.vertexData.functions-Bo7e6Of9.esm.min.js.map +0 -1
- package/dist/chunks/meshUboDeclaration-QvH0RgeZ.esm.js +0 -26
- package/dist/chunks/meshUboDeclaration-QvH0RgeZ.esm.js.map +0 -1
- package/dist/chunks/meshUboDeclaration-g2s_cYI1.esm.min.js +0 -2
- package/dist/chunks/meshUboDeclaration-g2s_cYI1.esm.min.js.map +0 -1
- package/dist/chunks/objFileLoader-BOutXdVR.esm.min.js +0 -2
- package/dist/chunks/objFileLoader-BOutXdVR.esm.min.js.map +0 -1
- package/dist/chunks/objFileLoader-BPwrX8RK.esm.js +0 -1338
- package/dist/chunks/objFileLoader-BPwrX8RK.esm.js.map +0 -1
- package/dist/chunks/oitFragment-CmcWUhsZ.esm.js +0 -1240
- package/dist/chunks/oitFragment-CmcWUhsZ.esm.js.map +0 -1
- package/dist/chunks/oitFragment-D8XBQ6Wa.esm.js +0 -1078
- package/dist/chunks/oitFragment-D8XBQ6Wa.esm.js.map +0 -1
- package/dist/chunks/oitFragment-DgAlmoHs.esm.min.js +0 -2
- package/dist/chunks/oitFragment-DgAlmoHs.esm.min.js.map +0 -1
- package/dist/chunks/oitFragment-DpJ5xGhy.esm.min.js +0 -2
- package/dist/chunks/oitFragment-DpJ5xGhy.esm.min.js.map +0 -1
- package/dist/chunks/pass.fragment--XRaXRhU.esm.js +0 -15
- package/dist/chunks/pass.fragment--XRaXRhU.esm.js.map +0 -1
- package/dist/chunks/pass.fragment-5Q3qXxDe.esm.min.js +0 -2
- package/dist/chunks/pass.fragment-5Q3qXxDe.esm.min.js.map +0 -1
- package/dist/chunks/pass.fragment-BBLiyU_i.esm.min.js +0 -2
- package/dist/chunks/pass.fragment-BBLiyU_i.esm.min.js.map +0 -1
- package/dist/chunks/pass.fragment-DI4ZYZJe.esm.js +0 -15
- package/dist/chunks/pass.fragment-DI4ZYZJe.esm.js.map +0 -1
- package/dist/chunks/pbr.fragment-C7xQS4ZJ.esm.js +0 -3269
- package/dist/chunks/pbr.fragment-C7xQS4ZJ.esm.js.map +0 -1
- package/dist/chunks/pbr.fragment-Ddxaik8T.esm.min.js +0 -2
- package/dist/chunks/pbr.fragment-Ddxaik8T.esm.min.js.map +0 -1
- package/dist/chunks/pbr.fragment-fky04gH_.esm.js +0 -3222
- package/dist/chunks/pbr.fragment-fky04gH_.esm.js.map +0 -1
- package/dist/chunks/pbr.fragment-ya1zai4w.esm.min.js +0 -2
- package/dist/chunks/pbr.fragment-ya1zai4w.esm.min.js.map +0 -1
- package/dist/chunks/pbr.vertex-BPEYHoRM.esm.js +0 -223
- package/dist/chunks/pbr.vertex-BPEYHoRM.esm.js.map +0 -1
- package/dist/chunks/pbr.vertex-BXcMYADF.esm.js +0 -348
- package/dist/chunks/pbr.vertex-BXcMYADF.esm.js.map +0 -1
- package/dist/chunks/pbr.vertex-BjA08auU.esm.min.js +0 -2
- package/dist/chunks/pbr.vertex-BjA08auU.esm.min.js.map +0 -1
- package/dist/chunks/pbr.vertex-Cx2V3lNf.esm.min.js +0 -2
- package/dist/chunks/pbr.vertex-Cx2V3lNf.esm.min.js.map +0 -1
- package/dist/chunks/postprocess.vertex-BHpQrNSx.esm.min.js +0 -2
- package/dist/chunks/postprocess.vertex-BHpQrNSx.esm.min.js.map +0 -1
- package/dist/chunks/postprocess.vertex-DnDbk0tq.esm.js +0 -20
- package/dist/chunks/postprocess.vertex-DnDbk0tq.esm.js.map +0 -1
- package/dist/chunks/rawTexture-CWiRIto8.esm.js +0 -191
- package/dist/chunks/rawTexture-CWiRIto8.esm.js.map +0 -1
- package/dist/chunks/rawTexture-DX8V9PEj.esm.min.js +0 -2
- package/dist/chunks/rawTexture-DX8V9PEj.esm.min.js.map +0 -1
- package/dist/chunks/ray-ix7SqYNQ.esm.min.js +0 -2
- package/dist/chunks/ray-ix7SqYNQ.esm.min.js.map +0 -1
- package/dist/chunks/ray-nTZBkOil.esm.js +0 -946
- package/dist/chunks/ray-nTZBkOil.esm.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-Be3ofvlt.esm.min.js +0 -2
- package/dist/chunks/rgbdDecode.fragment-Be3ofvlt.esm.min.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-C05QJpT2.esm.js +0 -13
- package/dist/chunks/rgbdDecode.fragment-C05QJpT2.esm.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-D3SYBclQ.esm.min.js +0 -2
- package/dist/chunks/rgbdDecode.fragment-D3SYBclQ.esm.min.js.map +0 -1
- package/dist/chunks/rgbdDecode.fragment-DBG6KfKF.esm.js +0 -13
- package/dist/chunks/rgbdDecode.fragment-DBG6KfKF.esm.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-BlhtohrO.esm.js +0 -13
- package/dist/chunks/rgbdEncode.fragment-BlhtohrO.esm.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-BmJKYw6A.esm.min.js +0 -2
- package/dist/chunks/rgbdEncode.fragment-BmJKYw6A.esm.min.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-dr2kGjSO.esm.js +0 -13
- package/dist/chunks/rgbdEncode.fragment-dr2kGjSO.esm.js.map +0 -1
- package/dist/chunks/rgbdEncode.fragment-hXPzg1p5.esm.min.js +0 -2
- package/dist/chunks/rgbdEncode.fragment-hXPzg1p5.esm.min.js.map +0 -1
- package/dist/chunks/splatFileLoader-Bs42LtsP.esm.min.js +0 -2
- package/dist/chunks/splatFileLoader-Bs42LtsP.esm.min.js.map +0 -1
- package/dist/chunks/splatFileLoader-Dp33YOem.esm.js +0 -3379
- package/dist/chunks/splatFileLoader-Dp33YOem.esm.js.map +0 -1
- package/dist/chunks/spotLight-C0NmKeem.esm.js +0 -701
- package/dist/chunks/spotLight-C0NmKeem.esm.js.map +0 -1
- package/dist/chunks/spotLight-CcuCNdES.esm.min.js +0 -2
- package/dist/chunks/spotLight-CcuCNdES.esm.min.js.map +0 -1
- package/dist/chunks/standardMaterial-C1E5n_4w.esm.min.js +0 -2
- package/dist/chunks/standardMaterial-C1E5n_4w.esm.min.js.map +0 -1
- package/dist/chunks/standardMaterial-v_D8QA4q.esm.js +0 -1807
- package/dist/chunks/standardMaterial-v_D8QA4q.esm.js.map +0 -1
- package/dist/chunks/stlFileLoader-DC2IRQDj.esm.min.js +0 -2
- package/dist/chunks/stlFileLoader-DC2IRQDj.esm.min.js.map +0 -1
- package/dist/chunks/stlFileLoader-LRHEIFfU.esm.js +0 -238
- package/dist/chunks/stlFileLoader-LRHEIFfU.esm.js.map +0 -1
- package/dist/chunks/tgaTextureLoader-2ekJC0En.esm.js +0 -349
- package/dist/chunks/tgaTextureLoader-2ekJC0En.esm.js.map +0 -1
- package/dist/chunks/tgaTextureLoader-Clj6zUK-.esm.min.js +0 -2
- package/dist/chunks/tgaTextureLoader-Clj6zUK-.esm.min.js.map +0 -1
- package/dist/chunks/thinEngine-DksimP2U.esm.js +0 -3848
- package/dist/chunks/thinEngine-DksimP2U.esm.js.map +0 -1
- package/dist/chunks/thinEngine-tsALaFYH.esm.min.js +0 -2
- package/dist/chunks/thinEngine-tsALaFYH.esm.min.js.map +0 -1
- package/dist/chunks/thinInstanceMesh-B8AW0Oa2.esm.js +0 -314
- package/dist/chunks/thinInstanceMesh-B8AW0Oa2.esm.js.map +0 -1
- package/dist/chunks/thinInstanceMesh-kCGEJ0-e.esm.min.js +0 -2
- package/dist/chunks/thinInstanceMesh-kCGEJ0-e.esm.min.js.map +0 -1
- package/dist/chunks/vertexColorMixing-Bjijk3lU.esm.min.js +0 -2
- package/dist/chunks/vertexColorMixing-Bjijk3lU.esm.min.js.map +0 -1
- package/dist/chunks/vertexColorMixing-D9917nJN.esm.js +0 -428
- package/dist/chunks/vertexColorMixing-D9917nJN.esm.js.map +0 -1
- package/dist/chunks/vertexColorMixing-DgthWrKf.esm.min.js +0 -2
- package/dist/chunks/vertexColorMixing-DgthWrKf.esm.min.js.map +0 -1
- package/dist/chunks/vertexColorMixing-U1SA6UK3.esm.js +0 -538
- package/dist/chunks/vertexColorMixing-U1SA6UK3.esm.js.map +0 -1
- package/dist/chunks/webgpuEngine-BOGR1D8F.esm.min.js +0 -2
- package/dist/chunks/webgpuEngine-BOGR1D8F.esm.min.js.map +0 -1
- package/dist/chunks/webgpuEngine-BrzOpZ-2.esm.js +0 -11533
- package/dist/chunks/webgpuEngine-BrzOpZ-2.esm.js.map +0 -1
- package/dist/chunks/workerPool-BUOov2K1.esm.js +0 -122
- package/dist/chunks/workerPool-BUOov2K1.esm.js.map +0 -1
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js +0 -2
- package/dist/chunks/workerPool-BWHiDmEZ.esm.min.js.map +0 -1
- package/lib/index.d.ts +0 -591
- package/lib/index.js +0 -2165
- package/lib/index.js.map +0 -1
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import type { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
2
|
+
import type { AnimationGroup } from "@babylonjs/core/Animations/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Animation play mode enum - is the animation looping or playing once
|
|
5
|
+
*/
|
|
6
|
+
export declare enum AnimationPlayMode {
|
|
7
|
+
ONCE = 0,
|
|
8
|
+
LOOP = 1
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* An enum representing the current state of an animation object
|
|
12
|
+
*/
|
|
13
|
+
export declare enum AnimationState {
|
|
14
|
+
INIT = 0,
|
|
15
|
+
PLAYING = 1,
|
|
16
|
+
PAUSED = 2,
|
|
17
|
+
STOPPED = 3,
|
|
18
|
+
ENDED = 4
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The different type of easing functions available
|
|
22
|
+
*/
|
|
23
|
+
export declare enum EasingFunction {
|
|
24
|
+
Linear = 0,
|
|
25
|
+
CircleEase = 1,
|
|
26
|
+
BackEase = 2,
|
|
27
|
+
BounceEase = 3,
|
|
28
|
+
CubicEase = 4,
|
|
29
|
+
ElasticEase = 5,
|
|
30
|
+
ExponentialEase = 6,
|
|
31
|
+
PowerEase = 7,
|
|
32
|
+
QuadraticEase = 8,
|
|
33
|
+
QuarticEase = 9,
|
|
34
|
+
QuinticEase = 10,
|
|
35
|
+
SineEase = 11
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Defines a simple animation to be applied to a model (scale).
|
|
39
|
+
*/
|
|
40
|
+
export interface ModelAnimationConfiguration {
|
|
41
|
+
/**
|
|
42
|
+
* Time of animation, in seconds
|
|
43
|
+
*/
|
|
44
|
+
time: number;
|
|
45
|
+
/**
|
|
46
|
+
* Scale to apply
|
|
47
|
+
*/
|
|
48
|
+
scaling?: Vector3;
|
|
49
|
+
/**
|
|
50
|
+
* Easing function to apply
|
|
51
|
+
* See SPECTRE.EasingFunction
|
|
52
|
+
*/
|
|
53
|
+
easingFunction?: number;
|
|
54
|
+
/**
|
|
55
|
+
* An Easing mode to apply to the easing function
|
|
56
|
+
* See BABYLON.EasingFunction
|
|
57
|
+
*/
|
|
58
|
+
easingMode?: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* This interface can be implemented to define new types of ModelAnimation objects.
|
|
62
|
+
*/
|
|
63
|
+
export interface IModelAnimation {
|
|
64
|
+
/**
|
|
65
|
+
* Current animation state (playing, stopped etc')
|
|
66
|
+
*/
|
|
67
|
+
readonly state: AnimationState;
|
|
68
|
+
/**
|
|
69
|
+
* the name of the animation
|
|
70
|
+
*/
|
|
71
|
+
readonly name: string;
|
|
72
|
+
/**
|
|
73
|
+
* Get the max numbers of frame available in the animation group
|
|
74
|
+
*
|
|
75
|
+
* In correlation to an array, this would be ".length"
|
|
76
|
+
*/
|
|
77
|
+
readonly frames: number;
|
|
78
|
+
/**
|
|
79
|
+
* Get the current frame playing right now.
|
|
80
|
+
* This can be used to poll the frame currently playing (and, for example, display a progress bar with the data)
|
|
81
|
+
*
|
|
82
|
+
* In correlation to an array, this would be the current index
|
|
83
|
+
*/
|
|
84
|
+
readonly currentFrame: number;
|
|
85
|
+
/**
|
|
86
|
+
* Animation's FPS value
|
|
87
|
+
*/
|
|
88
|
+
readonly fps: number;
|
|
89
|
+
/**
|
|
90
|
+
* Get or set the animation's speed ration (Frame-to-fps)
|
|
91
|
+
*/
|
|
92
|
+
speedRatio: number;
|
|
93
|
+
/**
|
|
94
|
+
* Gets or sets the aimation's play mode.
|
|
95
|
+
*/
|
|
96
|
+
playMode: AnimationPlayMode;
|
|
97
|
+
/**
|
|
98
|
+
* Start the animation
|
|
99
|
+
*/
|
|
100
|
+
start(): void;
|
|
101
|
+
/**
|
|
102
|
+
* Stop the animation.
|
|
103
|
+
* This will fail silently if the animation group is already stopped.
|
|
104
|
+
*/
|
|
105
|
+
stop(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Pause the animation
|
|
108
|
+
* This will fail silently if the animation is not currently playing
|
|
109
|
+
*/
|
|
110
|
+
pause(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Reset this animation
|
|
113
|
+
*/
|
|
114
|
+
reset(): void;
|
|
115
|
+
/**
|
|
116
|
+
* Restart the animation
|
|
117
|
+
*/
|
|
118
|
+
restart(): void;
|
|
119
|
+
/**
|
|
120
|
+
* Go to a specific
|
|
121
|
+
* @param frameNumber the frame number to go to
|
|
122
|
+
*/
|
|
123
|
+
goToFrame(frameNumber: number): void;
|
|
124
|
+
/**
|
|
125
|
+
* Dispose this animation
|
|
126
|
+
*/
|
|
127
|
+
dispose(): void;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The GroupModelAnimation is an implementation of the IModelAnimation interface using BABYLON's
|
|
131
|
+
* native GroupAnimation class.
|
|
132
|
+
*/
|
|
133
|
+
export declare class GroupModelAnimation implements IModelAnimation {
|
|
134
|
+
private _animationGroup;
|
|
135
|
+
private _playMode;
|
|
136
|
+
private _state;
|
|
137
|
+
/**
|
|
138
|
+
* Create a new GroupModelAnimation object using an AnimationGroup object
|
|
139
|
+
* @param _animationGroup The animation group to base the class on
|
|
140
|
+
*/
|
|
141
|
+
constructor(_animationGroup: AnimationGroup);
|
|
142
|
+
/**
|
|
143
|
+
* Get the animation's name
|
|
144
|
+
*/
|
|
145
|
+
get name(): string;
|
|
146
|
+
/**
|
|
147
|
+
* Get the current animation's state
|
|
148
|
+
*/
|
|
149
|
+
get state(): AnimationState;
|
|
150
|
+
/**
|
|
151
|
+
* Gets the speed ratio to use for all animations
|
|
152
|
+
*/
|
|
153
|
+
get speedRatio(): number;
|
|
154
|
+
/**
|
|
155
|
+
* Sets the speed ratio to use for all animations
|
|
156
|
+
*/
|
|
157
|
+
set speedRatio(value: number);
|
|
158
|
+
/**
|
|
159
|
+
* Get the max numbers of frame available in the animation group
|
|
160
|
+
*
|
|
161
|
+
* In correlation to an array, this would be ".length"
|
|
162
|
+
*/
|
|
163
|
+
get frames(): number;
|
|
164
|
+
/**
|
|
165
|
+
* Get the current frame playing right now.
|
|
166
|
+
* This can be used to poll the frame currently playing (and, for example, display a progress bar with the data)
|
|
167
|
+
*
|
|
168
|
+
* In correlation to an array, this would be the current index
|
|
169
|
+
*/
|
|
170
|
+
get currentFrame(): number;
|
|
171
|
+
/**
|
|
172
|
+
* Get the FPS value of this animation
|
|
173
|
+
*/
|
|
174
|
+
get fps(): number;
|
|
175
|
+
/**
|
|
176
|
+
* What is the animation'S play mode (looping or played once)
|
|
177
|
+
*/
|
|
178
|
+
get playMode(): AnimationPlayMode;
|
|
179
|
+
/**
|
|
180
|
+
* Set the play mode.
|
|
181
|
+
* If the animation is played, it will continue playing at least once more, depending on the new play mode set.
|
|
182
|
+
* If the animation is not set, the will be initialized and will wait for the user to start playing it.
|
|
183
|
+
*/
|
|
184
|
+
set playMode(value: AnimationPlayMode);
|
|
185
|
+
/**
|
|
186
|
+
* Reset the animation group
|
|
187
|
+
*/
|
|
188
|
+
reset(): void;
|
|
189
|
+
/**
|
|
190
|
+
* Restart the animation group
|
|
191
|
+
*/
|
|
192
|
+
restart(): void;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @param frameNumber Go to a specific frame in the animation
|
|
196
|
+
*/
|
|
197
|
+
goToFrame(frameNumber: number): void;
|
|
198
|
+
/**
|
|
199
|
+
* Start playing the animation.
|
|
200
|
+
*/
|
|
201
|
+
start(): void;
|
|
202
|
+
/**
|
|
203
|
+
* Pause the animation
|
|
204
|
+
*/
|
|
205
|
+
pause(): void;
|
|
206
|
+
/**
|
|
207
|
+
* Stop the animation.
|
|
208
|
+
* This will fail silently if the animation group is already stopped.
|
|
209
|
+
*/
|
|
210
|
+
stop(): void;
|
|
211
|
+
/**
|
|
212
|
+
* Dispose this animation object.
|
|
213
|
+
*/
|
|
214
|
+
dispose(): void;
|
|
215
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Animation play mode enum - is the animation looping or playing once
|
|
3
|
+
*/
|
|
4
|
+
export var AnimationPlayMode;
|
|
5
|
+
(function (AnimationPlayMode) {
|
|
6
|
+
AnimationPlayMode[AnimationPlayMode["ONCE"] = 0] = "ONCE";
|
|
7
|
+
AnimationPlayMode[AnimationPlayMode["LOOP"] = 1] = "LOOP";
|
|
8
|
+
})(AnimationPlayMode || (AnimationPlayMode = {}));
|
|
9
|
+
/**
|
|
10
|
+
* An enum representing the current state of an animation object
|
|
11
|
+
*/
|
|
12
|
+
export var AnimationState;
|
|
13
|
+
(function (AnimationState) {
|
|
14
|
+
AnimationState[AnimationState["INIT"] = 0] = "INIT";
|
|
15
|
+
AnimationState[AnimationState["PLAYING"] = 1] = "PLAYING";
|
|
16
|
+
AnimationState[AnimationState["PAUSED"] = 2] = "PAUSED";
|
|
17
|
+
AnimationState[AnimationState["STOPPED"] = 3] = "STOPPED";
|
|
18
|
+
AnimationState[AnimationState["ENDED"] = 4] = "ENDED";
|
|
19
|
+
})(AnimationState || (AnimationState = {}));
|
|
20
|
+
/**
|
|
21
|
+
* The different type of easing functions available
|
|
22
|
+
*/
|
|
23
|
+
export var EasingFunction;
|
|
24
|
+
(function (EasingFunction) {
|
|
25
|
+
EasingFunction[EasingFunction["Linear"] = 0] = "Linear";
|
|
26
|
+
EasingFunction[EasingFunction["CircleEase"] = 1] = "CircleEase";
|
|
27
|
+
EasingFunction[EasingFunction["BackEase"] = 2] = "BackEase";
|
|
28
|
+
EasingFunction[EasingFunction["BounceEase"] = 3] = "BounceEase";
|
|
29
|
+
EasingFunction[EasingFunction["CubicEase"] = 4] = "CubicEase";
|
|
30
|
+
EasingFunction[EasingFunction["ElasticEase"] = 5] = "ElasticEase";
|
|
31
|
+
EasingFunction[EasingFunction["ExponentialEase"] = 6] = "ExponentialEase";
|
|
32
|
+
EasingFunction[EasingFunction["PowerEase"] = 7] = "PowerEase";
|
|
33
|
+
EasingFunction[EasingFunction["QuadraticEase"] = 8] = "QuadraticEase";
|
|
34
|
+
EasingFunction[EasingFunction["QuarticEase"] = 9] = "QuarticEase";
|
|
35
|
+
EasingFunction[EasingFunction["QuinticEase"] = 10] = "QuinticEase";
|
|
36
|
+
EasingFunction[EasingFunction["SineEase"] = 11] = "SineEase";
|
|
37
|
+
})(EasingFunction || (EasingFunction = {}));
|
|
38
|
+
/**
|
|
39
|
+
* The GroupModelAnimation is an implementation of the IModelAnimation interface using BABYLON's
|
|
40
|
+
* native GroupAnimation class.
|
|
41
|
+
*/
|
|
42
|
+
var GroupModelAnimation = /** @class */ (function () {
|
|
43
|
+
/**
|
|
44
|
+
* Create a new GroupModelAnimation object using an AnimationGroup object
|
|
45
|
+
* @param _animationGroup The animation group to base the class on
|
|
46
|
+
*/
|
|
47
|
+
function GroupModelAnimation(_animationGroup) {
|
|
48
|
+
var _this = this;
|
|
49
|
+
this._animationGroup = _animationGroup;
|
|
50
|
+
this._state = AnimationState.INIT;
|
|
51
|
+
this._playMode = AnimationPlayMode.LOOP;
|
|
52
|
+
this._animationGroup.onAnimationEndObservable.add(function () {
|
|
53
|
+
_this._state = AnimationState.ENDED;
|
|
54
|
+
_this.stop();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
Object.defineProperty(GroupModelAnimation.prototype, "name", {
|
|
58
|
+
/**
|
|
59
|
+
* Get the animation's name
|
|
60
|
+
*/
|
|
61
|
+
get: function () {
|
|
62
|
+
return this._animationGroup.name;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(GroupModelAnimation.prototype, "state", {
|
|
68
|
+
/**
|
|
69
|
+
* Get the current animation's state
|
|
70
|
+
*/
|
|
71
|
+
get: function () {
|
|
72
|
+
return this._state;
|
|
73
|
+
},
|
|
74
|
+
enumerable: false,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(GroupModelAnimation.prototype, "speedRatio", {
|
|
78
|
+
/**
|
|
79
|
+
* Gets the speed ratio to use for all animations
|
|
80
|
+
*/
|
|
81
|
+
get: function () {
|
|
82
|
+
return this._animationGroup.speedRatio;
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Sets the speed ratio to use for all animations
|
|
86
|
+
*/
|
|
87
|
+
set: function (value) {
|
|
88
|
+
this._animationGroup.speedRatio = value;
|
|
89
|
+
},
|
|
90
|
+
enumerable: false,
|
|
91
|
+
configurable: true
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(GroupModelAnimation.prototype, "frames", {
|
|
94
|
+
/**
|
|
95
|
+
* Get the max numbers of frame available in the animation group
|
|
96
|
+
*
|
|
97
|
+
* In correlation to an array, this would be ".length"
|
|
98
|
+
*/
|
|
99
|
+
get: function () {
|
|
100
|
+
return this._animationGroup.to - this._animationGroup.from;
|
|
101
|
+
},
|
|
102
|
+
enumerable: false,
|
|
103
|
+
configurable: true
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(GroupModelAnimation.prototype, "currentFrame", {
|
|
106
|
+
/**
|
|
107
|
+
* Get the current frame playing right now.
|
|
108
|
+
* This can be used to poll the frame currently playing (and, for example, display a progress bar with the data)
|
|
109
|
+
*
|
|
110
|
+
* In correlation to an array, this would be the current index
|
|
111
|
+
*/
|
|
112
|
+
get: function () {
|
|
113
|
+
if (this._animationGroup.targetedAnimations[0] && this._animationGroup.targetedAnimations[0].animation.runtimeAnimations[0]) {
|
|
114
|
+
return this._animationGroup.targetedAnimations[0].animation.runtimeAnimations[0].currentFrame - this._animationGroup.from;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return 0;
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
enumerable: false,
|
|
121
|
+
configurable: true
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(GroupModelAnimation.prototype, "fps", {
|
|
124
|
+
/**
|
|
125
|
+
* Get the FPS value of this animation
|
|
126
|
+
*/
|
|
127
|
+
get: function () {
|
|
128
|
+
// get the first currentFrame found
|
|
129
|
+
for (var i = 0; i < this._animationGroup.animatables.length; ++i) {
|
|
130
|
+
var animatable = this._animationGroup.animatables[i];
|
|
131
|
+
var animations = animatable.getAnimations();
|
|
132
|
+
if (!animations || !animations.length) {
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
for (var idx = 0; idx < animations.length; ++idx) {
|
|
136
|
+
if (animations[idx].animation && animations[idx].animation.framePerSecond) {
|
|
137
|
+
return animations[idx].animation.framePerSecond;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return 0;
|
|
142
|
+
},
|
|
143
|
+
enumerable: false,
|
|
144
|
+
configurable: true
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(GroupModelAnimation.prototype, "playMode", {
|
|
147
|
+
/**
|
|
148
|
+
* What is the animation'S play mode (looping or played once)
|
|
149
|
+
*/
|
|
150
|
+
get: function () {
|
|
151
|
+
return this._playMode;
|
|
152
|
+
},
|
|
153
|
+
/**
|
|
154
|
+
* Set the play mode.
|
|
155
|
+
* If the animation is played, it will continue playing at least once more, depending on the new play mode set.
|
|
156
|
+
* If the animation is not set, the will be initialized and will wait for the user to start playing it.
|
|
157
|
+
*/
|
|
158
|
+
set: function (value) {
|
|
159
|
+
if (value === this._playMode) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
this._playMode = value;
|
|
163
|
+
if (this.state === AnimationState.PLAYING) {
|
|
164
|
+
this._animationGroup.play(this._playMode === AnimationPlayMode.LOOP);
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
this._animationGroup.reset();
|
|
168
|
+
this._state = AnimationState.INIT;
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
enumerable: false,
|
|
172
|
+
configurable: true
|
|
173
|
+
});
|
|
174
|
+
/**
|
|
175
|
+
* Reset the animation group
|
|
176
|
+
*/
|
|
177
|
+
GroupModelAnimation.prototype.reset = function () {
|
|
178
|
+
this._animationGroup.reset();
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Restart the animation group
|
|
182
|
+
*/
|
|
183
|
+
GroupModelAnimation.prototype.restart = function () {
|
|
184
|
+
if (this.state === AnimationState.PAUSED) {
|
|
185
|
+
this._animationGroup.restart();
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
this.start();
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @param frameNumber Go to a specific frame in the animation
|
|
194
|
+
*/
|
|
195
|
+
GroupModelAnimation.prototype.goToFrame = function (frameNumber) {
|
|
196
|
+
this._animationGroup.goToFrame(frameNumber + this._animationGroup.from);
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Start playing the animation.
|
|
200
|
+
*/
|
|
201
|
+
GroupModelAnimation.prototype.start = function () {
|
|
202
|
+
this._animationGroup.start(this.playMode === AnimationPlayMode.LOOP, this.speedRatio);
|
|
203
|
+
if (this._animationGroup.isStarted) {
|
|
204
|
+
this._state = AnimationState.PLAYING;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Pause the animation
|
|
209
|
+
*/
|
|
210
|
+
GroupModelAnimation.prototype.pause = function () {
|
|
211
|
+
this._animationGroup.pause();
|
|
212
|
+
this._state = AnimationState.PAUSED;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Stop the animation.
|
|
216
|
+
* This will fail silently if the animation group is already stopped.
|
|
217
|
+
*/
|
|
218
|
+
GroupModelAnimation.prototype.stop = function () {
|
|
219
|
+
// do not trigger stop if animation state is ended.
|
|
220
|
+
if (this._state === AnimationState.ENDED) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
this._animationGroup.stop();
|
|
224
|
+
if (!this._animationGroup.isStarted) {
|
|
225
|
+
this._state = AnimationState.STOPPED;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Dispose this animation object.
|
|
230
|
+
*/
|
|
231
|
+
GroupModelAnimation.prototype.dispose = function () {
|
|
232
|
+
this._animationGroup.dispose();
|
|
233
|
+
};
|
|
234
|
+
return GroupModelAnimation;
|
|
235
|
+
}());
|
|
236
|
+
export { GroupModelAnimation };
|
|
237
|
+
//# sourceMappingURL=modelAnimation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelAnimation.js","sourceRoot":"","sources":["../../../../tools/viewer/src/model/modelAnimation.ts"],"names":[],"mappings":"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","sourcesContent":["import type { Vector3 } from \"core/Maths/math.vector\";\r\n// eslint-disable-next-line import/no-internal-modules\r\nimport type { AnimationGroup, Animatable } from \"core/Animations/index\";\r\n\r\n/**\r\n * Animation play mode enum - is the animation looping or playing once\r\n */\r\nexport enum AnimationPlayMode {\r\n ONCE,\r\n LOOP,\r\n}\r\n\r\n/**\r\n * An enum representing the current state of an animation object\r\n */\r\nexport enum AnimationState {\r\n INIT,\r\n PLAYING,\r\n PAUSED,\r\n STOPPED,\r\n ENDED,\r\n}\r\n\r\n/**\r\n * The different type of easing functions available\r\n */\r\nexport enum EasingFunction {\r\n Linear = 0,\r\n CircleEase = 1,\r\n BackEase = 2,\r\n BounceEase = 3,\r\n CubicEase = 4,\r\n ElasticEase = 5,\r\n ExponentialEase = 6,\r\n PowerEase = 7,\r\n QuadraticEase = 8,\r\n QuarticEase = 9,\r\n QuinticEase = 10,\r\n SineEase = 11,\r\n}\r\n\r\n/**\r\n * Defines a simple animation to be applied to a model (scale).\r\n */\r\nexport interface ModelAnimationConfiguration {\r\n /**\r\n * Time of animation, in seconds\r\n */\r\n time: number;\r\n\r\n /**\r\n * Scale to apply\r\n */\r\n scaling?: Vector3;\r\n\r\n /**\r\n * Easing function to apply\r\n * See SPECTRE.EasingFunction\r\n */\r\n easingFunction?: number;\r\n\r\n /**\r\n * An Easing mode to apply to the easing function\r\n * See BABYLON.EasingFunction\r\n */\r\n easingMode?: number;\r\n}\r\n\r\n/**\r\n * This interface can be implemented to define new types of ModelAnimation objects.\r\n */\r\nexport interface IModelAnimation {\r\n /**\r\n * Current animation state (playing, stopped etc')\r\n */\r\n readonly state: AnimationState;\r\n /**\r\n * the name of the animation\r\n */\r\n readonly name: string;\r\n /**\r\n * Get the max numbers of frame available in the animation group\r\n *\r\n * In correlation to an array, this would be \".length\"\r\n */\r\n readonly frames: number;\r\n /**\r\n * Get the current frame playing right now.\r\n * This can be used to poll the frame currently playing (and, for example, display a progress bar with the data)\r\n *\r\n * In correlation to an array, this would be the current index\r\n */\r\n readonly currentFrame: number;\r\n /**\r\n * Animation's FPS value\r\n */\r\n readonly fps: number;\r\n /**\r\n * Get or set the animation's speed ration (Frame-to-fps)\r\n */\r\n speedRatio: number;\r\n /**\r\n * Gets or sets the aimation's play mode.\r\n */\r\n playMode: AnimationPlayMode;\r\n /**\r\n * Start the animation\r\n */\r\n start(): void;\r\n /**\r\n * Stop the animation.\r\n * This will fail silently if the animation group is already stopped.\r\n */\r\n stop(): void;\r\n /**\r\n * Pause the animation\r\n * This will fail silently if the animation is not currently playing\r\n */\r\n pause(): void;\r\n /**\r\n * Reset this animation\r\n */\r\n reset(): void;\r\n /**\r\n * Restart the animation\r\n */\r\n restart(): void;\r\n /**\r\n * Go to a specific\r\n * @param frameNumber the frame number to go to\r\n */\r\n goToFrame(frameNumber: number): void;\r\n /**\r\n * Dispose this animation\r\n */\r\n dispose(): void;\r\n}\r\n\r\n/**\r\n * The GroupModelAnimation is an implementation of the IModelAnimation interface using BABYLON's\r\n * native GroupAnimation class.\r\n */\r\nexport class GroupModelAnimation implements IModelAnimation {\r\n private _playMode: AnimationPlayMode;\r\n private _state: AnimationState;\r\n\r\n /**\r\n * Create a new GroupModelAnimation object using an AnimationGroup object\r\n * @param _animationGroup The animation group to base the class on\r\n */\r\n constructor(private _animationGroup: AnimationGroup) {\r\n this._state = AnimationState.INIT;\r\n this._playMode = AnimationPlayMode.LOOP;\r\n\r\n this._animationGroup.onAnimationEndObservable.add(() => {\r\n this._state = AnimationState.ENDED;\r\n this.stop();\r\n });\r\n }\r\n\r\n /**\r\n * Get the animation's name\r\n */\r\n public get name() {\r\n return this._animationGroup.name;\r\n }\r\n\r\n /**\r\n * Get the current animation's state\r\n */\r\n public get state() {\r\n return this._state;\r\n }\r\n\r\n /**\r\n * Gets the speed ratio to use for all animations\r\n */\r\n public get speedRatio(): number {\r\n return this._animationGroup.speedRatio;\r\n }\r\n\r\n /**\r\n * Sets the speed ratio to use for all animations\r\n */\r\n public set speedRatio(value: number) {\r\n this._animationGroup.speedRatio = value;\r\n }\r\n\r\n /**\r\n * Get the max numbers of frame available in the animation group\r\n *\r\n * In correlation to an array, this would be \".length\"\r\n */\r\n public get frames(): number {\r\n return this._animationGroup.to - this._animationGroup.from;\r\n }\r\n\r\n /**\r\n * Get the current frame playing right now.\r\n * This can be used to poll the frame currently playing (and, for example, display a progress bar with the data)\r\n *\r\n * In correlation to an array, this would be the current index\r\n */\r\n public get currentFrame(): number {\r\n if (this._animationGroup.targetedAnimations[0] && this._animationGroup.targetedAnimations[0].animation.runtimeAnimations[0]) {\r\n return this._animationGroup.targetedAnimations[0].animation.runtimeAnimations[0].currentFrame - this._animationGroup.from;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n\r\n /**\r\n * Get the FPS value of this animation\r\n */\r\n public get fps(): number {\r\n // get the first currentFrame found\r\n for (let i = 0; i < this._animationGroup.animatables.length; ++i) {\r\n const animatable: Animatable = this._animationGroup.animatables[i];\r\n const animations = animatable.getAnimations();\r\n if (!animations || !animations.length) {\r\n continue;\r\n }\r\n for (let idx = 0; idx < animations.length; ++idx) {\r\n if (animations[idx].animation && animations[idx].animation.framePerSecond) {\r\n return animations[idx].animation.framePerSecond;\r\n }\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n /**\r\n * What is the animation'S play mode (looping or played once)\r\n */\r\n public get playMode(): AnimationPlayMode {\r\n return this._playMode;\r\n }\r\n\r\n /**\r\n * Set the play mode.\r\n * If the animation is played, it will continue playing at least once more, depending on the new play mode set.\r\n * If the animation is not set, the will be initialized and will wait for the user to start playing it.\r\n */\r\n public set playMode(value: AnimationPlayMode) {\r\n if (value === this._playMode) {\r\n return;\r\n }\r\n\r\n this._playMode = value;\r\n\r\n if (this.state === AnimationState.PLAYING) {\r\n this._animationGroup.play(this._playMode === AnimationPlayMode.LOOP);\r\n } else {\r\n this._animationGroup.reset();\r\n this._state = AnimationState.INIT;\r\n }\r\n }\r\n\r\n /**\r\n * Reset the animation group\r\n */\r\n reset() {\r\n this._animationGroup.reset();\r\n }\r\n\r\n /**\r\n * Restart the animation group\r\n */\r\n restart() {\r\n if (this.state === AnimationState.PAUSED) {\r\n this._animationGroup.restart();\r\n } else {\r\n this.start();\r\n }\r\n }\r\n\r\n /**\r\n *\r\n * @param frameNumber Go to a specific frame in the animation\r\n */\r\n goToFrame(frameNumber: number) {\r\n this._animationGroup.goToFrame(frameNumber + this._animationGroup.from);\r\n }\r\n\r\n /**\r\n * Start playing the animation.\r\n */\r\n public start() {\r\n this._animationGroup.start(this.playMode === AnimationPlayMode.LOOP, this.speedRatio);\r\n if (this._animationGroup.isStarted) {\r\n this._state = AnimationState.PLAYING;\r\n }\r\n }\r\n\r\n /**\r\n * Pause the animation\r\n */\r\n pause() {\r\n this._animationGroup.pause();\r\n this._state = AnimationState.PAUSED;\r\n }\r\n\r\n /**\r\n * Stop the animation.\r\n * This will fail silently if the animation group is already stopped.\r\n */\r\n public stop() {\r\n // do not trigger stop if animation state is ended.\r\n if (this._state === AnimationState.ENDED) {\r\n return;\r\n }\r\n this._animationGroup.stop();\r\n if (!this._animationGroup.isStarted) {\r\n this._state = AnimationState.STOPPED;\r\n }\r\n }\r\n\r\n /**\r\n * Dispose this animation object.\r\n */\r\n public dispose() {\r\n this._animationGroup.dispose();\r\n }\r\n}\r\n"]}
|