@needle-tools/engine 4.6.3 → 4.6.4
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 +3773 -3773
- package/LICENSE.md +10 -10
- package/README.md +64 -64
- package/components.needle.json +1 -1
- package/dist/generateMeshBVH.worker-BaNp_Xtp.js +25 -0
- package/dist/{gltf-progressive-Bm9eEfgu.min.js → gltf-progressive-Bl4okF1b.min.js} +1 -1
- package/dist/{gltf-progressive-GjIqwSG3.js → gltf-progressive-DSpdn0QT.js} +2 -2
- package/dist/{gltf-progressive-Dn6o99rH.umd.cjs → gltf-progressive-P8b8a0qY.umd.cjs} +1 -1
- package/dist/{needle-engine.bundle-Bhmc3xq0.umd.cjs → needle-engine.bundle-B0b8OtrF.umd.cjs} +59 -59
- package/dist/{needle-engine.bundle-DzStNbW2.min.js → needle-engine.bundle-BDUZt2gN.min.js} +78 -78
- package/dist/{needle-engine.bundle-B3xwa0ZL.js → needle-engine.bundle-xlXwBS9f.js} +638 -638
- package/dist/needle-engine.d.ts +130 -129
- package/dist/needle-engine.js +4 -4
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/dist/{postprocessing-8AQTeZsr.umd.cjs → postprocessing-CjW23fio.umd.cjs} +2 -2
- package/dist/{postprocessing-BkxN_08g.js → postprocessing-DYLNOL3W.js} +3 -3
- package/dist/{postprocessing-BDScN9yu.min.js → postprocessing-xYQWCHFu.min.js} +2 -2
- package/dist/{three-DMrv-4ar.umd.cjs → three-B_hneGZr.umd.cjs} +4 -4
- package/dist/{three-Bz6X1mrw.js → three-DrqIzZTH.js} +4198 -4198
- package/dist/{three-Boa-jOq-.min.js → three-DuDKwKB8.min.js} +33 -33
- package/dist/{three-examples-GggCDHv0.js → three-examples-B50TT3Iu.js} +5 -5
- package/dist/{three-examples-DuVhxqft.min.js → three-examples-DaDLBuy6.min.js} +14 -14
- package/dist/{three-examples-C7ryg8vN.umd.cjs → three-examples-X3OadjXB.umd.cjs} +3 -3
- package/dist/{three-mesh-ui-CY6Izc7C.min.js → three-mesh-ui-B3p3gyUz.min.js} +1 -1
- package/dist/{three-mesh-ui-CwlN0FUC.umd.cjs → three-mesh-ui-CQiIQIlA.umd.cjs} +1 -1
- package/dist/{three-mesh-ui-CLNOfsWn.js → three-mesh-ui-CxuWt7m-.js} +1 -1
- package/dist/{vendor-zxXa3Dmr.min.js → vendor-BlSxe9JJ.min.js} +3 -3
- package/dist/{vendor-BSD1RQIh.js → vendor-BmYIgaS1.js} +3 -3
- package/dist/{vendor-DHr4aqIZ.umd.cjs → vendor-Cavtu3CP.umd.cjs} +3 -3
- package/lib/asap/needle-asap.d.ts +1 -1
- package/lib/asap/needle-asap.js +95 -95
- package/lib/asap/sessiongranted.d.ts +3 -3
- package/lib/asap/sessiongranted.js +65 -65
- package/lib/asap/utils.d.ts +1 -1
- package/lib/asap/utils.js +3 -3
- package/lib/engine/analytics/index.d.ts +6 -6
- package/lib/engine/analytics/index.js +12 -12
- package/lib/engine/analytics/lcp.d.ts +3 -3
- package/lib/engine/analytics/lcp.js +34 -34
- package/lib/engine/api.d.ts +82 -82
- package/lib/engine/api.js +81 -81
- package/lib/engine/assets/index.d.ts +11 -11
- package/lib/engine/assets/index.js +47 -47
- package/lib/engine/assets/static.d.ts +1 -1
- package/lib/engine/assets/static.js +4 -4
- package/lib/engine/codegen/register_types.d.ts +1 -1
- package/lib/engine/codegen/register_types.js +300 -300
- package/lib/engine/debug/debug.d.ts +15 -15
- package/lib/engine/debug/debug.js +44 -44
- package/lib/engine/debug/debug_console.d.ts +2 -2
- package/lib/engine/debug/debug_console.js +307 -307
- package/lib/engine/debug/debug_overlay.d.ts +22 -22
- package/lib/engine/debug/debug_overlay.js +316 -316
- package/lib/engine/debug/debug_spatial_console.d.ts +2 -2
- package/lib/engine/debug/debug_spatial_console.js +390 -390
- package/lib/engine/debug/index.d.ts +2 -2
- package/lib/engine/debug/index.js +2 -2
- package/lib/engine/engine_addressables.d.ts +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 +346 -346
- package/lib/engine/engine_audio.d.ts +4 -4
- package/lib/engine/engine_audio.js +23 -23
- package/lib/engine/engine_camera.d.ts +13 -13
- package/lib/engine/engine_camera.js +30 -30
- package/lib/engine/engine_components.d.ts +110 -110
- package/lib/engine/engine_components.js +374 -374
- package/lib/engine/engine_components_internal.d.ts +9 -9
- package/lib/engine/engine_components_internal.js +36 -36
- package/lib/engine/engine_constants.d.ts +10 -10
- package/lib/engine/engine_constants.js +41 -41
- package/lib/engine/engine_context.d.ts +475 -475
- package/lib/engine/engine_context.js +1673 -1673
- package/lib/engine/engine_context_registry.d.ts +71 -71
- package/lib/engine/engine_context_registry.js +117 -117
- package/lib/engine/engine_coroutine.d.ts +35 -35
- package/lib/engine/engine_coroutine.js +52 -52
- package/lib/engine/engine_create_objects.d.ts +119 -119
- package/lib/engine/engine_create_objects.js +320 -320
- package/lib/engine/engine_default_parameters.d.ts +2 -2
- package/lib/engine/engine_default_parameters.js +3 -3
- package/lib/engine/engine_editor-sync.d.ts +21 -21
- package/lib/engine/engine_editor-sync.js +4 -4
- package/lib/engine/engine_fileloader.d.ts +2 -2
- package/lib/engine/engine_fileloader.js +8 -8
- package/lib/engine/engine_gameobject.d.ts +68 -68
- package/lib/engine/engine_gameobject.js +619 -619
- package/lib/engine/engine_generic_utils.d.ts +1 -1
- package/lib/engine/engine_generic_utils.js +13 -13
- package/lib/engine/engine_gizmos.d.ts +149 -149
- package/lib/engine/engine_gizmos.js +530 -530
- package/lib/engine/engine_gltf.d.ts +12 -12
- package/lib/engine/engine_gltf.js +15 -15
- package/lib/engine/engine_gltf_builtin_components.d.ts +11 -11
- package/lib/engine/engine_gltf_builtin_components.js +341 -341
- package/lib/engine/engine_hot_reload.d.ts +8 -8
- package/lib/engine/engine_hot_reload.js +197 -197
- package/lib/engine/engine_input.d.ts +362 -362
- package/lib/engine/engine_input.js +1294 -1294
- package/lib/engine/engine_input_utils.d.ts +2 -2
- package/lib/engine/engine_input_utils.js +22 -22
- package/lib/engine/engine_instancing.d.ts +19 -19
- package/lib/engine/engine_instancing.js +39 -39
- package/lib/engine/engine_license.d.ts +11 -11
- package/lib/engine/engine_license.js +369 -369
- package/lib/engine/engine_lifecycle_api.d.ts +83 -83
- package/lib/engine/engine_lifecycle_api.js +106 -106
- package/lib/engine/engine_lifecycle_functions_internal.d.ts +32 -32
- package/lib/engine/engine_lifecycle_functions_internal.js +146 -146
- package/lib/engine/engine_lightdata.d.ts +23 -23
- package/lib/engine/engine_lightdata.js +91 -91
- package/lib/engine/engine_loaders.callbacks.d.ts +97 -97
- package/lib/engine/engine_loaders.callbacks.js +86 -86
- package/lib/engine/engine_loaders.d.ts +48 -48
- package/lib/engine/engine_loaders.gltf.d.ts +13 -13
- package/lib/engine/engine_loaders.gltf.js +62 -62
- package/lib/engine/engine_loaders.js +337 -337
- package/lib/engine/engine_lods.d.ts +31 -31
- package/lib/engine/engine_lods.js +146 -146
- package/lib/engine/engine_mainloop_utils.d.ts +32 -32
- package/lib/engine/engine_mainloop_utils.js +466 -466
- package/lib/engine/engine_math.d.ts +114 -114
- package/lib/engine/engine_math.js +247 -247
- package/lib/engine/engine_modules.d.ts +36 -36
- package/lib/engine/engine_modules.js +85 -85
- package/lib/engine/engine_networking.d.ts +260 -260
- package/lib/engine/engine_networking.js +764 -764
- package/lib/engine/engine_networking_auto.d.ts +24 -24
- package/lib/engine/engine_networking_auto.js +310 -310
- package/lib/engine/engine_networking_blob.d.ts +48 -48
- package/lib/engine/engine_networking_blob.js +228 -228
- package/lib/engine/engine_networking_files.d.ts +35 -35
- package/lib/engine/engine_networking_files.js +172 -172
- package/lib/engine/engine_networking_files_default_components.d.ts +6 -6
- package/lib/engine/engine_networking_files_default_components.js +42 -42
- package/lib/engine/engine_networking_instantiate.d.ts +100 -100
- package/lib/engine/engine_networking_instantiate.js +345 -345
- package/lib/engine/engine_networking_peer.d.ts +15 -15
- package/lib/engine/engine_networking_peer.js +132 -132
- package/lib/engine/engine_networking_streams.d.ts +123 -123
- package/lib/engine/engine_networking_streams.js +645 -645
- package/lib/engine/engine_networking_types.d.ts +22 -22
- package/lib/engine/engine_networking_types.js +7 -7
- package/lib/engine/engine_networking_utils.d.ts +2 -2
- package/lib/engine/engine_networking_utils.js +20 -20
- package/lib/engine/engine_networking_websocket.d.ts +1 -1
- package/lib/engine/engine_networking_websocket.js +2 -2
- package/lib/engine/engine_patcher.d.ts +10 -10
- package/lib/engine/engine_patcher.js +142 -142
- package/lib/engine/engine_physics.d.ts +152 -152
- package/lib/engine/engine_physics.js +645 -645
- package/lib/engine/engine_physics.types.d.ts +40 -40
- package/lib/engine/engine_physics.types.js +33 -33
- package/lib/engine/engine_physics_rapier.d.ts +147 -147
- package/lib/engine/engine_physics_rapier.js +1433 -1433
- package/lib/engine/engine_playerview.d.ts +26 -26
- package/lib/engine/engine_playerview.js +64 -64
- package/lib/engine/engine_scenelighting.d.ts +71 -71
- package/lib/engine/engine_scenelighting.js +226 -226
- package/lib/engine/engine_serialization.d.ts +3 -3
- package/lib/engine/engine_serialization.js +3 -3
- package/lib/engine/engine_serialization_builtin_serializer.d.ts +72 -72
- package/lib/engine/engine_serialization_builtin_serializer.js +403 -403
- package/lib/engine/engine_serialization_core.d.ts +94 -94
- package/lib/engine/engine_serialization_core.js +607 -607
- package/lib/engine/engine_serialization_decorator.d.ts +23 -23
- package/lib/engine/engine_serialization_decorator.js +66 -66
- package/lib/engine/engine_setup.d.ts +1 -1
- package/lib/engine/engine_setup.js +2 -2
- package/lib/engine/engine_shaders.d.ts +53 -53
- package/lib/engine/engine_shaders.js +252 -252
- package/lib/engine/engine_shims.d.ts +4 -4
- package/lib/engine/engine_shims.js +24 -24
- package/lib/engine/engine_test_utils.d.ts +39 -39
- package/lib/engine/engine_test_utils.js +83 -83
- package/lib/engine/engine_texture.d.ts +28 -28
- package/lib/engine/engine_texture.js +64 -64
- package/lib/engine/engine_three_utils.d.ts +204 -204
- package/lib/engine/engine_three_utils.js +784 -784
- package/lib/engine/engine_time.d.ts +51 -51
- package/lib/engine/engine_time.js +82 -82
- package/lib/engine/engine_time_utils.d.ts +88 -88
- package/lib/engine/engine_time_utils.js +215 -215
- package/lib/engine/engine_tonemapping.d.ts +6 -6
- package/lib/engine/engine_tonemapping.js +197 -197
- package/lib/engine/engine_types.d.ts +578 -578
- package/lib/engine/engine_types.js +95 -95
- package/lib/engine/engine_typestore.d.ts +28 -28
- package/lib/engine/engine_typestore.js +55 -55
- package/lib/engine/engine_util_decorator.d.ts +13 -13
- package/lib/engine/engine_util_decorator.js +116 -116
- package/lib/engine/engine_utils.d.ts +248 -248
- package/lib/engine/engine_utils.js +1012 -1012
- package/lib/engine/engine_utils_format.d.ts +24 -24
- package/lib/engine/engine_utils_format.js +239 -239
- package/lib/engine/engine_utils_screenshot.d.ts +159 -159
- package/lib/engine/engine_utils_screenshot.js +522 -522
- package/lib/engine/engine_utils_screenshot.xr.d.ts +5 -5
- package/lib/engine/engine_utils_screenshot.xr.js +90 -90
- package/lib/engine/engine_xr.d.ts +1 -1
- package/lib/engine/engine_xr.js +1 -1
- package/lib/engine/export/gltf/Writers.d.ts +19 -19
- package/lib/engine/export/gltf/Writers.js +24 -24
- package/lib/engine/export/gltf/index.d.ts +11 -11
- package/lib/engine/export/gltf/index.js +123 -123
- package/lib/engine/export/index.d.ts +2 -2
- package/lib/engine/export/index.js +2 -2
- package/lib/engine/export/state.d.ts +7 -7
- package/lib/engine/export/state.js +17 -17
- package/lib/engine/export/utils.d.ts +2 -2
- package/lib/engine/export/utils.js +7 -7
- package/lib/engine/extensions/EXT_texture_exr.d.ts +8 -8
- package/lib/engine/extensions/EXT_texture_exr.js +32 -32
- package/lib/engine/extensions/NEEDLE_animator_controller_model.d.ts +122 -122
- package/lib/engine/extensions/NEEDLE_animator_controller_model.js +95 -95
- package/lib/engine/extensions/NEEDLE_components.d.ts +35 -35
- package/lib/engine/extensions/NEEDLE_components.js +220 -220
- package/lib/engine/extensions/NEEDLE_gameobject_data.d.ts +10 -10
- package/lib/engine/extensions/NEEDLE_gameobject_data.js +57 -57
- package/lib/engine/extensions/NEEDLE_lighting_settings.d.ts +37 -37
- package/lib/engine/extensions/NEEDLE_lighting_settings.js +157 -157
- package/lib/engine/extensions/NEEDLE_lightmaps.d.ts +18 -18
- package/lib/engine/extensions/NEEDLE_lightmaps.js +99 -99
- package/lib/engine/extensions/NEEDLE_persistent_assets.d.ts +11 -11
- package/lib/engine/extensions/NEEDLE_persistent_assets.js +63 -63
- package/lib/engine/extensions/NEEDLE_progressive.d.ts +1 -1
- package/lib/engine/extensions/NEEDLE_progressive.js +1 -1
- package/lib/engine/extensions/NEEDLE_render_objects.d.ts +13 -13
- package/lib/engine/extensions/NEEDLE_render_objects.js +159 -159
- package/lib/engine/extensions/NEEDLE_techniques_webgl.d.ts +38 -38
- package/lib/engine/extensions/NEEDLE_techniques_webgl.js +564 -564
- package/lib/engine/extensions/extension_resolver.d.ts +4 -4
- package/lib/engine/extensions/extension_resolver.js +1 -1
- package/lib/engine/extensions/extension_utils.d.ts +12 -12
- package/lib/engine/extensions/extension_utils.js +152 -152
- package/lib/engine/extensions/extensions.d.ts +32 -32
- package/lib/engine/extensions/extensions.js +107 -107
- package/lib/engine/extensions/index.d.ts +6 -6
- package/lib/engine/extensions/index.js +6 -6
- package/lib/engine/extensions/usage_tracker.d.ts +13 -13
- package/lib/engine/extensions/usage_tracker.js +65 -65
- package/lib/engine/js-extensions/Camera.d.ts +1 -1
- package/lib/engine/js-extensions/Camera.js +39 -39
- package/lib/engine/js-extensions/ExtensionUtils.d.ts +9 -9
- package/lib/engine/js-extensions/ExtensionUtils.js +67 -67
- package/lib/engine/js-extensions/Layers.d.ts +6 -6
- package/lib/engine/js-extensions/Layers.js +22 -22
- package/lib/engine/js-extensions/Object3D.d.ts +120 -120
- package/lib/engine/js-extensions/Object3D.js +136 -136
- package/lib/engine/js-extensions/RGBAColor.d.ts +23 -23
- package/lib/engine/js-extensions/RGBAColor.js +111 -111
- package/lib/engine/js-extensions/Vector.d.ts +3 -3
- package/lib/engine/js-extensions/Vector.js +13 -13
- package/lib/engine/js-extensions/index.d.ts +5 -5
- package/lib/engine/js-extensions/index.js +5 -5
- package/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.d.ts +4 -4
- package/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js +79 -79
- package/lib/engine/shaders/shaderData.d.ts +55 -55
- package/lib/engine/shaders/shaderData.js +58 -58
- package/lib/engine/tests/test_utils.d.ts +2 -2
- package/lib/engine/tests/test_utils.js +53 -53
- package/lib/engine/webcomponents/WebXRButtons.d.ts +56 -56
- package/lib/engine/webcomponents/WebXRButtons.js +230 -230
- package/lib/engine/webcomponents/api.d.ts +5 -5
- package/lib/engine/webcomponents/api.js +4 -4
- package/lib/engine/webcomponents/buttons.d.ts +51 -51
- package/lib/engine/webcomponents/buttons.js +264 -264
- package/lib/engine/webcomponents/fonts.d.ts +9 -9
- package/lib/engine/webcomponents/fonts.js +32 -32
- package/lib/engine/webcomponents/icons.d.ts +9 -9
- package/lib/engine/webcomponents/icons.js +52 -52
- package/lib/engine/webcomponents/index.d.ts +1 -1
- package/lib/engine/webcomponents/index.js +1 -1
- package/lib/engine/webcomponents/logo-element.d.ts +10 -10
- package/lib/engine/webcomponents/logo-element.js +67 -67
- package/lib/engine/webcomponents/needle menu/needle-menu-spatial.d.ts +37 -37
- package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js +513 -513
- package/lib/engine/webcomponents/needle menu/needle-menu.d.ts +155 -155
- package/lib/engine/webcomponents/needle menu/needle-menu.js +1029 -1029
- package/lib/engine/webcomponents/needle-button.d.ts +34 -34
- package/lib/engine/webcomponents/needle-button.js +161 -161
- package/lib/engine/webcomponents/needle-engine.ar-overlay.d.ts +21 -21
- package/lib/engine/webcomponents/needle-engine.ar-overlay.js +166 -166
- package/lib/engine/webcomponents/needle-engine.attributes.d.ts +69 -69
- package/lib/engine/webcomponents/needle-engine.attributes.js +1 -1
- package/lib/engine/webcomponents/needle-engine.d.ts +116 -116
- package/lib/engine/webcomponents/needle-engine.extras.d.ts +6 -6
- package/lib/engine/webcomponents/needle-engine.extras.js +13 -13
- package/lib/engine/webcomponents/needle-engine.js +821 -821
- package/lib/engine/webcomponents/needle-engine.loading.d.ts +44 -44
- package/lib/engine/webcomponents/needle-engine.loading.js +341 -341
- package/lib/engine/xr/NeedleXRController.d.ts +313 -313
- package/lib/engine/xr/NeedleXRController.js +1007 -1007
- package/lib/engine/xr/NeedleXRSession.d.ts +340 -340
- package/lib/engine/xr/NeedleXRSession.js +1463 -1463
- package/lib/engine/xr/NeedleXRSync.d.ts +22 -22
- package/lib/engine/xr/NeedleXRSync.js +188 -188
- package/lib/engine/xr/SceneTransition.d.ts +18 -18
- package/lib/engine/xr/SceneTransition.js +69 -69
- package/lib/engine/xr/TempXRContext.d.ts +34 -34
- package/lib/engine/xr/TempXRContext.js +187 -187
- package/lib/engine/xr/XRRig.d.ts +7 -7
- package/lib/engine/xr/XRRig.js +1 -1
- package/lib/engine/xr/api.d.ts +6 -6
- package/lib/engine/xr/api.js +6 -6
- package/lib/engine/xr/events.d.ts +66 -66
- package/lib/engine/xr/events.js +93 -93
- package/lib/engine/xr/internal.d.ts +12 -12
- package/lib/engine/xr/internal.js +25 -25
- package/lib/engine/xr/usdz.d.ts +12 -12
- package/lib/engine/xr/usdz.js +29 -29
- package/lib/engine/xr/utils.d.ts +11 -11
- package/lib/engine/xr/utils.js +34 -34
- package/lib/engine-components/AlignmentConstraint.d.ts +10 -10
- package/lib/engine-components/AlignmentConstraint.js +39 -39
- package/lib/engine-components/Animation.d.ts +156 -156
- package/lib/engine-components/Animation.js +508 -508
- package/lib/engine-components/AnimationCurve.d.ts +40 -40
- package/lib/engine-components/AnimationCurve.js +159 -159
- package/lib/engine-components/AnimationUtils.d.ts +8 -8
- package/lib/engine-components/AnimationUtils.js +27 -27
- package/lib/engine-components/AnimationUtilsAutoplay.d.ts +1 -1
- package/lib/engine-components/AnimationUtilsAutoplay.js +39 -39
- package/lib/engine-components/Animator.d.ts +217 -217
- package/lib/engine-components/Animator.js +354 -354
- package/lib/engine-components/AnimatorController.d.ts +227 -227
- package/lib/engine-components/AnimatorController.js +1152 -1152
- package/lib/engine-components/AudioListener.d.ts +33 -33
- package/lib/engine-components/AudioListener.js +86 -86
- package/lib/engine-components/AudioSource.d.ts +217 -217
- package/lib/engine-components/AudioSource.js +635 -635
- package/lib/engine-components/AvatarLoader.d.ts +80 -80
- package/lib/engine-components/AvatarLoader.js +231 -231
- package/lib/engine-components/AxesHelper.d.ts +32 -32
- package/lib/engine-components/AxesHelper.js +67 -67
- package/lib/engine-components/BasicIKConstraint.d.ts +9 -9
- package/lib/engine-components/BasicIKConstraint.js +43 -43
- package/lib/engine-components/BoxCollider.d.ts +2 -2
- package/lib/engine-components/BoxCollider.js +2 -2
- package/lib/engine-components/BoxHelperComponent.d.ts +47 -47
- package/lib/engine-components/BoxHelperComponent.js +102 -102
- package/lib/engine-components/Camera.d.ts +231 -231
- package/lib/engine-components/Camera.js +700 -700
- package/lib/engine-components/CameraUtils.d.ts +1 -1
- package/lib/engine-components/CameraUtils.js +121 -121
- package/lib/engine-components/CharacterController.d.ts +55 -55
- package/lib/engine-components/CharacterController.js +236 -236
- package/lib/engine-components/Collider.d.ts +188 -188
- package/lib/engine-components/Collider.js +369 -369
- package/lib/engine-components/Component.d.ts +792 -792
- package/lib/engine-components/Component.js +920 -920
- package/lib/engine-components/ContactShadows.d.ts +94 -94
- package/lib/engine-components/ContactShadows.js +453 -453
- package/lib/engine-components/DeleteBox.d.ts +19 -19
- package/lib/engine-components/DeleteBox.js +58 -58
- package/lib/engine-components/DeviceFlag.d.ts +16 -16
- package/lib/engine-components/DeviceFlag.js +47 -47
- package/lib/engine-components/DragControls.d.ts +170 -170
- package/lib/engine-components/DragControls.js +1421 -1421
- package/lib/engine-components/DropListener.d.ts +215 -215
- package/lib/engine-components/DropListener.js +642 -642
- package/lib/engine-components/Duplicatable.d.ts +35 -35
- package/lib/engine-components/Duplicatable.js +202 -202
- package/lib/engine-components/EventList.d.ts +54 -54
- package/lib/engine-components/EventList.js +232 -232
- package/lib/engine-components/EventTrigger.d.ts +33 -33
- package/lib/engine-components/EventTrigger.js +75 -75
- package/lib/engine-components/EventType.d.ts +22 -22
- package/lib/engine-components/EventType.js +23 -23
- package/lib/engine-components/Fog.d.ts +22 -22
- package/lib/engine-components/Fog.js +61 -61
- package/lib/engine-components/Gizmos.d.ts +17 -17
- package/lib/engine-components/Gizmos.js +64 -64
- package/lib/engine-components/GridHelper.d.ts +20 -20
- package/lib/engine-components/GridHelper.js +54 -54
- package/lib/engine-components/GroundProjection.d.ts +67 -67
- package/lib/engine-components/GroundProjection.js +343 -343
- package/lib/engine-components/Interactable.d.ts +12 -12
- package/lib/engine-components/Interactable.js +12 -12
- package/lib/engine-components/Joints.d.ts +19 -19
- package/lib/engine-components/Joints.js +51 -51
- package/lib/engine-components/LODGroup.d.ts +35 -35
- package/lib/engine-components/LODGroup.js +152 -152
- package/lib/engine-components/Light.d.ts +180 -180
- package/lib/engine-components/Light.js +535 -535
- package/lib/engine-components/LookAtConstraint.d.ts +19 -19
- package/lib/engine-components/LookAtConstraint.js +35 -35
- package/lib/engine-components/NeedleMenu.d.ts +50 -50
- package/lib/engine-components/NeedleMenu.js +92 -92
- package/lib/engine-components/NestedGltf.d.ts +25 -25
- package/lib/engine-components/NestedGltf.js +88 -88
- package/lib/engine-components/Networking.d.ts +54 -54
- package/lib/engine-components/Networking.js +112 -112
- package/lib/engine-components/OffsetConstraint.d.ts +14 -14
- package/lib/engine-components/OffsetConstraint.js +65 -65
- package/lib/engine-components/OrbitControls.d.ts +268 -268
- package/lib/engine-components/OrbitControls.js +1015 -1015
- package/lib/engine-components/PlayerColor.d.ts +19 -19
- package/lib/engine-components/PlayerColor.js +94 -94
- package/lib/engine-components/ReflectionProbe.d.ts +28 -28
- package/lib/engine-components/ReflectionProbe.js +204 -204
- package/lib/engine-components/Renderer.d.ts +153 -153
- package/lib/engine-components/Renderer.js +834 -834
- package/lib/engine-components/RendererInstancing.d.ts +140 -140
- package/lib/engine-components/RendererInstancing.js +744 -744
- package/lib/engine-components/RendererLightmap.d.ts +24 -24
- package/lib/engine-components/RendererLightmap.js +182 -182
- package/lib/engine-components/RigidBody.d.ts +155 -155
- package/lib/engine-components/RigidBody.js +517 -517
- package/lib/engine-components/SceneSwitcher.d.ts +263 -263
- package/lib/engine-components/SceneSwitcher.js +971 -971
- package/lib/engine-components/ScreenCapture.d.ts +144 -144
- package/lib/engine-components/ScreenCapture.js +547 -547
- package/lib/engine-components/ShadowCatcher.d.ts +33 -33
- package/lib/engine-components/ShadowCatcher.js +166 -166
- package/lib/engine-components/Skybox.d.ts +88 -88
- package/lib/engine-components/Skybox.js +469 -469
- package/lib/engine-components/SmoothFollow.d.ts +34 -34
- package/lib/engine-components/SmoothFollow.js +82 -82
- package/lib/engine-components/SpatialTrigger.d.ts +102 -102
- package/lib/engine-components/SpatialTrigger.js +225 -225
- package/lib/engine-components/SpectatorCamera.d.ts +111 -111
- package/lib/engine-components/SpectatorCamera.js +715 -715
- package/lib/engine-components/SphereCollider.d.ts +2 -2
- package/lib/engine-components/SphereCollider.js +2 -2
- package/lib/engine-components/SpriteRenderer.d.ts +132 -132
- package/lib/engine-components/SpriteRenderer.js +472 -472
- package/lib/engine-components/SyncedCamera.d.ts +41 -41
- package/lib/engine-components/SyncedCamera.js +199 -199
- package/lib/engine-components/SyncedRoom.d.ts +106 -106
- package/lib/engine-components/SyncedRoom.js +371 -371
- package/lib/engine-components/SyncedTransform.d.ts +94 -94
- package/lib/engine-components/SyncedTransform.js +331 -331
- package/lib/engine-components/TestRunner.d.ts +16 -16
- package/lib/engine-components/TestRunner.js +102 -102
- package/lib/engine-components/TransformGizmo.d.ts +75 -75
- package/lib/engine-components/TransformGizmo.js +209 -209
- package/lib/engine-components/VideoPlayer.d.ts +184 -184
- package/lib/engine-components/VideoPlayer.js +978 -978
- package/lib/engine-components/Voip.d.ts +67 -67
- package/lib/engine-components/Voip.js +360 -360
- package/lib/engine-components/api.d.ts +51 -51
- package/lib/engine-components/api.js +50 -50
- package/lib/engine-components/avatar/AvatarBlink_Simple.d.ts +11 -11
- package/lib/engine-components/avatar/AvatarBlink_Simple.js +76 -76
- package/lib/engine-components/avatar/AvatarEyeLook_Rotation.d.ts +14 -14
- package/lib/engine-components/avatar/AvatarEyeLook_Rotation.js +68 -68
- package/lib/engine-components/avatar/Avatar_Brain_LookAt.d.ts +29 -29
- package/lib/engine-components/avatar/Avatar_Brain_LookAt.js +121 -121
- package/lib/engine-components/avatar/Avatar_MouthShapes.d.ts +15 -15
- package/lib/engine-components/avatar/Avatar_MouthShapes.js +79 -79
- package/lib/engine-components/avatar/Avatar_MustacheShake.d.ts +9 -9
- package/lib/engine-components/avatar/Avatar_MustacheShake.js +29 -29
- package/lib/engine-components/codegen/components.d.ts +216 -216
- package/lib/engine-components/codegen/components.js +218 -218
- package/lib/engine-components/debug/LogStats.d.ts +5 -5
- package/lib/engine-components/debug/LogStats.js +18 -18
- package/lib/engine-components/export/gltf/GltfExport.d.ts +30 -30
- package/lib/engine-components/export/gltf/GltfExport.js +246 -246
- package/lib/engine-components/export/gltf/index.d.ts +1 -1
- package/lib/engine-components/export/gltf/index.js +1 -1
- package/lib/engine-components/export/index.d.ts +1 -1
- package/lib/engine-components/export/index.js +1 -1
- package/lib/engine-components/export/usdz/Extension.d.ts +22 -22
- package/lib/engine-components/export/usdz/Extension.js +1 -1
- package/lib/engine-components/export/usdz/ThreeUSDZExporter.d.ts +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 +59 -59
- package/lib/engine-components/postprocessing/Effects/BloomEffect.d.ts +46 -46
- package/lib/engine-components/postprocessing/Effects/BloomEffect.js +113 -113
- package/lib/engine-components/postprocessing/Effects/ChromaticAberration.d.ts +11 -11
- package/lib/engine-components/postprocessing/Effects/ChromaticAberration.js +39 -39
- package/lib/engine-components/postprocessing/Effects/ColorAdjustments.d.ts +23 -23
- package/lib/engine-components/postprocessing/Effects/ColorAdjustments.js +111 -111
- package/lib/engine-components/postprocessing/Effects/DepthOfField.d.ts +25 -25
- package/lib/engine-components/postprocessing/Effects/DepthOfField.js +104 -104
- package/lib/engine-components/postprocessing/Effects/EffectWrapper.d.ts +12 -12
- package/lib/engine-components/postprocessing/Effects/EffectWrapper.js +18 -18
- package/lib/engine-components/postprocessing/Effects/Pixelation.d.ts +11 -11
- package/lib/engine-components/postprocessing/Effects/Pixelation.js +32 -32
- package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.d.ts +18 -18
- package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.js +91 -91
- package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.d.ts +70 -70
- package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js +176 -176
- package/lib/engine-components/postprocessing/Effects/Sharpening.d.ts +18 -18
- package/lib/engine-components/postprocessing/Effects/Sharpening.js +127 -127
- package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.d.ts +17 -17
- package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.js +70 -70
- package/lib/engine-components/postprocessing/Effects/Tonemapping.d.ts +19 -19
- package/lib/engine-components/postprocessing/Effects/Tonemapping.js +94 -94
- package/lib/engine-components/postprocessing/Effects/Tonemapping.utils.d.ts +13 -13
- package/lib/engine-components/postprocessing/Effects/Tonemapping.utils.js +51 -51
- package/lib/engine-components/postprocessing/Effects/Vignette.d.ts +15 -15
- package/lib/engine-components/postprocessing/Effects/Vignette.js +60 -60
- package/lib/engine-components/postprocessing/PostProcessingEffect.d.ts +90 -90
- package/lib/engine-components/postprocessing/PostProcessingEffect.js +168 -168
- package/lib/engine-components/postprocessing/PostProcessingHandler.d.ts +42 -42
- package/lib/engine-components/postprocessing/PostProcessingHandler.js +494 -495
- package/lib/engine-components/postprocessing/PostProcessingHandler.js.map +1 -1
- package/lib/engine-components/postprocessing/Volume.d.ts +90 -90
- package/lib/engine-components/postprocessing/Volume.js +385 -385
- package/lib/engine-components/postprocessing/VolumeParameter.d.ts +26 -26
- package/lib/engine-components/postprocessing/VolumeParameter.js +136 -136
- package/lib/engine-components/postprocessing/VolumeProfile.d.ts +15 -15
- package/lib/engine-components/postprocessing/VolumeProfile.js +60 -60
- package/lib/engine-components/postprocessing/index.d.ts +6 -6
- package/lib/engine-components/postprocessing/index.js +6 -6
- package/lib/engine-components/postprocessing/utils.d.ts +55 -55
- package/lib/engine-components/postprocessing/utils.js +119 -119
- package/lib/engine-components/timeline/PlayableDirector.d.ts +163 -163
- package/lib/engine-components/timeline/PlayableDirector.js +686 -686
- package/lib/engine-components/timeline/SignalAsset.d.ts +24 -24
- package/lib/engine-components/timeline/SignalAsset.js +130 -130
- package/lib/engine-components/timeline/TimelineModels.d.ts +89 -89
- package/lib/engine-components/timeline/TimelineModels.js +22 -22
- package/lib/engine-components/timeline/TimelineTracks.d.ts +110 -110
- package/lib/engine-components/timeline/TimelineTracks.js +879 -879
- package/lib/engine-components/timeline/index.d.ts +4 -4
- package/lib/engine-components/timeline/index.js +3 -3
- package/lib/engine-components/ui/BaseUIComponent.d.ts +48 -48
- package/lib/engine-components/ui/BaseUIComponent.js +170 -170
- package/lib/engine-components/ui/Button.d.ts +64 -64
- package/lib/engine-components/ui/Button.js +315 -315
- package/lib/engine-components/ui/Canvas.d.ts +74 -74
- package/lib/engine-components/ui/Canvas.js +407 -407
- package/lib/engine-components/ui/CanvasGroup.d.ts +19 -19
- package/lib/engine-components/ui/CanvasGroup.js +58 -58
- package/lib/engine-components/ui/EventSystem.d.ts +125 -125
- package/lib/engine-components/ui/EventSystem.js +765 -765
- package/lib/engine-components/ui/Graphic.d.ts +55 -55
- package/lib/engine-components/ui/Graphic.js +255 -255
- package/lib/engine-components/ui/Image.d.ts +35 -35
- package/lib/engine-components/ui/Image.js +116 -116
- package/lib/engine-components/ui/InputField.d.ts +42 -42
- package/lib/engine-components/ui/InputField.js +268 -268
- package/lib/engine-components/ui/Interfaces.d.ts +38 -38
- package/lib/engine-components/ui/Interfaces.js +12 -12
- package/lib/engine-components/ui/Layout.d.ts +84 -84
- package/lib/engine-components/ui/Layout.js +330 -330
- package/lib/engine-components/ui/Outline.d.ts +7 -7
- package/lib/engine-components/ui/Outline.js +20 -20
- package/lib/engine-components/ui/PointerEvents.d.ts +115 -115
- package/lib/engine-components/ui/PointerEvents.js +145 -145
- package/lib/engine-components/ui/RaycastUtils.d.ts +11 -11
- package/lib/engine-components/ui/RaycastUtils.js +67 -67
- package/lib/engine-components/ui/Raycaster.d.ts +30 -30
- package/lib/engine-components/ui/Raycaster.js +95 -95
- package/lib/engine-components/ui/RectTransform.d.ts +61 -61
- package/lib/engine-components/ui/RectTransform.js +356 -356
- package/lib/engine-components/ui/SpatialHtml.d.ts +8 -8
- package/lib/engine-components/ui/SpatialHtml.js +79 -79
- package/lib/engine-components/ui/Symbols.d.ts +1 -1
- package/lib/engine-components/ui/Symbols.js +1 -1
- package/lib/engine-components/ui/Text.d.ts +78 -78
- package/lib/engine-components/ui/Text.js +539 -539
- package/lib/engine-components/ui/Utils.d.ts +24 -24
- package/lib/engine-components/ui/Utils.js +90 -90
- package/lib/engine-components/ui/index.d.ts +1 -1
- package/lib/engine-components/ui/index.js +1 -1
- package/lib/engine-components/utils/EnvironmentScene.d.ts +5 -5
- package/lib/engine-components/utils/EnvironmentScene.js +205 -205
- package/lib/engine-components/utils/LookAt.d.ts +31 -31
- package/lib/engine-components/utils/LookAt.js +82 -82
- package/lib/engine-components/utils/OpenURL.d.ts +42 -42
- package/lib/engine-components/utils/OpenURL.js +119 -119
- package/lib/engine-components/webxr/Avatar.d.ts +25 -25
- package/lib/engine-components/webxr/Avatar.js +255 -255
- package/lib/engine-components/webxr/TeleportTarget.d.ts +7 -7
- package/lib/engine-components/webxr/TeleportTarget.js +7 -7
- package/lib/engine-components/webxr/WebARCameraBackground.d.ts +30 -30
- package/lib/engine-components/webxr/WebARCameraBackground.js +155 -155
- package/lib/engine-components/webxr/WebARSessionRoot.d.ts +98 -98
- package/lib/engine-components/webxr/WebARSessionRoot.js +770 -770
- package/lib/engine-components/webxr/WebXR.d.ts +232 -232
- package/lib/engine-components/webxr/WebXR.js +561 -561
- package/lib/engine-components/webxr/WebXRAvatar.d.ts +27 -27
- package/lib/engine-components/webxr/WebXRAvatar.js +44 -44
- package/lib/engine-components/webxr/WebXRImageTracking.d.ts +86 -86
- package/lib/engine-components/webxr/WebXRImageTracking.js +471 -471
- package/lib/engine-components/webxr/WebXRPlaneTracking.d.ts +92 -92
- package/lib/engine-components/webxr/WebXRPlaneTracking.js +500 -500
- package/lib/engine-components/webxr/WebXRRig.d.ts +32 -32
- package/lib/engine-components/webxr/WebXRRig.js +72 -72
- package/lib/engine-components/webxr/XRFlag.d.ts +38 -38
- package/lib/engine-components/webxr/XRFlag.js +139 -139
- package/lib/engine-components/webxr/controllers/XRControllerFollow.d.ts +47 -47
- package/lib/engine-components/webxr/controllers/XRControllerFollow.js +120 -120
- package/lib/engine-components/webxr/controllers/XRControllerModel.d.ts +43 -43
- package/lib/engine-components/webxr/controllers/XRControllerModel.js +352 -352
- package/lib/engine-components/webxr/controllers/XRControllerMovement.d.ts +78 -78
- package/lib/engine-components/webxr/controllers/XRControllerMovement.js +506 -506
- package/lib/engine-components/webxr/index.d.ts +3 -3
- package/lib/engine-components/webxr/index.js +3 -3
- package/lib/engine-components/webxr/types.d.ts +3 -3
- package/lib/engine-components/webxr/types.js +1 -1
- package/lib/engine-components-experimental/Presentation.d.ts +6 -6
- package/lib/engine-components-experimental/Presentation.js +9 -9
- package/lib/engine-components-experimental/api.d.ts +4 -4
- package/lib/engine-components-experimental/api.js +4 -4
- package/lib/engine-components-experimental/networking/PlayerSync.d.ts +156 -156
- package/lib/engine-components-experimental/networking/PlayerSync.js +377 -377
- package/lib/engine-schemes/api.d.ts +12 -12
- package/lib/engine-schemes/api.js +12 -12
- package/lib/engine-schemes/schemes.d.ts +7 -7
- package/lib/engine-schemes/schemes.js +19 -19
- package/lib/engine-schemes/synced-camera-model.d.ts +25 -25
- package/lib/engine-schemes/synced-camera-model.js +67 -67
- package/lib/engine-schemes/synced-transform-model.d.ts +31 -31
- package/lib/engine-schemes/synced-transform-model.js +66 -66
- package/lib/engine-schemes/transform.d.ts +12 -12
- package/lib/engine-schemes/transform.js +39 -39
- package/lib/engine-schemes/vec2.d.ts +10 -10
- package/lib/engine-schemes/vec2.js +25 -25
- package/lib/engine-schemes/vec3.d.ts +11 -11
- package/lib/engine-schemes/vec3.js +29 -29
- package/lib/engine-schemes/vec4.d.ts +12 -12
- package/lib/engine-schemes/vec4.js +33 -33
- package/lib/engine-schemes/vr-user-state-buffer.d.ts +37 -37
- package/lib/engine-schemes/vr-user-state-buffer.js +110 -110
- package/lib/include/three/EXT_mesh_gpu_instancing_exporter.d.ts +6 -6
- package/lib/include/three/EXT_mesh_gpu_instancing_exporter.js +45 -45
- package/lib/needle-engine.d.ts +7 -7
- package/lib/needle-engine.js +64 -64
- package/package.json +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 +452 -452
- package/plugins/common/npm.js +15 -15
- package/plugins/common/timers.js +7 -7
- package/plugins/common/version.js +37 -37
- package/plugins/gltf-packer.mjs +1 -1
- package/plugins/next/alias.cjs +39 -39
- package/plugins/next/license.cjs +24 -24
- package/plugins/next/meshbvhworker.cjs +18 -18
- package/plugins/next/next.js +141 -141
- package/plugins/types/index.d.ts +2 -2
- package/plugins/types/license.d.ts +24 -24
- package/plugins/types/needleConfig.d.ts +27 -27
- package/plugins/types/next.d.ts +2 -2
- package/plugins/types/userconfig.d.ts +120 -120
- package/plugins/types/vite.d.ts +13 -13
- package/plugins/types/webmanifest.d.ts +32 -32
- package/plugins/vite/alias.js +184 -184
- package/plugins/vite/asap.js +251 -251
- package/plugins/vite/build-pipeline.js +371 -371
- package/plugins/vite/build.js +19 -19
- package/plugins/vite/buildinfo.js +41 -41
- package/plugins/vite/config.js +106 -106
- package/plugins/vite/copyfiles.js +138 -138
- package/plugins/vite/defines.js +70 -70
- package/plugins/vite/dependencies.js +232 -232
- package/plugins/vite/dependency-watcher.js +237 -237
- package/plugins/vite/drop-client.js +76 -76
- package/plugins/vite/drop.js +87 -87
- package/plugins/vite/editor-connection.js +124 -124
- package/plugins/vite/facebook-instant-games.js +102 -102
- package/plugins/vite/gzip.js +5 -5
- package/plugins/vite/imports-logger.js +143 -143
- package/plugins/vite/index.js +143 -143
- package/plugins/vite/license.js +56 -56
- package/plugins/vite/local-files.js +440 -440
- 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 +389 -389
- package/src/engine/engine_audio.ts +24 -24
- package/src/engine/engine_camera.ts +39 -39
- package/src/engine/engine_components.ts +366 -366
- package/src/engine/engine_components_internal.ts +40 -40
- package/src/engine/engine_constants.ts +52 -52
- package/src/engine/engine_context.ts +1824 -1824
- package/src/engine/engine_context_registry.ts +129 -129
- package/src/engine/engine_coroutine.ts +54 -54
- package/src/engine/engine_create_objects.ts +411 -411
- package/src/engine/engine_default_parameters.ts +3 -3
- package/src/engine/engine_editor-sync.ts +28 -28
- package/src/engine/engine_fileloader.js +9 -9
- package/src/engine/engine_gameobject.ts +712 -712
- package/src/engine/engine_generic_utils.js +13 -13
- package/src/engine/engine_gizmos.ts +577 -577
- package/src/engine/engine_gltf.ts +29 -29
- package/src/engine/engine_gltf_builtin_components.ts +403 -403
- package/src/engine/engine_hot_reload.ts +210 -210
- package/src/engine/engine_input.ts +1500 -1500
- package/src/engine/engine_input_utils.ts +23 -23
- package/src/engine/engine_instancing.ts +45 -45
- package/src/engine/engine_license.ts +386 -386
- package/src/engine/engine_lifecycle_api.ts +113 -113
- package/src/engine/engine_lifecycle_functions_internal.ts +193 -193
- package/src/engine/engine_lightdata.ts +117 -117
- package/src/engine/engine_loaders.callbacks.ts +136 -136
- package/src/engine/engine_loaders.gltf.ts +82 -82
- package/src/engine/engine_loaders.ts +378 -378
- package/src/engine/engine_lods.ts +168 -168
- package/src/engine/engine_mainloop_utils.ts +472 -472
- package/src/engine/engine_math.ts +282 -282
- package/src/engine/engine_modules.ts +83 -83
- package/src/engine/engine_networking.ts +862 -862
- package/src/engine/engine_networking_auto.ts +352 -352
- package/src/engine/engine_networking_blob.ts +275 -275
- package/src/engine/engine_networking_files.ts +217 -217
- package/src/engine/engine_networking_files_default_components.ts +58 -58
- package/src/engine/engine_networking_instantiate.ts +419 -419
- package/src/engine/engine_networking_peer.ts +159 -159
- package/src/engine/engine_networking_streams.ts +713 -713
- package/src/engine/engine_networking_types.ts +24 -24
- package/src/engine/engine_networking_utils.ts +23 -23
- package/src/engine/engine_networking_websocket.ts +2 -2
- package/src/engine/engine_patcher.ts +199 -199
- package/src/engine/engine_physics.ts +783 -783
- package/src/engine/engine_physics.types.ts +46 -46
- package/src/engine/engine_physics_rapier.ts +1577 -1577
- package/src/engine/engine_playerview.ts +80 -80
- package/src/engine/engine_scenelighting.ts +294 -294
- package/src/engine/engine_serialization.ts +2 -2
- package/src/engine/engine_serialization_builtin_serializer.ts +473 -473
- package/src/engine/engine_serialization_core.ts +720 -720
- package/src/engine/engine_serialization_decorator.ts +80 -80
- package/src/engine/engine_setup.ts +1 -1
- package/src/engine/engine_shaders.ts +267 -267
- package/src/engine/engine_shims.ts +32 -32
- package/src/engine/engine_test_utils.ts +109 -109
- package/src/engine/engine_texture.ts +82 -82
- package/src/engine/engine_three_utils.ts +925 -925
- package/src/engine/engine_time.ts +94 -94
- package/src/engine/engine_time_utils.ts +237 -237
- package/src/engine/engine_tonemapping.ts +208 -208
- package/src/engine/engine_types.ts +730 -730
- package/src/engine/engine_typestore.ts +63 -63
- package/src/engine/engine_util_decorator.ts +136 -136
- package/src/engine/engine_utils.ts +1115 -1115
- package/src/engine/engine_utils_format.ts +273 -273
- package/src/engine/engine_utils_screenshot.ts +708 -708
- package/src/engine/engine_utils_screenshot.xr.ts +103 -103
- package/src/engine/export/gltf/Writers.ts +34 -34
- package/src/engine/export/gltf/index.ts +158 -158
- package/src/engine/export/index.ts +2 -2
- package/src/engine/export/state.ts +19 -19
- package/src/engine/export/utils.ts +9 -9
- package/src/engine/extensions/EXT_texture_exr.ts +50 -50
- package/src/engine/extensions/NEEDLE_animator_controller_model.ts +195 -195
- package/src/engine/extensions/NEEDLE_components.ts +268 -268
- package/src/engine/extensions/NEEDLE_gameobject_data.ts +81 -81
- package/src/engine/extensions/NEEDLE_lighting_settings.ts +185 -185
- package/src/engine/extensions/NEEDLE_lightmaps.ts +119 -119
- package/src/engine/extensions/NEEDLE_persistent_assets.ts +76 -76
- package/src/engine/extensions/NEEDLE_render_objects.ts +209 -209
- package/src/engine/extensions/NEEDLE_techniques_webgl.ts +640 -640
- package/src/engine/extensions/extension_resolver.ts +4 -4
- package/src/engine/extensions/extension_utils.ts +166 -166
- package/src/engine/extensions/extensions.ts +140 -140
- package/src/engine/extensions/index.ts +5 -5
- package/src/engine/extensions/usage_tracker.ts +100 -100
- package/src/engine/js-extensions/Camera.ts +37 -37
- package/src/engine/js-extensions/ExtensionUtils.ts +85 -85
- package/src/engine/js-extensions/Layers.ts +23 -23
- package/src/engine/js-extensions/Object3D.ts +296 -296
- package/src/engine/js-extensions/RGBAColor.ts +126 -126
- package/src/engine/js-extensions/Vector.ts +18 -18
- package/src/engine/js-extensions/index.ts +4 -4
- package/src/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js +125 -125
- package/src/engine/shaders/shaderData.ts +67 -67
- package/src/engine/tests/test_utils.ts +63 -63
- package/src/engine/webcomponents/WebXRButtons.ts +260 -260
- package/src/engine/webcomponents/api.ts +6 -6
- package/src/engine/webcomponents/buttons.ts +292 -292
- package/src/engine/webcomponents/fonts.ts +41 -41
- package/src/engine/webcomponents/icons.ts +57 -57
- package/src/engine/webcomponents/index.ts +1 -1
- package/src/engine/webcomponents/logo-element.ts +78 -78
- package/src/engine/webcomponents/needle menu/needle-menu-spatial.ts +573 -573
- package/src/engine/webcomponents/needle menu/needle-menu.ts +1118 -1118
- package/src/engine/webcomponents/needle-button.ts +181 -181
- package/src/engine/webcomponents/needle-engine.ar-overlay.ts +186 -186
- package/src/engine/webcomponents/needle-engine.attributes.ts +82 -82
- package/src/engine/webcomponents/needle-engine.extras.ts +16 -16
- package/src/engine/webcomponents/needle-engine.loading.ts +373 -373
- package/src/engine/webcomponents/needle-engine.ts +860 -860
- package/src/engine/xr/NeedleXRController.ts +1125 -1125
- package/src/engine/xr/NeedleXRSession.ts +1624 -1624
- package/src/engine/xr/NeedleXRSync.ts +220 -220
- package/src/engine/xr/SceneTransition.ts +78 -78
- package/src/engine/xr/TempXRContext.ts +216 -216
- package/src/engine/xr/XRRig.ts +9 -9
- package/src/engine/xr/api.ts +5 -5
- package/src/engine/xr/events.ts +102 -102
- package/src/engine/xr/internal.ts +34 -34
- package/src/engine/xr/usdz.ts +30 -30
- package/src/engine/xr/utils.ts +39 -39
- package/src/engine-components/AlignmentConstraint.ts +36 -36
- package/src/engine-components/Animation.ts +557 -557
- package/src/engine-components/AnimationCurve.ts +150 -150
- package/src/engine-components/AnimationUtils.ts +28 -28
- package/src/engine-components/AnimationUtilsAutoplay.ts +43 -43
- package/src/engine-components/Animator.ts +397 -397
- package/src/engine-components/AnimatorController.ts +1293 -1293
- package/src/engine-components/AudioListener.ts +92 -92
- package/src/engine-components/AudioSource.ts +644 -644
- package/src/engine-components/AvatarLoader.ts +263 -263
- package/src/engine-components/AxesHelper.ts +59 -59
- package/src/engine-components/BasicIKConstraint.ts +54 -54
- package/src/engine-components/BoxCollider.ts +1 -1
- package/src/engine-components/BoxHelperComponent.ts +114 -114
- package/src/engine-components/Camera.ts +719 -719
- package/src/engine-components/CameraUtils.ts +136 -136
- package/src/engine-components/CharacterController.ts +253 -253
- package/src/engine-components/Collider.ts +374 -374
- package/src/engine-components/Component.ts +1297 -1297
- package/src/engine-components/ContactShadows.ts +506 -506
- package/src/engine-components/DeleteBox.ts +62 -62
- package/src/engine-components/DeviceFlag.ts +46 -46
- package/src/engine-components/DragControls.ts +1623 -1623
- package/src/engine-components/DropListener.ts +713 -713
- package/src/engine-components/Duplicatable.ts +198 -198
- package/src/engine-components/EventList.ts +266 -266
- package/src/engine-components/EventTrigger.ts +74 -74
- package/src/engine-components/EventType.ts +22 -22
- package/src/engine-components/Fog.ts +60 -60
- package/src/engine-components/Gizmos.ts +56 -56
- package/src/engine-components/GridHelper.ts +48 -48
- package/src/engine-components/GroundProjection.ts +356 -356
- package/src/engine-components/Interactable.ts +14 -14
- package/src/engine-components/Joints.ts +52 -52
- package/src/engine-components/LODGroup.ts +153 -153
- package/src/engine-components/Light.ts +558 -558
- package/src/engine-components/LookAtConstraint.ts +25 -25
- package/src/engine-components/NeedleMenu.ts +84 -84
- package/src/engine-components/NestedGltf.ts +86 -86
- package/src/engine-components/Networking.ts +114 -114
- package/src/engine-components/OffsetConstraint.ts +60 -60
- package/src/engine-components/OrbitControls.ts +1074 -1074
- package/src/engine-components/PlayerColor.ts +103 -103
- package/src/engine-components/ReflectionProbe.ts +220 -220
- package/src/engine-components/Renderer.ts +903 -903
- package/src/engine-components/RendererInstancing.ts +855 -855
- package/src/engine-components/RendererLightmap.ts +198 -198
- package/src/engine-components/RigidBody.ts +526 -526
- package/src/engine-components/SceneSwitcher.ts +1030 -1030
- package/src/engine-components/ScreenCapture.ts +592 -592
- package/src/engine-components/ShadowCatcher.ts +172 -172
- package/src/engine-components/Skybox.ts +475 -475
- package/src/engine-components/SmoothFollow.ts +76 -76
- package/src/engine-components/SpatialTrigger.ts +229 -229
- package/src/engine-components/SpectatorCamera.ts +787 -787
- package/src/engine-components/SphereCollider.ts +1 -1
- package/src/engine-components/SpriteRenderer.ts +468 -468
- package/src/engine-components/SyncedCamera.ts +220 -220
- package/src/engine-components/SyncedRoom.ts +380 -380
- package/src/engine-components/SyncedTransform.ts +383 -383
- package/src/engine-components/TestRunner.ts +118 -118
- package/src/engine-components/TransformGizmo.ts +219 -219
- package/src/engine-components/VideoPlayer.ts +1025 -1025
- package/src/engine-components/Voip.ts +363 -363
- package/src/engine-components/api.ts +60 -60
- package/src/engine-components/avatar/AvatarBlink_Simple.ts +69 -69
- package/src/engine-components/avatar/AvatarEyeLook_Rotation.ts +63 -63
- package/src/engine-components/avatar/Avatar_Brain_LookAt.ts +139 -139
- package/src/engine-components/avatar/Avatar_MouthShapes.ts +83 -83
- package/src/engine-components/avatar/Avatar_MustacheShake.ts +31 -31
- package/src/engine-components/codegen/components.ts +217 -217
- package/src/engine-components/debug/LogStats.ts +21 -21
- package/src/engine-components/export/gltf/GltfExport.ts +265 -265
- package/src/engine-components/export/usdz/Extension.ts +24 -24
- package/src/engine-components/export/usdz/ThreeUSDZExporter.ts +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 +64 -64
- package/src/engine-components/postprocessing/Effects/BloomEffect.ts +116 -116
- package/src/engine-components/postprocessing/Effects/ChromaticAberration.ts +37 -37
- package/src/engine-components/postprocessing/Effects/ColorAdjustments.ts +106 -106
- package/src/engine-components/postprocessing/Effects/DepthOfField.ts +103 -103
- package/src/engine-components/postprocessing/Effects/EffectWrapper.ts +25 -25
- package/src/engine-components/postprocessing/Effects/Pixelation.ts +32 -32
- package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.ts +90 -90
- package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.ts +192 -192
- package/src/engine-components/postprocessing/Effects/Sharpening.ts +143 -143
- package/src/engine-components/postprocessing/Effects/TiltShiftEffect.ts +61 -61
- package/src/engine-components/postprocessing/Effects/Tonemapping.ts +103 -103
- package/src/engine-components/postprocessing/Effects/Tonemapping.utils.ts +60 -60
- package/src/engine-components/postprocessing/Effects/Vignette.ts +59 -59
- package/src/engine-components/postprocessing/PostProcessingEffect.ts +192 -192
- package/src/engine-components/postprocessing/PostProcessingHandler.ts +572 -573
- package/src/engine-components/postprocessing/Volume.ts +426 -426
- package/src/engine-components/postprocessing/VolumeParameter.ts +158 -158
- package/src/engine-components/postprocessing/VolumeProfile.ts +61 -61
- package/src/engine-components/postprocessing/index.ts +5 -5
- package/src/engine-components/postprocessing/utils.ts +154 -154
- package/src/engine-components/timeline/PlayableDirector.ts +722 -722
- package/src/engine-components/timeline/SignalAsset.ts +144 -144
- package/src/engine-components/timeline/TimelineModels.ts +92 -92
- package/src/engine-components/timeline/TimelineTracks.ts +967 -967
- package/src/engine-components/timeline/index.ts +3 -3
- package/src/engine-components/ui/BaseUIComponent.ts +203 -203
- package/src/engine-components/ui/Button.ts +307 -307
- package/src/engine-components/ui/Canvas.ts +419 -419
- package/src/engine-components/ui/CanvasGroup.ts +54 -54
- package/src/engine-components/ui/EventSystem.ts +854 -854
- package/src/engine-components/ui/Graphic.ts +275 -275
- package/src/engine-components/ui/Image.ts +112 -112
- package/src/engine-components/ui/InputField.ts +321 -321
- package/src/engine-components/ui/Interfaces.ts +57 -57
- package/src/engine-components/ui/Layout.ts +334 -334
- package/src/engine-components/ui/Outline.ts +13 -13
- package/src/engine-components/ui/PointerEvents.ts +206 -206
- package/src/engine-components/ui/RaycastUtils.ts +69 -69
- package/src/engine-components/ui/Raycaster.ts +102 -102
- package/src/engine-components/ui/RectTransform.ts +375 -375
- package/src/engine-components/ui/SpatialHtml.ts +79 -79
- package/src/engine-components/ui/Symbols.ts +1 -1
- package/src/engine-components/ui/Text.ts +578 -578
- package/src/engine-components/ui/Utils.ts +113 -113
- package/src/engine-components/utils/EnvironmentScene.ts +245 -245
- package/src/engine-components/utils/LookAt.ts +88 -88
- package/src/engine-components/utils/OpenURL.ts +114 -114
- package/src/engine-components/webxr/Avatar.ts +265 -265
- package/src/engine-components/webxr/TeleportTarget.ts +9 -9
- package/src/engine-components/webxr/WebARCameraBackground.ts +175 -175
- package/src/engine-components/webxr/WebARSessionRoot.ts +880 -880
- package/src/engine-components/webxr/WebXR.ts +585 -585
- package/src/engine-components/webxr/WebXRAvatar.ts +66 -66
- package/src/engine-components/webxr/WebXRImageTracking.ts +519 -519
- package/src/engine-components/webxr/WebXRPlaneTracking.ts +570 -570
- package/src/engine-components/webxr/WebXRRig.ts +77 -77
- package/src/engine-components/webxr/XRFlag.ts +147 -147
- package/src/engine-components/webxr/controllers/XRControllerFollow.ts +118 -118
- package/src/engine-components/webxr/controllers/XRControllerModel.ts +373 -373
- package/src/engine-components/webxr/controllers/XRControllerMovement.ts +550 -550
- package/src/engine-components/webxr/index.ts +2 -2
- package/src/engine-components/webxr/types.ts +3 -3
- package/src/engine-components-experimental/Presentation.ts +12 -12
- package/src/engine-components-experimental/api.ts +4 -4
- package/src/engine-components-experimental/networking/PlayerSync.ts +401 -401
- package/src/engine-schemes/COMPILE_SCHEMES.bat +3 -3
- package/src/engine-schemes/COMPILE_TS.bat +11 -11
- package/src/engine-schemes/README.md +1 -1
- package/src/engine-schemes/api.ts +12 -12
- package/src/engine-schemes/schemes.ts +28 -28
- package/src/engine-schemes/synced-camera-model.ts +92 -92
- package/src/engine-schemes/synced-transform-model.ts +90 -90
- package/src/engine-schemes/syncedCamera.fbs +10 -10
- package/src/engine-schemes/transform.ts +50 -50
- package/src/engine-schemes/transforms.fbs +25 -25
- package/src/engine-schemes/vec.fbs +19 -19
- package/src/engine-schemes/vec2.ts +33 -33
- package/src/engine-schemes/vec3.ts +38 -38
- package/src/engine-schemes/vec4.ts +43 -43
- package/src/engine-schemes/vr-user-state-buffer.ts +145 -145
- package/src/engine-schemes/vrUserStateBuffer.fbs +17 -17
- package/src/include/draco/draco_decoder.js +34 -34
- package/src/include/ktx2/basis_transcoder.js +21 -21
- package/src/include/needle/arial-msdf.json +1471 -1471
- package/src/include/three/DragControls.js +231 -231
- package/src/include/three/EXT_mesh_gpu_instancing_exporter.js +66 -66
- package/src/needle-engine.ts +70 -70
- package/dist/generateMeshBVH.worker-Cdfpaq5W.js +0 -25
- package/lib/engine-components/export/usdz/extensions/NodeMaterialConverter.d.ts +0 -10
- package/lib/engine-components/export/usdz/extensions/NodeMaterialConverter.js +0 -452
- package/lib/engine-components/export/usdz/extensions/NodeMaterialConverter.js.map +0 -1
- package/src/engine-schemes/dist/api.js +0 -17
- package/src/engine-schemes/dist/api.js.meta +0 -7
- package/src/engine-schemes/dist/schemes.js +0 -25
- package/src/engine-schemes/dist/schemes.js.meta +0 -7
- package/src/engine-schemes/dist/synced-camera-model.js +0 -74
- package/src/engine-schemes/dist/synced-camera-model.js.meta +0 -7
- package/src/engine-schemes/dist/synced-transform-model.js +0 -73
- package/src/engine-schemes/dist/synced-transform-model.js.meta +0 -7
- package/src/engine-schemes/dist/transform.js +0 -46
- package/src/engine-schemes/dist/transform.js.meta +0 -7
- package/src/engine-schemes/dist/vec2.js +0 -32
- package/src/engine-schemes/dist/vec2.js.meta +0 -7
- package/src/engine-schemes/dist/vec3.js +0 -36
- package/src/engine-schemes/dist/vec3.js.meta +0 -7
- package/src/engine-schemes/dist/vec4.js +0 -40
- package/src/engine-schemes/dist/vec4.js.meta +0 -7
- package/src/engine-schemes/dist/vr-user-state-buffer.js +0 -110
- package/src/engine-schemes/dist/vr-user-state-buffer.js.meta +0 -7
|
@@ -5,12 +5,12 @@ var Qy = (o) => {
|
|
|
5
5
|
var iS = (o, t, e) => t in o ? tS(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
6
6
|
var r = (o, t, e) => iS(o, typeof t != "symbol" ? t + "" : t, e), $f = (o, t, e) => t.has(o) || Qy("Cannot " + e);
|
|
7
7
|
var fe = (o, t, e) => ($f(o, t, "read from private field"), e ? e.call(o) : t.get(o)), pn = (o, t, e) => t.has(o) ? Qy("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), mn = (o, t, e, i) => ($f(o, t, "write to private field"), i ? i.call(o, e) : t.set(o, e), e), zl = (o, t, e) => ($f(o, t, "access private method"), e);
|
|
8
|
-
import { Vector2 as ae, Vector3 as v, Vector4 as ye, Quaternion as W, PlaneGeometry as rs, WebGLRenderer as Yr, PerspectiveCamera as ve, OrthographicCamera as Tu, Scene as Bi, Mesh as G, Texture as ze, Uniform$1 as tn, Color as re, ShaderMaterial as Jn, Box3 as Di, ShadowMaterial as p0, Euler as Bt, MeshStandardMaterial as yt, Box3Helper as nS, GridHelper as hg, Object3D as I, Material as Pe, Matrix3 as m0, Matrix4 as oe, Layers as No, Ray as $o, MathUtils as Bs, AxesHelper as ji, MeshBasicMaterial as Me, DoubleSide as Fi, BufferGeometry as Yn, Group as Lo, CylinderGeometry as g0, SphereGeometry as Eu, BoxGeometry as Qa, SpriteMaterial as sS, Sprite as oS, Shape as rS, ExtrudeGeometry as aS, Fog as y0, DirectionalLight as em, PointLight as dg, EdgesGeometry as lS, LineSegments as _0, LineBasicMaterial as b0, Line as
|
|
9
|
-
import { createLoaders as _g, getRaycastMesh as P0, LODsManager as ua, NEEDLE_progressive as Ke, addDracoAndKTX2Loaders as _C, configureLoader as bC, setKTX2TranscoderLocation as vC, setDracoDecoderLocation as wC } from "./gltf-progressive-
|
|
10
|
-
import { GroundedSkybox as Za, Font as xC, TextGeometry as SC, FontLoader as CC, GLTFLoader as Gs, TransformControlsGizmo as O0, EXRLoader as jd, RGBELoader as sm, Stats as PC, nodeFrame as OC, OrbitControls as k0, PositionalAudioHelper as kC, HorizontalBlurShader as MC, VerticalBlurShader as RC, GLTFExporter as M0, strToU8 as R0, zipSync as TC, XRControllerModelFactory as EC, XRHandMeshModel as AC, Line2 as IC, LineGeometry as LC, LineMaterial as DC, KTX2Loader as jC, TransformControls as BC, InteractiveGroup as FC, HTMLMesh as zC, VertexNormalsHelper as UC, OBJLoader as bg, FBXLoader as T0, mergeVertices as NC } from "./three-examples-
|
|
11
|
-
import { fetchProfile as $C, MotionController as WC, $70d766613f57b014$export$2e2bcd8739ae039 as e_, ByteBuffer as VC, v5 as t_, md5 as i_, SIZE_PREFIX_LENGTH as E0, Builder as vg, createNoise4D as HC, Matrix4 as Vf, BatchedParticleRenderer as GC, ParticleSystem as qC, RenderMode as Ss, ConstantColor as XC, Vector4 as QC, ConstantValue as YC, TrailParticle as n_, WorkerBase as KC, MeshBVH as ZC } from "./vendor-
|
|
12
|
-
import { __webpack_exports__default as Ee, __webpack_exports__Text as A0, __webpack_exports__Block as I0, __webpack_exports__update as JC, SimpleStateBehavior as e1, __webpack_exports__Inline as Hf, __webpack_exports__FontLibrary as s_, ThreeMeshUI as o_ } from "./three-mesh-ui-
|
|
13
|
-
import { EffectAttribute as t1 } from "./postprocessing-
|
|
8
|
+
import { Vector2 as ae, Vector3 as v, Vector4 as ye, Quaternion as W, PlaneGeometry as rs, WebGLRenderer as Yr, PerspectiveCamera as ve, OrthographicCamera as Tu, Scene as Bi, Mesh as G, Texture as ze, Uniform$1 as tn, Color as re, ShaderMaterial as Jn, Box3 as Di, ShadowMaterial as p0, Euler as Bt, MeshStandardMaterial as yt, Box3Helper as nS, GridHelper as hg, Object3D as I, Material as Pe, Matrix3 as m0, Matrix4 as oe, Layers as No, Ray as $o, MathUtils as Bs, AxesHelper as ji, MeshBasicMaterial as Me, DoubleSide as Fi, BufferGeometry as Yn, Group as Lo, CylinderGeometry as g0, SphereGeometry as Eu, BoxGeometry as Qa, SpriteMaterial as sS, Sprite as oS, Shape as rS, ExtrudeGeometry as aS, Fog as y0, DirectionalLight as em, PointLight as dg, EdgesGeometry as lS, LineSegments as _0, LineBasicMaterial as b0, Line as Uc, BufferAttribute as _t, Raycaster as Au, Sphere as Iu, ArrayCamera as cS, Plane as Wr, SkinnedMesh as Fs, InterleavedBufferAttribute as v0, Skeleton as hS, Bone as dS, Source as uS, WebGLCubeRenderTarget as fS, CubeCamera as pS, AnimationClip as Do, FileLoader as ug, TextureLoader as Ua, PropertyBinding as Ya, LinearSRGBColorSpace as Vs, ShaderChunk as ii, UniformsLib as mS, DataTexture as fg, RGBAFormat as Lu, EquirectangularReflectionMapping as zs, SRGBColorSpace as Hs, Clock as gS, NeutralToneMapping as Ka, AgXToneMapping as Du, ACESFilmicToneMapping as ju, NoToneMapping as Ad, PCFSoftShadowMap$1 as yS, BasicNodeLibrary as _S, WebGLRenderTarget as es, DepthTexture as w0, NearestFilter as Id, LoopRepeat as bS, LoopOnce as tm, AnimationMixer as pg, CompressedTexture as vS, FrontSide as Wo, Camera as wS, Frustum as Yy, AudioListener as xS, PositionalAudio as SS, AudioLoader as im, EventDispatcher as mg, BackSide as Bu, MeshDepthMaterial as CS, CustomBlending as PS, MaxEquation as OS, AmbientLight as kS, HemisphereLight as MS, AlwaysStencilFunc as RS, GreaterEqualStencilFunc as TS, NotEqualStencilFunc as ES, GreaterStencilFunc as AS, LessEqualStencilFunc as IS, EqualStencilFunc as LS, LessStencilFunc as DS, NeverStencilFunc as Ky, InvertStencilOp as jS, DecrementWrapStencilOp as BS, IncrementWrapStencilOp as FS, DecrementStencilOp as zS, IncrementStencilOp as US, ReplaceStencilOp as NS, ZeroStencilOp as $S, KeepStencilOp as WS, RawShaderMaterial as x0, GLSL3 as VS, AlwaysDepth as HS, GreaterEqualDepth as GS, GreaterDepth as qS, LessEqualDepth as XS, LessDepth as QS, NotEqualDepth as YS, EqualDepth as KS, BatchedMesh as Zy, MeshPhysicalMaterial as nm, LinearFilter as Ld, UnsignedByteType as ZS, RingGeometry as JS, Line3 as eC, AdditiveBlending as S0, BoxHelper as tC, SpotLight as iC, DirectionalLightHelper as nC, CameraHelper as sC, LOD as oC, Triangle as rC, NormalBlending as aC, ReinhardToneMapping as gg, LinearToneMapping as yg, HalfFloatType as Wf, VideoTexture as lC, CubeTexture as cC, CompressedCubeTexture as hC, EquirectangularRefractionMapping as dC, VectorKeyframeTrack as uC, QuaternionKeyframeTrack as fC, Audio as pC, ShaderLib as Dd, UniformsUtils as C0, MirroredRepeatWrapping as Jy, MeshNormalMaterial as mC, AudioContext as gC, PMREMGenerator$1 as yC } from "./three-DrqIzZTH.js";
|
|
9
|
+
import { createLoaders as _g, getRaycastMesh as P0, LODsManager as ua, NEEDLE_progressive as Ke, addDracoAndKTX2Loaders as _C, configureLoader as bC, setKTX2TranscoderLocation as vC, setDracoDecoderLocation as wC } from "./gltf-progressive-DSpdn0QT.js";
|
|
10
|
+
import { GroundedSkybox as Za, Font as xC, TextGeometry as SC, FontLoader as CC, GLTFLoader as Gs, TransformControlsGizmo as O0, EXRLoader as jd, RGBELoader as sm, Stats as PC, nodeFrame as OC, OrbitControls as k0, PositionalAudioHelper as kC, HorizontalBlurShader as MC, VerticalBlurShader as RC, GLTFExporter as M0, strToU8 as R0, zipSync as TC, XRControllerModelFactory as EC, XRHandMeshModel as AC, Line2 as IC, LineGeometry as LC, LineMaterial as DC, KTX2Loader as jC, TransformControls as BC, InteractiveGroup as FC, HTMLMesh as zC, VertexNormalsHelper as UC, OBJLoader as bg, FBXLoader as T0, mergeVertices as NC } from "./three-examples-B50TT3Iu.js";
|
|
11
|
+
import { fetchProfile as $C, MotionController as WC, $70d766613f57b014$export$2e2bcd8739ae039 as e_, ByteBuffer as VC, v5 as t_, md5 as i_, SIZE_PREFIX_LENGTH as E0, Builder as vg, createNoise4D as HC, Matrix4 as Vf, BatchedParticleRenderer as GC, ParticleSystem as qC, RenderMode as Ss, ConstantColor as XC, Vector4 as QC, ConstantValue as YC, TrailParticle as n_, WorkerBase as KC, MeshBVH as ZC } from "./vendor-BmYIgaS1.js";
|
|
12
|
+
import { __webpack_exports__default as Ee, __webpack_exports__Text as A0, __webpack_exports__Block as I0, __webpack_exports__update as JC, SimpleStateBehavior as e1, __webpack_exports__Inline as Hf, __webpack_exports__FontLibrary as s_, ThreeMeshUI as o_ } from "./three-mesh-ui-CxuWt7m-.js";
|
|
13
|
+
import { EffectAttribute as t1 } from "./postprocessing-DYLNOL3W.js";
|
|
14
14
|
const Gf = /* @__PURE__ */ new Map();
|
|
15
15
|
function bi(o = ((t) => (t = globalThis.location) == null ? void 0 : t.hostname)()) {
|
|
16
16
|
if (Gf.has(o)) return Gf.get(o);
|
|
@@ -179,7 +179,7 @@ function f1() {
|
|
|
179
179
|
function p1(o) {
|
|
180
180
|
return o = o.replace(/[^a-z0-9áéíóúñü \.,_-]/gim, ""), o.trim();
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Nc(o, t, e = !0, i = !1) {
|
|
183
183
|
var n;
|
|
184
184
|
if (t == null) return null;
|
|
185
185
|
if (t.userData && t.userData.guid === o) return t;
|
|
@@ -191,12 +191,12 @@ function Uc(o, t, e = !0, i = !1) {
|
|
|
191
191
|
if (e) {
|
|
192
192
|
if (t.scenes)
|
|
193
193
|
for (const s in t.scenes) {
|
|
194
|
-
const a = t.scenes[s], l =
|
|
194
|
+
const a = t.scenes[s], l = Nc(o, a, e, i);
|
|
195
195
|
if (l) return l;
|
|
196
196
|
}
|
|
197
197
|
if (t.children)
|
|
198
198
|
for (const s in t.children) {
|
|
199
|
-
const a = t.children[s], l =
|
|
199
|
+
const a = t.children[s], l = Nc(o, a, e, i);
|
|
200
200
|
if (l) return l;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -230,26 +230,26 @@ function Uu(o, t) {
|
|
|
230
230
|
t.pre_update_callbacks.push(s);
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const Bh = x("debugresolveurl"), m1 = "rel:";
|
|
234
234
|
function nL(o, t) {
|
|
235
235
|
return Kr(o, t);
|
|
236
236
|
}
|
|
237
237
|
function Kr(o, t) {
|
|
238
238
|
if (t === void 0)
|
|
239
|
-
return
|
|
239
|
+
return Bh && console.warn("getPath: uri is undefined, returning uri", t), t;
|
|
240
240
|
if (t.startsWith("./"))
|
|
241
241
|
return t;
|
|
242
242
|
if (t.startsWith("http"))
|
|
243
|
-
return
|
|
243
|
+
return Bh && console.warn("getPath: uri is absolute, returning uri", t), t;
|
|
244
244
|
if (o === void 0)
|
|
245
|
-
return
|
|
245
|
+
return Bh && console.warn("getPath: source is undefined, returning uri", t), t;
|
|
246
246
|
t.startsWith(m1) && (t = t.substring(4));
|
|
247
247
|
const e = o.lastIndexOf("/");
|
|
248
248
|
if (e >= 0) {
|
|
249
249
|
const i = o.substring(0, e + 1);
|
|
250
250
|
for (; i.endsWith("/") && t.startsWith("/"); ) t = t.substring(1);
|
|
251
251
|
const n = i + t;
|
|
252
|
-
return
|
|
252
|
+
return Bh && console.log("source:", o, `changed uri
|
|
253
253
|
from`, t, `
|
|
254
254
|
to `, n, `
|
|
255
255
|
basePath: ` + i), n;
|
|
@@ -605,8 +605,8 @@ async function w1(o, t) {
|
|
|
605
605
|
return b.src = _, b.style.width = "100%", b.style.height = "auto", b;
|
|
606
606
|
}
|
|
607
607
|
const F0 = x("debugdebug");
|
|
608
|
-
let
|
|
609
|
-
(x("noerrors") || x("nooverlaymessages")) && (
|
|
608
|
+
let $c = !1;
|
|
609
|
+
(x("noerrors") || x("nooverlaymessages")) && ($c = !0);
|
|
610
610
|
const qf = "needle_engine_global_error_container";
|
|
611
611
|
var nn = /* @__PURE__ */ ((o) => (o[o.Log = 0] = "Log", o[o.Warn = 1] = "Warn", o[o.Error = 2] = "Error", o))(nn || {});
|
|
612
612
|
function xg() {
|
|
@@ -633,13 +633,13 @@ const z0 = console.error, U0 = function(...o) {
|
|
|
633
633
|
z0.apply(console, o), O1(o), $n(2, o), am(...o);
|
|
634
634
|
};
|
|
635
635
|
function C1(o) {
|
|
636
|
-
|
|
636
|
+
$c = !o, o ? console.error = U0 : console.error = z0;
|
|
637
637
|
}
|
|
638
638
|
function mL(o) {
|
|
639
639
|
return C1(o);
|
|
640
640
|
}
|
|
641
641
|
function P1() {
|
|
642
|
-
|
|
642
|
+
$c || (F0 && console.warn("Patch console", window.location.hostname), console.error = U0, window.addEventListener("error", (o) => {
|
|
643
643
|
if (!o) return;
|
|
644
644
|
const t = o.error;
|
|
645
645
|
if (t === void 0) {
|
|
@@ -648,7 +648,7 @@ function P1() {
|
|
|
648
648
|
}
|
|
649
649
|
$n(2, t, o.filename, o.lineno), am(o);
|
|
650
650
|
}, !0), window.addEventListener("unhandledrejection", (o) => {
|
|
651
|
-
|
|
651
|
+
$c || o && (o.reason ? $n(2, o.reason.message, o.reason.stack) : $n(2, "unhandled rejection"), am(o));
|
|
652
652
|
}));
|
|
653
653
|
}
|
|
654
654
|
let N0 = 0;
|
|
@@ -663,7 +663,7 @@ function O1(o) {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
function $n(o, t, e, i) {
|
|
666
|
-
if (
|
|
666
|
+
if ($c) return;
|
|
667
667
|
const n = pe.Current, s = (n == null ? void 0 : n.domElement) ?? document.querySelector("needle-engine");
|
|
668
668
|
if (s) {
|
|
669
669
|
if (Array.isArray(t)) {
|
|
@@ -677,7 +677,7 @@ function $n(o, t, e, i) {
|
|
|
677
677
|
!t || t.length <= 0 || k1(o, s, t);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
const
|
|
680
|
+
const bc = /* @__PURE__ */ new Map();
|
|
681
681
|
function k1(o, t, e) {
|
|
682
682
|
if (e == null) return;
|
|
683
683
|
const i = R1(t);
|
|
@@ -687,20 +687,20 @@ function k1(o, t, e) {
|
|
|
687
687
|
}
|
|
688
688
|
e.length > 400 && (e = e.substring(0, 400) + "...");
|
|
689
689
|
const n = e;
|
|
690
|
-
if (
|
|
690
|
+
if (bc.has(n))
|
|
691
691
|
return;
|
|
692
692
|
const s = T1(o, e);
|
|
693
693
|
i.prepend(s);
|
|
694
694
|
const a = () => {
|
|
695
|
-
|
|
695
|
+
bc.delete(n), d_(s);
|
|
696
696
|
};
|
|
697
|
-
|
|
697
|
+
bc.set(n, a), setTimeout(a, 1e4);
|
|
698
698
|
}
|
|
699
699
|
function gL() {
|
|
700
700
|
F0 && console.log("Clearing messages");
|
|
701
|
-
for (const o of
|
|
701
|
+
for (const o of bc.values())
|
|
702
702
|
o == null || o.call(o);
|
|
703
|
-
|
|
703
|
+
bc.clear();
|
|
704
704
|
}
|
|
705
705
|
const M1 = `
|
|
706
706
|
|
|
@@ -971,12 +971,12 @@ class W0 {
|
|
|
971
971
|
this.x.reset(t == null ? void 0 : t.x), this.y.reset(t == null ? void 0 : t.y), this.z.reset(t == null ? void 0 : t.z);
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
|
-
const
|
|
974
|
+
const md = "needle:cameraController";
|
|
975
975
|
function I1(o) {
|
|
976
|
-
return o[
|
|
976
|
+
return o[md];
|
|
977
977
|
}
|
|
978
978
|
function f_(o, t, e) {
|
|
979
|
-
e ? o[
|
|
979
|
+
e ? o[md] = t : o[md] === t && (o[md] = null);
|
|
980
980
|
}
|
|
981
981
|
const lm = "needle:autofit";
|
|
982
982
|
function L1(o) {
|
|
@@ -1072,7 +1072,7 @@ const z1 = new on(() => new v(), 100), U1 = new v();
|
|
|
1072
1072
|
function Ye(o, t = null) {
|
|
1073
1073
|
return t || (t = z1.get()), o ? o.parent ? (o.getWorldScale(t), t) : t.copy(o.scale) : t.set(0, 0, 0);
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Wc(o, t) {
|
|
1076
1076
|
if (!o) return;
|
|
1077
1077
|
if (!o.parent) {
|
|
1078
1078
|
o.scale.copy(t);
|
|
@@ -1304,7 +1304,7 @@ function K1(o, t, e) {
|
|
|
1304
1304
|
const c = new v();
|
|
1305
1305
|
c.set(a.x / n.x, a.y / n.y, a.z / n.z);
|
|
1306
1306
|
const h = Math.min(c.x, c.y, c.z), d = (e == null ? void 0 : e.scale) !== !1;
|
|
1307
|
-
if (d &&
|
|
1307
|
+
if (d && Wc(o, Ye(o).multiplyScalar(h)), (e == null ? void 0 : e.position) !== !1) {
|
|
1308
1308
|
const u = new v();
|
|
1309
1309
|
i.getCenter(u), u.y = i.min.y;
|
|
1310
1310
|
const f = new v();
|
|
@@ -1342,21 +1342,21 @@ function Q0(o, t, e, i) {
|
|
|
1342
1342
|
const s = t;
|
|
1343
1343
|
return s && (s.map ? n.color.set(1, 1, 1) : n.color.copyLinearToSRGB(s.color), n.emissive.copyLinearToSRGB(s.emissive), n.emissiveIntensity = s.emissiveIntensity, n.opacity = s.opacity, n.displacementScale = s.displacementScale, n.transparent = s.transparent, n.bumpMap = s.bumpMap, n.aoMap = s.aoMap, n.map = s.map, n.displacementMap = s.displacementMap, n.emissiveMap = s.emissiveMap, n.normalMap = s.normalMap, n.envMap = s.envMap, n.alphaMap = s.alphaMap, n.metalness = s.reflectivity, n.vertexColors = s.vertexColors, s.shininess && (n.roughness = 1 - Math.sqrt(s.shininess) / 10), n.needsUpdate = !0), e === void 0 ? o.material = n : i[e] = n, !0;
|
|
1344
1344
|
}
|
|
1345
|
-
let
|
|
1345
|
+
let Fh = !1;
|
|
1346
1346
|
x1((...o) => {
|
|
1347
1347
|
var t;
|
|
1348
1348
|
z() && ((t = pe.Current) != null && t.isInXR) && (Na(!0), Y0("error", ...o));
|
|
1349
1349
|
});
|
|
1350
1350
|
function Na(o) {
|
|
1351
1351
|
if (o) {
|
|
1352
|
-
if (
|
|
1353
|
-
|
|
1352
|
+
if (Fh) return;
|
|
1353
|
+
Fh = !0, eP();
|
|
1354
1354
|
} else {
|
|
1355
|
-
if (!
|
|
1356
|
-
|
|
1355
|
+
if (!Fh) return;
|
|
1356
|
+
Fh = !1, tP();
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
const
|
|
1359
|
+
const vc = {
|
|
1360
1360
|
log: void 0,
|
|
1361
1361
|
warn: void 0,
|
|
1362
1362
|
error: void 0
|
|
@@ -1492,12 +1492,12 @@ class J1 {
|
|
|
1492
1492
|
let Jt = null;
|
|
1493
1493
|
function eP() {
|
|
1494
1494
|
Jt || (Jt = new J1()), Jt.onEnable();
|
|
1495
|
-
for (const o in
|
|
1496
|
-
|
|
1495
|
+
for (const o in vc) {
|
|
1496
|
+
vc[o] = console[o];
|
|
1497
1497
|
let t = !1;
|
|
1498
1498
|
console[o] = function() {
|
|
1499
1499
|
var e;
|
|
1500
|
-
if ((e =
|
|
1500
|
+
if ((e = vc[o]) == null || e.apply(console, arguments), !t)
|
|
1501
1501
|
try {
|
|
1502
1502
|
t = !0, Y0(o, ...arguments);
|
|
1503
1503
|
} finally {
|
|
@@ -1508,8 +1508,8 @@ function eP() {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
function tP() {
|
|
1510
1510
|
Jt == null || Jt.onDisable();
|
|
1511
|
-
for (const o in
|
|
1512
|
-
console[o] =
|
|
1511
|
+
for (const o in vc)
|
|
1512
|
+
console[o] = vc[o];
|
|
1513
1513
|
}
|
|
1514
1514
|
const Ul = /* @__PURE__ */ new Map();
|
|
1515
1515
|
function Y0(o, ...t) {
|
|
@@ -1804,14 +1804,14 @@ Ho('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
|
|
|
1804
1804
|
Ho('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
|
|
1805
1805
|
Ho('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
|
|
1806
1806
|
Ho('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1807
|
-
Ho('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.6.
|
|
1807
|
+
Ho('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.6.4";');
|
|
1808
1808
|
Ho('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1809
|
-
Ho('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Jul 25 2025
|
|
1810
|
-
Ho('globalThis["__NEEDLE_PUBLIC_KEY__"] = "
|
|
1811
|
-
const Kn = "4.6.
|
|
1809
|
+
Ho('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Jul 25 2025 10:38:48 GMT+0000 (Coordinated Universal Time)";');
|
|
1810
|
+
Ho('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
1811
|
+
const Kn = "4.6.4", Pg = "undefined", iv = "Fri Jul 25 2025 10:38:48 GMT+0000 (Coordinated Universal Time)";
|
|
1812
1812
|
tv && console.log(`Engine version: ${Kn} (generator: ${Pg})
|
|
1813
1813
|
Project built at ${iv}`);
|
|
1814
|
-
const
|
|
1814
|
+
const ac = NEEDLE_PUBLIC_KEY, Bo = "needle_isActiveInHierarchy", wa = "builtin_components", gd = "needle_editor_guid";
|
|
1815
1815
|
function Ho(o) {
|
|
1816
1816
|
try {
|
|
1817
1817
|
(0, eval)(o);
|
|
@@ -2025,7 +2025,7 @@ class po extends PointerEvent {
|
|
|
2025
2025
|
this._propagationStopped = !0, super.stopPropagation(), (e = this.source) == null || e.stopPropagation(), ht && console.warn("Stop propagation...", this.pointerId, this.pointerType);
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
|
-
class
|
|
2028
|
+
class zh extends KeyboardEvent {
|
|
2029
2029
|
constructor(e, i, n) {
|
|
2030
2030
|
super(e, n);
|
|
2031
2031
|
r(this, "source");
|
|
@@ -2114,7 +2114,7 @@ class gP {
|
|
|
2114
2114
|
const e = this.keysPressed[t.code];
|
|
2115
2115
|
if (e && e.pressed) return;
|
|
2116
2116
|
this.keysPressed[t.code] = { pressed: !0, frame: this.context.time.frameCount + 1, startFrame: this.context.time.frameCount + 1, key: t.key, code: t.code };
|
|
2117
|
-
const i = new
|
|
2117
|
+
const i = new zh("keydown", t, t);
|
|
2118
2118
|
this.onDispatchEvent(i);
|
|
2119
2119
|
});
|
|
2120
2120
|
r(this, "onKeyPressed", (t) => {
|
|
@@ -2123,7 +2123,7 @@ class gP {
|
|
|
2123
2123
|
const e = this.keysPressed[t.code];
|
|
2124
2124
|
if (!e) return;
|
|
2125
2125
|
e.pressed = !0, e.frame = this.context.time.frameCount + 1;
|
|
2126
|
-
const i = new
|
|
2126
|
+
const i = new zh("keypress", t, t);
|
|
2127
2127
|
this.onDispatchEvent(i);
|
|
2128
2128
|
});
|
|
2129
2129
|
r(this, "onKeyUp", (t) => {
|
|
@@ -2132,7 +2132,7 @@ class gP {
|
|
|
2132
2132
|
const e = this.keysPressed[t.code];
|
|
2133
2133
|
if (!e) return;
|
|
2134
2134
|
e.pressed = !1, e.frame = this.context.time.frameCount + 1;
|
|
2135
|
-
const i = new
|
|
2135
|
+
const i = new zh("keyup", t, t);
|
|
2136
2136
|
this.onDispatchEvent(i);
|
|
2137
2137
|
});
|
|
2138
2138
|
r(this, "onWheelWindow", (t) => {
|
|
@@ -2226,7 +2226,7 @@ class gP {
|
|
|
2226
2226
|
dispatchEvent(t) {
|
|
2227
2227
|
var i, n, s, a;
|
|
2228
2228
|
let e = !1;
|
|
2229
|
-
if (t instanceof
|
|
2229
|
+
if (t instanceof zh) {
|
|
2230
2230
|
const l = this._eventListeners[t.type];
|
|
2231
2231
|
if (l)
|
|
2232
2232
|
for (const c of l)
|
|
@@ -2715,7 +2715,7 @@ class _P {
|
|
|
2715
2715
|
return this.gameObject.visible;
|
|
2716
2716
|
}
|
|
2717
2717
|
}
|
|
2718
|
-
const ms = x("debugwebxr"),
|
|
2718
|
+
const ms = x("debugwebxr"), Uh = x("debugcustomgesture"), bP = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", vP = "generic-trigger", wP = new W().setFromEuler(new Bt(Bs.degToRad(0), Bs.degToRad(-90), Bs.degToRad(-90))), xP = new v(0.04, -0.04, 0);
|
|
2719
2719
|
class lv {
|
|
2720
2720
|
constructor(t, e, i) {
|
|
2721
2721
|
/** the Needle XR Session */
|
|
@@ -2813,10 +2813,10 @@ class lv {
|
|
|
2813
2813
|
if (!this.emitPointerDownEvent || this.inputSource !== t.inputSource) return;
|
|
2814
2814
|
this.onUpdateFrame(t.frame), this._hasSelectEvent = !0;
|
|
2815
2815
|
const e = (n = this._layout) == null ? void 0 : n.selectComponentId, i = (l = (a = (s = this._layout) == null ? void 0 : s.components[e]) == null ? void 0 : a.gamepadIndices) == null ? void 0 : l.button;
|
|
2816
|
-
i !== void 0 && (this._selectButtonIndex = i), !
|
|
2816
|
+
i !== void 0 && (this._selectButtonIndex = i), !Uh && (ms && H.DrawDirection(this.rayWorldPosition, q(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this.emitPointerEvent(We.PointerDown, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
|
|
2817
2817
|
});
|
|
2818
2818
|
r(this, "onSelectEnd", (t) => {
|
|
2819
|
-
this.emitPointerUpEvent && (
|
|
2819
|
+
this.emitPointerUpEvent && (Uh || this.inputSource === t.inputSource && this.emitPointerEvent(We.PointerUp, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
|
|
2820
2820
|
});
|
|
2821
2821
|
r(this, "onSequeezeStart", (t) => {
|
|
2822
2822
|
var e, i, n;
|
|
@@ -3254,7 +3254,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
|
|
|
3254
3254
|
const c = n !== this._selectButtonIndex && n !== this._squeezeButtonIndex;
|
|
3255
3255
|
if (l != null && c) {
|
|
3256
3256
|
let h = (e = this._layout) == null ? void 0 : e.gamepad[n];
|
|
3257
|
-
this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (ms ||
|
|
3257
|
+
this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (ms || Uh) && console.log("Emitting pointer event", l, n, h, s.value, this.gamepad, this._layout), this.emitPointerEvent(l, n, h ?? "none", !1, null, s.value);
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
3260
|
if (this._isMetaQuestTouchController) {
|
|
@@ -3277,7 +3277,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
|
|
|
3277
3277
|
const u = this.states.pinch || new C_(), f = (0.02 + 0.01) * 1.5;
|
|
3278
3278
|
u.value = 1 - (l - 0.02) / f;
|
|
3279
3279
|
const m = l < 0.02 - 0.01, g = l > 0.02 + 0.01;
|
|
3280
|
-
m && !u.pressed ? (
|
|
3280
|
+
m && !u.pressed ? (Uh && console.log("pinch start", l), u.isDown = !0, u.isUp = !1, u.pressed = !0) : g && u.pressed ? (u.isDown = !1, u.isUp = !0, u.pressed = !1) : (u.isDown = !1, u.isUp = !1), this.states.pinch = u;
|
|
3281
3281
|
}
|
|
3282
3282
|
}
|
|
3283
3283
|
}
|
|
@@ -3473,17 +3473,17 @@ function cv(o, t) {
|
|
|
3473
3473
|
n.length = 0, M_(o, s, e), s.length > 0 && (Ma.has(t) || Ma.set(t, new Array()), Ma.get(t).push(...s));
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
|
-
const
|
|
3476
|
+
const Nh = new Array(), k_ = {
|
|
3477
3477
|
context: null
|
|
3478
3478
|
};
|
|
3479
3479
|
function M_(o, t, e) {
|
|
3480
3480
|
var n, s;
|
|
3481
|
-
|
|
3481
|
+
Nh.length = 0;
|
|
3482
3482
|
for (let a = 0; a < t.length; a++)
|
|
3483
|
-
|
|
3483
|
+
Nh.push(t[a]);
|
|
3484
3484
|
let i = mm.get(o);
|
|
3485
|
-
for (let a = 0; a <
|
|
3486
|
-
const l =
|
|
3485
|
+
for (let a = 0; a < Nh.length; a++) {
|
|
3486
|
+
const l = Nh[a];
|
|
3487
3487
|
let c = !0;
|
|
3488
3488
|
if (i && i.has(l) && (c = !1), c)
|
|
3489
3489
|
try {
|
|
@@ -3525,7 +3525,7 @@ function PP(o, t) {
|
|
|
3525
3525
|
}, o ? new e_(o, t) : new e_(t);
|
|
3526
3526
|
}
|
|
3527
3527
|
async function R_() {
|
|
3528
|
-
const o = await import("./vendor-
|
|
3528
|
+
const o = await import("./vendor-BmYIgaS1.js").then((t) => t.bundler);
|
|
3529
3529
|
return console.log(o), o.default === void 0 ? o : o.default;
|
|
3530
3530
|
}
|
|
3531
3531
|
class OP {
|
|
@@ -3612,7 +3612,7 @@ class MP extends kP {
|
|
|
3612
3612
|
var Fn = /* @__PURE__ */ ((o) => (o[o.OnConnection = 0] = "OnConnection", o[o.OnRoomJoin = 1] = "OnRoomJoin", o[o.Queued = 2] = "Queued", o[o.Immediate = 3] = "Immediate", o))(Fn || {});
|
|
3613
3613
|
const T_ = "https://urls.needle.tools/default-networking-backend/index";
|
|
3614
3614
|
let di = "wss://networking.needle.tools/socket";
|
|
3615
|
-
const Pi = !!x("debugnet"),
|
|
3615
|
+
const Pi = !!x("debugnet"), $h = !!(Pi || x("debugowner")), Wh = x("debugnetbin");
|
|
3616
3616
|
var RP = /* @__PURE__ */ ((o) => (o.ConnectionInfo = "connection-start-info", o))(RP || {}), se = /* @__PURE__ */ ((o) => (o.Join = "join-room", o.Leave = "leave-room", o.JoinedRoom = "joined-room", o.LeftRoom = "left-room", o.UserJoinedRoom = "user-joined-room", o.UserLeftRoom = "user-left-room", o.RoomStateSent = "room-state-sent", o))(se || {});
|
|
3617
3617
|
class TL {
|
|
3618
3618
|
constructor() {
|
|
@@ -3673,7 +3673,7 @@ class uv {
|
|
|
3673
3673
|
return this._isWaitingForOwnershipResponseCallback !== null ? this : (this._isWaitingForOwnershipResponseCallback = this.waitForHasOwnershipRequestResponse.bind(this), this.connection.beginListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this.connection.send("request-has-owner", { guid: this.guid }), this);
|
|
3674
3674
|
}
|
|
3675
3675
|
waitForHasOwnershipRequestResponse(t) {
|
|
3676
|
-
t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || (
|
|
3676
|
+
t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || ($h && console.log("request ownership", this.guid), this.requestOwnership()));
|
|
3677
3677
|
}
|
|
3678
3678
|
requestOwnershipAsync() {
|
|
3679
3679
|
return new Promise((t, e) => {
|
|
@@ -3689,7 +3689,7 @@ class uv {
|
|
|
3689
3689
|
});
|
|
3690
3690
|
}
|
|
3691
3691
|
requestOwnership() {
|
|
3692
|
-
return
|
|
3692
|
+
return $h && console.log("Request ownership", this.guid), this.connection.send("request-ownership", { guid: this.guid }), this;
|
|
3693
3693
|
}
|
|
3694
3694
|
freeOwnership() {
|
|
3695
3695
|
return this.connection.send("remove-ownership", { guid: this.guid }), this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this;
|
|
@@ -3698,10 +3698,10 @@ class uv {
|
|
|
3698
3698
|
this.connection.stopListen("gained-ownership", this._gainSubscription), this.connection.stopListen("lost-ownership", this._lostSubscription), this.connection.stopListen("response-has-owner", this._hasOwnerResponse), this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null);
|
|
3699
3699
|
}
|
|
3700
3700
|
onGainedOwnership(t) {
|
|
3701
|
-
t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? (
|
|
3701
|
+
t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? ($h && console.log("GAINED OWNERSHIP", this.guid), this._hasOwnership = !0) : this._hasOwnership = !1);
|
|
3702
3702
|
}
|
|
3703
3703
|
onLostOwnership(t) {
|
|
3704
|
-
t === this.guid && (
|
|
3704
|
+
t === this.guid && ($h && console.log("LOST OWNERSHIP", this.guid), this._hasOwnership = !1, this._isOwned = !1);
|
|
3705
3705
|
}
|
|
3706
3706
|
}
|
|
3707
3707
|
class EP {
|
|
@@ -3838,7 +3838,7 @@ class EP {
|
|
|
3838
3838
|
/** Send a binary message to the server (broadcasted to all connected users) */
|
|
3839
3839
|
sendBinary(t) {
|
|
3840
3840
|
var e;
|
|
3841
|
-
|
|
3841
|
+
Wh && console.log("<< send binary", this.context.time.frame, t.length / 1024 + " KB"), (e = this._ws) == null || e.send(t);
|
|
3842
3842
|
}
|
|
3843
3843
|
sendBufferedMessagesNow() {
|
|
3844
3844
|
var i;
|
|
@@ -3955,7 +3955,7 @@ class EP {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
console.debug(`⊡ Connecting to networking backend on
|
|
3957
3957
|
` + di);
|
|
3958
|
-
const s = await import("./vendor-
|
|
3958
|
+
const s = await import("./vendor-BmYIgaS1.js").then((u) => u.index), a = ((h = s.default) == null ? void 0 : h.WebsocketBuilder) ?? s.WebsocketBuilder, l = ((d = s.default) == null ? void 0 : d.ExponentialBackoff) ?? s.ExponentialBackoff, c = new a(di).withMaxRetries(10).withBackoff(new l(2e3, 4)).onOpen(() => {
|
|
3959
3959
|
this._connectingToWebsocketPromise = null, this._ws = c, this.connected = !0, z() || Pi ? console.log(`⊞ Connected to networking backend
|
|
3960
3960
|
` + di) : console.debug("⊞ Connected to networking backend", di), n(!0), this.onSendQueued(Fn.OnConnection);
|
|
3961
3961
|
}).onClose((u) => {
|
|
@@ -3990,7 +3990,7 @@ class EP {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
3992
|
async handleIncomingBinaryMessage(t) {
|
|
3993
|
-
|
|
3993
|
+
Wh && console.log("<< bin", this.context.time.frame);
|
|
3994
3994
|
const e = await t.arrayBuffer();
|
|
3995
3995
|
var i = new Uint8Array(e);
|
|
3996
3996
|
const n = new VC(i), s = n.getBufferIdentifier(), a = this._listenersBinary[s], l = SP(n), c = CP(l);
|
|
@@ -4017,7 +4017,7 @@ class EP {
|
|
|
4017
4017
|
if (Pi && console.log(t), t) {
|
|
4018
4018
|
this._isInRoom = !0;
|
|
4019
4019
|
const c = t;
|
|
4020
|
-
this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (
|
|
4020
|
+
this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (Wh || z()) && console.debug("Joined Needle Engine Room: " + c.room);
|
|
4021
4021
|
const h = new URL(window.location.href);
|
|
4022
4022
|
h.searchParams.has("room") && h.searchParams.delete("room"), h.searchParams.set("view", this._currentRoomViewId), console.debug(`Room view id: ${this._currentRoomViewId}
|
|
4023
4023
|
${h.href}`);
|
|
@@ -4026,7 +4026,7 @@ ${h.href}`);
|
|
|
4026
4026
|
break;
|
|
4027
4027
|
case "left-room":
|
|
4028
4028
|
const a = t;
|
|
4029
|
-
a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (
|
|
4029
|
+
a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (Wh || z()) && console.debug("Left Needle Engine Room: " + a.room));
|
|
4030
4030
|
break;
|
|
4031
4031
|
case "user-joined-room":
|
|
4032
4032
|
if (t.data) {
|
|
@@ -4086,7 +4086,7 @@ ${h.href}`);
|
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
4088
|
}
|
|
4089
|
-
const
|
|
4089
|
+
const wc = x("debugwebxr");
|
|
4090
4090
|
class ep {
|
|
4091
4091
|
constructor(t, e) {
|
|
4092
4092
|
r(this, "controllerStates", []);
|
|
@@ -4094,7 +4094,7 @@ class ep {
|
|
|
4094
4094
|
r(this, "context");
|
|
4095
4095
|
r(this, "userStateEvtName");
|
|
4096
4096
|
r(this, "onReceivedControllerState", (t) => {
|
|
4097
|
-
|
|
4097
|
+
wc && console.log(`XRSync: Received change for ${this.userId}: ${t.type} ${t.handedness}; tracked=${t.isTracking}`);
|
|
4098
4098
|
let e = !1;
|
|
4099
4099
|
for (let i = 0; i < this.controllerStates.length; i++)
|
|
4100
4100
|
if (this.controllerStates[i].index === t.index) {
|
|
@@ -4115,7 +4115,7 @@ class ep {
|
|
|
4115
4115
|
let n = !1;
|
|
4116
4116
|
for (let s = 0; s < t.controllers.length; s++)
|
|
4117
4117
|
t.controllers[s].index === i.index && (n = !0);
|
|
4118
|
-
n || (
|
|
4118
|
+
n || (wc && console.log(`XRSync: ${i.type} ${i.handedness} removed`, i.index), this.controllerStates.splice(e, 1), this.sendControllerRemoved(i));
|
|
4119
4119
|
}
|
|
4120
4120
|
for (const e of t.controllers)
|
|
4121
4121
|
this.updateControllerStates(e);
|
|
@@ -4142,7 +4142,7 @@ class ep {
|
|
|
4142
4142
|
index: t.index,
|
|
4143
4143
|
type: t.hand ? "hand" : "controller"
|
|
4144
4144
|
};
|
|
4145
|
-
this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i),
|
|
4145
|
+
this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i), wc && console.log(`XRSync: ${i.type} ${i.handedness} added`, i.index);
|
|
4146
4146
|
}
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
@@ -4151,7 +4151,7 @@ class AP {
|
|
|
4151
4151
|
r(this, "context");
|
|
4152
4152
|
r(this, "onJoinedRoom", () => {
|
|
4153
4153
|
if (this.context.connection.connectionId) {
|
|
4154
|
-
this._states.has(this.context.connection.connectionId) || (
|
|
4154
|
+
this._states.has(this.context.connection.connectionId) || (wc && console.log("XRSync: Local user joined room", this.context.connection.connectionId), this._states.set(this.context.connection.connectionId, new ep(this.context.connection.connectionId, this.context)));
|
|
4155
4155
|
for (const t of this.context.connection.usersInRoom())
|
|
4156
4156
|
this._states.has(t) || this._states.set(t, new ep(t, this.context));
|
|
4157
4157
|
}
|
|
@@ -4164,7 +4164,7 @@ class AP {
|
|
|
4164
4164
|
});
|
|
4165
4165
|
r(this, "onOtherUserJoinedRoom", (t) => {
|
|
4166
4166
|
const e = t.userId;
|
|
4167
|
-
this._states.has(e) || (
|
|
4167
|
+
this._states.has(e) || (wc && console.log("XRSync: Remote user joined room", e), this._states.set(e, new ep(e, this.context)));
|
|
4168
4168
|
});
|
|
4169
4169
|
r(this, "onOtherUserLeftRoom", (t) => {
|
|
4170
4170
|
const e = t.userId;
|
|
@@ -4252,7 +4252,7 @@ class E_ {
|
|
|
4252
4252
|
return this._transitionPromise = t, t;
|
|
4253
4253
|
}
|
|
4254
4254
|
}
|
|
4255
|
-
var nl = /* @__PURE__ */ ((o) => (o[o.Quad = 0] = "Quad", o[o.Cube = 1] = "Cube", o[o.Sphere = 2] = "Sphere", o[o.Cylinder = 3] = "Cylinder", o[o.RoundedCube = 10] = "RoundedCube", o))(nl || {}),
|
|
4255
|
+
var nl = /* @__PURE__ */ ((o) => (o[o.Quad = 0] = "Quad", o[o.Cube = 1] = "Cube", o[o.Sphere = 2] = "Sphere", o[o.Cylinder = 3] = "Cylinder", o[o.RoundedCube = 10] = "RoundedCube", o))(nl || {}), oh, gm;
|
|
4256
4256
|
class Jr {
|
|
4257
4257
|
/**
|
|
4258
4258
|
* Creates a 3D text object
|
|
@@ -4262,10 +4262,10 @@ class Jr {
|
|
|
4262
4262
|
static createText(t, e) {
|
|
4263
4263
|
let i = null;
|
|
4264
4264
|
const n = (e == null ? void 0 : e.font) || LP((e == null ? void 0 : e.familyFamily) || null);
|
|
4265
|
-
n instanceof xC ? i = zl(this,
|
|
4265
|
+
n instanceof xC ? i = zl(this, oh, gm).call(this, t, n, e) : i == null && (i = new Yn());
|
|
4266
4266
|
const s = (e == null ? void 0 : e.color) || 16777215, a = new G(i, (e == null ? void 0 : e.material) ?? new yt({ color: s }));
|
|
4267
4267
|
return this.applyDefaultObjectOptions(a, e), n instanceof Promise ? n.then((l) => {
|
|
4268
|
-
a.geometry = zl(this,
|
|
4268
|
+
a.geometry = zl(this, oh, gm).call(this, t, l, e), e != null && e.onGeometry && e.onGeometry(a);
|
|
4269
4269
|
}) : e != null && e.onGeometry && e.onGeometry(a), a;
|
|
4270
4270
|
}
|
|
4271
4271
|
/**
|
|
@@ -4337,7 +4337,7 @@ class Jr {
|
|
|
4337
4337
|
t.receiveShadow = !0, t.castShadow = !0, e != null && e.name && (t.name = e.name), e != null && e.position && (Array.isArray(e.position) ? t.position.set(e.position[0], e.position[1], e.position[2]) : t.position.set(e.position.x, e.position.y, e.position.z)), e != null && e.rotation && (Array.isArray(e.rotation) ? t.rotation.set(e.rotation[0], e.rotation[1], e.rotation[2]) : t.rotation.set(e.rotation.x, e.rotation.y, e.rotation.z)), e != null && e.scale && (typeof e.scale == "number" ? t.scale.set(e.scale, e.scale, e.scale) : Array.isArray(e.scale) ? t.scale.set(e.scale[0], e.scale[1], e.scale[2]) : t.scale.set(e.scale.x, e.scale.y, e.scale.z)), (e == null ? void 0 : e.receiveShadow) != null && (t.receiveShadow = e.receiveShadow), (e == null ? void 0 : e.castShadow) != null && (t.castShadow = e.castShadow), e != null && e.parent && e.parent.add(t);
|
|
4338
4338
|
}
|
|
4339
4339
|
}
|
|
4340
|
-
|
|
4340
|
+
oh = new WeakSet(), gm = function(t, e, i) {
|
|
4341
4341
|
const n = (i == null ? void 0 : i.depth) || 0.1;
|
|
4342
4342
|
return new SC(t, {
|
|
4343
4343
|
font: e,
|
|
@@ -4349,7 +4349,7 @@ sh = new WeakSet(), gm = function(t, e, i) {
|
|
|
4349
4349
|
bevelOffset: 0.01,
|
|
4350
4350
|
bevelSize: 0.01
|
|
4351
4351
|
});
|
|
4352
|
-
}, pn(Jr,
|
|
4352
|
+
}, pn(Jr, oh);
|
|
4353
4353
|
function IP(o, t, e, i, n) {
|
|
4354
4354
|
const s = new rS(), a = 1e-5, l = i - a;
|
|
4355
4355
|
s.absarc(a, a, a, -Math.PI / 2, -Math.PI, !0), s.absarc(a, t - l * 2, a, Math.PI, Math.PI / 2, !0), s.absarc(o - l * 2, t - l * 2, a, Math.PI / 2, 0, !0), s.absarc(o - l * 2, a, a, 0, -Math.PI / 2, !0);
|
|
@@ -4363,7 +4363,7 @@ function IP(o, t, e, i, n) {
|
|
|
4363
4363
|
});
|
|
4364
4364
|
return c.scale(1, 1, 1 - i), c.center(), c.computeVertexNormals(), c;
|
|
4365
4365
|
}
|
|
4366
|
-
const
|
|
4366
|
+
const Vh = /* @__PURE__ */ new Map();
|
|
4367
4367
|
function LP(o) {
|
|
4368
4368
|
let t = "";
|
|
4369
4369
|
switch (o) {
|
|
@@ -4375,16 +4375,16 @@ function LP(o) {
|
|
|
4375
4375
|
t = "https://raw.githubusercontent.com/mrdoob/three.js/master/examples/fonts/helvetiker_regular.typeface.json";
|
|
4376
4376
|
break;
|
|
4377
4377
|
}
|
|
4378
|
-
if (
|
|
4379
|
-
const n =
|
|
4378
|
+
if (Vh.has(t)) {
|
|
4379
|
+
const n = Vh.get(t);
|
|
4380
4380
|
if (n) return n;
|
|
4381
4381
|
}
|
|
4382
4382
|
const e = new CC(), i = new Promise((n, s) => {
|
|
4383
4383
|
e.load(t, (a) => {
|
|
4384
|
-
|
|
4384
|
+
Vh.set(t, a), n(a);
|
|
4385
4385
|
}, void 0, s);
|
|
4386
4386
|
});
|
|
4387
|
-
return
|
|
4387
|
+
return Vh.set(t, i), i;
|
|
4388
4388
|
}
|
|
4389
4389
|
let tp = !1, ip = null;
|
|
4390
4390
|
function DP(o, t) {
|
|
@@ -4421,7 +4421,7 @@ function A_(o, t) {
|
|
|
4421
4421
|
function I_() {
|
|
4422
4422
|
return new Lo().add(Jr.createPrimitive("Sphere", { material: new Me({ transparent: !0, opacity: 0.1 }) }));
|
|
4423
4423
|
}
|
|
4424
|
-
const
|
|
4424
|
+
const Lc = class Lc {
|
|
4425
4425
|
constructor(t, e, i) {
|
|
4426
4426
|
r(this, "_session");
|
|
4427
4427
|
r(this, "_mode");
|
|
@@ -4456,7 +4456,7 @@ const Ic = class Ic {
|
|
|
4456
4456
|
const i = await navigator.xr.requestSession(t, e);
|
|
4457
4457
|
return i.addEventListener("end", () => {
|
|
4458
4458
|
this._active = null;
|
|
4459
|
-
}), this._requestInFlight ? (this._requestInFlight = !1, this._active = new
|
|
4459
|
+
}), this._requestInFlight ? (this._requestInFlight = !1, this._active = new Lc(t, e, i), this._active) : (i.end(), null);
|
|
4460
4460
|
}
|
|
4461
4461
|
return null;
|
|
4462
4462
|
}
|
|
@@ -4518,9 +4518,9 @@ const Ic = class Ic {
|
|
|
4518
4518
|
}
|
|
4519
4519
|
}
|
|
4520
4520
|
};
|
|
4521
|
-
r(
|
|
4522
|
-
let sl =
|
|
4523
|
-
var
|
|
4521
|
+
r(Lc, "_active", null), r(Lc, "_requestInFlight", !1);
|
|
4522
|
+
let sl = Lc;
|
|
4523
|
+
var Vc;
|
|
4524
4524
|
((o) => {
|
|
4525
4525
|
const t = [];
|
|
4526
4526
|
function e() {
|
|
@@ -4540,7 +4540,7 @@ var Wc;
|
|
|
4540
4540
|
a >= 0 && t.splice(a, 1);
|
|
4541
4541
|
}
|
|
4542
4542
|
o.unregisterExporter = n;
|
|
4543
|
-
})(
|
|
4543
|
+
})(Vc || (Vc = {}));
|
|
4544
4544
|
const Je = x("debugwebxr"), L_ = x("stats");
|
|
4545
4545
|
let np = 0;
|
|
4546
4546
|
function jP(o) {
|
|
@@ -4706,7 +4706,7 @@ const Xe = class Xe {
|
|
|
4706
4706
|
this._newControllers.length = 0, this.controllers.length = 0;
|
|
4707
4707
|
for (const c of this._xr_scripts)
|
|
4708
4708
|
(s = c == null ? void 0 : c.onLeaveXR) == null || s.call(c, { xr: this });
|
|
4709
|
-
(a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && vt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && kn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale &&
|
|
4709
|
+
(a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && vt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && kn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale && Wc(this.context.mainCamera, this._originalCameraWorldScale)), this.context.requestSizeUpdate(), this._defaultRig.gameObject.removeFromParent(), Na(!1);
|
|
4710
4710
|
});
|
|
4711
4711
|
r(this, "_didStart", !1);
|
|
4712
4712
|
/** Called every frame by the engine */
|
|
@@ -5008,7 +5008,7 @@ const Xe = class Xe {
|
|
|
5008
5008
|
if (await this.isARSupported())
|
|
5009
5009
|
t = "immersive-ar";
|
|
5010
5010
|
else
|
|
5011
|
-
return
|
|
5011
|
+
return Vc.exportAndOpen(), null;
|
|
5012
5012
|
} else t == "ar" && (t = "immersive-ar");
|
|
5013
5013
|
if (z() && x("debugxrpreroom"))
|
|
5014
5014
|
return console.warn("Debug: Starting temporary XR session"), await sl.start(t, e || Xe.getDefaultSessionInit(t)), null;
|
|
@@ -5700,16 +5700,16 @@ class Le {
|
|
|
5700
5700
|
static getLine(t) {
|
|
5701
5701
|
let e = this.linesCache.pop();
|
|
5702
5702
|
if (!e) {
|
|
5703
|
-
e = new
|
|
5703
|
+
e = new Uc();
|
|
5704
5704
|
let i = e.geometry.getAttribute("position");
|
|
5705
|
-
i || (i = new _t(new Float32Array(
|
|
5705
|
+
i || (i = new _t(new Float32Array(6), 3), e.geometry.setAttribute("position", i));
|
|
5706
5706
|
}
|
|
5707
5707
|
return e.frustumCulled = !1, this.registerTimedObject(ee.Current, e, t, this.linesCache), e;
|
|
5708
5708
|
}
|
|
5709
5709
|
static getCircle(t) {
|
|
5710
5710
|
let e = this.circlesCache.pop();
|
|
5711
5711
|
if (!e) {
|
|
5712
|
-
e = new
|
|
5712
|
+
e = new Uc();
|
|
5713
5713
|
let i = e.geometry.getAttribute("position");
|
|
5714
5714
|
if (!i) {
|
|
5715
5715
|
i = new _t(new Float32Array(op * 3), 3), e.geometry.setAttribute("position", i);
|
|
@@ -5833,7 +5833,7 @@ class pv {
|
|
|
5833
5833
|
this.object = t, this.distance = e, this.point = i;
|
|
5834
5834
|
}
|
|
5835
5835
|
}
|
|
5836
|
-
const
|
|
5836
|
+
const Dc = class Dc {
|
|
5837
5837
|
constructor(t) {
|
|
5838
5838
|
r(this, "context");
|
|
5839
5839
|
r(this, "engine");
|
|
@@ -5918,14 +5918,14 @@ const Lc = class Lc {
|
|
|
5918
5918
|
let n = t.targets;
|
|
5919
5919
|
n || (n = this.targetBuffer, n.length = 1, n[0] = this.context.scene);
|
|
5920
5920
|
let s = t.results;
|
|
5921
|
-
this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), s || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), s = this.defaultRaycastOptions.results), t.layerMask !== void 0 ? t.layerMask instanceof No ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), Mi && console.time("raycast"), s.length = 0,
|
|
5921
|
+
this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), s || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), s = this.defaultRaycastOptions.results), t.layerMask !== void 0 ? t.layerMask instanceof No ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), Mi && console.time("raycast"), s.length = 0, Dc._raycasting++, this.intersect(this.raycaster, n, s, t), s.sort((l, c) => l.distance - c.distance);
|
|
5922
5922
|
const a = t.ignore;
|
|
5923
|
-
return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))),
|
|
5923
|
+
return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))), Dc._raycasting--, Mi && (console.timeEnd("raycast"), console.warn("#" + this.context.time.frame + ", hits:", s != null && s.length ? [...s] : "nothing"), performance.mark("raycast.end"), performance.measure("raycast", "raycast.start", "raycast.end")), s;
|
|
5924
5924
|
}
|
|
5925
5925
|
intersect(t, e, i, n) {
|
|
5926
5926
|
var s, a, l;
|
|
5927
5927
|
for (const c of e) {
|
|
5928
|
-
if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof
|
|
5928
|
+
if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof Uc)
|
|
5929
5929
|
continue;
|
|
5930
5930
|
let h = !0;
|
|
5931
5931
|
const d = c, u = d.geometry;
|
|
@@ -5952,7 +5952,7 @@ const Lc = class Lc {
|
|
|
5952
5952
|
}
|
|
5953
5953
|
intersectSphere(t, e, i, n, s, a, l, c) {
|
|
5954
5954
|
let h = t && t.isMesh && t.layers.test(n) && !H.isGizmo(t);
|
|
5955
|
-
h && (h = t.visible), h && (h = !(t instanceof
|
|
5955
|
+
h && (h = t.visible), h && (h = !(t instanceof Uc)), h && (h = !(t instanceof Za));
|
|
5956
5956
|
const d = t, u = d.geometry;
|
|
5957
5957
|
if (h && c) {
|
|
5958
5958
|
const f = c(t);
|
|
@@ -5983,12 +5983,12 @@ const Lc = class Lc {
|
|
|
5983
5983
|
}
|
|
5984
5984
|
}
|
|
5985
5985
|
};
|
|
5986
|
-
r(
|
|
5987
|
-
let $d =
|
|
5986
|
+
r(Dc, "_raycasting", 0);
|
|
5987
|
+
let $d = Dc;
|
|
5988
5988
|
function F_(o) {
|
|
5989
5989
|
return !(o.index && o.index.array.length < 3);
|
|
5990
5990
|
}
|
|
5991
|
-
const hr = new Iu(),
|
|
5991
|
+
const hr = new Iu(), Hh = new Wr(), HP = new m0();
|
|
5992
5992
|
function GP(o, t, e) {
|
|
5993
5993
|
const i = o._computeIntersections;
|
|
5994
5994
|
if (!i)
|
|
@@ -5998,12 +5998,12 @@ function GP(o, t, e) {
|
|
|
5998
5998
|
const c = this, h = c.geometry.boundingSphere;
|
|
5999
5999
|
if (h) {
|
|
6000
6000
|
if (c instanceof Za) {
|
|
6001
|
-
|
|
6002
|
-
const u = s.ray.intersectPlane(
|
|
6001
|
+
Hh.setFromNormalAndCoplanarPoint(q(0, 1, 0), q(0, -c.position.y, 0)), Hh.applyMatrix4(c.matrixWorld, HP);
|
|
6002
|
+
const u = s.ray.intersectPlane(Hh, q());
|
|
6003
6003
|
if (u) {
|
|
6004
6004
|
hr.copy(h), hr.applyMatrix4(c.matrixWorld);
|
|
6005
6005
|
const m = q(u).sub(s.ray.origin).length(), g = hr.radius * 0.5;
|
|
6006
|
-
m < g && a.push({ distance: m, point: u, object: c, normal:
|
|
6006
|
+
m < g && a.push({ distance: m, point: u, object: c, normal: Hh.normal.clone() });
|
|
6007
6007
|
}
|
|
6008
6008
|
return;
|
|
6009
6009
|
}
|
|
@@ -6085,7 +6085,7 @@ var Wd;
|
|
|
6085
6085
|
o.runMeshBVHRaycast = t;
|
|
6086
6086
|
let e = !1, i = null, n = null, s = null, a = null;
|
|
6087
6087
|
function l() {
|
|
6088
|
-
e || (e = !0, import("./vendor-
|
|
6088
|
+
e || (e = !0, import("./vendor-BmYIgaS1.js").then((b) => b.index$1).then((b) => {
|
|
6089
6089
|
i = b.acceleratedRaycast, n = b.MeshBVH, s = b.StaticGeometryGenerator, a = b.computeBoundsTree;
|
|
6090
6090
|
}).catch((b) => {
|
|
6091
6091
|
(Mi || z()) && console.error("Failed to load BVH library...", b.message);
|
|
@@ -6231,28 +6231,28 @@ function YP(o) {
|
|
|
6231
6231
|
const KP = /* @__PURE__ */ new Set();
|
|
6232
6232
|
function bv(o, t, e = null, i) {
|
|
6233
6233
|
if (i || (i = KP, i.clear()), !o) return i;
|
|
6234
|
-
const n = o[
|
|
6234
|
+
const n = o[Hc];
|
|
6235
6235
|
if (n)
|
|
6236
6236
|
for (const s of n)
|
|
6237
6237
|
i.has(s) || (e == null ? void 0 : e.call(null, s)) !== !1 && (i.add(s), t && bv(s, !0, e, i));
|
|
6238
6238
|
return i;
|
|
6239
6239
|
}
|
|
6240
6240
|
function DL(o) {
|
|
6241
|
-
return o[
|
|
6241
|
+
return o[lc];
|
|
6242
6242
|
}
|
|
6243
|
-
const jr = x("debugresourceusers") || x("debugmemory"),
|
|
6243
|
+
const jr = x("debugresourceusers") || x("debugmemory"), Hc = Symbol("needle-resource-users"), lc = Symbol("needle-resource-users-count");
|
|
6244
6244
|
function Gt(o, t) {
|
|
6245
6245
|
Og(o, t, function(e, i) {
|
|
6246
|
-
ea && !$d.raycasting && (Hd(
|
|
6246
|
+
ea && !$d.raycasting && (Hd(Hc, this, e, !1), Hd(Hc, this, i, !0));
|
|
6247
6247
|
});
|
|
6248
6248
|
}
|
|
6249
6249
|
ea && (Gt(G.prototype, "material"), Gt(G.prototype, "geometry"), Gt(Pe.prototype, "map"), Gt(Pe.prototype, "bumpMap"), Gt(Pe.prototype, "alphaMap"), Gt(Pe.prototype, "normalMap"), Gt(Pe.prototype, "displacementMap"), Gt(Pe.prototype, "roughnessMap"), Gt(Pe.prototype, "metalnessMap"), Gt(Pe.prototype, "emissiveMap"), Gt(Pe.prototype, "specularMap"), Gt(Pe.prototype, "envMap"), Gt(Pe.prototype, "lightMap"), Gt(Pe.prototype, "aoMap"), Gt(Pe.prototype, "gradientMap"));
|
|
6250
6250
|
function ZP(o) {
|
|
6251
6251
|
if (ea === !1) return;
|
|
6252
|
-
const t = o[
|
|
6252
|
+
const t = o[Hc];
|
|
6253
6253
|
if (t)
|
|
6254
6254
|
for (const e of t)
|
|
6255
|
-
Hd(
|
|
6255
|
+
Hd(Hc, e, o, !1);
|
|
6256
6256
|
}
|
|
6257
6257
|
ea && Og(Pe.prototype, "dispose", function() {
|
|
6258
6258
|
ZP(this);
|
|
@@ -6270,13 +6270,13 @@ function Hd(o, t, e, i) {
|
|
|
6270
6270
|
if (n || (n = /* @__PURE__ */ new Set()), i) {
|
|
6271
6271
|
if (t && !n.has(t)) {
|
|
6272
6272
|
n.add(t);
|
|
6273
|
-
let s = e[
|
|
6274
|
-
s += 1, e[
|
|
6273
|
+
let s = e[lc] || 0;
|
|
6274
|
+
s += 1, e[lc] = s, jr && console.warn(`🟢 Added user of "${e.type}"`, t, e, s, "users:", n);
|
|
6275
6275
|
}
|
|
6276
6276
|
} else if (t && n.has(t)) {
|
|
6277
6277
|
n.delete(t);
|
|
6278
|
-
let s = e[
|
|
6279
|
-
s > 0 && (s -= 1, e[
|
|
6278
|
+
let s = e[lc] || 0;
|
|
6279
|
+
s > 0 && (s -= 1, e[lc] = s), jr && console.warn(`🔴 Removed user of "${e.type}"`, t, e, s, "users:", n), s <= 0 && (Vd.isLoading(e) || (Vu && console.warn(`🔴 Removed all user of "${e.type}"`, e), mv() && Ie(e)));
|
|
6280
6280
|
}
|
|
6281
6281
|
e[o] = n;
|
|
6282
6282
|
}
|
|
@@ -6315,7 +6315,7 @@ class Hu {
|
|
|
6315
6315
|
}
|
|
6316
6316
|
}
|
|
6317
6317
|
r(Hu, "eventListeners", /* @__PURE__ */ new Map());
|
|
6318
|
-
const
|
|
6318
|
+
const Gc = Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), vv = Symbol("isUsingInstancing"), wv = Symbol("instancingRenderer"), cc = Symbol("instancingAutoUpdateBounds");
|
|
6319
6319
|
class Pn {
|
|
6320
6320
|
/** Is this object rendered using a InstancedMesh */
|
|
6321
6321
|
static isUsingInstancing(t) {
|
|
@@ -6329,12 +6329,12 @@ class Pn {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
setAutoUpdateBounds(t, e) {
|
|
6331
6331
|
const i = Pn.getRenderer(t);
|
|
6332
|
-
i && (i[
|
|
6332
|
+
i && (i[cc] = e);
|
|
6333
6333
|
}
|
|
6334
6334
|
// TODO: change this so it does not set matrix world directly but some flag that is only used by instancing
|
|
6335
6335
|
/** Mark an instanced object dirty so the instance matrix will be updated */
|
|
6336
6336
|
static markDirty(t, e = !0) {
|
|
6337
|
-
if (t && (this.isUsingInstancing(t) && (t[
|
|
6337
|
+
if (t && (this.isUsingInstancing(t) && (t[Gc] = !0, t.matrixWorldNeedsUpdate = !0), e))
|
|
6338
6338
|
for (const i of t.children)
|
|
6339
6339
|
Pn.markDirty(i, !0);
|
|
6340
6340
|
}
|
|
@@ -6374,7 +6374,7 @@ The script will be ignored. Please make sure your component extends "Behaviour"
|
|
|
6374
6374
|
Did you add and remove a component in the same frame?`), Be.splice(t, 1), t--;
|
|
6375
6375
|
continue;
|
|
6376
6376
|
}
|
|
6377
|
-
e.context = o,
|
|
6377
|
+
e.context = o, xc(e.gameObject), Ig(e, o);
|
|
6378
6378
|
} catch (e) {
|
|
6379
6379
|
console.error(e), ks(Be[t], o), Be.splice(t, 1), t--;
|
|
6380
6380
|
}
|
|
@@ -6391,14 +6391,14 @@ Did you add and remove a component in the same frame?`), Be.splice(t, 1), t--;
|
|
|
6391
6391
|
} catch (i) {
|
|
6392
6392
|
console.error(i);
|
|
6393
6393
|
}
|
|
6394
|
-
e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject),
|
|
6394
|
+
e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject), xc(e.gameObject), e.activeAndEnabled && Va(e.__internalAwake.bind(e)));
|
|
6395
6395
|
} catch (e) {
|
|
6396
6396
|
console.error(e), ks(Be[t], o), Be.splice(t, 1), t--;
|
|
6397
6397
|
}
|
|
6398
6398
|
for (let t = 0; t < Be.length; t++)
|
|
6399
6399
|
try {
|
|
6400
6400
|
const e = Be[t];
|
|
6401
|
-
if (e.destroyed || e.enabled === !1 || (
|
|
6401
|
+
if (e.destroyed || e.enabled === !1 || (xc(e.gameObject), e.activeAndEnabled === !1)) continue;
|
|
6402
6402
|
e.__internalEnable !== void 0 && (e.enabled = !0, Va(e.__internalEnable.bind(e)));
|
|
6403
6403
|
} catch (e) {
|
|
6404
6404
|
console.error(e), ks(Be[t], o), Be.splice(t, 1), t--;
|
|
@@ -6455,14 +6455,14 @@ function yd(o) {
|
|
|
6455
6455
|
console.trace("Invalid call - no current context.");
|
|
6456
6456
|
return;
|
|
6457
6457
|
}
|
|
6458
|
-
const t =
|
|
6458
|
+
const t = hh(o);
|
|
6459
6459
|
Sv(o, t, !0) || (bm || z() ? console.error(`Error updating hierarchy
|
|
6460
6460
|
Do you have circular references in your project? <a target="_blank" href="https://docs.needle.tools/circular-reference"> Click here for more information.`, o) : console.error('Failed to update active state in hierarchy of "' + o.name + '"', o), console.warn(" ↑ this error might be caused by circular references. Please make sure you don't have files with circular references (e.g. one GLB 1 is loading GLB 2 which is then loading GLB 1 again)."));
|
|
6461
6461
|
}
|
|
6462
6462
|
function Sv(o, t, e, i = 0) {
|
|
6463
6463
|
if (i > 1e3)
|
|
6464
6464
|
return console.warn("Hierarchy is too deep (> 1000 level) - will abort updating active state"), !1;
|
|
6465
|
-
const n =
|
|
6465
|
+
const n = hh(o);
|
|
6466
6466
|
if (t && (t = n, t && o.parent)) {
|
|
6467
6467
|
const c = o.parent;
|
|
6468
6468
|
t = c[Bo], t === void 0 && (c instanceof Bi || (t = !0));
|
|
@@ -6477,10 +6477,10 @@ function Sv(o, t, e, i = 0) {
|
|
|
6477
6477
|
Sv(c, t, e, i + 1) === !1 && (l = !1);
|
|
6478
6478
|
return l;
|
|
6479
6479
|
}
|
|
6480
|
-
function
|
|
6480
|
+
function xc(o) {
|
|
6481
6481
|
let t = !0, e = o, i = !1;
|
|
6482
6482
|
for (; e && e; ) {
|
|
6483
|
-
if (e.type === "Scene" && (i = !0), !
|
|
6483
|
+
if (e.type === "Scene" && (i = !0), !hh(e)) {
|
|
6484
6484
|
t = !1;
|
|
6485
6485
|
break;
|
|
6486
6486
|
}
|
|
@@ -6703,7 +6703,7 @@ function Mv(o, t) {
|
|
|
6703
6703
|
}
|
|
6704
6704
|
return null;
|
|
6705
6705
|
}
|
|
6706
|
-
const
|
|
6706
|
+
const lh = x("gizmos"), bt = x("debugextension"), ap = x("debugtypes");
|
|
6707
6707
|
class pO {
|
|
6708
6708
|
constructor() {
|
|
6709
6709
|
r(this, "_types", /* @__PURE__ */ new Map());
|
|
@@ -7323,7 +7323,7 @@ const Dv = new Ft("addComponentIdProvider");
|
|
|
7323
7323
|
function Ha(o, t, e = !0) {
|
|
7324
7324
|
o.userData || (o.userData = {}), o.userData.components || (o.userData.components = []), o.userData.components.push(t), t.gameObject = o, (t.guid === void 0 || t.guid === "invalid") && (t.guid = Dv.generateUUID()), Bg(o), Ng(t, t.context);
|
|
7325
7325
|
try {
|
|
7326
|
-
e && t.__internalAwake && (
|
|
7326
|
+
e && t.__internalAwake && (xc(o), t.activeAndEnabled && t.__internalAwake()), Hu.dispatchComponentLifecycleEvent("component-added", t);
|
|
7327
7327
|
} catch (i) {
|
|
7328
7328
|
console.error(i);
|
|
7329
7329
|
}
|
|
@@ -7399,11 +7399,11 @@ function Qu(o, t, e) {
|
|
|
7399
7399
|
}
|
|
7400
7400
|
return null;
|
|
7401
7401
|
}
|
|
7402
|
-
function
|
|
7402
|
+
function ch(o, t, e, i = !0) {
|
|
7403
7403
|
var n;
|
|
7404
7404
|
e || (e = []), i && (e.length = 0), Xu(o, t, e, !1);
|
|
7405
7405
|
for (let s = 0; s < ((n = o == null ? void 0 : o.children) == null ? void 0 : n.length); s++)
|
|
7406
|
-
|
|
7406
|
+
ch(o.children[s], t, e, !1);
|
|
7407
7407
|
return e;
|
|
7408
7408
|
}
|
|
7409
7409
|
function Qd(o, t) {
|
|
@@ -7436,7 +7436,7 @@ function zO(o, t, e = void 0) {
|
|
|
7436
7436
|
return console.error("Can not search object without any needle context or scene!!!"), t;
|
|
7437
7437
|
"scene" in e && (e = e.scene);
|
|
7438
7438
|
const i = e;
|
|
7439
|
-
return i &&
|
|
7439
|
+
return i && ch(i, o, t, !1), t;
|
|
7440
7440
|
}
|
|
7441
7441
|
function Bg(o) {
|
|
7442
7442
|
o && o.isObject3D === !0 && AO(o, I);
|
|
@@ -7472,7 +7472,7 @@ I.prototype.getComponentInChildren = function(o) {
|
|
|
7472
7472
|
return Qu(this, o);
|
|
7473
7473
|
};
|
|
7474
7474
|
I.prototype.getComponentsInChildren = function(o, t) {
|
|
7475
|
-
return
|
|
7475
|
+
return ch(this, o, t);
|
|
7476
7476
|
};
|
|
7477
7477
|
I.prototype.getComponentInParent = function(o) {
|
|
7478
7478
|
return Qd(this, o);
|
|
@@ -7482,7 +7482,7 @@ I.prototype.getComponentsInParent = function(o, t) {
|
|
|
7482
7482
|
};
|
|
7483
7483
|
Object.getOwnPropertyDescriptor(I.prototype, "activeSelf") || Object.defineProperty(I.prototype, "activeSelf", {
|
|
7484
7484
|
get: function() {
|
|
7485
|
-
return
|
|
7485
|
+
return hh(this);
|
|
7486
7486
|
},
|
|
7487
7487
|
set: function(o) {
|
|
7488
7488
|
wd(this, o);
|
|
@@ -7517,7 +7517,7 @@ Object.getOwnPropertyDescriptor(I.prototype, "worldScale") || Object.definePrope
|
|
|
7517
7517
|
return Ye(this);
|
|
7518
7518
|
},
|
|
7519
7519
|
set: function(o) {
|
|
7520
|
-
|
|
7520
|
+
Wc(this, o);
|
|
7521
7521
|
}
|
|
7522
7522
|
});
|
|
7523
7523
|
Object.getOwnPropertyDescriptor(I.prototype, "worldForward") || Object.defineProperty(I.prototype, "worldForward", {
|
|
@@ -7624,7 +7624,7 @@ class as {
|
|
|
7624
7624
|
this.idProvider = t.idProvider, this.parent = t.parent, this.keepWorldPosition = t.keepWorldPosition, this.position = (e = t.position) == null ? void 0 : e.clone(), this.rotation = (i = t.rotation) == null ? void 0 : i.clone(), this.scale = (n = t.scale) == null ? void 0 : n.clone(), this.visible = t.visible, this.context = t.context, this.components = t.components;
|
|
7625
7625
|
}
|
|
7626
7626
|
}
|
|
7627
|
-
function
|
|
7627
|
+
function hh(o) {
|
|
7628
7628
|
return o.visible;
|
|
7629
7629
|
}
|
|
7630
7630
|
function wd(o, t) {
|
|
@@ -7640,7 +7640,7 @@ function Fg(o) {
|
|
|
7640
7640
|
return Pn.isUsingInstancing(o);
|
|
7641
7641
|
}
|
|
7642
7642
|
function Bv(o, t) {
|
|
7643
|
-
return
|
|
7643
|
+
return Nc(o, t, !0, !0);
|
|
7644
7644
|
}
|
|
7645
7645
|
const Fv = Symbol("isDestroyed");
|
|
7646
7646
|
function rl(o) {
|
|
@@ -7769,7 +7769,7 @@ function Uv(o, t, e, i, n, s) {
|
|
|
7769
7769
|
const h = t.parent;
|
|
7770
7770
|
if (h && h.add(c), e != null && e.position ? vt(c, e.position) : c.position.copy(t.position), e != null && e.rotation ? kn(c, e.rotation) : c.quaternion.copy(t.quaternion), e != null && e.scale ? c.scale.copy(e.scale) : c.scale.copy(t.scale), e != null && e.parent && e.parent !== "scene") {
|
|
7771
7771
|
let u = null;
|
|
7772
|
-
if (typeof e.parent == "string" ? u =
|
|
7772
|
+
if (typeof e.parent == "string" ? u = Nc(e.parent, o.scene, !0) : u = e.parent, u) {
|
|
7773
7773
|
const f = e.keepWorldPosition === !0 ? u.attach : u.add;
|
|
7774
7774
|
f ? f.call(u, c) : console.error("Invalid parent object", u, "received when instantiating:", t);
|
|
7775
7775
|
} else console.warn("could not find parent:", e.parent);
|
|
@@ -8382,7 +8382,7 @@ class YO {
|
|
|
8382
8382
|
e !== -1 && this.mixers.splice(e, 1);
|
|
8383
8383
|
}
|
|
8384
8384
|
}
|
|
8385
|
-
class
|
|
8385
|
+
class qc {
|
|
8386
8386
|
/**
|
|
8387
8387
|
* Tries to get the animation actions from an animation mixer.
|
|
8388
8388
|
* @param mixer The animation mixer to get the actions from
|
|
@@ -8572,7 +8572,7 @@ irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );
|
|
|
8572
8572
|
#endif`
|
|
8573
8573
|
);
|
|
8574
8574
|
mS.lightmap.lightmapScaleOffset = { value: new ye(1, 1, 0, 0) };
|
|
8575
|
-
const hp = x("debugprogressive"),
|
|
8575
|
+
const hp = x("debugprogressive"), Gh = new Di(), qh = new Iu();
|
|
8576
8576
|
class ek {
|
|
8577
8577
|
constructor(t) {
|
|
8578
8578
|
r(this, "context");
|
|
@@ -8619,8 +8619,8 @@ class ek {
|
|
|
8619
8619
|
const a = i.mesh_lod != n.lastLodLevel_Mesh || i.texture_lod != n.lastLodLevel_Texture;
|
|
8620
8620
|
if (hp && e.geometry.boundingSphere) {
|
|
8621
8621
|
const d = e.geometry.boundingSphere;
|
|
8622
|
-
|
|
8623
|
-
const u =
|
|
8622
|
+
qh.copy(d), qh.applyMatrix4(e.matrixWorld);
|
|
8623
|
+
const u = qh.center, f = qh.radius, m = ["#76c43e", "#bcc43e", "#c4ac3e", "#c4673e", "#ff3e3e"];
|
|
8624
8624
|
if (a)
|
|
8625
8625
|
H.DrawWireSphere(u, f, m[s], 0.1);
|
|
8626
8626
|
else {
|
|
@@ -8640,7 +8640,7 @@ TEX ` + i.texture_lod;
|
|
|
8640
8640
|
` + (b / n.lastScreenCoverage).toFixed(0) + ` dens
|
|
8641
8641
|
` + (n.lastScreenCoverage * 100).toFixed(1) + `% cov
|
|
8642
8642
|
` + (n.lastCentrality * 100).toFixed(1) + `% centr
|
|
8643
|
-
` + (
|
|
8643
|
+
` + (Gh.min.x.toFixed(2) + "-" + Gh.max.x.toFixed(2) + "x" + Gh.min.y.toFixed(2) + "-" + Gh.max.y.toFixed(2)) + " scr"), n.lastScreenCoverage > 0.1) {
|
|
8644
8644
|
const C = t, M = C.worldForward, k = C.worldPosition, R = q(M).multiplyScalar(f * 0.7).add(u), U = R.distanceTo(k), T = m[Math.min(m.length - 1, Math.max(0, s))] + "88", L = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, A = t.isPerspectiveCamera ? Math.tan(t.fov * Math.PI / 180 / 2) : 1;
|
|
8645
8645
|
H.DrawLabel(R, w, U * 0.012 * L * A, void 0, 16777215, T);
|
|
8646
8646
|
}
|
|
@@ -8693,12 +8693,12 @@ class nk {
|
|
|
8693
8693
|
}
|
|
8694
8694
|
}
|
|
8695
8695
|
new ug();
|
|
8696
|
-
const
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
const sk = new fg(
|
|
8696
|
+
const dh = new Uint8Array(4);
|
|
8697
|
+
dh[0] = 255;
|
|
8698
|
+
dh[1] = 255;
|
|
8699
|
+
dh[2] = 255;
|
|
8700
|
+
dh[3] = 255;
|
|
8701
|
+
const sk = new fg(dh, 1, 1, Lu);
|
|
8702
8702
|
function Ug(o, t = 1) {
|
|
8703
8703
|
const e = "alpha" in o, i = t * t, n = new Uint8Array(4 * i), s = Math.floor(o.r * 255), a = Math.floor(o.g * 255), l = Math.floor(o.b * 255);
|
|
8704
8704
|
for (let h = 0; h < i; h++) {
|
|
@@ -8777,7 +8777,7 @@ function ck(o) {
|
|
|
8777
8777
|
}).join(""));
|
|
8778
8778
|
}
|
|
8779
8779
|
const yn = x("debugenvlight");
|
|
8780
|
-
var
|
|
8780
|
+
var Sc = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Trilight = 1] = "Trilight", o[o.Flat = 3] = "Flat", o[o.Custom = 4] = "Custom", o))(Sc || {}), Mm = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Custom = 1] = "Custom", o))(Mm || {});
|
|
8781
8781
|
class hk {
|
|
8782
8782
|
constructor(t) {
|
|
8783
8783
|
r(this, "context");
|
|
@@ -8867,7 +8867,7 @@ class hk {
|
|
|
8867
8867
|
var i;
|
|
8868
8868
|
this.__currentReflectionId = t;
|
|
8869
8869
|
const e = (i = this._sceneLightSettings) == null ? void 0 : i.get(t);
|
|
8870
|
-
switch (yn && console.log("Enable reflection", t, e ?
|
|
8870
|
+
switch (yn && console.log("Enable reflection", t, e ? Sc[e.ambientMode] : "Unknown ambient mode", e), e == null ? void 0 : e.ambientMode) {
|
|
8871
8871
|
case 0:
|
|
8872
8872
|
case 4:
|
|
8873
8873
|
const n = this.internalGetReflection(t);
|
|
@@ -9224,22 +9224,22 @@ function mk(o) {
|
|
|
9224
9224
|
var e;
|
|
9225
9225
|
return ((e = o.classList) == null ? void 0 : e.contains("material-symbols-outlined")) || !1;
|
|
9226
9226
|
}
|
|
9227
|
-
const
|
|
9227
|
+
const Xh = /* @__PURE__ */ new Map();
|
|
9228
9228
|
async function nb(o) {
|
|
9229
9229
|
const t = "Material Symbols Outlined";
|
|
9230
|
-
if (document.fonts.check(`1em '${t}'`) || (console.log("Font not loaded yet"), await document.fonts.ready),
|
|
9231
|
-
return
|
|
9230
|
+
if (document.fonts.check(`1em '${t}'`) || (console.log("Font not loaded yet"), await document.fonts.ready), Xh.has(o))
|
|
9231
|
+
return Xh.get(o);
|
|
9232
9232
|
const e = document.createElement("canvas"), i = 48;
|
|
9233
9233
|
e.width = i, e.height = i;
|
|
9234
9234
|
const n = e.getContext("2d");
|
|
9235
9235
|
if (n) {
|
|
9236
9236
|
n.font = `${i}px '${t}'`, n.fillStyle = "black", n.fillText(o, 0, i);
|
|
9237
9237
|
const s = e.toDataURL(), a = new ze();
|
|
9238
|
-
return a.name = o + " icon", a.image = new Image(), a.image.src = s, a.needsUpdate = !0,
|
|
9238
|
+
return a.name = o + " icon", a.image = new Image(), a.image.src = s, a.needsUpdate = !0, Xh.set(o, a), a;
|
|
9239
9239
|
}
|
|
9240
|
-
return
|
|
9240
|
+
return Xh.set(o, null), null;
|
|
9241
9241
|
}
|
|
9242
|
-
const
|
|
9242
|
+
const jc = class jc {
|
|
9243
9243
|
constructor() {
|
|
9244
9244
|
r(this, "_fullscreenButton");
|
|
9245
9245
|
r(this, "_muteButton");
|
|
@@ -9260,11 +9260,11 @@ const Dc = class Dc {
|
|
|
9260
9260
|
* If you want to create a new factory and create new button instances instead of shared buttons, use `ButtonsFactory.create()` instead
|
|
9261
9261
|
*/
|
|
9262
9262
|
static getOrCreate() {
|
|
9263
|
-
return this._instance || (this._instance = new
|
|
9263
|
+
return this._instance || (this._instance = new jc()), this._instance;
|
|
9264
9264
|
}
|
|
9265
9265
|
/** create a new buttons factory */
|
|
9266
9266
|
static create() {
|
|
9267
|
-
return new
|
|
9267
|
+
return new jc();
|
|
9268
9268
|
}
|
|
9269
9269
|
/**
|
|
9270
9270
|
* Get the fullscreen button (or undefined if it doesn't exist yet). Call {@link ButtonsFactory.createFullscreenButton} to get or create it
|
|
@@ -9383,8 +9383,8 @@ const Dc = class Dc {
|
|
|
9383
9383
|
});
|
|
9384
9384
|
}
|
|
9385
9385
|
};
|
|
9386
|
-
r(
|
|
9387
|
-
let As =
|
|
9386
|
+
r(jc, "_instance");
|
|
9387
|
+
let As = jc;
|
|
9388
9388
|
function Jd(o, t) {
|
|
9389
9389
|
const e = (t == null ? void 0 : t.element) || document.head, i = Array.from(e.querySelectorAll(`link[rel=stylesheet][href*='${o}']`));
|
|
9390
9390
|
if (i.length <= 0) {
|
|
@@ -9784,7 +9784,7 @@ class sb {
|
|
|
9784
9784
|
t.use(), this.onclick();
|
|
9785
9785
|
}
|
|
9786
9786
|
}
|
|
9787
|
-
const _r = "needle-menu",
|
|
9787
|
+
const _r = "needle-menu", Cc = x("debugmenu"), ob = x("debugnoncommercial");
|
|
9788
9788
|
let _k = class {
|
|
9789
9789
|
constructor(t) {
|
|
9790
9790
|
r(this, "_context");
|
|
@@ -9809,8 +9809,8 @@ let _k = class {
|
|
|
9809
9809
|
a ? globalThis.open(n.onclick, l) : console.error("NeedleMenu: onclick is not a valid link", n.onclick);
|
|
9810
9810
|
}
|
|
9811
9811
|
}, this._menu.appendChild(s);
|
|
9812
|
-
} else
|
|
9813
|
-
} else
|
|
9812
|
+
} else Cc && console.error("NeedleMenu: unknown postMessage event", e);
|
|
9813
|
+
} else Cc && console.warn("NeedleMenu: unknown postMessage type", i, e);
|
|
9814
9814
|
}
|
|
9815
9815
|
});
|
|
9816
9816
|
r(this, "onStartXR", (t) => {
|
|
@@ -9895,7 +9895,7 @@ let _k = class {
|
|
|
9895
9895
|
return this._menu.appendChild(t);
|
|
9896
9896
|
}
|
|
9897
9897
|
};
|
|
9898
|
-
var
|
|
9898
|
+
var rh;
|
|
9899
9899
|
const qy = class qy extends HTMLElement {
|
|
9900
9900
|
constructor() {
|
|
9901
9901
|
var u, f, m, g, y, _;
|
|
@@ -9903,7 +9903,7 @@ const qy = class qy extends HTMLElement {
|
|
|
9903
9903
|
r(this, "_domElement", null);
|
|
9904
9904
|
r(this, "_context", null);
|
|
9905
9905
|
r(this, "_sizeChangeInterval");
|
|
9906
|
-
pn(this,
|
|
9906
|
+
pn(this, rh, (e) => {
|
|
9907
9907
|
if (!e.defaultPrevented && e.target == this._domElement && e instanceof PointerEvent && e.button === 0 && this.root.classList.contains("open")) {
|
|
9908
9908
|
const i = this.foldout.getBoundingClientRect(), n = e;
|
|
9909
9909
|
n.clientX > i.left && n.clientX < i.right && n.clientY > i.top && n.clientY < i.bottom || this.root.classList.toggle("open", !1);
|
|
@@ -9932,7 +9932,7 @@ const qy = class qy extends HTMLElement {
|
|
|
9932
9932
|
clearTimeout(this._timeoutHandle), this.root.classList.add("compact"), this.foldout.classList.add("floating-panel-style");
|
|
9933
9933
|
return;
|
|
9934
9934
|
}
|
|
9935
|
-
const
|
|
9935
|
+
const a = n - 40;
|
|
9936
9936
|
if (!i && Math.abs(a - this._lastAvailableWidthChange) < 1) return;
|
|
9937
9937
|
this._lastAvailableWidthChange = a, clearTimeout(this._timeoutHandle), this._timeoutHandle = setTimeout(() => {
|
|
9938
9938
|
const h = c();
|
|
@@ -10348,7 +10348,7 @@ const qy = class qy extends HTMLElement {
|
|
|
10348
10348
|
let l = 0;
|
|
10349
10349
|
const c = (b, w) => {
|
|
10350
10350
|
var C, M, k;
|
|
10351
|
-
|
|
10351
|
+
Cc && console.log("Set menu visible", w), a != null && a.isInAR && a.arOverlayElement ? b != a.arOverlayElement && a.arOverlayElement.appendChild(this) : this.parentNode != ((C = this._domElement) == null ? void 0 : C.shadowRoot) && ((k = (M = this._domElement) == null ? void 0 : M.shadowRoot) == null || k.appendChild(this)), this.style.display = w ? "flex" : "none", this.style.visibility = "visible", this.style.opacity = "1";
|
|
10352
10352
|
};
|
|
10353
10353
|
let h = !1;
|
|
10354
10354
|
new MutationObserver((b) => {
|
|
@@ -10364,7 +10364,7 @@ const qy = class qy extends HTMLElement {
|
|
|
10364
10364
|
} finally {
|
|
10365
10365
|
h = !1;
|
|
10366
10366
|
}
|
|
10367
|
-
}).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }),
|
|
10367
|
+
}).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }), Cc && this.___insertDebugOptions();
|
|
10368
10368
|
}
|
|
10369
10369
|
static create() {
|
|
10370
10370
|
return document.createElement(_r, { is: _r });
|
|
@@ -10376,12 +10376,12 @@ const qy = class qy extends HTMLElement {
|
|
|
10376
10376
|
connectedCallback() {
|
|
10377
10377
|
window.addEventListener("resize", this.handleSizeChange), this.handleMenuVisible(), this._sizeChangeInterval = setInterval(() => this.handleSizeChange(void 0, !0), 5e3), setTimeout(() => {
|
|
10378
10378
|
var e, i;
|
|
10379
|
-
(e = this._domElement) == null || e.addEventListener("resize", this.handleSizeChange), (i = this._domElement) == null || i.addEventListener("click", fe(this,
|
|
10379
|
+
(e = this._domElement) == null || e.addEventListener("resize", this.handleSizeChange), (i = this._domElement) == null || i.addEventListener("click", fe(this, rh));
|
|
10380
10380
|
}, 1);
|
|
10381
10381
|
}
|
|
10382
10382
|
disconnectedCallback() {
|
|
10383
10383
|
var e, i;
|
|
10384
|
-
window.removeEventListener("resize", this.handleSizeChange), clearInterval(this._sizeChangeInterval), (e = this._domElement) == null || e.removeEventListener("resize", this.handleSizeChange), (i = this._context) == null || i.domElement.removeEventListener("click", fe(this,
|
|
10384
|
+
window.removeEventListener("resize", this.handleSizeChange), clearInterval(this._sizeChangeInterval), (e = this._domElement) == null || e.removeEventListener("resize", this.handleSizeChange), (i = this._context) == null || i.domElement.removeEventListener("click", fe(this, rh));
|
|
10385
10385
|
}
|
|
10386
10386
|
showNeedleLogo(e) {
|
|
10387
10387
|
this._userRequestedLogoVisible = e, !(!e && (!Ns() || ob) && (console.warn("[Needle Engine] You need a PRO license to hide the Needle Engine logo in production."), !bi())) && this.___onSetLogoVisible(e);
|
|
@@ -10472,7 +10472,7 @@ const qy = class qy extends HTMLElement {
|
|
|
10472
10472
|
* if we dont have any content and logo then we hide the menu
|
|
10473
10473
|
*/
|
|
10474
10474
|
handleMenuVisible() {
|
|
10475
|
-
|
|
10475
|
+
Cc && console.log("Update VisibleState: Any Content?", this.hasAnyContent), this.hasAnyContent ? this.root.style.display = "" : this.root.style.display = "none", this.root.classList.toggle("has-options", this.hasAnyVisibleOptions), this.root.classList.toggle("has-no-options", !this.hasAnyVisibleOptions);
|
|
10476
10476
|
}
|
|
10477
10477
|
/** @returns true if we have any content OR a logo */
|
|
10478
10478
|
get hasAnyContent() {
|
|
@@ -10512,7 +10512,7 @@ const qy = class qy extends HTMLElement {
|
|
|
10512
10512
|
}), this.appendChild(i);
|
|
10513
10513
|
}
|
|
10514
10514
|
};
|
|
10515
|
-
|
|
10515
|
+
rh = new WeakMap();
|
|
10516
10516
|
let tu = qy;
|
|
10517
10517
|
customElements.get(_r) || customElements.define(_r, tu);
|
|
10518
10518
|
const it = x("debugcontext"), bk = x("stats"), vk = x("debugactive"), wk = x("debugframerate"), xk = x("debugcoroutine"), UL = {};
|
|
@@ -11212,7 +11212,7 @@ Possible solutions:
|
|
|
11212
11212
|
al(this.scene, (b) => {
|
|
11213
11213
|
const w = b;
|
|
11214
11214
|
if (w != null && w.isCamera) {
|
|
11215
|
-
if (
|
|
11215
|
+
if (xc(w.gameObject), !w.activeAndEnabled) return;
|
|
11216
11216
|
if (w.tag === "MainCamera")
|
|
11217
11217
|
return _ = w, !0;
|
|
11218
11218
|
_ = w;
|
|
@@ -11569,7 +11569,7 @@ function Sk(o) {
|
|
|
11569
11569
|
return o(!0);
|
|
11570
11570
|
Gv.push(o);
|
|
11571
11571
|
}
|
|
11572
|
-
function
|
|
11572
|
+
function Qh(o) {
|
|
11573
11573
|
for (const t of Gv)
|
|
11574
11574
|
try {
|
|
11575
11575
|
t(o);
|
|
@@ -11579,7 +11579,7 @@ function Xh(o) {
|
|
|
11579
11579
|
pe.registerCallback(me.ContextRegistered, (o) => {
|
|
11580
11580
|
Ok(o.context), Pk(o.context), setTimeout(() => Mk(o.context), 2e3);
|
|
11581
11581
|
});
|
|
11582
|
-
let Fo, Em = !1,
|
|
11582
|
+
let Fo, Em = !1, hc = "";
|
|
11583
11583
|
async function Ck() {
|
|
11584
11584
|
if (Fo) return Fo;
|
|
11585
11585
|
if (Zn === "basic")
|
|
@@ -11589,9 +11589,9 @@ async function Ck() {
|
|
|
11589
11589
|
}).catch((e) => {
|
|
11590
11590
|
Ei && console.error("License check failed", e);
|
|
11591
11591
|
});
|
|
11592
|
-
(t == null ? void 0 : t.status) === 200 ? (Em = !1, Ei && console.log("License check succeeded"), Zn = "pro",
|
|
11592
|
+
(t == null ? void 0 : t.status) === 200 ? (Em = !1, Ei && console.log("License check succeeded"), Zn = "pro", Qh(!0)) : (t == null ? void 0 : t.status) === 403 ? (Qh(!1), Em = !0, hc = await t.text()) : (Qh(!1), Ei && console.log("License check failed with status " + (t == null ? void 0 : t.status)));
|
|
11593
11593
|
} catch (o) {
|
|
11594
|
-
|
|
11594
|
+
Qh(!1), Ei && console.error("License check failed", o);
|
|
11595
11595
|
}
|
|
11596
11596
|
else Ei && console.log('Runtime license check is skipped because license is already applied as "' + Zn + '"');
|
|
11597
11597
|
}
|
|
@@ -11630,7 +11630,7 @@ async function Pk(o) {
|
|
|
11630
11630
|
background-color: rgba(0,0,0,.3);
|
|
11631
11631
|
text-shadow: 0 0 2px black;
|
|
11632
11632
|
`;
|
|
11633
|
-
const l = a.style.cssText, c = (
|
|
11633
|
+
const l = a.style.cssText, c = (hc == null ? void 0 : hc.length) > 1 ? hc : "This web application has been paused.<br/>You might be in violation of the Needle Engine terms of use.<br/>Please contact the Needle support if you think this is a mistake.";
|
|
11634
11634
|
return a.innerHTML = c, setInterval(() => {
|
|
11635
11635
|
a.innerHTML !== c && (a.innerHTML = c), a.parentNode !== n && n.appendChild(a), n.style.cssText !== s && (n.style.cssText = s), a.style.cssText !== l && (a.style.cssText = l);
|
|
11636
11636
|
}, 500), n;
|
|
@@ -11767,7 +11767,7 @@ async function Mk(o) {
|
|
|
11767
11767
|
version: Kn,
|
|
11768
11768
|
generator: Pg,
|
|
11769
11769
|
build_time: iv,
|
|
11770
|
-
public_key:
|
|
11770
|
+
public_key: ac
|
|
11771
11771
|
}, d = (i = navigator.sendBeacon) == null ? void 0 : i.call(navigator, c, JSON.stringify(h));
|
|
11772
11772
|
Ei && console.debug("Sent beacon: " + d);
|
|
11773
11773
|
}
|
|
@@ -11833,31 +11833,31 @@ function hb(o) {
|
|
|
11833
11833
|
return o;
|
|
11834
11834
|
}
|
|
11835
11835
|
const zo = x("debughotreload");
|
|
11836
|
-
let
|
|
11837
|
-
const
|
|
11836
|
+
let Xc = !1;
|
|
11837
|
+
const Pc = /* @__PURE__ */ new Map();
|
|
11838
11838
|
function $L() {
|
|
11839
|
-
return
|
|
11839
|
+
return Xc;
|
|
11840
11840
|
}
|
|
11841
11841
|
function db() {
|
|
11842
11842
|
return globalThis.NEEDLE_HOT_RELOAD_ENABLED === !0;
|
|
11843
11843
|
}
|
|
11844
11844
|
function Tk(o) {
|
|
11845
11845
|
var i;
|
|
11846
|
-
if (
|
|
11846
|
+
if (Xc) {
|
|
11847
11847
|
zo && console.warn("[Needle Engine] Hot reloading is in progress, not registering instance", o);
|
|
11848
11848
|
return;
|
|
11849
11849
|
}
|
|
11850
11850
|
zo && console.log("[Needle Engine] Registering hot reload instance", o);
|
|
11851
11851
|
const e = o.constructor.name;
|
|
11852
|
-
|
|
11852
|
+
Pc.has(e) ? (i = Pc.get(e)) == null || i.push(o) : Pc.set(e, [o]);
|
|
11853
11853
|
}
|
|
11854
11854
|
function Ek(o) {
|
|
11855
|
-
if (
|
|
11855
|
+
if (Xc) {
|
|
11856
11856
|
zo && console.warn("[Needle Engine] Hot reloading is in progress, not unregistering instance", o);
|
|
11857
11857
|
return;
|
|
11858
11858
|
}
|
|
11859
11859
|
zo && console.log("[Needle Engine] Unregistering hot reload instance", o);
|
|
11860
|
-
const e = o.constructor.name, i =
|
|
11860
|
+
const e = o.constructor.name, i = Pc.get(e);
|
|
11861
11861
|
if (!i) return;
|
|
11862
11862
|
const n = i.indexOf(o);
|
|
11863
11863
|
n !== -1 && i.splice(n, 1);
|
|
@@ -11882,13 +11882,13 @@ function WL(o) {
|
|
|
11882
11882
|
zo && console.log("[HMR] Apply changes", o, Object.keys(o)), Ak();
|
|
11883
11883
|
for (const t of Object.keys(o))
|
|
11884
11884
|
try {
|
|
11885
|
-
|
|
11885
|
+
Xc = !0;
|
|
11886
11886
|
const e = O.get(t);
|
|
11887
11887
|
if (!e) {
|
|
11888
11888
|
zo && console.log("[HMR] Type not found: " + t);
|
|
11889
11889
|
continue;
|
|
11890
11890
|
}
|
|
11891
|
-
const i = o[t], n =
|
|
11891
|
+
const i = o[t], n = Pc.get(i.name);
|
|
11892
11892
|
let s = "[Needle Engine] Updating type: " + t;
|
|
11893
11893
|
const a = (n == null ? void 0 : n.length) ?? -1;
|
|
11894
11894
|
a > 0 ? s += " x" + a : s += " (No instances registered)", console.log(s);
|
|
@@ -11925,7 +11925,7 @@ function WL(o) {
|
|
|
11925
11925
|
if (zo) console.error(e);
|
|
11926
11926
|
else return !1;
|
|
11927
11927
|
} finally {
|
|
11928
|
-
|
|
11928
|
+
Xc = !1, $n(nn.Log, "Script changes applied (HMR)");
|
|
11929
11929
|
}
|
|
11930
11930
|
return !0;
|
|
11931
11931
|
}
|
|
@@ -11960,7 +11960,7 @@ class S extends I {
|
|
|
11960
11960
|
* @returns True if the GameObject is active
|
|
11961
11961
|
*/
|
|
11962
11962
|
static isActiveSelf(e) {
|
|
11963
|
-
return
|
|
11963
|
+
return hh(e);
|
|
11964
11964
|
}
|
|
11965
11965
|
/**
|
|
11966
11966
|
* Checks if the GameObject is active in the hierarchy (e.g. if any parent is invisible or not in the scene it will be false)
|
|
@@ -12183,7 +12183,7 @@ class S extends I {
|
|
|
12183
12183
|
* @returns Array of components
|
|
12184
12184
|
*/
|
|
12185
12185
|
static getComponentsInChildren(e, i, n = null) {
|
|
12186
|
-
return
|
|
12186
|
+
return ch(e, i, n ?? void 0);
|
|
12187
12187
|
}
|
|
12188
12188
|
/**
|
|
12189
12189
|
* Gets a component of the specified type in the gameObject's parent hierarchy
|
|
@@ -13011,7 +13011,7 @@ class GL {
|
|
|
13011
13011
|
return !0;
|
|
13012
13012
|
}
|
|
13013
13013
|
}
|
|
13014
|
-
class
|
|
13014
|
+
class Yh {
|
|
13015
13015
|
constructor(t, e, i, n) {
|
|
13016
13016
|
/** The name of the animation */
|
|
13017
13017
|
r(this, "name");
|
|
@@ -13043,7 +13043,7 @@ function Fk(o, t) {
|
|
|
13043
13043
|
};
|
|
13044
13044
|
}
|
|
13045
13045
|
var gr = /* @__PURE__ */ ((o) => (o[o.If = 1] = "If", o[o.IfNot = 2] = "IfNot", o[o.Greater = 3] = "Greater", o[o.Less = 4] = "Less", o[o.Equals = 6] = "Equals", o[o.NotEqual = 7] = "NotEqual", o))(gr || {}), Kv = /* @__PURE__ */ ((o) => (o[o.Float = 1] = "Float", o[o.Int = 3] = "Int", o[o.Bool = 4] = "Bool", o[o.Trigger = 9] = "Trigger", o))(Kv || {});
|
|
13046
|
-
const ct = x("debuganimatorcontroller"),
|
|
13046
|
+
const ct = x("debuganimatorcontroller"), Kh = x("debugrootmotion");
|
|
13047
13047
|
class On {
|
|
13048
13048
|
constructor(t) {
|
|
13049
13049
|
r(this, "_speed", 1);
|
|
@@ -13298,7 +13298,7 @@ class On {
|
|
|
13298
13298
|
const t = this._activeState.motion.action;
|
|
13299
13299
|
if (!t) return null;
|
|
13300
13300
|
const e = this._activeState.motion.clip.duration, i = e <= 0 ? 0 : Math.abs(t.time / e);
|
|
13301
|
-
return new
|
|
13301
|
+
return new Yh(this._activeState, i, e, this._speed);
|
|
13302
13302
|
}
|
|
13303
13303
|
/**
|
|
13304
13304
|
* Gets the animation action currently playing.
|
|
@@ -13451,7 +13451,7 @@ Exit Time: ` + d, a.hasExitTime);
|
|
|
13451
13451
|
i && this.setTimescale(i, e);
|
|
13452
13452
|
let n = !1;
|
|
13453
13453
|
if (e.motion.isLooping && i && (i.time >= i.getClip().duration ? (n = !0, i.reset(), i.time = 0, i.play()) : i.time <= 0 && i.timeScale < 0 && (n = !0, i.reset(), i.time = i.getClip().duration, i.play())), !n && e && !t && i && this.animator && e.behaviours) {
|
|
13454
|
-
const a = i == null ? void 0 : i.getClip().duration, l = i.time / a, c = new
|
|
13454
|
+
const a = i == null ? void 0 : i.getClip().duration, l = i.time / a, c = new Yh(this._activeState, l, a, this._speed);
|
|
13455
13455
|
for (const h of e.behaviours)
|
|
13456
13456
|
h.instance && ((s = h.instance.onStateUpdate) == null || s.call(h.instance, this.animator, c, 0));
|
|
13457
13457
|
}
|
|
@@ -13483,7 +13483,7 @@ Exit Time: ` + d, a.hasExitTime);
|
|
|
13483
13483
|
}
|
|
13484
13484
|
}
|
|
13485
13485
|
if ((d = this._activeState) != null && d.behaviours && this._activeState.motion.action) {
|
|
13486
|
-
const w = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, C = this._activeState.motion.action.time / w, M = new
|
|
13486
|
+
const w = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, C = this._activeState.motion.action.time / w, M = new Yh(this._activeState, C, w, this._speed);
|
|
13487
13487
|
for (const k of this._activeState.behaviours)
|
|
13488
13488
|
(m = (f = k.instance) == null ? void 0 : f.onStateExit) == null || m.call(k.instance, this.animator, M, n);
|
|
13489
13489
|
}
|
|
@@ -13500,7 +13500,7 @@ Exit Time: ` + d, a.hasExitTime);
|
|
|
13500
13500
|
c.isRunning() && c.stop(), c.reset(), c.enabled = !0, this.setTimescale(c, t);
|
|
13501
13501
|
const w = t.motion.clip.duration;
|
|
13502
13502
|
if (c.time = s ? 0 : i * w, c.timeScale < 0 && (c.time = w - c.time), c.clampWhenFinished = !0, c.setLoop(tm, 0), e > 0 ? c.fadeIn(e) : c.weight = 1, c.play(), this.rootMotionHandler && this.rootMotionHandler.onStart(c), this._activeStates.includes(t) || this._activeStates.push(t), this._activeState.behaviours) {
|
|
13503
|
-
const C = new
|
|
13503
|
+
const C = new Yh(t, i, w, this._speed);
|
|
13504
13504
|
for (const M of this._activeState.behaviours)
|
|
13505
13505
|
(b = (_ = M.instance) == null ? void 0 : _.onStateEnter) == null || b.call(M.instance, this.animator, C, n);
|
|
13506
13506
|
}
|
|
@@ -13655,7 +13655,7 @@ const Te = class Te {
|
|
|
13655
13655
|
if (t.getClip() !== this.clip) return;
|
|
13656
13656
|
Te.lastObjRotation[this.cacheId] || (Te.lastObjRotation[this.cacheId] = this.root.quaternion.clone());
|
|
13657
13657
|
const e = Te.lastObjRotation[this.cacheId];
|
|
13658
|
-
if (Te.spaceRotation[this.cacheId].copy(e),
|
|
13658
|
+
if (Te.spaceRotation[this.cacheId].copy(e), Kh) {
|
|
13659
13659
|
const i = new Bt().setFromQuaternion(e);
|
|
13660
13660
|
console.log("START", this.clip.name, $.toDegrees(i.y), this.root.position.z);
|
|
13661
13661
|
}
|
|
@@ -13666,17 +13666,17 @@ const Te = class Te {
|
|
|
13666
13666
|
handlePosition(t, e) {
|
|
13667
13667
|
if (e) {
|
|
13668
13668
|
const i = this.root;
|
|
13669
|
-
|
|
13669
|
+
Kh && i.add(new ji()), Te.lastObjPosition[this.cacheId] || (Te.lastObjPosition[this.cacheId] = this.root.position.clone());
|
|
13670
13670
|
const n = new v(), s = new v();
|
|
13671
13671
|
this.positionWrapper = new pb(e, (a, l) => {
|
|
13672
13672
|
const c = this.action.getEffectiveWeight();
|
|
13673
|
-
return
|
|
13673
|
+
return Kh && i.position.length() > 8 && i.position.set(0, i.position.y, 0), a > this._prevTime && (n.set(l[0], l[1], l[2]), n.sub(s), n.multiplyScalar(c), n.applyQuaternion(this.getClipRotationOffset()), n.applyQuaternion(i.quaternion), this.positionChange.copy(n)), s.fromArray(l), this._prevTime = a, l[0] = 0, l[1] = 0, l[2] = 0, l;
|
|
13674
13674
|
});
|
|
13675
13675
|
}
|
|
13676
13676
|
}
|
|
13677
13677
|
handleRotation(t, e) {
|
|
13678
13678
|
if (e) {
|
|
13679
|
-
if (
|
|
13679
|
+
if (Kh) {
|
|
13680
13680
|
const a = e.values, l = new Bt().setFromQuaternion(new W(a[0], a[1], a[2], a[3]));
|
|
13681
13681
|
console.log(t.name, e.name, "FIRST ROTATION IN TRACK", $.toDegrees(l.y));
|
|
13682
13682
|
const c = e.values.length - 4, h = new W().set(a[c], a[c + 1], a[c + 2], a[c + 3]), d = new Bt().setFromQuaternion(h);
|
|
@@ -14075,12 +14075,12 @@ const mb = Symbol("previous-visibility"), xr = class xr extends es {
|
|
|
14075
14075
|
};
|
|
14076
14076
|
r(xr, "_userSet", /* @__PURE__ */ new Set());
|
|
14077
14077
|
let Ga = xr;
|
|
14078
|
-
var Wk = Object.defineProperty, Vk = Object.getOwnPropertyDescriptor,
|
|
14078
|
+
var Wk = Object.defineProperty, Vk = Object.getOwnPropertyDescriptor, uh = (o, t, e, i) => {
|
|
14079
14079
|
for (var n = i > 1 ? void 0 : i ? Vk(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
14080
14080
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
14081
14081
|
return i && n && Wk(t, e, n), n;
|
|
14082
14082
|
};
|
|
14083
|
-
const
|
|
14083
|
+
const Zh = x("debuggroundprojection");
|
|
14084
14084
|
class Js extends B {
|
|
14085
14085
|
constructor() {
|
|
14086
14086
|
super(...arguments);
|
|
@@ -14123,7 +14123,7 @@ class Js extends B {
|
|
|
14123
14123
|
/** @internal */
|
|
14124
14124
|
onEnable() {
|
|
14125
14125
|
this.context.time.frameCount > 0 && this.applyOnAwake && this.updateAndCreate(), this._watcher || (this._watcher = new jo(this.context.scene, "background"), this._watcher.subscribeWrite((e) => {
|
|
14126
|
-
|
|
14126
|
+
Zh && console.log("Background changed", this.context.scene.background), this._needsTextureUpdate = !0;
|
|
14127
14127
|
}));
|
|
14128
14128
|
}
|
|
14129
14129
|
/** @internal */
|
|
@@ -14170,7 +14170,7 @@ class Js extends B {
|
|
|
14170
14170
|
let i = !0;
|
|
14171
14171
|
const n = 0, s = e !== this._lastBackground || this._height !== this._lastHeight || this._radius !== this._lastRadius;
|
|
14172
14172
|
if (!this._projection || s) {
|
|
14173
|
-
|
|
14173
|
+
Zh && console.log("Create/Update Ground Projection", e.name), (u = this._projection) == null || u.removeFromParent();
|
|
14174
14174
|
try {
|
|
14175
14175
|
this._projection = new Za(e, this._height, this._radius, 64);
|
|
14176
14176
|
} catch (f) {
|
|
@@ -14189,7 +14189,7 @@ class Js extends B {
|
|
|
14189
14189
|
const y = Ye(this.gameObject).x;
|
|
14190
14190
|
g.y = m + this._height * y - n, g.z = f.min.z + (f.max.z - f.min.z) * 0.5, vt(this._projection, g);
|
|
14191
14191
|
}
|
|
14192
|
-
|
|
14192
|
+
Zh && H.DrawWireBox3(f, 65280, 5);
|
|
14193
14193
|
}
|
|
14194
14194
|
this.context.scene.backgroundBlurriness > 1e-3 && this._needsTextureUpdate && this.updateBlurriness(e, this.context.scene.backgroundBlurriness), this._lastBackground = e, this._lastHeight = this._height, this._lastRadius = this._radius, this._needsTextureUpdate = !1;
|
|
14195
14195
|
}
|
|
@@ -14199,7 +14199,7 @@ class Js extends B {
|
|
|
14199
14199
|
if (!e)
|
|
14200
14200
|
return;
|
|
14201
14201
|
} else return;
|
|
14202
|
-
this._needsTextureUpdate = !1,
|
|
14202
|
+
this._needsTextureUpdate = !1, Zh && console.log("Update Blurriness", i), this._blurrynessShader ?? (this._blurrynessShader = new Jn({
|
|
14203
14203
|
name: "GroundProjectionBlurriness",
|
|
14204
14204
|
uniforms: {
|
|
14205
14205
|
map: { value: e },
|
|
@@ -14214,19 +14214,19 @@ class Js extends B {
|
|
|
14214
14214
|
this._projection.material.transparent = (((s = this.context.xr) == null ? void 0 : s.isAR) === !0 && this.arBlending > 1e-6) ?? !1, this._projection.material.transparent ? this._blurrynessShader.uniforms.blending.value = this.arBlending : this._blurrynessShader.uniforms.blending.value = 0, this.context.isInPassThrough ? this._blurrynessShader.uniforms.alphaFactor.value = 0.95 : this._blurrynessShader.uniforms.alphaFactor.value = 1, n !== this._projection.material.transparent && (this._projection.material.needsUpdate = !0), this._projection.material.map = el.copyTexture(e, this._blurrynessShader), this._projection.material.depthTest = !0, this._projection.material.depthWrite = !1;
|
|
14215
14215
|
}
|
|
14216
14216
|
}
|
|
14217
|
-
|
|
14217
|
+
uh([
|
|
14218
14218
|
p()
|
|
14219
14219
|
], Js.prototype, "applyOnAwake", 2);
|
|
14220
|
-
|
|
14220
|
+
uh([
|
|
14221
14221
|
p()
|
|
14222
14222
|
], Js.prototype, "autoFit", 2);
|
|
14223
|
-
|
|
14223
|
+
uh([
|
|
14224
14224
|
p()
|
|
14225
14225
|
], Js.prototype, "radius", 1);
|
|
14226
|
-
|
|
14226
|
+
uh([
|
|
14227
14227
|
p()
|
|
14228
14228
|
], Js.prototype, "height", 1);
|
|
14229
|
-
|
|
14229
|
+
uh([
|
|
14230
14230
|
p()
|
|
14231
14231
|
], Js.prototype, "arBlending", 1);
|
|
14232
14232
|
const Hk = `
|
|
@@ -14479,7 +14479,7 @@ var D;
|
|
|
14479
14479
|
t.ready = i;
|
|
14480
14480
|
async function n() {
|
|
14481
14481
|
if (t.MODULE) return t.MODULE;
|
|
14482
|
-
const s = await import("./postprocessing-
|
|
14482
|
+
const s = await import("./postprocessing-DYLNOL3W.js").then((a) => a.index);
|
|
14483
14483
|
return t.MODULE = s, t.MAYBEMODULE = s, e.forEach((a) => a(s)), e.length = 0, s;
|
|
14484
14484
|
}
|
|
14485
14485
|
t.load = n;
|
|
@@ -14494,13 +14494,13 @@ var D;
|
|
|
14494
14494
|
t.ready = i;
|
|
14495
14495
|
async function n() {
|
|
14496
14496
|
if (t.MODULE) return t.MODULE;
|
|
14497
|
-
const s = await import("./postprocessing-
|
|
14497
|
+
const s = await import("./postprocessing-DYLNOL3W.js").then((a) => a.N8AO);
|
|
14498
14498
|
return t.MODULE = s, t.MAYBEMODULE = s, e.forEach((a) => a(s)), e.length = 0, s;
|
|
14499
14499
|
}
|
|
14500
14500
|
t.load = n;
|
|
14501
14501
|
})(o.POSTPROCESSING_AO || (o.POSTPROCESSING_AO = {}));
|
|
14502
14502
|
})(D || (D = {}));
|
|
14503
|
-
var Rt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(Rt || {}), Hg = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Hg || {}), tt = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.FreezePositionX = 2] = "FreezePositionX", o[o.FreezePositionY = 4] = "FreezePositionY", o[o.FreezePositionZ = 8] = "FreezePositionZ", o[o.FreezePosition = 14] = "FreezePosition", o[o.FreezeRotationX = 16] = "FreezeRotationX", o[o.FreezeRotationY = 32] = "FreezeRotationY", o[o.FreezeRotationZ = 64] = "FreezeRotationZ", o[o.FreezeRotation = 112] = "FreezeRotation", o[o.FreezeAll = 126] = "FreezeAll", o))(tt || {}),
|
|
14503
|
+
var Rt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(Rt || {}), Hg = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Hg || {}), tt = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.FreezePositionX = 2] = "FreezePositionX", o[o.FreezePositionY = 4] = "FreezePositionY", o[o.FreezePositionZ = 8] = "FreezePositionZ", o[o.FreezePosition = 14] = "FreezePosition", o[o.FreezeRotationX = 16] = "FreezeRotationX", o[o.FreezeRotationY = 32] = "FreezeRotationY", o[o.FreezeRotationZ = 64] = "FreezeRotationZ", o[o.FreezeRotation = 112] = "FreezeRotation", o[o.FreezeAll = 126] = "FreezeAll", o))(tt || {}), dc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.X = 2] = "X", o[o.Y = 4] = "Y", o[o.Z = 8] = "Z", o[o.All = -1] = "All", o))(dc || {});
|
|
14504
14504
|
const $t = function(o, t) {
|
|
14505
14505
|
return function(e, i, n) {
|
|
14506
14506
|
Kk(e, i, n, o, t);
|
|
@@ -14933,8 +14933,8 @@ Ui([
|
|
|
14933
14933
|
let wt = vi;
|
|
14934
14934
|
new v();
|
|
14935
14935
|
new v();
|
|
14936
|
-
const mo = x("debugsync"),
|
|
14937
|
-
dv(
|
|
14936
|
+
const mo = x("debugsync"), Qc = "STRS";
|
|
14937
|
+
dv(Qc, Rs.getRootAsSyncedTransformModel);
|
|
14938
14938
|
const Dn = new vg();
|
|
14939
14939
|
function Jv(o, t, e = !0) {
|
|
14940
14940
|
Dn.clear();
|
|
@@ -14943,13 +14943,13 @@ function Jv(o, t, e = !0) {
|
|
|
14943
14943
|
const n = t.worldPosition, s = t.worldEuler, a = t.gameObject.scale;
|
|
14944
14944
|
Rs.addTransform(Dn, Zv.createTransform(Dn, n.x, n.y, n.z, s.x, s.y, s.z, a.x, a.y, a.z));
|
|
14945
14945
|
const l = Rs.endSyncedTransformModel(Dn);
|
|
14946
|
-
return Dn.finish(l,
|
|
14946
|
+
return Dn.finish(l, Qc), Dn.asUint8Array();
|
|
14947
14947
|
}
|
|
14948
|
-
let Lm = 0,
|
|
14948
|
+
let Lm = 0, Oc = 0;
|
|
14949
14949
|
Yk((o) => {
|
|
14950
14950
|
var i;
|
|
14951
14951
|
const e = ((i = o.connection.currentServerUrl) == null ? void 0 : i.includes("glitch")) ? 10 : 40;
|
|
14952
|
-
|
|
14952
|
+
Oc = Math.floor(Lm / e), Lm = 0, mo && Oc > 0 && console.log("Sync Transform Fast Interval", Oc);
|
|
14953
14953
|
});
|
|
14954
14954
|
class Xs extends B {
|
|
14955
14955
|
constructor() {
|
|
@@ -15017,11 +15017,11 @@ class Xs extends B {
|
|
|
15017
15017
|
}
|
|
15018
15018
|
/** @internal */
|
|
15019
15019
|
awake() {
|
|
15020
|
-
mo && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new v(), this._targetRotation = new W(), this.lastPosition = new v(), this.lastRotation = new W(), this.lastScale = new v(), this.rb = S.getComponentInChildren(this.gameObject, wt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new uv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(
|
|
15020
|
+
mo && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new v(), this._targetRotation = new W(), this.lastPosition = new v(), this.lastRotation = new W(), this.lastScale = new v(), this.rb = S.getComponentInChildren(this.gameObject, wt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new uv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Qc, this.receivedDataCallback);
|
|
15021
15021
|
}
|
|
15022
15022
|
/** @internal */
|
|
15023
15023
|
onDestroy() {
|
|
15024
|
-
this.syncDestroy && Pv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(se.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(
|
|
15024
|
+
this.syncDestroy && Pv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(se.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(Qc, this.receivedDataCallback);
|
|
15025
15025
|
}
|
|
15026
15026
|
/**
|
|
15027
15027
|
* Attempts to retrieve and apply the last known network state for this transform
|
|
@@ -15100,7 +15100,7 @@ class Xs extends B {
|
|
|
15100
15100
|
this.rb && this.overridePhysics && this._wasKinematic !== void 0 && (mo && console.log("reset kinematic", this.rb.name, this._wasKinematic), this.rb.isKinematic = this._wasKinematic);
|
|
15101
15101
|
const s = 10, a = this.rb || this.fastMode;
|
|
15102
15102
|
if (this._needsUpdate && (this.context.time.frameCount % s === 0 || a)) {
|
|
15103
|
-
if (Lm++, a &&
|
|
15103
|
+
if (Lm++, a && Oc > 0 && this.context.time.frameCount % Oc !== 0) return;
|
|
15104
15104
|
mo && console.debug("[SyncedTransform] Send update", this.context.connection.connectionId, this.guid, this.gameObject.name, this.gameObject.guid), this._needsUpdate = !1;
|
|
15105
15105
|
const l = Jv(this.guid, this, !!a);
|
|
15106
15106
|
this.context.connection.sendBinary(l);
|
|
@@ -16143,7 +16143,7 @@ var mM = Object.defineProperty, Ue = (o, t, e, i) => {
|
|
|
16143
16143
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
16144
16144
|
return n && mM(t, e, n), n;
|
|
16145
16145
|
};
|
|
16146
|
-
const Yi = x("debugorbit"), gp = x("freecam"), Vl = x("debugcamerafit"),
|
|
16146
|
+
const Yi = x("debugorbit"), gp = x("freecam"), Vl = x("debugcamerafit"), Jh = x("smoothcam"), gM = { LEFT: "", UP: "", RIGHT: "", BOTTOM: "" };
|
|
16147
16147
|
let yp;
|
|
16148
16148
|
class su extends CustomEvent {
|
|
16149
16149
|
constructor(t, e) {
|
|
@@ -16411,9 +16411,9 @@ class xe extends B {
|
|
|
16411
16411
|
}
|
|
16412
16412
|
}
|
|
16413
16413
|
if (this._controls) {
|
|
16414
|
-
if (this.debugLog && (this._controls.domElement = this.context.renderer.domElement), this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent && !this.context.isInXR && !this._activePointerEvents.some((l) => l.used), this._controls.keys = this.enableKeys ? yp : gM, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.zoomSpeed = this.zoomSpeed, this._controls.zoomToCursor = this.zoomToCursor, this._controls.enableDamping = this.enableDamping, this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle, this._controls.maxAzimuthAngle = this.maxAzimuthAngle, this._controls.minPolarAngle = this.minPolarAngle, this._controls.maxPolarAngle = this.maxPolarAngle, gp || (((s = (n = this._camera) == null ? void 0 : n.threeCamera) == null ? void 0 : s.type) === "PerspectiveCamera" ? (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom, this._controls.minZoom = 0, this._controls.maxZoom = 1 / 0) : (this._controls.minDistance = 0, this._controls.maxDistance = 1 / 0, this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom)), typeof
|
|
16414
|
+
if (this.debugLog && (this._controls.domElement = this.context.renderer.domElement), this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent && !this.context.isInXR && !this._activePointerEvents.some((l) => l.used), this._controls.keys = this.enableKeys ? yp : gM, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.zoomSpeed = this.zoomSpeed, this._controls.zoomToCursor = this.zoomToCursor, this._controls.enableDamping = this.enableDamping, this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle, this._controls.maxAzimuthAngle = this.maxAzimuthAngle, this._controls.minPolarAngle = this.minPolarAngle, this._controls.maxPolarAngle = this.maxPolarAngle, gp || (((s = (n = this._camera) == null ? void 0 : n.threeCamera) == null ? void 0 : s.type) === "PerspectiveCamera" ? (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom, this._controls.minZoom = 0, this._controls.maxZoom = 1 / 0) : (this._controls.minDistance = 0, this._controls.maxDistance = 1 / 0, this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom)), typeof Jh == "number" || Jh === !0) {
|
|
16415
16415
|
this._controls.enableDamping = !0;
|
|
16416
|
-
const l = typeof
|
|
16416
|
+
const l = typeof Jh == "number" ? Jh : 0.99;
|
|
16417
16417
|
this._controls.dampingFactor = Math.max(1e-3, 1 - Math.min(1, l));
|
|
16418
16418
|
}
|
|
16419
16419
|
this.allowInterrupt || (this._lookTargetLerpActive && (this._controls.enablePan = !1), this._cameraLerpActive && (this._controls.enableRotate = !1, this._controls.autoRotate = !1), (this._lookTargetLerpActive || this._cameraLerpActive) && (this._controls.enableZoom = !1)), this.context.isInXR || (!gp && ((a = this.lookAtConstraint) != null && a.locked) && this.setLookTargetFromConstraint(0, this.lookAtConstraint01), this._controls.update(this.context.time.deltaTime), Yi && H.DrawWireSphere(this._controls.target, 0.1, 65280));
|
|
@@ -17862,7 +17862,7 @@ Incoming:`, this._incomingCalls), l;
|
|
|
17862
17862
|
// }
|
|
17863
17863
|
};
|
|
17864
17864
|
r(Sr, "instances", /* @__PURE__ */ new Map());
|
|
17865
|
-
let
|
|
17865
|
+
let kc = Sr;
|
|
17866
17866
|
class tf extends mg {
|
|
17867
17867
|
constructor(e, i) {
|
|
17868
17868
|
super();
|
|
@@ -17917,8 +17917,8 @@ class tf extends mg {
|
|
|
17917
17917
|
});
|
|
17918
17918
|
if (OM(e)) {
|
|
17919
17919
|
const n = e;
|
|
17920
|
-
e = n.context, i =
|
|
17921
|
-
} else typeof i == "string" && (i =
|
|
17920
|
+
e = n.context, i = kc.getOrCreate(n.context, n.guid);
|
|
17921
|
+
} else typeof i == "string" && (i = kc.getOrCreate(e, i));
|
|
17922
17922
|
if (e) {
|
|
17923
17923
|
if (!(e instanceof ee)) throw new Error("Failed to create NetworkedStreams because context is not an instance of Context");
|
|
17924
17924
|
} else throw new Error("Failed to create NetworkedStreams because context is undefined");
|
|
@@ -17929,7 +17929,7 @@ class tf extends mg {
|
|
|
17929
17929
|
* Create a new NetworkedStreams instance
|
|
17930
17930
|
*/
|
|
17931
17931
|
static create(e, i) {
|
|
17932
|
-
const n =
|
|
17932
|
+
const n = kc.getOrCreate(e.context, i || e.context.connection.connectionId || e.guid);
|
|
17933
17933
|
return new tf(e.context, n);
|
|
17934
17934
|
}
|
|
17935
17935
|
startSendingStream(e) {
|
|
@@ -18447,7 +18447,7 @@ var WM = Object.defineProperty, Zg = (o, t, e, i) => {
|
|
|
18447
18447
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
18448
18448
|
return n && WM(t, e, n), n;
|
|
18449
18449
|
};
|
|
18450
|
-
class
|
|
18450
|
+
class fh extends B {
|
|
18451
18451
|
constructor() {
|
|
18452
18452
|
super(...arguments);
|
|
18453
18453
|
r(this, "length", 1);
|
|
@@ -18460,7 +18460,7 @@ class uh extends B {
|
|
|
18460
18460
|
* If marked as a gizmo, it will only be shown when gizmos are enabled in the global parameters.
|
|
18461
18461
|
*/
|
|
18462
18462
|
onEnable() {
|
|
18463
|
-
if (this.isGizmo && !
|
|
18463
|
+
if (this.isGizmo && !lh) return;
|
|
18464
18464
|
this._axes || (this._axes = new ji(this.length)), this._axes.layers.disableAll(), this._axes.layers.set(this.layer), this.gameObject.add(this._axes);
|
|
18465
18465
|
const e = this._axes.material;
|
|
18466
18466
|
e && e.depthTest !== void 0 && (e.depthTest = this.depthTest);
|
|
@@ -18474,13 +18474,13 @@ class uh extends B {
|
|
|
18474
18474
|
}
|
|
18475
18475
|
Zg([
|
|
18476
18476
|
p()
|
|
18477
|
-
],
|
|
18477
|
+
], fh.prototype, "length");
|
|
18478
18478
|
Zg([
|
|
18479
18479
|
p()
|
|
18480
|
-
],
|
|
18480
|
+
], fh.prototype, "depthTest");
|
|
18481
18481
|
Zg([
|
|
18482
18482
|
p()
|
|
18483
|
-
],
|
|
18483
|
+
], fh.prototype, "isGizmo");
|
|
18484
18484
|
class aw extends B {
|
|
18485
18485
|
constructor() {
|
|
18486
18486
|
super(...arguments);
|
|
@@ -18653,7 +18653,7 @@ wi([
|
|
|
18653
18653
|
wi([
|
|
18654
18654
|
p()
|
|
18655
18655
|
], Ni.prototype, "filter");
|
|
18656
|
-
class
|
|
18656
|
+
class ph extends Ni {
|
|
18657
18657
|
constructor() {
|
|
18658
18658
|
super(...arguments);
|
|
18659
18659
|
r(this, "radius", 0.5);
|
|
@@ -18682,10 +18682,10 @@ class fh extends Ni {
|
|
|
18682
18682
|
wi([
|
|
18683
18683
|
$t(),
|
|
18684
18684
|
p()
|
|
18685
|
-
],
|
|
18685
|
+
], ph.prototype, "radius");
|
|
18686
18686
|
wi([
|
|
18687
18687
|
p(v)
|
|
18688
|
-
],
|
|
18688
|
+
], ph.prototype, "center");
|
|
18689
18689
|
const Jg = class lw extends Ni {
|
|
18690
18690
|
constructor() {
|
|
18691
18691
|
super(...arguments);
|
|
@@ -19196,10 +19196,10 @@ const wb = x("debugdeletable"), ja = class ja extends Qs {
|
|
|
19196
19196
|
}
|
|
19197
19197
|
};
|
|
19198
19198
|
r(ja, "_instances", []);
|
|
19199
|
-
let
|
|
19199
|
+
let Yc = ja;
|
|
19200
19200
|
class dw extends B {
|
|
19201
19201
|
update() {
|
|
19202
|
-
for (const t of
|
|
19202
|
+
for (const t of Yc._instances) {
|
|
19203
19203
|
const e = this.gameObject;
|
|
19204
19204
|
if (t.isInBox(e) === !0) {
|
|
19205
19205
|
const n = S.getComponentInParent(this.gameObject, af);
|
|
@@ -19828,7 +19828,7 @@ const Ou = class Ou {
|
|
|
19828
19828
|
r(this, "_requireUpdateGroundPlane", !0);
|
|
19829
19829
|
r(this, "_didDragOnGroundPlaneLastFrame", !1);
|
|
19830
19830
|
this._camera = t;
|
|
19831
|
-
const e = new
|
|
19831
|
+
const e = new Uc(Ou.geometry), i = e.material;
|
|
19832
19832
|
i.color = new re(0.4, 0.4, 0.4), e.layers.set(2), e.name = "line", e.scale.y = 1, this._groundLine = e;
|
|
19833
19833
|
const n = new Eu(0.5, 22, 22), s = new Me({ color: i.color }), a = new G(n, s);
|
|
19834
19834
|
a.visible = !1, a.layers.set(2), this._groundMarker = a;
|
|
@@ -19982,7 +19982,7 @@ var Sb;
|
|
|
19982
19982
|
}
|
|
19983
19983
|
o.onDetermineModelMimetype = e;
|
|
19984
19984
|
})(Sb || (Sb = {}));
|
|
19985
|
-
const
|
|
19985
|
+
const Mc = x("debugfileformat");
|
|
19986
19986
|
function tR(o) {
|
|
19987
19987
|
switch ((o.split(".").pop() || o).toUpperCase()) {
|
|
19988
19988
|
case "GLTF":
|
|
@@ -20012,7 +20012,7 @@ async function iR(o, t) {
|
|
|
20012
20012
|
const a = o, l = new URL(a, globalThis.location.href);
|
|
20013
20013
|
let c = null;
|
|
20014
20014
|
const h = l.searchParams.get("filetype");
|
|
20015
|
-
switch (h && (c = h.toUpperCase()), c != null && c.length || (c = (s = l.pathname.split(".").pop()) == null ? void 0 : s.toUpperCase()),
|
|
20015
|
+
switch (h && (c = h.toUpperCase()), c != null && c.length || (c = (s = l.pathname.split(".").pop()) == null ? void 0 : s.toUpperCase()), Mc && console.warn(`[Needle Engine] Try to use file extension to determine type: '${c}'`), c) {
|
|
20016
20016
|
case "GLTF":
|
|
20017
20017
|
return "model/gltf+json";
|
|
20018
20018
|
case "VRM":
|
|
@@ -20044,7 +20044,7 @@ async function iR(o, t) {
|
|
|
20044
20044
|
}).catch((a) => null);
|
|
20045
20045
|
if (n != null && n.ok) {
|
|
20046
20046
|
const a = await n.arrayBuffer(), l = nR(i, a, n);
|
|
20047
|
-
return
|
|
20047
|
+
return Mc && console.log("[Needle Engine] Determined file type from header: " + l), l;
|
|
20048
20048
|
}
|
|
20049
20049
|
return "unknown";
|
|
20050
20050
|
}
|
|
@@ -20052,7 +20052,7 @@ function nR(o, t, e) {
|
|
|
20052
20052
|
if (t.byteLength < 4)
|
|
20053
20053
|
return "unknown";
|
|
20054
20054
|
const i = new Uint8Array(t);
|
|
20055
|
-
if (
|
|
20055
|
+
if (Mc && console.warn(`[Needle Engine] Trying to determine file type from binary data
|
|
20056
20056
|
`, '"' + new TextDecoder().decode(t) + `"
|
|
20057
20057
|
`, i), i[0] == 103 && i[1] == 108 && i[2] == 84 && i[3] == 70 && (i[4] == 10 || i[4] === 2))
|
|
20058
20058
|
return console.debug("GLTF detected"), "model/gltf+json";
|
|
@@ -20106,9 +20106,9 @@ function nR(o, t, e) {
|
|
|
20106
20106
|
bytes: i
|
|
20107
20107
|
});
|
|
20108
20108
|
if (s)
|
|
20109
|
-
return
|
|
20109
|
+
return Mc && console.debug(`Mimetype callback returned: ${s}`), s;
|
|
20110
20110
|
}
|
|
20111
|
-
if (z() ||
|
|
20111
|
+
if (z() || Mc) {
|
|
20112
20112
|
const n = new TextDecoder().decode(t.slice(0, Math.min(t.byteLength, 32)));
|
|
20113
20113
|
console.warn(`Could not determine file type.
|
|
20114
20114
|
|
|
@@ -20347,7 +20347,7 @@ class Qo extends B {
|
|
|
20347
20347
|
break;
|
|
20348
20348
|
}
|
|
20349
20349
|
}
|
|
20350
|
-
|
|
20350
|
+
qc.assignAnimationsFromFile(s, {
|
|
20351
20351
|
createAnimationComponent: (f) => sn(f, si)
|
|
20352
20352
|
});
|
|
20353
20353
|
const h = new oR({
|
|
@@ -20657,7 +20657,7 @@ class dR {
|
|
|
20657
20657
|
}
|
|
20658
20658
|
typeof window < "u" && window.addEventListener("unhandledrejection", (o) => {
|
|
20659
20659
|
});
|
|
20660
|
-
const ys = bt,
|
|
20660
|
+
const ys = bt, ed = "$___Export_Components", uR = "NEEDLE_components";
|
|
20661
20661
|
var f0;
|
|
20662
20662
|
f0 = wa;
|
|
20663
20663
|
class fR {
|
|
@@ -20711,12 +20711,12 @@ class yw {
|
|
|
20711
20711
|
serializeUserData(t, e) {
|
|
20712
20712
|
var n;
|
|
20713
20713
|
const i = (n = t.userData) == null ? void 0 : n.components;
|
|
20714
|
-
return !i || i.length <= 0 ? !1 : (delete t.userData.components, t[
|
|
20714
|
+
return !i || i.length <= 0 ? !1 : (delete t.userData.components, t[ed] = i, !0);
|
|
20715
20715
|
}
|
|
20716
20716
|
afterSerializeUserData(t, e) {
|
|
20717
|
-
if (t.type === "Scene" && ys && console.log("DONE", JSON.stringify(e)), t[
|
|
20718
|
-
const i = t[
|
|
20719
|
-
delete t[
|
|
20717
|
+
if (t.type === "Scene" && ys && console.log("DONE", JSON.stringify(e)), t[ed] === void 0) return;
|
|
20718
|
+
const i = t[ed];
|
|
20719
|
+
delete t[ed], i !== null && (t.userData.components = i);
|
|
20720
20720
|
}
|
|
20721
20721
|
writeNode(t, e) {
|
|
20722
20722
|
const i = this.writer.json.nodes.length;
|
|
@@ -20903,7 +20903,7 @@ pe.registerCallback(me.ContextCreated, (o) => {
|
|
|
20903
20903
|
class Fm extends B {
|
|
20904
20904
|
constructor() {
|
|
20905
20905
|
super(...arguments);
|
|
20906
|
-
r(this, "ambientMode",
|
|
20906
|
+
r(this, "ambientMode", Sc.Skybox);
|
|
20907
20907
|
r(this, "ambientLight");
|
|
20908
20908
|
r(this, "ambientTrilight");
|
|
20909
20909
|
r(this, "ambientIntensity", 1);
|
|
@@ -20940,13 +20940,13 @@ class Fm extends B {
|
|
|
20940
20940
|
return 2.2 * $.lerp(0, 1.33, i);
|
|
20941
20941
|
}
|
|
20942
20942
|
onEnable() {
|
|
20943
|
-
if (Pa && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode ==
|
|
20943
|
+
if (Pa && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode == Sc.Flat) {
|
|
20944
20944
|
if (this.ambientLight && !this._ambientLightObj) {
|
|
20945
20945
|
const e = this.calculateIntensityFactor(this.ambientLight);
|
|
20946
20946
|
this._ambientLightObj = new kS(this.ambientLight, this.ambientIntensity * e), Pa && console.log("Created ambient light", this.sourceId, this._ambientLightObj, this.ambientIntensity, e);
|
|
20947
20947
|
}
|
|
20948
20948
|
this._ambientLightObj && this.gameObject.add(this._ambientLightObj);
|
|
20949
|
-
} else if (this.ambientMode ===
|
|
20949
|
+
} else if (this.ambientMode === Sc.Trilight) {
|
|
20950
20950
|
if (this.ambientTrilight) {
|
|
20951
20951
|
const e = this.ambientTrilight[0], i = this.ambientTrilight[this.ambientTrilight.length - 1], n = this.calculateIntensityFactor(i);
|
|
20952
20952
|
this._hemisphereLightObj = new MS(i, e, this.ambientIntensity * n), this.gameObject.add(this._hemisphereLightObj), Pa && console.log("Created hemisphere ambient light", this.sourceId, this._hemisphereLightObj, this.ambientIntensity, n);
|
|
@@ -21367,7 +21367,7 @@ function bw(o) {
|
|
|
21367
21367
|
}
|
|
21368
21368
|
const SR = x("debugextensions");
|
|
21369
21369
|
let lu;
|
|
21370
|
-
const CR = import("./three-examples-
|
|
21370
|
+
const CR = import("./three-examples-B50TT3Iu.js").then((o) => o.GLTFLoaderAnimationPointer).then(async (o) => (lu = o.GLTFAnimationPointerExtension, lu)).catch((o) => {
|
|
21371
21371
|
console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three for full KHR_animation support", o);
|
|
21372
21372
|
}), Vr = new Array();
|
|
21373
21373
|
function s2(o) {
|
|
@@ -21597,7 +21597,7 @@ const ui = x("debuginstancing"), Ba = class Ba {
|
|
|
21597
21597
|
autoUpdateInstanceMatrix(t) {
|
|
21598
21598
|
const e = t.matrixWorld.multiplyMatrices.bind(t.matrixWorld), i = t.matrixWorld.clone(), n = (s, a) => {
|
|
21599
21599
|
const l = e(s, a);
|
|
21600
|
-
return (t[
|
|
21600
|
+
return (t[Gc] || i.equals(l) === !1) && (i.copy(l), t[Gc] = !0), l;
|
|
21601
21601
|
};
|
|
21602
21602
|
t.matrixWorld.multiplyMatrices = n;
|
|
21603
21603
|
}
|
|
@@ -21610,7 +21610,7 @@ r(Ba, "instance", new Ba()), /** This is the initial instance count when creatin
|
|
|
21610
21610
|
* @returns The initial instance count
|
|
21611
21611
|
* */
|
|
21612
21612
|
r(Ba, "getStartInstanceCount", (t) => 4);
|
|
21613
|
-
let
|
|
21613
|
+
let Kc = Ba;
|
|
21614
21614
|
const Fa = class Fa {
|
|
21615
21615
|
constructor(t, e) {
|
|
21616
21616
|
/** The object that is being instanced */
|
|
@@ -21720,14 +21720,14 @@ class Cw {
|
|
|
21720
21720
|
r(this, "_needUpdateBounds", !1);
|
|
21721
21721
|
r(this, "_debugMaterial", null);
|
|
21722
21722
|
r(this, "onBeforeRender", () => {
|
|
21723
|
-
this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[
|
|
21723
|
+
this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[cc] === !0 && (ui === "verbose" && console.log("Update instancing bounds", this.name, this._batchedMesh.matrixWorldNeedsUpdate), this.updateBounds());
|
|
21724
21724
|
});
|
|
21725
21725
|
r(this, "onAfterRender", () => {
|
|
21726
21726
|
this._batchedMesh.layers.disableAll();
|
|
21727
21727
|
});
|
|
21728
21728
|
this.name = t, this.geometry = e, this.material = i, this._context = s, this._maxInstanceCount = Math.max(2, n), ui && (this._debugMaterial = Mb());
|
|
21729
21729
|
const a = this.tryEstimateVertexCountSize(this._maxInstanceCount, [e], n);
|
|
21730
|
-
this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new Zy(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[
|
|
21730
|
+
this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new Zy(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[cc] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof x0 && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), s.pre_render_callbacks.push(this.onBeforeRender), s.post_render_callbacks.push(this.onAfterRender), ui && console.log(`Instanced renderer created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${t}"`);
|
|
21731
21731
|
}
|
|
21732
21732
|
/** The three instanced mesh
|
|
21733
21733
|
* @link https://threejs.org/docs/#api/en/objects/InstancedMesh
|
|
@@ -21847,7 +21847,7 @@ Max vertex count ${this._maxVertexCount} -> ${s}
|
|
|
21847
21847
|
Max index count ${this._maxIndexCount} -> ${a}`);
|
|
21848
21848
|
this._maxVertexCount = s, this._maxIndexCount = a;
|
|
21849
21849
|
const l = new Zy(i, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material);
|
|
21850
|
-
l.layers = this._batchedMesh.layers, l.castShadow = this._batchedMesh.castShadow, l.receiveShadow = this._batchedMesh.receiveShadow, l.visible = this._batchedMesh.visible, l[
|
|
21850
|
+
l.layers = this._batchedMesh.layers, l.castShadow = this._batchedMesh.castShadow, l.receiveShadow = this._batchedMesh.receiveShadow, l.visible = this._batchedMesh.visible, l[cc] = this._batchedMesh[cc], l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorldNeedsUpdate = this._batchedMesh.matrixWorldNeedsUpdate, l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorld.copy(this._batchedMesh.matrixWorld), l.matrix.copy(this._batchedMesh.matrix), this._batchedMesh.dispose(), this._batchedMesh.removeFromParent(), this._geometryIds.clear(), this._batchedMesh = l, this._maxInstanceCount = i;
|
|
21851
21851
|
const c = [...this._handles];
|
|
21852
21852
|
this._handles = [];
|
|
21853
21853
|
for (const u of c)
|
|
@@ -22029,7 +22029,7 @@ var MR = Object.defineProperty, to = (o, t, e, i) => {
|
|
|
22029
22029
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
22030
22030
|
return n && MR(t, e, n), n;
|
|
22031
22031
|
};
|
|
22032
|
-
const
|
|
22032
|
+
const uc = x("debugrenderer"), Rb = x("debugskinnedmesh"), Tb = x("noinstancing"), RR = x("wireframe");
|
|
22033
22033
|
class TR {
|
|
22034
22034
|
constructor() {
|
|
22035
22035
|
r(this, "path", null);
|
|
@@ -22099,7 +22099,7 @@ class ER {
|
|
|
22099
22099
|
return this._changed;
|
|
22100
22100
|
}
|
|
22101
22101
|
set changed(t) {
|
|
22102
|
-
t === !0 &&
|
|
22102
|
+
t === !0 && uc && console.warn("SharedMaterials have changed: " + this._renderer.name, this), this._changed = t;
|
|
22103
22103
|
}
|
|
22104
22104
|
is(t) {
|
|
22105
22105
|
return this._renderer === t;
|
|
@@ -22268,7 +22268,7 @@ const ls = class Od extends B {
|
|
|
22268
22268
|
this.enabled || this.setVisibility(!1);
|
|
22269
22269
|
}
|
|
22270
22270
|
awake() {
|
|
22271
|
-
if (this._firstFrame = this.context.time.frame,
|
|
22271
|
+
if (this._firstFrame = this.context.time.frame, uc && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor && uc && this.probeAnchor.add(new ji(0.2)), this._reflectionProbe = null, this.isMultiMaterialObject(this.gameObject)) {
|
|
22272
22272
|
for (const e of this.gameObject.children)
|
|
22273
22273
|
this.context.addBeforeRenderListener(e, this.onBeforeRenderThree), e.layers.mask = this.gameObject.layers.mask;
|
|
22274
22274
|
if (this.renderOrder !== void 0) {
|
|
@@ -22316,7 +22316,7 @@ const ls = class Od extends B {
|
|
|
22316
22316
|
}
|
|
22317
22317
|
}
|
|
22318
22318
|
} else
|
|
22319
|
-
|
|
22319
|
+
uc && console.warn("Lightmap not found", this.sourceId, this.lightmapIndex);
|
|
22320
22320
|
}
|
|
22321
22321
|
}
|
|
22322
22322
|
/**
|
|
@@ -22341,7 +22341,7 @@ const ls = class Od extends B {
|
|
|
22341
22341
|
if (this._isInstancingEnabled === e) return e && (this._handles === void 0 || this._handles != null && this._handles.length > 0);
|
|
22342
22342
|
if (this._isInstancingEnabled = e, e) {
|
|
22343
22343
|
if (this.enableInstancing === void 0 && (this.enableInstancing = !0), this._handles === void 0) {
|
|
22344
|
-
if (this._handles =
|
|
22344
|
+
if (this._handles = Kc.instance.setup(this, this.gameObject, this.context, null, { rend: this, foundMeshes: 0, useMatrixWorldAutoUpdate: this.useInstanceMatrixWorldAutoUpdate() }), this._handles)
|
|
22345
22345
|
return S.markAsInstancedRendered(this.gameObject, !0), !0;
|
|
22346
22346
|
} else if (this._handles !== null) {
|
|
22347
22347
|
for (const i of this._handles)
|
|
@@ -22388,7 +22388,7 @@ const ls = class Od extends B {
|
|
|
22388
22388
|
onBeforeRender() {
|
|
22389
22389
|
var e, i, n;
|
|
22390
22390
|
if (this.gameObject) {
|
|
22391
|
-
if (this._probeAnchorLastFrame !== this.probeAnchor && ((e = this._reflectionProbe) == null || e.onUnset(this), this.updateReflectionProbe()),
|
|
22391
|
+
if (this._probeAnchorLastFrame !== this.probeAnchor && ((e = this._reflectionProbe) == null || e.onUnset(this), this.updateReflectionProbe()), uc == this.name && this.gameObject instanceof G) {
|
|
22392
22392
|
this.gameObject.geometry.computeBoundingSphere();
|
|
22393
22393
|
const s = q(this.gameObject.geometry.boundingSphere.center).applyMatrix4(this.gameObject.matrixWorld);
|
|
22394
22394
|
H.DrawWireSphere(s, this.gameObject.geometry.boundingSphere.radius, 56831);
|
|
@@ -22398,8 +22398,8 @@ const ls = class Od extends B {
|
|
|
22398
22398
|
this.applySettings(s);
|
|
22399
22399
|
else
|
|
22400
22400
|
this.applySettings(this.gameObject);
|
|
22401
|
-
if (this.sharedMaterials.changed && (this.sharedMaterials.changed = !1, this.applyLightmapping()), (n = this._handles) != null && n.length && this.gameObject[
|
|
22402
|
-
this.gameObject[
|
|
22401
|
+
if (this.sharedMaterials.changed && (this.sharedMaterials.changed = !1, this.applyLightmapping()), (n = this._handles) != null && n.length && this.gameObject[Gc] === !0) {
|
|
22402
|
+
this.gameObject[Gc] = !1;
|
|
22403
22403
|
for (let a = this._handles.length - 1; a >= 0; a--)
|
|
22404
22404
|
this._handles[a].updateInstanceMatrix();
|
|
22405
22405
|
this.gameObject.matrixWorldNeedsUpdate = !1;
|
|
@@ -22525,7 +22525,7 @@ var AR = Object.defineProperty, Ow = (o, t, e, i) => {
|
|
|
22525
22525
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
22526
22526
|
return n && AR(t, e, n), n;
|
|
22527
22527
|
};
|
|
22528
|
-
const
|
|
22528
|
+
const td = x("debuggltfexport");
|
|
22529
22529
|
class kw extends Qs {
|
|
22530
22530
|
constructor() {
|
|
22531
22531
|
super(...arguments);
|
|
@@ -22540,7 +22540,7 @@ const ay = class Oa extends B {
|
|
|
22540
22540
|
r(this, "ext");
|
|
22541
22541
|
}
|
|
22542
22542
|
async exportNow(e, i) {
|
|
22543
|
-
|
|
22543
|
+
td && console.log("Exporting objects as glTF", this.objects), e || (e = "scene"), (!this.objects || this.objects.length <= 0) && (this.objects = [this.context.scene]);
|
|
22544
22544
|
const n = {
|
|
22545
22545
|
binary: this.binary,
|
|
22546
22546
|
pivot: Oa.calculateCenter(this.objects),
|
|
@@ -22567,7 +22567,7 @@ const ay = class Oa extends B {
|
|
|
22567
22567
|
animations: (i == null ? void 0 : i.animations) || Oa.collectAnimations(e),
|
|
22568
22568
|
...i
|
|
22569
22569
|
}, a = new Array(), l = new I();
|
|
22570
|
-
i != null && i.pivot && l.position.sub(i.pivot),
|
|
22570
|
+
i != null && i.pivot && l.position.sub(i.pivot), td && console.log("EXPORT", e), e.forEach((d) => {
|
|
22571
22571
|
d && Bm(d) && (l.children.push(d), d.matrixAutoUpdate = !1, d.matrix.copy(d.matrixWorld), S.getComponentsInChildren(d, ln).forEach((u) => {
|
|
22572
22572
|
S.isActiveInHierarchy(u.gameObject) && u.setInstancingEnabled(!1);
|
|
22573
22573
|
}), d.traverse((u) => {
|
|
@@ -22581,7 +22581,7 @@ const ay = class Oa extends B {
|
|
|
22581
22581
|
});
|
|
22582
22582
|
const c = new Tv(l);
|
|
22583
22583
|
return i != null && i.needleComponents && (this.ext = new yw()), this.ext && (this.ext.registerExport(n), this.ext.context = c), new Promise((d, u) => {
|
|
22584
|
-
|
|
22584
|
+
td && console.log("Starting glTF export.");
|
|
22585
22585
|
try {
|
|
22586
22586
|
n == null || n.parse(
|
|
22587
22587
|
l,
|
|
@@ -22598,7 +22598,7 @@ const ay = class Oa extends B {
|
|
|
22598
22598
|
} catch (f) {
|
|
22599
22599
|
console.error(f), u(f);
|
|
22600
22600
|
} finally {
|
|
22601
|
-
a.forEach((f) => f()),
|
|
22601
|
+
a.forEach((f) => f()), td && console.log("Finished glTF export.");
|
|
22602
22602
|
}
|
|
22603
22603
|
});
|
|
22604
22604
|
function h() {
|
|
@@ -22716,7 +22716,7 @@ class de {
|
|
|
22716
22716
|
static start(t, e) {
|
|
22717
22717
|
typeof e == "string" && (e = { parentScope: e });
|
|
22718
22718
|
const i = new DR(t, e);
|
|
22719
|
-
|
|
22719
|
+
fc.set(t, i);
|
|
22720
22720
|
}
|
|
22721
22721
|
/** Report progress for a formerly started scope.
|
|
22722
22722
|
* @param scope The scope to report progress for.
|
|
@@ -22738,7 +22738,7 @@ class de {
|
|
|
22738
22738
|
* Progress.report("export-usdz", { currentStep: 1, totalSteps: 10 });
|
|
22739
22739
|
*/
|
|
22740
22740
|
static report(t, e) {
|
|
22741
|
-
const i =
|
|
22741
|
+
const i = fc.get(t);
|
|
22742
22742
|
if (!i) {
|
|
22743
22743
|
console.warn("Reporting progress for non-existing scope", t);
|
|
22744
22744
|
return;
|
|
@@ -22749,11 +22749,11 @@ class de {
|
|
|
22749
22749
|
* @remarks Will warn if any child scope is still running (progress < 1).
|
|
22750
22750
|
*/
|
|
22751
22751
|
static end(t) {
|
|
22752
|
-
const e =
|
|
22753
|
-
e && (e.end(),
|
|
22752
|
+
const e = fc.get(t);
|
|
22753
|
+
e && (e.end(), fc.delete(t));
|
|
22754
22754
|
}
|
|
22755
22755
|
}
|
|
22756
|
-
const
|
|
22756
|
+
const fc = /* @__PURE__ */ new Map();
|
|
22757
22757
|
class DR {
|
|
22758
22758
|
constructor(t, e) {
|
|
22759
22759
|
r(this, "scopeLabel");
|
|
@@ -22769,7 +22769,7 @@ class DR {
|
|
|
22769
22769
|
r(this, "totalProgress", 0);
|
|
22770
22770
|
r(this, "selfReports", 0);
|
|
22771
22771
|
r(this, "totalReports", 0);
|
|
22772
|
-
this.parentScope = e != null && e.parentScope ?
|
|
22772
|
+
this.parentScope = e != null && e.parentScope ? fc.get(e.parentScope) : void 0, this.parentScope && (this.parentScope.childScopes.push(this), this.parentDepth = this.parentScope.parentDepth + 1), this.scopeLabel = " ".repeat(this.parentDepth * 2) + t, this.showLogs = (e == null ? void 0 : e.logTimings) ?? !!IR, this.showLogs && console.time(this.scopeLabel), this.onProgress = e == null ? void 0 : e.onProgress;
|
|
22773
22773
|
}
|
|
22774
22774
|
report(t, e = !1) {
|
|
22775
22775
|
if (t) {
|
|
@@ -23181,13 +23181,13 @@ function Iw(o, t, e, i) {
|
|
|
23181
23181
|
let n, s, a;
|
|
23182
23182
|
const l = { position: o.position, quaternion: o.quaternion, scale: o.scale };
|
|
23183
23183
|
if (o.position.x === 0 && o.position.y === 0 && o.position.z === 0 && (l.position = null), o.quaternion.x === 0 && o.quaternion.y === 0 && o.quaternion.z === 0 && o.quaternion.w === 1 && (l.quaternion = null), o.scale.x === 1 && o.scale.y === 1 && o.scale.z === 1 && (l.scale = null), (o instanceof G || o instanceof Fs) && (s = o.geometry, a = o.material), i && !i(o) && (s = void 0, a = void 0), (o instanceof G || o instanceof Fs) && a && (a instanceof yt || a instanceof Me || a instanceof Pe && a.type === "MeshLineMaterial")) {
|
|
23184
|
-
const h =
|
|
23184
|
+
const h = sd(o), d = o instanceof Fs ? o : null;
|
|
23185
23185
|
n = new ni(o.uuid, h, l, s, a, void 0, d, o.animations);
|
|
23186
23186
|
} else if (o instanceof ve || o instanceof Tu) {
|
|
23187
|
-
const h =
|
|
23187
|
+
const h = sd(o);
|
|
23188
23188
|
n = new ni(o.uuid, h, l, void 0, void 0, o);
|
|
23189
23189
|
} else {
|
|
23190
|
-
const h =
|
|
23190
|
+
const h = sd(o);
|
|
23191
23191
|
n = new ni(o.uuid, h, l, void 0, void 0, void 0, void 0, o.animations);
|
|
23192
23192
|
}
|
|
23193
23193
|
if (n) {
|
|
@@ -23195,7 +23195,7 @@ function Iw(o, t, e, i) {
|
|
|
23195
23195
|
for (const h of e.extensions)
|
|
23196
23196
|
h.onExportObject && h.onExportObject.call(h, o, n, e);
|
|
23197
23197
|
} else {
|
|
23198
|
-
const h =
|
|
23198
|
+
const h = sd(o), d = new ni(o.uuid, h, { position: o.position, quaternion: o.quaternion, scale: o.scale });
|
|
23199
23199
|
t && t.add(d), t = d;
|
|
23200
23200
|
}
|
|
23201
23201
|
for (const h of o.children)
|
|
@@ -23303,7 +23303,7 @@ async function kd(o, t, e = null) {
|
|
|
23303
23303
|
}
|
|
23304
23304
|
}
|
|
23305
23305
|
}
|
|
23306
|
-
let
|
|
23306
|
+
let id = null, Xt = null, kp, ya, nd;
|
|
23307
23307
|
async function WR(o, t = 1 / 0, e = null, i = void 0) {
|
|
23308
23308
|
kp || (kp = new rs(2, 2, 1, 1)), ya || (ya = new Jn({
|
|
23309
23309
|
uniforms: {
|
|
@@ -23338,11 +23338,11 @@ async function WR(o, t = 1 / 0, e = null, i = void 0) {
|
|
|
23338
23338
|
}`
|
|
23339
23339
|
}));
|
|
23340
23340
|
const n = ya.uniforms;
|
|
23341
|
-
n.blitTexture.value = o, n.flipY.value = !1, n.scale.value = new ye(1, 1, 1, 1), i !== void 0 && n.scale.value.copy(i), ya.defines.IS_SRGB = o.colorSpace == Hs, ya.needsUpdate = !0,
|
|
23341
|
+
n.blitTexture.value = o, n.flipY.value = !1, n.scale.value = new ye(1, 1, 1, 1), i !== void 0 && n.scale.value.copy(i), ya.defines.IS_SRGB = o.colorSpace == Hs, ya.needsUpdate = !0, nd || (nd = new G(kp, ya), nd.frustumCulled = !1);
|
|
23342
23342
|
const s = new ve(), a = new Bi();
|
|
23343
|
-
a.add(
|
|
23343
|
+
a.add(nd), e || (e = id = new Yr({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
|
|
23344
23344
|
const l = Math.min(o.image.width, t), c = Math.min(o.image.height, t);
|
|
23345
|
-
Xt && (Xt.width !== l || Xt.height !== c) && (Xt.dispose(), Xt = null), Xt || (Xt = new es(l, c, { format: Lu, type: ZS, minFilter: Ld, magFilter: Ld })), e.setRenderTarget(Xt), e.setSize(l, c), e.clear(), e.render(a, s),
|
|
23345
|
+
Xt && (Xt.width !== l || Xt.height !== c) && (Xt.dispose(), Xt = null), Xt || (Xt = new es(l, c, { format: Lu, type: ZS, minFilter: Ld, magFilter: Ld })), e.setRenderTarget(Xt), e.setSize(l, c), e.clear(), e.render(a, s), id && (id.dispose(), id = null);
|
|
23346
23346
|
const h = new Uint8ClampedArray(Xt.width * Xt.height * 4);
|
|
23347
23347
|
e.readRenderTargetPixels(Xt, 0, 0, Xt.width, Xt.height, h);
|
|
23348
23348
|
const d = new ImageData(h, Xt.width, Xt.height, void 0), u = await createImageBitmap(d, { premultiplyAlpha: "none" });
|
|
@@ -23390,7 +23390,7 @@ function XR(o, t) {
|
|
|
23390
23390
|
let e = qR();
|
|
23391
23391
|
return e += o, R0(e);
|
|
23392
23392
|
}
|
|
23393
|
-
function
|
|
23393
|
+
function sd(o) {
|
|
23394
23394
|
return o.name.replace(/[-<>\(\)\[\]§$%&\/\\\=\?\,\;]/g, "") + "_" + o.id;
|
|
23395
23395
|
}
|
|
23396
23396
|
function Ab(o) {
|
|
@@ -23442,9 +23442,9 @@ function he(o) {
|
|
|
23442
23442
|
}
|
|
23443
23443
|
function Ib(o) {
|
|
23444
23444
|
const t = o.elements;
|
|
23445
|
-
return `( ${
|
|
23445
|
+
return `( ${od(t, 0)}, ${od(t, 4)}, ${od(t, 8)}, ${od(t, 12)} )`;
|
|
23446
23446
|
}
|
|
23447
|
-
function
|
|
23447
|
+
function od(o, t) {
|
|
23448
23448
|
return `(${he(o[t + 0])}, ${he(o[t + 1])}, ${he(o[t + 2])}, ${he(o[t + 3])})`;
|
|
23449
23449
|
}
|
|
23450
23450
|
function QR(o, t = [], e = !0) {
|
|
@@ -23971,7 +23971,7 @@ class Or {
|
|
|
23971
23971
|
}
|
|
23972
23972
|
}
|
|
23973
23973
|
r(Or, "global_id", 0);
|
|
23974
|
-
const
|
|
23974
|
+
const Bc = class Bc {
|
|
23975
23975
|
constructor(t, e) {
|
|
23976
23976
|
r(this, "id");
|
|
23977
23977
|
r(this, "tokenId");
|
|
@@ -23998,18 +23998,18 @@ const jc = class jc {
|
|
|
23998
23998
|
// extra info written as comment at the beginning of the action
|
|
23999
23999
|
r(this, "comment");
|
|
24000
24000
|
r(this, "animationName");
|
|
24001
|
-
t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" +
|
|
24001
|
+
t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" + Bc.global_id++;
|
|
24002
24002
|
}
|
|
24003
24003
|
clone() {
|
|
24004
|
-
const t = new
|
|
24004
|
+
const t = new Bc(), e = t.id;
|
|
24005
24005
|
return Object.assign(t, this), t.id = e, t;
|
|
24006
24006
|
}
|
|
24007
24007
|
writeTo(t, e) {
|
|
24008
24008
|
e.beginBlock(`def Preliminary_Action "${this.id}"`), this.comment && e.appendLine(`# ${this.comment}`), this.affectedObjects && (typeof this.affectedObjects != "string" && (this.affectedObjects = Wm(this.affectedObjects, t)), e.appendLine("rel affectedObjects = " + this.affectedObjects)), typeof this.duration == "number" && (typeof this.animationSpeed == "number" && this.animationSpeed !== 1 ? e.appendLine(`double duration = ${this.duration / this.animationSpeed} `) : e.appendLine(`double duration = ${this.duration} `)), this.easeType && e.appendLine(`token easeType = "${this.easeType}"`), this.tokenId && e.appendLine(`token info:id = "${this.tokenId}"`), this.tokenId === "ChangeScene" && e.appendLine("rel scene = </StageRoot/Scenes/Scene>"), this.motionType !== void 0 && e.appendLine(`token motionType = "${this.motionType}"`), typeof this.moveDistance == "number" && e.appendLine(`double moveDistance = ${this.moveDistance} `), this.style && e.appendLine(`token style = "${this.style}"`), this.type && e.appendLine(`token type = "${this.type}"`), this.front && e.appendLine(`vector3d front = (${this.front.x}, ${this.front.y}, ${this.front.z})`), this.up && e.appendLine(`vector3d upVector = (${this.up.x}, ${this.up.y}, ${this.up.z})`), typeof this.start == "number" && e.appendLine(`double start = ${this.start} `), typeof this.animationSpeed == "number" && e.appendLine(`double animationSpeed = ${this.animationSpeed.toFixed(2)} `), typeof this.reversed == "boolean" && e.appendLine(`bool reversed = ${this.reversed}`), typeof this.pingPong == "boolean" && e.appendLine(`bool reverses = ${this.pingPong}`), this.xFormTarget && (typeof this.xFormTarget != "string" && (this.xFormTarget = Wm(this.xFormTarget, t)), e.appendLine(`rel xformTarget = ${this.xFormTarget}`)), typeof this.audio == "string" && e.appendLine(`asset audio = @${this.audio}@`), typeof this.gain == "number" && e.appendLine(`double gain = ${this.gain}`), typeof this.auralMode == "string" && e.appendLine(`token auralMode = "${this.auralMode}"`), typeof this.multiplePerformOperation == "string" && e.appendLine(`token multiplePerformOperation = "${this.multiplePerformOperation}"`), typeof this.velocity == "object" && e.appendLine(`vector3d velocity = (${this.velocity.x}, ${this.velocity.y}, ${this.velocity.z})`), e.closeBlock();
|
|
24009
24009
|
}
|
|
24010
24010
|
};
|
|
24011
|
-
r(
|
|
24012
|
-
let Ji =
|
|
24011
|
+
r(Bc, "global_id", 0);
|
|
24012
|
+
let Ji = Bc;
|
|
24013
24013
|
class en {
|
|
24014
24014
|
constructor(t, e, i) {
|
|
24015
24015
|
r(this, "x", 0);
|
|
@@ -24804,7 +24804,7 @@ var sT = Object.defineProperty, He = (o, t, e, i) => {
|
|
|
24804
24804
|
return n && sT(t, e, n), n;
|
|
24805
24805
|
};
|
|
24806
24806
|
const Fb = x("debugusdzbehaviours");
|
|
24807
|
-
function
|
|
24807
|
+
function mh(o) {
|
|
24808
24808
|
o && (o.getComponentInParent(hl) || (z() && console.debug('Raycaster on "' + o.name + '" was automatically added, because no raycaster was found in the parent hierarchy.'), o.addComponent(an)));
|
|
24809
24809
|
}
|
|
24810
24810
|
class xl extends B {
|
|
@@ -24820,7 +24820,7 @@ class xl extends B {
|
|
|
24820
24820
|
r(this, "targetScale", new v());
|
|
24821
24821
|
}
|
|
24822
24822
|
start() {
|
|
24823
|
-
|
|
24823
|
+
mh(this.gameObject);
|
|
24824
24824
|
}
|
|
24825
24825
|
onPointerClick(e) {
|
|
24826
24826
|
e.use(), this.coroutine && this.stopCoroutine(this.coroutine), this.relativeMotion ? this.coroutine = this.startCoroutine(this.moveRelative()) : this.coroutine = this.startCoroutine(this.moveToTarget());
|
|
@@ -24829,12 +24829,12 @@ class xl extends B {
|
|
|
24829
24829
|
if (!this.target || !this.object) return;
|
|
24830
24830
|
const e = ie(this.object).clone(), i = ie(this.target).clone(), n = Oe(this.object).clone(), s = Oe(this.target).clone(), a = Ye(this.object).clone(), l = Ye(this.target).clone(), c = e.distanceTo(i), h = n.angleTo(s), d = a.distanceTo(l);
|
|
24831
24831
|
if (c < 0.01 && h < 0.01 && d < 0.01) {
|
|
24832
|
-
vt(this.object, i), kn(this.object, s),
|
|
24832
|
+
vt(this.object, i), kn(this.object, s), Wc(this.object, l), this.coroutine = null;
|
|
24833
24833
|
return;
|
|
24834
24834
|
}
|
|
24835
24835
|
let u = 0, f = 0;
|
|
24836
24836
|
for (; u < 1; )
|
|
24837
|
-
u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), f = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, f), this.targetRot.slerpQuaternions(n, s, f), this.targetScale.lerpVectors(a, l, f), vt(this.object, this.targetPos), kn(this.object, this.targetRot),
|
|
24837
|
+
u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), f = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, f), this.targetRot.slerpQuaternions(n, s, f), this.targetScale.lerpVectors(a, l, f), vt(this.object, this.targetPos), kn(this.object, this.targetRot), Wc(this.object, this.targetScale), yield;
|
|
24838
24838
|
this.coroutine = null;
|
|
24839
24839
|
}
|
|
24840
24840
|
*moveRelative() {
|
|
@@ -24883,7 +24883,7 @@ const hf = ($e = class extends B {
|
|
|
24883
24883
|
}
|
|
24884
24884
|
start() {
|
|
24885
24885
|
var e;
|
|
24886
|
-
this._objectsWithThisMaterial = this.objectsWithThisMaterial,
|
|
24886
|
+
this._objectsWithThisMaterial = this.objectsWithThisMaterial, mh(this.gameObject), z() && this._objectsWithThisMaterial.length <= 0 && console.warn('ChangeMaterialOnClick: No objects found with material "' + ((e = this.materialToSwitch) == null ? void 0 : e.name) + '"');
|
|
24887
24887
|
}
|
|
24888
24888
|
onPointerEnter(e) {
|
|
24889
24889
|
this.context.input.setCursor("pointer");
|
|
@@ -24974,7 +24974,7 @@ He([
|
|
|
24974
24974
|
], hf.prototype, "fadeDuration");
|
|
24975
24975
|
let Uw = hf;
|
|
24976
24976
|
var _e;
|
|
24977
|
-
const
|
|
24977
|
+
const gh = (_e = class extends B {
|
|
24978
24978
|
constructor() {
|
|
24979
24979
|
super(...arguments);
|
|
24980
24980
|
r(this, "target");
|
|
@@ -24989,7 +24989,7 @@ const mh = (_e = class extends B {
|
|
|
24989
24989
|
r(this, "targetStateBeforeCreatingDocument", !1);
|
|
24990
24990
|
}
|
|
24991
24991
|
start() {
|
|
24992
|
-
|
|
24992
|
+
mh(this.gameObject);
|
|
24993
24993
|
}
|
|
24994
24994
|
onPointerClick(e) {
|
|
24995
24995
|
e.use(), !this.toggleOnClick && this.hideSelf && (this.gameObject.visible = !1), this.target && (this.target.visible = this.toggleOnClick ? !this.target.visible : this.targetState);
|
|
@@ -25045,7 +25045,7 @@ const mh = (_e = class extends B {
|
|
|
25045
25045
|
));
|
|
25046
25046
|
}
|
|
25047
25047
|
const l = new Array();
|
|
25048
|
-
this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel),
|
|
25048
|
+
this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel), Zc.add(l, e);
|
|
25049
25049
|
}
|
|
25050
25050
|
}
|
|
25051
25051
|
afterSerialize(e, i) {
|
|
@@ -25054,17 +25054,17 @@ const mh = (_e = class extends B {
|
|
|
25054
25054
|
}, r(_e, "clonedToggleIndex", 0), r(_e, "wasVisible", Symbol("usdz_SetActiveOnClick_wasVisible")), r(_e, "toggleClone", Symbol("clone for toggling")), r(_e, "reverseToggleClone", Symbol("clone for reverse toggling")), _e);
|
|
25055
25055
|
He([
|
|
25056
25056
|
p(I)
|
|
25057
|
-
],
|
|
25057
|
+
], gh.prototype, "target");
|
|
25058
25058
|
He([
|
|
25059
25059
|
p()
|
|
25060
|
-
],
|
|
25060
|
+
], gh.prototype, "toggleOnClick");
|
|
25061
25061
|
He([
|
|
25062
25062
|
p()
|
|
25063
|
-
],
|
|
25063
|
+
], gh.prototype, "targetState");
|
|
25064
25064
|
He([
|
|
25065
25065
|
p()
|
|
25066
|
-
],
|
|
25067
|
-
let Nw =
|
|
25066
|
+
], gh.prototype, "hideSelf");
|
|
25067
|
+
let Nw = gh;
|
|
25068
25068
|
const vn = class vn extends B {
|
|
25069
25069
|
constructor() {
|
|
25070
25070
|
super(...arguments);
|
|
@@ -25092,8 +25092,8 @@ const vn = class vn extends B {
|
|
|
25092
25092
|
}
|
|
25093
25093
|
};
|
|
25094
25094
|
r(vn, "_fadeBehaviour"), r(vn, "_fadeObjects", []);
|
|
25095
|
-
let
|
|
25096
|
-
class
|
|
25095
|
+
let Zc = vn;
|
|
25096
|
+
class yh extends B {
|
|
25097
25097
|
constructor() {
|
|
25098
25098
|
super(...arguments);
|
|
25099
25099
|
r(this, "target");
|
|
@@ -25117,13 +25117,13 @@ class gh extends B {
|
|
|
25117
25117
|
}
|
|
25118
25118
|
He([
|
|
25119
25119
|
p()
|
|
25120
|
-
],
|
|
25120
|
+
], yh.prototype, "target");
|
|
25121
25121
|
He([
|
|
25122
25122
|
p()
|
|
25123
|
-
],
|
|
25123
|
+
], yh.prototype, "duration");
|
|
25124
25124
|
He([
|
|
25125
25125
|
p()
|
|
25126
|
-
],
|
|
25126
|
+
], yh.prototype, "motionType");
|
|
25127
25127
|
class Hr extends B {
|
|
25128
25128
|
constructor() {
|
|
25129
25129
|
super(...arguments);
|
|
@@ -25134,7 +25134,7 @@ class Hr extends B {
|
|
|
25134
25134
|
r(this, "trigger", "tap");
|
|
25135
25135
|
}
|
|
25136
25136
|
start() {
|
|
25137
|
-
|
|
25137
|
+
mh(this.gameObject);
|
|
25138
25138
|
}
|
|
25139
25139
|
ensureAudioSource() {
|
|
25140
25140
|
if (!this.target) {
|
|
@@ -25216,7 +25216,7 @@ const hy = (Lt = class extends B {
|
|
|
25216
25216
|
return ((e = this.animator) == null ? void 0 : e.gameObject) || ((i = this.animation) == null ? void 0 : i.gameObject);
|
|
25217
25217
|
}
|
|
25218
25218
|
start() {
|
|
25219
|
-
|
|
25219
|
+
mh(this.gameObject);
|
|
25220
25220
|
}
|
|
25221
25221
|
onPointerClick(e) {
|
|
25222
25222
|
var i;
|
|
@@ -25411,7 +25411,7 @@ He([
|
|
|
25411
25411
|
p()
|
|
25412
25412
|
], hy.prototype, "stateName");
|
|
25413
25413
|
let du = hy;
|
|
25414
|
-
class
|
|
25414
|
+
class _h extends B {
|
|
25415
25415
|
constructor() {
|
|
25416
25416
|
super(...arguments);
|
|
25417
25417
|
r(this, "target");
|
|
@@ -25423,7 +25423,7 @@ class yh extends B {
|
|
|
25423
25423
|
}
|
|
25424
25424
|
He([
|
|
25425
25425
|
p(I)
|
|
25426
|
-
],
|
|
25426
|
+
], _h.prototype, "target");
|
|
25427
25427
|
class df extends B {
|
|
25428
25428
|
constructor() {
|
|
25429
25429
|
super(...arguments);
|
|
@@ -25431,9 +25431,9 @@ class df extends B {
|
|
|
25431
25431
|
}
|
|
25432
25432
|
}
|
|
25433
25433
|
He([
|
|
25434
|
-
p(
|
|
25434
|
+
p(_h)
|
|
25435
25435
|
], df.prototype, "target");
|
|
25436
|
-
class uf extends
|
|
25436
|
+
class uf extends _h {
|
|
25437
25437
|
constructor() {
|
|
25438
25438
|
super(...arguments);
|
|
25439
25439
|
r(this, "type", 1);
|
|
@@ -25588,11 +25588,11 @@ var oT = Object.defineProperty, rT = Object.getOwnPropertyDescriptor, St = (o, t
|
|
|
25588
25588
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
25589
25589
|
return i && n && oT(t, e, n), n;
|
|
25590
25590
|
};
|
|
25591
|
-
const uu = x("debugspriterenderer"), aT = x("wireframe"),
|
|
25591
|
+
const uu = x("debugspriterenderer"), aT = x("wireframe"), Fc = class Fc {
|
|
25592
25592
|
static getOrCreateGeometry(t) {
|
|
25593
25593
|
if (t.__cached_geometry) return t.__cached_geometry;
|
|
25594
|
-
if (t.guid &&
|
|
25595
|
-
return uu && console.log("Take cached geometry for sprite", t.guid),
|
|
25594
|
+
if (t.guid && Fc.cache[t.guid])
|
|
25595
|
+
return uu && console.log("Take cached geometry for sprite", t.guid), Fc.cache[t.guid];
|
|
25596
25596
|
const e = new Yn();
|
|
25597
25597
|
t.__cached_geometry = e;
|
|
25598
25598
|
const i = new Float32Array(t.triangles.length * 3), n = new Float32Array(t.triangles.length * 2);
|
|
@@ -25605,8 +25605,8 @@ const uu = x("debugspriterenderer"), aT = x("wireframe"), Bc = class Bc {
|
|
|
25605
25605
|
return e.setAttribute("position", new _t(i, 3)), e.setAttribute("uv", new _t(n, 2)), t.guid && (this.cache[t.guid] = e), uu && console.log("Built sprite geometry", t, e), e;
|
|
25606
25606
|
}
|
|
25607
25607
|
};
|
|
25608
|
-
r(
|
|
25609
|
-
let ul =
|
|
25608
|
+
r(Fc, "cache", {});
|
|
25609
|
+
let ul = Fc;
|
|
25610
25610
|
class lT {
|
|
25611
25611
|
constructor() {
|
|
25612
25612
|
r(this, "x");
|
|
@@ -25669,7 +25669,7 @@ St([
|
|
|
25669
25669
|
ml()
|
|
25670
25670
|
], Yo.prototype, "vertices", 2);
|
|
25671
25671
|
const Ep = Symbol("spriteOwner");
|
|
25672
|
-
class
|
|
25672
|
+
class Jc {
|
|
25673
25673
|
constructor() {
|
|
25674
25674
|
r(this, "sprites");
|
|
25675
25675
|
this.sprites = [];
|
|
@@ -25677,7 +25677,7 @@ class Zc {
|
|
|
25677
25677
|
}
|
|
25678
25678
|
St([
|
|
25679
25679
|
p(Yo)
|
|
25680
|
-
],
|
|
25680
|
+
], Jc.prototype, "sprites", 2);
|
|
25681
25681
|
const dy = class Hm {
|
|
25682
25682
|
// we don't assign anything here because it's used by the serialization system.
|
|
25683
25683
|
// there's currently a limitation in the serializer when e.g. spriteSheet is already assigned it will not be overriden by the serializer
|
|
@@ -25688,7 +25688,7 @@ const dy = class Hm {
|
|
|
25688
25688
|
}
|
|
25689
25689
|
static create() {
|
|
25690
25690
|
const t = new Hm();
|
|
25691
|
-
return t.spriteSheet = new
|
|
25691
|
+
return t.spriteSheet = new Jc(), t;
|
|
25692
25692
|
}
|
|
25693
25693
|
clone() {
|
|
25694
25694
|
const t = new Hm();
|
|
@@ -25698,7 +25698,7 @@ const dy = class Hm {
|
|
|
25698
25698
|
* Set the sprite to be rendered in the currently assigned sprite sheet at the currently active index {@link index}
|
|
25699
25699
|
*/
|
|
25700
25700
|
set sprite(t) {
|
|
25701
|
-
t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new
|
|
25701
|
+
t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new Jc(), this.spriteSheet.sprites = [t], this.index = 0));
|
|
25702
25702
|
}
|
|
25703
25703
|
/** The currently active sprite */
|
|
25704
25704
|
get sprite() {
|
|
@@ -25721,12 +25721,12 @@ const dy = class Hm {
|
|
|
25721
25721
|
}
|
|
25722
25722
|
};
|
|
25723
25723
|
St([
|
|
25724
|
-
p(
|
|
25724
|
+
p(Jc)
|
|
25725
25725
|
], dy.prototype, "spriteSheet", 2);
|
|
25726
25726
|
St([
|
|
25727
25727
|
p()
|
|
25728
25728
|
], dy.prototype, "index", 2);
|
|
25729
|
-
let
|
|
25729
|
+
let Rc = dy;
|
|
25730
25730
|
class $i extends B {
|
|
25731
25731
|
constructor() {
|
|
25732
25732
|
super(...arguments);
|
|
@@ -25766,7 +25766,7 @@ class $i extends B {
|
|
|
25766
25766
|
*/
|
|
25767
25767
|
addSprite(e, i = !1) {
|
|
25768
25768
|
var s, a;
|
|
25769
|
-
if (this._spriteSheet || (this._spriteSheet =
|
|
25769
|
+
if (this._spriteSheet || (this._spriteSheet = Rc.create()), !this._spriteSheet.spriteSheet) return -1;
|
|
25770
25770
|
(s = this._spriteSheet.spriteSheet) == null || s.sprites.push(e);
|
|
25771
25771
|
const n = ((a = this._spriteSheet.spriteSheet) == null ? void 0 : a.sprites.length) - 1;
|
|
25772
25772
|
return i && (this.spriteIndex = n), n;
|
|
@@ -25782,7 +25782,7 @@ class $i extends B {
|
|
|
25782
25782
|
if (typeof e == "number") {
|
|
25783
25783
|
const i = Math.floor(e);
|
|
25784
25784
|
this.spriteIndex = i;
|
|
25785
|
-
} else e instanceof Yo ? (this._spriteSheet || (this._spriteSheet =
|
|
25785
|
+
} else e instanceof Yo ? (this._spriteSheet || (this._spriteSheet = Rc.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e), this.updateSprite()) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
|
|
25786
25786
|
}
|
|
25787
25787
|
/**
|
|
25788
25788
|
* Set the index of the sprite to be rendered in the currently assigned sprite sheet
|
|
@@ -25803,7 +25803,7 @@ class $i extends B {
|
|
|
25803
25803
|
}
|
|
25804
25804
|
/** @internal */
|
|
25805
25805
|
awake() {
|
|
25806
|
-
this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet =
|
|
25806
|
+
this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet = Rc.create(), uu && console.log("Awake", this.name, this, this.sprite);
|
|
25807
25807
|
}
|
|
25808
25808
|
/** @internal */
|
|
25809
25809
|
start() {
|
|
@@ -25864,7 +25864,7 @@ St([
|
|
|
25864
25864
|
p()
|
|
25865
25865
|
], $i.prototype, "toneMapped", 2);
|
|
25866
25866
|
St([
|
|
25867
|
-
p(
|
|
25867
|
+
p(Rc)
|
|
25868
25868
|
], $i.prototype, "sprite", 1);
|
|
25869
25869
|
const zb = x("debugwebxr"), cT = new oe().makeRotationY(Math.PI), Po = class Po extends B {
|
|
25870
25870
|
constructor() {
|
|
@@ -26332,16 +26332,16 @@ function uT(o, t) {
|
|
|
26332
26332
|
let e = t !== o;
|
|
26333
26333
|
return !e && o && t && (Array.isArray(o) && Array.isArray(t) || typeof o == "object" && typeof t == "object") && (e = !0), e;
|
|
26334
26334
|
}
|
|
26335
|
-
const
|
|
26335
|
+
const Tc = Symbol("AutoSyncHandler");
|
|
26336
26336
|
function fT(o) {
|
|
26337
|
-
if (o[
|
|
26338
|
-
return o[
|
|
26337
|
+
if (o[Tc])
|
|
26338
|
+
return o[Tc];
|
|
26339
26339
|
const t = uy.getOrCreateSyncer(o);
|
|
26340
|
-
return t == null || t.init(o), o[
|
|
26340
|
+
return t == null || t.init(o), o[Tc] = t, t;
|
|
26341
26341
|
}
|
|
26342
26342
|
function pT(o) {
|
|
26343
|
-
const t = o[
|
|
26344
|
-
t && (uy.removeSyncer(t), t.destroy(), delete o[
|
|
26343
|
+
const t = o[Tc];
|
|
26344
|
+
t && (uy.removeSyncer(t), t.destroy(), delete o[Tc]);
|
|
26345
26345
|
}
|
|
26346
26346
|
const Vw = function(o = null) {
|
|
26347
26347
|
return function(t, e) {
|
|
@@ -27553,7 +27553,7 @@ Ct([
|
|
|
27553
27553
|
p(le)
|
|
27554
27554
|
], pt.prototype, "defaultAvatar");
|
|
27555
27555
|
let my = pt;
|
|
27556
|
-
const
|
|
27556
|
+
const rd = x("debugusdzbehaviours");
|
|
27557
27557
|
class qw {
|
|
27558
27558
|
constructor() {
|
|
27559
27559
|
r(this, "behaviours", []);
|
|
@@ -27591,7 +27591,7 @@ class qw {
|
|
|
27591
27591
|
l instanceof Promise && e.push(l);
|
|
27592
27592
|
}
|
|
27593
27593
|
}, !1);
|
|
27594
|
-
}),
|
|
27594
|
+
}), rd && console.log("onBeforeBuildDocument: all components", this.behaviourComponents), Promise.all(e);
|
|
27595
27595
|
}
|
|
27596
27596
|
onExportObject(t, e, i) {
|
|
27597
27597
|
var n;
|
|
@@ -27602,7 +27602,7 @@ class qw {
|
|
|
27602
27602
|
for (const u of this.behaviourComponents)
|
|
27603
27603
|
typeof u.afterCreateDocument == "function" && u.afterCreateDocument(this, t);
|
|
27604
27604
|
this.behaviourComponentsCopy = this.behaviourComponents.slice(), this.behaviourComponents.length = 0, this.audioClipsCopy = this.audioClips.slice(), this.audioClips.length = 0;
|
|
27605
|
-
const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a =
|
|
27605
|
+
const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = rd;
|
|
27606
27606
|
let l = `graph LR
|
|
27607
27607
|
`, c = "";
|
|
27608
27608
|
function h(u) {
|
|
@@ -27698,7 +27698,7 @@ axisFormat %s
|
|
|
27698
27698
|
n.add(f.uuid);
|
|
27699
27699
|
else
|
|
27700
27700
|
n.add(u.uuid);
|
|
27701
|
-
|
|
27701
|
+
rd && console.log("All Behavior trigger sources and action targets", e, i, n), this.targetUuids = new Set(n);
|
|
27702
27702
|
}
|
|
27703
27703
|
onAfterHierarchy(t, e) {
|
|
27704
27704
|
var i;
|
|
@@ -27710,7 +27710,7 @@ axisFormat %s
|
|
|
27710
27710
|
}
|
|
27711
27711
|
}
|
|
27712
27712
|
async onAfterSerialize(t) {
|
|
27713
|
-
|
|
27713
|
+
rd && console.log("onAfterSerialize behaviours", this.behaviourComponentsCopy);
|
|
27714
27714
|
for (const e of this.behaviourComponentsCopy)
|
|
27715
27715
|
typeof e.afterSerialize == "function" && (e.afterSerialize.constructor.name === "AsyncFunction" ? await e.afterSerialize(this, t) : e.afterSerialize(this, t));
|
|
27716
27716
|
for (const { clipUrl: e, filesKey: i } of this.audioClipsCopy) {
|
|
@@ -27744,7 +27744,7 @@ class Xw {
|
|
|
27744
27744
|
var f;
|
|
27745
27745
|
c.beginBlock('def RealityKitComponent "Collider"', "{", !0), c.appendLine("uint group = 1"), c.appendLine('uniform token info:id = "RealityKit.Collider"'), c.appendLine("uint mask = 4294967295");
|
|
27746
27746
|
const u = l.isTrigger ? "Trigger" : "Default";
|
|
27747
|
-
if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof
|
|
27747
|
+
if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof ph) {
|
|
27748
27748
|
const m = l;
|
|
27749
27749
|
c.appendLine('token shapeType = "Sphere"'), c.appendLine(`float radius = ${m.radius}`);
|
|
27750
27750
|
} else if (l instanceof ey) {
|
|
@@ -27843,7 +27843,7 @@ class Rn extends B {
|
|
|
27843
27843
|
const l = this._parentComponent.shadowComponent;
|
|
27844
27844
|
l && (l == null || l.add(e), s = !0);
|
|
27845
27845
|
}
|
|
27846
|
-
this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent),
|
|
27846
|
+
this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent), lh && e.add(new ji(0.5)), this.onAfterAddedToScene(), s && JC(), CT && console.warn("Added shadow component", this.shadowComponent);
|
|
27847
27847
|
}
|
|
27848
27848
|
setShadowComponentOwner(e) {
|
|
27849
27849
|
if (e && (e[Ti] === void 0 || e[Ti] === this) && (e[Ti] = this, e.children))
|
|
@@ -27872,7 +27872,7 @@ class gf extends Rn {
|
|
|
27872
27872
|
super.awake();
|
|
27873
27873
|
}
|
|
27874
27874
|
}
|
|
27875
|
-
var PT = Object.defineProperty, OT = Object.getOwnPropertyDescriptor,
|
|
27875
|
+
var PT = Object.defineProperty, OT = Object.getOwnPropertyDescriptor, bh = (o, t, e, i) => {
|
|
27876
27876
|
for (var n = i > 1 ? void 0 : i ? OT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
27877
27877
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
27878
27878
|
return i && n && PT(t, e, n), n;
|
|
@@ -27892,7 +27892,7 @@ class MT {
|
|
|
27892
27892
|
r(this, "height");
|
|
27893
27893
|
}
|
|
27894
27894
|
}
|
|
27895
|
-
const _n = new v(), Ql = new oe(),
|
|
27895
|
+
const _n = new v(), Ql = new oe(), ad = new W(), Cl = class Qw extends Rn {
|
|
27896
27896
|
constructor() {
|
|
27897
27897
|
super(...arguments);
|
|
27898
27898
|
r(this, "_anchoredPosition");
|
|
@@ -28005,7 +28005,7 @@ const _n = new v(), Ql = new oe(), rd = new W(), Cl = class Qw extends Rn {
|
|
|
28005
28005
|
this._lastUpdateFrame = this.context.time.frameCount;
|
|
28006
28006
|
const i = this.shadowComponent;
|
|
28007
28007
|
if (!i) return;
|
|
28008
|
-
this.gameObject.parent ? this._parentRectTransform = S.getComponentInParent(this.gameObject.parent, Qw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Dp && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, _n.set(0, 0, 0), this.applyPivot(_n), i.matrix.setPosition(_n.x, _n.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (
|
|
28008
|
+
this.gameObject.parent ? this._parentRectTransform = S.getComponentInParent(this.gameObject.parent, Qw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Dp && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, _n.set(0, 0, 0), this.applyPivot(_n), i.matrix.setPosition(_n.x, _n.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (ad.copy(this.gameObject.quaternion), ad.x *= -1, ad.z *= -1, Ql.makeRotationFromQuaternion(ad), i.matrix.premultiply(Ql)), _n.set(0, 0, 0), this.applyAnchoring(_n), (s = this.canvas) != null && s.screenspace ? _n.z += 0.1 : _n.z += 0.01, Ql.identity(), Ql.setPosition(_n.x, _n.y, _n.z), i.matrix.premultiply(Ql), i.matrix.scale(this.gameObject.scale)), this.lastMatrix.copy(this.gameObject.matrix);
|
|
28009
28009
|
const n = !0;
|
|
28010
28010
|
for (const a of zg(this.gameObject, Rn, n, 1)) {
|
|
28011
28011
|
if (a === this || !a.activeAndEnabled) continue;
|
|
@@ -28077,19 +28077,19 @@ const _n = new v(), Ql = new oe(), rd = new W(), Cl = class Qw extends Rn {
|
|
|
28077
28077
|
return this._createdTextBlocks.push(i), i;
|
|
28078
28078
|
}
|
|
28079
28079
|
};
|
|
28080
|
-
|
|
28080
|
+
bh([
|
|
28081
28081
|
p(ae)
|
|
28082
28082
|
], Cl.prototype, "anchoredPosition", 1);
|
|
28083
|
-
|
|
28083
|
+
bh([
|
|
28084
28084
|
p(ae)
|
|
28085
28085
|
], Cl.prototype, "sizeDelta", 2);
|
|
28086
|
-
|
|
28086
|
+
bh([
|
|
28087
28087
|
p(ae)
|
|
28088
28088
|
], Cl.prototype, "pivot", 2);
|
|
28089
|
-
|
|
28089
|
+
bh([
|
|
28090
28090
|
p(ae)
|
|
28091
28091
|
], Cl.prototype, "anchorMin", 2);
|
|
28092
|
-
|
|
28092
|
+
bh([
|
|
28093
28093
|
p(ae)
|
|
28094
28094
|
], Cl.prototype, "anchorMax", 2);
|
|
28095
28095
|
let os = Cl;
|
|
@@ -28098,7 +28098,7 @@ var RT = Object.defineProperty, Yw = (o, t, e, i) => {
|
|
|
28098
28098
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
28099
28099
|
return n && RT(t, e, n), n;
|
|
28100
28100
|
};
|
|
28101
|
-
class
|
|
28101
|
+
class vh extends B {
|
|
28102
28102
|
constructor() {
|
|
28103
28103
|
super(...arguments);
|
|
28104
28104
|
r(this, "effectColor");
|
|
@@ -28107,16 +28107,16 @@ class bh extends B {
|
|
|
28107
28107
|
}
|
|
28108
28108
|
Yw([
|
|
28109
28109
|
p(ce)
|
|
28110
|
-
],
|
|
28110
|
+
], vh.prototype, "effectColor");
|
|
28111
28111
|
Yw([
|
|
28112
28112
|
p(ae)
|
|
28113
|
-
],
|
|
28113
|
+
], vh.prototype, "effectDistance");
|
|
28114
28114
|
var TT = Object.defineProperty, ET = Object.getOwnPropertyDescriptor, Kw = (o, t, e, i) => {
|
|
28115
28115
|
for (var n = i > 1 ? void 0 : i ? ET(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
28116
28116
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
28117
28117
|
return i && n && TT(t, e, n), n;
|
|
28118
28118
|
};
|
|
28119
|
-
const
|
|
28119
|
+
const ld = {
|
|
28120
28120
|
backgroundColor: new re(1, 1, 1),
|
|
28121
28121
|
backgroundOpacity: 1,
|
|
28122
28122
|
borderColor: new re(1, 1, 1),
|
|
@@ -28151,7 +28151,7 @@ const gy = (Xn = class extends Rn {
|
|
|
28151
28151
|
return this._alphaFactor;
|
|
28152
28152
|
}
|
|
28153
28153
|
onColorChanged() {
|
|
28154
|
-
this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(),
|
|
28154
|
+
this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(), ld.backgroundColor = this.sRGBColor, ld.backgroundOpacity = this._color.alpha * this._alphaFactor, this.applyEffects(ld, this._alphaFactor), this.uiObject.set(ld), this.markDirty());
|
|
28155
28155
|
}
|
|
28156
28156
|
// used via animations
|
|
28157
28157
|
get m_Color() {
|
|
@@ -28207,7 +28207,7 @@ const gy = (Xn = class extends Rn {
|
|
|
28207
28207
|
}
|
|
28208
28208
|
applyEffects(e, i = 1) {
|
|
28209
28209
|
var s;
|
|
28210
|
-
const n = (s = this.gameObject) == null ? void 0 : s.getComponent(
|
|
28210
|
+
const n = (s = this.gameObject) == null ? void 0 : s.getComponent(vh);
|
|
28211
28211
|
n && (n.effectDistance && (e.borderWidth = Math.max(Math.abs(n.effectDistance.x), Math.abs(n.effectDistance.y))), n.effectColor && (e.borderColor = n.effectColor, e.borderOpacity = n.effectColor.alpha * i));
|
|
28212
28212
|
}
|
|
28213
28213
|
async setTexture(e) {
|
|
@@ -28781,11 +28781,11 @@ class Wi extends B {
|
|
|
28781
28781
|
}
|
|
28782
28782
|
onEnable() {
|
|
28783
28783
|
Nb && console.log(this.name, this), this._rectTransform = this.gameObject.getComponent(os);
|
|
28784
|
-
const e = this.gameObject.getComponentInParent(
|
|
28784
|
+
const e = this.gameObject.getComponentInParent(eh);
|
|
28785
28785
|
e && e.registerLayoutGroup(this), this._needsUpdate = !0;
|
|
28786
28786
|
}
|
|
28787
28787
|
onDisable() {
|
|
28788
|
-
const e = this.gameObject.getComponentInParent(
|
|
28788
|
+
const e = this.gameObject.getComponentInParent(eh);
|
|
28789
28789
|
e && e.unregisterLayoutGroup(this);
|
|
28790
28790
|
}
|
|
28791
28791
|
// for animation:
|
|
@@ -29147,7 +29147,7 @@ cs([
|
|
|
29147
29147
|
cs([
|
|
29148
29148
|
p()
|
|
29149
29149
|
], hn.prototype, "planeDistance", 2);
|
|
29150
|
-
let
|
|
29150
|
+
let eh = hn;
|
|
29151
29151
|
var UT = Object.defineProperty, NT = Object.getOwnPropertyDescriptor, _y = (o, t, e, i) => {
|
|
29152
29152
|
for (var n = i > 1 ? void 0 : i ? NT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
29153
29153
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
@@ -29201,7 +29201,7 @@ class ox {
|
|
|
29201
29201
|
// TODO would probably be better to export each object instead of the entire Canvas
|
|
29202
29202
|
// so that we don't export them twice (once as regular hierarchy, once as part of Canvas export)
|
|
29203
29203
|
onExportObject(t, e, i) {
|
|
29204
|
-
const n = S.getComponent(t,
|
|
29204
|
+
const n = S.getComponent(t, eh);
|
|
29205
29205
|
if (n && n.enabled && n.renderMode === nx.WorldSpace) {
|
|
29206
29206
|
const s = new yy(), a = S.getComponent(t, os), l = S.getComponent(t, qr), c = new Array();
|
|
29207
29207
|
if (a) {
|
|
@@ -29281,7 +29281,7 @@ class ox {
|
|
|
29281
29281
|
t.index.needsUpdate = !0;
|
|
29282
29282
|
}
|
|
29283
29283
|
}
|
|
29284
|
-
const
|
|
29284
|
+
const pc = x("debugusdz");
|
|
29285
29285
|
function $T(o, t) {
|
|
29286
29286
|
var l;
|
|
29287
29287
|
const e = [], i = S.getComponentsInChildren(o, Nt), n = S.getComponentsInChildren(o, si), s = new Array(), a = new Array();
|
|
@@ -29298,10 +29298,10 @@ function $T(o, t) {
|
|
|
29298
29298
|
else
|
|
29299
29299
|
for (const c of i) {
|
|
29300
29300
|
if (!c || !c.runtimeAnimatorController || !c.enabled) continue;
|
|
29301
|
-
|
|
29301
|
+
pc && console.log(c);
|
|
29302
29302
|
const h = [];
|
|
29303
29303
|
for (const d of c.runtimeAnimatorController.enumerateActions()) {
|
|
29304
|
-
|
|
29304
|
+
pc && console.log(d);
|
|
29305
29305
|
const u = d.getClip();
|
|
29306
29306
|
h.includes(u) || h.push(u);
|
|
29307
29307
|
}
|
|
@@ -29317,13 +29317,13 @@ function $T(o, t) {
|
|
|
29317
29317
|
}
|
|
29318
29318
|
else
|
|
29319
29319
|
for (const c of n) {
|
|
29320
|
-
|
|
29320
|
+
pc && console.log(c);
|
|
29321
29321
|
const h = [];
|
|
29322
29322
|
for (const d of c.animations)
|
|
29323
29323
|
h.includes(d) || h.push(d);
|
|
29324
29324
|
e.push({ root: c.gameObject, clips: h });
|
|
29325
29325
|
}
|
|
29326
|
-
|
|
29326
|
+
pc && (e == null ? void 0 : e.length) > 0 && console.log("USDZ Animation Clips without behaviours", e);
|
|
29327
29327
|
for (const c of e)
|
|
29328
29328
|
for (const h of c.clips)
|
|
29329
29329
|
t.registerAnimation(c.root, h);
|
|
@@ -29331,7 +29331,7 @@ function $T(o, t) {
|
|
|
29331
29331
|
}
|
|
29332
29332
|
function WT(o, t) {
|
|
29333
29333
|
const e = S.getComponentsInChildren(o, Mn), i = S.getComponentsInChildren(o, Hr), n = new Array(), s = new Array();
|
|
29334
|
-
|
|
29334
|
+
pc && console.log({ audioSources: e, playAudioOnClicks: i });
|
|
29335
29335
|
for (const a of i) {
|
|
29336
29336
|
if (!a.target) continue;
|
|
29337
29337
|
const l = e.indexOf(a.target);
|
|
@@ -29441,12 +29441,12 @@ const xi = (Es = class extends B {
|
|
|
29441
29441
|
onEnable() {
|
|
29442
29442
|
var n;
|
|
29443
29443
|
const e = Y.supportsQuickLookAR(), i = Y.isiOS() || Y.isiPad();
|
|
29444
|
-
!this.button && (Si || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = $b(this.context, e), this.link.addEventListener("message", this.lastCallback)), Si && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement),
|
|
29444
|
+
!this.button && (Si || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = $b(this.context, e), this.link.addEventListener("message", this.lastCallback)), Si && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement), Vc.registerExporter(this);
|
|
29445
29445
|
}
|
|
29446
29446
|
/** @internal */
|
|
29447
29447
|
onDisable() {
|
|
29448
29448
|
var e, i, n;
|
|
29449
|
-
(e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), Si && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement),
|
|
29449
|
+
(e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), Si && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement), Vc.unregisterExporter(this);
|
|
29450
29450
|
}
|
|
29451
29451
|
/**
|
|
29452
29452
|
* Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
|
|
@@ -29525,7 +29525,7 @@ const xi = (Es = class extends B {
|
|
|
29525
29525
|
de.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: m })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, de.report("export-usdz", "auto export animations and audio sources");
|
|
29526
29526
|
const g = new Array();
|
|
29527
29527
|
this.autoExportAnimations && g.push(...$T(e, h)), f.find((E) => E.extensionName === "Audio") && this.autoExportAudioSources && g.push(...WT(e)), c.debug = Si, c.pruneUnusedNodes = !GT;
|
|
29528
|
-
const _ =
|
|
29528
|
+
const _ = Kc.instance.objs.map((E) => E.batchedMesh);
|
|
29529
29529
|
c.keepObject = (E) => {
|
|
29530
29530
|
let R = !0;
|
|
29531
29531
|
const U = S.getComponent(E, ln);
|
|
@@ -29675,7 +29675,7 @@ var qT = Object.defineProperty, XT = Object.getOwnPropertyDescriptor, by = (o, t
|
|
|
29675
29675
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
29676
29676
|
return n && qT(t, e, n), n;
|
|
29677
29677
|
};
|
|
29678
|
-
class
|
|
29678
|
+
class wh extends B {
|
|
29679
29679
|
constructor() {
|
|
29680
29680
|
super(...arguments);
|
|
29681
29681
|
r(this, "_fog");
|
|
@@ -29713,13 +29713,13 @@ class vh extends B {
|
|
|
29713
29713
|
}
|
|
29714
29714
|
by([
|
|
29715
29715
|
p()
|
|
29716
|
-
],
|
|
29716
|
+
], wh.prototype, "near");
|
|
29717
29717
|
by([
|
|
29718
29718
|
p()
|
|
29719
|
-
],
|
|
29719
|
+
], wh.prototype, "far");
|
|
29720
29720
|
by([
|
|
29721
29721
|
p(re)
|
|
29722
|
-
],
|
|
29722
|
+
], wh.prototype, "color");
|
|
29723
29723
|
var QT = Object.defineProperty, vy = (o, t, e, i) => {
|
|
29724
29724
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
29725
29725
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -29735,7 +29735,7 @@ class kl extends B {
|
|
|
29735
29735
|
r(this, "_boxHelper", null);
|
|
29736
29736
|
}
|
|
29737
29737
|
onEnable() {
|
|
29738
|
-
this.isGizmo && !
|
|
29738
|
+
this.isGizmo && !lh || (this._gizmoObject || (this.objectBounds ? this._gizmoObject = new tC(this.gameObject, this.color ?? 16776960) : (this.objectBounds = !1, this._gizmoObject = Ag(this.color ?? 16776960))), this.objectBounds ? (this.scene.add(this._gizmoObject), this._boxHelper = this._gizmoObject, this.startCoroutine(this.syncObjectBounds(), Re.OnBeforeRender)) : this.gameObject.add(this._gizmoObject));
|
|
29739
29739
|
}
|
|
29740
29740
|
onDisable() {
|
|
29741
29741
|
this._gizmoObject && this.gameObject.remove(this._gizmoObject);
|
|
@@ -29760,7 +29760,7 @@ var YT = Object.defineProperty, wy = (o, t, e, i) => {
|
|
|
29760
29760
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
29761
29761
|
return n && YT(t, e, n), n;
|
|
29762
29762
|
};
|
|
29763
|
-
class
|
|
29763
|
+
class xh extends B {
|
|
29764
29764
|
constructor() {
|
|
29765
29765
|
super(...arguments);
|
|
29766
29766
|
r(this, "isGizmo", !1);
|
|
@@ -29773,7 +29773,7 @@ class wh extends B {
|
|
|
29773
29773
|
}
|
|
29774
29774
|
/** @internal */
|
|
29775
29775
|
onEnable() {
|
|
29776
|
-
if (this.isGizmo && !
|
|
29776
|
+
if (this.isGizmo && !lh) return;
|
|
29777
29777
|
const e = this.size, i = this.divisions;
|
|
29778
29778
|
this.gridHelper || (this.gridHelper = new hg(e, i, this.color0 ?? new re(0.4, 0.4, 0.4), this.color1 ?? new re(0.6, 0.6, 0.6)), this.offset !== void 0 && (this.gridHelper.position.y += this.offset)), this.gridHelper && this.gameObject.add(this.gridHelper);
|
|
29779
29779
|
}
|
|
@@ -29784,13 +29784,13 @@ class wh extends B {
|
|
|
29784
29784
|
}
|
|
29785
29785
|
wy([
|
|
29786
29786
|
p()
|
|
29787
|
-
],
|
|
29787
|
+
], xh.prototype, "isGizmo");
|
|
29788
29788
|
wy([
|
|
29789
29789
|
p(re)
|
|
29790
|
-
],
|
|
29790
|
+
], xh.prototype, "color0");
|
|
29791
29791
|
wy([
|
|
29792
29792
|
p(re)
|
|
29793
|
-
],
|
|
29793
|
+
], xh.prototype, "color1");
|
|
29794
29794
|
var KT = Object.defineProperty, xy = (o, t, e, i) => {
|
|
29795
29795
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
29796
29796
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -30121,28 +30121,28 @@ hs([
|
|
|
30121
30121
|
p()
|
|
30122
30122
|
], Vi.prototype, "shadowResolution", 1);
|
|
30123
30123
|
new v(0, 0, 0);
|
|
30124
|
-
var eE = Object.defineProperty,
|
|
30124
|
+
var eE = Object.defineProperty, Sh = (o, t, e, i) => {
|
|
30125
30125
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30126
30126
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30127
30127
|
return n && eE(t, e, n), n;
|
|
30128
30128
|
};
|
|
30129
30129
|
const zp = x("debuglods"), tE = x("nolods");
|
|
30130
|
-
class
|
|
30130
|
+
class Ch {
|
|
30131
30131
|
constructor() {
|
|
30132
30132
|
r(this, "screenRelativeTransitionHeight");
|
|
30133
30133
|
r(this, "distance");
|
|
30134
30134
|
r(this, "renderers");
|
|
30135
30135
|
}
|
|
30136
30136
|
}
|
|
30137
|
-
|
|
30137
|
+
Sh([
|
|
30138
30138
|
p()
|
|
30139
|
-
],
|
|
30140
|
-
|
|
30139
|
+
], Ch.prototype, "screenRelativeTransitionHeight");
|
|
30140
|
+
Sh([
|
|
30141
30141
|
p()
|
|
30142
|
-
],
|
|
30143
|
-
|
|
30142
|
+
], Ch.prototype, "distance");
|
|
30143
|
+
Sh([
|
|
30144
30144
|
p(ln)
|
|
30145
|
-
],
|
|
30145
|
+
], Ch.prototype, "renderers");
|
|
30146
30146
|
class iE {
|
|
30147
30147
|
constructor(t) {
|
|
30148
30148
|
r(this, "model");
|
|
@@ -30227,18 +30227,18 @@ class vf extends B {
|
|
|
30227
30227
|
}
|
|
30228
30228
|
}
|
|
30229
30229
|
}
|
|
30230
|
-
|
|
30230
|
+
Sh([
|
|
30231
30231
|
p(v)
|
|
30232
30232
|
], vf.prototype, "localReferencePoint");
|
|
30233
|
-
|
|
30234
|
-
p(
|
|
30233
|
+
Sh([
|
|
30234
|
+
p(Ch)
|
|
30235
30235
|
], vf.prototype, "lodModels");
|
|
30236
30236
|
var nE = Object.defineProperty, sE = (o, t, e, i) => {
|
|
30237
30237
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30238
30238
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30239
30239
|
return n && nE(t, e, n), n;
|
|
30240
30240
|
};
|
|
30241
|
-
const
|
|
30241
|
+
const cd = x("debugnestedgltf");
|
|
30242
30242
|
class Cy extends B {
|
|
30243
30243
|
constructor() {
|
|
30244
30244
|
super(...arguments);
|
|
@@ -30263,16 +30263,16 @@ class Cy extends B {
|
|
|
30263
30263
|
async start() {
|
|
30264
30264
|
var i, n, s, a, l;
|
|
30265
30265
|
if (this._isLoadingOrDoneLoading) return;
|
|
30266
|
-
|
|
30266
|
+
cd && console.log(this, this.guid);
|
|
30267
30267
|
const e = this.gameObject.parent;
|
|
30268
30268
|
if (e) {
|
|
30269
30269
|
this._isLoadingOrDoneLoading = !0;
|
|
30270
30270
|
const c = new as();
|
|
30271
30271
|
c.idProvider = new Ft(this.hash(this.guid)), c.parent = this.loadAssetInParent !== !1 ? e : this.gameObject, this.gameObject.updateMatrix();
|
|
30272
30272
|
const h = this.gameObject.matrix;
|
|
30273
|
-
|
|
30273
|
+
cd && console.log("Load nested:", ((i = this.filePath) == null ? void 0 : i.url) ?? this.filePath, this.gameObject.position);
|
|
30274
30274
|
const d = await ((s = (n = this.filePath) == null ? void 0 : n.instantiate) == null ? void 0 : s.call(this.filePath, c));
|
|
30275
|
-
|
|
30275
|
+
cd && console.log("Nested loaded:", ((a = this.filePath) == null ? void 0 : a.url) ?? this.filePath, d), d && this.loadAssetInParent !== !1 && (d.matrixAutoUpdate = !1, d.matrix.identity(), d.applyMatrix4(h), d.matrixAutoUpdate = !0, d.layers.disableAll(), d.layers.set(this.layer), this.dispatchEvent(new CustomEvent("loaded", { detail: { instance: d, assetReference: this.filePath } }))), cd && console.log("Nested loading done:", ((l = this.filePath) == null ? void 0 : l.url) ?? this.filePath, d);
|
|
30276
30276
|
}
|
|
30277
30277
|
}
|
|
30278
30278
|
/** @internal */
|
|
@@ -30447,7 +30447,7 @@ Jo([
|
|
|
30447
30447
|
Jo([
|
|
30448
30448
|
p()
|
|
30449
30449
|
], Li.prototype, "weightedMode");
|
|
30450
|
-
const lx = class
|
|
30450
|
+
const lx = class mc {
|
|
30451
30451
|
constructor() {
|
|
30452
30452
|
r(this, "keys", []);
|
|
30453
30453
|
}
|
|
@@ -30455,14 +30455,14 @@ const lx = class pc {
|
|
|
30455
30455
|
* Creates an animation curve that goes from the `from` value to the `to` value over the given `duration`.
|
|
30456
30456
|
*/
|
|
30457
30457
|
static linearFromTo(t, e, i) {
|
|
30458
|
-
const n = new
|
|
30458
|
+
const n = new mc(), s = new Li();
|
|
30459
30459
|
s.time = 0, s.value = t;
|
|
30460
30460
|
const a = new Li();
|
|
30461
30461
|
return a.time = i, a.value = e, n.keys.push(s, a), n;
|
|
30462
30462
|
}
|
|
30463
30463
|
/** Creates an animation curve with just one keyframe */
|
|
30464
30464
|
static constant(t) {
|
|
30465
|
-
const e = new
|
|
30465
|
+
const e = new mc(), i = new Li();
|
|
30466
30466
|
return i.time = 0, i.value = t, e.keys.push(i), e;
|
|
30467
30467
|
}
|
|
30468
30468
|
/**
|
|
@@ -30470,7 +30470,7 @@ const lx = class pc {
|
|
|
30470
30470
|
*/
|
|
30471
30471
|
clone() {
|
|
30472
30472
|
var e;
|
|
30473
|
-
const t = new
|
|
30473
|
+
const t = new mc();
|
|
30474
30474
|
return t.keys = ((e = this.keys) == null ? void 0 : e.map((i) => {
|
|
30475
30475
|
const n = new Li();
|
|
30476
30476
|
return n.time = i.time, n.value = i.value, n.inTangent = i.inTangent, n.inWeight = i.inWeight, n.outTangent = i.outTangent, n.outWeight = i.outWeight, n.weightedMode = i.weightedMode, n;
|
|
@@ -30496,7 +30496,7 @@ const lx = class pc {
|
|
|
30496
30496
|
if (e + 1 < this.keys.length) {
|
|
30497
30497
|
const s = this.keys[e + 1];
|
|
30498
30498
|
if (s.time < t) continue;
|
|
30499
|
-
return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value :
|
|
30499
|
+
return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value : mc.interpolateValue(t, i, s);
|
|
30500
30500
|
} else
|
|
30501
30501
|
return i.value;
|
|
30502
30502
|
}
|
|
@@ -30516,7 +30516,7 @@ var cE = Object.defineProperty, P = (o, t, e, i) => {
|
|
|
30516
30516
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30517
30517
|
return n && cE(t, e, n), n;
|
|
30518
30518
|
};
|
|
30519
|
-
const
|
|
30519
|
+
const hd = x("debugparticles");
|
|
30520
30520
|
var Ps = /* @__PURE__ */ ((o) => (o[o.Billboard = 0] = "Billboard", o[o.Stretch = 1] = "Stretch", o[o.HorizontalBillboard = 2] = "HorizontalBillboard", o[o.VerticalBillboard = 3] = "VerticalBillboard", o[o.Mesh = 4] = "Mesh", o))(Ps || {});
|
|
30521
30521
|
class Rl {
|
|
30522
30522
|
constructor() {
|
|
@@ -30557,8 +30557,8 @@ P([
|
|
|
30557
30557
|
P([
|
|
30558
30558
|
p()
|
|
30559
30559
|
], Rl.prototype, "colorKeys");
|
|
30560
|
-
var
|
|
30561
|
-
const so = class
|
|
30560
|
+
var th = /* @__PURE__ */ ((o) => (o[o.Local = 0] = "Local", o[o.World = 1] = "World", o[o.Custom = 2] = "Custom", o))(th || {}), Qm = /* @__PURE__ */ ((o) => (o[o.Sphere = 0] = "Sphere", o[o.SphereShell = 1] = "SphereShell", o[o.Hemisphere = 2] = "Hemisphere", o[o.HemisphereShell = 3] = "HemisphereShell", o[o.Cone = 4] = "Cone", o[o.Box = 5] = "Box", o[o.Mesh = 6] = "Mesh", o[o.ConeShell = 7] = "ConeShell", o[o.ConeVolume = 8] = "ConeVolume", o[o.ConeVolumeShell = 9] = "ConeVolumeShell", o[o.Circle = 10] = "Circle", o[o.CircleEdge = 11] = "CircleEdge", o[o.SingleSidedEdge = 12] = "SingleSidedEdge", o[o.MeshRenderer = 13] = "MeshRenderer", o[o.SkinnedMeshRenderer = 14] = "SkinnedMeshRenderer", o[o.BoxShell = 15] = "BoxShell", o[o.BoxEdge = 16] = "BoxEdge", o[o.Donut = 17] = "Donut", o[o.Rectangle = 18] = "Rectangle", o[o.Sprite = 19] = "Sprite", o[o.SpriteRenderer = 20] = "SpriteRenderer", o))(Qm || {});
|
|
30561
|
+
const so = class gc {
|
|
30562
30562
|
constructor() {
|
|
30563
30563
|
r(this, "mode", "Constant");
|
|
30564
30564
|
r(this, "constant");
|
|
@@ -30570,15 +30570,15 @@ const so = class mc {
|
|
|
30570
30570
|
r(this, "curveMultiplier");
|
|
30571
30571
|
}
|
|
30572
30572
|
static constant(t) {
|
|
30573
|
-
const e = new
|
|
30573
|
+
const e = new gc();
|
|
30574
30574
|
return e.setConstant(t), e;
|
|
30575
30575
|
}
|
|
30576
30576
|
static betweenTwoConstants(t, e) {
|
|
30577
|
-
const i = new
|
|
30577
|
+
const i = new gc();
|
|
30578
30578
|
return i.setMinMaxConstant(t, e), i;
|
|
30579
30579
|
}
|
|
30580
30580
|
static curve(t, e = 1) {
|
|
30581
|
-
const i = new
|
|
30581
|
+
const i = new gc();
|
|
30582
30582
|
return i.setCurve(t, e), i;
|
|
30583
30583
|
}
|
|
30584
30584
|
setConstant(t) {
|
|
@@ -30592,7 +30592,7 @@ const so = class mc {
|
|
|
30592
30592
|
}
|
|
30593
30593
|
clone() {
|
|
30594
30594
|
var e, i, n;
|
|
30595
|
-
const t = new
|
|
30595
|
+
const t = new gc();
|
|
30596
30596
|
return t.mode = this.mode, t.constant = this.constant, t.constantMin = this.constantMin, t.constantMax = this.constantMax, t.curve = (e = this.curve) == null ? void 0 : e.clone(), t.curveMin = (i = this.curveMin) == null ? void 0 : i.clone(), t.curveMax = (n = this.curveMax) == null ? void 0 : n.clone(), t.curveMultiplier = this.curveMultiplier, t;
|
|
30597
30597
|
}
|
|
30598
30598
|
evaluate(t, e) {
|
|
@@ -30998,7 +30998,7 @@ const rt = (Cn = class {
|
|
|
30998
30998
|
r(this, "_dir", new v());
|
|
30999
30999
|
r(this, "_loopTime", 0);
|
|
31000
31000
|
r(this, "_loopDirection", 1);
|
|
31001
|
-
|
|
31001
|
+
hd && console.log(this);
|
|
31002
31002
|
}
|
|
31003
31003
|
// Emittershape start
|
|
31004
31004
|
get type() {
|
|
@@ -31033,7 +31033,7 @@ const rt = (Cn = class {
|
|
|
31033
31033
|
if (i && (n *= this.system.worldScale.x), this.enabled) {
|
|
31034
31034
|
switch (this.shapeType) {
|
|
31035
31035
|
case 5:
|
|
31036
|
-
|
|
31036
|
+
hd && H.DrawWireBox(this.position, this.scale, 14540253, 1), this._vector.x = Math.random() * this.scale.x - this.scale.x / 2, this._vector.y = Math.random() * this.scale.y - this.scale.y / 2, this._vector.z = Math.random() * this.scale.z - this.scale.z / 2, this._vector.add(e);
|
|
31037
31037
|
break;
|
|
31038
31038
|
case 4:
|
|
31039
31039
|
this.randomConePoint(this.position, this.angle, n, this.radiusThickness, this.arc, this.arcMode, this._vector);
|
|
@@ -31080,7 +31080,7 @@ const rt = (Cn = class {
|
|
|
31080
31080
|
}
|
|
31081
31081
|
this.randomizePosition(this._vector, this.randomPositionAmount);
|
|
31082
31082
|
}
|
|
31083
|
-
this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)),
|
|
31083
|
+
this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)), hd && H.DrawSphere(this._vector, 0.03, 16711680, 0.5, !0);
|
|
31084
31084
|
}
|
|
31085
31085
|
getDirection(t, e) {
|
|
31086
31086
|
var i;
|
|
@@ -31127,7 +31127,7 @@ const rt = (Cn = class {
|
|
|
31127
31127
|
this._dir.set(0, 0, 1);
|
|
31128
31128
|
break;
|
|
31129
31129
|
}
|
|
31130
|
-
return this._space === 1 && this._dir.applyQuaternion(this.system.worldQuaternion), this.applyRotation(this._dir), this._dir.normalize(), this.spherizeDirection(this._dir, this.sphericalDirectionAmount), this.randomizeDirection(this._dir, this.randomDirectionAmount),
|
|
31130
|
+
return this._space === 1 && this._dir.applyQuaternion(this.system.worldQuaternion), this.applyRotation(this._dir), this._dir.normalize(), this.spherizeDirection(this._dir, this.sphericalDirectionAmount), this.randomizeDirection(this._dir, this.randomDirectionAmount), hd && (H.DrawSphere(e, 0.01, 8925952, 0.5, !0), H.DrawDirection(e, this._dir, 8925952, 0.5, !0)), this._dir;
|
|
31131
31131
|
}
|
|
31132
31132
|
randomizePosition(t, e) {
|
|
31133
31133
|
if (e <= 0) return;
|
|
@@ -31801,7 +31801,7 @@ P([
|
|
|
31801
31801
|
P([
|
|
31802
31802
|
p()
|
|
31803
31803
|
], Pt.prototype, "space");
|
|
31804
|
-
const
|
|
31804
|
+
const Ph = class hx {
|
|
31805
31805
|
constructor() {
|
|
31806
31806
|
r(this, "enabled");
|
|
31807
31807
|
r(this, "curve");
|
|
@@ -31848,17 +31848,17 @@ const Ch = class hx {
|
|
|
31848
31848
|
};
|
|
31849
31849
|
P([
|
|
31850
31850
|
p()
|
|
31851
|
-
],
|
|
31851
|
+
], Ph.prototype, "enabled");
|
|
31852
31852
|
P([
|
|
31853
31853
|
p(K)
|
|
31854
|
-
],
|
|
31854
|
+
], Ph.prototype, "curve");
|
|
31855
31855
|
P([
|
|
31856
31856
|
p()
|
|
31857
|
-
],
|
|
31857
|
+
], Ph.prototype, "curveMultiplier");
|
|
31858
31858
|
P([
|
|
31859
31859
|
p()
|
|
31860
|
-
],
|
|
31861
|
-
let dx =
|
|
31860
|
+
], Ph.prototype, "mode");
|
|
31861
|
+
let dx = Ph;
|
|
31862
31862
|
class Hi {
|
|
31863
31863
|
constructor() {
|
|
31864
31864
|
r(this, "enabled");
|
|
@@ -31911,7 +31911,7 @@ P([
|
|
|
31911
31911
|
P([
|
|
31912
31912
|
p()
|
|
31913
31913
|
], Hi.prototype, "zMultiplier");
|
|
31914
|
-
class
|
|
31914
|
+
class Oh {
|
|
31915
31915
|
constructor() {
|
|
31916
31916
|
r(this, "enabled");
|
|
31917
31917
|
r(this, "range");
|
|
@@ -31924,13 +31924,13 @@ class Ph {
|
|
|
31924
31924
|
}
|
|
31925
31925
|
P([
|
|
31926
31926
|
p()
|
|
31927
|
-
],
|
|
31927
|
+
], Oh.prototype, "enabled");
|
|
31928
31928
|
P([
|
|
31929
31929
|
p(ae)
|
|
31930
|
-
],
|
|
31930
|
+
], Oh.prototype, "range");
|
|
31931
31931
|
P([
|
|
31932
31932
|
p(Tl)
|
|
31933
|
-
],
|
|
31933
|
+
], Oh.prototype, "color");
|
|
31934
31934
|
new v(1, 1, 1);
|
|
31935
31935
|
new v(0, 0, 1);
|
|
31936
31936
|
class ux {
|
|
@@ -32078,7 +32078,7 @@ Ge([
|
|
|
32078
32078
|
Ge([
|
|
32079
32079
|
p()
|
|
32080
32080
|
], An.prototype, "lengthScale");
|
|
32081
|
-
class
|
|
32081
|
+
class dd {
|
|
32082
32082
|
constructor(t, e = 1) {
|
|
32083
32083
|
r(this, "_curve");
|
|
32084
32084
|
r(this, "_factor");
|
|
@@ -32257,7 +32257,7 @@ class vE extends ra {
|
|
|
32257
32257
|
}
|
|
32258
32258
|
}
|
|
32259
32259
|
}
|
|
32260
|
-
const
|
|
32260
|
+
const ud = Symbol("startVelocity"), qb = Symbol("gravityModifier"), $p = Symbol("gravitySpeed"), fd = Symbol("velocity lerp factor"), Jm = new v();
|
|
32261
32261
|
class wE extends ra {
|
|
32262
32262
|
constructor() {
|
|
32263
32263
|
super(...arguments);
|
|
@@ -32269,26 +32269,26 @@ class wE extends ra {
|
|
|
32269
32269
|
const i = this.system.main.simulationSpeed;
|
|
32270
32270
|
e.startSpeed = this.system.main.startSpeed.evaluate(Math.random(), Math.random());
|
|
32271
32271
|
const n = this.system.shape.getDirection(e, e.position);
|
|
32272
|
-
e.velocity.x = n.x * e.startSpeed, e.velocity.y = n.y * e.startSpeed, e.velocity.z = n.z * e.startSpeed, (a = this.system.inheritVelocity) != null && a.enabled && this.system.inheritVelocity.applyInitial(e.velocity), e[
|
|
32272
|
+
e.velocity.x = n.x * e.startSpeed, e.velocity.y = n.y * e.startSpeed, e.velocity.z = n.z * e.startSpeed, (a = this.system.inheritVelocity) != null && a.enabled && this.system.inheritVelocity.applyInitial(e.velocity), e[ud] ? e[ud].copy(e.velocity) : e[ud] = e.velocity.clone();
|
|
32273
32273
|
const s = this.system.main.gravityModifier.evaluate(Math.random(), Math.random());
|
|
32274
|
-
e[qb] = s * i, e[$p] = s * i * 0.5, e[
|
|
32274
|
+
e[qb] = s * i, e[$p] = s * i * 0.5, e[fd] = Math.random(), (l = this.system.velocityOverLifetime) == null || l.init(e), this._gravityDirection.set(0, -1, 0), this.system.main.simulationSpace === th.Local && this._gravityDirection.applyQuaternion(this.system.worldQuaternionInverted).normalize();
|
|
32275
32275
|
}
|
|
32276
32276
|
update(e, i) {
|
|
32277
32277
|
var f;
|
|
32278
|
-
const n = e[
|
|
32278
|
+
const n = e[ud], s = e[qb];
|
|
32279
32279
|
if (s !== 0) {
|
|
32280
32280
|
const m = s * e[$p];
|
|
32281
32281
|
Jm.copy(this._gravityDirection).multiplyScalar(m), e[$p] += i * 0.05, n.add(Jm);
|
|
32282
32282
|
}
|
|
32283
32283
|
e.velocity.copy(n);
|
|
32284
32284
|
const a = e.age / e.life;
|
|
32285
|
-
(f = this.system.inheritVelocity) != null && f.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[
|
|
32285
|
+
(f = this.system.inheritVelocity) != null && f.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[fd]);
|
|
32286
32286
|
const l = this.system.noise;
|
|
32287
32287
|
l.enabled && l.apply(0, e.position, e.velocity, i, e.age, e.life);
|
|
32288
32288
|
const c = this.system.sizeBySpeed;
|
|
32289
|
-
c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[
|
|
32289
|
+
c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[fd], e.size));
|
|
32290
32290
|
const h = this.system.colorBySpeed;
|
|
32291
|
-
h != null && h.enabled && h.evaluate(e.velocity, e[
|
|
32291
|
+
h != null && h.enabled && h.evaluate(e.velocity, e[fd], e.color);
|
|
32292
32292
|
const d = this.system.velocityOverLifetime;
|
|
32293
32293
|
d.enabled && d.apply(e, 0, e.position, e.velocity, i, e.age, e.life);
|
|
32294
32294
|
const u = this.system.limitVelocityOverLifetime;
|
|
@@ -32362,16 +32362,16 @@ class SE {
|
|
|
32362
32362
|
return this.system.shape;
|
|
32363
32363
|
}
|
|
32364
32364
|
get startLife() {
|
|
32365
|
-
return new
|
|
32365
|
+
return new dd(this.system.main.startLifetime);
|
|
32366
32366
|
}
|
|
32367
32367
|
get startSpeed() {
|
|
32368
|
-
return new
|
|
32368
|
+
return new dd(this.system.main.startSpeed);
|
|
32369
32369
|
}
|
|
32370
32370
|
get startRotation() {
|
|
32371
|
-
return new
|
|
32371
|
+
return new dd(this.system.main.startRotation);
|
|
32372
32372
|
}
|
|
32373
32373
|
get startSize() {
|
|
32374
|
-
return new
|
|
32374
|
+
return new dd(this.system.main.startSize);
|
|
32375
32375
|
}
|
|
32376
32376
|
/** start length is for trails */
|
|
32377
32377
|
get startColor() {
|
|
@@ -32443,7 +32443,7 @@ class SE {
|
|
|
32443
32443
|
return this.system.renderer.transparent;
|
|
32444
32444
|
}
|
|
32445
32445
|
get worldSpace() {
|
|
32446
|
-
return this.system.main.simulationSpace ===
|
|
32446
|
+
return this.system.main.simulationSpace === th.World;
|
|
32447
32447
|
}
|
|
32448
32448
|
}
|
|
32449
32449
|
class CE {
|
|
@@ -32567,10 +32567,10 @@ const Vt = class Rd extends B {
|
|
|
32567
32567
|
return this._container;
|
|
32568
32568
|
}
|
|
32569
32569
|
get worldspace() {
|
|
32570
|
-
return this.main.simulationSpace ===
|
|
32570
|
+
return this.main.simulationSpace === th.World;
|
|
32571
32571
|
}
|
|
32572
32572
|
get localspace() {
|
|
32573
|
-
return this.main.simulationSpace ===
|
|
32573
|
+
return this.main.simulationSpace === th.Local;
|
|
32574
32574
|
}
|
|
32575
32575
|
get worldQuaternion() {
|
|
32576
32576
|
return this.__worldQuaternion;
|
|
@@ -32784,7 +32784,7 @@ Ge([
|
|
|
32784
32784
|
p(dx)
|
|
32785
32785
|
], Vt.prototype, "inheritVelocity");
|
|
32786
32786
|
Ge([
|
|
32787
|
-
p(
|
|
32787
|
+
p(Oh)
|
|
32788
32788
|
], Vt.prototype, "colorBySpeed");
|
|
32789
32789
|
Ge([
|
|
32790
32790
|
p(ci)
|
|
@@ -32830,7 +32830,7 @@ function fx(o, t) {
|
|
|
32830
32830
|
}
|
|
32831
32831
|
return t;
|
|
32832
32832
|
}
|
|
32833
|
-
class
|
|
32833
|
+
class ih extends B {
|
|
32834
32834
|
constructor() {
|
|
32835
32835
|
super(...arguments);
|
|
32836
32836
|
r(this, "_didAssignPlayerColor", !1);
|
|
@@ -32853,7 +32853,7 @@ class th extends B {
|
|
|
32853
32853
|
;
|
|
32854
32854
|
}
|
|
32855
32855
|
assignUserColor(e) {
|
|
32856
|
-
const i =
|
|
32856
|
+
const i = ih.hashCode(e), n = ih.colorFromHashCode(i);
|
|
32857
32857
|
if (this.gameObject.type === "Mesh") {
|
|
32858
32858
|
const s = this.gameObject;
|
|
32859
32859
|
this.assignColor(n, e, s);
|
|
@@ -32879,7 +32879,7 @@ class th extends B {
|
|
|
32879
32879
|
return new re(i / 255, n / 255, s / 255);
|
|
32880
32880
|
}
|
|
32881
32881
|
}
|
|
32882
|
-
const
|
|
32882
|
+
const yc = x("debugpost");
|
|
32883
32883
|
let tg = null;
|
|
32884
32884
|
function PE(o) {
|
|
32885
32885
|
tg = o;
|
|
@@ -32898,7 +32898,7 @@ function OE(o) {
|
|
|
32898
32898
|
let t = px(o);
|
|
32899
32899
|
if (!t)
|
|
32900
32900
|
if (tg) {
|
|
32901
|
-
|
|
32901
|
+
yc && console.warn("Adding postprocessing manager to the scene.");
|
|
32902
32902
|
const e = o.scene;
|
|
32903
32903
|
t = sn(e, tg);
|
|
32904
32904
|
} else
|
|
@@ -32927,10 +32927,10 @@ const gt = {
|
|
|
32927
32927
|
};
|
|
32928
32928
|
let et = null;
|
|
32929
32929
|
function kE(o) {
|
|
32930
|
-
|
|
32930
|
+
yc === "verbose" && console.debug("Before ordering effects", [...o]), et || (et = /* @__PURE__ */ new Map(), et.set(D.POSTPROCESSING.MODULE.NormalPass, gt.NormalPass), et.set(D.POSTPROCESSING.MODULE.DepthDownsamplingPass, gt.DepthDownsamplingPass), et.set(D.POSTPROCESSING.MODULE.SMAAEffect, gt.SMAA), et.set(D.POSTPROCESSING.MODULE.SSAOEffect, gt.SSAO), et.set(D.POSTPROCESSING_AO.MODULE.N8AOPostPass, gt.SSAO), et.set(D.POSTPROCESSING_AO.MODULE.N8AOPass, gt.SSAO), et.set(D.POSTPROCESSING.MODULE.TiltShiftEffect, gt.TiltShift), et.set(D.POSTPROCESSING.MODULE.DepthOfFieldEffect, gt.DepthOfField), et.set(D.POSTPROCESSING.MODULE.ChromaticAberrationEffect, gt.ChromaticAberration), et.set(D.POSTPROCESSING.MODULE.BloomEffect, gt.Bloom), et.set(D.POSTPROCESSING.MODULE.SelectiveBloomEffect, gt.Bloom), et.set(D.POSTPROCESSING.MODULE.VignetteEffect, gt.Vignette), et.set(D.POSTPROCESSING.MODULE.PixelationEffect, gt.Pixelation), et.set(D.POSTPROCESSING.MODULE.ToneMappingEffect, gt.ToneMapping), et.set(D.POSTPROCESSING.MODULE.HueSaturationEffect, gt.HueSaturation), et.set(D.POSTPROCESSING.MODULE.BrightnessContrastEffect, gt.BrightnessContrast)), o.sort((t, e) => {
|
|
32931
32931
|
const i = typeof t.priority == "number" ? t.priority : et.get(t.effect.constructor) ?? Number.NEGATIVE_INFINITY, n = typeof e.priority == "number" ? e.priority : et.get(e.effect.constructor) ?? Number.NEGATIVE_INFINITY;
|
|
32932
|
-
return i === Number.NEGATIVE_INFINITY ? (
|
|
32933
|
-
}),
|
|
32932
|
+
return i === Number.NEGATIVE_INFINITY ? (yc && console.warn("Unknown effect found: ", t.constructor.name, t), 1) : n === Number.NEGATIVE_INFINITY ? (yc && console.warn("Unknown effect found: ", e.constructor.name, e), -1) : i - n;
|
|
32933
|
+
}), yc === "verbose" && console.debug("After ordering effects", [...o]);
|
|
32934
32934
|
}
|
|
32935
32935
|
var ME = Object.defineProperty, RE = Object.getOwnPropertyDescriptor, mx = (o, t, e, i) => {
|
|
32936
32936
|
for (var n = RE(t, e), s = o.length - 1, a; s >= 0; s--)
|
|
@@ -33262,7 +33262,7 @@ WE([
|
|
|
33262
33262
|
p(N)
|
|
33263
33263
|
], Of.prototype, "intensity");
|
|
33264
33264
|
In("ChromaticAberration", Of);
|
|
33265
|
-
var
|
|
33265
|
+
var _c = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.Neutral = 1] = "Neutral", o[o.ACES = 2] = "ACES", o[o.AgX = 3] = "AgX", o[o.KhronosNeutral = 4] = "KhronosNeutral", o))(_c || {});
|
|
33266
33266
|
const Yb = /* @__PURE__ */ new Map();
|
|
33267
33267
|
function Vp(o) {
|
|
33268
33268
|
switch (o) {
|
|
@@ -33330,7 +33330,7 @@ class Xr extends ft {
|
|
|
33330
33330
|
}
|
|
33331
33331
|
/** Set the tonemapping mode to e.g. "agx" */
|
|
33332
33332
|
setMode(e) {
|
|
33333
|
-
const i =
|
|
33333
|
+
const i = _c[e];
|
|
33334
33334
|
return i === void 0 ? (console.error("[PostProcessing] Invalid ToneMapping mode", e), this) : (this.mode.value = i, this);
|
|
33335
33335
|
}
|
|
33336
33336
|
get isToneMapping() {
|
|
@@ -33357,8 +33357,8 @@ class Xr extends ft {
|
|
|
33357
33357
|
const a = Vp(s);
|
|
33358
33358
|
i.mode = Td(a);
|
|
33359
33359
|
}
|
|
33360
|
-
i.name = "ToneMapping (" +
|
|
33361
|
-
}, Hp && console.log("[PostProcessing] Use ToneMapping",
|
|
33360
|
+
i.name = "ToneMapping (" + _c[s] + ")", Hp && console.log("[PostProcessing] ToneMapping mode changed to", _c[s], e, i.mode);
|
|
33361
|
+
}, Hp && console.log("[PostProcessing] Use ToneMapping", _c[this.mode.value], e, i.mode, "renderer.tonemapping: " + this.context.renderer.toneMapping), i;
|
|
33362
33362
|
}
|
|
33363
33363
|
onBeforeRender() {
|
|
33364
33364
|
var e;
|
|
@@ -33442,7 +33442,7 @@ class us extends ft {
|
|
|
33442
33442
|
r(this, "focalLength", new N(0.2));
|
|
33443
33443
|
r(this, "aperture", new N(20));
|
|
33444
33444
|
r(this, "gaussianMaxRadius", new N());
|
|
33445
|
-
r(this, "resolutionScale", new N(1
|
|
33445
|
+
r(this, "resolutionScale", new N(1 / window.devicePixelRatio));
|
|
33446
33446
|
r(this, "bokehScale", new N());
|
|
33447
33447
|
}
|
|
33448
33448
|
get typeName() {
|
|
@@ -33536,7 +33536,7 @@ YE([
|
|
|
33536
33536
|
p(N)
|
|
33537
33537
|
], Mf.prototype, "granularity");
|
|
33538
33538
|
In("PixelationEffect", Mf);
|
|
33539
|
-
var KE = Object.defineProperty,
|
|
33539
|
+
var KE = Object.defineProperty, kh = (o, t, e, i) => {
|
|
33540
33540
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33541
33541
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33542
33542
|
return n && KE(t, e, n), n;
|
|
@@ -33591,19 +33591,19 @@ class ir extends ft {
|
|
|
33591
33591
|
return a.push(i), a.push(n), a.push(s), a;
|
|
33592
33592
|
}
|
|
33593
33593
|
}
|
|
33594
|
-
|
|
33594
|
+
kh([
|
|
33595
33595
|
p(N)
|
|
33596
33596
|
], ir.prototype, "intensity");
|
|
33597
|
-
|
|
33597
|
+
kh([
|
|
33598
33598
|
p(N)
|
|
33599
33599
|
], ir.prototype, "falloff");
|
|
33600
|
-
|
|
33600
|
+
kh([
|
|
33601
33601
|
p(N)
|
|
33602
33602
|
], ir.prototype, "samples");
|
|
33603
|
-
|
|
33603
|
+
kh([
|
|
33604
33604
|
p(N)
|
|
33605
33605
|
], ir.prototype, "color");
|
|
33606
|
-
|
|
33606
|
+
kh([
|
|
33607
33607
|
p(N)
|
|
33608
33608
|
], ir.prototype, "luminanceInfluence");
|
|
33609
33609
|
In("ScreenSpaceAmbientOcclusion", ir);
|
|
@@ -34063,7 +34063,7 @@ class _x {
|
|
|
34063
34063
|
for (let y = 0; y < this._effects.length; y++) {
|
|
34064
34064
|
const b = this._effects[y].effect;
|
|
34065
34065
|
if (b instanceof D.POSTPROCESSING.MODULE.SMAAEffect ? this._hasSmaaEffect = !0 : b instanceof D.POSTPROCESSING.MODULE.NormalPass && (this._anyPassHasNormal = !0), !(b instanceof D.POSTPROCESSING.MODULE.ToneMappingEffect && f !== b))
|
|
34066
|
-
if (
|
|
34066
|
+
if (b instanceof D.POSTPROCESSING.MODULE.Effect) {
|
|
34067
34067
|
const w = b.getAttributes(), C = D.POSTPROCESSING.MODULE.EffectAttribute.CONVOLUTION;
|
|
34068
34068
|
w & C && (bs && console.log("[PostProcessing] Convolution effect: " + b.name), g && (bs && console.log("[PostProcessing] → Merging effects [" + m.map((M) => M.name).join(", ") + "]"), this.createPassForMergeableEffects(m, a, s, n)), g = !0), m.push(b);
|
|
34069
34069
|
} else b instanceof D.POSTPROCESSING.MODULE.Pass ? (g = !1, this.createPassForMergeableEffects(m, a, s, n), b.renderToScreen = !1, a.addPass(b)) : (g = !1, this.createPassForMergeableEffects(m, a, s, n), a.addPass(b));
|
|
@@ -34132,7 +34132,7 @@ var oA = Object.defineProperty, bx = (o, t, e, i) => {
|
|
|
34132
34132
|
return n && oA(t, e, n), n;
|
|
34133
34133
|
};
|
|
34134
34134
|
const fr = x("debugpost");
|
|
34135
|
-
class
|
|
34135
|
+
class Mh extends B {
|
|
34136
34136
|
constructor() {
|
|
34137
34137
|
super(...arguments);
|
|
34138
34138
|
r(this, "sharedProfile");
|
|
@@ -34282,15 +34282,15 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
|
|
|
34282
34282
|
c.active = e.value, this.scheduleRecreate();
|
|
34283
34283
|
return;
|
|
34284
34284
|
}
|
|
34285
|
-
if (!
|
|
34285
|
+
if (!pd.has(a)) {
|
|
34286
34286
|
const h = new Array();
|
|
34287
|
-
|
|
34287
|
+
pd.set(a, h);
|
|
34288
34288
|
const d = Object.keys(c);
|
|
34289
34289
|
for (const u of d)
|
|
34290
34290
|
c[u] instanceof N && h.push(u);
|
|
34291
34291
|
}
|
|
34292
|
-
if (
|
|
34293
|
-
const h = l.toLowerCase(), d =
|
|
34292
|
+
if (pd.has(a)) {
|
|
34293
|
+
const h = l.toLowerCase(), d = pd.get(a);
|
|
34294
34294
|
for (const u of d)
|
|
34295
34295
|
if (u.toLowerCase() === h) {
|
|
34296
34296
|
const f = c[u];
|
|
@@ -34315,12 +34315,12 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
|
|
|
34315
34315
|
}
|
|
34316
34316
|
bx([
|
|
34317
34317
|
ml(My)
|
|
34318
|
-
],
|
|
34318
|
+
], Mh.prototype, "sharedProfile");
|
|
34319
34319
|
bx([
|
|
34320
34320
|
ml()
|
|
34321
|
-
],
|
|
34322
|
-
const
|
|
34323
|
-
PE(
|
|
34321
|
+
], Mh.prototype, "multisampling");
|
|
34322
|
+
const pd = /* @__PURE__ */ new Map();
|
|
34323
|
+
PE(Mh);
|
|
34324
34324
|
async function Ay(o) {
|
|
34325
34325
|
const { NeedleEngineWebComponent: t } = await Promise.resolve().then(() => II);
|
|
34326
34326
|
t.observedAttributes.includes(o) || t.observedAttributes.push(o);
|
|
@@ -35513,7 +35513,7 @@ class gA extends Jn {
|
|
|
35513
35513
|
this.offset = this.offset.set(0, 0), this.zoom = 1, this.needsUpdate = !0;
|
|
35514
35514
|
}
|
|
35515
35515
|
}
|
|
35516
|
-
var yA = Object.defineProperty, _A = Object.getOwnPropertyDescriptor,
|
|
35516
|
+
var yA = Object.defineProperty, _A = Object.getOwnPropertyDescriptor, Rh = (o, t, e, i) => {
|
|
35517
35517
|
for (var n = i > 1 ? void 0 : i ? _A(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
35518
35518
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
35519
35519
|
return i && n && yA(t, e, n), n;
|
|
@@ -35797,19 +35797,19 @@ class ha extends B {
|
|
|
35797
35797
|
// private openWindowToSelectCamera(){
|
|
35798
35798
|
// }
|
|
35799
35799
|
}
|
|
35800
|
-
|
|
35800
|
+
Rh([
|
|
35801
35801
|
p()
|
|
35802
35802
|
], ha.prototype, "allowStartOnClick", 2);
|
|
35803
|
-
|
|
35803
|
+
Rh([
|
|
35804
35804
|
p()
|
|
35805
35805
|
], ha.prototype, "autoConnect", 2);
|
|
35806
|
-
|
|
35806
|
+
Rh([
|
|
35807
35807
|
p(xt)
|
|
35808
35808
|
], ha.prototype, "videoPlayer", 1);
|
|
35809
|
-
|
|
35809
|
+
Rh([
|
|
35810
35810
|
p()
|
|
35811
35811
|
], ha.prototype, "device", 2);
|
|
35812
|
-
|
|
35812
|
+
Rh([
|
|
35813
35813
|
p()
|
|
35814
35814
|
], ha.prototype, "deviceName", 2);
|
|
35815
35815
|
var bA = Object.defineProperty, Cx = (o, t, e, i) => {
|
|
@@ -35916,7 +35916,7 @@ Cx([
|
|
|
35916
35916
|
Cx([
|
|
35917
35917
|
p(ce)
|
|
35918
35918
|
], Tf.prototype, "shadowColor");
|
|
35919
|
-
var vA = Object.defineProperty,
|
|
35919
|
+
var vA = Object.defineProperty, Th = (o, t, e, i) => {
|
|
35920
35920
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
35921
35921
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
35922
35922
|
return n && vA(t, e, n), n;
|
|
@@ -36116,20 +36116,20 @@ const Qr = class extends B {
|
|
|
36116
36116
|
this.context.domElement.removeEventListener("dragover", this.onDragOverEvent), this.context.domElement.removeEventListener("drop", this.onDrop);
|
|
36117
36117
|
}
|
|
36118
36118
|
};
|
|
36119
|
-
|
|
36119
|
+
Th([
|
|
36120
36120
|
Vw(Qr.prototype.urlChangedSyncField),
|
|
36121
36121
|
p(URL)
|
|
36122
36122
|
], Qr.prototype, "url");
|
|
36123
|
-
|
|
36123
|
+
Th([
|
|
36124
36124
|
p()
|
|
36125
36125
|
], Qr.prototype, "allowDrop");
|
|
36126
|
-
|
|
36126
|
+
Th([
|
|
36127
36127
|
p()
|
|
36128
36128
|
], Qr.prototype, "background");
|
|
36129
|
-
|
|
36129
|
+
Th([
|
|
36130
36130
|
p()
|
|
36131
36131
|
], Qr.prototype, "environment");
|
|
36132
|
-
|
|
36132
|
+
Th([
|
|
36133
36133
|
p()
|
|
36134
36134
|
], Qr.prototype, "allowNetworking");
|
|
36135
36135
|
let Iy = Qr;
|
|
@@ -36152,13 +36152,13 @@ var CA = Object.defineProperty, Ef = (o, t, e, i) => {
|
|
|
36152
36152
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36153
36153
|
return n && CA(t, e, n), n;
|
|
36154
36154
|
}, Tr;
|
|
36155
|
-
const
|
|
36155
|
+
const Eh = (Tr = class extends B {
|
|
36156
36156
|
constructor() {
|
|
36157
36157
|
super(...arguments);
|
|
36158
36158
|
r(this, "target", null);
|
|
36159
36159
|
r(this, "followFactor", 0.1);
|
|
36160
36160
|
r(this, "rotateFactor", 0.1);
|
|
36161
|
-
r(this, "positionAxes",
|
|
36161
|
+
r(this, "positionAxes", dc.All);
|
|
36162
36162
|
r(this, "flipForward", !1);
|
|
36163
36163
|
r(this, "_firstUpdate", !0);
|
|
36164
36164
|
}
|
|
@@ -36172,7 +36172,7 @@ const Th = (Tr = class extends B {
|
|
|
36172
36172
|
if (!(!this.target || this.target === this.gameObject)) {
|
|
36173
36173
|
if (this.followFactor > 0) {
|
|
36174
36174
|
const i = ie(this.target), n = this._firstUpdate || e ? 1 : $.clamp01(this.context.time.deltaTime * this.followFactor), s = this.worldPosition;
|
|
36175
|
-
this.positionAxes &
|
|
36175
|
+
this.positionAxes & dc.X && (s.x = $.lerp(s.x, i.x, n)), this.positionAxes & dc.Y && (s.y = $.lerp(s.y, i.y, n)), this.positionAxes & dc.Z && (s.z = $.lerp(s.z, i.z, n)), this.worldPosition = s;
|
|
36176
36176
|
}
|
|
36177
36177
|
if (this.rotateFactor > 0) {
|
|
36178
36178
|
const i = Oe(this.target);
|
|
@@ -36186,23 +36186,23 @@ const Th = (Tr = class extends B {
|
|
|
36186
36186
|
}, r(Tr, "_invertForward", new W().setFromAxisAngle(new v(0, 1, 0), Math.PI)), Tr);
|
|
36187
36187
|
Ef([
|
|
36188
36188
|
p(I)
|
|
36189
|
-
],
|
|
36189
|
+
], Eh.prototype, "target");
|
|
36190
36190
|
Ef([
|
|
36191
36191
|
p()
|
|
36192
|
-
],
|
|
36192
|
+
], Eh.prototype, "followFactor");
|
|
36193
36193
|
Ef([
|
|
36194
36194
|
p()
|
|
36195
|
-
],
|
|
36195
|
+
], Eh.prototype, "rotateFactor");
|
|
36196
36196
|
Ef([
|
|
36197
36197
|
p()
|
|
36198
|
-
],
|
|
36199
|
-
let Ly =
|
|
36200
|
-
var PA = Object.defineProperty,
|
|
36198
|
+
], Eh.prototype, "positionAxes");
|
|
36199
|
+
let Ly = Eh;
|
|
36200
|
+
var PA = Object.defineProperty, Ah = (o, t, e, i) => {
|
|
36201
36201
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36202
36202
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36203
36203
|
return n && PA(t, e, n), n;
|
|
36204
36204
|
};
|
|
36205
|
-
const
|
|
36205
|
+
const Ec = x("debugspatialtrigger"), e0 = new No(), t0 = new No();
|
|
36206
36206
|
function OA(o, t) {
|
|
36207
36207
|
return e0.mask = o, t0.mask = t, e0.test(t0);
|
|
36208
36208
|
}
|
|
@@ -36223,7 +36223,7 @@ class Ws extends B {
|
|
|
36223
36223
|
* @internal
|
|
36224
36224
|
*/
|
|
36225
36225
|
start() {
|
|
36226
|
-
|
|
36226
|
+
Ec && console.log(this.name, this.triggerMask, this);
|
|
36227
36227
|
}
|
|
36228
36228
|
/**
|
|
36229
36229
|
* Checks for intersections with spatial triggers and fires appropriate events
|
|
@@ -36248,7 +36248,7 @@ class Ws extends B {
|
|
|
36248
36248
|
*/
|
|
36249
36249
|
onEnterTrigger(e) {
|
|
36250
36250
|
var i;
|
|
36251
|
-
|
|
36251
|
+
Ec && console.log("ENTER TRIGGER", this.name, e.name, this, e), e.raiseOnEnterEvent(this), (i = this.onEnter) == null || i.invoke();
|
|
36252
36252
|
}
|
|
36253
36253
|
/**
|
|
36254
36254
|
* Handles trigger exit events.
|
|
@@ -36256,7 +36256,7 @@ class Ws extends B {
|
|
|
36256
36256
|
*/
|
|
36257
36257
|
onExitTrigger(e) {
|
|
36258
36258
|
var i;
|
|
36259
|
-
|
|
36259
|
+
Ec && console.log("EXIT TRIGGER", this.name, e.name), e.raiseOnExitEvent(this), (i = this.onExit) == null || i.invoke();
|
|
36260
36260
|
}
|
|
36261
36261
|
/**
|
|
36262
36262
|
* Handles trigger stay events.
|
|
@@ -36267,16 +36267,16 @@ class Ws extends B {
|
|
|
36267
36267
|
e.raiseOnStayEvent(this), (i = this.onStay) == null || i.invoke();
|
|
36268
36268
|
}
|
|
36269
36269
|
}
|
|
36270
|
-
|
|
36270
|
+
Ah([
|
|
36271
36271
|
p()
|
|
36272
36272
|
], Ws.prototype, "triggerMask");
|
|
36273
|
-
|
|
36273
|
+
Ah([
|
|
36274
36274
|
p(Se)
|
|
36275
36275
|
], Ws.prototype, "onEnter");
|
|
36276
|
-
|
|
36276
|
+
Ah([
|
|
36277
36277
|
p(Se)
|
|
36278
36278
|
], Ws.prototype, "onStay");
|
|
36279
|
-
|
|
36279
|
+
Ah([
|
|
36280
36280
|
p(Se)
|
|
36281
36281
|
], Ws.prototype, "onExit");
|
|
36282
36282
|
var js;
|
|
@@ -36291,14 +36291,14 @@ const Ox = (js = class extends B {
|
|
|
36291
36291
|
* Initializes the trigger and logs debug info if enabled
|
|
36292
36292
|
*/
|
|
36293
36293
|
start() {
|
|
36294
|
-
|
|
36294
|
+
Ec && console.log(this.name, this.triggerMask, this);
|
|
36295
36295
|
}
|
|
36296
36296
|
/**
|
|
36297
36297
|
* Registers this trigger in the global registry and sets up debug visualization if enabled
|
|
36298
36298
|
*/
|
|
36299
36299
|
onEnable() {
|
|
36300
36300
|
var e;
|
|
36301
|
-
js.triggers.push(this), this.boxHelper || (this.boxHelper = S.addComponent(this.gameObject, Qs), (e = this.boxHelper) == null || e.showHelper(null,
|
|
36301
|
+
js.triggers.push(this), this.boxHelper || (this.boxHelper = S.addComponent(this.gameObject, Qs), (e = this.boxHelper) == null || e.showHelper(null, Ec));
|
|
36302
36302
|
}
|
|
36303
36303
|
/**
|
|
36304
36304
|
* Removes this trigger from the global registry when disabled
|
|
@@ -36344,7 +36344,7 @@ const Ox = (js = class extends B {
|
|
|
36344
36344
|
}
|
|
36345
36345
|
}, /** Global registry of all active spatial triggers in the scene */
|
|
36346
36346
|
r(js, "triggers", []), js);
|
|
36347
|
-
|
|
36347
|
+
Ah([
|
|
36348
36348
|
p()
|
|
36349
36349
|
], Ox.prototype, "triggerMask");
|
|
36350
36350
|
let Dy = Ox;
|
|
@@ -37187,7 +37187,7 @@ class Tx extends B {
|
|
|
37187
37187
|
}
|
|
37188
37188
|
awake() {
|
|
37189
37189
|
if (this.useFlatbuffers)
|
|
37190
|
-
this.context.connection.beginListenBinary(
|
|
37190
|
+
this.context.connection.beginListenBinary(Qc, (e) => {
|
|
37191
37191
|
});
|
|
37192
37192
|
else {
|
|
37193
37193
|
this.models = [];
|
|
@@ -37746,7 +37746,7 @@ const HA = x("mutetimeline"), Pr = class Pr extends Df {
|
|
|
37746
37746
|
}
|
|
37747
37747
|
};
|
|
37748
37748
|
r(Pr, "_audioBuffers", /* @__PURE__ */ new Map());
|
|
37749
|
-
let
|
|
37749
|
+
let nh = Pr;
|
|
37750
37750
|
class yu extends Df {
|
|
37751
37751
|
constructor() {
|
|
37752
37752
|
super(...arguments);
|
|
@@ -37800,7 +37800,7 @@ class zy extends Df {
|
|
|
37800
37800
|
console.log("no source object, removing model", i, s), this.models.splice(i, 1);
|
|
37801
37801
|
continue;
|
|
37802
37802
|
} else {
|
|
37803
|
-
const a = S.getComponent(s.sourceObject,
|
|
37803
|
+
const a = S.getComponent(s.sourceObject, sh);
|
|
37804
37804
|
this.timelines.push(a), a && s.updateDirector && (a.playOnAwake = !1);
|
|
37805
37805
|
}
|
|
37806
37806
|
}
|
|
@@ -38194,7 +38194,7 @@ const Uy = (Io = class extends B {
|
|
|
38194
38194
|
}
|
|
38195
38195
|
} else if (a.type === Ki.Audio) {
|
|
38196
38196
|
if (!a.clips || a.clips.length <= 0) continue;
|
|
38197
|
-
const h = new
|
|
38197
|
+
const h = new nh();
|
|
38198
38198
|
h.director = this, h.track = a, h.audioSource = a.outputs.find((d) => d instanceof Mn), this._audioTracks.push(h), e || (e = (s = this.context.mainCameraComponent) == null ? void 0 : s.gameObject.addComponent(Eo)), h.listener = e.listener;
|
|
38199
38199
|
for (let d = 0; d < a.clips.length; d++) {
|
|
38200
38200
|
const u = a.clips[d];
|
|
@@ -38250,7 +38250,7 @@ Lx([
|
|
|
38250
38250
|
Lx([
|
|
38251
38251
|
p()
|
|
38252
38252
|
], Uy.prototype, "extrapolationMode");
|
|
38253
|
-
let
|
|
38253
|
+
let sh = Uy;
|
|
38254
38254
|
var qA = Object.defineProperty, jf = (o, t, e, i) => {
|
|
38255
38255
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38256
38256
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -38353,7 +38353,7 @@ class Ll extends B {
|
|
|
38353
38353
|
/** @internal */
|
|
38354
38354
|
onEnable() {
|
|
38355
38355
|
var e;
|
|
38356
|
-
if (!(this.isGizmo && !
|
|
38356
|
+
if (!(this.isGizmo && !lh) && this.context.mainCamera && (this._control || (this._control = new BC(this.context.mainCamera, this.context.renderer.domElement), this._control.enabled = !0, this._control.getRaycaster().layers.set(2), this._control.size = 1, ("_root" in this._control ? this._control._root : this._control).traverse((n) => {
|
|
38357
38357
|
const s = n;
|
|
38358
38358
|
if (s.layers.set(2), s) {
|
|
38359
38359
|
const a = s.material;
|
|
@@ -38410,7 +38410,7 @@ class Ny {
|
|
|
38410
38410
|
Bf([
|
|
38411
38411
|
p(ze)
|
|
38412
38412
|
], Ny.prototype, "texture", 2);
|
|
38413
|
-
let
|
|
38413
|
+
let Ih = class extends _f {
|
|
38414
38414
|
constructor() {
|
|
38415
38415
|
super(...arguments);
|
|
38416
38416
|
r(this, "_sprite");
|
|
@@ -38451,10 +38451,10 @@ let Ah = class extends _f {
|
|
|
38451
38451
|
};
|
|
38452
38452
|
Bf([
|
|
38453
38453
|
p(Ny)
|
|
38454
|
-
],
|
|
38454
|
+
], Ih.prototype, "sprite", 1);
|
|
38455
38455
|
Bf([
|
|
38456
38456
|
p()
|
|
38457
|
-
],
|
|
38457
|
+
], Ih.prototype, "pixelsPerUnitMultiplier", 2);
|
|
38458
38458
|
class $y extends _f {
|
|
38459
38459
|
constructor() {
|
|
38460
38460
|
super(...arguments);
|
|
@@ -38591,7 +38591,7 @@ class or extends B {
|
|
|
38591
38591
|
this._requestedAnimatorTrigger = e, yield, yield, this._requestedAnimatorTrigger == e && ((i = this.animator) == null || i.setTrigger(e));
|
|
38592
38592
|
}
|
|
38593
38593
|
init() {
|
|
38594
|
-
this._isInit || (this._isInit = !0, this._image = S.getComponent(this.gameObject,
|
|
38594
|
+
this._isInit || (this._isInit = !0, this._image = S.getComponent(this.gameObject, Ih), this._image && (this.stateSetup(this._image), this.interactable ? this._image.setState("normal") : this._image.setState("disabled")));
|
|
38595
38595
|
}
|
|
38596
38596
|
stateSetup(e) {
|
|
38597
38597
|
var m, g, y, _, b;
|
|
@@ -38667,7 +38667,7 @@ var JA = Object.defineProperty, Ff = (o, t, e, i) => {
|
|
|
38667
38667
|
};
|
|
38668
38668
|
const fo = x("debuginputfield");
|
|
38669
38669
|
var Q;
|
|
38670
|
-
const
|
|
38670
|
+
const Lh = (Q = class extends B {
|
|
38671
38671
|
constructor() {
|
|
38672
38672
|
super(...arguments);
|
|
38673
38673
|
r(this, "textComponent");
|
|
@@ -38814,17 +38814,17 @@ const Ih = (Q = class extends B {
|
|
|
38814
38814
|
}, r(Q, "active", null), r(Q, "activeTime", -1), r(Q, "htmlField", null), r(Q, "htmlFieldFocused", !1), Q);
|
|
38815
38815
|
Ff([
|
|
38816
38816
|
p(ai)
|
|
38817
|
-
],
|
|
38817
|
+
], Lh.prototype, "textComponent");
|
|
38818
38818
|
Ff([
|
|
38819
38819
|
p(ai)
|
|
38820
|
-
],
|
|
38820
|
+
], Lh.prototype, "placeholder");
|
|
38821
38821
|
Ff([
|
|
38822
38822
|
p(Se)
|
|
38823
|
-
],
|
|
38823
|
+
], Lh.prototype, "onValueChanged");
|
|
38824
38824
|
Ff([
|
|
38825
38825
|
p(Se)
|
|
38826
|
-
],
|
|
38827
|
-
let Dx =
|
|
38826
|
+
], Lh.prototype, "onEndEdit");
|
|
38827
|
+
let Dx = Lh;
|
|
38828
38828
|
var eI = Object.defineProperty, jx = (o, t, e, i) => {
|
|
38829
38829
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38830
38830
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -39075,7 +39075,7 @@ var nI = Object.defineProperty, Uf = (o, t, e, i) => {
|
|
|
39075
39075
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39076
39076
|
return n && nI(t, e, n), n;
|
|
39077
39077
|
}, Er;
|
|
39078
|
-
const
|
|
39078
|
+
const Dh = (Er = class extends B {
|
|
39079
39079
|
constructor() {
|
|
39080
39080
|
super(...arguments);
|
|
39081
39081
|
r(this, "target");
|
|
@@ -39116,23 +39116,23 @@ const Lh = (Er = class extends B {
|
|
|
39116
39116
|
}, r(Er, "flipYQuat", new W().setFromAxisAngle(new v(0, 1, 0), Math.PI)), Er);
|
|
39117
39117
|
Uf([
|
|
39118
39118
|
p(I)
|
|
39119
|
-
],
|
|
39119
|
+
], Dh.prototype, "target");
|
|
39120
39120
|
Uf([
|
|
39121
39121
|
p()
|
|
39122
|
-
],
|
|
39122
|
+
], Dh.prototype, "invertForward");
|
|
39123
39123
|
Uf([
|
|
39124
39124
|
p()
|
|
39125
|
-
],
|
|
39125
|
+
], Dh.prototype, "keepUpDirection");
|
|
39126
39126
|
Uf([
|
|
39127
39127
|
p()
|
|
39128
|
-
],
|
|
39129
|
-
let Bx =
|
|
39128
|
+
], Dh.prototype, "copyTargetRotation");
|
|
39129
|
+
let Bx = Dh;
|
|
39130
39130
|
var sI = Object.defineProperty, Vy = (o, t, e, i) => {
|
|
39131
39131
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39132
39132
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39133
39133
|
return n && sI(t, e, n), n;
|
|
39134
39134
|
};
|
|
39135
|
-
class
|
|
39135
|
+
class jh extends B {
|
|
39136
39136
|
constructor() {
|
|
39137
39137
|
super(...arguments);
|
|
39138
39138
|
r(this, "url");
|
|
@@ -39184,13 +39184,13 @@ class Dh extends B {
|
|
|
39184
39184
|
}
|
|
39185
39185
|
Vy([
|
|
39186
39186
|
p()
|
|
39187
|
-
],
|
|
39187
|
+
], jh.prototype, "url");
|
|
39188
39188
|
Vy([
|
|
39189
39189
|
p()
|
|
39190
|
-
],
|
|
39190
|
+
], jh.prototype, "mode");
|
|
39191
39191
|
Vy([
|
|
39192
39192
|
p()
|
|
39193
|
-
],
|
|
39193
|
+
], jh.prototype, "clickable");
|
|
39194
39194
|
var oI = Object.defineProperty, Dl = (o, t, e, i) => {
|
|
39195
39195
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39196
39196
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -39332,7 +39332,7 @@ function zx(o) {
|
|
|
39332
39332
|
const b = l.getRenderTarget(), w = l.getClearColor(new re()), C = l.getClearAlpha(), M = i.scene.background, k = "aspect" in a ? a.aspect : null;
|
|
39333
39333
|
try {
|
|
39334
39334
|
const U = o.render_events !== !1, T = new Array();
|
|
39335
|
-
U && (
|
|
39335
|
+
U && (ch(i.scene, ln, T), T.forEach((j) => {
|
|
39336
39336
|
var V;
|
|
39337
39337
|
if (j == null || j.onBeforeRender(), j.isInstancingActive && j.instances)
|
|
39338
39338
|
for (let Z = 0; Z < ((V = j.instances) == null ? void 0 : V.length); Z++) {
|
|
@@ -40225,20 +40225,20 @@ O.add("Avatar_MouthShapes", nf);
|
|
|
40225
40225
|
O.add("Avatar_MustacheShake", nw);
|
|
40226
40226
|
O.add("AvatarBlink_Simple", yl);
|
|
40227
40227
|
O.add("AvatarEyeLook_Rotation", rw);
|
|
40228
|
-
O.add("AxesHelper",
|
|
40228
|
+
O.add("AxesHelper", fh);
|
|
40229
40229
|
O.add("BasicIKConstraint", aw);
|
|
40230
40230
|
O.add("BoxHelperComponent", Qs);
|
|
40231
40231
|
O.add("Camera", Ii);
|
|
40232
40232
|
O.add("CharacterController", _l);
|
|
40233
40233
|
O.add("CharacterControllerInput", qo);
|
|
40234
40234
|
O.add("Collider", Ni);
|
|
40235
|
-
O.add("SphereCollider",
|
|
40235
|
+
O.add("SphereCollider", ph);
|
|
40236
40236
|
O.add("BoxCollider", ey);
|
|
40237
40237
|
O.add("MeshCollider", na);
|
|
40238
40238
|
O.add("CapsuleCollider", Vo);
|
|
40239
40239
|
O.add("ContactShadows", rf);
|
|
40240
40240
|
O.add("LogStats", cw);
|
|
40241
|
-
O.add("DeleteBox",
|
|
40241
|
+
O.add("DeleteBox", Yc);
|
|
40242
40242
|
O.add("Deletable", dw);
|
|
40243
40243
|
O.add("DeviceFlag", ty);
|
|
40244
40244
|
O.add("DragControls", Ra);
|
|
@@ -40252,18 +40252,18 @@ O.add("VariantAction", zw);
|
|
|
40252
40252
|
O.add("ChangeTransformOnClick", xl);
|
|
40253
40253
|
O.add("ChangeMaterialOnClick", Uw);
|
|
40254
40254
|
O.add("SetActiveOnClick", Nw);
|
|
40255
|
-
O.add("HideOnStart",
|
|
40256
|
-
O.add("EmphasizeOnClick",
|
|
40255
|
+
O.add("HideOnStart", Zc);
|
|
40256
|
+
O.add("EmphasizeOnClick", yh);
|
|
40257
40257
|
O.add("PlayAudioOnClick", Hr);
|
|
40258
40258
|
O.add("PlayAnimationOnClick", du);
|
|
40259
|
-
O.add("PreliminaryAction",
|
|
40259
|
+
O.add("PreliminaryAction", _h);
|
|
40260
40260
|
O.add("PreliminaryTrigger", df);
|
|
40261
40261
|
O.add("VisibilityAction", uf);
|
|
40262
40262
|
O.add("TapGestureTrigger", $w);
|
|
40263
40263
|
O.add("USDZExporter", $s);
|
|
40264
|
-
O.add("Fog",
|
|
40264
|
+
O.add("Fog", wh);
|
|
40265
40265
|
O.add("BoxGizmo", kl);
|
|
40266
|
-
O.add("GridHelper",
|
|
40266
|
+
O.add("GridHelper", xh);
|
|
40267
40267
|
O.add("GroundProjectedEnv", Js);
|
|
40268
40268
|
O.add("UsageMarker", af);
|
|
40269
40269
|
O.add("Interactable", hw);
|
|
@@ -40280,7 +40280,7 @@ O.add("CameraTargetReachedEvent", su);
|
|
|
40280
40280
|
O.add("OrbitControls", xe);
|
|
40281
40281
|
O.add("ParticleSystemRenderer", An);
|
|
40282
40282
|
O.add("ParticleSystem", fu);
|
|
40283
|
-
O.add("PlayerColor",
|
|
40283
|
+
O.add("PlayerColor", ih);
|
|
40284
40284
|
O.add("Antialiasing", Cf);
|
|
40285
40285
|
O.add("BloomEffect", Ty);
|
|
40286
40286
|
O.add("ChromaticAberration", Of);
|
|
@@ -40294,7 +40294,7 @@ O.add("SharpeningEffect", Rf);
|
|
|
40294
40294
|
O.add("TiltShiftEffect", oo);
|
|
40295
40295
|
O.add("ToneMappingEffect", Xr);
|
|
40296
40296
|
O.add("Vignette", Il);
|
|
40297
|
-
O.add("Volume",
|
|
40297
|
+
O.add("Volume", Mh);
|
|
40298
40298
|
O.add("ReflectionProbe", cu);
|
|
40299
40299
|
O.add("Renderer", ln);
|
|
40300
40300
|
O.add("MeshRenderer", cf);
|
|
@@ -40314,28 +40314,28 @@ O.add("SyncedRoom", ps);
|
|
|
40314
40314
|
O.add("SyncedTransform", Xs);
|
|
40315
40315
|
O.add("TestRunner", Rx);
|
|
40316
40316
|
O.add("TestSimulateUserData", Tx);
|
|
40317
|
-
O.add("PlayableDirector",
|
|
40317
|
+
O.add("PlayableDirector", sh);
|
|
40318
40318
|
O.add("SignalReceiver", Lf);
|
|
40319
40319
|
O.add("AnimationTrackHandler", Fy);
|
|
40320
|
-
O.add("AudioTrackHandler",
|
|
40320
|
+
O.add("AudioTrackHandler", nh);
|
|
40321
40321
|
O.add("SignalTrackHandler", yu);
|
|
40322
40322
|
O.add("ControlTrackHandler", zy);
|
|
40323
40323
|
O.add("TransformGizmo", Ll);
|
|
40324
40324
|
O.add("BaseUIComponent", Rn);
|
|
40325
40325
|
O.add("UIRootComponent", gf);
|
|
40326
40326
|
O.add("Button", or);
|
|
40327
|
-
O.add("Canvas",
|
|
40327
|
+
O.add("Canvas", eh);
|
|
40328
40328
|
O.add("CanvasGroup", qr);
|
|
40329
40329
|
O.add("EventSystem", _i);
|
|
40330
40330
|
O.add("Graphic", yf);
|
|
40331
40331
|
O.add("MaskableGraphic", _f);
|
|
40332
|
-
O.add("Image",
|
|
40332
|
+
O.add("Image", Ih);
|
|
40333
40333
|
O.add("RawImage", $y);
|
|
40334
40334
|
O.add("InputField", Dx);
|
|
40335
40335
|
O.add("VerticalLayoutGroup", ex);
|
|
40336
40336
|
O.add("HorizontalLayoutGroup", tx);
|
|
40337
40337
|
O.add("GridLayoutGroup", ix);
|
|
40338
|
-
O.add("Outline",
|
|
40338
|
+
O.add("Outline", vh);
|
|
40339
40339
|
O.add("ObjectRaycaster", an);
|
|
40340
40340
|
O.add("GraphicRaycaster", qg);
|
|
40341
40341
|
O.add("SpatialGrabRaycaster", dl);
|
|
@@ -40344,7 +40344,7 @@ O.add("SpatialHtml", zf);
|
|
|
40344
40344
|
O.add("Text", ai);
|
|
40345
40345
|
O.add("EnvironmentScene", Wy);
|
|
40346
40346
|
O.add("LookAt", Bx);
|
|
40347
|
-
O.add("OpenURL",
|
|
40347
|
+
O.add("OpenURL", jh);
|
|
40348
40348
|
O.add("VideoPlayer", xt);
|
|
40349
40349
|
O.add("Voip", ia);
|
|
40350
40350
|
O.add("Avatar", Gr);
|
|
@@ -40363,7 +40363,7 @@ O.add("XRFlag", wn);
|
|
|
40363
40363
|
O.add("PlayerSync", Gw);
|
|
40364
40364
|
O.add("PlayerState", Hn);
|
|
40365
40365
|
O.add("PresentationMode", yI);
|
|
40366
|
-
const
|
|
40366
|
+
const Ac = bt, _I = x("debugtypestore");
|
|
40367
40367
|
_I && console.log(O);
|
|
40368
40368
|
function bI(o, t) {
|
|
40369
40369
|
const i = CO(o, t);
|
|
@@ -40409,13 +40409,13 @@ const sg = Symbol("original-component-name"), ba = /* @__PURE__ */ new Map();
|
|
|
40409
40409
|
function og(o, t, e, i) {
|
|
40410
40410
|
if (t === null || !o) return;
|
|
40411
40411
|
const n = o.guid, s = o.guid;
|
|
40412
|
-
s != null && s.length && (ba.has(s) || (
|
|
40412
|
+
s != null && s.length && (ba.has(s) || (Ac && console.log('Creating InstanceIdProvider with key "' + s + '" for object ' + o.name), ba.set(s, new Ft(s))));
|
|
40413
40413
|
const a = s && ba.get(s) || t;
|
|
40414
40414
|
if (o.guid = a.generateUUID(), n && n !== "invalid" && (e[n] = o.guid), o && o.userData && o.userData.components)
|
|
40415
40415
|
for (const l of o.userData.components) {
|
|
40416
40416
|
if (l === null) continue;
|
|
40417
40417
|
const c = l.guid;
|
|
40418
|
-
c ? ba.has(c) || (
|
|
40418
|
+
c ? ba.has(c) || (Ac && console.log('Creating InstanceIdProvider with key "' + c + '" for component ' + l[sg]), ba.set(c, new Ft(c))) : Ac && console.warn("Can not create IdProvider: component " + l[sg] + " has no guid", l.guid);
|
|
40419
40419
|
const h = ba.get(c) || t, d = l.guid;
|
|
40420
40420
|
l.guid = h.generateUUID(), d && d !== "invalid" && (e[d] = l.guid), l.resolveGuids && i.push(l);
|
|
40421
40421
|
}
|
|
@@ -40439,7 +40439,7 @@ async function rg(o, t, e, i) {
|
|
|
40439
40439
|
const m = new f();
|
|
40440
40440
|
m.sourceId = o.gltfId, ol(m, u, o.implementationInformation), m.context = o.context, "guid" in u && (m[gd] = u.guid), m[sg] = u.name, Ha(t, m, !1), e.push({ instance: m, compData: u, obj: t }), m.isCamera && o.context && o.context.mainCamera === null && m.tag === "MainCamera" && o.context.setCurrentCamera(m), ((l = (a = (s = o.context) == null ? void 0 : s.physics) == null ? void 0 : a.engine) == null ? void 0 : l.isInitialized) === !1 && (m.isCollider || m.isRigidbody) && ((h = (c = o.context) == null ? void 0 : c.physics.engine) == null || h.initialize());
|
|
40441
40441
|
} else
|
|
40442
|
-
|
|
40442
|
+
Ac && console.debug("unknown component: " + u.name), Jl.includes(u.name) || Jl.push(u.name);
|
|
40443
40443
|
} catch (f) {
|
|
40444
40444
|
console.error(u.name + " - " + f.message, f);
|
|
40445
40445
|
}
|
|
@@ -40459,7 +40459,7 @@ This could mean you forgot to add a npmdef to your ExportInfo
|
|
|
40459
40459
|
}
|
|
40460
40460
|
function xI(o, t) {
|
|
40461
40461
|
const { instance: e, compData: i, obj: n } = o;
|
|
40462
|
-
t.object = n, t.target = e, Sm(e, i, t),
|
|
40462
|
+
t.object = n, t.target = e, Sm(e, i, t), Ac && console.debug("add " + i.name, i, e);
|
|
40463
40463
|
}
|
|
40464
40464
|
class Ux {
|
|
40465
40465
|
createBuiltinComponents(t, e, i, n, s) {
|
|
@@ -40524,7 +40524,7 @@ async function CI(o, t, e, i) {
|
|
|
40524
40524
|
if (n instanceof bg) {
|
|
40525
40525
|
typeof t != "string" && (t = new TextDecoder().decode(t));
|
|
40526
40526
|
const l = n.parse(t);
|
|
40527
|
-
return await
|
|
40527
|
+
return await Ic(n, o, e, l, i, s);
|
|
40528
40528
|
}
|
|
40529
40529
|
if (!(n instanceof Gs)) {
|
|
40530
40530
|
if (n.parse === void 0) {
|
|
@@ -40532,14 +40532,14 @@ async function CI(o, t, e, i) {
|
|
|
40532
40532
|
return;
|
|
40533
40533
|
}
|
|
40534
40534
|
const l = n.parse(t, e);
|
|
40535
|
-
return await
|
|
40535
|
+
return await Ic(n, o, e, l, i, s);
|
|
40536
40536
|
}
|
|
40537
40537
|
return new Promise((l, c) => {
|
|
40538
40538
|
try {
|
|
40539
40539
|
let h = e.split("?")[0].trimEnd();
|
|
40540
40540
|
const d = h.split("/");
|
|
40541
40541
|
d.length > 0 && d[d.length - 1] !== "" && d.pop(), h = d.join("/"), h.endsWith("/") || (h += "/"), n.resourcePath = h, n.parse(t, "", async (u) => {
|
|
40542
|
-
const f = await
|
|
40542
|
+
const f = await Ic(n, o, e, u, i, s);
|
|
40543
40543
|
l(f);
|
|
40544
40544
|
}, (u) => {
|
|
40545
40545
|
console.error('Loading asset at "' + e + `" failed
|
|
@@ -40558,12 +40558,12 @@ async function Wx(o, t, e, i, n) {
|
|
|
40558
40558
|
const { componentsExtension: a } = Vx(s, o);
|
|
40559
40559
|
if (!(s instanceof Gs)) {
|
|
40560
40560
|
const l = await s.loadAsync(t, n);
|
|
40561
|
-
return await
|
|
40561
|
+
return await Ic(s, o, t, l, i, a);
|
|
40562
40562
|
}
|
|
40563
40563
|
return new Promise((l, c) => {
|
|
40564
40564
|
try {
|
|
40565
40565
|
s.load(t, async (h) => {
|
|
40566
|
-
const d = await
|
|
40566
|
+
const d = await Ic(s, o, e, h, i, a);
|
|
40567
40567
|
l(d);
|
|
40568
40568
|
}, (h) => {
|
|
40569
40569
|
n == null || n.call(s, h);
|
|
@@ -40580,7 +40580,7 @@ function Vx(o, t) {
|
|
|
40580
40580
|
const e = vw(o);
|
|
40581
40581
|
return o instanceof Gs && Wg(o, t), { componentsExtension: e };
|
|
40582
40582
|
}
|
|
40583
|
-
async function
|
|
40583
|
+
async function Ic(o, t, e, i, n, s) {
|
|
40584
40584
|
var a;
|
|
40585
40585
|
if (Nx && console.warn("Loaded", e, i), i == null)
|
|
40586
40586
|
return console.error(`Loaded model is null '${e}' - please make sure the loader is registered correctly`), {
|
|
@@ -40753,7 +40753,7 @@ function Gx(o) {
|
|
|
40753
40753
|
const i = o.index / t + ic / t;
|
|
40754
40754
|
return $.clamp01(i);
|
|
40755
40755
|
}
|
|
40756
|
-
const
|
|
40756
|
+
const zc = class zc {
|
|
40757
40757
|
/**
|
|
40758
40758
|
* Creates a new loading view
|
|
40759
40759
|
* @param owner the element that will contain the loading view (should be the NeedleEngineHTMLElement)
|
|
@@ -40778,7 +40778,7 @@ const Fc = class Fc {
|
|
|
40778
40778
|
if (wr && console.warn("Begin Loading"), !this._loadingElement) {
|
|
40779
40779
|
for (let i = 0; i < e.children.length; i++) {
|
|
40780
40780
|
const n = e.children[i];
|
|
40781
|
-
if (n.classList.contains(
|
|
40781
|
+
if (n.classList.contains(zc.LoadingContainerClassName)) {
|
|
40782
40782
|
if (!this._allowCustomLoadingElement) {
|
|
40783
40783
|
wr && console.warn("Remove custom loading container"), e.removeChild(n);
|
|
40784
40784
|
continue;
|
|
@@ -40828,7 +40828,7 @@ const Fc = class Fc {
|
|
|
40828
40828
|
const g = this._element.getAttribute("loading-background");
|
|
40829
40829
|
g ? this._loadingElement.style.background = g : this._loadingElement.style.backgroundColor = "transparent", this._loadingElement.style.display = "flex", this._loadingElement.style.alignItems = "center", this._loadingElement.style.justifyContent = "center", this._loadingElement.style.zIndex = Number.MAX_SAFE_INTEGER.toString(), this._loadingElement.style.flexDirection = "column", this._loadingElement.style.pointerEvents = "none", this._loadingElement.style.color = "white", this._loadingElement.style.fontFamily = 'system-ui, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', this._loadingElement.style.fontSize = "1rem", e === "light" ? this._loadingElement.style.color = "rgba(0,0,0,.6)" : this._loadingElement.style.color = "rgba(255,255,255,.3)";
|
|
40830
40830
|
}
|
|
40831
|
-
const n = ((f = this._loadingElementOptions) == null ? void 0 : f.className) ??
|
|
40831
|
+
const n = ((f = this._loadingElementOptions) == null ? void 0 : f.className) ?? zc.LoadingContainerClassName;
|
|
40832
40832
|
if (this._loadingElement.classList.add(n), (m = this._loadingElementOptions) != null && m.additionalClasses)
|
|
40833
40833
|
for (const g of this._loadingElementOptions.additionalClasses)
|
|
40834
40834
|
this._loadingElement.classList.add(g);
|
|
@@ -40876,8 +40876,8 @@ const Fc = class Fc {
|
|
|
40876
40876
|
CLICK HERE TO GET A LICENSE`, i.style.cursor = "pointer", i.style.userSelect = "none", i.style.textAlign = "center", i.style.pointerEvents = "all", i.addEventListener("click", () => window.open("https://needle.tools/pricing", "_self")), i.style.opacity = "0", t.appendChild(i), !z() && Fo && (r0 && console.log("Waiting for runtime license check"), await Fo, e = Ns()), !e && (i.style.transition = "opacity .5s ease-in-out", i.style.opacity = "1");
|
|
40877
40877
|
}
|
|
40878
40878
|
};
|
|
40879
|
-
r(
|
|
40880
|
-
let ag =
|
|
40879
|
+
r(zc, "LoadingContainerClassName", "loading");
|
|
40880
|
+
let ag = zc;
|
|
40881
40881
|
sv(Ux);
|
|
40882
40882
|
const Ae = x("debugwebcomponent"), l0 = "needle-engine", qx = "vr", Xx = "desktop", TI = [Hx, qx, Xx], nc = "ar-session-active", sc = "desktop-session-active", EI = [
|
|
40883
40883
|
"public-key",
|
|
@@ -41125,7 +41125,7 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
41125
41125
|
break;
|
|
41126
41126
|
}
|
|
41127
41127
|
case "public-key": {
|
|
41128
|
-
n !=
|
|
41128
|
+
n != ac && this.setPublicKey();
|
|
41129
41129
|
break;
|
|
41130
41130
|
}
|
|
41131
41131
|
case "version": {
|
|
@@ -41278,7 +41278,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
41278
41278
|
}
|
|
41279
41279
|
}
|
|
41280
41280
|
setPublicKey() {
|
|
41281
|
-
|
|
41281
|
+
ac && ac.length > 0 && this.setAttribute("public-key", ac);
|
|
41282
41282
|
}
|
|
41283
41283
|
setVersion() {
|
|
41284
41284
|
Kn.length > 0 && this.setAttribute("version", Kn);
|
|
@@ -42195,10 +42195,10 @@ class p2 {
|
|
|
42195
42195
|
{
|
|
42196
42196
|
let _ = null;
|
|
42197
42197
|
if (c.endsWith(".hdr")) {
|
|
42198
|
-
const b = (await import("./three-examples-
|
|
42198
|
+
const b = (await import("./three-examples-B50TT3Iu.js").then((w) => w.RGBELoader$1)).RGBELoader;
|
|
42199
42199
|
_ = new b();
|
|
42200
42200
|
} else if (c.endsWith(".exr")) {
|
|
42201
|
-
const b = (await import("./three-examples-
|
|
42201
|
+
const b = (await import("./three-examples-B50TT3Iu.js").then((w) => w.EXRLoader$1)).EXRLoader;
|
|
42202
42202
|
_ = new b();
|
|
42203
42203
|
}
|
|
42204
42204
|
if (_) {
|
|
@@ -42263,7 +42263,7 @@ class FI {
|
|
|
42263
42263
|
}
|
|
42264
42264
|
onBeforeExport(t) {
|
|
42265
42265
|
t.context.animations.mixers.forEach((e) => {
|
|
42266
|
-
const i =
|
|
42266
|
+
const i = qc.tryGetActionsFromMixer(e);
|
|
42267
42267
|
if (i)
|
|
42268
42268
|
for (let n = 0; n < i.length; n++) {
|
|
42269
42269
|
const s = i[n];
|
|
@@ -42285,7 +42285,7 @@ class FI {
|
|
|
42285
42285
|
}
|
|
42286
42286
|
function zI(o, t, e) {
|
|
42287
42287
|
o.animations.mixers.forEach((n) => {
|
|
42288
|
-
const s =
|
|
42288
|
+
const s = qc.tryGetActionsFromMixer(n);
|
|
42289
42289
|
if (s)
|
|
42290
42290
|
for (let a = 0; a < s.length; a++) {
|
|
42291
42291
|
const c = s[a].getClip();
|
|
@@ -42293,12 +42293,12 @@ function zI(o, t, e) {
|
|
|
42293
42293
|
}
|
|
42294
42294
|
}), Array.isArray(t) || (t = [t]);
|
|
42295
42295
|
for (const n of t)
|
|
42296
|
-
|
|
42296
|
+
qc.tryGetAnimationClipsFromObjectHierarchy(n, e);
|
|
42297
42297
|
const i = new Set(e);
|
|
42298
42298
|
return Array.from(i);
|
|
42299
42299
|
}
|
|
42300
42300
|
const u0 = "needle-button", Jp = z();
|
|
42301
|
-
var Ar, Ir, Lr, Kt, Os, Xa, fl, Kx, Zx,
|
|
42301
|
+
var Ar, Ir, Lr, Kt, Os, Xa, fl, Kx, Zx, ah;
|
|
42302
42302
|
class Yx extends HTMLElement {
|
|
42303
42303
|
constructor() {
|
|
42304
42304
|
super();
|
|
@@ -42312,10 +42312,10 @@ class Yx extends HTMLElement {
|
|
|
42312
42312
|
/** If AR or VR is requested we create and use the webxr button factory to create a button with default behaviour */
|
|
42313
42313
|
pn(this, Os);
|
|
42314
42314
|
pn(this, Xa);
|
|
42315
|
-
pn(this,
|
|
42315
|
+
pn(this, ah, (e) => {
|
|
42316
42316
|
Jp && console.log("Needle Button clicked"), !e.defaultPrevented && fe(this, Kt) && fe(this, Kt).click();
|
|
42317
42317
|
});
|
|
42318
|
-
this.removeEventListener("click", fe(this,
|
|
42318
|
+
this.removeEventListener("click", fe(this, ah)), this.addEventListener("click", fe(this, ah));
|
|
42319
42319
|
}
|
|
42320
42320
|
attributeChangedCallback(e, i, n) {
|
|
42321
42321
|
zl(this, fl, Kx).call(this);
|
|
@@ -42370,7 +42370,7 @@ Ar = new WeakMap(), Ir = new WeakMap(), Lr = new WeakMap(), Kt = new WeakMap(),
|
|
|
42370
42370
|
`), fe(this, Ir).innerHTML = fe(this, Kt).innerHTML, fe(this, Ir).style.cssText = "display: flex; align-items: center; justify-content: center;", fe(this, Kt).innerHTML = fe(this, Ir).outerHTML, fe(this, Ar).innerHTML = fe(this, Kt).outerHTML, fe(this, Ar).prepend(fe(this, Lr)), Jd(Tm, { element: fe(this, Ar) }), (n = fe(this, Xa)) == null || n.disconnect(), fe(this, Xa) ?? mn(this, Xa, new MutationObserver(() => zl(this, fl, Zx).call(this))), fe(this, Xa).observe(fe(this, Kt), { attributes: !0 }), Jp && console.log("Needle Button updated");
|
|
42371
42371
|
}, Zx = function() {
|
|
42372
42372
|
fe(this, Kt) && (fe(this, Kt).style.display === "none" ? this.style.display = "none" : this.style.display === "none" && (this.style.display = ""));
|
|
42373
|
-
},
|
|
42373
|
+
}, ah = new WeakMap(), r(Yx, "observedAttributes", ["ar", "vr", "quicklook"]);
|
|
42374
42374
|
typeof window < "u" && !window.customElements.get(u0) && window.customElements.define(u0, Yx);
|
|
42375
42375
|
const oc = x("debugavatar");
|
|
42376
42376
|
class Jx {
|
|
@@ -42421,7 +42421,7 @@ class UI {
|
|
|
42421
42421
|
if (typeof e == "string") {
|
|
42422
42422
|
if (i = await this.loadAvatar(t, e), !i) {
|
|
42423
42423
|
const s = new as();
|
|
42424
|
-
i = S.instantiate(
|
|
42424
|
+
i = S.instantiate(Nc(e, t.scene), s);
|
|
42425
42425
|
}
|
|
42426
42426
|
} else i = e;
|
|
42427
42427
|
if (!i)
|
|
@@ -42551,7 +42551,7 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42551
42551
|
AudioExtension: wl,
|
|
42552
42552
|
AudioListener: Eo,
|
|
42553
42553
|
AudioSource: Mn,
|
|
42554
|
-
AudioTrackHandler:
|
|
42554
|
+
AudioTrackHandler: nh,
|
|
42555
42555
|
Avatar: Gr,
|
|
42556
42556
|
AvatarBlink_Simple: yl,
|
|
42557
42557
|
AvatarEyeLook_Rotation: rw,
|
|
@@ -42562,7 +42562,7 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42562
42562
|
Avatar_MouthShapes: nf,
|
|
42563
42563
|
Avatar_MustacheShake: nw,
|
|
42564
42564
|
Avatar_POI: Uo,
|
|
42565
|
-
AxesHelper:
|
|
42565
|
+
AxesHelper: fh,
|
|
42566
42566
|
BaseUIComponent: Rn,
|
|
42567
42567
|
BasicIKConstraint: aw,
|
|
42568
42568
|
BehaviorExtension: qw,
|
|
@@ -42575,7 +42575,7 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42575
42575
|
CallInfo: Oo,
|
|
42576
42576
|
Camera: Ii,
|
|
42577
42577
|
CameraTargetReachedEvent: su,
|
|
42578
|
-
Canvas:
|
|
42578
|
+
Canvas: eh,
|
|
42579
42579
|
CanvasGroup: qr,
|
|
42580
42580
|
CapsuleCollider: Vo,
|
|
42581
42581
|
ChangeMaterialOnClick: Uw,
|
|
@@ -42585,13 +42585,13 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42585
42585
|
ChromaticAberration: Of,
|
|
42586
42586
|
Collider: Ni,
|
|
42587
42587
|
ColorAdjustments: aa,
|
|
42588
|
-
ColorBySpeedModule:
|
|
42588
|
+
ColorBySpeedModule: Oh,
|
|
42589
42589
|
ColorOverLifetimeModule: Oy,
|
|
42590
42590
|
ContactShadows: rf,
|
|
42591
42591
|
ControlTrackHandler: zy,
|
|
42592
42592
|
CustomBranding: Ol,
|
|
42593
42593
|
Deletable: dw,
|
|
42594
|
-
DeleteBox:
|
|
42594
|
+
DeleteBox: Yc,
|
|
42595
42595
|
DepthOfField: us,
|
|
42596
42596
|
DeviceFlag: ty,
|
|
42597
42597
|
DocumentExtension: NI,
|
|
@@ -42600,7 +42600,7 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42600
42600
|
Duplicatable: pw,
|
|
42601
42601
|
EffectWrapper: pu,
|
|
42602
42602
|
EmissionModule: tr,
|
|
42603
|
-
EmphasizeOnClick:
|
|
42603
|
+
EmphasizeOnClick: yh,
|
|
42604
42604
|
EnvironmentScene: Wy,
|
|
42605
42605
|
EventList: Se,
|
|
42606
42606
|
EventListEvent: Gg,
|
|
@@ -42608,28 +42608,28 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42608
42608
|
EventTrigger: oy,
|
|
42609
42609
|
FieldWithDefault: TR,
|
|
42610
42610
|
FixedJoint: rx,
|
|
42611
|
-
Fog:
|
|
42611
|
+
Fog: wh,
|
|
42612
42612
|
GltfExport: Mw,
|
|
42613
42613
|
GltfExportBox: kw,
|
|
42614
42614
|
Gradient: Rl,
|
|
42615
42615
|
Graphic: yf,
|
|
42616
42616
|
GraphicRaycaster: qg,
|
|
42617
|
-
GridHelper:
|
|
42617
|
+
GridHelper: xh,
|
|
42618
42618
|
GridLayoutGroup: ix,
|
|
42619
42619
|
GroundProjectedEnv: Js,
|
|
42620
42620
|
GroupActionModel: Or,
|
|
42621
|
-
HideOnStart:
|
|
42621
|
+
HideOnStart: Zc,
|
|
42622
42622
|
HingeJoint: bf,
|
|
42623
42623
|
HorizontalLayoutGroup: tx,
|
|
42624
|
-
Image:
|
|
42624
|
+
Image: Ih,
|
|
42625
42625
|
InheritVelocityModule: dx,
|
|
42626
42626
|
InputField: Dx,
|
|
42627
42627
|
InstanceHandle: hu,
|
|
42628
|
-
InstancingHandler:
|
|
42628
|
+
InstancingHandler: Kc,
|
|
42629
42629
|
Interactable: hw,
|
|
42630
42630
|
Keyframe: Li,
|
|
42631
42631
|
LODGroup: vf,
|
|
42632
|
-
LODModel:
|
|
42632
|
+
LODModel: Ch,
|
|
42633
42633
|
Light: Vi,
|
|
42634
42634
|
LimitVelocityOverLifetimeModule: Pt,
|
|
42635
42635
|
LogStats: cw,
|
|
@@ -42647,9 +42647,9 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42647
42647
|
NoiseModule: ke,
|
|
42648
42648
|
ObjectRaycaster: an,
|
|
42649
42649
|
OffsetConstraint: Ml,
|
|
42650
|
-
OpenURL:
|
|
42650
|
+
OpenURL: jh,
|
|
42651
42651
|
OrbitControls: xe,
|
|
42652
|
-
Outline:
|
|
42652
|
+
Outline: vh,
|
|
42653
42653
|
Padding: Pl,
|
|
42654
42654
|
ParticleBurst: Km,
|
|
42655
42655
|
ParticleSubEmitter: ux,
|
|
@@ -42659,11 +42659,11 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42659
42659
|
PixelationEffect: Mf,
|
|
42660
42660
|
PlayAnimationOnClick: du,
|
|
42661
42661
|
PlayAudioOnClick: Hr,
|
|
42662
|
-
PlayableDirector:
|
|
42663
|
-
PlayerColor:
|
|
42662
|
+
PlayableDirector: sh,
|
|
42663
|
+
PlayerColor: ih,
|
|
42664
42664
|
PointerEventData: ef,
|
|
42665
42665
|
PostProcessingHandler: _x,
|
|
42666
|
-
PreliminaryAction:
|
|
42666
|
+
PreliminaryAction: _h,
|
|
42667
42667
|
PreliminaryTrigger: df,
|
|
42668
42668
|
RawImage: $y,
|
|
42669
42669
|
Rect: MT,
|
|
@@ -42698,11 +42698,11 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42698
42698
|
SpatialTrigger: Dy,
|
|
42699
42699
|
SpatialTriggerReceiver: Ws,
|
|
42700
42700
|
SpectatorCamera: jy,
|
|
42701
|
-
SphereCollider:
|
|
42701
|
+
SphereCollider: ph,
|
|
42702
42702
|
Sprite: Yo,
|
|
42703
|
-
SpriteData:
|
|
42703
|
+
SpriteData: Rc,
|
|
42704
42704
|
SpriteRenderer: $i,
|
|
42705
|
-
SpriteSheet:
|
|
42705
|
+
SpriteSheet: Jc,
|
|
42706
42706
|
SubEmitterSystem: eg,
|
|
42707
42707
|
SyncedCamera: Mx,
|
|
42708
42708
|
SyncedRoom: ps,
|
|
@@ -42735,7 +42735,7 @@ const y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42735
42735
|
Vignette: Il,
|
|
42736
42736
|
VisibilityAction: uf,
|
|
42737
42737
|
Voip: ia,
|
|
42738
|
-
Volume:
|
|
42738
|
+
Volume: Mh,
|
|
42739
42739
|
VolumeParameter: N,
|
|
42740
42740
|
VolumeProfile: My,
|
|
42741
42741
|
WebARCameraBackground: Nf,
|
|
@@ -42813,14 +42813,14 @@ pe.registerCallback(me.ContextCreated, (o) => {
|
|
|
42813
42813
|
for (const e of o.files)
|
|
42814
42814
|
S.foreachComponent(e.file.scene, (n) => {
|
|
42815
42815
|
if (n.enabled !== !1) {
|
|
42816
|
-
if (n instanceof si && n.playAutomatically || n instanceof Nt || n instanceof
|
|
42816
|
+
if (n instanceof si && n.playAutomatically || n instanceof Nt || n instanceof sh && n.playOnAwake === !0)
|
|
42817
42817
|
return !0;
|
|
42818
42818
|
if (n instanceof si)
|
|
42819
42819
|
return n.playAutomatically = !0, !0;
|
|
42820
|
-
if (n instanceof
|
|
42820
|
+
if (n instanceof sh)
|
|
42821
42821
|
return n.playOnAwake = !0, !0;
|
|
42822
42822
|
}
|
|
42823
|
-
}, !0) !== !0 &&
|
|
42823
|
+
}, !0) !== !0 && qc.assignAnimationsFromFile(e.file, {
|
|
42824
42824
|
createAnimationComponent: (n, s) => sn(n, si)
|
|
42825
42825
|
});
|
|
42826
42826
|
});
|
|
@@ -42828,7 +42828,7 @@ class WI extends KC {
|
|
|
42828
42828
|
constructor() {
|
|
42829
42829
|
super(new Worker(new URL(
|
|
42830
42830
|
/* @vite-ignore */
|
|
42831
|
-
"/generateMeshBVH.worker-
|
|
42831
|
+
"/generateMeshBVH.worker-BaNp_Xtp.js",
|
|
42832
42832
|
import.meta.url
|
|
42833
42833
|
), { type: "module" })), this.name = "GenerateMeshBVHWorker";
|
|
42834
42834
|
}
|
|
@@ -42881,17 +42881,17 @@ export {
|
|
|
42881
42881
|
Ji as ActionModel,
|
|
42882
42882
|
HO as Addressables,
|
|
42883
42883
|
Zu as AlignmentConstraint,
|
|
42884
|
-
|
|
42884
|
+
Sc as AmbientMode,
|
|
42885
42885
|
si as Animation,
|
|
42886
42886
|
Sf as AnimationCurve,
|
|
42887
42887
|
cy as AnimationExtension,
|
|
42888
42888
|
Fy as AnimationTrackHandler,
|
|
42889
|
-
|
|
42889
|
+
qc as AnimationUtils,
|
|
42890
42890
|
Nt as Animator,
|
|
42891
42891
|
gr as AnimatorConditionMode,
|
|
42892
42892
|
On as AnimatorController,
|
|
42893
42893
|
Kv as AnimatorControllerParameterType,
|
|
42894
|
-
|
|
42894
|
+
Yh as AnimatorStateInfo,
|
|
42895
42895
|
Cf as Antialiasing,
|
|
42896
42896
|
ns as Application,
|
|
42897
42897
|
XP as AssetDatabase,
|
|
@@ -42899,7 +42899,7 @@ export {
|
|
|
42899
42899
|
wl as AudioExtension,
|
|
42900
42900
|
Eo as AudioListener,
|
|
42901
42901
|
Mn as AudioSource,
|
|
42902
|
-
|
|
42902
|
+
nh as AudioTrackHandler,
|
|
42903
42903
|
Gr as Avatar,
|
|
42904
42904
|
yl as AvatarBlink_Simple,
|
|
42905
42905
|
rw as AvatarEyeLook_Rotation,
|
|
@@ -42910,8 +42910,8 @@ export {
|
|
|
42910
42910
|
nf as Avatar_MouthShapes,
|
|
42911
42911
|
nw as Avatar_MustacheShake,
|
|
42912
42912
|
Uo as Avatar_POI,
|
|
42913
|
-
|
|
42914
|
-
|
|
42913
|
+
dc as Axes,
|
|
42914
|
+
fh as AxesHelper,
|
|
42915
42915
|
iv as BUILD_TIME,
|
|
42916
42916
|
Rn as BaseUIComponent,
|
|
42917
42917
|
aw as BasicIKConstraint,
|
|
@@ -42928,7 +42928,7 @@ export {
|
|
|
42928
42928
|
Oo as CallInfo,
|
|
42929
42929
|
Ii as Camera,
|
|
42930
42930
|
su as CameraTargetReachedEvent,
|
|
42931
|
-
|
|
42931
|
+
eh as Canvas,
|
|
42932
42932
|
qr as CanvasGroup,
|
|
42933
42933
|
Vo as CapsuleCollider,
|
|
42934
42934
|
Uw as ChangeMaterialOnClick,
|
|
@@ -42943,7 +42943,7 @@ export {
|
|
|
42943
42943
|
MM as Collision,
|
|
42944
42944
|
Hg as CollisionDetectionMode,
|
|
42945
42945
|
aa as ColorAdjustments,
|
|
42946
|
-
|
|
42946
|
+
Oh as ColorBySpeedModule,
|
|
42947
42947
|
Oy as ColorOverLifetimeModule,
|
|
42948
42948
|
VL as Component,
|
|
42949
42949
|
B as Component$1,
|
|
@@ -42961,7 +42961,7 @@ export {
|
|
|
42961
42961
|
zm as CustomShader,
|
|
42962
42962
|
Mm as DefaultReflectionMode,
|
|
42963
42963
|
dw as Deletable,
|
|
42964
|
-
|
|
42964
|
+
Yc as DeleteBox,
|
|
42965
42965
|
us as DepthOfField,
|
|
42966
42966
|
ty as DeviceFlag,
|
|
42967
42967
|
Y as DeviceUtilities,
|
|
@@ -42972,7 +42972,7 @@ export {
|
|
|
42972
42972
|
pw as Duplicatable,
|
|
42973
42973
|
pu as EffectWrapper,
|
|
42974
42974
|
tr as EmissionModule,
|
|
42975
|
-
|
|
42975
|
+
yh as EmphasizeOnClick,
|
|
42976
42976
|
ag as EngineLoadingView,
|
|
42977
42977
|
Wy as EnvironmentScene,
|
|
42978
42978
|
Se as EventList,
|
|
@@ -42985,7 +42985,7 @@ export {
|
|
|
42985
42985
|
n2 as FileSpawnModel,
|
|
42986
42986
|
eR as File_Event,
|
|
42987
42987
|
rx as FixedJoint,
|
|
42988
|
-
|
|
42988
|
+
wh as Fog,
|
|
42989
42989
|
Re as FrameEvent,
|
|
42990
42990
|
Pg as GENERATOR,
|
|
42991
42991
|
S as GameObject,
|
|
@@ -42996,16 +42996,16 @@ export {
|
|
|
42996
42996
|
yf as Graphic,
|
|
42997
42997
|
qg as GraphicRaycaster,
|
|
42998
42998
|
el as Graphics,
|
|
42999
|
-
|
|
42999
|
+
xh as GridHelper,
|
|
43000
43000
|
ix as GridLayoutGroup,
|
|
43001
43001
|
Js as GroundProjectedEnv,
|
|
43002
43002
|
Or as GroupActionModel,
|
|
43003
43003
|
Qg as HideFlags,
|
|
43004
|
-
|
|
43004
|
+
Zc as HideOnStart,
|
|
43005
43005
|
bf as HingeJoint,
|
|
43006
43006
|
tx as HorizontalLayoutGroup,
|
|
43007
43007
|
jL as HostData,
|
|
43008
|
-
|
|
43008
|
+
Ih as Image,
|
|
43009
43009
|
Yd as ImageReference,
|
|
43010
43010
|
XO as ImageReferenceSerializer,
|
|
43011
43011
|
dx as InheritVelocityModule,
|
|
@@ -43014,7 +43014,7 @@ export {
|
|
|
43014
43014
|
We as InputEvents,
|
|
43015
43015
|
Dx as InputField,
|
|
43016
43016
|
hu as InstanceHandle,
|
|
43017
|
-
|
|
43017
|
+
Kc as InstancingHandler,
|
|
43018
43018
|
Pn as InstancingUtil,
|
|
43019
43019
|
oO as InstantiateEvent,
|
|
43020
43020
|
Ft as InstantiateIdProvider,
|
|
@@ -43025,7 +43025,7 @@ export {
|
|
|
43025
43025
|
kL as KeyEventArgs,
|
|
43026
43026
|
Li as Keyframe,
|
|
43027
43027
|
vf as LODGroup,
|
|
43028
|
-
|
|
43028
|
+
Ch as LODModel,
|
|
43029
43029
|
EL as LeftRoomResponse,
|
|
43030
43030
|
Vi as Light,
|
|
43031
43031
|
dk as LightData,
|
|
@@ -43044,7 +43044,7 @@ export {
|
|
|
43044
43044
|
cf as MeshRenderer,
|
|
43045
43045
|
K as MinMaxCurve,
|
|
43046
43046
|
Tl as MinMaxGradient,
|
|
43047
|
-
|
|
43047
|
+
zh as NEKeyboardEvent,
|
|
43048
43048
|
po as NEPointerEvent,
|
|
43049
43049
|
Yx as NeedleButtonElement,
|
|
43050
43050
|
Sb as NeedleEngineModelLoader,
|
|
@@ -43067,12 +43067,12 @@ export {
|
|
|
43067
43067
|
Ml as OffsetConstraint,
|
|
43068
43068
|
Qf as OneEuroFilter,
|
|
43069
43069
|
W0 as OneEuroFilterXYZ,
|
|
43070
|
-
|
|
43070
|
+
jh as OpenURL,
|
|
43071
43071
|
xe as OrbitControls,
|
|
43072
|
-
|
|
43072
|
+
vh as Outline,
|
|
43073
43073
|
TP as OwnershipEvent,
|
|
43074
43074
|
uv as OwnershipModel,
|
|
43075
|
-
|
|
43075
|
+
ac as PUBLIC_KEY,
|
|
43076
43076
|
Pl as Padding,
|
|
43077
43077
|
Km as ParticleBurst,
|
|
43078
43078
|
ux as ParticleSubEmitter,
|
|
@@ -43080,7 +43080,7 @@ export {
|
|
|
43080
43080
|
ra as ParticleSystemBaseBehaviour,
|
|
43081
43081
|
An as ParticleSystemRenderer,
|
|
43082
43082
|
Qm as ParticleSystemShapeType,
|
|
43083
|
-
|
|
43083
|
+
kc as PeerHandle,
|
|
43084
43084
|
OP as PeerNetworking,
|
|
43085
43085
|
$d as Physics,
|
|
43086
43086
|
Xw as PhysicsExtension,
|
|
@@ -43088,8 +43088,8 @@ export {
|
|
|
43088
43088
|
Mf as PixelationEffect,
|
|
43089
43089
|
du as PlayAnimationOnClick,
|
|
43090
43090
|
Hr as PlayAudioOnClick,
|
|
43091
|
-
|
|
43092
|
-
|
|
43091
|
+
sh as PlayableDirector,
|
|
43092
|
+
ih as PlayerColor,
|
|
43093
43093
|
Hn as PlayerState,
|
|
43094
43094
|
gT as PlayerStateEvent,
|
|
43095
43095
|
Gw as PlayerSync,
|
|
@@ -43100,7 +43100,7 @@ export {
|
|
|
43100
43100
|
ft as PostProcessingEffect,
|
|
43101
43101
|
gt as PostProcessingEffectOrder,
|
|
43102
43102
|
_x as PostProcessingHandler,
|
|
43103
|
-
|
|
43103
|
+
_h as PreliminaryAction,
|
|
43104
43104
|
df as PreliminaryTrigger,
|
|
43105
43105
|
br as PreviewHelper,
|
|
43106
43106
|
nl as PrimitiveType,
|
|
@@ -43151,13 +43151,13 @@ export {
|
|
|
43151
43151
|
Dy as SpatialTrigger,
|
|
43152
43152
|
Ws as SpatialTriggerReceiver,
|
|
43153
43153
|
jy as SpectatorCamera,
|
|
43154
|
-
|
|
43154
|
+
ph as SphereCollider,
|
|
43155
43155
|
pv as SphereIntersection,
|
|
43156
43156
|
RM as SphereOverlapResult,
|
|
43157
43157
|
Yo as Sprite,
|
|
43158
|
-
|
|
43158
|
+
Rc as SpriteData,
|
|
43159
43159
|
$i as SpriteRenderer,
|
|
43160
|
-
|
|
43160
|
+
Jc as SpriteSheet,
|
|
43161
43161
|
GL as StateMachineBehaviour,
|
|
43162
43162
|
tw as StreamEndedEvent,
|
|
43163
43163
|
TM as StreamReceivedEvent,
|
|
@@ -43206,7 +43206,7 @@ export {
|
|
|
43206
43206
|
Il as Vignette,
|
|
43207
43207
|
uf as VisibilityAction,
|
|
43208
43208
|
ia as Voip,
|
|
43209
|
-
|
|
43209
|
+
Mh as Volume,
|
|
43210
43210
|
N as VolumeParameter,
|
|
43211
43211
|
My as VolumeProfile,
|
|
43212
43212
|
FL as WaitForFrames,
|
|
@@ -43252,7 +43252,7 @@ export {
|
|
|
43252
43252
|
q1 as copyTexture,
|
|
43253
43253
|
Fk as createMotion,
|
|
43254
43254
|
Pi as debugNet,
|
|
43255
|
-
|
|
43255
|
+
$h as debugOwner,
|
|
43256
43256
|
WR as decompressGpuTexture,
|
|
43257
43257
|
zu as deepClone,
|
|
43258
43258
|
ts as delay,
|
|
@@ -43284,7 +43284,7 @@ export {
|
|
|
43284
43284
|
Qu as getComponentInChildren,
|
|
43285
43285
|
Qd as getComponentInParent,
|
|
43286
43286
|
Xu as getComponents,
|
|
43287
|
-
|
|
43287
|
+
ch as getComponentsInChildren,
|
|
43288
43288
|
jg as getComponentsInParent,
|
|
43289
43289
|
LR as getFormattedDate,
|
|
43290
43290
|
jt as getIconElement,
|
|
@@ -43319,7 +43319,7 @@ export {
|
|
|
43319
43319
|
mP as invokeXRSessionEnd,
|
|
43320
43320
|
pP as invokeXRSessionStart,
|
|
43321
43321
|
UO as isActiveInHierarchy,
|
|
43322
|
-
|
|
43322
|
+
hh as isActiveSelf,
|
|
43323
43323
|
lL as isAndroidDevice,
|
|
43324
43324
|
G1 as isAnimationAction,
|
|
43325
43325
|
OM as isComponent,
|
|
@@ -43424,7 +43424,7 @@ export {
|
|
|
43424
43424
|
H0 as setWorldQuaternionXYZW,
|
|
43425
43425
|
H1 as setWorldRotation,
|
|
43426
43426
|
$u as setWorldRotationXYZ,
|
|
43427
|
-
|
|
43427
|
+
Wc as setWorldScale,
|
|
43428
43428
|
Wu as showBalloonError,
|
|
43429
43429
|
Ve as showBalloonMessage,
|
|
43430
43430
|
we as showBalloonWarning,
|
|
@@ -43437,7 +43437,7 @@ export {
|
|
|
43437
43437
|
SP as tryCastBinary,
|
|
43438
43438
|
nR as tryDetermineMimetypeFromBinary,
|
|
43439
43439
|
iR as tryDetermineMimetypeFromURL,
|
|
43440
|
-
|
|
43440
|
+
Nc as tryFindObject,
|
|
43441
43441
|
CP as tryGetGuid,
|
|
43442
43442
|
Ek as unregisterHotReloadType,
|
|
43443
43443
|
j0 as unwatchWrite,
|