@needle-tools/engine 4.5.5-next.f053174 → 4.5.6
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 +3740 -3740
- package/LICENSE.md +10 -10
- package/README.md +64 -64
- package/components.needle.json +1 -1
- package/dist/{needle-engine.bundle-DFfLpZpn.min.js → needle-engine.bundle-2nTaeeW3.min.js} +62 -62
- package/dist/{needle-engine.bundle-Dx2hV9Bu.umd.cjs → needle-engine.bundle-B3qVc_uH.umd.cjs} +54 -54
- package/dist/{needle-engine.bundle-DvRTYg0j.js → needle-engine.bundle-B9tUMvDR.js} +623 -623
- package/dist/{needle-engine.bundle-BxW8rOic.light.min.js → needle-engine.bundle-BWeBylyu.light.min.js} +62 -62
- package/dist/{needle-engine.bundle-5YrltOTW.light.umd.cjs → needle-engine.bundle-Bx32FU5Z.light.umd.cjs} +54 -54
- package/dist/{needle-engine.bundle-Bjtl-M4D.light.js → needle-engine.bundle-CAuuubKQ.light.js} +623 -623
- package/dist/needle-engine.d.ts +129 -130
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.light.d.ts +129 -130
- package/dist/needle-engine.light.js +2 -2
- package/dist/needle-engine.light.min.js +1 -1
- package/dist/needle-engine.light.umd.cjs +1 -1
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- 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 +166 -166
- package/lib/engine/engine_addressables.js +608 -608
- 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 +344 -344
- 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 +472 -472
- package/lib/engine/engine_context.js +1664 -1664
- 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 +616 -616
- 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 +91 -91
- 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 +31 -31
- package/lib/engine/engine_lods.js +146 -146
- 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 +201 -201
- package/lib/engine/engine_three_utils.js +731 -731
- 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 +2 -2
- package/lib/engine/engine_tonemapping.js +194 -194
- 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 +993 -993
- 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 +513 -513
- 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 +113 -113
- 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 +831 -831
- 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 +634 -634
- 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 +121 -121
- 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 +27 -27
- package/lib/engine-components/ReflectionProbe.js +201 -201
- package/lib/engine-components/Renderer.d.ts +153 -153
- package/lib/engine-components/Renderer.js +830 -830
- package/lib/engine-components/RendererInstancing.d.ts +140 -140
- package/lib/engine-components/RendererInstancing.js +744 -744
- 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 +82 -82
- package/lib/engine-components/Skybox.js +448 -448
- 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 +160 -160
- package/lib/engine-components/export/usdz/ThreeUSDZExporter.js +1782 -1782
- 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/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 +50 -50
- 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 +15 -15
- package/lib/engine-components/postprocessing/Effects/ColorAdjustments.js +92 -92
- 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 +175 -175
- package/lib/engine-components/postprocessing/Effects/Sharpening.d.ts +17 -17
- package/lib/engine-components/postprocessing/Effects/Sharpening.js +123 -123
- 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 +26 -26
- package/lib/engine-components/postprocessing/Effects/Tonemapping.js +138 -138
- 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 +72 -72
- package/lib/engine-components/postprocessing/PostProcessingEffect.js +149 -149
- package/lib/engine-components/postprocessing/PostProcessingHandler.d.ts +25 -25
- package/lib/engine-components/postprocessing/PostProcessingHandler.js +350 -350
- package/lib/engine-components/postprocessing/Volume.d.ts +89 -89
- package/lib/engine-components/postprocessing/Volume.js +367 -367
- 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 +5 -5
- package/lib/engine-components/postprocessing/index.js +5 -5
- package/lib/engine-components/postprocessing/utils.d.ts +11 -11
- package/lib/engine-components/postprocessing/utils.js +37 -37
- 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 -442
- 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 +120 -120
- package/plugins/types/vite.d.ts +13 -13
- package/plugins/types/webmanifest.d.ts +32 -32
- package/plugins/vite/alias.js +174 -174
- package/plugins/vite/asap.js +245 -245
- 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 +231 -231
- 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 +143 -143
- package/plugins/vite/license.js +56 -56
- package/plugins/vite/local-files.js +231 -231
- 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 +31 -31
- 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 +680 -680
- package/src/engine/engine_animation.ts +145 -145
- package/src/engine/engine_application.ts +113 -113
- package/src/engine/engine_assetdatabase.ts +387 -387
- 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 +1811 -1811
- 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 +709 -709
- 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 +117 -117
- 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 +168 -168
- 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 +849 -849
- package/src/engine/engine_time.ts +94 -94
- package/src/engine/engine_time_utils.ts +237 -237
- package/src/engine/engine_tonemapping.ts +210 -210
- 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 +1093 -1093
- package/src/engine/engine_utils_format.ts +273 -273
- package/src/engine/engine_utils_screenshot.ts +698 -698
- 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 +871 -871
- 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 +136 -136
- 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 +216 -216
- package/src/engine-components/Renderer.ts +900 -900
- 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 +455 -455
- 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 +2413 -2413
- 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/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 +55 -55
- 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 +95 -95
- 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 +191 -191
- package/src/engine-components/postprocessing/Effects/Sharpening.ts +138 -138
- package/src/engine-components/postprocessing/Effects/TiltShiftEffect.ts +61 -61
- package/src/engine-components/postprocessing/Effects/Tonemapping.ts +155 -155
- package/src/engine-components/postprocessing/Effects/Vignette.ts +59 -59
- package/src/engine-components/postprocessing/PostProcessingEffect.ts +172 -172
- package/src/engine-components/postprocessing/PostProcessingHandler.ts +398 -398
- package/src/engine-components/postprocessing/Volume.ts +410 -410
- 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 +52 -52
- 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
|
@@ -5,7 +5,7 @@ var zy = (o) => {
|
|
|
5
5
|
var Hx = (o, t, e) => t in o ? Vx(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
6
6
|
var r = (o, t, e) => Hx(o, typeof t != "symbol" ? t + "" : t, e), Tf = (o, t, e) => t.has(o) || zy("Cannot " + e);
|
|
7
7
|
var fe = (o, t, e) => (Tf(o, t, "read from private field"), e ? e.call(o) : t.get(o)), dn = (o, t, e) => t.has(o) ? zy("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), un = (o, t, e, i) => (Tf(o, t, "write to private field"), i ? i.call(o, e) : t.set(o, e), e), Dl = (o, t, e) => (Tf(o, t, "access private method"), e);
|
|
8
|
-
import { Vector2 as re, Vector3 as v, Vector4 as ye, Quaternion as W, PlaneGeometry as is, PerspectiveCamera as ve, Scene as Li, ShaderMaterial as Cn, Uniform$1 as To, Mesh as G, WebGLRenderer as Gr, Texture as ze, Box3 as Ai, ShadowMaterial as s0, Euler as Lt, Color as le, MeshStandardMaterial as pt, Box3Helper as Gx, GridHelper as Km, Object3D as I, Material as Pe, Matrix3 as o0, Matrix4 as se, Layers as Fo, Ray as zo, MathUtils as As, AxesHelper as Ii, MeshBasicMaterial as Me, DoubleSide as Di, BufferGeometry as Xn, Group as Eo, CylinderGeometry as r0, SphereGeometry as bu, BoxGeometry as Ga, SpriteMaterial as qx, Sprite as Xx, Shape as Qx, ExtrudeGeometry as Yx, Fog as a0, DirectionalLight as Np, PointLight as Zm, EdgesGeometry as Kx, LineSegments as l0, LineBasicMaterial as c0, Line as
|
|
8
|
+
import { Vector2 as re, Vector3 as v, Vector4 as ye, Quaternion as W, PlaneGeometry as is, PerspectiveCamera as ve, Scene as Li, ShaderMaterial as Cn, Uniform$1 as To, Mesh as G, WebGLRenderer as Gr, Texture as ze, Box3 as Ai, ShadowMaterial as s0, Euler as Lt, Color as le, MeshStandardMaterial as pt, Box3Helper as Gx, GridHelper as Km, Object3D as I, Material as Pe, Matrix3 as o0, Matrix4 as se, Layers as Fo, Ray as zo, MathUtils as As, AxesHelper as Ii, MeshBasicMaterial as Me, DoubleSide as Di, BufferGeometry as Xn, Group as Eo, CylinderGeometry as r0, SphereGeometry as bu, BoxGeometry as Ga, SpriteMaterial as qx, Sprite as Xx, Shape as Qx, ExtrudeGeometry as Yx, Fog as a0, DirectionalLight as Np, PointLight as Zm, EdgesGeometry as Kx, LineSegments as l0, LineBasicMaterial as c0, Line as Ec, BufferAttribute as mt, Raycaster as vu, Sphere as wu, ArrayCamera as Zx, Plane as Ur, SkinnedMesh as Is, InterleavedBufferAttribute as h0, Skeleton as Jx, Bone as eS, Source as tS, WebGLCubeRenderTarget as iS, CubeCamera as nS, AnimationClip as Ao, FileLoader as Jm, TextureLoader as Ba, PropertyBinding as qa, LinearSRGBColorSpace as zs, ShaderChunk as Jt, UniformsLib as sS, DataTexture as eg, RGBAFormat as xu, EquirectangularReflectionMapping as Ls, SRGBColorSpace as Us, Clock as oS, NoToneMapping as Xa, PCFSoftShadowMap$1 as rS, BasicNodeLibrary as aS, WebGLRenderTarget as Ns, DepthTexture as lS, NearestFilter as Od, LoopRepeat as cS, LoopOnce as $p, AnimationMixer as tg, CompressedTexture as hS, FrontSide as Uo, Camera as dS, Frustum as Uy, OrthographicCamera as ig, AudioListener as uS, PositionalAudio as fS, AudioLoader as Wp, EventDispatcher as ng, BackSide as Su, MeshDepthMaterial as pS, CustomBlending as mS, MaxEquation as gS, AmbientLight as yS, HemisphereLight as _S, AlwaysStencilFunc as bS, GreaterEqualStencilFunc as vS, NotEqualStencilFunc as wS, GreaterStencilFunc as xS, LessEqualStencilFunc as SS, EqualStencilFunc as CS, LessStencilFunc as PS, NeverStencilFunc as Ny, InvertStencilOp as OS, DecrementWrapStencilOp as kS, IncrementWrapStencilOp as MS, DecrementStencilOp as RS, IncrementStencilOp as TS, ReplaceStencilOp as ES, ZeroStencilOp as AS, KeepStencilOp as IS, RawShaderMaterial as d0, GLSL3 as LS, AlwaysDepth as DS, GreaterEqualDepth as jS, GreaterDepth as BS, LessEqualDepth as FS, LessDepth as zS, NotEqualDepth as US, EqualDepth as NS, BatchedMesh as $y, MeshPhysicalMaterial as Vp, LinearFilter as Wy, UnsignedByteType as $S, RingGeometry as WS, Line3 as VS, AdditiveBlending as u0, BoxHelper as HS, SpotLight as GS, DirectionalLightHelper as qS, CameraHelper as XS, LOD as QS, Triangle as YS, NormalBlending as KS, ReinhardToneMapping as sg, NeutralToneMapping as Ac, AgXToneMapping as Cu, ACESFilmicToneMapping as og, LinearToneMapping as Pu, HalfFloatType as ZS, VideoTexture as JS, CubeTexture as e1, CompressedCubeTexture as t1, EquirectangularRefractionMapping as i1, VectorKeyframeTrack as n1, QuaternionKeyframeTrack as s1, Audio as o1, ShaderLib as kd, UniformsUtils as f0, MirroredRepeatWrapping as Vy, MeshNormalMaterial as r1, AudioContext as a1, PMREMGenerator$1 as l1 } from "./three-1JG7vpNC.js";
|
|
9
9
|
import { createLoaders as rg, getRaycastMesh as p0, LODsManager as la, NEEDLE_progressive as Ke, addDracoAndKTX2Loaders as c1, configureLoader as h1, setKTX2TranscoderLocation as d1, setDracoDecoderLocation as u1 } from "./gltf-progressive-D8GP6sjZ.js";
|
|
10
10
|
import { GroundedSkybox as Qa, Font as f1, TextGeometry as p1, FontLoader as m1, GLTFLoader as $s, TransformControlsGizmo as m0, EXRLoader as Md, RGBELoader as Hp, Stats as g1, nodeFrame as y1, OrbitControls as g0, PositionalAudioHelper as _1, HorizontalBlurShader as b1, VerticalBlurShader as v1, GLTFExporter as y0, strToU8 as _0, zipSync as w1, XRControllerModelFactory as x1, XRHandMeshModel as S1, Line2 as C1, LineGeometry as P1, LineMaterial as O1, KTX2Loader as k1, TransformControls as M1, InteractiveGroup as R1, HTMLMesh as T1, VertexNormalsHelper as E1, OBJLoader as ag, FBXLoader as b0, mergeVertices as A1 } from "./three-examples-CyWe9wwo.js";
|
|
11
11
|
import { fetchProfile as I1, MotionController as L1, $70d766613f57b014$export$2e2bcd8739ae039 as Hy, ByteBuffer as D1, v5 as Gy, md5 as qy, SIZE_PREFIX_LENGTH as v0, Builder as lg, createNoise4D as j1, Matrix4 as Ef, BatchedParticleRenderer as B1, ParticleSystem as F1, RenderMode as _s, ConstantColor as z1, Vector4 as U1, ConstantValue as N1, TrailParticle as Xy, WorkerBase as $1, MeshBVH as W1 } from "./vendor-BbM-oI6p.js";
|
|
@@ -178,7 +178,7 @@ function nC() {
|
|
|
178
178
|
function sC(o) {
|
|
179
179
|
return o = o.replace(/[^a-z0-9áéíóúñü \.,_-]/gim, ""), o.trim();
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Ic(o, t, e = !0, i = !1) {
|
|
182
182
|
var n;
|
|
183
183
|
if (t == null) return null;
|
|
184
184
|
if (t.userData && t.userData.guid === o) return t;
|
|
@@ -190,12 +190,12 @@ function Lc(o, t, e = !0, i = !1) {
|
|
|
190
190
|
if (e) {
|
|
191
191
|
if (t.scenes)
|
|
192
192
|
for (const s in t.scenes) {
|
|
193
|
-
const a = t.scenes[s], l =
|
|
193
|
+
const a = t.scenes[s], l = Ic(o, a, e, i);
|
|
194
194
|
if (l) return l;
|
|
195
195
|
}
|
|
196
196
|
if (t.children)
|
|
197
197
|
for (const s in t.children) {
|
|
198
|
-
const a = t.children[s], l =
|
|
198
|
+
const a = t.children[s], l = Ic(o, a, e, i);
|
|
199
199
|
if (l) return l;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -229,26 +229,26 @@ function Mu(o, t) {
|
|
|
229
229
|
t.pre_update_callbacks.push(s);
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const Th = S("debugresolveurl"), oC = "rel:";
|
|
233
233
|
function QI(o, t) {
|
|
234
234
|
return qr(o, t);
|
|
235
235
|
}
|
|
236
236
|
function qr(o, t) {
|
|
237
237
|
if (t === void 0)
|
|
238
|
-
return
|
|
238
|
+
return Th && console.warn("getPath: uri is undefined, returning uri", t), t;
|
|
239
239
|
if (t.startsWith("./"))
|
|
240
240
|
return t;
|
|
241
241
|
if (t.startsWith("http"))
|
|
242
|
-
return
|
|
242
|
+
return Th && console.warn("getPath: uri is absolute, returning uri", t), t;
|
|
243
243
|
if (o === void 0)
|
|
244
|
-
return
|
|
244
|
+
return Th && console.warn("getPath: source is undefined, returning uri", t), t;
|
|
245
245
|
t.startsWith(oC) && (t = t.substring(4));
|
|
246
246
|
const e = o.lastIndexOf("/");
|
|
247
247
|
if (e >= 0) {
|
|
248
248
|
const i = o.substring(0, e + 1);
|
|
249
249
|
for (; i.endsWith("/") && t.startsWith("/"); ) t = t.substring(1);
|
|
250
250
|
const n = i + t;
|
|
251
|
-
return
|
|
251
|
+
return Th && console.log("source:", o, `changed uri
|
|
252
252
|
from`, t, `
|
|
253
253
|
to `, n, `
|
|
254
254
|
basePath: ` + i), n;
|
|
@@ -601,8 +601,8 @@ async function dC(o) {
|
|
|
601
601
|
return b.src = y, b.style.width = "100%", b.style.height = "auto", b;
|
|
602
602
|
}
|
|
603
603
|
const k0 = S("debugdebug");
|
|
604
|
-
let
|
|
605
|
-
(S("noerrors") || S("nooverlaymessages")) && (
|
|
604
|
+
let Lc = !1;
|
|
605
|
+
(S("noerrors") || S("nooverlaymessages")) && (Lc = !0);
|
|
606
606
|
const Lf = "needle_engine_global_error_container";
|
|
607
607
|
var Ji = /* @__PURE__ */ ((o) => (o[o.Log = 0] = "Log", o[o.Warn = 1] = "Warn", o[o.Error = 2] = "Error", o))(Ji || {});
|
|
608
608
|
function hg() {
|
|
@@ -629,13 +629,13 @@ const M0 = console.error, R0 = function(...o) {
|
|
|
629
629
|
M0.apply(console, o), gC(o), Un(2, o), Xp(...o);
|
|
630
630
|
};
|
|
631
631
|
function pC(o) {
|
|
632
|
-
|
|
632
|
+
Lc = !o, o ? console.error = R0 : console.error = M0;
|
|
633
633
|
}
|
|
634
634
|
function aL(o) {
|
|
635
635
|
return pC(o);
|
|
636
636
|
}
|
|
637
637
|
function mC() {
|
|
638
|
-
|
|
638
|
+
Lc || (k0 && console.warn("Patch console", window.location.hostname), console.error = R0, window.addEventListener("error", (o) => {
|
|
639
639
|
if (!o) return;
|
|
640
640
|
const t = o.error;
|
|
641
641
|
if (t === void 0) {
|
|
@@ -644,7 +644,7 @@ function mC() {
|
|
|
644
644
|
}
|
|
645
645
|
Un(2, t, o.filename, o.lineno), Xp(o);
|
|
646
646
|
}, !0), window.addEventListener("unhandledrejection", (o) => {
|
|
647
|
-
|
|
647
|
+
Lc || o && (o.reason ? Un(2, o.reason.message, o.reason.stack) : Un(2, "unhandled rejection"), Xp(o));
|
|
648
648
|
}));
|
|
649
649
|
}
|
|
650
650
|
let T0 = 0;
|
|
@@ -659,7 +659,7 @@ function gC(o) {
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
function Un(o, t, e, i) {
|
|
662
|
-
if (
|
|
662
|
+
if (Lc) return;
|
|
663
663
|
const n = pe.Current, s = (n == null ? void 0 : n.domElement) ?? document.querySelector("needle-engine");
|
|
664
664
|
if (s) {
|
|
665
665
|
if (Array.isArray(t)) {
|
|
@@ -673,7 +673,7 @@ function Un(o, t, e, i) {
|
|
|
673
673
|
!t || t.length <= 0 || yC(o, s, t);
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
const
|
|
676
|
+
const hc = /* @__PURE__ */ new Map();
|
|
677
677
|
function yC(o, t, e) {
|
|
678
678
|
if (e == null) return;
|
|
679
679
|
const i = bC(t);
|
|
@@ -683,20 +683,20 @@ function yC(o, t, e) {
|
|
|
683
683
|
}
|
|
684
684
|
e.length > 400 && (e = e.substring(0, 400) + "...");
|
|
685
685
|
const n = e;
|
|
686
|
-
if (
|
|
686
|
+
if (hc.has(n))
|
|
687
687
|
return;
|
|
688
688
|
const s = vC(o, e);
|
|
689
689
|
i.prepend(s);
|
|
690
690
|
const a = () => {
|
|
691
|
-
|
|
691
|
+
hc.delete(n), i_(s);
|
|
692
692
|
};
|
|
693
|
-
|
|
693
|
+
hc.set(n, a), setTimeout(a, 1e4);
|
|
694
694
|
}
|
|
695
695
|
function lL() {
|
|
696
696
|
k0 && console.log("Clearing messages");
|
|
697
|
-
for (const o of
|
|
697
|
+
for (const o of hc.values())
|
|
698
698
|
o == null || o.call(o);
|
|
699
|
-
|
|
699
|
+
hc.clear();
|
|
700
700
|
}
|
|
701
701
|
const _C = `
|
|
702
702
|
|
|
@@ -967,12 +967,12 @@ class A0 {
|
|
|
967
967
|
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);
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
const
|
|
970
|
+
const ld = "needle:cameraController";
|
|
971
971
|
function SC(o) {
|
|
972
|
-
return o[
|
|
972
|
+
return o[ld];
|
|
973
973
|
}
|
|
974
974
|
function s_(o, t, e) {
|
|
975
|
-
e ? o[
|
|
975
|
+
e ? o[ld] = t : o[ld] === t && (o[ld] = null);
|
|
976
976
|
}
|
|
977
977
|
const Qp = "needle:autofit";
|
|
978
978
|
function CC(o) {
|
|
@@ -1068,7 +1068,7 @@ const RC = new tn(() => new v(), 100), TC = new v();
|
|
|
1068
1068
|
function Ye(o, t = null) {
|
|
1069
1069
|
return t || (t = RC.get()), o ? o.parent ? (o.getWorldScale(t), t) : t.copy(o.scale) : t.set(0, 0, 0);
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function Dc(o, t) {
|
|
1072
1072
|
if (!o) return;
|
|
1073
1073
|
if (!o.parent) {
|
|
1074
1074
|
o.scale.copy(t);
|
|
@@ -1278,7 +1278,7 @@ function NC(o, t, e) {
|
|
|
1278
1278
|
const c = new v();
|
|
1279
1279
|
c.set(a.x / n.x, a.y / n.y, a.z / n.z);
|
|
1280
1280
|
const h = Math.min(c.x, c.y, c.z), d = (e == null ? void 0 : e.scale) !== !1;
|
|
1281
|
-
if (d &&
|
|
1281
|
+
if (d && Dc(o, Ye(o).multiplyScalar(h)), (e == null ? void 0 : e.position) !== !1) {
|
|
1282
1282
|
const u = new v();
|
|
1283
1283
|
i.getCenter(u), u.y = i.min.y;
|
|
1284
1284
|
const p = new v();
|
|
@@ -1316,21 +1316,21 @@ function F0(o, t, e, i) {
|
|
|
1316
1316
|
const s = t;
|
|
1317
1317
|
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;
|
|
1318
1318
|
}
|
|
1319
|
-
let
|
|
1319
|
+
let Eh = !1;
|
|
1320
1320
|
uC((...o) => {
|
|
1321
1321
|
var t;
|
|
1322
1322
|
U() && ((t = pe.Current) != null && t.isInXR) && (Fa(!0), z0("error", ...o));
|
|
1323
1323
|
});
|
|
1324
1324
|
function Fa(o) {
|
|
1325
1325
|
if (o) {
|
|
1326
|
-
if (
|
|
1327
|
-
|
|
1326
|
+
if (Eh) return;
|
|
1327
|
+
Eh = !0, VC();
|
|
1328
1328
|
} else {
|
|
1329
|
-
if (!
|
|
1330
|
-
|
|
1329
|
+
if (!Eh) return;
|
|
1330
|
+
Eh = !1, HC();
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
const
|
|
1333
|
+
const dc = {
|
|
1334
1334
|
log: void 0,
|
|
1335
1335
|
warn: void 0,
|
|
1336
1336
|
error: void 0
|
|
@@ -1466,12 +1466,12 @@ class WC {
|
|
|
1466
1466
|
let Yt = null;
|
|
1467
1467
|
function VC() {
|
|
1468
1468
|
Yt || (Yt = new WC()), Yt.onEnable();
|
|
1469
|
-
for (const o in
|
|
1470
|
-
|
|
1469
|
+
for (const o in dc) {
|
|
1470
|
+
dc[o] = console[o];
|
|
1471
1471
|
let t = !1;
|
|
1472
1472
|
console[o] = function() {
|
|
1473
1473
|
var e;
|
|
1474
|
-
if ((e =
|
|
1474
|
+
if ((e = dc[o]) == null || e.apply(console, arguments), !t)
|
|
1475
1475
|
try {
|
|
1476
1476
|
t = !0, z0(o, ...arguments);
|
|
1477
1477
|
} finally {
|
|
@@ -1482,8 +1482,8 @@ function VC() {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
function HC() {
|
|
1484
1484
|
Yt == null || Yt.onDisable();
|
|
1485
|
-
for (const o in
|
|
1486
|
-
console[o] =
|
|
1485
|
+
for (const o in dc)
|
|
1486
|
+
console[o] = dc[o];
|
|
1487
1487
|
}
|
|
1488
1488
|
const jl = /* @__PURE__ */ new Map();
|
|
1489
1489
|
function z0(o, ...t) {
|
|
@@ -1778,14 +1778,14 @@ $o('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
|
|
|
1778
1778
|
$o('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
|
|
1779
1779
|
$o('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
|
|
1780
1780
|
$o('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1781
|
-
$o('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.5.
|
|
1781
|
+
$o('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.5.6";');
|
|
1782
1782
|
$o('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1783
|
-
$o('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Jun 05 2025
|
|
1784
|
-
$o('globalThis["__NEEDLE_PUBLIC_KEY__"] = "
|
|
1785
|
-
const Qn = "4.5.
|
|
1783
|
+
$o('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Jun 05 2025 16:35:17 GMT+0200 (Central European Summer Time)";');
|
|
1784
|
+
$o('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9";');
|
|
1785
|
+
const Qn = "4.5.6", fg = "undefined", H0 = "Thu Jun 05 2025 16:35:17 GMT+0200 (Central European Summer Time)";
|
|
1786
1786
|
V0 && console.log(`Engine version: ${Qn} (generator: ${fg})
|
|
1787
1787
|
Project built at ${H0}`);
|
|
1788
|
-
const
|
|
1788
|
+
const cd = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9", Lo = "needle_isActiveInHierarchy", _a = "builtin_components", hd = "needle_editor_guid";
|
|
1789
1789
|
function $o(o) {
|
|
1790
1790
|
try {
|
|
1791
1791
|
(0, eval)(o);
|
|
@@ -1999,7 +1999,7 @@ class co extends PointerEvent {
|
|
|
1999
1999
|
this._propagationStopped = !0, super.stopPropagation(), (e = this.source) == null || e.stopPropagation(), lt && console.warn("Stop propagation...", this.pointerId, this.pointerType);
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
2002
|
-
class
|
|
2002
|
+
class Ah extends KeyboardEvent {
|
|
2003
2003
|
constructor(e, i, n) {
|
|
2004
2004
|
super(e, n);
|
|
2005
2005
|
r(this, "source");
|
|
@@ -2088,7 +2088,7 @@ class rP {
|
|
|
2088
2088
|
const e = this.keysPressed[t.code];
|
|
2089
2089
|
if (e && e.pressed) return;
|
|
2090
2090
|
this.keysPressed[t.code] = { pressed: !0, frame: this.context.time.frameCount + 1, startFrame: this.context.time.frameCount + 1, key: t.key, code: t.code };
|
|
2091
|
-
const i = new
|
|
2091
|
+
const i = new Ah("keydown", t, t);
|
|
2092
2092
|
this.onDispatchEvent(i);
|
|
2093
2093
|
});
|
|
2094
2094
|
r(this, "onKeyPressed", (t) => {
|
|
@@ -2097,7 +2097,7 @@ class rP {
|
|
|
2097
2097
|
const e = this.keysPressed[t.code];
|
|
2098
2098
|
if (!e) return;
|
|
2099
2099
|
e.pressed = !0, e.frame = this.context.time.frameCount + 1;
|
|
2100
|
-
const i = new
|
|
2100
|
+
const i = new Ah("keypress", t, t);
|
|
2101
2101
|
this.onDispatchEvent(i);
|
|
2102
2102
|
});
|
|
2103
2103
|
r(this, "onKeyUp", (t) => {
|
|
@@ -2106,7 +2106,7 @@ class rP {
|
|
|
2106
2106
|
const e = this.keysPressed[t.code];
|
|
2107
2107
|
if (!e) return;
|
|
2108
2108
|
e.pressed = !1, e.frame = this.context.time.frameCount + 1;
|
|
2109
|
-
const i = new
|
|
2109
|
+
const i = new Ah("keyup", t, t);
|
|
2110
2110
|
this.onDispatchEvent(i);
|
|
2111
2111
|
});
|
|
2112
2112
|
r(this, "onWheelWindow", (t) => {
|
|
@@ -2200,7 +2200,7 @@ class rP {
|
|
|
2200
2200
|
dispatchEvent(t) {
|
|
2201
2201
|
var i, n, s, a;
|
|
2202
2202
|
let e = !1;
|
|
2203
|
-
if (t instanceof
|
|
2203
|
+
if (t instanceof Ah) {
|
|
2204
2204
|
const l = this._eventListeners[t.type];
|
|
2205
2205
|
if (l)
|
|
2206
2206
|
for (const c of l)
|
|
@@ -2689,7 +2689,7 @@ class lP {
|
|
|
2689
2689
|
return this.gameObject.visible;
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
|
-
const ds = S("debugwebxr"),
|
|
2692
|
+
const ds = S("debugwebxr"), Ih = S("debugcustomgesture"), cP = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", hP = "generic-trigger", dP = new W().setFromEuler(new Lt(As.degToRad(0), As.degToRad(-90), As.degToRad(-90))), uP = new v(0.04, -0.04, 0);
|
|
2693
2693
|
class K0 {
|
|
2694
2694
|
constructor(t, e, i) {
|
|
2695
2695
|
/** the Needle XR Session */
|
|
@@ -2787,10 +2787,10 @@ class K0 {
|
|
|
2787
2787
|
if (!this.emitPointerDownEvent || this.inputSource !== t.inputSource) return;
|
|
2788
2788
|
this.onUpdateFrame(t.frame), this._hasSelectEvent = !0;
|
|
2789
2789
|
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;
|
|
2790
|
-
i !== void 0 && (this._selectButtonIndex = i), !
|
|
2790
|
+
i !== void 0 && (this._selectButtonIndex = i), !Ih && (ds && 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));
|
|
2791
2791
|
});
|
|
2792
2792
|
r(this, "onSelectEnd", (t) => {
|
|
2793
|
-
this.emitPointerUpEvent && (
|
|
2793
|
+
this.emitPointerUpEvent && (Ih || this.inputSource === t.inputSource && this.emitPointerEvent(We.PointerUp, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
|
|
2794
2794
|
});
|
|
2795
2795
|
r(this, "onSequeezeStart", (t) => {
|
|
2796
2796
|
var e, i, n;
|
|
@@ -3228,7 +3228,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
|
|
|
3228
3228
|
const c = n !== this._selectButtonIndex && n !== this._squeezeButtonIndex;
|
|
3229
3229
|
if (l != null && c) {
|
|
3230
3230
|
let h = (e = this._layout) == null ? void 0 : e.gamepad[n];
|
|
3231
|
-
this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (ds ||
|
|
3231
|
+
this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (ds || Ih) && console.log("Emitting pointer event", l, n, h, s.value, this.gamepad, this._layout), this.emitPointerEvent(l, n, h ?? "none", !1, null, s.value);
|
|
3232
3232
|
}
|
|
3233
3233
|
}
|
|
3234
3234
|
if (this._isMetaQuestTouchController) {
|
|
@@ -3251,7 +3251,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
|
|
|
3251
3251
|
const u = this.states.pinch || new m_(), p = (0.02 + 0.01) * 1.5;
|
|
3252
3252
|
u.value = 1 - (l - 0.02) / p;
|
|
3253
3253
|
const m = l < 0.02 - 0.01, g = l > 0.02 + 0.01;
|
|
3254
|
-
m && !u.pressed ? (
|
|
3254
|
+
m && !u.pressed ? (Ih && 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;
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
3257
3257
|
}
|
|
@@ -3447,17 +3447,17 @@ function Z0(o, t) {
|
|
|
3447
3447
|
n.length = 0, b_(o, s, e), s.length > 0 && (Pa.has(t) || Pa.set(t, new Array()), Pa.get(t).push(...s));
|
|
3448
3448
|
}
|
|
3449
3449
|
}
|
|
3450
|
-
const
|
|
3450
|
+
const Lh = new Array(), __ = {
|
|
3451
3451
|
context: null
|
|
3452
3452
|
};
|
|
3453
3453
|
function b_(o, t, e) {
|
|
3454
3454
|
var n, s;
|
|
3455
|
-
|
|
3455
|
+
Lh.length = 0;
|
|
3456
3456
|
for (let a = 0; a < t.length; a++)
|
|
3457
|
-
|
|
3457
|
+
Lh.push(t[a]);
|
|
3458
3458
|
let i = im.get(o);
|
|
3459
|
-
for (let a = 0; a <
|
|
3460
|
-
const l =
|
|
3459
|
+
for (let a = 0; a < Lh.length; a++) {
|
|
3460
|
+
const l = Lh[a];
|
|
3461
3461
|
let c = !0;
|
|
3462
3462
|
if (i && i.has(l) && (c = !1), c)
|
|
3463
3463
|
try {
|
|
@@ -3586,7 +3586,7 @@ class _P extends yP {
|
|
|
3586
3586
|
var jn = /* @__PURE__ */ ((o) => (o[o.OnConnection = 0] = "OnConnection", o[o.OnRoomJoin = 1] = "OnRoomJoin", o[o.Queued = 2] = "Queued", o[o.Immediate = 3] = "Immediate", o))(jn || {});
|
|
3587
3587
|
const w_ = "https://urls.needle.tools/default-networking-backend/index";
|
|
3588
3588
|
let li = "wss://networking.needle.tools/socket";
|
|
3589
|
-
const xi = !!S("debugnet"),
|
|
3589
|
+
const xi = !!S("debugnet"), Dh = !!(xi || S("debugowner")), jh = S("debugnetbin");
|
|
3590
3590
|
var bP = /* @__PURE__ */ ((o) => (o.ConnectionInfo = "connection-start-info", o))(bP || {}), ne = /* @__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))(ne || {});
|
|
3591
3591
|
class xL {
|
|
3592
3592
|
constructor() {
|
|
@@ -3647,7 +3647,7 @@ class tv {
|
|
|
3647
3647
|
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);
|
|
3648
3648
|
}
|
|
3649
3649
|
waitForHasOwnershipRequestResponse(t) {
|
|
3650
|
-
t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || (
|
|
3650
|
+
t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || (Dh && console.log("request ownership", this.guid), this.requestOwnership()));
|
|
3651
3651
|
}
|
|
3652
3652
|
requestOwnershipAsync() {
|
|
3653
3653
|
return new Promise((t, e) => {
|
|
@@ -3663,7 +3663,7 @@ class tv {
|
|
|
3663
3663
|
});
|
|
3664
3664
|
}
|
|
3665
3665
|
requestOwnership() {
|
|
3666
|
-
return
|
|
3666
|
+
return Dh && console.log("Request ownership", this.guid), this.connection.send("request-ownership", { guid: this.guid }), this;
|
|
3667
3667
|
}
|
|
3668
3668
|
freeOwnership() {
|
|
3669
3669
|
return this.connection.send("remove-ownership", { guid: this.guid }), this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this;
|
|
@@ -3672,10 +3672,10 @@ class tv {
|
|
|
3672
3672
|
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);
|
|
3673
3673
|
}
|
|
3674
3674
|
onGainedOwnership(t) {
|
|
3675
|
-
t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? (
|
|
3675
|
+
t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? (Dh && console.log("GAINED OWNERSHIP", this.guid), this._hasOwnership = !0) : this._hasOwnership = !1);
|
|
3676
3676
|
}
|
|
3677
3677
|
onLostOwnership(t) {
|
|
3678
|
-
t === this.guid && (
|
|
3678
|
+
t === this.guid && (Dh && console.log("LOST OWNERSHIP", this.guid), this._hasOwnership = !1, this._isOwned = !1);
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
3681
|
class wP {
|
|
@@ -3812,7 +3812,7 @@ class wP {
|
|
|
3812
3812
|
/** Send a binary message to the server (broadcasted to all connected users) */
|
|
3813
3813
|
sendBinary(t) {
|
|
3814
3814
|
var e;
|
|
3815
|
-
|
|
3815
|
+
jh && console.log("<< send binary", this.context.time.frame, t.length / 1024 + " KB"), (e = this._ws) == null || e.send(t);
|
|
3816
3816
|
}
|
|
3817
3817
|
sendBufferedMessagesNow() {
|
|
3818
3818
|
var i;
|
|
@@ -3964,7 +3964,7 @@ class wP {
|
|
|
3964
3964
|
}
|
|
3965
3965
|
}
|
|
3966
3966
|
async handleIncomingBinaryMessage(t) {
|
|
3967
|
-
|
|
3967
|
+
jh && console.log("<< bin", this.context.time.frame);
|
|
3968
3968
|
const e = await t.arrayBuffer();
|
|
3969
3969
|
var i = new Uint8Array(e);
|
|
3970
3970
|
const n = new D1(i), s = n.getBufferIdentifier(), a = this._listenersBinary[s], l = fP(n), c = pP(l);
|
|
@@ -3991,7 +3991,7 @@ class wP {
|
|
|
3991
3991
|
if (xi && console.log(t), t) {
|
|
3992
3992
|
this._isInRoom = !0;
|
|
3993
3993
|
const c = t;
|
|
3994
|
-
this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (
|
|
3994
|
+
this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (jh || U()) && console.debug("Joined Needle Engine Room: " + c.room);
|
|
3995
3995
|
const h = new URL(window.location.href);
|
|
3996
3996
|
h.searchParams.has("room") && h.searchParams.delete("room"), h.searchParams.set("view", this._currentRoomViewId), console.debug(`Room view id: ${this._currentRoomViewId}
|
|
3997
3997
|
${h.href}`);
|
|
@@ -4000,7 +4000,7 @@ ${h.href}`);
|
|
|
4000
4000
|
break;
|
|
4001
4001
|
case "left-room":
|
|
4002
4002
|
const a = t;
|
|
4003
|
-
a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (
|
|
4003
|
+
a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (jh || U()) && console.debug("Left Needle Engine Room: " + a.room));
|
|
4004
4004
|
break;
|
|
4005
4005
|
case "user-joined-room":
|
|
4006
4006
|
if (t.data) {
|
|
@@ -4060,7 +4060,7 @@ ${h.href}`);
|
|
|
4060
4060
|
}
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
|
-
const
|
|
4063
|
+
const uc = S("debugwebxr");
|
|
4064
4064
|
class Nf {
|
|
4065
4065
|
constructor(t, e) {
|
|
4066
4066
|
r(this, "controllerStates", []);
|
|
@@ -4068,7 +4068,7 @@ class Nf {
|
|
|
4068
4068
|
r(this, "context");
|
|
4069
4069
|
r(this, "userStateEvtName");
|
|
4070
4070
|
r(this, "onReceivedControllerState", (t) => {
|
|
4071
|
-
|
|
4071
|
+
uc && console.log(`XRSync: Received change for ${this.userId}: ${t.type} ${t.handedness}; tracked=${t.isTracking}`);
|
|
4072
4072
|
let e = !1;
|
|
4073
4073
|
for (let i = 0; i < this.controllerStates.length; i++)
|
|
4074
4074
|
if (this.controllerStates[i].index === t.index) {
|
|
@@ -4089,7 +4089,7 @@ class Nf {
|
|
|
4089
4089
|
let n = !1;
|
|
4090
4090
|
for (let s = 0; s < t.controllers.length; s++)
|
|
4091
4091
|
t.controllers[s].index === i.index && (n = !0);
|
|
4092
|
-
n || (
|
|
4092
|
+
n || (uc && console.log(`XRSync: ${i.type} ${i.handedness} removed`, i.index), this.controllerStates.splice(e, 1), this.sendControllerRemoved(i));
|
|
4093
4093
|
}
|
|
4094
4094
|
for (const e of t.controllers)
|
|
4095
4095
|
this.updateControllerStates(e);
|
|
@@ -4116,7 +4116,7 @@ class Nf {
|
|
|
4116
4116
|
index: t.index,
|
|
4117
4117
|
type: t.hand ? "hand" : "controller"
|
|
4118
4118
|
};
|
|
4119
|
-
this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i),
|
|
4119
|
+
this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i), uc && console.log(`XRSync: ${i.type} ${i.handedness} added`, i.index);
|
|
4120
4120
|
}
|
|
4121
4121
|
}
|
|
4122
4122
|
}
|
|
@@ -4125,7 +4125,7 @@ class xP {
|
|
|
4125
4125
|
r(this, "context");
|
|
4126
4126
|
r(this, "onJoinedRoom", () => {
|
|
4127
4127
|
if (this.context.connection.connectionId) {
|
|
4128
|
-
this._states.has(this.context.connection.connectionId) || (
|
|
4128
|
+
this._states.has(this.context.connection.connectionId) || (uc && console.log("XRSync: Local user joined room", this.context.connection.connectionId), this._states.set(this.context.connection.connectionId, new Nf(this.context.connection.connectionId, this.context)));
|
|
4129
4129
|
for (const t of this.context.connection.usersInRoom())
|
|
4130
4130
|
this._states.has(t) || this._states.set(t, new Nf(t, this.context));
|
|
4131
4131
|
}
|
|
@@ -4138,7 +4138,7 @@ class xP {
|
|
|
4138
4138
|
});
|
|
4139
4139
|
r(this, "onOtherUserJoinedRoom", (t) => {
|
|
4140
4140
|
const e = t.userId;
|
|
4141
|
-
this._states.has(e) || (
|
|
4141
|
+
this._states.has(e) || (uc && console.log("XRSync: Remote user joined room", e), this._states.set(e, new Nf(e, this.context)));
|
|
4142
4142
|
});
|
|
4143
4143
|
r(this, "onOtherUserLeftRoom", (t) => {
|
|
4144
4144
|
const e = t.userId;
|
|
@@ -4226,7 +4226,7 @@ class x_ {
|
|
|
4226
4226
|
return this._transitionPromise = t, t;
|
|
4227
4227
|
}
|
|
4228
4228
|
}
|
|
4229
|
-
var Ja = /* @__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))(Ja || {}),
|
|
4229
|
+
var Ja = /* @__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))(Ja || {}), Zc, nm;
|
|
4230
4230
|
class Qr {
|
|
4231
4231
|
/**
|
|
4232
4232
|
* Creates a 3D text object
|
|
@@ -4236,10 +4236,10 @@ class Qr {
|
|
|
4236
4236
|
static createText(t, e) {
|
|
4237
4237
|
let i = null;
|
|
4238
4238
|
const n = (e == null ? void 0 : e.font) || CP((e == null ? void 0 : e.familyFamily) || null);
|
|
4239
|
-
n instanceof f1 ? i = Dl(this,
|
|
4239
|
+
n instanceof f1 ? i = Dl(this, Zc, nm).call(this, t, n, e) : i == null && (i = new Xn());
|
|
4240
4240
|
const s = (e == null ? void 0 : e.color) || 16777215, a = new G(i, (e == null ? void 0 : e.material) ?? new pt({ color: s }));
|
|
4241
4241
|
return this.applyDefaultObjectOptions(a, e), n instanceof Promise ? n.then((l) => {
|
|
4242
|
-
a.geometry = Dl(this,
|
|
4242
|
+
a.geometry = Dl(this, Zc, nm).call(this, t, l, e), e != null && e.onGeometry && e.onGeometry(a);
|
|
4243
4243
|
}) : e != null && e.onGeometry && e.onGeometry(a), a;
|
|
4244
4244
|
}
|
|
4245
4245
|
/**
|
|
@@ -4311,7 +4311,7 @@ class Qr {
|
|
|
4311
4311
|
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);
|
|
4312
4312
|
}
|
|
4313
4313
|
}
|
|
4314
|
-
|
|
4314
|
+
Zc = new WeakSet(), nm = function(t, e, i) {
|
|
4315
4315
|
const n = (i == null ? void 0 : i.depth) || 0.1;
|
|
4316
4316
|
return new p1(t, {
|
|
4317
4317
|
font: e,
|
|
@@ -4323,7 +4323,7 @@ Jc = new WeakSet(), nm = function(t, e, i) {
|
|
|
4323
4323
|
bevelOffset: 0.01,
|
|
4324
4324
|
bevelSize: 0.01
|
|
4325
4325
|
});
|
|
4326
|
-
}, dn(Qr,
|
|
4326
|
+
}, dn(Qr, Zc);
|
|
4327
4327
|
function SP(o, t, e, i, n) {
|
|
4328
4328
|
const s = new Qx(), a = 1e-5, l = i - a;
|
|
4329
4329
|
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);
|
|
@@ -4337,7 +4337,7 @@ function SP(o, t, e, i, n) {
|
|
|
4337
4337
|
});
|
|
4338
4338
|
return c.scale(1, 1, 1 - i), c.center(), c.computeVertexNormals(), c;
|
|
4339
4339
|
}
|
|
4340
|
-
const
|
|
4340
|
+
const Bh = /* @__PURE__ */ new Map();
|
|
4341
4341
|
function CP(o) {
|
|
4342
4342
|
let t = "";
|
|
4343
4343
|
switch (o) {
|
|
@@ -4349,16 +4349,16 @@ function CP(o) {
|
|
|
4349
4349
|
t = "https://raw.githubusercontent.com/mrdoob/three.js/master/examples/fonts/helvetiker_regular.typeface.json";
|
|
4350
4350
|
break;
|
|
4351
4351
|
}
|
|
4352
|
-
if (
|
|
4353
|
-
const n =
|
|
4352
|
+
if (Bh.has(t)) {
|
|
4353
|
+
const n = Bh.get(t);
|
|
4354
4354
|
if (n) return n;
|
|
4355
4355
|
}
|
|
4356
4356
|
const e = new m1(), i = new Promise((n, s) => {
|
|
4357
4357
|
e.load(t, (a) => {
|
|
4358
|
-
|
|
4358
|
+
Bh.set(t, a), n(a);
|
|
4359
4359
|
}, void 0, s);
|
|
4360
4360
|
});
|
|
4361
|
-
return
|
|
4361
|
+
return Bh.set(t, i), i;
|
|
4362
4362
|
}
|
|
4363
4363
|
let $f = !1, Wf = null;
|
|
4364
4364
|
function PP(o, t) {
|
|
@@ -4395,7 +4395,7 @@ function S_(o, t) {
|
|
|
4395
4395
|
function C_() {
|
|
4396
4396
|
return new Eo().add(Qr.createPrimitive("Sphere", { material: new Me({ transparent: !0, opacity: 0.1 }) }));
|
|
4397
4397
|
}
|
|
4398
|
-
const
|
|
4398
|
+
const Pc = class Pc {
|
|
4399
4399
|
constructor(t, e, i) {
|
|
4400
4400
|
r(this, "_session");
|
|
4401
4401
|
r(this, "_mode");
|
|
@@ -4430,7 +4430,7 @@ const Oc = class Oc {
|
|
|
4430
4430
|
const i = await navigator.xr.requestSession(t, e);
|
|
4431
4431
|
return i.addEventListener("end", () => {
|
|
4432
4432
|
this._active = null;
|
|
4433
|
-
}), this._requestInFlight ? (this._requestInFlight = !1, this._active = new
|
|
4433
|
+
}), this._requestInFlight ? (this._requestInFlight = !1, this._active = new Pc(t, e, i), this._active) : (i.end(), null);
|
|
4434
4434
|
}
|
|
4435
4435
|
return null;
|
|
4436
4436
|
}
|
|
@@ -4492,9 +4492,9 @@ const Oc = class Oc {
|
|
|
4492
4492
|
}
|
|
4493
4493
|
}
|
|
4494
4494
|
};
|
|
4495
|
-
r(
|
|
4496
|
-
let el =
|
|
4497
|
-
var
|
|
4495
|
+
r(Pc, "_active", null), r(Pc, "_requestInFlight", !1);
|
|
4496
|
+
let el = Pc;
|
|
4497
|
+
var jc;
|
|
4498
4498
|
((o) => {
|
|
4499
4499
|
const t = [];
|
|
4500
4500
|
function e() {
|
|
@@ -4514,7 +4514,7 @@ var Bc;
|
|
|
4514
4514
|
a >= 0 && t.splice(a, 1);
|
|
4515
4515
|
}
|
|
4516
4516
|
o.unregisterExporter = n;
|
|
4517
|
-
})(
|
|
4517
|
+
})(jc || (jc = {}));
|
|
4518
4518
|
const Je = S("debugwebxr"), P_ = S("stats");
|
|
4519
4519
|
let Vf = 0;
|
|
4520
4520
|
function OP(o) {
|
|
@@ -4680,7 +4680,7 @@ const Xe = class Xe {
|
|
|
4680
4680
|
this._newControllers.length = 0, this.controllers.length = 0;
|
|
4681
4681
|
for (const c of this._xr_scripts)
|
|
4682
4682
|
(s = c == null ? void 0 : c.onLeaveXR) == null || s.call(c, { xr: this });
|
|
4683
|
-
(a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && yt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && Pn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale &&
|
|
4683
|
+
(a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && yt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && Pn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale && Dc(this.context.mainCamera, this._originalCameraWorldScale)), this.context.requestSizeUpdate(), this._defaultRig.gameObject.removeFromParent(), Fa(!1);
|
|
4684
4684
|
});
|
|
4685
4685
|
r(this, "_didStart", !1);
|
|
4686
4686
|
/** Called every frame by the engine */
|
|
@@ -4982,7 +4982,7 @@ const Xe = class Xe {
|
|
|
4982
4982
|
if (await this.isARSupported())
|
|
4983
4983
|
t = "immersive-ar";
|
|
4984
4984
|
else
|
|
4985
|
-
return
|
|
4985
|
+
return jc.exportAndOpen(), null;
|
|
4986
4986
|
} else t == "ar" && (t = "immersive-ar");
|
|
4987
4987
|
if (U() && S("debugxrpreroom"))
|
|
4988
4988
|
return console.warn("Debug: Starting temporary XR session"), await el.start(t, e || Xe.getDefaultSessionInit(t)), null;
|
|
@@ -5674,7 +5674,7 @@ class Le {
|
|
|
5674
5674
|
static getLine(t) {
|
|
5675
5675
|
let e = this.linesCache.pop();
|
|
5676
5676
|
if (!e) {
|
|
5677
|
-
e = new
|
|
5677
|
+
e = new Ec();
|
|
5678
5678
|
let i = e.geometry.getAttribute("position");
|
|
5679
5679
|
i || (i = new mt(new Float32Array(2 * 3), 3), e.geometry.setAttribute("position", i));
|
|
5680
5680
|
}
|
|
@@ -5683,7 +5683,7 @@ class Le {
|
|
|
5683
5683
|
static getCircle(t) {
|
|
5684
5684
|
let e = this.circlesCache.pop();
|
|
5685
5685
|
if (!e) {
|
|
5686
|
-
e = new
|
|
5686
|
+
e = new Ec();
|
|
5687
5687
|
let i = e.geometry.getAttribute("position");
|
|
5688
5688
|
if (!i) {
|
|
5689
5689
|
i = new mt(new Float32Array(Gf * 3), 3), e.geometry.setAttribute("position", i);
|
|
@@ -5807,7 +5807,7 @@ class nv {
|
|
|
5807
5807
|
this.object = t, this.distance = e, this.point = i;
|
|
5808
5808
|
}
|
|
5809
5809
|
}
|
|
5810
|
-
const
|
|
5810
|
+
const Oc = class Oc {
|
|
5811
5811
|
constructor(t) {
|
|
5812
5812
|
r(this, "context");
|
|
5813
5813
|
r(this, "engine");
|
|
@@ -5892,14 +5892,14 @@ const kc = class kc {
|
|
|
5892
5892
|
let n = t.targets;
|
|
5893
5893
|
n || (n = this.targetBuffer, n.length = 1, n[0] = this.context.scene);
|
|
5894
5894
|
let s = t.results;
|
|
5895
|
-
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 Fo ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), Pi && console.time("raycast"), s.length = 0,
|
|
5895
|
+
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 Fo ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), Pi && console.time("raycast"), s.length = 0, Oc._raycasting++, this.intersect(this.raycaster, n, s, t), s.sort((l, c) => l.distance - c.distance);
|
|
5896
5896
|
const a = t.ignore;
|
|
5897
|
-
return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))),
|
|
5897
|
+
return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))), Oc._raycasting--, Pi && (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;
|
|
5898
5898
|
}
|
|
5899
5899
|
intersect(t, e, i, n) {
|
|
5900
5900
|
var s, a, l;
|
|
5901
5901
|
for (const c of e) {
|
|
5902
|
-
if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof
|
|
5902
|
+
if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof Ec)
|
|
5903
5903
|
continue;
|
|
5904
5904
|
let h = !0;
|
|
5905
5905
|
const d = c, u = d.geometry;
|
|
@@ -5926,7 +5926,7 @@ const kc = class kc {
|
|
|
5926
5926
|
}
|
|
5927
5927
|
intersectSphere(t, e, i, n, s, a, l, c) {
|
|
5928
5928
|
let h = t && t.isMesh && t.layers.test(n) && !H.isGizmo(t);
|
|
5929
|
-
h && (h = t.visible), h && (h = !(t instanceof
|
|
5929
|
+
h && (h = t.visible), h && (h = !(t instanceof Ec)), h && (h = !(t instanceof Qa));
|
|
5930
5930
|
const d = t, u = d.geometry;
|
|
5931
5931
|
if (h && c) {
|
|
5932
5932
|
const p = c(t);
|
|
@@ -5957,12 +5957,12 @@ const kc = class kc {
|
|
|
5957
5957
|
}
|
|
5958
5958
|
}
|
|
5959
5959
|
};
|
|
5960
|
-
r(
|
|
5961
|
-
let Id =
|
|
5960
|
+
r(Oc, "_raycasting", 0);
|
|
5961
|
+
let Id = Oc;
|
|
5962
5962
|
function R_(o) {
|
|
5963
5963
|
return !(o.index && o.index.array.length < 3);
|
|
5964
5964
|
}
|
|
5965
|
-
const ar = new wu(),
|
|
5965
|
+
const ar = new wu(), Fh = new Ur(), DP = new o0();
|
|
5966
5966
|
function jP(o, t, e) {
|
|
5967
5967
|
const i = o._computeIntersections;
|
|
5968
5968
|
if (!i)
|
|
@@ -5972,12 +5972,12 @@ function jP(o, t, e) {
|
|
|
5972
5972
|
const c = this, h = c.geometry.boundingSphere;
|
|
5973
5973
|
if (h) {
|
|
5974
5974
|
if (c instanceof Qa) {
|
|
5975
|
-
|
|
5976
|
-
const u = s.ray.intersectPlane(
|
|
5975
|
+
Fh.setFromNormalAndCoplanarPoint(q(0, 1, 0), q(0, -c.position.y, 0)), Fh.applyMatrix4(c.matrixWorld, DP);
|
|
5976
|
+
const u = s.ray.intersectPlane(Fh, q());
|
|
5977
5977
|
if (u) {
|
|
5978
5978
|
ar.copy(h), ar.applyMatrix4(c.matrixWorld);
|
|
5979
5979
|
const m = q(u).sub(s.ray.origin).length(), g = ar.radius * 0.5;
|
|
5980
|
-
m < g && a.push({ distance: m, point: u, object: c, normal:
|
|
5980
|
+
m < g && a.push({ distance: m, point: u, object: c, normal: Fh.normal.clone() });
|
|
5981
5981
|
}
|
|
5982
5982
|
return;
|
|
5983
5983
|
}
|
|
@@ -6205,28 +6205,28 @@ function UP(o) {
|
|
|
6205
6205
|
const NP = /* @__PURE__ */ new Set();
|
|
6206
6206
|
function lv(o, t, e = null, i) {
|
|
6207
6207
|
if (i || (i = NP, i.clear()), !o) return i;
|
|
6208
|
-
const n = o[
|
|
6208
|
+
const n = o[Bc];
|
|
6209
6209
|
if (n)
|
|
6210
6210
|
for (const s of n)
|
|
6211
6211
|
i.has(s) || (e == null ? void 0 : e.call(null, s)) !== !1 && (i.add(s), t && lv(s, !0, e, i));
|
|
6212
6212
|
return i;
|
|
6213
6213
|
}
|
|
6214
6214
|
function kL(o) {
|
|
6215
|
-
return o[
|
|
6215
|
+
return o[tc];
|
|
6216
6216
|
}
|
|
6217
|
-
const Ir = S("debugresourceusers") || S("debugmemory"),
|
|
6217
|
+
const Ir = S("debugresourceusers") || S("debugmemory"), Bc = Symbol("needle-resource-users"), tc = Symbol("needle-resource-users-count");
|
|
6218
6218
|
function Wt(o, t) {
|
|
6219
6219
|
pg(o, t, function(e, i) {
|
|
6220
|
-
Yr && !Id.raycasting && (jd(
|
|
6220
|
+
Yr && !Id.raycasting && (jd(Bc, this, e, !1), jd(Bc, this, i, !0));
|
|
6221
6221
|
});
|
|
6222
6222
|
}
|
|
6223
6223
|
Yr && (Wt(G.prototype, "material"), Wt(G.prototype, "geometry"), Wt(Pe.prototype, "map"), Wt(Pe.prototype, "bumpMap"), Wt(Pe.prototype, "alphaMap"), Wt(Pe.prototype, "normalMap"), Wt(Pe.prototype, "displacementMap"), Wt(Pe.prototype, "roughnessMap"), Wt(Pe.prototype, "metalnessMap"), Wt(Pe.prototype, "emissiveMap"), Wt(Pe.prototype, "specularMap"), Wt(Pe.prototype, "envMap"), Wt(Pe.prototype, "lightMap"), Wt(Pe.prototype, "aoMap"), Wt(Pe.prototype, "gradientMap"));
|
|
6224
6224
|
function $P(o) {
|
|
6225
6225
|
if (Yr === !1) return;
|
|
6226
|
-
const t = o[
|
|
6226
|
+
const t = o[Bc];
|
|
6227
6227
|
if (t)
|
|
6228
6228
|
for (const e of t)
|
|
6229
|
-
jd(
|
|
6229
|
+
jd(Bc, e, o, !1);
|
|
6230
6230
|
}
|
|
6231
6231
|
Yr && pg(Pe.prototype, "dispose", function() {
|
|
6232
6232
|
$P(this);
|
|
@@ -6244,13 +6244,13 @@ function jd(o, t, e, i) {
|
|
|
6244
6244
|
if (n || (n = /* @__PURE__ */ new Set()), i) {
|
|
6245
6245
|
if (t && !n.has(t)) {
|
|
6246
6246
|
n.add(t);
|
|
6247
|
-
let s = e[
|
|
6248
|
-
s += 1, e[
|
|
6247
|
+
let s = e[tc] || 0;
|
|
6248
|
+
s += 1, e[tc] = s, Ir && console.warn(`🟢 Added user of "${e.type}"`, t, e, s, "users:", n);
|
|
6249
6249
|
}
|
|
6250
6250
|
} else if (t && n.has(t)) {
|
|
6251
6251
|
n.delete(t);
|
|
6252
|
-
let s = e[
|
|
6253
|
-
s > 0 && (s -= 1, e[
|
|
6252
|
+
let s = e[tc] || 0;
|
|
6253
|
+
s > 0 && (s -= 1, e[tc] = s), Ir && console.warn(`🔴 Removed user of "${e.type}"`, t, e, s, "users:", n), s <= 0 && (Dd.isLoading(e) || (Au && console.warn(`🔴 Removed all user of "${e.type}"`, e), sv() && Ie(e)));
|
|
6254
6254
|
}
|
|
6255
6255
|
e[o] = n;
|
|
6256
6256
|
}
|
|
@@ -6289,7 +6289,7 @@ class Iu {
|
|
|
6289
6289
|
}
|
|
6290
6290
|
}
|
|
6291
6291
|
r(Iu, "eventListeners", /* @__PURE__ */ new Map());
|
|
6292
|
-
const
|
|
6292
|
+
const Fc = Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), cv = Symbol("isUsingInstancing"), hv = Symbol("instancingRenderer"), ic = Symbol("instancingAutoUpdateBounds");
|
|
6293
6293
|
class xn {
|
|
6294
6294
|
/** Is this object rendered using a InstancedMesh */
|
|
6295
6295
|
static isUsingInstancing(t) {
|
|
@@ -6303,12 +6303,12 @@ class xn {
|
|
|
6303
6303
|
}
|
|
6304
6304
|
setAutoUpdateBounds(t, e) {
|
|
6305
6305
|
const i = xn.getRenderer(t);
|
|
6306
|
-
i && (i[
|
|
6306
|
+
i && (i[ic] = e);
|
|
6307
6307
|
}
|
|
6308
6308
|
// TODO: change this so it does not set matrix world directly but some flag that is only used by instancing
|
|
6309
6309
|
/** Mark an instanced object dirty so the instance matrix will be updated */
|
|
6310
6310
|
static markDirty(t, e = !0) {
|
|
6311
|
-
if (t && (this.isUsingInstancing(t) && (t[
|
|
6311
|
+
if (t && (this.isUsingInstancing(t) && (t[Fc] = !0, t.matrixWorldNeedsUpdate = !0), e))
|
|
6312
6312
|
for (const i of t.children)
|
|
6313
6313
|
xn.markDirty(i, !0);
|
|
6314
6314
|
}
|
|
@@ -6348,7 +6348,7 @@ The script will be ignored. Please make sure your component extends "Behaviour"
|
|
|
6348
6348
|
Did you add and remove a component in the same frame?`), Be.splice(t, 1), t--;
|
|
6349
6349
|
continue;
|
|
6350
6350
|
}
|
|
6351
|
-
e.context = o,
|
|
6351
|
+
e.context = o, fc(e.gameObject), wg(e, o);
|
|
6352
6352
|
} catch (e) {
|
|
6353
6353
|
console.error(e), xs(Be[t], o), Be.splice(t, 1), t--;
|
|
6354
6354
|
}
|
|
@@ -6365,14 +6365,14 @@ Did you add and remove a component in the same frame?`), Be.splice(t, 1), t--;
|
|
|
6365
6365
|
} catch (i) {
|
|
6366
6366
|
console.error(i);
|
|
6367
6367
|
}
|
|
6368
|
-
e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject),
|
|
6368
|
+
e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject), fc(e.gameObject), e.activeAndEnabled && Na(e.__internalAwake.bind(e)));
|
|
6369
6369
|
} catch (e) {
|
|
6370
6370
|
console.error(e), xs(Be[t], o), Be.splice(t, 1), t--;
|
|
6371
6371
|
}
|
|
6372
6372
|
for (let t = 0; t < Be.length; t++)
|
|
6373
6373
|
try {
|
|
6374
6374
|
const e = Be[t];
|
|
6375
|
-
if (e.destroyed || e.enabled === !1 || (
|
|
6375
|
+
if (e.destroyed || e.enabled === !1 || (fc(e.gameObject), e.activeAndEnabled === !1)) continue;
|
|
6376
6376
|
e.__internalEnable !== void 0 && (e.enabled = !0, Na(e.__internalEnable.bind(e)));
|
|
6377
6377
|
} catch (e) {
|
|
6378
6378
|
console.error(e), xs(Be[t], o), Be.splice(t, 1), t--;
|
|
@@ -6429,14 +6429,14 @@ function dd(o) {
|
|
|
6429
6429
|
console.trace("Invalid call - no current context.");
|
|
6430
6430
|
return;
|
|
6431
6431
|
}
|
|
6432
|
-
const t =
|
|
6432
|
+
const t = nh(o);
|
|
6433
6433
|
uv(o, t, !0) || (rm || U() ? console.error(`Error updating hierarchy
|
|
6434
6434
|
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)."));
|
|
6435
6435
|
}
|
|
6436
6436
|
function uv(o, t, e, i = 0) {
|
|
6437
6437
|
if (i > 1e3)
|
|
6438
6438
|
return console.warn("Hierarchy is too deep (> 1000 level) - will abort updating active state"), !1;
|
|
6439
|
-
const n =
|
|
6439
|
+
const n = nh(o);
|
|
6440
6440
|
if (t && (t = n, t && o.parent)) {
|
|
6441
6441
|
const c = o.parent;
|
|
6442
6442
|
t = c[Lo], t === void 0 && (c instanceof Li || (t = !0));
|
|
@@ -6451,10 +6451,10 @@ function uv(o, t, e, i = 0) {
|
|
|
6451
6451
|
uv(c, t, e, i + 1) === !1 && (l = !1);
|
|
6452
6452
|
return l;
|
|
6453
6453
|
}
|
|
6454
|
-
function
|
|
6454
|
+
function fc(o) {
|
|
6455
6455
|
let t = !0, e = o, i = !1;
|
|
6456
6456
|
for (; e && e; ) {
|
|
6457
|
-
if (e.type === "Scene" && (i = !0), !
|
|
6457
|
+
if (e.type === "Scene" && (i = !0), !nh(e)) {
|
|
6458
6458
|
t = !1;
|
|
6459
6459
|
break;
|
|
6460
6460
|
}
|
|
@@ -6677,7 +6677,7 @@ function yv(o, t) {
|
|
|
6677
6677
|
}
|
|
6678
6678
|
return null;
|
|
6679
6679
|
}
|
|
6680
|
-
const
|
|
6680
|
+
const th = S("gizmos"), gt = S("debugextension"), Xf = S("debugtypes");
|
|
6681
6681
|
class sO {
|
|
6682
6682
|
constructor() {
|
|
6683
6683
|
r(this, "_types", /* @__PURE__ */ new Map());
|
|
@@ -7297,7 +7297,7 @@ const Cv = new Dt("addComponentIdProvider");
|
|
|
7297
7297
|
function $a(o, t, e = !0) {
|
|
7298
7298
|
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 = Cv.generateUUID()), Pg(o), Rg(t, t.context);
|
|
7299
7299
|
try {
|
|
7300
|
-
e && t.__internalAwake && (
|
|
7300
|
+
e && t.__internalAwake && (fc(o), t.activeAndEnabled && t.__internalAwake()), Iu.dispatchComponentLifecycleEvent("component-added", t);
|
|
7301
7301
|
} catch (i) {
|
|
7302
7302
|
console.error(i);
|
|
7303
7303
|
}
|
|
@@ -7373,11 +7373,11 @@ function Bu(o, t, e) {
|
|
|
7373
7373
|
}
|
|
7374
7374
|
return null;
|
|
7375
7375
|
}
|
|
7376
|
-
function
|
|
7376
|
+
function ih(o, t, e, i = !0) {
|
|
7377
7377
|
var n;
|
|
7378
7378
|
e || (e = []), i && (e.length = 0), ju(o, t, e, !1);
|
|
7379
7379
|
for (let s = 0; s < ((n = o == null ? void 0 : o.children) == null ? void 0 : n.length); s++)
|
|
7380
|
-
|
|
7380
|
+
ih(o.children[s], t, e, !1);
|
|
7381
7381
|
return e;
|
|
7382
7382
|
}
|
|
7383
7383
|
function Ud(o, t) {
|
|
@@ -7410,7 +7410,7 @@ function RO(o, t, e = void 0) {
|
|
|
7410
7410
|
return console.error("Can not search object without any needle context or scene!!!"), t;
|
|
7411
7411
|
"scene" in e && (e = e.scene);
|
|
7412
7412
|
const i = e;
|
|
7413
|
-
return i &&
|
|
7413
|
+
return i && ih(i, o, t, !1), t;
|
|
7414
7414
|
}
|
|
7415
7415
|
function Pg(o) {
|
|
7416
7416
|
o && o.isObject3D === !0 && xO(o, I);
|
|
@@ -7446,7 +7446,7 @@ I.prototype.getComponentInChildren = function(o) {
|
|
|
7446
7446
|
return Bu(this, o);
|
|
7447
7447
|
};
|
|
7448
7448
|
I.prototype.getComponentsInChildren = function(o, t) {
|
|
7449
|
-
return
|
|
7449
|
+
return ih(this, o, t);
|
|
7450
7450
|
};
|
|
7451
7451
|
I.prototype.getComponentInParent = function(o) {
|
|
7452
7452
|
return Ud(this, o);
|
|
@@ -7456,7 +7456,7 @@ I.prototype.getComponentsInParent = function(o, t) {
|
|
|
7456
7456
|
};
|
|
7457
7457
|
Object.getOwnPropertyDescriptor(I.prototype, "activeSelf") || Object.defineProperty(I.prototype, "activeSelf", {
|
|
7458
7458
|
get: function() {
|
|
7459
|
-
return
|
|
7459
|
+
return nh(this);
|
|
7460
7460
|
},
|
|
7461
7461
|
set: function(o) {
|
|
7462
7462
|
md(this, o);
|
|
@@ -7491,7 +7491,7 @@ Object.getOwnPropertyDescriptor(I.prototype, "worldScale") || Object.definePrope
|
|
|
7491
7491
|
return Ye(this);
|
|
7492
7492
|
},
|
|
7493
7493
|
set: function(o) {
|
|
7494
|
-
|
|
7494
|
+
Dc(this, o);
|
|
7495
7495
|
}
|
|
7496
7496
|
});
|
|
7497
7497
|
Object.getOwnPropertyDescriptor(I.prototype, "worldForward") || Object.defineProperty(I.prototype, "worldForward", {
|
|
@@ -7598,7 +7598,7 @@ class ns {
|
|
|
7598
7598
|
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;
|
|
7599
7599
|
}
|
|
7600
7600
|
}
|
|
7601
|
-
function
|
|
7601
|
+
function nh(o) {
|
|
7602
7602
|
return o.visible;
|
|
7603
7603
|
}
|
|
7604
7604
|
function md(o, t) {
|
|
@@ -7614,7 +7614,7 @@ function Og(o) {
|
|
|
7614
7614
|
return xn.isUsingInstancing(o);
|
|
7615
7615
|
}
|
|
7616
7616
|
function Ov(o, t) {
|
|
7617
|
-
return
|
|
7617
|
+
return Ic(o, t, !0, !0);
|
|
7618
7618
|
}
|
|
7619
7619
|
const kv = Symbol("isDestroyed");
|
|
7620
7620
|
function il(o) {
|
|
@@ -7743,7 +7743,7 @@ function Rv(o, t, e, i, n, s) {
|
|
|
7743
7743
|
const h = t.parent;
|
|
7744
7744
|
if (h && h.add(c), e != null && e.position ? yt(c, e.position) : c.position.copy(t.position), e != null && e.rotation ? Pn(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") {
|
|
7745
7745
|
let u = null;
|
|
7746
|
-
if (typeof e.parent == "string" ? u =
|
|
7746
|
+
if (typeof e.parent == "string" ? u = Ic(e.parent, o.scene, !0) : u = e.parent, u) {
|
|
7747
7747
|
const p = e.keepWorldPosition === !0 ? u.attach : u.add;
|
|
7748
7748
|
p ? p.call(u, c) : console.error("Invalid parent object", u, "received when instantiating:", t);
|
|
7749
7749
|
} else console.warn("could not find parent:", e.parent);
|
|
@@ -8356,7 +8356,7 @@ class UO {
|
|
|
8356
8356
|
e !== -1 && this.mixers.splice(e, 1);
|
|
8357
8357
|
}
|
|
8358
8358
|
}
|
|
8359
|
-
class
|
|
8359
|
+
class zc {
|
|
8360
8360
|
/**
|
|
8361
8361
|
* Tries to get the animation actions from an animation mixer.
|
|
8362
8362
|
* @param mixer The animation mixer to get the actions from
|
|
@@ -8546,7 +8546,7 @@ irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );
|
|
|
8546
8546
|
#endif`
|
|
8547
8547
|
);
|
|
8548
8548
|
sS.lightmap.lightmapScaleOffset = { value: new ye(1, 1, 0, 0) };
|
|
8549
|
-
const Kf = S("debugprogressive"),
|
|
8549
|
+
const Kf = S("debugprogressive"), zh = new Ai(), Uh = new wu();
|
|
8550
8550
|
class VO {
|
|
8551
8551
|
constructor(t) {
|
|
8552
8552
|
r(this, "context");
|
|
@@ -8593,8 +8593,8 @@ class VO {
|
|
|
8593
8593
|
const a = i.mesh_lod != n.lastLodLevel_Mesh || i.texture_lod != n.lastLodLevel_Texture;
|
|
8594
8594
|
if (Kf && e.geometry.boundingSphere) {
|
|
8595
8595
|
const d = e.geometry.boundingSphere;
|
|
8596
|
-
|
|
8597
|
-
const u =
|
|
8596
|
+
Uh.copy(d), Uh.applyMatrix4(e.matrixWorld);
|
|
8597
|
+
const u = Uh.center, p = Uh.radius, m = ["#76c43e", "#bcc43e", "#c4ac3e", "#c4673e", "#ff3e3e"];
|
|
8598
8598
|
if (a)
|
|
8599
8599
|
H.DrawWireSphere(u, p, m[s], 0.1);
|
|
8600
8600
|
else {
|
|
@@ -8614,7 +8614,7 @@ TEX ` + i.texture_lod;
|
|
|
8614
8614
|
` + (_ / n.lastScreenCoverage).toFixed(0) + ` dens
|
|
8615
8615
|
` + (n.lastScreenCoverage * 100).toFixed(1) + `% cov
|
|
8616
8616
|
` + (n.lastCentrality * 100).toFixed(1) + `% centr
|
|
8617
|
-
` + (
|
|
8617
|
+
` + (zh.min.x.toFixed(2) + "-" + zh.max.x.toFixed(2) + "x" + zh.min.y.toFixed(2) + "-" + zh.max.y.toFixed(2)) + " scr"), n.lastScreenCoverage > 0.1) {
|
|
8618
8618
|
const x = t, R = x.worldForward, M = x.worldPosition, O = q(R).multiplyScalar(p * 0.7).add(u), B = O.distanceTo(M), E = m[Math.min(m.length - 1, Math.max(0, s))] + "88", D = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, F = t.isPerspectiveCamera ? Math.tan(t.fov * Math.PI / 180 / 2) : 1;
|
|
8619
8619
|
H.DrawLabel(O, w, B * 0.012 * D * F, void 0, 16777215, E);
|
|
8620
8620
|
}
|
|
@@ -8667,12 +8667,12 @@ class qO {
|
|
|
8667
8667
|
}
|
|
8668
8668
|
}
|
|
8669
8669
|
new Jm();
|
|
8670
|
-
const
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
const XO = new eg(
|
|
8670
|
+
const sh = new Uint8Array(4);
|
|
8671
|
+
sh[0] = 255;
|
|
8672
|
+
sh[1] = 255;
|
|
8673
|
+
sh[2] = 255;
|
|
8674
|
+
sh[3] = 255;
|
|
8675
|
+
const XO = new eg(sh, 1, 1, xu);
|
|
8676
8676
|
function Mg(o, t = 1) {
|
|
8677
8677
|
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);
|
|
8678
8678
|
for (let h = 0; h < i; h++) {
|
|
@@ -8751,7 +8751,7 @@ function JO(o) {
|
|
|
8751
8751
|
}).join(""));
|
|
8752
8752
|
}
|
|
8753
8753
|
const pn = S("debugenvlight");
|
|
8754
|
-
var
|
|
8754
|
+
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 || {}), mm = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Custom = 1] = "Custom", o))(mm || {});
|
|
8755
8755
|
class ek {
|
|
8756
8756
|
constructor(t) {
|
|
8757
8757
|
r(this, "context");
|
|
@@ -8841,7 +8841,7 @@ class ek {
|
|
|
8841
8841
|
var i;
|
|
8842
8842
|
this.__currentReflectionId = t;
|
|
8843
8843
|
const e = (i = this._sceneLightSettings) == null ? void 0 : i.get(t);
|
|
8844
|
-
switch (pn && console.log("Enable reflection", t, e ?
|
|
8844
|
+
switch (pn && console.log("Enable reflection", t, e ? pc[e.ambientMode] : "Unknown ambient mode", e), e == null ? void 0 : e.ambientMode) {
|
|
8845
8845
|
case 0:
|
|
8846
8846
|
case 4:
|
|
8847
8847
|
const n = this.internalGetReflection(t);
|
|
@@ -9180,22 +9180,22 @@ function ok(o) {
|
|
|
9180
9180
|
var e;
|
|
9181
9181
|
return ((e = o.classList) == null ? void 0 : e.contains("material-symbols-outlined")) || !1;
|
|
9182
9182
|
}
|
|
9183
|
-
const
|
|
9183
|
+
const Nh = /* @__PURE__ */ new Map();
|
|
9184
9184
|
async function X_(o) {
|
|
9185
9185
|
const t = "Material Symbols Outlined";
|
|
9186
|
-
if (document.fonts.check(`1em '${t}'`) || (console.log("Font not loaded yet"), await document.fonts.ready),
|
|
9187
|
-
return
|
|
9186
|
+
if (document.fonts.check(`1em '${t}'`) || (console.log("Font not loaded yet"), await document.fonts.ready), Nh.has(o))
|
|
9187
|
+
return Nh.get(o);
|
|
9188
9188
|
const e = document.createElement("canvas"), i = 48;
|
|
9189
9189
|
e.width = i, e.height = i;
|
|
9190
9190
|
const n = e.getContext("2d");
|
|
9191
9191
|
if (n) {
|
|
9192
9192
|
n.font = `${i}px '${t}'`, n.fillStyle = "black", n.fillText(o, 0, i);
|
|
9193
9193
|
const s = e.toDataURL(), a = new ze();
|
|
9194
|
-
return a.name = o + " icon", a.image = new Image(), a.image.src = s, a.needsUpdate = !0,
|
|
9194
|
+
return a.name = o + " icon", a.image = new Image(), a.image.src = s, a.needsUpdate = !0, Nh.set(o, a), a;
|
|
9195
9195
|
}
|
|
9196
|
-
return
|
|
9196
|
+
return Nh.set(o, null), null;
|
|
9197
9197
|
}
|
|
9198
|
-
const
|
|
9198
|
+
const kc = class kc {
|
|
9199
9199
|
constructor() {
|
|
9200
9200
|
r(this, "_fullscreenButton");
|
|
9201
9201
|
r(this, "_muteButton");
|
|
@@ -9216,11 +9216,11 @@ const Mc = class Mc {
|
|
|
9216
9216
|
* If you want to create a new factory and create new button instances instead of shared buttons, use `ButtonsFactory.create()` instead
|
|
9217
9217
|
*/
|
|
9218
9218
|
static getOrCreate() {
|
|
9219
|
-
return this._instance || (this._instance = new
|
|
9219
|
+
return this._instance || (this._instance = new kc()), this._instance;
|
|
9220
9220
|
}
|
|
9221
9221
|
/** create a new buttons factory */
|
|
9222
9222
|
static create() {
|
|
9223
|
-
return new
|
|
9223
|
+
return new kc();
|
|
9224
9224
|
}
|
|
9225
9225
|
/**
|
|
9226
9226
|
* Get the fullscreen button (or undefined if it doesn't exist yet). Call {@link ButtonsFactory.createFullscreenButton} to get or create it
|
|
@@ -9339,8 +9339,8 @@ const Mc = class Mc {
|
|
|
9339
9339
|
});
|
|
9340
9340
|
}
|
|
9341
9341
|
};
|
|
9342
|
-
r(
|
|
9343
|
-
let ks =
|
|
9342
|
+
r(kc, "_instance");
|
|
9343
|
+
let ks = kc;
|
|
9344
9344
|
function Vd(o, t) {
|
|
9345
9345
|
const e = (t == null ? void 0 : t.element) || document.head, i = Array.from(e.querySelectorAll(`link[rel=stylesheet][href*='${o}']`));
|
|
9346
9346
|
if (i.length <= 0) {
|
|
@@ -9740,7 +9740,7 @@ class Q_ {
|
|
|
9740
9740
|
t.use(), this.onclick();
|
|
9741
9741
|
}
|
|
9742
9742
|
}
|
|
9743
|
-
const mr = "needle-menu",
|
|
9743
|
+
const mr = "needle-menu", mc = S("debugmenu"), Y_ = S("debugnoncommercial");
|
|
9744
9744
|
let lk = class {
|
|
9745
9745
|
constructor(t) {
|
|
9746
9746
|
r(this, "_context");
|
|
@@ -9765,8 +9765,8 @@ let lk = class {
|
|
|
9765
9765
|
a ? globalThis.open(n.onclick, l) : console.error("NeedleMenu: onclick is not a valid link", n.onclick);
|
|
9766
9766
|
}
|
|
9767
9767
|
}, this._menu.appendChild(s);
|
|
9768
|
-
} else
|
|
9769
|
-
} else
|
|
9768
|
+
} else mc && console.error("NeedleMenu: unknown postMessage event", e);
|
|
9769
|
+
} else mc && console.warn("NeedleMenu: unknown postMessage type", i, e);
|
|
9770
9770
|
}
|
|
9771
9771
|
});
|
|
9772
9772
|
r(this, "onStartXR", (t) => {
|
|
@@ -9851,7 +9851,7 @@ let lk = class {
|
|
|
9851
9851
|
return this._menu.appendChild(t);
|
|
9852
9852
|
}
|
|
9853
9853
|
};
|
|
9854
|
-
var
|
|
9854
|
+
var Jc;
|
|
9855
9855
|
const By = class By extends HTMLElement {
|
|
9856
9856
|
constructor() {
|
|
9857
9857
|
var u, p, m, g, y, b;
|
|
@@ -9859,7 +9859,7 @@ const By = class By extends HTMLElement {
|
|
|
9859
9859
|
r(this, "_domElement", null);
|
|
9860
9860
|
r(this, "_context", null);
|
|
9861
9861
|
r(this, "_sizeChangeInterval");
|
|
9862
|
-
dn(this,
|
|
9862
|
+
dn(this, Jc, (e) => {
|
|
9863
9863
|
if (!e.defaultPrevented && e.target == this._domElement && e instanceof PointerEvent && e.button === 0 && this.root.classList.contains("open")) {
|
|
9864
9864
|
const i = this.foldout.getBoundingClientRect(), n = e;
|
|
9865
9865
|
n.clientX > i.left && n.clientX < i.right && n.clientY > i.top && n.clientY < i.bottom || this.root.classList.toggle("open", !1);
|
|
@@ -10304,7 +10304,7 @@ const By = class By extends HTMLElement {
|
|
|
10304
10304
|
let l = 0;
|
|
10305
10305
|
const c = (_, w) => {
|
|
10306
10306
|
var x, R, M;
|
|
10307
|
-
|
|
10307
|
+
mc && console.log("Set menu visible", w), a != null && a.isInAR && a.arOverlayElement ? _ != a.arOverlayElement && a.arOverlayElement.appendChild(this) : this.parentNode != ((x = this._domElement) == null ? void 0 : x.shadowRoot) && ((M = (R = this._domElement) == null ? void 0 : R.shadowRoot) == null || M.appendChild(this)), this.style.display = w ? "flex" : "none", this.style.visibility = "visible", this.style.opacity = "1";
|
|
10308
10308
|
};
|
|
10309
10309
|
let h = !1;
|
|
10310
10310
|
new MutationObserver((_) => {
|
|
@@ -10320,7 +10320,7 @@ const By = class By extends HTMLElement {
|
|
|
10320
10320
|
} finally {
|
|
10321
10321
|
h = !1;
|
|
10322
10322
|
}
|
|
10323
|
-
}).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }),
|
|
10323
|
+
}).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }), mc && this.___insertDebugOptions();
|
|
10324
10324
|
}
|
|
10325
10325
|
static create() {
|
|
10326
10326
|
return document.createElement(mr, { is: mr });
|
|
@@ -10332,12 +10332,12 @@ const By = class By extends HTMLElement {
|
|
|
10332
10332
|
connectedCallback() {
|
|
10333
10333
|
window.addEventListener("resize", this.handleSizeChange), this.handleMenuVisible(), this._sizeChangeInterval = setInterval(() => this.handleSizeChange(void 0, !0), 5e3), setTimeout(() => {
|
|
10334
10334
|
var e, i;
|
|
10335
|
-
(e = this._domElement) == null || e.addEventListener("resize", this.handleSizeChange), (i = this._domElement) == null || i.addEventListener("click", fe(this,
|
|
10335
|
+
(e = this._domElement) == null || e.addEventListener("resize", this.handleSizeChange), (i = this._domElement) == null || i.addEventListener("click", fe(this, Jc));
|
|
10336
10336
|
}, 1);
|
|
10337
10337
|
}
|
|
10338
10338
|
disconnectedCallback() {
|
|
10339
10339
|
var e, i;
|
|
10340
|
-
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", fe(this,
|
|
10340
|
+
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", fe(this, Jc));
|
|
10341
10341
|
}
|
|
10342
10342
|
showNeedleLogo(e) {
|
|
10343
10343
|
this._userRequestedLogoVisible = e, !(!e && (!js() || Y_) && (console.warn("[Needle Engine] You need a PRO license to hide the Needle Engine logo in production."), !gi())) && this.___onSetLogoVisible(e);
|
|
@@ -10428,7 +10428,7 @@ const By = class By extends HTMLElement {
|
|
|
10428
10428
|
* if we dont have any content and logo then we hide the menu
|
|
10429
10429
|
*/
|
|
10430
10430
|
handleMenuVisible() {
|
|
10431
|
-
|
|
10431
|
+
mc && 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);
|
|
10432
10432
|
}
|
|
10433
10433
|
/** @returns true if we have any content OR a logo */
|
|
10434
10434
|
get hasAnyContent() {
|
|
@@ -10468,7 +10468,7 @@ const By = class By extends HTMLElement {
|
|
|
10468
10468
|
}), this.appendChild(i);
|
|
10469
10469
|
}
|
|
10470
10470
|
};
|
|
10471
|
-
|
|
10471
|
+
Jc = new WeakMap();
|
|
10472
10472
|
let Gd = By;
|
|
10473
10473
|
customElements.get(mr) || customElements.define(mr, Gd);
|
|
10474
10474
|
const tt = S("debugcontext"), ck = S("stats"), hk = S("debugactive"), dk = S("debugframerate"), uk = S("debugcoroutine"), AL = {};
|
|
@@ -11160,7 +11160,7 @@ Possible solutions:
|
|
|
11160
11160
|
nl(this.scene, (w) => {
|
|
11161
11161
|
const x = w;
|
|
11162
11162
|
if (x != null && x.isCamera) {
|
|
11163
|
-
if (
|
|
11163
|
+
if (fc(x.gameObject), !x.activeAndEnabled) return;
|
|
11164
11164
|
if (x.tag === "MainCamera")
|
|
11165
11165
|
return _ = x, !0;
|
|
11166
11166
|
_ = x;
|
|
@@ -11506,7 +11506,7 @@ function fk(o) {
|
|
|
11506
11506
|
return o(!0);
|
|
11507
11507
|
Lv.push(o);
|
|
11508
11508
|
}
|
|
11509
|
-
function
|
|
11509
|
+
function $h(o) {
|
|
11510
11510
|
for (const t of Lv)
|
|
11511
11511
|
try {
|
|
11512
11512
|
t(o);
|
|
@@ -11516,7 +11516,7 @@ function Wh(o) {
|
|
|
11516
11516
|
pe.registerCallback(me.ContextRegistered, (o) => {
|
|
11517
11517
|
gk(o.context), mk(o.context), setTimeout(() => _k(o.context), 2e3);
|
|
11518
11518
|
});
|
|
11519
|
-
let Do, _m = !1,
|
|
11519
|
+
let Do, _m = !1, nc = "";
|
|
11520
11520
|
async function pk() {
|
|
11521
11521
|
if (Do) return Do;
|
|
11522
11522
|
if (Yn === "basic")
|
|
@@ -11526,9 +11526,9 @@ async function pk() {
|
|
|
11526
11526
|
}).catch((e) => {
|
|
11527
11527
|
Mi && console.error("License check failed", e);
|
|
11528
11528
|
});
|
|
11529
|
-
(t == null ? void 0 : t.status) === 200 ? (_m = !1, Mi && console.log("License check succeeded"), Yn = "pro",
|
|
11529
|
+
(t == null ? void 0 : t.status) === 200 ? (_m = !1, Mi && console.log("License check succeeded"), Yn = "pro", $h(!0)) : (t == null ? void 0 : t.status) === 403 ? ($h(!1), _m = !0, nc = await t.text()) : ($h(!1), Mi && console.log("License check failed with status " + (t == null ? void 0 : t.status)));
|
|
11530
11530
|
} catch (o) {
|
|
11531
|
-
|
|
11531
|
+
$h(!1), Mi && console.error("License check failed", o);
|
|
11532
11532
|
}
|
|
11533
11533
|
else Mi && console.log('Runtime license check is skipped because license is already applied as "' + Yn + '"');
|
|
11534
11534
|
}
|
|
@@ -11567,7 +11567,7 @@ async function mk(o) {
|
|
|
11567
11567
|
background-color: rgba(0,0,0,.3);
|
|
11568
11568
|
text-shadow: 0 0 2px black;
|
|
11569
11569
|
`;
|
|
11570
|
-
const l = a.style.cssText, c = (
|
|
11570
|
+
const l = a.style.cssText, c = (nc == null ? void 0 : nc.length) > 1 ? nc : "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.";
|
|
11571
11571
|
return a.innerHTML = c, setInterval(() => {
|
|
11572
11572
|
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);
|
|
11573
11573
|
}, 500), n;
|
|
@@ -11704,7 +11704,7 @@ async function _k(o) {
|
|
|
11704
11704
|
version: Qn,
|
|
11705
11705
|
generator: fg,
|
|
11706
11706
|
build_time: H0,
|
|
11707
|
-
public_key:
|
|
11707
|
+
public_key: cd
|
|
11708
11708
|
}, d = (i = navigator.sendBeacon) == null ? void 0 : i.call(navigator, c, JSON.stringify(h));
|
|
11709
11709
|
Mi && console.debug("Sent beacon: " + d);
|
|
11710
11710
|
}
|
|
@@ -11770,31 +11770,31 @@ function tb(o) {
|
|
|
11770
11770
|
return o;
|
|
11771
11771
|
}
|
|
11772
11772
|
const jo = S("debughotreload");
|
|
11773
|
-
let
|
|
11774
|
-
const
|
|
11773
|
+
let Uc = !1;
|
|
11774
|
+
const gc = /* @__PURE__ */ new Map();
|
|
11775
11775
|
function LL() {
|
|
11776
|
-
return
|
|
11776
|
+
return Uc;
|
|
11777
11777
|
}
|
|
11778
11778
|
function ib() {
|
|
11779
11779
|
return globalThis.NEEDLE_HOT_RELOAD_ENABLED === !0;
|
|
11780
11780
|
}
|
|
11781
11781
|
function vk(o) {
|
|
11782
11782
|
var i;
|
|
11783
|
-
if (
|
|
11783
|
+
if (Uc) {
|
|
11784
11784
|
jo && console.warn("[Needle Engine] Hot reloading is in progress, not registering instance", o);
|
|
11785
11785
|
return;
|
|
11786
11786
|
}
|
|
11787
11787
|
jo && console.log("[Needle Engine] Registering hot reload instance", o);
|
|
11788
11788
|
const e = o.constructor.name;
|
|
11789
|
-
|
|
11789
|
+
gc.has(e) ? (i = gc.get(e)) == null || i.push(o) : gc.set(e, [o]);
|
|
11790
11790
|
}
|
|
11791
11791
|
function wk(o) {
|
|
11792
|
-
if (
|
|
11792
|
+
if (Uc) {
|
|
11793
11793
|
jo && console.warn("[Needle Engine] Hot reloading is in progress, not unregistering instance", o);
|
|
11794
11794
|
return;
|
|
11795
11795
|
}
|
|
11796
11796
|
jo && console.log("[Needle Engine] Unregistering hot reload instance", o);
|
|
11797
|
-
const e = o.constructor.name, i =
|
|
11797
|
+
const e = o.constructor.name, i = gc.get(e);
|
|
11798
11798
|
if (!i) return;
|
|
11799
11799
|
const n = i.indexOf(o);
|
|
11800
11800
|
n !== -1 && i.splice(n, 1);
|
|
@@ -11819,13 +11819,13 @@ function DL(o) {
|
|
|
11819
11819
|
jo && console.log("[HMR] Apply changes", o, Object.keys(o)), xk();
|
|
11820
11820
|
for (const t of Object.keys(o))
|
|
11821
11821
|
try {
|
|
11822
|
-
|
|
11822
|
+
Uc = !0;
|
|
11823
11823
|
const e = k.get(t);
|
|
11824
11824
|
if (!e) {
|
|
11825
11825
|
jo && console.log("[HMR] Type not found: " + t);
|
|
11826
11826
|
continue;
|
|
11827
11827
|
}
|
|
11828
|
-
const i = o[t], n =
|
|
11828
|
+
const i = o[t], n = gc.get(i.name);
|
|
11829
11829
|
let s = "[Needle Engine] Updating type: " + t;
|
|
11830
11830
|
const a = (n == null ? void 0 : n.length) ?? -1;
|
|
11831
11831
|
a > 0 ? s += " x" + a : s += " (No instances registered)", console.log(s);
|
|
@@ -11862,7 +11862,7 @@ function DL(o) {
|
|
|
11862
11862
|
if (jo) console.error(e);
|
|
11863
11863
|
else return !1;
|
|
11864
11864
|
} finally {
|
|
11865
|
-
|
|
11865
|
+
Uc = !1, Un(Ji.Log, "Script changes applied (HMR)");
|
|
11866
11866
|
}
|
|
11867
11867
|
return !0;
|
|
11868
11868
|
}
|
|
@@ -11897,7 +11897,7 @@ class C extends I {
|
|
|
11897
11897
|
* @returns True if the GameObject is active
|
|
11898
11898
|
*/
|
|
11899
11899
|
static isActiveSelf(e) {
|
|
11900
|
-
return
|
|
11900
|
+
return nh(e);
|
|
11901
11901
|
}
|
|
11902
11902
|
/**
|
|
11903
11903
|
* 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)
|
|
@@ -12120,7 +12120,7 @@ class C extends I {
|
|
|
12120
12120
|
* @returns Array of components
|
|
12121
12121
|
*/
|
|
12122
12122
|
static getComponentsInChildren(e, i, n = null) {
|
|
12123
|
-
return
|
|
12123
|
+
return ih(e, i, n ?? void 0);
|
|
12124
12124
|
}
|
|
12125
12125
|
/**
|
|
12126
12126
|
* Gets a component of the specified type in the gameObject's parent hierarchy
|
|
@@ -12948,7 +12948,7 @@ class FL {
|
|
|
12948
12948
|
return !0;
|
|
12949
12949
|
}
|
|
12950
12950
|
}
|
|
12951
|
-
class
|
|
12951
|
+
class Wh {
|
|
12952
12952
|
constructor(t, e, i, n) {
|
|
12953
12953
|
/** The name of the animation */
|
|
12954
12954
|
r(this, "name");
|
|
@@ -12980,7 +12980,7 @@ function Mk(o, t) {
|
|
|
12980
12980
|
};
|
|
12981
12981
|
}
|
|
12982
12982
|
var fr = /* @__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))(fr || {}), zv = /* @__PURE__ */ ((o) => (o[o.Float = 1] = "Float", o[o.Int = 3] = "Int", o[o.Bool = 4] = "Bool", o[o.Trigger = 9] = "Trigger", o))(zv || {});
|
|
12983
|
-
const at = S("debuganimatorcontroller"),
|
|
12983
|
+
const at = S("debuganimatorcontroller"), Vh = S("debugrootmotion");
|
|
12984
12984
|
class Sn {
|
|
12985
12985
|
constructor(t) {
|
|
12986
12986
|
r(this, "_speed", 1);
|
|
@@ -13235,7 +13235,7 @@ class Sn {
|
|
|
13235
13235
|
const t = this._activeState.motion.action;
|
|
13236
13236
|
if (!t) return null;
|
|
13237
13237
|
const e = this._activeState.motion.clip.duration, i = e <= 0 ? 0 : Math.abs(t.time / e);
|
|
13238
|
-
return new
|
|
13238
|
+
return new Wh(this._activeState, i, e, this._speed);
|
|
13239
13239
|
}
|
|
13240
13240
|
/**
|
|
13241
13241
|
* Gets the animation action currently playing.
|
|
@@ -13388,7 +13388,7 @@ Exit Time: ` + d, a.hasExitTime);
|
|
|
13388
13388
|
i && this.setTimescale(i, e);
|
|
13389
13389
|
let n = !1;
|
|
13390
13390
|
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) {
|
|
13391
|
-
const a = i == null ? void 0 : i.getClip().duration, l = i.time / a, c = new
|
|
13391
|
+
const a = i == null ? void 0 : i.getClip().duration, l = i.time / a, c = new Wh(this._activeState, l, a, this._speed);
|
|
13392
13392
|
for (const h of e.behaviours)
|
|
13393
13393
|
h.instance && ((s = h.instance.onStateUpdate) == null || s.call(h.instance, this.animator, c, 0));
|
|
13394
13394
|
}
|
|
@@ -13420,7 +13420,7 @@ Exit Time: ` + d, a.hasExitTime);
|
|
|
13420
13420
|
}
|
|
13421
13421
|
}
|
|
13422
13422
|
if ((d = this._activeState) != null && d.behaviours && this._activeState.motion.action) {
|
|
13423
|
-
const w = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, x = this._activeState.motion.action.time / w, R = new
|
|
13423
|
+
const w = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, x = this._activeState.motion.action.time / w, R = new Wh(this._activeState, x, w, this._speed);
|
|
13424
13424
|
for (const M of this._activeState.behaviours)
|
|
13425
13425
|
(m = (p = M.instance) == null ? void 0 : p.onStateExit) == null || m.call(M.instance, this.animator, R, n);
|
|
13426
13426
|
}
|
|
@@ -13437,7 +13437,7 @@ Exit Time: ` + d, a.hasExitTime);
|
|
|
13437
13437
|
c.isRunning() && c.stop(), c.reset(), c.enabled = !0, this.setTimescale(c, t);
|
|
13438
13438
|
const w = t.motion.clip.duration;
|
|
13439
13439
|
if (c.time = s ? 0 : i * w, c.timeScale < 0 && (c.time = w - c.time), c.clampWhenFinished = !0, c.setLoop($p, 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) {
|
|
13440
|
-
const x = new
|
|
13440
|
+
const x = new Wh(t, i, w, this._speed);
|
|
13441
13441
|
for (const R of this._activeState.behaviours)
|
|
13442
13442
|
(_ = (b = R.instance) == null ? void 0 : b.onStateEnter) == null || _.call(R.instance, this.animator, x, n);
|
|
13443
13443
|
}
|
|
@@ -13592,7 +13592,7 @@ const Te = class Te {
|
|
|
13592
13592
|
if (t.getClip() !== this.clip) return;
|
|
13593
13593
|
Te.lastObjRotation[this.cacheId] || (Te.lastObjRotation[this.cacheId] = this.root.quaternion.clone());
|
|
13594
13594
|
const e = Te.lastObjRotation[this.cacheId];
|
|
13595
|
-
if (Te.spaceRotation[this.cacheId].copy(e),
|
|
13595
|
+
if (Te.spaceRotation[this.cacheId].copy(e), Vh) {
|
|
13596
13596
|
const i = new Lt().setFromQuaternion(e);
|
|
13597
13597
|
console.log("START", this.clip.name, $.toDegrees(i.y), this.root.position.z);
|
|
13598
13598
|
}
|
|
@@ -13603,17 +13603,17 @@ const Te = class Te {
|
|
|
13603
13603
|
handlePosition(t, e) {
|
|
13604
13604
|
if (e) {
|
|
13605
13605
|
const i = this.root;
|
|
13606
|
-
|
|
13606
|
+
Vh && i.add(new Ii()), Te.lastObjPosition[this.cacheId] || (Te.lastObjPosition[this.cacheId] = this.root.position.clone());
|
|
13607
13607
|
const n = new v(), s = new v();
|
|
13608
13608
|
this.positionWrapper = new ob(e, (a, l) => {
|
|
13609
13609
|
const c = this.action.getEffectiveWeight();
|
|
13610
|
-
return
|
|
13610
|
+
return Vh && 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;
|
|
13611
13611
|
});
|
|
13612
13612
|
}
|
|
13613
13613
|
}
|
|
13614
13614
|
handleRotation(t, e) {
|
|
13615
13615
|
if (e) {
|
|
13616
|
-
if (
|
|
13616
|
+
if (Vh) {
|
|
13617
13617
|
const a = e.values, l = new Lt().setFromQuaternion(new W(a[0], a[1], a[2], a[3]));
|
|
13618
13618
|
console.log(t.name, e.name, "FIRST ROTATION IN TRACK", $.toDegrees(l.y));
|
|
13619
13619
|
const c = e.values.length - 4, h = new W().set(a[c], a[c + 1], a[c + 2], a[c + 3]), d = new Lt().setFromQuaternion(h);
|
|
@@ -14012,12 +14012,12 @@ const rb = Symbol("previous-visibility"), br = class br extends Ns {
|
|
|
14012
14012
|
};
|
|
14013
14013
|
r(br, "_userSet", /* @__PURE__ */ new Set());
|
|
14014
14014
|
let Wa = br;
|
|
14015
|
-
var Ik = Object.defineProperty, Lk = Object.getOwnPropertyDescriptor,
|
|
14015
|
+
var Ik = Object.defineProperty, Lk = Object.getOwnPropertyDescriptor, oh = (o, t, e, i) => {
|
|
14016
14016
|
for (var n = i > 1 ? void 0 : i ? Lk(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
14017
14017
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
14018
14018
|
return i && n && Ik(t, e, n), n;
|
|
14019
14019
|
};
|
|
14020
|
-
const
|
|
14020
|
+
const Hh = S("debuggroundprojection");
|
|
14021
14021
|
class Qs extends L {
|
|
14022
14022
|
constructor() {
|
|
14023
14023
|
super(...arguments);
|
|
@@ -14060,7 +14060,7 @@ class Qs extends L {
|
|
|
14060
14060
|
/** @internal */
|
|
14061
14061
|
onEnable() {
|
|
14062
14062
|
this.context.time.frameCount > 0 && this.applyOnAwake && this.updateAndCreate(), this._watcher || (this._watcher = new Io(this.context.scene, "background"), this._watcher.subscribeWrite((e) => {
|
|
14063
|
-
|
|
14063
|
+
Hh && console.log("Background changed", this.context.scene.background), this._needsTextureUpdate = !0;
|
|
14064
14064
|
}));
|
|
14065
14065
|
}
|
|
14066
14066
|
/** @internal */
|
|
@@ -14107,7 +14107,7 @@ class Qs extends L {
|
|
|
14107
14107
|
let i = !0;
|
|
14108
14108
|
const n = 0, s = e !== this._lastBackground || this._height !== this._lastHeight || this._radius !== this._lastRadius;
|
|
14109
14109
|
if (!this._projection || s) {
|
|
14110
|
-
|
|
14110
|
+
Hh && console.log("Create/Update Ground Projection", e.name), (u = this._projection) == null || u.removeFromParent();
|
|
14111
14111
|
try {
|
|
14112
14112
|
this._projection = new Qa(e, this._height, this._radius, 64);
|
|
14113
14113
|
} catch (p) {
|
|
@@ -14126,7 +14126,7 @@ class Qs extends L {
|
|
|
14126
14126
|
const y = Ye(this.gameObject).x;
|
|
14127
14127
|
g.y = m + this._height * y - n, g.z = p.min.z + (p.max.z - p.min.z) * 0.5, yt(this._projection, g);
|
|
14128
14128
|
}
|
|
14129
|
-
|
|
14129
|
+
Hh && H.DrawWireBox3(p, 65280, 5);
|
|
14130
14130
|
}
|
|
14131
14131
|
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;
|
|
14132
14132
|
}
|
|
@@ -14136,7 +14136,7 @@ class Qs extends L {
|
|
|
14136
14136
|
if (!e)
|
|
14137
14137
|
return;
|
|
14138
14138
|
} else return;
|
|
14139
|
-
this._needsTextureUpdate = !1,
|
|
14139
|
+
this._needsTextureUpdate = !1, Hh && console.log("Update Blurriness", i), this._blurrynessShader ?? (this._blurrynessShader = new Cn({
|
|
14140
14140
|
name: "GroundProjectionBlurriness",
|
|
14141
14141
|
uniforms: {
|
|
14142
14142
|
map: { value: e },
|
|
@@ -14151,19 +14151,19 @@ class Qs extends L {
|
|
|
14151
14151
|
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 = yn.copyTexture(e, this._blurrynessShader), this._projection.material.depthTest = !0, this._projection.material.depthWrite = !1;
|
|
14152
14152
|
}
|
|
14153
14153
|
}
|
|
14154
|
-
|
|
14154
|
+
oh([
|
|
14155
14155
|
f()
|
|
14156
14156
|
], Qs.prototype, "applyOnAwake", 2);
|
|
14157
|
-
|
|
14157
|
+
oh([
|
|
14158
14158
|
f()
|
|
14159
14159
|
], Qs.prototype, "autoFit", 2);
|
|
14160
|
-
|
|
14160
|
+
oh([
|
|
14161
14161
|
f()
|
|
14162
14162
|
], Qs.prototype, "radius", 1);
|
|
14163
|
-
|
|
14163
|
+
oh([
|
|
14164
14164
|
f()
|
|
14165
14165
|
], Qs.prototype, "height", 1);
|
|
14166
|
-
|
|
14166
|
+
oh([
|
|
14167
14167
|
f()
|
|
14168
14168
|
], Qs.prototype, "arBlending", 1);
|
|
14169
14169
|
const Dk = `
|
|
@@ -14437,7 +14437,7 @@ var j;
|
|
|
14437
14437
|
t.load = n;
|
|
14438
14438
|
})(o.POSTPROCESSING_AO || (o.POSTPROCESSING_AO = {}));
|
|
14439
14439
|
})(j || (j = {}));
|
|
14440
|
-
var kt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(kt || {}), Ig = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Ig || {}), et = /* @__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))(et || {}),
|
|
14440
|
+
var kt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(kt || {}), Ig = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Ig || {}), et = /* @__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))(et || {}), sc = /* @__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))(sc || {});
|
|
14441
14441
|
const zt = function(o, t) {
|
|
14442
14442
|
return function(e, i, n) {
|
|
14443
14443
|
Nk(e, i, n, o, t);
|
|
@@ -14870,8 +14870,8 @@ Bi([
|
|
|
14870
14870
|
let _t = yi;
|
|
14871
14871
|
new v();
|
|
14872
14872
|
new v();
|
|
14873
|
-
const ho = S("debugsync"),
|
|
14874
|
-
ev(
|
|
14873
|
+
const ho = S("debugsync"), Nc = "STRS";
|
|
14874
|
+
ev(Nc, Cs.getRootAsSyncedTransformModel);
|
|
14875
14875
|
const In = new lg();
|
|
14876
14876
|
function Nv(o, t, e = !0) {
|
|
14877
14877
|
In.clear();
|
|
@@ -14880,13 +14880,13 @@ function Nv(o, t, e = !0) {
|
|
|
14880
14880
|
const n = t.worldPosition, s = t.worldEuler, a = t.gameObject.scale;
|
|
14881
14881
|
Cs.addTransform(In, Uv.createTransform(In, n.x, n.y, n.z, s.x, s.y, s.z, a.x, a.y, a.z));
|
|
14882
14882
|
const l = Cs.endSyncedTransformModel(In);
|
|
14883
|
-
return In.finish(l,
|
|
14883
|
+
return In.finish(l, Nc), In.asUint8Array();
|
|
14884
14884
|
}
|
|
14885
|
-
let wm = 0,
|
|
14885
|
+
let wm = 0, yc = 0;
|
|
14886
14886
|
Uk((o) => {
|
|
14887
14887
|
var i;
|
|
14888
14888
|
const e = ((i = o.connection.currentServerUrl) == null ? void 0 : i.includes("glitch")) ? 10 : 40;
|
|
14889
|
-
|
|
14889
|
+
yc = Math.floor(wm / e), wm = 0, ho && yc > 0 && console.log("Sync Transform Fast Interval", yc);
|
|
14890
14890
|
});
|
|
14891
14891
|
class Vs extends L {
|
|
14892
14892
|
constructor() {
|
|
@@ -14954,11 +14954,11 @@ class Vs extends L {
|
|
|
14954
14954
|
}
|
|
14955
14955
|
/** @internal */
|
|
14956
14956
|
awake() {
|
|
14957
|
-
ho && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new v(), this._targetRotation = new W(), this.lastPosition = new v(), this.lastRotation = new W(), this.lastScale = new v(), this.rb = C.getComponentInChildren(this.gameObject, _t), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new tv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(ne.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(
|
|
14957
|
+
ho && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new v(), this._targetRotation = new W(), this.lastPosition = new v(), this.lastRotation = new W(), this.lastScale = new v(), this.rb = C.getComponentInChildren(this.gameObject, _t), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new tv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(ne.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Nc, this.receivedDataCallback);
|
|
14958
14958
|
}
|
|
14959
14959
|
/** @internal */
|
|
14960
14960
|
onDestroy() {
|
|
14961
|
-
this.syncDestroy && pv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(ne.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(
|
|
14961
|
+
this.syncDestroy && pv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(ne.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(Nc, this.receivedDataCallback);
|
|
14962
14962
|
}
|
|
14963
14963
|
/**
|
|
14964
14964
|
* Attempts to retrieve and apply the last known network state for this transform
|
|
@@ -15037,7 +15037,7 @@ class Vs extends L {
|
|
|
15037
15037
|
this.rb && this.overridePhysics && this._wasKinematic !== void 0 && (ho && console.log("reset kinematic", this.rb.name, this._wasKinematic), this.rb.isKinematic = this._wasKinematic);
|
|
15038
15038
|
const s = 10, a = this.rb || this.fastMode;
|
|
15039
15039
|
if (this._needsUpdate && (this.context.time.frameCount % s === 0 || a)) {
|
|
15040
|
-
if (wm++, a &&
|
|
15040
|
+
if (wm++, a && yc > 0 && this.context.time.frameCount % yc !== 0) return;
|
|
15041
15041
|
ho && console.debug("[SyncedTransform] Send update", this.context.connection.connectionId, this.guid, this.gameObject.name, this.gameObject.guid), this._needsUpdate = !1;
|
|
15042
15042
|
const l = Nv(this.guid, this, !!a);
|
|
15043
15043
|
this.context.connection.sendBinary(l);
|
|
@@ -16080,7 +16080,7 @@ var oM = Object.defineProperty, Ue = (o, t, e, i) => {
|
|
|
16080
16080
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
16081
16081
|
return n && oM(t, e, n), n;
|
|
16082
16082
|
};
|
|
16083
|
-
const qi = S("debugorbit"), np = S("freecam"), Ul = S("debugcamerafit"),
|
|
16083
|
+
const qi = S("debugorbit"), np = S("freecam"), Ul = S("debugcamerafit"), Gh = S("smoothcam"), rM = { LEFT: "", UP: "", RIGHT: "", BOTTOM: "" };
|
|
16084
16084
|
let sp;
|
|
16085
16085
|
class Qd extends CustomEvent {
|
|
16086
16086
|
constructor(t, e) {
|
|
@@ -16348,9 +16348,9 @@ class xe extends L {
|
|
|
16348
16348
|
}
|
|
16349
16349
|
}
|
|
16350
16350
|
if (this._controls) {
|
|
16351
|
-
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 : rM, 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, np || (((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
|
|
16351
|
+
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 : rM, 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, np || (((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 Gh == "number" || Gh === !0) {
|
|
16352
16352
|
this._controls.enableDamping = !0;
|
|
16353
|
-
const l = typeof
|
|
16353
|
+
const l = typeof Gh == "number" ? Gh : 0.99;
|
|
16354
16354
|
this._controls.dampingFactor = Math.max(1e-3, 1 - Math.min(1, l));
|
|
16355
16355
|
}
|
|
16356
16356
|
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 || (!np && ((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));
|
|
@@ -17799,7 +17799,7 @@ Incoming:`, this._incomingCalls), l;
|
|
|
17799
17799
|
// }
|
|
17800
17800
|
};
|
|
17801
17801
|
r(vr, "instances", /* @__PURE__ */ new Map());
|
|
17802
|
-
let
|
|
17802
|
+
let _c = vr;
|
|
17803
17803
|
class Wu extends ng {
|
|
17804
17804
|
constructor(e, i) {
|
|
17805
17805
|
super();
|
|
@@ -17854,8 +17854,8 @@ class Wu extends ng {
|
|
|
17854
17854
|
});
|
|
17855
17855
|
if (gM(e)) {
|
|
17856
17856
|
const n = e;
|
|
17857
|
-
e = n.context, i =
|
|
17858
|
-
} else typeof i == "string" && (i =
|
|
17857
|
+
e = n.context, i = _c.getOrCreate(n.context, n.guid);
|
|
17858
|
+
} else typeof i == "string" && (i = _c.getOrCreate(e, i));
|
|
17859
17859
|
if (e) {
|
|
17860
17860
|
if (!(e instanceof ee)) throw new Error("Failed to create NetworkedStreams because context is not an instance of Context");
|
|
17861
17861
|
} else throw new Error("Failed to create NetworkedStreams because context is undefined");
|
|
@@ -17866,7 +17866,7 @@ class Wu extends ng {
|
|
|
17866
17866
|
* Create a new NetworkedStreams instance
|
|
17867
17867
|
*/
|
|
17868
17868
|
static create(e, i) {
|
|
17869
|
-
const n =
|
|
17869
|
+
const n = _c.getOrCreate(e.context, i || e.context.connection.connectionId || e.guid);
|
|
17870
17870
|
return new Wu(e.context, n);
|
|
17871
17871
|
}
|
|
17872
17872
|
startSendingStream(e) {
|
|
@@ -18384,7 +18384,7 @@ var IM = Object.defineProperty, Ug = (o, t, e, i) => {
|
|
|
18384
18384
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
18385
18385
|
return n && IM(t, e, n), n;
|
|
18386
18386
|
};
|
|
18387
|
-
class
|
|
18387
|
+
class rh extends L {
|
|
18388
18388
|
constructor() {
|
|
18389
18389
|
super(...arguments);
|
|
18390
18390
|
r(this, "length", 1);
|
|
@@ -18397,7 +18397,7 @@ class ah extends L {
|
|
|
18397
18397
|
* If marked as a gizmo, it will only be shown when gizmos are enabled in the global parameters.
|
|
18398
18398
|
*/
|
|
18399
18399
|
onEnable() {
|
|
18400
|
-
if (this.isGizmo && !
|
|
18400
|
+
if (this.isGizmo && !th) return;
|
|
18401
18401
|
this._axes || (this._axes = new Ii(this.length)), this._axes.layers.disableAll(), this._axes.layers.set(this.layer), this.gameObject.add(this._axes);
|
|
18402
18402
|
const e = this._axes.material;
|
|
18403
18403
|
e && e.depthTest !== void 0 && (e.depthTest = this.depthTest);
|
|
@@ -18411,13 +18411,13 @@ class ah extends L {
|
|
|
18411
18411
|
}
|
|
18412
18412
|
Ug([
|
|
18413
18413
|
f()
|
|
18414
|
-
],
|
|
18414
|
+
], rh.prototype, "length");
|
|
18415
18415
|
Ug([
|
|
18416
18416
|
f()
|
|
18417
|
-
],
|
|
18417
|
+
], rh.prototype, "depthTest");
|
|
18418
18418
|
Ug([
|
|
18419
18419
|
f()
|
|
18420
|
-
],
|
|
18420
|
+
], rh.prototype, "isGizmo");
|
|
18421
18421
|
class Qv extends L {
|
|
18422
18422
|
constructor() {
|
|
18423
18423
|
super(...arguments);
|
|
@@ -18590,7 +18590,7 @@ _i([
|
|
|
18590
18590
|
_i([
|
|
18591
18591
|
f()
|
|
18592
18592
|
], Fi.prototype, "filter");
|
|
18593
|
-
class
|
|
18593
|
+
class ah extends Fi {
|
|
18594
18594
|
constructor() {
|
|
18595
18595
|
super(...arguments);
|
|
18596
18596
|
r(this, "radius", 0.5);
|
|
@@ -18619,10 +18619,10 @@ class lh extends Fi {
|
|
|
18619
18619
|
_i([
|
|
18620
18620
|
zt(),
|
|
18621
18621
|
f()
|
|
18622
|
-
],
|
|
18622
|
+
], ah.prototype, "radius");
|
|
18623
18623
|
_i([
|
|
18624
18624
|
f(v)
|
|
18625
|
-
],
|
|
18625
|
+
], ah.prototype, "center");
|
|
18626
18626
|
const Ng = class Yv extends Fi {
|
|
18627
18627
|
constructor() {
|
|
18628
18628
|
super(...arguments);
|
|
@@ -19133,10 +19133,10 @@ const ub = S("debugdeletable"), Ia = class Ia extends Hs {
|
|
|
19133
19133
|
}
|
|
19134
19134
|
};
|
|
19135
19135
|
r(Ia, "_instances", []);
|
|
19136
|
-
let
|
|
19136
|
+
let $c = Ia;
|
|
19137
19137
|
class Jv extends L {
|
|
19138
19138
|
update() {
|
|
19139
|
-
for (const t of
|
|
19139
|
+
for (const t of $c._instances) {
|
|
19140
19140
|
const e = this.gameObject;
|
|
19141
19141
|
if (t.isInBox(e) === !0) {
|
|
19142
19142
|
const n = C.getComponentInParent(this.gameObject, Xu);
|
|
@@ -19765,7 +19765,7 @@ const mu = class mu {
|
|
|
19765
19765
|
r(this, "_requireUpdateGroundPlane", !0);
|
|
19766
19766
|
r(this, "_didDragOnGroundPlaneLastFrame", !1);
|
|
19767
19767
|
this._camera = t;
|
|
19768
|
-
const e = new
|
|
19768
|
+
const e = new Ec(mu.geometry), i = e.material;
|
|
19769
19769
|
i.color = new le(0.4, 0.4, 0.4), e.layers.set(2), e.name = "line", e.scale.y = 1, this._groundLine = e;
|
|
19770
19770
|
const n = new bu(0.5, 22, 22), s = new Me({ color: i.color }), a = new G(n, s);
|
|
19771
19771
|
a.visible = !1, a.layers.set(2), this._groundMarker = a;
|
|
@@ -19919,7 +19919,7 @@ var pb;
|
|
|
19919
19919
|
}
|
|
19920
19920
|
o.onDetermineModelMimetype = e;
|
|
19921
19921
|
})(pb || (pb = {}));
|
|
19922
|
-
const
|
|
19922
|
+
const bc = S("debugfileformat");
|
|
19923
19923
|
function HM(o) {
|
|
19924
19924
|
switch ((o.split(".").pop() || o).toUpperCase()) {
|
|
19925
19925
|
case "GLTF":
|
|
@@ -19949,7 +19949,7 @@ async function GM(o, t) {
|
|
|
19949
19949
|
const a = o, l = new URL(a, globalThis.location.href);
|
|
19950
19950
|
let c = null;
|
|
19951
19951
|
const h = l.searchParams.get("filetype");
|
|
19952
|
-
switch (h && (c = h.toUpperCase()), c != null && c.length || (c = (s = l.pathname.split(".").pop()) == null ? void 0 : s.toUpperCase()),
|
|
19952
|
+
switch (h && (c = h.toUpperCase()), c != null && c.length || (c = (s = l.pathname.split(".").pop()) == null ? void 0 : s.toUpperCase()), bc && console.warn(`[Needle Engine] Try to use file extension to determine type: '${c}'`), c) {
|
|
19953
19953
|
case "GLTF":
|
|
19954
19954
|
return "model/gltf+json";
|
|
19955
19955
|
case "VRM":
|
|
@@ -19981,7 +19981,7 @@ async function GM(o, t) {
|
|
|
19981
19981
|
}).catch((a) => null);
|
|
19982
19982
|
if (n != null && n.ok) {
|
|
19983
19983
|
const a = await n.arrayBuffer(), l = qM(i, a, n);
|
|
19984
|
-
return
|
|
19984
|
+
return bc && console.log("[Needle Engine] Determined file type from header: " + l), l;
|
|
19985
19985
|
}
|
|
19986
19986
|
return "unknown";
|
|
19987
19987
|
}
|
|
@@ -19989,7 +19989,7 @@ function qM(o, t, e) {
|
|
|
19989
19989
|
if (t.byteLength < 4)
|
|
19990
19990
|
return "unknown";
|
|
19991
19991
|
const i = new Uint8Array(t);
|
|
19992
|
-
if (
|
|
19992
|
+
if (bc && console.warn(`[Needle Engine] Trying to determine file type from binary data
|
|
19993
19993
|
`, '"' + new TextDecoder().decode(t) + `"
|
|
19994
19994
|
`, i), i[0] == 103 && i[1] == 108 && i[2] == 84 && i[3] == 70 && (i[4] == 10 || i[4] === 2))
|
|
19995
19995
|
return console.debug("GLTF detected"), "model/gltf+json";
|
|
@@ -20043,9 +20043,9 @@ function qM(o, t, e) {
|
|
|
20043
20043
|
bytes: i
|
|
20044
20044
|
});
|
|
20045
20045
|
if (s)
|
|
20046
|
-
return
|
|
20046
|
+
return bc && console.debug(`Mimetype callback returned: ${s}`), s;
|
|
20047
20047
|
}
|
|
20048
|
-
if (U() ||
|
|
20048
|
+
if (U() || bc) {
|
|
20049
20049
|
const n = new TextDecoder().decode(t.slice(0, Math.min(t.byteLength, 32)));
|
|
20050
20050
|
console.warn(`Could not determine file type.
|
|
20051
20051
|
|
|
@@ -20284,7 +20284,7 @@ class Go extends L {
|
|
|
20284
20284
|
break;
|
|
20285
20285
|
}
|
|
20286
20286
|
}
|
|
20287
|
-
|
|
20287
|
+
zc.assignAnimationsFromFile(s, {
|
|
20288
20288
|
createAnimationComponent: (p) => en(p, ti)
|
|
20289
20289
|
});
|
|
20290
20290
|
const h = new QM({
|
|
@@ -20594,7 +20594,7 @@ class tR {
|
|
|
20594
20594
|
}
|
|
20595
20595
|
typeof window < "u" && window.addEventListener("unhandledrejection", (o) => {
|
|
20596
20596
|
});
|
|
20597
|
-
const fs = gt,
|
|
20597
|
+
const fs = gt, qh = "$___Export_Components", iR = "NEEDLE_components";
|
|
20598
20598
|
var n0;
|
|
20599
20599
|
n0 = _a;
|
|
20600
20600
|
class nR {
|
|
@@ -20648,12 +20648,12 @@ class ow {
|
|
|
20648
20648
|
serializeUserData(t, e) {
|
|
20649
20649
|
var n;
|
|
20650
20650
|
const i = (n = t.userData) == null ? void 0 : n.components;
|
|
20651
|
-
return !i || i.length <= 0 ? !1 : (delete t.userData.components, t[
|
|
20651
|
+
return !i || i.length <= 0 ? !1 : (delete t.userData.components, t[qh] = i, !0);
|
|
20652
20652
|
}
|
|
20653
20653
|
afterSerializeUserData(t, e) {
|
|
20654
|
-
if (t.type === "Scene" && fs && console.log("DONE", JSON.stringify(e)), t[
|
|
20655
|
-
const i = t[
|
|
20656
|
-
delete t[
|
|
20654
|
+
if (t.type === "Scene" && fs && console.log("DONE", JSON.stringify(e)), t[qh] === void 0) return;
|
|
20655
|
+
const i = t[qh];
|
|
20656
|
+
delete t[qh], i !== null && (t.userData.components = i);
|
|
20657
20657
|
}
|
|
20658
20658
|
writeNode(t, e) {
|
|
20659
20659
|
const i = this.writer.json.nodes.length;
|
|
@@ -20840,7 +20840,7 @@ pe.registerCallback(me.ContextCreated, (o) => {
|
|
|
20840
20840
|
class Pm extends L {
|
|
20841
20841
|
constructor() {
|
|
20842
20842
|
super(...arguments);
|
|
20843
|
-
r(this, "ambientMode",
|
|
20843
|
+
r(this, "ambientMode", pc.Skybox);
|
|
20844
20844
|
r(this, "ambientLight");
|
|
20845
20845
|
r(this, "ambientTrilight");
|
|
20846
20846
|
r(this, "ambientIntensity", 1);
|
|
@@ -20877,13 +20877,13 @@ class Pm extends L {
|
|
|
20877
20877
|
return 2.2 * $.lerp(0, 1.33, i);
|
|
20878
20878
|
}
|
|
20879
20879
|
onEnable() {
|
|
20880
|
-
if (xa && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode ==
|
|
20880
|
+
if (xa && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode == pc.Flat) {
|
|
20881
20881
|
if (this.ambientLight && !this._ambientLightObj) {
|
|
20882
20882
|
const e = this.calculateIntensityFactor(this.ambientLight);
|
|
20883
20883
|
this._ambientLightObj = new yS(this.ambientLight, this.ambientIntensity * e), xa && console.log("Created ambient light", this.sourceId, this._ambientLightObj, this.ambientIntensity, e);
|
|
20884
20884
|
}
|
|
20885
20885
|
this._ambientLightObj && this.gameObject.add(this._ambientLightObj);
|
|
20886
|
-
} else if (this.ambientMode ===
|
|
20886
|
+
} else if (this.ambientMode === pc.Trilight) {
|
|
20887
20887
|
if (this.ambientTrilight) {
|
|
20888
20888
|
const e = this.ambientTrilight[0], i = this.ambientTrilight[this.ambientTrilight.length - 1], n = this.calculateIntensityFactor(i);
|
|
20889
20889
|
this._hemisphereLightObj = new _S(i, e, this.ambientIntensity * n), this.gameObject.add(this._hemisphereLightObj), xa && console.log("Created hemisphere ambient light", this.sourceId, this._hemisphereLightObj, this.ambientIntensity, n);
|
|
@@ -21530,7 +21530,7 @@ const ci = S("debuginstancing"), La = class La {
|
|
|
21530
21530
|
autoUpdateInstanceMatrix(t) {
|
|
21531
21531
|
const e = t.matrixWorld.multiplyMatrices.bind(t.matrixWorld), i = t.matrixWorld.clone(), n = (s, a) => {
|
|
21532
21532
|
const l = e(s, a);
|
|
21533
|
-
return (t[
|
|
21533
|
+
return (t[Fc] || i.equals(l) === !1) && (i.copy(l), t[Fc] = !0), l;
|
|
21534
21534
|
};
|
|
21535
21535
|
t.matrixWorld.multiplyMatrices = n;
|
|
21536
21536
|
}
|
|
@@ -21543,7 +21543,7 @@ r(La, "instance", new La()), /** This is the initial instance count when creatin
|
|
|
21543
21543
|
* @returns The initial instance count
|
|
21544
21544
|
* */
|
|
21545
21545
|
r(La, "getStartInstanceCount", (t) => 4);
|
|
21546
|
-
let
|
|
21546
|
+
let Wc = La;
|
|
21547
21547
|
const Da = class Da {
|
|
21548
21548
|
constructor(t, e) {
|
|
21549
21549
|
/** The object that is being instanced */
|
|
@@ -21653,14 +21653,14 @@ class uw {
|
|
|
21653
21653
|
r(this, "_needUpdateBounds", !1);
|
|
21654
21654
|
r(this, "_debugMaterial", null);
|
|
21655
21655
|
r(this, "onBeforeRender", () => {
|
|
21656
|
-
this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[
|
|
21656
|
+
this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[ic] === !0 && (ci === "verbose" && console.log("Update instancing bounds", this.name, this._batchedMesh.matrixWorldNeedsUpdate), this.updateBounds());
|
|
21657
21657
|
});
|
|
21658
21658
|
r(this, "onAfterRender", () => {
|
|
21659
21659
|
this._batchedMesh.layers.disableAll();
|
|
21660
21660
|
});
|
|
21661
21661
|
this.name = t, this.geometry = e, this.material = i, this._context = s, this._maxInstanceCount = Math.max(2, n), ci && (this._debugMaterial = _b());
|
|
21662
21662
|
const a = this.tryEstimateVertexCountSize(this._maxInstanceCount, [e], n);
|
|
21663
|
-
this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new $y(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[
|
|
21663
|
+
this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new $y(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[ic] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof d0 && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), s.pre_render_callbacks.push(this.onBeforeRender), s.post_render_callbacks.push(this.onAfterRender), ci && console.log(`Instanced renderer created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${t}"`);
|
|
21664
21664
|
}
|
|
21665
21665
|
/** The three instanced mesh
|
|
21666
21666
|
* @link https://threejs.org/docs/#api/en/objects/InstancedMesh
|
|
@@ -21780,7 +21780,7 @@ Max vertex count ${this._maxVertexCount} -> ${s}
|
|
|
21780
21780
|
Max index count ${this._maxIndexCount} -> ${a}`);
|
|
21781
21781
|
this._maxVertexCount = s, this._maxIndexCount = a;
|
|
21782
21782
|
const l = new $y(i, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material);
|
|
21783
|
-
l.layers = this._batchedMesh.layers, l.castShadow = this._batchedMesh.castShadow, l.receiveShadow = this._batchedMesh.receiveShadow, l.visible = this._batchedMesh.visible, l[
|
|
21783
|
+
l.layers = this._batchedMesh.layers, l.castShadow = this._batchedMesh.castShadow, l.receiveShadow = this._batchedMesh.receiveShadow, l.visible = this._batchedMesh.visible, l[ic] = this._batchedMesh[ic], 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;
|
|
21784
21784
|
const c = [...this._handles];
|
|
21785
21785
|
this._handles = [];
|
|
21786
21786
|
for (const u of c)
|
|
@@ -21962,7 +21962,7 @@ var vR = Object.defineProperty, Ks = (o, t, e, i) => {
|
|
|
21962
21962
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
21963
21963
|
return n && vR(t, e, n), n;
|
|
21964
21964
|
};
|
|
21965
|
-
const
|
|
21965
|
+
const oc = S("debugrenderer"), bb = S("debugskinnedmesh"), vb = S("noinstancing"), wR = S("wireframe");
|
|
21966
21966
|
class xR {
|
|
21967
21967
|
constructor() {
|
|
21968
21968
|
r(this, "path", null);
|
|
@@ -22032,7 +22032,7 @@ class SR {
|
|
|
22032
22032
|
return this._changed;
|
|
22033
22033
|
}
|
|
22034
22034
|
set changed(t) {
|
|
22035
|
-
t === !0 &&
|
|
22035
|
+
t === !0 && oc && console.warn("SharedMaterials have changed: " + this._renderer.name, this), this._changed = t;
|
|
22036
22036
|
}
|
|
22037
22037
|
is(t) {
|
|
22038
22038
|
return this._renderer === t;
|
|
@@ -22201,7 +22201,7 @@ const ss = class vd extends L {
|
|
|
22201
22201
|
this.enabled || this.setVisibility(!1);
|
|
22202
22202
|
}
|
|
22203
22203
|
awake() {
|
|
22204
|
-
if (this._firstFrame = this.context.time.frame,
|
|
22204
|
+
if (this._firstFrame = this.context.time.frame, oc && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor && oc && this.probeAnchor.add(new Ii(0.2)), this._reflectionProbe = null, this.isMultiMaterialObject(this.gameObject)) {
|
|
22205
22205
|
for (const e of this.gameObject.children)
|
|
22206
22206
|
this.context.addBeforeRenderListener(e, this.onBeforeRenderThree), e.layers.mask = this.gameObject.layers.mask;
|
|
22207
22207
|
if (this.renderOrder !== void 0) {
|
|
@@ -22249,7 +22249,7 @@ const ss = class vd extends L {
|
|
|
22249
22249
|
}
|
|
22250
22250
|
}
|
|
22251
22251
|
} else
|
|
22252
|
-
|
|
22252
|
+
oc && console.warn("Lightmap not found", this.sourceId, this.lightmapIndex);
|
|
22253
22253
|
}
|
|
22254
22254
|
}
|
|
22255
22255
|
/**
|
|
@@ -22274,7 +22274,7 @@ const ss = class vd extends L {
|
|
|
22274
22274
|
if (this._isInstancingEnabled === e) return e && (this._handles === void 0 || this._handles != null && this._handles.length > 0);
|
|
22275
22275
|
if (this._isInstancingEnabled = e, e) {
|
|
22276
22276
|
if (this.enableInstancing === void 0 && (this.enableInstancing = !0), this._handles === void 0) {
|
|
22277
|
-
if (this._handles =
|
|
22277
|
+
if (this._handles = Wc.instance.setup(this, this.gameObject, this.context, null, { rend: this, foundMeshes: 0, useMatrixWorldAutoUpdate: this.useInstanceMatrixWorldAutoUpdate() }), this._handles)
|
|
22278
22278
|
return C.markAsInstancedRendered(this.gameObject, !0), !0;
|
|
22279
22279
|
} else if (this._handles !== null) {
|
|
22280
22280
|
for (const i of this._handles)
|
|
@@ -22321,7 +22321,7 @@ const ss = class vd extends L {
|
|
|
22321
22321
|
onBeforeRender() {
|
|
22322
22322
|
var e, i, n;
|
|
22323
22323
|
if (this.gameObject) {
|
|
22324
|
-
if (this._probeAnchorLastFrame !== this.probeAnchor && ((e = this._reflectionProbe) == null || e.onUnset(this), this.updateReflectionProbe()),
|
|
22324
|
+
if (this._probeAnchorLastFrame !== this.probeAnchor && ((e = this._reflectionProbe) == null || e.onUnset(this), this.updateReflectionProbe()), oc == this.name && this.gameObject instanceof G) {
|
|
22325
22325
|
this.gameObject.geometry.computeBoundingSphere();
|
|
22326
22326
|
const s = q(this.gameObject.geometry.boundingSphere.center).applyMatrix4(this.gameObject.matrixWorld);
|
|
22327
22327
|
H.DrawWireSphere(s, this.gameObject.geometry.boundingSphere.radius, 56831);
|
|
@@ -22331,8 +22331,8 @@ const ss = class vd extends L {
|
|
|
22331
22331
|
this.applySettings(s);
|
|
22332
22332
|
else
|
|
22333
22333
|
this.applySettings(this.gameObject);
|
|
22334
|
-
if (this.sharedMaterials.changed && (this.sharedMaterials.changed = !1, this.applyLightmapping()), (n = this._handles) != null && n.length && this.gameObject[
|
|
22335
|
-
this.gameObject[
|
|
22334
|
+
if (this.sharedMaterials.changed && (this.sharedMaterials.changed = !1, this.applyLightmapping()), (n = this._handles) != null && n.length && this.gameObject[Fc] === !0) {
|
|
22335
|
+
this.gameObject[Fc] = !1;
|
|
22336
22336
|
for (let a = this._handles.length - 1; a >= 0; a--)
|
|
22337
22337
|
this._handles[a].updateInstanceMatrix();
|
|
22338
22338
|
this.gameObject.matrixWorldNeedsUpdate = !1;
|
|
@@ -22456,7 +22456,7 @@ var CR = Object.defineProperty, pw = (o, t, e, i) => {
|
|
|
22456
22456
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
22457
22457
|
return n && CR(t, e, n), n;
|
|
22458
22458
|
};
|
|
22459
|
-
const
|
|
22459
|
+
const Xh = S("debuggltfexport");
|
|
22460
22460
|
class mw extends Hs {
|
|
22461
22461
|
constructor() {
|
|
22462
22462
|
super(...arguments);
|
|
@@ -22471,7 +22471,7 @@ const Yg = class Sa extends L {
|
|
|
22471
22471
|
r(this, "ext");
|
|
22472
22472
|
}
|
|
22473
22473
|
async exportNow(e, i) {
|
|
22474
|
-
|
|
22474
|
+
Xh && console.log("Exporting objects as glTF", this.objects), e || (e = "scene"), (!this.objects || this.objects.length <= 0) && (this.objects = [this.context.scene]);
|
|
22475
22475
|
const n = {
|
|
22476
22476
|
binary: this.binary,
|
|
22477
22477
|
pivot: Sa.calculateCenter(this.objects),
|
|
@@ -22498,7 +22498,7 @@ const Yg = class Sa extends L {
|
|
|
22498
22498
|
animations: (i == null ? void 0 : i.animations) || Sa.collectAnimations(e),
|
|
22499
22499
|
...i
|
|
22500
22500
|
}, a = new Array(), l = new I();
|
|
22501
|
-
i != null && i.pivot && l.position.sub(i.pivot),
|
|
22501
|
+
i != null && i.pivot && l.position.sub(i.pivot), Xh && console.log("EXPORT", e), e.forEach((d) => {
|
|
22502
22502
|
d && Cm(d) && (l.children.push(d), d.matrixAutoUpdate = !1, d.matrix.copy(d.matrixWorld), C.getComponentsInChildren(d, on).forEach((u) => {
|
|
22503
22503
|
C.isActiveInHierarchy(u.gameObject) && u.setInstancingEnabled(!1);
|
|
22504
22504
|
}), d.traverse((u) => {
|
|
@@ -22512,7 +22512,7 @@ const Yg = class Sa extends L {
|
|
|
22512
22512
|
});
|
|
22513
22513
|
const c = new bv(l);
|
|
22514
22514
|
return i != null && i.needleComponents && (this.ext = new ow()), this.ext && (this.ext.registerExport(n), this.ext.context = c), new Promise((d, u) => {
|
|
22515
|
-
|
|
22515
|
+
Xh && console.log("Starting glTF export.");
|
|
22516
22516
|
try {
|
|
22517
22517
|
n == null || n.parse(
|
|
22518
22518
|
l,
|
|
@@ -22529,7 +22529,7 @@ const Yg = class Sa extends L {
|
|
|
22529
22529
|
} catch (p) {
|
|
22530
22530
|
console.error(p), u(p);
|
|
22531
22531
|
} finally {
|
|
22532
|
-
a.forEach((p) => p()),
|
|
22532
|
+
a.forEach((p) => p()), Xh && console.log("Finished glTF export.");
|
|
22533
22533
|
}
|
|
22534
22534
|
});
|
|
22535
22535
|
function h() {
|
|
@@ -22647,7 +22647,7 @@ class de {
|
|
|
22647
22647
|
static start(t, e) {
|
|
22648
22648
|
typeof e == "string" && (e = { parentScope: e });
|
|
22649
22649
|
const i = new kR(t, e);
|
|
22650
|
-
|
|
22650
|
+
rc.set(t, i);
|
|
22651
22651
|
}
|
|
22652
22652
|
/** Report progress for a formerly started scope.
|
|
22653
22653
|
* @param scope The scope to report progress for.
|
|
@@ -22669,7 +22669,7 @@ class de {
|
|
|
22669
22669
|
* Progress.report("export-usdz", { currentStep: 1, totalSteps: 10 });
|
|
22670
22670
|
*/
|
|
22671
22671
|
static report(t, e) {
|
|
22672
|
-
const i =
|
|
22672
|
+
const i = rc.get(t);
|
|
22673
22673
|
if (!i) {
|
|
22674
22674
|
console.warn("Reporting progress for non-existing scope", t);
|
|
22675
22675
|
return;
|
|
@@ -22680,11 +22680,11 @@ class de {
|
|
|
22680
22680
|
* @remarks Will warn if any child scope is still running (progress < 1).
|
|
22681
22681
|
*/
|
|
22682
22682
|
static end(t) {
|
|
22683
|
-
const e =
|
|
22684
|
-
e && (e.end(),
|
|
22683
|
+
const e = rc.get(t);
|
|
22684
|
+
e && (e.end(), rc.delete(t));
|
|
22685
22685
|
}
|
|
22686
22686
|
}
|
|
22687
|
-
const
|
|
22687
|
+
const rc = /* @__PURE__ */ new Map();
|
|
22688
22688
|
class kR {
|
|
22689
22689
|
constructor(t, e) {
|
|
22690
22690
|
r(this, "scopeLabel");
|
|
@@ -22700,7 +22700,7 @@ class kR {
|
|
|
22700
22700
|
r(this, "totalProgress", 0);
|
|
22701
22701
|
r(this, "selfReports", 0);
|
|
22702
22702
|
r(this, "totalReports", 0);
|
|
22703
|
-
this.parentScope = e != null && e.parentScope ?
|
|
22703
|
+
this.parentScope = e != null && e.parentScope ? rc.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) ?? !!PR, this.showLogs && console.time(this.scopeLabel), this.onProgress = e == null ? void 0 : e.onProgress;
|
|
22704
22704
|
}
|
|
22705
22705
|
report(t, e = !1) {
|
|
22706
22706
|
if (t) {
|
|
@@ -23112,13 +23112,13 @@ function ww(o, t, e, i) {
|
|
|
23112
23112
|
let n, s, a;
|
|
23113
23113
|
const l = { position: o.position, quaternion: o.quaternion, scale: o.scale };
|
|
23114
23114
|
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 Is) && (s = o.geometry, a = o.material), i && !i(o) && (s = void 0, a = void 0), (o instanceof G || o instanceof Is) && a && (a instanceof pt || a instanceof Me || a instanceof Pe && a.type === "MeshLineMaterial")) {
|
|
23115
|
-
const h =
|
|
23115
|
+
const h = Kh(o), d = o instanceof Is ? o : null;
|
|
23116
23116
|
n = new ei(o.uuid, h, l, s, a, void 0, d, o.animations);
|
|
23117
23117
|
} else if (o instanceof ve || o instanceof ig) {
|
|
23118
|
-
const h =
|
|
23118
|
+
const h = Kh(o);
|
|
23119
23119
|
n = new ei(o.uuid, h, l, void 0, void 0, o);
|
|
23120
23120
|
} else {
|
|
23121
|
-
const h =
|
|
23121
|
+
const h = Kh(o);
|
|
23122
23122
|
n = new ei(o.uuid, h, l, void 0, void 0, void 0, void 0, o.animations);
|
|
23123
23123
|
}
|
|
23124
23124
|
if (n) {
|
|
@@ -23126,7 +23126,7 @@ function ww(o, t, e, i) {
|
|
|
23126
23126
|
for (const h of e.extensions)
|
|
23127
23127
|
h.onExportObject && h.onExportObject.call(h, o, n, e);
|
|
23128
23128
|
} else {
|
|
23129
|
-
const h =
|
|
23129
|
+
const h = Kh(o), d = new ei(o.uuid, h, { position: o.position, quaternion: o.quaternion, scale: o.scale });
|
|
23130
23130
|
t && t.add(d), t = d;
|
|
23131
23131
|
}
|
|
23132
23132
|
for (const h of o.children)
|
|
@@ -23234,7 +23234,7 @@ async function wd(o, t, e = null) {
|
|
|
23234
23234
|
}
|
|
23235
23235
|
}
|
|
23236
23236
|
}
|
|
23237
|
-
let
|
|
23237
|
+
let Qh = null, Ht = null, fp, fa, Yh;
|
|
23238
23238
|
async function DR(o, t = 1 / 0, e = null, i = void 0) {
|
|
23239
23239
|
fp || (fp = new is(2, 2, 1, 1)), fa || (fa = new Cn({
|
|
23240
23240
|
uniforms: {
|
|
@@ -23269,11 +23269,11 @@ async function DR(o, t = 1 / 0, e = null, i = void 0) {
|
|
|
23269
23269
|
}`
|
|
23270
23270
|
}));
|
|
23271
23271
|
const n = fa.uniforms;
|
|
23272
|
-
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), fa.defines.IS_SRGB = o.colorSpace == Us, fa.needsUpdate = !0,
|
|
23272
|
+
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), fa.defines.IS_SRGB = o.colorSpace == Us, fa.needsUpdate = !0, Yh || (Yh = new G(fp, fa), Yh.frustumCulled = !1);
|
|
23273
23273
|
const s = new ve(), a = new Li();
|
|
23274
|
-
a.add(
|
|
23274
|
+
a.add(Yh), e || (e = Qh = new Gr({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
|
|
23275
23275
|
const l = Math.min(o.image.width, t), c = Math.min(o.image.height, t);
|
|
23276
|
-
Ht && (Ht.width !== l || Ht.height !== c) && (Ht.dispose(), Ht = null), Ht || (Ht = new Ns(l, c, { format: xu, type: $S, minFilter: Wy, magFilter: Wy })), e.setRenderTarget(Ht), e.setSize(l, c), e.clear(), e.render(a, s),
|
|
23276
|
+
Ht && (Ht.width !== l || Ht.height !== c) && (Ht.dispose(), Ht = null), Ht || (Ht = new Ns(l, c, { format: xu, type: $S, minFilter: Wy, magFilter: Wy })), e.setRenderTarget(Ht), e.setSize(l, c), e.clear(), e.render(a, s), Qh && (Qh.dispose(), Qh = null);
|
|
23277
23277
|
const h = new Uint8ClampedArray(Ht.width * Ht.height * 4);
|
|
23278
23278
|
e.readRenderTargetPixels(Ht, 0, 0, Ht.width, Ht.height, h);
|
|
23279
23279
|
const d = new ImageData(h, Ht.width, Ht.height, void 0), u = await createImageBitmap(d, { premultiplyAlpha: "none" });
|
|
@@ -23321,7 +23321,7 @@ function UR(o, t) {
|
|
|
23321
23321
|
let e = zR();
|
|
23322
23322
|
return e += o, _0(e);
|
|
23323
23323
|
}
|
|
23324
|
-
function
|
|
23324
|
+
function Kh(o) {
|
|
23325
23325
|
return o.name.replace(/[-<>\(\)\[\]§$%&\/\\\=\?\,\;]/g, "") + "_" + o.id;
|
|
23326
23326
|
}
|
|
23327
23327
|
function xb(o) {
|
|
@@ -23373,9 +23373,9 @@ function he(o) {
|
|
|
23373
23373
|
}
|
|
23374
23374
|
function Sb(o) {
|
|
23375
23375
|
const t = o.elements;
|
|
23376
|
-
return `( ${
|
|
23376
|
+
return `( ${Zh(t, 0)}, ${Zh(t, 4)}, ${Zh(t, 8)}, ${Zh(t, 12)} )`;
|
|
23377
23377
|
}
|
|
23378
|
-
function
|
|
23378
|
+
function Zh(o, t) {
|
|
23379
23379
|
return `(${he(o[t + 0])}, ${he(o[t + 1])}, ${he(o[t + 2])}, ${he(o[t + 3])})`;
|
|
23380
23380
|
}
|
|
23381
23381
|
function NR(o, t = [], e = !0) {
|
|
@@ -23902,7 +23902,7 @@ class Sr {
|
|
|
23902
23902
|
}
|
|
23903
23903
|
}
|
|
23904
23904
|
r(Sr, "global_id", 0);
|
|
23905
|
-
const
|
|
23905
|
+
const Mc = class Mc {
|
|
23906
23906
|
constructor(t, e) {
|
|
23907
23907
|
r(this, "id");
|
|
23908
23908
|
r(this, "tokenId");
|
|
@@ -23929,18 +23929,18 @@ const Rc = class Rc {
|
|
|
23929
23929
|
// extra info written as comment at the beginning of the action
|
|
23930
23930
|
r(this, "comment");
|
|
23931
23931
|
r(this, "animationName");
|
|
23932
|
-
t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" +
|
|
23932
|
+
t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" + Mc.global_id++;
|
|
23933
23933
|
}
|
|
23934
23934
|
clone() {
|
|
23935
|
-
const t = new
|
|
23935
|
+
const t = new Mc(), e = t.id;
|
|
23936
23936
|
return Object.assign(t, this), t.id = e, t;
|
|
23937
23937
|
}
|
|
23938
23938
|
writeTo(t, e) {
|
|
23939
23939
|
e.beginBlock(`def Preliminary_Action "${this.id}"`), this.comment && e.appendLine(`# ${this.comment}`), this.affectedObjects && (typeof this.affectedObjects != "string" && (this.affectedObjects = Tm(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 = Tm(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();
|
|
23940
23940
|
}
|
|
23941
23941
|
};
|
|
23942
|
-
r(
|
|
23943
|
-
let Yi =
|
|
23942
|
+
r(Mc, "global_id", 0);
|
|
23943
|
+
let Yi = Mc;
|
|
23944
23944
|
class Zi {
|
|
23945
23945
|
constructor(t, e, i) {
|
|
23946
23946
|
r(this, "x", 0);
|
|
@@ -24735,7 +24735,7 @@ var YR = Object.defineProperty, He = (o, t, e, i) => {
|
|
|
24735
24735
|
return n && YR(t, e, n), n;
|
|
24736
24736
|
};
|
|
24737
24737
|
const Mb = S("debugusdzbehaviours");
|
|
24738
|
-
function
|
|
24738
|
+
function lh(o) {
|
|
24739
24739
|
o && (o.getComponentInParent(rl) || (U() && console.debug('Raycaster on "' + o.name + '" was automatically added, because no raycaster was found in the parent hierarchy.'), o.addComponent(sn)));
|
|
24740
24740
|
}
|
|
24741
24741
|
class _l extends L {
|
|
@@ -24751,7 +24751,7 @@ class _l extends L {
|
|
|
24751
24751
|
r(this, "targetScale", new v());
|
|
24752
24752
|
}
|
|
24753
24753
|
start() {
|
|
24754
|
-
|
|
24754
|
+
lh(this.gameObject);
|
|
24755
24755
|
}
|
|
24756
24756
|
onPointerClick(e) {
|
|
24757
24757
|
e.use(), this.coroutine && this.stopCoroutine(this.coroutine), this.relativeMotion ? this.coroutine = this.startCoroutine(this.moveRelative()) : this.coroutine = this.startCoroutine(this.moveToTarget());
|
|
@@ -24760,12 +24760,12 @@ class _l extends L {
|
|
|
24760
24760
|
if (!this.target || !this.object) return;
|
|
24761
24761
|
const e = te(this.object).clone(), i = te(this.target).clone(), n = Oe(this.object).clone(), s = Oe(this.target).clone(), a = Ye(this.object).clone(), l = Ye(this.target).clone(), c = e.distanceTo(i), h = n.angleTo(s), d = a.distanceTo(l);
|
|
24762
24762
|
if (c < 0.01 && h < 0.01 && d < 0.01) {
|
|
24763
|
-
yt(this.object, i), Pn(this.object, s),
|
|
24763
|
+
yt(this.object, i), Pn(this.object, s), Dc(this.object, l), this.coroutine = null;
|
|
24764
24764
|
return;
|
|
24765
24765
|
}
|
|
24766
24766
|
let u = 0, p = 0;
|
|
24767
24767
|
for (; u < 1; )
|
|
24768
|
-
u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), p = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, p), this.targetRot.slerpQuaternions(n, s, p), this.targetScale.lerpVectors(a, l, p), yt(this.object, this.targetPos), Pn(this.object, this.targetRot),
|
|
24768
|
+
u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), p = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, p), this.targetRot.slerpQuaternions(n, s, p), this.targetScale.lerpVectors(a, l, p), yt(this.object, this.targetPos), Pn(this.object, this.targetRot), Dc(this.object, this.targetScale), yield;
|
|
24769
24769
|
this.coroutine = null;
|
|
24770
24770
|
}
|
|
24771
24771
|
*moveRelative() {
|
|
@@ -24814,7 +24814,7 @@ const Ku = ($e = class extends L {
|
|
|
24814
24814
|
}
|
|
24815
24815
|
start() {
|
|
24816
24816
|
var e;
|
|
24817
|
-
this._objectsWithThisMaterial = this.objectsWithThisMaterial,
|
|
24817
|
+
this._objectsWithThisMaterial = this.objectsWithThisMaterial, lh(this.gameObject), U() && this._objectsWithThisMaterial.length <= 0 && console.warn('ChangeMaterialOnClick: No objects found with material "' + ((e = this.materialToSwitch) == null ? void 0 : e.name) + '"');
|
|
24818
24818
|
}
|
|
24819
24819
|
onPointerEnter(e) {
|
|
24820
24820
|
this.context.input.setCursor("pointer");
|
|
@@ -24905,7 +24905,7 @@ He([
|
|
|
24905
24905
|
], Ku.prototype, "fadeDuration");
|
|
24906
24906
|
let Mw = Ku;
|
|
24907
24907
|
var _e;
|
|
24908
|
-
const
|
|
24908
|
+
const ch = (_e = class extends L {
|
|
24909
24909
|
constructor() {
|
|
24910
24910
|
super(...arguments);
|
|
24911
24911
|
r(this, "target");
|
|
@@ -24920,7 +24920,7 @@ const hh = (_e = class extends L {
|
|
|
24920
24920
|
r(this, "targetStateBeforeCreatingDocument", !1);
|
|
24921
24921
|
}
|
|
24922
24922
|
start() {
|
|
24923
|
-
|
|
24923
|
+
lh(this.gameObject);
|
|
24924
24924
|
}
|
|
24925
24925
|
onPointerClick(e) {
|
|
24926
24926
|
e.use(), !this.toggleOnClick && this.hideSelf && (this.gameObject.visible = !1), this.target && (this.target.visible = this.toggleOnClick ? !this.target.visible : this.targetState);
|
|
@@ -24976,7 +24976,7 @@ const hh = (_e = class extends L {
|
|
|
24976
24976
|
));
|
|
24977
24977
|
}
|
|
24978
24978
|
const l = new Array();
|
|
24979
|
-
this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel),
|
|
24979
|
+
this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel), Vc.add(l, e);
|
|
24980
24980
|
}
|
|
24981
24981
|
}
|
|
24982
24982
|
afterSerialize(e, i) {
|
|
@@ -24985,17 +24985,17 @@ const hh = (_e = class extends L {
|
|
|
24985
24985
|
}, 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);
|
|
24986
24986
|
He([
|
|
24987
24987
|
f(I)
|
|
24988
|
-
],
|
|
24988
|
+
], ch.prototype, "target");
|
|
24989
24989
|
He([
|
|
24990
24990
|
f()
|
|
24991
|
-
],
|
|
24991
|
+
], ch.prototype, "toggleOnClick");
|
|
24992
24992
|
He([
|
|
24993
24993
|
f()
|
|
24994
|
-
],
|
|
24994
|
+
], ch.prototype, "targetState");
|
|
24995
24995
|
He([
|
|
24996
24996
|
f()
|
|
24997
|
-
],
|
|
24998
|
-
let Rw =
|
|
24997
|
+
], ch.prototype, "hideSelf");
|
|
24998
|
+
let Rw = ch;
|
|
24999
24999
|
const gn = class gn extends L {
|
|
25000
25000
|
constructor() {
|
|
25001
25001
|
super(...arguments);
|
|
@@ -25023,8 +25023,8 @@ const gn = class gn extends L {
|
|
|
25023
25023
|
}
|
|
25024
25024
|
};
|
|
25025
25025
|
r(gn, "_fadeBehaviour"), r(gn, "_fadeObjects", []);
|
|
25026
|
-
let
|
|
25027
|
-
class
|
|
25026
|
+
let Vc = gn;
|
|
25027
|
+
class hh extends L {
|
|
25028
25028
|
constructor() {
|
|
25029
25029
|
super(...arguments);
|
|
25030
25030
|
r(this, "target");
|
|
@@ -25048,13 +25048,13 @@ class dh extends L {
|
|
|
25048
25048
|
}
|
|
25049
25049
|
He([
|
|
25050
25050
|
f()
|
|
25051
|
-
],
|
|
25051
|
+
], hh.prototype, "target");
|
|
25052
25052
|
He([
|
|
25053
25053
|
f()
|
|
25054
|
-
],
|
|
25054
|
+
], hh.prototype, "duration");
|
|
25055
25055
|
He([
|
|
25056
25056
|
f()
|
|
25057
|
-
],
|
|
25057
|
+
], hh.prototype, "motionType");
|
|
25058
25058
|
class $r extends L {
|
|
25059
25059
|
constructor() {
|
|
25060
25060
|
super(...arguments);
|
|
@@ -25065,7 +25065,7 @@ class $r extends L {
|
|
|
25065
25065
|
r(this, "trigger", "tap");
|
|
25066
25066
|
}
|
|
25067
25067
|
start() {
|
|
25068
|
-
|
|
25068
|
+
lh(this.gameObject);
|
|
25069
25069
|
}
|
|
25070
25070
|
ensureAudioSource() {
|
|
25071
25071
|
if (!this.target) {
|
|
@@ -25147,7 +25147,7 @@ const Jg = (Et = class extends L {
|
|
|
25147
25147
|
return ((e = this.animator) == null ? void 0 : e.gameObject) || ((i = this.animation) == null ? void 0 : i.gameObject);
|
|
25148
25148
|
}
|
|
25149
25149
|
start() {
|
|
25150
|
-
|
|
25150
|
+
lh(this.gameObject);
|
|
25151
25151
|
}
|
|
25152
25152
|
onPointerClick(e) {
|
|
25153
25153
|
var i;
|
|
@@ -25342,7 +25342,7 @@ He([
|
|
|
25342
25342
|
f()
|
|
25343
25343
|
], Jg.prototype, "stateName");
|
|
25344
25344
|
let tu = Jg;
|
|
25345
|
-
class
|
|
25345
|
+
class dh extends L {
|
|
25346
25346
|
constructor() {
|
|
25347
25347
|
super(...arguments);
|
|
25348
25348
|
r(this, "target");
|
|
@@ -25354,7 +25354,7 @@ class uh extends L {
|
|
|
25354
25354
|
}
|
|
25355
25355
|
He([
|
|
25356
25356
|
f(I)
|
|
25357
|
-
],
|
|
25357
|
+
], dh.prototype, "target");
|
|
25358
25358
|
class Zu extends L {
|
|
25359
25359
|
constructor() {
|
|
25360
25360
|
super(...arguments);
|
|
@@ -25362,9 +25362,9 @@ class Zu extends L {
|
|
|
25362
25362
|
}
|
|
25363
25363
|
}
|
|
25364
25364
|
He([
|
|
25365
|
-
f(
|
|
25365
|
+
f(dh)
|
|
25366
25366
|
], Zu.prototype, "target");
|
|
25367
|
-
class Ju extends
|
|
25367
|
+
class Ju extends dh {
|
|
25368
25368
|
constructor() {
|
|
25369
25369
|
super(...arguments);
|
|
25370
25370
|
r(this, "type", 1);
|
|
@@ -25519,11 +25519,11 @@ var KR = Object.defineProperty, ZR = Object.getOwnPropertyDescriptor, vt = (o, t
|
|
|
25519
25519
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
25520
25520
|
return i && n && KR(t, e, n), n;
|
|
25521
25521
|
};
|
|
25522
|
-
const iu = S("debugspriterenderer"), JR = S("wireframe"),
|
|
25522
|
+
const iu = S("debugspriterenderer"), JR = S("wireframe"), Rc = class Rc {
|
|
25523
25523
|
static getOrCreateGeometry(t) {
|
|
25524
25524
|
if (t.__cached_geometry) return t.__cached_geometry;
|
|
25525
|
-
if (t.guid &&
|
|
25526
|
-
return iu && console.log("Take cached geometry for sprite", t.guid),
|
|
25525
|
+
if (t.guid && Rc.cache[t.guid])
|
|
25526
|
+
return iu && console.log("Take cached geometry for sprite", t.guid), Rc.cache[t.guid];
|
|
25527
25527
|
const e = new Xn();
|
|
25528
25528
|
t.__cached_geometry = e;
|
|
25529
25529
|
const i = new Float32Array(t.triangles.length * 3), n = new Float32Array(t.triangles.length * 2);
|
|
@@ -25536,8 +25536,8 @@ const iu = S("debugspriterenderer"), JR = S("wireframe"), Tc = class Tc {
|
|
|
25536
25536
|
return e.setAttribute("position", new mt(i, 3)), e.setAttribute("uv", new mt(n, 2)), t.guid && (this.cache[t.guid] = e), iu && console.log("Built sprite geometry", t, e), e;
|
|
25537
25537
|
}
|
|
25538
25538
|
};
|
|
25539
|
-
r(
|
|
25540
|
-
let ll =
|
|
25539
|
+
r(Rc, "cache", {});
|
|
25540
|
+
let ll = Rc;
|
|
25541
25541
|
class eT {
|
|
25542
25542
|
constructor() {
|
|
25543
25543
|
r(this, "x");
|
|
@@ -25600,7 +25600,7 @@ vt([
|
|
|
25600
25600
|
dl()
|
|
25601
25601
|
], qo.prototype, "vertices", 2);
|
|
25602
25602
|
const yp = Symbol("spriteOwner");
|
|
25603
|
-
class
|
|
25603
|
+
class Hc {
|
|
25604
25604
|
constructor() {
|
|
25605
25605
|
r(this, "sprites");
|
|
25606
25606
|
this.sprites = [];
|
|
@@ -25608,7 +25608,7 @@ class Gc {
|
|
|
25608
25608
|
}
|
|
25609
25609
|
vt([
|
|
25610
25610
|
f(qo)
|
|
25611
|
-
],
|
|
25611
|
+
], Hc.prototype, "sprites", 2);
|
|
25612
25612
|
const ey = class Am {
|
|
25613
25613
|
// we don't assign anything here because it's used by the serialization system.
|
|
25614
25614
|
// there's currently a limitation in the serializer when e.g. spriteSheet is already assigned it will not be overriden by the serializer
|
|
@@ -25619,7 +25619,7 @@ const ey = class Am {
|
|
|
25619
25619
|
}
|
|
25620
25620
|
static create() {
|
|
25621
25621
|
const t = new Am();
|
|
25622
|
-
return t.spriteSheet = new
|
|
25622
|
+
return t.spriteSheet = new Hc(), t;
|
|
25623
25623
|
}
|
|
25624
25624
|
clone() {
|
|
25625
25625
|
const t = new Am();
|
|
@@ -25629,7 +25629,7 @@ const ey = class Am {
|
|
|
25629
25629
|
* Set the sprite to be rendered in the currently assigned sprite sheet at the currently active index {@link index}
|
|
25630
25630
|
*/
|
|
25631
25631
|
set sprite(t) {
|
|
25632
|
-
t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new
|
|
25632
|
+
t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new Hc(), this.spriteSheet.sprites = [t], this.index = 0));
|
|
25633
25633
|
}
|
|
25634
25634
|
/** The currently active sprite */
|
|
25635
25635
|
get sprite() {
|
|
@@ -25652,12 +25652,12 @@ const ey = class Am {
|
|
|
25652
25652
|
}
|
|
25653
25653
|
};
|
|
25654
25654
|
vt([
|
|
25655
|
-
f(
|
|
25655
|
+
f(Hc)
|
|
25656
25656
|
], ey.prototype, "spriteSheet", 2);
|
|
25657
25657
|
vt([
|
|
25658
25658
|
f()
|
|
25659
25659
|
], ey.prototype, "index", 2);
|
|
25660
|
-
let
|
|
25660
|
+
let vc = ey;
|
|
25661
25661
|
class zi extends L {
|
|
25662
25662
|
constructor() {
|
|
25663
25663
|
super(...arguments);
|
|
@@ -25697,7 +25697,7 @@ class zi extends L {
|
|
|
25697
25697
|
*/
|
|
25698
25698
|
addSprite(e, i = !1) {
|
|
25699
25699
|
var s, a;
|
|
25700
|
-
if (this._spriteSheet || (this._spriteSheet =
|
|
25700
|
+
if (this._spriteSheet || (this._spriteSheet = vc.create()), !this._spriteSheet.spriteSheet) return -1;
|
|
25701
25701
|
(s = this._spriteSheet.spriteSheet) == null || s.sprites.push(e);
|
|
25702
25702
|
const n = ((a = this._spriteSheet.spriteSheet) == null ? void 0 : a.sprites.length) - 1;
|
|
25703
25703
|
return i && (this.spriteIndex = n), n;
|
|
@@ -25713,7 +25713,7 @@ class zi extends L {
|
|
|
25713
25713
|
if (typeof e == "number") {
|
|
25714
25714
|
const i = Math.floor(e);
|
|
25715
25715
|
this.spriteIndex = i;
|
|
25716
|
-
} else e instanceof qo ? (this._spriteSheet || (this._spriteSheet =
|
|
25716
|
+
} else e instanceof qo ? (this._spriteSheet || (this._spriteSheet = vc.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e), this.updateSprite()) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
|
|
25717
25717
|
}
|
|
25718
25718
|
/**
|
|
25719
25719
|
* Set the index of the sprite to be rendered in the currently assigned sprite sheet
|
|
@@ -25734,7 +25734,7 @@ class zi extends L {
|
|
|
25734
25734
|
}
|
|
25735
25735
|
/** @internal */
|
|
25736
25736
|
awake() {
|
|
25737
|
-
this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet =
|
|
25737
|
+
this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet = vc.create(), iu && console.log("Awake", this.name, this, this.sprite);
|
|
25738
25738
|
}
|
|
25739
25739
|
/** @internal */
|
|
25740
25740
|
start() {
|
|
@@ -25795,7 +25795,7 @@ vt([
|
|
|
25795
25795
|
f()
|
|
25796
25796
|
], zi.prototype, "toneMapped", 2);
|
|
25797
25797
|
vt([
|
|
25798
|
-
f(
|
|
25798
|
+
f(vc)
|
|
25799
25799
|
], zi.prototype, "sprite", 1);
|
|
25800
25800
|
const Rb = S("debugwebxr"), tT = new se().makeRotationY(Math.PI), wo = class wo extends L {
|
|
25801
25801
|
constructor() {
|
|
@@ -26263,16 +26263,16 @@ function sT(o, t) {
|
|
|
26263
26263
|
let e = t !== o;
|
|
26264
26264
|
return !e && o && t && (Array.isArray(o) && Array.isArray(t) || typeof o == "object" && typeof t == "object") && (e = !0), e;
|
|
26265
26265
|
}
|
|
26266
|
-
const
|
|
26266
|
+
const wc = Symbol("AutoSyncHandler");
|
|
26267
26267
|
function oT(o) {
|
|
26268
|
-
if (o[
|
|
26269
|
-
return o[
|
|
26268
|
+
if (o[wc])
|
|
26269
|
+
return o[wc];
|
|
26270
26270
|
const t = ty.getOrCreateSyncer(o);
|
|
26271
|
-
return t == null || t.init(o), o[
|
|
26271
|
+
return t == null || t.init(o), o[wc] = t, t;
|
|
26272
26272
|
}
|
|
26273
26273
|
function rT(o) {
|
|
26274
|
-
const t = o[
|
|
26275
|
-
t && (ty.removeSyncer(t), t.destroy(), delete o[
|
|
26274
|
+
const t = o[wc];
|
|
26275
|
+
t && (ty.removeSyncer(t), t.destroy(), delete o[wc]);
|
|
26276
26276
|
}
|
|
26277
26277
|
const Aw = function(o = null) {
|
|
26278
26278
|
return function(t, e) {
|
|
@@ -27484,7 +27484,7 @@ wt([
|
|
|
27484
27484
|
f(ae)
|
|
27485
27485
|
], ut.prototype, "defaultAvatar");
|
|
27486
27486
|
let sy = ut;
|
|
27487
|
-
const
|
|
27487
|
+
const Jh = S("debugusdzbehaviours");
|
|
27488
27488
|
class Dw {
|
|
27489
27489
|
constructor() {
|
|
27490
27490
|
r(this, "behaviours", []);
|
|
@@ -27522,7 +27522,7 @@ class Dw {
|
|
|
27522
27522
|
l instanceof Promise && e.push(l);
|
|
27523
27523
|
}
|
|
27524
27524
|
}, !1);
|
|
27525
|
-
}),
|
|
27525
|
+
}), Jh && console.log("onBeforeBuildDocument: all components", this.behaviourComponents), Promise.all(e);
|
|
27526
27526
|
}
|
|
27527
27527
|
onExportObject(t, e, i) {
|
|
27528
27528
|
var n;
|
|
@@ -27533,7 +27533,7 @@ class Dw {
|
|
|
27533
27533
|
for (const u of this.behaviourComponents)
|
|
27534
27534
|
typeof u.afterCreateDocument == "function" && u.afterCreateDocument(this, t);
|
|
27535
27535
|
this.behaviourComponentsCopy = this.behaviourComponents.slice(), this.behaviourComponents.length = 0, this.audioClipsCopy = this.audioClips.slice(), this.audioClips.length = 0;
|
|
27536
|
-
const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a =
|
|
27536
|
+
const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = Jh;
|
|
27537
27537
|
let l = `graph LR
|
|
27538
27538
|
`, c = "";
|
|
27539
27539
|
function h(u) {
|
|
@@ -27629,7 +27629,7 @@ axisFormat %s
|
|
|
27629
27629
|
n.add(p.uuid);
|
|
27630
27630
|
else
|
|
27631
27631
|
n.add(u.uuid);
|
|
27632
|
-
|
|
27632
|
+
Jh && console.log("All Behavior trigger sources and action targets", e, i, n), this.targetUuids = new Set(n);
|
|
27633
27633
|
}
|
|
27634
27634
|
onAfterHierarchy(t, e) {
|
|
27635
27635
|
var i;
|
|
@@ -27641,7 +27641,7 @@ axisFormat %s
|
|
|
27641
27641
|
}
|
|
27642
27642
|
}
|
|
27643
27643
|
async onAfterSerialize(t) {
|
|
27644
|
-
|
|
27644
|
+
Jh && console.log("onAfterSerialize behaviours", this.behaviourComponentsCopy);
|
|
27645
27645
|
for (const e of this.behaviourComponentsCopy)
|
|
27646
27646
|
typeof e.afterSerialize == "function" && (e.afterSerialize.constructor.name === "AsyncFunction" ? await e.afterSerialize(this, t) : e.afterSerialize(this, t));
|
|
27647
27647
|
for (const { clipUrl: e, filesKey: i } of this.audioClipsCopy) {
|
|
@@ -27675,7 +27675,7 @@ class jw {
|
|
|
27675
27675
|
var p;
|
|
27676
27676
|
c.beginBlock('def RealityKitComponent "Collider"', "{", !0), c.appendLine("uint group = 1"), c.appendLine('uniform token info:id = "RealityKit.Collider"'), c.appendLine("uint mask = 4294967295");
|
|
27677
27677
|
const u = l.isTrigger ? "Trigger" : "Default";
|
|
27678
|
-
if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof
|
|
27678
|
+
if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof ah) {
|
|
27679
27679
|
const m = l;
|
|
27680
27680
|
c.appendLine('token shapeType = "Sphere"'), c.appendLine(`float radius = ${m.radius}`);
|
|
27681
27681
|
} else if (l instanceof $g) {
|
|
@@ -27774,7 +27774,7 @@ class kn extends L {
|
|
|
27774
27774
|
const l = this._parentComponent.shadowComponent;
|
|
27775
27775
|
l && (l == null || l.add(e), s = !0);
|
|
27776
27776
|
}
|
|
27777
|
-
this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent),
|
|
27777
|
+
this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent), th && e.add(new Ii(0.5)), this.onAfterAddedToScene(), s && V1(), gT && console.warn("Added shadow component", this.shadowComponent);
|
|
27778
27778
|
}
|
|
27779
27779
|
setShadowComponentOwner(e) {
|
|
27780
27780
|
if (e && (e[ki] === void 0 || e[ki] === this) && (e[ki] = this, e.children))
|
|
@@ -27803,7 +27803,7 @@ class sf extends kn {
|
|
|
27803
27803
|
super.awake();
|
|
27804
27804
|
}
|
|
27805
27805
|
}
|
|
27806
|
-
var yT = Object.defineProperty, _T = Object.getOwnPropertyDescriptor,
|
|
27806
|
+
var yT = Object.defineProperty, _T = Object.getOwnPropertyDescriptor, uh = (o, t, e, i) => {
|
|
27807
27807
|
for (var n = i > 1 ? void 0 : i ? _T(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
27808
27808
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
27809
27809
|
return i && n && yT(t, e, n), n;
|
|
@@ -27823,7 +27823,7 @@ class vT {
|
|
|
27823
27823
|
r(this, "height");
|
|
27824
27824
|
}
|
|
27825
27825
|
}
|
|
27826
|
-
const mn = new v(), Hl = new se(),
|
|
27826
|
+
const mn = new v(), Hl = new se(), ed = new W(), vl = class Bw extends kn {
|
|
27827
27827
|
constructor() {
|
|
27828
27828
|
super(...arguments);
|
|
27829
27829
|
r(this, "_anchoredPosition");
|
|
@@ -27936,7 +27936,7 @@ const mn = new v(), Hl = new se(), td = new W(), vl = class Bw extends kn {
|
|
|
27936
27936
|
this._lastUpdateFrame = this.context.time.frameCount;
|
|
27937
27937
|
const i = this.shadowComponent;
|
|
27938
27938
|
if (!i) return;
|
|
27939
|
-
this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent, Bw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, wp && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, mn.set(0, 0, 0), this.applyPivot(mn), i.matrix.setPosition(mn.x, mn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (
|
|
27939
|
+
this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent, Bw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, wp && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, mn.set(0, 0, 0), this.applyPivot(mn), i.matrix.setPosition(mn.x, mn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (ed.copy(this.gameObject.quaternion), ed.x *= -1, ed.z *= -1, Hl.makeRotationFromQuaternion(ed), i.matrix.premultiply(Hl)), mn.set(0, 0, 0), this.applyAnchoring(mn), (s = this.canvas) != null && s.screenspace ? mn.z += 0.1 : mn.z += 0.01, Hl.identity(), Hl.setPosition(mn.x, mn.y, mn.z), i.matrix.premultiply(Hl), i.matrix.scale(this.gameObject.scale)), this.lastMatrix.copy(this.gameObject.matrix);
|
|
27940
27940
|
const n = !0;
|
|
27941
27941
|
for (const a of kg(this.gameObject, kn, n, 1)) {
|
|
27942
27942
|
if (a === this || !a.activeAndEnabled) continue;
|
|
@@ -28008,19 +28008,19 @@ const mn = new v(), Hl = new se(), td = new W(), vl = class Bw extends kn {
|
|
|
28008
28008
|
return this._createdTextBlocks.push(i), i;
|
|
28009
28009
|
}
|
|
28010
28010
|
};
|
|
28011
|
-
|
|
28011
|
+
uh([
|
|
28012
28012
|
f(re)
|
|
28013
28013
|
], vl.prototype, "anchoredPosition", 1);
|
|
28014
|
-
|
|
28014
|
+
uh([
|
|
28015
28015
|
f(re)
|
|
28016
28016
|
], vl.prototype, "sizeDelta", 2);
|
|
28017
|
-
|
|
28017
|
+
uh([
|
|
28018
28018
|
f(re)
|
|
28019
28019
|
], vl.prototype, "pivot", 2);
|
|
28020
|
-
|
|
28020
|
+
uh([
|
|
28021
28021
|
f(re)
|
|
28022
28022
|
], vl.prototype, "anchorMin", 2);
|
|
28023
|
-
|
|
28023
|
+
uh([
|
|
28024
28024
|
f(re)
|
|
28025
28025
|
], vl.prototype, "anchorMax", 2);
|
|
28026
28026
|
let ts = vl;
|
|
@@ -28029,7 +28029,7 @@ var wT = Object.defineProperty, Fw = (o, t, e, i) => {
|
|
|
28029
28029
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
28030
28030
|
return n && wT(t, e, n), n;
|
|
28031
28031
|
};
|
|
28032
|
-
class
|
|
28032
|
+
class fh extends L {
|
|
28033
28033
|
constructor() {
|
|
28034
28034
|
super(...arguments);
|
|
28035
28035
|
r(this, "effectColor");
|
|
@@ -28038,16 +28038,16 @@ class ph extends L {
|
|
|
28038
28038
|
}
|
|
28039
28039
|
Fw([
|
|
28040
28040
|
f(ce)
|
|
28041
|
-
],
|
|
28041
|
+
], fh.prototype, "effectColor");
|
|
28042
28042
|
Fw([
|
|
28043
28043
|
f(re)
|
|
28044
|
-
],
|
|
28044
|
+
], fh.prototype, "effectDistance");
|
|
28045
28045
|
var xT = Object.defineProperty, ST = Object.getOwnPropertyDescriptor, zw = (o, t, e, i) => {
|
|
28046
28046
|
for (var n = i > 1 ? void 0 : i ? ST(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
28047
28047
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
28048
28048
|
return i && n && xT(t, e, n), n;
|
|
28049
28049
|
};
|
|
28050
|
-
const
|
|
28050
|
+
const td = {
|
|
28051
28051
|
backgroundColor: new le(1, 1, 1),
|
|
28052
28052
|
backgroundOpacity: 1,
|
|
28053
28053
|
borderColor: new le(1, 1, 1),
|
|
@@ -28082,7 +28082,7 @@ const oy = (Gn = class extends kn {
|
|
|
28082
28082
|
return this._alphaFactor;
|
|
28083
28083
|
}
|
|
28084
28084
|
onColorChanged() {
|
|
28085
|
-
this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(),
|
|
28085
|
+
this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(), td.backgroundColor = this.sRGBColor, td.backgroundOpacity = this._color.alpha * this._alphaFactor, this.applyEffects(td, this._alphaFactor), this.uiObject.set(td), this.markDirty());
|
|
28086
28086
|
}
|
|
28087
28087
|
// used via animations
|
|
28088
28088
|
get m_Color() {
|
|
@@ -28138,7 +28138,7 @@ const oy = (Gn = class extends kn {
|
|
|
28138
28138
|
}
|
|
28139
28139
|
applyEffects(e, i = 1) {
|
|
28140
28140
|
var s;
|
|
28141
|
-
const n = (s = this.gameObject) == null ? void 0 : s.getComponent(
|
|
28141
|
+
const n = (s = this.gameObject) == null ? void 0 : s.getComponent(fh);
|
|
28142
28142
|
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));
|
|
28143
28143
|
}
|
|
28144
28144
|
async setTexture(e) {
|
|
@@ -28712,11 +28712,11 @@ class Ui extends L {
|
|
|
28712
28712
|
}
|
|
28713
28713
|
onEnable() {
|
|
28714
28714
|
Eb && console.log(this.name, this), this._rectTransform = this.gameObject.getComponent(ts);
|
|
28715
|
-
const e = this.gameObject.getComponentInParent(
|
|
28715
|
+
const e = this.gameObject.getComponentInParent(Gc);
|
|
28716
28716
|
e && e.registerLayoutGroup(this), this._needsUpdate = !0;
|
|
28717
28717
|
}
|
|
28718
28718
|
onDisable() {
|
|
28719
|
-
const e = this.gameObject.getComponentInParent(
|
|
28719
|
+
const e = this.gameObject.getComponentInParent(Gc);
|
|
28720
28720
|
e && e.unregisterLayoutGroup(this);
|
|
28721
28721
|
}
|
|
28722
28722
|
// for animation:
|
|
@@ -29078,7 +29078,7 @@ os([
|
|
|
29078
29078
|
os([
|
|
29079
29079
|
f()
|
|
29080
29080
|
], an.prototype, "planeDistance", 2);
|
|
29081
|
-
let
|
|
29081
|
+
let Gc = an;
|
|
29082
29082
|
var AT = Object.defineProperty, IT = Object.getOwnPropertyDescriptor, ay = (o, t, e, i) => {
|
|
29083
29083
|
for (var n = i > 1 ? void 0 : i ? IT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
29084
29084
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
@@ -29132,7 +29132,7 @@ class qw {
|
|
|
29132
29132
|
// TODO would probably be better to export each object instead of the entire Canvas
|
|
29133
29133
|
// so that we don't export them twice (once as regular hierarchy, once as part of Canvas export)
|
|
29134
29134
|
onExportObject(t, e, i) {
|
|
29135
|
-
const n = C.getComponent(t,
|
|
29135
|
+
const n = C.getComponent(t, Gc);
|
|
29136
29136
|
if (n && n.enabled && n.renderMode === Hw.WorldSpace) {
|
|
29137
29137
|
const s = new ry(), a = C.getComponent(t, ts), l = C.getComponent(t, Vr), c = new Array();
|
|
29138
29138
|
if (a) {
|
|
@@ -29212,7 +29212,7 @@ class qw {
|
|
|
29212
29212
|
t.index.needsUpdate = !0;
|
|
29213
29213
|
}
|
|
29214
29214
|
}
|
|
29215
|
-
const
|
|
29215
|
+
const ac = S("debugusdz");
|
|
29216
29216
|
function LT(o, t) {
|
|
29217
29217
|
var l;
|
|
29218
29218
|
const e = [], i = C.getComponentsInChildren(o, Ft), n = C.getComponentsInChildren(o, ti), s = new Array(), a = new Array();
|
|
@@ -29229,10 +29229,10 @@ function LT(o, t) {
|
|
|
29229
29229
|
else
|
|
29230
29230
|
for (const c of i) {
|
|
29231
29231
|
if (!c || !c.runtimeAnimatorController || !c.enabled) continue;
|
|
29232
|
-
|
|
29232
|
+
ac && console.log(c);
|
|
29233
29233
|
const h = [];
|
|
29234
29234
|
for (const d of c.runtimeAnimatorController.enumerateActions()) {
|
|
29235
|
-
|
|
29235
|
+
ac && console.log(d);
|
|
29236
29236
|
const u = d.getClip();
|
|
29237
29237
|
h.includes(u) || h.push(u);
|
|
29238
29238
|
}
|
|
@@ -29248,13 +29248,13 @@ function LT(o, t) {
|
|
|
29248
29248
|
}
|
|
29249
29249
|
else
|
|
29250
29250
|
for (const c of n) {
|
|
29251
|
-
|
|
29251
|
+
ac && console.log(c);
|
|
29252
29252
|
const h = [];
|
|
29253
29253
|
for (const d of c.animations)
|
|
29254
29254
|
h.includes(d) || h.push(d);
|
|
29255
29255
|
e.push({ root: c.gameObject, clips: h });
|
|
29256
29256
|
}
|
|
29257
|
-
|
|
29257
|
+
ac && (e == null ? void 0 : e.length) > 0 && console.log("USDZ Animation Clips without behaviours", e);
|
|
29258
29258
|
for (const c of e)
|
|
29259
29259
|
for (const h of c.clips)
|
|
29260
29260
|
t.registerAnimation(c.root, h);
|
|
@@ -29262,7 +29262,7 @@ function LT(o, t) {
|
|
|
29262
29262
|
}
|
|
29263
29263
|
function DT(o, t) {
|
|
29264
29264
|
const e = C.getComponentsInChildren(o, On), i = C.getComponentsInChildren(o, $r), n = new Array(), s = new Array();
|
|
29265
|
-
|
|
29265
|
+
ac && console.log({ audioSources: e, playAudioOnClicks: i });
|
|
29266
29266
|
for (const a of i) {
|
|
29267
29267
|
if (!a.target) continue;
|
|
29268
29268
|
const l = e.indexOf(a.target);
|
|
@@ -29372,12 +29372,12 @@ const bi = (Os = class extends L {
|
|
|
29372
29372
|
onEnable() {
|
|
29373
29373
|
var n;
|
|
29374
29374
|
const e = Q.supportsQuickLookAR(), i = Q.isiOS() || Q.isiPad();
|
|
29375
|
-
!this.button && (vi || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = Ab(this.context, e), this.link.addEventListener("message", this.lastCallback)), vi && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement),
|
|
29375
|
+
!this.button && (vi || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = Ab(this.context, e), this.link.addEventListener("message", this.lastCallback)), vi && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement), jc.registerExporter(this);
|
|
29376
29376
|
}
|
|
29377
29377
|
/** @internal */
|
|
29378
29378
|
onDisable() {
|
|
29379
29379
|
var e, i, n;
|
|
29380
|
-
(e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), vi && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement),
|
|
29380
|
+
(e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), vi && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement), jc.unregisterExporter(this);
|
|
29381
29381
|
}
|
|
29382
29382
|
/**
|
|
29383
29383
|
* Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
|
|
@@ -29456,7 +29456,7 @@ const bi = (Os = class extends L {
|
|
|
29456
29456
|
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");
|
|
29457
29457
|
const g = new Array();
|
|
29458
29458
|
this.autoExportAnimations && g.push(...LT(e, h)), p.find((T) => T.extensionName === "Audio") && this.autoExportAudioSources && g.push(...DT(e)), c.debug = vi, c.pruneUnusedNodes = !FT;
|
|
29459
|
-
const b =
|
|
29459
|
+
const b = Wc.instance.objs.map((T) => T.batchedMesh);
|
|
29460
29460
|
c.keepObject = (T) => {
|
|
29461
29461
|
let O = !0;
|
|
29462
29462
|
const B = C.getComponent(T, on);
|
|
@@ -29606,7 +29606,7 @@ var zT = Object.defineProperty, UT = Object.getOwnPropertyDescriptor, ly = (o, t
|
|
|
29606
29606
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
29607
29607
|
return n && zT(t, e, n), n;
|
|
29608
29608
|
};
|
|
29609
|
-
class
|
|
29609
|
+
class ph extends L {
|
|
29610
29610
|
constructor() {
|
|
29611
29611
|
super(...arguments);
|
|
29612
29612
|
r(this, "_fog");
|
|
@@ -29644,13 +29644,13 @@ class mh extends L {
|
|
|
29644
29644
|
}
|
|
29645
29645
|
ly([
|
|
29646
29646
|
f()
|
|
29647
|
-
],
|
|
29647
|
+
], ph.prototype, "near");
|
|
29648
29648
|
ly([
|
|
29649
29649
|
f()
|
|
29650
|
-
],
|
|
29650
|
+
], ph.prototype, "far");
|
|
29651
29651
|
ly([
|
|
29652
29652
|
f(le)
|
|
29653
|
-
],
|
|
29653
|
+
], ph.prototype, "color");
|
|
29654
29654
|
var NT = Object.defineProperty, cy = (o, t, e, i) => {
|
|
29655
29655
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
29656
29656
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -29666,7 +29666,7 @@ class Sl extends L {
|
|
|
29666
29666
|
r(this, "_boxHelper", null);
|
|
29667
29667
|
}
|
|
29668
29668
|
onEnable() {
|
|
29669
|
-
this.isGizmo && !
|
|
29669
|
+
this.isGizmo && !th || (this._gizmoObject || (this.objectBounds ? this._gizmoObject = new HS(this.gameObject, this.color ?? 16776960) : (this.objectBounds = !1, this._gizmoObject = vg(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));
|
|
29670
29670
|
}
|
|
29671
29671
|
onDisable() {
|
|
29672
29672
|
this._gizmoObject && this.gameObject.remove(this._gizmoObject);
|
|
@@ -29691,7 +29691,7 @@ var $T = Object.defineProperty, hy = (o, t, e, i) => {
|
|
|
29691
29691
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
29692
29692
|
return n && $T(t, e, n), n;
|
|
29693
29693
|
};
|
|
29694
|
-
class
|
|
29694
|
+
class mh extends L {
|
|
29695
29695
|
constructor() {
|
|
29696
29696
|
super(...arguments);
|
|
29697
29697
|
r(this, "isGizmo", !1);
|
|
@@ -29704,7 +29704,7 @@ class gh extends L {
|
|
|
29704
29704
|
}
|
|
29705
29705
|
/** @internal */
|
|
29706
29706
|
onEnable() {
|
|
29707
|
-
if (this.isGizmo && !
|
|
29707
|
+
if (this.isGizmo && !th) return;
|
|
29708
29708
|
const e = this.size, i = this.divisions;
|
|
29709
29709
|
this.gridHelper || (this.gridHelper = new Km(e, i, this.color0 ?? new le(0.4, 0.4, 0.4), this.color1 ?? new le(0.6, 0.6, 0.6)), this.offset !== void 0 && (this.gridHelper.position.y += this.offset)), this.gridHelper && this.gameObject.add(this.gridHelper);
|
|
29710
29710
|
}
|
|
@@ -29715,13 +29715,13 @@ class gh extends L {
|
|
|
29715
29715
|
}
|
|
29716
29716
|
hy([
|
|
29717
29717
|
f()
|
|
29718
|
-
],
|
|
29718
|
+
], mh.prototype, "isGizmo");
|
|
29719
29719
|
hy([
|
|
29720
29720
|
f(le)
|
|
29721
|
-
],
|
|
29721
|
+
], mh.prototype, "color0");
|
|
29722
29722
|
hy([
|
|
29723
29723
|
f(le)
|
|
29724
|
-
],
|
|
29724
|
+
], mh.prototype, "color1");
|
|
29725
29725
|
var WT = Object.defineProperty, dy = (o, t, e, i) => {
|
|
29726
29726
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
29727
29727
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -30052,28 +30052,28 @@ rs([
|
|
|
30052
30052
|
f()
|
|
30053
30053
|
], Ni.prototype, "shadowResolution", 1);
|
|
30054
30054
|
new v(0, 0, 0);
|
|
30055
|
-
var qT = Object.defineProperty,
|
|
30055
|
+
var qT = Object.defineProperty, gh = (o, t, e, i) => {
|
|
30056
30056
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30057
30057
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30058
30058
|
return n && qT(t, e, n), n;
|
|
30059
30059
|
};
|
|
30060
30060
|
const Pp = S("debuglods"), XT = S("nolods");
|
|
30061
|
-
class
|
|
30061
|
+
class yh {
|
|
30062
30062
|
constructor() {
|
|
30063
30063
|
r(this, "screenRelativeTransitionHeight");
|
|
30064
30064
|
r(this, "distance");
|
|
30065
30065
|
r(this, "renderers");
|
|
30066
30066
|
}
|
|
30067
30067
|
}
|
|
30068
|
-
|
|
30068
|
+
gh([
|
|
30069
30069
|
f()
|
|
30070
|
-
],
|
|
30071
|
-
|
|
30070
|
+
], yh.prototype, "screenRelativeTransitionHeight");
|
|
30071
|
+
gh([
|
|
30072
30072
|
f()
|
|
30073
|
-
],
|
|
30074
|
-
|
|
30073
|
+
], yh.prototype, "distance");
|
|
30074
|
+
gh([
|
|
30075
30075
|
f(on)
|
|
30076
|
-
],
|
|
30076
|
+
], yh.prototype, "renderers");
|
|
30077
30077
|
class QT {
|
|
30078
30078
|
constructor(t) {
|
|
30079
30079
|
r(this, "model");
|
|
@@ -30158,18 +30158,18 @@ class lf extends L {
|
|
|
30158
30158
|
}
|
|
30159
30159
|
}
|
|
30160
30160
|
}
|
|
30161
|
-
|
|
30161
|
+
gh([
|
|
30162
30162
|
f(v)
|
|
30163
30163
|
], lf.prototype, "localReferencePoint");
|
|
30164
|
-
|
|
30165
|
-
f(
|
|
30164
|
+
gh([
|
|
30165
|
+
f(yh)
|
|
30166
30166
|
], lf.prototype, "lodModels");
|
|
30167
30167
|
var YT = Object.defineProperty, KT = (o, t, e, i) => {
|
|
30168
30168
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30169
30169
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30170
30170
|
return n && YT(t, e, n), n;
|
|
30171
30171
|
};
|
|
30172
|
-
const
|
|
30172
|
+
const id = S("debugnestedgltf");
|
|
30173
30173
|
class fy extends L {
|
|
30174
30174
|
constructor() {
|
|
30175
30175
|
super(...arguments);
|
|
@@ -30194,16 +30194,16 @@ class fy extends L {
|
|
|
30194
30194
|
async start() {
|
|
30195
30195
|
var i, n, s, a, l;
|
|
30196
30196
|
if (this._isLoadingOrDoneLoading) return;
|
|
30197
|
-
|
|
30197
|
+
id && console.log(this, this.guid);
|
|
30198
30198
|
const e = this.gameObject.parent;
|
|
30199
30199
|
if (e) {
|
|
30200
30200
|
this._isLoadingOrDoneLoading = !0;
|
|
30201
30201
|
const c = new ns();
|
|
30202
30202
|
c.idProvider = new Dt(this.hash(this.guid)), c.parent = this.loadAssetInParent !== !1 ? e : this.gameObject, this.gameObject.updateMatrix();
|
|
30203
30203
|
const h = this.gameObject.matrix;
|
|
30204
|
-
|
|
30204
|
+
id && console.log("Load nested:", ((i = this.filePath) == null ? void 0 : i.url) ?? this.filePath, this.gameObject.position);
|
|
30205
30205
|
const d = await ((s = (n = this.filePath) == null ? void 0 : n.instantiate) == null ? void 0 : s.call(this.filePath, c));
|
|
30206
|
-
|
|
30206
|
+
id && 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 } }))), id && console.log("Nested loading done:", ((l = this.filePath) == null ? void 0 : l.url) ?? this.filePath, d);
|
|
30207
30207
|
}
|
|
30208
30208
|
}
|
|
30209
30209
|
/** @internal */
|
|
@@ -30378,7 +30378,7 @@ Yo([
|
|
|
30378
30378
|
Yo([
|
|
30379
30379
|
f()
|
|
30380
30380
|
], Ei.prototype, "weightedMode");
|
|
30381
|
-
const Yw = class
|
|
30381
|
+
const Yw = class lc {
|
|
30382
30382
|
constructor() {
|
|
30383
30383
|
r(this, "keys", []);
|
|
30384
30384
|
}
|
|
@@ -30386,14 +30386,14 @@ const Yw = class cc {
|
|
|
30386
30386
|
* Creates an animation curve that goes from the `from` value to the `to` value over the given `duration`.
|
|
30387
30387
|
*/
|
|
30388
30388
|
static linearFromTo(t, e, i) {
|
|
30389
|
-
const n = new
|
|
30389
|
+
const n = new lc(), s = new Ei();
|
|
30390
30390
|
s.time = 0, s.value = t;
|
|
30391
30391
|
const a = new Ei();
|
|
30392
30392
|
return a.time = i, a.value = e, n.keys.push(s, a), n;
|
|
30393
30393
|
}
|
|
30394
30394
|
/** Creates an animation curve with just one keyframe */
|
|
30395
30395
|
static constant(t) {
|
|
30396
|
-
const e = new
|
|
30396
|
+
const e = new lc(), i = new Ei();
|
|
30397
30397
|
return i.time = 0, i.value = t, e.keys.push(i), e;
|
|
30398
30398
|
}
|
|
30399
30399
|
/**
|
|
@@ -30401,7 +30401,7 @@ const Yw = class cc {
|
|
|
30401
30401
|
*/
|
|
30402
30402
|
clone() {
|
|
30403
30403
|
var e;
|
|
30404
|
-
const t = new
|
|
30404
|
+
const t = new lc();
|
|
30405
30405
|
return t.keys = ((e = this.keys) == null ? void 0 : e.map((i) => {
|
|
30406
30406
|
const n = new Ei();
|
|
30407
30407
|
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;
|
|
@@ -30427,7 +30427,7 @@ const Yw = class cc {
|
|
|
30427
30427
|
if (e + 1 < this.keys.length) {
|
|
30428
30428
|
const s = this.keys[e + 1];
|
|
30429
30429
|
if (s.time < t) continue;
|
|
30430
|
-
return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value :
|
|
30430
|
+
return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value : lc.interpolateValue(t, i, s);
|
|
30431
30431
|
} else
|
|
30432
30432
|
return i.value;
|
|
30433
30433
|
}
|
|
@@ -30447,7 +30447,7 @@ var iE = Object.defineProperty, P = (o, t, e, i) => {
|
|
|
30447
30447
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30448
30448
|
return n && iE(t, e, n), n;
|
|
30449
30449
|
};
|
|
30450
|
-
const
|
|
30450
|
+
const nd = S("debugparticles");
|
|
30451
30451
|
var vs = /* @__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))(vs || {});
|
|
30452
30452
|
class Pl {
|
|
30453
30453
|
constructor() {
|
|
@@ -30488,8 +30488,8 @@ P([
|
|
|
30488
30488
|
P([
|
|
30489
30489
|
f()
|
|
30490
30490
|
], Pl.prototype, "colorKeys");
|
|
30491
|
-
var
|
|
30492
|
-
const eo = class
|
|
30491
|
+
var qc = /* @__PURE__ */ ((o) => (o[o.Local = 0] = "Local", o[o.World = 1] = "World", o[o.Custom = 2] = "Custom", o))(qc || {}), jm = /* @__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))(jm || {});
|
|
30492
|
+
const eo = class cc {
|
|
30493
30493
|
constructor() {
|
|
30494
30494
|
r(this, "mode", "Constant");
|
|
30495
30495
|
r(this, "constant");
|
|
@@ -30501,15 +30501,15 @@ const eo = class hc {
|
|
|
30501
30501
|
r(this, "curveMultiplier");
|
|
30502
30502
|
}
|
|
30503
30503
|
static constant(t) {
|
|
30504
|
-
const e = new
|
|
30504
|
+
const e = new cc();
|
|
30505
30505
|
return e.setConstant(t), e;
|
|
30506
30506
|
}
|
|
30507
30507
|
static betweenTwoConstants(t, e) {
|
|
30508
|
-
const i = new
|
|
30508
|
+
const i = new cc();
|
|
30509
30509
|
return i.setMinMaxConstant(t, e), i;
|
|
30510
30510
|
}
|
|
30511
30511
|
static curve(t, e = 1) {
|
|
30512
|
-
const i = new
|
|
30512
|
+
const i = new cc();
|
|
30513
30513
|
return i.setCurve(t, e), i;
|
|
30514
30514
|
}
|
|
30515
30515
|
setConstant(t) {
|
|
@@ -30523,7 +30523,7 @@ const eo = class hc {
|
|
|
30523
30523
|
}
|
|
30524
30524
|
clone() {
|
|
30525
30525
|
var e, i, n;
|
|
30526
|
-
const t = new
|
|
30526
|
+
const t = new cc();
|
|
30527
30527
|
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;
|
|
30528
30528
|
}
|
|
30529
30529
|
evaluate(t, e) {
|
|
@@ -30929,7 +30929,7 @@ const ot = (wn = class {
|
|
|
30929
30929
|
r(this, "_dir", new v());
|
|
30930
30930
|
r(this, "_loopTime", 0);
|
|
30931
30931
|
r(this, "_loopDirection", 1);
|
|
30932
|
-
|
|
30932
|
+
nd && console.log(this);
|
|
30933
30933
|
}
|
|
30934
30934
|
// Emittershape start
|
|
30935
30935
|
get type() {
|
|
@@ -30964,7 +30964,7 @@ const ot = (wn = class {
|
|
|
30964
30964
|
if (i && (n *= this.system.worldScale.x), this.enabled) {
|
|
30965
30965
|
switch (this.shapeType) {
|
|
30966
30966
|
case 5:
|
|
30967
|
-
|
|
30967
|
+
nd && 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);
|
|
30968
30968
|
break;
|
|
30969
30969
|
case 4:
|
|
30970
30970
|
this.randomConePoint(this.position, this.angle, n, this.radiusThickness, this.arc, this.arcMode, this._vector);
|
|
@@ -31011,7 +31011,7 @@ const ot = (wn = class {
|
|
|
31011
31011
|
}
|
|
31012
31012
|
this.randomizePosition(this._vector, this.randomPositionAmount);
|
|
31013
31013
|
}
|
|
31014
|
-
this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)),
|
|
31014
|
+
this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)), nd && H.DrawSphere(this._vector, 0.03, 16711680, 0.5, !0);
|
|
31015
31015
|
}
|
|
31016
31016
|
getDirection(t, e) {
|
|
31017
31017
|
var i;
|
|
@@ -31058,7 +31058,7 @@ const ot = (wn = class {
|
|
|
31058
31058
|
this._dir.set(0, 0, 1);
|
|
31059
31059
|
break;
|
|
31060
31060
|
}
|
|
31061
|
-
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),
|
|
31061
|
+
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), nd && (H.DrawSphere(e, 0.01, 8925952, 0.5, !0), H.DrawDirection(e, this._dir, 8925952, 0.5, !0)), this._dir;
|
|
31062
31062
|
}
|
|
31063
31063
|
randomizePosition(t, e) {
|
|
31064
31064
|
if (e <= 0) return;
|
|
@@ -31732,7 +31732,7 @@ P([
|
|
|
31732
31732
|
P([
|
|
31733
31733
|
f()
|
|
31734
31734
|
], xt.prototype, "space");
|
|
31735
|
-
const
|
|
31735
|
+
const _h = class Zw {
|
|
31736
31736
|
constructor() {
|
|
31737
31737
|
r(this, "enabled");
|
|
31738
31738
|
r(this, "curve");
|
|
@@ -31779,17 +31779,17 @@ const bh = class Zw {
|
|
|
31779
31779
|
};
|
|
31780
31780
|
P([
|
|
31781
31781
|
f()
|
|
31782
|
-
],
|
|
31782
|
+
], _h.prototype, "enabled");
|
|
31783
31783
|
P([
|
|
31784
31784
|
f(Z)
|
|
31785
|
-
],
|
|
31785
|
+
], _h.prototype, "curve");
|
|
31786
31786
|
P([
|
|
31787
31787
|
f()
|
|
31788
|
-
],
|
|
31788
|
+
], _h.prototype, "curveMultiplier");
|
|
31789
31789
|
P([
|
|
31790
31790
|
f()
|
|
31791
|
-
],
|
|
31792
|
-
let Jw =
|
|
31791
|
+
], _h.prototype, "mode");
|
|
31792
|
+
let Jw = _h;
|
|
31793
31793
|
class $i {
|
|
31794
31794
|
constructor() {
|
|
31795
31795
|
r(this, "enabled");
|
|
@@ -31842,7 +31842,7 @@ P([
|
|
|
31842
31842
|
P([
|
|
31843
31843
|
f()
|
|
31844
31844
|
], $i.prototype, "zMultiplier");
|
|
31845
|
-
class
|
|
31845
|
+
class bh {
|
|
31846
31846
|
constructor() {
|
|
31847
31847
|
r(this, "enabled");
|
|
31848
31848
|
r(this, "range");
|
|
@@ -31855,13 +31855,13 @@ class vh {
|
|
|
31855
31855
|
}
|
|
31856
31856
|
P([
|
|
31857
31857
|
f()
|
|
31858
|
-
],
|
|
31858
|
+
], bh.prototype, "enabled");
|
|
31859
31859
|
P([
|
|
31860
31860
|
f(re)
|
|
31861
|
-
],
|
|
31861
|
+
], bh.prototype, "range");
|
|
31862
31862
|
P([
|
|
31863
31863
|
f(Ol)
|
|
31864
|
-
],
|
|
31864
|
+
], bh.prototype, "color");
|
|
31865
31865
|
new v(1, 1, 1);
|
|
31866
31866
|
new v(0, 0, 1);
|
|
31867
31867
|
class ex {
|
|
@@ -32009,7 +32009,7 @@ Ge([
|
|
|
32009
32009
|
Ge([
|
|
32010
32010
|
f()
|
|
32011
32011
|
], Tn.prototype, "lengthScale");
|
|
32012
|
-
class
|
|
32012
|
+
class sd {
|
|
32013
32013
|
constructor(t, e = 1) {
|
|
32014
32014
|
r(this, "_curve");
|
|
32015
32015
|
r(this, "_factor");
|
|
@@ -32188,7 +32188,7 @@ class fE extends ia {
|
|
|
32188
32188
|
}
|
|
32189
32189
|
}
|
|
32190
32190
|
}
|
|
32191
|
-
const
|
|
32191
|
+
const od = Symbol("startVelocity"), jb = Symbol("gravityModifier"), Mp = Symbol("gravitySpeed"), rd = Symbol("velocity lerp factor"), Um = new v();
|
|
32192
32192
|
class pE extends ia {
|
|
32193
32193
|
constructor() {
|
|
32194
32194
|
super(...arguments);
|
|
@@ -32200,26 +32200,26 @@ class pE extends ia {
|
|
|
32200
32200
|
const i = this.system.main.simulationSpeed;
|
|
32201
32201
|
e.startSpeed = this.system.main.startSpeed.evaluate(Math.random(), Math.random());
|
|
32202
32202
|
const n = this.system.shape.getDirection(e, e.position);
|
|
32203
|
-
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[
|
|
32203
|
+
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[od] ? e[od].copy(e.velocity) : e[od] = e.velocity.clone();
|
|
32204
32204
|
const s = this.system.main.gravityModifier.evaluate(Math.random(), Math.random());
|
|
32205
|
-
e[jb] = s * i, e[Mp] = s * i * 0.5, e[
|
|
32205
|
+
e[jb] = s * i, e[Mp] = s * i * 0.5, e[rd] = Math.random(), (l = this.system.velocityOverLifetime) == null || l.init(e), this._gravityDirection.set(0, -1, 0), this.system.main.simulationSpace === qc.Local && this._gravityDirection.applyQuaternion(this.system.worldQuaternionInverted).normalize();
|
|
32206
32206
|
}
|
|
32207
32207
|
update(e, i) {
|
|
32208
32208
|
var p;
|
|
32209
|
-
const n = e[
|
|
32209
|
+
const n = e[od], s = e[jb];
|
|
32210
32210
|
if (s !== 0) {
|
|
32211
32211
|
const m = s * e[Mp];
|
|
32212
32212
|
Um.copy(this._gravityDirection).multiplyScalar(m), e[Mp] += i * 0.05, n.add(Um);
|
|
32213
32213
|
}
|
|
32214
32214
|
e.velocity.copy(n);
|
|
32215
32215
|
const a = e.age / e.life;
|
|
32216
|
-
(p = this.system.inheritVelocity) != null && p.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[
|
|
32216
|
+
(p = this.system.inheritVelocity) != null && p.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[rd]);
|
|
32217
32217
|
const l = this.system.noise;
|
|
32218
32218
|
l.enabled && l.apply(0, e.position, e.velocity, i, e.age, e.life);
|
|
32219
32219
|
const c = this.system.sizeBySpeed;
|
|
32220
|
-
c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[
|
|
32220
|
+
c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[rd], e.size));
|
|
32221
32221
|
const h = this.system.colorBySpeed;
|
|
32222
|
-
h != null && h.enabled && h.evaluate(e.velocity, e[
|
|
32222
|
+
h != null && h.enabled && h.evaluate(e.velocity, e[rd], e.color);
|
|
32223
32223
|
const d = this.system.velocityOverLifetime;
|
|
32224
32224
|
d.enabled && d.apply(e, 0, e.position, e.velocity, i, e.age, e.life);
|
|
32225
32225
|
const u = this.system.limitVelocityOverLifetime;
|
|
@@ -32293,16 +32293,16 @@ class gE {
|
|
|
32293
32293
|
return this.system.shape;
|
|
32294
32294
|
}
|
|
32295
32295
|
get startLife() {
|
|
32296
|
-
return new
|
|
32296
|
+
return new sd(this.system.main.startLifetime);
|
|
32297
32297
|
}
|
|
32298
32298
|
get startSpeed() {
|
|
32299
|
-
return new
|
|
32299
|
+
return new sd(this.system.main.startSpeed);
|
|
32300
32300
|
}
|
|
32301
32301
|
get startRotation() {
|
|
32302
|
-
return new
|
|
32302
|
+
return new sd(this.system.main.startRotation);
|
|
32303
32303
|
}
|
|
32304
32304
|
get startSize() {
|
|
32305
|
-
return new
|
|
32305
|
+
return new sd(this.system.main.startSize);
|
|
32306
32306
|
}
|
|
32307
32307
|
/** start length is for trails */
|
|
32308
32308
|
get startColor() {
|
|
@@ -32374,7 +32374,7 @@ class gE {
|
|
|
32374
32374
|
return this.system.renderer.transparent;
|
|
32375
32375
|
}
|
|
32376
32376
|
get worldSpace() {
|
|
32377
|
-
return this.system.main.simulationSpace ===
|
|
32377
|
+
return this.system.main.simulationSpace === qc.World;
|
|
32378
32378
|
}
|
|
32379
32379
|
}
|
|
32380
32380
|
class yE {
|
|
@@ -32498,10 +32498,10 @@ const Nt = class Sd extends L {
|
|
|
32498
32498
|
return this._container;
|
|
32499
32499
|
}
|
|
32500
32500
|
get worldspace() {
|
|
32501
|
-
return this.main.simulationSpace ===
|
|
32501
|
+
return this.main.simulationSpace === qc.World;
|
|
32502
32502
|
}
|
|
32503
32503
|
get localspace() {
|
|
32504
|
-
return this.main.simulationSpace ===
|
|
32504
|
+
return this.main.simulationSpace === qc.Local;
|
|
32505
32505
|
}
|
|
32506
32506
|
get worldQuaternion() {
|
|
32507
32507
|
return this.__worldQuaternion;
|
|
@@ -32715,7 +32715,7 @@ Ge([
|
|
|
32715
32715
|
f(Jw)
|
|
32716
32716
|
], Nt.prototype, "inheritVelocity");
|
|
32717
32717
|
Ge([
|
|
32718
|
-
f(
|
|
32718
|
+
f(bh)
|
|
32719
32719
|
], Nt.prototype, "colorBySpeed");
|
|
32720
32720
|
Ge([
|
|
32721
32721
|
f(ri)
|
|
@@ -32761,7 +32761,7 @@ function tx(o, t) {
|
|
|
32761
32761
|
}
|
|
32762
32762
|
return t;
|
|
32763
32763
|
}
|
|
32764
|
-
class
|
|
32764
|
+
class Xc extends L {
|
|
32765
32765
|
constructor() {
|
|
32766
32766
|
super(...arguments);
|
|
32767
32767
|
r(this, "_didAssignPlayerColor", !1);
|
|
@@ -32784,7 +32784,7 @@ class Qc extends L {
|
|
|
32784
32784
|
;
|
|
32785
32785
|
}
|
|
32786
32786
|
assignUserColor(e) {
|
|
32787
|
-
const i =
|
|
32787
|
+
const i = Xc.hashCode(e), n = Xc.colorFromHashCode(i);
|
|
32788
32788
|
if (this.gameObject.type === "Mesh") {
|
|
32789
32789
|
const s = this.gameObject;
|
|
32790
32790
|
this.assignColor(n, e, s);
|
|
@@ -33163,9 +33163,9 @@ function Tp(o) {
|
|
|
33163
33163
|
case 3:
|
|
33164
33164
|
return Cu;
|
|
33165
33165
|
case 4:
|
|
33166
|
-
return
|
|
33166
|
+
return Ac;
|
|
33167
33167
|
default:
|
|
33168
|
-
return
|
|
33168
|
+
return Ac;
|
|
33169
33169
|
}
|
|
33170
33170
|
}
|
|
33171
33171
|
function BE(o) {
|
|
@@ -33176,7 +33176,7 @@ function BE(o) {
|
|
|
33176
33176
|
return 2;
|
|
33177
33177
|
case Cu:
|
|
33178
33178
|
return 3;
|
|
33179
|
-
case
|
|
33179
|
+
case Ac:
|
|
33180
33180
|
return 1;
|
|
33181
33181
|
case sg:
|
|
33182
33182
|
return 1;
|
|
@@ -33192,7 +33192,7 @@ function Ub(o) {
|
|
|
33192
33192
|
return j.POSTPROCESSING.MODULE.ToneMappingMode.ACES_FILMIC;
|
|
33193
33193
|
case Cu:
|
|
33194
33194
|
return j.POSTPROCESSING.MODULE.ToneMappingMode.AGX;
|
|
33195
|
-
case
|
|
33195
|
+
case Ac:
|
|
33196
33196
|
return j.POSTPROCESSING.MODULE.ToneMappingMode.NEUTRAL;
|
|
33197
33197
|
case sg:
|
|
33198
33198
|
return j.POSTPROCESSING.MODULE.ToneMappingMode.REINHARD;
|
|
@@ -33254,8 +33254,8 @@ sx([
|
|
|
33254
33254
|
sx([
|
|
33255
33255
|
f(N)
|
|
33256
33256
|
], vy.prototype, "exposure");
|
|
33257
|
-
let
|
|
33258
|
-
En("Tonemapping",
|
|
33257
|
+
let Qc = vy;
|
|
33258
|
+
En("Tonemapping", Qc);
|
|
33259
33259
|
var FE = Object.defineProperty, mf = (o, t, e, i) => {
|
|
33260
33260
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33261
33261
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -33282,8 +33282,8 @@ class na extends dt {
|
|
|
33282
33282
|
var a, l;
|
|
33283
33283
|
const e = [];
|
|
33284
33284
|
this.context.renderer.toneMapping !== Xa && this.postExposure.overrideState && (this.context.renderer.toneMapping = Xa);
|
|
33285
|
-
let i = (a = this.postprocessingContext) == null ? void 0 : a.components.find((c) => c instanceof
|
|
33286
|
-
i || (i = new
|
|
33285
|
+
let i = (a = this.postprocessingContext) == null ? void 0 : a.components.find((c) => c instanceof Qc);
|
|
33286
|
+
i || (i = new Qc(), (l = this.postprocessingContext) == null || l.components.push(i)), this.postExposure.onValueChanged = (c) => {
|
|
33287
33287
|
this.postExposure.overrideState && (i.exposure.value = c);
|
|
33288
33288
|
};
|
|
33289
33289
|
const n = new j.POSTPROCESSING.MODULE.BrightnessContrastEffect();
|
|
@@ -33413,7 +33413,7 @@ $E([
|
|
|
33413
33413
|
f(N)
|
|
33414
33414
|
], gf.prototype, "granularity");
|
|
33415
33415
|
En("PixelationEffect", gf);
|
|
33416
|
-
var WE = Object.defineProperty,
|
|
33416
|
+
var WE = Object.defineProperty, vh = (o, t, e, i) => {
|
|
33417
33417
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33418
33418
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33419
33419
|
return n && WE(t, e, n), n;
|
|
@@ -33468,19 +33468,19 @@ class Jo extends dt {
|
|
|
33468
33468
|
return a.push(i), a.push(n), a.push(s), a;
|
|
33469
33469
|
}
|
|
33470
33470
|
}
|
|
33471
|
-
|
|
33471
|
+
vh([
|
|
33472
33472
|
f(N)
|
|
33473
33473
|
], Jo.prototype, "intensity");
|
|
33474
|
-
|
|
33474
|
+
vh([
|
|
33475
33475
|
f(N)
|
|
33476
33476
|
], Jo.prototype, "falloff");
|
|
33477
|
-
|
|
33477
|
+
vh([
|
|
33478
33478
|
f(N)
|
|
33479
33479
|
], Jo.prototype, "samples");
|
|
33480
|
-
|
|
33480
|
+
vh([
|
|
33481
33481
|
f(N)
|
|
33482
33482
|
], Jo.prototype, "color");
|
|
33483
|
-
|
|
33483
|
+
vh([
|
|
33484
33484
|
f(N)
|
|
33485
33485
|
], Jo.prototype, "luminanceInfluence");
|
|
33486
33486
|
En("ScreenSpaceAmbientOcclusion", Jo);
|
|
@@ -33941,7 +33941,7 @@ var ZE = Object.defineProperty, lx = (o, t, e, i) => {
|
|
|
33941
33941
|
return n && ZE(t, e, n), n;
|
|
33942
33942
|
};
|
|
33943
33943
|
const ma = S("debugpost");
|
|
33944
|
-
class
|
|
33944
|
+
class wh extends L {
|
|
33945
33945
|
constructor() {
|
|
33946
33946
|
super(...arguments);
|
|
33947
33947
|
r(this, "sharedProfile");
|
|
@@ -34079,15 +34079,15 @@ class xh extends L {
|
|
|
34079
34079
|
c.active = e.value, this.scheduleRecreate();
|
|
34080
34080
|
return;
|
|
34081
34081
|
}
|
|
34082
|
-
if (!
|
|
34082
|
+
if (!ad.has(a)) {
|
|
34083
34083
|
const h = new Array();
|
|
34084
|
-
|
|
34084
|
+
ad.set(a, h);
|
|
34085
34085
|
const d = Object.keys(c);
|
|
34086
34086
|
for (const u of d)
|
|
34087
34087
|
c[u] instanceof N && h.push(u);
|
|
34088
34088
|
}
|
|
34089
|
-
if (
|
|
34090
|
-
const h = l.toLowerCase(), d =
|
|
34089
|
+
if (ad.has(a)) {
|
|
34090
|
+
const h = l.toLowerCase(), d = ad.get(a);
|
|
34091
34091
|
for (const u of d)
|
|
34092
34092
|
if (u.toLowerCase() === h) {
|
|
34093
34093
|
const p = c[u];
|
|
@@ -34112,12 +34112,12 @@ class xh extends L {
|
|
|
34112
34112
|
}
|
|
34113
34113
|
lx([
|
|
34114
34114
|
dl(yy)
|
|
34115
|
-
],
|
|
34115
|
+
], wh.prototype, "sharedProfile");
|
|
34116
34116
|
lx([
|
|
34117
34117
|
dl()
|
|
34118
|
-
],
|
|
34119
|
-
const
|
|
34120
|
-
bE(
|
|
34118
|
+
], wh.prototype, "multisampling");
|
|
34119
|
+
const ad = /* @__PURE__ */ new Map();
|
|
34120
|
+
bE(wh);
|
|
34121
34121
|
async function xy(o) {
|
|
34122
34122
|
const { NeedleEngineHTMLElement: t } = await Promise.resolve().then(() => OI);
|
|
34123
34123
|
t.observedAttributes.includes(o) || t.observedAttributes.push(o);
|
|
@@ -35310,7 +35310,7 @@ class cA extends Cn {
|
|
|
35310
35310
|
this.offset = this.offset.set(0, 0), this.zoom = 1, this.needsUpdate = !0;
|
|
35311
35311
|
}
|
|
35312
35312
|
}
|
|
35313
|
-
var hA = Object.defineProperty, dA = Object.getOwnPropertyDescriptor,
|
|
35313
|
+
var hA = Object.defineProperty, dA = Object.getOwnPropertyDescriptor, xh = (o, t, e, i) => {
|
|
35314
35314
|
for (var n = i > 1 ? void 0 : i ? dA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
35315
35315
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
35316
35316
|
return i && n && hA(t, e, n), n;
|
|
@@ -35594,19 +35594,19 @@ class ra extends L {
|
|
|
35594
35594
|
// private openWindowToSelectCamera(){
|
|
35595
35595
|
// }
|
|
35596
35596
|
}
|
|
35597
|
-
|
|
35597
|
+
xh([
|
|
35598
35598
|
f()
|
|
35599
35599
|
], ra.prototype, "allowStartOnClick", 2);
|
|
35600
|
-
|
|
35600
|
+
xh([
|
|
35601
35601
|
f()
|
|
35602
35602
|
], ra.prototype, "autoConnect", 2);
|
|
35603
|
-
|
|
35603
|
+
xh([
|
|
35604
35604
|
f(bt)
|
|
35605
35605
|
], ra.prototype, "videoPlayer", 1);
|
|
35606
|
-
|
|
35606
|
+
xh([
|
|
35607
35607
|
f()
|
|
35608
35608
|
], ra.prototype, "device", 2);
|
|
35609
|
-
|
|
35609
|
+
xh([
|
|
35610
35610
|
f()
|
|
35611
35611
|
], ra.prototype, "deviceName", 2);
|
|
35612
35612
|
var uA = Object.defineProperty, fx = (o, t, e, i) => {
|
|
@@ -35713,7 +35713,7 @@ fx([
|
|
|
35713
35713
|
fx([
|
|
35714
35714
|
f(ce)
|
|
35715
35715
|
], _f.prototype, "shadowColor");
|
|
35716
|
-
var fA = Object.defineProperty,
|
|
35716
|
+
var fA = Object.defineProperty, Sh = (o, t, e, i) => {
|
|
35717
35717
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
35718
35718
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
35719
35719
|
return n && fA(t, e, n), n;
|
|
@@ -35908,20 +35908,20 @@ const Hr = class extends L {
|
|
|
35908
35908
|
this.context.domElement.removeEventListener("dragover", this.onDragOverEvent), this.context.domElement.removeEventListener("drop", this.onDrop);
|
|
35909
35909
|
}
|
|
35910
35910
|
};
|
|
35911
|
-
|
|
35911
|
+
Sh([
|
|
35912
35912
|
Aw(Hr.prototype.urlChangedSyncField),
|
|
35913
35913
|
f(URL)
|
|
35914
35914
|
], Hr.prototype, "url");
|
|
35915
|
-
|
|
35915
|
+
Sh([
|
|
35916
35916
|
f()
|
|
35917
35917
|
], Hr.prototype, "allowDrop");
|
|
35918
|
-
|
|
35918
|
+
Sh([
|
|
35919
35919
|
f()
|
|
35920
35920
|
], Hr.prototype, "background");
|
|
35921
|
-
|
|
35921
|
+
Sh([
|
|
35922
35922
|
f()
|
|
35923
35923
|
], Hr.prototype, "environment");
|
|
35924
|
-
|
|
35924
|
+
Sh([
|
|
35925
35925
|
f()
|
|
35926
35926
|
], Hr.prototype, "allowNetworking");
|
|
35927
35927
|
let Sy = Hr;
|
|
@@ -35944,13 +35944,13 @@ var yA = Object.defineProperty, bf = (o, t, e, i) => {
|
|
|
35944
35944
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
35945
35945
|
return n && yA(t, e, n), n;
|
|
35946
35946
|
}, kr;
|
|
35947
|
-
const
|
|
35947
|
+
const Ch = (kr = class extends L {
|
|
35948
35948
|
constructor() {
|
|
35949
35949
|
super(...arguments);
|
|
35950
35950
|
r(this, "target", null);
|
|
35951
35951
|
r(this, "followFactor", 0.1);
|
|
35952
35952
|
r(this, "rotateFactor", 0.1);
|
|
35953
|
-
r(this, "positionAxes",
|
|
35953
|
+
r(this, "positionAxes", sc.All);
|
|
35954
35954
|
r(this, "flipForward", !1);
|
|
35955
35955
|
r(this, "_firstUpdate", !0);
|
|
35956
35956
|
}
|
|
@@ -35964,7 +35964,7 @@ const Ph = (kr = class extends L {
|
|
|
35964
35964
|
if (!(!this.target || this.target === this.gameObject)) {
|
|
35965
35965
|
if (this.followFactor > 0) {
|
|
35966
35966
|
const i = te(this.target), n = this._firstUpdate || e ? 1 : $.clamp01(this.context.time.deltaTime * this.followFactor), s = this.worldPosition;
|
|
35967
|
-
this.positionAxes &
|
|
35967
|
+
this.positionAxes & sc.X && (s.x = $.lerp(s.x, i.x, n)), this.positionAxes & sc.Y && (s.y = $.lerp(s.y, i.y, n)), this.positionAxes & sc.Z && (s.z = $.lerp(s.z, i.z, n)), this.worldPosition = s;
|
|
35968
35968
|
}
|
|
35969
35969
|
if (this.rotateFactor > 0) {
|
|
35970
35970
|
const i = Oe(this.target);
|
|
@@ -35978,23 +35978,23 @@ const Ph = (kr = class extends L {
|
|
|
35978
35978
|
}, r(kr, "_invertForward", new W().setFromAxisAngle(new v(0, 1, 0), Math.PI)), kr);
|
|
35979
35979
|
bf([
|
|
35980
35980
|
f(I)
|
|
35981
|
-
],
|
|
35981
|
+
], Ch.prototype, "target");
|
|
35982
35982
|
bf([
|
|
35983
35983
|
f()
|
|
35984
|
-
],
|
|
35984
|
+
], Ch.prototype, "followFactor");
|
|
35985
35985
|
bf([
|
|
35986
35986
|
f()
|
|
35987
|
-
],
|
|
35987
|
+
], Ch.prototype, "rotateFactor");
|
|
35988
35988
|
bf([
|
|
35989
35989
|
f()
|
|
35990
|
-
],
|
|
35991
|
-
let Cy =
|
|
35992
|
-
var _A = Object.defineProperty,
|
|
35990
|
+
], Ch.prototype, "positionAxes");
|
|
35991
|
+
let Cy = Ch;
|
|
35992
|
+
var _A = Object.defineProperty, Ph = (o, t, e, i) => {
|
|
35993
35993
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
35994
35994
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
35995
35995
|
return n && _A(t, e, n), n;
|
|
35996
35996
|
};
|
|
35997
|
-
const
|
|
35997
|
+
const xc = S("debugspatialtrigger"), Vb = new Fo(), Hb = new Fo();
|
|
35998
35998
|
function bA(o, t) {
|
|
35999
35999
|
return Vb.mask = o, Hb.mask = t, Vb.test(Hb);
|
|
36000
36000
|
}
|
|
@@ -36015,7 +36015,7 @@ class Fs extends L {
|
|
|
36015
36015
|
* @internal
|
|
36016
36016
|
*/
|
|
36017
36017
|
start() {
|
|
36018
|
-
|
|
36018
|
+
xc && console.log(this.name, this.triggerMask, this);
|
|
36019
36019
|
}
|
|
36020
36020
|
/**
|
|
36021
36021
|
* Checks for intersections with spatial triggers and fires appropriate events
|
|
@@ -36040,7 +36040,7 @@ class Fs extends L {
|
|
|
36040
36040
|
*/
|
|
36041
36041
|
onEnterTrigger(e) {
|
|
36042
36042
|
var i;
|
|
36043
|
-
|
|
36043
|
+
xc && console.log("ENTER TRIGGER", this.name, e.name, this, e), e.raiseOnEnterEvent(this), (i = this.onEnter) == null || i.invoke();
|
|
36044
36044
|
}
|
|
36045
36045
|
/**
|
|
36046
36046
|
* Handles trigger exit events.
|
|
@@ -36048,7 +36048,7 @@ class Fs extends L {
|
|
|
36048
36048
|
*/
|
|
36049
36049
|
onExitTrigger(e) {
|
|
36050
36050
|
var i;
|
|
36051
|
-
|
|
36051
|
+
xc && console.log("EXIT TRIGGER", this.name, e.name), e.raiseOnExitEvent(this), (i = this.onExit) == null || i.invoke();
|
|
36052
36052
|
}
|
|
36053
36053
|
/**
|
|
36054
36054
|
* Handles trigger stay events.
|
|
@@ -36059,16 +36059,16 @@ class Fs extends L {
|
|
|
36059
36059
|
e.raiseOnStayEvent(this), (i = this.onStay) == null || i.invoke();
|
|
36060
36060
|
}
|
|
36061
36061
|
}
|
|
36062
|
-
|
|
36062
|
+
Ph([
|
|
36063
36063
|
f()
|
|
36064
36064
|
], Fs.prototype, "triggerMask");
|
|
36065
|
-
|
|
36065
|
+
Ph([
|
|
36066
36066
|
f(Se)
|
|
36067
36067
|
], Fs.prototype, "onEnter");
|
|
36068
|
-
|
|
36068
|
+
Ph([
|
|
36069
36069
|
f(Se)
|
|
36070
36070
|
], Fs.prototype, "onStay");
|
|
36071
|
-
|
|
36071
|
+
Ph([
|
|
36072
36072
|
f(Se)
|
|
36073
36073
|
], Fs.prototype, "onExit");
|
|
36074
36074
|
var Es;
|
|
@@ -36083,14 +36083,14 @@ const mx = (Es = class extends L {
|
|
|
36083
36083
|
* Initializes the trigger and logs debug info if enabled
|
|
36084
36084
|
*/
|
|
36085
36085
|
start() {
|
|
36086
|
-
|
|
36086
|
+
xc && console.log(this.name, this.triggerMask, this);
|
|
36087
36087
|
}
|
|
36088
36088
|
/**
|
|
36089
36089
|
* Registers this trigger in the global registry and sets up debug visualization if enabled
|
|
36090
36090
|
*/
|
|
36091
36091
|
onEnable() {
|
|
36092
36092
|
var e;
|
|
36093
|
-
Es.triggers.push(this), this.boxHelper || (this.boxHelper = C.addComponent(this.gameObject, Hs), (e = this.boxHelper) == null || e.showHelper(null,
|
|
36093
|
+
Es.triggers.push(this), this.boxHelper || (this.boxHelper = C.addComponent(this.gameObject, Hs), (e = this.boxHelper) == null || e.showHelper(null, xc));
|
|
36094
36094
|
}
|
|
36095
36095
|
/**
|
|
36096
36096
|
* Removes this trigger from the global registry when disabled
|
|
@@ -36136,7 +36136,7 @@ const mx = (Es = class extends L {
|
|
|
36136
36136
|
}
|
|
36137
36137
|
}, /** Global registry of all active spatial triggers in the scene */
|
|
36138
36138
|
r(Es, "triggers", []), Es);
|
|
36139
|
-
|
|
36139
|
+
Ph([
|
|
36140
36140
|
f()
|
|
36141
36141
|
], mx.prototype, "triggerMask");
|
|
36142
36142
|
let Py = mx;
|
|
@@ -36979,7 +36979,7 @@ class bx extends L {
|
|
|
36979
36979
|
}
|
|
36980
36980
|
awake() {
|
|
36981
36981
|
if (this.useFlatbuffers)
|
|
36982
|
-
this.context.connection.beginListenBinary(
|
|
36982
|
+
this.context.connection.beginListenBinary(Nc, (e) => {
|
|
36983
36983
|
});
|
|
36984
36984
|
else {
|
|
36985
36985
|
this.models = [];
|
|
@@ -37538,7 +37538,7 @@ const FA = S("mutetimeline"), xr = class xr extends Sf {
|
|
|
37538
37538
|
}
|
|
37539
37539
|
};
|
|
37540
37540
|
r(xr, "_audioBuffers", /* @__PURE__ */ new Map());
|
|
37541
|
-
let
|
|
37541
|
+
let Yc = xr;
|
|
37542
37542
|
class au extends Sf {
|
|
37543
37543
|
constructor() {
|
|
37544
37544
|
super(...arguments);
|
|
@@ -37592,7 +37592,7 @@ class Ry extends Sf {
|
|
|
37592
37592
|
console.log("no source object, removing model", i, s), this.models.splice(i, 1);
|
|
37593
37593
|
continue;
|
|
37594
37594
|
} else {
|
|
37595
|
-
const a = C.getComponent(s.sourceObject,
|
|
37595
|
+
const a = C.getComponent(s.sourceObject, Kc);
|
|
37596
37596
|
this.timelines.push(a), a && s.updateDirector && (a.playOnAwake = !1);
|
|
37597
37597
|
}
|
|
37598
37598
|
}
|
|
@@ -37986,7 +37986,7 @@ const Ty = (Ro = class extends L {
|
|
|
37986
37986
|
}
|
|
37987
37987
|
} else if (a.type === Xi.Audio) {
|
|
37988
37988
|
if (!a.clips || a.clips.length <= 0) continue;
|
|
37989
|
-
const h = new
|
|
37989
|
+
const h = new Yc();
|
|
37990
37990
|
h.director = this, h.track = a, h.audioSource = a.outputs.find((d) => d instanceof On), this._audioTracks.push(h), e || (e = (s = this.context.mainCameraComponent) == null ? void 0 : s.gameObject.addComponent(ko)), h.listener = e.listener;
|
|
37991
37991
|
for (let d = 0; d < a.clips.length; d++) {
|
|
37992
37992
|
const u = a.clips[d];
|
|
@@ -38042,7 +38042,7 @@ Sx([
|
|
|
38042
38042
|
Sx([
|
|
38043
38043
|
f()
|
|
38044
38044
|
], Ty.prototype, "extrapolationMode");
|
|
38045
|
-
let
|
|
38045
|
+
let Kc = Ty;
|
|
38046
38046
|
var UA = Object.defineProperty, Cf = (o, t, e, i) => {
|
|
38047
38047
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38048
38048
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -38145,7 +38145,7 @@ class Tl extends L {
|
|
|
38145
38145
|
/** @internal */
|
|
38146
38146
|
onEnable() {
|
|
38147
38147
|
var e;
|
|
38148
|
-
if (!(this.isGizmo && !
|
|
38148
|
+
if (!(this.isGizmo && !th) && this.context.mainCamera && (this._control || (this._control = new M1(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) => {
|
|
38149
38149
|
const s = n;
|
|
38150
38150
|
if (s.layers.set(2), s) {
|
|
38151
38151
|
const a = s.material;
|
|
@@ -38202,7 +38202,7 @@ class Ey {
|
|
|
38202
38202
|
Pf([
|
|
38203
38203
|
f(ze)
|
|
38204
38204
|
], Ey.prototype, "texture", 2);
|
|
38205
|
-
let
|
|
38205
|
+
let Oh = class extends rf {
|
|
38206
38206
|
constructor() {
|
|
38207
38207
|
super(...arguments);
|
|
38208
38208
|
r(this, "_sprite");
|
|
@@ -38243,10 +38243,10 @@ let kh = class extends rf {
|
|
|
38243
38243
|
};
|
|
38244
38244
|
Pf([
|
|
38245
38245
|
f(Ey)
|
|
38246
|
-
],
|
|
38246
|
+
], Oh.prototype, "sprite", 1);
|
|
38247
38247
|
Pf([
|
|
38248
38248
|
f()
|
|
38249
|
-
],
|
|
38249
|
+
], Oh.prototype, "pixelsPerUnitMultiplier", 2);
|
|
38250
38250
|
class Ay extends rf {
|
|
38251
38251
|
constructor() {
|
|
38252
38252
|
super(...arguments);
|
|
@@ -38383,7 +38383,7 @@ class ir extends L {
|
|
|
38383
38383
|
this._requestedAnimatorTrigger = e, yield, yield, this._requestedAnimatorTrigger == e && ((i = this.animator) == null || i.setTrigger(e));
|
|
38384
38384
|
}
|
|
38385
38385
|
init() {
|
|
38386
|
-
this._isInit || (this._isInit = !0, this._image = C.getComponent(this.gameObject,
|
|
38386
|
+
this._isInit || (this._isInit = !0, this._image = C.getComponent(this.gameObject, Oh), this._image && (this.stateSetup(this._image), this.interactable ? this._image.setState("normal") : this._image.setState("disabled")));
|
|
38387
38387
|
}
|
|
38388
38388
|
stateSetup(e) {
|
|
38389
38389
|
var m, g, y, b, _;
|
|
@@ -38459,7 +38459,7 @@ var GA = Object.defineProperty, Of = (o, t, e, i) => {
|
|
|
38459
38459
|
};
|
|
38460
38460
|
const lo = S("debuginputfield");
|
|
38461
38461
|
var X;
|
|
38462
|
-
const
|
|
38462
|
+
const kh = (X = class extends L {
|
|
38463
38463
|
constructor() {
|
|
38464
38464
|
super(...arguments);
|
|
38465
38465
|
r(this, "textComponent");
|
|
@@ -38606,17 +38606,17 @@ const Mh = (X = class extends L {
|
|
|
38606
38606
|
}, r(X, "active", null), r(X, "activeTime", -1), r(X, "htmlField", null), r(X, "htmlFieldFocused", !1), X);
|
|
38607
38607
|
Of([
|
|
38608
38608
|
f(si)
|
|
38609
|
-
],
|
|
38609
|
+
], kh.prototype, "textComponent");
|
|
38610
38610
|
Of([
|
|
38611
38611
|
f(si)
|
|
38612
|
-
],
|
|
38612
|
+
], kh.prototype, "placeholder");
|
|
38613
38613
|
Of([
|
|
38614
38614
|
f(Se)
|
|
38615
|
-
],
|
|
38615
|
+
], kh.prototype, "onValueChanged");
|
|
38616
38616
|
Of([
|
|
38617
38617
|
f(Se)
|
|
38618
|
-
],
|
|
38619
|
-
let Cx =
|
|
38618
|
+
], kh.prototype, "onEndEdit");
|
|
38619
|
+
let Cx = kh;
|
|
38620
38620
|
var qA = Object.defineProperty, Px = (o, t, e, i) => {
|
|
38621
38621
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38622
38622
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -38867,7 +38867,7 @@ var YA = Object.defineProperty, Mf = (o, t, e, i) => {
|
|
|
38867
38867
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
38868
38868
|
return n && YA(t, e, n), n;
|
|
38869
38869
|
}, Mr;
|
|
38870
|
-
const
|
|
38870
|
+
const Mh = (Mr = class extends L {
|
|
38871
38871
|
constructor() {
|
|
38872
38872
|
super(...arguments);
|
|
38873
38873
|
r(this, "target");
|
|
@@ -38908,23 +38908,23 @@ const Rh = (Mr = class extends L {
|
|
|
38908
38908
|
}, r(Mr, "flipYQuat", new W().setFromAxisAngle(new v(0, 1, 0), Math.PI)), Mr);
|
|
38909
38909
|
Mf([
|
|
38910
38910
|
f(I)
|
|
38911
|
-
],
|
|
38911
|
+
], Mh.prototype, "target");
|
|
38912
38912
|
Mf([
|
|
38913
38913
|
f()
|
|
38914
|
-
],
|
|
38914
|
+
], Mh.prototype, "invertForward");
|
|
38915
38915
|
Mf([
|
|
38916
38916
|
f()
|
|
38917
|
-
],
|
|
38917
|
+
], Mh.prototype, "keepUpDirection");
|
|
38918
38918
|
Mf([
|
|
38919
38919
|
f()
|
|
38920
|
-
],
|
|
38921
|
-
let Ox =
|
|
38920
|
+
], Mh.prototype, "copyTargetRotation");
|
|
38921
|
+
let Ox = Mh;
|
|
38922
38922
|
var KA = Object.defineProperty, Ly = (o, t, e, i) => {
|
|
38923
38923
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38924
38924
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
38925
38925
|
return n && KA(t, e, n), n;
|
|
38926
38926
|
};
|
|
38927
|
-
class
|
|
38927
|
+
class Rh extends L {
|
|
38928
38928
|
constructor() {
|
|
38929
38929
|
super(...arguments);
|
|
38930
38930
|
r(this, "url");
|
|
@@ -38976,13 +38976,13 @@ class Th extends L {
|
|
|
38976
38976
|
}
|
|
38977
38977
|
Ly([
|
|
38978
38978
|
f()
|
|
38979
|
-
],
|
|
38979
|
+
], Rh.prototype, "url");
|
|
38980
38980
|
Ly([
|
|
38981
38981
|
f()
|
|
38982
|
-
],
|
|
38982
|
+
], Rh.prototype, "mode");
|
|
38983
38983
|
Ly([
|
|
38984
38984
|
f()
|
|
38985
|
-
],
|
|
38985
|
+
], Rh.prototype, "clickable");
|
|
38986
38986
|
var ZA = Object.defineProperty, El = (o, t, e, i) => {
|
|
38987
38987
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38988
38988
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -39123,7 +39123,7 @@ function Mx(o) {
|
|
|
39123
39123
|
const b = l.getRenderTarget(), _ = l.getClearColor(new le()), w = l.getClearAlpha(), x = i.scene.background, R = "aspect" in a ? a.aspect : null;
|
|
39124
39124
|
try {
|
|
39125
39125
|
const O = o.render_events !== !1, B = new Array();
|
|
39126
|
-
O && (
|
|
39126
|
+
O && (ih(i.scene, on, B), B.forEach((A) => {
|
|
39127
39127
|
var z;
|
|
39128
39128
|
if (A == null || A.onBeforeRender(), A.isInstancingActive && A.instances)
|
|
39129
39129
|
for (let V = 0; V < ((z = A.instances) == null ? void 0 : z.length); V++) {
|
|
@@ -40016,20 +40016,20 @@ k.add("Avatar_MouthShapes", Vu);
|
|
|
40016
40016
|
k.add("Avatar_MustacheShake", Hv);
|
|
40017
40017
|
k.add("AvatarBlink_Simple", fl);
|
|
40018
40018
|
k.add("AvatarEyeLook_Rotation", Xv);
|
|
40019
|
-
k.add("AxesHelper",
|
|
40019
|
+
k.add("AxesHelper", rh);
|
|
40020
40020
|
k.add("BasicIKConstraint", Qv);
|
|
40021
40021
|
k.add("BoxHelperComponent", Hs);
|
|
40022
40022
|
k.add("Camera", Ti);
|
|
40023
40023
|
k.add("CharacterController", pl);
|
|
40024
40024
|
k.add("CharacterControllerInput", Vo);
|
|
40025
40025
|
k.add("Collider", Fi);
|
|
40026
|
-
k.add("SphereCollider",
|
|
40026
|
+
k.add("SphereCollider", ah);
|
|
40027
40027
|
k.add("BoxCollider", $g);
|
|
40028
40028
|
k.add("MeshCollider", Jr);
|
|
40029
40029
|
k.add("CapsuleCollider", No);
|
|
40030
40030
|
k.add("ContactShadows", qu);
|
|
40031
40031
|
k.add("LogStats", Kv);
|
|
40032
|
-
k.add("DeleteBox",
|
|
40032
|
+
k.add("DeleteBox", $c);
|
|
40033
40033
|
k.add("Deletable", Jv);
|
|
40034
40034
|
k.add("DeviceFlag", Wg);
|
|
40035
40035
|
k.add("DragControls", Oa);
|
|
@@ -40043,18 +40043,18 @@ k.add("VariantAction", kw);
|
|
|
40043
40043
|
k.add("ChangeTransformOnClick", _l);
|
|
40044
40044
|
k.add("ChangeMaterialOnClick", Mw);
|
|
40045
40045
|
k.add("SetActiveOnClick", Rw);
|
|
40046
|
-
k.add("HideOnStart",
|
|
40047
|
-
k.add("EmphasizeOnClick",
|
|
40046
|
+
k.add("HideOnStart", Vc);
|
|
40047
|
+
k.add("EmphasizeOnClick", hh);
|
|
40048
40048
|
k.add("PlayAudioOnClick", $r);
|
|
40049
40049
|
k.add("PlayAnimationOnClick", tu);
|
|
40050
|
-
k.add("PreliminaryAction",
|
|
40050
|
+
k.add("PreliminaryAction", dh);
|
|
40051
40051
|
k.add("PreliminaryTrigger", Zu);
|
|
40052
40052
|
k.add("VisibilityAction", Ju);
|
|
40053
40053
|
k.add("TapGestureTrigger", Tw);
|
|
40054
40054
|
k.add("USDZExporter", Bs);
|
|
40055
|
-
k.add("Fog",
|
|
40055
|
+
k.add("Fog", ph);
|
|
40056
40056
|
k.add("BoxGizmo", Sl);
|
|
40057
|
-
k.add("GridHelper",
|
|
40057
|
+
k.add("GridHelper", mh);
|
|
40058
40058
|
k.add("GroundProjectedEnv", Qs);
|
|
40059
40059
|
k.add("UsageMarker", Xu);
|
|
40060
40060
|
k.add("Interactable", Zv);
|
|
@@ -40071,7 +40071,7 @@ k.add("CameraTargetReachedEvent", Qd);
|
|
|
40071
40071
|
k.add("OrbitControls", xe);
|
|
40072
40072
|
k.add("ParticleSystemRenderer", Tn);
|
|
40073
40073
|
k.add("ParticleSystem", nu);
|
|
40074
|
-
k.add("PlayerColor",
|
|
40074
|
+
k.add("PlayerColor", Xc);
|
|
40075
40075
|
k.add("Antialiasing", uf);
|
|
40076
40076
|
k.add("BloomEffect", by);
|
|
40077
40077
|
k.add("ChromaticAberration", pf);
|
|
@@ -40083,9 +40083,9 @@ k.add("ScreenSpaceAmbientOcclusion", Jo);
|
|
|
40083
40083
|
k.add("ScreenSpaceAmbientOcclusionN8", cs);
|
|
40084
40084
|
k.add("SharpeningEffect", yf);
|
|
40085
40085
|
k.add("TiltShiftEffect", to);
|
|
40086
|
-
k.add("ToneMappingEffect",
|
|
40086
|
+
k.add("ToneMappingEffect", Qc);
|
|
40087
40087
|
k.add("Vignette", Rl);
|
|
40088
|
-
k.add("Volume",
|
|
40088
|
+
k.add("Volume", wh);
|
|
40089
40089
|
k.add("ReflectionProbe", Qg);
|
|
40090
40090
|
k.add("Renderer", on);
|
|
40091
40091
|
k.add("MeshRenderer", Yu);
|
|
@@ -40105,28 +40105,28 @@ k.add("SyncedRoom", hs);
|
|
|
40105
40105
|
k.add("SyncedTransform", Vs);
|
|
40106
40106
|
k.add("TestRunner", _x);
|
|
40107
40107
|
k.add("TestSimulateUserData", bx);
|
|
40108
|
-
k.add("PlayableDirector",
|
|
40108
|
+
k.add("PlayableDirector", Kc);
|
|
40109
40109
|
k.add("SignalReceiver", xf);
|
|
40110
40110
|
k.add("AnimationTrackHandler", My);
|
|
40111
|
-
k.add("AudioTrackHandler",
|
|
40111
|
+
k.add("AudioTrackHandler", Yc);
|
|
40112
40112
|
k.add("SignalTrackHandler", au);
|
|
40113
40113
|
k.add("ControlTrackHandler", Ry);
|
|
40114
40114
|
k.add("TransformGizmo", Tl);
|
|
40115
40115
|
k.add("BaseUIComponent", kn);
|
|
40116
40116
|
k.add("UIRootComponent", sf);
|
|
40117
40117
|
k.add("Button", ir);
|
|
40118
|
-
k.add("Canvas",
|
|
40118
|
+
k.add("Canvas", Gc);
|
|
40119
40119
|
k.add("CanvasGroup", Vr);
|
|
40120
40120
|
k.add("EventSystem", mi);
|
|
40121
40121
|
k.add("Graphic", of);
|
|
40122
40122
|
k.add("MaskableGraphic", rf);
|
|
40123
|
-
k.add("Image",
|
|
40123
|
+
k.add("Image", Oh);
|
|
40124
40124
|
k.add("RawImage", Ay);
|
|
40125
40125
|
k.add("InputField", Cx);
|
|
40126
40126
|
k.add("VerticalLayoutGroup", $w);
|
|
40127
40127
|
k.add("HorizontalLayoutGroup", Ww);
|
|
40128
40128
|
k.add("GridLayoutGroup", Vw);
|
|
40129
|
-
k.add("Outline",
|
|
40129
|
+
k.add("Outline", fh);
|
|
40130
40130
|
k.add("ObjectRaycaster", sn);
|
|
40131
40131
|
k.add("GraphicRaycaster", Dg);
|
|
40132
40132
|
k.add("SpatialGrabRaycaster", al);
|
|
@@ -40135,7 +40135,7 @@ k.add("SpatialHtml", kf);
|
|
|
40135
40135
|
k.add("Text", si);
|
|
40136
40136
|
k.add("EnvironmentScene", Iy);
|
|
40137
40137
|
k.add("LookAt", Ox);
|
|
40138
|
-
k.add("OpenURL",
|
|
40138
|
+
k.add("OpenURL", Rh);
|
|
40139
40139
|
k.add("VideoPlayer", bt);
|
|
40140
40140
|
k.add("Voip", Zr);
|
|
40141
40141
|
k.add("Avatar", Wr);
|
|
@@ -40154,7 +40154,7 @@ k.add("XRFlag", _n);
|
|
|
40154
40154
|
k.add("PlayerSync", Lw);
|
|
40155
40155
|
k.add("PlayerState", Wn);
|
|
40156
40156
|
k.add("PresentationMode", hI);
|
|
40157
|
-
const
|
|
40157
|
+
const Sc = gt, dI = S("debugtypestore");
|
|
40158
40158
|
dI && console.log(k);
|
|
40159
40159
|
function uI(o, t) {
|
|
40160
40160
|
const i = pO(o, t);
|
|
@@ -40200,13 +40200,13 @@ const Hm = Symbol("original-component-name"), ga = /* @__PURE__ */ new Map();
|
|
|
40200
40200
|
function Gm(o, t, e, i) {
|
|
40201
40201
|
if (t === null || !o) return;
|
|
40202
40202
|
const n = o.guid, s = o.guid;
|
|
40203
|
-
s != null && s.length && (ga.has(s) || (
|
|
40203
|
+
s != null && s.length && (ga.has(s) || (Sc && console.log('Creating InstanceIdProvider with key "' + s + '" for object ' + o.name), ga.set(s, new Dt(s))));
|
|
40204
40204
|
const a = s && ga.get(s) || t;
|
|
40205
40205
|
if (o.guid = a.generateUUID(), n && n !== "invalid" && (e[n] = o.guid), o && o.userData && o.userData.components)
|
|
40206
40206
|
for (const l of o.userData.components) {
|
|
40207
40207
|
if (l === null) continue;
|
|
40208
40208
|
const c = l.guid;
|
|
40209
|
-
c ? ga.has(c) || (
|
|
40209
|
+
c ? ga.has(c) || (Sc && console.log('Creating InstanceIdProvider with key "' + c + '" for component ' + l[Hm]), ga.set(c, new Dt(c))) : Sc && console.warn("Can not create IdProvider: component " + l[Hm] + " has no guid", l.guid);
|
|
40210
40210
|
const h = ga.get(c) || t, d = l.guid;
|
|
40211
40211
|
l.guid = h.generateUUID(), d && d !== "invalid" && (e[d] = l.guid), l.resolveGuids && i.push(l);
|
|
40212
40212
|
}
|
|
@@ -40230,7 +40230,7 @@ async function qm(o, t, e, i) {
|
|
|
40230
40230
|
const m = new p();
|
|
40231
40231
|
m.sourceId = o.gltfId, tl(m, u, o.implementationInformation), m.context = o.context, "guid" in u && (m[hd] = u.guid), m[Hm] = u.name, $a(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());
|
|
40232
40232
|
} else
|
|
40233
|
-
|
|
40233
|
+
Sc && console.debug("unknown component: " + u.name), ql.includes(u.name) || ql.push(u.name);
|
|
40234
40234
|
} catch (p) {
|
|
40235
40235
|
console.error(u.name + " - " + p.message, p);
|
|
40236
40236
|
}
|
|
@@ -40250,7 +40250,7 @@ This could mean you forgot to add a npmdef to your ExportInfo
|
|
|
40250
40250
|
}
|
|
40251
40251
|
function mI(o, t) {
|
|
40252
40252
|
const { instance: e, compData: i, obj: n } = o;
|
|
40253
|
-
t.object = n, t.target = e, hm(e, i, t),
|
|
40253
|
+
t.object = n, t.target = e, hm(e, i, t), Sc && console.debug("add " + i.name, i, e);
|
|
40254
40254
|
}
|
|
40255
40255
|
class Rx {
|
|
40256
40256
|
createBuiltinComponents(t, e, i, n, s) {
|
|
@@ -40315,7 +40315,7 @@ async function yI(o, t, e, i) {
|
|
|
40315
40315
|
if (n instanceof ag) {
|
|
40316
40316
|
typeof t != "string" && (t = new TextDecoder().decode(t));
|
|
40317
40317
|
const l = n.parse(t);
|
|
40318
|
-
return await
|
|
40318
|
+
return await Cc(n, o, e, l, i, s);
|
|
40319
40319
|
}
|
|
40320
40320
|
if (!(n instanceof $s)) {
|
|
40321
40321
|
if (n.parse === void 0) {
|
|
@@ -40323,14 +40323,14 @@ async function yI(o, t, e, i) {
|
|
|
40323
40323
|
return;
|
|
40324
40324
|
}
|
|
40325
40325
|
const l = n.parse(t, e);
|
|
40326
|
-
return await
|
|
40326
|
+
return await Cc(n, o, e, l, i, s);
|
|
40327
40327
|
}
|
|
40328
40328
|
return new Promise((l, c) => {
|
|
40329
40329
|
try {
|
|
40330
40330
|
let h = e.split("?")[0].trimEnd();
|
|
40331
40331
|
const d = h.split("/");
|
|
40332
40332
|
d.length > 0 && d[d.length - 1] !== "" && d.pop(), h = d.join("/"), h.endsWith("/") || (h += "/"), n.resourcePath = h, n.parse(t, "", async (u) => {
|
|
40333
|
-
const p = await
|
|
40333
|
+
const p = await Cc(n, o, e, u, i, s);
|
|
40334
40334
|
l(p);
|
|
40335
40335
|
}, (u) => {
|
|
40336
40336
|
console.error('Loading asset at "' + e + `" failed
|
|
@@ -40349,12 +40349,12 @@ async function Ax(o, t, e, i, n) {
|
|
|
40349
40349
|
const { componentsExtension: a } = Ix(s, o);
|
|
40350
40350
|
if (!(s instanceof $s)) {
|
|
40351
40351
|
const l = await s.loadAsync(t, n);
|
|
40352
|
-
return await
|
|
40352
|
+
return await Cc(s, o, t, l, i, a);
|
|
40353
40353
|
}
|
|
40354
40354
|
return new Promise((l, c) => {
|
|
40355
40355
|
try {
|
|
40356
40356
|
s.load(t, async (h) => {
|
|
40357
|
-
const d = await
|
|
40357
|
+
const d = await Cc(s, o, e, h, i, a);
|
|
40358
40358
|
l(d);
|
|
40359
40359
|
}, (h) => {
|
|
40360
40360
|
n == null || n.call(s, h);
|
|
@@ -40371,7 +40371,7 @@ function Ix(o, t) {
|
|
|
40371
40371
|
const e = lw(o);
|
|
40372
40372
|
return o instanceof $s && Eg(o, t), { componentsExtension: e };
|
|
40373
40373
|
}
|
|
40374
|
-
async function
|
|
40374
|
+
async function Cc(o, t, e, i, n, s) {
|
|
40375
40375
|
var a;
|
|
40376
40376
|
if (Tx && console.warn("Loaded", e, i), i == null)
|
|
40377
40377
|
return console.error(`Loaded model is null '${e}' - please make sure the loader is registered correctly`), {
|
|
@@ -40544,7 +40544,7 @@ function Dx(o) {
|
|
|
40544
40544
|
const i = o.index / t + Yl / t;
|
|
40545
40545
|
return $.clamp01(i);
|
|
40546
40546
|
}
|
|
40547
|
-
const
|
|
40547
|
+
const Tc = class Tc {
|
|
40548
40548
|
/**
|
|
40549
40549
|
* Creates a new loading view
|
|
40550
40550
|
* @param owner the element that will contain the loading view (should be the NeedleEngineHTMLElement)
|
|
@@ -40569,7 +40569,7 @@ const Ec = class Ec {
|
|
|
40569
40569
|
if (_r && console.warn("Begin Loading"), !this._loadingElement) {
|
|
40570
40570
|
for (let i = 0; i < e.children.length; i++) {
|
|
40571
40571
|
const n = e.children[i];
|
|
40572
|
-
if (n.classList.contains(
|
|
40572
|
+
if (n.classList.contains(Tc.LoadingContainerClassName)) {
|
|
40573
40573
|
if (!this._allowCustomLoadingElement) {
|
|
40574
40574
|
_r && console.warn("Remove custom loading container"), e.removeChild(n);
|
|
40575
40575
|
continue;
|
|
@@ -40619,7 +40619,7 @@ const Ec = class Ec {
|
|
|
40619
40619
|
const g = this._element.getAttribute("loading-background");
|
|
40620
40620
|
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)";
|
|
40621
40621
|
}
|
|
40622
|
-
const n = ((p = this._loadingElementOptions) == null ? void 0 : p.className) ??
|
|
40622
|
+
const n = ((p = this._loadingElementOptions) == null ? void 0 : p.className) ?? Tc.LoadingContainerClassName;
|
|
40623
40623
|
if (this._loadingElement.classList.add(n), (m = this._loadingElementOptions) != null && m.additionalClasses)
|
|
40624
40624
|
for (const g of this._loadingElementOptions.additionalClasses)
|
|
40625
40625
|
this._loadingElement.classList.add(g);
|
|
@@ -40667,8 +40667,8 @@ const Ec = class Ec {
|
|
|
40667
40667
|
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), !U() && Do && (Yb && console.log("Waiting for runtime license check"), await Do, e = js()), !e && (i.style.transition = "opacity .5s ease-in-out", i.style.opacity = "1");
|
|
40668
40668
|
}
|
|
40669
40669
|
};
|
|
40670
|
-
r(
|
|
40671
|
-
let Xm =
|
|
40670
|
+
r(Tc, "LoadingContainerClassName", "loading");
|
|
40671
|
+
let Xm = Tc;
|
|
40672
40672
|
q0(Rx);
|
|
40673
40673
|
const Ae = S("debugwebcomponent"), Zb = "needle-engine", jx = "vr", Bx = "desktop", SI = [Lx, jx, Bx], Kl = "ar-session-active", Zl = "desktop-session-active", CI = [
|
|
40674
40674
|
"public-key",
|
|
@@ -40916,7 +40916,7 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
40916
40916
|
break;
|
|
40917
40917
|
}
|
|
40918
40918
|
case "public-key": {
|
|
40919
|
-
n !=
|
|
40919
|
+
n != cd && this.setPublicKey();
|
|
40920
40920
|
break;
|
|
40921
40921
|
}
|
|
40922
40922
|
case "version": {
|
|
@@ -41016,7 +41016,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
41016
41016
|
this._context.renderer.toneMapping = Pu;
|
|
41017
41017
|
break;
|
|
41018
41018
|
case "neutral":
|
|
41019
|
-
this._context.renderer.toneMapping =
|
|
41019
|
+
this._context.renderer.toneMapping = Ac;
|
|
41020
41020
|
break;
|
|
41021
41021
|
case "agx":
|
|
41022
41022
|
this._context.renderer.toneMapping = Cu;
|
|
@@ -41080,7 +41080,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
41080
41080
|
}
|
|
41081
41081
|
}
|
|
41082
41082
|
setPublicKey() {
|
|
41083
|
-
|
|
41083
|
+
cd.length > 0 && this.setAttribute("public-key", cd);
|
|
41084
41084
|
}
|
|
41085
41085
|
setVersion() {
|
|
41086
41086
|
Qn.length > 0 && this.setAttribute("version", Qn);
|
|
@@ -42065,7 +42065,7 @@ class EI {
|
|
|
42065
42065
|
}
|
|
42066
42066
|
onBeforeExport(t) {
|
|
42067
42067
|
t.context.animations.mixers.forEach((e) => {
|
|
42068
|
-
const i =
|
|
42068
|
+
const i = zc.tryGetActionsFromMixer(e);
|
|
42069
42069
|
if (i)
|
|
42070
42070
|
for (let n = 0; n < i.length; n++) {
|
|
42071
42071
|
const s = i[n];
|
|
@@ -42087,7 +42087,7 @@ class EI {
|
|
|
42087
42087
|
}
|
|
42088
42088
|
function AI(o, t, e) {
|
|
42089
42089
|
o.animations.mixers.forEach((n) => {
|
|
42090
|
-
const s =
|
|
42090
|
+
const s = zc.tryGetActionsFromMixer(n);
|
|
42091
42091
|
if (s)
|
|
42092
42092
|
for (let a = 0; a < s.length; a++) {
|
|
42093
42093
|
const c = s[a].getClip();
|
|
@@ -42095,12 +42095,12 @@ function AI(o, t, e) {
|
|
|
42095
42095
|
}
|
|
42096
42096
|
}), Array.isArray(t) || (t = [t]);
|
|
42097
42097
|
for (const n of t)
|
|
42098
|
-
|
|
42098
|
+
zc.tryGetAnimationClipsFromObjectHierarchy(n, e);
|
|
42099
42099
|
const i = new Set(e);
|
|
42100
42100
|
return Array.from(i);
|
|
42101
42101
|
}
|
|
42102
42102
|
const i0 = "needle-button", Up = U();
|
|
42103
|
-
var Rr, Tr, Er, Xt, ws, Ha, cl, Ux, Nx,
|
|
42103
|
+
var Rr, Tr, Er, Xt, ws, Ha, cl, Ux, Nx, eh;
|
|
42104
42104
|
class zx extends HTMLElement {
|
|
42105
42105
|
constructor() {
|
|
42106
42106
|
super();
|
|
@@ -42114,10 +42114,10 @@ class zx extends HTMLElement {
|
|
|
42114
42114
|
/** If AR or VR is requested we create and use the webxr button factory to create a button with default behaviour */
|
|
42115
42115
|
dn(this, ws);
|
|
42116
42116
|
dn(this, Ha);
|
|
42117
|
-
dn(this,
|
|
42117
|
+
dn(this, eh, (e) => {
|
|
42118
42118
|
Up && console.log("Needle Button clicked"), !e.defaultPrevented && fe(this, Xt) && fe(this, Xt).click();
|
|
42119
42119
|
});
|
|
42120
|
-
this.removeEventListener("click", fe(this,
|
|
42120
|
+
this.removeEventListener("click", fe(this, eh)), this.addEventListener("click", fe(this, eh));
|
|
42121
42121
|
}
|
|
42122
42122
|
attributeChangedCallback(e, i, n) {
|
|
42123
42123
|
Dl(this, cl, Ux).call(this);
|
|
@@ -42172,7 +42172,7 @@ Rr = new WeakMap(), Tr = new WeakMap(), Er = new WeakMap(), Xt = new WeakMap(),
|
|
|
42172
42172
|
`), fe(this, Tr).innerHTML = fe(this, Xt).innerHTML, fe(this, Tr).style.cssText = "display: flex; align-items: center; justify-content: center;", fe(this, Xt).innerHTML = fe(this, Tr).outerHTML, fe(this, Rr).innerHTML = fe(this, Xt).outerHTML, fe(this, Rr).prepend(fe(this, Er)), Vd(ym, { element: fe(this, Rr) }), (n = fe(this, Ha)) == null || n.disconnect(), fe(this, Ha) ?? un(this, Ha, new MutationObserver(() => Dl(this, cl, Nx).call(this))), fe(this, Ha).observe(fe(this, Xt), { attributes: !0 }), Up && console.log("Needle Button updated");
|
|
42173
42173
|
}, Nx = function() {
|
|
42174
42174
|
fe(this, Xt) && (fe(this, Xt).style.display === "none" ? this.style.display = "none" : this.style.display === "none" && (this.style.display = ""));
|
|
42175
|
-
},
|
|
42175
|
+
}, eh = new WeakMap(), r(zx, "observedAttributes", ["ar", "vr", "quicklook"]);
|
|
42176
42176
|
typeof window < "u" && !window.customElements.get(i0) && window.customElements.define(i0, zx);
|
|
42177
42177
|
const Jl = S("debugavatar");
|
|
42178
42178
|
class $x {
|
|
@@ -42223,7 +42223,7 @@ class II {
|
|
|
42223
42223
|
if (typeof e == "string") {
|
|
42224
42224
|
if (i = await this.loadAvatar(t, e), !i) {
|
|
42225
42225
|
const s = new ns();
|
|
42226
|
-
i = C.instantiate(
|
|
42226
|
+
i = C.instantiate(Ic(e, t.scene), s);
|
|
42227
42227
|
}
|
|
42228
42228
|
} else i = e;
|
|
42229
42229
|
if (!i)
|
|
@@ -42353,7 +42353,7 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42353
42353
|
AudioExtension: yl,
|
|
42354
42354
|
AudioListener: ko,
|
|
42355
42355
|
AudioSource: On,
|
|
42356
|
-
AudioTrackHandler:
|
|
42356
|
+
AudioTrackHandler: Yc,
|
|
42357
42357
|
Avatar: Wr,
|
|
42358
42358
|
AvatarBlink_Simple: fl,
|
|
42359
42359
|
AvatarEyeLook_Rotation: Xv,
|
|
@@ -42364,7 +42364,7 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42364
42364
|
Avatar_MouthShapes: Vu,
|
|
42365
42365
|
Avatar_MustacheShake: Hv,
|
|
42366
42366
|
Avatar_POI: Bo,
|
|
42367
|
-
AxesHelper:
|
|
42367
|
+
AxesHelper: rh,
|
|
42368
42368
|
BaseUIComponent: kn,
|
|
42369
42369
|
BasicIKConstraint: Qv,
|
|
42370
42370
|
BehaviorExtension: Dw,
|
|
@@ -42377,7 +42377,7 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42377
42377
|
CallInfo: xo,
|
|
42378
42378
|
Camera: Ti,
|
|
42379
42379
|
CameraTargetReachedEvent: Qd,
|
|
42380
|
-
Canvas:
|
|
42380
|
+
Canvas: Gc,
|
|
42381
42381
|
CanvasGroup: Vr,
|
|
42382
42382
|
CapsuleCollider: No,
|
|
42383
42383
|
ChangeMaterialOnClick: Mw,
|
|
@@ -42387,13 +42387,13 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42387
42387
|
ChromaticAberration: pf,
|
|
42388
42388
|
Collider: Fi,
|
|
42389
42389
|
ColorAdjustments: na,
|
|
42390
|
-
ColorBySpeedModule:
|
|
42390
|
+
ColorBySpeedModule: bh,
|
|
42391
42391
|
ColorOverLifetimeModule: my,
|
|
42392
42392
|
ContactShadows: qu,
|
|
42393
42393
|
ControlTrackHandler: Ry,
|
|
42394
42394
|
CustomBranding: xl,
|
|
42395
42395
|
Deletable: Jv,
|
|
42396
|
-
DeleteBox:
|
|
42396
|
+
DeleteBox: $c,
|
|
42397
42397
|
DepthOfField: ls,
|
|
42398
42398
|
DeviceFlag: Wg,
|
|
42399
42399
|
DocumentExtension: LI,
|
|
@@ -42402,7 +42402,7 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42402
42402
|
Duplicatable: iw,
|
|
42403
42403
|
EffectWrapper: su,
|
|
42404
42404
|
EmissionModule: Zo,
|
|
42405
|
-
EmphasizeOnClick:
|
|
42405
|
+
EmphasizeOnClick: hh,
|
|
42406
42406
|
EnvironmentScene: Iy,
|
|
42407
42407
|
EventList: Se,
|
|
42408
42408
|
EventListEvent: Lg,
|
|
@@ -42410,28 +42410,28 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42410
42410
|
EventTrigger: qg,
|
|
42411
42411
|
FieldWithDefault: xR,
|
|
42412
42412
|
FixedJoint: Xw,
|
|
42413
|
-
Fog:
|
|
42413
|
+
Fog: ph,
|
|
42414
42414
|
GltfExport: gw,
|
|
42415
42415
|
GltfExportBox: mw,
|
|
42416
42416
|
Gradient: Pl,
|
|
42417
42417
|
Graphic: of,
|
|
42418
42418
|
GraphicRaycaster: Dg,
|
|
42419
|
-
GridHelper:
|
|
42419
|
+
GridHelper: mh,
|
|
42420
42420
|
GridLayoutGroup: Vw,
|
|
42421
42421
|
GroundProjectedEnv: Qs,
|
|
42422
42422
|
GroupActionModel: Sr,
|
|
42423
|
-
HideOnStart:
|
|
42423
|
+
HideOnStart: Vc,
|
|
42424
42424
|
HingeJoint: af,
|
|
42425
42425
|
HorizontalLayoutGroup: Ww,
|
|
42426
|
-
Image:
|
|
42426
|
+
Image: Oh,
|
|
42427
42427
|
InheritVelocityModule: Jw,
|
|
42428
42428
|
InputField: Cx,
|
|
42429
42429
|
InstanceHandle: eu,
|
|
42430
|
-
InstancingHandler:
|
|
42430
|
+
InstancingHandler: Wc,
|
|
42431
42431
|
Interactable: Zv,
|
|
42432
42432
|
Keyframe: Ei,
|
|
42433
42433
|
LODGroup: lf,
|
|
42434
|
-
LODModel:
|
|
42434
|
+
LODModel: yh,
|
|
42435
42435
|
Light: Ni,
|
|
42436
42436
|
LimitVelocityOverLifetimeModule: xt,
|
|
42437
42437
|
LogStats: Kv,
|
|
@@ -42449,9 +42449,9 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42449
42449
|
NoiseModule: ke,
|
|
42450
42450
|
ObjectRaycaster: sn,
|
|
42451
42451
|
OffsetConstraint: Cl,
|
|
42452
|
-
OpenURL:
|
|
42452
|
+
OpenURL: Rh,
|
|
42453
42453
|
OrbitControls: xe,
|
|
42454
|
-
Outline:
|
|
42454
|
+
Outline: fh,
|
|
42455
42455
|
Padding: wl,
|
|
42456
42456
|
ParticleBurst: Fm,
|
|
42457
42457
|
ParticleSubEmitter: ex,
|
|
@@ -42461,11 +42461,11 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42461
42461
|
PixelationEffect: gf,
|
|
42462
42462
|
PlayAnimationOnClick: tu,
|
|
42463
42463
|
PlayAudioOnClick: $r,
|
|
42464
|
-
PlayableDirector:
|
|
42465
|
-
PlayerColor:
|
|
42464
|
+
PlayableDirector: Kc,
|
|
42465
|
+
PlayerColor: Xc,
|
|
42466
42466
|
PointerEventData: $u,
|
|
42467
42467
|
PostProcessingHandler: ax,
|
|
42468
|
-
PreliminaryAction:
|
|
42468
|
+
PreliminaryAction: dh,
|
|
42469
42469
|
PreliminaryTrigger: Zu,
|
|
42470
42470
|
RawImage: Ay,
|
|
42471
42471
|
Rect: vT,
|
|
@@ -42500,11 +42500,11 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42500
42500
|
SpatialTrigger: Py,
|
|
42501
42501
|
SpatialTriggerReceiver: Fs,
|
|
42502
42502
|
SpectatorCamera: Oy,
|
|
42503
|
-
SphereCollider:
|
|
42503
|
+
SphereCollider: ah,
|
|
42504
42504
|
Sprite: qo,
|
|
42505
|
-
SpriteData:
|
|
42505
|
+
SpriteData: vc,
|
|
42506
42506
|
SpriteRenderer: zi,
|
|
42507
|
-
SpriteSheet:
|
|
42507
|
+
SpriteSheet: Hc,
|
|
42508
42508
|
SubEmitterSystem: Nm,
|
|
42509
42509
|
SyncedCamera: yx,
|
|
42510
42510
|
SyncedRoom: hs,
|
|
@@ -42518,7 +42518,7 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42518
42518
|
TextExtension: ry,
|
|
42519
42519
|
TextureSheetAnimationModule: ri,
|
|
42520
42520
|
TiltShiftEffect: to,
|
|
42521
|
-
ToneMappingEffect:
|
|
42521
|
+
ToneMappingEffect: Qc,
|
|
42522
42522
|
TrailModule: qe,
|
|
42523
42523
|
TransformData: nt,
|
|
42524
42524
|
TransformGizmo: Tl,
|
|
@@ -42537,7 +42537,7 @@ const c2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42537
42537
|
Vignette: Rl,
|
|
42538
42538
|
VisibilityAction: Ju,
|
|
42539
42539
|
Voip: Zr,
|
|
42540
|
-
Volume:
|
|
42540
|
+
Volume: wh,
|
|
42541
42541
|
VolumeParameter: N,
|
|
42542
42542
|
VolumeProfile: yy,
|
|
42543
42543
|
WebARCameraBackground: Rf,
|
|
@@ -42615,14 +42615,14 @@ pe.registerCallback(me.ContextCreated, (o) => {
|
|
|
42615
42615
|
for (const e of o.files)
|
|
42616
42616
|
C.foreachComponent(e.file.scene, (n) => {
|
|
42617
42617
|
if (n.enabled !== !1) {
|
|
42618
|
-
if (n instanceof ti && n.playAutomatically || n instanceof Ft || n instanceof
|
|
42618
|
+
if (n instanceof ti && n.playAutomatically || n instanceof Ft || n instanceof Kc && n.playOnAwake === !0)
|
|
42619
42619
|
return !0;
|
|
42620
42620
|
if (n instanceof ti)
|
|
42621
42621
|
return n.playAutomatically = !0, !0;
|
|
42622
|
-
if (n instanceof
|
|
42622
|
+
if (n instanceof Kc)
|
|
42623
42623
|
return n.playOnAwake = !0, !0;
|
|
42624
42624
|
}
|
|
42625
|
-
}, !0) !== !0 &&
|
|
42625
|
+
}, !0) !== !0 && zc.assignAnimationsFromFile(e.file, {
|
|
42626
42626
|
createAnimationComponent: (n, s) => en(n, ti)
|
|
42627
42627
|
});
|
|
42628
42628
|
});
|
|
@@ -42683,17 +42683,17 @@ export {
|
|
|
42683
42683
|
Yi as ActionModel,
|
|
42684
42684
|
DO as Addressables,
|
|
42685
42685
|
Uu as AlignmentConstraint,
|
|
42686
|
-
|
|
42686
|
+
pc as AmbientMode,
|
|
42687
42687
|
ti as Animation,
|
|
42688
42688
|
df as AnimationCurve,
|
|
42689
42689
|
Zg as AnimationExtension,
|
|
42690
42690
|
My as AnimationTrackHandler,
|
|
42691
|
-
|
|
42691
|
+
zc as AnimationUtils,
|
|
42692
42692
|
Ft as Animator,
|
|
42693
42693
|
fr as AnimatorConditionMode,
|
|
42694
42694
|
Sn as AnimatorController,
|
|
42695
42695
|
zv as AnimatorControllerParameterType,
|
|
42696
|
-
|
|
42696
|
+
Wh as AnimatorStateInfo,
|
|
42697
42697
|
uf as Antialiasing,
|
|
42698
42698
|
Jn as Application,
|
|
42699
42699
|
FP as AssetDatabase,
|
|
@@ -42701,7 +42701,7 @@ export {
|
|
|
42701
42701
|
yl as AudioExtension,
|
|
42702
42702
|
ko as AudioListener,
|
|
42703
42703
|
On as AudioSource,
|
|
42704
|
-
|
|
42704
|
+
Yc as AudioTrackHandler,
|
|
42705
42705
|
Wr as Avatar,
|
|
42706
42706
|
fl as AvatarBlink_Simple,
|
|
42707
42707
|
Xv as AvatarEyeLook_Rotation,
|
|
@@ -42712,8 +42712,8 @@ export {
|
|
|
42712
42712
|
Vu as Avatar_MouthShapes,
|
|
42713
42713
|
Hv as Avatar_MustacheShake,
|
|
42714
42714
|
Bo as Avatar_POI,
|
|
42715
|
-
|
|
42716
|
-
|
|
42715
|
+
sc as Axes,
|
|
42716
|
+
rh as AxesHelper,
|
|
42717
42717
|
H0 as BUILD_TIME,
|
|
42718
42718
|
kn as BaseUIComponent,
|
|
42719
42719
|
Qv as BasicIKConstraint,
|
|
@@ -42730,7 +42730,7 @@ export {
|
|
|
42730
42730
|
xo as CallInfo,
|
|
42731
42731
|
Ti as Camera,
|
|
42732
42732
|
Qd as CameraTargetReachedEvent,
|
|
42733
|
-
|
|
42733
|
+
Gc as Canvas,
|
|
42734
42734
|
Vr as CanvasGroup,
|
|
42735
42735
|
No as CapsuleCollider,
|
|
42736
42736
|
Mw as ChangeMaterialOnClick,
|
|
@@ -42745,7 +42745,7 @@ export {
|
|
|
42745
42745
|
_M as Collision,
|
|
42746
42746
|
Ig as CollisionDetectionMode,
|
|
42747
42747
|
na as ColorAdjustments,
|
|
42748
|
-
|
|
42748
|
+
bh as ColorBySpeedModule,
|
|
42749
42749
|
my as ColorOverLifetimeModule,
|
|
42750
42750
|
jL as Component,
|
|
42751
42751
|
L as Component$1,
|
|
@@ -42763,7 +42763,7 @@ export {
|
|
|
42763
42763
|
Om as CustomShader,
|
|
42764
42764
|
mm as DefaultReflectionMode,
|
|
42765
42765
|
Jv as Deletable,
|
|
42766
|
-
|
|
42766
|
+
$c as DeleteBox,
|
|
42767
42767
|
ls as DepthOfField,
|
|
42768
42768
|
Wg as DeviceFlag,
|
|
42769
42769
|
Q as DeviceUtilities,
|
|
@@ -42774,7 +42774,7 @@ export {
|
|
|
42774
42774
|
iw as Duplicatable,
|
|
42775
42775
|
su as EffectWrapper,
|
|
42776
42776
|
Zo as EmissionModule,
|
|
42777
|
-
|
|
42777
|
+
hh as EmphasizeOnClick,
|
|
42778
42778
|
Xm as EngineLoadingView,
|
|
42779
42779
|
Iy as EnvironmentScene,
|
|
42780
42780
|
Se as EventList,
|
|
@@ -42787,7 +42787,7 @@ export {
|
|
|
42787
42787
|
QL as FileSpawnModel,
|
|
42788
42788
|
VM as File_Event,
|
|
42789
42789
|
Xw as FixedJoint,
|
|
42790
|
-
|
|
42790
|
+
ph as Fog,
|
|
42791
42791
|
Re as FrameEvent,
|
|
42792
42792
|
fg as GENERATOR,
|
|
42793
42793
|
C as GameObject,
|
|
@@ -42798,16 +42798,16 @@ export {
|
|
|
42798
42798
|
of as Graphic,
|
|
42799
42799
|
Dg as GraphicRaycaster,
|
|
42800
42800
|
yn as Graphics,
|
|
42801
|
-
|
|
42801
|
+
mh as GridHelper,
|
|
42802
42802
|
Vw as GridLayoutGroup,
|
|
42803
42803
|
Qs as GroundProjectedEnv,
|
|
42804
42804
|
Sr as GroupActionModel,
|
|
42805
42805
|
Bg as HideFlags,
|
|
42806
|
-
|
|
42806
|
+
Vc as HideOnStart,
|
|
42807
42807
|
af as HingeJoint,
|
|
42808
42808
|
Ww as HorizontalLayoutGroup,
|
|
42809
42809
|
ML as HostData,
|
|
42810
|
-
|
|
42810
|
+
Oh as Image,
|
|
42811
42811
|
Nd as ImageReference,
|
|
42812
42812
|
FO as ImageReferenceSerializer,
|
|
42813
42813
|
Jw as InheritVelocityModule,
|
|
@@ -42816,7 +42816,7 @@ export {
|
|
|
42816
42816
|
We as InputEvents,
|
|
42817
42817
|
Cx as InputField,
|
|
42818
42818
|
eu as InstanceHandle,
|
|
42819
|
-
|
|
42819
|
+
Wc as InstancingHandler,
|
|
42820
42820
|
xn as InstancingUtil,
|
|
42821
42821
|
QP as InstantiateEvent,
|
|
42822
42822
|
Dt as InstantiateIdProvider,
|
|
@@ -42827,7 +42827,7 @@ export {
|
|
|
42827
42827
|
bL as KeyEventArgs,
|
|
42828
42828
|
Ei as Keyframe,
|
|
42829
42829
|
lf as LODGroup,
|
|
42830
|
-
|
|
42830
|
+
yh as LODModel,
|
|
42831
42831
|
SL as LeftRoomResponse,
|
|
42832
42832
|
Ni as Light,
|
|
42833
42833
|
tk as LightData,
|
|
@@ -42846,7 +42846,7 @@ export {
|
|
|
42846
42846
|
Yu as MeshRenderer,
|
|
42847
42847
|
Z as MinMaxCurve,
|
|
42848
42848
|
Ol as MinMaxGradient,
|
|
42849
|
-
|
|
42849
|
+
Ah as NEKeyboardEvent,
|
|
42850
42850
|
co as NEPointerEvent,
|
|
42851
42851
|
zx as NeedleButtonElement,
|
|
42852
42852
|
Fx as NeedleEngineHTMLElement,
|
|
@@ -42869,12 +42869,12 @@ export {
|
|
|
42869
42869
|
Cl as OffsetConstraint,
|
|
42870
42870
|
jf as OneEuroFilter,
|
|
42871
42871
|
A0 as OneEuroFilterXYZ,
|
|
42872
|
-
|
|
42872
|
+
Rh as OpenURL,
|
|
42873
42873
|
xe as OrbitControls,
|
|
42874
|
-
|
|
42874
|
+
fh as Outline,
|
|
42875
42875
|
vP as OwnershipEvent,
|
|
42876
42876
|
tv as OwnershipModel,
|
|
42877
|
-
|
|
42877
|
+
cd as PUBLIC_KEY,
|
|
42878
42878
|
wl as Padding,
|
|
42879
42879
|
Fm as ParticleBurst,
|
|
42880
42880
|
ex as ParticleSubEmitter,
|
|
@@ -42882,7 +42882,7 @@ export {
|
|
|
42882
42882
|
ia as ParticleSystemBaseBehaviour,
|
|
42883
42883
|
Tn as ParticleSystemRenderer,
|
|
42884
42884
|
jm as ParticleSystemShapeType,
|
|
42885
|
-
|
|
42885
|
+
_c as PeerHandle,
|
|
42886
42886
|
gP as PeerNetworking,
|
|
42887
42887
|
Id as Physics,
|
|
42888
42888
|
jw as PhysicsExtension,
|
|
@@ -42890,8 +42890,8 @@ export {
|
|
|
42890
42890
|
gf as PixelationEffect,
|
|
42891
42891
|
tu as PlayAnimationOnClick,
|
|
42892
42892
|
$r as PlayAudioOnClick,
|
|
42893
|
-
|
|
42894
|
-
|
|
42893
|
+
Kc as PlayableDirector,
|
|
42894
|
+
Xc as PlayerColor,
|
|
42895
42895
|
Wn as PlayerState,
|
|
42896
42896
|
lT as PlayerStateEvent,
|
|
42897
42897
|
Lw as PlayerSync,
|
|
@@ -42901,7 +42901,7 @@ export {
|
|
|
42901
42901
|
yg as PointerType,
|
|
42902
42902
|
dt as PostProcessingEffect,
|
|
42903
42903
|
ax as PostProcessingHandler,
|
|
42904
|
-
|
|
42904
|
+
dh as PreliminaryAction,
|
|
42905
42905
|
Zu as PreliminaryTrigger,
|
|
42906
42906
|
gr as PreviewHelper,
|
|
42907
42907
|
Ja as PrimitiveType,
|
|
@@ -42952,13 +42952,13 @@ export {
|
|
|
42952
42952
|
Py as SpatialTrigger,
|
|
42953
42953
|
Fs as SpatialTriggerReceiver,
|
|
42954
42954
|
Oy as SpectatorCamera,
|
|
42955
|
-
|
|
42955
|
+
ah as SphereCollider,
|
|
42956
42956
|
nv as SphereIntersection,
|
|
42957
42957
|
bM as SphereOverlapResult,
|
|
42958
42958
|
qo as Sprite,
|
|
42959
|
-
|
|
42959
|
+
vc as SpriteData,
|
|
42960
42960
|
zi as SpriteRenderer,
|
|
42961
|
-
|
|
42961
|
+
Hc as SpriteSheet,
|
|
42962
42962
|
FL as StateMachineBehaviour,
|
|
42963
42963
|
Wv as StreamEndedEvent,
|
|
42964
42964
|
vM as StreamReceivedEvent,
|
|
@@ -42977,7 +42977,7 @@ export {
|
|
|
42977
42977
|
ri as TextureSheetAnimationModule,
|
|
42978
42978
|
to as TiltShiftEffect,
|
|
42979
42979
|
ik as Time,
|
|
42980
|
-
|
|
42980
|
+
Qc as ToneMappingEffect,
|
|
42981
42981
|
Sf as TrackHandler,
|
|
42982
42982
|
Xi as TrackType,
|
|
42983
42983
|
qe as TrailModule,
|
|
@@ -43007,7 +43007,7 @@ export {
|
|
|
43007
43007
|
Rl as Vignette,
|
|
43008
43008
|
Ju as VisibilityAction,
|
|
43009
43009
|
Zr as Voip,
|
|
43010
|
-
|
|
43010
|
+
wh as Volume,
|
|
43011
43011
|
N as VolumeParameter,
|
|
43012
43012
|
yy as VolumeProfile,
|
|
43013
43013
|
TL as WaitForFrames,
|
|
@@ -43053,7 +43053,7 @@ export {
|
|
|
43053
43053
|
BC as copyTexture,
|
|
43054
43054
|
Mk as createMotion,
|
|
43055
43055
|
xi as debugNet,
|
|
43056
|
-
|
|
43056
|
+
Dh as debugOwner,
|
|
43057
43057
|
DR as decompressGpuTexture,
|
|
43058
43058
|
ku as deepClone,
|
|
43059
43059
|
Kn as delay,
|
|
@@ -43085,7 +43085,7 @@ export {
|
|
|
43085
43085
|
Bu as getComponentInChildren,
|
|
43086
43086
|
Ud as getComponentInParent,
|
|
43087
43087
|
ju as getComponents,
|
|
43088
|
-
|
|
43088
|
+
ih as getComponentsInChildren,
|
|
43089
43089
|
Cg as getComponentsInParent,
|
|
43090
43090
|
OR as getFormattedDate,
|
|
43091
43091
|
It as getIconElement,
|
|
@@ -43120,7 +43120,7 @@ export {
|
|
|
43120
43120
|
oP as invokeXRSessionEnd,
|
|
43121
43121
|
sP as invokeXRSessionStart,
|
|
43122
43122
|
TO as isActiveInHierarchy,
|
|
43123
|
-
|
|
43123
|
+
nh as isActiveSelf,
|
|
43124
43124
|
eL as isAndroidDevice,
|
|
43125
43125
|
jC as isAnimationAction,
|
|
43126
43126
|
gM as isComponent,
|
|
@@ -43225,7 +43225,7 @@ export {
|
|
|
43225
43225
|
L0 as setWorldQuaternionXYZW,
|
|
43226
43226
|
DC as setWorldRotation,
|
|
43227
43227
|
Tu as setWorldRotationXYZ,
|
|
43228
|
-
|
|
43228
|
+
Dc as setWorldScale,
|
|
43229
43229
|
Eu as showBalloonError,
|
|
43230
43230
|
Ve as showBalloonMessage,
|
|
43231
43231
|
we as showBalloonWarning,
|
|
@@ -43238,7 +43238,7 @@ export {
|
|
|
43238
43238
|
fP as tryCastBinary,
|
|
43239
43239
|
qM as tryDetermineMimetypeFromBinary,
|
|
43240
43240
|
GM as tryDetermineMimetypeFromURL,
|
|
43241
|
-
|
|
43241
|
+
Ic as tryFindObject,
|
|
43242
43242
|
pP as tryGetGuid,
|
|
43243
43243
|
wk as unregisterHotReloadType,
|
|
43244
43244
|
P0 as unwatchWrite,
|