@needle-tools/engine 4.5.0-alpha.7 → 4.5.1
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 +3729 -3729
- package/LICENSE.md +10 -10
- package/README.md +64 -64
- package/components.needle.json +1 -1
- package/dist/{needle-engine.bundle-e4d45a4b.light.umd.cjs → needle-engine.bundle-2d3f9594.light.umd.cjs} +5 -5
- package/dist/{needle-engine.bundle-b3f8f528.umd.cjs → needle-engine.bundle-4dbc6bd8.umd.cjs} +5 -5
- package/dist/{needle-engine.bundle-b0b656a0.js → needle-engine.bundle-55f7e76b.js} +9 -10
- package/dist/{needle-engine.bundle-794a5cc4.light.min.js → needle-engine.bundle-7a7b6e91.light.min.js} +3 -3
- package/dist/{needle-engine.bundle-ac188401.min.js → needle-engine.bundle-c7347339.min.js} +3 -3
- package/dist/{needle-engine.bundle-61f52fd3.light.js → needle-engine.bundle-f56361b5.light.js} +689 -690
- 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/api.js.map +1 -1
- 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 +118 -118
- package/lib/engine/engine_create_objects.js +308 -308
- 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 +596 -596
- 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_gltf_builtin_components.js.map +1 -1
- 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 +361 -361
- 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 +96 -96
- package/lib/engine/engine_loaders.callbacks.js +85 -85
- package/lib/engine/engine_loaders.callbacks.js.map +1 -1
- 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 +335 -335
- package/lib/engine/engine_loaders.js.map +1 -1
- 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 +85 -85
- package/lib/engine/engine_serialization_core.js +606 -606
- 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 +266 -266
- package/lib/engine/engine_utils.js +878 -878
- package/lib/engine/engine_utils_format.d.ts +23 -23
- package/lib/engine/engine_utils_format.js +212 -212
- 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 +263 -263
- 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 +339 -339
- package/lib/engine/xr/NeedleXRSession.js +1448 -1448
- 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/Component.js.map +1 -1
- 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 +630 -630
- 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 +470 -470
- 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 +1 -1
- 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 +417 -417
- 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 +113 -113
- 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 -355
- 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 +68 -68
- 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 +139 -139
- package/plugins/vite/license.js +56 -56
- 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 +398 -398
- 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 +691 -691
- 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 +378 -378
- 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 +135 -134
- package/src/engine/engine_loaders.gltf.ts +82 -82
- package/src/engine/engine_loaders.ts +375 -375
- 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 +710 -710
- 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 +972 -972
- package/src/engine/engine_utils_format.ts +244 -244
- 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 +291 -291
- 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 +1609 -1609
- 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 +698 -698
- 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 +518 -518
- package/src/engine-components/webxr/WebXRPlaneTracking.ts +570 -570
- package/src/engine-components/webxr/WebXRRig.ts +77 -77
- package/src/engine-components/webxr/XRFlag.ts +147 -147
- package/src/engine-components/webxr/controllers/XRControllerFollow.ts +118 -118
- package/src/engine-components/webxr/controllers/XRControllerModel.ts +373 -373
- package/src/engine-components/webxr/controllers/XRControllerMovement.ts +550 -550
- package/src/engine-components/webxr/index.ts +2 -2
- package/src/engine-components/webxr/types.ts +3 -3
- package/src/engine-components-experimental/Presentation.ts +12 -12
- package/src/engine-components-experimental/api.ts +4 -4
- package/src/engine-components-experimental/networking/PlayerSync.ts +401 -401
- package/src/engine-schemes/COMPILE_SCHEMES.bat +3 -3
- package/src/engine-schemes/COMPILE_TS.bat +11 -11
- package/src/engine-schemes/README.md +1 -1
- package/src/engine-schemes/api.ts +12 -12
- package/src/engine-schemes/dist/api.js +17 -0
- package/src/engine-schemes/dist/api.js.meta +7 -0
- package/src/engine-schemes/dist/schemes.js +25 -0
- package/src/engine-schemes/dist/schemes.js.meta +7 -0
- package/src/engine-schemes/dist/synced-camera-model.js +74 -0
- package/src/engine-schemes/dist/synced-camera-model.js.meta +7 -0
- package/src/engine-schemes/dist/synced-transform-model.js +73 -0
- package/src/engine-schemes/dist/synced-transform-model.js.meta +7 -0
- package/src/engine-schemes/dist/transform.js +46 -0
- package/src/engine-schemes/dist/transform.js.meta +7 -0
- package/src/engine-schemes/dist/vec2.js +32 -0
- package/src/engine-schemes/dist/vec2.js.meta +7 -0
- package/src/engine-schemes/dist/vec3.js +36 -0
- package/src/engine-schemes/dist/vec3.js.meta +7 -0
- package/src/engine-schemes/dist/vec4.js +40 -0
- package/src/engine-schemes/dist/vec4.js.meta +7 -0
- package/src/engine-schemes/dist/vr-user-state-buffer.js +110 -0
- package/src/engine-schemes/dist/vr-user-state-buffer.js.meta +7 -0
- package/src/engine-schemes/schemes.ts +28 -28
- package/src/engine-schemes/synced-camera-model.ts +92 -92
- package/src/engine-schemes/synced-transform-model.ts +90 -90
- package/src/engine-schemes/syncedCamera.fbs +10 -10
- package/src/engine-schemes/transform.ts +50 -50
- package/src/engine-schemes/transforms.fbs +25 -25
- package/src/engine-schemes/vec.fbs +19 -19
- package/src/engine-schemes/vec2.ts +33 -33
- package/src/engine-schemes/vec3.ts +38 -38
- package/src/engine-schemes/vec4.ts +43 -43
- package/src/engine-schemes/vr-user-state-buffer.ts +145 -145
- package/src/engine-schemes/vrUserStateBuffer.fbs +17 -17
- package/src/include/draco/draco_decoder.js +34 -34
- package/src/include/ktx2/basis_transcoder.js +21 -21
- package/src/include/needle/arial-msdf.json +1471 -1471
- package/src/include/three/DragControls.js +231 -231
- package/src/include/three/EXT_mesh_gpu_instancing_exporter.js +66 -66
- package/src/needle-engine.ts +70 -70
- package/lib/engine/engine_element.d.ts +0 -113
- package/lib/engine/engine_element.js +0 -833
- package/lib/engine/engine_element.js.map +0 -1
- package/lib/engine/engine_element_attributes.d.ts +0 -72
- package/lib/engine/engine_element_attributes.js +0 -2
- package/lib/engine/engine_element_attributes.js.map +0 -1
- package/lib/engine/engine_element_extras.d.ts +0 -6
- package/lib/engine/engine_element_extras.js +0 -14
- package/lib/engine/engine_element_extras.js.map +0 -1
- package/lib/engine/engine_element_loading.d.ts +0 -44
- package/lib/engine/engine_element_loading.js +0 -350
- package/lib/engine/engine_element_loading.js.map +0 -1
- package/lib/engine/engine_element_overlay.d.ts +0 -21
- package/lib/engine/engine_element_overlay.js +0 -167
- package/lib/engine/engine_element_overlay.js.map +0 -1
- package/lib/engine/engine_scenetools.d.ts +0 -62
- package/lib/engine/engine_scenetools.js +0 -337
- package/lib/engine/engine_scenetools.js.map +0 -1
package/dist/{needle-engine.bundle-61f52fd3.light.js → needle-engine.bundle-f56361b5.light.js}
RENAMED
|
@@ -10,7 +10,7 @@ var fe = (s, t, e) => (Pf(s, t, "read from private field"), e ? e.call(s) : t.ge
|
|
|
10
10
|
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
11
11
|
}, cn = (s, t, e, i) => (Pf(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e);
|
|
12
12
|
var Cl = (s, t, e) => (Pf(s, t, "access private method"), e);
|
|
13
|
-
import { Vector2 as oe, Vector3 as v, Vector4 as ge, Quaternion as W, PlaneGeometry as Xn, PerspectiveCamera as be, Scene as Ri, ShaderMaterial as wn, Uniform$1 as po, Mesh as q, WebGLRenderer as Rr, Texture as Fe, Euler as Bt, Box3 as Oi, MeshStandardMaterial as Tt, Color as le, ShadowMaterial as t0, Box3Helper as Rx, GridHelper as ng, Material as Se, Matrix3 as i0, Matrix4 as se, Layers as Co, Object3D as I, Ray as Po, MathUtils as Ps, AxesHelper as Mi, MeshBasicMaterial as Me, DoubleSide as ki, BufferGeometry as Wn, Group as mo, SphereGeometry as xu, BoxGeometry as Ia, SpriteMaterial as kx, Sprite as Tx, Shape as
|
|
13
|
+
import { Vector2 as oe, Vector3 as v, Vector4 as ge, Quaternion as W, PlaneGeometry as Xn, PerspectiveCamera as be, Scene as Ri, ShaderMaterial as wn, Uniform$1 as po, Mesh as q, WebGLRenderer as Rr, Texture as Fe, Euler as Bt, Box3 as Oi, MeshStandardMaterial as Tt, Color as le, ShadowMaterial as t0, Box3Helper as Rx, GridHelper as ng, Material as Se, Matrix3 as i0, Matrix4 as se, Layers as Co, Object3D as I, Ray as Po, MathUtils as Ps, AxesHelper as Mi, MeshBasicMaterial as Me, DoubleSide as ki, BufferGeometry as Wn, Group as mo, SphereGeometry as xu, BoxGeometry as Ia, SpriteMaterial as kx, Sprite as Tx, Shape as Ex, ExtrudeGeometry as Ax, Fog as n0, DirectionalLight as Yp, PointLight as sg, Line as Lc, BufferAttribute as pt, CylinderGeometry as Ix, EdgesGeometry as Lx, LineSegments as s0, LineBasicMaterial as o0, Sphere as Su, Plane as wr, Raycaster as Cu, ArrayCamera as Dx, SkinnedMesh as Os, InterleavedBufferAttribute as r0, Skeleton as jx, Bone as Bx, Source as Fx, WebGLCubeRenderTarget as zx, CubeCamera as Ux, AnimationClip as go, FileLoader as og, TextureLoader as xa, PropertyBinding as La, LinearSRGBColorSpace as As, ShaderChunk as Jt, UniformsLib as Nx, DataTexture as rg, RGBAFormat as Pu, EquirectangularReflectionMapping as Ms, SRGBColorSpace as Is, Clock as $x, NoToneMapping as Da, PCFSoftShadowMap$1 as Wx, BasicNodeLibrary as Vx, WebGLRenderTarget as Ls, DepthTexture as Hx, NearestFilter as jd, LoopRepeat as Gx, LoopOnce as Kp, AnimationMixer as ag, CompressedTexture as qx, FrontSide as Oo, Camera as Xx, Frustum as Fy, OrthographicCamera as lg, AudioListener as Qx, PositionalAudio as Yx, AudioLoader as Zp, EventDispatcher as cg, BackSide as Ou, MeshDepthMaterial as Kx, CustomBlending as Zx, MaxEquation as Jx, AmbientLight as e1, HemisphereLight as t1, InvertStencilOp as i1, DecrementWrapStencilOp as n1, IncrementWrapStencilOp as s1, DecrementStencilOp as o1, IncrementStencilOp as r1, ReplaceStencilOp as a1, ZeroStencilOp as l1, KeepStencilOp as c1, AlwaysStencilFunc as h1, GreaterEqualStencilFunc as d1, NotEqualStencilFunc as u1, GreaterStencilFunc as f1, LessEqualStencilFunc as p1, EqualStencilFunc as m1, LessStencilFunc as g1, NeverStencilFunc as zy, RawShaderMaterial as a0, GLSL3 as y1, AlwaysDepth as _1, GreaterEqualDepth as b1, GreaterDepth as v1, LessEqualDepth as w1, LessDepth as x1, NotEqualDepth as S1, EqualDepth as C1, BatchedMesh as Uy, MeshPhysicalMaterial as Jp, UnsignedByteType as P1, LinearFilter as Ny, RingGeometry as O1, Line3 as M1, AdditiveBlending as l0, BoxHelper as R1, SpotLight as k1, DirectionalLightHelper as T1, CameraHelper as E1, LOD as A1, Triangle as I1, NormalBlending as L1, NeutralToneMapping as Dc, AgXToneMapping as Mu, ACESFilmicToneMapping as hg, ReinhardToneMapping as dg, LinearToneMapping as Ru, HalfFloatType as D1, VideoTexture as j1, CubeTexture as B1, CompressedCubeTexture as F1, EquirectangularRefractionMapping as z1, VectorKeyframeTrack as U1, QuaternionKeyframeTrack as N1, Audio as $1, MirroredRepeatWrapping as $y, UniformsUtils as c0, ShaderLib as Bd, MeshNormalMaterial as W1, AudioContext as V1, PMREMGenerator$1 as H1 } from "./three-3fd45ef1.light.js";
|
|
14
14
|
import { createLoaders as ug, getRaycastMesh as h0, LODsManager as Vr, NEEDLE_progressive as Ke, addDracoAndKTX2Loaders as G1, configureLoader as q1, setDracoDecoderLocation as X1, setKTX2TranscoderLocation as Q1 } from "./gltf-progressive-13de1400.light.js";
|
|
15
15
|
import { GroundedSkybox as ja, Font as Y1, TextGeometry as K1, FontLoader as Z1, GLTFLoader as Ds, TransformControlsGizmo as d0, EXRLoader as Fd, RGBELoader as em, Stats as J1, nodeFrame as eS, OrbitControls as u0, PositionalAudioHelper as tS, HorizontalBlurShader as iS, VerticalBlurShader as nS, GLTFExporter as f0, strToU8 as p0, zipSync as sS, XRControllerModelFactory as oS, XRHandMeshModel as rS, Line2 as aS, LineGeometry as lS, LineMaterial as cS, KTX2Loader as hS, TransformControls as dS, InteractiveGroup as uS, HTMLMesh as fS, VertexNormalsHelper as pS, OBJLoader as fg, FBXLoader as m0, mergeVertices as mS } from "./three-examples-ae5d9997.light.js";
|
|
16
16
|
import { fetchProfile as gS, MotionController as yS, $70d766613f57b014$export$2e2bcd8739ae039 as Wy, ByteBuffer as _S, v5 as Vy, md5 as Hy, SIZE_PREFIX_LENGTH as g0, Builder as pg, createNoise4D as bS, Matrix4 as Of, BatchedParticleRenderer as vS, ParticleSystem as wS, RenderMode as ps, TrailParticle as Gy, ConstantColor as xS, Vector4 as SS, ConstantValue as CS, WorkerBase as PS, MeshBVH as OS } from "./vendor-3f0ec7ec.light.js";
|
|
@@ -158,12 +158,12 @@ function QI(s, t) {
|
|
|
158
158
|
}
|
|
159
159
|
function zd(s, t, e = !0) {
|
|
160
160
|
const i = ku();
|
|
161
|
-
i.has(s) ? t === null ? i.delete(s) : i.set(s, t) : t !== null && i.append(s, t), e ?
|
|
161
|
+
i.has(s) ? t === null ? i.delete(s) : i.set(s, t) : t !== null && i.append(s, t), e ? ES(s, i) : b0(s, i);
|
|
162
162
|
}
|
|
163
163
|
function Yy(s, t, e) {
|
|
164
164
|
s.has(t) ? s.set(t, e.toString()) : s.append(t, e.toString());
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ES(s, t, e) {
|
|
167
167
|
window.history.pushState(e, s, "?" + t.toString());
|
|
168
168
|
}
|
|
169
169
|
function b0(s, t, e) {
|
|
@@ -178,7 +178,7 @@ function KI(s, t) {
|
|
|
178
178
|
return Math.floor(Math.random() * (t - s + 1)) + s;
|
|
179
179
|
}
|
|
180
180
|
const Ky = ["smol", "tiny", "giant", "interesting", "smart", "bright", "dull", "extreme", "beautiful", "pretty", "dark", "epic", "salty", "silly", "funny", "lame", "lazy", "loud", "lucky", "mad", "mean", "mighty", "mysterious", "nasty", "odd", "old", "powerful", "quiet", "rapid", "scary", "shiny", "shy", "silly", "smooth", "sour", "spicy", "stupid", "sweet", "tasty", "terrible", "ugly", "unusual", "vast", "wet", "wild", "witty", "wrong", "zany", "zealous", "zippy", "zombie", "zorro"], Zy = ["cat", "dog", "mouse", "pig", "cow", "horse", "sheep", "chicken", "duck", "goat", "panda", "tiger", "lion", "elephant", "monkey", "bird", "fish", "snake", "frog", "turtle", "hamster", "penguin", "kangaroo", "whale", "dolphin", "crocodile", "snail", "ant", "bee", "beetle", "butterfly", "dragon", "eagle", "fish", "giraffe", "lizard", "panda", "penguin", "rabbit", "snake", "spider", "tiger", "zebra"];
|
|
181
|
-
function
|
|
181
|
+
function AS() {
|
|
182
182
|
const s = Ky[Math.floor(Math.random() * Ky.length)], t = Zy[Math.floor(Math.random() * Zy.length)];
|
|
183
183
|
return s + "_" + t;
|
|
184
184
|
}
|
|
@@ -230,7 +230,7 @@ function Hn(s) {
|
|
|
230
230
|
setTimeout(t, s);
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Eu(s, t) {
|
|
234
234
|
if (s <= 0)
|
|
235
235
|
return Promise.resolve();
|
|
236
236
|
if (t || (t = pe.Current), !t)
|
|
@@ -435,19 +435,19 @@ var X;
|
|
|
435
435
|
return O !== void 0 ? O : O = navigator.userAgent.includes("OculusBrowser");
|
|
436
436
|
}
|
|
437
437
|
s.isQuest = R;
|
|
438
|
-
let
|
|
438
|
+
let A;
|
|
439
439
|
function F() {
|
|
440
|
-
return
|
|
440
|
+
return A !== void 0 || (A = document.createElement("a").relList.supports("ar")), A;
|
|
441
441
|
}
|
|
442
442
|
s.supportsQuickLookAR = F;
|
|
443
|
-
async function
|
|
443
|
+
async function E() {
|
|
444
444
|
try {
|
|
445
445
|
return (await navigator.permissions.query({ name: "microphone" })).state !== "denied";
|
|
446
446
|
} catch (j) {
|
|
447
447
|
return console.error("Error querying `microphone` permissions.", j), !1;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
s.microphonePermissionsGranted =
|
|
450
|
+
s.microphonePermissionsGranted = E;
|
|
451
451
|
let z;
|
|
452
452
|
function U() {
|
|
453
453
|
if (z !== void 0)
|
|
@@ -886,7 +886,7 @@ class t_ {
|
|
|
886
886
|
this.y = t, this.s = t;
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
class
|
|
889
|
+
class Ef {
|
|
890
890
|
/** Create a new OneEuroFilter
|
|
891
891
|
* @param freq - An estimate of the frequency in Hz of the signal (> 0), if timestamps are not available.
|
|
892
892
|
* @param minCutOff - Min cutoff frequency in Hz (> 0). Lower values allow to remove more jitter.
|
|
@@ -951,7 +951,7 @@ class M0 {
|
|
|
951
951
|
r(this, "x");
|
|
952
952
|
r(this, "y");
|
|
953
953
|
r(this, "z");
|
|
954
|
-
this.x = new
|
|
954
|
+
this.x = new Ef(t, e, i, n), this.y = new Ef(t, e, i, n), this.z = new Ef(t, e, i, n);
|
|
955
955
|
}
|
|
956
956
|
filter(t, e, i = null) {
|
|
957
957
|
e.x = this.x.filter(t.x, i), e.y = this.y.filter(t.y, i), e.z = this.z.filter(t.z, i);
|
|
@@ -978,24 +978,24 @@ function mL(s, t, e) {
|
|
|
978
978
|
const i = s.length(), n = t.length(), o = $.lerp(i, n, e);
|
|
979
979
|
return s.lerp(t, e).normalize().multiplyScalar(o);
|
|
980
980
|
}
|
|
981
|
-
const
|
|
981
|
+
const Af = new W(), R0 = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
|
|
982
982
|
function gL(s, t) {
|
|
983
983
|
s.lookAt(t), s.quaternion.multiply(R0);
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function Au(s, t, e = !0, i = !1) {
|
|
986
986
|
if (s === t)
|
|
987
987
|
return;
|
|
988
|
-
|
|
988
|
+
Af.copy(s.quaternion);
|
|
989
989
|
const n = ie(t), o = ie(s);
|
|
990
990
|
if (i) {
|
|
991
991
|
if (xn(s, Ce(t)), e) {
|
|
992
992
|
const a = o.y, l = o.sub(lC(s));
|
|
993
993
|
l.y = a, s.lookAt(l), s.quaternion.multiply(R0);
|
|
994
994
|
}
|
|
995
|
-
Number.isNaN(s.quaternion.x) && s.quaternion.copy(
|
|
995
|
+
Number.isNaN(s.quaternion.x) && s.quaternion.copy(Af);
|
|
996
996
|
return;
|
|
997
997
|
}
|
|
998
|
-
e && (n.y = o.y), s.lookAt(n), Number.isNaN(s.quaternion.x) && s.quaternion.copy(
|
|
998
|
+
e && (n.y = o.y), s.lookAt(n), Number.isNaN(s.quaternion.x) && s.quaternion.copy(Af);
|
|
999
999
|
}
|
|
1000
1000
|
function yL(s, t, e, i = 1) {
|
|
1001
1001
|
if (e) {
|
|
@@ -1088,7 +1088,7 @@ function T0(s) {
|
|
|
1088
1088
|
const t = Nd.get();
|
|
1089
1089
|
return s.getWorldQuaternion(t), a_.setFromQuaternion(t), a_;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function E0(s, t) {
|
|
1092
1092
|
const e = Nd.get();
|
|
1093
1093
|
xn(s, e.setFromEuler(t));
|
|
1094
1094
|
}
|
|
@@ -1219,7 +1219,7 @@ function pC(s) {
|
|
|
1219
1219
|
const t = s.type;
|
|
1220
1220
|
return t === "Mesh" || t === "SkinnedMesh";
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function A0(s, t) {
|
|
1223
1223
|
t ? s["needle:rendercustomshadow"] = !0 : s["needle:rendercustomshadow"] = !1;
|
|
1224
1224
|
}
|
|
1225
1225
|
function mC(s) {
|
|
@@ -1316,20 +1316,20 @@ function I0(s, t, e, i) {
|
|
|
1316
1316
|
const o = t;
|
|
1317
1317
|
return o && (o.map ? n.color.set(1, 1, 1) : n.color.copyLinearToSRGB(o.color), n.emissive.copyLinearToSRGB(o.emissive), n.emissiveIntensity = o.emissiveIntensity, n.opacity = o.opacity, n.displacementScale = o.displacementScale, n.transparent = o.transparent, n.bumpMap = o.bumpMap, n.aoMap = o.aoMap, n.map = o.map, n.displacementMap = o.displacementMap, n.emissiveMap = o.emissiveMap, n.normalMap = o.normalMap, n.envMap = o.envMap, n.alphaMap = o.alphaMap, n.metalness = o.reflectivity, n.vertexColors = o.vertexColors, o.shininess && (n.roughness = 1 - Math.sqrt(o.shininess) / 10), n.needsUpdate = !0), e === void 0 ? s.material = n : i[e] = n, !0;
|
|
1318
1318
|
}
|
|
1319
|
-
let
|
|
1319
|
+
let Eh = !1;
|
|
1320
1320
|
NS((...s) => {
|
|
1321
1321
|
var t;
|
|
1322
1322
|
B() && ((t = pe.Current) != null && t.isInXR) && (Sa(!0), L0("error", ...s));
|
|
1323
1323
|
});
|
|
1324
1324
|
function Sa(s) {
|
|
1325
1325
|
if (s) {
|
|
1326
|
-
if (
|
|
1326
|
+
if (Eh)
|
|
1327
1327
|
return;
|
|
1328
|
-
|
|
1328
|
+
Eh = !0, bC();
|
|
1329
1329
|
} else {
|
|
1330
|
-
if (!
|
|
1330
|
+
if (!Eh)
|
|
1331
1331
|
return;
|
|
1332
|
-
|
|
1332
|
+
Eh = !1, vC();
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
const lc = {
|
|
@@ -1355,7 +1355,7 @@ class _C {
|
|
|
1355
1355
|
const n = this.getRoot();
|
|
1356
1356
|
Number.isNaN(n.position.x) && n.position.set(0, 0, 0), Number.isNaN(n.quaternion.x) && n.quaternion.set(0, 0, 0, 1), this.context.scene.add(this.targetObject);
|
|
1357
1357
|
const o = ((i = this.context.xr) == null ? void 0 : i.rigScale) ?? 1, a = 3.5 * o, l = t.worldForward;
|
|
1358
|
-
l.y = 0, l.normalize().multiplyScalar(a), this.userForwardViewPoint.copy(t.worldPosition).sub(l), this.targetObject.position.distanceTo(this.userForwardViewPoint) > 2 * o && (this.targetObject.position.copy(this.userForwardViewPoint),
|
|
1358
|
+
l.y = 0, l.normalize().multiplyScalar(a), this.userForwardViewPoint.copy(t.worldPosition).sub(l), this.targetObject.position.distanceTo(this.userForwardViewPoint) > 2 * o && (this.targetObject.position.copy(this.userForwardViewPoint), Au(this.targetObject, t, !0, !0), this.targetObject.rotateY(Math.PI)), this.oneEuroFilter.filter(this.targetObject.position, n.position, this.context.time.time);
|
|
1359
1359
|
const h = this.context.time.deltaTime;
|
|
1360
1360
|
if (n.quaternion.slerp(this.targetObject.quaternion, h * 5), n.scale.setScalar(o), this.targetObject.removeFromParent(), this.context.scene.add(n), this.context.time.time - this._lastElementRemoveTime > 0.1) {
|
|
1361
1361
|
this._lastElementRemoveTime = this.context.time.time;
|
|
@@ -1792,18 +1792,18 @@ function TC() {
|
|
|
1792
1792
|
return s || null;
|
|
1793
1793
|
}
|
|
1794
1794
|
const z0 = x("debugdefines");
|
|
1795
|
-
Ro('if(!globalThis[""4.5.
|
|
1795
|
+
Ro('if(!globalThis[""4.5.1""]) globalThis[""4.5.1""] = "0.0.0";');
|
|
1796
1796
|
Ro('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
|
|
1797
|
-
Ro('if(!globalThis[""
|
|
1798
|
-
Ro('if(!globalThis[""
|
|
1799
|
-
Ro('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.5.
|
|
1797
|
+
Ro('if(!globalThis[""Fri May 30 2025 11:00:29 GMT+0200 (Central European Summer Time)""]) globalThis[""Fri May 30 2025 11:00:29 GMT+0200 (Central European Summer Time)""] = "unknown";');
|
|
1798
|
+
Ro('if(!globalThis[""npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9""]) globalThis[""npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9""] = "unknown";');
|
|
1799
|
+
Ro('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.5.1";');
|
|
1800
1800
|
Ro('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1801
|
-
Ro('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
1802
|
-
Ro('globalThis["__NEEDLE_PUBLIC_KEY__"] = "
|
|
1803
|
-
const Vn = "4.5.
|
|
1801
|
+
Ro('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri May 30 2025 11:00:29 GMT+0200 (Central European Summer Time)";');
|
|
1802
|
+
Ro('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9";');
|
|
1803
|
+
const Vn = "4.5.1", bg = "undefined", U0 = "Fri May 30 2025 11:00:29 GMT+0200 (Central European Summer Time)";
|
|
1804
1804
|
z0 && console.log(`Engine version: ${Vn} (generator: ${bg})
|
|
1805
1805
|
Project built at ${U0}`);
|
|
1806
|
-
const md = "
|
|
1806
|
+
const md = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9", _o = "needle_isActiveInHierarchy", sa = "builtin_components", gd = "needle_editor_guid";
|
|
1807
1807
|
function Ro(s) {
|
|
1808
1808
|
try {
|
|
1809
1809
|
(0, eval)(s);
|
|
@@ -1822,13 +1822,13 @@ function $0(s) {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
h_ !== s && (h_ = s, N0 = new s());
|
|
1824
1824
|
}
|
|
1825
|
-
const xi = Symbol("shadowDomOwner"),
|
|
1825
|
+
const xi = Symbol("shadowDomOwner"), EC = x("debugpatch");
|
|
1826
1826
|
function vg(s, t, e, i) {
|
|
1827
|
-
const n =
|
|
1827
|
+
const n = EC === t;
|
|
1828
1828
|
if (!e && !i)
|
|
1829
1829
|
return;
|
|
1830
1830
|
const o = t + "___needle";
|
|
1831
|
-
|
|
1831
|
+
AC(s, t, e, i);
|
|
1832
1832
|
const a = Object.getOwnPropertyDescriptor(s, t), l = s[t];
|
|
1833
1833
|
n && console.log("Patch", s.constructor.name, t, a, l), a ? (n && console.log("Apply patch with existing descriptor", s.constructor.name, t, a), typeof a.value == "function" && (s[t] = u_(a.value, s, t))) : (n && console.log("Create patch with new property", s.constructor.name, t, a), Object.defineProperty(s, t, {
|
|
1834
1834
|
set: function(c) {
|
|
@@ -1872,7 +1872,7 @@ function wg(s, t) {
|
|
|
1872
1872
|
const e = cm().get(s);
|
|
1873
1873
|
return e ? e.get(t) : null;
|
|
1874
1874
|
}
|
|
1875
|
-
function
|
|
1875
|
+
function AC(s, t, e, i) {
|
|
1876
1876
|
let n = cm().get(s);
|
|
1877
1877
|
n || (n = /* @__PURE__ */ new Map(), cm().set(s, n));
|
|
1878
1878
|
let o = n.get(t);
|
|
@@ -2019,7 +2019,7 @@ class eo extends PointerEvent {
|
|
|
2019
2019
|
this._propagationStopped = !0, super.stopPropagation(), (e = this.source) == null || e.stopPropagation(), at && console.warn("Stop propagation...", this.pointerId, this.pointerType);
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
|
-
class
|
|
2022
|
+
class Ah extends KeyboardEvent {
|
|
2023
2023
|
constructor(e, i, n) {
|
|
2024
2024
|
super(e, n);
|
|
2025
2025
|
r(this, "source");
|
|
@@ -2109,7 +2109,7 @@ class DC {
|
|
|
2109
2109
|
if (e && e.pressed)
|
|
2110
2110
|
return;
|
|
2111
2111
|
this.keysPressed[t.code] = { pressed: !0, frame: this.context.time.frameCount + 1, startFrame: this.context.time.frameCount + 1, key: t.key, code: t.code };
|
|
2112
|
-
const i = new
|
|
2112
|
+
const i = new Ah("keydown", t, t);
|
|
2113
2113
|
this.onDispatchEvent(i);
|
|
2114
2114
|
});
|
|
2115
2115
|
r(this, "onKeyPressed", (t) => {
|
|
@@ -2119,7 +2119,7 @@ class DC {
|
|
|
2119
2119
|
if (!e)
|
|
2120
2120
|
return;
|
|
2121
2121
|
e.pressed = !0, e.frame = this.context.time.frameCount + 1;
|
|
2122
|
-
const i = new
|
|
2122
|
+
const i = new Ah("keypress", t, t);
|
|
2123
2123
|
this.onDispatchEvent(i);
|
|
2124
2124
|
});
|
|
2125
2125
|
r(this, "onKeyUp", (t) => {
|
|
@@ -2129,7 +2129,7 @@ class DC {
|
|
|
2129
2129
|
if (!e)
|
|
2130
2130
|
return;
|
|
2131
2131
|
e.pressed = !1, e.frame = this.context.time.frameCount + 1;
|
|
2132
|
-
const i = new
|
|
2132
|
+
const i = new Ah("keyup", t, t);
|
|
2133
2133
|
this.onDispatchEvent(i);
|
|
2134
2134
|
});
|
|
2135
2135
|
r(this, "onWheelWindow", (t) => {
|
|
@@ -2229,7 +2229,7 @@ class DC {
|
|
|
2229
2229
|
dispatchEvent(t) {
|
|
2230
2230
|
var i, n, o, a;
|
|
2231
2231
|
let e = !1;
|
|
2232
|
-
if (t instanceof
|
|
2232
|
+
if (t instanceof Ah) {
|
|
2233
2233
|
const l = this._eventListeners[t.type];
|
|
2234
2234
|
if (l)
|
|
2235
2235
|
for (const c of l)
|
|
@@ -3123,8 +3123,8 @@ Pinch: ${(o = this.getGesture("pinch")) == null ? void 0 : o.value.toFixed(3)}`)
|
|
|
3123
3123
|
if (O) {
|
|
3124
3124
|
const R = O.transform;
|
|
3125
3125
|
if (i = G(R.position), n = In(R.orientation), this._gripMatrix.fromArray(R.matrix).premultiply(Ca), this._gripMatrix.decompose(this._gripPosition, this._gripQuaternion, G(1, 1, 1)), "linearVelocity" in O && O.linearVelocity) {
|
|
3126
|
-
const
|
|
3127
|
-
this._linearVelocity.set(
|
|
3126
|
+
const A = O.linearVelocity;
|
|
3127
|
+
this._linearVelocity.set(A.x, A.y, A.z);
|
|
3128
3128
|
}
|
|
3129
3129
|
}
|
|
3130
3130
|
}
|
|
@@ -3132,15 +3132,15 @@ Pinch: ${(o = this.getGesture("pinch")) == null ? void 0 : o.value.toFixed(3)}`)
|
|
|
3132
3132
|
const l = this.hand;
|
|
3133
3133
|
if (l) {
|
|
3134
3134
|
let O = !1;
|
|
3135
|
-
const R = l.get("wrist"),
|
|
3136
|
-
if (
|
|
3135
|
+
const R = l.get("wrist"), A = R && this.getHandJointPose(R, t);
|
|
3136
|
+
if (A) {
|
|
3137
3137
|
O = !0;
|
|
3138
|
-
const z =
|
|
3138
|
+
const z = A.transform.position, U = A.transform.orientation;
|
|
3139
3139
|
this._object.position.set(z.x, z.y, z.z), this._object.quaternion.set(U.x, U.y, U.z, U.w).multiply(Xi);
|
|
3140
3140
|
}
|
|
3141
3141
|
O || (this._object.position.copy(this._rayPosition), this._object.quaternion.copy(this._rayQuaternion).multiply(Xi));
|
|
3142
|
-
const F = l.get("middle-finger-metacarpal"),
|
|
3143
|
-
|
|
3142
|
+
const F = l.get("middle-finger-metacarpal"), E = F && this.getHandJointPose(F, t);
|
|
3143
|
+
E && (this._gripMatrix.fromArray(E.transform.matrix).premultiply(Ca), this._gripMatrix.decompose(this._gripPosition, this._gripQuaternion, G(1, 1, 1)), i = G().copy(E.transform.position), n = In().copy(E.transform.orientation), n.multiply(UC), i.add(G(NC).applyQuaternion(n)));
|
|
3144
3144
|
} else
|
|
3145
3145
|
this.inputSource.gripSpace && this.targetRayMode === "transient-pointer" && i && n ? (this._object.position.copy(i), this._object.quaternion.copy(n).multiply(Xi)) : o && a && (this._object.position.copy(o), this._object.quaternion.copy(a).multiply(Xi));
|
|
3146
3146
|
ns && (o && a && ((_ = this._raySpaceObject) == null || _.position.copy(o), (b = this._raySpaceObject) == null || b.quaternion.copy(a).multiply(Xi)), i && n && ((w = this._gripSpaceObject) == null || w.position.copy(i), (C = this._gripSpaceObject) == null || C.quaternion.copy(n).multiply(Xi)));
|
|
@@ -4311,7 +4311,7 @@ class v_ {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
}
|
|
4313
4313
|
var Ua = /* @__PURE__ */ ((s) => (s[s.Quad = 0] = "Quad", s[s.Cube = 1] = "Cube", s[s.Sphere = 2] = "Sphere", s[s.RoundedCube = 10] = "RoundedCube", s))(Ua || {}), Xc, um;
|
|
4314
|
-
class
|
|
4314
|
+
class Er {
|
|
4315
4315
|
/**
|
|
4316
4316
|
* Creates a 3D text object
|
|
4317
4317
|
* @param text The text to display
|
|
@@ -4400,11 +4400,11 @@ Xc = new WeakSet(), um = function(t, e, i) {
|
|
|
4400
4400
|
bevelOffset: 0.01,
|
|
4401
4401
|
bevelSize: 0.01
|
|
4402
4402
|
});
|
|
4403
|
-
}, Ui(
|
|
4403
|
+
}, Ui(Er, Xc);
|
|
4404
4404
|
function ZC(s, t, e, i, n) {
|
|
4405
|
-
const o = new
|
|
4405
|
+
const o = new Ex(), a = 1e-5, l = i - a;
|
|
4406
4406
|
o.absarc(a, a, a, -Math.PI / 2, -Math.PI, !0), o.absarc(a, t - l * 2, a, Math.PI, Math.PI / 2, !0), o.absarc(s - l * 2, t - l * 2, a, Math.PI / 2, 0, !0), o.absarc(s - l * 2, a, a, 0, -Math.PI / 2, !0);
|
|
4407
|
-
const c = new
|
|
4407
|
+
const c = new Ax(o, {
|
|
4408
4408
|
bevelEnabled: !0,
|
|
4409
4409
|
bevelSegments: n * 2,
|
|
4410
4410
|
steps: 1,
|
|
@@ -4471,7 +4471,7 @@ function w_(s, t) {
|
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
4473
|
function x_() {
|
|
4474
|
-
return new mo().add(
|
|
4474
|
+
return new mo().add(Er.createPrimitive("Sphere", { material: new Me({ transparent: !0, opacity: 0.1 }) }));
|
|
4475
4475
|
}
|
|
4476
4476
|
const ky = class {
|
|
4477
4477
|
constructor(t, e, i) {
|
|
@@ -4555,7 +4555,7 @@ const ky = class {
|
|
|
4555
4555
|
roughness: 0.8
|
|
4556
4556
|
});
|
|
4557
4557
|
this.isAR && (a.emissive = new le(Math.random(), Math.random(), Math.random()), a.emissiveIntensity = Math.random());
|
|
4558
|
-
const l = $.random(0, 1) > 0.5 ? Ua.Sphere : Ua.Cube, c =
|
|
4558
|
+
const l = $.random(0, 1) > 0.5 ? Ua.Sphere : Ua.Cube, c = Er.createPrimitive(l, {
|
|
4559
4559
|
material: a
|
|
4560
4560
|
});
|
|
4561
4561
|
c.position.x = $.random(-n, n), c.position.y = $.random(-2, n), c.position.z = $.random(-n, n), c.rotation.x = $.random(0, Math.PI * 2), c.rotation.y = $.random(0, Math.PI * 2), c.rotation.z = $.random(0, Math.PI * 2), c.scale.multiplyScalar(0.5 + Math.random() * 10);
|
|
@@ -5852,7 +5852,7 @@ class Ie {
|
|
|
5852
5852
|
if ($a(n))
|
|
5853
5853
|
continue;
|
|
5854
5854
|
const o = t.isInVR, a = !1, l = !o;
|
|
5855
|
-
|
|
5855
|
+
Au(n, t.mainCamera, a, l);
|
|
5856
5856
|
}
|
|
5857
5857
|
}
|
|
5858
5858
|
}
|
|
@@ -6099,22 +6099,22 @@ function dP(s, t, e) {
|
|
|
6099
6099
|
var Wd;
|
|
6100
6100
|
((s) => {
|
|
6101
6101
|
function t(b, w, C, k) {
|
|
6102
|
-
var R,
|
|
6102
|
+
var R, A, F;
|
|
6103
6103
|
if (!w.geometry || !w.geometry.hasAttribute("position"))
|
|
6104
6104
|
return !1;
|
|
6105
6105
|
const O = w.geometry;
|
|
6106
6106
|
if (w != null && w.isSkinnedMesh) {
|
|
6107
|
-
const
|
|
6108
|
-
if (!
|
|
6109
|
-
l(), o && (
|
|
6110
|
-
else if (O.boundsTree && (
|
|
6111
|
-
const U = performance.now(), K = U -
|
|
6112
|
-
(z || K > 100) && (
|
|
6107
|
+
const E = w, z = E.bvhNeedsUpdate;
|
|
6108
|
+
if (!E.staticGenerator)
|
|
6109
|
+
l(), o && (E.staticGenerator = new o(w), E.staticGenerator.applyWorldTransforms = !1, E.staticGeometry = E.staticGenerator.generate(), O.boundsTree = a == null ? void 0 : a.call(E.staticGeometry), E.staticGeometryLastUpdate = performance.now() + Math.random() * 200, E.autoUpdateMeshBVH === void 0 && (E.autoUpdateMeshBVH = !1));
|
|
6110
|
+
else if (O.boundsTree && (E.autoUpdateMeshBVH === !0 || z === !0)) {
|
|
6111
|
+
const U = performance.now(), K = U - E.staticGeometryLastUpdate;
|
|
6112
|
+
(z || K > 100) && (E.bvhNeedsUpdate = !1, E.staticGeometryLastUpdate = U, (R = E.staticGenerator) == null || R.generate(E.staticGeometry), O.boundsTree.refit());
|
|
6113
6113
|
}
|
|
6114
6114
|
} else if (!O.boundsTree) {
|
|
6115
6115
|
h || _();
|
|
6116
|
-
let
|
|
6117
|
-
if ((k.xr || O[m] === !1 || (
|
|
6116
|
+
let E = !0;
|
|
6117
|
+
if ((k.xr || O[m] === !1 || (A = O.getAttribute("position")) != null && A.isInterleavedBufferAttribute || O.index && ((F = O.index) != null && F.isInterleavedBufferAttribute)) && (E = !1), E && u) {
|
|
6118
6118
|
if (O[p] === void 0) {
|
|
6119
6119
|
let z = null;
|
|
6120
6120
|
if (y.length > 0) {
|
|
@@ -6140,18 +6140,18 @@ var Wd;
|
|
|
6140
6140
|
_i && console.warn("No worker available");
|
|
6141
6141
|
}
|
|
6142
6142
|
} else
|
|
6143
|
-
(!d || !
|
|
6143
|
+
(!d || !E) && (l(), n && (performance.mark("bvh.create.start"), O.boundsTree = new n(O), performance.mark("bvh.create.end"), performance.measure("bvh.create", "bvh.create.start", "bvh.create.end")));
|
|
6144
6144
|
}
|
|
6145
6145
|
if (b instanceof Cu) {
|
|
6146
|
-
const
|
|
6146
|
+
const E = b, z = w.raycast;
|
|
6147
6147
|
O.boundsTree ? (l(), i && (w.acceleratedRaycast || (w.acceleratedRaycast = i.bind(w), _i && console.debug(`Physics: bind acceleratedRaycast fn to "${w.name}"`)), w.raycast = w.acceleratedRaycast)) : _i && console.warn("No bounds tree found for mesh", w.name, { workerTask: O[p], hasAcceleratedRaycast: i != null });
|
|
6148
|
-
const U =
|
|
6149
|
-
return
|
|
6148
|
+
const U = E.firstHitOnly;
|
|
6149
|
+
return E.firstHitOnly = !1, E.intersectObject(w, !1, C), E.firstHitOnly = U, w.raycast = z, !0;
|
|
6150
6150
|
} else if (b instanceof Su) {
|
|
6151
|
-
const
|
|
6152
|
-
if (
|
|
6151
|
+
const E = O.boundsTree;
|
|
6152
|
+
if (E) {
|
|
6153
6153
|
const z = b;
|
|
6154
|
-
if (c.copy(w.matrixWorld).invert(), z.applyMatrix4(c),
|
|
6154
|
+
if (c.copy(w.matrixWorld).invert(), z.applyMatrix4(c), E.intersectsSphere(z)) {
|
|
6155
6155
|
const K = ie(w), T = K.distanceTo(z.center), j = new Z0(w, T, K);
|
|
6156
6156
|
C.push(j);
|
|
6157
6157
|
}
|
|
@@ -6246,23 +6246,23 @@ const Du = x("trackresources");
|
|
|
6246
6246
|
function J0() {
|
|
6247
6247
|
return Du === "dispose";
|
|
6248
6248
|
}
|
|
6249
|
-
let
|
|
6250
|
-
Du === 0 && (
|
|
6251
|
-
function
|
|
6252
|
-
|
|
6249
|
+
let Ar = !0;
|
|
6250
|
+
Du === 0 && (Ar = !1);
|
|
6251
|
+
function EL(s) {
|
|
6252
|
+
Ar = s;
|
|
6253
6253
|
}
|
|
6254
6254
|
function pP() {
|
|
6255
|
-
return
|
|
6255
|
+
return Ar;
|
|
6256
6256
|
}
|
|
6257
6257
|
const ev = Symbol("disposable");
|
|
6258
6258
|
function tv(s, t) {
|
|
6259
6259
|
s && (s[ev] = t, fr && console.warn("Set disposable", t, s));
|
|
6260
6260
|
}
|
|
6261
6261
|
const iv = Symbol("disposed");
|
|
6262
|
-
function
|
|
6262
|
+
function AL(s) {
|
|
6263
6263
|
return s[iv] === !0;
|
|
6264
6264
|
}
|
|
6265
|
-
function
|
|
6265
|
+
function Ae(s) {
|
|
6266
6266
|
var t;
|
|
6267
6267
|
if (s) {
|
|
6268
6268
|
if (s[ev] === !1) {
|
|
@@ -6270,33 +6270,33 @@ function Ee(s) {
|
|
|
6270
6270
|
return;
|
|
6271
6271
|
}
|
|
6272
6272
|
if (s[iv] = !0, s instanceof Ri)
|
|
6273
|
-
|
|
6273
|
+
Ae(s.environment), Ae(s.background), Ae(s.customDepthMaterial), Ae(s.customDistanceMaterial);
|
|
6274
6274
|
else if (s instanceof Os)
|
|
6275
|
-
|
|
6275
|
+
Ae(s.geometry), Ae(s.material), Ae(s.skeleton), Ae(s.bindMatrix), Ae(s.bindMatrixInverse), Ae(s.customDepthMaterial), Ae(s.customDistanceMaterial), s.geometry = null, s.material = null, s.visible = !1;
|
|
6276
6276
|
else if (s instanceof q)
|
|
6277
|
-
|
|
6277
|
+
Ae(s.geometry), Ae(s.material), Ae(s.customDepthMaterial), Ae(s.customDistanceMaterial), s.geometry = null, s.material = null, s.visible = !1;
|
|
6278
6278
|
else if (s instanceof Wn) {
|
|
6279
6279
|
Hr(s);
|
|
6280
6280
|
for (const e of Object.keys(s.attributes)) {
|
|
6281
6281
|
const i = s.attributes[e];
|
|
6282
|
-
|
|
6282
|
+
Ae(i);
|
|
6283
6283
|
}
|
|
6284
6284
|
} else if (s instanceof pt || s instanceof r0)
|
|
6285
6285
|
fr && console.warn("BufferAttribute dispose not supported", s.count);
|
|
6286
6286
|
else if (s instanceof Array)
|
|
6287
6287
|
for (const e of s)
|
|
6288
|
-
e instanceof Se &&
|
|
6288
|
+
e instanceof Se && Ae(e);
|
|
6289
6289
|
else if (s instanceof Se) {
|
|
6290
6290
|
Hr(s);
|
|
6291
6291
|
for (const i of Object.keys(s)) {
|
|
6292
6292
|
const n = s[i];
|
|
6293
|
-
n instanceof Fe && (
|
|
6293
|
+
n instanceof Fe && (Ae(n), s[i] = null);
|
|
6294
6294
|
}
|
|
6295
6295
|
const e = s.uniforms;
|
|
6296
6296
|
if (e)
|
|
6297
6297
|
for (const i of Object.keys(e)) {
|
|
6298
6298
|
const n = e[i];
|
|
6299
|
-
n instanceof Fe ? (
|
|
6299
|
+
n instanceof Fe ? (Ae(n), e[i] = null) : n instanceof po && (Ae(n.value), n.value = null);
|
|
6300
6300
|
}
|
|
6301
6301
|
} else
|
|
6302
6302
|
s instanceof Fe ? (Hr(s), Hr(s.source), ((t = s.source) == null ? void 0 : t.data) instanceof ImageBitmap && Hr(s.source.data)) : s instanceof jx ? (Hr(s.boneTexture), s.boneTexture = null) : s instanceof Bx || !(s instanceof I) && fr && console.warn("Unknown object type", s);
|
|
@@ -6324,19 +6324,19 @@ function IL(s) {
|
|
|
6324
6324
|
const fr = x("debugresourceusers") || x("debugmemory"), Uc = Symbol("needle-resource-users"), ql = Symbol("needle-resource-users-count");
|
|
6325
6325
|
function Vt(s, t) {
|
|
6326
6326
|
vg(s, t, function(e, i) {
|
|
6327
|
-
|
|
6327
|
+
Ar && !hc.raycasting && (Vd(Uc, this, e, !1), Vd(Uc, this, i, !0));
|
|
6328
6328
|
});
|
|
6329
6329
|
}
|
|
6330
|
-
|
|
6330
|
+
Ar && (Vt(q.prototype, "material"), Vt(q.prototype, "geometry"), Vt(Se.prototype, "map"), Vt(Se.prototype, "bumpMap"), Vt(Se.prototype, "alphaMap"), Vt(Se.prototype, "normalMap"), Vt(Se.prototype, "displacementMap"), Vt(Se.prototype, "roughnessMap"), Vt(Se.prototype, "metalnessMap"), Vt(Se.prototype, "emissiveMap"), Vt(Se.prototype, "specularMap"), Vt(Se.prototype, "envMap"), Vt(Se.prototype, "lightMap"), Vt(Se.prototype, "aoMap"), Vt(Se.prototype, "gradientMap"));
|
|
6331
6331
|
function yP(s) {
|
|
6332
|
-
if (
|
|
6332
|
+
if (Ar === !1)
|
|
6333
6333
|
return;
|
|
6334
6334
|
const t = s[Uc];
|
|
6335
6335
|
if (t)
|
|
6336
6336
|
for (const e of t)
|
|
6337
6337
|
Vd(Uc, e, s, !1);
|
|
6338
6338
|
}
|
|
6339
|
-
|
|
6339
|
+
Ar && vg(Se.prototype, "dispose", function() {
|
|
6340
6340
|
yP(this);
|
|
6341
6341
|
});
|
|
6342
6342
|
let pm = 0;
|
|
@@ -6360,7 +6360,7 @@ function Vd(s, t, e, i) {
|
|
|
6360
6360
|
} else if (t && n.has(t)) {
|
|
6361
6361
|
n.delete(t);
|
|
6362
6362
|
let o = e[ql] || 0;
|
|
6363
|
-
o > 0 && (o -= 1, e[ql] = o), fr && console.warn(`🔴 Removed user of "${e.type}"`, t, e, o, "users:", n), o <= 0 && (dc.isLoading(e) || (Du && console.warn(`🔴 Removed all user of "${e.type}"`, e), J0() &&
|
|
6363
|
+
o > 0 && (o -= 1, e[ql] = o), fr && console.warn(`🔴 Removed user of "${e.type}"`, t, e, o, "users:", n), o <= 0 && (dc.isLoading(e) || (Du && console.warn(`🔴 Removed all user of "${e.type}"`, e), J0() && Ae(e)));
|
|
6364
6364
|
}
|
|
6365
6365
|
e[s] = n;
|
|
6366
6366
|
}
|
|
@@ -6592,7 +6592,7 @@ function xP(s, t) {
|
|
|
6592
6592
|
return;
|
|
6593
6593
|
_d.has(t) || _d.set(t, []), s[gm] = !0, _d.get(t).push(s), ym && console.debug("register prewarm", s.name);
|
|
6594
6594
|
}
|
|
6595
|
-
let T_ = null,
|
|
6595
|
+
let T_ = null, E_ = null;
|
|
6596
6596
|
function SP(s) {
|
|
6597
6597
|
if (!s)
|
|
6598
6598
|
return;
|
|
@@ -6605,7 +6605,7 @@ function SP(s) {
|
|
|
6605
6605
|
const i = s.renderer;
|
|
6606
6606
|
if (i.compile) {
|
|
6607
6607
|
const n = s.scene;
|
|
6608
|
-
i.compile(n, e), T_ ?? (T_ = new zx(64)),
|
|
6608
|
+
i.compile(n, e), T_ ?? (T_ = new zx(64)), E_ ?? (E_ = new Ux(1e-3, 9999999, T_)), E_.update(i, n);
|
|
6609
6609
|
for (const o of t)
|
|
6610
6610
|
o[lv] = !0, o[gm] = !1;
|
|
6611
6611
|
t.length = 0, ym && console.log("prewarm done");
|
|
@@ -6616,7 +6616,7 @@ pe.registerCallback(me.ContextCreated, (s) => {
|
|
|
6616
6616
|
const t = s.context;
|
|
6617
6617
|
kP(t), OP(t);
|
|
6618
6618
|
});
|
|
6619
|
-
const Gd = x("debugcomponents"),
|
|
6619
|
+
const Gd = x("debugcomponents"), A_ = "eff8ba80-635d-11ec-90d6-0242ac120003";
|
|
6620
6620
|
class Ft {
|
|
6621
6621
|
constructor(t) {
|
|
6622
6622
|
r(this, "_originalSeed");
|
|
@@ -6634,9 +6634,9 @@ class Ft {
|
|
|
6634
6634
|
}
|
|
6635
6635
|
generateUUID(t) {
|
|
6636
6636
|
if (typeof t == "string")
|
|
6637
|
-
return Vy(t,
|
|
6637
|
+
return Vy(t, A_);
|
|
6638
6638
|
const e = this._seed;
|
|
6639
|
-
return this._seed -= 1, Vy(e.toString(),
|
|
6639
|
+
return this._seed -= 1, Vy(e.toString(), A_);
|
|
6640
6640
|
}
|
|
6641
6641
|
initialize(t) {
|
|
6642
6642
|
typeof t == "string" ? this._seed = Ft.hash(t) : this._seed = t;
|
|
@@ -6746,7 +6746,7 @@ function RP() {
|
|
|
6746
6746
|
const oa = new Array();
|
|
6747
6747
|
function kP(s) {
|
|
6748
6748
|
s.connection.beginListen("new-instance-created", async (t) => {
|
|
6749
|
-
const e = await
|
|
6749
|
+
const e = await AP(t.originalGuid, s.scene);
|
|
6750
6750
|
if (t.preventCreation === !0)
|
|
6751
6751
|
return;
|
|
6752
6752
|
if (!e) {
|
|
@@ -6773,10 +6773,10 @@ function TP(s, t) {
|
|
|
6773
6773
|
return { seed: e, instance: n };
|
|
6774
6774
|
}
|
|
6775
6775
|
const dv = {};
|
|
6776
|
-
function
|
|
6776
|
+
function EP(s, t) {
|
|
6777
6777
|
dv[s] = t;
|
|
6778
6778
|
}
|
|
6779
|
-
async function
|
|
6779
|
+
async function AP(s, t) {
|
|
6780
6780
|
const e = dv[s];
|
|
6781
6781
|
if (e != null) {
|
|
6782
6782
|
const i = await e(s);
|
|
@@ -7428,7 +7428,7 @@ function Fu(s, t, e) {
|
|
|
7428
7428
|
}
|
|
7429
7429
|
const bv = new Ft("addComponentIdProvider");
|
|
7430
7430
|
function Ma(s, t, e = !0) {
|
|
7431
|
-
s.userData || (s.userData = {}), s.userData.components || (s.userData.components = []), s.userData.components.push(t), t.gameObject = s, (t.guid === void 0 || t.guid === "invalid") && (t.guid = bv.generateUUID()),
|
|
7431
|
+
s.userData || (s.userData = {}), s.userData.components || (s.userData.components = []), s.userData.components.push(t), t.gameObject = s, (t.guid === void 0 || t.guid === "invalid") && (t.guid = bv.generateUUID()), Eg(s), Dg(t, t.context);
|
|
7432
7432
|
try {
|
|
7433
7433
|
e && t.__internalAwake && (uc(s), t.activeAndEnabled && t.__internalAwake()), ju.dispatchComponentLifecycleEvent("component-added", t);
|
|
7434
7434
|
} catch (i) {
|
|
@@ -7560,7 +7560,7 @@ function sO(s, t, e = void 0) {
|
|
|
7560
7560
|
const i = e;
|
|
7561
7561
|
return i && Zc(i, s, t, !1), t;
|
|
7562
7562
|
}
|
|
7563
|
-
function
|
|
7563
|
+
function Eg(s) {
|
|
7564
7564
|
s && s.isObject3D === !0 && KP(s, I);
|
|
7565
7565
|
}
|
|
7566
7566
|
I.prototype.SetActive = function(s) {
|
|
@@ -7753,12 +7753,12 @@ function xd(s, t) {
|
|
|
7753
7753
|
return typeof t == "number" && (t = t > 0.5), s.visible = t, s.visible;
|
|
7754
7754
|
}
|
|
7755
7755
|
function oO(s) {
|
|
7756
|
-
return s[_o] ||
|
|
7756
|
+
return s[_o] || Ag(s);
|
|
7757
7757
|
}
|
|
7758
7758
|
function rO(s, t) {
|
|
7759
7759
|
s[sv] = t;
|
|
7760
7760
|
}
|
|
7761
|
-
function
|
|
7761
|
+
function Ag(s) {
|
|
7762
7762
|
return bn.isUsingInstancing(s);
|
|
7763
7763
|
}
|
|
7764
7764
|
function wv(s, t) {
|
|
@@ -7781,7 +7781,7 @@ function sn(s, t = !0, e = !1) {
|
|
|
7781
7781
|
for (const i of Sd)
|
|
7782
7782
|
i.gameObject = null, i.context = null;
|
|
7783
7783
|
for (const i of Cd)
|
|
7784
|
-
aO(i, !0), e &&
|
|
7784
|
+
aO(i, !0), e && Ae(i), mP(i);
|
|
7785
7785
|
Cd.length = 0, Sd.length = 0;
|
|
7786
7786
|
}
|
|
7787
7787
|
function Sm(s, t = !0, e = !0) {
|
|
@@ -7887,7 +7887,7 @@ function Cv(s, t, e, i, n, o) {
|
|
|
7887
7887
|
const l = t.children;
|
|
7888
7888
|
t.children = [];
|
|
7889
7889
|
const c = t.clone(!1);
|
|
7890
|
-
if (
|
|
7890
|
+
if (Eg(c), t.userData = a, t.children = l, n[t.uuid] = { original: t, clone: c }, wd && console.log("ADD", t, c), t.type === "SkinnedMesh" && (o[t.uuid] = { original: t, clone: c }), (e == null ? void 0 : e.visible) !== void 0 && (c.visible = e.visible), e != null && e.idProvider) {
|
|
7891
7891
|
c.uuid = e.idProvider.generateUUID();
|
|
7892
7892
|
const u = c;
|
|
7893
7893
|
u && (u.guid = c.uuid);
|
|
@@ -8061,9 +8061,9 @@ var Ha;
|
|
|
8061
8061
|
if ("error" in w)
|
|
8062
8062
|
return console.error(w.error), null;
|
|
8063
8063
|
if ("upload" in w && w.upload) {
|
|
8064
|
-
let k = function(
|
|
8065
|
-
var
|
|
8066
|
-
return (
|
|
8064
|
+
let k = function(A) {
|
|
8065
|
+
var E;
|
|
8066
|
+
return (E = u == null ? void 0 : u.onProgress) == null || E.call(null, { progress01: 0, state: "inprogress" }), fetch(A, {
|
|
8067
8067
|
method: "PUT",
|
|
8068
8068
|
headers: b,
|
|
8069
8069
|
body: m,
|
|
@@ -8075,14 +8075,14 @@ var Ha;
|
|
|
8075
8075
|
};
|
|
8076
8076
|
console.debug("Uploading file", w.upload);
|
|
8077
8077
|
let O = !1, R = null;
|
|
8078
|
-
for (let
|
|
8078
|
+
for (let A = 0; A < 3; A++)
|
|
8079
8079
|
try {
|
|
8080
8080
|
if (O)
|
|
8081
8081
|
break;
|
|
8082
8082
|
if ((C = u == null ? void 0 : u.abort) != null && C.aborted)
|
|
8083
8083
|
return console.debug("Aborted upload"), null;
|
|
8084
8084
|
const F = await k(w.upload);
|
|
8085
|
-
F instanceof Error ? (R = F, await Hn(1e3 *
|
|
8085
|
+
F instanceof Error ? (R = F, await Hn(1e3 * A)) : F.ok && (console.debug("File uploaded successfully"), O = !0);
|
|
8086
8086
|
} catch (F) {
|
|
8087
8087
|
console.error(F);
|
|
8088
8088
|
}
|
|
@@ -8173,7 +8173,7 @@ const Hf = Symbol("assetReference"), ir = class {
|
|
|
8173
8173
|
o >= 0 && (this._urlName = this._urlName.substring(0, o));
|
|
8174
8174
|
} else
|
|
8175
8175
|
this._urlName = t;
|
|
8176
|
-
this._hash = e, t.includes("?v=") ? this._hashedUri = t : this._hashedUri = e ? t + "?v=" + e : t, i !== null && (this.asset = i),
|
|
8176
|
+
this._hash = e, t.includes("?v=") ? this._hashedUri = t : this._hashedUri = e ? t + "?v=" + e : t, i !== null && (this.asset = i), EP(this._url, this.onResolvePrefab.bind(this));
|
|
8177
8177
|
}
|
|
8178
8178
|
/**
|
|
8179
8179
|
* Get an AssetReference for a URL to be easily loaded.
|
|
@@ -8637,7 +8637,7 @@ class yO {
|
|
|
8637
8637
|
}
|
|
8638
8638
|
resolveTexture(t, e) {
|
|
8639
8639
|
const i = e;
|
|
8640
|
-
Rl && console.log("Lightmap loaded:", i), i != null && i.isTexture && (this.registry ? (i.colorSpace =
|
|
8640
|
+
Rl && console.log("Lightmap loaded:", i), i != null && i.isTexture && (this.registry ? (i.colorSpace = As, this.registry.registerTexture(this.source, t.type, i, t.index)) : console.log(uo[t.type], t.pointer, i));
|
|
8641
8641
|
}
|
|
8642
8642
|
}
|
|
8643
8643
|
const N_ = !!x("debuglightmaps");
|
|
@@ -8775,8 +8775,8 @@ TEX ` + i.texture_lod;
|
|
|
8775
8775
|
` + (n.lastScreenCoverage * 100).toFixed(1) + `% cov
|
|
8776
8776
|
` + (n.lastCentrality * 100).toFixed(1) + `% centr
|
|
8777
8777
|
` + (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) {
|
|
8778
|
-
const C = t, k = C.worldForward, O = C.worldPosition,
|
|
8779
|
-
V.DrawLabel(
|
|
8778
|
+
const C = t, k = C.worldForward, O = C.worldPosition, A = G(k).multiplyScalar(p * 0.7).add(u), F = A.distanceTo(O), E = m[Math.min(m.length - 1, Math.max(0, o))] + "88", z = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, U = t.isPerspectiveCamera ? Math.tan(t.fov * Math.PI / 180 / 2) : 1;
|
|
8779
|
+
V.DrawLabel(A, w, F * 0.012 * z * U, void 0, 16777215, E);
|
|
8780
8780
|
}
|
|
8781
8781
|
}
|
|
8782
8782
|
}
|
|
@@ -9112,7 +9112,7 @@ class TO {
|
|
|
9112
9112
|
const V_ = x("timescale");
|
|
9113
9113
|
let Pm = 1;
|
|
9114
9114
|
typeof V_ == "number" && (Pm = V_);
|
|
9115
|
-
class
|
|
9115
|
+
class EO {
|
|
9116
9116
|
constructor() {
|
|
9117
9117
|
r(this, "_time", 0);
|
|
9118
9118
|
r(this, "_deltaTime", 0);
|
|
@@ -9192,10 +9192,10 @@ class AO {
|
|
|
9192
9192
|
}
|
|
9193
9193
|
let H_ = !1;
|
|
9194
9194
|
function Ov(s) {
|
|
9195
|
-
H_ || (H_ = !0,
|
|
9195
|
+
H_ || (H_ = !0, AO(), IO());
|
|
9196
9196
|
}
|
|
9197
9197
|
Ov();
|
|
9198
|
-
function
|
|
9198
|
+
function AO() {
|
|
9199
9199
|
const s = `
|
|
9200
9200
|
float startCompression = 0.8;
|
|
9201
9201
|
float desaturation = 0.5;
|
|
@@ -9681,7 +9681,7 @@ class VO {
|
|
|
9681
9681
|
const l = e.worldPosition, c = e.worldForward.multiplyScalar(-1), h = c.y > 0.6, d = c.y > 0.4, u = (t.visible ? d : h) || this.userRequestedMenu, p = !t.visible && u;
|
|
9682
9682
|
t.visible = u || X.isDesktop() && Xf, c.multiplyScalar(3 * n), l.add(c), (p || !1) && (t.position.copy(this._menuTarget.position), t.position.y += 0.25, this._menuTarget.position.copy(t.position), this.positionFilter.reset(t.position), t.quaternion.copy(this._menuTarget.quaternion), this.markDirty());
|
|
9683
9683
|
const g = this._menuTarget.position.distanceTo(l);
|
|
9684
|
-
(p || g > 1.5 * n) && (this.ensureRenderOnTop(this.menu), this._menuTarget.position.copy(l), this._context.scene.add(this._menuTarget),
|
|
9684
|
+
(p || g > 1.5 * n) && (this.ensureRenderOnTop(this.menu), this._menuTarget.position.copy(l), this._context.scene.add(this._menuTarget), Au(this._menuTarget, this._context.mainCamera, !0, !0), this._menuTarget.removeFromParent()), this.positionFilter.filter(this._menuTarget.position, t.position, this._context.time.time);
|
|
9685
9685
|
const y = 5;
|
|
9686
9686
|
(o = this.menu) == null || o.quaternion.slerp(this._menuTarget.quaternion, this._context.time.deltaTime * y), (a = this.menu) == null || a.scale.setScalar(n);
|
|
9687
9687
|
}
|
|
@@ -10868,7 +10868,7 @@ const ke = class {
|
|
|
10868
10868
|
r(this, "_contextRestoreTries", 0);
|
|
10869
10869
|
/** returns true if we should return out of the frame loop */
|
|
10870
10870
|
r(this, "_wasPaused", !1);
|
|
10871
|
-
this.name = (t == null ? void 0 : t.name) || "", this.alias = t == null ? void 0 : t.alias, this.domElement = (t == null ? void 0 : t.domElement) || document.body, this.hash = t == null ? void 0 : t.hash, t != null && t.renderer && (this.renderer = t.renderer, this.isManagedExternally = !0), (t == null ? void 0 : t.runInBackground) !== void 0 && (this.runInBackground = t.runInBackground), t != null && t.scene ? this.scene = t.scene : this.scene = new Ri(), t != null && t.camera && (this._mainCamera = t.camera), this.application = new _n(this), this.time = new
|
|
10871
|
+
this.name = (t == null ? void 0 : t.name) || "", this.alias = t == null ? void 0 : t.alias, this.domElement = (t == null ? void 0 : t.domElement) || document.body, this.hash = t == null ? void 0 : t.hash, t != null && t.renderer && (this.renderer = t.renderer, this.isManagedExternally = !0), (t == null ? void 0 : t.runInBackground) !== void 0 && (this.runInBackground = t.runInBackground), t != null && t.scene ? this.scene = t.scene : this.scene = new Ri(), t != null && t.camera && (this._mainCamera = t.camera), this.application = new _n(this), this.time = new EO(), this.input = new DC(this), this.physics = new hc(this), this.connection = new YC(this), this.assets = new fP(), this.sceneLighting = new kO(this), this.addressables = new hO(this), this.lightmaps = new _O(this), this.players = new xO(this), this.menu = new GO(this), this.lodsManager = new bO(this), this.animations = new mO(this);
|
|
10872
10872
|
const e = () => this._needsUpdateSize = !0;
|
|
10873
10873
|
window.addEventListener("resize", e), this._disposeCallbacks.push(() => window.removeEventListener("resize", e));
|
|
10874
10874
|
const i = new ResizeObserver((n) => this._needsUpdateSize = !0);
|
|
@@ -11410,7 +11410,7 @@ Possible solutions:
|
|
|
11410
11410
|
continue;
|
|
11411
11411
|
for (let y = 0; y < m.file.parser.json.materials.length; y++) {
|
|
11412
11412
|
const _ = await m.file.parser.getDependency("material", y), b = new I();
|
|
11413
|
-
b.position.x = y * 1.1, b.position.y = g, this.scene.add(b),
|
|
11413
|
+
b.position.x = y * 1.1, b.position.y = g, this.scene.add(b), Er.createPrimitive("ShaderBall", {
|
|
11414
11414
|
parent: b,
|
|
11415
11415
|
material: _
|
|
11416
11416
|
});
|
|
@@ -11912,7 +11912,7 @@ async function iM() {
|
|
|
11912
11912
|
}
|
|
11913
11913
|
const nM = x("debugdecoders");
|
|
11914
11914
|
let Yf = null;
|
|
11915
|
-
function
|
|
11915
|
+
function Ev() {
|
|
11916
11916
|
if (!Yf) {
|
|
11917
11917
|
const s = ug(null);
|
|
11918
11918
|
Yf = { dracoLoader: s.dracoLoader, ktx2Loader: s.ktx2Loader, meshoptDecoder: s.meshoptDecoder };
|
|
@@ -11924,7 +11924,7 @@ function Y_(s) {
|
|
|
11924
11924
|
}
|
|
11925
11925
|
function K_(s) {
|
|
11926
11926
|
if (s !== void 0 && typeof s == "string" && s !== "js") {
|
|
11927
|
-
const t =
|
|
11927
|
+
const t = Ev();
|
|
11928
11928
|
nM && console.log("Setting draco decoder type to", s), t.dracoLoader.setDecoderConfig({ type: s });
|
|
11929
11929
|
}
|
|
11930
11930
|
}
|
|
@@ -11932,7 +11932,7 @@ function Z_(s) {
|
|
|
11932
11932
|
s !== void 0 && typeof s == "string" && Q1(s);
|
|
11933
11933
|
}
|
|
11934
11934
|
function Bg(s, t) {
|
|
11935
|
-
const e =
|
|
11935
|
+
const e = Ev();
|
|
11936
11936
|
return t.renderer ? e.ktx2Loader.detectSupport(t.renderer) : console.warn("No renderer provided to detect ktx2 support - loading KTX2 textures will probably fail"), G1(s), s.dracoLoader || s.setDRACOLoader(e.dracoLoader), s.ktx2Loader || s.setKTX2Loader(e.ktx2Loader), s.meshoptDecoder || s.setMeshoptDecoder(e.meshoptDecoder), q1(s, {
|
|
11937
11937
|
progressive: !0
|
|
11938
11938
|
}), s;
|
|
@@ -12124,7 +12124,7 @@ class S extends I {
|
|
|
12124
12124
|
* @returns True if the GameObject is using instanced rendering
|
|
12125
12125
|
*/
|
|
12126
12126
|
static isUsingInstancing(e) {
|
|
12127
|
-
return
|
|
12127
|
+
return Ag(e);
|
|
12128
12128
|
}
|
|
12129
12129
|
/**
|
|
12130
12130
|
* Executes a callback for all components of the provided type on the provided object and its children
|
|
@@ -12699,7 +12699,7 @@ const kc = class {
|
|
|
12699
12699
|
* @param val The world rotation Euler angles to set
|
|
12700
12700
|
*/
|
|
12701
12701
|
set worldEuler(t) {
|
|
12702
|
-
|
|
12702
|
+
E0(this.gameObject, t);
|
|
12703
12703
|
}
|
|
12704
12704
|
/**
|
|
12705
12705
|
* Gets the rotation of this component's GameObject in world space as Euler angles (in degrees)
|
|
@@ -12784,7 +12784,7 @@ const $L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12784
12784
|
Component: L,
|
|
12785
12785
|
GameObject: S
|
|
12786
12786
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12787
|
-
var aM = Object.defineProperty, lM = Object.getOwnPropertyDescriptor,
|
|
12787
|
+
var aM = Object.defineProperty, lM = Object.getOwnPropertyDescriptor, Av = (s, t, e, i) => {
|
|
12788
12788
|
for (var n = i > 1 ? void 0 : i ? lM(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
12789
12789
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
12790
12790
|
return i && n && aM(t, e, n), n;
|
|
@@ -12808,10 +12808,10 @@ class Wu extends L {
|
|
|
12808
12808
|
this._centerPos.copy(e), this._centerPos.add(i), this._centerPos.multiplyScalar(0.5), yt(this.gameObject, this.centered ? this._centerPos : e), this.gameObject.lookAt(ie(this.to).clone()), this.gameObject.scale.set(this.width, this.width, n);
|
|
12809
12809
|
}
|
|
12810
12810
|
}
|
|
12811
|
-
|
|
12811
|
+
Av([
|
|
12812
12812
|
f(S)
|
|
12813
12813
|
], Wu.prototype, "from", 2);
|
|
12814
|
-
|
|
12814
|
+
Av([
|
|
12815
12815
|
f(S)
|
|
12816
12816
|
], Wu.prototype, "to", 2);
|
|
12817
12817
|
var cM = Object.defineProperty, hM = Object.getOwnPropertyDescriptor, Ir = (s, t, e, i) => {
|
|
@@ -14307,7 +14307,7 @@ class Ns extends L {
|
|
|
14307
14307
|
}
|
|
14308
14308
|
/** @internal */
|
|
14309
14309
|
async onLeaveXR() {
|
|
14310
|
-
this.activeAndEnabled && (await
|
|
14310
|
+
this.activeAndEnabled && (await Eu(1), this.updateProjection());
|
|
14311
14311
|
}
|
|
14312
14312
|
/** @internal */
|
|
14313
14313
|
onBeforeRender() {
|
|
@@ -14347,7 +14347,7 @@ class Ns extends L {
|
|
|
14347
14347
|
console.error("Error creating three GroundProjection", p);
|
|
14348
14348
|
return;
|
|
14349
14349
|
}
|
|
14350
|
-
this._projection.position.y = this._height - n, this._projection.name = "GroundProjection",
|
|
14350
|
+
this._projection.position.y = this._height - n, this._projection.name = "GroundProjection", A0(this._projection, !1);
|
|
14351
14351
|
} else
|
|
14352
14352
|
i = !1;
|
|
14353
14353
|
if (this._projection.parent || this.gameObject.add(this._projection), this.autoFit && i) {
|
|
@@ -14751,7 +14751,7 @@ const YL = function(s) {
|
|
|
14751
14751
|
});
|
|
14752
14752
|
};
|
|
14753
14753
|
};
|
|
14754
|
-
var RM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor,
|
|
14754
|
+
var RM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, Ei = (s, t, e, i) => {
|
|
14755
14755
|
for (var n = i > 1 ? void 0 : i ? kM(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
14756
14756
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
14757
14757
|
return i && n && RM(t, e, n), n;
|
|
@@ -14926,7 +14926,7 @@ const Od = (Bp = class extends L {
|
|
|
14926
14926
|
onEnable() {
|
|
14927
14927
|
this._watch || (this._watch = new TM(this.gameObject, this.context)), this._watch.start(!0, !0), this.startCoroutine(this.beforePhysics(), Re.LateUpdate), B() && (globalThis.false ? D.RAPIER_PHYSICS.ready().then(async () => {
|
|
14928
14928
|
var t;
|
|
14929
|
-
await
|
|
14929
|
+
await Eu(3), (t = this.context.physics.engine) != null && t.getBody(this) || console.warn(`Rigidbody could not be created. Ensure "${this.name}" has a Collider component.`);
|
|
14930
14930
|
}) : console.warn("Rigidbody could not be created: Rapier physics are explicitly disabled."));
|
|
14931
14931
|
}
|
|
14932
14932
|
onDisable() {
|
|
@@ -15061,51 +15061,51 @@ const Od = (Bp = class extends L {
|
|
|
15061
15061
|
}
|
|
15062
15062
|
}, r(Bp, "tempPosition", new v()), Bp);
|
|
15063
15063
|
let _e = Od;
|
|
15064
|
-
|
|
15064
|
+
Ei([
|
|
15065
15065
|
$t()
|
|
15066
15066
|
], _e.prototype, "autoMass", 2);
|
|
15067
|
-
|
|
15067
|
+
Ei([
|
|
15068
15068
|
f()
|
|
15069
15069
|
], _e.prototype, "mass", 1);
|
|
15070
|
-
|
|
15070
|
+
Ei([
|
|
15071
15071
|
$t(),
|
|
15072
15072
|
f()
|
|
15073
15073
|
], _e.prototype, "useGravity", 2);
|
|
15074
|
-
|
|
15074
|
+
Ei([
|
|
15075
15075
|
f(v)
|
|
15076
15076
|
], _e.prototype, "centerOfMass", 2);
|
|
15077
|
-
|
|
15077
|
+
Ei([
|
|
15078
15078
|
$t(),
|
|
15079
15079
|
f()
|
|
15080
15080
|
], _e.prototype, "constraints", 2);
|
|
15081
|
-
|
|
15081
|
+
Ei([
|
|
15082
15082
|
$t(),
|
|
15083
15083
|
f()
|
|
15084
15084
|
], _e.prototype, "isKinematic", 2);
|
|
15085
|
-
|
|
15085
|
+
Ei([
|
|
15086
15086
|
$t(),
|
|
15087
15087
|
f()
|
|
15088
15088
|
], _e.prototype, "drag", 2);
|
|
15089
|
-
|
|
15089
|
+
Ei([
|
|
15090
15090
|
$t(),
|
|
15091
15091
|
f()
|
|
15092
15092
|
], _e.prototype, "angularDrag", 2);
|
|
15093
|
-
|
|
15093
|
+
Ei([
|
|
15094
15094
|
$t(),
|
|
15095
15095
|
f()
|
|
15096
15096
|
], _e.prototype, "detectCollisions", 2);
|
|
15097
|
-
|
|
15097
|
+
Ei([
|
|
15098
15098
|
$t(),
|
|
15099
15099
|
f()
|
|
15100
15100
|
], _e.prototype, "sleepThreshold", 2);
|
|
15101
|
-
|
|
15101
|
+
Ei([
|
|
15102
15102
|
$t(),
|
|
15103
15103
|
f()
|
|
15104
15104
|
], _e.prototype, "collisionDetectionMode", 2);
|
|
15105
|
-
|
|
15105
|
+
Ei([
|
|
15106
15106
|
$t()
|
|
15107
15107
|
], _e.prototype, "_gravityScale", 2);
|
|
15108
|
-
|
|
15108
|
+
Ei([
|
|
15109
15109
|
$t()
|
|
15110
15110
|
], _e.prototype, "dominanceGroup", 2);
|
|
15111
15111
|
new v();
|
|
@@ -15221,7 +15221,7 @@ class Bs extends L {
|
|
|
15221
15221
|
const o = n.position();
|
|
15222
15222
|
o && (this.interpolatePosition && ((i = this._targetPosition) == null || i.set(o.x(), o.y(), o.z())), (!this.interpolatePosition || !this._receivedDataBefore) && this.setWorldPosition(o.x(), o.y(), o.z()));
|
|
15223
15223
|
const a = n.rotation();
|
|
15224
|
-
a && (this.tempEuler.set(a.x(), a.y(), a.z()), this.interpolateRotation && this._targetRotation.setFromEuler(this.tempEuler), (!this.interpolateRotation || !this._receivedDataBefore) &&
|
|
15224
|
+
a && (this.tempEuler.set(a.x(), a.y(), a.z()), this.interpolateRotation && this._targetRotation.setFromEuler(this.tempEuler), (!this.interpolateRotation || !this._receivedDataBefore) && E0(this.gameObject, this.tempEuler));
|
|
15225
15225
|
const l = n.scale();
|
|
15226
15226
|
l && this.gameObject.scale.set(l.x(), l.y(), l.z());
|
|
15227
15227
|
}
|
|
@@ -15442,7 +15442,7 @@ class ro {
|
|
|
15442
15442
|
}
|
|
15443
15443
|
}
|
|
15444
15444
|
}
|
|
15445
|
-
const
|
|
15445
|
+
const EM = (s) => /^[A-Z]*$/.test(s);
|
|
15446
15446
|
class Ug extends Event {
|
|
15447
15447
|
constructor() {
|
|
15448
15448
|
super(...arguments);
|
|
@@ -15497,7 +15497,7 @@ class xe {
|
|
|
15497
15497
|
if (this.key = t, this.target = e, this.key !== void 0) {
|
|
15498
15498
|
let i = "", n = !1;
|
|
15499
15499
|
for (const o of this.key)
|
|
15500
|
-
n &&
|
|
15500
|
+
n && EM(o) && (i += "-"), n = !0, i += o.toLowerCase();
|
|
15501
15501
|
this.key = i;
|
|
15502
15502
|
}
|
|
15503
15503
|
}
|
|
@@ -15550,7 +15550,7 @@ class xe {
|
|
|
15550
15550
|
this.methods.length = 0;
|
|
15551
15551
|
}
|
|
15552
15552
|
}
|
|
15553
|
-
class
|
|
15553
|
+
class AM extends an {
|
|
15554
15554
|
constructor() {
|
|
15555
15555
|
super([le, ce], "ColorSerializer");
|
|
15556
15556
|
}
|
|
@@ -15563,7 +15563,7 @@ class EM extends an {
|
|
|
15563
15563
|
return t.a !== void 0 ? { r: t.r, g: t.g, b: t.b, a: t.a } : { r: t.r, g: t.g, b: t.b };
|
|
15564
15564
|
}
|
|
15565
15565
|
}
|
|
15566
|
-
const KL = new
|
|
15566
|
+
const KL = new AM();
|
|
15567
15567
|
class IM extends an {
|
|
15568
15568
|
constructor() {
|
|
15569
15569
|
super([Bt], "EulerSerializer");
|
|
@@ -15782,7 +15782,7 @@ class zM extends an {
|
|
|
15782
15782
|
let i = t;
|
|
15783
15783
|
Jd.has(i) && (i = Jd.get(i)), i.isRenderTargetTexture = !0, i.flipY = !0, i.offset.y = 1, i.repeat.y = -1, i.needsUpdate = !0, i.mipmaps = [], i instanceof qx && (i.isCompressedTexture = !1, i.format = Pu);
|
|
15784
15784
|
const n = new mr(i.image.width, i.image.height, {
|
|
15785
|
-
colorSpace:
|
|
15785
|
+
colorSpace: As
|
|
15786
15786
|
});
|
|
15787
15787
|
return n.texture = i, n;
|
|
15788
15788
|
}
|
|
@@ -15851,15 +15851,15 @@ class Ng extends on {
|
|
|
15851
15851
|
super(), this.ignoreSkinnedMeshes = !0;
|
|
15852
15852
|
}
|
|
15853
15853
|
}
|
|
15854
|
-
const
|
|
15854
|
+
const Ey = class extends Ga {
|
|
15855
15855
|
performRaycast(t) {
|
|
15856
|
-
if (!Z.active || !
|
|
15856
|
+
if (!Z.active || !Ey.allow || !(t != null && t.ray))
|
|
15857
15857
|
return null;
|
|
15858
15858
|
const e = t.ray.origin, i = 0.015;
|
|
15859
15859
|
return this.context.physics.sphereOverlap(e, i, !1, !0);
|
|
15860
15860
|
}
|
|
15861
15861
|
};
|
|
15862
|
-
let yr =
|
|
15862
|
+
let yr = Ey;
|
|
15863
15863
|
/**
|
|
15864
15864
|
* Use to disable SpatialGrabRaycaster globally
|
|
15865
15865
|
*/
|
|
@@ -15942,7 +15942,7 @@ function HM(s, t, e = Re.OnBeforeRender) {
|
|
|
15942
15942
|
o[n] = c;
|
|
15943
15943
|
}
|
|
15944
15944
|
const io = x("debugeventsystem");
|
|
15945
|
-
var
|
|
15945
|
+
var Em = /* @__PURE__ */ ((s) => (s.BeforeHandleInput = "BeforeHandleInput", s.AfterHandleInput = "AfterHandleInput", s))(Em || {});
|
|
15946
15946
|
CM((s) => {
|
|
15947
15947
|
di.createIfNoneExists(s);
|
|
15948
15948
|
});
|
|
@@ -16519,12 +16519,12 @@ class we extends L {
|
|
|
16519
16519
|
}
|
|
16520
16520
|
/** @internal */
|
|
16521
16521
|
start() {
|
|
16522
|
-
this._eventSystem = di.get(this.context) ?? void 0, this._eventSystem && (this._afterHandleInputFn = this.afterHandleInput.bind(this), this._eventSystem.addEventListener(
|
|
16522
|
+
this._eventSystem = di.get(this.context) ?? void 0, this._eventSystem && (this._afterHandleInputFn = this.afterHandleInput.bind(this), this._eventSystem.addEventListener(Em.AfterHandleInput, this._afterHandleInputFn));
|
|
16523
16523
|
}
|
|
16524
16524
|
/** @internal */
|
|
16525
16525
|
onDestroy() {
|
|
16526
16526
|
var e, i;
|
|
16527
|
-
(e = this._controls) == null || e.dispose(), (i = this._eventSystem) == null || i.removeEventListener(
|
|
16527
|
+
(e = this._controls) == null || e.dispose(), (i = this._eventSystem) == null || i.removeEventListener(Em.AfterHandleInput, this._afterHandleInputFn);
|
|
16528
16528
|
}
|
|
16529
16529
|
/** @internal */
|
|
16530
16530
|
onEnable() {
|
|
@@ -16777,15 +16777,15 @@ class we extends L {
|
|
|
16777
16777
|
}
|
|
16778
16778
|
const b = i.fov || o.fov, w = 2 * Math.atan(Math.tan(b * Math.PI / 360 / 2) * o.aspect) / Math.PI * 360, C = p.y / (2 * Math.atan(Math.PI * b / 360)), k = p.x / (2 * Math.atan(Math.PI * w / 360)), O = d * Math.max(C, k) + p.z / 2;
|
|
16779
16779
|
kl && console.log("Fit camera to objects", { fitHeightDistance: C, fitWidthDistance: k, distance: O, verticalFov: b, horizontalFov: w }), this.maxZoom = O * 10, this.minZoom = O * 0.01;
|
|
16780
|
-
const R = 0.05,
|
|
16781
|
-
if (
|
|
16780
|
+
const R = 0.05, A = m.clone();
|
|
16781
|
+
if (A.y -= p.y * R, this.setLookTargetPosition(A, l), this.setFieldOfView(i.fov, l), h == null || h == "auto") {
|
|
16782
16782
|
const j = S.findObjectOfType(Ns), H = j ? j.radius : 0, J = Math.max(_.x, _.y, _.z, H);
|
|
16783
16783
|
o.near = O / 100, o.far = J + O * 10, j && (this.maxZoom = Math.max(Math.min(this.maxZoom, H * 0.5), O));
|
|
16784
16784
|
}
|
|
16785
16785
|
const F = a.getDistance();
|
|
16786
16786
|
F < this.minZoom && (this.minZoom = F * 0.9), F > this.maxZoom && (this.maxZoom = F * 1.1), o.updateMatrixWorld(), o.updateProjectionMatrix();
|
|
16787
|
-
const
|
|
16788
|
-
z.sub(
|
|
16787
|
+
const E = ie(o), z = m.clone();
|
|
16788
|
+
z.sub(E), c === "y" && (z.y = 0), z.normalize(), z.multiplyScalar(O), c === "y" && (z.y += -R * 4 * O);
|
|
16789
16789
|
let U = m.clone().sub(z);
|
|
16790
16790
|
o.parent && (U = o.parent.worldToLocal(U)), this.setCameraTargetPosition(U, l), (kl || i.debug) && (V.DrawWireBox3(g, 16777011, 10), V.DrawWireBox3(y, 65280, 10), !this._haveAttachedKeyboardEvents && kl && (this._haveAttachedKeyboardEvents = !0, document.body.addEventListener("keydown", (j) => {
|
|
16791
16791
|
if (j.code === "KeyF") {
|
|
@@ -18527,7 +18527,7 @@ var bR = Object.defineProperty, vR = Object.getOwnPropertyDescriptor, wR = (s, t
|
|
|
18527
18527
|
const aa = x("debugxrflags"), Nv = x("disablexrflags");
|
|
18528
18528
|
Nv && console.warn("XRFlags are disabled");
|
|
18529
18529
|
var xs = /* @__PURE__ */ ((s) => (s[s.Never = 0] = "Never", s[s.Browser = 1] = "Browser", s[s.AR = 2] = "AR", s[s.VR = 4] = "VR", s[s.FirstPerson = 8] = "FirstPerson", s[s.ThirdPerson = 16] = "ThirdPerson", s[s.All = 4294967295] = "All", s))(xs || {});
|
|
18530
|
-
const
|
|
18530
|
+
const Ay = class {
|
|
18531
18531
|
constructor() {
|
|
18532
18532
|
r(this, "Mask", 17);
|
|
18533
18533
|
}
|
|
@@ -18553,8 +18553,8 @@ const Ey = class {
|
|
|
18553
18553
|
this.Mask = 0, Yi.Apply();
|
|
18554
18554
|
}
|
|
18555
18555
|
};
|
|
18556
|
-
let ei =
|
|
18557
|
-
r(ei, "Global", new
|
|
18556
|
+
let ei = Ay;
|
|
18557
|
+
r(ei, "Global", new Ay());
|
|
18558
18558
|
var Wl;
|
|
18559
18559
|
const cs = (Wl = class extends L {
|
|
18560
18560
|
constructor() {
|
|
@@ -18820,12 +18820,12 @@ const RR = x("gizmos"), kR = x("debugboxhelper"), pn = class extends L {
|
|
|
18820
18820
|
};
|
|
18821
18821
|
let wi = pn;
|
|
18822
18822
|
r(wi, "testBox", new Oi()), r(wi, "_position", new v()), r(wi, "_size", new v(0.01, 0.01, 0.01)), r(wi, "_emptyObjectSize", new v(0.01, 0.01, 0.01));
|
|
18823
|
-
var TR = Object.defineProperty,
|
|
18824
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
18823
|
+
var TR = Object.defineProperty, ER = Object.getOwnPropertyDescriptor, fi = (s, t, e, i) => {
|
|
18824
|
+
for (var n = i > 1 ? void 0 : i ? ER(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
18825
18825
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
18826
18826
|
return i && n && TR(t, e, n), n;
|
|
18827
18827
|
};
|
|
18828
|
-
class
|
|
18828
|
+
class Ai extends L {
|
|
18829
18829
|
constructor() {
|
|
18830
18830
|
super(...arguments);
|
|
18831
18831
|
r(this, "attachedRigidbody", null);
|
|
@@ -18885,20 +18885,20 @@ class Ei extends L {
|
|
|
18885
18885
|
}
|
|
18886
18886
|
fi([
|
|
18887
18887
|
f(_e)
|
|
18888
|
-
],
|
|
18888
|
+
], Ai.prototype, "attachedRigidbody", 2);
|
|
18889
18889
|
fi([
|
|
18890
18890
|
f()
|
|
18891
|
-
],
|
|
18891
|
+
], Ai.prototype, "isTrigger", 2);
|
|
18892
18892
|
fi([
|
|
18893
18893
|
f()
|
|
18894
|
-
],
|
|
18894
|
+
], Ai.prototype, "sharedMaterial", 2);
|
|
18895
18895
|
fi([
|
|
18896
18896
|
f()
|
|
18897
|
-
],
|
|
18897
|
+
], Ai.prototype, "membership", 2);
|
|
18898
18898
|
fi([
|
|
18899
18899
|
f()
|
|
18900
|
-
],
|
|
18901
|
-
class sh extends
|
|
18900
|
+
], Ai.prototype, "filter", 2);
|
|
18901
|
+
class sh extends Ai {
|
|
18902
18902
|
constructor() {
|
|
18903
18903
|
super(...arguments);
|
|
18904
18904
|
r(this, "radius", 0.5);
|
|
@@ -18931,7 +18931,7 @@ fi([
|
|
|
18931
18931
|
fi([
|
|
18932
18932
|
f(v)
|
|
18933
18933
|
], sh.prototype, "center", 2);
|
|
18934
|
-
const Vv = class extends
|
|
18934
|
+
const Vv = class extends Ai {
|
|
18935
18935
|
constructor() {
|
|
18936
18936
|
super(...arguments);
|
|
18937
18937
|
r(this, "size", new v(1, 1, 1));
|
|
@@ -18989,7 +18989,7 @@ fi([
|
|
|
18989
18989
|
fi([
|
|
18990
18990
|
f(v)
|
|
18991
18991
|
], oh.prototype, "center", 2);
|
|
18992
|
-
class Dr extends
|
|
18992
|
+
class Dr extends Ai {
|
|
18993
18993
|
constructor() {
|
|
18994
18994
|
super(...arguments);
|
|
18995
18995
|
r(this, "sharedMesh");
|
|
@@ -19038,7 +19038,7 @@ fi([
|
|
|
19038
19038
|
fi([
|
|
19039
19039
|
f()
|
|
19040
19040
|
], Dr.prototype, "convex", 2);
|
|
19041
|
-
class Mo extends
|
|
19041
|
+
class Mo extends Ai {
|
|
19042
19042
|
constructor() {
|
|
19043
19043
|
super(...arguments);
|
|
19044
19044
|
r(this, "center", new v(0, 0, 0));
|
|
@@ -19062,10 +19062,10 @@ fi([
|
|
|
19062
19062
|
fi([
|
|
19063
19063
|
f()
|
|
19064
19064
|
], Mo.prototype, "height", 2);
|
|
19065
|
-
var
|
|
19065
|
+
var AR = Object.defineProperty, IR = Object.getOwnPropertyDescriptor, $s = (s, t, e, i) => {
|
|
19066
19066
|
for (var n = i > 1 ? void 0 : i ? IR(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
19067
19067
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
19068
|
-
return i && n &&
|
|
19068
|
+
return i && n && AR(t, e, n), n;
|
|
19069
19069
|
};
|
|
19070
19070
|
const lb = x("debugcharactercontroller");
|
|
19071
19071
|
class Ja extends L {
|
|
@@ -20004,16 +20004,16 @@ class np {
|
|
|
20004
20004
|
const C = w[0];
|
|
20005
20005
|
if (this._draggedOverObject === C.object ? this._draggedOverObjectDuration += this.context.time.deltaTime : (this._draggedOverObject = C.object, this._draggedOverObjectDuration = 0), C.face) {
|
|
20006
20006
|
this._hasLastSurfaceHitPoint = !0, this._lastSurfaceHitPoint.copy(C.point);
|
|
20007
|
-
const k = 0.15, O = this._draggedOverObjectDuration >= k, R = 1e-3,
|
|
20008
|
-
if ((O ||
|
|
20007
|
+
const k = 0.15, O = this._draggedOverObjectDuration >= k, R = 1e-3, A = this._totalMovement.length() >= R, F = G(C.normal || C.face.normal).applyQuaternion(C.object.worldQuaternion);
|
|
20008
|
+
if ((O || A) && (this._draggedOverObjectLastSetUp !== this._draggedOverObject || this._draggedOverObjectLastNormal.dot(F) < 0.999999 || this.context.time.frame % 60 === 0)) {
|
|
20009
20009
|
this._draggedOverObjectLastSetUp = this._draggedOverObject, this._draggedOverObjectLastNormal.copy(C.face.normal);
|
|
20010
|
-
const
|
|
20011
|
-
this._bounds.getCenter(
|
|
20012
|
-
const U = G(this._hitPointInLocalSpace).add(
|
|
20010
|
+
const E = G(), z = G();
|
|
20011
|
+
this._bounds.getCenter(E), this._bounds.getSize(z), E.sub(z.multiplyScalar(0.5).multiply(F)), this._hitPointInLocalSpace.copy(E), this._hitNormalInLocalSpace.copy(C.face.normal), this._bounds.getCenter(E), this._bounds.getSize(z), E.add(z.multiplyScalar(0.5).multiply(C.face.normal));
|
|
20012
|
+
const U = G(this._hitPointInLocalSpace).add(E);
|
|
20013
20013
|
this._followObject.localToWorld(U);
|
|
20014
20014
|
const K = C.point;
|
|
20015
20015
|
this._dragPlane.setFromNormalAndCoplanarPoint(F, K);
|
|
20016
|
-
} else if (!(O ||
|
|
20016
|
+
} else if (!(O || A))
|
|
20017
20017
|
return;
|
|
20018
20018
|
}
|
|
20019
20019
|
} else
|
|
@@ -20246,7 +20246,7 @@ class GR extends CustomEvent {
|
|
|
20246
20246
|
}
|
|
20247
20247
|
}
|
|
20248
20248
|
const qR = "blob";
|
|
20249
|
-
class
|
|
20249
|
+
class Eo extends L {
|
|
20250
20250
|
constructor() {
|
|
20251
20251
|
super(...arguments);
|
|
20252
20252
|
r(this, "useNetworking", !0);
|
|
@@ -20523,22 +20523,22 @@ class Ao extends L {
|
|
|
20523
20523
|
}
|
|
20524
20524
|
tl([
|
|
20525
20525
|
f()
|
|
20526
|
-
],
|
|
20526
|
+
], Eo.prototype, "useNetworking", 2);
|
|
20527
20527
|
tl([
|
|
20528
20528
|
f(I)
|
|
20529
|
-
],
|
|
20529
|
+
], Eo.prototype, "dropArea", 2);
|
|
20530
20530
|
tl([
|
|
20531
20531
|
f()
|
|
20532
|
-
],
|
|
20532
|
+
], Eo.prototype, "fitIntoVolume", 2);
|
|
20533
20533
|
tl([
|
|
20534
20534
|
f(v)
|
|
20535
|
-
],
|
|
20535
|
+
], Eo.prototype, "fitVolumeSize", 2);
|
|
20536
20536
|
tl([
|
|
20537
20537
|
f()
|
|
20538
|
-
],
|
|
20538
|
+
], Eo.prototype, "placeAtHitPosition", 2);
|
|
20539
20539
|
tl([
|
|
20540
20540
|
f(xe)
|
|
20541
|
-
],
|
|
20541
|
+
], Eo.prototype, "onDropped", 2);
|
|
20542
20542
|
function XR(s) {
|
|
20543
20543
|
if (!s.startsWith("https://polyhaven.com/"))
|
|
20544
20544
|
return s;
|
|
@@ -20751,7 +20751,7 @@ class Kv extends Yv {
|
|
|
20751
20751
|
t.isRenderTargetTexture && (e.newTexture = Lg(new ce(1, 1, 1, 0)));
|
|
20752
20752
|
}
|
|
20753
20753
|
}
|
|
20754
|
-
function
|
|
20754
|
+
function Am(s) {
|
|
20755
20755
|
const t = Wg.DontExport;
|
|
20756
20756
|
return !(s.hideFlags & t);
|
|
20757
20757
|
}
|
|
@@ -20895,7 +20895,7 @@ class Zv {
|
|
|
20895
20895
|
console.error("Could not find object for node index: " + h, c, e);
|
|
20896
20896
|
continue;
|
|
20897
20897
|
}
|
|
20898
|
-
|
|
20898
|
+
Eg(p), o.push(this.createComponents(p, u));
|
|
20899
20899
|
}
|
|
20900
20900
|
}
|
|
20901
20901
|
}
|
|
@@ -21107,7 +21107,7 @@ const ak = Symbol("stencils"), nr = class {
|
|
|
21107
21107
|
const o = i[n];
|
|
21108
21108
|
if (rk(o.layer, t)) {
|
|
21109
21109
|
rp && console.log(o), setTimeout(() => {
|
|
21110
|
-
ui() &&
|
|
21110
|
+
ui() && Ag(t.gameObject) && (ve("Stencil not supported on instanced objects"), console.warn("Stencil not supported on instanced objects", t));
|
|
21111
21111
|
}, 500);
|
|
21112
21112
|
for (let a = 0; a < t.sharedMaterials.length; a++) {
|
|
21113
21113
|
let l = t.sharedMaterials[a];
|
|
@@ -21181,7 +21181,7 @@ function lk(s) {
|
|
|
21181
21181
|
}
|
|
21182
21182
|
const ck = "NEEDLE_render_objects";
|
|
21183
21183
|
var Jv = /* @__PURE__ */ ((s) => (s[s.INT = 5124] = "INT", s[s.FLOAT = 5126] = "FLOAT", s[s.FLOAT_VEC2 = 35664] = "FLOAT_VEC2", s[s.FLOAT_VEC3 = 35665] = "FLOAT_VEC3", s[s.FLOAT_VEC4 = 35666] = "FLOAT_VEC4", s[s.INT_VEC2 = 35667] = "INT_VEC2", s[s.INT_VEC3 = 35668] = "INT_VEC3", s[s.INT_VEC4 = 35669] = "INT_VEC4", s[s.BOOL = 35670] = "BOOL", s[s.BOOL_VEC2 = 35671] = "BOOL_VEC2", s[s.BOOL_VEC3 = 35672] = "BOOL_VEC3", s[s.BOOL_VEC4 = 35673] = "BOOL_VEC4", s[s.FLOAT_MAT2 = 35674] = "FLOAT_MAT2", s[s.FLOAT_MAT3 = 35675] = "FLOAT_MAT3", s[s.FLOAT_MAT4 = 35676] = "FLOAT_MAT4", s[s.SAMPLER_2D = 35678] = "SAMPLER_2D", s[s.SAMPLER_3D = 35680] = "SAMPLER_3D", s[s.SAMPLER_CUBE = 35681] = "SAMPLER_CUBE", s[s.UNKNOWN = 0] = "UNKNOWN", s))(Jv || {});
|
|
21184
|
-
const
|
|
21184
|
+
const An = x("debugcustomshader"), Gr = "NEEDLE_techniques_webgl";
|
|
21185
21185
|
class hk {
|
|
21186
21186
|
constructor() {
|
|
21187
21187
|
r(this, "objectToWorldMatrix", new se());
|
|
@@ -21230,7 +21230,7 @@ const Be = class extends a0 {
|
|
|
21230
21230
|
r(this, "_viewProjectionName", "hlslcc_mtx4x4unity_MatrixVP");
|
|
21231
21231
|
r(this, "_viewMatrixName", "hlslcc_mtx4x4unity_MatrixV");
|
|
21232
21232
|
r(this, "_rendererData", new hk());
|
|
21233
|
-
this.identifier = e,
|
|
21233
|
+
this.identifier = e, An && console.log(this), this.type = "NEEDLE_CUSTOM_SHADER", this.uniforms[this._objToWorldName] || (this.uniforms[this._objToWorldName] = { value: [] }), this.uniforms[this._worldToObjectName] || (this.uniforms[this._worldToObjectName] = { value: [] }), this.uniforms[this._viewProjectionName] || (this.uniforms[this._viewProjectionName] = { value: [] }), this.uniforms[this._sphericalHarmonicsName], (this.depthTextureUniform || this.opaqueTextureUniform) && ee.Current.pre_render_callbacks.push(this.onBeforeRenderSceneCallback);
|
|
21234
21234
|
}
|
|
21235
21235
|
clone() {
|
|
21236
21236
|
const e = super.clone();
|
|
@@ -21322,24 +21322,24 @@ class dk {
|
|
|
21322
21322
|
loadMaterial(t) {
|
|
21323
21323
|
const e = this.parser.json.materials[t];
|
|
21324
21324
|
if (!e)
|
|
21325
|
-
return
|
|
21325
|
+
return An && console.log(t, this.parser.json.materials), null;
|
|
21326
21326
|
if (!e.extensions || !e.extensions[Gr])
|
|
21327
|
-
return
|
|
21328
|
-
|
|
21327
|
+
return An && console.log(`Material ${t} does not use NEEDLE_techniques_webgl`), null;
|
|
21328
|
+
An && console.log(`Material ${t} uses NEEDLE_techniques_webgl`, e);
|
|
21329
21329
|
const i = e.extensions[Gr].technique;
|
|
21330
21330
|
if (i < 0)
|
|
21331
21331
|
return console.debug(`Material ${t} does not have a valid technique index`), null;
|
|
21332
21332
|
const n = this.parser.json.extensions[Gr];
|
|
21333
21333
|
if (!n)
|
|
21334
|
-
return
|
|
21335
|
-
|
|
21334
|
+
return An ? console.error("Missing shader data", this.parser.json.extensions) : console.debug("Missing custom shader data in parser.json.extensions"), null;
|
|
21335
|
+
An && console.log(n);
|
|
21336
21336
|
const o = n.techniques[i];
|
|
21337
21337
|
return o ? new Promise(async (a, l) => {
|
|
21338
21338
|
var b, w, C;
|
|
21339
21339
|
const c = await MO(n, o.program), h = c == null ? void 0 : c.fragmentShader, d = c == null ? void 0 : c.vertexShader;
|
|
21340
21340
|
if (!h || !d)
|
|
21341
21341
|
return l();
|
|
21342
|
-
|
|
21342
|
+
An && console.log("loadMaterial", e, c);
|
|
21343
21343
|
const u = {}, p = o.uniforms;
|
|
21344
21344
|
(d.includes("_Time") || h.includes("_Time")) && (u._Time = { value: new ge(0, 0, 0, 0) }), (d.includes("_SinTime") || h.includes("_SinTime")) && (u._SinTime = { value: new ge(0, 0, 0, 0) }), (d.includes("_CosTime") || h.includes("_CosTime")) && (u._CosTime = { value: new ge(0, 0, 0, 0) }), (d.includes("unity_DeltaTime") || h.includes("unity_DeltaTime")) && (u.unity_DeltaTime = { value: new ge(0, 0, 0, 0) });
|
|
21345
21345
|
for (const k in p) {
|
|
@@ -21379,15 +21379,15 @@ class dk {
|
|
|
21379
21379
|
if (e.extensions && e.extensions[Gr]) {
|
|
21380
21380
|
const k = e.extensions[Gr];
|
|
21381
21381
|
if (k.technique === i) {
|
|
21382
|
-
|
|
21382
|
+
An && console.log(e.name, "Material Properties", k);
|
|
21383
21383
|
for (const O in k.values) {
|
|
21384
21384
|
const R = k.values[O];
|
|
21385
21385
|
if (typeof R == "string") {
|
|
21386
21386
|
if (R.startsWith("/textures/")) {
|
|
21387
|
-
const
|
|
21387
|
+
const A = R.substring(10), F = Number.parseInt(A);
|
|
21388
21388
|
if (F >= 0) {
|
|
21389
|
-
const
|
|
21390
|
-
|
|
21389
|
+
const E = await this.parser.getDependency("texture", F);
|
|
21390
|
+
E instanceof Fe && (E.colorSpace = As, E.needsUpdate = !0), u[O] = { value: E };
|
|
21391
21391
|
continue;
|
|
21392
21392
|
}
|
|
21393
21393
|
}
|
|
@@ -21468,13 +21468,13 @@ class dk {
|
|
|
21468
21468
|
break;
|
|
21469
21469
|
}
|
|
21470
21470
|
}
|
|
21471
|
-
|
|
21471
|
+
An && console.log(g.uuid, u), ew(g), a(g);
|
|
21472
21472
|
}) : null;
|
|
21473
21473
|
}
|
|
21474
21474
|
}
|
|
21475
21475
|
function ew(s) {
|
|
21476
21476
|
if (s.uniforms) {
|
|
21477
|
-
|
|
21477
|
+
An && console.log("Uniforms:", s.uniforms);
|
|
21478
21478
|
for (const e in s.uniforms)
|
|
21479
21479
|
switch (t(e, e), e) {
|
|
21480
21480
|
case "_Color":
|
|
@@ -21567,7 +21567,7 @@ var gk = Object.defineProperty, yk = Object.getOwnPropertyDescriptor, sw = (s, t
|
|
|
21567
21567
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
21568
21568
|
return i && n && gk(t, e, n), n;
|
|
21569
21569
|
};
|
|
21570
|
-
const
|
|
21570
|
+
const El = x("debugreflectionprobe"), fb = x("noreflectionprobe"), _k = Symbol("reflectionProbeKey"), bk = Symbol("original material");
|
|
21571
21571
|
var cd;
|
|
21572
21572
|
const ds = (cd = class extends L {
|
|
21573
21573
|
constructor() {
|
|
@@ -21590,10 +21590,10 @@ const ds = (cd = class extends L {
|
|
|
21590
21590
|
if (a.gameObject === n)
|
|
21591
21591
|
return a;
|
|
21592
21592
|
} else if (a.isInBox(t))
|
|
21593
|
-
return
|
|
21593
|
+
return El && console.log("Found reflection probe", t.name, a.name), a;
|
|
21594
21594
|
}
|
|
21595
21595
|
}
|
|
21596
|
-
return
|
|
21596
|
+
return El && console.debug("Did not find reflection probe", t.name, i, t), null;
|
|
21597
21597
|
}
|
|
21598
21598
|
// @serializable(Texture)
|
|
21599
21599
|
set texture(t) {
|
|
@@ -21601,7 +21601,7 @@ const ds = (cd = class extends L {
|
|
|
21601
21601
|
console.error("ReflectionProbe.texture must be a Texture", t);
|
|
21602
21602
|
return;
|
|
21603
21603
|
}
|
|
21604
|
-
this._texture = t, t && (t.mapping = Ms, t.colorSpace =
|
|
21604
|
+
this._texture = t, t && (t.mapping = Ms, t.colorSpace = As, t.needsUpdate = !0);
|
|
21605
21605
|
}
|
|
21606
21606
|
get texture() {
|
|
21607
21607
|
return this._texture;
|
|
@@ -21611,7 +21611,7 @@ const ds = (cd = class extends L {
|
|
|
21611
21611
|
return (e = this._boxHelper) == null ? void 0 : e.isInBox(t);
|
|
21612
21612
|
}
|
|
21613
21613
|
awake() {
|
|
21614
|
-
this._boxHelper = this.gameObject.addComponent(wi), this._boxHelper.updateBox(!0),
|
|
21614
|
+
this._boxHelper = this.gameObject.addComponent(wi), this._boxHelper.updateBox(!0), El && this._boxHelper.showHelper(5592320, !0), this._texture && (this._texture.mapping = Ms, this._texture.colorSpace = As, this._texture.needsUpdate = !0);
|
|
21615
21615
|
}
|
|
21616
21616
|
start() {
|
|
21617
21617
|
!this._texture && B() && (console.warn(`[ReflectionProbe] Missing texture. Please assign a custom cubemap texture. To use reflection probes assign them to your renderer's "anchor" property.`), ve("ReflectionProbe configuration hint: See browser console for details"));
|
|
@@ -21636,7 +21636,7 @@ const ds = (cd = class extends L {
|
|
|
21636
21636
|
let a = e[n];
|
|
21637
21637
|
const l = o === (a == null ? void 0 : a.copy), c = !a || a.material.uuid !== o.uuid || a.copy.version !== o.version;
|
|
21638
21638
|
if (!l && c) {
|
|
21639
|
-
if (
|
|
21639
|
+
if (El) {
|
|
21640
21640
|
let u = "";
|
|
21641
21641
|
a ? a.material !== o ? u = "reference changed; cached instance?: " + l : a.copy.version !== o.version && (u = "version changed") : u = "not cached", console.warn("Cloning material", o.name, o.version, "Reason:", u, `
|
|
21642
21642
|
`, o.uuid, `
|
|
@@ -21647,7 +21647,7 @@ const ds = (cd = class extends L {
|
|
|
21647
21647
|
d.version = o.version, a ? (a.copy = d, a.material = o) : (a = {
|
|
21648
21648
|
material: o,
|
|
21649
21649
|
copy: d
|
|
21650
|
-
}, e.push(a)), d[_k] = this, d[bk] = o,
|
|
21650
|
+
}, e.push(a)), d[_k] = this, d[bk] = o, El && console.log("Set reflection", t.name, t.guid);
|
|
21651
21651
|
}
|
|
21652
21652
|
a && a.copy && (a.copy.onBeforeCompile = o.onBeforeCompile);
|
|
21653
21653
|
const h = a == null ? void 0 : a.copy;
|
|
@@ -21715,7 +21715,7 @@ const ci = x("debuginstancing"), pu = class {
|
|
|
21715
21715
|
let l = pu.getStartInstanceCount(t);
|
|
21716
21716
|
(!l || l < 0) && (l = 4);
|
|
21717
21717
|
let c = t.name;
|
|
21718
|
-
c != null && c.length || (c =
|
|
21718
|
+
c != null && c.length || (c = AS());
|
|
21719
21719
|
const h = new ow(c, o.geometry, a, l, e);
|
|
21720
21720
|
return this.objs.push(h), h.addInstance(o);
|
|
21721
21721
|
}
|
|
@@ -21738,7 +21738,7 @@ r(or, "instance", new pu()), /** This is the initial instance count when creatin
|
|
|
21738
21738
|
* @returns The initial instance count
|
|
21739
21739
|
* */
|
|
21740
21740
|
r(or, "getStartInstanceCount", (t) => 4);
|
|
21741
|
-
const
|
|
21741
|
+
const Ec = class {
|
|
21742
21742
|
constructor(t, e) {
|
|
21743
21743
|
/** The object that is being instanced */
|
|
21744
21744
|
r(this, "object");
|
|
@@ -21753,7 +21753,7 @@ const Ac = class {
|
|
|
21753
21753
|
r(this, "__geometryIndex", -1);
|
|
21754
21754
|
/** The mesh information of the object - this tries to also calculate the LOD info */
|
|
21755
21755
|
r(this, "meshInformation");
|
|
21756
|
-
this.__instanceIndex = -1, this.object = t, this.renderer = e, t[ov] = e, this.meshInformation = er(t.geometry),
|
|
21756
|
+
this.__instanceIndex = -1, this.object = t, this.renderer = e, t[ov] = e, this.meshInformation = er(t.geometry), Ec.all.push(this);
|
|
21757
21757
|
}
|
|
21758
21758
|
/** The name of the object */
|
|
21759
21759
|
get name() {
|
|
@@ -21818,12 +21818,12 @@ const Ac = class {
|
|
|
21818
21818
|
*/
|
|
21819
21819
|
remove(t) {
|
|
21820
21820
|
if (!(this.__instanceIndex < 0) && (this.renderer.remove(this, t), S.markAsInstancedRendered(this.object, !1), t)) {
|
|
21821
|
-
const e =
|
|
21822
|
-
e >= 0 &&
|
|
21821
|
+
const e = Ec.all.indexOf(this);
|
|
21822
|
+
e >= 0 && Ec.all.splice(e, 1);
|
|
21823
21823
|
}
|
|
21824
21824
|
}
|
|
21825
21825
|
};
|
|
21826
|
-
let vc =
|
|
21826
|
+
let vc = Ec;
|
|
21827
21827
|
r(vc, "all", []);
|
|
21828
21828
|
class ow {
|
|
21829
21829
|
constructor(t, e, i, n, o) {
|
|
@@ -22706,10 +22706,10 @@ const ca = class extends L {
|
|
|
22706
22706
|
...e
|
|
22707
22707
|
}, o = new Array(), a = new I();
|
|
22708
22708
|
e != null && e.pivot && a.position.sub(e.pivot), Xh && console.log("EXPORT", t), t.forEach((h) => {
|
|
22709
|
-
h &&
|
|
22709
|
+
h && Am(h) && (a.children.push(h), h.matrixAutoUpdate = !1, h.matrix.copy(h.matrixWorld), S.getComponentsInChildren(h, Ze).forEach((d) => {
|
|
22710
22710
|
S.isActiveInHierarchy(d.gameObject) && d.setInstancingEnabled(!1);
|
|
22711
22711
|
}), h.traverse((d) => {
|
|
22712
|
-
if (!
|
|
22712
|
+
if (!Am(d)) {
|
|
22713
22713
|
const u = d.parent;
|
|
22714
22714
|
d.removeFromParent(), o.push(() => {
|
|
22715
22715
|
u && u.add(d);
|
|
@@ -22971,7 +22971,7 @@ function dw(s) {
|
|
|
22971
22971
|
}
|
|
22972
22972
|
return e;
|
|
22973
22973
|
}
|
|
22974
|
-
const Tk = new v(),
|
|
22974
|
+
const Tk = new v(), Ek = new W(), Ak = new v(1, 1, 1), sr = class {
|
|
22975
22975
|
constructor(t, e, i = null, n = null, o = null, a = null, l = null, c = null) {
|
|
22976
22976
|
r(this, "uuid");
|
|
22977
22977
|
r(this, "name");
|
|
@@ -23007,7 +23007,7 @@ const Tk = new v(), Ak = new W(), Ek = new v(1, 1, 1), sr = class {
|
|
|
23007
23007
|
if (!this.transform)
|
|
23008
23008
|
return new se();
|
|
23009
23009
|
const { position: t, quaternion: e, scale: i } = this.transform, n = new se();
|
|
23010
|
-
return n.compose(t || Tk, e ||
|
|
23010
|
+
return n.compose(t || Tk, e || Ek, i || Ak), n;
|
|
23011
23011
|
}
|
|
23012
23012
|
setMatrix(t) {
|
|
23013
23013
|
if (!t || !(t instanceof se)) {
|
|
@@ -23248,14 +23248,14 @@ let Dk = class {
|
|
|
23248
23248
|
if (!(!e.exportInvisible && !k.visible) && k instanceof Os) {
|
|
23249
23249
|
const O = k.skeleton.bones, R = hw(O);
|
|
23250
23250
|
if (R) {
|
|
23251
|
-
const
|
|
23252
|
-
c.push(
|
|
23251
|
+
const A = { object: k, originalParent: k.parent, newParent: R };
|
|
23252
|
+
c.push(A), h.add(A.object.uuid), A.newParent && h.add(A.newParent.uuid), A.originalParent && h.add(A.originalParent.uuid);
|
|
23253
23253
|
}
|
|
23254
23254
|
}
|
|
23255
23255
|
});
|
|
23256
23256
|
for (const k of c) {
|
|
23257
|
-
const { object: O, originalParent: R, newParent:
|
|
23258
|
-
|
|
23257
|
+
const { object: O, originalParent: R, newParent: A } = k;
|
|
23258
|
+
A.add(O);
|
|
23259
23259
|
}
|
|
23260
23260
|
de.report("export-usdz", "Traversing hierarchy"), t && fw(t, i.document, i, this.keepObject), de.report("export-usdz", "Invoking onAfterBuildDocument"), await Rd(i, "onAfterBuildDocument");
|
|
23261
23261
|
const d = i.extensions.find((k) => k.extensionName === "Behaviour"), u = (d == null ? void 0 : d.getAllTargetUuids()) ?? /* @__PURE__ */ new Set();
|
|
@@ -23271,7 +23271,7 @@ let Dk = class {
|
|
|
23271
23271
|
this.debug && console.log("Pruning of empty nodes is disabled. This may result in a larger USDZ file.");
|
|
23272
23272
|
de.report("export-usdz", { message: "Parsing document", autoStep: 10 }), await jk(i, () => (de.report("export-usdz", "Building materials"), Gk(a, l, e.quickLookCompatible))), de.report("export-usdz", "Invoking onAfterSerialize"), await Rd(i, "onAfterSerialize");
|
|
23273
23273
|
for (const k of c) {
|
|
23274
|
-
const { object: O, originalParent: R, newParent:
|
|
23274
|
+
const { object: O, originalParent: R, newParent: A } = k;
|
|
23275
23275
|
R && R.add(O);
|
|
23276
23276
|
}
|
|
23277
23277
|
(C = (w = i.exporter) == null ? void 0 : w.beforeWritingDocument) == null || C.call(w);
|
|
@@ -23286,20 +23286,20 @@ let Dk = class {
|
|
|
23286
23286
|
}), y = Object.keys(l).length;
|
|
23287
23287
|
de.report("export-usdz-textures", { totalSteps: y * 3, currentStep: 0 });
|
|
23288
23288
|
const _ = async (k) => {
|
|
23289
|
-
const O = l[k], R = O.texture,
|
|
23289
|
+
const O = l[k], R = O.texture, A = _w.includes(R.format);
|
|
23290
23290
|
let F = {
|
|
23291
23291
|
imageData: R.image
|
|
23292
23292
|
};
|
|
23293
23293
|
de.report("export-usdz-textures", { message: "read back texture", autoStep: !0 });
|
|
23294
|
-
const
|
|
23295
|
-
(R.isCompressedTexture || R.isRenderTargetTexture ||
|
|
23294
|
+
const E = O.scale !== void 0 && O.scale.x !== 1 && O.scale.y !== 1 && O.scale.z !== 1 && O.scale.w !== 1;
|
|
23295
|
+
(R.isCompressedTexture || R.isRenderTargetTexture || E) && (F = await Bk(R, e.maxTextureSize, g, O.scale)), de.report("export-usdz-textures", { message: "convert texture to canvas", autoStep: !0 });
|
|
23296
23296
|
const z = await zk(F.imageBitmap || F.imageData, e.maxTextureSize).catch((U) => {
|
|
23297
23297
|
console.error("Error converting texture to canvas", R, U);
|
|
23298
23298
|
});
|
|
23299
23299
|
if (z) {
|
|
23300
23300
|
de.report("export-usdz-textures", { message: "convert canvas to blob", autoStep: !0 });
|
|
23301
|
-
const U = await z.convertToBlob({ type:
|
|
23302
|
-
n[`textures/${k}.${
|
|
23301
|
+
const U = await z.convertToBlob({ type: A ? "image/png" : "image/jpeg", quality: 0.95 });
|
|
23302
|
+
n[`textures/${k}.${A ? "png" : "jpg"}`] = new Uint8Array(await U.arrayBuffer());
|
|
23303
23303
|
} else
|
|
23304
23304
|
console.warn("Can`t export texture: ", R);
|
|
23305
23305
|
};
|
|
@@ -23310,10 +23310,10 @@ let Dk = class {
|
|
|
23310
23310
|
for (const k in n) {
|
|
23311
23311
|
const O = n[k], R = 34 + k.length;
|
|
23312
23312
|
b += R;
|
|
23313
|
-
const
|
|
23314
|
-
if (
|
|
23315
|
-
const F = 64 -
|
|
23316
|
-
n[k] = [O, { extra: { 12345:
|
|
23313
|
+
const A = b & 63;
|
|
23314
|
+
if (A !== 4) {
|
|
23315
|
+
const F = 64 - A, E = new Uint8Array(F);
|
|
23316
|
+
n[k] = [O, { extra: { 12345: E } }];
|
|
23317
23317
|
}
|
|
23318
23318
|
b = O.length;
|
|
23319
23319
|
}
|
|
@@ -23804,9 +23804,9 @@ function qk(s, t, e = !1) {
|
|
|
23804
23804
|
return qn(b.name) + "_" + (((w = b.source) == null ? void 0 : w.id) ?? b.id);
|
|
23805
23805
|
}
|
|
23806
23806
|
function d(b, w, C = void 0, k = void 0) {
|
|
23807
|
-
const O = h(b), R = O + (k !== void 0 && k !== 1 ? "_" + k : ""),
|
|
23808
|
-
k === void 0 && (k = 1),
|
|
23809
|
-
const
|
|
23807
|
+
const O = h(b), R = O + (k !== void 0 && k !== 1 ? "_" + k : ""), A = e && k !== void 0 && k !== 1, F = A ? new ge(1, 1, 1, k) : void 0;
|
|
23808
|
+
k === void 0 && (k = 1), A && (k = 1), F && F.w <= 0.05 && (F.w = 0.05), t[R] = { texture: b, scale: F };
|
|
23809
|
+
const E = b.channel > 0 ? "st" + b.channel : "st";
|
|
23810
23810
|
c.add(b.channel);
|
|
23811
23811
|
const z = _w.includes(b.format), U = {
|
|
23812
23812
|
1e3: "repeat",
|
|
@@ -23817,7 +23817,7 @@ function qk(s, t, e = !1) {
|
|
|
23817
23817
|
// MirroredRepeatWrapping
|
|
23818
23818
|
}, K = b.repeat.clone(), T = b.offset.clone(), j = b.rotation, H = Math.sin(j), J = Math.cos(j);
|
|
23819
23819
|
T.y = 1 - T.y - K.y, e ? (K.x === 0 && (K.x = 1e-4), K.y === 0 && (K.y = 1e-4), T.x = T.x / K.x, T.y = T.y / K.y, T.x += H / K.x, T.y += J - 1) : (T.x += H * K.x, T.y += (1 - J) * K.y);
|
|
23820
|
-
const te = K.x != 1 || K.y != 1 || T.x != 0 || T.y != 0 || j != 0, ae = `${Ht}/${i}/${"uvReader_" +
|
|
23820
|
+
const te = K.x != 1 || K.y != 1 || T.x != 0 || T.y != 0 || j != 0, ae = `${Ht}/${i}/${"uvReader_" + E}.outputs:result>`, ue = `${Ht}/${i}/Transform2d_${w}.outputs:result>`, De = w !== "normal" && C && (C.r !== 1 || C.g !== 1 || C.b !== 1 || k !== 1) || !1, St = w === "normal", ai = s instanceof Tt && s.normalScale ? s.normalScale.x * 2 : 2, Wt = ai.toFixed(Le), Wr = (-1 * (ai / 2)).toFixed(Le), qs = (1 - ai).toFixed(Le);
|
|
23821
23821
|
return `
|
|
23822
23822
|
${te ? `def Shader "Transform2d_${w}" (
|
|
23823
23823
|
sdrMetadata = {
|
|
@@ -23994,8 +23994,8 @@ const Ly = class {
|
|
|
23994
23994
|
i.appendLine(), this.action.writeTo(e, i), i.closeBlock();
|
|
23995
23995
|
}
|
|
23996
23996
|
};
|
|
23997
|
-
let
|
|
23998
|
-
r(
|
|
23997
|
+
let Et = Ly;
|
|
23998
|
+
r(Et, "global_id", 0);
|
|
23999
23999
|
const Yr = /* @__PURE__ */ new Set();
|
|
24000
24000
|
function Bm(s, t) {
|
|
24001
24001
|
var i, n;
|
|
@@ -24380,7 +24380,7 @@ class ar {
|
|
|
24380
24380
|
return t;
|
|
24381
24381
|
}
|
|
24382
24382
|
}
|
|
24383
|
-
const
|
|
24383
|
+
const Ac = class {
|
|
24384
24384
|
constructor(t, e, i) {
|
|
24385
24385
|
r(this, "clip");
|
|
24386
24386
|
r(this, "pos");
|
|
@@ -24390,7 +24390,7 @@ const Ec = class {
|
|
|
24390
24390
|
r(this, "target");
|
|
24391
24391
|
r(this, "duration", 0);
|
|
24392
24392
|
r(this, "useRootMotion", !1);
|
|
24393
|
-
if (this.root = t, this.target = e, this.clip = i, i ? this.duration = i.duration : this.duration =
|
|
24393
|
+
if (this.root = t, this.target = e, this.clip = i, i ? this.duration = i.duration : this.duration = Ac.restPoseClipDuration, i && i.tracks) {
|
|
24394
24394
|
const o = Math.max(...i.tracks.map((a) => a.times[a.times.length - 1]));
|
|
24395
24395
|
o !== this.duration && (console.warn("USDZExporter: Animation clip duration does not match the maximum time value in the tracks.", i, o, this.duration), this.duration = o);
|
|
24396
24396
|
}
|
|
@@ -24444,7 +24444,7 @@ const Ec = class {
|
|
|
24444
24444
|
const p = 0;
|
|
24445
24445
|
for (let _ = 0 - p; _ < t.length + p; _++) {
|
|
24446
24446
|
let b = 0, w = 0;
|
|
24447
|
-
if (_ < 0 ? (b = t[0], w = b -
|
|
24447
|
+
if (_ < 0 ? (b = t[0], w = b - Ac.animationDurationPadding / 2 + 1 / 60) : _ >= t.length ? (b = t[t.length - 1], w = b + Ac.animationDurationPadding / 2 - 1 / 60) : (b = t[_], w = b), h) {
|
|
24448
24448
|
const C = h.evaluate(b);
|
|
24449
24449
|
o.set(C[0], C[1], C[2]);
|
|
24450
24450
|
}
|
|
@@ -24464,7 +24464,7 @@ const Ec = class {
|
|
|
24464
24464
|
}
|
|
24465
24465
|
}
|
|
24466
24466
|
};
|
|
24467
|
-
let $e =
|
|
24467
|
+
let $e = Ac;
|
|
24468
24468
|
/** This value can theoretically be anything – a value of 1 is good to clearly see animation gaps.
|
|
24469
24469
|
* For production, a value of 1/60 is enough, since the files can then still properly play back at 60fps.
|
|
24470
24470
|
*/
|
|
@@ -24816,14 +24816,14 @@ class Yk {
|
|
|
24816
24816
|
_.push({ bone: T, inverse: T.matrixWorld.clone().invert() });
|
|
24817
24817
|
const k = _[0].bone.parent;
|
|
24818
24818
|
k || console.error("No bone parent found for skinned mesh during USDZ export", n.skinnedMesh), _.sort((T, j) => Ta(T.bone, k) > Ta(j.bone, k) ? 1 : -1);
|
|
24819
|
-
const O = e.quickLookCompatible, R = [],
|
|
24819
|
+
const O = e.quickLookCompatible, R = [], A = [], F = [], E = [];
|
|
24820
24820
|
for (const { bone: T } of _) {
|
|
24821
24821
|
if (O) {
|
|
24822
24822
|
const j = T.scale;
|
|
24823
24823
|
j.x == 0 && (j.x = 1e-5), j.y == 0 && (j.y = 1e-5), j.z == 0 && (j.z = 1e-5), R.push(new se().compose(T.position, T.quaternion, T.scale));
|
|
24824
24824
|
} else
|
|
24825
24825
|
R.push(T.matrix.clone());
|
|
24826
|
-
|
|
24826
|
+
A.push(T.position), F.push(T.quaternion), E.push(T.scale);
|
|
24827
24827
|
}
|
|
24828
24828
|
const z = _.map((T) => '"' + Ta(T.bone, k) + '"').join(", "), U = _.map((T) => bb(T.inverse.clone().invert())).join(", ");
|
|
24829
24829
|
t.beginBlock('def Skeleton "Rig"'), t.appendLine(`uniform matrix4d[] bindTransforms = [${U}]`), t.appendLine(`uniform token[] joints = [${z}]`), t.appendLine('uniform token purpose = "guide"'), t.appendLine(`uniform matrix4d[] restTransforms = [${R.map((T) => bb(T)).join(", ")}]`);
|
|
@@ -24841,14 +24841,14 @@ class Yk {
|
|
|
24841
24841
|
t.appendLine(j);
|
|
24842
24842
|
t.closeBlock();
|
|
24843
24843
|
}
|
|
24844
|
-
if (t.appendLine(`half3[] scales = [${u(
|
|
24844
|
+
if (t.appendLine(`half3[] scales = [${u(E)}]`), K && K.scale) {
|
|
24845
24845
|
t.beginBlock("half3[] scales.timeSamples = {", "");
|
|
24846
24846
|
const T = l(K.scale);
|
|
24847
24847
|
for (const j of T)
|
|
24848
24848
|
t.appendLine(j);
|
|
24849
24849
|
t.closeBlock();
|
|
24850
24850
|
}
|
|
24851
|
-
if (t.appendLine(`float3[] translations = [${u(
|
|
24851
|
+
if (t.appendLine(`float3[] translations = [${u(A)}]`), K && K.position) {
|
|
24852
24852
|
t.beginBlock("float3[] translations.timeSamples = {", "");
|
|
24853
24853
|
const T = l(K.position);
|
|
24854
24854
|
for (const j of T)
|
|
@@ -24905,23 +24905,23 @@ class Yk {
|
|
|
24905
24905
|
}
|
|
24906
24906
|
const w = !y.clip, C = u === "position" && (y.pos || w), k = u === "rotation" && (y.rot || w), O = u === "scale" && (y.scale || w);
|
|
24907
24907
|
if (C || k || O) {
|
|
24908
|
-
const R = ((m = y.clip) == null ? void 0 : m.name) ?? "rest",
|
|
24909
|
-
jn && console.log("Write .timeSamples:", R, _,
|
|
24908
|
+
const R = ((m = y.clip) == null ? void 0 : m.name) ?? "rest", A = y.getDuration();
|
|
24909
|
+
jn && console.log("Write .timeSamples:", R, _, A, d), t.appendLine("# " + R + ": start=" + c.format(_ * $e.frameRate) + ", length=" + c.format(A * $e.frameRate) + ", frames=" + y.getFrames());
|
|
24910
24910
|
}
|
|
24911
24911
|
if (C)
|
|
24912
|
-
for (const { time: R, translation:
|
|
24913
|
-
const
|
|
24914
|
-
t.appendLine(
|
|
24912
|
+
for (const { time: R, translation: A } of y.getValues(b, !0, !1, !1)) {
|
|
24913
|
+
const E = `${c.format((_ + R) * $e.frameRate)}: (${he(A.x)}, ${he(A.y)}, ${he(A.z)}),`;
|
|
24914
|
+
t.appendLine(E);
|
|
24915
24915
|
}
|
|
24916
24916
|
if (k)
|
|
24917
|
-
for (const { time: R, rotation:
|
|
24918
|
-
const
|
|
24919
|
-
t.appendLine(
|
|
24917
|
+
for (const { time: R, rotation: A } of y.getValues(b, !1, !0, !1)) {
|
|
24918
|
+
const E = `${c.format((_ + R) * $e.frameRate)}: (${he(A.w)}, ${he(A.x)}, ${he(A.y)}, ${he(A.z)}),`;
|
|
24919
|
+
t.appendLine(E);
|
|
24920
24920
|
}
|
|
24921
24921
|
if (O)
|
|
24922
|
-
for (const { time: R, scale:
|
|
24923
|
-
const
|
|
24924
|
-
t.appendLine(
|
|
24922
|
+
for (const { time: R, scale: A } of y.getValues(b, !1, !1, !0)) {
|
|
24923
|
+
const E = `${c.format((_ + R) * $e.frameRate)}: (${he(A.x)}, ${he(A.y)}, ${he(A.z)}),`;
|
|
24924
|
+
t.appendLine(E);
|
|
24925
24925
|
}
|
|
24926
24926
|
}
|
|
24927
24927
|
t.closeBlock();
|
|
@@ -25026,7 +25026,7 @@ class nl extends L {
|
|
|
25026
25026
|
beforeCreateDocument(e) {
|
|
25027
25027
|
var i;
|
|
25028
25028
|
if (this.target && this.object && this.gameObject) {
|
|
25029
|
-
const n = new
|
|
25029
|
+
const n = new Et(
|
|
25030
25030
|
"Move to " + ((i = this.target) == null ? void 0 : i.name),
|
|
25031
25031
|
zt.tapTrigger(this.gameObject),
|
|
25032
25032
|
ye.transformAction(this.object, this.target, this.duration, this.relativeMotion ? "relative" : "absolute")
|
|
@@ -25117,12 +25117,12 @@ const Xt = (ea = class extends L {
|
|
|
25117
25117
|
createAndAttachBehaviors(t, e, i) {
|
|
25118
25118
|
const n = [], o = Math.max(0, this.fadeDuration);
|
|
25119
25119
|
n.push(ye.fadeAction([...this.targetModels, ...i], o, !1)), n.push(ye.fadeAction(e, o, !0)), t.addBehavior(
|
|
25120
|
-
new
|
|
25120
|
+
new Et(
|
|
25121
25121
|
"Select_" + this.selfModel.name,
|
|
25122
25122
|
zt.tapTrigger(this.selfModel),
|
|
25123
25123
|
ye.parallel(...n)
|
|
25124
25124
|
)
|
|
25125
|
-
), Xt._parallelStartHiddenActions.push(...e), Xt._startHiddenBehaviour || (Xt._startHiddenBehaviour = new
|
|
25125
|
+
), Xt._parallelStartHiddenActions.push(...e), Xt._startHiddenBehaviour || (Xt._startHiddenBehaviour = new Et(
|
|
25126
25126
|
"StartHidden_" + this.selfModel.name,
|
|
25127
25127
|
zt.sceneStartTrigger(),
|
|
25128
25128
|
ye.fadeAction(Xt._parallelStartHiddenActions, o, !1)
|
|
@@ -25204,13 +25204,13 @@ const Ue = (ta = class extends L {
|
|
|
25204
25204
|
if (this.toggleModel) {
|
|
25205
25205
|
if (this.toggleOnClick) {
|
|
25206
25206
|
const l = [];
|
|
25207
|
-
l.push(ye.fadeAction(n, 0, !1)), l.push(ye.fadeAction(this.toggleModel, 0, !0)), l.push(ye.fadeAction(this.targetModel, 0, o)), t.addBehavior(new
|
|
25207
|
+
l.push(ye.fadeAction(n, 0, !1)), l.push(ye.fadeAction(this.toggleModel, 0, !0)), l.push(ye.fadeAction(this.targetModel, 0, o)), t.addBehavior(new Et(
|
|
25208
25208
|
"Toggle_" + n.name + "_ToggleTo" + (o ? "On" : "Off"),
|
|
25209
25209
|
zt.tapTrigger(n),
|
|
25210
25210
|
ye.parallel(...l)
|
|
25211
25211
|
));
|
|
25212
25212
|
const c = [];
|
|
25213
|
-
c.push(ye.fadeAction(this.toggleModel, 0, !1)), c.push(ye.fadeAction(n, 0, !0)), c.push(ye.fadeAction(this.targetModel, 0, !o)), t.addBehavior(new
|
|
25213
|
+
c.push(ye.fadeAction(this.toggleModel, 0, !1)), c.push(ye.fadeAction(n, 0, !0)), c.push(ye.fadeAction(this.targetModel, 0, !o)), t.addBehavior(new Et(
|
|
25214
25214
|
"Toggle_" + n.name + "_ToggleTo" + (o ? "Off" : "On"),
|
|
25215
25215
|
zt.tapTrigger(this.toggleModel),
|
|
25216
25216
|
ye.parallel(...c)
|
|
@@ -25218,7 +25218,7 @@ const Ue = (ta = class extends L {
|
|
|
25218
25218
|
}
|
|
25219
25219
|
} else {
|
|
25220
25220
|
const l = [];
|
|
25221
|
-
this.hideSelf && l.push(ye.fadeAction(n, 0, !1)), l.push(ye.fadeAction(this.targetModel, 0, o)), t.addBehavior(new
|
|
25221
|
+
this.hideSelf && l.push(ye.fadeAction(n, 0, !1)), l.push(ye.fadeAction(this.targetModel, 0, o)), t.addBehavior(new Et(
|
|
25222
25222
|
"Toggle_" + n.name + "_ToggleTo" + (o ? "On" : "Off"),
|
|
25223
25223
|
zt.tapTrigger(n),
|
|
25224
25224
|
l.length > 1 ? ye.parallel(...l) : l[0]
|
|
@@ -25254,7 +25254,7 @@ const gs = class extends L {
|
|
|
25254
25254
|
const n = Array.isArray(e) ? e : [e];
|
|
25255
25255
|
for (const o of n)
|
|
25256
25256
|
gs._fadeObjects.includes(o) || (console.log("adding hide on start", o), gs._fadeObjects.push(o));
|
|
25257
|
-
gs._fadeBehaviour === void 0 && (gs._fadeBehaviour = new
|
|
25257
|
+
gs._fadeBehaviour === void 0 && (gs._fadeBehaviour = new Et(
|
|
25258
25258
|
"HideOnStart",
|
|
25259
25259
|
zt.sceneStartTrigger(),
|
|
25260
25260
|
//@ts-ignore
|
|
@@ -25284,7 +25284,7 @@ class hh extends L {
|
|
|
25284
25284
|
}
|
|
25285
25285
|
createBehaviours(e, i, n) {
|
|
25286
25286
|
if (this.target && i.uuid === this.gameObject.uuid) {
|
|
25287
|
-
const o = new
|
|
25287
|
+
const o = new Et(
|
|
25288
25288
|
"emphasize " + this.name,
|
|
25289
25289
|
zt.tapTrigger(this.gameObject),
|
|
25290
25290
|
ye.emphasize(this.target, this.duration, this.motionType, void 0, "basic")
|
|
@@ -25344,7 +25344,7 @@ class Sr extends L {
|
|
|
25344
25344
|
const p = this.name ? "_" + this.name : "";
|
|
25345
25345
|
if (h && this.trigger === "tap") {
|
|
25346
25346
|
this.toggleOnClick && (u.multiplePerformOperation = "stop");
|
|
25347
|
-
const m = new
|
|
25347
|
+
const m = new Et(
|
|
25348
25348
|
"playAudio" + p,
|
|
25349
25349
|
zt.tapTrigger(i),
|
|
25350
25350
|
u
|
|
@@ -25355,7 +25355,7 @@ class Sr extends L {
|
|
|
25355
25355
|
if (h && this.trigger === "tap")
|
|
25356
25356
|
console.warn("USDZExport: Audio sources that are played on tap can't also auto-play at scene start due to a QuickLook bug.");
|
|
25357
25357
|
else {
|
|
25358
|
-
const m = new
|
|
25358
|
+
const m = new Et(
|
|
25359
25359
|
"playAudioOnStart" + p,
|
|
25360
25360
|
zt.sceneStartTrigger(),
|
|
25361
25361
|
u
|
|
@@ -25375,7 +25375,7 @@ Ve([
|
|
|
25375
25375
|
f()
|
|
25376
25376
|
], Sr.prototype, "toggleOnClick", 2);
|
|
25377
25377
|
var hd;
|
|
25378
|
-
const
|
|
25378
|
+
const En = (hd = class extends L {
|
|
25379
25379
|
constructor() {
|
|
25380
25380
|
super(...arguments);
|
|
25381
25381
|
r(this, "animator");
|
|
@@ -25408,11 +25408,11 @@ const An = (hd = class extends L {
|
|
|
25408
25408
|
}
|
|
25409
25409
|
// Cleanup. TODO This is not the best way as it's called multiple times (once for each component).
|
|
25410
25410
|
afterSerialize() {
|
|
25411
|
-
if (
|
|
25411
|
+
if (En.rootsWithExclusivePlayback.size > 1) {
|
|
25412
25412
|
const t = 'Multiple root objects targeted by more than one animation. To work around QuickLook bug FB13410767, animations will be set as "exclusive" and activating them will stop other animations being marked as exclusive.';
|
|
25413
|
-
B() && ve(t), console.warn(t, ...
|
|
25413
|
+
B() && ve(t), console.warn(t, ...En.rootsWithExclusivePlayback);
|
|
25414
25414
|
}
|
|
25415
|
-
|
|
25415
|
+
En.animationActions = [], En.rootsWithExclusivePlayback = /* @__PURE__ */ new Set();
|
|
25416
25416
|
}
|
|
25417
25417
|
afterCreateDocument(t, e) {
|
|
25418
25418
|
if (this.animationSequence === void 0 && this.animationLoopAfterSequence === void 0 || !this.stateAnimationModel || !this.target)
|
|
@@ -25421,18 +25421,18 @@ const An = (hd = class extends L {
|
|
|
25421
25421
|
if (!n)
|
|
25422
25422
|
return;
|
|
25423
25423
|
const o = n.getClipCount(this.target) > 1;
|
|
25424
|
-
o && (B() && console.warn("Setting exclusive playback for " + this.target.name + "@" + this.stateName + " because it has " + n.getClipCount(this.target) + " animations. This works around QuickLook bug FB13410767."),
|
|
25424
|
+
o && (B() && console.warn("Setting exclusive playback for " + this.target.name + "@" + this.stateName + " because it has " + n.getClipCount(this.target) + " animations. This works around QuickLook bug FB13410767."), En.rootsWithExclusivePlayback.add(this.target));
|
|
25425
25425
|
const a = this.name ? this.name : "";
|
|
25426
25426
|
i.traverse((l) => {
|
|
25427
25427
|
var c, h;
|
|
25428
25428
|
if (l.uuid === ((c = this.target) == null ? void 0 : c.uuid)) {
|
|
25429
|
-
const d =
|
|
25429
|
+
const d = En.getActionForSequences(
|
|
25430
25430
|
i,
|
|
25431
25431
|
l,
|
|
25432
25432
|
this.animationSequence,
|
|
25433
25433
|
this.animationLoopAfterSequence,
|
|
25434
25434
|
this.randomOffsetNormalized
|
|
25435
|
-
), u = new
|
|
25435
|
+
), u = new Et(
|
|
25436
25436
|
this.trigger + "_" + a + "_toPlayAnimation_" + this.stateName + "_on_" + ((h = this.target) == null ? void 0 : h.name),
|
|
25437
25437
|
this.trigger == "tap" ? zt.tapTrigger(this.selfModel) : zt.sceneStartTrigger(),
|
|
25438
25438
|
d
|
|
@@ -25443,8 +25443,8 @@ const An = (hd = class extends L {
|
|
|
25443
25443
|
}
|
|
25444
25444
|
static getActionForSequences(t, e, i, n, o) {
|
|
25445
25445
|
const a = (c, h) => {
|
|
25446
|
-
let d =
|
|
25447
|
-
return d || (d = ye.startAnimationAction(c, h),
|
|
25446
|
+
let d = En.animationActions.find((u) => u.affectedObjects == c && u.start == h.start && u.duration == h.duration && u.animationSpeed == h.speed);
|
|
25447
|
+
return d || (d = ye.startAnimationAction(c, h), En.animationActions.push(d)), d;
|
|
25448
25448
|
}, l = ye.sequence();
|
|
25449
25449
|
if (i && i.length > 0)
|
|
25450
25450
|
for (const c of i)
|
|
@@ -25470,15 +25470,15 @@ const An = (hd = class extends L {
|
|
|
25470
25470
|
if (o) {
|
|
25471
25471
|
const R = t.registerAnimation(e, o.clip);
|
|
25472
25472
|
R && (o.loop ? l.push(R) : a.push(R));
|
|
25473
|
-
let
|
|
25473
|
+
let A = 0;
|
|
25474
25474
|
if (o.minMaxOffsetNormalized) {
|
|
25475
|
-
const F = o.minMaxOffsetNormalized.x,
|
|
25476
|
-
|
|
25475
|
+
const F = o.minMaxOffsetNormalized.x, E = o.minMaxOffsetNormalized.y;
|
|
25476
|
+
A = (((g = o.clip) == null ? void 0 : g.duration) || 1) * (F + Math.random() * (E - F));
|
|
25477
25477
|
}
|
|
25478
25478
|
return {
|
|
25479
25479
|
animationSequence: a,
|
|
25480
25480
|
animationLoopAfterSequence: l,
|
|
25481
|
-
randomTimeOffset:
|
|
25481
|
+
randomTimeOffset: A
|
|
25482
25482
|
};
|
|
25483
25483
|
}
|
|
25484
25484
|
const c = n == null ? void 0 : n.runtimeAnimatorController;
|
|
@@ -25486,46 +25486,46 @@ const An = (hd = class extends L {
|
|
|
25486
25486
|
if (c && h) {
|
|
25487
25487
|
const R = new Array();
|
|
25488
25488
|
R.push(h);
|
|
25489
|
-
let
|
|
25489
|
+
let A = !1;
|
|
25490
25490
|
for (; R.length < 100; ) {
|
|
25491
25491
|
if (!h || h === null || !h.transitions || h.transitions.length === 0) {
|
|
25492
|
-
(y = h.motion) != null && y.isLooping && (
|
|
25492
|
+
(y = h.motion) != null && y.isLooping && (A = !0);
|
|
25493
25493
|
break;
|
|
25494
25494
|
}
|
|
25495
|
-
const F = h.transitions.find((z) => z.conditions.length === 0),
|
|
25496
|
-
if (
|
|
25497
|
-
h =
|
|
25495
|
+
const F = h.transitions.find((z) => z.conditions.length === 0), E = F ? c.getState(F.destinationState, 0) : null;
|
|
25496
|
+
if (E && R.includes(E)) {
|
|
25497
|
+
h = E, A = !0;
|
|
25498
25498
|
break;
|
|
25499
25499
|
} else if (F) {
|
|
25500
|
-
if (h =
|
|
25500
|
+
if (h = E, !h)
|
|
25501
25501
|
break;
|
|
25502
25502
|
R.push(h);
|
|
25503
25503
|
} else {
|
|
25504
|
-
|
|
25504
|
+
A = ((_ = h.motion) == null ? void 0 : _.isLooping) ?? !1;
|
|
25505
25505
|
break;
|
|
25506
25506
|
}
|
|
25507
25507
|
}
|
|
25508
|
-
if (
|
|
25508
|
+
if (A && h) {
|
|
25509
25509
|
const F = R.indexOf(h);
|
|
25510
25510
|
d = R.slice(0, F), u = R.slice(F), Cb && console.log("found loop from " + i, "states until loop", d, "states looping", u);
|
|
25511
25511
|
} else
|
|
25512
25512
|
d = R, u = [], Cb && console.log("found no loop from " + i, "states", d);
|
|
25513
25513
|
if (!u.length) {
|
|
25514
|
-
const F = d[d.length - 1],
|
|
25515
|
-
if (
|
|
25514
|
+
const F = d[d.length - 1], E = (b = F.motion) == null ? void 0 : b.clip;
|
|
25515
|
+
if (E) {
|
|
25516
25516
|
let z;
|
|
25517
|
-
if (t.holdClipMap.has(
|
|
25518
|
-
z = t.holdClipMap.get(
|
|
25517
|
+
if (t.holdClipMap.has(E))
|
|
25518
|
+
z = t.holdClipMap.get(E);
|
|
25519
25519
|
else {
|
|
25520
25520
|
const U = F.name + "_hold";
|
|
25521
|
-
z =
|
|
25522
|
-
const K =
|
|
25523
|
-
z.tracks =
|
|
25521
|
+
z = E.clone(), z.duration = 1, z.name = U;
|
|
25522
|
+
const K = E.duration;
|
|
25523
|
+
z.tracks = E.tracks.map((T) => {
|
|
25524
25524
|
const j = T.clone();
|
|
25525
25525
|
j.times = new Float32Array([0, K]);
|
|
25526
25526
|
const H = T.values.length, J = T.getValueSize(), te = T.values.slice(H - J, H);
|
|
25527
25527
|
return j.values = new Float32Array(2 * J), j.values.set(te, 0), j.values.set(te, J), j;
|
|
25528
|
-
}), z.name = U, t.holdClipMap.set(
|
|
25528
|
+
}), z.name = U, t.holdClipMap.set(E, z);
|
|
25529
25529
|
}
|
|
25530
25530
|
if (z) {
|
|
25531
25531
|
const U = {
|
|
@@ -25548,20 +25548,20 @@ const An = (hd = class extends L {
|
|
|
25548
25548
|
return;
|
|
25549
25549
|
}
|
|
25550
25550
|
if (d = d.filter((R) => {
|
|
25551
|
-
var
|
|
25552
|
-
return ((
|
|
25551
|
+
var A, F, E;
|
|
25552
|
+
return ((A = R.motion) == null ? void 0 : A.clip) && ((E = (F = R.motion) == null ? void 0 : F.clip.tracks) == null ? void 0 : E.length) > 0;
|
|
25553
25553
|
}), u = u.filter((R) => {
|
|
25554
|
-
var
|
|
25555
|
-
return ((
|
|
25554
|
+
var A, F, E;
|
|
25555
|
+
return ((A = R.motion) == null ? void 0 : A.clip) && ((E = (F = R.motion) == null ? void 0 : F.clip.tracks) == null ? void 0 : E.length) > 0;
|
|
25556
25556
|
}), d.length === 0 && u.length === 0) {
|
|
25557
25557
|
console.warn("No clips found for state " + i + " on " + (n == null ? void 0 : n.name) + ", can't export animation data");
|
|
25558
25558
|
return;
|
|
25559
25559
|
}
|
|
25560
|
-
const p = (R,
|
|
25560
|
+
const p = (R, A) => {
|
|
25561
25561
|
if (!e)
|
|
25562
25562
|
return;
|
|
25563
25563
|
const F = t.registerAnimation(e, R.motion.clip ?? null);
|
|
25564
|
-
F ? (F.speed = R.speed,
|
|
25564
|
+
F ? (F.speed = R.speed, A.push(F)) : console.warn("Couldn't register animation for state " + R.name + " on " + (n == null ? void 0 : n.name));
|
|
25565
25565
|
};
|
|
25566
25566
|
if (d.length > 0) {
|
|
25567
25567
|
a = new Array();
|
|
@@ -25575,8 +25575,8 @@ const An = (hd = class extends L {
|
|
|
25575
25575
|
}
|
|
25576
25576
|
let m = 0;
|
|
25577
25577
|
if (n && c && n.minMaxOffsetNormalized) {
|
|
25578
|
-
const R = n.minMaxOffsetNormalized.x,
|
|
25579
|
-
m = (((O = F == null ? void 0 : F.motion.clip) == null ? void 0 : O.duration) || 1) * (R + Math.random() * (
|
|
25578
|
+
const R = n.minMaxOffsetNormalized.x, A = n.minMaxOffsetNormalized.y, F = d.length ? d[0] : u.length ? u[0] : null;
|
|
25579
|
+
m = (((O = F == null ? void 0 : F.motion.clip) == null ? void 0 : O.duration) || 1) * (R + Math.random() * (A - R));
|
|
25580
25580
|
}
|
|
25581
25581
|
return {
|
|
25582
25582
|
animationSequence: a,
|
|
@@ -25587,11 +25587,11 @@ const An = (hd = class extends L {
|
|
|
25587
25587
|
createAnimation(t, e, i) {
|
|
25588
25588
|
if (!this.target || !this.animator && !this.animation)
|
|
25589
25589
|
return;
|
|
25590
|
-
const n =
|
|
25590
|
+
const n = En.getAndRegisterAnimationSequences(t, this.target, this.stateName);
|
|
25591
25591
|
n && (this.animationSequence = n.animationSequence, this.animationLoopAfterSequence = n.animationLoopAfterSequence, this.randomOffsetNormalized = n.randomTimeOffset, this.stateAnimationModel = e);
|
|
25592
25592
|
}
|
|
25593
25593
|
}, r(hd, "animationActions", []), r(hd, "rootsWithExclusivePlayback", /* @__PURE__ */ new Set()), hd);
|
|
25594
|
-
let qa =
|
|
25594
|
+
let qa = En;
|
|
25595
25595
|
Ve([
|
|
25596
25596
|
f(Ut)
|
|
25597
25597
|
], qa.prototype, "animator", 2);
|
|
@@ -25808,7 +25808,7 @@ class n2 {
|
|
|
25808
25808
|
function ww(s) {
|
|
25809
25809
|
s && (s.colorSpace != Is && (s.colorSpace = Is, s.needsUpdate = !0), s.minFilter == jd && s.magFilter == jd && (s.anisotropy = 1, s.needsUpdate = !0));
|
|
25810
25810
|
}
|
|
25811
|
-
let
|
|
25811
|
+
let Ao = class {
|
|
25812
25812
|
constructor(t) {
|
|
25813
25813
|
r(this, "guid");
|
|
25814
25814
|
r(this, "texture");
|
|
@@ -25847,19 +25847,19 @@ let Eo = class {
|
|
|
25847
25847
|
};
|
|
25848
25848
|
bt([
|
|
25849
25849
|
f()
|
|
25850
|
-
],
|
|
25850
|
+
], Ao.prototype, "guid", 2);
|
|
25851
25851
|
bt([
|
|
25852
25852
|
f(Fe)
|
|
25853
|
-
],
|
|
25853
|
+
], Ao.prototype, "texture", 2);
|
|
25854
25854
|
bt([
|
|
25855
25855
|
Ya()
|
|
25856
|
-
],
|
|
25856
|
+
], Ao.prototype, "triangles", 2);
|
|
25857
25857
|
bt([
|
|
25858
25858
|
Ya()
|
|
25859
|
-
],
|
|
25859
|
+
], Ao.prototype, "uv", 2);
|
|
25860
25860
|
bt([
|
|
25861
25861
|
Ya()
|
|
25862
|
-
],
|
|
25862
|
+
], Ao.prototype, "vertices", 2);
|
|
25863
25863
|
const fp = Symbol("spriteOwner");
|
|
25864
25864
|
class Hc {
|
|
25865
25865
|
constructor() {
|
|
@@ -25868,7 +25868,7 @@ class Hc {
|
|
|
25868
25868
|
}
|
|
25869
25869
|
}
|
|
25870
25870
|
bt([
|
|
25871
|
-
f(
|
|
25871
|
+
f(Ao)
|
|
25872
25872
|
], Hc.prototype, "sprites", 2);
|
|
25873
25873
|
const zm = class {
|
|
25874
25874
|
// we don't assign anything here because it's used by the serialization system.
|
|
@@ -25978,7 +25978,7 @@ class Ii extends L {
|
|
|
25978
25978
|
const i = Math.floor(e);
|
|
25979
25979
|
this.spriteIndex = i;
|
|
25980
25980
|
} else
|
|
25981
|
-
e instanceof
|
|
25981
|
+
e instanceof Ao ? (this._spriteSheet || (this._spriteSheet = vr.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e), this.updateSprite()) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
|
|
25982
25982
|
}
|
|
25983
25983
|
/**
|
|
25984
25984
|
* Set the index of the sprite to be rendered in the currently assigned sprite sheet
|
|
@@ -26893,7 +26893,7 @@ var m2 = Object.defineProperty, g2 = Object.getOwnPropertyDescriptor, ty = (s, t
|
|
|
26893
26893
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
26894
26894
|
return i && n && m2(t, e, n), n;
|
|
26895
26895
|
};
|
|
26896
|
-
const
|
|
26896
|
+
const Al = x("debugwebxr"), Ob = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
|
|
26897
26897
|
class Cr extends L {
|
|
26898
26898
|
constructor() {
|
|
26899
26899
|
super(...arguments);
|
|
@@ -26907,7 +26907,7 @@ class Cr extends L {
|
|
|
26907
26907
|
async onEnterXR(e) {
|
|
26908
26908
|
if (!this.activeAndEnabled)
|
|
26909
26909
|
return;
|
|
26910
|
-
|
|
26910
|
+
Al && console.warn("AVATAR ENTER XR", this.guid, this.sourceId, this, this.activeAndEnabled), this._syncTransforms && (this._syncTransforms.length = 0), await this.prepareAvatar();
|
|
26911
26911
|
const i = en.getFor(this);
|
|
26912
26912
|
if (i != null && i.owner) {
|
|
26913
26913
|
const n = this.gameObject.addComponent(gt);
|
|
@@ -26988,20 +26988,20 @@ class Cr extends L {
|
|
|
26988
26988
|
else {
|
|
26989
26989
|
const n = new I();
|
|
26990
26990
|
n.name = "Head";
|
|
26991
|
-
const o =
|
|
26992
|
-
n.add(o), this.gameObject.add(n), this.head = new re("", this.sourceId, n),
|
|
26991
|
+
const o = Er.createPrimitive(Ua.Cube);
|
|
26992
|
+
n.add(o), this.gameObject.add(n), this.head = new re("", this.sourceId, n), Al && console.log("Create head", n);
|
|
26993
26993
|
}
|
|
26994
26994
|
if (this.rightHand)
|
|
26995
26995
|
this.rightHand instanceof I && (this.rightHand = new re("", this.sourceId, this.rightHand));
|
|
26996
26996
|
else {
|
|
26997
26997
|
const n = new I();
|
|
26998
|
-
n.name = "Right Hand", this.gameObject.add(n), this.rightHand = new re("", this.sourceId, n),
|
|
26998
|
+
n.name = "Right Hand", this.gameObject.add(n), this.rightHand = new re("", this.sourceId, n), Al && console.log("Create right hand", n);
|
|
26999
26999
|
}
|
|
27000
27000
|
if (this.leftHand)
|
|
27001
27001
|
this.leftHand instanceof I && (this.leftHand = new re("", this.sourceId, this.leftHand));
|
|
27002
27002
|
else {
|
|
27003
27003
|
const n = new I();
|
|
27004
|
-
n.name = "Left Hand", this.gameObject.add(n), this.leftHand = new re("", this.sourceId, n),
|
|
27004
|
+
n.name = "Left Hand", this.gameObject.add(n), this.leftHand = new re("", this.sourceId, n), Al && console.log("Create left hand", n);
|
|
27005
27005
|
}
|
|
27006
27006
|
await this.loadAvatarObjects(this.head, this.leftHand, this.rightHand), this._leftHandMeshes = [], (e = this.leftHand.asset) == null || e.traverse((n) => {
|
|
27007
27007
|
n != null && n.isMesh && this._leftHandMeshes.push(n);
|
|
@@ -27013,7 +27013,7 @@ class Cr extends L {
|
|
|
27013
27013
|
const o = e.loadAssetAsync(), a = i.loadAssetAsync(), l = n.loadAssetAsync(), c = new Array();
|
|
27014
27014
|
o && c.push(o), a && c.push(a), l && c.push(l);
|
|
27015
27015
|
const h = await w0(c);
|
|
27016
|
-
|
|
27016
|
+
Al && console.log("Avatar loaded results:", h);
|
|
27017
27017
|
}
|
|
27018
27018
|
}
|
|
27019
27019
|
ty([
|
|
@@ -27632,7 +27632,7 @@ const da = (Up = class extends L {
|
|
|
27632
27632
|
ei.Global.Set(this._previousXRState), (i = this._playerSync) == null || i.destroyInstance();
|
|
27633
27633
|
for (const n of this._createdComponentsInSession)
|
|
27634
27634
|
n.destroy();
|
|
27635
|
-
this._createdComponentsInSession.length = 0, this._activeWebARSessionRoot = null, this.handleOfferSession(),
|
|
27635
|
+
this._createdComponentsInSession.length = 0, this._activeWebARSessionRoot = null, this.handleOfferSession(), Eu(1).then(() => da.activeWebXRComponent = null);
|
|
27636
27636
|
}
|
|
27637
27637
|
}
|
|
27638
27638
|
/** Call to enable or disable default controller behaviour */
|
|
@@ -27951,7 +27951,7 @@ class Pw {
|
|
|
27951
27951
|
return "Physics";
|
|
27952
27952
|
}
|
|
27953
27953
|
onExportObject(t, e, i) {
|
|
27954
|
-
const n = S.getComponents(t, _e).filter((c) => c.enabled), o = S.getComponents(t,
|
|
27954
|
+
const n = S.getComponents(t, _e).filter((c) => c.enabled), o = S.getComponents(t, Ai).filter((c) => c.enabled && !c.isTrigger);
|
|
27955
27955
|
let a = n.length > 0 ? n[0] : null;
|
|
27956
27956
|
const l = o.length > 0 ? o[0] : null;
|
|
27957
27957
|
l && !a && (a = new _e(), a.isKinematic = !0), a && e.addEventListener("serialize", (c, h) => {
|
|
@@ -28322,8 +28322,8 @@ fh([
|
|
|
28322
28322
|
fh([
|
|
28323
28323
|
f(oe)
|
|
28324
28324
|
], ii.prototype, "anchorMax", 2);
|
|
28325
|
-
var T2 = Object.defineProperty,
|
|
28326
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
28325
|
+
var T2 = Object.defineProperty, E2 = Object.getOwnPropertyDescriptor, Mw = (s, t, e, i) => {
|
|
28326
|
+
for (var n = i > 1 ? void 0 : i ? E2(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
28327
28327
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
28328
28328
|
return i && n && T2(t, e, n), n;
|
|
28329
28329
|
};
|
|
@@ -28340,10 +28340,10 @@ Mw([
|
|
|
28340
28340
|
Mw([
|
|
28341
28341
|
f(oe)
|
|
28342
28342
|
], ph.prototype, "effectDistance", 2);
|
|
28343
|
-
var
|
|
28343
|
+
var A2 = Object.defineProperty, I2 = Object.getOwnPropertyDescriptor, Rw = (s, t, e, i) => {
|
|
28344
28344
|
for (var n = i > 1 ? void 0 : i ? I2(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
28345
28345
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
28346
|
-
return i && n &&
|
|
28346
|
+
return i && n && A2(t, e, n), n;
|
|
28347
28347
|
};
|
|
28348
28348
|
const td = {
|
|
28349
28349
|
backgroundColor: new le(1, 1, 1),
|
|
@@ -28447,7 +28447,7 @@ const tc = (Np = class extends Sn {
|
|
|
28447
28447
|
t = tc.textureCache.get(t);
|
|
28448
28448
|
else if (!t.isRenderTargetTexture) {
|
|
28449
28449
|
const e = t.clone();
|
|
28450
|
-
e.colorSpace =
|
|
28450
|
+
e.colorSpace = As, tc.textureCache.set(t, e), t = e;
|
|
28451
28451
|
}
|
|
28452
28452
|
this.setOptions({ backgroundImage: t, borderRadius: 0, backgroundOpacity: this.color.alpha, backgroundSize: "stretch" }), Ke.assignTextureLOD(t, 0).then((e) => {
|
|
28453
28453
|
e instanceof Fe && (t && tc.textureCache.set(t, e), this.setOptions({ backgroundImage: e }), this.markDirty());
|
|
@@ -29084,21 +29084,21 @@ class Lo extends Li {
|
|
|
29084
29084
|
let b = 0;
|
|
29085
29085
|
c ? b += this.padding.left : b += this.padding.top;
|
|
29086
29086
|
let w = 0, C = 0;
|
|
29087
|
-
for (let
|
|
29088
|
-
const z = this.gameObject.children[
|
|
29087
|
+
for (let E = 0; E < this.gameObject.children.length; E++) {
|
|
29088
|
+
const z = this.gameObject.children[E], U = S.getComponent(z, ii);
|
|
29089
29089
|
U != null && U.activeAndEnabled && (C += 1, c ? w += U.width : w += U.height);
|
|
29090
29090
|
}
|
|
29091
29091
|
let k = 0;
|
|
29092
29092
|
const O = this.spacing * (C - 1);
|
|
29093
29093
|
if (p || d) {
|
|
29094
|
-
let
|
|
29095
|
-
c ?
|
|
29094
|
+
let E = 0;
|
|
29095
|
+
c ? E = o -= O : E = l -= O, C > 0 && (k = E / C);
|
|
29096
29096
|
}
|
|
29097
29097
|
let R = 0;
|
|
29098
29098
|
R += this.padding.left, R -= this.padding.right, _ !== 0 && (b = y - w, b *= _, b -= O * _, c ? (b -= this.padding.right * _, b += this.padding.left * (1 - _), b < this.padding.left && (b = this.padding.left)) : (b -= this.padding.bottom * _, b += this.padding.top * (1 - _), b < this.padding.top && (b = this.padding.top)));
|
|
29099
|
-
let
|
|
29100
|
-
for (let
|
|
29101
|
-
const z = this.gameObject.children[
|
|
29099
|
+
let A = 1;
|
|
29100
|
+
for (let E = 0; E < this.gameObject.children.length; E++) {
|
|
29101
|
+
const z = this.gameObject.children[E], U = S.getComponent(z, ii);
|
|
29102
29102
|
if (U != null && U.activeAndEnabled) {
|
|
29103
29103
|
(F = U.pivot) == null || F.set(0.5, 0.5), U.anchorMin.set(0, 1), U.anchorMax.set(0, 1);
|
|
29104
29104
|
const K = n * 0.5 + R * 0.5;
|
|
@@ -29107,11 +29107,11 @@ class Lo extends Li {
|
|
|
29107
29107
|
U.anchoredPosition.y !== T && (U.anchoredPosition.y = T), m && u && U.sizeDelta[h] !== g && (U.sizeDelta[h] = g), p && d && U.sizeDelta[i] !== k && (U.sizeDelta[i] = k);
|
|
29108
29108
|
const j = c ? U.width : U.height, H = j * 0.5;
|
|
29109
29109
|
if (b += H, p) {
|
|
29110
|
-
const te = k *
|
|
29110
|
+
const te = k * A - k * 0.5;
|
|
29111
29111
|
te > b && (b = te - k * 0.5 + j + this.padding.left, b -= H);
|
|
29112
29112
|
}
|
|
29113
29113
|
let J = b;
|
|
29114
|
-
i === "y" && (J = -J), U.anchoredPosition[i] !== J && (U.anchoredPosition[i] = J), b += H, b += this.spacing,
|
|
29114
|
+
i === "y" && (J = -J), U.anchoredPosition[i] !== J && (U.anchoredPosition[i] = J), b += H, b += this.spacing, A += 1;
|
|
29115
29115
|
}
|
|
29116
29116
|
}
|
|
29117
29117
|
}
|
|
@@ -29134,12 +29134,12 @@ st([
|
|
|
29134
29134
|
st([
|
|
29135
29135
|
f()
|
|
29136
29136
|
], Lo.prototype, "childScaleWidth", 2);
|
|
29137
|
-
class
|
|
29137
|
+
class Ew extends Lo {
|
|
29138
29138
|
get primaryAxis() {
|
|
29139
29139
|
return "y";
|
|
29140
29140
|
}
|
|
29141
29141
|
}
|
|
29142
|
-
class
|
|
29142
|
+
class Aw extends Lo {
|
|
29143
29143
|
get primaryAxis() {
|
|
29144
29144
|
return "x";
|
|
29145
29145
|
}
|
|
@@ -29296,7 +29296,7 @@ const bp = x("debuguilayout"), Dw = class extends nf {
|
|
|
29296
29296
|
e !== -1 && this._receivers.splice(e, 1);
|
|
29297
29297
|
}
|
|
29298
29298
|
async onEnterXR(t) {
|
|
29299
|
-
this.screenspace ? (t.xr.isVR || t.xr.isPassThrough) && (this.gameObject.visible = !1) : (this.gameObject.visible = !1, await
|
|
29299
|
+
this.screenspace ? (t.xr.isVR || t.xr.isPassThrough) && (this.gameObject.visible = !1) : (this.gameObject.visible = !1, await Eu(1).then(() => {
|
|
29300
29300
|
this.gameObject.visible = !0;
|
|
29301
29301
|
}));
|
|
29302
29302
|
}
|
|
@@ -29490,10 +29490,10 @@ class jw {
|
|
|
29490
29490
|
if (g instanceof q && !b) {
|
|
29491
29491
|
const O = g.geometry.clone();
|
|
29492
29492
|
O.scale(1, 1, -1), this.flipWindingOrder(O), y.geometry = O;
|
|
29493
|
-
const R = new le(),
|
|
29493
|
+
const R = new le(), A = g.material.opacity;
|
|
29494
29494
|
R.copy(g.material.color), y.material = new Me({
|
|
29495
29495
|
color: R,
|
|
29496
|
-
opacity:
|
|
29496
|
+
opacity: A * w,
|
|
29497
29497
|
map: g.material.map,
|
|
29498
29498
|
transparent: !0
|
|
29499
29499
|
});
|
|
@@ -29593,7 +29593,7 @@ function G2(s, t) {
|
|
|
29593
29593
|
return o;
|
|
29594
29594
|
}
|
|
29595
29595
|
function q2(s) {
|
|
29596
|
-
return new
|
|
29596
|
+
return new Et(
|
|
29597
29597
|
"DisableAtStart",
|
|
29598
29598
|
zt.sceneStartTrigger(),
|
|
29599
29599
|
ye.fadeAction(s, 0, !1)
|
|
@@ -29612,7 +29612,7 @@ function Rb(s, t) {
|
|
|
29612
29612
|
const a = document.createElement("img");
|
|
29613
29613
|
return a.id = "button", o.appendChild(a), s.domElement.shadowRoot.appendChild(i), o;
|
|
29614
29614
|
}
|
|
29615
|
-
var X2 = Object.defineProperty, Q2 = Object.getOwnPropertyDescriptor,
|
|
29615
|
+
var X2 = Object.defineProperty, Q2 = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
|
|
29616
29616
|
for (var n = i > 1 ? void 0 : i ? Q2(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
29617
29617
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
29618
29618
|
return i && n && X2(t, e, n), n;
|
|
@@ -29626,16 +29626,16 @@ class ll {
|
|
|
29626
29626
|
r(this, "callToActionURL");
|
|
29627
29627
|
}
|
|
29628
29628
|
}
|
|
29629
|
-
|
|
29629
|
+
At([
|
|
29630
29630
|
f()
|
|
29631
29631
|
], ll.prototype, "callToAction", 2);
|
|
29632
|
-
|
|
29632
|
+
At([
|
|
29633
29633
|
f()
|
|
29634
29634
|
], ll.prototype, "checkoutTitle", 2);
|
|
29635
|
-
|
|
29635
|
+
At([
|
|
29636
29636
|
f()
|
|
29637
29637
|
], ll.prototype, "checkoutSubtitle", 2);
|
|
29638
|
-
|
|
29638
|
+
At([
|
|
29639
29639
|
f()
|
|
29640
29640
|
], ll.prototype, "callToActionURL", 2);
|
|
29641
29641
|
var dd;
|
|
@@ -29744,20 +29744,20 @@ const Um = (dd = class extends L {
|
|
|
29744
29744
|
for (const O of i) {
|
|
29745
29745
|
for (const R of O.sharedMeshes)
|
|
29746
29746
|
if (R) {
|
|
29747
|
-
const
|
|
29748
|
-
|
|
29749
|
-
|
|
29747
|
+
const A = Ke.assignMeshLOD(R, 0);
|
|
29748
|
+
A instanceof Promise && n.push(new Promise((F, E) => {
|
|
29749
|
+
A.then(() => {
|
|
29750
29750
|
o++, de.report("export-usdz-textures", { message: "Loaded progressive mesh", currentStep: o, totalSteps: n.length }), F();
|
|
29751
|
-
}).catch((z) =>
|
|
29751
|
+
}).catch((z) => E(z));
|
|
29752
29752
|
}));
|
|
29753
29753
|
}
|
|
29754
29754
|
for (const R of O.sharedMaterials)
|
|
29755
29755
|
if (R) {
|
|
29756
|
-
const
|
|
29757
|
-
|
|
29758
|
-
|
|
29756
|
+
const A = Ke.assignTextureLOD(R, 0);
|
|
29757
|
+
A instanceof Promise && n.push(new Promise((F, E) => {
|
|
29758
|
+
A.then(() => {
|
|
29759
29759
|
o++, de.report("export-usdz-textures", { message: "Loaded progressive texture", currentStep: o, totalSteps: n.length }), F();
|
|
29760
|
-
}).catch((z) =>
|
|
29760
|
+
}).catch((z) => E(z));
|
|
29761
29761
|
}));
|
|
29762
29762
|
}
|
|
29763
29763
|
}
|
|
@@ -29775,14 +29775,14 @@ const Um = (dd = class extends L {
|
|
|
29775
29775
|
const y = or.instance.objs.map((O) => O.batchedMesh);
|
|
29776
29776
|
l.keepObject = (O) => {
|
|
29777
29777
|
let R = !0;
|
|
29778
|
-
const
|
|
29779
|
-
return
|
|
29778
|
+
const A = S.getComponent(O, Ze);
|
|
29779
|
+
return A && !A.enabled && (R = !1), R && y.includes(O) && (R = !1), R && S.getComponentInParent(O, Yn) && (R = !1), R && S.getComponentInParent(O, Ns) && (R = !1), pi && !R && console.log("USDZExporter: Discarding object", O), R;
|
|
29780
29780
|
}, l.beforeWritingDocument = () => {
|
|
29781
29781
|
if (B() && c && h) {
|
|
29782
29782
|
const O = c.animatedRoots;
|
|
29783
29783
|
for (const R of O) {
|
|
29784
|
-
const
|
|
29785
|
-
(
|
|
29784
|
+
const A = S.getComponentsInChildren(R, _e).filter((E) => E.enabled), F = S.getComponents(R, Ai).filter((E) => E.enabled && !E.isTrigger);
|
|
29785
|
+
(A.length > 0 || F.length > 0) && console.error("An animated object has physics components in its child hierarchy. This can lead to undefined behaviour due to a bug in Apple's QuickLook (FB15925487). Remove the physics components from child objects or verify that you get the expected results.", R);
|
|
29786
29786
|
}
|
|
29787
29787
|
}
|
|
29788
29788
|
};
|
|
@@ -29881,43 +29881,43 @@ const Um = (dd = class extends L {
|
|
|
29881
29881
|
}
|
|
29882
29882
|
}, r(dd, "invertForwardMatrix", new se().makeRotationY(Math.PI)), r(dd, "invertForwardQuaternion", new W().setFromEuler(new Bt(0, Math.PI, 0))), dd);
|
|
29883
29883
|
let Ge = Um;
|
|
29884
|
-
|
|
29884
|
+
At([
|
|
29885
29885
|
f(I)
|
|
29886
29886
|
], Ge.prototype, "objectToExport", 2);
|
|
29887
|
-
|
|
29887
|
+
At([
|
|
29888
29888
|
f()
|
|
29889
29889
|
], Ge.prototype, "autoExportAnimations", 2);
|
|
29890
|
-
|
|
29890
|
+
At([
|
|
29891
29891
|
f()
|
|
29892
29892
|
], Ge.prototype, "autoExportAudioSources", 2);
|
|
29893
|
-
|
|
29893
|
+
At([
|
|
29894
29894
|
f()
|
|
29895
29895
|
], Ge.prototype, "exportFileName", 2);
|
|
29896
|
-
|
|
29896
|
+
At([
|
|
29897
29897
|
f(URL)
|
|
29898
29898
|
], Ge.prototype, "customUsdzFile", 2);
|
|
29899
|
-
|
|
29899
|
+
At([
|
|
29900
29900
|
f(ll)
|
|
29901
29901
|
], Ge.prototype, "customBranding", 2);
|
|
29902
|
-
|
|
29902
|
+
At([
|
|
29903
29903
|
f()
|
|
29904
29904
|
], Ge.prototype, "anchoringType", 2);
|
|
29905
|
-
|
|
29905
|
+
At([
|
|
29906
29906
|
f()
|
|
29907
29907
|
], Ge.prototype, "maxTextureSize", 2);
|
|
29908
|
-
|
|
29908
|
+
At([
|
|
29909
29909
|
f()
|
|
29910
29910
|
], Ge.prototype, "planeAnchoringAlignment", 2);
|
|
29911
|
-
|
|
29911
|
+
At([
|
|
29912
29912
|
f()
|
|
29913
29913
|
], Ge.prototype, "interactive", 2);
|
|
29914
|
-
|
|
29914
|
+
At([
|
|
29915
29915
|
f()
|
|
29916
29916
|
], Ge.prototype, "physics", 2);
|
|
29917
|
-
|
|
29917
|
+
At([
|
|
29918
29918
|
f()
|
|
29919
29919
|
], Ge.prototype, "allowCreateQuicklookButton", 2);
|
|
29920
|
-
|
|
29920
|
+
At([
|
|
29921
29921
|
f()
|
|
29922
29922
|
], Ge.prototype, "quickLookCompatible", 2);
|
|
29923
29923
|
var K2 = Object.defineProperty, Z2 = Object.getOwnPropertyDescriptor, oy = (s, t, e, i) => {
|
|
@@ -30310,7 +30310,7 @@ class Di extends L {
|
|
|
30310
30310
|
const n = this.gameObject.scale.y;
|
|
30311
30311
|
i.top *= n, i.bottom *= n;
|
|
30312
30312
|
}
|
|
30313
|
-
this.light.shadow.needsUpdate = !0, Ks && this.context.scene.add(new
|
|
30313
|
+
this.light.shadow.needsUpdate = !0, Ks && this.context.scene.add(new E1(i));
|
|
30314
30314
|
}
|
|
30315
30315
|
this.isBaked ? this.light.removeFromParent() : e || this.gameObject.add(this.light);
|
|
30316
30316
|
}
|
|
@@ -30431,7 +30431,7 @@ class rf extends L {
|
|
|
30431
30431
|
}
|
|
30432
30432
|
this._lodsHandler = new Array();
|
|
30433
30433
|
for (let n = 0; n < e.length; n++) {
|
|
30434
|
-
const o = new
|
|
30434
|
+
const o = new A1();
|
|
30435
30435
|
this._lodsHandler.push(o), this.gameObject.add(o);
|
|
30436
30436
|
}
|
|
30437
30437
|
const i = new I();
|
|
@@ -31755,7 +31755,7 @@ class tt {
|
|
|
31755
31755
|
return;
|
|
31756
31756
|
const c = a / l, h = this.speedModifier.evaluate(c) * this.speedModifierMultiplier, d = this.x.evaluate(c), u = this.y.evaluate(c), p = this.z.evaluate(c);
|
|
31757
31757
|
if (this._temp.set(-d, u, p), this._system && this._system.main.simulationSpace === 1 && this._temp.applyQuaternion(this._system.worldQuaternion), this._hasOrbital && ((m = this._system) == null ? void 0 : m.worldPos)) {
|
|
31758
|
-
const y = this._temp2.set(i.x, i.y, i.z), _ = this.orbitalXMultiplier, b = this.orbitalYMultiplier, w = this.orbitalZMultiplier, C = h * Math.PI * 2 * 10, k = Math.cos(C * _), O = Math.sin(C * _), R = Math.cos(C * b),
|
|
31758
|
+
const y = this._temp2.set(i.x, i.y, i.z), _ = this.orbitalXMultiplier, b = this.orbitalYMultiplier, w = this.orbitalZMultiplier, C = h * Math.PI * 2 * 10, k = Math.cos(C * _), O = Math.sin(C * _), R = Math.cos(C * b), A = Math.sin(C * b), F = Math.cos(C * w), E = Math.sin(C * w), z = y.x * (R * F) + y.y * (R * E) + y.z * -A, U = y.x * (O * A * F - k * E) + y.y * (O * A * E + k * F) + y.z * (O * R), K = y.x * (k * A * F + O * E) + y.y * (k * A * E - O * F) + y.z * (k * R), T = this._temp3.set(y.x - z, y.y - U, y.z - K);
|
|
31759
31759
|
T.normalize(), T.multiplyScalar(0.2 / o * Math.max(this.orbitalXMultiplier, this.orbitalYMultiplier, this.orbitalZMultiplier)), n.x += T.x, n.y += T.y, n.z += T.z;
|
|
31760
31760
|
}
|
|
31761
31761
|
n.x += this._temp.x, n.y += this._temp.y, n.z += this._temp.z, n.x *= h, n.y *= h, n.z *= h;
|
|
@@ -32301,11 +32301,11 @@ class On extends L {
|
|
|
32301
32301
|
let i = e === !0 && this.trailMaterial ? this.trailMaterial : this.particleMaterial;
|
|
32302
32302
|
if (i) {
|
|
32303
32303
|
if (i.type === "MeshStandardMaterial") {
|
|
32304
|
-
oo && console.debug("ParticleSystemRenderer.getMaterial: MeshStandardMaterial detected, converting to MeshBasicMaterial. See https://github.com/Alchemist0823/three.quarks/issues/101"), "map" in i && i.map && (i.map.colorSpace =
|
|
32304
|
+
oo && console.debug("ParticleSystemRenderer.getMaterial: MeshStandardMaterial detected, converting to MeshBasicMaterial. See https://github.com/Alchemist0823/three.quarks/issues/101"), "map" in i && i.map && (i.map.colorSpace = As, i.map.premultiplyAlpha = !1);
|
|
32305
32305
|
const n = new Me();
|
|
32306
32306
|
n.copy(i), e ? this.trailMaterial = n : this.particleMaterial = n;
|
|
32307
32307
|
}
|
|
32308
|
-
i.map && (i.map.colorSpace =
|
|
32308
|
+
i.map && (i.map.colorSpace = As, i.map.premultiplyAlpha = !1), e && i.side === Oo && (i = i.clone(), i.side = Ou, e ? this.trailMaterial = i : this.particleMaterial = i);
|
|
32309
32309
|
}
|
|
32310
32310
|
return i && !PT && i._didRequestTextureLOD === void 0 && (i._didRequestTextureLOD = 0, OT && console.log("Load material LOD", i.name), Ke.assignTextureLOD(i, 0)), i;
|
|
32311
32311
|
}
|
|
@@ -32454,7 +32454,7 @@ class TT extends Br {
|
|
|
32454
32454
|
}
|
|
32455
32455
|
}
|
|
32456
32456
|
const Tb = Symbol("particleRotation");
|
|
32457
|
-
class
|
|
32457
|
+
class ET extends Br {
|
|
32458
32458
|
constructor() {
|
|
32459
32459
|
super(...arguments);
|
|
32460
32460
|
r(this, "type", "NeedleRotation");
|
|
@@ -32472,7 +32472,7 @@ class AT extends Br {
|
|
|
32472
32472
|
}
|
|
32473
32473
|
}
|
|
32474
32474
|
}
|
|
32475
|
-
const
|
|
32475
|
+
const Eb = Symbol("sizeLerpFactor"), AT = new v();
|
|
32476
32476
|
class IT extends Br {
|
|
32477
32477
|
constructor() {
|
|
32478
32478
|
super(...arguments);
|
|
@@ -32481,29 +32481,29 @@ class IT extends Br {
|
|
|
32481
32481
|
r(this, "_maxSize", 1);
|
|
32482
32482
|
}
|
|
32483
32483
|
initialize(e) {
|
|
32484
|
-
e[
|
|
32484
|
+
e[Eb] = Math.random(), this._minSize = this.system.renderer.minParticleSize, this._maxSize = this.system.renderer.maxParticleSize;
|
|
32485
32485
|
}
|
|
32486
32486
|
update(e, i) {
|
|
32487
32487
|
const n = e.age / e.life;
|
|
32488
32488
|
let o = 1;
|
|
32489
|
-
this.system.sizeOverLifetime.enabled && (o *= this.system.sizeOverLifetime.evaluate(n, void 0, e[
|
|
32489
|
+
this.system.sizeOverLifetime.enabled && (o *= this.system.sizeOverLifetime.evaluate(n, void 0, e[Eb]).x);
|
|
32490
32490
|
let a = 1;
|
|
32491
32491
|
this.system.renderer.renderMode !== ys.Mesh && (a = this.system.worldScale.x / this.system.cameraScale);
|
|
32492
32492
|
const l = G(e.startSize).multiplyScalar(o * a);
|
|
32493
32493
|
if (e.size.set(l.x, l.y, l.z), this.system.localspace) {
|
|
32494
|
-
const c = Uw(this.system,
|
|
32494
|
+
const c = Uw(this.system, AT);
|
|
32495
32495
|
e.size.x *= c.x, e.size.y *= c.y, e.size.z *= c.z;
|
|
32496
32496
|
}
|
|
32497
32497
|
}
|
|
32498
32498
|
}
|
|
32499
|
-
const ma = Symbol("particleLife"), xp = Symbol("trailLifetime"),
|
|
32499
|
+
const ma = Symbol("particleLife"), xp = Symbol("trailLifetime"), Ab = Symbol("trailStartLength"), Sp = Symbol("trailWidthRandom");
|
|
32500
32500
|
class LT extends Br {
|
|
32501
32501
|
constructor() {
|
|
32502
32502
|
super(...arguments);
|
|
32503
32503
|
r(this, "type", "NeedleTrail");
|
|
32504
32504
|
}
|
|
32505
32505
|
initialize(e) {
|
|
32506
|
-
e instanceof Gy && (e[ma] = e.life, this.system.trails.enabled && this.system.trails.dieWithParticles === !1 && (e[xp] = this.system.trails.lifetime.evaluate(Math.random(), Math.random()), e.life += e[xp]), e[
|
|
32506
|
+
e instanceof Gy && (e[ma] = e.life, this.system.trails.enabled && this.system.trails.dieWithParticles === !1 && (e[xp] = this.system.trails.lifetime.evaluate(Math.random(), Math.random()), e.life += e[xp]), e[Ab] = e.length, e[Sp] = Math.random());
|
|
32507
32507
|
}
|
|
32508
32508
|
update(e) {
|
|
32509
32509
|
var i;
|
|
@@ -32520,7 +32520,7 @@ class LT extends Br {
|
|
|
32520
32520
|
if (e.age > e[ma]) {
|
|
32521
32521
|
e.velocity.set(0, 0, 0);
|
|
32522
32522
|
const c = (e.age - e[ma]) / e[xp];
|
|
32523
|
-
n.length = $.lerp(e[
|
|
32523
|
+
n.length = $.lerp(e[Ab], 0, c);
|
|
32524
32524
|
}
|
|
32525
32525
|
}
|
|
32526
32526
|
}
|
|
@@ -32683,7 +32683,7 @@ class BT {
|
|
|
32683
32683
|
const e = t.map;
|
|
32684
32684
|
if (this.clonedTexture.original !== e || !this.clonedTexture.clone) {
|
|
32685
32685
|
const i = e.clone();
|
|
32686
|
-
i.premultiplyAlpha = !1, i.colorSpace =
|
|
32686
|
+
i.premultiplyAlpha = !1, i.colorSpace = As, this.clonedTexture.original = e, this.clonedTexture.clone = i;
|
|
32687
32687
|
}
|
|
32688
32688
|
return this.clonedTexture.clone;
|
|
32689
32689
|
}
|
|
@@ -32934,7 +32934,7 @@ const Td = class extends L {
|
|
|
32934
32934
|
awake() {
|
|
32935
32935
|
if (this._worldPositionFrame = -1, this._renderer = this.gameObject.getComponent(On), !this.main)
|
|
32936
32936
|
throw new Error("Not Supported: ParticleSystem needs a serialized MainModule. Creating new particle systems at runtime is currently not supported.");
|
|
32937
|
-
this._container = new I(), this._container.matrixAutoUpdate = !1, this.context.scene.add(this._container), this._batchSystem = new vS(), this._batchSystem.name = this.gameObject.name, this._container.add(this._batchSystem), this._interface = new BT(this), this._particleSystem = new wS(this._interface), this._particleSystem.addBehavior(new IT(this)), this._particleSystem.addBehavior(new jT(this)), this._particleSystem.addBehavior(new TT(this)), this._particleSystem.addBehavior(new
|
|
32937
|
+
this._container = new I(), this._container.matrixAutoUpdate = !1, this.context.scene.add(this._container), this._batchSystem = new vS(), this._batchSystem.name = this.gameObject.name, this._container.add(this._batchSystem), this._interface = new BT(this), this._particleSystem = new wS(this._interface), this._particleSystem.addBehavior(new IT(this)), this._particleSystem.addBehavior(new jT(this)), this._particleSystem.addBehavior(new TT(this)), this._particleSystem.addBehavior(new ET(this)), this._particleSystem.addBehavior(new DT(this)), this._particleSystem.addBehavior(new LT(this)), this._batchSystem.addSystem(this._particleSystem);
|
|
32938
32938
|
const t = this._particleSystem.emitter;
|
|
32939
32939
|
this.context.scene.add(t), this.inheritVelocity.system && this.inheritVelocity.system !== this && (this.inheritVelocity = this.inheritVelocity.clone()), this.inheritVelocity.awake(this), oo && (console.log(this), this.gameObject.add(new Mi(1)));
|
|
32940
32940
|
}
|
|
@@ -33369,10 +33369,10 @@ class py {
|
|
|
33369
33369
|
KT([
|
|
33370
33370
|
Ya([(s) => JT(s), ht])
|
|
33371
33371
|
], py.prototype, "components", 2);
|
|
33372
|
-
var
|
|
33373
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33372
|
+
var eE = Object.defineProperty, tE = Object.getOwnPropertyDescriptor, iE = (s, t, e, i) => {
|
|
33373
|
+
for (var n = i > 1 ? void 0 : i ? tE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33374
33374
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33375
|
-
return i && n &&
|
|
33375
|
+
return i && n && eE(t, e, n), n;
|
|
33376
33376
|
};
|
|
33377
33377
|
class lf extends ht {
|
|
33378
33378
|
constructor() {
|
|
@@ -33393,14 +33393,14 @@ class lf extends ht {
|
|
|
33393
33393
|
}, e;
|
|
33394
33394
|
}
|
|
33395
33395
|
}
|
|
33396
|
-
|
|
33396
|
+
iE([
|
|
33397
33397
|
f(N)
|
|
33398
33398
|
], lf.prototype, "preset", 2);
|
|
33399
33399
|
Mn("Antialiasing", lf);
|
|
33400
|
-
var
|
|
33401
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33400
|
+
var nE = Object.defineProperty, sE = Object.getOwnPropertyDescriptor, my = (s, t, e, i) => {
|
|
33401
|
+
for (var n = i > 1 ? void 0 : i ? sE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33402
33402
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33403
|
-
return i && n &&
|
|
33403
|
+
return i && n && nE(t, e, n), n;
|
|
33404
33404
|
}, $p;
|
|
33405
33405
|
const Ww = ($p = class extends ht {
|
|
33406
33406
|
constructor() {
|
|
@@ -33464,10 +33464,10 @@ my([
|
|
|
33464
33464
|
f(N)
|
|
33465
33465
|
], pl.prototype, "scatter", 2);
|
|
33466
33466
|
Mn("Bloom", pl);
|
|
33467
|
-
var
|
|
33468
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33467
|
+
var oE = Object.defineProperty, rE = Object.getOwnPropertyDescriptor, aE = (s, t, e, i) => {
|
|
33468
|
+
for (var n = i > 1 ? void 0 : i ? rE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33469
33469
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33470
|
-
return i && n &&
|
|
33470
|
+
return i && n && oE(t, e, n), n;
|
|
33471
33471
|
};
|
|
33472
33472
|
class cf extends ht {
|
|
33473
33473
|
constructor() {
|
|
@@ -33484,17 +33484,17 @@ class cf extends ht {
|
|
|
33484
33484
|
}, e;
|
|
33485
33485
|
}
|
|
33486
33486
|
}
|
|
33487
|
-
|
|
33487
|
+
aE([
|
|
33488
33488
|
f(N)
|
|
33489
33489
|
], cf.prototype, "intensity", 2);
|
|
33490
33490
|
Mn("ChromaticAberration", cf);
|
|
33491
|
-
var
|
|
33492
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33491
|
+
var lE = Object.defineProperty, cE = Object.getOwnPropertyDescriptor, Vw = (s, t, e, i) => {
|
|
33492
|
+
for (var n = i > 1 ? void 0 : i ? cE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33493
33493
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33494
|
-
return i && n &&
|
|
33494
|
+
return i && n && lE(t, e, n), n;
|
|
33495
33495
|
};
|
|
33496
33496
|
const jb = x("debugpost");
|
|
33497
|
-
var
|
|
33497
|
+
var Ed = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Neutral = 1] = "Neutral", s[s.ACES = 2] = "ACES", s[s.AgX = 3] = "AgX", s[s.KhronosNeutral = 4] = "KhronosNeutral", s))(Ed || {});
|
|
33498
33498
|
function Op(s) {
|
|
33499
33499
|
switch (s) {
|
|
33500
33500
|
case 0:
|
|
@@ -33511,7 +33511,7 @@ function Op(s) {
|
|
|
33511
33511
|
return Dc;
|
|
33512
33512
|
}
|
|
33513
33513
|
}
|
|
33514
|
-
function
|
|
33514
|
+
function hE(s) {
|
|
33515
33515
|
switch (s) {
|
|
33516
33516
|
case Ru:
|
|
33517
33517
|
return 0;
|
|
@@ -33554,7 +33554,7 @@ const Hw = class extends ht {
|
|
|
33554
33554
|
}
|
|
33555
33555
|
/** Set the tonemapping mode to e.g. "agx" */
|
|
33556
33556
|
setMode(t) {
|
|
33557
|
-
const e =
|
|
33557
|
+
const e = Ed[t];
|
|
33558
33558
|
return e === void 0 ? (console.error("Invalid ToneMapping mode", t), this) : (this.mode.value = e, this);
|
|
33559
33559
|
}
|
|
33560
33560
|
get isToneMapping() {
|
|
@@ -33575,7 +33575,7 @@ const Hw = class extends ht {
|
|
|
33575
33575
|
}
|
|
33576
33576
|
}
|
|
33577
33577
|
if (this.mode.isInitialized == !1) {
|
|
33578
|
-
const i =
|
|
33578
|
+
const i = hE(this.context.renderer.toneMapping);
|
|
33579
33579
|
this.mode.initialize(i);
|
|
33580
33580
|
}
|
|
33581
33581
|
const t = Op(this.mode.value), e = new D.POSTPROCESSING.MODULE.ToneMappingEffect({
|
|
@@ -33583,8 +33583,8 @@ const Hw = class extends ht {
|
|
|
33583
33583
|
});
|
|
33584
33584
|
return this.mode.onValueChanged = (i) => {
|
|
33585
33585
|
const n = Op(i);
|
|
33586
|
-
e.mode = Bb(n), jb && console.log("ToneMapping mode changed to",
|
|
33587
|
-
}, jb && console.log("Use ToneMapping",
|
|
33586
|
+
e.mode = Bb(n), jb && console.log("ToneMapping mode changed to", Ed[i], n, e.mode);
|
|
33587
|
+
}, jb && console.log("Use ToneMapping", Ed[this.mode.value], t, e.mode, "renderer.tonemapping: " + this.context.renderer.toneMapping), this.exposure.onValueChanged = (i) => {
|
|
33588
33588
|
this.context.renderer.toneMappingExposure = i;
|
|
33589
33589
|
}, e;
|
|
33590
33590
|
}
|
|
@@ -33600,10 +33600,10 @@ Vw([
|
|
|
33600
33600
|
f(N)
|
|
33601
33601
|
], Or.prototype, "exposure", 2);
|
|
33602
33602
|
Mn("Tonemapping", Or);
|
|
33603
|
-
var
|
|
33604
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33603
|
+
var dE = Object.defineProperty, uE = Object.getOwnPropertyDescriptor, hf = (s, t, e, i) => {
|
|
33604
|
+
for (var n = i > 1 ? void 0 : i ? uE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33605
33605
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33606
|
-
return i && n &&
|
|
33606
|
+
return i && n && dE(t, e, n), n;
|
|
33607
33607
|
};
|
|
33608
33608
|
class Fr extends ht {
|
|
33609
33609
|
constructor() {
|
|
@@ -33649,12 +33649,12 @@ hf([
|
|
|
33649
33649
|
f(N)
|
|
33650
33650
|
], Fr.prototype, "saturation", 2);
|
|
33651
33651
|
Mn("ColorAdjustments", Fr);
|
|
33652
|
-
var
|
|
33653
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33652
|
+
var fE = Object.defineProperty, pE = Object.getOwnPropertyDescriptor, zr = (s, t, e, i) => {
|
|
33653
|
+
for (var n = i > 1 ? void 0 : i ? pE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33654
33654
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33655
|
-
return i && n &&
|
|
33655
|
+
return i && n && fE(t, e, n), n;
|
|
33656
33656
|
};
|
|
33657
|
-
const
|
|
33657
|
+
const mE = x("debugpost");
|
|
33658
33658
|
class es extends ht {
|
|
33659
33659
|
constructor() {
|
|
33660
33660
|
super(...arguments);
|
|
@@ -33682,7 +33682,7 @@ class es extends ht {
|
|
|
33682
33682
|
}
|
|
33683
33683
|
onCreateEffect() {
|
|
33684
33684
|
if (this.mode === 0) {
|
|
33685
|
-
|
|
33685
|
+
mE && console.warn("DepthOfField: Mode is set to Off");
|
|
33686
33686
|
return;
|
|
33687
33687
|
}
|
|
33688
33688
|
const e = new D.POSTPROCESSING.MODULE.DepthOfFieldEffect(this.context.mainCamera, {
|
|
@@ -33733,10 +33733,10 @@ class ru extends ht {
|
|
|
33733
33733
|
return this.effect;
|
|
33734
33734
|
}
|
|
33735
33735
|
}
|
|
33736
|
-
var
|
|
33737
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33736
|
+
var gE = Object.defineProperty, yE = Object.getOwnPropertyDescriptor, _E = (s, t, e, i) => {
|
|
33737
|
+
for (var n = i > 1 ? void 0 : i ? yE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33738
33738
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33739
|
-
return i && n &&
|
|
33739
|
+
return i && n && gE(t, e, n), n;
|
|
33740
33740
|
};
|
|
33741
33741
|
class df extends ht {
|
|
33742
33742
|
constructor() {
|
|
@@ -33753,14 +33753,14 @@ class df extends ht {
|
|
|
33753
33753
|
}, e;
|
|
33754
33754
|
}
|
|
33755
33755
|
}
|
|
33756
|
-
|
|
33756
|
+
_E([
|
|
33757
33757
|
f(N)
|
|
33758
33758
|
], df.prototype, "granularity", 2);
|
|
33759
33759
|
Mn("PixelationEffect", df);
|
|
33760
|
-
var
|
|
33761
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33760
|
+
var bE = Object.defineProperty, vE = Object.getOwnPropertyDescriptor, xh = (s, t, e, i) => {
|
|
33761
|
+
for (var n = i > 1 ? void 0 : i ? vE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33762
33762
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33763
|
-
return i && n &&
|
|
33763
|
+
return i && n && bE(t, e, n), n;
|
|
33764
33764
|
};
|
|
33765
33765
|
class Bo extends ht {
|
|
33766
33766
|
constructor() {
|
|
@@ -33828,12 +33828,12 @@ xh([
|
|
|
33828
33828
|
f(N)
|
|
33829
33829
|
], Bo.prototype, "luminanceInfluence", 2);
|
|
33830
33830
|
Mn("ScreenSpaceAmbientOcclusion", Bo);
|
|
33831
|
-
var
|
|
33832
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33831
|
+
var wE = Object.defineProperty, xE = Object.getOwnPropertyDescriptor, Ur = (s, t, e, i) => {
|
|
33832
|
+
for (var n = i > 1 ? void 0 : i ? xE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33833
33833
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33834
|
-
return i && n &&
|
|
33834
|
+
return i && n && wE(t, e, n), n;
|
|
33835
33835
|
};
|
|
33836
|
-
const
|
|
33836
|
+
const SE = x("debugN8AO");
|
|
33837
33837
|
var Ym = /* @__PURE__ */ ((s) => (s[s.Performance = 0] = "Performance", s[s.Low = 1] = "Low", s[s.Medium = 2] = "Medium", s[s.High = 3] = "High", s[s.Ultra = 4] = "Ultra", s))(Ym || {});
|
|
33838
33838
|
class ts extends ht {
|
|
33839
33839
|
constructor() {
|
|
@@ -33865,7 +33865,7 @@ class ts extends ht {
|
|
|
33865
33865
|
), a = Ym[this.quality];
|
|
33866
33866
|
o.setQualityMode(a), o.configuration.transparencyAware = !1;
|
|
33867
33867
|
const l = new Ls(i, n);
|
|
33868
|
-
return o.configuration.beautyRenderTarget = l, o.configuration.autoRenderBeauty = !1, o.configuration.gammaCorrection = this.gammaCorrection, o.configuration.screenSpaceRadius = this.screenspaceRadius,
|
|
33868
|
+
return o.configuration.beautyRenderTarget = l, o.configuration.autoRenderBeauty = !1, o.configuration.gammaCorrection = this.gammaCorrection, o.configuration.screenSpaceRadius = this.screenspaceRadius, SE && (o.enableDebugMode(), console.log(o), setInterval(() => {
|
|
33869
33869
|
console.log("SSAO", o.lastTime);
|
|
33870
33870
|
}, 1e3), setInterval(() => {
|
|
33871
33871
|
console.log("SSAO", o.enabled, { ssao: o, autoRenderBeauty: o.configuration.autoRenderBeauty });
|
|
@@ -33905,10 +33905,10 @@ Ur([
|
|
|
33905
33905
|
f()
|
|
33906
33906
|
], ts.prototype, "quality", 2);
|
|
33907
33907
|
Mn("ScreenSpaceAmbientOcclusionN8", ts);
|
|
33908
|
-
var
|
|
33909
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
33908
|
+
var CE = Object.defineProperty, PE = Object.getOwnPropertyDescriptor, Gw = (s, t, e, i) => {
|
|
33909
|
+
for (var n = i > 1 ? void 0 : i ? PE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
33910
33910
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
33911
|
-
return i && n &&
|
|
33911
|
+
return i && n && CE(t, e, n), n;
|
|
33912
33912
|
};
|
|
33913
33913
|
class uf extends ht {
|
|
33914
33914
|
constructor() {
|
|
@@ -33921,7 +33921,7 @@ class uf extends ht {
|
|
|
33921
33921
|
return "Sharpening";
|
|
33922
33922
|
}
|
|
33923
33923
|
onCreateEffect() {
|
|
33924
|
-
return this._effect ?? (this._effect = new (
|
|
33924
|
+
return this._effect ?? (this._effect = new (OE())()), this.effect;
|
|
33925
33925
|
}
|
|
33926
33926
|
get effect() {
|
|
33927
33927
|
return this._effect;
|
|
@@ -33952,7 +33952,7 @@ Gw([
|
|
|
33952
33952
|
Gw([
|
|
33953
33953
|
f()
|
|
33954
33954
|
], uf.prototype, "radius", 1);
|
|
33955
|
-
function
|
|
33955
|
+
function OE() {
|
|
33956
33956
|
const s = `
|
|
33957
33957
|
void mainSupport() {
|
|
33958
33958
|
vUv = uv;
|
|
@@ -34013,10 +34013,10 @@ function OA() {
|
|
|
34013
34013
|
}
|
|
34014
34014
|
return e;
|
|
34015
34015
|
}
|
|
34016
|
-
var
|
|
34017
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
34016
|
+
var ME = Object.defineProperty, RE = Object.getOwnPropertyDescriptor, ml = (s, t, e, i) => {
|
|
34017
|
+
for (var n = i > 1 ? void 0 : i ? RE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
34018
34018
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
34019
|
-
return i && n &&
|
|
34019
|
+
return i && n && ME(t, e, n), n;
|
|
34020
34020
|
};
|
|
34021
34021
|
class Gs extends ht {
|
|
34022
34022
|
constructor() {
|
|
@@ -34064,10 +34064,10 @@ ml([
|
|
|
34064
34064
|
f(N)
|
|
34065
34065
|
], Gs.prototype, "resolutionScale", 2);
|
|
34066
34066
|
Mn("TiltShiftEffect", Gs);
|
|
34067
|
-
var
|
|
34068
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
34067
|
+
var kE = Object.defineProperty, TE = Object.getOwnPropertyDescriptor, gy = (s, t, e, i) => {
|
|
34068
|
+
for (var n = i > 1 ? void 0 : i ? TE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
34069
34069
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
34070
|
-
return i && n &&
|
|
34070
|
+
return i && n && kE(t, e, n), n;
|
|
34071
34071
|
};
|
|
34072
34072
|
class gl extends ht {
|
|
34073
34073
|
constructor() {
|
|
@@ -34106,7 +34106,7 @@ gy([
|
|
|
34106
34106
|
], gl.prototype, "center", 2);
|
|
34107
34107
|
Mn("Vignette", gl);
|
|
34108
34108
|
globalThis.false = globalThis.false !== void 0 ? globalThis.false : !0;
|
|
34109
|
-
const as = x("debugpost"),
|
|
34109
|
+
const as = x("debugpost"), EE = x("debugpostpasses"), Mp = Symbol("needle:postprocessing-handler"), Rp = Symbol("needle:previous-autoclear-state");
|
|
34110
34110
|
class qw {
|
|
34111
34111
|
constructor(t) {
|
|
34112
34112
|
r(this, "_composer", null);
|
|
@@ -34193,7 +34193,7 @@ class qw {
|
|
|
34193
34193
|
h.dispose();
|
|
34194
34194
|
l.removeAllPasses();
|
|
34195
34195
|
const c = new D.POSTPROCESSING.MODULE.RenderPass(o, a);
|
|
34196
|
-
if (c.name = "Render To Screen", c.mainScene = o, l.addPass(c),
|
|
34196
|
+
if (c.name = "Render To Screen", c.mainScene = o, l.addPass(c), EE) {
|
|
34197
34197
|
this.orderEffects();
|
|
34198
34198
|
for (const h of e)
|
|
34199
34199
|
if (h instanceof D.POSTPROCESSING.MODULE.Effect) {
|
|
@@ -34283,10 +34283,10 @@ class qw {
|
|
|
34283
34283
|
}
|
|
34284
34284
|
}
|
|
34285
34285
|
let kp = null;
|
|
34286
|
-
var
|
|
34287
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
34286
|
+
var AE = Object.defineProperty, IE = Object.getOwnPropertyDescriptor, Xw = (s, t, e, i) => {
|
|
34287
|
+
for (var n = i > 1 ? void 0 : i ? IE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
34288
34288
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
34289
|
-
return i && n &&
|
|
34289
|
+
return i && n && AE(t, e, n), n;
|
|
34290
34290
|
};
|
|
34291
34291
|
const Kr = x("debugpost");
|
|
34292
34292
|
class Sh extends L {
|
|
@@ -34473,13 +34473,13 @@ async function yy(s) {
|
|
|
34473
34473
|
const { NeedleEngineHTMLElement: t } = await Promise.resolve().then(() => RI);
|
|
34474
34474
|
t.observedAttributes.includes(s) || t.observedAttributes.push(s);
|
|
34475
34475
|
}
|
|
34476
|
-
var
|
|
34477
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
34476
|
+
var LE = Object.defineProperty, DE = Object.getOwnPropertyDescriptor, xt = (s, t, e, i) => {
|
|
34477
|
+
for (var n = i > 1 ? void 0 : i ? DE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
34478
34478
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
34479
|
-
return i && n &&
|
|
34479
|
+
return i && n && LE(t, e, n), n;
|
|
34480
34480
|
};
|
|
34481
|
-
const Lt = x("debugsceneswitcher"),
|
|
34482
|
-
yy(
|
|
34481
|
+
const Lt = x("debugsceneswitcher"), jE = x("sceneswitcher:clearscene"), Ad = "scene";
|
|
34482
|
+
yy(Ad);
|
|
34483
34483
|
const Zs = Promise.resolve(!1);
|
|
34484
34484
|
class ot extends L {
|
|
34485
34485
|
constructor() {
|
|
@@ -34602,14 +34602,14 @@ class ot extends L {
|
|
|
34602
34602
|
async onEnable() {
|
|
34603
34603
|
if (globalThis.addEventListener("popstate", this.onPopState), this.context.input.addEventListener(Ne.KeyDown, this.onInputKeyDown), this.context.input.addEventListener(Ne.PointerMove, this.onInputPointerMove), this.context.input.addEventListener(Ne.PointerUp, this.onInputPointerUp), this._engineElementOverserver || (this._engineElementOverserver = new MutationObserver((e) => {
|
|
34604
34604
|
for (const i of e)
|
|
34605
|
-
if (i.type === "attributes" && i.attributeName ===
|
|
34606
|
-
const n = this.context.domElement.getAttribute(
|
|
34605
|
+
if (i.type === "attributes" && i.attributeName === Ad) {
|
|
34606
|
+
const n = this.context.domElement.getAttribute(Ad);
|
|
34607
34607
|
n !== null && this.trySelectSceneFromValue(n);
|
|
34608
34608
|
}
|
|
34609
34609
|
})), this._engineElementOverserver.observe(this.context.domElement, {
|
|
34610
34610
|
attributes: !0
|
|
34611
|
-
}), this._preloadScheduler || (this._preloadScheduler = new
|
|
34612
|
-
const e = this.context.domElement.getAttribute(
|
|
34611
|
+
}), this._preloadScheduler || (this._preloadScheduler = new BE(this)), this._preloadScheduler.maxLoadAhead = this.preloadNext, this._preloadScheduler.maxLoadBehind = this.preloadPrevious, this._preloadScheduler.maxConcurrent = this.preloadConcurrent, this._preloadScheduler.begin(2e3), this.autoLoadFirstScene && this._currentIndex === -1 && !await this.tryLoadFromQueryParam()) {
|
|
34612
|
+
const e = this.context.domElement.getAttribute(Ad);
|
|
34613
34613
|
try {
|
|
34614
34614
|
(e === null || !await this.trySelectSceneFromValue(e)) && this._currentIndex === -1 && this.select(0);
|
|
34615
34615
|
} finally {
|
|
@@ -34788,7 +34788,7 @@ class ot extends L {
|
|
|
34788
34788
|
if (!e.asset)
|
|
34789
34789
|
return Lt && console.warn("Failed loading scene:", e), !1;
|
|
34790
34790
|
if (this._currentIndex === i) {
|
|
34791
|
-
if (Lt && console.log("ADD", e.url), this._currentScene = e,
|
|
34791
|
+
if (Lt && console.log("ADD", e.url), this._currentScene = e, jE) {
|
|
34792
34792
|
const m = ((a = this.context.mainCameraComponent) == null ? void 0 : a.gameObject) || this.context.mainCamera;
|
|
34793
34793
|
m == null || m.removeFromParent();
|
|
34794
34794
|
const g = this.gameObject.removeFromParent();
|
|
@@ -34969,7 +34969,7 @@ function Fb(s) {
|
|
|
34969
34969
|
const t = s.split("/").pop(), e = t == null ? void 0 : t.split(".").shift();
|
|
34970
34970
|
return e != null && e.length ? e : s;
|
|
34971
34971
|
}
|
|
34972
|
-
class
|
|
34972
|
+
class BE {
|
|
34973
34973
|
/**
|
|
34974
34974
|
* Creates a new PreLoadScheduler instance
|
|
34975
34975
|
* @param rooms The SceneSwitcher that this scheduler belongs to
|
|
@@ -35015,7 +35015,7 @@ class BA {
|
|
|
35015
35015
|
const d = c ? e + i : e - i;
|
|
35016
35016
|
if (!(d < 0) && !(d < 0 || d >= o.length) && !this._loadTasks.some((u) => u.index === d)) {
|
|
35017
35017
|
const u = o[d];
|
|
35018
|
-
Lt && console.log("Preload scene", { roomIndex: d, searchForward: c, lastRoom: e, currentIndex: this._switcher.currentIndex, tasks: this._loadTasks.length }, u == null ? void 0 : u.url), new
|
|
35018
|
+
Lt && console.log("Preload scene", { roomIndex: d, searchForward: c, lastRoom: e, currentIndex: this._switcher.currentIndex, tasks: this._loadTasks.length }, u == null ? void 0 : u.url), new FE(d, u, this._loadTasks);
|
|
35019
35019
|
}
|
|
35020
35020
|
}, 200);
|
|
35021
35021
|
}
|
|
@@ -35045,7 +35045,7 @@ class BA {
|
|
|
35045
35045
|
return !0;
|
|
35046
35046
|
}
|
|
35047
35047
|
}
|
|
35048
|
-
class
|
|
35048
|
+
class FE {
|
|
35049
35049
|
/**
|
|
35050
35050
|
* Creates a new LoadTask and begins loading immediately
|
|
35051
35051
|
* @param index The index of the scene in the scenes array
|
|
@@ -35070,7 +35070,7 @@ class FA {
|
|
|
35070
35070
|
t >= 0 && this.tasks.splice(t, 1);
|
|
35071
35071
|
}
|
|
35072
35072
|
}
|
|
35073
|
-
function
|
|
35073
|
+
function zE() {
|
|
35074
35074
|
return new Promise((s, t) => {
|
|
35075
35075
|
const i = () => {
|
|
35076
35076
|
i != null && (document.removeEventListener("pointerdown", i), document.removeEventListener("click", i), document.removeEventListener("dragstart", i), document.removeEventListener("touchstart", i), s());
|
|
@@ -35078,13 +35078,13 @@ function zA() {
|
|
|
35078
35078
|
document.addEventListener("pointerdown", i), document.addEventListener("click", i), document.addEventListener("dragstart", i), document.addEventListener("touchstart", i);
|
|
35079
35079
|
});
|
|
35080
35080
|
}
|
|
35081
|
-
async function
|
|
35082
|
-
await
|
|
35081
|
+
async function UE(s) {
|
|
35082
|
+
await zE(), s();
|
|
35083
35083
|
}
|
|
35084
|
-
var
|
|
35085
|
-
for (var n = i > 1 ? void 0 : i ? $
|
|
35084
|
+
var NE = Object.defineProperty, $E = Object.getOwnPropertyDescriptor, Fi = (s, t, e, i) => {
|
|
35085
|
+
for (var n = i > 1 ? void 0 : i ? $E(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
35086
35086
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
35087
|
-
return i && n &&
|
|
35087
|
+
return i && n && NE(t, e, n), n;
|
|
35088
35088
|
};
|
|
35089
35089
|
const ft = x("debugvideo");
|
|
35090
35090
|
var Qw = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.AdjustHeight = 1] = "AdjustHeight", s[s.AdjustWidth = 2] = "AdjustWidth", s))(Qw || {}), Yw = /* @__PURE__ */ ((s) => (s[s.VideoClip = 0] = "VideoClip", s[s.Url = 1] = "Url", s))(Yw || {}), Kw = /* @__PURE__ */ ((s) => (s[s.CameraFarPlane = 0] = "CameraFarPlane", s[s.CameraNearPlane = 1] = "CameraNearPlane", s[s.RenderTexture = 2] = "RenderTexture", s[s.MaterialOverride = 3] = "MaterialOverride", s))(Kw || {});
|
|
@@ -35137,7 +35137,7 @@ class _t extends L {
|
|
|
35137
35137
|
var e;
|
|
35138
35138
|
ft && console.log("HLS: available", this.clip), !(!this.shouldUseM3U || !this.url) && (this._hls || (this._hls = new Hls()), this.videoElement.autoplay = !0, this._hls.loadSource(this.url), this._hls.attachMedia(this.videoElement), (e = this._videoElement) == null || e.play(), ft && console.log("HLS: loaded", this.clip));
|
|
35139
35139
|
});
|
|
35140
|
-
|
|
35140
|
+
UE(() => {
|
|
35141
35141
|
this._receivedInput = !0, this.updateVideoElementSettings();
|
|
35142
35142
|
}), this._targetObjects = [], x("videoscreenspace") && window.addEventListener("keydown", (e) => {
|
|
35143
35143
|
e.key === "f" && (this.screenspace = !this.screenspace);
|
|
@@ -35347,7 +35347,7 @@ class _t extends L {
|
|
|
35347
35347
|
if (e) {
|
|
35348
35348
|
if (!this._videoTexture)
|
|
35349
35349
|
return;
|
|
35350
|
-
this._overlay || (this._overlay = new
|
|
35350
|
+
this._overlay || (this._overlay = new WE(this.context)), this._overlay.add(this._videoTexture);
|
|
35351
35351
|
} else
|
|
35352
35352
|
(i = this._overlay) == null || i.remove(this._videoTexture);
|
|
35353
35353
|
this._overlay && (this._overlay.enabled = e);
|
|
@@ -35495,14 +35495,14 @@ Fi([
|
|
|
35495
35495
|
Fi([
|
|
35496
35496
|
f()
|
|
35497
35497
|
], _t.prototype, "audioOutputMode", 1);
|
|
35498
|
-
class
|
|
35498
|
+
class WE {
|
|
35499
35499
|
constructor(t) {
|
|
35500
35500
|
r(this, "context");
|
|
35501
35501
|
r(this, "_videos", []);
|
|
35502
35502
|
r(this, "_screenspaceModeQuad");
|
|
35503
35503
|
r(this, "_isInScreenspaceMode", !1);
|
|
35504
35504
|
r(this, "_input");
|
|
35505
|
-
this.context = t, this._input = new
|
|
35505
|
+
this.context = t, this._input = new VE(this);
|
|
35506
35506
|
}
|
|
35507
35507
|
get enabled() {
|
|
35508
35508
|
return this._isInScreenspaceMode;
|
|
@@ -35527,8 +35527,8 @@ class WA {
|
|
|
35527
35527
|
if (!t)
|
|
35528
35528
|
return;
|
|
35529
35529
|
if (this._isInScreenspaceMode = !0, !this._screenspaceModeQuad) {
|
|
35530
|
-
if (this._screenspaceModeQuad =
|
|
35531
|
-
material: new
|
|
35530
|
+
if (this._screenspaceModeQuad = Er.createPrimitive(Ua.Quad, {
|
|
35531
|
+
material: new HE(t)
|
|
35532
35532
|
}), !this._screenspaceModeQuad)
|
|
35533
35533
|
return;
|
|
35534
35534
|
this._screenspaceModeQuad.geometry.scale(2, 2, 2);
|
|
@@ -35548,7 +35548,7 @@ class WA {
|
|
|
35548
35548
|
t && (t.screenAspect = this.context.domElement.clientWidth / this.context.domElement.clientHeight);
|
|
35549
35549
|
}
|
|
35550
35550
|
}
|
|
35551
|
-
class
|
|
35551
|
+
class VE {
|
|
35552
35552
|
constructor(t) {
|
|
35553
35553
|
r(this, "_onResizeScreenFn");
|
|
35554
35554
|
r(this, "_onKeyUpFn");
|
|
@@ -35601,7 +35601,7 @@ class VA {
|
|
|
35601
35601
|
this._onResizeScreenFn && (window.removeEventListener("resize", this._onResizeScreenFn), this._onResizeScreenFn = void 0), this._onKeyUpFn && (window.removeEventListener("keyup", this._onKeyUpFn), this._onKeyUpFn = void 0), this._onMouseWheelFn && (window.removeEventListener("wheel", this._onMouseWheelFn), this._onMouseWheelFn = void 0);
|
|
35602
35602
|
}
|
|
35603
35603
|
}
|
|
35604
|
-
class
|
|
35604
|
+
class HE extends wn {
|
|
35605
35605
|
// maxZoom : number = 10
|
|
35606
35606
|
constructor(e) {
|
|
35607
35607
|
super();
|
|
@@ -35687,10 +35687,10 @@ class HA extends wn {
|
|
|
35687
35687
|
this.offset = this.offset.set(0, 0), this.zoom = 1, this.needsUpdate = !0;
|
|
35688
35688
|
}
|
|
35689
35689
|
}
|
|
35690
|
-
var
|
|
35691
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
35690
|
+
var GE = Object.defineProperty, qE = Object.getOwnPropertyDescriptor, Ch = (s, t, e, i) => {
|
|
35691
|
+
for (var n = i > 1 ? void 0 : i ? qE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
35692
35692
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
35693
|
-
return i && n &&
|
|
35693
|
+
return i && n && GE(t, e, n), n;
|
|
35694
35694
|
};
|
|
35695
35695
|
const Pt = x("debugscreensharing");
|
|
35696
35696
|
var Zw = /* @__PURE__ */ ((s) => (s[s.Screen = 0] = "Screen", s[s.Camera = 1] = "Camera", s[s.Canvas = 2] = "Canvas", s[s.Microphone = 3] = "Microphone", s))(Zw || {});
|
|
@@ -35988,10 +35988,10 @@ Ch([
|
|
|
35988
35988
|
Ch([
|
|
35989
35989
|
f()
|
|
35990
35990
|
], Nr.prototype, "deviceName", 2);
|
|
35991
|
-
var
|
|
35992
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
35991
|
+
var XE = Object.defineProperty, QE = Object.getOwnPropertyDescriptor, Jw = (s, t, e, i) => {
|
|
35992
|
+
for (var n = i > 1 ? void 0 : i ? QE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
35993
35993
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
35994
|
-
return i && n &&
|
|
35994
|
+
return i && n && XE(t, e, n), n;
|
|
35995
35995
|
};
|
|
35996
35996
|
class ff extends L {
|
|
35997
35997
|
constructor() {
|
|
@@ -36005,7 +36005,7 @@ class ff extends L {
|
|
|
36005
36005
|
if (this.gameObject instanceof q)
|
|
36006
36006
|
this.gameObject instanceof q && this.gameObject.material && (this.gameObject.material = this.gameObject.material.clone(), this.targetMesh = this.gameObject, this.targetMesh.receiveShadow = !0);
|
|
36007
36007
|
else {
|
|
36008
|
-
const e =
|
|
36008
|
+
const e = Er.createPrimitive(Ua.Quad, {
|
|
36009
36009
|
name: "ShadowCatcher",
|
|
36010
36010
|
material: new Tt({
|
|
36011
36011
|
// HACK heuristic to get approx. the same colors out as with the current default ShadowCatcher material
|
|
@@ -36093,10 +36093,10 @@ Jw([
|
|
|
36093
36093
|
Jw([
|
|
36094
36094
|
f(ce)
|
|
36095
36095
|
], ff.prototype, "shadowColor", 2);
|
|
36096
|
-
var
|
|
36097
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
36096
|
+
var YE = Object.defineProperty, KE = Object.getOwnPropertyDescriptor, Ph = (s, t, e, i) => {
|
|
36097
|
+
for (var n = i > 1 ? void 0 : i ? KE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
36098
36098
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
36099
|
-
return i && n &&
|
|
36099
|
+
return i && n && YE(t, e, n), n;
|
|
36100
36100
|
};
|
|
36101
36101
|
const Qi = x("debugskybox");
|
|
36102
36102
|
yy("skybox-image");
|
|
@@ -36136,15 +36136,15 @@ function Ub(s) {
|
|
|
36136
36136
|
const e = ex().find((i) => i.src === s);
|
|
36137
36137
|
return e ? (Qi && console.log("Skybox: Found previously loaded texture for " + s), e.texture) : null;
|
|
36138
36138
|
}
|
|
36139
|
-
async function
|
|
36139
|
+
async function ZE(s) {
|
|
36140
36140
|
const t = await s;
|
|
36141
|
-
tv(t, !0),
|
|
36141
|
+
tv(t, !0), Ae(t);
|
|
36142
36142
|
}
|
|
36143
|
-
function
|
|
36143
|
+
function JE(s, t) {
|
|
36144
36144
|
const e = ex();
|
|
36145
36145
|
for (; e.length > 5; ) {
|
|
36146
36146
|
const i = e.shift();
|
|
36147
|
-
i &&
|
|
36147
|
+
i && ZE(i.texture);
|
|
36148
36148
|
}
|
|
36149
36149
|
t.then((i) => tv(i, !1)), e.push({ src: s, texture: t });
|
|
36150
36150
|
}
|
|
@@ -36234,7 +36234,7 @@ class zs extends L {
|
|
|
36234
36234
|
*/
|
|
36235
36235
|
async setSkybox(e, i) {
|
|
36236
36236
|
var a;
|
|
36237
|
-
if (!this.activeAndEnabled || (e =
|
|
36237
|
+
if (!this.activeAndEnabled || (e = eA(e, this.environment, this.background), !e))
|
|
36238
36238
|
return !1;
|
|
36239
36239
|
if (i ?? (i = e), this.isValidTextureType(i) || console.warn("Potentially invalid skybox url", i, "on", this.name), Qi && console.log("Set remote skybox url: " + e), this._prevUrl === e && this._prevLoadedEnvironment)
|
|
36240
36240
|
return this.applySkybox(), !0;
|
|
@@ -36271,7 +36271,7 @@ class zs extends L {
|
|
|
36271
36271
|
this._loader instanceof xa || (this._loader = new xa());
|
|
36272
36272
|
Qi && console.log("Loading skybox: " + e);
|
|
36273
36273
|
const c = this._loader.loadAsync(e);
|
|
36274
|
-
return
|
|
36274
|
+
return JE(i, c), await c;
|
|
36275
36275
|
}
|
|
36276
36276
|
applySkybox() {
|
|
36277
36277
|
var i;
|
|
@@ -36310,7 +36310,7 @@ Ph([
|
|
|
36310
36310
|
Ph([
|
|
36311
36311
|
f()
|
|
36312
36312
|
], zs.prototype, "allowNetworking", 2);
|
|
36313
|
-
function
|
|
36313
|
+
function eA(s, t, e) {
|
|
36314
36314
|
const i = t && !e;
|
|
36315
36315
|
switch (s == null ? void 0 : s.toLowerCase()) {
|
|
36316
36316
|
case "studio":
|
|
@@ -36324,10 +36324,10 @@ function eE(s, t, e) {
|
|
|
36324
36324
|
}
|
|
36325
36325
|
return s === void 0 ? null : s;
|
|
36326
36326
|
}
|
|
36327
|
-
var
|
|
36328
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
36327
|
+
var tA = Object.defineProperty, iA = Object.getOwnPropertyDescriptor, pf = (s, t, e, i) => {
|
|
36328
|
+
for (var n = i > 1 ? void 0 : i ? iA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
36329
36329
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
36330
|
-
return i && n &&
|
|
36330
|
+
return i && n && tA(t, e, n), n;
|
|
36331
36331
|
}, Wp;
|
|
36332
36332
|
const tx = (Wp = class extends L {
|
|
36333
36333
|
constructor() {
|
|
@@ -36374,16 +36374,16 @@ pf([
|
|
|
36374
36374
|
pf([
|
|
36375
36375
|
f()
|
|
36376
36376
|
], $r.prototype, "positionAxes", 2);
|
|
36377
|
-
var
|
|
36378
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
36377
|
+
var nA = Object.defineProperty, sA = Object.getOwnPropertyDescriptor, Oh = (s, t, e, i) => {
|
|
36378
|
+
for (var n = i > 1 ? void 0 : i ? sA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
36379
36379
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
36380
|
-
return i && n &&
|
|
36380
|
+
return i && n && nA(t, e, n), n;
|
|
36381
36381
|
};
|
|
36382
36382
|
const xc = x("debugspatialtrigger"), Nb = new Co(), $b = new Co();
|
|
36383
|
-
function
|
|
36383
|
+
function oA(s, t) {
|
|
36384
36384
|
return Nb.mask = s, $b.mask = t, Nb.test($b);
|
|
36385
36385
|
}
|
|
36386
|
-
class
|
|
36386
|
+
class Es extends L {
|
|
36387
36387
|
constructor() {
|
|
36388
36388
|
super(...arguments);
|
|
36389
36389
|
r(this, "triggerMask", 0);
|
|
@@ -36410,7 +36410,7 @@ class As extends L {
|
|
|
36410
36410
|
update() {
|
|
36411
36411
|
this.currentIntersected.length = 0;
|
|
36412
36412
|
for (const e of mf.triggers)
|
|
36413
|
-
|
|
36413
|
+
oA(e.triggerMask, this.triggerMask) && e.test(this.gameObject) && this.currentIntersected.push(e);
|
|
36414
36414
|
for (let e = this.lastIntersected.length - 1; e >= 0; e--) {
|
|
36415
36415
|
const i = this.lastIntersected[e];
|
|
36416
36416
|
this.currentIntersected.indexOf(i) < 0 && (this.onExitTrigger(i), this.lastIntersected.splice(e, 1));
|
|
@@ -36446,16 +36446,16 @@ class As extends L {
|
|
|
36446
36446
|
}
|
|
36447
36447
|
Oh([
|
|
36448
36448
|
f()
|
|
36449
|
-
],
|
|
36449
|
+
], Es.prototype, "triggerMask", 2);
|
|
36450
36450
|
Oh([
|
|
36451
36451
|
f(xe)
|
|
36452
|
-
],
|
|
36452
|
+
], Es.prototype, "onEnter", 2);
|
|
36453
36453
|
Oh([
|
|
36454
36454
|
f(xe)
|
|
36455
|
-
],
|
|
36455
|
+
], Es.prototype, "onStay", 2);
|
|
36456
36456
|
Oh([
|
|
36457
36457
|
f(xe)
|
|
36458
|
-
],
|
|
36458
|
+
], Es.prototype, "onExit", 2);
|
|
36459
36459
|
var Vp;
|
|
36460
36460
|
const Id = (Vp = class extends L {
|
|
36461
36461
|
constructor() {
|
|
@@ -36498,7 +36498,7 @@ const Id = (Vp = class extends L {
|
|
|
36498
36498
|
*/
|
|
36499
36499
|
raiseOnEnterEvent(t) {
|
|
36500
36500
|
S.foreachComponent(this.gameObject, (e) => {
|
|
36501
|
-
e !== t && e instanceof
|
|
36501
|
+
e !== t && e instanceof Es && e.onEnterTrigger(this);
|
|
36502
36502
|
}, !1);
|
|
36503
36503
|
}
|
|
36504
36504
|
/**
|
|
@@ -36507,7 +36507,7 @@ const Id = (Vp = class extends L {
|
|
|
36507
36507
|
*/
|
|
36508
36508
|
raiseOnStayEvent(t) {
|
|
36509
36509
|
S.foreachComponent(this.gameObject, (e) => {
|
|
36510
|
-
e !== t && e instanceof
|
|
36510
|
+
e !== t && e instanceof Es && e.onStayTrigger(this);
|
|
36511
36511
|
}, !1);
|
|
36512
36512
|
}
|
|
36513
36513
|
/**
|
|
@@ -36516,7 +36516,7 @@ const Id = (Vp = class extends L {
|
|
|
36516
36516
|
*/
|
|
36517
36517
|
raiseOnExitEvent(t) {
|
|
36518
36518
|
S.foreachComponent(this.gameObject, (e) => {
|
|
36519
|
-
e !== t && e instanceof
|
|
36519
|
+
e !== t && e instanceof Es && e.onExitTrigger(this);
|
|
36520
36520
|
}, !1);
|
|
36521
36521
|
}
|
|
36522
36522
|
}, /** Global registry of all active spatial triggers in the scene */
|
|
@@ -36525,10 +36525,10 @@ let mf = Id;
|
|
|
36525
36525
|
Oh([
|
|
36526
36526
|
f()
|
|
36527
36527
|
], mf.prototype, "triggerMask", 2);
|
|
36528
|
-
var
|
|
36529
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
36528
|
+
var rA = Object.defineProperty, aA = Object.getOwnPropertyDescriptor, lA = (s, t, e, i) => {
|
|
36529
|
+
for (var n = i > 1 ? void 0 : i ? aA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
36530
36530
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
36531
|
-
return i && n &&
|
|
36531
|
+
return i && n && rA(t, e, n), n;
|
|
36532
36532
|
};
|
|
36533
36533
|
const Si = x("debugspectator");
|
|
36534
36534
|
class _y extends L {
|
|
@@ -36622,11 +36622,11 @@ class _y extends L {
|
|
|
36622
36622
|
return this.isSpectating && ((e = this.target) == null ? void 0 : e.currentObject) === ((i = this.context.players.getPlayerView(this.localId)) == null ? void 0 : i.currentObject);
|
|
36623
36623
|
}
|
|
36624
36624
|
awake() {
|
|
36625
|
-
if (this._debug = new
|
|
36625
|
+
if (this._debug = new dA(this.context, this), this._networking = new pA(this.context, this), this._networking.awake(), S.setActive(this.gameObject, !1), this.cam = S.getComponent(this.gameObject, Pe), !this.cam) {
|
|
36626
36626
|
console.warn("SpectatorCamera: Spectator camera needs camera component on the same object.", this);
|
|
36627
36627
|
return;
|
|
36628
36628
|
}
|
|
36629
|
-
!this._handler && this.cam && (this._handler = new
|
|
36629
|
+
!this._handler && this.cam && (this._handler = new cA(this.context, this.cam, this)), this.orbit = S.getComponent(this.context.mainCamera, we);
|
|
36630
36630
|
}
|
|
36631
36631
|
onDestroy() {
|
|
36632
36632
|
var e, i;
|
|
@@ -36734,10 +36734,10 @@ class _y extends L {
|
|
|
36734
36734
|
}
|
|
36735
36735
|
}
|
|
36736
36736
|
}
|
|
36737
|
-
|
|
36737
|
+
lA([
|
|
36738
36738
|
f()
|
|
36739
36739
|
], _y.prototype, "useKeys", 2);
|
|
36740
|
-
class
|
|
36740
|
+
class cA {
|
|
36741
36741
|
constructor(t, e, i) {
|
|
36742
36742
|
r(this, "context");
|
|
36743
36743
|
r(this, "cam");
|
|
@@ -36799,12 +36799,12 @@ class cE {
|
|
|
36799
36799
|
this.follow.followFactor = 3, this.follow.rotateFactor = 2, i.position.set(0, 0.5, 1.5);
|
|
36800
36800
|
break;
|
|
36801
36801
|
}
|
|
36802
|
-
this.follow.flipForward = !1, ((h = this.view) == null ? void 0 : h.viewDevice) !== pr.Browser ? i.quaternion.copy(
|
|
36802
|
+
this.follow.flipForward = !1, ((h = this.view) == null ? void 0 : h.viewDevice) !== pr.Browser ? i.quaternion.copy(hA) : i.quaternion.identity();
|
|
36803
36803
|
}
|
|
36804
36804
|
}
|
|
36805
36805
|
}
|
|
36806
|
-
const
|
|
36807
|
-
class
|
|
36806
|
+
const hA = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
|
|
36807
|
+
class dA {
|
|
36808
36808
|
constructor(t, e) {
|
|
36809
36809
|
r(this, "context");
|
|
36810
36810
|
r(this, "spectator");
|
|
@@ -36841,7 +36841,7 @@ class dE {
|
|
|
36841
36841
|
}
|
|
36842
36842
|
}
|
|
36843
36843
|
}
|
|
36844
|
-
class
|
|
36844
|
+
class uA {
|
|
36845
36845
|
constructor(t, e, i) {
|
|
36846
36846
|
/** The user ID that is following */
|
|
36847
36847
|
r(this, "guid");
|
|
@@ -36853,14 +36853,14 @@ class uE {
|
|
|
36853
36853
|
this.guid = t, this.targetUserId = e, this.stoppedFollowing = i;
|
|
36854
36854
|
}
|
|
36855
36855
|
}
|
|
36856
|
-
class
|
|
36856
|
+
class fA {
|
|
36857
36857
|
constructor(t, e) {
|
|
36858
36858
|
r(this, "guid");
|
|
36859
36859
|
r(this, "userId");
|
|
36860
36860
|
this.guid = t.guid, this.userId = e;
|
|
36861
36861
|
}
|
|
36862
36862
|
}
|
|
36863
|
-
class
|
|
36863
|
+
class pA {
|
|
36864
36864
|
constructor(t, e) {
|
|
36865
36865
|
/** List of user IDs currently following this player */
|
|
36866
36866
|
r(this, "followers", []);
|
|
@@ -36894,7 +36894,7 @@ class pE {
|
|
|
36894
36894
|
*/
|
|
36895
36895
|
onSpectatedObjectChanged(t, e) {
|
|
36896
36896
|
if (Si && console.log(this.context.connection.connectionId, "onSpectatedObjectChanged", t, e), this.context.connection.connectionId) {
|
|
36897
|
-
const i = (t == null ? void 0 : t.userId) === void 0, n = i ? e : t == null ? void 0 : t.userId, o = new
|
|
36897
|
+
const i = (t == null ? void 0 : t.userId) === void 0, n = i ? e : t == null ? void 0 : t.userId, o = new uA(this.context.connection.connectionId, n, i);
|
|
36898
36898
|
this.context.connection.send("spectator-follower-changed", o);
|
|
36899
36899
|
}
|
|
36900
36900
|
}
|
|
@@ -36905,7 +36905,7 @@ class pE {
|
|
|
36905
36905
|
onRequestFollowMe(t = !1) {
|
|
36906
36906
|
if (Si && console.log("Request follow", this.context.connection.connectionId), this.context.connection.connectionId) {
|
|
36907
36907
|
this.spectator.stopSpectating();
|
|
36908
|
-
const e = t ? void 0 : this.context.connection.connectionId, i = new
|
|
36908
|
+
const e = t ? void 0 : this.context.connection.connectionId, i = new fA(this.spectator, e);
|
|
36909
36909
|
this.context.connection.send("spectator-request-follow", i);
|
|
36910
36910
|
}
|
|
36911
36911
|
}
|
|
@@ -37027,15 +37027,15 @@ class Bn {
|
|
|
37027
37027
|
t.finish(e, void 0, !0);
|
|
37028
37028
|
}
|
|
37029
37029
|
}
|
|
37030
|
-
var
|
|
37031
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
37030
|
+
var mA = Object.defineProperty, gA = Object.getOwnPropertyDescriptor, yA = (s, t, e, i) => {
|
|
37031
|
+
for (var n = i > 1 ? void 0 : i ? gA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
37032
37032
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
37033
|
-
return i && n &&
|
|
37033
|
+
return i && n && mA(t, e, n), n;
|
|
37034
37034
|
};
|
|
37035
37035
|
const lu = "SCAM";
|
|
37036
37036
|
Q0(lu, Bn.getRootAsSyncedCameraModel);
|
|
37037
37037
|
const mi = new pg();
|
|
37038
|
-
class
|
|
37038
|
+
class _A {
|
|
37039
37039
|
// dontSave: boolean = true;
|
|
37040
37040
|
// pos: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
|
|
37041
37041
|
// rot: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
|
|
@@ -37105,7 +37105,7 @@ const Km = (Hp = class extends L {
|
|
|
37105
37105
|
}
|
|
37106
37106
|
if (!this.context.connection.isConnected || this.context.connection.connectionId === null)
|
|
37107
37107
|
return;
|
|
37108
|
-
this._model === null && (this._model = new
|
|
37108
|
+
this._model === null && (this._model = new _A(this.context.connection.connectionId, this.context.connection.connectionId + "_camera"));
|
|
37109
37109
|
const e = ie(t), i = Ce(t);
|
|
37110
37110
|
(e.distanceTo(this._lastWorldPosition) > 1e-3 || i.angleTo(this._lastWorldQuaternion) > 0.01) && (this._needsUpdate = !0), this._lastWorldPosition.copy(e), this._lastWorldQuaternion.copy(i), !((!this._needsUpdate || this.context.time.frameCount % 2 !== 0) && !(this.context.time.realtimeSinceStartup - this._lastUpdateTime > this._camTimeoutInSeconds * 0.5)) && (this._lastUpdateTime = this.context.time.realtimeSinceStartup, this._needsUpdate = !1, this._model.send(t, this.context.connection), this.context.isInXR || this.context.players.setPlayerView(this.context.connection.connectionId, t, pr.Browser));
|
|
37111
37111
|
}
|
|
@@ -37136,15 +37136,15 @@ const Km = (Hp = class extends L {
|
|
|
37136
37136
|
}
|
|
37137
37137
|
}, r(Hp, "instances", []), Hp);
|
|
37138
37138
|
let by = Km;
|
|
37139
|
-
|
|
37139
|
+
yA([
|
|
37140
37140
|
f([I, re])
|
|
37141
37141
|
], by.prototype, "cameraPrefab", 2);
|
|
37142
|
-
var
|
|
37143
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
37142
|
+
var bA = Object.defineProperty, vA = Object.getOwnPropertyDescriptor, Fo = (s, t, e, i) => {
|
|
37143
|
+
for (var n = i > 1 ? void 0 : i ? vA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
37144
37144
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
37145
|
-
return i && n &&
|
|
37145
|
+
return i && n && bA(t, e, n), n;
|
|
37146
37146
|
};
|
|
37147
|
-
const Tp = "view",
|
|
37147
|
+
const Tp = "view", Ep = x("debugsyncedroom");
|
|
37148
37148
|
class is extends L {
|
|
37149
37149
|
constructor() {
|
|
37150
37150
|
super(...arguments);
|
|
@@ -37198,7 +37198,7 @@ class is extends L {
|
|
|
37198
37198
|
/** @internal */
|
|
37199
37199
|
awake() {
|
|
37200
37200
|
var e;
|
|
37201
|
-
this.joinRandomRoom === void 0 && ((e = this.roomName) == null ? void 0 : e.length) <= 0 && (this.joinRandomRoom = !0),
|
|
37201
|
+
this.joinRandomRoom === void 0 && ((e = this.roomName) == null ? void 0 : e.length) <= 0 && (this.joinRandomRoom = !0), Ep && console.log(`SyncedRoom roomName:${this.roomName}, urlParamName:${this.urlParameterName}, joinRandomRoom:${this.joinRandomRoom}`);
|
|
37202
37202
|
}
|
|
37203
37203
|
/** @internal */
|
|
37204
37204
|
onEnable() {
|
|
@@ -37241,12 +37241,12 @@ class is extends L {
|
|
|
37241
37241
|
return this.tryJoinRoom(e + 1);
|
|
37242
37242
|
} else
|
|
37243
37243
|
this.joinRandomRoom && (this.roomName === null || this.roomName === void 0 || this.roomName.length <= 0) && (this.roomName = this.generateRoomName());
|
|
37244
|
-
return this.requireRoomParameter && !i ? ((
|
|
37244
|
+
return this.requireRoomParameter && !i ? ((Ep || B()) && console.warn('[SyncedRoom] Missing required room parameter "' + this.urlParameterName + `" in url - will not connect.
|
|
37245
37245
|
To allow joining a room without a query parameter you can set "requireRoomParameter" to false.`), !1) : (this.context.connection.isConnected || this.context.connection.connect(), this._lastJoinedRoom = this.roomName, this._roomPrefix && (this.roomName = this._roomPrefix + this.roomName), this.roomName.length <= 0 ? (console.warn(`[SyncedRoom] Room name is not set so we can not join a networked room.
|
|
37246
37246
|
Please choose one of the following options to fix this:
|
|
37247
37247
|
A) Set a room name in the SyncedRoom component
|
|
37248
37248
|
B) Set a room name in the URL parameter "?` + this.urlParameterName + `=my_room"
|
|
37249
|
-
C) Set "joinRandomRoom" to true`), !1) : (
|
|
37249
|
+
C) Set "joinRandomRoom" to true`), !1) : (Ep && console.log("Join " + this.roomName), this._userWantsToBeInARoom = !0, this.context.connection.joinRoom(this.roomName), !0));
|
|
37250
37250
|
}
|
|
37251
37251
|
/** @internal */
|
|
37252
37252
|
update() {
|
|
@@ -37323,11 +37323,11 @@ Fo([
|
|
|
37323
37323
|
Fo([
|
|
37324
37324
|
f()
|
|
37325
37325
|
], is.prototype, "roomPrefix", 1);
|
|
37326
|
-
function
|
|
37326
|
+
function wA() {
|
|
37327
37327
|
const s = x("testwindowcount") || 0;
|
|
37328
|
-
s && s > 0 &&
|
|
37328
|
+
s && s > 0 && xA(s);
|
|
37329
37329
|
}
|
|
37330
|
-
function
|
|
37330
|
+
function xA(s) {
|
|
37331
37331
|
if (x("testwindow"))
|
|
37332
37332
|
return null;
|
|
37333
37333
|
const t = new URL(window.location.href);
|
|
@@ -37362,7 +37362,7 @@ function xE(s) {
|
|
|
37362
37362
|
}
|
|
37363
37363
|
class ix extends L {
|
|
37364
37364
|
awake() {
|
|
37365
|
-
|
|
37365
|
+
wA();
|
|
37366
37366
|
}
|
|
37367
37367
|
}
|
|
37368
37368
|
class nx extends L {
|
|
@@ -37429,12 +37429,12 @@ class sx {
|
|
|
37429
37429
|
}
|
|
37430
37430
|
}
|
|
37431
37431
|
r(sx, "temp", new v());
|
|
37432
|
-
var
|
|
37433
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
37432
|
+
var SA = Object.defineProperty, CA = Object.getOwnPropertyDescriptor, gf = (s, t, e, i) => {
|
|
37433
|
+
for (var n = i > 1 ? void 0 : i ? CA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
37434
37434
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
37435
|
-
return i && n &&
|
|
37435
|
+
return i && n && SA(t, e, n), n;
|
|
37436
37436
|
};
|
|
37437
|
-
const
|
|
37437
|
+
const PA = x("debugsignals");
|
|
37438
37438
|
class vy {
|
|
37439
37439
|
constructor() {
|
|
37440
37440
|
r(this, "guid");
|
|
@@ -37472,7 +37472,7 @@ const us = (Gp = class extends L {
|
|
|
37472
37472
|
}
|
|
37473
37473
|
/** @internal */
|
|
37474
37474
|
awake() {
|
|
37475
|
-
|
|
37475
|
+
PA && console.log("SignalReceiver awake", this);
|
|
37476
37476
|
}
|
|
37477
37477
|
/** @internal */
|
|
37478
37478
|
onEnable() {
|
|
@@ -37577,7 +37577,7 @@ class _f {
|
|
|
37577
37577
|
return 0;
|
|
37578
37578
|
}
|
|
37579
37579
|
}
|
|
37580
|
-
class
|
|
37580
|
+
class OA {
|
|
37581
37581
|
constructor(t) {
|
|
37582
37582
|
r(this, "clip");
|
|
37583
37583
|
r(this, "rootPositionOffset");
|
|
@@ -37685,7 +37685,7 @@ class wy extends _f {
|
|
|
37685
37685
|
if (!this._didBind) {
|
|
37686
37686
|
this._didBind = !0, $n && console.log(this.models), this.mixer ? this.target = this.mixer.getRoot() : console.warn("No mixer was assigned to animation track");
|
|
37687
37687
|
for (const e of this.actions) {
|
|
37688
|
-
const i = new
|
|
37688
|
+
const i = new OA(e);
|
|
37689
37689
|
this._actionOffsets.push(i);
|
|
37690
37690
|
}
|
|
37691
37691
|
this.target && (this._animator = S.getComponent(this.target, Ut) ?? null, this._animator && ib(this._animator.gameObject, this, !0));
|
|
@@ -37714,10 +37714,10 @@ class wy extends _f {
|
|
|
37714
37714
|
const _ = this.models[y], b = this.actions[y], w = _.asset;
|
|
37715
37715
|
b.weight = 0;
|
|
37716
37716
|
const C = e >= _.start && e <= _.end, k = _.preExtrapolationMode, O = _.postExtrapolationMode, R = y < this.clips.length - 1 ? this.models[y + 1] : null;
|
|
37717
|
-
let
|
|
37718
|
-
if (!
|
|
37719
|
-
let
|
|
37720
|
-
|
|
37717
|
+
let A = C, F = !1;
|
|
37718
|
+
if (!A && !o && _.end < e && O !== fs.None ? (!R || R.start > e) && (A = !0, o = !0) : y == 0 && !A && !a && _.start > e && k !== fs.None && (!R || R.start < e) && (A = !0, F = !0, a = !0), A) {
|
|
37719
|
+
let E = this.weight;
|
|
37720
|
+
E *= this.evaluateWeight(e, y, this.models, A), E *= this.director.weight;
|
|
37721
37721
|
let z = C;
|
|
37722
37722
|
if (F)
|
|
37723
37723
|
switch (k) {
|
|
@@ -37750,12 +37750,12 @@ class wy extends _f {
|
|
|
37750
37750
|
break;
|
|
37751
37751
|
}
|
|
37752
37752
|
_.reversed === !0 ? b.time = b.getClip().duration - U : b.time = U, b.timeScale = 0;
|
|
37753
|
-
const j = Math.max(0,
|
|
37753
|
+
const j = Math.max(0, E);
|
|
37754
37754
|
if (b.weight = j, l += j, b.clampWhenFinished = !1, b.isRunning() || b.play(), this._useclipOffsets) {
|
|
37755
37755
|
const H = i == 0 ? this._totalOffsetPosition : this._totalOffsetPosition2, J = i == 0 ? this._totalOffsetRotation : this._totalOffsetRotation2;
|
|
37756
|
-
i < 1 && (n = 1 -
|
|
37756
|
+
i < 1 && (n = 1 - E), i += 1;
|
|
37757
37757
|
const te = this._summedPos.set(0, 0, 0), ae = this._tempPos.set(0, 0, 0), ue = this._summedRot.identity(), De = this._tempRot.identity(), St = w.rotation;
|
|
37758
|
-
St && (this._clipRotQuat.identity(), this._clipRotQuat.slerp(St,
|
|
37758
|
+
St && (this._clipRotQuat.identity(), this._clipRotQuat.slerp(St, E));
|
|
37759
37759
|
const ai = this._actionOffsets[y];
|
|
37760
37760
|
if (ai.hasOffsets)
|
|
37761
37761
|
for (let Wt = 0; Wt < K; Wt++)
|
|
@@ -37806,7 +37806,7 @@ class wy extends _f {
|
|
|
37806
37806
|
};
|
|
37807
37807
|
}
|
|
37808
37808
|
}
|
|
37809
|
-
const
|
|
37809
|
+
const MA = x("mutetimeline"), wa = class extends _f {
|
|
37810
37810
|
constructor() {
|
|
37811
37811
|
super(...arguments);
|
|
37812
37812
|
r(this, "models", []);
|
|
@@ -37868,7 +37868,7 @@ const ME = x("mutetimeline"), wa = class extends _f {
|
|
|
37868
37868
|
this._playableDirectorResumed = this.director.isPlaying;
|
|
37869
37869
|
}
|
|
37870
37870
|
evaluate(e) {
|
|
37871
|
-
if (
|
|
37871
|
+
if (MA || this.track.muted || this.director.speed < 0)
|
|
37872
37872
|
return;
|
|
37873
37873
|
const i = this.director.context.application.muted, n = this._playableDirectorResumed;
|
|
37874
37874
|
this._playableDirectorResumed = !1;
|
|
@@ -37940,8 +37940,8 @@ const ME = x("mutetimeline"), wa = class extends _f {
|
|
|
37940
37940
|
return wa._audioBuffers.set(n, o), o;
|
|
37941
37941
|
}
|
|
37942
37942
|
};
|
|
37943
|
-
let
|
|
37944
|
-
r(
|
|
37943
|
+
let Ea = wa;
|
|
37944
|
+
r(Ea, "_audioBuffers", /* @__PURE__ */ new Map());
|
|
37945
37945
|
class cu extends _f {
|
|
37946
37946
|
constructor() {
|
|
37947
37947
|
super(...arguments);
|
|
@@ -38027,10 +38027,10 @@ class xy extends _f {
|
|
|
38027
38027
|
}
|
|
38028
38028
|
}
|
|
38029
38029
|
}
|
|
38030
|
-
var
|
|
38031
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
38030
|
+
var RA = Object.defineProperty, kA = Object.getOwnPropertyDescriptor, rx = (s, t, e, i) => {
|
|
38031
|
+
for (var n = i > 1 ? void 0 : i ? kA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
38032
38032
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
38033
|
-
return i && n &&
|
|
38033
|
+
return i && n && RA(t, e, n), n;
|
|
38034
38034
|
};
|
|
38035
38035
|
const ls = x("debugtimeline");
|
|
38036
38036
|
var qp;
|
|
@@ -38397,7 +38397,7 @@ const Zm = (qp = class extends L {
|
|
|
38397
38397
|
} else if (o.type === Gi.Audio) {
|
|
38398
38398
|
if (!o.clips || o.clips.length <= 0)
|
|
38399
38399
|
continue;
|
|
38400
|
-
const c = new
|
|
38400
|
+
const c = new Ea();
|
|
38401
38401
|
c.director = this, c.track = o, c.audioSource = o.outputs.find((h) => h instanceof qe), this._audioTracks.push(c), t || (t = (n = this.context.mainCameraComponent) == null ? void 0 : n.gameObject.addComponent(fo)), c.listener = t.listener;
|
|
38402
38402
|
for (let h = 0; h < o.clips.length; h++) {
|
|
38403
38403
|
const d = o.clips[h];
|
|
@@ -38454,10 +38454,10 @@ rx([
|
|
|
38454
38454
|
rx([
|
|
38455
38455
|
f()
|
|
38456
38456
|
], Mr.prototype, "extrapolationMode", 2);
|
|
38457
|
-
var
|
|
38458
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
38457
|
+
var TA = Object.defineProperty, EA = Object.getOwnPropertyDescriptor, bf = (s, t, e, i) => {
|
|
38458
|
+
for (var n = i > 1 ? void 0 : i ? EA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
38459
38459
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
38460
|
-
return i && n &&
|
|
38460
|
+
return i && n && TA(t, e, n), n;
|
|
38461
38461
|
};
|
|
38462
38462
|
class yl extends L {
|
|
38463
38463
|
constructor() {
|
|
@@ -38599,10 +38599,10 @@ bf([
|
|
|
38599
38599
|
bf([
|
|
38600
38600
|
f()
|
|
38601
38601
|
], yl.prototype, "scaleSnap", 2);
|
|
38602
|
-
var
|
|
38603
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
38602
|
+
var AA = Object.defineProperty, IA = Object.getOwnPropertyDescriptor, vf = (s, t, e, i) => {
|
|
38603
|
+
for (var n = i > 1 ? void 0 : i ? IA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
38604
38604
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
38605
|
-
return i && n &&
|
|
38605
|
+
return i && n && AA(t, e, n), n;
|
|
38606
38606
|
};
|
|
38607
38607
|
class Sy {
|
|
38608
38608
|
constructor() {
|
|
@@ -38676,10 +38676,10 @@ class Cy extends sf {
|
|
|
38676
38676
|
vf([
|
|
38677
38677
|
f(Fe)
|
|
38678
38678
|
], Cy.prototype, "mainTexture", 1);
|
|
38679
|
-
var
|
|
38680
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
38679
|
+
var LA = Object.defineProperty, DA = Object.getOwnPropertyDescriptor, zi = (s, t, e, i) => {
|
|
38680
|
+
for (var n = i > 1 ? void 0 : i ? DA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
38681
38681
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
38682
|
-
return i && n &&
|
|
38682
|
+
return i && n && LA(t, e, n), n;
|
|
38683
38683
|
};
|
|
38684
38684
|
const Xo = x("debugbutton");
|
|
38685
38685
|
class zo {
|
|
@@ -38714,7 +38714,7 @@ zi([
|
|
|
38714
38714
|
zi([
|
|
38715
38715
|
f(ce)
|
|
38716
38716
|
], zo.prototype, "selectedColor", 2);
|
|
38717
|
-
class
|
|
38717
|
+
class jA {
|
|
38718
38718
|
constructor() {
|
|
38719
38719
|
r(this, "disabledTrigger");
|
|
38720
38720
|
r(this, "highlightedTrigger");
|
|
@@ -38855,7 +38855,7 @@ zi([
|
|
|
38855
38855
|
f()
|
|
38856
38856
|
], Uo.prototype, "transition", 2);
|
|
38857
38857
|
zi([
|
|
38858
|
-
f(
|
|
38858
|
+
f(jA)
|
|
38859
38859
|
], Uo.prototype, "animationTriggers", 2);
|
|
38860
38860
|
zi([
|
|
38861
38861
|
f(Ut)
|
|
@@ -38863,10 +38863,10 @@ zi([
|
|
|
38863
38863
|
zi([
|
|
38864
38864
|
f()
|
|
38865
38865
|
], Uo.prototype, "interactable", 1);
|
|
38866
|
-
var
|
|
38867
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
38866
|
+
var BA = Object.defineProperty, FA = Object.getOwnPropertyDescriptor, wf = (s, t, e, i) => {
|
|
38867
|
+
for (var n = i > 1 ? void 0 : i ? FA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
38868
38868
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
38869
|
-
return i && n &&
|
|
38869
|
+
return i && n && BA(t, e, n), n;
|
|
38870
38870
|
};
|
|
38871
38871
|
const Js = x("debuginputfield");
|
|
38872
38872
|
var ia;
|
|
@@ -39029,10 +39029,10 @@ wf([
|
|
|
39029
39029
|
wf([
|
|
39030
39030
|
f(xe)
|
|
39031
39031
|
], _l.prototype, "onEndEdit", 2);
|
|
39032
|
-
var
|
|
39033
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
39032
|
+
var zA = Object.defineProperty, UA = Object.getOwnPropertyDescriptor, ax = (s, t, e, i) => {
|
|
39033
|
+
for (var n = i > 1 ? void 0 : i ? UA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
39034
39034
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
39035
|
-
return i && n &&
|
|
39035
|
+
return i && n && zA(t, e, n), n;
|
|
39036
39036
|
};
|
|
39037
39037
|
class xf extends L {
|
|
39038
39038
|
constructor() {
|
|
@@ -39100,7 +39100,7 @@ ax([
|
|
|
39100
39100
|
* See the License for the specific language governing permissions and
|
|
39101
39101
|
* limitations under the License.
|
|
39102
39102
|
*/
|
|
39103
|
-
const
|
|
39103
|
+
const NA = {
|
|
39104
39104
|
topLight: {
|
|
39105
39105
|
intensity: 500,
|
|
39106
39106
|
position: [0.418, 16.199, 0.3]
|
|
@@ -39173,7 +39173,7 @@ const NE = {
|
|
|
39173
39173
|
scale: [1, 0.1, 1]
|
|
39174
39174
|
}
|
|
39175
39175
|
]
|
|
39176
|
-
}, $
|
|
39176
|
+
}, $A = {
|
|
39177
39177
|
topLight: {
|
|
39178
39178
|
intensity: 400,
|
|
39179
39179
|
position: [0.5, 14, 0.5]
|
|
@@ -39257,7 +39257,7 @@ class Py extends Ri {
|
|
|
39257
39257
|
super(), this.position.y = -3.5;
|
|
39258
39258
|
const e = new Ia();
|
|
39259
39259
|
e.deleteAttribute("uv");
|
|
39260
|
-
const i = new Tt({ metalness: 0, side: Ou }), n = new Tt({ metalness: 0 }), o = t == "legacy" ?
|
|
39260
|
+
const i = new Tt({ metalness: 0, side: Ou }), n = new Tt({ metalness: 0 }), o = t == "legacy" ? NA : $A, a = new sg(16777215, o.topLight.intensity, 28, 2);
|
|
39261
39261
|
a.position.set(...o.topLight.position), this.add(a);
|
|
39262
39262
|
const l = new q(e, i);
|
|
39263
39263
|
l.position.set(...o.room.position), l.scale.set(...o.room.scale), this.add(l);
|
|
@@ -39275,10 +39275,10 @@ class Py extends Ri {
|
|
|
39275
39275
|
return e.color.setScalar(t), e;
|
|
39276
39276
|
}
|
|
39277
39277
|
}
|
|
39278
|
-
var
|
|
39279
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
39278
|
+
var WA = Object.defineProperty, VA = Object.getOwnPropertyDescriptor, Sf = (s, t, e, i) => {
|
|
39279
|
+
for (var n = i > 1 ? void 0 : i ? VA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
39280
39280
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
39281
|
-
return i && n &&
|
|
39281
|
+
return i && n && WA(t, e, n), n;
|
|
39282
39282
|
}, Xp;
|
|
39283
39283
|
const lx = (Xp = class extends L {
|
|
39284
39284
|
constructor() {
|
|
@@ -39294,7 +39294,7 @@ const lx = (Xp = class extends L {
|
|
|
39294
39294
|
if (t || (t = this.context.mainCamera), !t)
|
|
39295
39295
|
return;
|
|
39296
39296
|
let e = this.copyTargetRotation;
|
|
39297
|
-
(this.context.isInVR || this.context.isInPassThrough) && (e = !1),
|
|
39297
|
+
(this.context.isInVR || this.context.isInPassThrough) && (e = !1), Au(this.gameObject, t, this.keepUpDirection, e), this.invertForward && this.gameObject.quaternion.multiply(lx.flipYQuat);
|
|
39298
39298
|
}
|
|
39299
39299
|
/** @internal */
|
|
39300
39300
|
createBehaviours(t, e, i) {
|
|
@@ -39306,7 +39306,7 @@ const lx = (Xp = class extends L {
|
|
|
39306
39306
|
const l = this.invertForward ? -1 : 1;
|
|
39307
39307
|
a.setMatrix(a.getMatrix().multiply(new se().makeRotationZ(Math.PI / 2 * l))), e.setMatrix(e.getMatrix().multiply(new se().makeRotationZ(-Math.PI / 2 * l)));
|
|
39308
39308
|
}
|
|
39309
|
-
const o = new
|
|
39309
|
+
const o = new Et(
|
|
39310
39310
|
"lookat " + this.name,
|
|
39311
39311
|
zt.sceneStartTrigger(),
|
|
39312
39312
|
ye.lookAtCameraAction(
|
|
@@ -39333,10 +39333,10 @@ Sf([
|
|
|
39333
39333
|
Sf([
|
|
39334
39334
|
f()
|
|
39335
39335
|
], bl.prototype, "copyTargetRotation", 2);
|
|
39336
|
-
var
|
|
39337
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
39336
|
+
var HA = Object.defineProperty, GA = Object.getOwnPropertyDescriptor, Oy = (s, t, e, i) => {
|
|
39337
|
+
for (var n = i > 1 ? void 0 : i ? GA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
39338
39338
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
39339
|
-
return i && n &&
|
|
39339
|
+
return i && n && HA(t, e, n), n;
|
|
39340
39340
|
};
|
|
39341
39341
|
class kh extends L {
|
|
39342
39342
|
constructor() {
|
|
@@ -39397,10 +39397,10 @@ Oy([
|
|
|
39397
39397
|
Oy([
|
|
39398
39398
|
f()
|
|
39399
39399
|
], kh.prototype, "clickable", 2);
|
|
39400
|
-
var
|
|
39401
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
39400
|
+
var qA = Object.defineProperty, XA = Object.getOwnPropertyDescriptor, vl = (s, t, e, i) => {
|
|
39401
|
+
for (var n = i > 1 ? void 0 : i ? XA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
39402
39402
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
39403
|
-
return i && n &&
|
|
39403
|
+
return i && n && qA(t, e, n), n;
|
|
39404
39404
|
};
|
|
39405
39405
|
class No extends L {
|
|
39406
39406
|
constructor() {
|
|
@@ -39484,7 +39484,7 @@ NeedleXRSession.onSessionRequestStart(evt => {
|
|
|
39484
39484
|
if (a || (a = new XRWebGLBinding(e.session, s.getContext())), a) {
|
|
39485
39485
|
let l = null;
|
|
39486
39486
|
if ("getCameraImage" in a) {
|
|
39487
|
-
|
|
39487
|
+
QA(s, t);
|
|
39488
39488
|
const c = s.properties.get(t);
|
|
39489
39489
|
if (c)
|
|
39490
39490
|
return l = a.getCameraImage(o.camera), c.__webglTexture = l, !0;
|
|
@@ -39499,7 +39499,7 @@ NeedleXRSession.onSessionRequestStart(evt => {
|
|
|
39499
39499
|
return !1;
|
|
39500
39500
|
}
|
|
39501
39501
|
const Wb = /* @__PURE__ */ new WeakMap();
|
|
39502
|
-
function
|
|
39502
|
+
function QA(s, t) {
|
|
39503
39503
|
const e = Wb.get(t) || /* @__PURE__ */ new WeakSet();
|
|
39504
39504
|
if (e.has(s))
|
|
39505
39505
|
return;
|
|
@@ -39524,7 +39524,7 @@ function hx(s) {
|
|
|
39524
39524
|
const l = i.renderer, c = l.xr.enabled && l.xr.isPresenting;
|
|
39525
39525
|
if (c && i.currentFrameEvent != Re.EarlyUpdate)
|
|
39526
39526
|
return console.warn("Screenshot: defer to access XR frame"), new Promise((F) => {
|
|
39527
|
-
Us((
|
|
39527
|
+
Us((E) => {
|
|
39528
39528
|
const z = hx(s);
|
|
39529
39529
|
F(z);
|
|
39530
39530
|
}, Re.EarlyUpdate, { once: !0 });
|
|
@@ -39537,8 +39537,8 @@ function hx(s) {
|
|
|
39537
39537
|
l.xr.enabled = !1, l.xr.isPresenting = !1, h.style.width = `${n}px`, h.style.height = `${o}px`;
|
|
39538
39538
|
const _ = l.getRenderTarget(), b = l.getClearColor(new le()), w = l.getClearAlpha(), C = i.scene.background, k = "aspect" in a ? a.aspect : null;
|
|
39539
39539
|
try {
|
|
39540
|
-
const
|
|
39541
|
-
|
|
39540
|
+
const A = s.render_events !== !1, F = new Array();
|
|
39541
|
+
A && (Zc(i.scene, Ze, F), F.forEach((T) => {
|
|
39542
39542
|
var j;
|
|
39543
39543
|
if (T == null || T.onBeforeRender(), T.isInstancingActive && T.instances)
|
|
39544
39544
|
for (let H = 0; H < ((j = T.instances) == null ? void 0 : j.length); H++) {
|
|
@@ -39546,9 +39546,9 @@ function hx(s) {
|
|
|
39546
39546
|
vs(J.object, !0);
|
|
39547
39547
|
}
|
|
39548
39548
|
})), t && (i.scene.background = null, l.setClearColor(0, 0)), s.background && (i.scene.background = null, l.setClearColor(s.background), s.background instanceof ce && l.setClearAlpha(s.background.a)), t && l.setClearAlpha(0), l.setSize(n, o, !1), "cam" in a && (a = a.threeCamera), a instanceof be && (a.aspect = n / o, a.updateProjectionMatrix());
|
|
39549
|
-
const
|
|
39549
|
+
const E = "type" in s && s.type === "texture";
|
|
39550
39550
|
let z = null;
|
|
39551
|
-
|
|
39551
|
+
E && (z = new Ls(n, o, {
|
|
39552
39552
|
wrapS: $y,
|
|
39553
39553
|
wrapT: $y,
|
|
39554
39554
|
format: 1023
|
|
@@ -39560,7 +39560,7 @@ function hx(s) {
|
|
|
39560
39560
|
scene: i.scene,
|
|
39561
39561
|
camera: a,
|
|
39562
39562
|
renderer: l
|
|
39563
|
-
})) : i.renderNow(a || null), a instanceof be && k != null && (a.aspect = k, a.updateProjectionMatrix()),
|
|
39563
|
+
})) : i.renderNow(a || null), a instanceof be && k != null && (a.aspect = k, a.updateProjectionMatrix()), A && F.forEach((T) => T.onAfterRender()), !e && "download_filename" in s && s.download_filename)
|
|
39564
39564
|
switch ((O = s.download_filename.split(".").pop()) == null ? void 0 : O.toLowerCase()) {
|
|
39565
39565
|
case "png":
|
|
39566
39566
|
e = "image/png";
|
|
@@ -39574,7 +39574,7 @@ function hx(s) {
|
|
|
39574
39574
|
break;
|
|
39575
39575
|
}
|
|
39576
39576
|
if (t && s.trim === !0) {
|
|
39577
|
-
const T =
|
|
39577
|
+
const T = YA(U);
|
|
39578
39578
|
T && (U = T);
|
|
39579
39579
|
}
|
|
39580
39580
|
if ("type" in s) {
|
|
@@ -39619,7 +39619,7 @@ function hx(s) {
|
|
|
39619
39619
|
let te = 0;
|
|
39620
39620
|
localStorage.getItem(j) && (te = parseInt(sessionStorage.getItem(j) || "0")), te > 0 && (T = `${H.join()}-${te}.${J}`), te += 1, sessionStorage.setItem(j, te.toString());
|
|
39621
39621
|
}
|
|
39622
|
-
|
|
39622
|
+
KA(K, T);
|
|
39623
39623
|
}
|
|
39624
39624
|
return K;
|
|
39625
39625
|
} finally {
|
|
@@ -39627,7 +39627,7 @@ function hx(s) {
|
|
|
39627
39627
|
}
|
|
39628
39628
|
return null;
|
|
39629
39629
|
}
|
|
39630
|
-
function
|
|
39630
|
+
function YA(s) {
|
|
39631
39631
|
if (!("document" in globalThis))
|
|
39632
39632
|
return null;
|
|
39633
39633
|
const t = document.createElement("canvas");
|
|
@@ -39647,7 +39647,7 @@ function YE(s) {
|
|
|
39647
39647
|
return g ? (m.width = u, m.height = p, g.drawImage(t, c, l, u, p, 0, 0, u, p), m) : null;
|
|
39648
39648
|
}
|
|
39649
39649
|
let Dl = null;
|
|
39650
|
-
function
|
|
39650
|
+
function KA(s, t) {
|
|
39651
39651
|
if (s) {
|
|
39652
39652
|
if (!s.startsWith("data:image")) {
|
|
39653
39653
|
console.error("Can not save image: Data url is not an image", s);
|
|
@@ -39717,10 +39717,10 @@ void main() {
|
|
|
39717
39717
|
}
|
|
39718
39718
|
s.makeFullscreenPlane = c;
|
|
39719
39719
|
})(hu || (hu = {}));
|
|
39720
|
-
var
|
|
39721
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
39720
|
+
var ZA = Object.defineProperty, JA = Object.getOwnPropertyDescriptor, eI = (s, t, e, i) => {
|
|
39721
|
+
for (var n = i > 1 ? void 0 : i ? JA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
|
|
39722
39722
|
(a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
39723
|
-
return i && n &&
|
|
39723
|
+
return i && n && ZA(t, e, n), n;
|
|
39724
39724
|
};
|
|
39725
39725
|
const Vb = x("debugarcamera");
|
|
39726
39726
|
class Cf extends L {
|
|
@@ -40261,11 +40261,11 @@ class Vo extends L {
|
|
|
40261
40261
|
this.dataTemplate.loadAssetAsync();
|
|
40262
40262
|
else {
|
|
40263
40263
|
const m = S.instantiate(this.dataTemplate.asset);
|
|
40264
|
-
if (m.name = "xr-tracked-plane", p = m,
|
|
40265
|
-
|
|
40264
|
+
if (m.name = "xr-tracked-plane", p = m, A0(m, !1), m instanceof q)
|
|
40265
|
+
Ae(m.geometry), m.geometry = this.createGeometry(h), this.makeOccluder(m, m.material, this.occluder && !this.dataTemplate);
|
|
40266
40266
|
else if (m instanceof mo)
|
|
40267
40267
|
for (const _ of m.children)
|
|
40268
|
-
_ instanceof q && (
|
|
40268
|
+
_ instanceof q && (Ae(_.geometry), _.geometry = this.createGeometry(h), this.makeOccluder(_, _.material, this.occluder && !this.dataTemplate));
|
|
40269
40269
|
const g = m.getComponent(Dr);
|
|
40270
40270
|
if (g) {
|
|
40271
40271
|
const _ = m;
|
|
@@ -40451,7 +40451,7 @@ M.add("BoxHelperComponent", wi);
|
|
|
40451
40451
|
M.add("Camera", Pe);
|
|
40452
40452
|
M.add("CharacterController", Ja);
|
|
40453
40453
|
M.add("CharacterControllerInput", To);
|
|
40454
|
-
M.add("Collider",
|
|
40454
|
+
M.add("Collider", Ai);
|
|
40455
40455
|
M.add("SphereCollider", sh);
|
|
40456
40456
|
M.add("BoxCollider", oh);
|
|
40457
40457
|
M.add("MeshCollider", Dr);
|
|
@@ -40462,7 +40462,7 @@ M.add("DeleteBox", ka);
|
|
|
40462
40462
|
M.add("Deletable", qv);
|
|
40463
40463
|
M.add("DeviceFlag", qg);
|
|
40464
40464
|
M.add("DragControls", Ci);
|
|
40465
|
-
M.add("DropListener",
|
|
40465
|
+
M.add("DropListener", Eo);
|
|
40466
40466
|
M.add("Duplicatable", rh);
|
|
40467
40467
|
M.add("EventListEvent", Ug);
|
|
40468
40468
|
M.add("EventTrigger", Kg);
|
|
@@ -40525,7 +40525,7 @@ M.add("ScreenCapture", Nr);
|
|
|
40525
40525
|
M.add("ShadowCatcher", ff);
|
|
40526
40526
|
M.add("RemoteSkybox", zs);
|
|
40527
40527
|
M.add("SmoothFollow", $r);
|
|
40528
|
-
M.add("SpatialTriggerReceiver",
|
|
40528
|
+
M.add("SpatialTriggerReceiver", Es);
|
|
40529
40529
|
M.add("SpatialTrigger", mf);
|
|
40530
40530
|
M.add("SpectatorCamera", _y);
|
|
40531
40531
|
M.add("SpriteRenderer", Ii);
|
|
@@ -40537,7 +40537,7 @@ M.add("TestSimulateUserData", nx);
|
|
|
40537
40537
|
M.add("PlayableDirector", Mr);
|
|
40538
40538
|
M.add("SignalReceiver", Mh);
|
|
40539
40539
|
M.add("AnimationTrackHandler", wy);
|
|
40540
|
-
M.add("AudioTrackHandler",
|
|
40540
|
+
M.add("AudioTrackHandler", Ea);
|
|
40541
40541
|
M.add("SignalTrackHandler", cu);
|
|
40542
40542
|
M.add("ControlTrackHandler", xy);
|
|
40543
40543
|
M.add("TransformGizmo", yl);
|
|
@@ -40552,8 +40552,8 @@ M.add("MaskableGraphic", sf);
|
|
|
40552
40552
|
M.add("Image", Rh);
|
|
40553
40553
|
M.add("RawImage", Cy);
|
|
40554
40554
|
M.add("InputField", _l);
|
|
40555
|
-
M.add("VerticalLayoutGroup",
|
|
40556
|
-
M.add("HorizontalLayoutGroup",
|
|
40555
|
+
M.add("VerticalLayoutGroup", Ew);
|
|
40556
|
+
M.add("HorizontalLayoutGroup", Aw);
|
|
40557
40557
|
M.add("GridLayoutGroup", Iw);
|
|
40558
40558
|
M.add("Outline", ph);
|
|
40559
40559
|
M.add("ObjectRaycaster", on);
|
|
@@ -40589,7 +40589,7 @@ function uI(s, t) {
|
|
|
40589
40589
|
const i = WP(s, t);
|
|
40590
40590
|
return i !== void 0 ? i : null;
|
|
40591
40591
|
}
|
|
40592
|
-
const fI = new $P(),
|
|
40592
|
+
const fI = new $P(), Ap = Symbol("deserialize-queue");
|
|
40593
40593
|
async function pI(s, t, e, i = null, n) {
|
|
40594
40594
|
if (!e) {
|
|
40595
40595
|
console.debug("Can not create component instances: gltf is null");
|
|
@@ -40601,15 +40601,15 @@ async function pI(s, t, e, i = null, n) {
|
|
|
40601
40601
|
t = a === -1 ? t : t.substring(0, a);
|
|
40602
40602
|
const l = new pv(e.scene);
|
|
40603
40603
|
l.gltfId = t, l.context = s, l.gltf = e, l.nodeToObject = n == null ? void 0 : n.nodeToObjectMap, l.implementationInformation = fI;
|
|
40604
|
-
let c = s[
|
|
40605
|
-
if (c || (c = s[
|
|
40604
|
+
let c = s[Ap];
|
|
40605
|
+
if (c || (c = s[Ap] = []), e.scenes)
|
|
40606
40606
|
for (const h of e.scenes)
|
|
40607
40607
|
await tg(l, h, c);
|
|
40608
40608
|
if (e.children)
|
|
40609
40609
|
for (const h of e.children)
|
|
40610
40610
|
await tg(l, h, c);
|
|
40611
40611
|
s.new_scripts_pre_setup_callbacks.push(() => {
|
|
40612
|
-
const h = s[
|
|
40612
|
+
const h = s[Ap];
|
|
40613
40613
|
if (h) {
|
|
40614
40614
|
for (const d of h)
|
|
40615
40615
|
mI(d, l);
|
|
@@ -40839,8 +40839,7 @@ async function fx(s, t) {
|
|
|
40839
40839
|
const e = await gI(s, { useExtension: !0 }) || "unknown";
|
|
40840
40840
|
_I && console.debug(`Determined file type: '${e}' for url '${s}'`, { registeredModelLoaderCallbacks: ya });
|
|
40841
40841
|
for (const i of ya) {
|
|
40842
|
-
const { callback: n } = i;
|
|
40843
|
-
let o = n({ context: t, url: s, mimetype: e });
|
|
40842
|
+
const { callback: n } = i, o = n({ context: t, url: s, mimetype: e });
|
|
40844
40843
|
if (o instanceof Promise && await o, o)
|
|
40845
40844
|
return console.debug(`Using custom loader (${i.name || "unnamed"}) for ${e} at '${s}'`), o;
|
|
40846
40845
|
}
|
|
@@ -41241,7 +41240,7 @@ CLICK HERE TO GET A LICENSE`, i.style.cursor = "pointer", i.style.userSelect = "
|
|
|
41241
41240
|
let Dd = bu;
|
|
41242
41241
|
r(Dd, "LoadingContainerClassName", "loading");
|
|
41243
41242
|
$0(dx);
|
|
41244
|
-
const
|
|
41243
|
+
const Ee = x("debugwebcomponent"), Yb = "needle-engine", _x = "vr", bx = "desktop", PI = [gx, _x, bx], Ul = "ar-session-active", Nl = "desktop-session-active", OI = [
|
|
41245
41244
|
"public-key",
|
|
41246
41245
|
"version",
|
|
41247
41246
|
"hash",
|
|
@@ -41424,11 +41423,11 @@ class vx extends HTMLElement {
|
|
|
41424
41423
|
* @internal
|
|
41425
41424
|
*/
|
|
41426
41425
|
async connectedCallback() {
|
|
41427
|
-
if (
|
|
41426
|
+
if (Ee && console.log("<needle-engine> connected"), this.setPublicKey(), this.setVersion(), this.addEventListener("xr-session-started", this.onXRSessionStarted), this.onSetupDesktop(), !this.getAttribute("src")) {
|
|
41428
41427
|
const i = globalThis["needle:codegen_files"];
|
|
41429
|
-
|
|
41428
|
+
Ee && console.log('src is null, trying to load from globalThis["needle:codegen_files"]', i), i && (Ee && console.log('globalThis["needle:codegen_files"]', i), this.setAttribute("src", i));
|
|
41430
41429
|
}
|
|
41431
|
-
|
|
41430
|
+
Ee && console.log("src", this.getAttribute("src"));
|
|
41432
41431
|
const e = this._loadId;
|
|
41433
41432
|
setTimeout(() => {
|
|
41434
41433
|
this.isConnected !== !1 && e === this._loadId && this.onLoad();
|
|
@@ -41441,15 +41440,15 @@ class vx extends HTMLElement {
|
|
|
41441
41440
|
var n;
|
|
41442
41441
|
this.removeEventListener("xr-session-started", this.onXRSessionStarted), this._didFullyLoad = !1;
|
|
41443
41442
|
const e = this.getAttribute("keep-alive"), i = e == null || (e == null ? void 0 : e.length) > 0 && e !== "true" && e !== "1";
|
|
41444
|
-
|
|
41443
|
+
Ee && console.warn('<needle-engine> disconnected, keep-alive: "' + e + '"', typeof e, "Dispose=", i), i ? (Ee && console.warn("<needle-engine> dispose"), (n = this._context) == null || n.dispose(), this._context = null, this._lastSourceFiles = null, this._loadId += 1) : Ee && console.warn("<needle-engine> is not disposed because keep-alive is set");
|
|
41445
41444
|
}
|
|
41446
41445
|
/**
|
|
41447
41446
|
* @internal
|
|
41448
41447
|
*/
|
|
41449
41448
|
attributeChangedCallback(e, i, n) {
|
|
41450
|
-
switch (
|
|
41449
|
+
switch (Ee && console.log("attributeChangedCallback", e, i, n), e) {
|
|
41451
41450
|
case "src":
|
|
41452
|
-
|
|
41451
|
+
Ee && console.warn(`<needle-engine src>
|
|
41453
41452
|
changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
41454
41453
|
break;
|
|
41455
41454
|
case "hash":
|
|
@@ -41458,16 +41457,16 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
41458
41457
|
case "loadstart":
|
|
41459
41458
|
case "progress":
|
|
41460
41459
|
case "loadfinished":
|
|
41461
|
-
typeof n == "string" && n.length > 0 && (
|
|
41460
|
+
typeof n == "string" && n.length > 0 && (Ee && console.log(e + " attribute changed", n), this.registerEventFromAttribute(e, n));
|
|
41462
41461
|
break;
|
|
41463
41462
|
case "dracoDecoderPath":
|
|
41464
|
-
|
|
41463
|
+
Ee && console.log("dracoDecoderPath", n), Y_(n);
|
|
41465
41464
|
break;
|
|
41466
41465
|
case "dracoDecoderType":
|
|
41467
|
-
n === "wasm" || n === "js" ? (
|
|
41466
|
+
n === "wasm" || n === "js" ? (Ee && console.log("dracoDecoderType", n), K_(n)) : console.error("Invalid dracoDecoderType", n, "expected js or wasm");
|
|
41468
41467
|
break;
|
|
41469
41468
|
case "ktx2DecoderPath":
|
|
41470
|
-
|
|
41469
|
+
Ee && console.log("ktx2DecoderPath", n), Z_(n);
|
|
41471
41470
|
break;
|
|
41472
41471
|
case "tone-mapping": {
|
|
41473
41472
|
this.applyAttributes();
|
|
@@ -41500,16 +41499,16 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
41500
41499
|
var y, _;
|
|
41501
41500
|
if (!this.isConnected)
|
|
41502
41501
|
return;
|
|
41503
|
-
if (this._context || (
|
|
41502
|
+
if (this._context || (Ee && console.warn("Create new context"), this._context = new ee({ domElement: this })), !this._context) {
|
|
41504
41503
|
console.error("Needle Engine: Context not initialized");
|
|
41505
41504
|
return;
|
|
41506
41505
|
}
|
|
41507
41506
|
const e = this.getSourceFiles();
|
|
41508
41507
|
if (!this.checkIfSourceHasChanged(e, this._lastSourceFiles))
|
|
41509
41508
|
return;
|
|
41510
|
-
this._abortController && (
|
|
41509
|
+
this._abortController && (Ee && console.warn("Abort previous loading process"), this._abortController.abort(), this._abortController = null), this._lastSourceFiles = e;
|
|
41511
41510
|
const i = ++this._loadId;
|
|
41512
|
-
if ((e == null || e.length <= 0) && (
|
|
41511
|
+
if ((e == null || e.length <= 0) && (Ee && console.warn("Clear scene", e), this._context.clear(), i !== this._loadId))
|
|
41513
41512
|
return;
|
|
41514
41513
|
const n = this.getAttribute("alias");
|
|
41515
41514
|
this.classList.add("loading");
|
|
@@ -41528,7 +41527,7 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
41528
41527
|
}
|
|
41529
41528
|
a === !1 && !o && (B() || (a = !0), console.warn("Needle Engine: You need a commercial license to override the default loading view. Visit https://needle.tools/pricing"), B() && ve('You need a <a target="_blank" href="https://needle.tools/pricing">commercial license</a> to override the default loading view. This will not work in production.')), !this._loadingView && a && (this._loadingView = new Dd(this)), a && (this._didFullyLoad !== !0 ? (y = this._loadingView) == null || y.onLoadingBegin("begin load") : setTimeout(() => {
|
|
41530
41529
|
this._loadingView && this._loadingProgress01 < 0.3 && this._loadId === i && this._loadingView.onLoadingBegin("begin load");
|
|
41531
|
-
}, 300)),
|
|
41530
|
+
}, 300)), Ee && console.warn(`--------------
|
|
41532
41531
|
Needle Engine: Begin loading ` + i + `
|
|
41533
41532
|
`, e), this.onBeforeBeginLoading();
|
|
41534
41533
|
const l = [], c = {
|
|
@@ -41545,13 +41544,13 @@ Needle Engine: Begin loading ` + i + `
|
|
|
41545
41544
|
abortSignal: u.signal,
|
|
41546
41545
|
onLoadingProgress: (b) => {
|
|
41547
41546
|
var C;
|
|
41548
|
-
if (
|
|
41547
|
+
if (Ee && console.debug("Loading progress: ", b), u.signal.aborted)
|
|
41549
41548
|
return;
|
|
41550
41549
|
const w = b.index;
|
|
41551
41550
|
!d[w] && b.name && (d[w] = MI(b.name)), b.name = d[w], a && ((C = this._loadingView) == null || C.onLoadingUpdate(b)), c.name = b.name, c.progress = b.progress, this._loadingProgress01 = yx(b), c.totalProgress01 = this._loadingProgress01, this.dispatchEvent(h);
|
|
41552
41551
|
},
|
|
41553
41552
|
onLoadingFinished: (b, w, C) => {
|
|
41554
|
-
|
|
41553
|
+
Ee && console.debug(`Finished loading "${w}" (aborted? ${u.signal.aborted})`), !u.signal.aborted && C && l.push({
|
|
41555
41554
|
src: w,
|
|
41556
41555
|
file: C
|
|
41557
41556
|
});
|
|
@@ -41559,7 +41558,7 @@ Needle Engine: Begin loading ` + i + `
|
|
|
41559
41558
|
}, m = this.getAttribute("hash");
|
|
41560
41559
|
m != null && (this._context.hash = m), this._context.alias = n, this._createContextPromise = this._context.create(p);
|
|
41561
41560
|
const g = await this._createContextPromise;
|
|
41562
|
-
if (this.applyAttributes(),
|
|
41561
|
+
if (this.applyAttributes(), Ee && console.warn(`--------------
|
|
41563
41562
|
Needle Engine: finished loading ` + i + `
|
|
41564
41563
|
`, e, `Aborted? ${u.signal.aborted}`), u.signal.aborted) {
|
|
41565
41564
|
console.log("Loading finished but aborted...");
|
|
@@ -41611,7 +41610,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
41611
41610
|
const i = this.getAttribute("background-color");
|
|
41612
41611
|
if ((o = this._context) != null && o.renderer && typeof i == "string" && i.length > 0) {
|
|
41613
41612
|
const a = ce.fromColorRepresentation(i);
|
|
41614
|
-
|
|
41613
|
+
Ee && console.debug("<needle-engine> background-color changed, str:", i, "→", a), this._context.renderer.setClearColor(a, a.alpha), this.context.scene.background = null;
|
|
41615
41614
|
}
|
|
41616
41615
|
}
|
|
41617
41616
|
internalSetLoadingMessage(e) {
|
|
@@ -41709,7 +41708,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
41709
41708
|
onSetupAR() {
|
|
41710
41709
|
this.classList.add(Ul), this.classList.remove(Nl);
|
|
41711
41710
|
const e = this.getAROverlayContainer();
|
|
41712
|
-
|
|
41711
|
+
Ee && console.warn("onSetupAR:", e), e && (e.classList.add(Ul), e.classList.remove(Nl)), this.foreachHtmlElement((i) => this.setupElementsForMode(i, gx));
|
|
41713
41712
|
}
|
|
41714
41713
|
onSetupVR() {
|
|
41715
41714
|
this.classList.remove(Ul), this.classList.remove(Nl), this.foreachHtmlElement((e) => this.setupElementsForMode(e, _x));
|
|
@@ -41737,11 +41736,11 @@ Needle Engine: finished loading ` + i + `
|
|
|
41737
41736
|
}
|
|
41738
41737
|
onBeforeBeginLoading() {
|
|
41739
41738
|
const e = this.getAttribute("dracoDecoderPath");
|
|
41740
|
-
e && (
|
|
41739
|
+
e && (Ee && console.log("using custom draco decoder path", e), Y_(e));
|
|
41741
41740
|
const i = this.getAttribute("dracoDecoderType");
|
|
41742
|
-
i && (
|
|
41741
|
+
i && (Ee && console.log("using custom draco decoder type", i), K_(i));
|
|
41743
41742
|
const n = this.getAttribute("ktx2DecoderPath");
|
|
41744
|
-
n && (
|
|
41743
|
+
n && (Ee && console.log("using custom ktx2 decoder path", n), Z_(n));
|
|
41745
41744
|
}
|
|
41746
41745
|
}
|
|
41747
41746
|
typeof window < "u" && !window.customElements.get(Yb) && window.customElements.define(Yb, vx);
|
|
@@ -42317,7 +42316,7 @@ Error:`, l), null;
|
|
|
42317
42316
|
}
|
|
42318
42317
|
}
|
|
42319
42318
|
postStep() {
|
|
42320
|
-
this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new
|
|
42319
|
+
this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new EI(this.world, this.eventQueue)), this.collisionHandler && (this.collisionHandler.handleCollisionEvents(), this.collisionHandler.update()), this.updateDebugRendering(this.world));
|
|
42321
42320
|
}
|
|
42322
42321
|
updateDebugRendering(t) {
|
|
42323
42322
|
var e, i, n, o;
|
|
@@ -42434,7 +42433,7 @@ Error:`, l), null;
|
|
|
42434
42433
|
};
|
|
42435
42434
|
let Jr = Ic;
|
|
42436
42435
|
r(Jr, "_didLoadPhysicsEngine", !1), r(Jr, "_matricesBuffer", []), r(Jr, "centerConnectionPos", { x: 0, y: 0, z: 0 }), r(Jr, "centerConnectionRot", { x: 0, y: 0, z: 0, w: 1 });
|
|
42437
|
-
class
|
|
42436
|
+
class EI {
|
|
42438
42437
|
constructor(t, e) {
|
|
42439
42438
|
r(this, "world");
|
|
42440
42439
|
r(this, "eventQueue");
|
|
@@ -42618,7 +42617,7 @@ function Zb(s) {
|
|
|
42618
42617
|
function uD() {
|
|
42619
42618
|
return ig > 0;
|
|
42620
42619
|
}
|
|
42621
|
-
const
|
|
42620
|
+
const AI = {
|
|
42622
42621
|
binary: !0,
|
|
42623
42622
|
animations: !0
|
|
42624
42623
|
};
|
|
@@ -42627,7 +42626,7 @@ async function fD(s) {
|
|
|
42627
42626
|
throw new Error("No context provided to exportAsGLTF");
|
|
42628
42627
|
s.scene || (s.scene = s.context.scene);
|
|
42629
42628
|
const t = {
|
|
42630
|
-
...
|
|
42629
|
+
...AI,
|
|
42631
42630
|
...s
|
|
42632
42631
|
}, { context: e } = t, i = new f0();
|
|
42633
42632
|
i.register((l) => new nw(l)), i.register((l) => new JR(l)), i.register((l) => new Kv(l)), iw(i, t.context);
|
|
@@ -42667,7 +42666,7 @@ class II {
|
|
|
42667
42666
|
}
|
|
42668
42667
|
e.update(0);
|
|
42669
42668
|
}), t.context.scene.traverse((e) => {
|
|
42670
|
-
if (!
|
|
42669
|
+
if (!Am(e)) {
|
|
42671
42670
|
const i = e.parent;
|
|
42672
42671
|
i && (e.removeFromParent(), this._undo.push(() => i.add(e)));
|
|
42673
42672
|
}
|
|
@@ -42692,7 +42691,7 @@ function LI(s, t, e) {
|
|
|
42692
42691
|
return Array.from(i);
|
|
42693
42692
|
}
|
|
42694
42693
|
const e0 = "needle-button", jp = B();
|
|
42695
|
-
var cr, hr, dr, Qt, _s,
|
|
42694
|
+
var cr, hr, dr, Qt, _s, Aa, vu, xx, wu, Sx, Yc;
|
|
42696
42695
|
class wx extends HTMLElement {
|
|
42697
42696
|
constructor() {
|
|
42698
42697
|
super();
|
|
@@ -42706,7 +42705,7 @@ class wx extends HTMLElement {
|
|
|
42706
42705
|
Ui(this, Qt, void 0);
|
|
42707
42706
|
/** If AR or VR is requested we create and use the webxr button factory to create a button with default behaviour */
|
|
42708
42707
|
Ui(this, _s, void 0);
|
|
42709
|
-
Ui(this,
|
|
42708
|
+
Ui(this, Aa, void 0);
|
|
42710
42709
|
Ui(this, Yc, (e) => {
|
|
42711
42710
|
jp && console.log("Needle Button clicked"), !e.defaultPrevented && fe(this, Qt) && fe(this, Qt).click();
|
|
42712
42711
|
});
|
|
@@ -42716,7 +42715,7 @@ class wx extends HTMLElement {
|
|
|
42716
42715
|
Cl(this, vu, xx).call(this);
|
|
42717
42716
|
}
|
|
42718
42717
|
}
|
|
42719
|
-
cr = new WeakMap(), hr = new WeakMap(), dr = new WeakMap(), Qt = new WeakMap(), _s = new WeakMap(),
|
|
42718
|
+
cr = new WeakMap(), hr = new WeakMap(), dr = new WeakMap(), Qt = new WeakMap(), _s = new WeakMap(), Aa = new WeakMap(), vu = new WeakSet(), xx = function() {
|
|
42720
42719
|
var i, n;
|
|
42721
42720
|
if ((i = fe(this, Qt)) == null || i.remove(), this.getAttribute("ar") != null)
|
|
42722
42721
|
fe(this, _s) ?? cn(this, _s, new So()), cn(this, Qt, fe(this, _s).createARButton());
|
|
@@ -42762,7 +42761,7 @@ cr = new WeakMap(), hr = new WeakMap(), dr = new WeakMap(), Qt = new WeakMap(),
|
|
|
42762
42761
|
justify-content: center;
|
|
42763
42762
|
gap: .5rem;
|
|
42764
42763
|
}
|
|
42765
|
-
`), fe(this, hr).innerHTML = fe(this, Qt).innerHTML, fe(this, hr).style.cssText = "display: flex; align-items: center; justify-content: center;", fe(this, Qt).innerHTML = fe(this, hr).outerHTML, fe(this, cr).innerHTML = fe(this, Qt).outerHTML, fe(this, cr).prepend(fe(this, dr)), Yd(Om, { element: fe(this, cr) }), (n = fe(this,
|
|
42764
|
+
`), fe(this, hr).innerHTML = fe(this, Qt).innerHTML, fe(this, hr).style.cssText = "display: flex; align-items: center; justify-content: center;", fe(this, Qt).innerHTML = fe(this, hr).outerHTML, fe(this, cr).innerHTML = fe(this, Qt).outerHTML, fe(this, cr).prepend(fe(this, dr)), Yd(Om, { element: fe(this, cr) }), (n = fe(this, Aa)) == null || n.disconnect(), fe(this, Aa) ?? cn(this, Aa, new MutationObserver(() => Cl(this, wu, Sx).call(this))), fe(this, Aa).observe(fe(this, Qt), { attributes: !0 }), jp && console.log("Needle Button updated");
|
|
42766
42765
|
}, wu = new WeakSet(), Sx = function() {
|
|
42767
42766
|
fe(this, Qt) && (fe(this, Qt).style.display === "none" ? this.style.display = "none" : this.style.display === "none" && (this.style.display = ""));
|
|
42768
42767
|
}, Yc = new WeakMap(), r(wx, "observedAttributes", ["ar", "vr", "quicklook"]);
|
|
@@ -42951,7 +42950,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42951
42950
|
AudioExtension: il,
|
|
42952
42951
|
AudioListener: fo,
|
|
42953
42952
|
AudioSource: qe,
|
|
42954
|
-
AudioTrackHandler:
|
|
42953
|
+
AudioTrackHandler: Ea,
|
|
42955
42954
|
Avatar: Cr,
|
|
42956
42955
|
AvatarBlink_Simple: Za,
|
|
42957
42956
|
AvatarEyeLook_Rotation: ih,
|
|
@@ -42966,7 +42965,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42966
42965
|
BaseUIComponent: Sn,
|
|
42967
42966
|
BasicIKConstraint: Wv,
|
|
42968
42967
|
BehaviorExtension: Cw,
|
|
42969
|
-
BehaviorModel:
|
|
42968
|
+
BehaviorModel: Et,
|
|
42970
42969
|
BloomEffect: pl,
|
|
42971
42970
|
BoxCollider: oh,
|
|
42972
42971
|
BoxGizmo: cl,
|
|
@@ -42983,7 +42982,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42983
42982
|
CharacterController: Ja,
|
|
42984
42983
|
CharacterControllerInput: To,
|
|
42985
42984
|
ChromaticAberration: cf,
|
|
42986
|
-
Collider:
|
|
42985
|
+
Collider: Ai,
|
|
42987
42986
|
ColorAdjustments: Fr,
|
|
42988
42987
|
ColorBySpeedModule: wh,
|
|
42989
42988
|
ColorOverLifetimeModule: uy,
|
|
@@ -42996,7 +42995,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42996
42995
|
DeviceFlag: qg,
|
|
42997
42996
|
DocumentExtension: jI,
|
|
42998
42997
|
DragControls: Ci,
|
|
42999
|
-
DropListener:
|
|
42998
|
+
DropListener: Eo,
|
|
43000
42999
|
Duplicatable: rh,
|
|
43001
43000
|
EffectWrapper: ru,
|
|
43002
43001
|
EmissionModule: jo,
|
|
@@ -43020,7 +43019,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
43020
43019
|
GroupActionModel: rr,
|
|
43021
43020
|
HideOnStart: lr,
|
|
43022
43021
|
HingeJoint: of,
|
|
43023
|
-
HorizontalLayoutGroup:
|
|
43022
|
+
HorizontalLayoutGroup: Aw,
|
|
43024
43023
|
Image: Rh,
|
|
43025
43024
|
InheritVelocityModule: fl,
|
|
43026
43025
|
InputField: _l,
|
|
@@ -43096,10 +43095,10 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
43096
43095
|
SpatialGrabRaycaster: yr,
|
|
43097
43096
|
SpatialHtml: xf,
|
|
43098
43097
|
SpatialTrigger: mf,
|
|
43099
|
-
SpatialTriggerReceiver:
|
|
43098
|
+
SpatialTriggerReceiver: Es,
|
|
43100
43099
|
SpectatorCamera: _y,
|
|
43101
43100
|
SphereCollider: sh,
|
|
43102
|
-
Sprite:
|
|
43101
|
+
Sprite: Ao,
|
|
43103
43102
|
SpriteData: vr,
|
|
43104
43103
|
SpriteRenderer: Ii,
|
|
43105
43104
|
SpriteSheet: Hc,
|
|
@@ -43130,7 +43129,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
43130
43129
|
UsageMarker: Qu,
|
|
43131
43130
|
VariantAction: bw,
|
|
43132
43131
|
VelocityOverLifetimeModule: tt,
|
|
43133
|
-
VerticalLayoutGroup:
|
|
43132
|
+
VerticalLayoutGroup: Ew,
|
|
43134
43133
|
VideoPlayer: _t,
|
|
43135
43134
|
Vignette: gl,
|
|
43136
43135
|
VisibilityAction: Ju,
|
|
@@ -43296,7 +43295,7 @@ export {
|
|
|
43296
43295
|
il as AudioExtension,
|
|
43297
43296
|
fo as AudioListener,
|
|
43298
43297
|
qe as AudioSource,
|
|
43299
|
-
|
|
43298
|
+
Ea as AudioTrackHandler,
|
|
43300
43299
|
Cr as Avatar,
|
|
43301
43300
|
Za as AvatarBlink_Simple,
|
|
43302
43301
|
ih as AvatarEyeLook_Rotation,
|
|
@@ -43313,7 +43312,7 @@ export {
|
|
|
43313
43312
|
Sn as BaseUIComponent,
|
|
43314
43313
|
Wv as BasicIKConstraint,
|
|
43315
43314
|
Cw as BehaviorExtension,
|
|
43316
|
-
|
|
43315
|
+
Et as BehaviorModel,
|
|
43317
43316
|
Ha as BlobStorage,
|
|
43318
43317
|
pl as BloomEffect,
|
|
43319
43318
|
oh as BoxCollider,
|
|
@@ -43336,7 +43335,7 @@ export {
|
|
|
43336
43335
|
nn as CircularBuffer,
|
|
43337
43336
|
_r as ClearFlags,
|
|
43338
43337
|
fs as ClipExtrapolation,
|
|
43339
|
-
|
|
43338
|
+
Ai as Collider,
|
|
43340
43339
|
rR as Collision,
|
|
43341
43340
|
zg as CollisionDetectionMode,
|
|
43342
43341
|
Fr as ColorAdjustments,
|
|
@@ -43365,7 +43364,7 @@ export {
|
|
|
43365
43364
|
jI as DocumentExtension,
|
|
43366
43365
|
Ci as DragControls,
|
|
43367
43366
|
Xv as DragMode,
|
|
43368
|
-
|
|
43367
|
+
Eo as DropListener,
|
|
43369
43368
|
rh as Duplicatable,
|
|
43370
43369
|
ru as EffectWrapper,
|
|
43371
43370
|
jo as EmissionModule,
|
|
@@ -43400,7 +43399,7 @@ export {
|
|
|
43400
43399
|
Wg as HideFlags,
|
|
43401
43400
|
lr as HideOnStart,
|
|
43402
43401
|
of as HingeJoint,
|
|
43403
|
-
|
|
43402
|
+
Aw as HorizontalLayoutGroup,
|
|
43404
43403
|
LL as HostData,
|
|
43405
43404
|
Rh as Image,
|
|
43406
43405
|
fc as ImageReference,
|
|
@@ -43441,7 +43440,7 @@ export {
|
|
|
43441
43440
|
Yu as MeshRenderer,
|
|
43442
43441
|
Q as MinMaxCurve,
|
|
43443
43442
|
ji as MinMaxGradient,
|
|
43444
|
-
|
|
43443
|
+
Ah as NEKeyboardEvent,
|
|
43445
43444
|
eo as NEPointerEvent,
|
|
43446
43445
|
wx as NeedleButtonElement,
|
|
43447
43446
|
vx as NeedleEngineHTMLElement,
|
|
@@ -43460,9 +43459,9 @@ export {
|
|
|
43460
43459
|
MP as NewInstanceModel,
|
|
43461
43460
|
Oe as NoiseModule,
|
|
43462
43461
|
on as ObjectRaycaster,
|
|
43463
|
-
|
|
43462
|
+
Er as ObjectUtils,
|
|
43464
43463
|
hl as OffsetConstraint,
|
|
43465
|
-
|
|
43464
|
+
Ef as OneEuroFilter,
|
|
43466
43465
|
M0 as OneEuroFilterXYZ,
|
|
43467
43466
|
kh as OpenURL,
|
|
43468
43467
|
we as OrbitControls,
|
|
@@ -43545,12 +43544,12 @@ export {
|
|
|
43545
43544
|
yr as SpatialGrabRaycaster,
|
|
43546
43545
|
xf as SpatialHtml,
|
|
43547
43546
|
mf as SpatialTrigger,
|
|
43548
|
-
|
|
43547
|
+
Es as SpatialTriggerReceiver,
|
|
43549
43548
|
_y as SpectatorCamera,
|
|
43550
43549
|
sh as SphereCollider,
|
|
43551
43550
|
Z0 as SphereIntersection,
|
|
43552
43551
|
aR as SphereOverlapResult,
|
|
43553
|
-
|
|
43552
|
+
Ao as Sprite,
|
|
43554
43553
|
vr as SpriteData,
|
|
43555
43554
|
Ii as SpriteRenderer,
|
|
43556
43555
|
Hc as SpriteSheet,
|
|
@@ -43571,7 +43570,7 @@ export {
|
|
|
43571
43570
|
ny as TextExtension,
|
|
43572
43571
|
ri as TextureSheetAnimationModule,
|
|
43573
43572
|
Gs as TiltShiftEffect,
|
|
43574
|
-
|
|
43573
|
+
EO as Time,
|
|
43575
43574
|
Or as ToneMappingEffect,
|
|
43576
43575
|
_f as TrackHandler,
|
|
43577
43576
|
Gi as TrackType,
|
|
@@ -43596,7 +43595,7 @@ export {
|
|
|
43596
43595
|
Vn as VERSION,
|
|
43597
43596
|
bw as VariantAction,
|
|
43598
43597
|
tt as VelocityOverLifetimeModule,
|
|
43599
|
-
|
|
43598
|
+
Ew as VerticalLayoutGroup,
|
|
43600
43599
|
_t as VideoPlayer,
|
|
43601
43600
|
pr as ViewDevice,
|
|
43602
43601
|
gl as Vignette,
|
|
@@ -43632,7 +43631,7 @@ export {
|
|
|
43632
43631
|
iD as addCustomExtensionPlugin,
|
|
43633
43632
|
Ma as addNewComponent,
|
|
43634
43633
|
vg as addPatch,
|
|
43635
|
-
|
|
43634
|
+
Eg as apply,
|
|
43636
43635
|
NL as applyHMRChanges,
|
|
43637
43636
|
KP as applyPrototypeExtensions,
|
|
43638
43637
|
OP as beginListenDestroy,
|
|
@@ -43652,11 +43651,11 @@ export {
|
|
|
43652
43651
|
Bk as decompressGpuTexture,
|
|
43653
43652
|
Tu as deepClone,
|
|
43654
43653
|
Hn as delay,
|
|
43655
|
-
|
|
43654
|
+
Eu as delayForFrames,
|
|
43656
43655
|
bm as deserializeObject,
|
|
43657
43656
|
sn as destroy,
|
|
43658
43657
|
nO as destroyComponentInstance,
|
|
43659
|
-
|
|
43658
|
+
Ae as disposeObjectResources,
|
|
43660
43659
|
Cs as disposeStream,
|
|
43661
43660
|
gd as editorGuidKeyName,
|
|
43662
43661
|
Sa as enableSpatialConsole,
|
|
@@ -43725,7 +43724,7 @@ export {
|
|
|
43725
43724
|
JI as isDesktop,
|
|
43726
43725
|
$a as isDestroyed,
|
|
43727
43726
|
B as isDevEnvironment,
|
|
43728
|
-
|
|
43727
|
+
AL as isDisposed,
|
|
43729
43728
|
uD as isExporting,
|
|
43730
43729
|
nR as isGLTFModel,
|
|
43731
43730
|
kS as isHostedOnGlitch,
|
|
@@ -43740,17 +43739,17 @@ export {
|
|
|
43740
43739
|
lL as isQuest,
|
|
43741
43740
|
pP as isResourceTrackingEnabled,
|
|
43742
43741
|
aL as isSafari,
|
|
43743
|
-
|
|
43742
|
+
Ag as isUsingInstancing,
|
|
43744
43743
|
rL as isiOS,
|
|
43745
43744
|
iL as isiPad,
|
|
43746
43745
|
cD as loadAsset,
|
|
43747
43746
|
px as loadSync,
|
|
43748
43747
|
rm as logHierarchy,
|
|
43749
43748
|
gL as lookAtInverse,
|
|
43750
|
-
|
|
43749
|
+
Au as lookAtObject,
|
|
43751
43750
|
yL as lookAtScreenPoint,
|
|
43752
43751
|
YI as makeId,
|
|
43753
|
-
|
|
43752
|
+
AS as makeIdFromRandomWords,
|
|
43754
43753
|
qn as makeNameSafe,
|
|
43755
43754
|
rO as markAsInstancedRendered,
|
|
43756
43755
|
cL as microphonePermissionsGranted,
|
|
@@ -43772,7 +43771,7 @@ export {
|
|
|
43772
43771
|
yC as placeOnSurface,
|
|
43773
43772
|
I0 as postprocessFBXMaterials,
|
|
43774
43773
|
YL as prefix,
|
|
43775
|
-
|
|
43774
|
+
ES as pushState,
|
|
43776
43775
|
KI as randomNumber,
|
|
43777
43776
|
Q0 as registerBinaryType,
|
|
43778
43777
|
Dg as registerComponent,
|
|
@@ -43782,7 +43781,7 @@ export {
|
|
|
43782
43781
|
Lm as registerExtensions,
|
|
43783
43782
|
sM as registerHotReloadType,
|
|
43784
43783
|
$0 as registerLoader,
|
|
43785
|
-
|
|
43784
|
+
EP as registerPrefabProvider,
|
|
43786
43785
|
ZP as registerPrototypeExtensions,
|
|
43787
43786
|
DL as registerType,
|
|
43788
43787
|
LS as relativePathPrefix,
|
|
@@ -43792,7 +43791,7 @@ export {
|
|
|
43792
43791
|
xL as removePatch,
|
|
43793
43792
|
kr as resolveUrl,
|
|
43794
43793
|
IS as sanitizeString,
|
|
43795
|
-
|
|
43794
|
+
KA as saveImage,
|
|
43796
43795
|
lD as screenshot,
|
|
43797
43796
|
hx as screenshot2,
|
|
43798
43797
|
cv as sendDestroyed,
|
|
@@ -43812,10 +43811,10 @@ export {
|
|
|
43812
43811
|
QI as setParam,
|
|
43813
43812
|
zd as setParamWithoutReload,
|
|
43814
43813
|
ML as setPeerOptions,
|
|
43815
|
-
|
|
43814
|
+
EL as setResourceTrackingEnabled,
|
|
43816
43815
|
b0 as setState,
|
|
43817
|
-
|
|
43818
|
-
|
|
43816
|
+
A0 as setVisibleInCustomShadowRendering,
|
|
43817
|
+
E0 as setWorldEuler,
|
|
43819
43818
|
yt as setWorldPosition,
|
|
43820
43819
|
Ba as setWorldPositionXYZ,
|
|
43821
43820
|
xn as setWorldQuaternion,
|