@needle-tools/engine 4.7.1 → 4.7.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/CHANGELOG.md +3782 -3782
- package/LICENSE.md +10 -10
- package/README.md +64 -64
- package/components.needle.json +1 -1
- package/dist/generateMeshBVH.worker-Cdfpaq5W.js +25 -0
- package/dist/gltf-progressive-YjtQYFa9.js +1052 -0
- package/dist/gltf-progressive-yOP1mp5W.min.js +8 -0
- package/dist/gltf-progressive-zdhlW609.umd.cjs +8 -0
- package/dist/{needle-engine.bundle-CN9UC6Ju.min.js → needle-engine.bundle-BhDF-YSv.min.js} +65 -65
- package/dist/{needle-engine.bundle-B7M9iBIa.umd.cjs → needle-engine.bundle-D2myV4E4.umd.cjs} +61 -61
- package/dist/{needle-engine.bundle-BpCihhaP.js → needle-engine.bundle-gp00DTS4.js} +641 -641
- package/dist/needle-engine.d.ts +129 -130
- package/dist/needle-engine.js +4 -4
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/dist/{postprocessing-CjW23fio.umd.cjs → postprocessing-8AQTeZsr.umd.cjs} +2 -2
- package/dist/{postprocessing-xYQWCHFu.min.js → postprocessing-BDScN9yu.min.js} +2 -2
- package/dist/{postprocessing-DYLNOL3W.js → postprocessing-BkxN_08g.js} +3 -3
- package/dist/{three-DuDKwKB8.min.js → three-Boa-jOq-.min.js} +33 -33
- package/dist/{three-DrqIzZTH.js → three-Bz6X1mrw.js} +4198 -4198
- package/dist/{three-B_hneGZr.umd.cjs → three-DMrv-4ar.umd.cjs} +4 -4
- package/dist/{three-examples-X3OadjXB.umd.cjs → three-examples-C7ryg8vN.umd.cjs} +3 -3
- package/dist/{three-examples-DaDLBuy6.min.js → three-examples-DuVhxqft.min.js} +14 -14
- package/dist/{three-examples-B50TT3Iu.js → three-examples-GggCDHv0.js} +5 -5
- package/dist/{three-mesh-ui-CxuWt7m-.js → three-mesh-ui-CLNOfsWn.js} +1 -1
- package/dist/{three-mesh-ui-B3p3gyUz.min.js → three-mesh-ui-CY6Izc7C.min.js} +1 -1
- package/dist/{three-mesh-ui-CQiIQIlA.umd.cjs → three-mesh-ui-CwlN0FUC.umd.cjs} +1 -1
- package/dist/{vendor-BmYIgaS1.js → vendor-BSD1RQIh.js} +3 -3
- package/dist/{vendor-Cavtu3CP.umd.cjs → vendor-DHr4aqIZ.umd.cjs} +3 -3
- package/dist/{vendor-BlSxe9JJ.min.js → vendor-zxXa3Dmr.min.js} +3 -3
- package/lib/asap/needle-asap.d.ts +1 -1
- package/lib/asap/needle-asap.js +95 -95
- package/lib/asap/sessiongranted.d.ts +3 -3
- package/lib/asap/sessiongranted.js +65 -65
- package/lib/asap/utils.d.ts +1 -1
- package/lib/asap/utils.js +3 -3
- package/lib/engine/analytics/index.d.ts +6 -6
- package/lib/engine/analytics/index.js +12 -12
- package/lib/engine/analytics/lcp.d.ts +3 -3
- package/lib/engine/analytics/lcp.js +34 -34
- package/lib/engine/api.d.ts +82 -82
- package/lib/engine/api.js +81 -81
- package/lib/engine/assets/index.d.ts +11 -11
- package/lib/engine/assets/index.js +47 -47
- package/lib/engine/assets/static.d.ts +1 -1
- package/lib/engine/assets/static.js +4 -4
- package/lib/engine/codegen/register_types.d.ts +1 -1
- package/lib/engine/codegen/register_types.js +300 -300
- package/lib/engine/debug/debug.d.ts +15 -15
- package/lib/engine/debug/debug.js +44 -44
- package/lib/engine/debug/debug_console.d.ts +2 -2
- package/lib/engine/debug/debug_console.js +307 -307
- package/lib/engine/debug/debug_overlay.d.ts +22 -22
- package/lib/engine/debug/debug_overlay.js +316 -316
- package/lib/engine/debug/debug_spatial_console.d.ts +2 -2
- package/lib/engine/debug/debug_spatial_console.js +390 -390
- package/lib/engine/debug/index.d.ts +2 -2
- package/lib/engine/debug/index.js +2 -2
- package/lib/engine/engine_addressables.d.ts +164 -164
- package/lib/engine/engine_addressables.js +601 -601
- package/lib/engine/engine_animation.d.ts +43 -43
- package/lib/engine/engine_animation.js +133 -133
- package/lib/engine/engine_application.d.ts +45 -45
- package/lib/engine/engine_application.js +104 -104
- package/lib/engine/engine_assetdatabase.d.ts +25 -25
- package/lib/engine/engine_assetdatabase.js +346 -346
- package/lib/engine/engine_audio.d.ts +4 -4
- package/lib/engine/engine_audio.js +23 -23
- package/lib/engine/engine_camera.d.ts +13 -13
- package/lib/engine/engine_camera.js +30 -30
- package/lib/engine/engine_components.d.ts +110 -110
- package/lib/engine/engine_components.js +374 -374
- package/lib/engine/engine_components_internal.d.ts +9 -9
- package/lib/engine/engine_components_internal.js +36 -36
- package/lib/engine/engine_constants.d.ts +10 -10
- package/lib/engine/engine_constants.js +41 -41
- package/lib/engine/engine_context.d.ts +475 -475
- package/lib/engine/engine_context.js +1673 -1673
- package/lib/engine/engine_context_registry.d.ts +71 -71
- package/lib/engine/engine_context_registry.js +117 -117
- package/lib/engine/engine_coroutine.d.ts +35 -35
- package/lib/engine/engine_coroutine.js +52 -52
- package/lib/engine/engine_create_objects.d.ts +119 -119
- package/lib/engine/engine_create_objects.js +320 -320
- package/lib/engine/engine_default_parameters.d.ts +2 -2
- package/lib/engine/engine_default_parameters.js +3 -3
- package/lib/engine/engine_editor-sync.d.ts +21 -21
- package/lib/engine/engine_editor-sync.js +4 -4
- package/lib/engine/engine_fileloader.d.ts +2 -2
- package/lib/engine/engine_fileloader.js +8 -8
- package/lib/engine/engine_gameobject.d.ts +68 -68
- package/lib/engine/engine_gameobject.js +619 -619
- package/lib/engine/engine_generic_utils.d.ts +1 -1
- package/lib/engine/engine_generic_utils.js +13 -13
- package/lib/engine/engine_gizmos.d.ts +149 -149
- package/lib/engine/engine_gizmos.js +530 -530
- package/lib/engine/engine_gltf.d.ts +12 -12
- package/lib/engine/engine_gltf.js +15 -15
- package/lib/engine/engine_gltf_builtin_components.d.ts +11 -11
- package/lib/engine/engine_gltf_builtin_components.js +341 -341
- package/lib/engine/engine_hot_reload.d.ts +8 -8
- package/lib/engine/engine_hot_reload.js +197 -197
- package/lib/engine/engine_input.d.ts +362 -362
- package/lib/engine/engine_input.js +1294 -1294
- package/lib/engine/engine_input_utils.d.ts +2 -2
- package/lib/engine/engine_input_utils.js +22 -22
- package/lib/engine/engine_instancing.d.ts +19 -19
- package/lib/engine/engine_instancing.js +39 -39
- package/lib/engine/engine_license.d.ts +11 -11
- package/lib/engine/engine_license.js +369 -369
- package/lib/engine/engine_lifecycle_api.d.ts +83 -83
- package/lib/engine/engine_lifecycle_api.js +106 -106
- package/lib/engine/engine_lifecycle_functions_internal.d.ts +32 -32
- package/lib/engine/engine_lifecycle_functions_internal.js +146 -146
- package/lib/engine/engine_lightdata.d.ts +23 -23
- package/lib/engine/engine_lightdata.js +101 -101
- package/lib/engine/engine_loaders.callbacks.d.ts +97 -97
- package/lib/engine/engine_loaders.callbacks.js +86 -86
- package/lib/engine/engine_loaders.d.ts +48 -48
- package/lib/engine/engine_loaders.gltf.d.ts +13 -13
- package/lib/engine/engine_loaders.gltf.js +62 -62
- package/lib/engine/engine_loaders.js +337 -337
- package/lib/engine/engine_lods.d.ts +35 -35
- package/lib/engine/engine_lods.js +160 -160
- package/lib/engine/engine_lods.js.map +1 -1
- package/lib/engine/engine_mainloop_utils.d.ts +32 -32
- package/lib/engine/engine_mainloop_utils.js +466 -466
- package/lib/engine/engine_math.d.ts +114 -114
- package/lib/engine/engine_math.js +247 -247
- package/lib/engine/engine_modules.d.ts +36 -36
- package/lib/engine/engine_modules.js +85 -85
- package/lib/engine/engine_networking.d.ts +260 -260
- package/lib/engine/engine_networking.js +764 -764
- package/lib/engine/engine_networking_auto.d.ts +24 -24
- package/lib/engine/engine_networking_auto.js +310 -310
- package/lib/engine/engine_networking_blob.d.ts +48 -48
- package/lib/engine/engine_networking_blob.js +228 -228
- package/lib/engine/engine_networking_files.d.ts +35 -35
- package/lib/engine/engine_networking_files.js +172 -172
- package/lib/engine/engine_networking_files_default_components.d.ts +6 -6
- package/lib/engine/engine_networking_files_default_components.js +42 -42
- package/lib/engine/engine_networking_instantiate.d.ts +100 -100
- package/lib/engine/engine_networking_instantiate.js +345 -345
- package/lib/engine/engine_networking_peer.d.ts +15 -15
- package/lib/engine/engine_networking_peer.js +132 -132
- package/lib/engine/engine_networking_streams.d.ts +123 -123
- package/lib/engine/engine_networking_streams.js +645 -645
- package/lib/engine/engine_networking_types.d.ts +22 -22
- package/lib/engine/engine_networking_types.js +7 -7
- package/lib/engine/engine_networking_utils.d.ts +2 -2
- package/lib/engine/engine_networking_utils.js +20 -20
- package/lib/engine/engine_networking_websocket.d.ts +1 -1
- package/lib/engine/engine_networking_websocket.js +2 -2
- package/lib/engine/engine_patcher.d.ts +10 -10
- package/lib/engine/engine_patcher.js +142 -142
- package/lib/engine/engine_physics.d.ts +152 -152
- package/lib/engine/engine_physics.js +645 -645
- package/lib/engine/engine_physics.types.d.ts +40 -40
- package/lib/engine/engine_physics.types.js +33 -33
- package/lib/engine/engine_physics_rapier.d.ts +147 -147
- package/lib/engine/engine_physics_rapier.js +1433 -1433
- package/lib/engine/engine_playerview.d.ts +26 -26
- package/lib/engine/engine_playerview.js +64 -64
- package/lib/engine/engine_scenelighting.d.ts +71 -71
- package/lib/engine/engine_scenelighting.js +226 -226
- package/lib/engine/engine_serialization.d.ts +3 -3
- package/lib/engine/engine_serialization.js +3 -3
- package/lib/engine/engine_serialization_builtin_serializer.d.ts +72 -72
- package/lib/engine/engine_serialization_builtin_serializer.js +403 -403
- package/lib/engine/engine_serialization_core.d.ts +94 -94
- package/lib/engine/engine_serialization_core.js +607 -607
- package/lib/engine/engine_serialization_decorator.d.ts +23 -23
- package/lib/engine/engine_serialization_decorator.js +66 -66
- package/lib/engine/engine_setup.d.ts +1 -1
- package/lib/engine/engine_setup.js +2 -2
- package/lib/engine/engine_shaders.d.ts +53 -53
- package/lib/engine/engine_shaders.js +252 -252
- package/lib/engine/engine_shims.d.ts +4 -4
- package/lib/engine/engine_shims.js +24 -24
- package/lib/engine/engine_test_utils.d.ts +39 -39
- package/lib/engine/engine_test_utils.js +83 -83
- package/lib/engine/engine_texture.d.ts +28 -28
- package/lib/engine/engine_texture.js +64 -64
- package/lib/engine/engine_three_utils.d.ts +204 -204
- package/lib/engine/engine_three_utils.js +788 -788
- package/lib/engine/engine_time.d.ts +51 -51
- package/lib/engine/engine_time.js +82 -82
- package/lib/engine/engine_time_utils.d.ts +88 -88
- package/lib/engine/engine_time_utils.js +215 -215
- package/lib/engine/engine_tonemapping.d.ts +6 -6
- package/lib/engine/engine_tonemapping.js +197 -197
- package/lib/engine/engine_types.d.ts +578 -578
- package/lib/engine/engine_types.js +95 -95
- package/lib/engine/engine_typestore.d.ts +28 -28
- package/lib/engine/engine_typestore.js +55 -55
- package/lib/engine/engine_util_decorator.d.ts +13 -13
- package/lib/engine/engine_util_decorator.js +116 -116
- package/lib/engine/engine_utils.d.ts +248 -248
- package/lib/engine/engine_utils.js +1012 -1012
- package/lib/engine/engine_utils_format.d.ts +24 -24
- package/lib/engine/engine_utils_format.js +239 -239
- package/lib/engine/engine_utils_screenshot.d.ts +159 -159
- package/lib/engine/engine_utils_screenshot.js +522 -522
- package/lib/engine/engine_utils_screenshot.xr.d.ts +5 -5
- package/lib/engine/engine_utils_screenshot.xr.js +90 -90
- package/lib/engine/engine_xr.d.ts +1 -1
- package/lib/engine/engine_xr.js +1 -1
- package/lib/engine/export/gltf/Writers.d.ts +19 -19
- package/lib/engine/export/gltf/Writers.js +24 -24
- package/lib/engine/export/gltf/index.d.ts +11 -11
- package/lib/engine/export/gltf/index.js +123 -123
- package/lib/engine/export/index.d.ts +2 -2
- package/lib/engine/export/index.js +2 -2
- package/lib/engine/export/state.d.ts +7 -7
- package/lib/engine/export/state.js +17 -17
- package/lib/engine/export/utils.d.ts +2 -2
- package/lib/engine/export/utils.js +7 -7
- package/lib/engine/extensions/EXT_texture_exr.d.ts +8 -8
- package/lib/engine/extensions/EXT_texture_exr.js +32 -32
- package/lib/engine/extensions/NEEDLE_animator_controller_model.d.ts +122 -122
- package/lib/engine/extensions/NEEDLE_animator_controller_model.js +95 -95
- package/lib/engine/extensions/NEEDLE_components.d.ts +35 -35
- package/lib/engine/extensions/NEEDLE_components.js +220 -220
- package/lib/engine/extensions/NEEDLE_gameobject_data.d.ts +10 -10
- package/lib/engine/extensions/NEEDLE_gameobject_data.js +57 -57
- package/lib/engine/extensions/NEEDLE_lighting_settings.d.ts +37 -37
- package/lib/engine/extensions/NEEDLE_lighting_settings.js +157 -157
- package/lib/engine/extensions/NEEDLE_lightmaps.d.ts +18 -18
- package/lib/engine/extensions/NEEDLE_lightmaps.js +99 -99
- package/lib/engine/extensions/NEEDLE_persistent_assets.d.ts +11 -11
- package/lib/engine/extensions/NEEDLE_persistent_assets.js +63 -63
- package/lib/engine/extensions/NEEDLE_progressive.d.ts +1 -1
- package/lib/engine/extensions/NEEDLE_progressive.js +1 -1
- package/lib/engine/extensions/NEEDLE_render_objects.d.ts +13 -13
- package/lib/engine/extensions/NEEDLE_render_objects.js +159 -159
- package/lib/engine/extensions/NEEDLE_techniques_webgl.d.ts +38 -38
- package/lib/engine/extensions/NEEDLE_techniques_webgl.js +564 -564
- package/lib/engine/extensions/extension_resolver.d.ts +4 -4
- package/lib/engine/extensions/extension_resolver.js +1 -1
- package/lib/engine/extensions/extension_utils.d.ts +12 -12
- package/lib/engine/extensions/extension_utils.js +152 -152
- package/lib/engine/extensions/extensions.d.ts +32 -32
- package/lib/engine/extensions/extensions.js +107 -107
- package/lib/engine/extensions/index.d.ts +6 -6
- package/lib/engine/extensions/index.js +6 -6
- package/lib/engine/extensions/usage_tracker.d.ts +13 -13
- package/lib/engine/extensions/usage_tracker.js +65 -65
- package/lib/engine/js-extensions/Camera.d.ts +1 -1
- package/lib/engine/js-extensions/Camera.js +39 -39
- package/lib/engine/js-extensions/ExtensionUtils.d.ts +9 -9
- package/lib/engine/js-extensions/ExtensionUtils.js +67 -67
- package/lib/engine/js-extensions/Layers.d.ts +6 -6
- package/lib/engine/js-extensions/Layers.js +22 -22
- package/lib/engine/js-extensions/Object3D.d.ts +120 -120
- package/lib/engine/js-extensions/Object3D.js +136 -136
- package/lib/engine/js-extensions/RGBAColor.d.ts +23 -23
- package/lib/engine/js-extensions/RGBAColor.js +111 -111
- package/lib/engine/js-extensions/Vector.d.ts +3 -3
- package/lib/engine/js-extensions/Vector.js +13 -13
- package/lib/engine/js-extensions/index.d.ts +5 -5
- package/lib/engine/js-extensions/index.js +5 -5
- package/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.d.ts +4 -4
- package/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js +79 -79
- package/lib/engine/shaders/shaderData.d.ts +55 -55
- package/lib/engine/shaders/shaderData.js +58 -58
- package/lib/engine/tests/test_utils.d.ts +2 -2
- package/lib/engine/tests/test_utils.js +53 -53
- package/lib/engine/webcomponents/WebXRButtons.d.ts +56 -56
- package/lib/engine/webcomponents/WebXRButtons.js +230 -230
- package/lib/engine/webcomponents/api.d.ts +5 -5
- package/lib/engine/webcomponents/api.js +4 -4
- package/lib/engine/webcomponents/buttons.d.ts +51 -51
- package/lib/engine/webcomponents/buttons.js +264 -264
- package/lib/engine/webcomponents/fonts.d.ts +9 -9
- package/lib/engine/webcomponents/fonts.js +32 -32
- package/lib/engine/webcomponents/icons.d.ts +9 -9
- package/lib/engine/webcomponents/icons.js +52 -52
- package/lib/engine/webcomponents/index.d.ts +1 -1
- package/lib/engine/webcomponents/index.js +1 -1
- package/lib/engine/webcomponents/logo-element.d.ts +10 -10
- package/lib/engine/webcomponents/logo-element.js +67 -67
- package/lib/engine/webcomponents/needle menu/needle-menu-spatial.d.ts +37 -37
- package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js +513 -513
- package/lib/engine/webcomponents/needle menu/needle-menu.d.ts +155 -155
- package/lib/engine/webcomponents/needle menu/needle-menu.js +1029 -1029
- package/lib/engine/webcomponents/needle-button.d.ts +34 -34
- package/lib/engine/webcomponents/needle-button.js +161 -161
- package/lib/engine/webcomponents/needle-engine.ar-overlay.d.ts +21 -21
- package/lib/engine/webcomponents/needle-engine.ar-overlay.js +166 -166
- package/lib/engine/webcomponents/needle-engine.attributes.d.ts +69 -69
- package/lib/engine/webcomponents/needle-engine.attributes.js +1 -1
- package/lib/engine/webcomponents/needle-engine.d.ts +116 -116
- package/lib/engine/webcomponents/needle-engine.extras.d.ts +6 -6
- package/lib/engine/webcomponents/needle-engine.extras.js +13 -13
- package/lib/engine/webcomponents/needle-engine.js +821 -821
- package/lib/engine/webcomponents/needle-engine.loading.d.ts +44 -44
- package/lib/engine/webcomponents/needle-engine.loading.js +341 -341
- package/lib/engine/xr/NeedleXRController.d.ts +313 -313
- package/lib/engine/xr/NeedleXRController.js +1007 -1007
- package/lib/engine/xr/NeedleXRSession.d.ts +340 -340
- package/lib/engine/xr/NeedleXRSession.js +1463 -1463
- package/lib/engine/xr/NeedleXRSync.d.ts +22 -22
- package/lib/engine/xr/NeedleXRSync.js +188 -188
- package/lib/engine/xr/SceneTransition.d.ts +18 -18
- package/lib/engine/xr/SceneTransition.js +69 -69
- package/lib/engine/xr/TempXRContext.d.ts +34 -34
- package/lib/engine/xr/TempXRContext.js +187 -187
- package/lib/engine/xr/XRRig.d.ts +7 -7
- package/lib/engine/xr/XRRig.js +1 -1
- package/lib/engine/xr/api.d.ts +6 -6
- package/lib/engine/xr/api.js +6 -6
- package/lib/engine/xr/events.d.ts +66 -66
- package/lib/engine/xr/events.js +93 -93
- package/lib/engine/xr/internal.d.ts +12 -12
- package/lib/engine/xr/internal.js +25 -25
- package/lib/engine/xr/usdz.d.ts +12 -12
- package/lib/engine/xr/usdz.js +29 -29
- package/lib/engine/xr/utils.d.ts +11 -11
- package/lib/engine/xr/utils.js +34 -34
- package/lib/engine-components/AlignmentConstraint.d.ts +10 -10
- package/lib/engine-components/AlignmentConstraint.js +39 -39
- package/lib/engine-components/Animation.d.ts +156 -156
- package/lib/engine-components/Animation.js +508 -508
- package/lib/engine-components/AnimationCurve.d.ts +40 -40
- package/lib/engine-components/AnimationCurve.js +159 -159
- package/lib/engine-components/AnimationUtils.d.ts +8 -8
- package/lib/engine-components/AnimationUtils.js +27 -27
- package/lib/engine-components/AnimationUtilsAutoplay.d.ts +1 -1
- package/lib/engine-components/AnimationUtilsAutoplay.js +39 -39
- package/lib/engine-components/Animator.d.ts +217 -217
- package/lib/engine-components/Animator.js +354 -354
- package/lib/engine-components/AnimatorController.d.ts +227 -227
- package/lib/engine-components/AnimatorController.js +1152 -1152
- package/lib/engine-components/AudioListener.d.ts +33 -33
- package/lib/engine-components/AudioListener.js +86 -86
- package/lib/engine-components/AudioSource.d.ts +217 -217
- package/lib/engine-components/AudioSource.js +635 -635
- package/lib/engine-components/AvatarLoader.d.ts +80 -80
- package/lib/engine-components/AvatarLoader.js +231 -231
- package/lib/engine-components/AxesHelper.d.ts +32 -32
- package/lib/engine-components/AxesHelper.js +67 -67
- package/lib/engine-components/BasicIKConstraint.d.ts +9 -9
- package/lib/engine-components/BasicIKConstraint.js +43 -43
- package/lib/engine-components/BoxCollider.d.ts +2 -2
- package/lib/engine-components/BoxCollider.js +2 -2
- package/lib/engine-components/BoxHelperComponent.d.ts +47 -47
- package/lib/engine-components/BoxHelperComponent.js +102 -102
- package/lib/engine-components/Camera.d.ts +231 -231
- package/lib/engine-components/Camera.js +700 -700
- package/lib/engine-components/CameraUtils.d.ts +1 -1
- package/lib/engine-components/CameraUtils.js +123 -123
- package/lib/engine-components/CharacterController.d.ts +55 -55
- package/lib/engine-components/CharacterController.js +236 -236
- package/lib/engine-components/Collider.d.ts +188 -188
- package/lib/engine-components/Collider.js +369 -369
- package/lib/engine-components/Component.d.ts +792 -792
- package/lib/engine-components/Component.js +920 -920
- package/lib/engine-components/ContactShadows.d.ts +94 -94
- package/lib/engine-components/ContactShadows.js +453 -453
- package/lib/engine-components/DeleteBox.d.ts +19 -19
- package/lib/engine-components/DeleteBox.js +58 -58
- package/lib/engine-components/DeviceFlag.d.ts +16 -16
- package/lib/engine-components/DeviceFlag.js +47 -47
- package/lib/engine-components/DragControls.d.ts +170 -170
- package/lib/engine-components/DragControls.js +1421 -1421
- package/lib/engine-components/DropListener.d.ts +215 -215
- package/lib/engine-components/DropListener.js +642 -642
- package/lib/engine-components/Duplicatable.d.ts +35 -35
- package/lib/engine-components/Duplicatable.js +202 -202
- package/lib/engine-components/EventList.d.ts +54 -54
- package/lib/engine-components/EventList.js +232 -232
- package/lib/engine-components/EventTrigger.d.ts +33 -33
- package/lib/engine-components/EventTrigger.js +75 -75
- package/lib/engine-components/EventType.d.ts +22 -22
- package/lib/engine-components/EventType.js +23 -23
- package/lib/engine-components/Fog.d.ts +22 -22
- package/lib/engine-components/Fog.js +61 -61
- package/lib/engine-components/Gizmos.d.ts +17 -17
- package/lib/engine-components/Gizmos.js +64 -64
- package/lib/engine-components/GridHelper.d.ts +20 -20
- package/lib/engine-components/GridHelper.js +54 -54
- package/lib/engine-components/GroundProjection.d.ts +67 -67
- package/lib/engine-components/GroundProjection.js +343 -343
- package/lib/engine-components/Interactable.d.ts +12 -12
- package/lib/engine-components/Interactable.js +12 -12
- package/lib/engine-components/Joints.d.ts +19 -19
- package/lib/engine-components/Joints.js +51 -51
- package/lib/engine-components/LODGroup.d.ts +35 -35
- package/lib/engine-components/LODGroup.js +152 -152
- package/lib/engine-components/Light.d.ts +180 -180
- package/lib/engine-components/Light.js +535 -535
- package/lib/engine-components/LookAtConstraint.d.ts +19 -19
- package/lib/engine-components/LookAtConstraint.js +35 -35
- package/lib/engine-components/NeedleMenu.d.ts +50 -50
- package/lib/engine-components/NeedleMenu.js +92 -92
- package/lib/engine-components/NestedGltf.d.ts +25 -25
- package/lib/engine-components/NestedGltf.js +88 -88
- package/lib/engine-components/Networking.d.ts +54 -54
- package/lib/engine-components/Networking.js +112 -112
- package/lib/engine-components/OffsetConstraint.d.ts +14 -14
- package/lib/engine-components/OffsetConstraint.js +65 -65
- package/lib/engine-components/OrbitControls.d.ts +268 -268
- package/lib/engine-components/OrbitControls.js +1015 -1015
- package/lib/engine-components/PlayerColor.d.ts +19 -19
- package/lib/engine-components/PlayerColor.js +94 -94
- package/lib/engine-components/ReflectionProbe.d.ts +28 -28
- package/lib/engine-components/ReflectionProbe.js +204 -204
- package/lib/engine-components/Renderer.d.ts +153 -153
- package/lib/engine-components/Renderer.js +834 -834
- package/lib/engine-components/RendererInstancing.d.ts +140 -140
- package/lib/engine-components/RendererInstancing.js +744 -744
- package/lib/engine-components/RendererInstancing.js.map +1 -1
- package/lib/engine-components/RendererLightmap.d.ts +24 -24
- package/lib/engine-components/RendererLightmap.js +182 -182
- package/lib/engine-components/RigidBody.d.ts +155 -155
- package/lib/engine-components/RigidBody.js +517 -517
- package/lib/engine-components/SceneSwitcher.d.ts +263 -263
- package/lib/engine-components/SceneSwitcher.js +971 -971
- package/lib/engine-components/ScreenCapture.d.ts +144 -144
- package/lib/engine-components/ScreenCapture.js +547 -547
- package/lib/engine-components/ShadowCatcher.d.ts +33 -33
- package/lib/engine-components/ShadowCatcher.js +166 -166
- package/lib/engine-components/Skybox.d.ts +88 -88
- package/lib/engine-components/Skybox.js +469 -469
- package/lib/engine-components/SmoothFollow.d.ts +34 -34
- package/lib/engine-components/SmoothFollow.js +82 -82
- package/lib/engine-components/SpatialTrigger.d.ts +102 -102
- package/lib/engine-components/SpatialTrigger.js +225 -225
- package/lib/engine-components/SpectatorCamera.d.ts +111 -111
- package/lib/engine-components/SpectatorCamera.js +715 -715
- package/lib/engine-components/SphereCollider.d.ts +2 -2
- package/lib/engine-components/SphereCollider.js +2 -2
- package/lib/engine-components/SpriteRenderer.d.ts +132 -132
- package/lib/engine-components/SpriteRenderer.js +472 -472
- package/lib/engine-components/SyncedCamera.d.ts +41 -41
- package/lib/engine-components/SyncedCamera.js +199 -199
- package/lib/engine-components/SyncedRoom.d.ts +106 -106
- package/lib/engine-components/SyncedRoom.js +371 -371
- package/lib/engine-components/SyncedTransform.d.ts +94 -94
- package/lib/engine-components/SyncedTransform.js +331 -331
- package/lib/engine-components/TestRunner.d.ts +16 -16
- package/lib/engine-components/TestRunner.js +102 -102
- package/lib/engine-components/TransformGizmo.d.ts +75 -75
- package/lib/engine-components/TransformGizmo.js +209 -209
- package/lib/engine-components/VideoPlayer.d.ts +184 -184
- package/lib/engine-components/VideoPlayer.js +978 -978
- package/lib/engine-components/Voip.d.ts +67 -67
- package/lib/engine-components/Voip.js +360 -360
- package/lib/engine-components/api.d.ts +51 -51
- package/lib/engine-components/api.js +50 -50
- package/lib/engine-components/avatar/AvatarBlink_Simple.d.ts +11 -11
- package/lib/engine-components/avatar/AvatarBlink_Simple.js +76 -76
- package/lib/engine-components/avatar/AvatarEyeLook_Rotation.d.ts +14 -14
- package/lib/engine-components/avatar/AvatarEyeLook_Rotation.js +68 -68
- package/lib/engine-components/avatar/Avatar_Brain_LookAt.d.ts +29 -29
- package/lib/engine-components/avatar/Avatar_Brain_LookAt.js +121 -121
- package/lib/engine-components/avatar/Avatar_MouthShapes.d.ts +15 -15
- package/lib/engine-components/avatar/Avatar_MouthShapes.js +79 -79
- package/lib/engine-components/avatar/Avatar_MustacheShake.d.ts +9 -9
- package/lib/engine-components/avatar/Avatar_MustacheShake.js +29 -29
- package/lib/engine-components/codegen/components.d.ts +216 -216
- package/lib/engine-components/codegen/components.js +218 -218
- package/lib/engine-components/debug/LogStats.d.ts +5 -5
- package/lib/engine-components/debug/LogStats.js +18 -18
- package/lib/engine-components/export/gltf/GltfExport.d.ts +30 -30
- package/lib/engine-components/export/gltf/GltfExport.js +246 -246
- package/lib/engine-components/export/gltf/index.d.ts +1 -1
- package/lib/engine-components/export/gltf/index.js +1 -1
- package/lib/engine-components/export/index.d.ts +1 -1
- package/lib/engine-components/export/index.js +1 -1
- package/lib/engine-components/export/usdz/Extension.d.ts +22 -22
- package/lib/engine-components/export/usdz/Extension.js +1 -1
- package/lib/engine-components/export/usdz/ThreeUSDZExporter.d.ts +162 -162
- package/lib/engine-components/export/usdz/ThreeUSDZExporter.js +1789 -1789
- package/lib/engine-components/export/usdz/USDZExporter.d.ts +130 -130
- package/lib/engine-components/export/usdz/USDZExporter.js +663 -663
- package/lib/engine-components/export/usdz/extensions/Animation.d.ts +106 -106
- package/lib/engine-components/export/usdz/extensions/Animation.js +1071 -1071
- package/lib/engine-components/export/usdz/extensions/DocumentExtension.d.ts +5 -5
- package/lib/engine-components/export/usdz/extensions/DocumentExtension.js +6 -6
- package/lib/engine-components/export/usdz/extensions/NodeMaterialConverter.d.ts +10 -10
- package/lib/engine-components/export/usdz/extensions/NodeMaterialConverter.js +451 -451
- package/lib/engine-components/export/usdz/extensions/USDZText.d.ts +54 -54
- package/lib/engine-components/export/usdz/extensions/USDZText.js +203 -203
- package/lib/engine-components/export/usdz/extensions/USDZUI.d.ts +8 -8
- package/lib/engine-components/export/usdz/extensions/USDZUI.js +158 -158
- package/lib/engine-components/export/usdz/extensions/behavior/Actions.d.ts +30 -30
- package/lib/engine-components/export/usdz/extensions/behavior/Actions.js +88 -88
- package/lib/engine-components/export/usdz/extensions/behavior/AudioExtension.d.ts +10 -10
- package/lib/engine-components/export/usdz/extensions/behavior/AudioExtension.js +86 -86
- package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.d.ts +28 -28
- package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.js +290 -290
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.d.ts +190 -190
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +1060 -1060
- package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.d.ts +135 -135
- package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.js +548 -548
- package/lib/engine-components/export/usdz/extensions/behavior/PhysicsExtension.d.ts +7 -7
- package/lib/engine-components/export/usdz/extensions/behavior/PhysicsExtension.js +115 -115
- package/lib/engine-components/export/usdz/index.d.ts +3 -3
- package/lib/engine-components/export/usdz/index.js +2 -2
- package/lib/engine-components/export/usdz/utils/animationutils.d.ts +7 -7
- package/lib/engine-components/export/usdz/utils/animationutils.js +163 -163
- package/lib/engine-components/export/usdz/utils/quicklook.d.ts +2 -2
- package/lib/engine-components/export/usdz/utils/quicklook.js +43 -43
- package/lib/engine-components/particlesystem/ParticleSystem.d.ts +177 -177
- package/lib/engine-components/particlesystem/ParticleSystem.js +1176 -1176
- package/lib/engine-components/particlesystem/ParticleSystemModules.d.ts +526 -526
- package/lib/engine-components/particlesystem/ParticleSystemModules.js +1930 -1930
- package/lib/engine-components/particlesystem/ParticleSystemSubEmitter.d.ts +25 -25
- package/lib/engine-components/particlesystem/ParticleSystemSubEmitter.js +87 -87
- package/lib/engine-components/particlesystem/api.d.ts +2 -2
- package/lib/engine-components/particlesystem/api.js +2 -2
- package/lib/engine-components/postprocessing/Effects/Antialiasing.d.ts +17 -17
- package/lib/engine-components/postprocessing/Effects/Antialiasing.js +59 -59
- package/lib/engine-components/postprocessing/Effects/BloomEffect.d.ts +46 -46
- package/lib/engine-components/postprocessing/Effects/BloomEffect.js +113 -113
- package/lib/engine-components/postprocessing/Effects/ChromaticAberration.d.ts +11 -11
- package/lib/engine-components/postprocessing/Effects/ChromaticAberration.js +39 -39
- package/lib/engine-components/postprocessing/Effects/ColorAdjustments.d.ts +23 -23
- package/lib/engine-components/postprocessing/Effects/ColorAdjustments.js +111 -111
- package/lib/engine-components/postprocessing/Effects/DepthOfField.d.ts +25 -25
- package/lib/engine-components/postprocessing/Effects/DepthOfField.js +104 -104
- package/lib/engine-components/postprocessing/Effects/EffectWrapper.d.ts +12 -12
- package/lib/engine-components/postprocessing/Effects/EffectWrapper.js +18 -18
- package/lib/engine-components/postprocessing/Effects/Pixelation.d.ts +11 -11
- package/lib/engine-components/postprocessing/Effects/Pixelation.js +32 -32
- package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.d.ts +18 -18
- package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.js +91 -91
- package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.d.ts +70 -70
- package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js +176 -176
- package/lib/engine-components/postprocessing/Effects/Sharpening.d.ts +18 -18
- package/lib/engine-components/postprocessing/Effects/Sharpening.js +127 -127
- package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.d.ts +17 -17
- package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.js +70 -70
- package/lib/engine-components/postprocessing/Effects/Tonemapping.d.ts +19 -19
- package/lib/engine-components/postprocessing/Effects/Tonemapping.js +94 -94
- package/lib/engine-components/postprocessing/Effects/Tonemapping.utils.d.ts +13 -13
- package/lib/engine-components/postprocessing/Effects/Tonemapping.utils.js +51 -51
- package/lib/engine-components/postprocessing/Effects/Vignette.d.ts +15 -15
- package/lib/engine-components/postprocessing/Effects/Vignette.js +60 -60
- package/lib/engine-components/postprocessing/PostProcessingEffect.d.ts +90 -90
- package/lib/engine-components/postprocessing/PostProcessingEffect.js +168 -168
- package/lib/engine-components/postprocessing/PostProcessingHandler.d.ts +42 -42
- package/lib/engine-components/postprocessing/PostProcessingHandler.js +494 -494
- package/lib/engine-components/postprocessing/Volume.d.ts +90 -90
- package/lib/engine-components/postprocessing/Volume.js +385 -385
- package/lib/engine-components/postprocessing/VolumeParameter.d.ts +26 -26
- package/lib/engine-components/postprocessing/VolumeParameter.js +136 -136
- package/lib/engine-components/postprocessing/VolumeProfile.d.ts +15 -15
- package/lib/engine-components/postprocessing/VolumeProfile.js +60 -60
- package/lib/engine-components/postprocessing/index.d.ts +6 -6
- package/lib/engine-components/postprocessing/index.js +6 -6
- package/lib/engine-components/postprocessing/utils.d.ts +55 -55
- package/lib/engine-components/postprocessing/utils.js +119 -119
- package/lib/engine-components/timeline/PlayableDirector.d.ts +163 -163
- package/lib/engine-components/timeline/PlayableDirector.js +686 -686
- package/lib/engine-components/timeline/SignalAsset.d.ts +24 -24
- package/lib/engine-components/timeline/SignalAsset.js +130 -130
- package/lib/engine-components/timeline/TimelineModels.d.ts +89 -89
- package/lib/engine-components/timeline/TimelineModels.js +22 -22
- package/lib/engine-components/timeline/TimelineTracks.d.ts +110 -110
- package/lib/engine-components/timeline/TimelineTracks.js +879 -879
- package/lib/engine-components/timeline/index.d.ts +4 -4
- package/lib/engine-components/timeline/index.js +3 -3
- package/lib/engine-components/ui/BaseUIComponent.d.ts +48 -48
- package/lib/engine-components/ui/BaseUIComponent.js +170 -170
- package/lib/engine-components/ui/Button.d.ts +64 -64
- package/lib/engine-components/ui/Button.js +315 -315
- package/lib/engine-components/ui/Canvas.d.ts +74 -74
- package/lib/engine-components/ui/Canvas.js +407 -407
- package/lib/engine-components/ui/CanvasGroup.d.ts +19 -19
- package/lib/engine-components/ui/CanvasGroup.js +58 -58
- package/lib/engine-components/ui/EventSystem.d.ts +125 -125
- package/lib/engine-components/ui/EventSystem.js +765 -765
- package/lib/engine-components/ui/Graphic.d.ts +55 -55
- package/lib/engine-components/ui/Graphic.js +255 -255
- package/lib/engine-components/ui/Image.d.ts +35 -35
- package/lib/engine-components/ui/Image.js +116 -116
- package/lib/engine-components/ui/InputField.d.ts +42 -42
- package/lib/engine-components/ui/InputField.js +268 -268
- package/lib/engine-components/ui/Interfaces.d.ts +38 -38
- package/lib/engine-components/ui/Interfaces.js +12 -12
- package/lib/engine-components/ui/Layout.d.ts +84 -84
- package/lib/engine-components/ui/Layout.js +330 -330
- package/lib/engine-components/ui/Outline.d.ts +7 -7
- package/lib/engine-components/ui/Outline.js +20 -20
- package/lib/engine-components/ui/PointerEvents.d.ts +115 -115
- package/lib/engine-components/ui/PointerEvents.js +145 -145
- package/lib/engine-components/ui/RaycastUtils.d.ts +11 -11
- package/lib/engine-components/ui/RaycastUtils.js +67 -67
- package/lib/engine-components/ui/Raycaster.d.ts +30 -30
- package/lib/engine-components/ui/Raycaster.js +95 -95
- package/lib/engine-components/ui/RectTransform.d.ts +61 -61
- package/lib/engine-components/ui/RectTransform.js +356 -356
- package/lib/engine-components/ui/SpatialHtml.d.ts +8 -8
- package/lib/engine-components/ui/SpatialHtml.js +79 -79
- package/lib/engine-components/ui/Symbols.d.ts +1 -1
- package/lib/engine-components/ui/Symbols.js +1 -1
- package/lib/engine-components/ui/Text.d.ts +78 -78
- package/lib/engine-components/ui/Text.js +539 -539
- package/lib/engine-components/ui/Utils.d.ts +24 -24
- package/lib/engine-components/ui/Utils.js +90 -90
- package/lib/engine-components/ui/index.d.ts +1 -1
- package/lib/engine-components/ui/index.js +1 -1
- package/lib/engine-components/utils/EnvironmentScene.d.ts +5 -5
- package/lib/engine-components/utils/EnvironmentScene.js +205 -205
- package/lib/engine-components/utils/LookAt.d.ts +31 -31
- package/lib/engine-components/utils/LookAt.js +82 -82
- package/lib/engine-components/utils/OpenURL.d.ts +42 -42
- package/lib/engine-components/utils/OpenURL.js +119 -119
- package/lib/engine-components/webxr/Avatar.d.ts +25 -25
- package/lib/engine-components/webxr/Avatar.js +255 -255
- package/lib/engine-components/webxr/TeleportTarget.d.ts +7 -7
- package/lib/engine-components/webxr/TeleportTarget.js +7 -7
- package/lib/engine-components/webxr/WebARCameraBackground.d.ts +30 -30
- package/lib/engine-components/webxr/WebARCameraBackground.js +155 -155
- package/lib/engine-components/webxr/WebARSessionRoot.d.ts +98 -98
- package/lib/engine-components/webxr/WebARSessionRoot.js +770 -770
- package/lib/engine-components/webxr/WebXR.d.ts +232 -232
- package/lib/engine-components/webxr/WebXR.js +561 -561
- package/lib/engine-components/webxr/WebXRAvatar.d.ts +27 -27
- package/lib/engine-components/webxr/WebXRAvatar.js +44 -44
- package/lib/engine-components/webxr/WebXRImageTracking.d.ts +86 -86
- package/lib/engine-components/webxr/WebXRImageTracking.js +471 -471
- package/lib/engine-components/webxr/WebXRPlaneTracking.d.ts +92 -92
- package/lib/engine-components/webxr/WebXRPlaneTracking.js +500 -500
- package/lib/engine-components/webxr/WebXRRig.d.ts +32 -32
- package/lib/engine-components/webxr/WebXRRig.js +72 -72
- package/lib/engine-components/webxr/XRFlag.d.ts +38 -38
- package/lib/engine-components/webxr/XRFlag.js +139 -139
- package/lib/engine-components/webxr/controllers/XRControllerFollow.d.ts +47 -47
- package/lib/engine-components/webxr/controllers/XRControllerFollow.js +120 -120
- package/lib/engine-components/webxr/controllers/XRControllerModel.d.ts +43 -43
- package/lib/engine-components/webxr/controllers/XRControllerModel.js +352 -352
- package/lib/engine-components/webxr/controllers/XRControllerMovement.d.ts +78 -78
- package/lib/engine-components/webxr/controllers/XRControllerMovement.js +506 -506
- package/lib/engine-components/webxr/index.d.ts +3 -3
- package/lib/engine-components/webxr/index.js +3 -3
- package/lib/engine-components/webxr/types.d.ts +3 -3
- package/lib/engine-components/webxr/types.js +1 -1
- package/lib/engine-components-experimental/Presentation.d.ts +6 -6
- package/lib/engine-components-experimental/Presentation.js +9 -9
- package/lib/engine-components-experimental/api.d.ts +4 -4
- package/lib/engine-components-experimental/api.js +4 -4
- package/lib/engine-components-experimental/networking/PlayerSync.d.ts +156 -156
- package/lib/engine-components-experimental/networking/PlayerSync.js +377 -377
- package/lib/engine-schemes/api.d.ts +12 -12
- package/lib/engine-schemes/api.js +12 -12
- package/lib/engine-schemes/schemes.d.ts +7 -7
- package/lib/engine-schemes/schemes.js +19 -19
- package/lib/engine-schemes/synced-camera-model.d.ts +25 -25
- package/lib/engine-schemes/synced-camera-model.js +67 -67
- package/lib/engine-schemes/synced-transform-model.d.ts +31 -31
- package/lib/engine-schemes/synced-transform-model.js +66 -66
- package/lib/engine-schemes/transform.d.ts +12 -12
- package/lib/engine-schemes/transform.js +39 -39
- package/lib/engine-schemes/vec2.d.ts +10 -10
- package/lib/engine-schemes/vec2.js +25 -25
- package/lib/engine-schemes/vec3.d.ts +11 -11
- package/lib/engine-schemes/vec3.js +29 -29
- package/lib/engine-schemes/vec4.d.ts +12 -12
- package/lib/engine-schemes/vec4.js +33 -33
- package/lib/engine-schemes/vr-user-state-buffer.d.ts +37 -37
- package/lib/engine-schemes/vr-user-state-buffer.js +110 -110
- package/lib/include/three/EXT_mesh_gpu_instancing_exporter.d.ts +6 -6
- package/lib/include/three/EXT_mesh_gpu_instancing_exporter.js +45 -45
- package/lib/needle-engine.d.ts +7 -7
- package/lib/needle-engine.js +64 -64
- package/package.json +2 -2
- package/plugins/common/buildinfo.js +64 -64
- package/plugins/common/cloud.js +1 -1
- package/plugins/common/config.cjs +31 -31
- package/plugins/common/config.js +35 -35
- package/plugins/common/files.js +31 -31
- package/plugins/common/generator.js +10 -10
- package/plugins/common/license.js +452 -452
- package/plugins/common/logger.js +327 -327
- package/plugins/common/npm.js +15 -15
- package/plugins/common/timers.js +7 -7
- package/plugins/common/version.js +37 -37
- package/plugins/gltf-packer.mjs +1 -1
- package/plugins/next/alias.cjs +39 -39
- package/plugins/next/license.cjs +24 -24
- package/plugins/next/meshbvhworker.cjs +18 -18
- package/plugins/next/next.js +141 -141
- package/plugins/types/index.d.ts +2 -2
- package/plugins/types/license.d.ts +24 -24
- package/plugins/types/needleConfig.d.ts +27 -27
- package/plugins/types/next.d.ts +2 -2
- package/plugins/types/userconfig.d.ts +124 -124
- package/plugins/types/vite.d.ts +13 -13
- package/plugins/types/webmanifest.d.ts +32 -32
- package/plugins/vite/alias.js +189 -189
- package/plugins/vite/asap.js +251 -251
- package/plugins/vite/build-pipeline.js +371 -371
- package/plugins/vite/build.js +19 -19
- package/plugins/vite/buildinfo.js +41 -41
- package/plugins/vite/config.js +106 -106
- package/plugins/vite/copyfiles.js +138 -138
- package/plugins/vite/defines.js +70 -70
- package/plugins/vite/dependencies.js +232 -232
- package/plugins/vite/dependency-watcher.js +237 -237
- package/plugins/vite/drop-client.js +76 -76
- package/plugins/vite/drop.js +87 -87
- package/plugins/vite/editor-connection.js +124 -124
- package/plugins/vite/facebook-instant-games.js +102 -102
- package/plugins/vite/gzip.js +5 -5
- package/plugins/vite/imports-logger.js +143 -143
- package/plugins/vite/index.js +147 -147
- package/plugins/vite/license.js +56 -56
- package/plugins/vite/local-files.js +440 -440
- package/plugins/vite/logger.client.js +272 -272
- package/plugins/vite/logger.js +100 -100
- package/plugins/vite/materialx.js +31 -31
- package/plugins/vite/meta.js +163 -163
- package/plugins/vite/npm.js +7 -7
- package/plugins/vite/peer.js +29 -29
- package/plugins/vite/poster-client.js +73 -73
- package/plugins/vite/poster.js +79 -79
- package/plugins/vite/pwa.js +604 -604
- package/plugins/vite/reload-client.js +15 -15
- package/plugins/vite/reload.js +351 -351
- package/plugins/vite/server.js +66 -66
- package/plugins/vite/transform-codegen.js +55 -55
- package/plugins/vite/transform.js +32 -32
- package/plugins/vite/vite-4.4-hack.js +31 -31
- package/src/asap/needle-asap.ts +111 -111
- package/src/asap/sessiongranted.ts +75 -75
- package/src/asap/utils.ts +4 -4
- package/src/engine/analytics/index.ts +10 -10
- package/src/engine/analytics/lcp.ts +35 -35
- package/src/engine/api.ts +82 -82
- package/src/engine/assets/index.ts +59 -59
- package/src/engine/assets/static.js +5 -5
- package/src/engine/codegen/register_types.ts +300 -300
- package/src/engine/debug/debug.ts +51 -51
- package/src/engine/debug/debug_console.ts +333 -333
- package/src/engine/debug/debug_overlay.ts +332 -332
- package/src/engine/debug/debug_spatial_console.ts +429 -429
- package/src/engine/debug/index.ts +1 -1
- package/src/engine/engine_addressables.ts +671 -671
- package/src/engine/engine_animation.ts +145 -145
- package/src/engine/engine_application.ts +113 -113
- package/src/engine/engine_assetdatabase.ts +389 -389
- package/src/engine/engine_audio.ts +24 -24
- package/src/engine/engine_camera.ts +39 -39
- package/src/engine/engine_components.ts +366 -366
- package/src/engine/engine_components_internal.ts +40 -40
- package/src/engine/engine_constants.ts +52 -52
- package/src/engine/engine_context.ts +1824 -1824
- package/src/engine/engine_context_registry.ts +129 -129
- package/src/engine/engine_coroutine.ts +54 -54
- package/src/engine/engine_create_objects.ts +411 -411
- package/src/engine/engine_default_parameters.ts +3 -3
- package/src/engine/engine_editor-sync.ts +28 -28
- package/src/engine/engine_fileloader.js +9 -9
- package/src/engine/engine_gameobject.ts +712 -712
- package/src/engine/engine_generic_utils.js +13 -13
- package/src/engine/engine_gizmos.ts +577 -577
- package/src/engine/engine_gltf.ts +29 -29
- package/src/engine/engine_gltf_builtin_components.ts +403 -403
- package/src/engine/engine_hot_reload.ts +210 -210
- package/src/engine/engine_input.ts +1500 -1500
- package/src/engine/engine_input_utils.ts +23 -23
- package/src/engine/engine_instancing.ts +45 -45
- package/src/engine/engine_license.ts +386 -386
- package/src/engine/engine_lifecycle_api.ts +113 -113
- package/src/engine/engine_lifecycle_functions_internal.ts +193 -193
- package/src/engine/engine_lightdata.ts +125 -125
- package/src/engine/engine_loaders.callbacks.ts +136 -136
- package/src/engine/engine_loaders.gltf.ts +82 -82
- package/src/engine/engine_loaders.ts +378 -378
- package/src/engine/engine_lods.ts +186 -186
- package/src/engine/engine_mainloop_utils.ts +472 -472
- package/src/engine/engine_math.ts +282 -282
- package/src/engine/engine_modules.ts +83 -83
- package/src/engine/engine_networking.ts +862 -862
- package/src/engine/engine_networking_auto.ts +352 -352
- package/src/engine/engine_networking_blob.ts +275 -275
- package/src/engine/engine_networking_files.ts +217 -217
- package/src/engine/engine_networking_files_default_components.ts +58 -58
- package/src/engine/engine_networking_instantiate.ts +419 -419
- package/src/engine/engine_networking_peer.ts +159 -159
- package/src/engine/engine_networking_streams.ts +713 -713
- package/src/engine/engine_networking_types.ts +24 -24
- package/src/engine/engine_networking_utils.ts +23 -23
- package/src/engine/engine_networking_websocket.ts +2 -2
- package/src/engine/engine_patcher.ts +199 -199
- package/src/engine/engine_physics.ts +783 -783
- package/src/engine/engine_physics.types.ts +46 -46
- package/src/engine/engine_physics_rapier.ts +1577 -1577
- package/src/engine/engine_playerview.ts +80 -80
- package/src/engine/engine_scenelighting.ts +294 -294
- package/src/engine/engine_serialization.ts +2 -2
- package/src/engine/engine_serialization_builtin_serializer.ts +473 -473
- package/src/engine/engine_serialization_core.ts +720 -720
- package/src/engine/engine_serialization_decorator.ts +80 -80
- package/src/engine/engine_setup.ts +1 -1
- package/src/engine/engine_shaders.ts +267 -267
- package/src/engine/engine_shims.ts +32 -32
- package/src/engine/engine_test_utils.ts +109 -109
- package/src/engine/engine_texture.ts +82 -82
- package/src/engine/engine_three_utils.ts +928 -928
- package/src/engine/engine_time.ts +94 -94
- package/src/engine/engine_time_utils.ts +237 -237
- package/src/engine/engine_tonemapping.ts +208 -208
- package/src/engine/engine_types.ts +730 -730
- package/src/engine/engine_typestore.ts +63 -63
- package/src/engine/engine_util_decorator.ts +136 -136
- package/src/engine/engine_utils.ts +1115 -1115
- package/src/engine/engine_utils_format.ts +273 -273
- package/src/engine/engine_utils_screenshot.ts +708 -708
- package/src/engine/engine_utils_screenshot.xr.ts +103 -103
- package/src/engine/export/gltf/Writers.ts +34 -34
- package/src/engine/export/gltf/index.ts +158 -158
- package/src/engine/export/index.ts +2 -2
- package/src/engine/export/state.ts +19 -19
- package/src/engine/export/utils.ts +9 -9
- package/src/engine/extensions/EXT_texture_exr.ts +50 -50
- package/src/engine/extensions/NEEDLE_animator_controller_model.ts +195 -195
- package/src/engine/extensions/NEEDLE_components.ts +268 -268
- package/src/engine/extensions/NEEDLE_gameobject_data.ts +81 -81
- package/src/engine/extensions/NEEDLE_lighting_settings.ts +185 -185
- package/src/engine/extensions/NEEDLE_lightmaps.ts +119 -119
- package/src/engine/extensions/NEEDLE_persistent_assets.ts +76 -76
- package/src/engine/extensions/NEEDLE_render_objects.ts +209 -209
- package/src/engine/extensions/NEEDLE_techniques_webgl.ts +640 -640
- package/src/engine/extensions/extension_resolver.ts +4 -4
- package/src/engine/extensions/extension_utils.ts +166 -166
- package/src/engine/extensions/extensions.ts +140 -140
- package/src/engine/extensions/index.ts +5 -5
- package/src/engine/extensions/usage_tracker.ts +100 -100
- package/src/engine/js-extensions/Camera.ts +37 -37
- package/src/engine/js-extensions/ExtensionUtils.ts +85 -85
- package/src/engine/js-extensions/Layers.ts +23 -23
- package/src/engine/js-extensions/Object3D.ts +296 -296
- package/src/engine/js-extensions/RGBAColor.ts +126 -126
- package/src/engine/js-extensions/Vector.ts +18 -18
- package/src/engine/js-extensions/index.ts +4 -4
- package/src/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js +125 -125
- package/src/engine/shaders/shaderData.ts +67 -67
- package/src/engine/tests/test_utils.ts +63 -63
- package/src/engine/webcomponents/WebXRButtons.ts +260 -260
- package/src/engine/webcomponents/api.ts +6 -6
- package/src/engine/webcomponents/buttons.ts +292 -292
- package/src/engine/webcomponents/fonts.ts +41 -41
- package/src/engine/webcomponents/icons.ts +57 -57
- package/src/engine/webcomponents/index.ts +1 -1
- package/src/engine/webcomponents/logo-element.ts +78 -78
- package/src/engine/webcomponents/needle menu/needle-menu-spatial.ts +573 -573
- package/src/engine/webcomponents/needle menu/needle-menu.ts +1118 -1118
- package/src/engine/webcomponents/needle-button.ts +181 -181
- package/src/engine/webcomponents/needle-engine.ar-overlay.ts +186 -186
- package/src/engine/webcomponents/needle-engine.attributes.ts +82 -82
- package/src/engine/webcomponents/needle-engine.extras.ts +16 -16
- package/src/engine/webcomponents/needle-engine.loading.ts +373 -373
- package/src/engine/webcomponents/needle-engine.ts +860 -860
- package/src/engine/xr/NeedleXRController.ts +1125 -1125
- package/src/engine/xr/NeedleXRSession.ts +1624 -1624
- package/src/engine/xr/NeedleXRSync.ts +220 -220
- package/src/engine/xr/SceneTransition.ts +78 -78
- package/src/engine/xr/TempXRContext.ts +216 -216
- package/src/engine/xr/XRRig.ts +9 -9
- package/src/engine/xr/api.ts +5 -5
- package/src/engine/xr/events.ts +102 -102
- package/src/engine/xr/internal.ts +34 -34
- package/src/engine/xr/usdz.ts +30 -30
- package/src/engine/xr/utils.ts +39 -39
- package/src/engine-components/AlignmentConstraint.ts +36 -36
- package/src/engine-components/Animation.ts +557 -557
- package/src/engine-components/AnimationCurve.ts +150 -150
- package/src/engine-components/AnimationUtils.ts +28 -28
- package/src/engine-components/AnimationUtilsAutoplay.ts +43 -43
- package/src/engine-components/Animator.ts +397 -397
- package/src/engine-components/AnimatorController.ts +1293 -1293
- package/src/engine-components/AudioListener.ts +92 -92
- package/src/engine-components/AudioSource.ts +644 -644
- package/src/engine-components/AvatarLoader.ts +263 -263
- package/src/engine-components/AxesHelper.ts +59 -59
- package/src/engine-components/BasicIKConstraint.ts +54 -54
- package/src/engine-components/BoxCollider.ts +1 -1
- package/src/engine-components/BoxHelperComponent.ts +114 -114
- package/src/engine-components/Camera.ts +719 -719
- package/src/engine-components/CameraUtils.ts +138 -138
- package/src/engine-components/CharacterController.ts +253 -253
- package/src/engine-components/Collider.ts +374 -374
- package/src/engine-components/Component.ts +1297 -1297
- package/src/engine-components/ContactShadows.ts +506 -506
- package/src/engine-components/DeleteBox.ts +62 -62
- package/src/engine-components/DeviceFlag.ts +46 -46
- package/src/engine-components/DragControls.ts +1623 -1623
- package/src/engine-components/DropListener.ts +713 -713
- package/src/engine-components/Duplicatable.ts +198 -198
- package/src/engine-components/EventList.ts +266 -266
- package/src/engine-components/EventTrigger.ts +74 -74
- package/src/engine-components/EventType.ts +22 -22
- package/src/engine-components/Fog.ts +60 -60
- package/src/engine-components/Gizmos.ts +56 -56
- package/src/engine-components/GridHelper.ts +48 -48
- package/src/engine-components/GroundProjection.ts +356 -356
- package/src/engine-components/Interactable.ts +14 -14
- package/src/engine-components/Joints.ts +52 -52
- package/src/engine-components/LODGroup.ts +153 -153
- package/src/engine-components/Light.ts +558 -558
- package/src/engine-components/LookAtConstraint.ts +25 -25
- package/src/engine-components/NeedleMenu.ts +84 -84
- package/src/engine-components/NestedGltf.ts +86 -86
- package/src/engine-components/Networking.ts +114 -114
- package/src/engine-components/OffsetConstraint.ts +60 -60
- package/src/engine-components/OrbitControls.ts +1074 -1074
- package/src/engine-components/PlayerColor.ts +103 -103
- package/src/engine-components/ReflectionProbe.ts +220 -220
- package/src/engine-components/Renderer.ts +903 -903
- package/src/engine-components/RendererInstancing.ts +855 -855
- package/src/engine-components/RendererLightmap.ts +198 -198
- package/src/engine-components/RigidBody.ts +526 -526
- package/src/engine-components/SceneSwitcher.ts +1030 -1030
- package/src/engine-components/ScreenCapture.ts +592 -592
- package/src/engine-components/ShadowCatcher.ts +172 -172
- package/src/engine-components/Skybox.ts +475 -475
- package/src/engine-components/SmoothFollow.ts +76 -76
- package/src/engine-components/SpatialTrigger.ts +229 -229
- package/src/engine-components/SpectatorCamera.ts +787 -787
- package/src/engine-components/SphereCollider.ts +1 -1
- package/src/engine-components/SpriteRenderer.ts +468 -468
- package/src/engine-components/SyncedCamera.ts +220 -220
- package/src/engine-components/SyncedRoom.ts +380 -380
- package/src/engine-components/SyncedTransform.ts +383 -383
- package/src/engine-components/TestRunner.ts +118 -118
- package/src/engine-components/TransformGizmo.ts +219 -219
- package/src/engine-components/VideoPlayer.ts +1025 -1025
- package/src/engine-components/Voip.ts +363 -363
- package/src/engine-components/api.ts +60 -60
- package/src/engine-components/avatar/AvatarBlink_Simple.ts +69 -69
- package/src/engine-components/avatar/AvatarEyeLook_Rotation.ts +63 -63
- package/src/engine-components/avatar/Avatar_Brain_LookAt.ts +139 -139
- package/src/engine-components/avatar/Avatar_MouthShapes.ts +83 -83
- package/src/engine-components/avatar/Avatar_MustacheShake.ts +31 -31
- package/src/engine-components/codegen/components.ts +217 -217
- package/src/engine-components/debug/LogStats.ts +21 -21
- package/src/engine-components/export/gltf/GltfExport.ts +265 -265
- package/src/engine-components/export/usdz/Extension.ts +24 -24
- package/src/engine-components/export/usdz/ThreeUSDZExporter.ts +2426 -2426
- package/src/engine-components/export/usdz/USDZExporter.ts +705 -705
- package/src/engine-components/export/usdz/extensions/Animation.ts +1204 -1204
- package/src/engine-components/export/usdz/extensions/DocumentExtension.ts +9 -9
- package/src/engine-components/export/usdz/extensions/NodeMaterialConverter.ts +532 -532
- package/src/engine-components/export/usdz/extensions/USDZText.ts +240 -240
- package/src/engine-components/export/usdz/extensions/USDZUI.ts +189 -189
- package/src/engine-components/export/usdz/extensions/behavior/Actions.ts +99 -99
- package/src/engine-components/export/usdz/extensions/behavior/AudioExtension.ts +102 -102
- package/src/engine-components/export/usdz/extensions/behavior/Behaviour.ts +320 -320
- package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +1225 -1225
- package/src/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.ts +646 -646
- package/src/engine-components/export/usdz/extensions/behavior/PhysicsExtension.ts +132 -132
- package/src/engine-components/export/usdz/index.ts +2 -2
- package/src/engine-components/export/usdz/utils/animationutils.ts +191 -191
- package/src/engine-components/export/usdz/utils/quicklook.ts +50 -50
- package/src/engine-components/particlesystem/ParticleSystem.ts +1287 -1287
- package/src/engine-components/particlesystem/ParticleSystemModules.ts +1765 -1765
- package/src/engine-components/particlesystem/ParticleSystemSubEmitter.ts +111 -111
- package/src/engine-components/particlesystem/api.ts +1 -1
- package/src/engine-components/postprocessing/Effects/Antialiasing.ts +64 -64
- package/src/engine-components/postprocessing/Effects/BloomEffect.ts +116 -116
- package/src/engine-components/postprocessing/Effects/ChromaticAberration.ts +37 -37
- package/src/engine-components/postprocessing/Effects/ColorAdjustments.ts +106 -106
- package/src/engine-components/postprocessing/Effects/DepthOfField.ts +103 -103
- package/src/engine-components/postprocessing/Effects/EffectWrapper.ts +25 -25
- package/src/engine-components/postprocessing/Effects/Pixelation.ts +32 -32
- package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.ts +90 -90
- package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.ts +192 -192
- package/src/engine-components/postprocessing/Effects/Sharpening.ts +143 -143
- package/src/engine-components/postprocessing/Effects/TiltShiftEffect.ts +61 -61
- package/src/engine-components/postprocessing/Effects/Tonemapping.ts +103 -103
- package/src/engine-components/postprocessing/Effects/Tonemapping.utils.ts +60 -60
- package/src/engine-components/postprocessing/Effects/Vignette.ts +59 -59
- package/src/engine-components/postprocessing/PostProcessingEffect.ts +192 -192
- package/src/engine-components/postprocessing/PostProcessingHandler.ts +572 -572
- package/src/engine-components/postprocessing/Volume.ts +426 -426
- package/src/engine-components/postprocessing/VolumeParameter.ts +158 -158
- package/src/engine-components/postprocessing/VolumeProfile.ts +61 -61
- package/src/engine-components/postprocessing/index.ts +5 -5
- package/src/engine-components/postprocessing/utils.ts +154 -154
- package/src/engine-components/timeline/PlayableDirector.ts +722 -722
- package/src/engine-components/timeline/SignalAsset.ts +144 -144
- package/src/engine-components/timeline/TimelineModels.ts +92 -92
- package/src/engine-components/timeline/TimelineTracks.ts +967 -967
- package/src/engine-components/timeline/index.ts +3 -3
- package/src/engine-components/ui/BaseUIComponent.ts +203 -203
- package/src/engine-components/ui/Button.ts +307 -307
- package/src/engine-components/ui/Canvas.ts +419 -419
- package/src/engine-components/ui/CanvasGroup.ts +54 -54
- package/src/engine-components/ui/EventSystem.ts +854 -854
- package/src/engine-components/ui/Graphic.ts +275 -275
- package/src/engine-components/ui/Image.ts +112 -112
- package/src/engine-components/ui/InputField.ts +321 -321
- package/src/engine-components/ui/Interfaces.ts +57 -57
- package/src/engine-components/ui/Layout.ts +334 -334
- package/src/engine-components/ui/Outline.ts +13 -13
- package/src/engine-components/ui/PointerEvents.ts +206 -206
- package/src/engine-components/ui/RaycastUtils.ts +69 -69
- package/src/engine-components/ui/Raycaster.ts +102 -102
- package/src/engine-components/ui/RectTransform.ts +375 -375
- package/src/engine-components/ui/SpatialHtml.ts +79 -79
- package/src/engine-components/ui/Symbols.ts +1 -1
- package/src/engine-components/ui/Text.ts +578 -578
- package/src/engine-components/ui/Utils.ts +113 -113
- package/src/engine-components/utils/EnvironmentScene.ts +245 -245
- package/src/engine-components/utils/LookAt.ts +88 -88
- package/src/engine-components/utils/OpenURL.ts +114 -114
- package/src/engine-components/webxr/Avatar.ts +265 -265
- package/src/engine-components/webxr/TeleportTarget.ts +9 -9
- package/src/engine-components/webxr/WebARCameraBackground.ts +175 -175
- package/src/engine-components/webxr/WebARSessionRoot.ts +880 -880
- package/src/engine-components/webxr/WebXR.ts +585 -585
- package/src/engine-components/webxr/WebXRAvatar.ts +66 -66
- package/src/engine-components/webxr/WebXRImageTracking.ts +519 -519
- package/src/engine-components/webxr/WebXRPlaneTracking.ts +570 -570
- package/src/engine-components/webxr/WebXRRig.ts +77 -77
- package/src/engine-components/webxr/XRFlag.ts +147 -147
- package/src/engine-components/webxr/controllers/XRControllerFollow.ts +118 -118
- package/src/engine-components/webxr/controllers/XRControllerModel.ts +373 -373
- package/src/engine-components/webxr/controllers/XRControllerMovement.ts +550 -550
- package/src/engine-components/webxr/index.ts +2 -2
- package/src/engine-components/webxr/types.ts +3 -3
- package/src/engine-components-experimental/Presentation.ts +12 -12
- package/src/engine-components-experimental/api.ts +4 -4
- package/src/engine-components-experimental/networking/PlayerSync.ts +401 -401
- package/src/engine-schemes/COMPILE_SCHEMES.bat +3 -3
- package/src/engine-schemes/COMPILE_TS.bat +11 -11
- package/src/engine-schemes/README.md +1 -1
- package/src/engine-schemes/api.ts +12 -12
- package/src/engine-schemes/dist/api.js +17 -0
- package/src/engine-schemes/dist/api.js.meta +7 -0
- package/src/engine-schemes/dist/schemes.js +25 -0
- package/src/engine-schemes/dist/schemes.js.meta +7 -0
- package/src/engine-schemes/dist/synced-camera-model.js +74 -0
- package/src/engine-schemes/dist/synced-camera-model.js.meta +7 -0
- package/src/engine-schemes/dist/synced-transform-model.js +73 -0
- package/src/engine-schemes/dist/synced-transform-model.js.meta +7 -0
- package/src/engine-schemes/dist/transform.js +46 -0
- package/src/engine-schemes/dist/transform.js.meta +7 -0
- package/src/engine-schemes/dist/vec2.js +32 -0
- package/src/engine-schemes/dist/vec2.js.meta +7 -0
- package/src/engine-schemes/dist/vec3.js +36 -0
- package/src/engine-schemes/dist/vec3.js.meta +7 -0
- package/src/engine-schemes/dist/vec4.js +40 -0
- package/src/engine-schemes/dist/vec4.js.meta +7 -0
- package/src/engine-schemes/dist/vr-user-state-buffer.js +110 -0
- package/src/engine-schemes/dist/vr-user-state-buffer.js.meta +7 -0
- package/src/engine-schemes/schemes.ts +28 -28
- package/src/engine-schemes/synced-camera-model.ts +92 -92
- package/src/engine-schemes/synced-transform-model.ts +90 -90
- package/src/engine-schemes/syncedCamera.fbs +10 -10
- package/src/engine-schemes/transform.ts +50 -50
- package/src/engine-schemes/transforms.fbs +25 -25
- package/src/engine-schemes/vec.fbs +19 -19
- package/src/engine-schemes/vec2.ts +33 -33
- package/src/engine-schemes/vec3.ts +38 -38
- package/src/engine-schemes/vec4.ts +43 -43
- package/src/engine-schemes/vr-user-state-buffer.ts +145 -145
- package/src/engine-schemes/vrUserStateBuffer.fbs +17 -17
- package/src/include/draco/draco_decoder.js +34 -34
- package/src/include/ktx2/basis_transcoder.js +21 -21
- package/src/include/needle/arial-msdf.json +1471 -1471
- package/src/include/three/DragControls.js +231 -231
- package/src/include/three/EXT_mesh_gpu_instancing_exporter.js +66 -66
- package/src/needle-engine.ts +70 -70
- package/dist/generateMeshBVH.worker-BaNp_Xtp.js +0 -25
- package/dist/gltf-progressive-60Qk5ebF.min.js +0 -8
- package/dist/gltf-progressive-DM5ZiecW.js +0 -1060
- package/dist/gltf-progressive-wxtaVmio.umd.cjs +0 -8
|
@@ -5,12 +5,12 @@ var t_ = (o) => {
|
|
|
5
5
|
var rS = (o, t, e) => t in o ? oS(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
6
6
|
var r = (o, t, e) => rS(o, typeof t != "symbol" ? t + "" : t, e), Xf = (o, t, e) => t.has(o) || t_("Cannot " + e);
|
|
7
7
|
var ue = (o, t, e) => (Xf(o, t, "read from private field"), e ? e.call(o) : t.get(o)), mn = (o, t, e) => t.has(o) ? t_("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), gn = (o, t, e, i) => (Xf(o, t, "write to private field"), i ? i.call(o, e) : t.set(o, e), e), $l = (o, t, e) => (Xf(o, t, "access private method"), e);
|
|
8
|
-
import { Vector2 as ae, Vector3 as w, Vector4 as ye, Quaternion as W, PlaneGeometry as cs, WebGLRenderer as Zr, PerspectiveCamera as ve, OrthographicCamera as Lu, Scene as ji, Mesh as G, Texture as Fe, Uniform$1 as tn, Color as re, ShaderMaterial as ns, Box3 as Li, ShadowMaterial as b0, Euler as Ft, MeshStandardMaterial as yt, Box3Helper as aS, GridHelper as gg, Object3D as L, Material as Pe, Matrix3 as v0, Matrix4 as oe, Layers as Wo, Ray as Vo, MathUtils as Us, AxesHelper as Di, MeshBasicMaterial as Me, DoubleSide as Bi, BufferGeometry as es, Group as jo, CylinderGeometry as w0, SphereGeometry as Du, BoxGeometry as Za, SpriteMaterial as lS, Sprite as cS, Shape as hS, ExtrudeGeometry as dS, Fog as x0, DirectionalLight as rm, PointLight as yg, EdgesGeometry as uS, LineSegments as S0, LineBasicMaterial as C0, Line as
|
|
9
|
-
import { createLoaders as Cg, getRaycastMesh as T0, LODsManager as pa, NEEDLE_progressive as Ze, addDracoAndKTX2Loaders as xC, configureLoader as SC, setKTX2TranscoderLocation as CC, setDracoDecoderLocation as PC } from "./gltf-progressive-
|
|
10
|
-
import { GroundedSkybox as tl, Font as OC, TextGeometry as kC, FontLoader as MC, GLTFLoader as Qs, TransformControlsGizmo as E0, EXRLoader as Ud, RGBELoader as hm, Stats as RC, nodeFrame as TC, OrbitControls as A0, PositionalAudioHelper as EC, HorizontalBlurShader as AC, VerticalBlurShader as IC, GLTFExporter as I0, strToU8 as L0, zipSync as LC, XRControllerModelFactory as DC, XRHandMeshModel as jC, Line2 as BC, LineGeometry as FC, LineMaterial as zC, KTX2Loader as UC, TransformControls as NC, InteractiveGroup as $C, HTMLMesh as WC, VertexNormalsHelper as VC, OBJLoader as Pg, FBXLoader as D0, mergeVertices as HC } from "./three-examples-
|
|
11
|
-
import { fetchProfile as GC, MotionController as qC, $70d766613f57b014$export$2e2bcd8739ae039 as r_, ByteBuffer as XC, v5 as a_, md5 as l_, SIZE_PREFIX_LENGTH as j0, Builder as Og, createNoise4D as QC, Matrix4 as Yf, BatchedParticleRenderer as YC, ParticleSystem as KC, RenderMode as Os, ConstantColor as ZC, Vector4 as JC, ConstantValue as e1, TrailParticle as c_, WorkerBase as t1, MeshBVH as i1 } from "./vendor-
|
|
12
|
-
import { __webpack_exports__default as Ee, __webpack_exports__Text as B0, __webpack_exports__Block as F0, __webpack_exports__update as n1, SimpleStateBehavior as s1, __webpack_exports__Inline as Kf, __webpack_exports__FontLibrary as h_, ThreeMeshUI as d_ } from "./three-mesh-ui-
|
|
13
|
-
import { EffectAttribute as o1 } from "./postprocessing-
|
|
8
|
+
import { Vector2 as ae, Vector3 as w, Vector4 as ye, Quaternion as W, PlaneGeometry as cs, WebGLRenderer as Zr, PerspectiveCamera as ve, OrthographicCamera as Lu, Scene as ji, Mesh as G, Texture as Fe, Uniform$1 as tn, Color as re, ShaderMaterial as ns, Box3 as Li, ShadowMaterial as b0, Euler as Ft, MeshStandardMaterial as yt, Box3Helper as aS, GridHelper as gg, Object3D as L, Material as Pe, Matrix3 as v0, Matrix4 as oe, Layers as Wo, Ray as Vo, MathUtils as Us, AxesHelper as Di, MeshBasicMaterial as Me, DoubleSide as Bi, BufferGeometry as es, Group as jo, CylinderGeometry as w0, SphereGeometry as Du, BoxGeometry as Za, SpriteMaterial as lS, Sprite as cS, Shape as hS, ExtrudeGeometry as dS, Fog as x0, DirectionalLight as rm, PointLight as yg, EdgesGeometry as uS, LineSegments as S0, LineBasicMaterial as C0, Line as $c, BufferAttribute as _t, Raycaster as ju, Sphere as Bu, ArrayCamera as fS, Plane as Hr, SkinnedMesh as Ns, InterleavedBufferAttribute as P0, Skeleton as pS, Bone as mS, Source as gS, WebGLCubeRenderTarget as yS, CubeCamera as _S, AnimationClip as Bo, FileLoader as _g, TextureLoader as Wa, PropertyBinding as Ja, LinearSRGBColorSpace as qs, ShaderChunk as ii, UniformsLib as bS, DataTexture as bg, RGBAFormat as Fu, EquirectangularReflectionMapping as $s, SRGBColorSpace as Xs, Clock as vS, NeutralToneMapping as el, AgXToneMapping as zu, ACESFilmicToneMapping as Uu, NoToneMapping as jd, PCFSoftShadowMap$1 as wS, BasicNodeLibrary as xS, WebGLRenderTarget as ss, DepthTexture as O0, NearestFilter as Bd, LoopRepeat as SS, LoopOnce as am, AnimationMixer as vg, CompressedTexture as CS, FrontSide as Ho, Camera as PS, Frustum as i_, AudioListener as OS, PositionalAudio as kS, AudioLoader as lm, EventDispatcher as wg, BackSide as Nu, MeshDepthMaterial as MS, CustomBlending as RS, MaxEquation as TS, AmbientLight as ES, HemisphereLight as AS, AlwaysStencilFunc as IS, GreaterEqualStencilFunc as LS, NotEqualStencilFunc as DS, GreaterStencilFunc as jS, LessEqualStencilFunc as BS, EqualStencilFunc as FS, LessStencilFunc as zS, NeverStencilFunc as n_, InvertStencilOp as US, DecrementWrapStencilOp as NS, IncrementWrapStencilOp as $S, DecrementStencilOp as WS, IncrementStencilOp as VS, ReplaceStencilOp as HS, ZeroStencilOp as GS, KeepStencilOp as qS, RawShaderMaterial as k0, GLSL3 as XS, AlwaysDepth as QS, GreaterEqualDepth as YS, GreaterDepth as KS, LessEqualDepth as ZS, LessDepth as JS, NotEqualDepth as eC, EqualDepth as tC, BatchedMesh as s_, MeshPhysicalMaterial as cm, LinearFilter as Fd, UnsignedByteType as iC, RingGeometry as nC, Line3 as sC, AdditiveBlending as M0, BoxHelper as oC, SpotLight as rC, DirectionalLightHelper as aC, CameraHelper as lC, LOD as cC, Triangle as hC, NormalBlending as dC, ReinhardToneMapping as xg, LinearToneMapping as Sg, HalfFloatType as Qf, VideoTexture as uC, CubeTexture as fC, CompressedCubeTexture as pC, EquirectangularRefractionMapping as mC, VectorKeyframeTrack as gC, QuaternionKeyframeTrack as yC, Audio as _C, ShaderLib as zd, UniformsUtils as R0, MirroredRepeatWrapping as o_, MeshNormalMaterial as bC, AudioContext as vC, PMREMGenerator$1 as wC } from "./three-Bz6X1mrw.js";
|
|
9
|
+
import { createLoaders as Cg, getRaycastMesh as T0, LODsManager as pa, NEEDLE_progressive as Ze, addDracoAndKTX2Loaders as xC, configureLoader as SC, setKTX2TranscoderLocation as CC, setDracoDecoderLocation as PC } from "./gltf-progressive-YjtQYFa9.js";
|
|
10
|
+
import { GroundedSkybox as tl, Font as OC, TextGeometry as kC, FontLoader as MC, GLTFLoader as Qs, TransformControlsGizmo as E0, EXRLoader as Ud, RGBELoader as hm, Stats as RC, nodeFrame as TC, OrbitControls as A0, PositionalAudioHelper as EC, HorizontalBlurShader as AC, VerticalBlurShader as IC, GLTFExporter as I0, strToU8 as L0, zipSync as LC, XRControllerModelFactory as DC, XRHandMeshModel as jC, Line2 as BC, LineGeometry as FC, LineMaterial as zC, KTX2Loader as UC, TransformControls as NC, InteractiveGroup as $C, HTMLMesh as WC, VertexNormalsHelper as VC, OBJLoader as Pg, FBXLoader as D0, mergeVertices as HC } from "./three-examples-GggCDHv0.js";
|
|
11
|
+
import { fetchProfile as GC, MotionController as qC, $70d766613f57b014$export$2e2bcd8739ae039 as r_, ByteBuffer as XC, v5 as a_, md5 as l_, SIZE_PREFIX_LENGTH as j0, Builder as Og, createNoise4D as QC, Matrix4 as Yf, BatchedParticleRenderer as YC, ParticleSystem as KC, RenderMode as Os, ConstantColor as ZC, Vector4 as JC, ConstantValue as e1, TrailParticle as c_, WorkerBase as t1, MeshBVH as i1 } from "./vendor-BSD1RQIh.js";
|
|
12
|
+
import { __webpack_exports__default as Ee, __webpack_exports__Text as B0, __webpack_exports__Block as F0, __webpack_exports__update as n1, SimpleStateBehavior as s1, __webpack_exports__Inline as Kf, __webpack_exports__FontLibrary as h_, ThreeMeshUI as d_ } from "./three-mesh-ui-CLNOfsWn.js";
|
|
13
|
+
import { EffectAttribute as o1 } from "./postprocessing-BkxN_08g.js";
|
|
14
14
|
const Zf = /* @__PURE__ */ new Map();
|
|
15
15
|
function _i(o = ((t) => (t = globalThis.location) == null ? void 0 : t.hostname)()) {
|
|
16
16
|
if (Zf.has(o)) return Zf.get(o);
|
|
@@ -179,7 +179,7 @@ function y1() {
|
|
|
179
179
|
function _1(o) {
|
|
180
180
|
return o = o.replace(/[^a-z0-9áéíóúñü \.,_-]/gim, ""), o.trim();
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Wc(o, t, e = !0, i = !1) {
|
|
183
183
|
var n;
|
|
184
184
|
if (t == null) return null;
|
|
185
185
|
if (t.userData && t.userData.guid === o) return t;
|
|
@@ -191,12 +191,12 @@ function Vc(o, t, e = !0, i = !1) {
|
|
|
191
191
|
if (e) {
|
|
192
192
|
if (t.scenes)
|
|
193
193
|
for (const s in t.scenes) {
|
|
194
|
-
const a = t.scenes[s], l =
|
|
194
|
+
const a = t.scenes[s], l = Wc(o, a, e, i);
|
|
195
195
|
if (l) return l;
|
|
196
196
|
}
|
|
197
197
|
if (t.children)
|
|
198
198
|
for (const s in t.children) {
|
|
199
|
-
const a = t.children[s], l =
|
|
199
|
+
const a = t.children[s], l = Wc(o, a, e, i);
|
|
200
200
|
if (l) return l;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -230,26 +230,26 @@ function Vu(o, t) {
|
|
|
230
230
|
t.pre_update_callbacks.push(s);
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const zh = S("debugresolveurl"), b1 = "rel:";
|
|
234
234
|
function uL(o, t) {
|
|
235
235
|
return Jr(o, t);
|
|
236
236
|
}
|
|
237
237
|
function Jr(o, t) {
|
|
238
238
|
if (t === void 0)
|
|
239
|
-
return
|
|
239
|
+
return zh && console.warn("getPath: uri is undefined, returning uri", t), t;
|
|
240
240
|
if (t.startsWith("./"))
|
|
241
241
|
return t;
|
|
242
242
|
if (t.startsWith("http"))
|
|
243
|
-
return
|
|
243
|
+
return zh && console.warn("getPath: uri is absolute, returning uri", t), t;
|
|
244
244
|
if (o === void 0)
|
|
245
|
-
return
|
|
245
|
+
return zh && console.warn("getPath: source is undefined, returning uri", t), t;
|
|
246
246
|
t.startsWith(b1) && (t = t.substring(4));
|
|
247
247
|
const e = o.lastIndexOf("/");
|
|
248
248
|
if (e >= 0) {
|
|
249
249
|
const i = o.substring(0, e + 1);
|
|
250
250
|
for (; i.endsWith("/") && t.startsWith("/"); ) t = t.substring(1);
|
|
251
251
|
const n = i + t;
|
|
252
|
-
return
|
|
252
|
+
return zh && console.log("source:", o, `changed uri
|
|
253
253
|
from`, t, `
|
|
254
254
|
to `, n, `
|
|
255
255
|
basePath: ` + i), n;
|
|
@@ -605,8 +605,8 @@ async function P1(o, t) {
|
|
|
605
605
|
return b.src = y, b.style.width = "100%", b.style.height = "auto", b;
|
|
606
606
|
}
|
|
607
607
|
const W0 = S("debugdebug");
|
|
608
|
-
let
|
|
609
|
-
(S("noerrors") || S("nooverlaymessages")) && (
|
|
608
|
+
let Vc = !1;
|
|
609
|
+
(S("noerrors") || S("nooverlaymessages")) && (Vc = !0);
|
|
610
610
|
const Jf = "needle_engine_global_error_container";
|
|
611
611
|
var nn = /* @__PURE__ */ ((o) => (o[o.Log = 0] = "Log", o[o.Warn = 1] = "Warn", o[o.Error = 2] = "Error", o))(nn || {});
|
|
612
612
|
function Mg() {
|
|
@@ -633,13 +633,13 @@ const V0 = console.error, H0 = function(...o) {
|
|
|
633
633
|
V0.apply(console, o), T1(o), Gn(2, o), fm(...o);
|
|
634
634
|
};
|
|
635
635
|
function M1(o) {
|
|
636
|
-
|
|
636
|
+
Vc = !o, o ? console.error = H0 : console.error = V0;
|
|
637
637
|
}
|
|
638
638
|
function CL(o) {
|
|
639
639
|
return M1(o);
|
|
640
640
|
}
|
|
641
641
|
function R1() {
|
|
642
|
-
|
|
642
|
+
Vc || (W0 && console.warn("Patch console", window.location.hostname), console.error = H0, window.addEventListener("error", (o) => {
|
|
643
643
|
if (!o) return;
|
|
644
644
|
const t = o.error;
|
|
645
645
|
if (t === void 0) {
|
|
@@ -648,7 +648,7 @@ function R1() {
|
|
|
648
648
|
}
|
|
649
649
|
Gn(2, t, o.filename, o.lineno), fm(o);
|
|
650
650
|
}, !0), window.addEventListener("unhandledrejection", (o) => {
|
|
651
|
-
|
|
651
|
+
Vc || o && (o.reason ? Gn(2, o.reason.message, o.reason.stack) : Gn(2, "unhandled rejection"), fm(o));
|
|
652
652
|
}));
|
|
653
653
|
}
|
|
654
654
|
let G0 = 0;
|
|
@@ -663,7 +663,7 @@ function T1(o) {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
function Gn(o, t, e, i) {
|
|
666
|
-
if (
|
|
666
|
+
if (Vc) return;
|
|
667
667
|
const n = fe.Current, s = (n == null ? void 0 : n.domElement) ?? document.querySelector("needle-engine");
|
|
668
668
|
if (s) {
|
|
669
669
|
if (Array.isArray(t)) {
|
|
@@ -677,7 +677,7 @@ function Gn(o, t, e, i) {
|
|
|
677
677
|
!t || t.length <= 0 || E1(o, s, t);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
const
|
|
680
|
+
const wc = /* @__PURE__ */ new Map();
|
|
681
681
|
function E1(o, t, e) {
|
|
682
682
|
if (e == null) return;
|
|
683
683
|
const i = I1(t);
|
|
@@ -687,20 +687,20 @@ function E1(o, t, e) {
|
|
|
687
687
|
}
|
|
688
688
|
e.length > 400 && (e = e.substring(0, 400) + "...");
|
|
689
689
|
const n = e;
|
|
690
|
-
if (
|
|
690
|
+
if (wc.has(n))
|
|
691
691
|
return;
|
|
692
692
|
const s = L1(o, e);
|
|
693
693
|
i.prepend(s);
|
|
694
694
|
const a = () => {
|
|
695
|
-
|
|
695
|
+
wc.delete(n), y_(s);
|
|
696
696
|
};
|
|
697
|
-
|
|
697
|
+
wc.set(n, a), setTimeout(a, 1e4);
|
|
698
698
|
}
|
|
699
699
|
function PL() {
|
|
700
700
|
W0 && console.log("Clearing messages");
|
|
701
|
-
for (const o of
|
|
701
|
+
for (const o of wc.values())
|
|
702
702
|
o == null || o.call(o);
|
|
703
|
-
|
|
703
|
+
wc.clear();
|
|
704
704
|
}
|
|
705
705
|
const A1 = `
|
|
706
706
|
|
|
@@ -971,12 +971,12 @@ class X0 {
|
|
|
971
971
|
this.x.reset(t == null ? void 0 : t.x), this.y.reset(t == null ? void 0 : t.y), this.z.reset(t == null ? void 0 : t.z);
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
|
-
const
|
|
974
|
+
const _d = "needle:cameraController";
|
|
975
975
|
function B1(o) {
|
|
976
|
-
return o[
|
|
976
|
+
return o[_d];
|
|
977
977
|
}
|
|
978
978
|
function b_(o, t, e) {
|
|
979
|
-
e ? o[
|
|
979
|
+
e ? o[_d] = t : o[_d] === t && (o[_d] = null);
|
|
980
980
|
}
|
|
981
981
|
const pm = "needle:autofit";
|
|
982
982
|
function F1(o) {
|
|
@@ -1072,7 +1072,7 @@ const W1 = new on(() => new w(), 100), V1 = new w();
|
|
|
1072
1072
|
function Ke(o, t = null) {
|
|
1073
1073
|
return t || (t = W1.get()), o ? o.parent ? (o.getWorldScale(t), t) : t.copy(o.scale) : t.set(0, 0, 0);
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Hc(o, t) {
|
|
1076
1076
|
if (!o) return;
|
|
1077
1077
|
if (!o.parent) {
|
|
1078
1078
|
o.scale.copy(t);
|
|
@@ -1304,7 +1304,7 @@ function tP(o, t, e) {
|
|
|
1304
1304
|
const c = new w();
|
|
1305
1305
|
c.set(a.x / n.x, a.y / n.y, a.z / n.z);
|
|
1306
1306
|
const h = Math.min(c.x, c.y, c.z), d = (e == null ? void 0 : e.scale) !== !1;
|
|
1307
|
-
if (d &&
|
|
1307
|
+
if (d && Hc(o, Ke(o).multiplyScalar(h)), (e == null ? void 0 : e.position) !== !1) {
|
|
1308
1308
|
const u = new w();
|
|
1309
1309
|
i.getCenter(u), u.y = i.min.y;
|
|
1310
1310
|
const f = new w();
|
|
@@ -1342,21 +1342,21 @@ function ev(o, t, e, i) {
|
|
|
1342
1342
|
const s = t;
|
|
1343
1343
|
return s && (s.map ? n.color.set(1, 1, 1) : n.color.copyLinearToSRGB(s.color), n.emissive.copyLinearToSRGB(s.emissive), n.emissiveIntensity = s.emissiveIntensity, n.opacity = s.opacity, n.displacementScale = s.displacementScale, n.transparent = s.transparent, n.bumpMap = s.bumpMap, n.aoMap = s.aoMap, n.map = s.map, n.displacementMap = s.displacementMap, n.emissiveMap = s.emissiveMap, n.normalMap = s.normalMap, n.envMap = s.envMap, n.alphaMap = s.alphaMap, n.metalness = s.reflectivity, n.vertexColors = s.vertexColors, s.shininess && (n.roughness = 1 - Math.sqrt(s.shininess) / 10), n.needsUpdate = !0), e === void 0 ? o.material = n : i[e] = n, !0;
|
|
1344
1344
|
}
|
|
1345
|
-
let
|
|
1345
|
+
let Uh = !1;
|
|
1346
1346
|
O1((...o) => {
|
|
1347
1347
|
var t;
|
|
1348
1348
|
z() && ((t = fe.Current) != null && t.isInXR) && (Va(!0), tv("error", ...o));
|
|
1349
1349
|
});
|
|
1350
1350
|
function Va(o) {
|
|
1351
1351
|
if (o) {
|
|
1352
|
-
if (
|
|
1353
|
-
|
|
1352
|
+
if (Uh) return;
|
|
1353
|
+
Uh = !0, sP();
|
|
1354
1354
|
} else {
|
|
1355
|
-
if (!
|
|
1356
|
-
|
|
1355
|
+
if (!Uh) return;
|
|
1356
|
+
Uh = !1, oP();
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
const
|
|
1359
|
+
const xc = {
|
|
1360
1360
|
log: void 0,
|
|
1361
1361
|
warn: void 0,
|
|
1362
1362
|
error: void 0
|
|
@@ -1492,12 +1492,12 @@ class nP {
|
|
|
1492
1492
|
let Jt = null;
|
|
1493
1493
|
function sP() {
|
|
1494
1494
|
Jt || (Jt = new nP()), Jt.onEnable();
|
|
1495
|
-
for (const o in
|
|
1496
|
-
|
|
1495
|
+
for (const o in xc) {
|
|
1496
|
+
xc[o] = console[o];
|
|
1497
1497
|
let t = !1;
|
|
1498
1498
|
console[o] = function() {
|
|
1499
1499
|
var e;
|
|
1500
|
-
if ((e =
|
|
1500
|
+
if ((e = xc[o]) == null || e.apply(console, arguments), !t)
|
|
1501
1501
|
try {
|
|
1502
1502
|
t = !0, tv(o, ...arguments);
|
|
1503
1503
|
} finally {
|
|
@@ -1508,8 +1508,8 @@ function sP() {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
function oP() {
|
|
1510
1510
|
Jt == null || Jt.onDisable();
|
|
1511
|
-
for (const o in
|
|
1512
|
-
console[o] =
|
|
1511
|
+
for (const o in xc)
|
|
1512
|
+
console[o] = xc[o];
|
|
1513
1513
|
}
|
|
1514
1514
|
const Wl = /* @__PURE__ */ new Map();
|
|
1515
1515
|
function tv(o, ...t) {
|
|
@@ -1804,14 +1804,14 @@ qo('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
|
|
|
1804
1804
|
qo('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
|
|
1805
1805
|
qo('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
|
|
1806
1806
|
qo('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1807
|
-
qo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.
|
|
1807
|
+
qo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.2-alpha";');
|
|
1808
1808
|
qo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1809
|
-
qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Jul 31 2025
|
|
1810
|
-
qo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "
|
|
1811
|
-
const ts = "4.7.
|
|
1809
|
+
qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Jul 31 2025 18:51:16 GMT+0200 (Central European Summer Time)";');
|
|
1810
|
+
qo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9";');
|
|
1811
|
+
const ts = "4.7.2-alpha", Eg = "undefined", av = "Thu Jul 31 2025 18:51:16 GMT+0200 (Central European Summer Time)";
|
|
1812
1812
|
rv && console.log(`Engine version: ${ts} (generator: ${Eg})
|
|
1813
1813
|
Project built at ${av}`);
|
|
1814
|
-
const
|
|
1814
|
+
const bd = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9", zo = "needle_isActiveInHierarchy", Ca = "builtin_components", vd = "needle_editor_guid";
|
|
1815
1815
|
function qo(o) {
|
|
1816
1816
|
try {
|
|
1817
1817
|
(0, eval)(o);
|
|
@@ -2025,7 +2025,7 @@ class yo extends PointerEvent {
|
|
|
2025
2025
|
this._propagationStopped = !0, super.stopPropagation(), (e = this.source) == null || e.stopPropagation(), ht && console.warn("Stop propagation...", this.pointerId, this.pointerType);
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
|
-
class
|
|
2028
|
+
class Nh extends KeyboardEvent {
|
|
2029
2029
|
constructor(e, i, n) {
|
|
2030
2030
|
super(e, n);
|
|
2031
2031
|
r(this, "source");
|
|
@@ -2114,7 +2114,7 @@ class vP {
|
|
|
2114
2114
|
const e = this.keysPressed[t.code];
|
|
2115
2115
|
if (e && e.pressed) return;
|
|
2116
2116
|
this.keysPressed[t.code] = { pressed: !0, frame: this.context.time.frameCount + 1, startFrame: this.context.time.frameCount + 1, key: t.key, code: t.code };
|
|
2117
|
-
const i = new
|
|
2117
|
+
const i = new Nh("keydown", t, t);
|
|
2118
2118
|
this.onDispatchEvent(i);
|
|
2119
2119
|
});
|
|
2120
2120
|
r(this, "onKeyPressed", (t) => {
|
|
@@ -2123,7 +2123,7 @@ class vP {
|
|
|
2123
2123
|
const e = this.keysPressed[t.code];
|
|
2124
2124
|
if (!e) return;
|
|
2125
2125
|
e.pressed = !0, e.frame = this.context.time.frameCount + 1;
|
|
2126
|
-
const i = new
|
|
2126
|
+
const i = new Nh("keypress", t, t);
|
|
2127
2127
|
this.onDispatchEvent(i);
|
|
2128
2128
|
});
|
|
2129
2129
|
r(this, "onKeyUp", (t) => {
|
|
@@ -2132,7 +2132,7 @@ class vP {
|
|
|
2132
2132
|
const e = this.keysPressed[t.code];
|
|
2133
2133
|
if (!e) return;
|
|
2134
2134
|
e.pressed = !1, e.frame = this.context.time.frameCount + 1;
|
|
2135
|
-
const i = new
|
|
2135
|
+
const i = new Nh("keyup", t, t);
|
|
2136
2136
|
this.onDispatchEvent(i);
|
|
2137
2137
|
});
|
|
2138
2138
|
r(this, "onWheelWindow", (t) => {
|
|
@@ -2226,7 +2226,7 @@ class vP {
|
|
|
2226
2226
|
dispatchEvent(t) {
|
|
2227
2227
|
var i, n, s, a;
|
|
2228
2228
|
let e = !1;
|
|
2229
|
-
if (t instanceof
|
|
2229
|
+
if (t instanceof Nh) {
|
|
2230
2230
|
const l = this._eventListeners[t.type];
|
|
2231
2231
|
if (l)
|
|
2232
2232
|
for (const c of l)
|
|
@@ -2715,7 +2715,7 @@ class xP {
|
|
|
2715
2715
|
return this.gameObject.visible;
|
|
2716
2716
|
}
|
|
2717
2717
|
}
|
|
2718
|
-
const _s = S("debugwebxr"),
|
|
2718
|
+
const _s = S("debugwebxr"), $h = S("debugcustomgesture"), SP = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", CP = "generic-trigger", PP = new W().setFromEuler(new Ft(Us.degToRad(0), Us.degToRad(-90), Us.degToRad(-90))), OP = new w(0.04, -0.04, 0);
|
|
2719
2719
|
class fv {
|
|
2720
2720
|
constructor(t, e, i) {
|
|
2721
2721
|
/** the Needle XR Session */
|
|
@@ -2813,10 +2813,10 @@ class fv {
|
|
|
2813
2813
|
if (!this.emitPointerDownEvent || this.inputSource !== t.inputSource) return;
|
|
2814
2814
|
this.onUpdateFrame(t.frame), this._hasSelectEvent = !0;
|
|
2815
2815
|
const e = (n = this._layout) == null ? void 0 : n.selectComponentId, i = (l = (a = (s = this._layout) == null ? void 0 : s.components[e]) == null ? void 0 : a.gamepadIndices) == null ? void 0 : l.button;
|
|
2816
|
-
i !== void 0 && (this._selectButtonIndex = i),
|
|
2816
|
+
i !== void 0 && (this._selectButtonIndex = i), !$h && (_s && H.DrawDirection(this.rayWorldPosition, q(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this.emitPointerEvent(We.PointerDown, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
|
|
2817
2817
|
});
|
|
2818
2818
|
r(this, "onSelectEnd", (t) => {
|
|
2819
|
-
this.emitPointerUpEvent && (
|
|
2819
|
+
this.emitPointerUpEvent && ($h || this.inputSource === t.inputSource && this.emitPointerEvent(We.PointerUp, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
|
|
2820
2820
|
});
|
|
2821
2821
|
r(this, "onSequeezeStart", (t) => {
|
|
2822
2822
|
var e, i, n;
|
|
@@ -3254,7 +3254,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
|
|
|
3254
3254
|
const c = n !== this._selectButtonIndex && n !== this._squeezeButtonIndex;
|
|
3255
3255
|
if (l != null && c) {
|
|
3256
3256
|
let h = (e = this._layout) == null ? void 0 : e.gamepad[n];
|
|
3257
|
-
this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (_s ||
|
|
3257
|
+
this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (_s || $h) && console.log("Emitting pointer event", l, n, h, s.value, this.gamepad, this._layout), this.emitPointerEvent(l, n, h ?? "none", !1, null, s.value);
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
3260
|
if (this._isMetaQuestTouchController) {
|
|
@@ -3277,7 +3277,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
|
|
|
3277
3277
|
const u = this.states.pinch || new T_(), f = (0.02 + 0.01) * 1.5;
|
|
3278
3278
|
u.value = 1 - (l - 0.02) / f;
|
|
3279
3279
|
const m = l < 0.02 - 0.01, g = l > 0.02 + 0.01;
|
|
3280
|
-
m && !u.pressed ? (
|
|
3280
|
+
m && !u.pressed ? ($h && console.log("pinch start", l), u.isDown = !0, u.isUp = !1, u.pressed = !0) : g && u.pressed ? (u.isDown = !1, u.isUp = !0, u.pressed = !1) : (u.isDown = !1, u.isUp = !1), this.states.pinch = u;
|
|
3281
3281
|
}
|
|
3282
3282
|
}
|
|
3283
3283
|
}
|
|
@@ -3473,17 +3473,17 @@ function pv(o, t) {
|
|
|
3473
3473
|
n.length = 0, L_(o, s, e), s.length > 0 && (Ea.has(t) || Ea.set(t, new Array()), Ea.get(t).push(...s));
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
|
-
const
|
|
3476
|
+
const Wh = new Array(), I_ = {
|
|
3477
3477
|
context: null
|
|
3478
3478
|
};
|
|
3479
3479
|
function L_(o, t, e) {
|
|
3480
3480
|
var n, s;
|
|
3481
|
-
|
|
3481
|
+
Wh.length = 0;
|
|
3482
3482
|
for (let a = 0; a < t.length; a++)
|
|
3483
|
-
|
|
3483
|
+
Wh.push(t[a]);
|
|
3484
3484
|
let i = wm.get(o);
|
|
3485
|
-
for (let a = 0; a <
|
|
3486
|
-
const l =
|
|
3485
|
+
for (let a = 0; a < Wh.length; a++) {
|
|
3486
|
+
const l = Wh[a];
|
|
3487
3487
|
let c = !0;
|
|
3488
3488
|
if (i && i.has(l) && (c = !1), c)
|
|
3489
3489
|
try {
|
|
@@ -3525,7 +3525,7 @@ function RP(o, t) {
|
|
|
3525
3525
|
}, o ? new r_(o, t) : new r_(t);
|
|
3526
3526
|
}
|
|
3527
3527
|
async function D_() {
|
|
3528
|
-
const o = await import("./vendor-
|
|
3528
|
+
const o = await import("./vendor-BSD1RQIh.js").then((t) => t.bundler);
|
|
3529
3529
|
return console.log(o), o.default === void 0 ? o : o.default;
|
|
3530
3530
|
}
|
|
3531
3531
|
class TP {
|
|
@@ -3612,7 +3612,7 @@ class AP extends EP {
|
|
|
3612
3612
|
var Nn = /* @__PURE__ */ ((o) => (o[o.OnConnection = 0] = "OnConnection", o[o.OnRoomJoin = 1] = "OnRoomJoin", o[o.Queued = 2] = "Queued", o[o.Immediate = 3] = "Immediate", o))(Nn || {});
|
|
3613
3613
|
const j_ = "https://urls.needle.tools/default-networking-backend/index";
|
|
3614
3614
|
let hi = "wss://networking.needle.tools/socket";
|
|
3615
|
-
const Ci = !!S("debugnet"),
|
|
3615
|
+
const Ci = !!S("debugnet"), Vh = !!(Ci || S("debugowner")), Hh = S("debugnetbin");
|
|
3616
3616
|
var IP = /* @__PURE__ */ ((o) => (o.ConnectionInfo = "connection-start-info", o))(IP || {}), se = /* @__PURE__ */ ((o) => (o.Join = "join-room", o.Leave = "leave-room", o.JoinedRoom = "joined-room", o.LeftRoom = "left-room", o.UserJoinedRoom = "user-joined-room", o.UserLeftRoom = "user-left-room", o.RoomStateSent = "room-state-sent", o))(se || {});
|
|
3617
3617
|
class zL {
|
|
3618
3618
|
constructor() {
|
|
@@ -3673,7 +3673,7 @@ class yv {
|
|
|
3673
3673
|
return this._isWaitingForOwnershipResponseCallback !== null ? this : (this._isWaitingForOwnershipResponseCallback = this.waitForHasOwnershipRequestResponse.bind(this), this.connection.beginListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this.connection.send("request-has-owner", { guid: this.guid }), this);
|
|
3674
3674
|
}
|
|
3675
3675
|
waitForHasOwnershipRequestResponse(t) {
|
|
3676
|
-
t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || (
|
|
3676
|
+
t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || (Vh && console.log("request ownership", this.guid), this.requestOwnership()));
|
|
3677
3677
|
}
|
|
3678
3678
|
requestOwnershipAsync() {
|
|
3679
3679
|
return new Promise((t, e) => {
|
|
@@ -3689,7 +3689,7 @@ class yv {
|
|
|
3689
3689
|
});
|
|
3690
3690
|
}
|
|
3691
3691
|
requestOwnership() {
|
|
3692
|
-
return
|
|
3692
|
+
return Vh && console.log("Request ownership", this.guid), this.connection.send("request-ownership", { guid: this.guid }), this;
|
|
3693
3693
|
}
|
|
3694
3694
|
freeOwnership() {
|
|
3695
3695
|
return this.connection.send("remove-ownership", { guid: this.guid }), this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this;
|
|
@@ -3698,10 +3698,10 @@ class yv {
|
|
|
3698
3698
|
this.connection.stopListen("gained-ownership", this._gainSubscription), this.connection.stopListen("lost-ownership", this._lostSubscription), this.connection.stopListen("response-has-owner", this._hasOwnerResponse), this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null);
|
|
3699
3699
|
}
|
|
3700
3700
|
onGainedOwnership(t) {
|
|
3701
|
-
t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? (
|
|
3701
|
+
t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? (Vh && console.log("GAINED OWNERSHIP", this.guid), this._hasOwnership = !0) : this._hasOwnership = !1);
|
|
3702
3702
|
}
|
|
3703
3703
|
onLostOwnership(t) {
|
|
3704
|
-
t === this.guid && (
|
|
3704
|
+
t === this.guid && (Vh && console.log("LOST OWNERSHIP", this.guid), this._hasOwnership = !1, this._isOwned = !1);
|
|
3705
3705
|
}
|
|
3706
3706
|
}
|
|
3707
3707
|
class DP {
|
|
@@ -3838,7 +3838,7 @@ class DP {
|
|
|
3838
3838
|
/** Send a binary message to the server (broadcasted to all connected users) */
|
|
3839
3839
|
sendBinary(t) {
|
|
3840
3840
|
var e;
|
|
3841
|
-
|
|
3841
|
+
Hh && console.log("<< send binary", this.context.time.frame, t.length / 1024 + " KB"), (e = this._ws) == null || e.send(t);
|
|
3842
3842
|
}
|
|
3843
3843
|
sendBufferedMessagesNow() {
|
|
3844
3844
|
var i;
|
|
@@ -3955,7 +3955,7 @@ class DP {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
console.debug(`⊡ Connecting to networking backend on
|
|
3957
3957
|
` + hi);
|
|
3958
|
-
const s = await import("./vendor-
|
|
3958
|
+
const s = await import("./vendor-BSD1RQIh.js").then((u) => u.index), a = ((h = s.default) == null ? void 0 : h.WebsocketBuilder) ?? s.WebsocketBuilder, l = ((d = s.default) == null ? void 0 : d.ExponentialBackoff) ?? s.ExponentialBackoff, c = new a(hi).withMaxRetries(10).withBackoff(new l(2e3, 4)).onOpen(() => {
|
|
3959
3959
|
this._connectingToWebsocketPromise = null, this._ws = c, this.connected = !0, z() || Ci ? console.log(`⊞ Connected to networking backend
|
|
3960
3960
|
` + hi) : console.debug("⊞ Connected to networking backend", hi), n(!0), this.onSendQueued(Nn.OnConnection);
|
|
3961
3961
|
}).onClose((u) => {
|
|
@@ -3990,7 +3990,7 @@ class DP {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
3992
|
async handleIncomingBinaryMessage(t) {
|
|
3993
|
-
|
|
3993
|
+
Hh && console.log("<< bin", this.context.time.frame);
|
|
3994
3994
|
const e = await t.arrayBuffer();
|
|
3995
3995
|
var i = new Uint8Array(e);
|
|
3996
3996
|
const n = new XC(i), s = n.getBufferIdentifier(), a = this._listenersBinary[s], l = kP(n), c = MP(l);
|
|
@@ -4017,7 +4017,7 @@ class DP {
|
|
|
4017
4017
|
if (Ci && console.log(t), t) {
|
|
4018
4018
|
this._isInRoom = !0;
|
|
4019
4019
|
const c = t;
|
|
4020
|
-
this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (
|
|
4020
|
+
this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (Hh || z()) && console.debug("Joined Needle Engine Room: " + c.room);
|
|
4021
4021
|
const h = new URL(window.location.href);
|
|
4022
4022
|
h.searchParams.has("room") && h.searchParams.delete("room"), h.searchParams.set("view", this._currentRoomViewId), console.debug(`Room view id: ${this._currentRoomViewId}
|
|
4023
4023
|
${h.href}`);
|
|
@@ -4026,7 +4026,7 @@ ${h.href}`);
|
|
|
4026
4026
|
break;
|
|
4027
4027
|
case "left-room":
|
|
4028
4028
|
const a = t;
|
|
4029
|
-
a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (
|
|
4029
|
+
a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (Hh || z()) && console.debug("Left Needle Engine Room: " + a.room));
|
|
4030
4030
|
break;
|
|
4031
4031
|
case "user-joined-room":
|
|
4032
4032
|
if (t.data) {
|
|
@@ -4086,7 +4086,7 @@ ${h.href}`);
|
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
4088
|
}
|
|
4089
|
-
const
|
|
4089
|
+
const Sc = S("debugwebxr");
|
|
4090
4090
|
class rp {
|
|
4091
4091
|
constructor(t, e) {
|
|
4092
4092
|
r(this, "controllerStates", []);
|
|
@@ -4094,7 +4094,7 @@ class rp {
|
|
|
4094
4094
|
r(this, "context");
|
|
4095
4095
|
r(this, "userStateEvtName");
|
|
4096
4096
|
r(this, "onReceivedControllerState", (t) => {
|
|
4097
|
-
|
|
4097
|
+
Sc && console.log(`XRSync: Received change for ${this.userId}: ${t.type} ${t.handedness}; tracked=${t.isTracking}`);
|
|
4098
4098
|
let e = !1;
|
|
4099
4099
|
for (let i = 0; i < this.controllerStates.length; i++)
|
|
4100
4100
|
if (this.controllerStates[i].index === t.index) {
|
|
@@ -4115,7 +4115,7 @@ class rp {
|
|
|
4115
4115
|
let n = !1;
|
|
4116
4116
|
for (let s = 0; s < t.controllers.length; s++)
|
|
4117
4117
|
t.controllers[s].index === i.index && (n = !0);
|
|
4118
|
-
n || (
|
|
4118
|
+
n || (Sc && console.log(`XRSync: ${i.type} ${i.handedness} removed`, i.index), this.controllerStates.splice(e, 1), this.sendControllerRemoved(i));
|
|
4119
4119
|
}
|
|
4120
4120
|
for (const e of t.controllers)
|
|
4121
4121
|
this.updateControllerStates(e);
|
|
@@ -4142,7 +4142,7 @@ class rp {
|
|
|
4142
4142
|
index: t.index,
|
|
4143
4143
|
type: t.hand ? "hand" : "controller"
|
|
4144
4144
|
};
|
|
4145
|
-
this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i),
|
|
4145
|
+
this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i), Sc && console.log(`XRSync: ${i.type} ${i.handedness} added`, i.index);
|
|
4146
4146
|
}
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
@@ -4151,7 +4151,7 @@ class jP {
|
|
|
4151
4151
|
r(this, "context");
|
|
4152
4152
|
r(this, "onJoinedRoom", () => {
|
|
4153
4153
|
if (this.context.connection.connectionId) {
|
|
4154
|
-
this._states.has(this.context.connection.connectionId) || (
|
|
4154
|
+
this._states.has(this.context.connection.connectionId) || (Sc && console.log("XRSync: Local user joined room", this.context.connection.connectionId), this._states.set(this.context.connection.connectionId, new rp(this.context.connection.connectionId, this.context)));
|
|
4155
4155
|
for (const t of this.context.connection.usersInRoom())
|
|
4156
4156
|
this._states.has(t) || this._states.set(t, new rp(t, this.context));
|
|
4157
4157
|
}
|
|
@@ -4164,7 +4164,7 @@ class jP {
|
|
|
4164
4164
|
});
|
|
4165
4165
|
r(this, "onOtherUserJoinedRoom", (t) => {
|
|
4166
4166
|
const e = t.userId;
|
|
4167
|
-
this._states.has(e) || (
|
|
4167
|
+
this._states.has(e) || (Sc && console.log("XRSync: Remote user joined room", e), this._states.set(e, new rp(e, this.context)));
|
|
4168
4168
|
});
|
|
4169
4169
|
r(this, "onOtherUserLeftRoom", (t) => {
|
|
4170
4170
|
const e = t.userId;
|
|
@@ -4252,7 +4252,7 @@ class B_ {
|
|
|
4252
4252
|
return this._transitionPromise = t, t;
|
|
4253
4253
|
}
|
|
4254
4254
|
}
|
|
4255
|
-
var rl = /* @__PURE__ */ ((o) => (o[o.Quad = 0] = "Quad", o[o.Cube = 1] = "Cube", o[o.Sphere = 2] = "Sphere", o[o.Cylinder = 3] = "Cylinder", o[o.RoundedCube = 10] = "RoundedCube", o))(rl || {}),
|
|
4255
|
+
var rl = /* @__PURE__ */ ((o) => (o[o.Quad = 0] = "Quad", o[o.Cube = 1] = "Cube", o[o.Sphere = 2] = "Sphere", o[o.Cylinder = 3] = "Cylinder", o[o.RoundedCube = 10] = "RoundedCube", o))(rl || {}), ah, xm;
|
|
4256
4256
|
class ta {
|
|
4257
4257
|
/**
|
|
4258
4258
|
* Creates a 3D text object
|
|
@@ -4262,10 +4262,10 @@ class ta {
|
|
|
4262
4262
|
static createText(t, e) {
|
|
4263
4263
|
let i = null;
|
|
4264
4264
|
const n = (e == null ? void 0 : e.font) || FP((e == null ? void 0 : e.familyFamily) || null);
|
|
4265
|
-
n instanceof OC ? i = $l(this,
|
|
4265
|
+
n instanceof OC ? i = $l(this, ah, xm).call(this, t, n, e) : i == null && (i = new es());
|
|
4266
4266
|
const s = (e == null ? void 0 : e.color) || 16777215, a = new G(i, (e == null ? void 0 : e.material) ?? new yt({ color: s }));
|
|
4267
4267
|
return this.applyDefaultObjectOptions(a, e), n instanceof Promise ? n.then((l) => {
|
|
4268
|
-
a.geometry = $l(this,
|
|
4268
|
+
a.geometry = $l(this, ah, xm).call(this, t, l, e), e != null && e.onGeometry && e.onGeometry(a);
|
|
4269
4269
|
}) : e != null && e.onGeometry && e.onGeometry(a), a;
|
|
4270
4270
|
}
|
|
4271
4271
|
/**
|
|
@@ -4337,7 +4337,7 @@ class ta {
|
|
|
4337
4337
|
t.receiveShadow = !0, t.castShadow = !0, e != null && e.name && (t.name = e.name), e != null && e.position && (Array.isArray(e.position) ? t.position.set(e.position[0], e.position[1], e.position[2]) : t.position.set(e.position.x, e.position.y, e.position.z)), e != null && e.rotation && (Array.isArray(e.rotation) ? t.rotation.set(e.rotation[0], e.rotation[1], e.rotation[2]) : t.rotation.set(e.rotation.x, e.rotation.y, e.rotation.z)), e != null && e.scale && (typeof e.scale == "number" ? t.scale.set(e.scale, e.scale, e.scale) : Array.isArray(e.scale) ? t.scale.set(e.scale[0], e.scale[1], e.scale[2]) : t.scale.set(e.scale.x, e.scale.y, e.scale.z)), (e == null ? void 0 : e.receiveShadow) != null && (t.receiveShadow = e.receiveShadow), (e == null ? void 0 : e.castShadow) != null && (t.castShadow = e.castShadow), e != null && e.parent && e.parent.add(t);
|
|
4338
4338
|
}
|
|
4339
4339
|
}
|
|
4340
|
-
|
|
4340
|
+
ah = new WeakSet(), xm = function(t, e, i) {
|
|
4341
4341
|
const n = (i == null ? void 0 : i.depth) || 0.1;
|
|
4342
4342
|
return new kC(t, {
|
|
4343
4343
|
font: e,
|
|
@@ -4349,7 +4349,7 @@ lh = new WeakSet(), xm = function(t, e, i) {
|
|
|
4349
4349
|
bevelOffset: 0.01,
|
|
4350
4350
|
bevelSize: 0.01
|
|
4351
4351
|
});
|
|
4352
|
-
}, mn(ta,
|
|
4352
|
+
}, mn(ta, ah);
|
|
4353
4353
|
function BP(o, t, e, i, n) {
|
|
4354
4354
|
const s = new hS(), a = 1e-5, l = i - a;
|
|
4355
4355
|
s.absarc(a, a, a, -Math.PI / 2, -Math.PI, !0), s.absarc(a, t - l * 2, a, Math.PI, Math.PI / 2, !0), s.absarc(o - l * 2, t - l * 2, a, Math.PI / 2, 0, !0), s.absarc(o - l * 2, a, a, 0, -Math.PI / 2, !0);
|
|
@@ -4363,7 +4363,7 @@ function BP(o, t, e, i, n) {
|
|
|
4363
4363
|
});
|
|
4364
4364
|
return c.scale(1, 1, 1 - i), c.center(), c.computeVertexNormals(), c;
|
|
4365
4365
|
}
|
|
4366
|
-
const
|
|
4366
|
+
const Gh = /* @__PURE__ */ new Map();
|
|
4367
4367
|
function FP(o) {
|
|
4368
4368
|
let t = "";
|
|
4369
4369
|
switch (o) {
|
|
@@ -4375,16 +4375,16 @@ function FP(o) {
|
|
|
4375
4375
|
t = "https://raw.githubusercontent.com/mrdoob/three.js/master/examples/fonts/helvetiker_regular.typeface.json";
|
|
4376
4376
|
break;
|
|
4377
4377
|
}
|
|
4378
|
-
if (
|
|
4379
|
-
const n =
|
|
4378
|
+
if (Gh.has(t)) {
|
|
4379
|
+
const n = Gh.get(t);
|
|
4380
4380
|
if (n) return n;
|
|
4381
4381
|
}
|
|
4382
4382
|
const e = new MC(), i = new Promise((n, s) => {
|
|
4383
4383
|
e.load(t, (a) => {
|
|
4384
|
-
|
|
4384
|
+
Gh.set(t, a), n(a);
|
|
4385
4385
|
}, void 0, s);
|
|
4386
4386
|
});
|
|
4387
|
-
return
|
|
4387
|
+
return Gh.set(t, i), i;
|
|
4388
4388
|
}
|
|
4389
4389
|
let ap = !1, lp = null;
|
|
4390
4390
|
function zP(o, t) {
|
|
@@ -4421,7 +4421,7 @@ function F_(o, t) {
|
|
|
4421
4421
|
function z_() {
|
|
4422
4422
|
return new jo().add(ta.createPrimitive("Sphere", { material: new Me({ transparent: !0, opacity: 0.1 }) }));
|
|
4423
4423
|
}
|
|
4424
|
-
const
|
|
4424
|
+
const jc = class jc {
|
|
4425
4425
|
constructor(t, e, i) {
|
|
4426
4426
|
r(this, "_session");
|
|
4427
4427
|
r(this, "_mode");
|
|
@@ -4456,7 +4456,7 @@ const Bc = class Bc {
|
|
|
4456
4456
|
const i = await navigator.xr.requestSession(t, e);
|
|
4457
4457
|
return i.addEventListener("end", () => {
|
|
4458
4458
|
this._active = null;
|
|
4459
|
-
}), this._requestInFlight ? (this._requestInFlight = !1, this._active = new
|
|
4459
|
+
}), this._requestInFlight ? (this._requestInFlight = !1, this._active = new jc(t, e, i), this._active) : (i.end(), null);
|
|
4460
4460
|
}
|
|
4461
4461
|
return null;
|
|
4462
4462
|
}
|
|
@@ -4518,9 +4518,9 @@ const Bc = class Bc {
|
|
|
4518
4518
|
}
|
|
4519
4519
|
}
|
|
4520
4520
|
};
|
|
4521
|
-
r(
|
|
4522
|
-
let al =
|
|
4523
|
-
var
|
|
4521
|
+
r(jc, "_active", null), r(jc, "_requestInFlight", !1);
|
|
4522
|
+
let al = jc;
|
|
4523
|
+
var Gc;
|
|
4524
4524
|
((o) => {
|
|
4525
4525
|
const t = [];
|
|
4526
4526
|
function e() {
|
|
@@ -4540,7 +4540,7 @@ var qc;
|
|
|
4540
4540
|
a >= 0 && t.splice(a, 1);
|
|
4541
4541
|
}
|
|
4542
4542
|
o.unregisterExporter = n;
|
|
4543
|
-
})(
|
|
4543
|
+
})(Gc || (Gc = {}));
|
|
4544
4544
|
const et = S("debugwebxr"), U_ = S("stats");
|
|
4545
4545
|
let cp = 0;
|
|
4546
4546
|
function UP(o) {
|
|
@@ -4706,7 +4706,7 @@ const Qe = class Qe {
|
|
|
4706
4706
|
this._newControllers.length = 0, this.controllers.length = 0;
|
|
4707
4707
|
for (const c of this._xr_scripts)
|
|
4708
4708
|
(s = c == null ? void 0 : c.onLeaveXR) == null || s.call(c, { xr: this });
|
|
4709
|
-
(a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && vt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && Mn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale &&
|
|
4709
|
+
(a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && vt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && Mn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale && Hc(this.context.mainCamera, this._originalCameraWorldScale)), this.context.requestSizeUpdate(), this._defaultRig.gameObject.removeFromParent(), Va(!1);
|
|
4710
4710
|
});
|
|
4711
4711
|
r(this, "_didStart", !1);
|
|
4712
4712
|
/** Called every frame by the engine */
|
|
@@ -5008,7 +5008,7 @@ const Qe = class Qe {
|
|
|
5008
5008
|
if (await this.isARSupported())
|
|
5009
5009
|
t = "immersive-ar";
|
|
5010
5010
|
else
|
|
5011
|
-
return
|
|
5011
|
+
return Gc.exportAndOpen(), null;
|
|
5012
5012
|
} else t == "ar" && (t = "immersive-ar");
|
|
5013
5013
|
if (z() && S("debugxrpreroom"))
|
|
5014
5014
|
return console.warn("Debug: Starting temporary XR session"), await al.start(t, e || Qe.getDefaultSessionInit(t)), null;
|
|
@@ -5700,16 +5700,16 @@ class Le {
|
|
|
5700
5700
|
static getLine(t) {
|
|
5701
5701
|
let e = this.linesCache.pop();
|
|
5702
5702
|
if (!e) {
|
|
5703
|
-
e = new
|
|
5703
|
+
e = new $c();
|
|
5704
5704
|
let i = e.geometry.getAttribute("position");
|
|
5705
|
-
i || (i = new _t(new Float32Array(
|
|
5705
|
+
i || (i = new _t(new Float32Array(2 * 3), 3), e.geometry.setAttribute("position", i));
|
|
5706
5706
|
}
|
|
5707
5707
|
return e.frustumCulled = !1, this.registerTimedObject(Z.Current, e, t, this.linesCache), e;
|
|
5708
5708
|
}
|
|
5709
5709
|
static getCircle(t) {
|
|
5710
5710
|
let e = this.circlesCache.pop();
|
|
5711
5711
|
if (!e) {
|
|
5712
|
-
e = new
|
|
5712
|
+
e = new $c();
|
|
5713
5713
|
let i = e.geometry.getAttribute("position");
|
|
5714
5714
|
if (!i) {
|
|
5715
5715
|
i = new _t(new Float32Array(dp * 3), 3), e.geometry.setAttribute("position", i);
|
|
@@ -5833,7 +5833,7 @@ class bv {
|
|
|
5833
5833
|
this.object = t, this.distance = e, this.point = i;
|
|
5834
5834
|
}
|
|
5835
5835
|
}
|
|
5836
|
-
const
|
|
5836
|
+
const Bc = class Bc {
|
|
5837
5837
|
constructor(t) {
|
|
5838
5838
|
r(this, "context");
|
|
5839
5839
|
r(this, "engine");
|
|
@@ -5918,14 +5918,14 @@ const Fc = class Fc {
|
|
|
5918
5918
|
let n = t.targets;
|
|
5919
5919
|
n || (n = this.targetBuffer, n.length = 1, n[0] = this.context.scene);
|
|
5920
5920
|
let s = t.results;
|
|
5921
|
-
this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), s || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), s = this.defaultRaycastOptions.results), t.layerMask !== void 0 ? t.layerMask instanceof Wo ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), ki && console.time("raycast"), s.length = 0,
|
|
5921
|
+
this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), s || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), s = this.defaultRaycastOptions.results), t.layerMask !== void 0 ? t.layerMask instanceof Wo ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), ki && console.time("raycast"), s.length = 0, Bc._raycasting++, this.intersect(this.raycaster, n, s, t), s.sort((l, c) => l.distance - c.distance);
|
|
5922
5922
|
const a = t.ignore;
|
|
5923
|
-
return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))),
|
|
5923
|
+
return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))), Bc._raycasting--, ki && (console.timeEnd("raycast"), console.warn("#" + this.context.time.frame + ", hits:", s != null && s.length ? [...s] : "nothing"), performance.mark("raycast.end"), performance.measure("raycast", "raycast.start", "raycast.end")), s;
|
|
5924
5924
|
}
|
|
5925
5925
|
intersect(t, e, i, n) {
|
|
5926
5926
|
var s, a, l;
|
|
5927
5927
|
for (const c of e) {
|
|
5928
|
-
if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof
|
|
5928
|
+
if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof $c)
|
|
5929
5929
|
continue;
|
|
5930
5930
|
let h = !0;
|
|
5931
5931
|
const d = c, u = d.geometry;
|
|
@@ -5952,7 +5952,7 @@ const Fc = class Fc {
|
|
|
5952
5952
|
}
|
|
5953
5953
|
intersectSphere(t, e, i, n, s, a, l, c) {
|
|
5954
5954
|
let h = t && t.isMesh && t.layers.test(n) && !H.isGizmo(t);
|
|
5955
|
-
h && (h = t.visible), h && (h = !(t instanceof
|
|
5955
|
+
h && (h = t.visible), h && (h = !(t instanceof $c)), h && (h = !(t instanceof tl));
|
|
5956
5956
|
const d = t, u = d.geometry;
|
|
5957
5957
|
if (h && c) {
|
|
5958
5958
|
const f = c(t);
|
|
@@ -5983,12 +5983,12 @@ const Fc = class Fc {
|
|
|
5983
5983
|
}
|
|
5984
5984
|
}
|
|
5985
5985
|
};
|
|
5986
|
-
r(
|
|
5987
|
-
let Gd =
|
|
5986
|
+
r(Bc, "_raycasting", 0);
|
|
5987
|
+
let Gd = Bc;
|
|
5988
5988
|
function V_(o) {
|
|
5989
5989
|
return !(o.index && o.index.array.length < 3);
|
|
5990
5990
|
}
|
|
5991
|
-
const ur = new Bu(),
|
|
5991
|
+
const ur = new Bu(), qh = new Hr(), QP = new v0();
|
|
5992
5992
|
function YP(o, t, e) {
|
|
5993
5993
|
const i = o._computeIntersections;
|
|
5994
5994
|
if (!i)
|
|
@@ -5998,12 +5998,12 @@ function YP(o, t, e) {
|
|
|
5998
5998
|
const c = this, h = c.geometry.boundingSphere;
|
|
5999
5999
|
if (h) {
|
|
6000
6000
|
if (c instanceof tl) {
|
|
6001
|
-
|
|
6002
|
-
const u = s.ray.intersectPlane(
|
|
6001
|
+
qh.setFromNormalAndCoplanarPoint(q(0, 1, 0), q(0, -c.position.y, 0)), qh.applyMatrix4(c.matrixWorld, QP);
|
|
6002
|
+
const u = s.ray.intersectPlane(qh, q());
|
|
6003
6003
|
if (u) {
|
|
6004
6004
|
ur.copy(h), ur.applyMatrix4(c.matrixWorld);
|
|
6005
6005
|
const m = q(u).sub(s.ray.origin).length(), g = ur.radius * 0.5;
|
|
6006
|
-
m < g && a.push({ distance: m, point: u, object: c, normal:
|
|
6006
|
+
m < g && a.push({ distance: m, point: u, object: c, normal: qh.normal.clone() });
|
|
6007
6007
|
}
|
|
6008
6008
|
return;
|
|
6009
6009
|
}
|
|
@@ -6085,7 +6085,7 @@ var qd;
|
|
|
6085
6085
|
o.runMeshBVHRaycast = t;
|
|
6086
6086
|
let e = !1, i = null, n = null, s = null, a = null;
|
|
6087
6087
|
function l() {
|
|
6088
|
-
e || (e = !0, import("./vendor-
|
|
6088
|
+
e || (e = !0, import("./vendor-BSD1RQIh.js").then((b) => b.index$1).then((b) => {
|
|
6089
6089
|
i = b.acceleratedRaycast, n = b.MeshBVH, s = b.StaticGeometryGenerator, a = b.computeBoundsTree;
|
|
6090
6090
|
}).catch((b) => {
|
|
6091
6091
|
(ki || z()) && console.error("Failed to load BVH library...", b.message);
|
|
@@ -6231,28 +6231,28 @@ function eO(o) {
|
|
|
6231
6231
|
const tO = /* @__PURE__ */ new Set();
|
|
6232
6232
|
function Cv(o, t, e = null, i) {
|
|
6233
6233
|
if (i || (i = tO, i.clear()), !o) return i;
|
|
6234
|
-
const n = o[
|
|
6234
|
+
const n = o[qc];
|
|
6235
6235
|
if (n)
|
|
6236
6236
|
for (const s of n)
|
|
6237
6237
|
i.has(s) || (e == null ? void 0 : e.call(null, s)) !== !1 && (i.add(s), t && Cv(s, !0, e, i));
|
|
6238
6238
|
return i;
|
|
6239
6239
|
}
|
|
6240
6240
|
function VL(o) {
|
|
6241
|
-
return o[
|
|
6241
|
+
return o[hc];
|
|
6242
6242
|
}
|
|
6243
|
-
const Fr = S("debugresourceusers") || S("debugmemory"),
|
|
6243
|
+
const Fr = S("debugresourceusers") || S("debugmemory"), qc = Symbol("needle-resource-users"), hc = Symbol("needle-resource-users-count");
|
|
6244
6244
|
function Gt(o, t) {
|
|
6245
6245
|
Ag(o, t, function(e, i) {
|
|
6246
|
-
ia && !Gd.raycasting && (Qd(
|
|
6246
|
+
ia && !Gd.raycasting && (Qd(qc, this, e, !1), Qd(qc, this, i, !0));
|
|
6247
6247
|
});
|
|
6248
6248
|
}
|
|
6249
6249
|
ia && (Gt(G.prototype, "material"), Gt(G.prototype, "geometry"), Gt(Pe.prototype, "map"), Gt(Pe.prototype, "bumpMap"), Gt(Pe.prototype, "alphaMap"), Gt(Pe.prototype, "normalMap"), Gt(Pe.prototype, "displacementMap"), Gt(Pe.prototype, "roughnessMap"), Gt(Pe.prototype, "metalnessMap"), Gt(Pe.prototype, "emissiveMap"), Gt(Pe.prototype, "specularMap"), Gt(Pe.prototype, "envMap"), Gt(Pe.prototype, "lightMap"), Gt(Pe.prototype, "aoMap"), Gt(Pe.prototype, "gradientMap"));
|
|
6250
6250
|
function iO(o) {
|
|
6251
6251
|
if (ia === !1) return;
|
|
6252
|
-
const t = o[
|
|
6252
|
+
const t = o[qc];
|
|
6253
6253
|
if (t)
|
|
6254
6254
|
for (const e of t)
|
|
6255
|
-
Qd(
|
|
6255
|
+
Qd(qc, e, o, !1);
|
|
6256
6256
|
}
|
|
6257
6257
|
ia && Ag(Pe.prototype, "dispose", function() {
|
|
6258
6258
|
iO(this);
|
|
@@ -6270,13 +6270,13 @@ function Qd(o, t, e, i) {
|
|
|
6270
6270
|
if (n || (n = /* @__PURE__ */ new Set()), i) {
|
|
6271
6271
|
if (t && !n.has(t)) {
|
|
6272
6272
|
n.add(t);
|
|
6273
|
-
let s = e[
|
|
6274
|
-
s += 1, e[
|
|
6273
|
+
let s = e[hc] || 0;
|
|
6274
|
+
s += 1, e[hc] = s, Fr && console.warn(`🟢 Added user of "${e.type}"`, t, e, s, "users:", n);
|
|
6275
6275
|
}
|
|
6276
6276
|
} else if (t && n.has(t)) {
|
|
6277
6277
|
n.delete(t);
|
|
6278
|
-
let s = e[
|
|
6279
|
-
s > 0 && (s -= 1, e[
|
|
6278
|
+
let s = e[hc] || 0;
|
|
6279
|
+
s > 0 && (s -= 1, e[hc] = s), Fr && console.warn(`🔴 Removed user of "${e.type}"`, t, e, s, "users:", n), s <= 0 && (Xd.isLoading(e) || (Xu && console.warn(`🔴 Removed all user of "${e.type}"`, e), vv() && Ie(e)));
|
|
6280
6280
|
}
|
|
6281
6281
|
e[o] = n;
|
|
6282
6282
|
}
|
|
@@ -6315,7 +6315,7 @@ class Qu {
|
|
|
6315
6315
|
}
|
|
6316
6316
|
}
|
|
6317
6317
|
r(Qu, "eventListeners", /* @__PURE__ */ new Map());
|
|
6318
|
-
const
|
|
6318
|
+
const Xc = Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), Pv = Symbol("isUsingInstancing"), Ov = Symbol("instancingRenderer"), dc = Symbol("instancingAutoUpdateBounds");
|
|
6319
6319
|
class On {
|
|
6320
6320
|
/** Is this object rendered using a InstancedMesh */
|
|
6321
6321
|
static isUsingInstancing(t) {
|
|
@@ -6329,12 +6329,12 @@ class On {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
setAutoUpdateBounds(t, e) {
|
|
6331
6331
|
const i = On.getRenderer(t);
|
|
6332
|
-
i && (i[
|
|
6332
|
+
i && (i[dc] = e);
|
|
6333
6333
|
}
|
|
6334
6334
|
// TODO: change this so it does not set matrix world directly but some flag that is only used by instancing
|
|
6335
6335
|
/** Mark an instanced object dirty so the instance matrix will be updated */
|
|
6336
6336
|
static markDirty(t, e = !0) {
|
|
6337
|
-
if (t && (this.isUsingInstancing(t) && (t[
|
|
6337
|
+
if (t && (this.isUsingInstancing(t) && (t[Xc] = !0, t.matrixWorldNeedsUpdate = !0), e))
|
|
6338
6338
|
for (const i of t.children)
|
|
6339
6339
|
On.markDirty(i, !0);
|
|
6340
6340
|
}
|
|
@@ -6374,7 +6374,7 @@ The script will be ignored. Please make sure your component extends "Behaviour"
|
|
|
6374
6374
|
Did you add and remove a component in the same frame?`), je.splice(t, 1), t--;
|
|
6375
6375
|
continue;
|
|
6376
6376
|
}
|
|
6377
|
-
e.context = o,
|
|
6377
|
+
e.context = o, Cc(e.gameObject), zg(e, o);
|
|
6378
6378
|
} catch (e) {
|
|
6379
6379
|
console.error(e), Ts(je[t], o), je.splice(t, 1), t--;
|
|
6380
6380
|
}
|
|
@@ -6391,14 +6391,14 @@ Did you add and remove a component in the same frame?`), je.splice(t, 1), t--;
|
|
|
6391
6391
|
} catch (i) {
|
|
6392
6392
|
console.error(i);
|
|
6393
6393
|
}
|
|
6394
|
-
e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject),
|
|
6394
|
+
e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject), Cc(e.gameObject), e.activeAndEnabled && qa(e.__internalAwake.bind(e)));
|
|
6395
6395
|
} catch (e) {
|
|
6396
6396
|
console.error(e), Ts(je[t], o), je.splice(t, 1), t--;
|
|
6397
6397
|
}
|
|
6398
6398
|
for (let t = 0; t < je.length; t++)
|
|
6399
6399
|
try {
|
|
6400
6400
|
const e = je[t];
|
|
6401
|
-
if (e.destroyed || e.enabled === !1 || (
|
|
6401
|
+
if (e.destroyed || e.enabled === !1 || (Cc(e.gameObject), e.activeAndEnabled === !1)) continue;
|
|
6402
6402
|
e.__internalEnable !== void 0 && (e.enabled = !0, qa(e.__internalEnable.bind(e)));
|
|
6403
6403
|
} catch (e) {
|
|
6404
6404
|
console.error(e), Ts(je[t], o), je.splice(t, 1), t--;
|
|
@@ -6455,14 +6455,14 @@ function wd(o) {
|
|
|
6455
6455
|
console.trace("Invalid call - no current context.");
|
|
6456
6456
|
return;
|
|
6457
6457
|
}
|
|
6458
|
-
const t =
|
|
6458
|
+
const t = uh(o);
|
|
6459
6459
|
Mv(o, t, !0) || (Pm || z() ? console.error(`Error updating hierarchy
|
|
6460
6460
|
Do you have circular references in your project? <a target="_blank" href="https://docs.needle.tools/circular-reference"> Click here for more information.`, o) : console.error('Failed to update active state in hierarchy of "' + o.name + '"', o), console.warn(" ↑ this error might be caused by circular references. Please make sure you don't have files with circular references (e.g. one GLB 1 is loading GLB 2 which is then loading GLB 1 again)."));
|
|
6461
6461
|
}
|
|
6462
6462
|
function Mv(o, t, e, i = 0) {
|
|
6463
6463
|
if (i > 1e3)
|
|
6464
6464
|
return console.warn("Hierarchy is too deep (> 1000 level) - will abort updating active state"), !1;
|
|
6465
|
-
const n =
|
|
6465
|
+
const n = uh(o);
|
|
6466
6466
|
if (t && (t = n, t && o.parent)) {
|
|
6467
6467
|
const c = o.parent;
|
|
6468
6468
|
t = c[zo], t === void 0 && (c instanceof ji || (t = !0));
|
|
@@ -6477,10 +6477,10 @@ function Mv(o, t, e, i = 0) {
|
|
|
6477
6477
|
Mv(c, t, e, i + 1) === !1 && (l = !1);
|
|
6478
6478
|
return l;
|
|
6479
6479
|
}
|
|
6480
|
-
function
|
|
6480
|
+
function Cc(o) {
|
|
6481
6481
|
let t = !0, e = o, i = !1;
|
|
6482
6482
|
for (; e && e; ) {
|
|
6483
|
-
if (e.type === "Scene" && (i = !0), !
|
|
6483
|
+
if (e.type === "Scene" && (i = !0), !uh(e)) {
|
|
6484
6484
|
t = !1;
|
|
6485
6485
|
break;
|
|
6486
6486
|
}
|
|
@@ -6703,7 +6703,7 @@ function Iv(o, t) {
|
|
|
6703
6703
|
}
|
|
6704
6704
|
return null;
|
|
6705
6705
|
}
|
|
6706
|
-
const
|
|
6706
|
+
const hh = S("gizmos"), bt = S("debugextension"), fp = S("debugtypes");
|
|
6707
6707
|
class _O {
|
|
6708
6708
|
constructor() {
|
|
6709
6709
|
r(this, "_types", /* @__PURE__ */ new Map());
|
|
@@ -7323,7 +7323,7 @@ const Uv = new zt("addComponentIdProvider");
|
|
|
7323
7323
|
function Xa(o, t, e = !0) {
|
|
7324
7324
|
o.userData || (o.userData = {}), o.userData.components || (o.userData.components = []), o.userData.components.push(t), t.gameObject = o, (t.guid === void 0 || t.guid === "invalid") && (t.guid = Uv.generateUUID()), Wg(o), qg(t, t.context);
|
|
7325
7325
|
try {
|
|
7326
|
-
e && t.__internalAwake && (
|
|
7326
|
+
e && t.__internalAwake && (Cc(o), t.activeAndEnabled && t.__internalAwake()), Qu.dispatchComponentLifecycleEvent("component-added", t);
|
|
7327
7327
|
} catch (i) {
|
|
7328
7328
|
console.error(i);
|
|
7329
7329
|
}
|
|
@@ -7399,11 +7399,11 @@ function Ju(o, t, e) {
|
|
|
7399
7399
|
}
|
|
7400
7400
|
return null;
|
|
7401
7401
|
}
|
|
7402
|
-
function
|
|
7402
|
+
function dh(o, t, e, i = !0) {
|
|
7403
7403
|
var n;
|
|
7404
7404
|
e || (e = []), i && (e.length = 0), Zu(o, t, e, !1);
|
|
7405
7405
|
for (let s = 0; s < ((n = o == null ? void 0 : o.children) == null ? void 0 : n.length); s++)
|
|
7406
|
-
|
|
7406
|
+
dh(o.children[s], t, e, !1);
|
|
7407
7407
|
return e;
|
|
7408
7408
|
}
|
|
7409
7409
|
function Jd(o, t) {
|
|
@@ -7436,7 +7436,7 @@ function WO(o, t, e = void 0) {
|
|
|
7436
7436
|
return console.error("Can not search object without any needle context or scene!!!"), t;
|
|
7437
7437
|
"scene" in e && (e = e.scene);
|
|
7438
7438
|
const i = e;
|
|
7439
|
-
return i &&
|
|
7439
|
+
return i && dh(i, o, t, !1), t;
|
|
7440
7440
|
}
|
|
7441
7441
|
function Wg(o) {
|
|
7442
7442
|
o && o.isObject3D === !0 && jO(o, L);
|
|
@@ -7472,7 +7472,7 @@ L.prototype.getComponentInChildren = function(o) {
|
|
|
7472
7472
|
return Ju(this, o);
|
|
7473
7473
|
};
|
|
7474
7474
|
L.prototype.getComponentsInChildren = function(o, t) {
|
|
7475
|
-
return
|
|
7475
|
+
return dh(this, o, t);
|
|
7476
7476
|
};
|
|
7477
7477
|
L.prototype.getComponentInParent = function(o) {
|
|
7478
7478
|
return Jd(this, o);
|
|
@@ -7482,7 +7482,7 @@ L.prototype.getComponentsInParent = function(o, t) {
|
|
|
7482
7482
|
};
|
|
7483
7483
|
Object.getOwnPropertyDescriptor(L.prototype, "activeSelf") || Object.defineProperty(L.prototype, "activeSelf", {
|
|
7484
7484
|
get: function() {
|
|
7485
|
-
return
|
|
7485
|
+
return uh(this);
|
|
7486
7486
|
},
|
|
7487
7487
|
set: function(o) {
|
|
7488
7488
|
Pd(this, o);
|
|
@@ -7517,7 +7517,7 @@ Object.getOwnPropertyDescriptor(L.prototype, "worldScale") || Object.definePrope
|
|
|
7517
7517
|
return Ke(this);
|
|
7518
7518
|
},
|
|
7519
7519
|
set: function(o) {
|
|
7520
|
-
|
|
7520
|
+
Hc(this, o);
|
|
7521
7521
|
}
|
|
7522
7522
|
});
|
|
7523
7523
|
Object.getOwnPropertyDescriptor(L.prototype, "worldForward") || Object.defineProperty(L.prototype, "worldForward", {
|
|
@@ -7624,7 +7624,7 @@ class hs {
|
|
|
7624
7624
|
this.idProvider = t.idProvider, this.parent = t.parent, this.keepWorldPosition = t.keepWorldPosition, this.position = (e = t.position) == null ? void 0 : e.clone(), this.rotation = (i = t.rotation) == null ? void 0 : i.clone(), this.scale = (n = t.scale) == null ? void 0 : n.clone(), this.visible = t.visible, this.context = t.context, this.components = t.components;
|
|
7625
7625
|
}
|
|
7626
7626
|
}
|
|
7627
|
-
function
|
|
7627
|
+
function uh(o) {
|
|
7628
7628
|
return o.visible;
|
|
7629
7629
|
}
|
|
7630
7630
|
function Pd(o, t) {
|
|
@@ -7640,7 +7640,7 @@ function Vg(o) {
|
|
|
7640
7640
|
return On.isUsingInstancing(o);
|
|
7641
7641
|
}
|
|
7642
7642
|
function $v(o, t) {
|
|
7643
|
-
return
|
|
7643
|
+
return Wc(o, t, !0, !0);
|
|
7644
7644
|
}
|
|
7645
7645
|
const Wv = Symbol("isDestroyed");
|
|
7646
7646
|
function cl(o) {
|
|
@@ -7769,7 +7769,7 @@ function Hv(o, t, e, i, n, s) {
|
|
|
7769
7769
|
const h = t.parent;
|
|
7770
7770
|
if (h && h.add(c), e != null && e.position ? vt(c, e.position) : c.position.copy(t.position), e != null && e.rotation ? Mn(c, e.rotation) : c.quaternion.copy(t.quaternion), e != null && e.scale ? c.scale.copy(e.scale) : c.scale.copy(t.scale), e != null && e.parent && e.parent !== "scene") {
|
|
7771
7771
|
let u = null;
|
|
7772
|
-
if (typeof e.parent == "string" ? u =
|
|
7772
|
+
if (typeof e.parent == "string" ? u = Wc(e.parent, o.scene, !0) : u = e.parent, u) {
|
|
7773
7773
|
const f = e.keepWorldPosition === !0 ? u.attach : u.add;
|
|
7774
7774
|
f ? f.call(u, c) : console.error("Invalid parent object", u, "received when instantiating:", t);
|
|
7775
7775
|
} else console.warn("could not find parent:", e.parent);
|
|
@@ -8380,7 +8380,7 @@ class ek {
|
|
|
8380
8380
|
e !== -1 && this.mixers.splice(e, 1);
|
|
8381
8381
|
}
|
|
8382
8382
|
}
|
|
8383
|
-
class
|
|
8383
|
+
class Qc {
|
|
8384
8384
|
/**
|
|
8385
8385
|
* Tries to get the animation actions from an animation mixer.
|
|
8386
8386
|
* @param mixer The animation mixer to get the actions from
|
|
@@ -8571,7 +8571,7 @@ irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );
|
|
|
8571
8571
|
#endif`
|
|
8572
8572
|
);
|
|
8573
8573
|
bS.lightmap.lightmapScaleOffset = { value: new ye(1, 1, 0, 0) };
|
|
8574
|
-
const gp = S("debugprogressive"),
|
|
8574
|
+
const gp = S("debugprogressive"), Xh = new Li(), Qh = new Bu();
|
|
8575
8575
|
class sk {
|
|
8576
8576
|
constructor(t) {
|
|
8577
8577
|
r(this, "context");
|
|
@@ -8631,12 +8631,12 @@ class sk {
|
|
|
8631
8631
|
const a = i.mesh_lod != n.lastLodLevel_Mesh || i.texture_lod != n.lastLodLevel_Texture;
|
|
8632
8632
|
if (gp && e.geometry.boundingSphere) {
|
|
8633
8633
|
const d = e.geometry.boundingSphere;
|
|
8634
|
-
|
|
8635
|
-
const u =
|
|
8634
|
+
Qh.copy(d), Qh.applyMatrix4(e.matrixWorld);
|
|
8635
|
+
const u = Qh.center, f = Qh.radius, m = ["#76c43e", "#bcc43e", "#c4ac3e", "#c4673e", "#ff3e3e"];
|
|
8636
8636
|
if (a)
|
|
8637
8637
|
H.DrawWireSphere(u, f, m[s], 0.1);
|
|
8638
8638
|
else {
|
|
8639
|
-
const g = ((l = e.geometry.index) == null ? void 0 : l.count) ?? 0, _ = (c = Ze.
|
|
8639
|
+
const g = ((l = e.geometry.index) == null ? void 0 : l.count) ?? 0, _ = (c = Ze.getMeshLODExtension(e.geometry)) == null ? void 0 : c.lods;
|
|
8640
8640
|
s = _ ? Math.min((_ == null ? void 0 : _.length) - 1, s) : 0;
|
|
8641
8641
|
let y = "";
|
|
8642
8642
|
if (_ && n.lastScreenCoverage > 0)
|
|
@@ -8652,7 +8652,7 @@ TEX ` + i.texture_lod;
|
|
|
8652
8652
|
` + (b / n.lastScreenCoverage).toFixed(0) + ` dens
|
|
8653
8653
|
` + (n.lastScreenCoverage * 100).toFixed(1) + `% cov
|
|
8654
8654
|
` + (n.lastCentrality * 100).toFixed(1) + `% centr
|
|
8655
|
-
` + (
|
|
8655
|
+
` + (Xh.min.x.toFixed(2) + "-" + Xh.max.x.toFixed(2) + "x" + Xh.min.y.toFixed(2) + "-" + Xh.max.y.toFixed(2)) + " scr"), n.lastScreenCoverage > 0.1) {
|
|
8656
8656
|
const x = t, k = x.worldForward, O = x.worldPosition, T = q(k).multiplyScalar(f * 0.7).add(u), U = T.distanceTo(O), E = m[Math.min(m.length - 1, Math.max(0, s))] + "88", I = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, A = t.isPerspectiveCamera ? Math.tan(t.fov * Math.PI / 180 / 2) : 1;
|
|
8657
8657
|
H.DrawLabel(T, v, U * 0.012 * I * A, void 0, 16777215, E);
|
|
8658
8658
|
}
|
|
@@ -8705,12 +8705,12 @@ class ak {
|
|
|
8705
8705
|
}
|
|
8706
8706
|
}
|
|
8707
8707
|
new _g();
|
|
8708
|
-
const
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
const lk = new bg(
|
|
8708
|
+
const fh = new Uint8Array(4);
|
|
8709
|
+
fh[0] = 255;
|
|
8710
|
+
fh[1] = 255;
|
|
8711
|
+
fh[2] = 255;
|
|
8712
|
+
fh[3] = 255;
|
|
8713
|
+
const lk = new bg(fh, 1, 1, Fu);
|
|
8714
8714
|
function Gg(o, t = 1) {
|
|
8715
8715
|
const e = "alpha" in o, i = t * t, n = new Uint8Array(4 * i), s = Math.floor(o.r * 255), a = Math.floor(o.g * 255), l = Math.floor(o.b * 255);
|
|
8716
8716
|
for (let h = 0; h < i; h++) {
|
|
@@ -8789,7 +8789,7 @@ function fk(o) {
|
|
|
8789
8789
|
}).join(""));
|
|
8790
8790
|
}
|
|
8791
8791
|
const _n = S("debugenvlight");
|
|
8792
|
-
var
|
|
8792
|
+
var Pc = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Trilight = 1] = "Trilight", o[o.Flat = 3] = "Flat", o[o.Custom = 4] = "Custom", o))(Pc || {}), Lm = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Custom = 1] = "Custom", o))(Lm || {});
|
|
8793
8793
|
class pk {
|
|
8794
8794
|
constructor(t) {
|
|
8795
8795
|
r(this, "context");
|
|
@@ -8879,7 +8879,7 @@ class pk {
|
|
|
8879
8879
|
var i;
|
|
8880
8880
|
this.__currentReflectionId = t;
|
|
8881
8881
|
const e = (i = this._sceneLightSettings) == null ? void 0 : i.get(t);
|
|
8882
|
-
switch (_n && console.log("Enable reflection", t, e ?
|
|
8882
|
+
switch (_n && console.log("Enable reflection", t, e ? Pc[e.ambientMode] : "Unknown ambient mode", e), e == null ? void 0 : e.ambientMode) {
|
|
8883
8883
|
case 0:
|
|
8884
8884
|
case 4:
|
|
8885
8885
|
const n = this.internalGetReflection(t);
|
|
@@ -9236,22 +9236,22 @@ function bk(o) {
|
|
|
9236
9236
|
var e;
|
|
9237
9237
|
return ((e = o.classList) == null ? void 0 : e.contains("material-symbols-outlined")) || !1;
|
|
9238
9238
|
}
|
|
9239
|
-
const
|
|
9239
|
+
const Yh = /* @__PURE__ */ new Map();
|
|
9240
9240
|
async function lb(o) {
|
|
9241
9241
|
const t = "Material Symbols Outlined";
|
|
9242
|
-
if (document.fonts.check(`1em '${t}'`) || (console.log("Font not loaded yet"), await document.fonts.ready),
|
|
9243
|
-
return
|
|
9242
|
+
if (document.fonts.check(`1em '${t}'`) || (console.log("Font not loaded yet"), await document.fonts.ready), Yh.has(o))
|
|
9243
|
+
return Yh.get(o);
|
|
9244
9244
|
const e = document.createElement("canvas"), i = 48;
|
|
9245
9245
|
e.width = i, e.height = i;
|
|
9246
9246
|
const n = e.getContext("2d");
|
|
9247
9247
|
if (n) {
|
|
9248
9248
|
n.font = `${i}px '${t}'`, n.fillStyle = "black", n.fillText(o, 0, i);
|
|
9249
9249
|
const s = e.toDataURL(), a = new Fe();
|
|
9250
|
-
return a.name = o + " icon", a.image = new Image(), a.image.src = s, a.needsUpdate = !0,
|
|
9250
|
+
return a.name = o + " icon", a.image = new Image(), a.image.src = s, a.needsUpdate = !0, Yh.set(o, a), a;
|
|
9251
9251
|
}
|
|
9252
|
-
return
|
|
9252
|
+
return Yh.set(o, null), null;
|
|
9253
9253
|
}
|
|
9254
|
-
const
|
|
9254
|
+
const Fc = class Fc {
|
|
9255
9255
|
constructor() {
|
|
9256
9256
|
r(this, "_fullscreenButton");
|
|
9257
9257
|
r(this, "_muteButton");
|
|
@@ -9272,11 +9272,11 @@ const zc = class zc {
|
|
|
9272
9272
|
* If you want to create a new factory and create new button instances instead of shared buttons, use `ButtonsFactory.create()` instead
|
|
9273
9273
|
*/
|
|
9274
9274
|
static getOrCreate() {
|
|
9275
|
-
return this._instance || (this._instance = new
|
|
9275
|
+
return this._instance || (this._instance = new Fc()), this._instance;
|
|
9276
9276
|
}
|
|
9277
9277
|
/** create a new buttons factory */
|
|
9278
9278
|
static create() {
|
|
9279
|
-
return new
|
|
9279
|
+
return new Fc();
|
|
9280
9280
|
}
|
|
9281
9281
|
/**
|
|
9282
9282
|
* Get the fullscreen button (or undefined if it doesn't exist yet). Call {@link ButtonsFactory.createFullscreenButton} to get or create it
|
|
@@ -9395,8 +9395,8 @@ const zc = class zc {
|
|
|
9395
9395
|
});
|
|
9396
9396
|
}
|
|
9397
9397
|
};
|
|
9398
|
-
r(
|
|
9399
|
-
let Ds =
|
|
9398
|
+
r(Fc, "_instance");
|
|
9399
|
+
let Ds = Fc;
|
|
9400
9400
|
function nu(o, t) {
|
|
9401
9401
|
const e = (t == null ? void 0 : t.element) || document.head, i = Array.from(e.querySelectorAll(`link[rel=stylesheet][href*='${o}']`));
|
|
9402
9402
|
if (i.length <= 0) {
|
|
@@ -9796,7 +9796,7 @@ class cb {
|
|
|
9796
9796
|
t.use(), this.onclick();
|
|
9797
9797
|
}
|
|
9798
9798
|
}
|
|
9799
|
-
const vr = "needle-menu",
|
|
9799
|
+
const vr = "needle-menu", Oc = S("debugmenu"), hb = S("debugnoncommercial");
|
|
9800
9800
|
let xk = class {
|
|
9801
9801
|
constructor(t) {
|
|
9802
9802
|
r(this, "_context");
|
|
@@ -9821,8 +9821,8 @@ let xk = class {
|
|
|
9821
9821
|
a ? globalThis.open(n.onclick, l) : console.error("NeedleMenu: onclick is not a valid link", n.onclick);
|
|
9822
9822
|
}
|
|
9823
9823
|
}, this._menu.appendChild(s);
|
|
9824
|
-
} else
|
|
9825
|
-
} else
|
|
9824
|
+
} else Oc && console.error("NeedleMenu: unknown postMessage event", e);
|
|
9825
|
+
} else Oc && console.warn("NeedleMenu: unknown postMessage type", i, e);
|
|
9826
9826
|
}
|
|
9827
9827
|
});
|
|
9828
9828
|
r(this, "onStartXR", (t) => {
|
|
@@ -9907,7 +9907,7 @@ let xk = class {
|
|
|
9907
9907
|
return this._menu.appendChild(t);
|
|
9908
9908
|
}
|
|
9909
9909
|
};
|
|
9910
|
-
var
|
|
9910
|
+
var lh;
|
|
9911
9911
|
const Jy = class Jy extends HTMLElement {
|
|
9912
9912
|
constructor() {
|
|
9913
9913
|
var u, f, m, g, _, y;
|
|
@@ -9915,7 +9915,7 @@ const Jy = class Jy extends HTMLElement {
|
|
|
9915
9915
|
r(this, "_domElement", null);
|
|
9916
9916
|
r(this, "_context", null);
|
|
9917
9917
|
r(this, "_sizeChangeInterval");
|
|
9918
|
-
mn(this,
|
|
9918
|
+
mn(this, lh, (e) => {
|
|
9919
9919
|
if (!e.defaultPrevented && e.target == this._domElement && e instanceof PointerEvent && e.button === 0 && this.root.classList.contains("open")) {
|
|
9920
9920
|
const i = this.foldout.getBoundingClientRect(), n = e;
|
|
9921
9921
|
n.clientX > i.left && n.clientX < i.right && n.clientY > i.top && n.clientY < i.bottom || this.root.classList.toggle("open", !1);
|
|
@@ -9944,7 +9944,7 @@ const Jy = class Jy extends HTMLElement {
|
|
|
9944
9944
|
clearTimeout(this._timeoutHandle), this.root.classList.add("compact"), this.foldout.classList.add("floating-panel-style");
|
|
9945
9945
|
return;
|
|
9946
9946
|
}
|
|
9947
|
-
const a = n -
|
|
9947
|
+
const s = 20 * 2, a = n - s;
|
|
9948
9948
|
if (!i && Math.abs(a - this._lastAvailableWidthChange) < 1) return;
|
|
9949
9949
|
this._lastAvailableWidthChange = a, clearTimeout(this._timeoutHandle), this._timeoutHandle = setTimeout(() => {
|
|
9950
9950
|
const h = c();
|
|
@@ -10360,7 +10360,7 @@ const Jy = class Jy extends HTMLElement {
|
|
|
10360
10360
|
let l = 0;
|
|
10361
10361
|
const c = (b, v) => {
|
|
10362
10362
|
var x, k, O;
|
|
10363
|
-
|
|
10363
|
+
Oc && console.log("Set menu visible", v), a != null && a.isInAR && a.arOverlayElement ? b != a.arOverlayElement && a.arOverlayElement.appendChild(this) : this.parentNode != ((x = this._domElement) == null ? void 0 : x.shadowRoot) && ((O = (k = this._domElement) == null ? void 0 : k.shadowRoot) == null || O.appendChild(this)), this.style.display = v ? "flex" : "none", this.style.visibility = "visible", this.style.opacity = "1";
|
|
10364
10364
|
};
|
|
10365
10365
|
let h = !1;
|
|
10366
10366
|
new MutationObserver((b) => {
|
|
@@ -10376,7 +10376,7 @@ const Jy = class Jy extends HTMLElement {
|
|
|
10376
10376
|
} finally {
|
|
10377
10377
|
h = !1;
|
|
10378
10378
|
}
|
|
10379
|
-
}).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }),
|
|
10379
|
+
}).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }), Oc && this.___insertDebugOptions();
|
|
10380
10380
|
}
|
|
10381
10381
|
static create() {
|
|
10382
10382
|
return document.createElement(vr, { is: vr });
|
|
@@ -10388,12 +10388,12 @@ const Jy = class Jy extends HTMLElement {
|
|
|
10388
10388
|
connectedCallback() {
|
|
10389
10389
|
window.addEventListener("resize", this.handleSizeChange), this.handleMenuVisible(), this._sizeChangeInterval = setInterval(() => this.handleSizeChange(void 0, !0), 5e3), setTimeout(() => {
|
|
10390
10390
|
var e, i;
|
|
10391
|
-
(e = this._domElement) == null || e.addEventListener("resize", this.handleSizeChange), (i = this._domElement) == null || i.addEventListener("click", ue(this,
|
|
10391
|
+
(e = this._domElement) == null || e.addEventListener("resize", this.handleSizeChange), (i = this._domElement) == null || i.addEventListener("click", ue(this, lh));
|
|
10392
10392
|
}, 1);
|
|
10393
10393
|
}
|
|
10394
10394
|
disconnectedCallback() {
|
|
10395
10395
|
var e, i;
|
|
10396
|
-
window.removeEventListener("resize", this.handleSizeChange), clearInterval(this._sizeChangeInterval), (e = this._domElement) == null || e.removeEventListener("resize", this.handleSizeChange), (i = this._context) == null || i.domElement.removeEventListener("click", ue(this,
|
|
10396
|
+
window.removeEventListener("resize", this.handleSizeChange), clearInterval(this._sizeChangeInterval), (e = this._domElement) == null || e.removeEventListener("resize", this.handleSizeChange), (i = this._context) == null || i.domElement.removeEventListener("click", ue(this, lh));
|
|
10397
10397
|
}
|
|
10398
10398
|
showNeedleLogo(e) {
|
|
10399
10399
|
this._userRequestedLogoVisible = e, !(!e && (!Vs() || hb) && (console.warn("[Needle Engine] You need a PRO license to hide the Needle Engine logo in production."), !_i())) && this.___onSetLogoVisible(e);
|
|
@@ -10484,7 +10484,7 @@ const Jy = class Jy extends HTMLElement {
|
|
|
10484
10484
|
* if we dont have any content and logo then we hide the menu
|
|
10485
10485
|
*/
|
|
10486
10486
|
handleMenuVisible() {
|
|
10487
|
-
|
|
10487
|
+
Oc && console.log("Update VisibleState: Any Content?", this.hasAnyContent), this.hasAnyContent ? this.root.style.display = "" : this.root.style.display = "none", this.root.classList.toggle("has-options", this.hasAnyVisibleOptions), this.root.classList.toggle("has-no-options", !this.hasAnyVisibleOptions);
|
|
10488
10488
|
}
|
|
10489
10489
|
/** @returns true if we have any content OR a logo */
|
|
10490
10490
|
get hasAnyContent() {
|
|
@@ -10524,7 +10524,7 @@ const Jy = class Jy extends HTMLElement {
|
|
|
10524
10524
|
}), this.appendChild(i);
|
|
10525
10525
|
}
|
|
10526
10526
|
};
|
|
10527
|
-
|
|
10527
|
+
lh = new WeakMap();
|
|
10528
10528
|
let ou = Jy;
|
|
10529
10529
|
customElements.get(vr) || customElements.define(vr, ou);
|
|
10530
10530
|
const nt = S("debugcontext"), Sk = S("stats"), Ck = S("debugactive"), Pk = S("debugframerate"), Ok = S("debugcoroutine"), QL = {};
|
|
@@ -11224,7 +11224,7 @@ Possible solutions:
|
|
|
11224
11224
|
hl(this.scene, (b) => {
|
|
11225
11225
|
const v = b;
|
|
11226
11226
|
if (v != null && v.isCamera) {
|
|
11227
|
-
if (
|
|
11227
|
+
if (Cc(v.gameObject), !v.activeAndEnabled) return;
|
|
11228
11228
|
if (v.tag === "MainCamera")
|
|
11229
11229
|
return y = v, !0;
|
|
11230
11230
|
y = v;
|
|
@@ -11581,7 +11581,7 @@ function kk(o) {
|
|
|
11581
11581
|
return o(!0);
|
|
11582
11582
|
Kv.push(o);
|
|
11583
11583
|
}
|
|
11584
|
-
function
|
|
11584
|
+
function Kh(o) {
|
|
11585
11585
|
for (const t of Kv)
|
|
11586
11586
|
try {
|
|
11587
11587
|
t(o);
|
|
@@ -11591,7 +11591,7 @@ function Zh(o) {
|
|
|
11591
11591
|
fe.registerCallback(me.ContextRegistered, (o) => {
|
|
11592
11592
|
Tk(o.context), Rk(o.context), setTimeout(() => Ak(o.context), 2e3);
|
|
11593
11593
|
});
|
|
11594
|
-
let Uo, Bm = !1,
|
|
11594
|
+
let Uo, Bm = !1, uc = "";
|
|
11595
11595
|
async function Mk() {
|
|
11596
11596
|
if (Uo) return Uo;
|
|
11597
11597
|
if (is === "basic")
|
|
@@ -11601,9 +11601,9 @@ async function Mk() {
|
|
|
11601
11601
|
}).catch((e) => {
|
|
11602
11602
|
Ti && console.error("License check failed", e);
|
|
11603
11603
|
});
|
|
11604
|
-
(t == null ? void 0 : t.status) === 200 ? (Bm = !1, Ti && console.log("License check succeeded"), is = "pro",
|
|
11604
|
+
(t == null ? void 0 : t.status) === 200 ? (Bm = !1, Ti && console.log("License check succeeded"), is = "pro", Kh(!0)) : (t == null ? void 0 : t.status) === 403 ? (Kh(!1), Bm = !0, uc = await t.text()) : (Kh(!1), Ti && console.log("License check failed with status " + (t == null ? void 0 : t.status)));
|
|
11605
11605
|
} catch (o) {
|
|
11606
|
-
|
|
11606
|
+
Kh(!1), Ti && console.error("License check failed", o);
|
|
11607
11607
|
}
|
|
11608
11608
|
else Ti && console.log('Runtime license check is skipped because license is already applied as "' + is + '"');
|
|
11609
11609
|
}
|
|
@@ -11642,7 +11642,7 @@ async function Rk(o) {
|
|
|
11642
11642
|
background-color: rgba(0,0,0,.3);
|
|
11643
11643
|
text-shadow: 0 0 2px black;
|
|
11644
11644
|
`;
|
|
11645
|
-
const l = a.style.cssText, c = (
|
|
11645
|
+
const l = a.style.cssText, c = (uc == null ? void 0 : uc.length) > 1 ? uc : "This web application has been paused.<br/>You might be in violation of the Needle Engine terms of use.<br/>Please contact the Needle support if you think this is a mistake.";
|
|
11646
11646
|
return a.innerHTML = c, setInterval(() => {
|
|
11647
11647
|
a.innerHTML !== c && (a.innerHTML = c), a.parentNode !== n && n.appendChild(a), n.style.cssText !== s && (n.style.cssText = s), a.style.cssText !== l && (a.style.cssText = l);
|
|
11648
11648
|
}, 500), n;
|
|
@@ -11779,7 +11779,7 @@ async function Ak(o) {
|
|
|
11779
11779
|
version: ts,
|
|
11780
11780
|
generator: Eg,
|
|
11781
11781
|
build_time: av,
|
|
11782
|
-
public_key:
|
|
11782
|
+
public_key: bd
|
|
11783
11783
|
}, d = (i = navigator.sendBeacon) == null ? void 0 : i.call(navigator, c, JSON.stringify(h));
|
|
11784
11784
|
Ti && console.debug("Sent beacon: " + d);
|
|
11785
11785
|
}
|
|
@@ -11845,31 +11845,31 @@ function mb(o) {
|
|
|
11845
11845
|
return o;
|
|
11846
11846
|
}
|
|
11847
11847
|
const No = S("debughotreload");
|
|
11848
|
-
let
|
|
11849
|
-
const
|
|
11848
|
+
let Yc = !1;
|
|
11849
|
+
const kc = /* @__PURE__ */ new Map();
|
|
11850
11850
|
function KL() {
|
|
11851
|
-
return
|
|
11851
|
+
return Yc;
|
|
11852
11852
|
}
|
|
11853
11853
|
function gb() {
|
|
11854
11854
|
return globalThis.NEEDLE_HOT_RELOAD_ENABLED === !0;
|
|
11855
11855
|
}
|
|
11856
11856
|
function Lk(o) {
|
|
11857
11857
|
var i;
|
|
11858
|
-
if (
|
|
11858
|
+
if (Yc) {
|
|
11859
11859
|
No && console.warn("[Needle Engine] Hot reloading is in progress, not registering instance", o);
|
|
11860
11860
|
return;
|
|
11861
11861
|
}
|
|
11862
11862
|
No && console.log("[Needle Engine] Registering hot reload instance", o);
|
|
11863
11863
|
const e = o.constructor.name;
|
|
11864
|
-
|
|
11864
|
+
kc.has(e) ? (i = kc.get(e)) == null || i.push(o) : kc.set(e, [o]);
|
|
11865
11865
|
}
|
|
11866
11866
|
function Dk(o) {
|
|
11867
|
-
if (
|
|
11867
|
+
if (Yc) {
|
|
11868
11868
|
No && console.warn("[Needle Engine] Hot reloading is in progress, not unregistering instance", o);
|
|
11869
11869
|
return;
|
|
11870
11870
|
}
|
|
11871
11871
|
No && console.log("[Needle Engine] Unregistering hot reload instance", o);
|
|
11872
|
-
const e = o.constructor.name, i =
|
|
11872
|
+
const e = o.constructor.name, i = kc.get(e);
|
|
11873
11873
|
if (!i) return;
|
|
11874
11874
|
const n = i.indexOf(o);
|
|
11875
11875
|
n !== -1 && i.splice(n, 1);
|
|
@@ -11894,13 +11894,13 @@ function ZL(o) {
|
|
|
11894
11894
|
No && console.log("[HMR] Apply changes", o, Object.keys(o)), jk();
|
|
11895
11895
|
for (const t of Object.keys(o))
|
|
11896
11896
|
try {
|
|
11897
|
-
|
|
11897
|
+
Yc = !0;
|
|
11898
11898
|
const e = M.get(t);
|
|
11899
11899
|
if (!e) {
|
|
11900
11900
|
No && console.log("[HMR] Type not found: " + t);
|
|
11901
11901
|
continue;
|
|
11902
11902
|
}
|
|
11903
|
-
const i = o[t], n =
|
|
11903
|
+
const i = o[t], n = kc.get(i.name);
|
|
11904
11904
|
let s = "[Needle Engine] Updating type: " + t;
|
|
11905
11905
|
const a = (n == null ? void 0 : n.length) ?? -1;
|
|
11906
11906
|
a > 0 ? s += " x" + a : s += " (No instances registered)", console.log(s);
|
|
@@ -11937,7 +11937,7 @@ function ZL(o) {
|
|
|
11937
11937
|
if (No) console.error(e);
|
|
11938
11938
|
else return !1;
|
|
11939
11939
|
} finally {
|
|
11940
|
-
|
|
11940
|
+
Yc = !1, Gn(nn.Log, "Script changes applied (HMR)");
|
|
11941
11941
|
}
|
|
11942
11942
|
return !0;
|
|
11943
11943
|
}
|
|
@@ -11972,7 +11972,7 @@ class C extends L {
|
|
|
11972
11972
|
* @returns True if the GameObject is active
|
|
11973
11973
|
*/
|
|
11974
11974
|
static isActiveSelf(e) {
|
|
11975
|
-
return
|
|
11975
|
+
return uh(e);
|
|
11976
11976
|
}
|
|
11977
11977
|
/**
|
|
11978
11978
|
* Checks if the GameObject is active in the hierarchy (e.g. if any parent is invisible or not in the scene it will be false)
|
|
@@ -12195,7 +12195,7 @@ class C extends L {
|
|
|
12195
12195
|
* @returns Array of components
|
|
12196
12196
|
*/
|
|
12197
12197
|
static getComponentsInChildren(e, i, n = null) {
|
|
12198
|
-
return
|
|
12198
|
+
return dh(e, i, n ?? void 0);
|
|
12199
12199
|
}
|
|
12200
12200
|
/**
|
|
12201
12201
|
* Gets a component of the specified type in the gameObject's parent hierarchy
|
|
@@ -13023,7 +13023,7 @@ class t2 {
|
|
|
13023
13023
|
return !0;
|
|
13024
13024
|
}
|
|
13025
13025
|
}
|
|
13026
|
-
class
|
|
13026
|
+
class Zh {
|
|
13027
13027
|
constructor(t, e, i, n) {
|
|
13028
13028
|
/** The name of the animation */
|
|
13029
13029
|
r(this, "name");
|
|
@@ -13055,7 +13055,7 @@ function $k(o, t) {
|
|
|
13055
13055
|
};
|
|
13056
13056
|
}
|
|
13057
13057
|
var _r = /* @__PURE__ */ ((o) => (o[o.If = 1] = "If", o[o.IfNot = 2] = "IfNot", o[o.Greater = 3] = "Greater", o[o.Less = 4] = "Less", o[o.Equals = 6] = "Equals", o[o.NotEqual = 7] = "NotEqual", o))(_r || {}), iw = /* @__PURE__ */ ((o) => (o[o.Float = 1] = "Float", o[o.Int = 3] = "Int", o[o.Bool = 4] = "Bool", o[o.Trigger = 9] = "Trigger", o))(iw || {});
|
|
13058
|
-
const ct = S("debuganimatorcontroller"),
|
|
13058
|
+
const ct = S("debuganimatorcontroller"), Jh = S("debugrootmotion");
|
|
13059
13059
|
class kn {
|
|
13060
13060
|
constructor(t) {
|
|
13061
13061
|
r(this, "_speed", 1);
|
|
@@ -13310,7 +13310,7 @@ class kn {
|
|
|
13310
13310
|
const t = this._activeState.motion.action;
|
|
13311
13311
|
if (!t) return null;
|
|
13312
13312
|
const e = this._activeState.motion.clip.duration, i = e <= 0 ? 0 : Math.abs(t.time / e);
|
|
13313
|
-
return new
|
|
13313
|
+
return new Zh(this._activeState, i, e, this._speed);
|
|
13314
13314
|
}
|
|
13315
13315
|
/**
|
|
13316
13316
|
* Gets the animation action currently playing.
|
|
@@ -13463,7 +13463,7 @@ Exit Time: ` + d, a.hasExitTime);
|
|
|
13463
13463
|
i && this.setTimescale(i, e);
|
|
13464
13464
|
let n = !1;
|
|
13465
13465
|
if (e.motion.isLooping && i && (i.time >= i.getClip().duration ? (n = !0, i.reset(), i.time = 0, i.play()) : i.time <= 0 && i.timeScale < 0 && (n = !0, i.reset(), i.time = i.getClip().duration, i.play())), !n && e && !t && i && this.animator && e.behaviours) {
|
|
13466
|
-
const a = i == null ? void 0 : i.getClip().duration, l = i.time / a, c = new
|
|
13466
|
+
const a = i == null ? void 0 : i.getClip().duration, l = i.time / a, c = new Zh(this._activeState, l, a, this._speed);
|
|
13467
13467
|
for (const h of e.behaviours)
|
|
13468
13468
|
h.instance && ((s = h.instance.onStateUpdate) == null || s.call(h.instance, this.animator, c, 0));
|
|
13469
13469
|
}
|
|
@@ -13495,7 +13495,7 @@ Exit Time: ` + d, a.hasExitTime);
|
|
|
13495
13495
|
}
|
|
13496
13496
|
}
|
|
13497
13497
|
if ((d = this._activeState) != null && d.behaviours && this._activeState.motion.action) {
|
|
13498
|
-
const v = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, x = this._activeState.motion.action.time / v, k = new
|
|
13498
|
+
const v = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, x = this._activeState.motion.action.time / v, k = new Zh(this._activeState, x, v, this._speed);
|
|
13499
13499
|
for (const O of this._activeState.behaviours)
|
|
13500
13500
|
(m = (f = O.instance) == null ? void 0 : f.onStateExit) == null || m.call(O.instance, this.animator, k, n);
|
|
13501
13501
|
}
|
|
@@ -13512,7 +13512,7 @@ Exit Time: ` + d, a.hasExitTime);
|
|
|
13512
13512
|
c.isRunning() && c.stop(), c.reset(), c.enabled = !0, this.setTimescale(c, t);
|
|
13513
13513
|
const v = t.motion.clip.duration;
|
|
13514
13514
|
if (c.time = s ? 0 : i * v, c.timeScale < 0 && (c.time = v - c.time), c.clampWhenFinished = !0, c.setLoop(am, 0), e > 0 ? c.fadeIn(e) : c.weight = 1, c.play(), this.rootMotionHandler && this.rootMotionHandler.onStart(c), this._activeStates.includes(t) || this._activeStates.push(t), this._activeState.behaviours) {
|
|
13515
|
-
const x = new
|
|
13515
|
+
const x = new Zh(t, i, v, this._speed);
|
|
13516
13516
|
for (const k of this._activeState.behaviours)
|
|
13517
13517
|
(b = (y = k.instance) == null ? void 0 : y.onStateEnter) == null || b.call(k.instance, this.animator, x, n);
|
|
13518
13518
|
}
|
|
@@ -13667,7 +13667,7 @@ const Te = class Te {
|
|
|
13667
13667
|
if (t.getClip() !== this.clip) return;
|
|
13668
13668
|
Te.lastObjRotation[this.cacheId] || (Te.lastObjRotation[this.cacheId] = this.root.quaternion.clone());
|
|
13669
13669
|
const e = Te.lastObjRotation[this.cacheId];
|
|
13670
|
-
if (Te.spaceRotation[this.cacheId].copy(e),
|
|
13670
|
+
if (Te.spaceRotation[this.cacheId].copy(e), Jh) {
|
|
13671
13671
|
const i = new Ft().setFromQuaternion(e);
|
|
13672
13672
|
console.log("START", this.clip.name, $.toDegrees(i.y), this.root.position.z);
|
|
13673
13673
|
}
|
|
@@ -13678,17 +13678,17 @@ const Te = class Te {
|
|
|
13678
13678
|
handlePosition(t, e) {
|
|
13679
13679
|
if (e) {
|
|
13680
13680
|
const i = this.root;
|
|
13681
|
-
|
|
13681
|
+
Jh && i.add(new Di()), Te.lastObjPosition[this.cacheId] || (Te.lastObjPosition[this.cacheId] = this.root.position.clone());
|
|
13682
13682
|
const n = new w(), s = new w();
|
|
13683
13683
|
this.positionWrapper = new bb(e, (a, l) => {
|
|
13684
13684
|
const c = this.action.getEffectiveWeight();
|
|
13685
|
-
return
|
|
13685
|
+
return Jh && i.position.length() > 8 && i.position.set(0, i.position.y, 0), a > this._prevTime && (n.set(l[0], l[1], l[2]), n.sub(s), n.multiplyScalar(c), n.applyQuaternion(this.getClipRotationOffset()), n.applyQuaternion(i.quaternion), this.positionChange.copy(n)), s.fromArray(l), this._prevTime = a, l[0] = 0, l[1] = 0, l[2] = 0, l;
|
|
13686
13686
|
});
|
|
13687
13687
|
}
|
|
13688
13688
|
}
|
|
13689
13689
|
handleRotation(t, e) {
|
|
13690
13690
|
if (e) {
|
|
13691
|
-
if (
|
|
13691
|
+
if (Jh) {
|
|
13692
13692
|
const a = e.values, l = new Ft().setFromQuaternion(new W(a[0], a[1], a[2], a[3]));
|
|
13693
13693
|
console.log(t.name, e.name, "FIRST ROTATION IN TRACK", $.toDegrees(l.y));
|
|
13694
13694
|
const c = e.values.length - 4, h = new W().set(a[c], a[c + 1], a[c + 2], a[c + 3]), d = new Ft().setFromQuaternion(h);
|
|
@@ -14087,12 +14087,12 @@ const vb = Symbol("previous-visibility"), Cr = class Cr extends ss {
|
|
|
14087
14087
|
};
|
|
14088
14088
|
r(Cr, "_userSet", /* @__PURE__ */ new Set());
|
|
14089
14089
|
let Qa = Cr;
|
|
14090
|
-
var qk = Object.defineProperty, Xk = Object.getOwnPropertyDescriptor,
|
|
14090
|
+
var qk = Object.defineProperty, Xk = Object.getOwnPropertyDescriptor, ph = (o, t, e, i) => {
|
|
14091
14091
|
for (var n = i > 1 ? void 0 : i ? Xk(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
14092
14092
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
14093
14093
|
return i && n && qk(t, e, n), n;
|
|
14094
14094
|
};
|
|
14095
|
-
const
|
|
14095
|
+
const ed = S("debuggroundprojection");
|
|
14096
14096
|
class io extends j {
|
|
14097
14097
|
constructor() {
|
|
14098
14098
|
super(...arguments);
|
|
@@ -14135,7 +14135,7 @@ class io extends j {
|
|
|
14135
14135
|
/** @internal */
|
|
14136
14136
|
onEnable() {
|
|
14137
14137
|
this.context.time.frameCount > 0 && this.applyOnAwake && this.updateAndCreate(), this._watcher || (this._watcher = new Fo(this.context.scene, "background"), this._watcher.subscribeWrite((e) => {
|
|
14138
|
-
|
|
14138
|
+
ed && console.log("Background changed", this.context.scene.background), this._needsTextureUpdate = !0;
|
|
14139
14139
|
}));
|
|
14140
14140
|
}
|
|
14141
14141
|
/** @internal */
|
|
@@ -14182,7 +14182,7 @@ class io extends j {
|
|
|
14182
14182
|
let i = !0;
|
|
14183
14183
|
const n = 0, s = e !== this._lastBackground || this._height !== this._lastHeight || this._radius !== this._lastRadius;
|
|
14184
14184
|
if (!this._projection || s) {
|
|
14185
|
-
|
|
14185
|
+
ed && console.log("Create/Update Ground Projection", e.name), (u = this._projection) == null || u.removeFromParent();
|
|
14186
14186
|
try {
|
|
14187
14187
|
this._projection = new tl(e, this._height, this._radius, 64);
|
|
14188
14188
|
} catch (f) {
|
|
@@ -14201,7 +14201,7 @@ class io extends j {
|
|
|
14201
14201
|
const _ = Ke(this.gameObject).x;
|
|
14202
14202
|
g.y = m + this._height * _ - n, g.z = f.min.z + (f.max.z - f.min.z) * 0.5, vt(this._projection, g);
|
|
14203
14203
|
}
|
|
14204
|
-
|
|
14204
|
+
ed && H.DrawWireBox3(f, 65280, 5);
|
|
14205
14205
|
}
|
|
14206
14206
|
this.context.scene.backgroundBlurriness > 1e-3 && this._needsTextureUpdate && this.updateBlurriness(e, this.context.scene.backgroundBlurriness), this._lastBackground = e, this._lastHeight = this._height, this._lastRadius = this._radius, this._needsTextureUpdate = !1;
|
|
14207
14207
|
}
|
|
@@ -14211,7 +14211,7 @@ class io extends j {
|
|
|
14211
14211
|
if (!e)
|
|
14212
14212
|
return;
|
|
14213
14213
|
} else return;
|
|
14214
|
-
this._needsTextureUpdate = !1,
|
|
14214
|
+
this._needsTextureUpdate = !1, ed && console.log("Update Blurriness", i), this._blurrynessShader ?? (this._blurrynessShader = new ns({
|
|
14215
14215
|
name: "GroundProjectionBlurriness",
|
|
14216
14216
|
uniforms: {
|
|
14217
14217
|
map: { value: e },
|
|
@@ -14226,19 +14226,19 @@ class io extends j {
|
|
|
14226
14226
|
this._projection.material.transparent = (((s = this.context.xr) == null ? void 0 : s.isAR) === !0 && this.arBlending > 1e-6) ?? !1, this._projection.material.transparent ? this._blurrynessShader.uniforms.blending.value = this.arBlending : this._blurrynessShader.uniforms.blending.value = 0, this.context.isInPassThrough ? this._blurrynessShader.uniforms.alphaFactor.value = 0.95 : this._blurrynessShader.uniforms.alphaFactor.value = 1, n !== this._projection.material.transparent && (this._projection.material.needsUpdate = !0), this._projection.material.map = nl.copyTexture(e, this._blurrynessShader), this._projection.material.depthTest = !0, this._projection.material.depthWrite = !1;
|
|
14227
14227
|
}
|
|
14228
14228
|
}
|
|
14229
|
-
|
|
14229
|
+
ph([
|
|
14230
14230
|
p()
|
|
14231
14231
|
], io.prototype, "applyOnAwake", 2);
|
|
14232
|
-
|
|
14232
|
+
ph([
|
|
14233
14233
|
p()
|
|
14234
14234
|
], io.prototype, "autoFit", 2);
|
|
14235
|
-
|
|
14235
|
+
ph([
|
|
14236
14236
|
p()
|
|
14237
14237
|
], io.prototype, "radius", 1);
|
|
14238
|
-
|
|
14238
|
+
ph([
|
|
14239
14239
|
p()
|
|
14240
14240
|
], io.prototype, "height", 1);
|
|
14241
|
-
|
|
14241
|
+
ph([
|
|
14242
14242
|
p()
|
|
14243
14243
|
], io.prototype, "arBlending", 1);
|
|
14244
14244
|
const Qk = `
|
|
@@ -14491,7 +14491,7 @@ var D;
|
|
|
14491
14491
|
t.ready = i;
|
|
14492
14492
|
async function n() {
|
|
14493
14493
|
if (t.MODULE) return t.MODULE;
|
|
14494
|
-
const s = await import("./postprocessing-
|
|
14494
|
+
const s = await import("./postprocessing-BkxN_08g.js").then((a) => a.index);
|
|
14495
14495
|
return t.MODULE = s, t.MAYBEMODULE = s, e.forEach((a) => a(s)), e.length = 0, s;
|
|
14496
14496
|
}
|
|
14497
14497
|
t.load = n;
|
|
@@ -14506,13 +14506,13 @@ var D;
|
|
|
14506
14506
|
t.ready = i;
|
|
14507
14507
|
async function n() {
|
|
14508
14508
|
if (t.MODULE) return t.MODULE;
|
|
14509
|
-
const s = await import("./postprocessing-
|
|
14509
|
+
const s = await import("./postprocessing-BkxN_08g.js").then((a) => a.N8AO);
|
|
14510
14510
|
return t.MODULE = s, t.MAYBEMODULE = s, e.forEach((a) => a(s)), e.length = 0, s;
|
|
14511
14511
|
}
|
|
14512
14512
|
t.load = n;
|
|
14513
14513
|
})(o.POSTPROCESSING_AO || (o.POSTPROCESSING_AO = {}));
|
|
14514
14514
|
})(D || (D = {}));
|
|
14515
|
-
var Tt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(Tt || {}), Kg = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Kg || {}), it = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.FreezePositionX = 2] = "FreezePositionX", o[o.FreezePositionY = 4] = "FreezePositionY", o[o.FreezePositionZ = 8] = "FreezePositionZ", o[o.FreezePosition = 14] = "FreezePosition", o[o.FreezeRotationX = 16] = "FreezeRotationX", o[o.FreezeRotationY = 32] = "FreezeRotationY", o[o.FreezeRotationZ = 64] = "FreezeRotationZ", o[o.FreezeRotation = 112] = "FreezeRotation", o[o.FreezeAll = 126] = "FreezeAll", o))(it || {}),
|
|
14515
|
+
var Tt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(Tt || {}), Kg = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Kg || {}), it = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.FreezePositionX = 2] = "FreezePositionX", o[o.FreezePositionY = 4] = "FreezePositionY", o[o.FreezePositionZ = 8] = "FreezePositionZ", o[o.FreezePosition = 14] = "FreezePosition", o[o.FreezeRotationX = 16] = "FreezeRotationX", o[o.FreezeRotationY = 32] = "FreezeRotationY", o[o.FreezeRotationZ = 64] = "FreezeRotationZ", o[o.FreezeRotation = 112] = "FreezeRotation", o[o.FreezeAll = 126] = "FreezeAll", o))(it || {}), fc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.X = 2] = "X", o[o.Y = 4] = "Y", o[o.Z = 8] = "Z", o[o.All = -1] = "All", o))(fc || {});
|
|
14516
14516
|
const Wt = function(o, t) {
|
|
14517
14517
|
return function(e, i, n) {
|
|
14518
14518
|
tM(e, i, n, o, t);
|
|
@@ -14945,8 +14945,8 @@ zi([
|
|
|
14945
14945
|
let wt = bi;
|
|
14946
14946
|
new w();
|
|
14947
14947
|
new w();
|
|
14948
|
-
const _o = S("debugsync"),
|
|
14949
|
-
gv(
|
|
14948
|
+
const _o = S("debugsync"), Kc = "STRS";
|
|
14949
|
+
gv(Kc, As.getRootAsSyncedTransformModel);
|
|
14950
14950
|
const Fn = new Og();
|
|
14951
14951
|
function sw(o, t, e = !0) {
|
|
14952
14952
|
Fn.clear();
|
|
@@ -14955,13 +14955,13 @@ function sw(o, t, e = !0) {
|
|
|
14955
14955
|
const n = t.worldPosition, s = t.worldEuler, a = t.gameObject.scale;
|
|
14956
14956
|
As.addTransform(Fn, nw.createTransform(Fn, n.x, n.y, n.z, s.x, s.y, s.z, a.x, a.y, a.z));
|
|
14957
14957
|
const l = As.endSyncedTransformModel(Fn);
|
|
14958
|
-
return Fn.finish(l,
|
|
14958
|
+
return Fn.finish(l, Kc), Fn.asUint8Array();
|
|
14959
14959
|
}
|
|
14960
|
-
let Um = 0,
|
|
14960
|
+
let Um = 0, Mc = 0;
|
|
14961
14961
|
eM((o) => {
|
|
14962
14962
|
var i;
|
|
14963
14963
|
const e = ((i = o.connection.currentServerUrl) == null ? void 0 : i.includes("glitch")) ? 10 : 40;
|
|
14964
|
-
|
|
14964
|
+
Mc = Math.floor(Um / e), Um = 0, _o && Mc > 0 && console.log("Sync Transform Fast Interval", Mc);
|
|
14965
14965
|
});
|
|
14966
14966
|
class Ks extends j {
|
|
14967
14967
|
constructor() {
|
|
@@ -15029,11 +15029,11 @@ class Ks extends j {
|
|
|
15029
15029
|
}
|
|
15030
15030
|
/** @internal */
|
|
15031
15031
|
awake() {
|
|
15032
|
-
_o && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new w(), this._targetRotation = new W(), this.lastPosition = new w(), this.lastRotation = new W(), this.lastScale = new w(), this.rb = C.getComponentInChildren(this.gameObject, wt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new yv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(
|
|
15032
|
+
_o && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new w(), this._targetRotation = new W(), this.lastPosition = new w(), this.lastRotation = new W(), this.lastScale = new w(), this.rb = C.getComponentInChildren(this.gameObject, wt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new yv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Kc, this.receivedDataCallback);
|
|
15033
15033
|
}
|
|
15034
15034
|
/** @internal */
|
|
15035
15035
|
onDestroy() {
|
|
15036
|
-
this.syncDestroy && Tv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(se.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(
|
|
15036
|
+
this.syncDestroy && Tv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(se.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(Kc, this.receivedDataCallback);
|
|
15037
15037
|
}
|
|
15038
15038
|
/**
|
|
15039
15039
|
* Attempts to retrieve and apply the last known network state for this transform
|
|
@@ -15112,7 +15112,7 @@ class Ks extends j {
|
|
|
15112
15112
|
this.rb && this.overridePhysics && this._wasKinematic !== void 0 && (_o && console.log("reset kinematic", this.rb.name, this._wasKinematic), this.rb.isKinematic = this._wasKinematic);
|
|
15113
15113
|
const s = 10, a = this.rb || this.fastMode;
|
|
15114
15114
|
if (this._needsUpdate && (this.context.time.frameCount % s === 0 || a)) {
|
|
15115
|
-
if (Um++, a &&
|
|
15115
|
+
if (Um++, a && Mc > 0 && this.context.time.frameCount % Mc !== 0) return;
|
|
15116
15116
|
_o && console.debug("[SyncedTransform] Send update", this.context.connection.connectionId, this.guid, this.gameObject.name, this.gameObject.guid), this._needsUpdate = !1;
|
|
15117
15117
|
const l = sw(this.guid, this, !!a);
|
|
15118
15118
|
this.context.connection.sendBinary(l);
|
|
@@ -16155,7 +16155,7 @@ var bM = Object.defineProperty, ze = (o, t, e, i) => {
|
|
|
16155
16155
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
16156
16156
|
return n && bM(t, e, n), n;
|
|
16157
16157
|
};
|
|
16158
|
-
const Qi = S("debugorbit"), xp = S("freecam"), ql = S("debugcamerafit"),
|
|
16158
|
+
const Qi = S("debugorbit"), xp = S("freecam"), ql = S("debugcamerafit"), td = S("smoothcam"), vM = { LEFT: "", UP: "", RIGHT: "", BOTTOM: "" };
|
|
16159
16159
|
let Sp;
|
|
16160
16160
|
class lu extends CustomEvent {
|
|
16161
16161
|
constructor(t, e) {
|
|
@@ -16423,9 +16423,9 @@ class xe extends j {
|
|
|
16423
16423
|
}
|
|
16424
16424
|
}
|
|
16425
16425
|
if (this._controls) {
|
|
16426
|
-
if (this.debugLog && (this._controls.domElement = this.context.renderer.domElement), this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent && !this.context.isInXR && !this._activePointerEvents.some((l) => l.used), this._controls.keys = this.enableKeys ? Sp : vM, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.zoomSpeed = this.zoomSpeed, this._controls.zoomToCursor = this.zoomToCursor, this._controls.enableDamping = this.enableDamping, this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle, this._controls.maxAzimuthAngle = this.maxAzimuthAngle, this._controls.minPolarAngle = this.minPolarAngle, this._controls.maxPolarAngle = this.maxPolarAngle, xp || (((s = (n = this._camera) == null ? void 0 : n.threeCamera) == null ? void 0 : s.type) === "PerspectiveCamera" ? (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom, this._controls.minZoom = 0, this._controls.maxZoom = 1 / 0) : (this._controls.minDistance = 0, this._controls.maxDistance = 1 / 0, this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom)), typeof
|
|
16426
|
+
if (this.debugLog && (this._controls.domElement = this.context.renderer.domElement), this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent && !this.context.isInXR && !this._activePointerEvents.some((l) => l.used), this._controls.keys = this.enableKeys ? Sp : vM, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.zoomSpeed = this.zoomSpeed, this._controls.zoomToCursor = this.zoomToCursor, this._controls.enableDamping = this.enableDamping, this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle, this._controls.maxAzimuthAngle = this.maxAzimuthAngle, this._controls.minPolarAngle = this.minPolarAngle, this._controls.maxPolarAngle = this.maxPolarAngle, xp || (((s = (n = this._camera) == null ? void 0 : n.threeCamera) == null ? void 0 : s.type) === "PerspectiveCamera" ? (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom, this._controls.minZoom = 0, this._controls.maxZoom = 1 / 0) : (this._controls.minDistance = 0, this._controls.maxDistance = 1 / 0, this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom)), typeof td == "number" || td === !0) {
|
|
16427
16427
|
this._controls.enableDamping = !0;
|
|
16428
|
-
const l = typeof
|
|
16428
|
+
const l = typeof td == "number" ? td : 0.99;
|
|
16429
16429
|
this._controls.dampingFactor = Math.max(1e-3, 1 - Math.min(1, l));
|
|
16430
16430
|
}
|
|
16431
16431
|
this.allowInterrupt || (this._lookTargetLerpActive && (this._controls.enablePan = !1), this._cameraLerpActive && (this._controls.enableRotate = !1, this._controls.autoRotate = !1), (this._lookTargetLerpActive || this._cameraLerpActive) && (this._controls.enableZoom = !1)), this.context.isInXR || (!xp && ((a = this.lookAtConstraint) != null && a.locked) && this.setLookTargetFromConstraint(0, this.lookAtConstraint01), this._controls.update(this.context.time.deltaTime), Qi && H.DrawWireSphere(this._controls.target, 0.1, 65280));
|
|
@@ -17874,7 +17874,7 @@ Incoming:`, this._incomingCalls), l;
|
|
|
17874
17874
|
// }
|
|
17875
17875
|
};
|
|
17876
17876
|
r(Pr, "instances", /* @__PURE__ */ new Map());
|
|
17877
|
-
let
|
|
17877
|
+
let Rc = Pr;
|
|
17878
17878
|
class rf extends wg {
|
|
17879
17879
|
constructor(e, i) {
|
|
17880
17880
|
super();
|
|
@@ -17929,8 +17929,8 @@ class rf extends wg {
|
|
|
17929
17929
|
});
|
|
17930
17930
|
if (TM(e)) {
|
|
17931
17931
|
const n = e;
|
|
17932
|
-
e = n.context, i =
|
|
17933
|
-
} else typeof i == "string" && (i =
|
|
17932
|
+
e = n.context, i = Rc.getOrCreate(n.context, n.guid);
|
|
17933
|
+
} else typeof i == "string" && (i = Rc.getOrCreate(e, i));
|
|
17934
17934
|
if (e) {
|
|
17935
17935
|
if (!(e instanceof Z)) throw new Error("Failed to create NetworkedStreams because context is not an instance of Context");
|
|
17936
17936
|
} else throw new Error("Failed to create NetworkedStreams because context is undefined");
|
|
@@ -17941,7 +17941,7 @@ class rf extends wg {
|
|
|
17941
17941
|
* Create a new NetworkedStreams instance
|
|
17942
17942
|
*/
|
|
17943
17943
|
static create(e, i) {
|
|
17944
|
-
const n =
|
|
17944
|
+
const n = Rc.getOrCreate(e.context, i || e.context.connection.connectionId || e.guid);
|
|
17945
17945
|
return new rf(e.context, n);
|
|
17946
17946
|
}
|
|
17947
17947
|
startSendingStream(e) {
|
|
@@ -18459,7 +18459,7 @@ var qM = Object.defineProperty, sy = (o, t, e, i) => {
|
|
|
18459
18459
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
18460
18460
|
return n && qM(t, e, n), n;
|
|
18461
18461
|
};
|
|
18462
|
-
class
|
|
18462
|
+
class mh extends j {
|
|
18463
18463
|
constructor() {
|
|
18464
18464
|
super(...arguments);
|
|
18465
18465
|
r(this, "length", 1);
|
|
@@ -18472,7 +18472,7 @@ class gh extends j {
|
|
|
18472
18472
|
* If marked as a gizmo, it will only be shown when gizmos are enabled in the global parameters.
|
|
18473
18473
|
*/
|
|
18474
18474
|
onEnable() {
|
|
18475
|
-
if (this.isGizmo && !
|
|
18475
|
+
if (this.isGizmo && !hh) return;
|
|
18476
18476
|
this._axes || (this._axes = new Di(this.length)), this._axes.layers.disableAll(), this._axes.layers.set(this.layer), this.gameObject.add(this._axes);
|
|
18477
18477
|
const e = this._axes.material;
|
|
18478
18478
|
e && e.depthTest !== void 0 && (e.depthTest = this.depthTest);
|
|
@@ -18486,13 +18486,13 @@ class gh extends j {
|
|
|
18486
18486
|
}
|
|
18487
18487
|
sy([
|
|
18488
18488
|
p()
|
|
18489
|
-
],
|
|
18489
|
+
], mh.prototype, "length");
|
|
18490
18490
|
sy([
|
|
18491
18491
|
p()
|
|
18492
|
-
],
|
|
18492
|
+
], mh.prototype, "depthTest");
|
|
18493
18493
|
sy([
|
|
18494
18494
|
p()
|
|
18495
|
-
],
|
|
18495
|
+
], mh.prototype, "isGizmo");
|
|
18496
18496
|
class uw extends j {
|
|
18497
18497
|
constructor() {
|
|
18498
18498
|
super(...arguments);
|
|
@@ -18665,7 +18665,7 @@ vi([
|
|
|
18665
18665
|
vi([
|
|
18666
18666
|
p()
|
|
18667
18667
|
], Ui.prototype, "filter");
|
|
18668
|
-
class
|
|
18668
|
+
class gh extends Ui {
|
|
18669
18669
|
constructor() {
|
|
18670
18670
|
super(...arguments);
|
|
18671
18671
|
r(this, "radius", 0.5);
|
|
@@ -18694,10 +18694,10 @@ class yh extends Ui {
|
|
|
18694
18694
|
vi([
|
|
18695
18695
|
Wt(),
|
|
18696
18696
|
p()
|
|
18697
|
-
],
|
|
18697
|
+
], gh.prototype, "radius");
|
|
18698
18698
|
vi([
|
|
18699
18699
|
p(w)
|
|
18700
|
-
],
|
|
18700
|
+
], gh.prototype, "center");
|
|
18701
18701
|
const oy = class fw extends Ui {
|
|
18702
18702
|
constructor() {
|
|
18703
18703
|
super(...arguments);
|
|
@@ -19208,10 +19208,10 @@ const Ob = S("debugdeletable"), za = class za extends Zs {
|
|
|
19208
19208
|
}
|
|
19209
19209
|
};
|
|
19210
19210
|
r(za, "_instances", []);
|
|
19211
|
-
let
|
|
19211
|
+
let Zc = za;
|
|
19212
19212
|
class gw extends j {
|
|
19213
19213
|
update() {
|
|
19214
|
-
for (const t of
|
|
19214
|
+
for (const t of Zc._instances) {
|
|
19215
19215
|
const e = this.gameObject;
|
|
19216
19216
|
if (t.isInBox(e) === !0) {
|
|
19217
19217
|
const n = C.getComponentInParent(this.gameObject, df);
|
|
@@ -19840,7 +19840,7 @@ const Tu = class Tu {
|
|
|
19840
19840
|
r(this, "_requireUpdateGroundPlane", !0);
|
|
19841
19841
|
r(this, "_didDragOnGroundPlaneLastFrame", !1);
|
|
19842
19842
|
this._camera = t;
|
|
19843
|
-
const e = new
|
|
19843
|
+
const e = new $c(Tu.geometry), i = e.material;
|
|
19844
19844
|
i.color = new re(0.4, 0.4, 0.4), e.layers.set(2), e.name = "line", e.scale.y = 1, this._groundLine = e;
|
|
19845
19845
|
const n = new Du(0.5, 22, 22), s = new Me({ color: i.color }), a = new G(n, s);
|
|
19846
19846
|
a.visible = !1, a.layers.set(2), this._groundMarker = a;
|
|
@@ -19994,7 +19994,7 @@ var Mb;
|
|
|
19994
19994
|
}
|
|
19995
19995
|
o.onDetermineModelMimetype = e;
|
|
19996
19996
|
})(Mb || (Mb = {}));
|
|
19997
|
-
const
|
|
19997
|
+
const Tc = S("debugfileformat");
|
|
19998
19998
|
function oR(o) {
|
|
19999
19999
|
switch ((o.split(".").pop() || o).toUpperCase()) {
|
|
20000
20000
|
case "GLTF":
|
|
@@ -20024,7 +20024,7 @@ async function rR(o, t) {
|
|
|
20024
20024
|
const a = o, l = new URL(a, globalThis.location.href);
|
|
20025
20025
|
let c = null;
|
|
20026
20026
|
const h = l.searchParams.get("filetype");
|
|
20027
|
-
switch (h && (c = h.toUpperCase()), c != null && c.length || (c = (s = l.pathname.split(".").pop()) == null ? void 0 : s.toUpperCase()),
|
|
20027
|
+
switch (h && (c = h.toUpperCase()), c != null && c.length || (c = (s = l.pathname.split(".").pop()) == null ? void 0 : s.toUpperCase()), Tc && console.warn(`[Needle Engine] Try to use file extension to determine type: '${c}'`), c) {
|
|
20028
20028
|
case "GLTF":
|
|
20029
20029
|
return "model/gltf+json";
|
|
20030
20030
|
case "VRM":
|
|
@@ -20056,7 +20056,7 @@ async function rR(o, t) {
|
|
|
20056
20056
|
}).catch((a) => null);
|
|
20057
20057
|
if (n != null && n.ok) {
|
|
20058
20058
|
const a = await n.arrayBuffer(), l = aR(i, a, n);
|
|
20059
|
-
return
|
|
20059
|
+
return Tc && console.log("[Needle Engine] Determined file type from header: " + l), l;
|
|
20060
20060
|
}
|
|
20061
20061
|
return "unknown";
|
|
20062
20062
|
}
|
|
@@ -20064,7 +20064,7 @@ function aR(o, t, e) {
|
|
|
20064
20064
|
if (t.byteLength < 4)
|
|
20065
20065
|
return "unknown";
|
|
20066
20066
|
const i = new Uint8Array(t);
|
|
20067
|
-
if (
|
|
20067
|
+
if (Tc && console.warn(`[Needle Engine] Trying to determine file type from binary data
|
|
20068
20068
|
`, '"' + new TextDecoder().decode(t) + `"
|
|
20069
20069
|
`, i), i[0] == 103 && i[1] == 108 && i[2] == 84 && i[3] == 70 && (i[4] == 10 || i[4] === 2))
|
|
20070
20070
|
return console.debug("GLTF detected"), "model/gltf+json";
|
|
@@ -20118,9 +20118,9 @@ function aR(o, t, e) {
|
|
|
20118
20118
|
bytes: i
|
|
20119
20119
|
});
|
|
20120
20120
|
if (s)
|
|
20121
|
-
return
|
|
20121
|
+
return Tc && console.debug(`Mimetype callback returned: ${s}`), s;
|
|
20122
20122
|
}
|
|
20123
|
-
if (z() ||
|
|
20123
|
+
if (z() || Tc) {
|
|
20124
20124
|
const n = new TextDecoder().decode(t.slice(0, Math.min(t.byteLength, 32)));
|
|
20125
20125
|
console.warn(`Could not determine file type.
|
|
20126
20126
|
|
|
@@ -20359,7 +20359,7 @@ class Ko extends j {
|
|
|
20359
20359
|
break;
|
|
20360
20360
|
}
|
|
20361
20361
|
}
|
|
20362
|
-
|
|
20362
|
+
Qc.assignAnimationsFromFile(s, {
|
|
20363
20363
|
createAnimationComponent: (f) => sn(f, si)
|
|
20364
20364
|
});
|
|
20365
20365
|
const h = new cR({
|
|
@@ -20669,7 +20669,7 @@ class mR {
|
|
|
20669
20669
|
}
|
|
20670
20670
|
typeof window < "u" && window.addEventListener("unhandledrejection", (o) => {
|
|
20671
20671
|
});
|
|
20672
|
-
const vs = bt,
|
|
20672
|
+
const vs = bt, id = "$___Export_Components", gR = "NEEDLE_components";
|
|
20673
20673
|
var _0;
|
|
20674
20674
|
_0 = Ca;
|
|
20675
20675
|
class yR {
|
|
@@ -20723,12 +20723,12 @@ class xw {
|
|
|
20723
20723
|
serializeUserData(t, e) {
|
|
20724
20724
|
var n;
|
|
20725
20725
|
const i = (n = t.userData) == null ? void 0 : n.components;
|
|
20726
|
-
return !i || i.length <= 0 ? !1 : (delete t.userData.components, t[
|
|
20726
|
+
return !i || i.length <= 0 ? !1 : (delete t.userData.components, t[id] = i, !0);
|
|
20727
20727
|
}
|
|
20728
20728
|
afterSerializeUserData(t, e) {
|
|
20729
|
-
if (t.type === "Scene" && vs && console.log("DONE", JSON.stringify(e)), t[
|
|
20730
|
-
const i = t[
|
|
20731
|
-
delete t[
|
|
20729
|
+
if (t.type === "Scene" && vs && console.log("DONE", JSON.stringify(e)), t[id] === void 0) return;
|
|
20730
|
+
const i = t[id];
|
|
20731
|
+
delete t[id], i !== null && (t.userData.components = i);
|
|
20732
20732
|
}
|
|
20733
20733
|
writeNode(t, e) {
|
|
20734
20734
|
const i = this.writer.json.nodes.length;
|
|
@@ -20915,7 +20915,7 @@ fe.registerCallback(me.ContextCreated, (o) => {
|
|
|
20915
20915
|
class Vm extends j {
|
|
20916
20916
|
constructor() {
|
|
20917
20917
|
super(...arguments);
|
|
20918
|
-
r(this, "ambientMode",
|
|
20918
|
+
r(this, "ambientMode", Pc.Skybox);
|
|
20919
20919
|
r(this, "ambientLight");
|
|
20920
20920
|
r(this, "ambientTrilight");
|
|
20921
20921
|
r(this, "ambientIntensity", 1);
|
|
@@ -20952,13 +20952,13 @@ class Vm extends j {
|
|
|
20952
20952
|
return 2.2 * $.lerp(0, 1.33, i);
|
|
20953
20953
|
}
|
|
20954
20954
|
onEnable() {
|
|
20955
|
-
if (Ma && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode ==
|
|
20955
|
+
if (Ma && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode == Pc.Flat) {
|
|
20956
20956
|
if (this.ambientLight && !this._ambientLightObj) {
|
|
20957
20957
|
const e = this.calculateIntensityFactor(this.ambientLight);
|
|
20958
20958
|
this._ambientLightObj = new ES(this.ambientLight, this.ambientIntensity * e), Ma && console.log("Created ambient light", this.sourceId, this._ambientLightObj, this.ambientIntensity, e);
|
|
20959
20959
|
}
|
|
20960
20960
|
this._ambientLightObj && this.gameObject.add(this._ambientLightObj);
|
|
20961
|
-
} else if (this.ambientMode ===
|
|
20961
|
+
} else if (this.ambientMode === Pc.Trilight) {
|
|
20962
20962
|
if (this.ambientTrilight) {
|
|
20963
20963
|
const e = this.ambientTrilight[0], i = this.ambientTrilight[this.ambientTrilight.length - 1], n = this.calculateIntensityFactor(i);
|
|
20964
20964
|
this._hemisphereLightObj = new AS(i, e, this.ambientIntensity * n), this.gameObject.add(this._hemisphereLightObj), Ma && console.log("Created hemisphere ambient light", this.sourceId, this._hemisphereLightObj, this.ambientIntensity, n);
|
|
@@ -21379,7 +21379,7 @@ function Cw(o) {
|
|
|
21379
21379
|
}
|
|
21380
21380
|
const kR = S("debugextensions");
|
|
21381
21381
|
let uu;
|
|
21382
|
-
const MR = import("./three-examples-
|
|
21382
|
+
const MR = import("./three-examples-GggCDHv0.js").then((o) => o.GLTFLoaderAnimationPointer).then(async (o) => (uu = o.GLTFAnimationPointerExtension, uu)).catch((o) => {
|
|
21383
21383
|
console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three for full KHR_animation support", o);
|
|
21384
21384
|
}), Gr = new Array();
|
|
21385
21385
|
function f2(o) {
|
|
@@ -21609,7 +21609,7 @@ const di = S("debuginstancing"), Ua = class Ua {
|
|
|
21609
21609
|
autoUpdateInstanceMatrix(t) {
|
|
21610
21610
|
const e = t.matrixWorld.multiplyMatrices.bind(t.matrixWorld), i = t.matrixWorld.clone(), n = (s, a) => {
|
|
21611
21611
|
const l = e(s, a);
|
|
21612
|
-
return (t[
|
|
21612
|
+
return (t[Xc] || i.equals(l) === !1) && (i.copy(l), t[Xc] = !0), l;
|
|
21613
21613
|
};
|
|
21614
21614
|
t.matrixWorld.multiplyMatrices = n;
|
|
21615
21615
|
}
|
|
@@ -21622,7 +21622,7 @@ r(Ua, "instance", new Ua()), /** This is the initial instance count when creatin
|
|
|
21622
21622
|
* @returns The initial instance count
|
|
21623
21623
|
* */
|
|
21624
21624
|
r(Ua, "getStartInstanceCount", (t) => 4);
|
|
21625
|
-
let
|
|
21625
|
+
let Jc = Ua;
|
|
21626
21626
|
const Na = class Na {
|
|
21627
21627
|
constructor(t, e) {
|
|
21628
21628
|
/** The object that is being instanced */
|
|
@@ -21732,14 +21732,14 @@ class Rw {
|
|
|
21732
21732
|
r(this, "_needUpdateBounds", !1);
|
|
21733
21733
|
r(this, "_debugMaterial", null);
|
|
21734
21734
|
r(this, "onBeforeRender", () => {
|
|
21735
|
-
this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[
|
|
21735
|
+
this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[dc] === !0 && (di === "verbose" && console.log("Update instancing bounds", this.name, this._batchedMesh.matrixWorldNeedsUpdate), this.updateBounds());
|
|
21736
21736
|
});
|
|
21737
21737
|
r(this, "onAfterRender", () => {
|
|
21738
21738
|
this._batchedMesh.layers.disableAll();
|
|
21739
21739
|
});
|
|
21740
21740
|
this.name = t, this.geometry = e, this.material = i, this._context = s, this._maxInstanceCount = Math.max(2, n), di && (this._debugMaterial = Ib());
|
|
21741
21741
|
const a = this.tryEstimateVertexCountSize(this._maxInstanceCount, [e], n);
|
|
21742
|
-
this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new s_(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[
|
|
21742
|
+
this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new s_(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[dc] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof k0 && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), s.pre_render_callbacks.push(this.onBeforeRender), s.post_render_callbacks.push(this.onAfterRender), di && console.log(`Instanced renderer created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${t}"`);
|
|
21743
21743
|
}
|
|
21744
21744
|
/** The three instanced mesh
|
|
21745
21745
|
* @link https://threejs.org/docs/#api/en/objects/InstancedMesh
|
|
@@ -21859,7 +21859,7 @@ Max vertex count ${this._maxVertexCount} -> ${s}
|
|
|
21859
21859
|
Max index count ${this._maxIndexCount} -> ${a}`);
|
|
21860
21860
|
this._maxVertexCount = s, this._maxIndexCount = a;
|
|
21861
21861
|
const l = new s_(i, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material);
|
|
21862
|
-
l.layers = this._batchedMesh.layers, l.castShadow = this._batchedMesh.castShadow, l.receiveShadow = this._batchedMesh.receiveShadow, l.visible = this._batchedMesh.visible, l[
|
|
21862
|
+
l.layers = this._batchedMesh.layers, l.castShadow = this._batchedMesh.castShadow, l.receiveShadow = this._batchedMesh.receiveShadow, l.visible = this._batchedMesh.visible, l[dc] = this._batchedMesh[dc], l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorldNeedsUpdate = this._batchedMesh.matrixWorldNeedsUpdate, l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorld.copy(this._batchedMesh.matrixWorld), l.matrix.copy(this._batchedMesh.matrix), this._batchedMesh.dispose(), this._batchedMesh.removeFromParent(), this._geometryIds.clear(), this._batchedMesh = l, this._maxInstanceCount = i;
|
|
21863
21863
|
const c = [...this._handles];
|
|
21864
21864
|
this._handles = [];
|
|
21865
21865
|
for (const u of c)
|
|
@@ -21920,7 +21920,7 @@ function xr(o) {
|
|
|
21920
21920
|
if (!o)
|
|
21921
21921
|
return z() && console.error("Cannot get mesh information from null geometry"), { vertexCount: 0, indexCount: 0 };
|
|
21922
21922
|
let t = ((s = (n = o.attributes) == null ? void 0 : n.position) == null ? void 0 : s.count) || 0, e = o.index ? o.index.count : 0;
|
|
21923
|
-
const i = Ze.
|
|
21923
|
+
const i = Ze.getMeshLODExtension(o);
|
|
21924
21924
|
if (i) {
|
|
21925
21925
|
const a = i.lods[0];
|
|
21926
21926
|
let l = a.vertexCount, c = a.indexCount;
|
|
@@ -22041,7 +22041,7 @@ var AR = Object.defineProperty, so = (o, t, e, i) => {
|
|
|
22041
22041
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
22042
22042
|
return n && AR(t, e, n), n;
|
|
22043
22043
|
};
|
|
22044
|
-
const
|
|
22044
|
+
const pc = S("debugrenderer"), Lb = S("debugskinnedmesh"), Db = S("noinstancing"), IR = S("wireframe");
|
|
22045
22045
|
class LR {
|
|
22046
22046
|
constructor() {
|
|
22047
22047
|
r(this, "path", null);
|
|
@@ -22111,7 +22111,7 @@ class DR {
|
|
|
22111
22111
|
return this._changed;
|
|
22112
22112
|
}
|
|
22113
22113
|
set changed(t) {
|
|
22114
|
-
t === !0 &&
|
|
22114
|
+
t === !0 && pc && console.warn("SharedMaterials have changed: " + this._renderer.name, this), this._changed = t;
|
|
22115
22115
|
}
|
|
22116
22116
|
is(t) {
|
|
22117
22117
|
return this._renderer === t;
|
|
@@ -22280,7 +22280,7 @@ const ds = class Td extends j {
|
|
|
22280
22280
|
this.enabled || this.setVisibility(!1);
|
|
22281
22281
|
}
|
|
22282
22282
|
awake() {
|
|
22283
|
-
if (this._firstFrame = this.context.time.frame,
|
|
22283
|
+
if (this._firstFrame = this.context.time.frame, pc && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor && pc && this.probeAnchor.add(new Di(0.2)), this._reflectionProbe = null, this.isMultiMaterialObject(this.gameObject)) {
|
|
22284
22284
|
for (const e of this.gameObject.children)
|
|
22285
22285
|
this.context.addBeforeRenderListener(e, this.onBeforeRenderThree), e.layers.mask = this.gameObject.layers.mask;
|
|
22286
22286
|
if (this.renderOrder !== void 0) {
|
|
@@ -22328,7 +22328,7 @@ const ds = class Td extends j {
|
|
|
22328
22328
|
}
|
|
22329
22329
|
}
|
|
22330
22330
|
} else
|
|
22331
|
-
|
|
22331
|
+
pc && console.warn("Lightmap not found", this.sourceId, this.lightmapIndex);
|
|
22332
22332
|
}
|
|
22333
22333
|
}
|
|
22334
22334
|
/**
|
|
@@ -22353,7 +22353,7 @@ const ds = class Td extends j {
|
|
|
22353
22353
|
if (this._isInstancingEnabled === e) return e && (this._handles === void 0 || this._handles != null && this._handles.length > 0);
|
|
22354
22354
|
if (this._isInstancingEnabled = e, e) {
|
|
22355
22355
|
if (this.enableInstancing === void 0 && (this.enableInstancing = !0), this._handles === void 0) {
|
|
22356
|
-
if (this._handles =
|
|
22356
|
+
if (this._handles = Jc.instance.setup(this, this.gameObject, this.context, null, { rend: this, foundMeshes: 0, useMatrixWorldAutoUpdate: this.useInstanceMatrixWorldAutoUpdate() }), this._handles)
|
|
22357
22357
|
return C.markAsInstancedRendered(this.gameObject, !0), !0;
|
|
22358
22358
|
} else if (this._handles !== null) {
|
|
22359
22359
|
for (const i of this._handles)
|
|
@@ -22400,7 +22400,7 @@ const ds = class Td extends j {
|
|
|
22400
22400
|
onBeforeRender() {
|
|
22401
22401
|
var e, i, n;
|
|
22402
22402
|
if (this.gameObject) {
|
|
22403
|
-
if (this._probeAnchorLastFrame !== this.probeAnchor && ((e = this._reflectionProbe) == null || e.onUnset(this), this.updateReflectionProbe()),
|
|
22403
|
+
if (this._probeAnchorLastFrame !== this.probeAnchor && ((e = this._reflectionProbe) == null || e.onUnset(this), this.updateReflectionProbe()), pc == this.name && this.gameObject instanceof G) {
|
|
22404
22404
|
this.gameObject.geometry.computeBoundingSphere();
|
|
22405
22405
|
const s = q(this.gameObject.geometry.boundingSphere.center).applyMatrix4(this.gameObject.matrixWorld);
|
|
22406
22406
|
H.DrawWireSphere(s, this.gameObject.geometry.boundingSphere.radius, 56831);
|
|
@@ -22410,8 +22410,8 @@ const ds = class Td extends j {
|
|
|
22410
22410
|
this.applySettings(s);
|
|
22411
22411
|
else
|
|
22412
22412
|
this.applySettings(this.gameObject);
|
|
22413
|
-
if (this.sharedMaterials.changed && (this.sharedMaterials.changed = !1, this.applyLightmapping()), (n = this._handles) != null && n.length && this.gameObject[
|
|
22414
|
-
this.gameObject[
|
|
22413
|
+
if (this.sharedMaterials.changed && (this.sharedMaterials.changed = !1, this.applyLightmapping()), (n = this._handles) != null && n.length && this.gameObject[Xc] === !0) {
|
|
22414
|
+
this.gameObject[Xc] = !1;
|
|
22415
22415
|
for (let a = this._handles.length - 1; a >= 0; a--)
|
|
22416
22416
|
this._handles[a].updateInstanceMatrix();
|
|
22417
22417
|
this.gameObject.matrixWorldNeedsUpdate = !1;
|
|
@@ -22537,7 +22537,7 @@ var jR = Object.defineProperty, Ew = (o, t, e, i) => {
|
|
|
22537
22537
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
22538
22538
|
return n && jR(t, e, n), n;
|
|
22539
22539
|
};
|
|
22540
|
-
const
|
|
22540
|
+
const nd = S("debuggltfexport");
|
|
22541
22541
|
class Aw extends Zs {
|
|
22542
22542
|
constructor() {
|
|
22543
22543
|
super(...arguments);
|
|
@@ -22552,7 +22552,7 @@ const fy = class Ra extends j {
|
|
|
22552
22552
|
r(this, "ext");
|
|
22553
22553
|
}
|
|
22554
22554
|
async exportNow(e, i) {
|
|
22555
|
-
|
|
22555
|
+
nd && console.log("Exporting objects as glTF", this.objects), e || (e = "scene"), (!this.objects || this.objects.length <= 0) && (this.objects = [this.context.scene]);
|
|
22556
22556
|
const n = {
|
|
22557
22557
|
binary: this.binary,
|
|
22558
22558
|
pivot: Ra.calculateCenter(this.objects),
|
|
@@ -22579,7 +22579,7 @@ const fy = class Ra extends j {
|
|
|
22579
22579
|
animations: (i == null ? void 0 : i.animations) || Ra.collectAnimations(e),
|
|
22580
22580
|
...i
|
|
22581
22581
|
}, a = new Array(), l = new L();
|
|
22582
|
-
i != null && i.pivot && l.position.sub(i.pivot),
|
|
22582
|
+
i != null && i.pivot && l.position.sub(i.pivot), nd && console.log("EXPORT", e), e.forEach((d) => {
|
|
22583
22583
|
d && Wm(d) && (l.children.push(d), d.matrixAutoUpdate = !1, d.matrix.copy(d.matrixWorld), C.getComponentsInChildren(d, ln).forEach((u) => {
|
|
22584
22584
|
C.isActiveInHierarchy(u.gameObject) && u.setInstancingEnabled(!1);
|
|
22585
22585
|
}), d.traverse((u) => {
|
|
@@ -22593,7 +22593,7 @@ const fy = class Ra extends j {
|
|
|
22593
22593
|
});
|
|
22594
22594
|
const c = new Dv(l);
|
|
22595
22595
|
return i != null && i.needleComponents && (this.ext = new xw()), this.ext && (this.ext.registerExport(n), this.ext.context = c), new Promise((d, u) => {
|
|
22596
|
-
|
|
22596
|
+
nd && console.log("Starting glTF export.");
|
|
22597
22597
|
try {
|
|
22598
22598
|
n == null || n.parse(
|
|
22599
22599
|
l,
|
|
@@ -22610,7 +22610,7 @@ const fy = class Ra extends j {
|
|
|
22610
22610
|
} catch (f) {
|
|
22611
22611
|
console.error(f), u(f);
|
|
22612
22612
|
} finally {
|
|
22613
|
-
a.forEach((f) => f()),
|
|
22613
|
+
a.forEach((f) => f()), nd && console.log("Finished glTF export.");
|
|
22614
22614
|
}
|
|
22615
22615
|
});
|
|
22616
22616
|
function h() {
|
|
@@ -22728,7 +22728,7 @@ class de {
|
|
|
22728
22728
|
static start(t, e) {
|
|
22729
22729
|
typeof e == "string" && (e = { parentScope: e });
|
|
22730
22730
|
const i = new zR(t, e);
|
|
22731
|
-
|
|
22731
|
+
mc.set(t, i);
|
|
22732
22732
|
}
|
|
22733
22733
|
/** Report progress for a formerly started scope.
|
|
22734
22734
|
* @param scope The scope to report progress for.
|
|
@@ -22750,7 +22750,7 @@ class de {
|
|
|
22750
22750
|
* Progress.report("export-usdz", { currentStep: 1, totalSteps: 10 });
|
|
22751
22751
|
*/
|
|
22752
22752
|
static report(t, e) {
|
|
22753
|
-
const i =
|
|
22753
|
+
const i = mc.get(t);
|
|
22754
22754
|
if (!i) {
|
|
22755
22755
|
console.warn("Reporting progress for non-existing scope", t);
|
|
22756
22756
|
return;
|
|
@@ -22761,11 +22761,11 @@ class de {
|
|
|
22761
22761
|
* @remarks Will warn if any child scope is still running (progress < 1).
|
|
22762
22762
|
*/
|
|
22763
22763
|
static end(t) {
|
|
22764
|
-
const e =
|
|
22765
|
-
e && (e.end(),
|
|
22764
|
+
const e = mc.get(t);
|
|
22765
|
+
e && (e.end(), mc.delete(t));
|
|
22766
22766
|
}
|
|
22767
22767
|
}
|
|
22768
|
-
const
|
|
22768
|
+
const mc = /* @__PURE__ */ new Map();
|
|
22769
22769
|
class zR {
|
|
22770
22770
|
constructor(t, e) {
|
|
22771
22771
|
r(this, "scopeLabel");
|
|
@@ -22781,7 +22781,7 @@ class zR {
|
|
|
22781
22781
|
r(this, "totalProgress", 0);
|
|
22782
22782
|
r(this, "selfReports", 0);
|
|
22783
22783
|
r(this, "totalReports", 0);
|
|
22784
|
-
this.parentScope = e != null && e.parentScope ?
|
|
22784
|
+
this.parentScope = e != null && e.parentScope ? mc.get(e.parentScope) : void 0, this.parentScope && (this.parentScope.childScopes.push(this), this.parentDepth = this.parentScope.parentDepth + 1), this.scopeLabel = " ".repeat(this.parentDepth * 2) + t, this.showLogs = (e == null ? void 0 : e.logTimings) ?? !!BR, this.showLogs && console.time(this.scopeLabel), this.onProgress = e == null ? void 0 : e.onProgress;
|
|
22785
22785
|
}
|
|
22786
22786
|
report(t, e = !1) {
|
|
22787
22787
|
if (t) {
|
|
@@ -22828,7 +22828,7 @@ function UR(o, t, e) {
|
|
|
22828
22828
|
b.set(_, v);
|
|
22829
22829
|
}
|
|
22830
22830
|
return b.get(_);
|
|
22831
|
-
}, s = o.colorNode ?
|
|
22831
|
+
}, s = o.colorNode ? sd(o.colorNode) : [], a = o.colorNode ? `color3f inputs:diffuseColor.connect = ${Ue}/${t}/${n(s.values().next().value)}.outputs:out>` : "", l = o.roughnessNode ? sd(o.roughnessNode) : [], c = o.roughnessNode ? `float inputs:roughness.connect = ${Ue}/${t}/${n(l.values().next().value)}.outputs:out>` : "", h = o.normalNode ? sd(o.normalNode) : [], d = o.normalNode ? `float3 inputs:normal.connect = ${Ue}/${t}/${n(h.values().next().value)}.outputs:out>` : "", u = o.metalnessNode ? sd(o.metalnessNode) : [], f = o.metalnessNode ? `float inputs:metallic.connect = ${Ue}/${t}/${n(u.values().next().value)}.outputs:out>` : "", m = /* @__PURE__ */ new Set([...s, ...l, ...h, ...u]), g = WR(m, t, e, n);
|
|
22832
22832
|
return console.debug(g), `
|
|
22833
22833
|
|
|
22834
22834
|
def Material "${t}" ${o.name ? `(
|
|
@@ -22851,7 +22851,7 @@ function UR(o, t, e) {
|
|
|
22851
22851
|
|
|
22852
22852
|
}`;
|
|
22853
22853
|
}
|
|
22854
|
-
function
|
|
22854
|
+
function sd(o) {
|
|
22855
22855
|
const t = (y) => {
|
|
22856
22856
|
if (y.nodeType) return y.nodeType;
|
|
22857
22857
|
switch (y.type) {
|
|
@@ -23446,13 +23446,13 @@ function Fw(o, t, e, i) {
|
|
|
23446
23446
|
const l = { position: o.position, quaternion: o.quaternion, scale: o.scale };
|
|
23447
23447
|
if (o.position.x === 0 && o.position.y === 0 && o.position.z === 0 && (l.position = null), o.quaternion.x === 0 && o.quaternion.y === 0 && o.quaternion.z === 0 && o.quaternion.w === 1 && (l.quaternion = null), o.scale.x === 1 && o.scale.y === 1 && o.scale.z === 1 && (l.scale = null), (o instanceof G || o instanceof Ns) && (s = o.geometry, a = o.material), i && !i(o) && (s = void 0, a = void 0), (o instanceof G || o instanceof Ns) && a && typeof a == "object" && (a instanceof yt || a instanceof Me || // material instanceof MeshPhysicalNodeMaterial ||
|
|
23448
23448
|
a.isMeshPhysicalNodeMaterial || a instanceof Pe && a.type === "MeshLineMaterial")) {
|
|
23449
|
-
const h =
|
|
23449
|
+
const h = ad(o), d = o instanceof Ns ? o : null;
|
|
23450
23450
|
n = new ni(o.uuid, h, l, s, a, void 0, d, o.animations);
|
|
23451
23451
|
} else if (o instanceof ve || o instanceof Lu) {
|
|
23452
|
-
const h =
|
|
23452
|
+
const h = ad(o);
|
|
23453
23453
|
n = new ni(o.uuid, h, l, void 0, void 0, o);
|
|
23454
23454
|
} else {
|
|
23455
|
-
const h =
|
|
23455
|
+
const h = ad(o);
|
|
23456
23456
|
n = new ni(o.uuid, h, l, void 0, void 0, void 0, void 0, o.animations);
|
|
23457
23457
|
}
|
|
23458
23458
|
if (n) {
|
|
@@ -23460,7 +23460,7 @@ function Fw(o, t, e, i) {
|
|
|
23460
23460
|
for (const h of e.extensions)
|
|
23461
23461
|
h.onExportObject && h.onExportObject.call(h, o, n, e);
|
|
23462
23462
|
} else {
|
|
23463
|
-
const h =
|
|
23463
|
+
const h = ad(o), d = new ni(o.uuid, h, { position: o.position, quaternion: o.quaternion, scale: o.scale });
|
|
23464
23464
|
t && t.add(d), t = d;
|
|
23465
23465
|
}
|
|
23466
23466
|
for (const h of o.children)
|
|
@@ -23568,7 +23568,7 @@ async function Ed(o, t, e = null) {
|
|
|
23568
23568
|
}
|
|
23569
23569
|
}
|
|
23570
23570
|
}
|
|
23571
|
-
let
|
|
23571
|
+
let od = null, qt = null, Ip, va, rd;
|
|
23572
23572
|
async function ZR(o, t = 1 / 0, e = null, i = void 0) {
|
|
23573
23573
|
Ip || (Ip = new cs(2, 2, 1, 1)), va || (va = new ns({
|
|
23574
23574
|
uniforms: {
|
|
@@ -23603,11 +23603,11 @@ async function ZR(o, t = 1 / 0, e = null, i = void 0) {
|
|
|
23603
23603
|
}`
|
|
23604
23604
|
}));
|
|
23605
23605
|
const n = va.uniforms;
|
|
23606
|
-
n.blitTexture.value = o, n.flipY.value = !1, n.scale.value = new ye(1, 1, 1, 1), i !== void 0 && n.scale.value.copy(i), va.defines.IS_SRGB = o.colorSpace == Xs, va.needsUpdate = !0,
|
|
23606
|
+
n.blitTexture.value = o, n.flipY.value = !1, n.scale.value = new ye(1, 1, 1, 1), i !== void 0 && n.scale.value.copy(i), va.defines.IS_SRGB = o.colorSpace == Xs, va.needsUpdate = !0, rd || (rd = new G(Ip, va), rd.frustumCulled = !1);
|
|
23607
23607
|
const s = new ve(), a = new ji();
|
|
23608
|
-
a.add(
|
|
23608
|
+
a.add(rd), e || (e = od = new Zr({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
|
|
23609
23609
|
const l = Math.min(o.image.width, t), c = Math.min(o.image.height, t);
|
|
23610
|
-
qt && (qt.width !== l || qt.height !== c) && (qt.dispose(), qt = null), qt || (qt = new ss(l, c, { format: Fu, type: iC, minFilter: Fd, magFilter: Fd })), e.setRenderTarget(qt), e.setSize(l, c), e.clear(), e.render(a, s),
|
|
23610
|
+
qt && (qt.width !== l || qt.height !== c) && (qt.dispose(), qt = null), qt || (qt = new ss(l, c, { format: Fu, type: iC, minFilter: Fd, magFilter: Fd })), e.setRenderTarget(qt), e.setSize(l, c), e.clear(), e.render(a, s), od && (od.dispose(), od = null);
|
|
23611
23611
|
const h = new Uint8ClampedArray(qt.width * qt.height * 4);
|
|
23612
23612
|
e.readRenderTargetPixels(qt, 0, 0, qt.width, qt.height, h);
|
|
23613
23613
|
const d = new ImageData(h, qt.width, qt.height, void 0), u = await createImageBitmap(d, { premultiplyAlpha: "none" });
|
|
@@ -23655,7 +23655,7 @@ function nT(o, t) {
|
|
|
23655
23655
|
let e = iT();
|
|
23656
23656
|
return e += o, L0(e);
|
|
23657
23657
|
}
|
|
23658
|
-
function
|
|
23658
|
+
function ad(o) {
|
|
23659
23659
|
return o.name.replace(/[-<>\(\)\[\]§$%&\/\\\=\?\,\;]/g, "") + "_" + o.id;
|
|
23660
23660
|
}
|
|
23661
23661
|
function Bb(o) {
|
|
@@ -23707,9 +23707,9 @@ function he(o) {
|
|
|
23707
23707
|
}
|
|
23708
23708
|
function Fb(o) {
|
|
23709
23709
|
const t = o.elements;
|
|
23710
|
-
return `( ${
|
|
23710
|
+
return `( ${ld(t, 0)}, ${ld(t, 4)}, ${ld(t, 8)}, ${ld(t, 12)} )`;
|
|
23711
23711
|
}
|
|
23712
|
-
function
|
|
23712
|
+
function ld(o, t) {
|
|
23713
23713
|
return `(${he(o[t + 0])}, ${he(o[t + 1])}, ${he(o[t + 2])}, ${he(o[t + 3])})`;
|
|
23714
23714
|
}
|
|
23715
23715
|
function sT(o, t = [], e = !0) {
|
|
@@ -24238,7 +24238,7 @@ class Mr {
|
|
|
24238
24238
|
}
|
|
24239
24239
|
}
|
|
24240
24240
|
r(Mr, "global_id", 0);
|
|
24241
|
-
const
|
|
24241
|
+
const zc = class zc {
|
|
24242
24242
|
constructor(t, e) {
|
|
24243
24243
|
r(this, "id");
|
|
24244
24244
|
r(this, "tokenId");
|
|
@@ -24265,18 +24265,18 @@ const Uc = class Uc {
|
|
|
24265
24265
|
// extra info written as comment at the beginning of the action
|
|
24266
24266
|
r(this, "comment");
|
|
24267
24267
|
r(this, "animationName");
|
|
24268
|
-
t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" +
|
|
24268
|
+
t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" + zc.global_id++;
|
|
24269
24269
|
}
|
|
24270
24270
|
clone() {
|
|
24271
|
-
const t = new
|
|
24271
|
+
const t = new zc(), e = t.id;
|
|
24272
24272
|
return Object.assign(t, this), t.id = e, t;
|
|
24273
24273
|
}
|
|
24274
24274
|
writeTo(t, e) {
|
|
24275
24275
|
e.beginBlock(`def Preliminary_Action "${this.id}"`), this.comment && e.appendLine(`# ${this.comment}`), this.affectedObjects && (typeof this.affectedObjects != "string" && (this.affectedObjects = Qm(this.affectedObjects, t)), e.appendLine("rel affectedObjects = " + this.affectedObjects)), typeof this.duration == "number" && (typeof this.animationSpeed == "number" && this.animationSpeed !== 1 ? e.appendLine(`double duration = ${this.duration / this.animationSpeed} `) : e.appendLine(`double duration = ${this.duration} `)), this.easeType && e.appendLine(`token easeType = "${this.easeType}"`), this.tokenId && e.appendLine(`token info:id = "${this.tokenId}"`), this.tokenId === "ChangeScene" && e.appendLine("rel scene = </StageRoot/Scenes/Scene>"), this.motionType !== void 0 && e.appendLine(`token motionType = "${this.motionType}"`), typeof this.moveDistance == "number" && e.appendLine(`double moveDistance = ${this.moveDistance} `), this.style && e.appendLine(`token style = "${this.style}"`), this.type && e.appendLine(`token type = "${this.type}"`), this.front && e.appendLine(`vector3d front = (${this.front.x}, ${this.front.y}, ${this.front.z})`), this.up && e.appendLine(`vector3d upVector = (${this.up.x}, ${this.up.y}, ${this.up.z})`), typeof this.start == "number" && e.appendLine(`double start = ${this.start} `), typeof this.animationSpeed == "number" && e.appendLine(`double animationSpeed = ${this.animationSpeed.toFixed(2)} `), typeof this.reversed == "boolean" && e.appendLine(`bool reversed = ${this.reversed}`), typeof this.pingPong == "boolean" && e.appendLine(`bool reverses = ${this.pingPong}`), this.xFormTarget && (typeof this.xFormTarget != "string" && (this.xFormTarget = Qm(this.xFormTarget, t)), e.appendLine(`rel xformTarget = ${this.xFormTarget}`)), typeof this.audio == "string" && e.appendLine(`asset audio = @${this.audio}@`), typeof this.gain == "number" && e.appendLine(`double gain = ${this.gain}`), typeof this.auralMode == "string" && e.appendLine(`token auralMode = "${this.auralMode}"`), typeof this.multiplePerformOperation == "string" && e.appendLine(`token multiplePerformOperation = "${this.multiplePerformOperation}"`), typeof this.velocity == "object" && e.appendLine(`vector3d velocity = (${this.velocity.x}, ${this.velocity.y}, ${this.velocity.z})`), e.closeBlock();
|
|
24276
24276
|
}
|
|
24277
24277
|
};
|
|
24278
|
-
r(
|
|
24279
|
-
let Ji =
|
|
24278
|
+
r(zc, "global_id", 0);
|
|
24279
|
+
let Ji = zc;
|
|
24280
24280
|
class en {
|
|
24281
24281
|
constructor(t, e, i) {
|
|
24282
24282
|
r(this, "x", 0);
|
|
@@ -25071,7 +25071,7 @@ var fT = Object.defineProperty, He = (o, t, e, i) => {
|
|
|
25071
25071
|
return n && fT(t, e, n), n;
|
|
25072
25072
|
};
|
|
25073
25073
|
const Wb = S("debugusdzbehaviours");
|
|
25074
|
-
function
|
|
25074
|
+
function yh(o) {
|
|
25075
25075
|
o && (o.getComponentInParent(fl) || (z() && console.debug('Raycaster on "' + o.name + '" was automatically added, because no raycaster was found in the parent hierarchy.'), o.addComponent(an)));
|
|
25076
25076
|
}
|
|
25077
25077
|
class Pl extends j {
|
|
@@ -25087,7 +25087,7 @@ class Pl extends j {
|
|
|
25087
25087
|
r(this, "targetScale", new w());
|
|
25088
25088
|
}
|
|
25089
25089
|
start() {
|
|
25090
|
-
|
|
25090
|
+
yh(this.gameObject);
|
|
25091
25091
|
}
|
|
25092
25092
|
onPointerClick(e) {
|
|
25093
25093
|
e.use(), this.coroutine && this.stopCoroutine(this.coroutine), this.relativeMotion ? this.coroutine = this.startCoroutine(this.moveRelative()) : this.coroutine = this.startCoroutine(this.moveToTarget());
|
|
@@ -25096,12 +25096,12 @@ class Pl extends j {
|
|
|
25096
25096
|
if (!this.target || !this.object) return;
|
|
25097
25097
|
const e = te(this.object).clone(), i = te(this.target).clone(), n = Oe(this.object).clone(), s = Oe(this.target).clone(), a = Ke(this.object).clone(), l = Ke(this.target).clone(), c = e.distanceTo(i), h = n.angleTo(s), d = a.distanceTo(l);
|
|
25098
25098
|
if (c < 0.01 && h < 0.01 && d < 0.01) {
|
|
25099
|
-
vt(this.object, i), Mn(this.object, s),
|
|
25099
|
+
vt(this.object, i), Mn(this.object, s), Hc(this.object, l), this.coroutine = null;
|
|
25100
25100
|
return;
|
|
25101
25101
|
}
|
|
25102
25102
|
let u = 0, f = 0;
|
|
25103
25103
|
for (; u < 1; )
|
|
25104
|
-
u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), f = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, f), this.targetRot.slerpQuaternions(n, s, f), this.targetScale.lerpVectors(a, l, f), vt(this.object, this.targetPos), Mn(this.object, this.targetRot),
|
|
25104
|
+
u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), f = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, f), this.targetRot.slerpQuaternions(n, s, f), this.targetScale.lerpVectors(a, l, f), vt(this.object, this.targetPos), Mn(this.object, this.targetRot), Hc(this.object, this.targetScale), yield;
|
|
25105
25105
|
this.coroutine = null;
|
|
25106
25106
|
}
|
|
25107
25107
|
*moveRelative() {
|
|
@@ -25150,7 +25150,7 @@ const mf = ($e = class extends j {
|
|
|
25150
25150
|
}
|
|
25151
25151
|
start() {
|
|
25152
25152
|
var e;
|
|
25153
|
-
this._objectsWithThisMaterial = this.objectsWithThisMaterial,
|
|
25153
|
+
this._objectsWithThisMaterial = this.objectsWithThisMaterial, yh(this.gameObject), z() && this._objectsWithThisMaterial.length <= 0 && console.warn('ChangeMaterialOnClick: No objects found with material "' + ((e = this.materialToSwitch) == null ? void 0 : e.name) + '"');
|
|
25154
25154
|
}
|
|
25155
25155
|
onPointerEnter(e) {
|
|
25156
25156
|
this.context.input.setCursor("pointer");
|
|
@@ -25241,7 +25241,7 @@ He([
|
|
|
25241
25241
|
], mf.prototype, "fadeDuration");
|
|
25242
25242
|
let Vw = mf;
|
|
25243
25243
|
var _e;
|
|
25244
|
-
const
|
|
25244
|
+
const _h = (_e = class extends j {
|
|
25245
25245
|
constructor() {
|
|
25246
25246
|
super(...arguments);
|
|
25247
25247
|
r(this, "target");
|
|
@@ -25256,7 +25256,7 @@ const bh = (_e = class extends j {
|
|
|
25256
25256
|
r(this, "targetStateBeforeCreatingDocument", !1);
|
|
25257
25257
|
}
|
|
25258
25258
|
start() {
|
|
25259
|
-
|
|
25259
|
+
yh(this.gameObject);
|
|
25260
25260
|
}
|
|
25261
25261
|
onPointerClick(e) {
|
|
25262
25262
|
e.use(), !this.toggleOnClick && this.hideSelf && (this.gameObject.visible = !1), this.target && (this.target.visible = this.toggleOnClick ? !this.target.visible : this.targetState);
|
|
@@ -25312,7 +25312,7 @@ const bh = (_e = class extends j {
|
|
|
25312
25312
|
));
|
|
25313
25313
|
}
|
|
25314
25314
|
const l = new Array();
|
|
25315
|
-
this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel),
|
|
25315
|
+
this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel), eh.add(l, e);
|
|
25316
25316
|
}
|
|
25317
25317
|
}
|
|
25318
25318
|
afterSerialize(e, i) {
|
|
@@ -25321,17 +25321,17 @@ const bh = (_e = class extends j {
|
|
|
25321
25321
|
}, r(_e, "clonedToggleIndex", 0), r(_e, "wasVisible", Symbol("usdz_SetActiveOnClick_wasVisible")), r(_e, "toggleClone", Symbol("clone for toggling")), r(_e, "reverseToggleClone", Symbol("clone for reverse toggling")), _e);
|
|
25322
25322
|
He([
|
|
25323
25323
|
p(L)
|
|
25324
|
-
],
|
|
25324
|
+
], _h.prototype, "target");
|
|
25325
25325
|
He([
|
|
25326
25326
|
p()
|
|
25327
|
-
],
|
|
25327
|
+
], _h.prototype, "toggleOnClick");
|
|
25328
25328
|
He([
|
|
25329
25329
|
p()
|
|
25330
|
-
],
|
|
25330
|
+
], _h.prototype, "targetState");
|
|
25331
25331
|
He([
|
|
25332
25332
|
p()
|
|
25333
|
-
],
|
|
25334
|
-
let Hw =
|
|
25333
|
+
], _h.prototype, "hideSelf");
|
|
25334
|
+
let Hw = _h;
|
|
25335
25335
|
const wn = class wn extends j {
|
|
25336
25336
|
constructor() {
|
|
25337
25337
|
super(...arguments);
|
|
@@ -25359,8 +25359,8 @@ const wn = class wn extends j {
|
|
|
25359
25359
|
}
|
|
25360
25360
|
};
|
|
25361
25361
|
r(wn, "_fadeBehaviour"), r(wn, "_fadeObjects", []);
|
|
25362
|
-
let
|
|
25363
|
-
class
|
|
25362
|
+
let eh = wn;
|
|
25363
|
+
class bh extends j {
|
|
25364
25364
|
constructor() {
|
|
25365
25365
|
super(...arguments);
|
|
25366
25366
|
r(this, "target");
|
|
@@ -25384,13 +25384,13 @@ class vh extends j {
|
|
|
25384
25384
|
}
|
|
25385
25385
|
He([
|
|
25386
25386
|
p()
|
|
25387
|
-
],
|
|
25387
|
+
], bh.prototype, "target");
|
|
25388
25388
|
He([
|
|
25389
25389
|
p()
|
|
25390
|
-
],
|
|
25390
|
+
], bh.prototype, "duration");
|
|
25391
25391
|
He([
|
|
25392
25392
|
p()
|
|
25393
|
-
],
|
|
25393
|
+
], bh.prototype, "motionType");
|
|
25394
25394
|
class qr extends j {
|
|
25395
25395
|
constructor() {
|
|
25396
25396
|
super(...arguments);
|
|
@@ -25401,7 +25401,7 @@ class qr extends j {
|
|
|
25401
25401
|
r(this, "trigger", "tap");
|
|
25402
25402
|
}
|
|
25403
25403
|
start() {
|
|
25404
|
-
|
|
25404
|
+
yh(this.gameObject);
|
|
25405
25405
|
}
|
|
25406
25406
|
ensureAudioSource() {
|
|
25407
25407
|
if (!this.target) {
|
|
@@ -25483,7 +25483,7 @@ const gy = (Dt = class extends j {
|
|
|
25483
25483
|
return ((e = this.animator) == null ? void 0 : e.gameObject) || ((i = this.animation) == null ? void 0 : i.gameObject);
|
|
25484
25484
|
}
|
|
25485
25485
|
start() {
|
|
25486
|
-
|
|
25486
|
+
yh(this.gameObject);
|
|
25487
25487
|
}
|
|
25488
25488
|
onPointerClick(e) {
|
|
25489
25489
|
var i;
|
|
@@ -25678,7 +25678,7 @@ He([
|
|
|
25678
25678
|
p()
|
|
25679
25679
|
], gy.prototype, "stateName");
|
|
25680
25680
|
let mu = gy;
|
|
25681
|
-
class
|
|
25681
|
+
class vh extends j {
|
|
25682
25682
|
constructor() {
|
|
25683
25683
|
super(...arguments);
|
|
25684
25684
|
r(this, "target");
|
|
@@ -25690,7 +25690,7 @@ class wh extends j {
|
|
|
25690
25690
|
}
|
|
25691
25691
|
He([
|
|
25692
25692
|
p(L)
|
|
25693
|
-
],
|
|
25693
|
+
], vh.prototype, "target");
|
|
25694
25694
|
class gf extends j {
|
|
25695
25695
|
constructor() {
|
|
25696
25696
|
super(...arguments);
|
|
@@ -25698,9 +25698,9 @@ class gf extends j {
|
|
|
25698
25698
|
}
|
|
25699
25699
|
}
|
|
25700
25700
|
He([
|
|
25701
|
-
p(
|
|
25701
|
+
p(vh)
|
|
25702
25702
|
], gf.prototype, "target");
|
|
25703
|
-
class yf extends
|
|
25703
|
+
class yf extends vh {
|
|
25704
25704
|
constructor() {
|
|
25705
25705
|
super(...arguments);
|
|
25706
25706
|
r(this, "type", 1);
|
|
@@ -25855,11 +25855,11 @@ var pT = Object.defineProperty, mT = Object.getOwnPropertyDescriptor, St = (o, t
|
|
|
25855
25855
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
25856
25856
|
return i && n && pT(t, e, n), n;
|
|
25857
25857
|
};
|
|
25858
|
-
const gu = S("debugspriterenderer"), gT = S("wireframe"),
|
|
25858
|
+
const gu = S("debugspriterenderer"), gT = S("wireframe"), Uc = class Uc {
|
|
25859
25859
|
static getOrCreateGeometry(t) {
|
|
25860
25860
|
if (t.__cached_geometry) return t.__cached_geometry;
|
|
25861
|
-
if (t.guid &&
|
|
25862
|
-
return gu && console.log("Take cached geometry for sprite", t.guid),
|
|
25861
|
+
if (t.guid && Uc.cache[t.guid])
|
|
25862
|
+
return gu && console.log("Take cached geometry for sprite", t.guid), Uc.cache[t.guid];
|
|
25863
25863
|
const e = new es();
|
|
25864
25864
|
t.__cached_geometry = e;
|
|
25865
25865
|
const i = new Float32Array(t.triangles.length * 3), n = new Float32Array(t.triangles.length * 2);
|
|
@@ -25872,8 +25872,8 @@ const gu = S("debugspriterenderer"), gT = S("wireframe"), Nc = class Nc {
|
|
|
25872
25872
|
return e.setAttribute("position", new _t(i, 3)), e.setAttribute("uv", new _t(n, 2)), t.guid && (this.cache[t.guid] = e), gu && console.log("Built sprite geometry", t, e), e;
|
|
25873
25873
|
}
|
|
25874
25874
|
};
|
|
25875
|
-
r(
|
|
25876
|
-
let ml =
|
|
25875
|
+
r(Uc, "cache", {});
|
|
25876
|
+
let ml = Uc;
|
|
25877
25877
|
class yT {
|
|
25878
25878
|
constructor() {
|
|
25879
25879
|
r(this, "x");
|
|
@@ -25936,7 +25936,7 @@ St([
|
|
|
25936
25936
|
_l()
|
|
25937
25937
|
], Zo.prototype, "vertices", 2);
|
|
25938
25938
|
const Bp = Symbol("spriteOwner");
|
|
25939
|
-
class
|
|
25939
|
+
class th {
|
|
25940
25940
|
constructor() {
|
|
25941
25941
|
r(this, "sprites");
|
|
25942
25942
|
this.sprites = [];
|
|
@@ -25944,7 +25944,7 @@ class ih {
|
|
|
25944
25944
|
}
|
|
25945
25945
|
St([
|
|
25946
25946
|
p(Zo)
|
|
25947
|
-
],
|
|
25947
|
+
], th.prototype, "sprites", 2);
|
|
25948
25948
|
const yy = class Km {
|
|
25949
25949
|
// we don't assign anything here because it's used by the serialization system.
|
|
25950
25950
|
// there's currently a limitation in the serializer when e.g. spriteSheet is already assigned it will not be overriden by the serializer
|
|
@@ -25955,7 +25955,7 @@ const yy = class Km {
|
|
|
25955
25955
|
}
|
|
25956
25956
|
static create() {
|
|
25957
25957
|
const t = new Km();
|
|
25958
|
-
return t.spriteSheet = new
|
|
25958
|
+
return t.spriteSheet = new th(), t;
|
|
25959
25959
|
}
|
|
25960
25960
|
clone() {
|
|
25961
25961
|
const t = new Km();
|
|
@@ -25965,7 +25965,7 @@ const yy = class Km {
|
|
|
25965
25965
|
* Set the sprite to be rendered in the currently assigned sprite sheet at the currently active index {@link index}
|
|
25966
25966
|
*/
|
|
25967
25967
|
set sprite(t) {
|
|
25968
|
-
t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new
|
|
25968
|
+
t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new th(), this.spriteSheet.sprites = [t], this.index = 0));
|
|
25969
25969
|
}
|
|
25970
25970
|
/** The currently active sprite */
|
|
25971
25971
|
get sprite() {
|
|
@@ -25988,12 +25988,12 @@ const yy = class Km {
|
|
|
25988
25988
|
}
|
|
25989
25989
|
};
|
|
25990
25990
|
St([
|
|
25991
|
-
p(
|
|
25991
|
+
p(th)
|
|
25992
25992
|
], yy.prototype, "spriteSheet", 2);
|
|
25993
25993
|
St([
|
|
25994
25994
|
p()
|
|
25995
25995
|
], yy.prototype, "index", 2);
|
|
25996
|
-
let
|
|
25996
|
+
let Ec = yy;
|
|
25997
25997
|
class Ni extends j {
|
|
25998
25998
|
constructor() {
|
|
25999
25999
|
super(...arguments);
|
|
@@ -26033,7 +26033,7 @@ class Ni extends j {
|
|
|
26033
26033
|
*/
|
|
26034
26034
|
addSprite(e, i = !1) {
|
|
26035
26035
|
var s, a;
|
|
26036
|
-
if (this._spriteSheet || (this._spriteSheet =
|
|
26036
|
+
if (this._spriteSheet || (this._spriteSheet = Ec.create()), !this._spriteSheet.spriteSheet) return -1;
|
|
26037
26037
|
(s = this._spriteSheet.spriteSheet) == null || s.sprites.push(e);
|
|
26038
26038
|
const n = ((a = this._spriteSheet.spriteSheet) == null ? void 0 : a.sprites.length) - 1;
|
|
26039
26039
|
return i && (this.spriteIndex = n), n;
|
|
@@ -26049,7 +26049,7 @@ class Ni extends j {
|
|
|
26049
26049
|
if (typeof e == "number") {
|
|
26050
26050
|
const i = Math.floor(e);
|
|
26051
26051
|
this.spriteIndex = i;
|
|
26052
|
-
} else e instanceof Zo ? (this._spriteSheet || (this._spriteSheet =
|
|
26052
|
+
} else e instanceof Zo ? (this._spriteSheet || (this._spriteSheet = Ec.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e), this.updateSprite()) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
|
|
26053
26053
|
}
|
|
26054
26054
|
/**
|
|
26055
26055
|
* Set the index of the sprite to be rendered in the currently assigned sprite sheet
|
|
@@ -26070,7 +26070,7 @@ class Ni extends j {
|
|
|
26070
26070
|
}
|
|
26071
26071
|
/** @internal */
|
|
26072
26072
|
awake() {
|
|
26073
|
-
this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet =
|
|
26073
|
+
this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet = Ec.create(), gu && console.log("Awake", this.name, this, this.sprite);
|
|
26074
26074
|
}
|
|
26075
26075
|
/** @internal */
|
|
26076
26076
|
start() {
|
|
@@ -26131,7 +26131,7 @@ St([
|
|
|
26131
26131
|
p()
|
|
26132
26132
|
], Ni.prototype, "toneMapped", 2);
|
|
26133
26133
|
St([
|
|
26134
|
-
p(
|
|
26134
|
+
p(Ec)
|
|
26135
26135
|
], Ni.prototype, "sprite", 1);
|
|
26136
26136
|
const Vb = S("debugwebxr"), _T = new oe().makeRotationY(Math.PI), Mo = class Mo extends j {
|
|
26137
26137
|
constructor() {
|
|
@@ -26599,16 +26599,16 @@ function wT(o, t) {
|
|
|
26599
26599
|
let e = t !== o;
|
|
26600
26600
|
return !e && o && t && (Array.isArray(o) && Array.isArray(t) || typeof o == "object" && typeof t == "object") && (e = !0), e;
|
|
26601
26601
|
}
|
|
26602
|
-
const
|
|
26602
|
+
const Ac = Symbol("AutoSyncHandler");
|
|
26603
26603
|
function xT(o) {
|
|
26604
|
-
if (o[
|
|
26605
|
-
return o[
|
|
26604
|
+
if (o[Ac])
|
|
26605
|
+
return o[Ac];
|
|
26606
26606
|
const t = _y.getOrCreateSyncer(o);
|
|
26607
|
-
return t == null || t.init(o), o[
|
|
26607
|
+
return t == null || t.init(o), o[Ac] = t, t;
|
|
26608
26608
|
}
|
|
26609
26609
|
function ST(o) {
|
|
26610
|
-
const t = o[
|
|
26611
|
-
t && (_y.removeSyncer(t), t.destroy(), delete o[
|
|
26610
|
+
const t = o[Ac];
|
|
26611
|
+
t && (_y.removeSyncer(t), t.destroy(), delete o[Ac]);
|
|
26612
26612
|
}
|
|
26613
26613
|
const Xw = function(o = null) {
|
|
26614
26614
|
return function(t, e) {
|
|
@@ -27820,7 +27820,7 @@ Ct([
|
|
|
27820
27820
|
p(le)
|
|
27821
27821
|
], pt.prototype, "defaultAvatar");
|
|
27822
27822
|
let wy = pt;
|
|
27823
|
-
const
|
|
27823
|
+
const cd = S("debugusdzbehaviours");
|
|
27824
27824
|
class Kw {
|
|
27825
27825
|
constructor() {
|
|
27826
27826
|
r(this, "behaviours", []);
|
|
@@ -27858,7 +27858,7 @@ class Kw {
|
|
|
27858
27858
|
l instanceof Promise && e.push(l);
|
|
27859
27859
|
}
|
|
27860
27860
|
}, !1);
|
|
27861
|
-
}),
|
|
27861
|
+
}), cd && console.log("onBeforeBuildDocument: all components", this.behaviourComponents), Promise.all(e);
|
|
27862
27862
|
}
|
|
27863
27863
|
onExportObject(t, e, i) {
|
|
27864
27864
|
var n;
|
|
@@ -27869,7 +27869,7 @@ class Kw {
|
|
|
27869
27869
|
for (const u of this.behaviourComponents)
|
|
27870
27870
|
typeof u.afterCreateDocument == "function" && u.afterCreateDocument(this, t);
|
|
27871
27871
|
this.behaviourComponentsCopy = this.behaviourComponents.slice(), this.behaviourComponents.length = 0, this.audioClipsCopy = this.audioClips.slice(), this.audioClips.length = 0;
|
|
27872
|
-
const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a =
|
|
27872
|
+
const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = cd;
|
|
27873
27873
|
let l = `graph LR
|
|
27874
27874
|
`, c = "";
|
|
27875
27875
|
function h(u) {
|
|
@@ -27965,7 +27965,7 @@ axisFormat %s
|
|
|
27965
27965
|
n.add(f.uuid);
|
|
27966
27966
|
else
|
|
27967
27967
|
n.add(u.uuid);
|
|
27968
|
-
|
|
27968
|
+
cd && console.log("All Behavior trigger sources and action targets", e, i, n), this.targetUuids = new Set(n);
|
|
27969
27969
|
}
|
|
27970
27970
|
onAfterHierarchy(t, e) {
|
|
27971
27971
|
var i;
|
|
@@ -27977,7 +27977,7 @@ axisFormat %s
|
|
|
27977
27977
|
}
|
|
27978
27978
|
}
|
|
27979
27979
|
async onAfterSerialize(t) {
|
|
27980
|
-
|
|
27980
|
+
cd && console.log("onAfterSerialize behaviours", this.behaviourComponentsCopy);
|
|
27981
27981
|
for (const e of this.behaviourComponentsCopy)
|
|
27982
27982
|
typeof e.afterSerialize == "function" && (e.afterSerialize.constructor.name === "AsyncFunction" ? await e.afterSerialize(this, t) : e.afterSerialize(this, t));
|
|
27983
27983
|
for (const { clipUrl: e, filesKey: i } of this.audioClipsCopy) {
|
|
@@ -28011,7 +28011,7 @@ class Zw {
|
|
|
28011
28011
|
var f;
|
|
28012
28012
|
c.beginBlock('def RealityKitComponent "Collider"', "{", !0), c.appendLine("uint group = 1"), c.appendLine('uniform token info:id = "RealityKit.Collider"'), c.appendLine("uint mask = 4294967295");
|
|
28013
28013
|
const u = l.isTrigger ? "Trigger" : "Default";
|
|
28014
|
-
if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof
|
|
28014
|
+
if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof gh) {
|
|
28015
28015
|
const m = l;
|
|
28016
28016
|
c.appendLine('token shapeType = "Sphere"'), c.appendLine(`float radius = ${m.radius}`);
|
|
28017
28017
|
} else if (l instanceof ry) {
|
|
@@ -28110,7 +28110,7 @@ class En extends j {
|
|
|
28110
28110
|
const l = this._parentComponent.shadowComponent;
|
|
28111
28111
|
l && (l == null || l.add(e), s = !0);
|
|
28112
28112
|
}
|
|
28113
|
-
this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent),
|
|
28113
|
+
this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent), hh && e.add(new Di(0.5)), this.onAfterAddedToScene(), s && n1(), IT && console.warn("Added shadow component", this.shadowComponent);
|
|
28114
28114
|
}
|
|
28115
28115
|
setShadowComponentOwner(e) {
|
|
28116
28116
|
if (e && (e[Ri] === void 0 || e[Ri] === this) && (e[Ri] = this, e.children))
|
|
@@ -28139,7 +28139,7 @@ class wf extends En {
|
|
|
28139
28139
|
super.awake();
|
|
28140
28140
|
}
|
|
28141
28141
|
}
|
|
28142
|
-
var LT = Object.defineProperty, DT = Object.getOwnPropertyDescriptor,
|
|
28142
|
+
var LT = Object.defineProperty, DT = Object.getOwnPropertyDescriptor, wh = (o, t, e, i) => {
|
|
28143
28143
|
for (var n = i > 1 ? void 0 : i ? DT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
28144
28144
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
28145
28145
|
return i && n && LT(t, e, n), n;
|
|
@@ -28159,7 +28159,7 @@ class BT {
|
|
|
28159
28159
|
r(this, "height");
|
|
28160
28160
|
}
|
|
28161
28161
|
}
|
|
28162
|
-
const bn = new w(), Zl = new oe(),
|
|
28162
|
+
const bn = new w(), Zl = new oe(), hd = new W(), kl = class Jw extends En {
|
|
28163
28163
|
constructor() {
|
|
28164
28164
|
super(...arguments);
|
|
28165
28165
|
r(this, "_anchoredPosition");
|
|
@@ -28272,7 +28272,7 @@ const bn = new w(), Zl = new oe(), dd = new W(), kl = class Jw extends En {
|
|
|
28272
28272
|
this._lastUpdateFrame = this.context.time.frameCount;
|
|
28273
28273
|
const i = this.shadowComponent;
|
|
28274
28274
|
if (!i) return;
|
|
28275
|
-
this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent, Jw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Np && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, bn.set(0, 0, 0), this.applyPivot(bn), i.matrix.setPosition(bn.x, bn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (
|
|
28275
|
+
this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent, Jw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Np && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, bn.set(0, 0, 0), this.applyPivot(bn), i.matrix.setPosition(bn.x, bn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (hd.copy(this.gameObject.quaternion), hd.x *= -1, hd.z *= -1, Zl.makeRotationFromQuaternion(hd), i.matrix.premultiply(Zl)), bn.set(0, 0, 0), this.applyAnchoring(bn), (s = this.canvas) != null && s.screenspace ? bn.z += 0.1 : bn.z += 0.01, Zl.identity(), Zl.setPosition(bn.x, bn.y, bn.z), i.matrix.premultiply(Zl), i.matrix.scale(this.gameObject.scale)), this.lastMatrix.copy(this.gameObject.matrix);
|
|
28276
28276
|
const n = !0;
|
|
28277
28277
|
for (const a of Hg(this.gameObject, En, n, 1)) {
|
|
28278
28278
|
if (a === this || !a.activeAndEnabled) continue;
|
|
@@ -28344,19 +28344,19 @@ const bn = new w(), Zl = new oe(), dd = new W(), kl = class Jw extends En {
|
|
|
28344
28344
|
return this._createdTextBlocks.push(i), i;
|
|
28345
28345
|
}
|
|
28346
28346
|
};
|
|
28347
|
-
|
|
28347
|
+
wh([
|
|
28348
28348
|
p(ae)
|
|
28349
28349
|
], kl.prototype, "anchoredPosition", 1);
|
|
28350
|
-
|
|
28350
|
+
wh([
|
|
28351
28351
|
p(ae)
|
|
28352
28352
|
], kl.prototype, "sizeDelta", 2);
|
|
28353
|
-
|
|
28353
|
+
wh([
|
|
28354
28354
|
p(ae)
|
|
28355
28355
|
], kl.prototype, "pivot", 2);
|
|
28356
|
-
|
|
28356
|
+
wh([
|
|
28357
28357
|
p(ae)
|
|
28358
28358
|
], kl.prototype, "anchorMin", 2);
|
|
28359
|
-
|
|
28359
|
+
wh([
|
|
28360
28360
|
p(ae)
|
|
28361
28361
|
], kl.prototype, "anchorMax", 2);
|
|
28362
28362
|
let ls = kl;
|
|
@@ -28365,7 +28365,7 @@ var FT = Object.defineProperty, ex = (o, t, e, i) => {
|
|
|
28365
28365
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
28366
28366
|
return n && FT(t, e, n), n;
|
|
28367
28367
|
};
|
|
28368
|
-
class
|
|
28368
|
+
class xh extends j {
|
|
28369
28369
|
constructor() {
|
|
28370
28370
|
super(...arguments);
|
|
28371
28371
|
r(this, "effectColor");
|
|
@@ -28374,16 +28374,16 @@ class Sh extends j {
|
|
|
28374
28374
|
}
|
|
28375
28375
|
ex([
|
|
28376
28376
|
p(ce)
|
|
28377
|
-
],
|
|
28377
|
+
], xh.prototype, "effectColor");
|
|
28378
28378
|
ex([
|
|
28379
28379
|
p(ae)
|
|
28380
|
-
],
|
|
28380
|
+
], xh.prototype, "effectDistance");
|
|
28381
28381
|
var zT = Object.defineProperty, UT = Object.getOwnPropertyDescriptor, tx = (o, t, e, i) => {
|
|
28382
28382
|
for (var n = i > 1 ? void 0 : i ? UT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
28383
28383
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
28384
28384
|
return i && n && zT(t, e, n), n;
|
|
28385
28385
|
};
|
|
28386
|
-
const
|
|
28386
|
+
const dd = {
|
|
28387
28387
|
backgroundColor: new re(1, 1, 1),
|
|
28388
28388
|
backgroundOpacity: 1,
|
|
28389
28389
|
borderColor: new re(1, 1, 1),
|
|
@@ -28418,7 +28418,7 @@ const xy = (Zn = class extends En {
|
|
|
28418
28418
|
return this._alphaFactor;
|
|
28419
28419
|
}
|
|
28420
28420
|
onColorChanged() {
|
|
28421
|
-
this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(),
|
|
28421
|
+
this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(), dd.backgroundColor = this.sRGBColor, dd.backgroundOpacity = this._color.alpha * this._alphaFactor, this.applyEffects(dd, this._alphaFactor), this.uiObject.set(dd), this.markDirty());
|
|
28422
28422
|
}
|
|
28423
28423
|
// used via animations
|
|
28424
28424
|
get m_Color() {
|
|
@@ -28474,7 +28474,7 @@ const xy = (Zn = class extends En {
|
|
|
28474
28474
|
}
|
|
28475
28475
|
applyEffects(e, i = 1) {
|
|
28476
28476
|
var s;
|
|
28477
|
-
const n = (s = this.gameObject) == null ? void 0 : s.getComponent(
|
|
28477
|
+
const n = (s = this.gameObject) == null ? void 0 : s.getComponent(xh);
|
|
28478
28478
|
n && (n.effectDistance && (e.borderWidth = Math.max(Math.abs(n.effectDistance.x), Math.abs(n.effectDistance.y))), n.effectColor && (e.borderColor = n.effectColor, e.borderOpacity = n.effectColor.alpha * i));
|
|
28479
28479
|
}
|
|
28480
28480
|
async setTexture(e) {
|
|
@@ -29048,11 +29048,11 @@ class $i extends j {
|
|
|
29048
29048
|
}
|
|
29049
29049
|
onEnable() {
|
|
29050
29050
|
Gb && console.log(this.name, this), this._rectTransform = this.gameObject.getComponent(ls);
|
|
29051
|
-
const e = this.gameObject.getComponentInParent(
|
|
29051
|
+
const e = this.gameObject.getComponentInParent(ih);
|
|
29052
29052
|
e && e.registerLayoutGroup(this), this._needsUpdate = !0;
|
|
29053
29053
|
}
|
|
29054
29054
|
onDisable() {
|
|
29055
|
-
const e = this.gameObject.getComponentInParent(
|
|
29055
|
+
const e = this.gameObject.getComponentInParent(ih);
|
|
29056
29056
|
e && e.unregisterLayoutGroup(this);
|
|
29057
29057
|
}
|
|
29058
29058
|
// for animation:
|
|
@@ -29414,7 +29414,7 @@ us([
|
|
|
29414
29414
|
us([
|
|
29415
29415
|
p()
|
|
29416
29416
|
], hn.prototype, "planeDistance", 2);
|
|
29417
|
-
let
|
|
29417
|
+
let ih = hn;
|
|
29418
29418
|
var QT = Object.defineProperty, YT = Object.getOwnPropertyDescriptor, Cy = (o, t, e, i) => {
|
|
29419
29419
|
for (var n = i > 1 ? void 0 : i ? YT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
29420
29420
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
@@ -29468,7 +29468,7 @@ class cx {
|
|
|
29468
29468
|
// TODO would probably be better to export each object instead of the entire Canvas
|
|
29469
29469
|
// so that we don't export them twice (once as regular hierarchy, once as part of Canvas export)
|
|
29470
29470
|
onExportObject(t, e, i) {
|
|
29471
|
-
const n = C.getComponent(t,
|
|
29471
|
+
const n = C.getComponent(t, ih);
|
|
29472
29472
|
if (n && n.enabled && n.renderMode === ax.WorldSpace) {
|
|
29473
29473
|
const s = new Sy(), a = C.getComponent(t, ls), l = C.getComponent(t, Qr), c = new Array();
|
|
29474
29474
|
if (a) {
|
|
@@ -29548,7 +29548,7 @@ class cx {
|
|
|
29548
29548
|
t.index.needsUpdate = !0;
|
|
29549
29549
|
}
|
|
29550
29550
|
}
|
|
29551
|
-
const
|
|
29551
|
+
const gc = S("debugusdz");
|
|
29552
29552
|
function KT(o, t) {
|
|
29553
29553
|
var l;
|
|
29554
29554
|
const e = [], i = C.getComponentsInChildren(o, $t), n = C.getComponentsInChildren(o, si), s = new Array(), a = new Array();
|
|
@@ -29565,10 +29565,10 @@ function KT(o, t) {
|
|
|
29565
29565
|
else
|
|
29566
29566
|
for (const c of i) {
|
|
29567
29567
|
if (!c || !c.runtimeAnimatorController || !c.enabled) continue;
|
|
29568
|
-
|
|
29568
|
+
gc && console.log(c);
|
|
29569
29569
|
const h = [];
|
|
29570
29570
|
for (const d of c.runtimeAnimatorController.enumerateActions()) {
|
|
29571
|
-
|
|
29571
|
+
gc && console.log(d);
|
|
29572
29572
|
const u = d.getClip();
|
|
29573
29573
|
h.includes(u) || h.push(u);
|
|
29574
29574
|
}
|
|
@@ -29584,13 +29584,13 @@ function KT(o, t) {
|
|
|
29584
29584
|
}
|
|
29585
29585
|
else
|
|
29586
29586
|
for (const c of n) {
|
|
29587
|
-
|
|
29587
|
+
gc && console.log(c);
|
|
29588
29588
|
const h = [];
|
|
29589
29589
|
for (const d of c.animations)
|
|
29590
29590
|
h.includes(d) || h.push(d);
|
|
29591
29591
|
e.push({ root: c.gameObject, clips: h });
|
|
29592
29592
|
}
|
|
29593
|
-
|
|
29593
|
+
gc && (e == null ? void 0 : e.length) > 0 && console.log("USDZ Animation Clips without behaviours", e);
|
|
29594
29594
|
for (const c of e)
|
|
29595
29595
|
for (const h of c.clips)
|
|
29596
29596
|
t.registerAnimation(c.root, h);
|
|
@@ -29598,7 +29598,7 @@ function KT(o, t) {
|
|
|
29598
29598
|
}
|
|
29599
29599
|
function ZT(o, t) {
|
|
29600
29600
|
const e = C.getComponentsInChildren(o, Rn), i = C.getComponentsInChildren(o, qr), n = new Array(), s = new Array();
|
|
29601
|
-
|
|
29601
|
+
gc && console.log({ audioSources: e, playAudioOnClicks: i });
|
|
29602
29602
|
for (const a of i) {
|
|
29603
29603
|
if (!a.target) continue;
|
|
29604
29604
|
const l = e.indexOf(a.target);
|
|
@@ -29708,12 +29708,12 @@ const wi = (Ls = class extends j {
|
|
|
29708
29708
|
onEnable() {
|
|
29709
29709
|
var n;
|
|
29710
29710
|
const e = Q.supportsQuickLookAR(), i = Q.isiOS() || Q.isiPad();
|
|
29711
|
-
!this.button && (xi || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = qb(this.context, e), this.link.addEventListener("message", this.lastCallback)), xi && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement),
|
|
29711
|
+
!this.button && (xi || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = qb(this.context, e), this.link.addEventListener("message", this.lastCallback)), xi && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement), Gc.registerExporter(this);
|
|
29712
29712
|
}
|
|
29713
29713
|
/** @internal */
|
|
29714
29714
|
onDisable() {
|
|
29715
29715
|
var e, i, n;
|
|
29716
|
-
(e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), xi && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement),
|
|
29716
|
+
(e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), xi && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement), Gc.unregisterExporter(this);
|
|
29717
29717
|
}
|
|
29718
29718
|
/**
|
|
29719
29719
|
* Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
|
|
@@ -29792,7 +29792,7 @@ const wi = (Ls = class extends j {
|
|
|
29792
29792
|
de.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: m })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, de.report("export-usdz", "auto export animations and audio sources");
|
|
29793
29793
|
const g = new Array();
|
|
29794
29794
|
this.autoExportAnimations && g.push(...KT(e, h)), f.find((R) => R.extensionName === "Audio") && this.autoExportAudioSources && g.push(...ZT(e)), c.debug = xi, c.pruneUnusedNodes = !tE;
|
|
29795
|
-
const y =
|
|
29795
|
+
const y = Jc.instance.objs.map((R) => R.batchedMesh);
|
|
29796
29796
|
c.keepObject = (R) => {
|
|
29797
29797
|
let T = !0;
|
|
29798
29798
|
const U = C.getComponent(R, ln);
|
|
@@ -29942,7 +29942,7 @@ var iE = Object.defineProperty, nE = Object.getOwnPropertyDescriptor, Py = (o, t
|
|
|
29942
29942
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
29943
29943
|
return n && iE(t, e, n), n;
|
|
29944
29944
|
};
|
|
29945
|
-
class
|
|
29945
|
+
class Sh extends j {
|
|
29946
29946
|
constructor() {
|
|
29947
29947
|
super(...arguments);
|
|
29948
29948
|
r(this, "_fog");
|
|
@@ -29980,13 +29980,13 @@ class Ch extends j {
|
|
|
29980
29980
|
}
|
|
29981
29981
|
Py([
|
|
29982
29982
|
p()
|
|
29983
|
-
],
|
|
29983
|
+
], Sh.prototype, "near");
|
|
29984
29984
|
Py([
|
|
29985
29985
|
p()
|
|
29986
|
-
],
|
|
29986
|
+
], Sh.prototype, "far");
|
|
29987
29987
|
Py([
|
|
29988
29988
|
p(re)
|
|
29989
|
-
],
|
|
29989
|
+
], Sh.prototype, "color");
|
|
29990
29990
|
var sE = Object.defineProperty, Oy = (o, t, e, i) => {
|
|
29991
29991
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
29992
29992
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -30002,7 +30002,7 @@ class Tl extends j {
|
|
|
30002
30002
|
r(this, "_boxHelper", null);
|
|
30003
30003
|
}
|
|
30004
30004
|
onEnable() {
|
|
30005
|
-
this.isGizmo && !
|
|
30005
|
+
this.isGizmo && !hh || (this._gizmoObject || (this.objectBounds ? this._gizmoObject = new oC(this.gameObject, this.color ?? 16776960) : (this.objectBounds = !1, this._gizmoObject = Fg(this.color ?? 16776960))), this.objectBounds ? (this.scene.add(this._gizmoObject), this._boxHelper = this._gizmoObject, this.startCoroutine(this.syncObjectBounds(), Re.OnBeforeRender)) : this.gameObject.add(this._gizmoObject));
|
|
30006
30006
|
}
|
|
30007
30007
|
onDisable() {
|
|
30008
30008
|
this._gizmoObject && this.gameObject.remove(this._gizmoObject);
|
|
@@ -30027,7 +30027,7 @@ var oE = Object.defineProperty, ky = (o, t, e, i) => {
|
|
|
30027
30027
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30028
30028
|
return n && oE(t, e, n), n;
|
|
30029
30029
|
};
|
|
30030
|
-
class
|
|
30030
|
+
class Ch extends j {
|
|
30031
30031
|
constructor() {
|
|
30032
30032
|
super(...arguments);
|
|
30033
30033
|
r(this, "isGizmo", !1);
|
|
@@ -30040,7 +30040,7 @@ class Ph extends j {
|
|
|
30040
30040
|
}
|
|
30041
30041
|
/** @internal */
|
|
30042
30042
|
onEnable() {
|
|
30043
|
-
if (this.isGizmo && !
|
|
30043
|
+
if (this.isGizmo && !hh) return;
|
|
30044
30044
|
const e = this.size, i = this.divisions;
|
|
30045
30045
|
this.gridHelper || (this.gridHelper = new gg(e, i, this.color0 ?? new re(0.4, 0.4, 0.4), this.color1 ?? new re(0.6, 0.6, 0.6)), this.offset !== void 0 && (this.gridHelper.position.y += this.offset)), this.gridHelper && this.gameObject.add(this.gridHelper);
|
|
30046
30046
|
}
|
|
@@ -30051,13 +30051,13 @@ class Ph extends j {
|
|
|
30051
30051
|
}
|
|
30052
30052
|
ky([
|
|
30053
30053
|
p()
|
|
30054
|
-
],
|
|
30054
|
+
], Ch.prototype, "isGizmo");
|
|
30055
30055
|
ky([
|
|
30056
30056
|
p(re)
|
|
30057
|
-
],
|
|
30057
|
+
], Ch.prototype, "color0");
|
|
30058
30058
|
ky([
|
|
30059
30059
|
p(re)
|
|
30060
|
-
],
|
|
30060
|
+
], Ch.prototype, "color1");
|
|
30061
30061
|
var rE = Object.defineProperty, My = (o, t, e, i) => {
|
|
30062
30062
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30063
30063
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -30388,28 +30388,28 @@ fs([
|
|
|
30388
30388
|
p()
|
|
30389
30389
|
], Wi.prototype, "shadowResolution", 1);
|
|
30390
30390
|
new w(0, 0, 0);
|
|
30391
|
-
var cE = Object.defineProperty,
|
|
30391
|
+
var cE = Object.defineProperty, Ph = (o, t, e, i) => {
|
|
30392
30392
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30393
30393
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30394
30394
|
return n && cE(t, e, n), n;
|
|
30395
30395
|
};
|
|
30396
30396
|
const Hp = S("debuglods"), hE = S("nolods");
|
|
30397
|
-
class
|
|
30397
|
+
class Oh {
|
|
30398
30398
|
constructor() {
|
|
30399
30399
|
r(this, "screenRelativeTransitionHeight");
|
|
30400
30400
|
r(this, "distance");
|
|
30401
30401
|
r(this, "renderers");
|
|
30402
30402
|
}
|
|
30403
30403
|
}
|
|
30404
|
-
|
|
30404
|
+
Ph([
|
|
30405
30405
|
p()
|
|
30406
|
-
],
|
|
30407
|
-
|
|
30406
|
+
], Oh.prototype, "screenRelativeTransitionHeight");
|
|
30407
|
+
Ph([
|
|
30408
30408
|
p()
|
|
30409
|
-
],
|
|
30410
|
-
|
|
30409
|
+
], Oh.prototype, "distance");
|
|
30410
|
+
Ph([
|
|
30411
30411
|
p(ln)
|
|
30412
|
-
],
|
|
30412
|
+
], Oh.prototype, "renderers");
|
|
30413
30413
|
class dE {
|
|
30414
30414
|
constructor(t) {
|
|
30415
30415
|
r(this, "model");
|
|
@@ -30494,18 +30494,18 @@ class Pf extends j {
|
|
|
30494
30494
|
}
|
|
30495
30495
|
}
|
|
30496
30496
|
}
|
|
30497
|
-
|
|
30497
|
+
Ph([
|
|
30498
30498
|
p(w)
|
|
30499
30499
|
], Pf.prototype, "localReferencePoint");
|
|
30500
|
-
|
|
30501
|
-
p(
|
|
30500
|
+
Ph([
|
|
30501
|
+
p(Oh)
|
|
30502
30502
|
], Pf.prototype, "lodModels");
|
|
30503
30503
|
var uE = Object.defineProperty, fE = (o, t, e, i) => {
|
|
30504
30504
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30505
30505
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30506
30506
|
return n && uE(t, e, n), n;
|
|
30507
30507
|
};
|
|
30508
|
-
const
|
|
30508
|
+
const ud = S("debugnestedgltf");
|
|
30509
30509
|
class Ty extends j {
|
|
30510
30510
|
constructor() {
|
|
30511
30511
|
super(...arguments);
|
|
@@ -30530,16 +30530,16 @@ class Ty extends j {
|
|
|
30530
30530
|
async start() {
|
|
30531
30531
|
var i, n, s, a, l;
|
|
30532
30532
|
if (this._isLoadingOrDoneLoading) return;
|
|
30533
|
-
|
|
30533
|
+
ud && console.log(this, this.guid);
|
|
30534
30534
|
const e = this.gameObject.parent;
|
|
30535
30535
|
if (e) {
|
|
30536
30536
|
this._isLoadingOrDoneLoading = !0;
|
|
30537
30537
|
const c = new hs();
|
|
30538
30538
|
c.idProvider = new zt(this.hash(this.guid)), c.parent = this.loadAssetInParent !== !1 ? e : this.gameObject, this.gameObject.updateMatrix();
|
|
30539
30539
|
const h = this.gameObject.matrix;
|
|
30540
|
-
|
|
30540
|
+
ud && console.log("Load nested:", ((i = this.filePath) == null ? void 0 : i.url) ?? this.filePath, this.gameObject.position);
|
|
30541
30541
|
const d = await ((s = (n = this.filePath) == null ? void 0 : n.instantiate) == null ? void 0 : s.call(this.filePath, c));
|
|
30542
|
-
|
|
30542
|
+
ud && console.log("Nested loaded:", ((a = this.filePath) == null ? void 0 : a.url) ?? this.filePath, d), d && this.loadAssetInParent !== !1 && (d.matrixAutoUpdate = !1, d.matrix.identity(), d.applyMatrix4(h), d.matrixAutoUpdate = !0, d.layers.disableAll(), d.layers.set(this.layer), this.dispatchEvent(new CustomEvent("loaded", { detail: { instance: d, assetReference: this.filePath } }))), ud && console.log("Nested loading done:", ((l = this.filePath) == null ? void 0 : l.url) ?? this.filePath, d);
|
|
30543
30543
|
}
|
|
30544
30544
|
}
|
|
30545
30545
|
/** @internal */
|
|
@@ -30714,7 +30714,7 @@ tr([
|
|
|
30714
30714
|
tr([
|
|
30715
30715
|
p()
|
|
30716
30716
|
], Ii.prototype, "weightedMode");
|
|
30717
|
-
const ux = class
|
|
30717
|
+
const ux = class yc {
|
|
30718
30718
|
constructor() {
|
|
30719
30719
|
r(this, "keys", []);
|
|
30720
30720
|
}
|
|
@@ -30722,14 +30722,14 @@ const ux = class _c {
|
|
|
30722
30722
|
* Creates an animation curve that goes from the `from` value to the `to` value over the given `duration`.
|
|
30723
30723
|
*/
|
|
30724
30724
|
static linearFromTo(t, e, i) {
|
|
30725
|
-
const n = new
|
|
30725
|
+
const n = new yc(), s = new Ii();
|
|
30726
30726
|
s.time = 0, s.value = t;
|
|
30727
30727
|
const a = new Ii();
|
|
30728
30728
|
return a.time = i, a.value = e, n.keys.push(s, a), n;
|
|
30729
30729
|
}
|
|
30730
30730
|
/** Creates an animation curve with just one keyframe */
|
|
30731
30731
|
static constant(t) {
|
|
30732
|
-
const e = new
|
|
30732
|
+
const e = new yc(), i = new Ii();
|
|
30733
30733
|
return i.time = 0, i.value = t, e.keys.push(i), e;
|
|
30734
30734
|
}
|
|
30735
30735
|
/**
|
|
@@ -30737,7 +30737,7 @@ const ux = class _c {
|
|
|
30737
30737
|
*/
|
|
30738
30738
|
clone() {
|
|
30739
30739
|
var e;
|
|
30740
|
-
const t = new
|
|
30740
|
+
const t = new yc();
|
|
30741
30741
|
return t.keys = ((e = this.keys) == null ? void 0 : e.map((i) => {
|
|
30742
30742
|
const n = new Ii();
|
|
30743
30743
|
return n.time = i.time, n.value = i.value, n.inTangent = i.inTangent, n.inWeight = i.inWeight, n.outTangent = i.outTangent, n.outWeight = i.outWeight, n.weightedMode = i.weightedMode, n;
|
|
@@ -30763,7 +30763,7 @@ const ux = class _c {
|
|
|
30763
30763
|
if (e + 1 < this.keys.length) {
|
|
30764
30764
|
const s = this.keys[e + 1];
|
|
30765
30765
|
if (s.time < t) continue;
|
|
30766
|
-
return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value :
|
|
30766
|
+
return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value : yc.interpolateValue(t, i, s);
|
|
30767
30767
|
} else
|
|
30768
30768
|
return i.value;
|
|
30769
30769
|
}
|
|
@@ -30783,7 +30783,7 @@ var _E = Object.defineProperty, P = (o, t, e, i) => {
|
|
|
30783
30783
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30784
30784
|
return n && _E(t, e, n), n;
|
|
30785
30785
|
};
|
|
30786
|
-
const
|
|
30786
|
+
const fd = S("debugparticles");
|
|
30787
30787
|
var Ms = /* @__PURE__ */ ((o) => (o[o.Billboard = 0] = "Billboard", o[o.Stretch = 1] = "Stretch", o[o.HorizontalBillboard = 2] = "HorizontalBillboard", o[o.VerticalBillboard = 3] = "VerticalBillboard", o[o.Mesh = 4] = "Mesh", o))(Ms || {});
|
|
30788
30788
|
class Al {
|
|
30789
30789
|
constructor() {
|
|
@@ -30824,8 +30824,8 @@ P([
|
|
|
30824
30824
|
P([
|
|
30825
30825
|
p()
|
|
30826
30826
|
], Al.prototype, "colorKeys");
|
|
30827
|
-
var
|
|
30828
|
-
const ao = class
|
|
30827
|
+
var nh = /* @__PURE__ */ ((o) => (o[o.Local = 0] = "Local", o[o.World = 1] = "World", o[o.Custom = 2] = "Custom", o))(nh || {}), tg = /* @__PURE__ */ ((o) => (o[o.Sphere = 0] = "Sphere", o[o.SphereShell = 1] = "SphereShell", o[o.Hemisphere = 2] = "Hemisphere", o[o.HemisphereShell = 3] = "HemisphereShell", o[o.Cone = 4] = "Cone", o[o.Box = 5] = "Box", o[o.Mesh = 6] = "Mesh", o[o.ConeShell = 7] = "ConeShell", o[o.ConeVolume = 8] = "ConeVolume", o[o.ConeVolumeShell = 9] = "ConeVolumeShell", o[o.Circle = 10] = "Circle", o[o.CircleEdge = 11] = "CircleEdge", o[o.SingleSidedEdge = 12] = "SingleSidedEdge", o[o.MeshRenderer = 13] = "MeshRenderer", o[o.SkinnedMeshRenderer = 14] = "SkinnedMeshRenderer", o[o.BoxShell = 15] = "BoxShell", o[o.BoxEdge = 16] = "BoxEdge", o[o.Donut = 17] = "Donut", o[o.Rectangle = 18] = "Rectangle", o[o.Sprite = 19] = "Sprite", o[o.SpriteRenderer = 20] = "SpriteRenderer", o))(tg || {});
|
|
30828
|
+
const ao = class _c {
|
|
30829
30829
|
constructor() {
|
|
30830
30830
|
r(this, "mode", "Constant");
|
|
30831
30831
|
r(this, "constant");
|
|
@@ -30837,15 +30837,15 @@ const ao = class bc {
|
|
|
30837
30837
|
r(this, "curveMultiplier");
|
|
30838
30838
|
}
|
|
30839
30839
|
static constant(t) {
|
|
30840
|
-
const e = new
|
|
30840
|
+
const e = new _c();
|
|
30841
30841
|
return e.setConstant(t), e;
|
|
30842
30842
|
}
|
|
30843
30843
|
static betweenTwoConstants(t, e) {
|
|
30844
|
-
const i = new
|
|
30844
|
+
const i = new _c();
|
|
30845
30845
|
return i.setMinMaxConstant(t, e), i;
|
|
30846
30846
|
}
|
|
30847
30847
|
static curve(t, e = 1) {
|
|
30848
|
-
const i = new
|
|
30848
|
+
const i = new _c();
|
|
30849
30849
|
return i.setCurve(t, e), i;
|
|
30850
30850
|
}
|
|
30851
30851
|
setConstant(t) {
|
|
@@ -30859,7 +30859,7 @@ const ao = class bc {
|
|
|
30859
30859
|
}
|
|
30860
30860
|
clone() {
|
|
30861
30861
|
var e, i, n;
|
|
30862
|
-
const t = new
|
|
30862
|
+
const t = new _c();
|
|
30863
30863
|
return t.mode = this.mode, t.constant = this.constant, t.constantMin = this.constantMin, t.constantMax = this.constantMax, t.curve = (e = this.curve) == null ? void 0 : e.clone(), t.curveMin = (i = this.curveMin) == null ? void 0 : i.clone(), t.curveMax = (n = this.curveMax) == null ? void 0 : n.clone(), t.curveMultiplier = this.curveMultiplier, t;
|
|
30864
30864
|
}
|
|
30865
30865
|
evaluate(t, e) {
|
|
@@ -31265,7 +31265,7 @@ const at = (Pn = class {
|
|
|
31265
31265
|
r(this, "_dir", new w());
|
|
31266
31266
|
r(this, "_loopTime", 0);
|
|
31267
31267
|
r(this, "_loopDirection", 1);
|
|
31268
|
-
|
|
31268
|
+
fd && console.log(this);
|
|
31269
31269
|
}
|
|
31270
31270
|
// Emittershape start
|
|
31271
31271
|
get type() {
|
|
@@ -31300,7 +31300,7 @@ const at = (Pn = class {
|
|
|
31300
31300
|
if (i && (n *= this.system.worldScale.x), this.enabled) {
|
|
31301
31301
|
switch (this.shapeType) {
|
|
31302
31302
|
case 5:
|
|
31303
|
-
|
|
31303
|
+
fd && H.DrawWireBox(this.position, this.scale, 14540253, 1), this._vector.x = Math.random() * this.scale.x - this.scale.x / 2, this._vector.y = Math.random() * this.scale.y - this.scale.y / 2, this._vector.z = Math.random() * this.scale.z - this.scale.z / 2, this._vector.add(e);
|
|
31304
31304
|
break;
|
|
31305
31305
|
case 4:
|
|
31306
31306
|
this.randomConePoint(this.position, this.angle, n, this.radiusThickness, this.arc, this.arcMode, this._vector);
|
|
@@ -31347,7 +31347,7 @@ const at = (Pn = class {
|
|
|
31347
31347
|
}
|
|
31348
31348
|
this.randomizePosition(this._vector, this.randomPositionAmount);
|
|
31349
31349
|
}
|
|
31350
|
-
this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)),
|
|
31350
|
+
this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)), fd && H.DrawSphere(this._vector, 0.03, 16711680, 0.5, !0);
|
|
31351
31351
|
}
|
|
31352
31352
|
getDirection(t, e) {
|
|
31353
31353
|
var i;
|
|
@@ -31394,7 +31394,7 @@ const at = (Pn = class {
|
|
|
31394
31394
|
this._dir.set(0, 0, 1);
|
|
31395
31395
|
break;
|
|
31396
31396
|
}
|
|
31397
|
-
return this._space === 1 && this._dir.applyQuaternion(this.system.worldQuaternion), this.applyRotation(this._dir), this._dir.normalize(), this.spherizeDirection(this._dir, this.sphericalDirectionAmount), this.randomizeDirection(this._dir, this.randomDirectionAmount),
|
|
31397
|
+
return this._space === 1 && this._dir.applyQuaternion(this.system.worldQuaternion), this.applyRotation(this._dir), this._dir.normalize(), this.spherizeDirection(this._dir, this.sphericalDirectionAmount), this.randomizeDirection(this._dir, this.randomDirectionAmount), fd && (H.DrawSphere(e, 0.01, 8925952, 0.5, !0), H.DrawDirection(e, this._dir, 8925952, 0.5, !0)), this._dir;
|
|
31398
31398
|
}
|
|
31399
31399
|
randomizePosition(t, e) {
|
|
31400
31400
|
if (e <= 0) return;
|
|
@@ -32068,7 +32068,7 @@ P([
|
|
|
32068
32068
|
P([
|
|
32069
32069
|
p()
|
|
32070
32070
|
], Pt.prototype, "space");
|
|
32071
|
-
const
|
|
32071
|
+
const kh = class px {
|
|
32072
32072
|
constructor() {
|
|
32073
32073
|
r(this, "enabled");
|
|
32074
32074
|
r(this, "curve");
|
|
@@ -32115,17 +32115,17 @@ const Mh = class px {
|
|
|
32115
32115
|
};
|
|
32116
32116
|
P([
|
|
32117
32117
|
p()
|
|
32118
|
-
],
|
|
32118
|
+
], kh.prototype, "enabled");
|
|
32119
32119
|
P([
|
|
32120
32120
|
p(K)
|
|
32121
|
-
],
|
|
32121
|
+
], kh.prototype, "curve");
|
|
32122
32122
|
P([
|
|
32123
32123
|
p()
|
|
32124
|
-
],
|
|
32124
|
+
], kh.prototype, "curveMultiplier");
|
|
32125
32125
|
P([
|
|
32126
32126
|
p()
|
|
32127
|
-
],
|
|
32128
|
-
let mx =
|
|
32127
|
+
], kh.prototype, "mode");
|
|
32128
|
+
let mx = kh;
|
|
32129
32129
|
class Vi {
|
|
32130
32130
|
constructor() {
|
|
32131
32131
|
r(this, "enabled");
|
|
@@ -32178,7 +32178,7 @@ P([
|
|
|
32178
32178
|
P([
|
|
32179
32179
|
p()
|
|
32180
32180
|
], Vi.prototype, "zMultiplier");
|
|
32181
|
-
class
|
|
32181
|
+
class Mh {
|
|
32182
32182
|
constructor() {
|
|
32183
32183
|
r(this, "enabled");
|
|
32184
32184
|
r(this, "range");
|
|
@@ -32191,13 +32191,13 @@ class Rh {
|
|
|
32191
32191
|
}
|
|
32192
32192
|
P([
|
|
32193
32193
|
p()
|
|
32194
|
-
],
|
|
32194
|
+
], Mh.prototype, "enabled");
|
|
32195
32195
|
P([
|
|
32196
32196
|
p(ae)
|
|
32197
|
-
],
|
|
32197
|
+
], Mh.prototype, "range");
|
|
32198
32198
|
P([
|
|
32199
32199
|
p(Il)
|
|
32200
|
-
],
|
|
32200
|
+
], Mh.prototype, "color");
|
|
32201
32201
|
new w(1, 1, 1);
|
|
32202
32202
|
new w(0, 0, 1);
|
|
32203
32203
|
class gx {
|
|
@@ -32345,7 +32345,7 @@ Ge([
|
|
|
32345
32345
|
Ge([
|
|
32346
32346
|
p()
|
|
32347
32347
|
], Ln.prototype, "lengthScale");
|
|
32348
|
-
class
|
|
32348
|
+
class pd {
|
|
32349
32349
|
constructor(t, e = 1) {
|
|
32350
32350
|
r(this, "_curve");
|
|
32351
32351
|
r(this, "_factor");
|
|
@@ -32524,7 +32524,7 @@ class RE extends la {
|
|
|
32524
32524
|
}
|
|
32525
32525
|
}
|
|
32526
32526
|
}
|
|
32527
|
-
const
|
|
32527
|
+
const md = Symbol("startVelocity"), Zb = Symbol("gravityModifier"), Xp = Symbol("gravitySpeed"), gd = Symbol("velocity lerp factor"), og = new w();
|
|
32528
32528
|
class TE extends la {
|
|
32529
32529
|
constructor() {
|
|
32530
32530
|
super(...arguments);
|
|
@@ -32536,26 +32536,26 @@ class TE extends la {
|
|
|
32536
32536
|
const i = this.system.main.simulationSpeed;
|
|
32537
32537
|
e.startSpeed = this.system.main.startSpeed.evaluate(Math.random(), Math.random());
|
|
32538
32538
|
const n = this.system.shape.getDirection(e, e.position);
|
|
32539
|
-
e.velocity.x = n.x * e.startSpeed, e.velocity.y = n.y * e.startSpeed, e.velocity.z = n.z * e.startSpeed, (a = this.system.inheritVelocity) != null && a.enabled && this.system.inheritVelocity.applyInitial(e.velocity), e[
|
|
32539
|
+
e.velocity.x = n.x * e.startSpeed, e.velocity.y = n.y * e.startSpeed, e.velocity.z = n.z * e.startSpeed, (a = this.system.inheritVelocity) != null && a.enabled && this.system.inheritVelocity.applyInitial(e.velocity), e[md] ? e[md].copy(e.velocity) : e[md] = e.velocity.clone();
|
|
32540
32540
|
const s = this.system.main.gravityModifier.evaluate(Math.random(), Math.random());
|
|
32541
|
-
e[Zb] = s * i, e[Xp] = s * i * 0.5, e[
|
|
32541
|
+
e[Zb] = s * i, e[Xp] = s * i * 0.5, e[gd] = Math.random(), (l = this.system.velocityOverLifetime) == null || l.init(e), this._gravityDirection.set(0, -1, 0), this.system.main.simulationSpace === nh.Local && this._gravityDirection.applyQuaternion(this.system.worldQuaternionInverted).normalize();
|
|
32542
32542
|
}
|
|
32543
32543
|
update(e, i) {
|
|
32544
32544
|
var f;
|
|
32545
|
-
const n = e[
|
|
32545
|
+
const n = e[md], s = e[Zb];
|
|
32546
32546
|
if (s !== 0) {
|
|
32547
32547
|
const m = s * e[Xp];
|
|
32548
32548
|
og.copy(this._gravityDirection).multiplyScalar(m), e[Xp] += i * 0.05, n.add(og);
|
|
32549
32549
|
}
|
|
32550
32550
|
e.velocity.copy(n);
|
|
32551
32551
|
const a = e.age / e.life;
|
|
32552
|
-
(f = this.system.inheritVelocity) != null && f.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[
|
|
32552
|
+
(f = this.system.inheritVelocity) != null && f.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[gd]);
|
|
32553
32553
|
const l = this.system.noise;
|
|
32554
32554
|
l.enabled && l.apply(0, e.position, e.velocity, i, e.age, e.life);
|
|
32555
32555
|
const c = this.system.sizeBySpeed;
|
|
32556
|
-
c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[
|
|
32556
|
+
c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[gd], e.size));
|
|
32557
32557
|
const h = this.system.colorBySpeed;
|
|
32558
|
-
h != null && h.enabled && h.evaluate(e.velocity, e[
|
|
32558
|
+
h != null && h.enabled && h.evaluate(e.velocity, e[gd], e.color);
|
|
32559
32559
|
const d = this.system.velocityOverLifetime;
|
|
32560
32560
|
d.enabled && d.apply(e, 0, e.position, e.velocity, i, e.age, e.life);
|
|
32561
32561
|
const u = this.system.limitVelocityOverLifetime;
|
|
@@ -32629,16 +32629,16 @@ class AE {
|
|
|
32629
32629
|
return this.system.shape;
|
|
32630
32630
|
}
|
|
32631
32631
|
get startLife() {
|
|
32632
|
-
return new
|
|
32632
|
+
return new pd(this.system.main.startLifetime);
|
|
32633
32633
|
}
|
|
32634
32634
|
get startSpeed() {
|
|
32635
|
-
return new
|
|
32635
|
+
return new pd(this.system.main.startSpeed);
|
|
32636
32636
|
}
|
|
32637
32637
|
get startRotation() {
|
|
32638
|
-
return new
|
|
32638
|
+
return new pd(this.system.main.startRotation);
|
|
32639
32639
|
}
|
|
32640
32640
|
get startSize() {
|
|
32641
|
-
return new
|
|
32641
|
+
return new pd(this.system.main.startSize);
|
|
32642
32642
|
}
|
|
32643
32643
|
/** start length is for trails */
|
|
32644
32644
|
get startColor() {
|
|
@@ -32710,7 +32710,7 @@ class AE {
|
|
|
32710
32710
|
return this.system.renderer.transparent;
|
|
32711
32711
|
}
|
|
32712
32712
|
get worldSpace() {
|
|
32713
|
-
return this.system.main.simulationSpace ===
|
|
32713
|
+
return this.system.main.simulationSpace === nh.World;
|
|
32714
32714
|
}
|
|
32715
32715
|
}
|
|
32716
32716
|
class IE {
|
|
@@ -32834,10 +32834,10 @@ const Ht = class Id extends j {
|
|
|
32834
32834
|
return this._container;
|
|
32835
32835
|
}
|
|
32836
32836
|
get worldspace() {
|
|
32837
|
-
return this.main.simulationSpace ===
|
|
32837
|
+
return this.main.simulationSpace === nh.World;
|
|
32838
32838
|
}
|
|
32839
32839
|
get localspace() {
|
|
32840
|
-
return this.main.simulationSpace ===
|
|
32840
|
+
return this.main.simulationSpace === nh.Local;
|
|
32841
32841
|
}
|
|
32842
32842
|
get worldQuaternion() {
|
|
32843
32843
|
return this.__worldQuaternion;
|
|
@@ -33051,7 +33051,7 @@ Ge([
|
|
|
33051
33051
|
p(mx)
|
|
33052
33052
|
], Ht.prototype, "inheritVelocity");
|
|
33053
33053
|
Ge([
|
|
33054
|
-
p(
|
|
33054
|
+
p(Mh)
|
|
33055
33055
|
], Ht.prototype, "colorBySpeed");
|
|
33056
33056
|
Ge([
|
|
33057
33057
|
p(ci)
|
|
@@ -33097,7 +33097,7 @@ function yx(o, t) {
|
|
|
33097
33097
|
}
|
|
33098
33098
|
return t;
|
|
33099
33099
|
}
|
|
33100
|
-
class
|
|
33100
|
+
class sh extends j {
|
|
33101
33101
|
constructor() {
|
|
33102
33102
|
super(...arguments);
|
|
33103
33103
|
r(this, "_didAssignPlayerColor", !1);
|
|
@@ -33120,7 +33120,7 @@ class oh extends j {
|
|
|
33120
33120
|
;
|
|
33121
33121
|
}
|
|
33122
33122
|
assignUserColor(e) {
|
|
33123
|
-
const i =
|
|
33123
|
+
const i = sh.hashCode(e), n = sh.colorFromHashCode(i);
|
|
33124
33124
|
if (this.gameObject.type === "Mesh") {
|
|
33125
33125
|
const s = this.gameObject;
|
|
33126
33126
|
this.assignColor(n, e, s);
|
|
@@ -33146,7 +33146,7 @@ class oh extends j {
|
|
|
33146
33146
|
return new re(i / 255, n / 255, s / 255);
|
|
33147
33147
|
}
|
|
33148
33148
|
}
|
|
33149
|
-
const
|
|
33149
|
+
const bc = S("debugpost");
|
|
33150
33150
|
let ag = null;
|
|
33151
33151
|
function LE(o) {
|
|
33152
33152
|
ag = o;
|
|
@@ -33165,7 +33165,7 @@ function DE(o) {
|
|
|
33165
33165
|
let t = _x(o);
|
|
33166
33166
|
if (!t)
|
|
33167
33167
|
if (ag) {
|
|
33168
|
-
|
|
33168
|
+
bc && console.warn("Adding postprocessing manager to the scene.");
|
|
33169
33169
|
const e = o.scene;
|
|
33170
33170
|
t = sn(e, ag);
|
|
33171
33171
|
} else
|
|
@@ -33194,10 +33194,10 @@ const gt = {
|
|
|
33194
33194
|
};
|
|
33195
33195
|
let tt = null;
|
|
33196
33196
|
function jE(o) {
|
|
33197
|
-
|
|
33197
|
+
bc === "verbose" && console.debug("Before ordering effects", [...o]), tt || (tt = /* @__PURE__ */ new Map(), tt.set(D.POSTPROCESSING.MODULE.NormalPass, gt.NormalPass), tt.set(D.POSTPROCESSING.MODULE.DepthDownsamplingPass, gt.DepthDownsamplingPass), tt.set(D.POSTPROCESSING.MODULE.SMAAEffect, gt.SMAA), tt.set(D.POSTPROCESSING.MODULE.SSAOEffect, gt.SSAO), tt.set(D.POSTPROCESSING_AO.MODULE.N8AOPostPass, gt.SSAO), tt.set(D.POSTPROCESSING_AO.MODULE.N8AOPass, gt.SSAO), tt.set(D.POSTPROCESSING.MODULE.TiltShiftEffect, gt.TiltShift), tt.set(D.POSTPROCESSING.MODULE.DepthOfFieldEffect, gt.DepthOfField), tt.set(D.POSTPROCESSING.MODULE.ChromaticAberrationEffect, gt.ChromaticAberration), tt.set(D.POSTPROCESSING.MODULE.BloomEffect, gt.Bloom), tt.set(D.POSTPROCESSING.MODULE.SelectiveBloomEffect, gt.Bloom), tt.set(D.POSTPROCESSING.MODULE.VignetteEffect, gt.Vignette), tt.set(D.POSTPROCESSING.MODULE.PixelationEffect, gt.Pixelation), tt.set(D.POSTPROCESSING.MODULE.ToneMappingEffect, gt.ToneMapping), tt.set(D.POSTPROCESSING.MODULE.HueSaturationEffect, gt.HueSaturation), tt.set(D.POSTPROCESSING.MODULE.BrightnessContrastEffect, gt.BrightnessContrast)), o.sort((t, e) => {
|
|
33198
33198
|
const i = typeof t.priority == "number" ? t.priority : tt.get(t.effect.constructor) ?? Number.NEGATIVE_INFINITY, n = typeof e.priority == "number" ? e.priority : tt.get(e.effect.constructor) ?? Number.NEGATIVE_INFINITY;
|
|
33199
|
-
return i === Number.NEGATIVE_INFINITY ? (
|
|
33200
|
-
}),
|
|
33199
|
+
return i === Number.NEGATIVE_INFINITY ? (bc && console.warn("Unknown effect found: ", t.constructor.name, t), 1) : n === Number.NEGATIVE_INFINITY ? (bc && console.warn("Unknown effect found: ", e.constructor.name, e), -1) : i - n;
|
|
33200
|
+
}), bc === "verbose" && console.debug("After ordering effects", [...o]);
|
|
33201
33201
|
}
|
|
33202
33202
|
var BE = Object.defineProperty, FE = Object.getOwnPropertyDescriptor, bx = (o, t, e, i) => {
|
|
33203
33203
|
for (var n = FE(t, e), s = o.length - 1, a; s >= 0; s--)
|
|
@@ -33529,7 +33529,7 @@ ZE([
|
|
|
33529
33529
|
p(N)
|
|
33530
33530
|
], Ef.prototype, "intensity");
|
|
33531
33531
|
Dn("ChromaticAberration", Ef);
|
|
33532
|
-
var
|
|
33532
|
+
var vc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.Neutral = 1] = "Neutral", o[o.ACES = 2] = "ACES", o[o.AgX = 3] = "AgX", o[o.KhronosNeutral = 4] = "KhronosNeutral", o))(vc || {});
|
|
33533
33533
|
const t0 = /* @__PURE__ */ new Map();
|
|
33534
33534
|
function Yp(o) {
|
|
33535
33535
|
switch (o) {
|
|
@@ -33597,7 +33597,7 @@ class Yr extends ft {
|
|
|
33597
33597
|
}
|
|
33598
33598
|
/** Set the tonemapping mode to e.g. "agx" */
|
|
33599
33599
|
setMode(e) {
|
|
33600
|
-
const i =
|
|
33600
|
+
const i = vc[e];
|
|
33601
33601
|
return i === void 0 ? (console.error("[PostProcessing] Invalid ToneMapping mode", e), this) : (this.mode.value = i, this);
|
|
33602
33602
|
}
|
|
33603
33603
|
get isToneMapping() {
|
|
@@ -33624,8 +33624,8 @@ class Yr extends ft {
|
|
|
33624
33624
|
const a = Yp(s);
|
|
33625
33625
|
i.mode = Ld(a);
|
|
33626
33626
|
}
|
|
33627
|
-
i.name = "ToneMapping (" +
|
|
33628
|
-
}, Kp && console.log("[PostProcessing] Use ToneMapping",
|
|
33627
|
+
i.name = "ToneMapping (" + vc[s] + ")", Kp && console.log("[PostProcessing] ToneMapping mode changed to", vc[s], e, i.mode);
|
|
33628
|
+
}, Kp && console.log("[PostProcessing] Use ToneMapping", vc[this.mode.value], e, i.mode, "renderer.tonemapping: " + this.context.renderer.toneMapping), i;
|
|
33629
33629
|
}
|
|
33630
33630
|
onBeforeRender() {
|
|
33631
33631
|
var e;
|
|
@@ -33709,7 +33709,7 @@ class ms extends ft {
|
|
|
33709
33709
|
r(this, "focalLength", new N(0.2));
|
|
33710
33710
|
r(this, "aperture", new N(20));
|
|
33711
33711
|
r(this, "gaussianMaxRadius", new N());
|
|
33712
|
-
r(this, "resolutionScale", new N(1 / window.devicePixelRatio));
|
|
33712
|
+
r(this, "resolutionScale", new N(1 * 1 / window.devicePixelRatio));
|
|
33713
33713
|
r(this, "bokehScale", new N());
|
|
33714
33714
|
}
|
|
33715
33715
|
get typeName() {
|
|
@@ -33803,7 +33803,7 @@ oA([
|
|
|
33803
33803
|
p(N)
|
|
33804
33804
|
], If.prototype, "granularity");
|
|
33805
33805
|
Dn("PixelationEffect", If);
|
|
33806
|
-
var rA = Object.defineProperty,
|
|
33806
|
+
var rA = Object.defineProperty, Rh = (o, t, e, i) => {
|
|
33807
33807
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33808
33808
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33809
33809
|
return n && rA(t, e, n), n;
|
|
@@ -33858,19 +33858,19 @@ class sr extends ft {
|
|
|
33858
33858
|
return a.push(i), a.push(n), a.push(s), a;
|
|
33859
33859
|
}
|
|
33860
33860
|
}
|
|
33861
|
-
|
|
33861
|
+
Rh([
|
|
33862
33862
|
p(N)
|
|
33863
33863
|
], sr.prototype, "intensity");
|
|
33864
|
-
|
|
33864
|
+
Rh([
|
|
33865
33865
|
p(N)
|
|
33866
33866
|
], sr.prototype, "falloff");
|
|
33867
|
-
|
|
33867
|
+
Rh([
|
|
33868
33868
|
p(N)
|
|
33869
33869
|
], sr.prototype, "samples");
|
|
33870
|
-
|
|
33870
|
+
Rh([
|
|
33871
33871
|
p(N)
|
|
33872
33872
|
], sr.prototype, "color");
|
|
33873
|
-
|
|
33873
|
+
Rh([
|
|
33874
33874
|
p(N)
|
|
33875
33875
|
], sr.prototype, "luminanceInfluence");
|
|
33876
33876
|
Dn("ScreenSpaceAmbientOcclusion", sr);
|
|
@@ -34399,7 +34399,7 @@ var pA = Object.defineProperty, Sx = (o, t, e, i) => {
|
|
|
34399
34399
|
return n && pA(t, e, n), n;
|
|
34400
34400
|
};
|
|
34401
34401
|
const mr = S("debugpost");
|
|
34402
|
-
class
|
|
34402
|
+
class Th extends j {
|
|
34403
34403
|
constructor() {
|
|
34404
34404
|
super(...arguments);
|
|
34405
34405
|
r(this, "sharedProfile");
|
|
@@ -34549,15 +34549,15 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
|
|
|
34549
34549
|
c.active = e.value, this.scheduleRecreate();
|
|
34550
34550
|
return;
|
|
34551
34551
|
}
|
|
34552
|
-
if (!
|
|
34552
|
+
if (!yd.has(a)) {
|
|
34553
34553
|
const h = new Array();
|
|
34554
|
-
|
|
34554
|
+
yd.set(a, h);
|
|
34555
34555
|
const d = Object.keys(c);
|
|
34556
34556
|
for (const u of d)
|
|
34557
34557
|
c[u] instanceof N && h.push(u);
|
|
34558
34558
|
}
|
|
34559
|
-
if (
|
|
34560
|
-
const h = l.toLowerCase(), d =
|
|
34559
|
+
if (yd.has(a)) {
|
|
34560
|
+
const h = l.toLowerCase(), d = yd.get(a);
|
|
34561
34561
|
for (const u of d)
|
|
34562
34562
|
if (u.toLowerCase() === h) {
|
|
34563
34563
|
const f = c[u];
|
|
@@ -34582,12 +34582,12 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
|
|
|
34582
34582
|
}
|
|
34583
34583
|
Sx([
|
|
34584
34584
|
_l(Ly)
|
|
34585
|
-
],
|
|
34585
|
+
], Th.prototype, "sharedProfile");
|
|
34586
34586
|
Sx([
|
|
34587
34587
|
_l()
|
|
34588
|
-
],
|
|
34589
|
-
const
|
|
34590
|
-
LE(
|
|
34588
|
+
], Th.prototype, "multisampling");
|
|
34589
|
+
const yd = /* @__PURE__ */ new Map();
|
|
34590
|
+
LE(Th);
|
|
34591
34591
|
async function Fy(o) {
|
|
34592
34592
|
const { NeedleEngineWebComponent: t } = await Promise.resolve().then(() => $I);
|
|
34593
34593
|
t.observedAttributes.includes(o) || t.observedAttributes.push(o);
|
|
@@ -35780,7 +35780,7 @@ class PA extends ns {
|
|
|
35780
35780
|
this.offset = this.offset.set(0, 0), this.zoom = 1, this.needsUpdate = !0;
|
|
35781
35781
|
}
|
|
35782
35782
|
}
|
|
35783
|
-
var OA = Object.defineProperty, kA = Object.getOwnPropertyDescriptor,
|
|
35783
|
+
var OA = Object.defineProperty, kA = Object.getOwnPropertyDescriptor, Eh = (o, t, e, i) => {
|
|
35784
35784
|
for (var n = i > 1 ? void 0 : i ? kA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
35785
35785
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
35786
35786
|
return i && n && OA(t, e, n), n;
|
|
@@ -36064,19 +36064,19 @@ class ua extends j {
|
|
|
36064
36064
|
// private openWindowToSelectCamera(){
|
|
36065
36065
|
// }
|
|
36066
36066
|
}
|
|
36067
|
-
|
|
36067
|
+
Eh([
|
|
36068
36068
|
p()
|
|
36069
36069
|
], ua.prototype, "allowStartOnClick", 2);
|
|
36070
|
-
|
|
36070
|
+
Eh([
|
|
36071
36071
|
p()
|
|
36072
36072
|
], ua.prototype, "autoConnect", 2);
|
|
36073
|
-
|
|
36073
|
+
Eh([
|
|
36074
36074
|
p(xt)
|
|
36075
36075
|
], ua.prototype, "videoPlayer", 1);
|
|
36076
|
-
|
|
36076
|
+
Eh([
|
|
36077
36077
|
p()
|
|
36078
36078
|
], ua.prototype, "device", 2);
|
|
36079
|
-
|
|
36079
|
+
Eh([
|
|
36080
36080
|
p()
|
|
36081
36081
|
], ua.prototype, "deviceName", 2);
|
|
36082
36082
|
var MA = Object.defineProperty, Mx = (o, t, e, i) => {
|
|
@@ -36183,7 +36183,7 @@ Mx([
|
|
|
36183
36183
|
Mx([
|
|
36184
36184
|
p(ce)
|
|
36185
36185
|
], Df.prototype, "shadowColor");
|
|
36186
|
-
var RA = Object.defineProperty,
|
|
36186
|
+
var RA = Object.defineProperty, Ah = (o, t, e, i) => {
|
|
36187
36187
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36188
36188
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36189
36189
|
return n && RA(t, e, n), n;
|
|
@@ -36383,20 +36383,20 @@ const Kr = class extends j {
|
|
|
36383
36383
|
this.context.domElement.removeEventListener("dragover", this.onDragOverEvent), this.context.domElement.removeEventListener("drop", this.onDrop);
|
|
36384
36384
|
}
|
|
36385
36385
|
};
|
|
36386
|
-
|
|
36386
|
+
Ah([
|
|
36387
36387
|
Xw(Kr.prototype.urlChangedSyncField),
|
|
36388
36388
|
p(URL)
|
|
36389
36389
|
], Kr.prototype, "url");
|
|
36390
|
-
|
|
36390
|
+
Ah([
|
|
36391
36391
|
p()
|
|
36392
36392
|
], Kr.prototype, "allowDrop");
|
|
36393
|
-
|
|
36393
|
+
Ah([
|
|
36394
36394
|
p()
|
|
36395
36395
|
], Kr.prototype, "background");
|
|
36396
|
-
|
|
36396
|
+
Ah([
|
|
36397
36397
|
p()
|
|
36398
36398
|
], Kr.prototype, "environment");
|
|
36399
|
-
|
|
36399
|
+
Ah([
|
|
36400
36400
|
p()
|
|
36401
36401
|
], Kr.prototype, "allowNetworking");
|
|
36402
36402
|
let zy = Kr;
|
|
@@ -36419,13 +36419,13 @@ var IA = Object.defineProperty, jf = (o, t, e, i) => {
|
|
|
36419
36419
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36420
36420
|
return n && IA(t, e, n), n;
|
|
36421
36421
|
}, Ar;
|
|
36422
|
-
const
|
|
36422
|
+
const Ih = (Ar = class extends j {
|
|
36423
36423
|
constructor() {
|
|
36424
36424
|
super(...arguments);
|
|
36425
36425
|
r(this, "target", null);
|
|
36426
36426
|
r(this, "followFactor", 0.1);
|
|
36427
36427
|
r(this, "rotateFactor", 0.1);
|
|
36428
|
-
r(this, "positionAxes",
|
|
36428
|
+
r(this, "positionAxes", fc.All);
|
|
36429
36429
|
r(this, "flipForward", !1);
|
|
36430
36430
|
r(this, "_firstUpdate", !0);
|
|
36431
36431
|
}
|
|
@@ -36439,7 +36439,7 @@ const Lh = (Ar = class extends j {
|
|
|
36439
36439
|
if (!(!this.target || this.target === this.gameObject)) {
|
|
36440
36440
|
if (this.followFactor > 0) {
|
|
36441
36441
|
const i = te(this.target), n = this._firstUpdate || e ? 1 : $.clamp01(this.context.time.deltaTime * this.followFactor), s = this.worldPosition;
|
|
36442
|
-
this.positionAxes &
|
|
36442
|
+
this.positionAxes & fc.X && (s.x = $.lerp(s.x, i.x, n)), this.positionAxes & fc.Y && (s.y = $.lerp(s.y, i.y, n)), this.positionAxes & fc.Z && (s.z = $.lerp(s.z, i.z, n)), this.worldPosition = s;
|
|
36443
36443
|
}
|
|
36444
36444
|
if (this.rotateFactor > 0) {
|
|
36445
36445
|
const i = Oe(this.target);
|
|
@@ -36453,23 +36453,23 @@ const Lh = (Ar = class extends j {
|
|
|
36453
36453
|
}, r(Ar, "_invertForward", new W().setFromAxisAngle(new w(0, 1, 0), Math.PI)), Ar);
|
|
36454
36454
|
jf([
|
|
36455
36455
|
p(L)
|
|
36456
|
-
],
|
|
36456
|
+
], Ih.prototype, "target");
|
|
36457
36457
|
jf([
|
|
36458
36458
|
p()
|
|
36459
|
-
],
|
|
36459
|
+
], Ih.prototype, "followFactor");
|
|
36460
36460
|
jf([
|
|
36461
36461
|
p()
|
|
36462
|
-
],
|
|
36462
|
+
], Ih.prototype, "rotateFactor");
|
|
36463
36463
|
jf([
|
|
36464
36464
|
p()
|
|
36465
|
-
],
|
|
36466
|
-
let Uy =
|
|
36467
|
-
var LA = Object.defineProperty,
|
|
36465
|
+
], Ih.prototype, "positionAxes");
|
|
36466
|
+
let Uy = Ih;
|
|
36467
|
+
var LA = Object.defineProperty, Lh = (o, t, e, i) => {
|
|
36468
36468
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36469
36469
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36470
36470
|
return n && LA(t, e, n), n;
|
|
36471
36471
|
};
|
|
36472
|
-
const
|
|
36472
|
+
const Ic = S("debugspatialtrigger"), o0 = new Wo(), r0 = new Wo();
|
|
36473
36473
|
function DA(o, t) {
|
|
36474
36474
|
return o0.mask = o, r0.mask = t, o0.test(r0);
|
|
36475
36475
|
}
|
|
@@ -36490,7 +36490,7 @@ class Gs extends j {
|
|
|
36490
36490
|
* @internal
|
|
36491
36491
|
*/
|
|
36492
36492
|
start() {
|
|
36493
|
-
|
|
36493
|
+
Ic && console.log(this.name, this.triggerMask, this);
|
|
36494
36494
|
}
|
|
36495
36495
|
/**
|
|
36496
36496
|
* Checks for intersections with spatial triggers and fires appropriate events
|
|
@@ -36515,7 +36515,7 @@ class Gs extends j {
|
|
|
36515
36515
|
*/
|
|
36516
36516
|
onEnterTrigger(e) {
|
|
36517
36517
|
var i;
|
|
36518
|
-
|
|
36518
|
+
Ic && console.log("ENTER TRIGGER", this.name, e.name, this, e), e.raiseOnEnterEvent(this), (i = this.onEnter) == null || i.invoke();
|
|
36519
36519
|
}
|
|
36520
36520
|
/**
|
|
36521
36521
|
* Handles trigger exit events.
|
|
@@ -36523,7 +36523,7 @@ class Gs extends j {
|
|
|
36523
36523
|
*/
|
|
36524
36524
|
onExitTrigger(e) {
|
|
36525
36525
|
var i;
|
|
36526
|
-
|
|
36526
|
+
Ic && console.log("EXIT TRIGGER", this.name, e.name), e.raiseOnExitEvent(this), (i = this.onExit) == null || i.invoke();
|
|
36527
36527
|
}
|
|
36528
36528
|
/**
|
|
36529
36529
|
* Handles trigger stay events.
|
|
@@ -36534,16 +36534,16 @@ class Gs extends j {
|
|
|
36534
36534
|
e.raiseOnStayEvent(this), (i = this.onStay) == null || i.invoke();
|
|
36535
36535
|
}
|
|
36536
36536
|
}
|
|
36537
|
-
|
|
36537
|
+
Lh([
|
|
36538
36538
|
p()
|
|
36539
36539
|
], Gs.prototype, "triggerMask");
|
|
36540
|
-
|
|
36540
|
+
Lh([
|
|
36541
36541
|
p(Se)
|
|
36542
36542
|
], Gs.prototype, "onEnter");
|
|
36543
|
-
|
|
36543
|
+
Lh([
|
|
36544
36544
|
p(Se)
|
|
36545
36545
|
], Gs.prototype, "onStay");
|
|
36546
|
-
|
|
36546
|
+
Lh([
|
|
36547
36547
|
p(Se)
|
|
36548
36548
|
], Gs.prototype, "onExit");
|
|
36549
36549
|
var zs;
|
|
@@ -36558,14 +36558,14 @@ const Tx = (zs = class extends j {
|
|
|
36558
36558
|
* Initializes the trigger and logs debug info if enabled
|
|
36559
36559
|
*/
|
|
36560
36560
|
start() {
|
|
36561
|
-
|
|
36561
|
+
Ic && console.log(this.name, this.triggerMask, this);
|
|
36562
36562
|
}
|
|
36563
36563
|
/**
|
|
36564
36564
|
* Registers this trigger in the global registry and sets up debug visualization if enabled
|
|
36565
36565
|
*/
|
|
36566
36566
|
onEnable() {
|
|
36567
36567
|
var e;
|
|
36568
|
-
zs.triggers.push(this), this.boxHelper || (this.boxHelper = C.addComponent(this.gameObject, Zs), (e = this.boxHelper) == null || e.showHelper(null,
|
|
36568
|
+
zs.triggers.push(this), this.boxHelper || (this.boxHelper = C.addComponent(this.gameObject, Zs), (e = this.boxHelper) == null || e.showHelper(null, Ic));
|
|
36569
36569
|
}
|
|
36570
36570
|
/**
|
|
36571
36571
|
* Removes this trigger from the global registry when disabled
|
|
@@ -36611,7 +36611,7 @@ const Tx = (zs = class extends j {
|
|
|
36611
36611
|
}
|
|
36612
36612
|
}, /** Global registry of all active spatial triggers in the scene */
|
|
36613
36613
|
r(zs, "triggers", []), zs);
|
|
36614
|
-
|
|
36614
|
+
Lh([
|
|
36615
36615
|
p()
|
|
36616
36616
|
], Tx.prototype, "triggerMask");
|
|
36617
36617
|
let Ny = Tx;
|
|
@@ -37454,7 +37454,7 @@ class Lx extends j {
|
|
|
37454
37454
|
}
|
|
37455
37455
|
awake() {
|
|
37456
37456
|
if (this.useFlatbuffers)
|
|
37457
|
-
this.context.connection.beginListenBinary(
|
|
37457
|
+
this.context.connection.beginListenBinary(Kc, (e) => {
|
|
37458
37458
|
});
|
|
37459
37459
|
else {
|
|
37460
37460
|
this.models = [];
|
|
@@ -38013,7 +38013,7 @@ const eI = S("mutetimeline"), kr = class kr extends Uf {
|
|
|
38013
38013
|
}
|
|
38014
38014
|
};
|
|
38015
38015
|
r(kr, "_audioBuffers", /* @__PURE__ */ new Map());
|
|
38016
|
-
let
|
|
38016
|
+
let oh = kr;
|
|
38017
38017
|
class wu extends Uf {
|
|
38018
38018
|
constructor() {
|
|
38019
38019
|
super(...arguments);
|
|
@@ -38067,7 +38067,7 @@ class Hy extends Uf {
|
|
|
38067
38067
|
console.log("no source object, removing model", i, s), this.models.splice(i, 1);
|
|
38068
38068
|
continue;
|
|
38069
38069
|
} else {
|
|
38070
|
-
const a = C.getComponent(s.sourceObject,
|
|
38070
|
+
const a = C.getComponent(s.sourceObject, rh);
|
|
38071
38071
|
this.timelines.push(a), a && s.updateDirector && (a.playOnAwake = !1);
|
|
38072
38072
|
}
|
|
38073
38073
|
}
|
|
@@ -38461,7 +38461,7 @@ const Gy = (Do = class extends j {
|
|
|
38461
38461
|
}
|
|
38462
38462
|
} else if (a.type === Ki.Audio) {
|
|
38463
38463
|
if (!a.clips || a.clips.length <= 0) continue;
|
|
38464
|
-
const h = new
|
|
38464
|
+
const h = new oh();
|
|
38465
38465
|
h.director = this, h.track = a, h.audioSource = a.outputs.find((d) => d instanceof Rn), this._audioTracks.push(h), e || (e = (s = this.context.mainCameraComponent) == null ? void 0 : s.gameObject.addComponent(Io)), h.listener = e.listener;
|
|
38466
38466
|
for (let d = 0; d < a.clips.length; d++) {
|
|
38467
38467
|
const u = a.clips[d];
|
|
@@ -38517,7 +38517,7 @@ Fx([
|
|
|
38517
38517
|
Fx([
|
|
38518
38518
|
p()
|
|
38519
38519
|
], Gy.prototype, "extrapolationMode");
|
|
38520
|
-
let
|
|
38520
|
+
let rh = Gy;
|
|
38521
38521
|
var iI = Object.defineProperty, Nf = (o, t, e, i) => {
|
|
38522
38522
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38523
38523
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -38620,7 +38620,7 @@ class Bl extends j {
|
|
|
38620
38620
|
/** @internal */
|
|
38621
38621
|
onEnable() {
|
|
38622
38622
|
var e;
|
|
38623
|
-
if (!(this.isGizmo && !
|
|
38623
|
+
if (!(this.isGizmo && !hh) && this.context.mainCamera && (this._control || (this._control = new NC(this.context.mainCamera, this.context.renderer.domElement), this._control.enabled = !0, this._control.getRaycaster().layers.set(2), this._control.size = 1, ("_root" in this._control ? this._control._root : this._control).traverse((n) => {
|
|
38624
38624
|
const s = n;
|
|
38625
38625
|
if (s.layers.set(2), s) {
|
|
38626
38626
|
const a = s.material;
|
|
@@ -38677,7 +38677,7 @@ class qy {
|
|
|
38677
38677
|
$f([
|
|
38678
38678
|
p(Fe)
|
|
38679
38679
|
], qy.prototype, "texture", 2);
|
|
38680
|
-
let
|
|
38680
|
+
let Dh = class extends Sf {
|
|
38681
38681
|
constructor() {
|
|
38682
38682
|
super(...arguments);
|
|
38683
38683
|
r(this, "_sprite");
|
|
@@ -38718,10 +38718,10 @@ let jh = class extends Sf {
|
|
|
38718
38718
|
};
|
|
38719
38719
|
$f([
|
|
38720
38720
|
p(qy)
|
|
38721
|
-
],
|
|
38721
|
+
], Dh.prototype, "sprite", 1);
|
|
38722
38722
|
$f([
|
|
38723
38723
|
p()
|
|
38724
|
-
],
|
|
38724
|
+
], Dh.prototype, "pixelsPerUnitMultiplier", 2);
|
|
38725
38725
|
class Xy extends Sf {
|
|
38726
38726
|
constructor() {
|
|
38727
38727
|
super(...arguments);
|
|
@@ -38858,7 +38858,7 @@ class ar extends j {
|
|
|
38858
38858
|
this._requestedAnimatorTrigger = e, yield, yield, this._requestedAnimatorTrigger == e && ((i = this.animator) == null || i.setTrigger(e));
|
|
38859
38859
|
}
|
|
38860
38860
|
init() {
|
|
38861
|
-
this._isInit || (this._isInit = !0, this._image = C.getComponent(this.gameObject,
|
|
38861
|
+
this._isInit || (this._isInit = !0, this._image = C.getComponent(this.gameObject, Dh), this._image && (this.stateSetup(this._image), this.interactable ? this._image.setState("normal") : this._image.setState("disabled")));
|
|
38862
38862
|
}
|
|
38863
38863
|
stateSetup(e) {
|
|
38864
38864
|
var m, g, _, y, b;
|
|
@@ -38934,7 +38934,7 @@ var lI = Object.defineProperty, Wf = (o, t, e, i) => {
|
|
|
38934
38934
|
};
|
|
38935
38935
|
const go = S("debuginputfield");
|
|
38936
38936
|
var X;
|
|
38937
|
-
const
|
|
38937
|
+
const jh = (X = class extends j {
|
|
38938
38938
|
constructor() {
|
|
38939
38939
|
super(...arguments);
|
|
38940
38940
|
r(this, "textComponent");
|
|
@@ -39081,17 +39081,17 @@ const Bh = (X = class extends j {
|
|
|
39081
39081
|
}, r(X, "active", null), r(X, "activeTime", -1), r(X, "htmlField", null), r(X, "htmlFieldFocused", !1), X);
|
|
39082
39082
|
Wf([
|
|
39083
39083
|
p(ai)
|
|
39084
|
-
],
|
|
39084
|
+
], jh.prototype, "textComponent");
|
|
39085
39085
|
Wf([
|
|
39086
39086
|
p(ai)
|
|
39087
|
-
],
|
|
39087
|
+
], jh.prototype, "placeholder");
|
|
39088
39088
|
Wf([
|
|
39089
39089
|
p(Se)
|
|
39090
|
-
],
|
|
39090
|
+
], jh.prototype, "onValueChanged");
|
|
39091
39091
|
Wf([
|
|
39092
39092
|
p(Se)
|
|
39093
|
-
],
|
|
39094
|
-
let zx =
|
|
39093
|
+
], jh.prototype, "onEndEdit");
|
|
39094
|
+
let zx = jh;
|
|
39095
39095
|
var cI = Object.defineProperty, Ux = (o, t, e, i) => {
|
|
39096
39096
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39097
39097
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -39342,7 +39342,7 @@ var uI = Object.defineProperty, Hf = (o, t, e, i) => {
|
|
|
39342
39342
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39343
39343
|
return n && uI(t, e, n), n;
|
|
39344
39344
|
}, Ir;
|
|
39345
|
-
const
|
|
39345
|
+
const Bh = (Ir = class extends j {
|
|
39346
39346
|
constructor() {
|
|
39347
39347
|
super(...arguments);
|
|
39348
39348
|
r(this, "target");
|
|
@@ -39383,23 +39383,23 @@ const Fh = (Ir = class extends j {
|
|
|
39383
39383
|
}, r(Ir, "flipYQuat", new W().setFromAxisAngle(new w(0, 1, 0), Math.PI)), Ir);
|
|
39384
39384
|
Hf([
|
|
39385
39385
|
p(L)
|
|
39386
|
-
],
|
|
39386
|
+
], Bh.prototype, "target");
|
|
39387
39387
|
Hf([
|
|
39388
39388
|
p()
|
|
39389
|
-
],
|
|
39389
|
+
], Bh.prototype, "invertForward");
|
|
39390
39390
|
Hf([
|
|
39391
39391
|
p()
|
|
39392
|
-
],
|
|
39392
|
+
], Bh.prototype, "keepUpDirection");
|
|
39393
39393
|
Hf([
|
|
39394
39394
|
p()
|
|
39395
|
-
],
|
|
39396
|
-
let Nx =
|
|
39395
|
+
], Bh.prototype, "copyTargetRotation");
|
|
39396
|
+
let Nx = Bh;
|
|
39397
39397
|
var fI = Object.defineProperty, Yy = (o, t, e, i) => {
|
|
39398
39398
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39399
39399
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39400
39400
|
return n && fI(t, e, n), n;
|
|
39401
39401
|
};
|
|
39402
|
-
class
|
|
39402
|
+
class Fh extends j {
|
|
39403
39403
|
constructor() {
|
|
39404
39404
|
super(...arguments);
|
|
39405
39405
|
r(this, "url");
|
|
@@ -39451,13 +39451,13 @@ class zh extends j {
|
|
|
39451
39451
|
}
|
|
39452
39452
|
Yy([
|
|
39453
39453
|
p()
|
|
39454
|
-
],
|
|
39454
|
+
], Fh.prototype, "url");
|
|
39455
39455
|
Yy([
|
|
39456
39456
|
p()
|
|
39457
|
-
],
|
|
39457
|
+
], Fh.prototype, "mode");
|
|
39458
39458
|
Yy([
|
|
39459
39459
|
p()
|
|
39460
|
-
],
|
|
39460
|
+
], Fh.prototype, "clickable");
|
|
39461
39461
|
var pI = Object.defineProperty, Fl = (o, t, e, i) => {
|
|
39462
39462
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39463
39463
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -39599,7 +39599,7 @@ function Wx(o) {
|
|
|
39599
39599
|
const b = l.getRenderTarget(), v = l.getClearColor(new re()), x = l.getClearAlpha(), k = i.scene.background, O = "aspect" in a ? a.aspect : null;
|
|
39600
39600
|
try {
|
|
39601
39601
|
const U = o.render_events !== !1, E = new Array();
|
|
39602
|
-
U && (
|
|
39602
|
+
U && (dh(i.scene, ln, E), E.forEach((B) => {
|
|
39603
39603
|
var V;
|
|
39604
39604
|
if (B == null || B.onBeforeRender(), B.isInstancingActive && B.instances)
|
|
39605
39605
|
for (let J = 0; J < ((V = B.instances) == null ? void 0 : V.length); J++) {
|
|
@@ -40492,20 +40492,20 @@ M.add("Avatar_MouthShapes", af);
|
|
|
40492
40492
|
M.add("Avatar_MustacheShake", lw);
|
|
40493
40493
|
M.add("AvatarBlink_Simple", vl);
|
|
40494
40494
|
M.add("AvatarEyeLook_Rotation", dw);
|
|
40495
|
-
M.add("AxesHelper",
|
|
40495
|
+
M.add("AxesHelper", mh);
|
|
40496
40496
|
M.add("BasicIKConstraint", uw);
|
|
40497
40497
|
M.add("BoxHelperComponent", Zs);
|
|
40498
40498
|
M.add("Camera", Ai);
|
|
40499
40499
|
M.add("CharacterController", wl);
|
|
40500
40500
|
M.add("CharacterControllerInput", Qo);
|
|
40501
40501
|
M.add("Collider", Ui);
|
|
40502
|
-
M.add("SphereCollider",
|
|
40502
|
+
M.add("SphereCollider", gh);
|
|
40503
40503
|
M.add("BoxCollider", ry);
|
|
40504
40504
|
M.add("MeshCollider", oa);
|
|
40505
40505
|
M.add("CapsuleCollider", Go);
|
|
40506
40506
|
M.add("ContactShadows", hf);
|
|
40507
40507
|
M.add("LogStats", pw);
|
|
40508
|
-
M.add("DeleteBox",
|
|
40508
|
+
M.add("DeleteBox", Zc);
|
|
40509
40509
|
M.add("Deletable", gw);
|
|
40510
40510
|
M.add("DeviceFlag", ay);
|
|
40511
40511
|
M.add("DragControls", Aa);
|
|
@@ -40519,18 +40519,18 @@ M.add("VariantAction", Ww);
|
|
|
40519
40519
|
M.add("ChangeTransformOnClick", Pl);
|
|
40520
40520
|
M.add("ChangeMaterialOnClick", Vw);
|
|
40521
40521
|
M.add("SetActiveOnClick", Hw);
|
|
40522
|
-
M.add("HideOnStart",
|
|
40523
|
-
M.add("EmphasizeOnClick",
|
|
40522
|
+
M.add("HideOnStart", eh);
|
|
40523
|
+
M.add("EmphasizeOnClick", bh);
|
|
40524
40524
|
M.add("PlayAudioOnClick", qr);
|
|
40525
40525
|
M.add("PlayAnimationOnClick", mu);
|
|
40526
|
-
M.add("PreliminaryAction",
|
|
40526
|
+
M.add("PreliminaryAction", vh);
|
|
40527
40527
|
M.add("PreliminaryTrigger", gf);
|
|
40528
40528
|
M.add("VisibilityAction", yf);
|
|
40529
40529
|
M.add("TapGestureTrigger", Gw);
|
|
40530
40530
|
M.add("USDZExporter", Hs);
|
|
40531
|
-
M.add("Fog",
|
|
40531
|
+
M.add("Fog", Sh);
|
|
40532
40532
|
M.add("BoxGizmo", Tl);
|
|
40533
|
-
M.add("GridHelper",
|
|
40533
|
+
M.add("GridHelper", Ch);
|
|
40534
40534
|
M.add("GroundProjectedEnv", io);
|
|
40535
40535
|
M.add("UsageMarker", df);
|
|
40536
40536
|
M.add("Interactable", mw);
|
|
@@ -40547,7 +40547,7 @@ M.add("CameraTargetReachedEvent", lu);
|
|
|
40547
40547
|
M.add("OrbitControls", xe);
|
|
40548
40548
|
M.add("ParticleSystemRenderer", Ln);
|
|
40549
40549
|
M.add("ParticleSystem", yu);
|
|
40550
|
-
M.add("PlayerColor",
|
|
40550
|
+
M.add("PlayerColor", sh);
|
|
40551
40551
|
M.add("Antialiasing", Rf);
|
|
40552
40552
|
M.add("BloomEffect", jy);
|
|
40553
40553
|
M.add("ChromaticAberration", Ef);
|
|
@@ -40561,7 +40561,7 @@ M.add("SharpeningEffect", Lf);
|
|
|
40561
40561
|
M.add("TiltShiftEffect", lo);
|
|
40562
40562
|
M.add("ToneMappingEffect", Yr);
|
|
40563
40563
|
M.add("Vignette", jl);
|
|
40564
|
-
M.add("Volume",
|
|
40564
|
+
M.add("Volume", Th);
|
|
40565
40565
|
M.add("ReflectionProbe", fu);
|
|
40566
40566
|
M.add("Renderer", ln);
|
|
40567
40567
|
M.add("MeshRenderer", ff);
|
|
@@ -40581,28 +40581,28 @@ M.add("SyncedRoom", ys);
|
|
|
40581
40581
|
M.add("SyncedTransform", Ks);
|
|
40582
40582
|
M.add("TestRunner", Ix);
|
|
40583
40583
|
M.add("TestSimulateUserData", Lx);
|
|
40584
|
-
M.add("PlayableDirector",
|
|
40584
|
+
M.add("PlayableDirector", rh);
|
|
40585
40585
|
M.add("SignalReceiver", zf);
|
|
40586
40586
|
M.add("AnimationTrackHandler", Vy);
|
|
40587
|
-
M.add("AudioTrackHandler",
|
|
40587
|
+
M.add("AudioTrackHandler", oh);
|
|
40588
40588
|
M.add("SignalTrackHandler", wu);
|
|
40589
40589
|
M.add("ControlTrackHandler", Hy);
|
|
40590
40590
|
M.add("TransformGizmo", Bl);
|
|
40591
40591
|
M.add("BaseUIComponent", En);
|
|
40592
40592
|
M.add("UIRootComponent", wf);
|
|
40593
40593
|
M.add("Button", ar);
|
|
40594
|
-
M.add("Canvas",
|
|
40594
|
+
M.add("Canvas", ih);
|
|
40595
40595
|
M.add("CanvasGroup", Qr);
|
|
40596
40596
|
M.add("EventSystem", yi);
|
|
40597
40597
|
M.add("Graphic", xf);
|
|
40598
40598
|
M.add("MaskableGraphic", Sf);
|
|
40599
|
-
M.add("Image",
|
|
40599
|
+
M.add("Image", Dh);
|
|
40600
40600
|
M.add("RawImage", Xy);
|
|
40601
40601
|
M.add("InputField", zx);
|
|
40602
40602
|
M.add("VerticalLayoutGroup", sx);
|
|
40603
40603
|
M.add("HorizontalLayoutGroup", ox);
|
|
40604
40604
|
M.add("GridLayoutGroup", rx);
|
|
40605
|
-
M.add("Outline",
|
|
40605
|
+
M.add("Outline", xh);
|
|
40606
40606
|
M.add("ObjectRaycaster", an);
|
|
40607
40607
|
M.add("GraphicRaycaster", Jg);
|
|
40608
40608
|
M.add("SpatialGrabRaycaster", pl);
|
|
@@ -40611,7 +40611,7 @@ M.add("SpatialHtml", Vf);
|
|
|
40611
40611
|
M.add("Text", ai);
|
|
40612
40612
|
M.add("EnvironmentScene", Qy);
|
|
40613
40613
|
M.add("LookAt", Nx);
|
|
40614
|
-
M.add("OpenURL",
|
|
40614
|
+
M.add("OpenURL", Fh);
|
|
40615
40615
|
M.add("VideoPlayer", xt);
|
|
40616
40616
|
M.add("Voip", sa);
|
|
40617
40617
|
M.add("Avatar", Xr);
|
|
@@ -40630,7 +40630,7 @@ M.add("XRFlag", xn);
|
|
|
40630
40630
|
M.add("PlayerSync", Yw);
|
|
40631
40631
|
M.add("PlayerState", Qn);
|
|
40632
40632
|
M.add("PresentationMode", OI);
|
|
40633
|
-
const
|
|
40633
|
+
const Lc = bt, kI = S("debugtypestore");
|
|
40634
40634
|
kI && console.log(M);
|
|
40635
40635
|
function MI(o, t) {
|
|
40636
40636
|
const i = MO(o, t);
|
|
@@ -40676,13 +40676,13 @@ const hg = Symbol("original-component-name"), xa = /* @__PURE__ */ new Map();
|
|
|
40676
40676
|
function dg(o, t, e, i) {
|
|
40677
40677
|
if (t === null || !o) return;
|
|
40678
40678
|
const n = o.guid, s = o.guid;
|
|
40679
|
-
s != null && s.length && (xa.has(s) || (
|
|
40679
|
+
s != null && s.length && (xa.has(s) || (Lc && console.log('Creating InstanceIdProvider with key "' + s + '" for object ' + o.name), xa.set(s, new zt(s))));
|
|
40680
40680
|
const a = s && xa.get(s) || t;
|
|
40681
40681
|
if (o.guid = a.generateUUID(), n && n !== "invalid" && (e[n] = o.guid), o && o.userData && o.userData.components)
|
|
40682
40682
|
for (const l of o.userData.components) {
|
|
40683
40683
|
if (l === null) continue;
|
|
40684
40684
|
const c = l.guid;
|
|
40685
|
-
c ? xa.has(c) || (
|
|
40685
|
+
c ? xa.has(c) || (Lc && console.log('Creating InstanceIdProvider with key "' + c + '" for component ' + l[hg]), xa.set(c, new zt(c))) : Lc && console.warn("Can not create IdProvider: component " + l[hg] + " has no guid", l.guid);
|
|
40686
40686
|
const h = xa.get(c) || t, d = l.guid;
|
|
40687
40687
|
l.guid = h.generateUUID(), d && d !== "invalid" && (e[d] = l.guid), l.resolveGuids && i.push(l);
|
|
40688
40688
|
}
|
|
@@ -40706,7 +40706,7 @@ async function ug(o, t, e, i) {
|
|
|
40706
40706
|
const m = new f();
|
|
40707
40707
|
m.sourceId = o.gltfId, ll(m, u, o.implementationInformation), m.context = o.context, "guid" in u && (m[vd] = u.guid), m[hg] = u.name, Xa(t, m, !1), e.push({ instance: m, compData: u, obj: t }), m.isCamera && o.context && o.context.mainCamera === null && m.tag === "MainCamera" && o.context.setCurrentCamera(m), ((l = (a = (s = o.context) == null ? void 0 : s.physics) == null ? void 0 : a.engine) == null ? void 0 : l.isInitialized) === !1 && (m.isCollider || m.isRigidbody) && ((h = (c = o.context) == null ? void 0 : c.physics.engine) == null || h.initialize());
|
|
40708
40708
|
} else
|
|
40709
|
-
|
|
40709
|
+
Lc && console.debug("unknown component: " + u.name), ic.includes(u.name) || ic.push(u.name);
|
|
40710
40710
|
} catch (f) {
|
|
40711
40711
|
console.error(u.name + " - " + f.message, f);
|
|
40712
40712
|
}
|
|
@@ -40726,7 +40726,7 @@ This could mean you forgot to add a npmdef to your ExportInfo
|
|
|
40726
40726
|
}
|
|
40727
40727
|
function EI(o, t) {
|
|
40728
40728
|
const { instance: e, compData: i, obj: n } = o;
|
|
40729
|
-
t.object = n, t.target = e, Rm(e, i, t),
|
|
40729
|
+
t.object = n, t.target = e, Rm(e, i, t), Lc && console.debug("add " + i.name, i, e);
|
|
40730
40730
|
}
|
|
40731
40731
|
class Vx {
|
|
40732
40732
|
createBuiltinComponents(t, e, i, n, s) {
|
|
@@ -40791,7 +40791,7 @@ async function II(o, t, e, i) {
|
|
|
40791
40791
|
if (n instanceof Pg) {
|
|
40792
40792
|
typeof t != "string" && (t = new TextDecoder().decode(t));
|
|
40793
40793
|
const l = n.parse(t);
|
|
40794
|
-
return await
|
|
40794
|
+
return await Dc(n, o, e, l, i, s);
|
|
40795
40795
|
}
|
|
40796
40796
|
if (!(n instanceof Qs)) {
|
|
40797
40797
|
if (n.parse === void 0) {
|
|
@@ -40799,14 +40799,14 @@ async function II(o, t, e, i) {
|
|
|
40799
40799
|
return;
|
|
40800
40800
|
}
|
|
40801
40801
|
const l = n.parse(t, e);
|
|
40802
|
-
return await
|
|
40802
|
+
return await Dc(n, o, e, l, i, s);
|
|
40803
40803
|
}
|
|
40804
40804
|
return new Promise((l, c) => {
|
|
40805
40805
|
try {
|
|
40806
40806
|
let h = e.split("?")[0].trimEnd();
|
|
40807
40807
|
const d = h.split("/");
|
|
40808
40808
|
d.length > 0 && d[d.length - 1] !== "" && d.pop(), h = d.join("/"), h.endsWith("/") || (h += "/"), n.resourcePath = h, n.parse(t, "", async (u) => {
|
|
40809
|
-
const f = await
|
|
40809
|
+
const f = await Dc(n, o, e, u, i, s);
|
|
40810
40810
|
l(f);
|
|
40811
40811
|
}, (u) => {
|
|
40812
40812
|
console.error('Loading asset at "' + e + `" failed
|
|
@@ -40825,12 +40825,12 @@ async function qx(o, t, e, i, n) {
|
|
|
40825
40825
|
const { componentsExtension: a } = Xx(s, o);
|
|
40826
40826
|
if (!(s instanceof Qs)) {
|
|
40827
40827
|
const l = await s.loadAsync(t, n);
|
|
40828
|
-
return await
|
|
40828
|
+
return await Dc(s, o, t, l, i, a);
|
|
40829
40829
|
}
|
|
40830
40830
|
return new Promise((l, c) => {
|
|
40831
40831
|
try {
|
|
40832
40832
|
s.load(t, async (h) => {
|
|
40833
|
-
const d = await
|
|
40833
|
+
const d = await Dc(s, o, e, h, i, a);
|
|
40834
40834
|
l(d);
|
|
40835
40835
|
}, (h) => {
|
|
40836
40836
|
n == null || n.call(s, h);
|
|
@@ -40847,7 +40847,7 @@ function Xx(o, t) {
|
|
|
40847
40847
|
const e = Pw(o);
|
|
40848
40848
|
return o instanceof Qs && Qg(o, t), { componentsExtension: e };
|
|
40849
40849
|
}
|
|
40850
|
-
async function
|
|
40850
|
+
async function Dc(o, t, e, i, n, s) {
|
|
40851
40851
|
var a;
|
|
40852
40852
|
if (Hx && console.warn("Loaded", e, i), i == null)
|
|
40853
40853
|
return console.error(`Loaded model is null '${e}' - please make sure the loader is registered correctly`), {
|
|
@@ -41020,7 +41020,7 @@ function Yx(o) {
|
|
|
41020
41020
|
const i = o.index / t + oc / t;
|
|
41021
41021
|
return $.clamp01(i);
|
|
41022
41022
|
}
|
|
41023
|
-
const
|
|
41023
|
+
const Nc = class Nc {
|
|
41024
41024
|
/**
|
|
41025
41025
|
* Creates a new loading view
|
|
41026
41026
|
* @param owner the element that will contain the loading view (should be the NeedleEngineHTMLElement)
|
|
@@ -41045,7 +41045,7 @@ const $c = class $c {
|
|
|
41045
41045
|
if (Sr && console.warn("Begin Loading"), !this._loadingElement) {
|
|
41046
41046
|
for (let i = 0; i < e.children.length; i++) {
|
|
41047
41047
|
const n = e.children[i];
|
|
41048
|
-
if (n.classList.contains(
|
|
41048
|
+
if (n.classList.contains(Nc.LoadingContainerClassName)) {
|
|
41049
41049
|
if (!this._allowCustomLoadingElement) {
|
|
41050
41050
|
Sr && console.warn("Remove custom loading container"), e.removeChild(n);
|
|
41051
41051
|
continue;
|
|
@@ -41095,7 +41095,7 @@ const $c = class $c {
|
|
|
41095
41095
|
const g = this._element.getAttribute("loading-background");
|
|
41096
41096
|
g ? this._loadingElement.style.background = g : this._loadingElement.style.backgroundColor = "transparent", this._loadingElement.style.display = "flex", this._loadingElement.style.alignItems = "center", this._loadingElement.style.justifyContent = "center", this._loadingElement.style.zIndex = Number.MAX_SAFE_INTEGER.toString(), this._loadingElement.style.flexDirection = "column", this._loadingElement.style.pointerEvents = "none", this._loadingElement.style.color = "white", this._loadingElement.style.fontFamily = 'system-ui, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', this._loadingElement.style.fontSize = "1rem", e === "light" ? this._loadingElement.style.color = "rgba(0,0,0,.6)" : this._loadingElement.style.color = "rgba(255,255,255,.3)";
|
|
41097
41097
|
}
|
|
41098
|
-
const n = ((f = this._loadingElementOptions) == null ? void 0 : f.className) ??
|
|
41098
|
+
const n = ((f = this._loadingElementOptions) == null ? void 0 : f.className) ?? Nc.LoadingContainerClassName;
|
|
41099
41099
|
if (this._loadingElement.classList.add(n), (m = this._loadingElementOptions) != null && m.additionalClasses)
|
|
41100
41100
|
for (const g of this._loadingElementOptions.additionalClasses)
|
|
41101
41101
|
this._loadingElement.classList.add(g);
|
|
@@ -41143,8 +41143,8 @@ const $c = class $c {
|
|
|
41143
41143
|
CLICK HERE TO GET A LICENSE`, i.style.cursor = "pointer", i.style.userSelect = "none", i.style.textAlign = "center", i.style.pointerEvents = "all", i.addEventListener("click", () => window.open("https://needle.tools/pricing", "_self")), i.style.opacity = "0", t.appendChild(i), !z() && Uo && (d0 && console.log("Waiting for runtime license check"), await Uo, e = Vs()), !e && (i.style.transition = "opacity .5s ease-in-out", i.style.opacity = "1");
|
|
41144
41144
|
}
|
|
41145
41145
|
};
|
|
41146
|
-
r(
|
|
41147
|
-
let fg =
|
|
41146
|
+
r(Nc, "LoadingContainerClassName", "loading");
|
|
41147
|
+
let fg = Nc;
|
|
41148
41148
|
cv(Vx);
|
|
41149
41149
|
const Ae = S("debugwebcomponent"), f0 = "needle-engine", Kx = "vr", Zx = "desktop", zI = [Qx, Kx, Zx], rc = "ar-session-active", ac = "desktop-session-active", UI = [
|
|
41150
41150
|
"public-key",
|
|
@@ -41392,7 +41392,7 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
41392
41392
|
break;
|
|
41393
41393
|
}
|
|
41394
41394
|
case "public-key": {
|
|
41395
|
-
n !=
|
|
41395
|
+
n != bd && this.setPublicKey();
|
|
41396
41396
|
break;
|
|
41397
41397
|
}
|
|
41398
41398
|
case "version": {
|
|
@@ -41545,7 +41545,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
41545
41545
|
}
|
|
41546
41546
|
}
|
|
41547
41547
|
setPublicKey() {
|
|
41548
|
-
|
|
41548
|
+
bd.length > 0 && this.setAttribute("public-key", bd);
|
|
41549
41549
|
}
|
|
41550
41550
|
setVersion() {
|
|
41551
41551
|
ts.length > 0 && this.setAttribute("version", ts);
|
|
@@ -42462,10 +42462,10 @@ class S2 {
|
|
|
42462
42462
|
{
|
|
42463
42463
|
let y = null;
|
|
42464
42464
|
if (c.endsWith(".hdr")) {
|
|
42465
|
-
const b = (await import("./three-examples-
|
|
42465
|
+
const b = (await import("./three-examples-GggCDHv0.js").then((v) => v.RGBELoader$1)).RGBELoader;
|
|
42466
42466
|
y = new b();
|
|
42467
42467
|
} else if (c.endsWith(".exr")) {
|
|
42468
|
-
const b = (await import("./three-examples-
|
|
42468
|
+
const b = (await import("./three-examples-GggCDHv0.js").then((v) => v.EXRLoader$1)).EXRLoader;
|
|
42469
42469
|
y = new b();
|
|
42470
42470
|
}
|
|
42471
42471
|
if (y) {
|
|
@@ -42530,7 +42530,7 @@ class qI {
|
|
|
42530
42530
|
}
|
|
42531
42531
|
onBeforeExport(t) {
|
|
42532
42532
|
t.context.animations.mixers.forEach((e) => {
|
|
42533
|
-
const i =
|
|
42533
|
+
const i = Qc.tryGetActionsFromMixer(e);
|
|
42534
42534
|
if (i)
|
|
42535
42535
|
for (let n = 0; n < i.length; n++) {
|
|
42536
42536
|
const s = i[n];
|
|
@@ -42552,7 +42552,7 @@ class qI {
|
|
|
42552
42552
|
}
|
|
42553
42553
|
function XI(o, t, e) {
|
|
42554
42554
|
o.animations.mixers.forEach((n) => {
|
|
42555
|
-
const s =
|
|
42555
|
+
const s = Qc.tryGetActionsFromMixer(n);
|
|
42556
42556
|
if (s)
|
|
42557
42557
|
for (let a = 0; a < s.length; a++) {
|
|
42558
42558
|
const c = s[a].getClip();
|
|
@@ -42560,12 +42560,12 @@ function XI(o, t, e) {
|
|
|
42560
42560
|
}
|
|
42561
42561
|
}), Array.isArray(t) || (t = [t]);
|
|
42562
42562
|
for (const n of t)
|
|
42563
|
-
|
|
42563
|
+
Qc.tryGetAnimationClipsFromObjectHierarchy(n, e);
|
|
42564
42564
|
const i = new Set(e);
|
|
42565
42565
|
return Array.from(i);
|
|
42566
42566
|
}
|
|
42567
42567
|
const y0 = "needle-button", om = z();
|
|
42568
|
-
var Lr, Dr, jr, Kt, Rs, Ka, gl, tS, iS,
|
|
42568
|
+
var Lr, Dr, jr, Kt, Rs, Ka, gl, tS, iS, ch;
|
|
42569
42569
|
class eS extends HTMLElement {
|
|
42570
42570
|
constructor() {
|
|
42571
42571
|
super();
|
|
@@ -42579,10 +42579,10 @@ class eS extends HTMLElement {
|
|
|
42579
42579
|
/** If AR or VR is requested we create and use the webxr button factory to create a button with default behaviour */
|
|
42580
42580
|
mn(this, Rs);
|
|
42581
42581
|
mn(this, Ka);
|
|
42582
|
-
mn(this,
|
|
42582
|
+
mn(this, ch, (e) => {
|
|
42583
42583
|
om && console.log("Needle Button clicked"), !e.defaultPrevented && ue(this, Kt) && ue(this, Kt).click();
|
|
42584
42584
|
});
|
|
42585
|
-
this.removeEventListener("click", ue(this,
|
|
42585
|
+
this.removeEventListener("click", ue(this, ch)), this.addEventListener("click", ue(this, ch));
|
|
42586
42586
|
}
|
|
42587
42587
|
attributeChangedCallback(e, i, n) {
|
|
42588
42588
|
$l(this, gl, tS).call(this);
|
|
@@ -42637,7 +42637,7 @@ Lr = new WeakMap(), Dr = new WeakMap(), jr = new WeakMap(), Kt = new WeakMap(),
|
|
|
42637
42637
|
`), ue(this, Dr).innerHTML = ue(this, Kt).innerHTML, ue(this, Dr).style.cssText = "display: flex; align-items: center; justify-content: center;", ue(this, Kt).innerHTML = ue(this, Dr).outerHTML, ue(this, Lr).innerHTML = ue(this, Kt).outerHTML, ue(this, Lr).prepend(ue(this, jr)), nu(jm, { element: ue(this, Lr) }), (n = ue(this, Ka)) == null || n.disconnect(), ue(this, Ka) ?? gn(this, Ka, new MutationObserver(() => $l(this, gl, iS).call(this))), ue(this, Ka).observe(ue(this, Kt), { attributes: !0 }), om && console.log("Needle Button updated");
|
|
42638
42638
|
}, iS = function() {
|
|
42639
42639
|
ue(this, Kt) && (ue(this, Kt).style.display === "none" ? this.style.display = "none" : this.style.display === "none" && (this.style.display = ""));
|
|
42640
|
-
},
|
|
42640
|
+
}, ch = new WeakMap(), r(eS, "observedAttributes", ["ar", "vr", "quicklook"]);
|
|
42641
42641
|
typeof window < "u" && !window.customElements.get(y0) && window.customElements.define(y0, eS);
|
|
42642
42642
|
const lc = S("debugavatar");
|
|
42643
42643
|
class nS {
|
|
@@ -42688,7 +42688,7 @@ class QI {
|
|
|
42688
42688
|
if (typeof e == "string") {
|
|
42689
42689
|
if (i = await this.loadAvatar(t, e), !i) {
|
|
42690
42690
|
const s = new hs();
|
|
42691
|
-
i = C.instantiate(
|
|
42691
|
+
i = C.instantiate(Wc(e, t.scene), s);
|
|
42692
42692
|
}
|
|
42693
42693
|
} else i = e;
|
|
42694
42694
|
if (!i)
|
|
@@ -42818,7 +42818,7 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42818
42818
|
AudioExtension: Cl,
|
|
42819
42819
|
AudioListener: Io,
|
|
42820
42820
|
AudioSource: Rn,
|
|
42821
|
-
AudioTrackHandler:
|
|
42821
|
+
AudioTrackHandler: oh,
|
|
42822
42822
|
Avatar: Xr,
|
|
42823
42823
|
AvatarBlink_Simple: vl,
|
|
42824
42824
|
AvatarEyeLook_Rotation: dw,
|
|
@@ -42829,7 +42829,7 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42829
42829
|
Avatar_MouthShapes: af,
|
|
42830
42830
|
Avatar_MustacheShake: lw,
|
|
42831
42831
|
Avatar_POI: $o,
|
|
42832
|
-
AxesHelper:
|
|
42832
|
+
AxesHelper: mh,
|
|
42833
42833
|
BaseUIComponent: En,
|
|
42834
42834
|
BasicIKConstraint: uw,
|
|
42835
42835
|
BehaviorExtension: Kw,
|
|
@@ -42842,7 +42842,7 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42842
42842
|
CallInfo: Ro,
|
|
42843
42843
|
Camera: Ai,
|
|
42844
42844
|
CameraTargetReachedEvent: lu,
|
|
42845
|
-
Canvas:
|
|
42845
|
+
Canvas: ih,
|
|
42846
42846
|
CanvasGroup: Qr,
|
|
42847
42847
|
CapsuleCollider: Go,
|
|
42848
42848
|
ChangeMaterialOnClick: Vw,
|
|
@@ -42852,13 +42852,13 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42852
42852
|
ChromaticAberration: Ef,
|
|
42853
42853
|
Collider: Ui,
|
|
42854
42854
|
ColorAdjustments: ca,
|
|
42855
|
-
ColorBySpeedModule:
|
|
42855
|
+
ColorBySpeedModule: Mh,
|
|
42856
42856
|
ColorOverLifetimeModule: Ay,
|
|
42857
42857
|
ContactShadows: hf,
|
|
42858
42858
|
ControlTrackHandler: Hy,
|
|
42859
42859
|
CustomBranding: Rl,
|
|
42860
42860
|
Deletable: gw,
|
|
42861
|
-
DeleteBox:
|
|
42861
|
+
DeleteBox: Zc,
|
|
42862
42862
|
DepthOfField: ms,
|
|
42863
42863
|
DeviceFlag: ay,
|
|
42864
42864
|
DocumentExtension: YI,
|
|
@@ -42867,7 +42867,7 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42867
42867
|
Duplicatable: bw,
|
|
42868
42868
|
EffectWrapper: _u,
|
|
42869
42869
|
EmissionModule: nr,
|
|
42870
|
-
EmphasizeOnClick:
|
|
42870
|
+
EmphasizeOnClick: bh,
|
|
42871
42871
|
EnvironmentScene: Qy,
|
|
42872
42872
|
EventList: Se,
|
|
42873
42873
|
EventListEvent: Zg,
|
|
@@ -42875,28 +42875,28 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42875
42875
|
EventTrigger: dy,
|
|
42876
42876
|
FieldWithDefault: LR,
|
|
42877
42877
|
FixedJoint: hx,
|
|
42878
|
-
Fog:
|
|
42878
|
+
Fog: Sh,
|
|
42879
42879
|
GltfExport: Iw,
|
|
42880
42880
|
GltfExportBox: Aw,
|
|
42881
42881
|
Gradient: Al,
|
|
42882
42882
|
Graphic: xf,
|
|
42883
42883
|
GraphicRaycaster: Jg,
|
|
42884
|
-
GridHelper:
|
|
42884
|
+
GridHelper: Ch,
|
|
42885
42885
|
GridLayoutGroup: rx,
|
|
42886
42886
|
GroundProjectedEnv: io,
|
|
42887
42887
|
GroupActionModel: Mr,
|
|
42888
|
-
HideOnStart:
|
|
42888
|
+
HideOnStart: eh,
|
|
42889
42889
|
HingeJoint: Cf,
|
|
42890
42890
|
HorizontalLayoutGroup: ox,
|
|
42891
|
-
Image:
|
|
42891
|
+
Image: Dh,
|
|
42892
42892
|
InheritVelocityModule: mx,
|
|
42893
42893
|
InputField: zx,
|
|
42894
42894
|
InstanceHandle: pu,
|
|
42895
|
-
InstancingHandler:
|
|
42895
|
+
InstancingHandler: Jc,
|
|
42896
42896
|
Interactable: mw,
|
|
42897
42897
|
Keyframe: Ii,
|
|
42898
42898
|
LODGroup: Pf,
|
|
42899
|
-
LODModel:
|
|
42899
|
+
LODModel: Oh,
|
|
42900
42900
|
Light: Wi,
|
|
42901
42901
|
LimitVelocityOverLifetimeModule: Pt,
|
|
42902
42902
|
LogStats: pw,
|
|
@@ -42914,9 +42914,9 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42914
42914
|
NoiseModule: ke,
|
|
42915
42915
|
ObjectRaycaster: an,
|
|
42916
42916
|
OffsetConstraint: El,
|
|
42917
|
-
OpenURL:
|
|
42917
|
+
OpenURL: Fh,
|
|
42918
42918
|
OrbitControls: xe,
|
|
42919
|
-
Outline:
|
|
42919
|
+
Outline: xh,
|
|
42920
42920
|
Padding: Ml,
|
|
42921
42921
|
ParticleBurst: ng,
|
|
42922
42922
|
ParticleSubEmitter: gx,
|
|
@@ -42926,11 +42926,11 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42926
42926
|
PixelationEffect: If,
|
|
42927
42927
|
PlayAnimationOnClick: mu,
|
|
42928
42928
|
PlayAudioOnClick: qr,
|
|
42929
|
-
PlayableDirector:
|
|
42930
|
-
PlayerColor:
|
|
42929
|
+
PlayableDirector: rh,
|
|
42930
|
+
PlayerColor: sh,
|
|
42931
42931
|
PointerEventData: of,
|
|
42932
42932
|
PostProcessingHandler: xx,
|
|
42933
|
-
PreliminaryAction:
|
|
42933
|
+
PreliminaryAction: vh,
|
|
42934
42934
|
PreliminaryTrigger: gf,
|
|
42935
42935
|
RawImage: Xy,
|
|
42936
42936
|
Rect: BT,
|
|
@@ -42965,11 +42965,11 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42965
42965
|
SpatialTrigger: Ny,
|
|
42966
42966
|
SpatialTriggerReceiver: Gs,
|
|
42967
42967
|
SpectatorCamera: $y,
|
|
42968
|
-
SphereCollider:
|
|
42968
|
+
SphereCollider: gh,
|
|
42969
42969
|
Sprite: Zo,
|
|
42970
|
-
SpriteData:
|
|
42970
|
+
SpriteData: Ec,
|
|
42971
42971
|
SpriteRenderer: Ni,
|
|
42972
|
-
SpriteSheet:
|
|
42972
|
+
SpriteSheet: th,
|
|
42973
42973
|
SubEmitterSystem: rg,
|
|
42974
42974
|
SyncedCamera: Ax,
|
|
42975
42975
|
SyncedRoom: ys,
|
|
@@ -43002,7 +43002,7 @@ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
43002
43002
|
Vignette: jl,
|
|
43003
43003
|
VisibilityAction: yf,
|
|
43004
43004
|
Voip: sa,
|
|
43005
|
-
Volume:
|
|
43005
|
+
Volume: Th,
|
|
43006
43006
|
VolumeParameter: N,
|
|
43007
43007
|
VolumeProfile: Ly,
|
|
43008
43008
|
WebARCameraBackground: Gf,
|
|
@@ -43080,14 +43080,14 @@ fe.registerCallback(me.ContextCreated, (o) => {
|
|
|
43080
43080
|
for (const e of o.files)
|
|
43081
43081
|
C.foreachComponent(e.file.scene, (n) => {
|
|
43082
43082
|
if (n.enabled !== !1) {
|
|
43083
|
-
if (n instanceof si && n.playAutomatically || n instanceof $t || n instanceof
|
|
43083
|
+
if (n instanceof si && n.playAutomatically || n instanceof $t || n instanceof rh && n.playOnAwake === !0)
|
|
43084
43084
|
return !0;
|
|
43085
43085
|
if (n instanceof si)
|
|
43086
43086
|
return n.playAutomatically = !0, !0;
|
|
43087
|
-
if (n instanceof
|
|
43087
|
+
if (n instanceof rh)
|
|
43088
43088
|
return n.playOnAwake = !0, !0;
|
|
43089
43089
|
}
|
|
43090
|
-
}, !0) !== !0 &&
|
|
43090
|
+
}, !0) !== !0 && Qc.assignAnimationsFromFile(e.file, {
|
|
43091
43091
|
createAnimationComponent: (n, s) => sn(n, si)
|
|
43092
43092
|
});
|
|
43093
43093
|
});
|
|
@@ -43095,7 +43095,7 @@ class ZI extends t1 {
|
|
|
43095
43095
|
constructor() {
|
|
43096
43096
|
super(new Worker(new URL(
|
|
43097
43097
|
/* @vite-ignore */
|
|
43098
|
-
"/generateMeshBVH.worker-
|
|
43098
|
+
"/generateMeshBVH.worker-Cdfpaq5W.js",
|
|
43099
43099
|
import.meta.url
|
|
43100
43100
|
), { type: "module" })), this.name = "GenerateMeshBVHWorker";
|
|
43101
43101
|
}
|
|
@@ -43148,17 +43148,17 @@ export {
|
|
|
43148
43148
|
Ji as ActionModel,
|
|
43149
43149
|
QO as Addressables,
|
|
43150
43150
|
nf as AlignmentConstraint,
|
|
43151
|
-
|
|
43151
|
+
Pc as AmbientMode,
|
|
43152
43152
|
si as Animation,
|
|
43153
43153
|
Mf as AnimationCurve,
|
|
43154
43154
|
my as AnimationExtension,
|
|
43155
43155
|
Vy as AnimationTrackHandler,
|
|
43156
|
-
|
|
43156
|
+
Qc as AnimationUtils,
|
|
43157
43157
|
$t as Animator,
|
|
43158
43158
|
_r as AnimatorConditionMode,
|
|
43159
43159
|
kn as AnimatorController,
|
|
43160
43160
|
iw as AnimatorControllerParameterType,
|
|
43161
|
-
|
|
43161
|
+
Zh as AnimatorStateInfo,
|
|
43162
43162
|
Rf as Antialiasing,
|
|
43163
43163
|
as as Application,
|
|
43164
43164
|
ZP as AssetDatabase,
|
|
@@ -43166,7 +43166,7 @@ export {
|
|
|
43166
43166
|
Cl as AudioExtension,
|
|
43167
43167
|
Io as AudioListener,
|
|
43168
43168
|
Rn as AudioSource,
|
|
43169
|
-
|
|
43169
|
+
oh as AudioTrackHandler,
|
|
43170
43170
|
Xr as Avatar,
|
|
43171
43171
|
vl as AvatarBlink_Simple,
|
|
43172
43172
|
dw as AvatarEyeLook_Rotation,
|
|
@@ -43177,8 +43177,8 @@ export {
|
|
|
43177
43177
|
af as Avatar_MouthShapes,
|
|
43178
43178
|
lw as Avatar_MustacheShake,
|
|
43179
43179
|
$o as Avatar_POI,
|
|
43180
|
-
|
|
43181
|
-
|
|
43180
|
+
fc as Axes,
|
|
43181
|
+
mh as AxesHelper,
|
|
43182
43182
|
av as BUILD_TIME,
|
|
43183
43183
|
En as BaseUIComponent,
|
|
43184
43184
|
uw as BasicIKConstraint,
|
|
@@ -43195,7 +43195,7 @@ export {
|
|
|
43195
43195
|
Ro as CallInfo,
|
|
43196
43196
|
Ai as Camera,
|
|
43197
43197
|
lu as CameraTargetReachedEvent,
|
|
43198
|
-
|
|
43198
|
+
ih as Canvas,
|
|
43199
43199
|
Qr as CanvasGroup,
|
|
43200
43200
|
Go as CapsuleCollider,
|
|
43201
43201
|
Vw as ChangeMaterialOnClick,
|
|
@@ -43210,7 +43210,7 @@ export {
|
|
|
43210
43210
|
AM as Collision,
|
|
43211
43211
|
Kg as CollisionDetectionMode,
|
|
43212
43212
|
ca as ColorAdjustments,
|
|
43213
|
-
|
|
43213
|
+
Mh as ColorBySpeedModule,
|
|
43214
43214
|
Ay as ColorOverLifetimeModule,
|
|
43215
43215
|
JL as Component,
|
|
43216
43216
|
j as Component$1,
|
|
@@ -43228,7 +43228,7 @@ export {
|
|
|
43228
43228
|
Hm as CustomShader,
|
|
43229
43229
|
Lm as DefaultReflectionMode,
|
|
43230
43230
|
gw as Deletable,
|
|
43231
|
-
|
|
43231
|
+
Zc as DeleteBox,
|
|
43232
43232
|
ms as DepthOfField,
|
|
43233
43233
|
ay as DeviceFlag,
|
|
43234
43234
|
Q as DeviceUtilities,
|
|
@@ -43239,7 +43239,7 @@ export {
|
|
|
43239
43239
|
bw as Duplicatable,
|
|
43240
43240
|
_u as EffectWrapper,
|
|
43241
43241
|
nr as EmissionModule,
|
|
43242
|
-
|
|
43242
|
+
bh as EmphasizeOnClick,
|
|
43243
43243
|
fg as EngineLoadingView,
|
|
43244
43244
|
Qy as EnvironmentScene,
|
|
43245
43245
|
Se as EventList,
|
|
@@ -43252,7 +43252,7 @@ export {
|
|
|
43252
43252
|
u2 as FileSpawnModel,
|
|
43253
43253
|
sR as File_Event,
|
|
43254
43254
|
hx as FixedJoint,
|
|
43255
|
-
|
|
43255
|
+
Sh as Fog,
|
|
43256
43256
|
Re as FrameEvent,
|
|
43257
43257
|
Eg as GENERATOR,
|
|
43258
43258
|
C as GameObject,
|
|
@@ -43263,16 +43263,16 @@ export {
|
|
|
43263
43263
|
xf as Graphic,
|
|
43264
43264
|
Jg as GraphicRaycaster,
|
|
43265
43265
|
nl as Graphics,
|
|
43266
|
-
|
|
43266
|
+
Ch as GridHelper,
|
|
43267
43267
|
rx as GridLayoutGroup,
|
|
43268
43268
|
io as GroundProjectedEnv,
|
|
43269
43269
|
Mr as GroupActionModel,
|
|
43270
43270
|
ty as HideFlags,
|
|
43271
|
-
|
|
43271
|
+
eh as HideOnStart,
|
|
43272
43272
|
Cf as HingeJoint,
|
|
43273
43273
|
ox as HorizontalLayoutGroup,
|
|
43274
43274
|
HL as HostData,
|
|
43275
|
-
|
|
43275
|
+
Dh as Image,
|
|
43276
43276
|
eu as ImageReference,
|
|
43277
43277
|
ZO as ImageReferenceSerializer,
|
|
43278
43278
|
mx as InheritVelocityModule,
|
|
@@ -43281,7 +43281,7 @@ export {
|
|
|
43281
43281
|
We as InputEvents,
|
|
43282
43282
|
zx as InputField,
|
|
43283
43283
|
pu as InstanceHandle,
|
|
43284
|
-
|
|
43284
|
+
Jc as InstancingHandler,
|
|
43285
43285
|
On as InstancingUtil,
|
|
43286
43286
|
cO as InstantiateEvent,
|
|
43287
43287
|
zt as InstantiateIdProvider,
|
|
@@ -43292,7 +43292,7 @@ export {
|
|
|
43292
43292
|
jL as KeyEventArgs,
|
|
43293
43293
|
Ii as Keyframe,
|
|
43294
43294
|
Pf as LODGroup,
|
|
43295
|
-
|
|
43295
|
+
Oh as LODModel,
|
|
43296
43296
|
UL as LeftRoomResponse,
|
|
43297
43297
|
Wi as Light,
|
|
43298
43298
|
mk as LightData,
|
|
@@ -43311,7 +43311,7 @@ export {
|
|
|
43311
43311
|
ff as MeshRenderer,
|
|
43312
43312
|
K as MinMaxCurve,
|
|
43313
43313
|
Il as MinMaxGradient,
|
|
43314
|
-
|
|
43314
|
+
Nh as NEKeyboardEvent,
|
|
43315
43315
|
yo as NEPointerEvent,
|
|
43316
43316
|
eS as NeedleButtonElement,
|
|
43317
43317
|
Mb as NeedleEngineModelLoader,
|
|
@@ -43334,12 +43334,12 @@ export {
|
|
|
43334
43334
|
El as OffsetConstraint,
|
|
43335
43335
|
tp as OneEuroFilter,
|
|
43336
43336
|
X0 as OneEuroFilterXYZ,
|
|
43337
|
-
|
|
43337
|
+
Fh as OpenURL,
|
|
43338
43338
|
xe as OrbitControls,
|
|
43339
|
-
|
|
43339
|
+
xh as Outline,
|
|
43340
43340
|
LP as OwnershipEvent,
|
|
43341
43341
|
yv as OwnershipModel,
|
|
43342
|
-
|
|
43342
|
+
bd as PUBLIC_KEY,
|
|
43343
43343
|
Ml as Padding,
|
|
43344
43344
|
ng as ParticleBurst,
|
|
43345
43345
|
gx as ParticleSubEmitter,
|
|
@@ -43347,7 +43347,7 @@ export {
|
|
|
43347
43347
|
la as ParticleSystemBaseBehaviour,
|
|
43348
43348
|
Ln as ParticleSystemRenderer,
|
|
43349
43349
|
tg as ParticleSystemShapeType,
|
|
43350
|
-
|
|
43350
|
+
Rc as PeerHandle,
|
|
43351
43351
|
TP as PeerNetworking,
|
|
43352
43352
|
Gd as Physics,
|
|
43353
43353
|
Zw as PhysicsExtension,
|
|
@@ -43355,8 +43355,8 @@ export {
|
|
|
43355
43355
|
If as PixelationEffect,
|
|
43356
43356
|
mu as PlayAnimationOnClick,
|
|
43357
43357
|
qr as PlayAudioOnClick,
|
|
43358
|
-
|
|
43359
|
-
|
|
43358
|
+
rh as PlayableDirector,
|
|
43359
|
+
sh as PlayerColor,
|
|
43360
43360
|
Qn as PlayerState,
|
|
43361
43361
|
PT as PlayerStateEvent,
|
|
43362
43362
|
Yw as PlayerSync,
|
|
@@ -43367,7 +43367,7 @@ export {
|
|
|
43367
43367
|
ft as PostProcessingEffect,
|
|
43368
43368
|
gt as PostProcessingEffectOrder,
|
|
43369
43369
|
xx as PostProcessingHandler,
|
|
43370
|
-
|
|
43370
|
+
vh as PreliminaryAction,
|
|
43371
43371
|
gf as PreliminaryTrigger,
|
|
43372
43372
|
wr as PreviewHelper,
|
|
43373
43373
|
rl as PrimitiveType,
|
|
@@ -43418,13 +43418,13 @@ export {
|
|
|
43418
43418
|
Ny as SpatialTrigger,
|
|
43419
43419
|
Gs as SpatialTriggerReceiver,
|
|
43420
43420
|
$y as SpectatorCamera,
|
|
43421
|
-
|
|
43421
|
+
gh as SphereCollider,
|
|
43422
43422
|
bv as SphereIntersection,
|
|
43423
43423
|
IM as SphereOverlapResult,
|
|
43424
43424
|
Zo as Sprite,
|
|
43425
|
-
|
|
43425
|
+
Ec as SpriteData,
|
|
43426
43426
|
Ni as SpriteRenderer,
|
|
43427
|
-
|
|
43427
|
+
th as SpriteSheet,
|
|
43428
43428
|
t2 as StateMachineBehaviour,
|
|
43429
43429
|
rw as StreamEndedEvent,
|
|
43430
43430
|
LM as StreamReceivedEvent,
|
|
@@ -43473,7 +43473,7 @@ export {
|
|
|
43473
43473
|
jl as Vignette,
|
|
43474
43474
|
yf as VisibilityAction,
|
|
43475
43475
|
sa as Voip,
|
|
43476
|
-
|
|
43476
|
+
Th as Volume,
|
|
43477
43477
|
N as VolumeParameter,
|
|
43478
43478
|
Ly as VolumeProfile,
|
|
43479
43479
|
qL as WaitForFrames,
|
|
@@ -43519,7 +43519,7 @@ export {
|
|
|
43519
43519
|
K1 as copyTexture,
|
|
43520
43520
|
$k as createMotion,
|
|
43521
43521
|
Ci as debugNet,
|
|
43522
|
-
|
|
43522
|
+
Vh as debugOwner,
|
|
43523
43523
|
ZR as decompressGpuTexture,
|
|
43524
43524
|
Wu as deepClone,
|
|
43525
43525
|
os as delay,
|
|
@@ -43551,7 +43551,7 @@ export {
|
|
|
43551
43551
|
Ju as getComponentInChildren,
|
|
43552
43552
|
Jd as getComponentInParent,
|
|
43553
43553
|
Zu as getComponents,
|
|
43554
|
-
|
|
43554
|
+
dh as getComponentsInChildren,
|
|
43555
43555
|
$g as getComponentsInParent,
|
|
43556
43556
|
FR as getFormattedDate,
|
|
43557
43557
|
Bt as getIconElement,
|
|
@@ -43586,7 +43586,7 @@ export {
|
|
|
43586
43586
|
bP as invokeXRSessionEnd,
|
|
43587
43587
|
_P as invokeXRSessionStart,
|
|
43588
43588
|
VO as isActiveInHierarchy,
|
|
43589
|
-
|
|
43589
|
+
uh as isActiveSelf,
|
|
43590
43590
|
yL as isAndroidDevice,
|
|
43591
43591
|
Y1 as isAnimationAction,
|
|
43592
43592
|
TM as isComponent,
|
|
@@ -43691,7 +43691,7 @@ export {
|
|
|
43691
43691
|
Y0 as setWorldQuaternionXYZW,
|
|
43692
43692
|
Q1 as setWorldRotation,
|
|
43693
43693
|
Gu as setWorldRotationXYZ,
|
|
43694
|
-
|
|
43694
|
+
Hc as setWorldScale,
|
|
43695
43695
|
qu as showBalloonError,
|
|
43696
43696
|
Ve as showBalloonMessage,
|
|
43697
43697
|
we as showBalloonWarning,
|
|
@@ -43704,7 +43704,7 @@ export {
|
|
|
43704
43704
|
kP as tryCastBinary,
|
|
43705
43705
|
aR as tryDetermineMimetypeFromBinary,
|
|
43706
43706
|
rR as tryDetermineMimetypeFromURL,
|
|
43707
|
-
|
|
43707
|
+
Wc as tryFindObject,
|
|
43708
43708
|
MP as tryGetGuid,
|
|
43709
43709
|
Dk as unregisterHotReloadType,
|
|
43710
43710
|
N0 as unwatchWrite,
|