@needle-tools/engine 4.7.0-alpha → 4.7.0-next.da47826
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 +3768 -3768
- 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-CK8cQ3FX.umd.cjs → needle-engine.bundle-Bu88IoKB.umd.cjs} +57 -57
- package/dist/{needle-engine.bundle-CXtflnL6.js → needle-engine.bundle-CO1Ub9sm.js} +638 -638
- package/dist/{needle-engine.bundle-BEUFTdl6.min.js → needle-engine.bundle-D95XN5pP.min.js} +62 -62
- 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 +1672 -1672
- 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 +162 -162
- package/lib/engine-components/export/usdz/ThreeUSDZExporter.js +1789 -1789
- package/lib/engine-components/export/usdz/USDZExporter.d.ts +130 -130
- package/lib/engine-components/export/usdz/USDZExporter.js +663 -663
- package/lib/engine-components/export/usdz/extensions/Animation.d.ts +106 -106
- package/lib/engine-components/export/usdz/extensions/Animation.js +1071 -1071
- package/lib/engine-components/export/usdz/extensions/DocumentExtension.d.ts +5 -5
- package/lib/engine-components/export/usdz/extensions/DocumentExtension.js +6 -6
- package/lib/engine-components/export/usdz/extensions/NodeMaterialConverter.d.ts +10 -10
- package/lib/engine-components/export/usdz/extensions/NodeMaterialConverter.js +451 -451
- package/lib/engine-components/export/usdz/extensions/USDZText.d.ts +54 -54
- package/lib/engine-components/export/usdz/extensions/USDZText.js +203 -203
- package/lib/engine-components/export/usdz/extensions/USDZUI.d.ts +8 -8
- package/lib/engine-components/export/usdz/extensions/USDZUI.js +158 -158
- package/lib/engine-components/export/usdz/extensions/behavior/Actions.d.ts +30 -30
- package/lib/engine-components/export/usdz/extensions/behavior/Actions.js +88 -88
- package/lib/engine-components/export/usdz/extensions/behavior/AudioExtension.d.ts +10 -10
- package/lib/engine-components/export/usdz/extensions/behavior/AudioExtension.js +86 -86
- package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.d.ts +28 -28
- package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.js +290 -290
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.d.ts +190 -190
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +1060 -1060
- package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.d.ts +135 -135
- package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.js +548 -548
- package/lib/engine-components/export/usdz/extensions/behavior/PhysicsExtension.d.ts +7 -7
- package/lib/engine-components/export/usdz/extensions/behavior/PhysicsExtension.js +115 -115
- package/lib/engine-components/export/usdz/index.d.ts +3 -3
- package/lib/engine-components/export/usdz/index.js +2 -2
- package/lib/engine-components/export/usdz/utils/animationutils.d.ts +7 -7
- package/lib/engine-components/export/usdz/utils/animationutils.js +163 -163
- package/lib/engine-components/export/usdz/utils/quicklook.d.ts +2 -2
- package/lib/engine-components/export/usdz/utils/quicklook.js +43 -43
- package/lib/engine-components/particlesystem/ParticleSystem.d.ts +177 -177
- package/lib/engine-components/particlesystem/ParticleSystem.js +1176 -1176
- package/lib/engine-components/particlesystem/ParticleSystemModules.d.ts +526 -526
- package/lib/engine-components/particlesystem/ParticleSystemModules.js +1930 -1930
- package/lib/engine-components/particlesystem/ParticleSystemSubEmitter.d.ts +25 -25
- package/lib/engine-components/particlesystem/ParticleSystemSubEmitter.js +87 -87
- package/lib/engine-components/particlesystem/api.d.ts +2 -2
- package/lib/engine-components/particlesystem/api.js +2 -2
- package/lib/engine-components/postprocessing/Effects/Antialiasing.d.ts +17 -17
- package/lib/engine-components/postprocessing/Effects/Antialiasing.js +52 -52
- 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 +480 -480
- package/lib/engine-components/postprocessing/Volume.d.ts +90 -90
- package/lib/engine-components/postprocessing/Volume.js +385 -385
- package/lib/engine-components/postprocessing/VolumeParameter.d.ts +26 -26
- package/lib/engine-components/postprocessing/VolumeParameter.js +136 -136
- package/lib/engine-components/postprocessing/VolumeProfile.d.ts +15 -15
- package/lib/engine-components/postprocessing/VolumeProfile.js +60 -60
- package/lib/engine-components/postprocessing/index.d.ts +6 -6
- package/lib/engine-components/postprocessing/index.js +6 -6
- package/lib/engine-components/postprocessing/utils.d.ts +55 -55
- package/lib/engine-components/postprocessing/utils.js +119 -119
- package/lib/engine-components/timeline/PlayableDirector.d.ts +163 -163
- package/lib/engine-components/timeline/PlayableDirector.js +686 -686
- package/lib/engine-components/timeline/SignalAsset.d.ts +24 -24
- package/lib/engine-components/timeline/SignalAsset.js +130 -130
- package/lib/engine-components/timeline/TimelineModels.d.ts +89 -89
- package/lib/engine-components/timeline/TimelineModels.js +22 -22
- package/lib/engine-components/timeline/TimelineTracks.d.ts +110 -110
- package/lib/engine-components/timeline/TimelineTracks.js +879 -879
- package/lib/engine-components/timeline/index.d.ts +4 -4
- package/lib/engine-components/timeline/index.js +3 -3
- package/lib/engine-components/ui/BaseUIComponent.d.ts +48 -48
- package/lib/engine-components/ui/BaseUIComponent.js +170 -170
- package/lib/engine-components/ui/Button.d.ts +64 -64
- package/lib/engine-components/ui/Button.js +315 -315
- package/lib/engine-components/ui/Canvas.d.ts +74 -74
- package/lib/engine-components/ui/Canvas.js +407 -407
- package/lib/engine-components/ui/CanvasGroup.d.ts +19 -19
- package/lib/engine-components/ui/CanvasGroup.js +58 -58
- package/lib/engine-components/ui/EventSystem.d.ts +125 -125
- package/lib/engine-components/ui/EventSystem.js +765 -765
- package/lib/engine-components/ui/Graphic.d.ts +55 -55
- package/lib/engine-components/ui/Graphic.js +255 -255
- package/lib/engine-components/ui/Image.d.ts +35 -35
- package/lib/engine-components/ui/Image.js +116 -116
- package/lib/engine-components/ui/InputField.d.ts +42 -42
- package/lib/engine-components/ui/InputField.js +268 -268
- package/lib/engine-components/ui/Interfaces.d.ts +38 -38
- package/lib/engine-components/ui/Interfaces.js +12 -12
- package/lib/engine-components/ui/Layout.d.ts +84 -84
- package/lib/engine-components/ui/Layout.js +330 -330
- package/lib/engine-components/ui/Outline.d.ts +7 -7
- package/lib/engine-components/ui/Outline.js +20 -20
- package/lib/engine-components/ui/PointerEvents.d.ts +115 -115
- package/lib/engine-components/ui/PointerEvents.js +145 -145
- package/lib/engine-components/ui/RaycastUtils.d.ts +11 -11
- package/lib/engine-components/ui/RaycastUtils.js +67 -67
- package/lib/engine-components/ui/Raycaster.d.ts +30 -30
- package/lib/engine-components/ui/Raycaster.js +95 -95
- package/lib/engine-components/ui/RectTransform.d.ts +61 -61
- package/lib/engine-components/ui/RectTransform.js +356 -356
- package/lib/engine-components/ui/SpatialHtml.d.ts +8 -8
- package/lib/engine-components/ui/SpatialHtml.js +79 -79
- package/lib/engine-components/ui/Symbols.d.ts +1 -1
- package/lib/engine-components/ui/Symbols.js +1 -1
- package/lib/engine-components/ui/Text.d.ts +78 -78
- package/lib/engine-components/ui/Text.js +539 -539
- package/lib/engine-components/ui/Utils.d.ts +24 -24
- package/lib/engine-components/ui/Utils.js +90 -90
- package/lib/engine-components/ui/index.d.ts +1 -1
- package/lib/engine-components/ui/index.js +1 -1
- package/lib/engine-components/utils/EnvironmentScene.d.ts +5 -5
- package/lib/engine-components/utils/EnvironmentScene.js +205 -205
- package/lib/engine-components/utils/LookAt.d.ts +31 -31
- package/lib/engine-components/utils/LookAt.js +82 -82
- package/lib/engine-components/utils/OpenURL.d.ts +42 -42
- package/lib/engine-components/utils/OpenURL.js +119 -119
- package/lib/engine-components/webxr/Avatar.d.ts +25 -25
- package/lib/engine-components/webxr/Avatar.js +255 -255
- package/lib/engine-components/webxr/TeleportTarget.d.ts +7 -7
- package/lib/engine-components/webxr/TeleportTarget.js +7 -7
- package/lib/engine-components/webxr/WebARCameraBackground.d.ts +30 -30
- package/lib/engine-components/webxr/WebARCameraBackground.js +155 -155
- package/lib/engine-components/webxr/WebARSessionRoot.d.ts +98 -98
- package/lib/engine-components/webxr/WebARSessionRoot.js +770 -770
- package/lib/engine-components/webxr/WebXR.d.ts +232 -232
- package/lib/engine-components/webxr/WebXR.js +561 -561
- package/lib/engine-components/webxr/WebXRAvatar.d.ts +27 -27
- package/lib/engine-components/webxr/WebXRAvatar.js +44 -44
- package/lib/engine-components/webxr/WebXRImageTracking.d.ts +86 -86
- package/lib/engine-components/webxr/WebXRImageTracking.js +471 -471
- package/lib/engine-components/webxr/WebXRPlaneTracking.d.ts +92 -92
- package/lib/engine-components/webxr/WebXRPlaneTracking.js +500 -500
- package/lib/engine-components/webxr/WebXRRig.d.ts +32 -32
- package/lib/engine-components/webxr/WebXRRig.js +72 -72
- package/lib/engine-components/webxr/XRFlag.d.ts +38 -38
- package/lib/engine-components/webxr/XRFlag.js +139 -139
- package/lib/engine-components/webxr/controllers/XRControllerFollow.d.ts +47 -47
- package/lib/engine-components/webxr/controllers/XRControllerFollow.js +120 -120
- package/lib/engine-components/webxr/controllers/XRControllerModel.d.ts +43 -43
- package/lib/engine-components/webxr/controllers/XRControllerModel.js +352 -352
- package/lib/engine-components/webxr/controllers/XRControllerMovement.d.ts +78 -78
- package/lib/engine-components/webxr/controllers/XRControllerMovement.js +506 -506
- package/lib/engine-components/webxr/index.d.ts +3 -3
- package/lib/engine-components/webxr/index.js +3 -3
- package/lib/engine-components/webxr/types.d.ts +3 -3
- package/lib/engine-components/webxr/types.js +1 -1
- package/lib/engine-components-experimental/Presentation.d.ts +6 -6
- package/lib/engine-components-experimental/Presentation.js +9 -9
- package/lib/engine-components-experimental/api.d.ts +4 -4
- package/lib/engine-components-experimental/api.js +4 -4
- package/lib/engine-components-experimental/networking/PlayerSync.d.ts +156 -156
- package/lib/engine-components-experimental/networking/PlayerSync.js +377 -377
- package/lib/engine-schemes/api.d.ts +12 -12
- package/lib/engine-schemes/api.js +12 -12
- package/lib/engine-schemes/schemes.d.ts +7 -7
- package/lib/engine-schemes/schemes.js +19 -19
- package/lib/engine-schemes/synced-camera-model.d.ts +25 -25
- package/lib/engine-schemes/synced-camera-model.js +67 -67
- package/lib/engine-schemes/synced-transform-model.d.ts +31 -31
- package/lib/engine-schemes/synced-transform-model.js +66 -66
- package/lib/engine-schemes/transform.d.ts +12 -12
- package/lib/engine-schemes/transform.js +39 -39
- package/lib/engine-schemes/vec2.d.ts +10 -10
- package/lib/engine-schemes/vec2.js +25 -25
- package/lib/engine-schemes/vec3.d.ts +11 -11
- package/lib/engine-schemes/vec3.js +29 -29
- package/lib/engine-schemes/vec4.d.ts +12 -12
- package/lib/engine-schemes/vec4.js +33 -33
- package/lib/engine-schemes/vr-user-state-buffer.d.ts +37 -37
- package/lib/engine-schemes/vr-user-state-buffer.js +110 -110
- package/lib/include/three/EXT_mesh_gpu_instancing_exporter.d.ts +6 -6
- package/lib/include/three/EXT_mesh_gpu_instancing_exporter.js +45 -45
- package/lib/needle-engine.d.ts +7 -7
- package/lib/needle-engine.js +64 -64
- package/package.json +2 -2
- package/plugins/common/buildinfo.js +64 -64
- package/plugins/common/cloud.js +1 -1
- package/plugins/common/config.cjs +31 -31
- package/plugins/common/config.js +35 -35
- package/plugins/common/files.js +31 -31
- package/plugins/common/generator.js +10 -10
- package/plugins/common/license.js +452 -452
- package/plugins/common/npm.js +15 -15
- package/plugins/common/timers.js +7 -7
- package/plugins/common/version.js +37 -37
- package/plugins/gltf-packer.mjs +1 -1
- package/plugins/next/alias.cjs +39 -39
- package/plugins/next/license.cjs +24 -24
- package/plugins/next/meshbvhworker.cjs +18 -18
- package/plugins/next/next.js +141 -141
- package/plugins/types/index.d.ts +2 -2
- package/plugins/types/license.d.ts +24 -24
- package/plugins/types/needleConfig.d.ts +27 -27
- package/plugins/types/next.d.ts +2 -2
- package/plugins/types/userconfig.d.ts +120 -120
- package/plugins/types/vite.d.ts +13 -13
- package/plugins/types/webmanifest.d.ts +32 -32
- package/plugins/vite/alias.js +174 -174
- package/plugins/vite/asap.js +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 +1823 -1823
- 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 +2426 -2426
- package/src/engine-components/export/usdz/USDZExporter.ts +705 -705
- package/src/engine-components/export/usdz/extensions/Animation.ts +1204 -1204
- package/src/engine-components/export/usdz/extensions/DocumentExtension.ts +9 -9
- package/src/engine-components/export/usdz/extensions/NodeMaterialConverter.ts +532 -532
- package/src/engine-components/export/usdz/extensions/USDZText.ts +240 -240
- package/src/engine-components/export/usdz/extensions/USDZUI.ts +189 -189
- package/src/engine-components/export/usdz/extensions/behavior/Actions.ts +99 -99
- package/src/engine-components/export/usdz/extensions/behavior/AudioExtension.ts +102 -102
- package/src/engine-components/export/usdz/extensions/behavior/Behaviour.ts +320 -320
- package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +1225 -1225
- package/src/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.ts +646 -646
- package/src/engine-components/export/usdz/extensions/behavior/PhysicsExtension.ts +132 -132
- package/src/engine-components/export/usdz/index.ts +2 -2
- package/src/engine-components/export/usdz/utils/animationutils.ts +191 -191
- package/src/engine-components/export/usdz/utils/quicklook.ts +50 -50
- package/src/engine-components/particlesystem/ParticleSystem.ts +1287 -1287
- package/src/engine-components/particlesystem/ParticleSystemModules.ts +1765 -1765
- package/src/engine-components/particlesystem/ParticleSystemSubEmitter.ts +111 -111
- package/src/engine-components/particlesystem/api.ts +1 -1
- package/src/engine-components/postprocessing/Effects/Antialiasing.ts +57 -57
- 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 +560 -560
- 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/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 e_ = (o) => {
|
|
|
5
5
|
var rS = (o, t, e) => t in o ? oS(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
6
6
|
var r = (o, t, e) => rS(o, typeof t != "symbol" ? t + "" : t, e), qf = (o, t, e) => t.has(o) || e_("Cannot " + e);
|
|
7
7
|
var ue = (o, t, e) => (qf(o, t, "read from private field"), e ? e.call(o) : t.get(o)), mn = (o, t, e) => t.has(o) ? e_("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), gn = (o, t, e, i) => (qf(o, t, "write to private field"), i ? i.call(o, e) : t.set(o, e), e), Nl = (o, t, e) => (qf(o, t, "access private method"), e);
|
|
8
|
-
import { Vector2 as ae, Vector3 as w, Vector4 as ye, Quaternion as W, PlaneGeometry as ls, WebGLRenderer as Zr, PerspectiveCamera as ve, OrthographicCamera as Iu, Scene as ji, Mesh as G, Texture as Fe, Uniform$1 as tn, Color as re, ShaderMaterial as is, Box3 as Li, ShadowMaterial as b0, Euler as Ft, MeshStandardMaterial as yt, Box3Helper as aS, GridHelper as mg, Object3D as L, Material as Pe, Matrix3 as v0, Matrix4 as oe, Layers as Wo, Ray as Vo, MathUtils as zs, AxesHelper as Di, MeshBasicMaterial as Me, DoubleSide as Bi, BufferGeometry as Jn, Group as jo, CylinderGeometry as w0, SphereGeometry as Lu, BoxGeometry as Ka, SpriteMaterial as lS, Sprite as cS, Shape as hS, ExtrudeGeometry as dS, Fog as x0, DirectionalLight as om, PointLight as gg, EdgesGeometry as uS, LineSegments as S0, LineBasicMaterial as C0, Line as
|
|
9
|
-
import { createLoaders as Sg, getRaycastMesh as T0, LODsManager as pa, NEEDLE_progressive as Ze, addDracoAndKTX2Loaders as xC, configureLoader as SC, setKTX2TranscoderLocation as CC, setDracoDecoderLocation as PC } from "./gltf-progressive-
|
|
10
|
-
import { GroundedSkybox as el, Font as OC, TextGeometry as kC, FontLoader as MC, GLTFLoader as Xs, TransformControlsGizmo as E0, EXRLoader as zd, RGBELoader as cm, Stats as RC, nodeFrame as TC, OrbitControls as A0, PositionalAudioHelper as EC, HorizontalBlurShader as AC, VerticalBlurShader as IC, GLTFExporter as I0, strToU8 as L0, zipSync as LC, XRControllerModelFactory as DC, XRHandMeshModel as jC, Line2 as BC, LineGeometry as FC, LineMaterial as zC, KTX2Loader as UC, TransformControls as NC, InteractiveGroup as $C, HTMLMesh as WC, VertexNormalsHelper as VC, OBJLoader as Cg, FBXLoader as D0, mergeVertices as HC } from "./three-examples-
|
|
11
|
-
import { fetchProfile as GC, MotionController as qC, $70d766613f57b014$export$2e2bcd8739ae039 as o_, ByteBuffer as XC, v5 as r_, md5 as a_, SIZE_PREFIX_LENGTH as j0, Builder as Pg, createNoise4D as QC, Matrix4 as Qf, BatchedParticleRenderer as YC, ParticleSystem as KC, RenderMode as Ps, ConstantColor as ZC, Vector4 as JC, ConstantValue as e1, TrailParticle as l_, WorkerBase as t1, MeshBVH as i1 } from "./vendor-
|
|
12
|
-
import { __webpack_exports__default as Ee, __webpack_exports__Text as B0, __webpack_exports__Block as F0, __webpack_exports__update as n1, SimpleStateBehavior as s1, __webpack_exports__Inline as Yf, __webpack_exports__FontLibrary as c_, ThreeMeshUI as h_ } from "./three-mesh-ui-
|
|
13
|
-
import { EffectAttribute as o1 } from "./postprocessing-
|
|
8
|
+
import { Vector2 as ae, Vector3 as w, Vector4 as ye, Quaternion as W, PlaneGeometry as ls, WebGLRenderer as Zr, PerspectiveCamera as ve, OrthographicCamera as Iu, Scene as ji, Mesh as G, Texture as Fe, Uniform$1 as tn, Color as re, ShaderMaterial as is, Box3 as Li, ShadowMaterial as b0, Euler as Ft, MeshStandardMaterial as yt, Box3Helper as aS, GridHelper as mg, Object3D as L, Material as Pe, Matrix3 as v0, Matrix4 as oe, Layers as Wo, Ray as Vo, MathUtils as zs, AxesHelper as Di, MeshBasicMaterial as Me, DoubleSide as Bi, BufferGeometry as Jn, Group as jo, CylinderGeometry as w0, SphereGeometry as Lu, BoxGeometry as Ka, SpriteMaterial as lS, Sprite as cS, Shape as hS, ExtrudeGeometry as dS, Fog as x0, DirectionalLight as om, PointLight as gg, EdgesGeometry as uS, LineSegments as S0, LineBasicMaterial as C0, Line as $c, BufferAttribute as _t, Raycaster as Du, Sphere as ju, ArrayCamera as fS, Plane as Hr, SkinnedMesh as Us, InterleavedBufferAttribute as P0, Skeleton as pS, Bone as mS, Source as gS, WebGLCubeRenderTarget as yS, CubeCamera as _S, AnimationClip as Bo, FileLoader as yg, TextureLoader as $a, PropertyBinding as Za, LinearSRGBColorSpace as Gs, ShaderChunk as ii, UniformsLib as bS, DataTexture as _g, RGBAFormat as Bu, EquirectangularReflectionMapping as Ns, SRGBColorSpace as qs, Clock as vS, NeutralToneMapping as Ja, AgXToneMapping as Fu, ACESFilmicToneMapping as zu, NoToneMapping as Dd, PCFSoftShadowMap$1 as wS, BasicNodeLibrary as xS, WebGLRenderTarget as ns, DepthTexture as O0, NearestFilter as jd, LoopRepeat as SS, LoopOnce as rm, AnimationMixer as bg, CompressedTexture as CS, FrontSide as Ho, Camera as PS, Frustum as t_, AudioListener as OS, PositionalAudio as kS, AudioLoader as am, EventDispatcher as vg, BackSide as Uu, MeshDepthMaterial as MS, CustomBlending as RS, MaxEquation as TS, AmbientLight as ES, HemisphereLight as AS, AlwaysStencilFunc as IS, GreaterEqualStencilFunc as LS, NotEqualStencilFunc as DS, GreaterStencilFunc as jS, LessEqualStencilFunc as BS, EqualStencilFunc as FS, LessStencilFunc as zS, NeverStencilFunc as i_, InvertStencilOp as US, DecrementWrapStencilOp as NS, IncrementWrapStencilOp as $S, DecrementStencilOp as WS, IncrementStencilOp as VS, ReplaceStencilOp as HS, ZeroStencilOp as GS, KeepStencilOp as qS, RawShaderMaterial as k0, GLSL3 as XS, AlwaysDepth as QS, GreaterEqualDepth as YS, GreaterDepth as KS, LessEqualDepth as ZS, LessDepth as JS, NotEqualDepth as eC, EqualDepth as tC, BatchedMesh as n_, MeshPhysicalMaterial as lm, LinearFilter as Bd, UnsignedByteType as iC, RingGeometry as nC, Line3 as sC, AdditiveBlending as M0, BoxHelper as oC, SpotLight as rC, DirectionalLightHelper as aC, CameraHelper as lC, LOD as cC, Triangle as hC, NormalBlending as dC, ReinhardToneMapping as wg, LinearToneMapping as xg, HalfFloatType as Xf, VideoTexture as uC, CubeTexture as fC, CompressedCubeTexture as pC, EquirectangularRefractionMapping as mC, VectorKeyframeTrack as gC, QuaternionKeyframeTrack as yC, Audio as _C, ShaderLib as Fd, UniformsUtils as R0, MirroredRepeatWrapping as s_, MeshNormalMaterial as bC, AudioContext as vC, PMREMGenerator$1 as wC } from "./three-DrqIzZTH.js";
|
|
9
|
+
import { createLoaders as Sg, getRaycastMesh as T0, LODsManager as pa, NEEDLE_progressive as Ze, addDracoAndKTX2Loaders as xC, configureLoader as SC, setKTX2TranscoderLocation as CC, setDracoDecoderLocation as PC } from "./gltf-progressive-DSpdn0QT.js";
|
|
10
|
+
import { GroundedSkybox as el, Font as OC, TextGeometry as kC, FontLoader as MC, GLTFLoader as Xs, TransformControlsGizmo as E0, EXRLoader as zd, RGBELoader as cm, Stats as RC, nodeFrame as TC, OrbitControls as A0, PositionalAudioHelper as EC, HorizontalBlurShader as AC, VerticalBlurShader as IC, GLTFExporter as I0, strToU8 as L0, zipSync as LC, XRControllerModelFactory as DC, XRHandMeshModel as jC, Line2 as BC, LineGeometry as FC, LineMaterial as zC, KTX2Loader as UC, TransformControls as NC, InteractiveGroup as $C, HTMLMesh as WC, VertexNormalsHelper as VC, OBJLoader as Cg, FBXLoader as D0, mergeVertices as HC } from "./three-examples-B50TT3Iu.js";
|
|
11
|
+
import { fetchProfile as GC, MotionController as qC, $70d766613f57b014$export$2e2bcd8739ae039 as o_, ByteBuffer as XC, v5 as r_, md5 as a_, SIZE_PREFIX_LENGTH as j0, Builder as Pg, createNoise4D as QC, Matrix4 as Qf, BatchedParticleRenderer as YC, ParticleSystem as KC, RenderMode as Ps, ConstantColor as ZC, Vector4 as JC, ConstantValue as e1, TrailParticle as l_, WorkerBase as t1, MeshBVH as i1 } from "./vendor-BmYIgaS1.js";
|
|
12
|
+
import { __webpack_exports__default as Ee, __webpack_exports__Text as B0, __webpack_exports__Block as F0, __webpack_exports__update as n1, SimpleStateBehavior as s1, __webpack_exports__Inline as Yf, __webpack_exports__FontLibrary as c_, ThreeMeshUI as h_ } from "./three-mesh-ui-CxuWt7m-.js";
|
|
13
|
+
import { EffectAttribute as o1 } from "./postprocessing-DYLNOL3W.js";
|
|
14
14
|
const Kf = /* @__PURE__ */ new Map();
|
|
15
15
|
function _i(o = ((t) => (t = globalThis.location) == null ? void 0 : t.hostname)()) {
|
|
16
16
|
if (Kf.has(o)) return Kf.get(o);
|
|
@@ -179,7 +179,7 @@ function y1() {
|
|
|
179
179
|
function _1(o) {
|
|
180
180
|
return o = o.replace(/[^a-z0-9áéíóúñü \.,_-]/gim, ""), o.trim();
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Wc(o, t, e = !0, i = !1) {
|
|
183
183
|
var n;
|
|
184
184
|
if (t == null) return null;
|
|
185
185
|
if (t.userData && t.userData.guid === o) return t;
|
|
@@ -191,12 +191,12 @@ function $c(o, t, e = !0, i = !1) {
|
|
|
191
191
|
if (e) {
|
|
192
192
|
if (t.scenes)
|
|
193
193
|
for (const s in t.scenes) {
|
|
194
|
-
const a = t.scenes[s], l =
|
|
194
|
+
const a = t.scenes[s], l = Wc(o, a, e, i);
|
|
195
195
|
if (l) return l;
|
|
196
196
|
}
|
|
197
197
|
if (t.children)
|
|
198
198
|
for (const s in t.children) {
|
|
199
|
-
const a = t.children[s], l =
|
|
199
|
+
const a = t.children[s], l = Wc(o, a, e, i);
|
|
200
200
|
if (l) return l;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -230,26 +230,26 @@ function Wu(o, t) {
|
|
|
230
230
|
t.pre_update_callbacks.push(s);
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const zh = S("debugresolveurl"), b1 = "rel:";
|
|
234
234
|
function dL(o, t) {
|
|
235
235
|
return Jr(o, t);
|
|
236
236
|
}
|
|
237
237
|
function Jr(o, t) {
|
|
238
238
|
if (t === void 0)
|
|
239
|
-
return
|
|
239
|
+
return zh && console.warn("getPath: uri is undefined, returning uri", t), t;
|
|
240
240
|
if (t.startsWith("./"))
|
|
241
241
|
return t;
|
|
242
242
|
if (t.startsWith("http"))
|
|
243
|
-
return
|
|
243
|
+
return zh && console.warn("getPath: uri is absolute, returning uri", t), t;
|
|
244
244
|
if (o === void 0)
|
|
245
|
-
return
|
|
245
|
+
return zh && console.warn("getPath: source is undefined, returning uri", t), t;
|
|
246
246
|
t.startsWith(b1) && (t = t.substring(4));
|
|
247
247
|
const e = o.lastIndexOf("/");
|
|
248
248
|
if (e >= 0) {
|
|
249
249
|
const i = o.substring(0, e + 1);
|
|
250
250
|
for (; i.endsWith("/") && t.startsWith("/"); ) t = t.substring(1);
|
|
251
251
|
const n = i + t;
|
|
252
|
-
return
|
|
252
|
+
return zh && console.log("source:", o, `changed uri
|
|
253
253
|
from`, t, `
|
|
254
254
|
to `, n, `
|
|
255
255
|
basePath: ` + i), n;
|
|
@@ -605,8 +605,8 @@ async function P1(o, t) {
|
|
|
605
605
|
return b.src = y, b.style.width = "100%", b.style.height = "auto", b;
|
|
606
606
|
}
|
|
607
607
|
const W0 = S("debugdebug");
|
|
608
|
-
let
|
|
609
|
-
(S("noerrors") || S("nooverlaymessages")) && (
|
|
608
|
+
let Vc = !1;
|
|
609
|
+
(S("noerrors") || S("nooverlaymessages")) && (Vc = !0);
|
|
610
610
|
const Zf = "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 kg() {
|
|
@@ -633,13 +633,13 @@ const V0 = console.error, H0 = function(...o) {
|
|
|
633
633
|
V0.apply(console, o), T1(o), Hn(2, o), um(...o);
|
|
634
634
|
};
|
|
635
635
|
function M1(o) {
|
|
636
|
-
|
|
636
|
+
Vc = !o, o ? console.error = H0 : console.error = V0;
|
|
637
637
|
}
|
|
638
638
|
function SL(o) {
|
|
639
639
|
return M1(o);
|
|
640
640
|
}
|
|
641
641
|
function R1() {
|
|
642
|
-
|
|
642
|
+
Vc || (W0 && console.warn("Patch console", window.location.hostname), console.error = H0, window.addEventListener("error", (o) => {
|
|
643
643
|
if (!o) return;
|
|
644
644
|
const t = o.error;
|
|
645
645
|
if (t === void 0) {
|
|
@@ -648,7 +648,7 @@ function R1() {
|
|
|
648
648
|
}
|
|
649
649
|
Hn(2, t, o.filename, o.lineno), um(o);
|
|
650
650
|
}, !0), window.addEventListener("unhandledrejection", (o) => {
|
|
651
|
-
|
|
651
|
+
Vc || o && (o.reason ? Hn(2, o.reason.message, o.reason.stack) : Hn(2, "unhandled rejection"), um(o));
|
|
652
652
|
}));
|
|
653
653
|
}
|
|
654
654
|
let G0 = 0;
|
|
@@ -663,7 +663,7 @@ function T1(o) {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
function Hn(o, t, e, i) {
|
|
666
|
-
if (
|
|
666
|
+
if (Vc) return;
|
|
667
667
|
const n = fe.Current, s = (n == null ? void 0 : n.domElement) ?? document.querySelector("needle-engine");
|
|
668
668
|
if (s) {
|
|
669
669
|
if (Array.isArray(t)) {
|
|
@@ -677,7 +677,7 @@ function Hn(o, t, e, i) {
|
|
|
677
677
|
!t || t.length <= 0 || E1(o, s, t);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
const
|
|
680
|
+
const wc = /* @__PURE__ */ new Map();
|
|
681
681
|
function E1(o, t, e) {
|
|
682
682
|
if (e == null) return;
|
|
683
683
|
const i = I1(t);
|
|
@@ -687,20 +687,20 @@ function E1(o, t, e) {
|
|
|
687
687
|
}
|
|
688
688
|
e.length > 400 && (e = e.substring(0, 400) + "...");
|
|
689
689
|
const n = e;
|
|
690
|
-
if (
|
|
690
|
+
if (wc.has(n))
|
|
691
691
|
return;
|
|
692
692
|
const s = L1(o, e);
|
|
693
693
|
i.prepend(s);
|
|
694
694
|
const a = () => {
|
|
695
|
-
|
|
695
|
+
wc.delete(n), g_(s);
|
|
696
696
|
};
|
|
697
|
-
|
|
697
|
+
wc.set(n, a), setTimeout(a, 1e4);
|
|
698
698
|
}
|
|
699
699
|
function CL() {
|
|
700
700
|
W0 && console.log("Clearing messages");
|
|
701
|
-
for (const o of
|
|
701
|
+
for (const o of wc.values())
|
|
702
702
|
o == null || o.call(o);
|
|
703
|
-
|
|
703
|
+
wc.clear();
|
|
704
704
|
}
|
|
705
705
|
const A1 = `
|
|
706
706
|
|
|
@@ -971,12 +971,12 @@ class X0 {
|
|
|
971
971
|
this.x.reset(t == null ? void 0 : t.x), this.y.reset(t == null ? void 0 : t.y), this.z.reset(t == null ? void 0 : t.z);
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
|
-
const
|
|
974
|
+
const _d = "needle:cameraController";
|
|
975
975
|
function B1(o) {
|
|
976
|
-
return o[
|
|
976
|
+
return o[_d];
|
|
977
977
|
}
|
|
978
978
|
function __(o, t, e) {
|
|
979
|
-
e ? o[
|
|
979
|
+
e ? o[_d] = t : o[_d] === t && (o[_d] = null);
|
|
980
980
|
}
|
|
981
981
|
const fm = "needle:autofit";
|
|
982
982
|
function F1(o) {
|
|
@@ -1072,7 +1072,7 @@ const W1 = new on(() => new w(), 100), V1 = new w();
|
|
|
1072
1072
|
function Ke(o, t = null) {
|
|
1073
1073
|
return t || (t = W1.get()), o ? o.parent ? (o.getWorldScale(t), t) : t.copy(o.scale) : t.set(0, 0, 0);
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Hc(o, t) {
|
|
1076
1076
|
if (!o) return;
|
|
1077
1077
|
if (!o.parent) {
|
|
1078
1078
|
o.scale.copy(t);
|
|
@@ -1304,7 +1304,7 @@ function tP(o, t, e) {
|
|
|
1304
1304
|
const c = new w();
|
|
1305
1305
|
c.set(a.x / n.x, a.y / n.y, a.z / n.z);
|
|
1306
1306
|
const h = Math.min(c.x, c.y, c.z), d = (e == null ? void 0 : e.scale) !== !1;
|
|
1307
|
-
if (d &&
|
|
1307
|
+
if (d && Hc(o, Ke(o).multiplyScalar(h)), (e == null ? void 0 : e.position) !== !1) {
|
|
1308
1308
|
const u = new w();
|
|
1309
1309
|
i.getCenter(u), u.y = i.min.y;
|
|
1310
1310
|
const f = new w();
|
|
@@ -1342,21 +1342,21 @@ function ev(o, t, e, i) {
|
|
|
1342
1342
|
const s = t;
|
|
1343
1343
|
return s && (s.map ? n.color.set(1, 1, 1) : n.color.copyLinearToSRGB(s.color), n.emissive.copyLinearToSRGB(s.emissive), n.emissiveIntensity = s.emissiveIntensity, n.opacity = s.opacity, n.displacementScale = s.displacementScale, n.transparent = s.transparent, n.bumpMap = s.bumpMap, n.aoMap = s.aoMap, n.map = s.map, n.displacementMap = s.displacementMap, n.emissiveMap = s.emissiveMap, n.normalMap = s.normalMap, n.envMap = s.envMap, n.alphaMap = s.alphaMap, n.metalness = s.reflectivity, n.vertexColors = s.vertexColors, s.shininess && (n.roughness = 1 - Math.sqrt(s.shininess) / 10), n.needsUpdate = !0), e === void 0 ? o.material = n : i[e] = n, !0;
|
|
1344
1344
|
}
|
|
1345
|
-
let
|
|
1345
|
+
let Uh = !1;
|
|
1346
1346
|
O1((...o) => {
|
|
1347
1347
|
var t;
|
|
1348
1348
|
z() && ((t = fe.Current) != null && t.isInXR) && (Wa(!0), tv("error", ...o));
|
|
1349
1349
|
});
|
|
1350
1350
|
function Wa(o) {
|
|
1351
1351
|
if (o) {
|
|
1352
|
-
if (
|
|
1353
|
-
|
|
1352
|
+
if (Uh) return;
|
|
1353
|
+
Uh = !0, sP();
|
|
1354
1354
|
} else {
|
|
1355
|
-
if (!
|
|
1356
|
-
|
|
1355
|
+
if (!Uh) return;
|
|
1356
|
+
Uh = !1, oP();
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
const
|
|
1359
|
+
const xc = {
|
|
1360
1360
|
log: void 0,
|
|
1361
1361
|
warn: void 0,
|
|
1362
1362
|
error: void 0
|
|
@@ -1492,12 +1492,12 @@ class nP {
|
|
|
1492
1492
|
let Jt = null;
|
|
1493
1493
|
function sP() {
|
|
1494
1494
|
Jt || (Jt = new nP()), Jt.onEnable();
|
|
1495
|
-
for (const o in
|
|
1496
|
-
|
|
1495
|
+
for (const o in xc) {
|
|
1496
|
+
xc[o] = console[o];
|
|
1497
1497
|
let t = !1;
|
|
1498
1498
|
console[o] = function() {
|
|
1499
1499
|
var e;
|
|
1500
|
-
if ((e =
|
|
1500
|
+
if ((e = xc[o]) == null || e.apply(console, arguments), !t)
|
|
1501
1501
|
try {
|
|
1502
1502
|
t = !0, tv(o, ...arguments);
|
|
1503
1503
|
} finally {
|
|
@@ -1508,8 +1508,8 @@ function sP() {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
function oP() {
|
|
1510
1510
|
Jt == null || Jt.onDisable();
|
|
1511
|
-
for (const o in
|
|
1512
|
-
console[o] =
|
|
1511
|
+
for (const o in xc)
|
|
1512
|
+
console[o] = xc[o];
|
|
1513
1513
|
}
|
|
1514
1514
|
const $l = /* @__PURE__ */ new Map();
|
|
1515
1515
|
function tv(o, ...t) {
|
|
@@ -1806,12 +1806,12 @@ qo('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUIL
|
|
|
1806
1806
|
qo('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1807
1807
|
qo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.0-alpha";');
|
|
1808
1808
|
qo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1809
|
-
qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Jul 23 2025
|
|
1810
|
-
qo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "
|
|
1811
|
-
const es = "4.7.0-alpha", Tg = "undefined", av = "Wed Jul 23 2025
|
|
1809
|
+
qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Jul 23 2025 13:49:24 GMT+0000 (Coordinated Universal Time)";');
|
|
1810
|
+
qo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
1811
|
+
const es = "4.7.0-alpha", Tg = "undefined", av = "Wed Jul 23 2025 13:49:24 GMT+0000 (Coordinated Universal Time)";
|
|
1812
1812
|
rv && console.log(`Engine version: ${es} (generator: ${Tg})
|
|
1813
1813
|
Project built at ${av}`);
|
|
1814
|
-
const
|
|
1814
|
+
const cc = NEEDLE_PUBLIC_KEY, zo = "needle_isActiveInHierarchy", Sa = "builtin_components", bd = "needle_editor_guid";
|
|
1815
1815
|
function qo(o) {
|
|
1816
1816
|
try {
|
|
1817
1817
|
(0, eval)(o);
|
|
@@ -2025,7 +2025,7 @@ class go extends PointerEvent {
|
|
|
2025
2025
|
this._propagationStopped = !0, super.stopPropagation(), (e = this.source) == null || e.stopPropagation(), ht && console.warn("Stop propagation...", this.pointerId, this.pointerType);
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
|
-
class
|
|
2028
|
+
class Nh extends KeyboardEvent {
|
|
2029
2029
|
constructor(e, i, n) {
|
|
2030
2030
|
super(e, n);
|
|
2031
2031
|
r(this, "source");
|
|
@@ -2114,7 +2114,7 @@ class vP {
|
|
|
2114
2114
|
const e = this.keysPressed[t.code];
|
|
2115
2115
|
if (e && e.pressed) return;
|
|
2116
2116
|
this.keysPressed[t.code] = { pressed: !0, frame: this.context.time.frameCount + 1, startFrame: this.context.time.frameCount + 1, key: t.key, code: t.code };
|
|
2117
|
-
const i = new
|
|
2117
|
+
const i = new Nh("keydown", t, t);
|
|
2118
2118
|
this.onDispatchEvent(i);
|
|
2119
2119
|
});
|
|
2120
2120
|
r(this, "onKeyPressed", (t) => {
|
|
@@ -2123,7 +2123,7 @@ class vP {
|
|
|
2123
2123
|
const e = this.keysPressed[t.code];
|
|
2124
2124
|
if (!e) return;
|
|
2125
2125
|
e.pressed = !0, e.frame = this.context.time.frameCount + 1;
|
|
2126
|
-
const i = new
|
|
2126
|
+
const i = new Nh("keypress", t, t);
|
|
2127
2127
|
this.onDispatchEvent(i);
|
|
2128
2128
|
});
|
|
2129
2129
|
r(this, "onKeyUp", (t) => {
|
|
@@ -2132,7 +2132,7 @@ class vP {
|
|
|
2132
2132
|
const e = this.keysPressed[t.code];
|
|
2133
2133
|
if (!e) return;
|
|
2134
2134
|
e.pressed = !1, e.frame = this.context.time.frameCount + 1;
|
|
2135
|
-
const i = new
|
|
2135
|
+
const i = new Nh("keyup", t, t);
|
|
2136
2136
|
this.onDispatchEvent(i);
|
|
2137
2137
|
});
|
|
2138
2138
|
r(this, "onWheelWindow", (t) => {
|
|
@@ -2226,7 +2226,7 @@ class vP {
|
|
|
2226
2226
|
dispatchEvent(t) {
|
|
2227
2227
|
var i, n, s, a;
|
|
2228
2228
|
let e = !1;
|
|
2229
|
-
if (t instanceof
|
|
2229
|
+
if (t instanceof Nh) {
|
|
2230
2230
|
const l = this._eventListeners[t.type];
|
|
2231
2231
|
if (l)
|
|
2232
2232
|
for (const c of l)
|
|
@@ -2715,7 +2715,7 @@ class xP {
|
|
|
2715
2715
|
return this.gameObject.visible;
|
|
2716
2716
|
}
|
|
2717
2717
|
}
|
|
2718
|
-
const ys = S("debugwebxr"),
|
|
2718
|
+
const ys = S("debugwebxr"), $h = S("debugcustomgesture"), SP = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", CP = "generic-trigger", PP = new W().setFromEuler(new Ft(zs.degToRad(0), zs.degToRad(-90), zs.degToRad(-90))), OP = new w(0.04, -0.04, 0);
|
|
2719
2719
|
class fv {
|
|
2720
2720
|
constructor(t, e, i) {
|
|
2721
2721
|
/** the Needle XR Session */
|
|
@@ -2813,10 +2813,10 @@ class fv {
|
|
|
2813
2813
|
if (!this.emitPointerDownEvent || this.inputSource !== t.inputSource) return;
|
|
2814
2814
|
this.onUpdateFrame(t.frame), this._hasSelectEvent = !0;
|
|
2815
2815
|
const e = (n = this._layout) == null ? void 0 : n.selectComponentId, i = (l = (a = (s = this._layout) == null ? void 0 : s.components[e]) == null ? void 0 : a.gamepadIndices) == null ? void 0 : l.button;
|
|
2816
|
-
i !== void 0 && (this._selectButtonIndex = i),
|
|
2816
|
+
i !== void 0 && (this._selectButtonIndex = i), !$h && (ys && H.DrawDirection(this.rayWorldPosition, q(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this.emitPointerEvent(We.PointerDown, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
|
|
2817
2817
|
});
|
|
2818
2818
|
r(this, "onSelectEnd", (t) => {
|
|
2819
|
-
this.emitPointerUpEvent && (
|
|
2819
|
+
this.emitPointerUpEvent && ($h || this.inputSource === t.inputSource && this.emitPointerEvent(We.PointerUp, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
|
|
2820
2820
|
});
|
|
2821
2821
|
r(this, "onSequeezeStart", (t) => {
|
|
2822
2822
|
var e, i, n;
|
|
@@ -3254,7 +3254,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
|
|
|
3254
3254
|
const c = n !== this._selectButtonIndex && n !== this._squeezeButtonIndex;
|
|
3255
3255
|
if (l != null && c) {
|
|
3256
3256
|
let h = (e = this._layout) == null ? void 0 : e.gamepad[n];
|
|
3257
|
-
this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (ys ||
|
|
3257
|
+
this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (ys || $h) && console.log("Emitting pointer event", l, n, h, s.value, this.gamepad, this._layout), this.emitPointerEvent(l, n, h ?? "none", !1, null, s.value);
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
3260
|
if (this._isMetaQuestTouchController) {
|
|
@@ -3277,7 +3277,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
|
|
|
3277
3277
|
const u = this.states.pinch || new R_(), f = (0.02 + 0.01) * 1.5;
|
|
3278
3278
|
u.value = 1 - (l - 0.02) / f;
|
|
3279
3279
|
const m = l < 0.02 - 0.01, g = l > 0.02 + 0.01;
|
|
3280
|
-
m && !u.pressed ? (
|
|
3280
|
+
m && !u.pressed ? ($h && console.log("pinch start", l), u.isDown = !0, u.isUp = !1, u.pressed = !0) : g && u.pressed ? (u.isDown = !1, u.isUp = !0, u.pressed = !1) : (u.isDown = !1, u.isUp = !1), this.states.pinch = u;
|
|
3281
3281
|
}
|
|
3282
3282
|
}
|
|
3283
3283
|
}
|
|
@@ -3473,17 +3473,17 @@ function pv(o, t) {
|
|
|
3473
3473
|
n.length = 0, I_(o, s, e), s.length > 0 && (Ta.has(t) || Ta.set(t, new Array()), Ta.get(t).push(...s));
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
|
-
const
|
|
3476
|
+
const Wh = new Array(), A_ = {
|
|
3477
3477
|
context: null
|
|
3478
3478
|
};
|
|
3479
3479
|
function I_(o, t, e) {
|
|
3480
3480
|
var n, s;
|
|
3481
|
-
|
|
3481
|
+
Wh.length = 0;
|
|
3482
3482
|
for (let a = 0; a < t.length; a++)
|
|
3483
|
-
|
|
3483
|
+
Wh.push(t[a]);
|
|
3484
3484
|
let i = vm.get(o);
|
|
3485
|
-
for (let a = 0; a <
|
|
3486
|
-
const l =
|
|
3485
|
+
for (let a = 0; a < Wh.length; a++) {
|
|
3486
|
+
const l = Wh[a];
|
|
3487
3487
|
let c = !0;
|
|
3488
3488
|
if (i && i.has(l) && (c = !1), c)
|
|
3489
3489
|
try {
|
|
@@ -3525,7 +3525,7 @@ function RP(o, t) {
|
|
|
3525
3525
|
}, o ? new o_(o, t) : new o_(t);
|
|
3526
3526
|
}
|
|
3527
3527
|
async function L_() {
|
|
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 TP {
|
|
@@ -3612,7 +3612,7 @@ class AP extends EP {
|
|
|
3612
3612
|
var Nn = /* @__PURE__ */ ((o) => (o[o.OnConnection = 0] = "OnConnection", o[o.OnRoomJoin = 1] = "OnRoomJoin", o[o.Queued = 2] = "Queued", o[o.Immediate = 3] = "Immediate", o))(Nn || {});
|
|
3613
3613
|
const D_ = "https://urls.needle.tools/default-networking-backend/index";
|
|
3614
3614
|
let hi = "wss://networking.needle.tools/socket";
|
|
3615
|
-
const Ci = !!S("debugnet"),
|
|
3615
|
+
const Ci = !!S("debugnet"), Vh = !!(Ci || S("debugowner")), Hh = S("debugnetbin");
|
|
3616
3616
|
var IP = /* @__PURE__ */ ((o) => (o.ConnectionInfo = "connection-start-info", o))(IP || {}), se = /* @__PURE__ */ ((o) => (o.Join = "join-room", o.Leave = "leave-room", o.JoinedRoom = "joined-room", o.LeftRoom = "left-room", o.UserJoinedRoom = "user-joined-room", o.UserLeftRoom = "user-left-room", o.RoomStateSent = "room-state-sent", o))(se || {});
|
|
3617
3617
|
class FL {
|
|
3618
3618
|
constructor() {
|
|
@@ -3673,7 +3673,7 @@ class yv {
|
|
|
3673
3673
|
return this._isWaitingForOwnershipResponseCallback !== null ? this : (this._isWaitingForOwnershipResponseCallback = this.waitForHasOwnershipRequestResponse.bind(this), this.connection.beginListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this.connection.send("request-has-owner", { guid: this.guid }), this);
|
|
3674
3674
|
}
|
|
3675
3675
|
waitForHasOwnershipRequestResponse(t) {
|
|
3676
|
-
t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || (
|
|
3676
|
+
t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || (Vh && console.log("request ownership", this.guid), this.requestOwnership()));
|
|
3677
3677
|
}
|
|
3678
3678
|
requestOwnershipAsync() {
|
|
3679
3679
|
return new Promise((t, e) => {
|
|
@@ -3689,7 +3689,7 @@ class yv {
|
|
|
3689
3689
|
});
|
|
3690
3690
|
}
|
|
3691
3691
|
requestOwnership() {
|
|
3692
|
-
return
|
|
3692
|
+
return Vh && console.log("Request ownership", this.guid), this.connection.send("request-ownership", { guid: this.guid }), this;
|
|
3693
3693
|
}
|
|
3694
3694
|
freeOwnership() {
|
|
3695
3695
|
return this.connection.send("remove-ownership", { guid: this.guid }), this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this;
|
|
@@ -3698,10 +3698,10 @@ class yv {
|
|
|
3698
3698
|
this.connection.stopListen("gained-ownership", this._gainSubscription), this.connection.stopListen("lost-ownership", this._lostSubscription), this.connection.stopListen("response-has-owner", this._hasOwnerResponse), this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null);
|
|
3699
3699
|
}
|
|
3700
3700
|
onGainedOwnership(t) {
|
|
3701
|
-
t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? (
|
|
3701
|
+
t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? (Vh && console.log("GAINED OWNERSHIP", this.guid), this._hasOwnership = !0) : this._hasOwnership = !1);
|
|
3702
3702
|
}
|
|
3703
3703
|
onLostOwnership(t) {
|
|
3704
|
-
t === this.guid && (
|
|
3704
|
+
t === this.guid && (Vh && console.log("LOST OWNERSHIP", this.guid), this._hasOwnership = !1, this._isOwned = !1);
|
|
3705
3705
|
}
|
|
3706
3706
|
}
|
|
3707
3707
|
class DP {
|
|
@@ -3838,7 +3838,7 @@ class DP {
|
|
|
3838
3838
|
/** Send a binary message to the server (broadcasted to all connected users) */
|
|
3839
3839
|
sendBinary(t) {
|
|
3840
3840
|
var e;
|
|
3841
|
-
|
|
3841
|
+
Hh && console.log("<< send binary", this.context.time.frame, t.length / 1024 + " KB"), (e = this._ws) == null || e.send(t);
|
|
3842
3842
|
}
|
|
3843
3843
|
sendBufferedMessagesNow() {
|
|
3844
3844
|
var i;
|
|
@@ -3955,7 +3955,7 @@ class DP {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
console.debug(`⊡ Connecting to networking backend on
|
|
3957
3957
|
` + hi);
|
|
3958
|
-
const s = await import("./vendor-
|
|
3958
|
+
const s = await import("./vendor-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(hi).withMaxRetries(10).withBackoff(new l(2e3, 4)).onOpen(() => {
|
|
3959
3959
|
this._connectingToWebsocketPromise = null, this._ws = c, this.connected = !0, z() || Ci ? console.log(`⊞ Connected to networking backend
|
|
3960
3960
|
` + hi) : console.debug("⊞ Connected to networking backend", hi), n(!0), this.onSendQueued(Nn.OnConnection);
|
|
3961
3961
|
}).onClose((u) => {
|
|
@@ -3990,7 +3990,7 @@ class DP {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
3992
|
async handleIncomingBinaryMessage(t) {
|
|
3993
|
-
|
|
3993
|
+
Hh && console.log("<< bin", this.context.time.frame);
|
|
3994
3994
|
const e = await t.arrayBuffer();
|
|
3995
3995
|
var i = new Uint8Array(e);
|
|
3996
3996
|
const n = new XC(i), s = n.getBufferIdentifier(), a = this._listenersBinary[s], l = kP(n), c = MP(l);
|
|
@@ -4017,7 +4017,7 @@ class DP {
|
|
|
4017
4017
|
if (Ci && console.log(t), t) {
|
|
4018
4018
|
this._isInRoom = !0;
|
|
4019
4019
|
const c = t;
|
|
4020
|
-
this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (
|
|
4020
|
+
this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (Hh || z()) && console.debug("Joined Needle Engine Room: " + c.room);
|
|
4021
4021
|
const h = new URL(window.location.href);
|
|
4022
4022
|
h.searchParams.has("room") && h.searchParams.delete("room"), h.searchParams.set("view", this._currentRoomViewId), console.debug(`Room view id: ${this._currentRoomViewId}
|
|
4023
4023
|
${h.href}`);
|
|
@@ -4026,7 +4026,7 @@ ${h.href}`);
|
|
|
4026
4026
|
break;
|
|
4027
4027
|
case "left-room":
|
|
4028
4028
|
const a = t;
|
|
4029
|
-
a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (
|
|
4029
|
+
a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (Hh || z()) && console.debug("Left Needle Engine Room: " + a.room));
|
|
4030
4030
|
break;
|
|
4031
4031
|
case "user-joined-room":
|
|
4032
4032
|
if (t.data) {
|
|
@@ -4086,7 +4086,7 @@ ${h.href}`);
|
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
4088
|
}
|
|
4089
|
-
const
|
|
4089
|
+
const Sc = S("debugwebxr");
|
|
4090
4090
|
class op {
|
|
4091
4091
|
constructor(t, e) {
|
|
4092
4092
|
r(this, "controllerStates", []);
|
|
@@ -4094,7 +4094,7 @@ class op {
|
|
|
4094
4094
|
r(this, "context");
|
|
4095
4095
|
r(this, "userStateEvtName");
|
|
4096
4096
|
r(this, "onReceivedControllerState", (t) => {
|
|
4097
|
-
|
|
4097
|
+
Sc && console.log(`XRSync: Received change for ${this.userId}: ${t.type} ${t.handedness}; tracked=${t.isTracking}`);
|
|
4098
4098
|
let e = !1;
|
|
4099
4099
|
for (let i = 0; i < this.controllerStates.length; i++)
|
|
4100
4100
|
if (this.controllerStates[i].index === t.index) {
|
|
@@ -4115,7 +4115,7 @@ class op {
|
|
|
4115
4115
|
let n = !1;
|
|
4116
4116
|
for (let s = 0; s < t.controllers.length; s++)
|
|
4117
4117
|
t.controllers[s].index === i.index && (n = !0);
|
|
4118
|
-
n || (
|
|
4118
|
+
n || (Sc && console.log(`XRSync: ${i.type} ${i.handedness} removed`, i.index), this.controllerStates.splice(e, 1), this.sendControllerRemoved(i));
|
|
4119
4119
|
}
|
|
4120
4120
|
for (const e of t.controllers)
|
|
4121
4121
|
this.updateControllerStates(e);
|
|
@@ -4142,7 +4142,7 @@ class op {
|
|
|
4142
4142
|
index: t.index,
|
|
4143
4143
|
type: t.hand ? "hand" : "controller"
|
|
4144
4144
|
};
|
|
4145
|
-
this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i),
|
|
4145
|
+
this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i), Sc && console.log(`XRSync: ${i.type} ${i.handedness} added`, i.index);
|
|
4146
4146
|
}
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
@@ -4151,7 +4151,7 @@ class jP {
|
|
|
4151
4151
|
r(this, "context");
|
|
4152
4152
|
r(this, "onJoinedRoom", () => {
|
|
4153
4153
|
if (this.context.connection.connectionId) {
|
|
4154
|
-
this._states.has(this.context.connection.connectionId) || (
|
|
4154
|
+
this._states.has(this.context.connection.connectionId) || (Sc && console.log("XRSync: Local user joined room", this.context.connection.connectionId), this._states.set(this.context.connection.connectionId, new op(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 op(t, this.context));
|
|
4157
4157
|
}
|
|
@@ -4164,7 +4164,7 @@ class jP {
|
|
|
4164
4164
|
});
|
|
4165
4165
|
r(this, "onOtherUserJoinedRoom", (t) => {
|
|
4166
4166
|
const e = t.userId;
|
|
4167
|
-
this._states.has(e) || (
|
|
4167
|
+
this._states.has(e) || (Sc && console.log("XRSync: Remote user joined room", e), this._states.set(e, new op(e, this.context)));
|
|
4168
4168
|
});
|
|
4169
4169
|
r(this, "onOtherUserLeftRoom", (t) => {
|
|
4170
4170
|
const e = t.userId;
|
|
@@ -4252,7 +4252,7 @@ class j_ {
|
|
|
4252
4252
|
return this._transitionPromise = t, t;
|
|
4253
4253
|
}
|
|
4254
4254
|
}
|
|
4255
|
-
var ol = /* @__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))(ol || {}),
|
|
4255
|
+
var ol = /* @__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))(ol || {}), ah, wm;
|
|
4256
4256
|
class ta {
|
|
4257
4257
|
/**
|
|
4258
4258
|
* Creates a 3D text object
|
|
@@ -4262,10 +4262,10 @@ class ta {
|
|
|
4262
4262
|
static createText(t, e) {
|
|
4263
4263
|
let i = null;
|
|
4264
4264
|
const n = (e == null ? void 0 : e.font) || FP((e == null ? void 0 : e.familyFamily) || null);
|
|
4265
|
-
n instanceof OC ? i = Nl(this,
|
|
4265
|
+
n instanceof OC ? i = Nl(this, ah, wm).call(this, t, n, e) : i == null && (i = new Jn());
|
|
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 = Nl(this,
|
|
4268
|
+
a.geometry = Nl(this, ah, wm).call(this, t, l, e), e != null && e.onGeometry && e.onGeometry(a);
|
|
4269
4269
|
}) : e != null && e.onGeometry && e.onGeometry(a), a;
|
|
4270
4270
|
}
|
|
4271
4271
|
/**
|
|
@@ -4337,7 +4337,7 @@ class ta {
|
|
|
4337
4337
|
t.receiveShadow = !0, t.castShadow = !0, e != null && e.name && (t.name = e.name), e != null && e.position && (Array.isArray(e.position) ? t.position.set(e.position[0], e.position[1], e.position[2]) : t.position.set(e.position.x, e.position.y, e.position.z)), e != null && e.rotation && (Array.isArray(e.rotation) ? t.rotation.set(e.rotation[0], e.rotation[1], e.rotation[2]) : t.rotation.set(e.rotation.x, e.rotation.y, e.rotation.z)), e != null && e.scale && (typeof e.scale == "number" ? t.scale.set(e.scale, e.scale, e.scale) : Array.isArray(e.scale) ? t.scale.set(e.scale[0], e.scale[1], e.scale[2]) : t.scale.set(e.scale.x, e.scale.y, e.scale.z)), (e == null ? void 0 : e.receiveShadow) != null && (t.receiveShadow = e.receiveShadow), (e == null ? void 0 : e.castShadow) != null && (t.castShadow = e.castShadow), e != null && e.parent && e.parent.add(t);
|
|
4338
4338
|
}
|
|
4339
4339
|
}
|
|
4340
|
-
|
|
4340
|
+
ah = new WeakSet(), wm = function(t, e, i) {
|
|
4341
4341
|
const n = (i == null ? void 0 : i.depth) || 0.1;
|
|
4342
4342
|
return new kC(t, {
|
|
4343
4343
|
font: e,
|
|
@@ -4349,7 +4349,7 @@ rh = new WeakSet(), wm = function(t, e, i) {
|
|
|
4349
4349
|
bevelOffset: 0.01,
|
|
4350
4350
|
bevelSize: 0.01
|
|
4351
4351
|
});
|
|
4352
|
-
}, mn(ta,
|
|
4352
|
+
}, mn(ta, ah);
|
|
4353
4353
|
function BP(o, t, e, i, n) {
|
|
4354
4354
|
const s = new hS(), a = 1e-5, l = i - a;
|
|
4355
4355
|
s.absarc(a, a, a, -Math.PI / 2, -Math.PI, !0), s.absarc(a, t - l * 2, a, Math.PI, Math.PI / 2, !0), s.absarc(o - l * 2, t - l * 2, a, Math.PI / 2, 0, !0), s.absarc(o - l * 2, a, a, 0, -Math.PI / 2, !0);
|
|
@@ -4363,7 +4363,7 @@ function BP(o, t, e, i, n) {
|
|
|
4363
4363
|
});
|
|
4364
4364
|
return c.scale(1, 1, 1 - i), c.center(), c.computeVertexNormals(), c;
|
|
4365
4365
|
}
|
|
4366
|
-
const
|
|
4366
|
+
const Gh = /* @__PURE__ */ new Map();
|
|
4367
4367
|
function FP(o) {
|
|
4368
4368
|
let t = "";
|
|
4369
4369
|
switch (o) {
|
|
@@ -4375,16 +4375,16 @@ function FP(o) {
|
|
|
4375
4375
|
t = "https://raw.githubusercontent.com/mrdoob/three.js/master/examples/fonts/helvetiker_regular.typeface.json";
|
|
4376
4376
|
break;
|
|
4377
4377
|
}
|
|
4378
|
-
if (
|
|
4379
|
-
const n =
|
|
4378
|
+
if (Gh.has(t)) {
|
|
4379
|
+
const n = Gh.get(t);
|
|
4380
4380
|
if (n) return n;
|
|
4381
4381
|
}
|
|
4382
4382
|
const e = new MC(), i = new Promise((n, s) => {
|
|
4383
4383
|
e.load(t, (a) => {
|
|
4384
|
-
|
|
4384
|
+
Gh.set(t, a), n(a);
|
|
4385
4385
|
}, void 0, s);
|
|
4386
4386
|
});
|
|
4387
|
-
return
|
|
4387
|
+
return Gh.set(t, i), i;
|
|
4388
4388
|
}
|
|
4389
4389
|
let rp = !1, ap = null;
|
|
4390
4390
|
function zP(o, t) {
|
|
@@ -4421,7 +4421,7 @@ function B_(o, t) {
|
|
|
4421
4421
|
function F_() {
|
|
4422
4422
|
return new jo().add(ta.createPrimitive("Sphere", { material: new Me({ transparent: !0, opacity: 0.1 }) }));
|
|
4423
4423
|
}
|
|
4424
|
-
const
|
|
4424
|
+
const jc = class jc {
|
|
4425
4425
|
constructor(t, e, i) {
|
|
4426
4426
|
r(this, "_session");
|
|
4427
4427
|
r(this, "_mode");
|
|
@@ -4456,7 +4456,7 @@ const Dc = class Dc {
|
|
|
4456
4456
|
const i = await navigator.xr.requestSession(t, e);
|
|
4457
4457
|
return i.addEventListener("end", () => {
|
|
4458
4458
|
this._active = null;
|
|
4459
|
-
}), this._requestInFlight ? (this._requestInFlight = !1, this._active = new
|
|
4459
|
+
}), this._requestInFlight ? (this._requestInFlight = !1, this._active = new jc(t, e, i), this._active) : (i.end(), null);
|
|
4460
4460
|
}
|
|
4461
4461
|
return null;
|
|
4462
4462
|
}
|
|
@@ -4518,9 +4518,9 @@ const Dc = class Dc {
|
|
|
4518
4518
|
}
|
|
4519
4519
|
}
|
|
4520
4520
|
};
|
|
4521
|
-
r(
|
|
4522
|
-
let rl =
|
|
4523
|
-
var
|
|
4521
|
+
r(jc, "_active", null), r(jc, "_requestInFlight", !1);
|
|
4522
|
+
let rl = jc;
|
|
4523
|
+
var Gc;
|
|
4524
4524
|
((o) => {
|
|
4525
4525
|
const t = [];
|
|
4526
4526
|
function e() {
|
|
@@ -4540,7 +4540,7 @@ var Hc;
|
|
|
4540
4540
|
a >= 0 && t.splice(a, 1);
|
|
4541
4541
|
}
|
|
4542
4542
|
o.unregisterExporter = n;
|
|
4543
|
-
})(
|
|
4543
|
+
})(Gc || (Gc = {}));
|
|
4544
4544
|
const et = S("debugwebxr"), z_ = S("stats");
|
|
4545
4545
|
let lp = 0;
|
|
4546
4546
|
function UP(o) {
|
|
@@ -4706,7 +4706,7 @@ const Qe = class Qe {
|
|
|
4706
4706
|
this._newControllers.length = 0, this.controllers.length = 0;
|
|
4707
4707
|
for (const c of this._xr_scripts)
|
|
4708
4708
|
(s = c == null ? void 0 : c.onLeaveXR) == null || s.call(c, { xr: this });
|
|
4709
|
-
(a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && vt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && Mn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale &&
|
|
4709
|
+
(a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && vt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && Mn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale && Hc(this.context.mainCamera, this._originalCameraWorldScale)), this.context.requestSizeUpdate(), this._defaultRig.gameObject.removeFromParent(), Wa(!1);
|
|
4710
4710
|
});
|
|
4711
4711
|
r(this, "_didStart", !1);
|
|
4712
4712
|
/** Called every frame by the engine */
|
|
@@ -5008,7 +5008,7 @@ const Qe = class Qe {
|
|
|
5008
5008
|
if (await this.isARSupported())
|
|
5009
5009
|
t = "immersive-ar";
|
|
5010
5010
|
else
|
|
5011
|
-
return
|
|
5011
|
+
return Gc.exportAndOpen(), null;
|
|
5012
5012
|
} else t == "ar" && (t = "immersive-ar");
|
|
5013
5013
|
if (z() && S("debugxrpreroom"))
|
|
5014
5014
|
return console.warn("Debug: Starting temporary XR session"), await rl.start(t, e || Qe.getDefaultSessionInit(t)), null;
|
|
@@ -5700,16 +5700,16 @@ class Le {
|
|
|
5700
5700
|
static getLine(t) {
|
|
5701
5701
|
let e = this.linesCache.pop();
|
|
5702
5702
|
if (!e) {
|
|
5703
|
-
e = new
|
|
5703
|
+
e = new $c();
|
|
5704
5704
|
let i = e.geometry.getAttribute("position");
|
|
5705
|
-
i || (i = new _t(new Float32Array(
|
|
5705
|
+
i || (i = new _t(new Float32Array(6), 3), e.geometry.setAttribute("position", i));
|
|
5706
5706
|
}
|
|
5707
5707
|
return e.frustumCulled = !1, this.registerTimedObject(Z.Current, e, t, this.linesCache), e;
|
|
5708
5708
|
}
|
|
5709
5709
|
static getCircle(t) {
|
|
5710
5710
|
let e = this.circlesCache.pop();
|
|
5711
5711
|
if (!e) {
|
|
5712
|
-
e = new
|
|
5712
|
+
e = new $c();
|
|
5713
5713
|
let i = e.geometry.getAttribute("position");
|
|
5714
5714
|
if (!i) {
|
|
5715
5715
|
i = new _t(new Float32Array(hp * 3), 3), e.geometry.setAttribute("position", i);
|
|
@@ -5833,7 +5833,7 @@ class bv {
|
|
|
5833
5833
|
this.object = t, this.distance = e, this.point = i;
|
|
5834
5834
|
}
|
|
5835
5835
|
}
|
|
5836
|
-
const
|
|
5836
|
+
const Bc = class Bc {
|
|
5837
5837
|
constructor(t) {
|
|
5838
5838
|
r(this, "context");
|
|
5839
5839
|
r(this, "engine");
|
|
@@ -5918,14 +5918,14 @@ const jc = class jc {
|
|
|
5918
5918
|
let n = t.targets;
|
|
5919
5919
|
n || (n = this.targetBuffer, n.length = 1, n[0] = this.context.scene);
|
|
5920
5920
|
let s = t.results;
|
|
5921
|
-
this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), s || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), s = this.defaultRaycastOptions.results), t.layerMask !== void 0 ? t.layerMask instanceof Wo ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), ki && console.time("raycast"), s.length = 0,
|
|
5921
|
+
this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), s || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), s = this.defaultRaycastOptions.results), t.layerMask !== void 0 ? t.layerMask instanceof Wo ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), ki && console.time("raycast"), s.length = 0, Bc._raycasting++, this.intersect(this.raycaster, n, s, t), s.sort((l, c) => l.distance - c.distance);
|
|
5922
5922
|
const a = t.ignore;
|
|
5923
|
-
return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))),
|
|
5923
|
+
return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))), Bc._raycasting--, ki && (console.timeEnd("raycast"), console.warn("#" + this.context.time.frame + ", hits:", s != null && s.length ? [...s] : "nothing"), performance.mark("raycast.end"), performance.measure("raycast", "raycast.start", "raycast.end")), s;
|
|
5924
5924
|
}
|
|
5925
5925
|
intersect(t, e, i, n) {
|
|
5926
5926
|
var s, a, l;
|
|
5927
5927
|
for (const c of e) {
|
|
5928
|
-
if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof
|
|
5928
|
+
if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof $c)
|
|
5929
5929
|
continue;
|
|
5930
5930
|
let h = !0;
|
|
5931
5931
|
const d = c, u = d.geometry;
|
|
@@ -5952,7 +5952,7 @@ const jc = class jc {
|
|
|
5952
5952
|
}
|
|
5953
5953
|
intersectSphere(t, e, i, n, s, a, l, c) {
|
|
5954
5954
|
let h = t && t.isMesh && t.layers.test(n) && !H.isGizmo(t);
|
|
5955
|
-
h && (h = t.visible), h && (h = !(t instanceof
|
|
5955
|
+
h && (h = t.visible), h && (h = !(t instanceof $c)), h && (h = !(t instanceof el));
|
|
5956
5956
|
const d = t, u = d.geometry;
|
|
5957
5957
|
if (h && c) {
|
|
5958
5958
|
const f = c(t);
|
|
@@ -5983,12 +5983,12 @@ const jc = class jc {
|
|
|
5983
5983
|
}
|
|
5984
5984
|
}
|
|
5985
5985
|
};
|
|
5986
|
-
r(
|
|
5987
|
-
let Hd =
|
|
5986
|
+
r(Bc, "_raycasting", 0);
|
|
5987
|
+
let Hd = Bc;
|
|
5988
5988
|
function W_(o) {
|
|
5989
5989
|
return !(o.index && o.index.array.length < 3);
|
|
5990
5990
|
}
|
|
5991
|
-
const ur = new ju(),
|
|
5991
|
+
const ur = new ju(), qh = new Hr(), QP = new v0();
|
|
5992
5992
|
function YP(o, t, e) {
|
|
5993
5993
|
const i = o._computeIntersections;
|
|
5994
5994
|
if (!i)
|
|
@@ -5998,12 +5998,12 @@ function YP(o, t, e) {
|
|
|
5998
5998
|
const c = this, h = c.geometry.boundingSphere;
|
|
5999
5999
|
if (h) {
|
|
6000
6000
|
if (c instanceof el) {
|
|
6001
|
-
|
|
6002
|
-
const u = s.ray.intersectPlane(
|
|
6001
|
+
qh.setFromNormalAndCoplanarPoint(q(0, 1, 0), q(0, -c.position.y, 0)), qh.applyMatrix4(c.matrixWorld, QP);
|
|
6002
|
+
const u = s.ray.intersectPlane(qh, q());
|
|
6003
6003
|
if (u) {
|
|
6004
6004
|
ur.copy(h), ur.applyMatrix4(c.matrixWorld);
|
|
6005
6005
|
const m = q(u).sub(s.ray.origin).length(), g = ur.radius * 0.5;
|
|
6006
|
-
m < g && a.push({ distance: m, point: u, object: c, normal:
|
|
6006
|
+
m < g && a.push({ distance: m, point: u, object: c, normal: qh.normal.clone() });
|
|
6007
6007
|
}
|
|
6008
6008
|
return;
|
|
6009
6009
|
}
|
|
@@ -6085,7 +6085,7 @@ var Gd;
|
|
|
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
|
(ki || z()) && console.error("Failed to load BVH library...", b.message);
|
|
@@ -6231,28 +6231,28 @@ function eO(o) {
|
|
|
6231
6231
|
const tO = /* @__PURE__ */ new Set();
|
|
6232
6232
|
function Cv(o, t, e = null, i) {
|
|
6233
6233
|
if (i || (i = tO, i.clear()), !o) return i;
|
|
6234
|
-
const n = o[
|
|
6234
|
+
const n = o[qc];
|
|
6235
6235
|
if (n)
|
|
6236
6236
|
for (const s of n)
|
|
6237
6237
|
i.has(s) || (e == null ? void 0 : e.call(null, s)) !== !1 && (i.add(s), t && Cv(s, !0, e, i));
|
|
6238
6238
|
return i;
|
|
6239
6239
|
}
|
|
6240
6240
|
function WL(o) {
|
|
6241
|
-
return o[
|
|
6241
|
+
return o[hc];
|
|
6242
6242
|
}
|
|
6243
|
-
const Fr = S("debugresourceusers") || S("debugmemory"),
|
|
6243
|
+
const Fr = S("debugresourceusers") || S("debugmemory"), qc = Symbol("needle-resource-users"), hc = Symbol("needle-resource-users-count");
|
|
6244
6244
|
function Gt(o, t) {
|
|
6245
6245
|
Eg(o, t, function(e, i) {
|
|
6246
|
-
ia && !Hd.raycasting && (Xd(
|
|
6246
|
+
ia && !Hd.raycasting && (Xd(qc, this, e, !1), Xd(qc, this, i, !0));
|
|
6247
6247
|
});
|
|
6248
6248
|
}
|
|
6249
6249
|
ia && (Gt(G.prototype, "material"), Gt(G.prototype, "geometry"), Gt(Pe.prototype, "map"), Gt(Pe.prototype, "bumpMap"), Gt(Pe.prototype, "alphaMap"), Gt(Pe.prototype, "normalMap"), Gt(Pe.prototype, "displacementMap"), Gt(Pe.prototype, "roughnessMap"), Gt(Pe.prototype, "metalnessMap"), Gt(Pe.prototype, "emissiveMap"), Gt(Pe.prototype, "specularMap"), Gt(Pe.prototype, "envMap"), Gt(Pe.prototype, "lightMap"), Gt(Pe.prototype, "aoMap"), Gt(Pe.prototype, "gradientMap"));
|
|
6250
6250
|
function iO(o) {
|
|
6251
6251
|
if (ia === !1) return;
|
|
6252
|
-
const t = o[
|
|
6252
|
+
const t = o[qc];
|
|
6253
6253
|
if (t)
|
|
6254
6254
|
for (const e of t)
|
|
6255
|
-
Xd(
|
|
6255
|
+
Xd(qc, e, o, !1);
|
|
6256
6256
|
}
|
|
6257
6257
|
ia && Eg(Pe.prototype, "dispose", function() {
|
|
6258
6258
|
iO(this);
|
|
@@ -6270,13 +6270,13 @@ function Xd(o, t, e, i) {
|
|
|
6270
6270
|
if (n || (n = /* @__PURE__ */ new Set()), i) {
|
|
6271
6271
|
if (t && !n.has(t)) {
|
|
6272
6272
|
n.add(t);
|
|
6273
|
-
let s = e[
|
|
6274
|
-
s += 1, e[
|
|
6273
|
+
let s = e[hc] || 0;
|
|
6274
|
+
s += 1, e[hc] = s, Fr && console.warn(`🟢 Added user of "${e.type}"`, t, e, s, "users:", n);
|
|
6275
6275
|
}
|
|
6276
6276
|
} else if (t && n.has(t)) {
|
|
6277
6277
|
n.delete(t);
|
|
6278
|
-
let s = e[
|
|
6279
|
-
s > 0 && (s -= 1, e[
|
|
6278
|
+
let s = e[hc] || 0;
|
|
6279
|
+
s > 0 && (s -= 1, e[hc] = s), Fr && console.warn(`🔴 Removed user of "${e.type}"`, t, e, s, "users:", n), s <= 0 && (qd.isLoading(e) || (qu && console.warn(`🔴 Removed all user of "${e.type}"`, e), vv() && Ie(e)));
|
|
6280
6280
|
}
|
|
6281
6281
|
e[o] = n;
|
|
6282
6282
|
}
|
|
@@ -6315,7 +6315,7 @@ class Xu {
|
|
|
6315
6315
|
}
|
|
6316
6316
|
}
|
|
6317
6317
|
r(Xu, "eventListeners", /* @__PURE__ */ new Map());
|
|
6318
|
-
const
|
|
6318
|
+
const Xc = Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), Pv = Symbol("isUsingInstancing"), Ov = Symbol("instancingRenderer"), dc = Symbol("instancingAutoUpdateBounds");
|
|
6319
6319
|
class On {
|
|
6320
6320
|
/** Is this object rendered using a InstancedMesh */
|
|
6321
6321
|
static isUsingInstancing(t) {
|
|
@@ -6329,12 +6329,12 @@ class On {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
setAutoUpdateBounds(t, e) {
|
|
6331
6331
|
const i = On.getRenderer(t);
|
|
6332
|
-
i && (i[
|
|
6332
|
+
i && (i[dc] = e);
|
|
6333
6333
|
}
|
|
6334
6334
|
// TODO: change this so it does not set matrix world directly but some flag that is only used by instancing
|
|
6335
6335
|
/** Mark an instanced object dirty so the instance matrix will be updated */
|
|
6336
6336
|
static markDirty(t, e = !0) {
|
|
6337
|
-
if (t && (this.isUsingInstancing(t) && (t[
|
|
6337
|
+
if (t && (this.isUsingInstancing(t) && (t[Xc] = !0, t.matrixWorldNeedsUpdate = !0), e))
|
|
6338
6338
|
for (const i of t.children)
|
|
6339
6339
|
On.markDirty(i, !0);
|
|
6340
6340
|
}
|
|
@@ -6374,7 +6374,7 @@ The script will be ignored. Please make sure your component extends "Behaviour"
|
|
|
6374
6374
|
Did you add and remove a component in the same frame?`), je.splice(t, 1), t--;
|
|
6375
6375
|
continue;
|
|
6376
6376
|
}
|
|
6377
|
-
e.context = o,
|
|
6377
|
+
e.context = o, Cc(e.gameObject), Fg(e, o);
|
|
6378
6378
|
} catch (e) {
|
|
6379
6379
|
console.error(e), Rs(je[t], o), je.splice(t, 1), t--;
|
|
6380
6380
|
}
|
|
@@ -6391,14 +6391,14 @@ Did you add and remove a component in the same frame?`), je.splice(t, 1), t--;
|
|
|
6391
6391
|
} catch (i) {
|
|
6392
6392
|
console.error(i);
|
|
6393
6393
|
}
|
|
6394
|
-
e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject),
|
|
6394
|
+
e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject), Cc(e.gameObject), e.activeAndEnabled && Ga(e.__internalAwake.bind(e)));
|
|
6395
6395
|
} catch (e) {
|
|
6396
6396
|
console.error(e), Rs(je[t], o), je.splice(t, 1), t--;
|
|
6397
6397
|
}
|
|
6398
6398
|
for (let t = 0; t < je.length; t++)
|
|
6399
6399
|
try {
|
|
6400
6400
|
const e = je[t];
|
|
6401
|
-
if (e.destroyed || e.enabled === !1 || (
|
|
6401
|
+
if (e.destroyed || e.enabled === !1 || (Cc(e.gameObject), e.activeAndEnabled === !1)) continue;
|
|
6402
6402
|
e.__internalEnable !== void 0 && (e.enabled = !0, Ga(e.__internalEnable.bind(e)));
|
|
6403
6403
|
} catch (e) {
|
|
6404
6404
|
console.error(e), Rs(je[t], o), je.splice(t, 1), t--;
|
|
@@ -6455,14 +6455,14 @@ function vd(o) {
|
|
|
6455
6455
|
console.trace("Invalid call - no current context.");
|
|
6456
6456
|
return;
|
|
6457
6457
|
}
|
|
6458
|
-
const t =
|
|
6458
|
+
const t = uh(o);
|
|
6459
6459
|
Mv(o, t, !0) || (Cm || z() ? console.error(`Error updating hierarchy
|
|
6460
6460
|
Do you have circular references in your project? <a target="_blank" href="https://docs.needle.tools/circular-reference"> Click here for more information.`, o) : console.error('Failed to update active state in hierarchy of "' + o.name + '"', o), console.warn(" ↑ this error might be caused by circular references. Please make sure you don't have files with circular references (e.g. one GLB 1 is loading GLB 2 which is then loading GLB 1 again)."));
|
|
6461
6461
|
}
|
|
6462
6462
|
function Mv(o, t, e, i = 0) {
|
|
6463
6463
|
if (i > 1e3)
|
|
6464
6464
|
return console.warn("Hierarchy is too deep (> 1000 level) - will abort updating active state"), !1;
|
|
6465
|
-
const n =
|
|
6465
|
+
const n = uh(o);
|
|
6466
6466
|
if (t && (t = n, t && o.parent)) {
|
|
6467
6467
|
const c = o.parent;
|
|
6468
6468
|
t = c[zo], t === void 0 && (c instanceof ji || (t = !0));
|
|
@@ -6477,10 +6477,10 @@ function Mv(o, t, e, i = 0) {
|
|
|
6477
6477
|
Mv(c, t, e, i + 1) === !1 && (l = !1);
|
|
6478
6478
|
return l;
|
|
6479
6479
|
}
|
|
6480
|
-
function
|
|
6480
|
+
function Cc(o) {
|
|
6481
6481
|
let t = !0, e = o, i = !1;
|
|
6482
6482
|
for (; e && e; ) {
|
|
6483
|
-
if (e.type === "Scene" && (i = !0), !
|
|
6483
|
+
if (e.type === "Scene" && (i = !0), !uh(e)) {
|
|
6484
6484
|
t = !1;
|
|
6485
6485
|
break;
|
|
6486
6486
|
}
|
|
@@ -6703,7 +6703,7 @@ function Iv(o, t) {
|
|
|
6703
6703
|
}
|
|
6704
6704
|
return null;
|
|
6705
6705
|
}
|
|
6706
|
-
const
|
|
6706
|
+
const hh = S("gizmos"), bt = S("debugextension"), up = S("debugtypes");
|
|
6707
6707
|
class _O {
|
|
6708
6708
|
constructor() {
|
|
6709
6709
|
r(this, "_types", /* @__PURE__ */ new Map());
|
|
@@ -7323,7 +7323,7 @@ const Uv = new zt("addComponentIdProvider");
|
|
|
7323
7323
|
function qa(o, t, e = !0) {
|
|
7324
7324
|
o.userData || (o.userData = {}), o.userData.components || (o.userData.components = []), o.userData.components.push(t), t.gameObject = o, (t.guid === void 0 || t.guid === "invalid") && (t.guid = Uv.generateUUID()), $g(o), Gg(t, t.context);
|
|
7325
7325
|
try {
|
|
7326
|
-
e && t.__internalAwake && (
|
|
7326
|
+
e && t.__internalAwake && (Cc(o), t.activeAndEnabled && t.__internalAwake()), Xu.dispatchComponentLifecycleEvent("component-added", t);
|
|
7327
7327
|
} catch (i) {
|
|
7328
7328
|
console.error(i);
|
|
7329
7329
|
}
|
|
@@ -7399,11 +7399,11 @@ function Zu(o, t, e) {
|
|
|
7399
7399
|
}
|
|
7400
7400
|
return null;
|
|
7401
7401
|
}
|
|
7402
|
-
function
|
|
7402
|
+
function dh(o, t, e, i = !0) {
|
|
7403
7403
|
var n;
|
|
7404
7404
|
e || (e = []), i && (e.length = 0), Ku(o, t, e, !1);
|
|
7405
7405
|
for (let s = 0; s < ((n = o == null ? void 0 : o.children) == null ? void 0 : n.length); s++)
|
|
7406
|
-
|
|
7406
|
+
dh(o.children[s], t, e, !1);
|
|
7407
7407
|
return e;
|
|
7408
7408
|
}
|
|
7409
7409
|
function Zd(o, t) {
|
|
@@ -7436,7 +7436,7 @@ function WO(o, t, e = void 0) {
|
|
|
7436
7436
|
return console.error("Can not search object without any needle context or scene!!!"), t;
|
|
7437
7437
|
"scene" in e && (e = e.scene);
|
|
7438
7438
|
const i = e;
|
|
7439
|
-
return i &&
|
|
7439
|
+
return i && dh(i, o, t, !1), t;
|
|
7440
7440
|
}
|
|
7441
7441
|
function $g(o) {
|
|
7442
7442
|
o && o.isObject3D === !0 && jO(o, L);
|
|
@@ -7472,7 +7472,7 @@ L.prototype.getComponentInChildren = function(o) {
|
|
|
7472
7472
|
return Zu(this, o);
|
|
7473
7473
|
};
|
|
7474
7474
|
L.prototype.getComponentsInChildren = function(o, t) {
|
|
7475
|
-
return
|
|
7475
|
+
return dh(this, o, t);
|
|
7476
7476
|
};
|
|
7477
7477
|
L.prototype.getComponentInParent = function(o) {
|
|
7478
7478
|
return Zd(this, o);
|
|
@@ -7482,7 +7482,7 @@ L.prototype.getComponentsInParent = function(o, t) {
|
|
|
7482
7482
|
};
|
|
7483
7483
|
Object.getOwnPropertyDescriptor(L.prototype, "activeSelf") || Object.defineProperty(L.prototype, "activeSelf", {
|
|
7484
7484
|
get: function() {
|
|
7485
|
-
return
|
|
7485
|
+
return uh(this);
|
|
7486
7486
|
},
|
|
7487
7487
|
set: function(o) {
|
|
7488
7488
|
Cd(this, o);
|
|
@@ -7517,7 +7517,7 @@ Object.getOwnPropertyDescriptor(L.prototype, "worldScale") || Object.definePrope
|
|
|
7517
7517
|
return Ke(this);
|
|
7518
7518
|
},
|
|
7519
7519
|
set: function(o) {
|
|
7520
|
-
|
|
7520
|
+
Hc(this, o);
|
|
7521
7521
|
}
|
|
7522
7522
|
});
|
|
7523
7523
|
Object.getOwnPropertyDescriptor(L.prototype, "worldForward") || Object.defineProperty(L.prototype, "worldForward", {
|
|
@@ -7624,7 +7624,7 @@ class cs {
|
|
|
7624
7624
|
this.idProvider = t.idProvider, this.parent = t.parent, this.keepWorldPosition = t.keepWorldPosition, this.position = (e = t.position) == null ? void 0 : e.clone(), this.rotation = (i = t.rotation) == null ? void 0 : i.clone(), this.scale = (n = t.scale) == null ? void 0 : n.clone(), this.visible = t.visible, this.context = t.context, this.components = t.components;
|
|
7625
7625
|
}
|
|
7626
7626
|
}
|
|
7627
|
-
function
|
|
7627
|
+
function uh(o) {
|
|
7628
7628
|
return o.visible;
|
|
7629
7629
|
}
|
|
7630
7630
|
function Cd(o, t) {
|
|
@@ -7640,7 +7640,7 @@ function Wg(o) {
|
|
|
7640
7640
|
return On.isUsingInstancing(o);
|
|
7641
7641
|
}
|
|
7642
7642
|
function $v(o, t) {
|
|
7643
|
-
return
|
|
7643
|
+
return Wc(o, t, !0, !0);
|
|
7644
7644
|
}
|
|
7645
7645
|
const Wv = Symbol("isDestroyed");
|
|
7646
7646
|
function ll(o) {
|
|
@@ -7769,7 +7769,7 @@ function Hv(o, t, e, i, n, s) {
|
|
|
7769
7769
|
const h = t.parent;
|
|
7770
7770
|
if (h && h.add(c), e != null && e.position ? vt(c, e.position) : c.position.copy(t.position), e != null && e.rotation ? Mn(c, e.rotation) : c.quaternion.copy(t.quaternion), e != null && e.scale ? c.scale.copy(e.scale) : c.scale.copy(t.scale), e != null && e.parent && e.parent !== "scene") {
|
|
7771
7771
|
let u = null;
|
|
7772
|
-
if (typeof e.parent == "string" ? u =
|
|
7772
|
+
if (typeof e.parent == "string" ? u = Wc(e.parent, o.scene, !0) : u = e.parent, u) {
|
|
7773
7773
|
const f = e.keepWorldPosition === !0 ? u.attach : u.add;
|
|
7774
7774
|
f ? f.call(u, c) : console.error("Invalid parent object", u, "received when instantiating:", t);
|
|
7775
7775
|
} else console.warn("could not find parent:", e.parent);
|
|
@@ -8382,7 +8382,7 @@ class ek {
|
|
|
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
|
bS.lightmap.lightmapScaleOffset = { value: new ye(1, 1, 0, 0) };
|
|
8575
|
-
const mp = S("debugprogressive"),
|
|
8575
|
+
const mp = S("debugprogressive"), Xh = new Li(), Qh = new ju();
|
|
8576
8576
|
class sk {
|
|
8577
8577
|
constructor(t) {
|
|
8578
8578
|
r(this, "context");
|
|
@@ -8619,8 +8619,8 @@ class sk {
|
|
|
8619
8619
|
const a = i.mesh_lod != n.lastLodLevel_Mesh || i.texture_lod != n.lastLodLevel_Texture;
|
|
8620
8620
|
if (mp && 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
|
+
` + (Xh.min.x.toFixed(2) + "-" + Xh.max.x.toFixed(2) + "x" + Xh.min.y.toFixed(2) + "-" + Xh.max.y.toFixed(2)) + " scr"), n.lastScreenCoverage > 0.1) {
|
|
8644
8644
|
const x = t, k = x.worldForward, O = x.worldPosition, T = q(k).multiplyScalar(f * 0.7).add(u), U = T.distanceTo(O), E = m[Math.min(m.length - 1, Math.max(0, s))] + "88", I = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, A = t.isPerspectiveCamera ? Math.tan(t.fov * Math.PI / 180 / 2) : 1;
|
|
8645
8645
|
H.DrawLabel(T, v, U * 0.012 * I * A, void 0, 16777215, E);
|
|
8646
8646
|
}
|
|
@@ -8693,12 +8693,12 @@ class ak {
|
|
|
8693
8693
|
}
|
|
8694
8694
|
}
|
|
8695
8695
|
new yg();
|
|
8696
|
-
const
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
const lk = new _g(
|
|
8696
|
+
const fh = new Uint8Array(4);
|
|
8697
|
+
fh[0] = 255;
|
|
8698
|
+
fh[1] = 255;
|
|
8699
|
+
fh[2] = 255;
|
|
8700
|
+
fh[3] = 255;
|
|
8701
|
+
const lk = new _g(fh, 1, 1, Bu);
|
|
8702
8702
|
function Hg(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 fk(o) {
|
|
|
8777
8777
|
}).join(""));
|
|
8778
8778
|
}
|
|
8779
8779
|
const _n = S("debugenvlight");
|
|
8780
|
-
var
|
|
8780
|
+
var Pc = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Trilight = 1] = "Trilight", o[o.Flat = 3] = "Flat", o[o.Custom = 4] = "Custom", o))(Pc || {}), Im = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Custom = 1] = "Custom", o))(Im || {});
|
|
8781
8781
|
class pk {
|
|
8782
8782
|
constructor(t) {
|
|
8783
8783
|
r(this, "context");
|
|
@@ -8867,7 +8867,7 @@ class pk {
|
|
|
8867
8867
|
var i;
|
|
8868
8868
|
this.__currentReflectionId = t;
|
|
8869
8869
|
const e = (i = this._sceneLightSettings) == null ? void 0 : i.get(t);
|
|
8870
|
-
switch (_n && console.log("Enable reflection", t, e ?
|
|
8870
|
+
switch (_n && console.log("Enable reflection", t, e ? Pc[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 bk(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 Yh = /* @__PURE__ */ new Map();
|
|
9228
9228
|
async function lb(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), Yh.has(o))
|
|
9231
|
+
return Yh.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 Fe();
|
|
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, Yh.set(o, a), a;
|
|
9239
9239
|
}
|
|
9240
|
-
return
|
|
9240
|
+
return Yh.set(o, null), null;
|
|
9241
9241
|
}
|
|
9242
|
-
const
|
|
9242
|
+
const Fc = class Fc {
|
|
9243
9243
|
constructor() {
|
|
9244
9244
|
r(this, "_fullscreenButton");
|
|
9245
9245
|
r(this, "_muteButton");
|
|
@@ -9260,11 +9260,11 @@ const Bc = class Bc {
|
|
|
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 Fc()), this._instance;
|
|
9264
9264
|
}
|
|
9265
9265
|
/** create a new buttons factory */
|
|
9266
9266
|
static create() {
|
|
9267
|
-
return new
|
|
9267
|
+
return new Fc();
|
|
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 Bc = class Bc {
|
|
|
9383
9383
|
});
|
|
9384
9384
|
}
|
|
9385
9385
|
};
|
|
9386
|
-
r(
|
|
9387
|
-
let Ls =
|
|
9386
|
+
r(Fc, "_instance");
|
|
9387
|
+
let Ls = Fc;
|
|
9388
9388
|
function iu(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 cb {
|
|
|
9784
9784
|
t.use(), this.onclick();
|
|
9785
9785
|
}
|
|
9786
9786
|
}
|
|
9787
|
-
const vr = "needle-menu",
|
|
9787
|
+
const vr = "needle-menu", Oc = S("debugmenu"), hb = S("debugnoncommercial");
|
|
9788
9788
|
let xk = class {
|
|
9789
9789
|
constructor(t) {
|
|
9790
9790
|
r(this, "_context");
|
|
@@ -9809,8 +9809,8 @@ let xk = 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 Oc && console.error("NeedleMenu: unknown postMessage event", e);
|
|
9813
|
+
} else Oc && console.warn("NeedleMenu: unknown postMessage type", i, e);
|
|
9814
9814
|
}
|
|
9815
9815
|
});
|
|
9816
9816
|
r(this, "onStartXR", (t) => {
|
|
@@ -9895,7 +9895,7 @@ let xk = class {
|
|
|
9895
9895
|
return this._menu.appendChild(t);
|
|
9896
9896
|
}
|
|
9897
9897
|
};
|
|
9898
|
-
var
|
|
9898
|
+
var lh;
|
|
9899
9899
|
const Zy = class Zy extends HTMLElement {
|
|
9900
9900
|
constructor() {
|
|
9901
9901
|
var u, f, m, g, _, y;
|
|
@@ -9903,7 +9903,7 @@ const Zy = class Zy extends HTMLElement {
|
|
|
9903
9903
|
r(this, "_domElement", null);
|
|
9904
9904
|
r(this, "_context", null);
|
|
9905
9905
|
r(this, "_sizeChangeInterval");
|
|
9906
|
-
mn(this,
|
|
9906
|
+
mn(this, lh, (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 Zy = class Zy 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 Zy = class Zy extends HTMLElement {
|
|
|
10348
10348
|
let l = 0;
|
|
10349
10349
|
const c = (b, v) => {
|
|
10350
10350
|
var x, k, O;
|
|
10351
|
-
|
|
10351
|
+
Oc && console.log("Set menu visible", v), a != null && a.isInAR && a.arOverlayElement ? b != a.arOverlayElement && a.arOverlayElement.appendChild(this) : this.parentNode != ((x = this._domElement) == null ? void 0 : x.shadowRoot) && ((O = (k = this._domElement) == null ? void 0 : k.shadowRoot) == null || O.appendChild(this)), this.style.display = v ? "flex" : "none", this.style.visibility = "visible", this.style.opacity = "1";
|
|
10352
10352
|
};
|
|
10353
10353
|
let h = !1;
|
|
10354
10354
|
new MutationObserver((b) => {
|
|
@@ -10364,7 +10364,7 @@ const Zy = class Zy 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 }), Oc && this.___insertDebugOptions();
|
|
10368
10368
|
}
|
|
10369
10369
|
static create() {
|
|
10370
10370
|
return document.createElement(vr, { is: vr });
|
|
@@ -10376,12 +10376,12 @@ const Zy = class Zy 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", ue(this,
|
|
10379
|
+
(e = this._domElement) == null || e.addEventListener("resize", this.handleSizeChange), (i = this._domElement) == null || i.addEventListener("click", ue(this, lh));
|
|
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", ue(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", ue(this, lh));
|
|
10385
10385
|
}
|
|
10386
10386
|
showNeedleLogo(e) {
|
|
10387
10387
|
this._userRequestedLogoVisible = e, !(!e && (!Ws() || hb) && (console.warn("[Needle Engine] You need a PRO license to hide the Needle Engine logo in production."), !_i())) && this.___onSetLogoVisible(e);
|
|
@@ -10472,7 +10472,7 @@ const Zy = class Zy extends HTMLElement {
|
|
|
10472
10472
|
* if we dont have any content and logo then we hide the menu
|
|
10473
10473
|
*/
|
|
10474
10474
|
handleMenuVisible() {
|
|
10475
|
-
|
|
10475
|
+
Oc && console.log("Update VisibleState: Any Content?", this.hasAnyContent), this.hasAnyContent ? this.root.style.display = "" : this.root.style.display = "none", this.root.classList.toggle("has-options", this.hasAnyVisibleOptions), this.root.classList.toggle("has-no-options", !this.hasAnyVisibleOptions);
|
|
10476
10476
|
}
|
|
10477
10477
|
/** @returns true if we have any content OR a logo */
|
|
10478
10478
|
get hasAnyContent() {
|
|
@@ -10512,7 +10512,7 @@ const Zy = class Zy extends HTMLElement {
|
|
|
10512
10512
|
}), this.appendChild(i);
|
|
10513
10513
|
}
|
|
10514
10514
|
};
|
|
10515
|
-
|
|
10515
|
+
lh = new WeakMap();
|
|
10516
10516
|
let su = Zy;
|
|
10517
10517
|
customElements.get(vr) || customElements.define(vr, su);
|
|
10518
10518
|
const nt = S("debugcontext"), Sk = S("stats"), Ck = S("debugactive"), Pk = S("debugframerate"), Ok = S("debugcoroutine"), XL = {};
|
|
@@ -11212,7 +11212,7 @@ Possible solutions:
|
|
|
11212
11212
|
cl(this.scene, (b) => {
|
|
11213
11213
|
const v = b;
|
|
11214
11214
|
if (v != null && v.isCamera) {
|
|
11215
|
-
if (
|
|
11215
|
+
if (Cc(v.gameObject), !v.activeAndEnabled) return;
|
|
11216
11216
|
if (v.tag === "MainCamera")
|
|
11217
11217
|
return y = v, !0;
|
|
11218
11218
|
y = v;
|
|
@@ -11569,7 +11569,7 @@ function kk(o) {
|
|
|
11569
11569
|
return o(!0);
|
|
11570
11570
|
Kv.push(o);
|
|
11571
11571
|
}
|
|
11572
|
-
function
|
|
11572
|
+
function Kh(o) {
|
|
11573
11573
|
for (const t of Kv)
|
|
11574
11574
|
try {
|
|
11575
11575
|
t(o);
|
|
@@ -11579,7 +11579,7 @@ function Yh(o) {
|
|
|
11579
11579
|
fe.registerCallback(me.ContextRegistered, (o) => {
|
|
11580
11580
|
Tk(o.context), Rk(o.context), setTimeout(() => Ak(o.context), 2e3);
|
|
11581
11581
|
});
|
|
11582
|
-
let Uo, jm = !1,
|
|
11582
|
+
let Uo, jm = !1, uc = "";
|
|
11583
11583
|
async function Mk() {
|
|
11584
11584
|
if (Uo) return Uo;
|
|
11585
11585
|
if (ts === "basic")
|
|
@@ -11589,9 +11589,9 @@ async function Mk() {
|
|
|
11589
11589
|
}).catch((e) => {
|
|
11590
11590
|
Ti && console.error("License check failed", e);
|
|
11591
11591
|
});
|
|
11592
|
-
(t == null ? void 0 : t.status) === 200 ? (jm = !1, Ti && console.log("License check succeeded"), ts = "pro",
|
|
11592
|
+
(t == null ? void 0 : t.status) === 200 ? (jm = !1, Ti && console.log("License check succeeded"), ts = "pro", Kh(!0)) : (t == null ? void 0 : t.status) === 403 ? (Kh(!1), jm = !0, uc = await t.text()) : (Kh(!1), Ti && console.log("License check failed with status " + (t == null ? void 0 : t.status)));
|
|
11593
11593
|
} catch (o) {
|
|
11594
|
-
|
|
11594
|
+
Kh(!1), Ti && console.error("License check failed", o);
|
|
11595
11595
|
}
|
|
11596
11596
|
else Ti && console.log('Runtime license check is skipped because license is already applied as "' + ts + '"');
|
|
11597
11597
|
}
|
|
@@ -11630,7 +11630,7 @@ async function Rk(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 = (uc == null ? void 0 : uc.length) > 1 ? uc : "This web application has been paused.<br/>You might be in violation of the Needle Engine terms of use.<br/>Please contact the Needle support if you think this is a mistake.";
|
|
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 Ak(o) {
|
|
|
11767
11767
|
version: es,
|
|
11768
11768
|
generator: Tg,
|
|
11769
11769
|
build_time: av,
|
|
11770
|
-
public_key:
|
|
11770
|
+
public_key: cc
|
|
11771
11771
|
}, d = (i = navigator.sendBeacon) == null ? void 0 : i.call(navigator, c, JSON.stringify(h));
|
|
11772
11772
|
Ti && console.debug("Sent beacon: " + d);
|
|
11773
11773
|
}
|
|
@@ -11833,31 +11833,31 @@ function mb(o) {
|
|
|
11833
11833
|
return o;
|
|
11834
11834
|
}
|
|
11835
11835
|
const No = S("debughotreload");
|
|
11836
|
-
let
|
|
11837
|
-
const
|
|
11836
|
+
let Yc = !1;
|
|
11837
|
+
const kc = /* @__PURE__ */ new Map();
|
|
11838
11838
|
function YL() {
|
|
11839
|
-
return
|
|
11839
|
+
return Yc;
|
|
11840
11840
|
}
|
|
11841
11841
|
function gb() {
|
|
11842
11842
|
return globalThis.NEEDLE_HOT_RELOAD_ENABLED === !0;
|
|
11843
11843
|
}
|
|
11844
11844
|
function Lk(o) {
|
|
11845
11845
|
var i;
|
|
11846
|
-
if (
|
|
11846
|
+
if (Yc) {
|
|
11847
11847
|
No && console.warn("[Needle Engine] Hot reloading is in progress, not registering instance", o);
|
|
11848
11848
|
return;
|
|
11849
11849
|
}
|
|
11850
11850
|
No && console.log("[Needle Engine] Registering hot reload instance", o);
|
|
11851
11851
|
const e = o.constructor.name;
|
|
11852
|
-
|
|
11852
|
+
kc.has(e) ? (i = kc.get(e)) == null || i.push(o) : kc.set(e, [o]);
|
|
11853
11853
|
}
|
|
11854
11854
|
function Dk(o) {
|
|
11855
|
-
if (
|
|
11855
|
+
if (Yc) {
|
|
11856
11856
|
No && console.warn("[Needle Engine] Hot reloading is in progress, not unregistering instance", o);
|
|
11857
11857
|
return;
|
|
11858
11858
|
}
|
|
11859
11859
|
No && console.log("[Needle Engine] Unregistering hot reload instance", o);
|
|
11860
|
-
const e = o.constructor.name, i =
|
|
11860
|
+
const e = o.constructor.name, i = kc.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 KL(o) {
|
|
|
11882
11882
|
No && console.log("[HMR] Apply changes", o, Object.keys(o)), jk();
|
|
11883
11883
|
for (const t of Object.keys(o))
|
|
11884
11884
|
try {
|
|
11885
|
-
|
|
11885
|
+
Yc = !0;
|
|
11886
11886
|
const e = M.get(t);
|
|
11887
11887
|
if (!e) {
|
|
11888
11888
|
No && console.log("[HMR] Type not found: " + t);
|
|
11889
11889
|
continue;
|
|
11890
11890
|
}
|
|
11891
|
-
const i = o[t], n =
|
|
11891
|
+
const i = o[t], n = kc.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 KL(o) {
|
|
|
11925
11925
|
if (No) console.error(e);
|
|
11926
11926
|
else return !1;
|
|
11927
11927
|
} finally {
|
|
11928
|
-
|
|
11928
|
+
Yc = !1, Hn(nn.Log, "Script changes applied (HMR)");
|
|
11929
11929
|
}
|
|
11930
11930
|
return !0;
|
|
11931
11931
|
}
|
|
@@ -11960,7 +11960,7 @@ class C extends L {
|
|
|
11960
11960
|
* @returns True if the GameObject is active
|
|
11961
11961
|
*/
|
|
11962
11962
|
static isActiveSelf(e) {
|
|
11963
|
-
return
|
|
11963
|
+
return uh(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 C extends L {
|
|
|
12183
12183
|
* @returns Array of components
|
|
12184
12184
|
*/
|
|
12185
12185
|
static getComponentsInChildren(e, i, n = null) {
|
|
12186
|
-
return
|
|
12186
|
+
return dh(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 e2 {
|
|
|
13011
13011
|
return !0;
|
|
13012
13012
|
}
|
|
13013
13013
|
}
|
|
13014
|
-
class
|
|
13014
|
+
class Zh {
|
|
13015
13015
|
constructor(t, e, i, n) {
|
|
13016
13016
|
/** The name of the animation */
|
|
13017
13017
|
r(this, "name");
|
|
@@ -13043,7 +13043,7 @@ function $k(o, t) {
|
|
|
13043
13043
|
};
|
|
13044
13044
|
}
|
|
13045
13045
|
var _r = /* @__PURE__ */ ((o) => (o[o.If = 1] = "If", o[o.IfNot = 2] = "IfNot", o[o.Greater = 3] = "Greater", o[o.Less = 4] = "Less", o[o.Equals = 6] = "Equals", o[o.NotEqual = 7] = "NotEqual", o))(_r || {}), iw = /* @__PURE__ */ ((o) => (o[o.Float = 1] = "Float", o[o.Int = 3] = "Int", o[o.Bool = 4] = "Bool", o[o.Trigger = 9] = "Trigger", o))(iw || {});
|
|
13046
|
-
const ct = S("debuganimatorcontroller"),
|
|
13046
|
+
const ct = S("debuganimatorcontroller"), Jh = S("debugrootmotion");
|
|
13047
13047
|
class kn {
|
|
13048
13048
|
constructor(t) {
|
|
13049
13049
|
r(this, "_speed", 1);
|
|
@@ -13298,7 +13298,7 @@ class kn {
|
|
|
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 Zh(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 Zh(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 v = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, x = this._activeState.motion.action.time / v, k = new
|
|
13486
|
+
const v = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, x = this._activeState.motion.action.time / v, k = new Zh(this._activeState, x, v, this._speed);
|
|
13487
13487
|
for (const O of this._activeState.behaviours)
|
|
13488
13488
|
(m = (f = O.instance) == null ? void 0 : f.onStateExit) == null || m.call(O.instance, this.animator, k, 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 v = t.motion.clip.duration;
|
|
13502
13502
|
if (c.time = s ? 0 : i * v, c.timeScale < 0 && (c.time = v - c.time), c.clampWhenFinished = !0, c.setLoop(rm, 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 x = new
|
|
13503
|
+
const x = new Zh(t, i, v, this._speed);
|
|
13504
13504
|
for (const k of this._activeState.behaviours)
|
|
13505
13505
|
(b = (y = k.instance) == null ? void 0 : y.onStateEnter) == null || b.call(k.instance, this.animator, x, 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), Jh) {
|
|
13659
13659
|
const i = new Ft().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
|
+
Jh && i.add(new Di()), Te.lastObjPosition[this.cacheId] || (Te.lastObjPosition[this.cacheId] = this.root.position.clone());
|
|
13670
13670
|
const n = new w(), s = new w();
|
|
13671
13671
|
this.positionWrapper = new bb(e, (a, l) => {
|
|
13672
13672
|
const c = this.action.getEffectiveWeight();
|
|
13673
|
-
return
|
|
13673
|
+
return Jh && i.position.length() > 8 && i.position.set(0, i.position.y, 0), a > this._prevTime && (n.set(l[0], l[1], l[2]), n.sub(s), n.multiplyScalar(c), n.applyQuaternion(this.getClipRotationOffset()), n.applyQuaternion(i.quaternion), this.positionChange.copy(n)), s.fromArray(l), this._prevTime = a, l[0] = 0, l[1] = 0, l[2] = 0, l;
|
|
13674
13674
|
});
|
|
13675
13675
|
}
|
|
13676
13676
|
}
|
|
13677
13677
|
handleRotation(t, e) {
|
|
13678
13678
|
if (e) {
|
|
13679
|
-
if (
|
|
13679
|
+
if (Jh) {
|
|
13680
13680
|
const a = e.values, l = new Ft().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 Ft().setFromQuaternion(h);
|
|
@@ -14075,12 +14075,12 @@ const vb = Symbol("previous-visibility"), Cr = class Cr extends ns {
|
|
|
14075
14075
|
};
|
|
14076
14076
|
r(Cr, "_userSet", /* @__PURE__ */ new Set());
|
|
14077
14077
|
let Xa = Cr;
|
|
14078
|
-
var qk = Object.defineProperty, Xk = Object.getOwnPropertyDescriptor,
|
|
14078
|
+
var qk = Object.defineProperty, Xk = Object.getOwnPropertyDescriptor, ph = (o, t, e, i) => {
|
|
14079
14079
|
for (var n = i > 1 ? void 0 : i ? Xk(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 && qk(t, e, n), n;
|
|
14082
14082
|
};
|
|
14083
|
-
const
|
|
14083
|
+
const ed = S("debuggroundprojection");
|
|
14084
14084
|
class to extends D {
|
|
14085
14085
|
constructor() {
|
|
14086
14086
|
super(...arguments);
|
|
@@ -14123,7 +14123,7 @@ class to extends D {
|
|
|
14123
14123
|
/** @internal */
|
|
14124
14124
|
onEnable() {
|
|
14125
14125
|
this.context.time.frameCount > 0 && this.applyOnAwake && this.updateAndCreate(), this._watcher || (this._watcher = new Fo(this.context.scene, "background"), this._watcher.subscribeWrite((e) => {
|
|
14126
|
-
|
|
14126
|
+
ed && console.log("Background changed", this.context.scene.background), this._needsTextureUpdate = !0;
|
|
14127
14127
|
}));
|
|
14128
14128
|
}
|
|
14129
14129
|
/** @internal */
|
|
@@ -14170,7 +14170,7 @@ class to extends D {
|
|
|
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
|
+
ed && console.log("Create/Update Ground Projection", e.name), (u = this._projection) == null || u.removeFromParent();
|
|
14174
14174
|
try {
|
|
14175
14175
|
this._projection = new el(e, this._height, this._radius, 64);
|
|
14176
14176
|
} catch (f) {
|
|
@@ -14189,7 +14189,7 @@ class to extends D {
|
|
|
14189
14189
|
const _ = Ke(this.gameObject).x;
|
|
14190
14190
|
g.y = m + this._height * _ - n, g.z = f.min.z + (f.max.z - f.min.z) * 0.5, vt(this._projection, g);
|
|
14191
14191
|
}
|
|
14192
|
-
|
|
14192
|
+
ed && 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 to extends D {
|
|
|
14199
14199
|
if (!e)
|
|
14200
14200
|
return;
|
|
14201
14201
|
} else return;
|
|
14202
|
-
this._needsTextureUpdate = !1,
|
|
14202
|
+
this._needsTextureUpdate = !1, ed && console.log("Update Blurriness", i), this._blurrynessShader ?? (this._blurrynessShader = new is({
|
|
14203
14203
|
name: "GroundProjectionBlurriness",
|
|
14204
14204
|
uniforms: {
|
|
14205
14205
|
map: { value: e },
|
|
@@ -14214,19 +14214,19 @@ class to extends D {
|
|
|
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 = il.copyTexture(e, this._blurrynessShader), this._projection.material.depthTest = !0, this._projection.material.depthWrite = !1;
|
|
14215
14215
|
}
|
|
14216
14216
|
}
|
|
14217
|
-
|
|
14217
|
+
ph([
|
|
14218
14218
|
p()
|
|
14219
14219
|
], to.prototype, "applyOnAwake", 2);
|
|
14220
|
-
|
|
14220
|
+
ph([
|
|
14221
14221
|
p()
|
|
14222
14222
|
], to.prototype, "autoFit", 2);
|
|
14223
|
-
|
|
14223
|
+
ph([
|
|
14224
14224
|
p()
|
|
14225
14225
|
], to.prototype, "radius", 1);
|
|
14226
|
-
|
|
14226
|
+
ph([
|
|
14227
14227
|
p()
|
|
14228
14228
|
], to.prototype, "height", 1);
|
|
14229
|
-
|
|
14229
|
+
ph([
|
|
14230
14230
|
p()
|
|
14231
14231
|
], to.prototype, "arBlending", 1);
|
|
14232
14232
|
const Qk = `
|
|
@@ -14479,7 +14479,7 @@ var j;
|
|
|
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 j;
|
|
|
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
|
})(j || (j = {}));
|
|
14503
|
-
var Tt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(Tt || {}), Yg = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Yg || {}), it = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.FreezePositionX = 2] = "FreezePositionX", o[o.FreezePositionY = 4] = "FreezePositionY", o[o.FreezePositionZ = 8] = "FreezePositionZ", o[o.FreezePosition = 14] = "FreezePosition", o[o.FreezeRotationX = 16] = "FreezeRotationX", o[o.FreezeRotationY = 32] = "FreezeRotationY", o[o.FreezeRotationZ = 64] = "FreezeRotationZ", o[o.FreezeRotation = 112] = "FreezeRotation", o[o.FreezeAll = 126] = "FreezeAll", o))(it || {}),
|
|
14503
|
+
var Tt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(Tt || {}), Yg = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Yg || {}), it = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.FreezePositionX = 2] = "FreezePositionX", o[o.FreezePositionY = 4] = "FreezePositionY", o[o.FreezePositionZ = 8] = "FreezePositionZ", o[o.FreezePosition = 14] = "FreezePosition", o[o.FreezeRotationX = 16] = "FreezeRotationX", o[o.FreezeRotationY = 32] = "FreezeRotationY", o[o.FreezeRotationZ = 64] = "FreezeRotationZ", o[o.FreezeRotation = 112] = "FreezeRotation", o[o.FreezeAll = 126] = "FreezeAll", o))(it || {}), fc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.X = 2] = "X", o[o.Y = 4] = "Y", o[o.Z = 8] = "Z", o[o.All = -1] = "All", o))(fc || {});
|
|
14504
14504
|
const Wt = function(o, t) {
|
|
14505
14505
|
return function(e, i, n) {
|
|
14506
14506
|
tM(e, i, n, o, t);
|
|
@@ -14933,8 +14933,8 @@ zi([
|
|
|
14933
14933
|
let wt = bi;
|
|
14934
14934
|
new w();
|
|
14935
14935
|
new w();
|
|
14936
|
-
const yo = S("debugsync"),
|
|
14937
|
-
gv(
|
|
14936
|
+
const yo = S("debugsync"), Kc = "STRS";
|
|
14937
|
+
gv(Kc, Es.getRootAsSyncedTransformModel);
|
|
14938
14938
|
const Fn = new Pg();
|
|
14939
14939
|
function sw(o, t, e = !0) {
|
|
14940
14940
|
Fn.clear();
|
|
@@ -14943,13 +14943,13 @@ function sw(o, t, e = !0) {
|
|
|
14943
14943
|
const n = t.worldPosition, s = t.worldEuler, a = t.gameObject.scale;
|
|
14944
14944
|
Es.addTransform(Fn, nw.createTransform(Fn, n.x, n.y, n.z, s.x, s.y, s.z, a.x, a.y, a.z));
|
|
14945
14945
|
const l = Es.endSyncedTransformModel(Fn);
|
|
14946
|
-
return Fn.finish(l,
|
|
14946
|
+
return Fn.finish(l, Kc), Fn.asUint8Array();
|
|
14947
14947
|
}
|
|
14948
|
-
let zm = 0,
|
|
14948
|
+
let zm = 0, Mc = 0;
|
|
14949
14949
|
eM((o) => {
|
|
14950
14950
|
var i;
|
|
14951
14951
|
const e = ((i = o.connection.currentServerUrl) == null ? void 0 : i.includes("glitch")) ? 10 : 40;
|
|
14952
|
-
|
|
14952
|
+
Mc = Math.floor(zm / e), zm = 0, yo && Mc > 0 && console.log("Sync Transform Fast Interval", Mc);
|
|
14953
14953
|
});
|
|
14954
14954
|
class Ys extends D {
|
|
14955
14955
|
constructor() {
|
|
@@ -15017,11 +15017,11 @@ class Ys extends D {
|
|
|
15017
15017
|
}
|
|
15018
15018
|
/** @internal */
|
|
15019
15019
|
awake() {
|
|
15020
|
-
yo && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new w(), this._targetRotation = new W(), this.lastPosition = new w(), this.lastRotation = new W(), this.lastScale = new w(), this.rb = C.getComponentInChildren(this.gameObject, wt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new yv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(
|
|
15020
|
+
yo && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new w(), this._targetRotation = new W(), this.lastPosition = new w(), this.lastRotation = new W(), this.lastScale = new w(), this.rb = C.getComponentInChildren(this.gameObject, wt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new yv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Kc, this.receivedDataCallback);
|
|
15021
15021
|
}
|
|
15022
15022
|
/** @internal */
|
|
15023
15023
|
onDestroy() {
|
|
15024
|
-
this.syncDestroy && Tv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(se.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(
|
|
15024
|
+
this.syncDestroy && Tv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(se.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(Kc, this.receivedDataCallback);
|
|
15025
15025
|
}
|
|
15026
15026
|
/**
|
|
15027
15027
|
* Attempts to retrieve and apply the last known network state for this transform
|
|
@@ -15100,7 +15100,7 @@ class Ys extends D {
|
|
|
15100
15100
|
this.rb && this.overridePhysics && this._wasKinematic !== void 0 && (yo && 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 (zm++, a &&
|
|
15103
|
+
if (zm++, a && Mc > 0 && this.context.time.frameCount % Mc !== 0) return;
|
|
15104
15104
|
yo && console.debug("[SyncedTransform] Send update", this.context.connection.connectionId, this.guid, this.gameObject.name, this.gameObject.guid), this._needsUpdate = !1;
|
|
15105
15105
|
const l = sw(this.guid, this, !!a);
|
|
15106
15106
|
this.context.connection.sendBinary(l);
|
|
@@ -16143,7 +16143,7 @@ var bM = Object.defineProperty, ze = (o, t, e, i) => {
|
|
|
16143
16143
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
16144
16144
|
return n && bM(t, e, n), n;
|
|
16145
16145
|
};
|
|
16146
|
-
const Qi = S("debugorbit"), wp = S("freecam"), Gl = S("debugcamerafit"),
|
|
16146
|
+
const Qi = S("debugorbit"), wp = S("freecam"), Gl = S("debugcamerafit"), td = S("smoothcam"), vM = { LEFT: "", UP: "", RIGHT: "", BOTTOM: "" };
|
|
16147
16147
|
let xp;
|
|
16148
16148
|
class au extends CustomEvent {
|
|
16149
16149
|
constructor(t, e) {
|
|
@@ -16411,9 +16411,9 @@ class xe extends D {
|
|
|
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 ? xp : vM, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.zoomSpeed = this.zoomSpeed, this._controls.zoomToCursor = this.zoomToCursor, this._controls.enableDamping = this.enableDamping, this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle, this._controls.maxAzimuthAngle = this.maxAzimuthAngle, this._controls.minPolarAngle = this.minPolarAngle, this._controls.maxPolarAngle = this.maxPolarAngle, wp || (((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 ? xp : vM, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.zoomSpeed = this.zoomSpeed, this._controls.zoomToCursor = this.zoomToCursor, this._controls.enableDamping = this.enableDamping, this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle, this._controls.maxAzimuthAngle = this.maxAzimuthAngle, this._controls.minPolarAngle = this.minPolarAngle, this._controls.maxPolarAngle = this.maxPolarAngle, wp || (((s = (n = this._camera) == null ? void 0 : n.threeCamera) == null ? void 0 : s.type) === "PerspectiveCamera" ? (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom, this._controls.minZoom = 0, this._controls.maxZoom = 1 / 0) : (this._controls.minDistance = 0, this._controls.maxDistance = 1 / 0, this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom)), typeof td == "number" || td === !0) {
|
|
16415
16415
|
this._controls.enableDamping = !0;
|
|
16416
|
-
const l = typeof
|
|
16416
|
+
const l = typeof td == "number" ? td : 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 || (!wp && ((a = this.lookAtConstraint) != null && a.locked) && this.setLookTargetFromConstraint(0, this.lookAtConstraint01), this._controls.update(this.context.time.deltaTime), Qi && H.DrawWireSphere(this._controls.target, 0.1, 65280));
|
|
@@ -17862,7 +17862,7 @@ Incoming:`, this._incomingCalls), l;
|
|
|
17862
17862
|
// }
|
|
17863
17863
|
};
|
|
17864
17864
|
r(Pr, "instances", /* @__PURE__ */ new Map());
|
|
17865
|
-
let
|
|
17865
|
+
let Rc = Pr;
|
|
17866
17866
|
class of extends vg {
|
|
17867
17867
|
constructor(e, i) {
|
|
17868
17868
|
super();
|
|
@@ -17917,8 +17917,8 @@ class of extends vg {
|
|
|
17917
17917
|
});
|
|
17918
17918
|
if (TM(e)) {
|
|
17919
17919
|
const n = e;
|
|
17920
|
-
e = n.context, i =
|
|
17921
|
-
} else typeof i == "string" && (i =
|
|
17920
|
+
e = n.context, i = Rc.getOrCreate(n.context, n.guid);
|
|
17921
|
+
} else typeof i == "string" && (i = Rc.getOrCreate(e, i));
|
|
17922
17922
|
if (e) {
|
|
17923
17923
|
if (!(e instanceof Z)) 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 of extends vg {
|
|
|
17929
17929
|
* Create a new NetworkedStreams instance
|
|
17930
17930
|
*/
|
|
17931
17931
|
static create(e, i) {
|
|
17932
|
-
const n =
|
|
17932
|
+
const n = Rc.getOrCreate(e.context, i || e.context.connection.connectionId || e.guid);
|
|
17933
17933
|
return new of(e.context, n);
|
|
17934
17934
|
}
|
|
17935
17935
|
startSendingStream(e) {
|
|
@@ -18447,7 +18447,7 @@ var qM = Object.defineProperty, ny = (o, t, e, i) => {
|
|
|
18447
18447
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
18448
18448
|
return n && qM(t, e, n), n;
|
|
18449
18449
|
};
|
|
18450
|
-
class
|
|
18450
|
+
class mh extends D {
|
|
18451
18451
|
constructor() {
|
|
18452
18452
|
super(...arguments);
|
|
18453
18453
|
r(this, "length", 1);
|
|
@@ -18460,7 +18460,7 @@ class ph extends D {
|
|
|
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 && !hh) return;
|
|
18464
18464
|
this._axes || (this._axes = new Di(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 ph extends D {
|
|
|
18474
18474
|
}
|
|
18475
18475
|
ny([
|
|
18476
18476
|
p()
|
|
18477
|
-
],
|
|
18477
|
+
], mh.prototype, "length");
|
|
18478
18478
|
ny([
|
|
18479
18479
|
p()
|
|
18480
|
-
],
|
|
18480
|
+
], mh.prototype, "depthTest");
|
|
18481
18481
|
ny([
|
|
18482
18482
|
p()
|
|
18483
|
-
],
|
|
18483
|
+
], mh.prototype, "isGizmo");
|
|
18484
18484
|
class uw extends D {
|
|
18485
18485
|
constructor() {
|
|
18486
18486
|
super(...arguments);
|
|
@@ -18653,7 +18653,7 @@ vi([
|
|
|
18653
18653
|
vi([
|
|
18654
18654
|
p()
|
|
18655
18655
|
], Ui.prototype, "filter");
|
|
18656
|
-
class
|
|
18656
|
+
class gh extends Ui {
|
|
18657
18657
|
constructor() {
|
|
18658
18658
|
super(...arguments);
|
|
18659
18659
|
r(this, "radius", 0.5);
|
|
@@ -18682,10 +18682,10 @@ class mh extends Ui {
|
|
|
18682
18682
|
vi([
|
|
18683
18683
|
Wt(),
|
|
18684
18684
|
p()
|
|
18685
|
-
],
|
|
18685
|
+
], gh.prototype, "radius");
|
|
18686
18686
|
vi([
|
|
18687
18687
|
p(w)
|
|
18688
|
-
],
|
|
18688
|
+
], gh.prototype, "center");
|
|
18689
18689
|
const sy = class fw extends Ui {
|
|
18690
18690
|
constructor() {
|
|
18691
18691
|
super(...arguments);
|
|
@@ -19196,10 +19196,10 @@ const Ob = S("debugdeletable"), Fa = class Fa extends Ks {
|
|
|
19196
19196
|
}
|
|
19197
19197
|
};
|
|
19198
19198
|
r(Fa, "_instances", []);
|
|
19199
|
-
let
|
|
19199
|
+
let Zc = Fa;
|
|
19200
19200
|
class gw extends D {
|
|
19201
19201
|
update() {
|
|
19202
|
-
for (const t of
|
|
19202
|
+
for (const t of Zc._instances) {
|
|
19203
19203
|
const e = this.gameObject;
|
|
19204
19204
|
if (t.isInBox(e) === !0) {
|
|
19205
19205
|
const n = C.getComponentInParent(this.gameObject, hf);
|
|
@@ -19828,7 +19828,7 @@ const Ru = class Ru {
|
|
|
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 $c(Ru.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 Lu(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 Mb;
|
|
|
19982
19982
|
}
|
|
19983
19983
|
o.onDetermineModelMimetype = e;
|
|
19984
19984
|
})(Mb || (Mb = {}));
|
|
19985
|
-
const
|
|
19985
|
+
const Tc = S("debugfileformat");
|
|
19986
19986
|
function oR(o) {
|
|
19987
19987
|
switch ((o.split(".").pop() || o).toUpperCase()) {
|
|
19988
19988
|
case "GLTF":
|
|
@@ -20012,7 +20012,7 @@ async function rR(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()), Tc && 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 rR(o, t) {
|
|
|
20044
20044
|
}).catch((a) => null);
|
|
20045
20045
|
if (n != null && n.ok) {
|
|
20046
20046
|
const a = await n.arrayBuffer(), l = aR(i, a, n);
|
|
20047
|
-
return
|
|
20047
|
+
return Tc && console.log("[Needle Engine] Determined file type from header: " + l), l;
|
|
20048
20048
|
}
|
|
20049
20049
|
return "unknown";
|
|
20050
20050
|
}
|
|
@@ -20052,7 +20052,7 @@ function aR(o, t, e) {
|
|
|
20052
20052
|
if (t.byteLength < 4)
|
|
20053
20053
|
return "unknown";
|
|
20054
20054
|
const i = new Uint8Array(t);
|
|
20055
|
-
if (
|
|
20055
|
+
if (Tc && 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 aR(o, t, e) {
|
|
|
20106
20106
|
bytes: i
|
|
20107
20107
|
});
|
|
20108
20108
|
if (s)
|
|
20109
|
-
return
|
|
20109
|
+
return Tc && console.debug(`Mimetype callback returned: ${s}`), s;
|
|
20110
20110
|
}
|
|
20111
|
-
if (z() ||
|
|
20111
|
+
if (z() || Tc) {
|
|
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 Ko extends D {
|
|
|
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 cR({
|
|
@@ -20657,7 +20657,7 @@ class mR {
|
|
|
20657
20657
|
}
|
|
20658
20658
|
typeof window < "u" && window.addEventListener("unhandledrejection", (o) => {
|
|
20659
20659
|
});
|
|
20660
|
-
const bs = bt,
|
|
20660
|
+
const bs = bt, id = "$___Export_Components", gR = "NEEDLE_components";
|
|
20661
20661
|
var _0;
|
|
20662
20662
|
_0 = Sa;
|
|
20663
20663
|
class yR {
|
|
@@ -20711,12 +20711,12 @@ class xw {
|
|
|
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[id] = i, !0);
|
|
20715
20715
|
}
|
|
20716
20716
|
afterSerializeUserData(t, e) {
|
|
20717
|
-
if (t.type === "Scene" && bs && console.log("DONE", JSON.stringify(e)), t[
|
|
20718
|
-
const i = t[
|
|
20719
|
-
delete t[
|
|
20717
|
+
if (t.type === "Scene" && bs && console.log("DONE", JSON.stringify(e)), t[id] === void 0) return;
|
|
20718
|
+
const i = t[id];
|
|
20719
|
+
delete t[id], 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 @@ fe.registerCallback(me.ContextCreated, (o) => {
|
|
|
20903
20903
|
class Wm extends D {
|
|
20904
20904
|
constructor() {
|
|
20905
20905
|
super(...arguments);
|
|
20906
|
-
r(this, "ambientMode",
|
|
20906
|
+
r(this, "ambientMode", Pc.Skybox);
|
|
20907
20907
|
r(this, "ambientLight");
|
|
20908
20908
|
r(this, "ambientTrilight");
|
|
20909
20909
|
r(this, "ambientIntensity", 1);
|
|
@@ -20940,13 +20940,13 @@ class Wm extends D {
|
|
|
20940
20940
|
return 2.2 * $.lerp(0, 1.33, i);
|
|
20941
20941
|
}
|
|
20942
20942
|
onEnable() {
|
|
20943
|
-
if (ka && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode ==
|
|
20943
|
+
if (ka && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode == Pc.Flat) {
|
|
20944
20944
|
if (this.ambientLight && !this._ambientLightObj) {
|
|
20945
20945
|
const e = this.calculateIntensityFactor(this.ambientLight);
|
|
20946
20946
|
this._ambientLightObj = new ES(this.ambientLight, this.ambientIntensity * e), ka && 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 === Pc.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 AS(i, e, this.ambientIntensity * n), this.gameObject.add(this._hemisphereLightObj), ka && console.log("Created hemisphere ambient light", this.sourceId, this._hemisphereLightObj, this.ambientIntensity, n);
|
|
@@ -21367,7 +21367,7 @@ function Cw(o) {
|
|
|
21367
21367
|
}
|
|
21368
21368
|
const kR = S("debugextensions");
|
|
21369
21369
|
let du;
|
|
21370
|
-
const MR = import("./three-examples-
|
|
21370
|
+
const MR = import("./three-examples-B50TT3Iu.js").then((o) => o.GLTFLoaderAnimationPointer).then(async (o) => (du = o.GLTFAnimationPointerExtension, du)).catch((o) => {
|
|
21371
21371
|
console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three for full KHR_animation support", o);
|
|
21372
21372
|
}), Gr = new Array();
|
|
21373
21373
|
function u2(o) {
|
|
@@ -21597,7 +21597,7 @@ const di = S("debuginstancing"), za = class za {
|
|
|
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[Xc] || i.equals(l) === !1) && (i.copy(l), t[Xc] = !0), l;
|
|
21601
21601
|
};
|
|
21602
21602
|
t.matrixWorld.multiplyMatrices = n;
|
|
21603
21603
|
}
|
|
@@ -21610,7 +21610,7 @@ r(za, "instance", new za()), /** This is the initial instance count when creatin
|
|
|
21610
21610
|
* @returns The initial instance count
|
|
21611
21611
|
* */
|
|
21612
21612
|
r(za, "getStartInstanceCount", (t) => 4);
|
|
21613
|
-
let
|
|
21613
|
+
let Jc = za;
|
|
21614
21614
|
const Ua = class Ua {
|
|
21615
21615
|
constructor(t, e) {
|
|
21616
21616
|
/** The object that is being instanced */
|
|
@@ -21720,14 +21720,14 @@ class Rw {
|
|
|
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[dc] === !0 && (di === "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), di && (this._debugMaterial = Ib());
|
|
21729
21729
|
const a = this.tryEstimateVertexCountSize(this._maxInstanceCount, [e], n);
|
|
21730
|
-
this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new n_(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[
|
|
21730
|
+
this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new n_(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[dc] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof k0 && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), s.pre_render_callbacks.push(this.onBeforeRender), s.post_render_callbacks.push(this.onAfterRender), di && console.log(`Instanced renderer created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${t}"`);
|
|
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 n_(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[dc] = this._batchedMesh[dc], l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorldNeedsUpdate = this._batchedMesh.matrixWorldNeedsUpdate, l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorld.copy(this._batchedMesh.matrixWorld), l.matrix.copy(this._batchedMesh.matrix), this._batchedMesh.dispose(), this._batchedMesh.removeFromParent(), this._geometryIds.clear(), this._batchedMesh = l, this._maxInstanceCount = i;
|
|
21851
21851
|
const c = [...this._handles];
|
|
21852
21852
|
this._handles = [];
|
|
21853
21853
|
for (const u of c)
|
|
@@ -22029,7 +22029,7 @@ var AR = Object.defineProperty, no = (o, t, e, i) => {
|
|
|
22029
22029
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
22030
22030
|
return n && AR(t, e, n), n;
|
|
22031
22031
|
};
|
|
22032
|
-
const
|
|
22032
|
+
const pc = S("debugrenderer"), Lb = S("debugskinnedmesh"), Db = S("noinstancing"), IR = S("wireframe");
|
|
22033
22033
|
class LR {
|
|
22034
22034
|
constructor() {
|
|
22035
22035
|
r(this, "path", null);
|
|
@@ -22099,7 +22099,7 @@ class DR {
|
|
|
22099
22099
|
return this._changed;
|
|
22100
22100
|
}
|
|
22101
22101
|
set changed(t) {
|
|
22102
|
-
t === !0 &&
|
|
22102
|
+
t === !0 && pc && 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 hs = class Rd extends D {
|
|
|
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, pc && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor && pc && this.probeAnchor.add(new Di(0.2)), this._reflectionProbe = null, this.isMultiMaterialObject(this.gameObject)) {
|
|
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 hs = class Rd extends D {
|
|
|
22316
22316
|
}
|
|
22317
22317
|
}
|
|
22318
22318
|
} else
|
|
22319
|
-
|
|
22319
|
+
pc && console.warn("Lightmap not found", this.sourceId, this.lightmapIndex);
|
|
22320
22320
|
}
|
|
22321
22321
|
}
|
|
22322
22322
|
/**
|
|
@@ -22341,7 +22341,7 @@ const hs = class Rd extends D {
|
|
|
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 = Jc.instance.setup(this, this.gameObject, this.context, null, { rend: this, foundMeshes: 0, useMatrixWorldAutoUpdate: this.useInstanceMatrixWorldAutoUpdate() }), this._handles)
|
|
22345
22345
|
return C.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 hs = class Rd extends D {
|
|
|
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()), pc == 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 hs = class Rd extends D {
|
|
|
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[Xc] === !0) {
|
|
22402
|
+
this.gameObject[Xc] = !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 jR = Object.defineProperty, Ew = (o, t, e, i) => {
|
|
|
22525
22525
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
22526
22526
|
return n && jR(t, e, n), n;
|
|
22527
22527
|
};
|
|
22528
|
-
const
|
|
22528
|
+
const nd = S("debuggltfexport");
|
|
22529
22529
|
class Aw extends Ks {
|
|
22530
22530
|
constructor() {
|
|
22531
22531
|
super(...arguments);
|
|
@@ -22540,7 +22540,7 @@ const uy = class Ma extends D {
|
|
|
22540
22540
|
r(this, "ext");
|
|
22541
22541
|
}
|
|
22542
22542
|
async exportNow(e, i) {
|
|
22543
|
-
|
|
22543
|
+
nd && 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: Ma.calculateCenter(this.objects),
|
|
@@ -22567,7 +22567,7 @@ const uy = class Ma extends D {
|
|
|
22567
22567
|
animations: (i == null ? void 0 : i.animations) || Ma.collectAnimations(e),
|
|
22568
22568
|
...i
|
|
22569
22569
|
}, a = new Array(), l = new L();
|
|
22570
|
-
i != null && i.pivot && l.position.sub(i.pivot),
|
|
22570
|
+
i != null && i.pivot && l.position.sub(i.pivot), nd && console.log("EXPORT", e), e.forEach((d) => {
|
|
22571
22571
|
d && $m(d) && (l.children.push(d), d.matrixAutoUpdate = !1, d.matrix.copy(d.matrixWorld), C.getComponentsInChildren(d, ln).forEach((u) => {
|
|
22572
22572
|
C.isActiveInHierarchy(u.gameObject) && u.setInstancingEnabled(!1);
|
|
22573
22573
|
}), d.traverse((u) => {
|
|
@@ -22581,7 +22581,7 @@ const uy = class Ma extends D {
|
|
|
22581
22581
|
});
|
|
22582
22582
|
const c = new Dv(l);
|
|
22583
22583
|
return i != null && i.needleComponents && (this.ext = new xw()), this.ext && (this.ext.registerExport(n), this.ext.context = c), new Promise((d, u) => {
|
|
22584
|
-
|
|
22584
|
+
nd && console.log("Starting glTF export.");
|
|
22585
22585
|
try {
|
|
22586
22586
|
n == null || n.parse(
|
|
22587
22587
|
l,
|
|
@@ -22598,7 +22598,7 @@ const uy = class Ma extends D {
|
|
|
22598
22598
|
} catch (f) {
|
|
22599
22599
|
console.error(f), u(f);
|
|
22600
22600
|
} finally {
|
|
22601
|
-
a.forEach((f) => f()),
|
|
22601
|
+
a.forEach((f) => f()), nd && 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 zR(t, e);
|
|
22719
|
-
|
|
22719
|
+
mc.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 = mc.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 = mc.get(t);
|
|
22753
|
+
e && (e.end(), mc.delete(t));
|
|
22754
22754
|
}
|
|
22755
22755
|
}
|
|
22756
|
-
const
|
|
22756
|
+
const mc = /* @__PURE__ */ new Map();
|
|
22757
22757
|
class zR {
|
|
22758
22758
|
constructor(t, e) {
|
|
22759
22759
|
r(this, "scopeLabel");
|
|
@@ -22769,7 +22769,7 @@ class zR {
|
|
|
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 ? mc.get(e.parentScope) : void 0, this.parentScope && (this.parentScope.childScopes.push(this), this.parentDepth = this.parentScope.parentDepth + 1), this.scopeLabel = " ".repeat(this.parentDepth * 2) + t, this.showLogs = (e == null ? void 0 : e.logTimings) ?? !!BR, this.showLogs && console.time(this.scopeLabel), this.onProgress = e == null ? void 0 : e.onProgress;
|
|
22773
22773
|
}
|
|
22774
22774
|
report(t, e = !1) {
|
|
22775
22775
|
if (t) {
|
|
@@ -22816,7 +22816,7 @@ function UR(o, t, e) {
|
|
|
22816
22816
|
b.set(_, v);
|
|
22817
22817
|
}
|
|
22818
22818
|
return b.get(_);
|
|
22819
|
-
}, s = o.colorNode ?
|
|
22819
|
+
}, s = o.colorNode ? sd(o.colorNode) : [], a = o.colorNode ? `color3f inputs:diffuseColor.connect = ${Ue}/${t}/${n(s.values().next().value)}.outputs:out>` : "", l = o.roughnessNode ? sd(o.roughnessNode) : [], c = o.roughnessNode ? `float inputs:roughness.connect = ${Ue}/${t}/${n(l.values().next().value)}.outputs:out>` : "", h = o.normalNode ? sd(o.normalNode) : [], d = o.normalNode ? `float3 inputs:normal.connect = ${Ue}/${t}/${n(h.values().next().value)}.outputs:out>` : "", u = o.metalnessNode ? sd(o.metalnessNode) : [], f = o.metalnessNode ? `float inputs:metallic.connect = ${Ue}/${t}/${n(u.values().next().value)}.outputs:out>` : "", m = /* @__PURE__ */ new Set([...s, ...l, ...h, ...u]), g = WR(m, t, e, n);
|
|
22820
22820
|
return console.debug(g), `
|
|
22821
22821
|
|
|
22822
22822
|
def Material "${t}" ${o.name ? `(
|
|
@@ -22839,7 +22839,7 @@ function UR(o, t, e) {
|
|
|
22839
22839
|
|
|
22840
22840
|
}`;
|
|
22841
22841
|
}
|
|
22842
|
-
function
|
|
22842
|
+
function sd(o) {
|
|
22843
22843
|
const t = (y) => {
|
|
22844
22844
|
if (y.nodeType) return y.nodeType;
|
|
22845
22845
|
switch (y.type) {
|
|
@@ -23434,13 +23434,13 @@ function Fw(o, t, e, i) {
|
|
|
23434
23434
|
const l = { position: o.position, quaternion: o.quaternion, scale: o.scale };
|
|
23435
23435
|
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 Us) && (s = o.geometry, a = o.material), i && !i(o) && (s = void 0, a = void 0), (o instanceof G || o instanceof Us) && a && typeof a == "object" && (a instanceof yt || a instanceof Me || // material instanceof MeshPhysicalNodeMaterial ||
|
|
23436
23436
|
a.isMeshPhysicalNodeMaterial || a instanceof Pe && a.type === "MeshLineMaterial")) {
|
|
23437
|
-
const h =
|
|
23437
|
+
const h = ad(o), d = o instanceof Us ? o : null;
|
|
23438
23438
|
n = new ni(o.uuid, h, l, s, a, void 0, d, o.animations);
|
|
23439
23439
|
} else if (o instanceof ve || o instanceof Iu) {
|
|
23440
|
-
const h =
|
|
23440
|
+
const h = ad(o);
|
|
23441
23441
|
n = new ni(o.uuid, h, l, void 0, void 0, o);
|
|
23442
23442
|
} else {
|
|
23443
|
-
const h =
|
|
23443
|
+
const h = ad(o);
|
|
23444
23444
|
n = new ni(o.uuid, h, l, void 0, void 0, void 0, void 0, o.animations);
|
|
23445
23445
|
}
|
|
23446
23446
|
if (n) {
|
|
@@ -23448,7 +23448,7 @@ function Fw(o, t, e, i) {
|
|
|
23448
23448
|
for (const h of e.extensions)
|
|
23449
23449
|
h.onExportObject && h.onExportObject.call(h, o, n, e);
|
|
23450
23450
|
} else {
|
|
23451
|
-
const h =
|
|
23451
|
+
const h = ad(o), d = new ni(o.uuid, h, { position: o.position, quaternion: o.quaternion, scale: o.scale });
|
|
23452
23452
|
t && t.add(d), t = d;
|
|
23453
23453
|
}
|
|
23454
23454
|
for (const h of o.children)
|
|
@@ -23556,7 +23556,7 @@ async function Td(o, t, e = null) {
|
|
|
23556
23556
|
}
|
|
23557
23557
|
}
|
|
23558
23558
|
}
|
|
23559
|
-
let
|
|
23559
|
+
let od = null, qt = null, Ap, ba, rd;
|
|
23560
23560
|
async function ZR(o, t = 1 / 0, e = null, i = void 0) {
|
|
23561
23561
|
Ap || (Ap = new ls(2, 2, 1, 1)), ba || (ba = new is({
|
|
23562
23562
|
uniforms: {
|
|
@@ -23591,11 +23591,11 @@ async function ZR(o, t = 1 / 0, e = null, i = void 0) {
|
|
|
23591
23591
|
}`
|
|
23592
23592
|
}));
|
|
23593
23593
|
const n = ba.uniforms;
|
|
23594
|
-
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), ba.defines.IS_SRGB = o.colorSpace == qs, ba.needsUpdate = !0,
|
|
23594
|
+
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), ba.defines.IS_SRGB = o.colorSpace == qs, ba.needsUpdate = !0, rd || (rd = new G(Ap, ba), rd.frustumCulled = !1);
|
|
23595
23595
|
const s = new ve(), a = new ji();
|
|
23596
|
-
a.add(
|
|
23596
|
+
a.add(rd), e || (e = od = new Zr({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
|
|
23597
23597
|
const l = Math.min(o.image.width, t), c = Math.min(o.image.height, t);
|
|
23598
|
-
qt && (qt.width !== l || qt.height !== c) && (qt.dispose(), qt = null), qt || (qt = new ns(l, c, { format: Bu, type: iC, minFilter: Bd, magFilter: Bd })), e.setRenderTarget(qt), e.setSize(l, c), e.clear(), e.render(a, s),
|
|
23598
|
+
qt && (qt.width !== l || qt.height !== c) && (qt.dispose(), qt = null), qt || (qt = new ns(l, c, { format: Bu, type: iC, minFilter: Bd, magFilter: Bd })), e.setRenderTarget(qt), e.setSize(l, c), e.clear(), e.render(a, s), od && (od.dispose(), od = null);
|
|
23599
23599
|
const h = new Uint8ClampedArray(qt.width * qt.height * 4);
|
|
23600
23600
|
e.readRenderTargetPixels(qt, 0, 0, qt.width, qt.height, h);
|
|
23601
23601
|
const d = new ImageData(h, qt.width, qt.height, void 0), u = await createImageBitmap(d, { premultiplyAlpha: "none" });
|
|
@@ -23643,7 +23643,7 @@ function nT(o, t) {
|
|
|
23643
23643
|
let e = iT();
|
|
23644
23644
|
return e += o, L0(e);
|
|
23645
23645
|
}
|
|
23646
|
-
function
|
|
23646
|
+
function ad(o) {
|
|
23647
23647
|
return o.name.replace(/[-<>\(\)\[\]§$%&\/\\\=\?\,\;]/g, "") + "_" + o.id;
|
|
23648
23648
|
}
|
|
23649
23649
|
function Bb(o) {
|
|
@@ -23695,9 +23695,9 @@ function he(o) {
|
|
|
23695
23695
|
}
|
|
23696
23696
|
function Fb(o) {
|
|
23697
23697
|
const t = o.elements;
|
|
23698
|
-
return `( ${
|
|
23698
|
+
return `( ${ld(t, 0)}, ${ld(t, 4)}, ${ld(t, 8)}, ${ld(t, 12)} )`;
|
|
23699
23699
|
}
|
|
23700
|
-
function
|
|
23700
|
+
function ld(o, t) {
|
|
23701
23701
|
return `(${he(o[t + 0])}, ${he(o[t + 1])}, ${he(o[t + 2])}, ${he(o[t + 3])})`;
|
|
23702
23702
|
}
|
|
23703
23703
|
function sT(o, t = [], e = !0) {
|
|
@@ -24226,7 +24226,7 @@ class Mr {
|
|
|
24226
24226
|
}
|
|
24227
24227
|
}
|
|
24228
24228
|
r(Mr, "global_id", 0);
|
|
24229
|
-
const
|
|
24229
|
+
const zc = class zc {
|
|
24230
24230
|
constructor(t, e) {
|
|
24231
24231
|
r(this, "id");
|
|
24232
24232
|
r(this, "tokenId");
|
|
@@ -24253,18 +24253,18 @@ const Fc = class Fc {
|
|
|
24253
24253
|
// extra info written as comment at the beginning of the action
|
|
24254
24254
|
r(this, "comment");
|
|
24255
24255
|
r(this, "animationName");
|
|
24256
|
-
t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" +
|
|
24256
|
+
t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" + zc.global_id++;
|
|
24257
24257
|
}
|
|
24258
24258
|
clone() {
|
|
24259
|
-
const t = new
|
|
24259
|
+
const t = new zc(), e = t.id;
|
|
24260
24260
|
return Object.assign(t, this), t.id = e, t;
|
|
24261
24261
|
}
|
|
24262
24262
|
writeTo(t, e) {
|
|
24263
24263
|
e.beginBlock(`def Preliminary_Action "${this.id}"`), this.comment && e.appendLine(`# ${this.comment}`), this.affectedObjects && (typeof this.affectedObjects != "string" && (this.affectedObjects = Xm(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 = Xm(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();
|
|
24264
24264
|
}
|
|
24265
24265
|
};
|
|
24266
|
-
r(
|
|
24267
|
-
let Ji =
|
|
24266
|
+
r(zc, "global_id", 0);
|
|
24267
|
+
let Ji = zc;
|
|
24268
24268
|
class en {
|
|
24269
24269
|
constructor(t, e, i) {
|
|
24270
24270
|
r(this, "x", 0);
|
|
@@ -25059,7 +25059,7 @@ var fT = Object.defineProperty, He = (o, t, e, i) => {
|
|
|
25059
25059
|
return n && fT(t, e, n), n;
|
|
25060
25060
|
};
|
|
25061
25061
|
const Wb = S("debugusdzbehaviours");
|
|
25062
|
-
function
|
|
25062
|
+
function yh(o) {
|
|
25063
25063
|
o && (o.getComponentInParent(ul) || (z() && console.debug('Raycaster on "' + o.name + '" was automatically added, because no raycaster was found in the parent hierarchy.'), o.addComponent(an)));
|
|
25064
25064
|
}
|
|
25065
25065
|
class Cl extends D {
|
|
@@ -25075,7 +25075,7 @@ class Cl extends D {
|
|
|
25075
25075
|
r(this, "targetScale", new w());
|
|
25076
25076
|
}
|
|
25077
25077
|
start() {
|
|
25078
|
-
|
|
25078
|
+
yh(this.gameObject);
|
|
25079
25079
|
}
|
|
25080
25080
|
onPointerClick(e) {
|
|
25081
25081
|
e.use(), this.coroutine && this.stopCoroutine(this.coroutine), this.relativeMotion ? this.coroutine = this.startCoroutine(this.moveRelative()) : this.coroutine = this.startCoroutine(this.moveToTarget());
|
|
@@ -25084,12 +25084,12 @@ class Cl extends D {
|
|
|
25084
25084
|
if (!this.target || !this.object) return;
|
|
25085
25085
|
const e = te(this.object).clone(), i = te(this.target).clone(), n = Oe(this.object).clone(), s = Oe(this.target).clone(), a = Ke(this.object).clone(), l = Ke(this.target).clone(), c = e.distanceTo(i), h = n.angleTo(s), d = a.distanceTo(l);
|
|
25086
25086
|
if (c < 0.01 && h < 0.01 && d < 0.01) {
|
|
25087
|
-
vt(this.object, i), Mn(this.object, s),
|
|
25087
|
+
vt(this.object, i), Mn(this.object, s), Hc(this.object, l), this.coroutine = null;
|
|
25088
25088
|
return;
|
|
25089
25089
|
}
|
|
25090
25090
|
let u = 0, f = 0;
|
|
25091
25091
|
for (; u < 1; )
|
|
25092
|
-
u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), f = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, f), this.targetRot.slerpQuaternions(n, s, f), this.targetScale.lerpVectors(a, l, f), vt(this.object, this.targetPos), Mn(this.object, this.targetRot),
|
|
25092
|
+
u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), f = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, f), this.targetRot.slerpQuaternions(n, s, f), this.targetScale.lerpVectors(a, l, f), vt(this.object, this.targetPos), Mn(this.object, this.targetRot), Hc(this.object, this.targetScale), yield;
|
|
25093
25093
|
this.coroutine = null;
|
|
25094
25094
|
}
|
|
25095
25095
|
*moveRelative() {
|
|
@@ -25138,7 +25138,7 @@ const pf = ($e = class extends D {
|
|
|
25138
25138
|
}
|
|
25139
25139
|
start() {
|
|
25140
25140
|
var e;
|
|
25141
|
-
this._objectsWithThisMaterial = this.objectsWithThisMaterial,
|
|
25141
|
+
this._objectsWithThisMaterial = this.objectsWithThisMaterial, yh(this.gameObject), z() && this._objectsWithThisMaterial.length <= 0 && console.warn('ChangeMaterialOnClick: No objects found with material "' + ((e = this.materialToSwitch) == null ? void 0 : e.name) + '"');
|
|
25142
25142
|
}
|
|
25143
25143
|
onPointerEnter(e) {
|
|
25144
25144
|
this.context.input.setCursor("pointer");
|
|
@@ -25229,7 +25229,7 @@ He([
|
|
|
25229
25229
|
], pf.prototype, "fadeDuration");
|
|
25230
25230
|
let Vw = pf;
|
|
25231
25231
|
var _e;
|
|
25232
|
-
const
|
|
25232
|
+
const _h = (_e = class extends D {
|
|
25233
25233
|
constructor() {
|
|
25234
25234
|
super(...arguments);
|
|
25235
25235
|
r(this, "target");
|
|
@@ -25244,7 +25244,7 @@ const yh = (_e = class extends D {
|
|
|
25244
25244
|
r(this, "targetStateBeforeCreatingDocument", !1);
|
|
25245
25245
|
}
|
|
25246
25246
|
start() {
|
|
25247
|
-
|
|
25247
|
+
yh(this.gameObject);
|
|
25248
25248
|
}
|
|
25249
25249
|
onPointerClick(e) {
|
|
25250
25250
|
e.use(), !this.toggleOnClick && this.hideSelf && (this.gameObject.visible = !1), this.target && (this.target.visible = this.toggleOnClick ? !this.target.visible : this.targetState);
|
|
@@ -25300,7 +25300,7 @@ const yh = (_e = class extends D {
|
|
|
25300
25300
|
));
|
|
25301
25301
|
}
|
|
25302
25302
|
const l = new Array();
|
|
25303
|
-
this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel),
|
|
25303
|
+
this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel), eh.add(l, e);
|
|
25304
25304
|
}
|
|
25305
25305
|
}
|
|
25306
25306
|
afterSerialize(e, i) {
|
|
@@ -25309,17 +25309,17 @@ const yh = (_e = class extends D {
|
|
|
25309
25309
|
}, 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);
|
|
25310
25310
|
He([
|
|
25311
25311
|
p(L)
|
|
25312
|
-
],
|
|
25312
|
+
], _h.prototype, "target");
|
|
25313
25313
|
He([
|
|
25314
25314
|
p()
|
|
25315
|
-
],
|
|
25315
|
+
], _h.prototype, "toggleOnClick");
|
|
25316
25316
|
He([
|
|
25317
25317
|
p()
|
|
25318
|
-
],
|
|
25318
|
+
], _h.prototype, "targetState");
|
|
25319
25319
|
He([
|
|
25320
25320
|
p()
|
|
25321
|
-
],
|
|
25322
|
-
let Hw =
|
|
25321
|
+
], _h.prototype, "hideSelf");
|
|
25322
|
+
let Hw = _h;
|
|
25323
25323
|
const wn = class wn extends D {
|
|
25324
25324
|
constructor() {
|
|
25325
25325
|
super(...arguments);
|
|
@@ -25347,8 +25347,8 @@ const wn = class wn extends D {
|
|
|
25347
25347
|
}
|
|
25348
25348
|
};
|
|
25349
25349
|
r(wn, "_fadeBehaviour"), r(wn, "_fadeObjects", []);
|
|
25350
|
-
let
|
|
25351
|
-
class
|
|
25350
|
+
let eh = wn;
|
|
25351
|
+
class bh extends D {
|
|
25352
25352
|
constructor() {
|
|
25353
25353
|
super(...arguments);
|
|
25354
25354
|
r(this, "target");
|
|
@@ -25372,13 +25372,13 @@ class _h extends D {
|
|
|
25372
25372
|
}
|
|
25373
25373
|
He([
|
|
25374
25374
|
p()
|
|
25375
|
-
],
|
|
25375
|
+
], bh.prototype, "target");
|
|
25376
25376
|
He([
|
|
25377
25377
|
p()
|
|
25378
|
-
],
|
|
25378
|
+
], bh.prototype, "duration");
|
|
25379
25379
|
He([
|
|
25380
25380
|
p()
|
|
25381
|
-
],
|
|
25381
|
+
], bh.prototype, "motionType");
|
|
25382
25382
|
class qr extends D {
|
|
25383
25383
|
constructor() {
|
|
25384
25384
|
super(...arguments);
|
|
@@ -25389,7 +25389,7 @@ class qr extends D {
|
|
|
25389
25389
|
r(this, "trigger", "tap");
|
|
25390
25390
|
}
|
|
25391
25391
|
start() {
|
|
25392
|
-
|
|
25392
|
+
yh(this.gameObject);
|
|
25393
25393
|
}
|
|
25394
25394
|
ensureAudioSource() {
|
|
25395
25395
|
if (!this.target) {
|
|
@@ -25471,7 +25471,7 @@ const my = (Dt = class extends D {
|
|
|
25471
25471
|
return ((e = this.animator) == null ? void 0 : e.gameObject) || ((i = this.animation) == null ? void 0 : i.gameObject);
|
|
25472
25472
|
}
|
|
25473
25473
|
start() {
|
|
25474
|
-
|
|
25474
|
+
yh(this.gameObject);
|
|
25475
25475
|
}
|
|
25476
25476
|
onPointerClick(e) {
|
|
25477
25477
|
var i;
|
|
@@ -25666,7 +25666,7 @@ He([
|
|
|
25666
25666
|
p()
|
|
25667
25667
|
], my.prototype, "stateName");
|
|
25668
25668
|
let pu = my;
|
|
25669
|
-
class
|
|
25669
|
+
class vh extends D {
|
|
25670
25670
|
constructor() {
|
|
25671
25671
|
super(...arguments);
|
|
25672
25672
|
r(this, "target");
|
|
@@ -25678,7 +25678,7 @@ class bh extends D {
|
|
|
25678
25678
|
}
|
|
25679
25679
|
He([
|
|
25680
25680
|
p(L)
|
|
25681
|
-
],
|
|
25681
|
+
], vh.prototype, "target");
|
|
25682
25682
|
class mf extends D {
|
|
25683
25683
|
constructor() {
|
|
25684
25684
|
super(...arguments);
|
|
@@ -25686,9 +25686,9 @@ class mf extends D {
|
|
|
25686
25686
|
}
|
|
25687
25687
|
}
|
|
25688
25688
|
He([
|
|
25689
|
-
p(
|
|
25689
|
+
p(vh)
|
|
25690
25690
|
], mf.prototype, "target");
|
|
25691
|
-
class gf extends
|
|
25691
|
+
class gf extends vh {
|
|
25692
25692
|
constructor() {
|
|
25693
25693
|
super(...arguments);
|
|
25694
25694
|
r(this, "type", 1);
|
|
@@ -25843,11 +25843,11 @@ var pT = Object.defineProperty, mT = Object.getOwnPropertyDescriptor, St = (o, t
|
|
|
25843
25843
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
25844
25844
|
return i && n && pT(t, e, n), n;
|
|
25845
25845
|
};
|
|
25846
|
-
const mu = S("debugspriterenderer"), gT = S("wireframe"),
|
|
25846
|
+
const mu = S("debugspriterenderer"), gT = S("wireframe"), Uc = class Uc {
|
|
25847
25847
|
static getOrCreateGeometry(t) {
|
|
25848
25848
|
if (t.__cached_geometry) return t.__cached_geometry;
|
|
25849
|
-
if (t.guid &&
|
|
25850
|
-
return mu && console.log("Take cached geometry for sprite", t.guid),
|
|
25849
|
+
if (t.guid && Uc.cache[t.guid])
|
|
25850
|
+
return mu && console.log("Take cached geometry for sprite", t.guid), Uc.cache[t.guid];
|
|
25851
25851
|
const e = new Jn();
|
|
25852
25852
|
t.__cached_geometry = e;
|
|
25853
25853
|
const i = new Float32Array(t.triangles.length * 3), n = new Float32Array(t.triangles.length * 2);
|
|
@@ -25860,8 +25860,8 @@ const mu = S("debugspriterenderer"), gT = S("wireframe"), zc = class zc {
|
|
|
25860
25860
|
return e.setAttribute("position", new _t(i, 3)), e.setAttribute("uv", new _t(n, 2)), t.guid && (this.cache[t.guid] = e), mu && console.log("Built sprite geometry", t, e), e;
|
|
25861
25861
|
}
|
|
25862
25862
|
};
|
|
25863
|
-
r(
|
|
25864
|
-
let pl =
|
|
25863
|
+
r(Uc, "cache", {});
|
|
25864
|
+
let pl = Uc;
|
|
25865
25865
|
class yT {
|
|
25866
25866
|
constructor() {
|
|
25867
25867
|
r(this, "x");
|
|
@@ -25924,7 +25924,7 @@ St([
|
|
|
25924
25924
|
yl()
|
|
25925
25925
|
], Zo.prototype, "vertices", 2);
|
|
25926
25926
|
const jp = Symbol("spriteOwner");
|
|
25927
|
-
class
|
|
25927
|
+
class th {
|
|
25928
25928
|
constructor() {
|
|
25929
25929
|
r(this, "sprites");
|
|
25930
25930
|
this.sprites = [];
|
|
@@ -25932,7 +25932,7 @@ class eh {
|
|
|
25932
25932
|
}
|
|
25933
25933
|
St([
|
|
25934
25934
|
p(Zo)
|
|
25935
|
-
],
|
|
25935
|
+
], th.prototype, "sprites", 2);
|
|
25936
25936
|
const gy = class Ym {
|
|
25937
25937
|
// we don't assign anything here because it's used by the serialization system.
|
|
25938
25938
|
// there's currently a limitation in the serializer when e.g. spriteSheet is already assigned it will not be overriden by the serializer
|
|
@@ -25943,7 +25943,7 @@ const gy = class Ym {
|
|
|
25943
25943
|
}
|
|
25944
25944
|
static create() {
|
|
25945
25945
|
const t = new Ym();
|
|
25946
|
-
return t.spriteSheet = new
|
|
25946
|
+
return t.spriteSheet = new th(), t;
|
|
25947
25947
|
}
|
|
25948
25948
|
clone() {
|
|
25949
25949
|
const t = new Ym();
|
|
@@ -25953,7 +25953,7 @@ const gy = class Ym {
|
|
|
25953
25953
|
* Set the sprite to be rendered in the currently assigned sprite sheet at the currently active index {@link index}
|
|
25954
25954
|
*/
|
|
25955
25955
|
set sprite(t) {
|
|
25956
|
-
t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new
|
|
25956
|
+
t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new th(), this.spriteSheet.sprites = [t], this.index = 0));
|
|
25957
25957
|
}
|
|
25958
25958
|
/** The currently active sprite */
|
|
25959
25959
|
get sprite() {
|
|
@@ -25976,12 +25976,12 @@ const gy = class Ym {
|
|
|
25976
25976
|
}
|
|
25977
25977
|
};
|
|
25978
25978
|
St([
|
|
25979
|
-
p(
|
|
25979
|
+
p(th)
|
|
25980
25980
|
], gy.prototype, "spriteSheet", 2);
|
|
25981
25981
|
St([
|
|
25982
25982
|
p()
|
|
25983
25983
|
], gy.prototype, "index", 2);
|
|
25984
|
-
let
|
|
25984
|
+
let Ec = gy;
|
|
25985
25985
|
class Ni extends D {
|
|
25986
25986
|
constructor() {
|
|
25987
25987
|
super(...arguments);
|
|
@@ -26021,7 +26021,7 @@ class Ni extends D {
|
|
|
26021
26021
|
*/
|
|
26022
26022
|
addSprite(e, i = !1) {
|
|
26023
26023
|
var s, a;
|
|
26024
|
-
if (this._spriteSheet || (this._spriteSheet =
|
|
26024
|
+
if (this._spriteSheet || (this._spriteSheet = Ec.create()), !this._spriteSheet.spriteSheet) return -1;
|
|
26025
26025
|
(s = this._spriteSheet.spriteSheet) == null || s.sprites.push(e);
|
|
26026
26026
|
const n = ((a = this._spriteSheet.spriteSheet) == null ? void 0 : a.sprites.length) - 1;
|
|
26027
26027
|
return i && (this.spriteIndex = n), n;
|
|
@@ -26037,7 +26037,7 @@ class Ni extends D {
|
|
|
26037
26037
|
if (typeof e == "number") {
|
|
26038
26038
|
const i = Math.floor(e);
|
|
26039
26039
|
this.spriteIndex = i;
|
|
26040
|
-
} else e instanceof Zo ? (this._spriteSheet || (this._spriteSheet =
|
|
26040
|
+
} else e instanceof Zo ? (this._spriteSheet || (this._spriteSheet = Ec.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e), this.updateSprite()) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
|
|
26041
26041
|
}
|
|
26042
26042
|
/**
|
|
26043
26043
|
* Set the index of the sprite to be rendered in the currently assigned sprite sheet
|
|
@@ -26058,7 +26058,7 @@ class Ni extends D {
|
|
|
26058
26058
|
}
|
|
26059
26059
|
/** @internal */
|
|
26060
26060
|
awake() {
|
|
26061
|
-
this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet =
|
|
26061
|
+
this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet = Ec.create(), mu && console.log("Awake", this.name, this, this.sprite);
|
|
26062
26062
|
}
|
|
26063
26063
|
/** @internal */
|
|
26064
26064
|
start() {
|
|
@@ -26119,7 +26119,7 @@ St([
|
|
|
26119
26119
|
p()
|
|
26120
26120
|
], Ni.prototype, "toneMapped", 2);
|
|
26121
26121
|
St([
|
|
26122
|
-
p(
|
|
26122
|
+
p(Ec)
|
|
26123
26123
|
], Ni.prototype, "sprite", 1);
|
|
26124
26124
|
const Vb = S("debugwebxr"), _T = new oe().makeRotationY(Math.PI), ko = class ko extends D {
|
|
26125
26125
|
constructor() {
|
|
@@ -26587,16 +26587,16 @@ function wT(o, t) {
|
|
|
26587
26587
|
let e = t !== o;
|
|
26588
26588
|
return !e && o && t && (Array.isArray(o) && Array.isArray(t) || typeof o == "object" && typeof t == "object") && (e = !0), e;
|
|
26589
26589
|
}
|
|
26590
|
-
const
|
|
26590
|
+
const Ac = Symbol("AutoSyncHandler");
|
|
26591
26591
|
function xT(o) {
|
|
26592
|
-
if (o[
|
|
26593
|
-
return o[
|
|
26592
|
+
if (o[Ac])
|
|
26593
|
+
return o[Ac];
|
|
26594
26594
|
const t = yy.getOrCreateSyncer(o);
|
|
26595
|
-
return t == null || t.init(o), o[
|
|
26595
|
+
return t == null || t.init(o), o[Ac] = t, t;
|
|
26596
26596
|
}
|
|
26597
26597
|
function ST(o) {
|
|
26598
|
-
const t = o[
|
|
26599
|
-
t && (yy.removeSyncer(t), t.destroy(), delete o[
|
|
26598
|
+
const t = o[Ac];
|
|
26599
|
+
t && (yy.removeSyncer(t), t.destroy(), delete o[Ac]);
|
|
26600
26600
|
}
|
|
26601
26601
|
const Xw = function(o = null) {
|
|
26602
26602
|
return function(t, e) {
|
|
@@ -27808,7 +27808,7 @@ Ct([
|
|
|
27808
27808
|
p(le)
|
|
27809
27809
|
], pt.prototype, "defaultAvatar");
|
|
27810
27810
|
let vy = pt;
|
|
27811
|
-
const
|
|
27811
|
+
const cd = S("debugusdzbehaviours");
|
|
27812
27812
|
class Kw {
|
|
27813
27813
|
constructor() {
|
|
27814
27814
|
r(this, "behaviours", []);
|
|
@@ -27846,7 +27846,7 @@ class Kw {
|
|
|
27846
27846
|
l instanceof Promise && e.push(l);
|
|
27847
27847
|
}
|
|
27848
27848
|
}, !1);
|
|
27849
|
-
}),
|
|
27849
|
+
}), cd && console.log("onBeforeBuildDocument: all components", this.behaviourComponents), Promise.all(e);
|
|
27850
27850
|
}
|
|
27851
27851
|
onExportObject(t, e, i) {
|
|
27852
27852
|
var n;
|
|
@@ -27857,7 +27857,7 @@ class Kw {
|
|
|
27857
27857
|
for (const u of this.behaviourComponents)
|
|
27858
27858
|
typeof u.afterCreateDocument == "function" && u.afterCreateDocument(this, t);
|
|
27859
27859
|
this.behaviourComponentsCopy = this.behaviourComponents.slice(), this.behaviourComponents.length = 0, this.audioClipsCopy = this.audioClips.slice(), this.audioClips.length = 0;
|
|
27860
|
-
const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a =
|
|
27860
|
+
const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = cd;
|
|
27861
27861
|
let l = `graph LR
|
|
27862
27862
|
`, c = "";
|
|
27863
27863
|
function h(u) {
|
|
@@ -27953,7 +27953,7 @@ axisFormat %s
|
|
|
27953
27953
|
n.add(f.uuid);
|
|
27954
27954
|
else
|
|
27955
27955
|
n.add(u.uuid);
|
|
27956
|
-
|
|
27956
|
+
cd && console.log("All Behavior trigger sources and action targets", e, i, n), this.targetUuids = new Set(n);
|
|
27957
27957
|
}
|
|
27958
27958
|
onAfterHierarchy(t, e) {
|
|
27959
27959
|
var i;
|
|
@@ -27965,7 +27965,7 @@ axisFormat %s
|
|
|
27965
27965
|
}
|
|
27966
27966
|
}
|
|
27967
27967
|
async onAfterSerialize(t) {
|
|
27968
|
-
|
|
27968
|
+
cd && console.log("onAfterSerialize behaviours", this.behaviourComponentsCopy);
|
|
27969
27969
|
for (const e of this.behaviourComponentsCopy)
|
|
27970
27970
|
typeof e.afterSerialize == "function" && (e.afterSerialize.constructor.name === "AsyncFunction" ? await e.afterSerialize(this, t) : e.afterSerialize(this, t));
|
|
27971
27971
|
for (const { clipUrl: e, filesKey: i } of this.audioClipsCopy) {
|
|
@@ -27999,7 +27999,7 @@ class Zw {
|
|
|
27999
27999
|
var f;
|
|
28000
28000
|
c.beginBlock('def RealityKitComponent "Collider"', "{", !0), c.appendLine("uint group = 1"), c.appendLine('uniform token info:id = "RealityKit.Collider"'), c.appendLine("uint mask = 4294967295");
|
|
28001
28001
|
const u = l.isTrigger ? "Trigger" : "Default";
|
|
28002
|
-
if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof
|
|
28002
|
+
if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof gh) {
|
|
28003
28003
|
const m = l;
|
|
28004
28004
|
c.appendLine('token shapeType = "Sphere"'), c.appendLine(`float radius = ${m.radius}`);
|
|
28005
28005
|
} else if (l instanceof oy) {
|
|
@@ -28098,7 +28098,7 @@ class En extends D {
|
|
|
28098
28098
|
const l = this._parentComponent.shadowComponent;
|
|
28099
28099
|
l && (l == null || l.add(e), s = !0);
|
|
28100
28100
|
}
|
|
28101
|
-
this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent),
|
|
28101
|
+
this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent), hh && e.add(new Di(0.5)), this.onAfterAddedToScene(), s && n1(), IT && console.warn("Added shadow component", this.shadowComponent);
|
|
28102
28102
|
}
|
|
28103
28103
|
setShadowComponentOwner(e) {
|
|
28104
28104
|
if (e && (e[Ri] === void 0 || e[Ri] === this) && (e[Ri] = this, e.children))
|
|
@@ -28127,7 +28127,7 @@ class vf extends En {
|
|
|
28127
28127
|
super.awake();
|
|
28128
28128
|
}
|
|
28129
28129
|
}
|
|
28130
|
-
var LT = Object.defineProperty, DT = Object.getOwnPropertyDescriptor,
|
|
28130
|
+
var LT = Object.defineProperty, DT = Object.getOwnPropertyDescriptor, wh = (o, t, e, i) => {
|
|
28131
28131
|
for (var n = i > 1 ? void 0 : i ? DT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
28132
28132
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
28133
28133
|
return i && n && LT(t, e, n), n;
|
|
@@ -28147,7 +28147,7 @@ class BT {
|
|
|
28147
28147
|
r(this, "height");
|
|
28148
28148
|
}
|
|
28149
28149
|
}
|
|
28150
|
-
const bn = new w(), Kl = new oe(),
|
|
28150
|
+
const bn = new w(), Kl = new oe(), hd = new W(), Ol = class Jw extends En {
|
|
28151
28151
|
constructor() {
|
|
28152
28152
|
super(...arguments);
|
|
28153
28153
|
r(this, "_anchoredPosition");
|
|
@@ -28260,7 +28260,7 @@ const bn = new w(), Kl = new oe(), cd = new W(), Ol = class Jw extends En {
|
|
|
28260
28260
|
this._lastUpdateFrame = this.context.time.frameCount;
|
|
28261
28261
|
const i = this.shadowComponent;
|
|
28262
28262
|
if (!i) return;
|
|
28263
|
-
this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent, Jw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Up && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, bn.set(0, 0, 0), this.applyPivot(bn), i.matrix.setPosition(bn.x, bn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (
|
|
28263
|
+
this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent, Jw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Up && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, bn.set(0, 0, 0), this.applyPivot(bn), i.matrix.setPosition(bn.x, bn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (hd.copy(this.gameObject.quaternion), hd.x *= -1, hd.z *= -1, Kl.makeRotationFromQuaternion(hd), i.matrix.premultiply(Kl)), bn.set(0, 0, 0), this.applyAnchoring(bn), (s = this.canvas) != null && s.screenspace ? bn.z += 0.1 : bn.z += 0.01, Kl.identity(), Kl.setPosition(bn.x, bn.y, bn.z), i.matrix.premultiply(Kl), i.matrix.scale(this.gameObject.scale)), this.lastMatrix.copy(this.gameObject.matrix);
|
|
28264
28264
|
const n = !0;
|
|
28265
28265
|
for (const a of Vg(this.gameObject, En, n, 1)) {
|
|
28266
28266
|
if (a === this || !a.activeAndEnabled) continue;
|
|
@@ -28332,19 +28332,19 @@ const bn = new w(), Kl = new oe(), cd = new W(), Ol = class Jw extends En {
|
|
|
28332
28332
|
return this._createdTextBlocks.push(i), i;
|
|
28333
28333
|
}
|
|
28334
28334
|
};
|
|
28335
|
-
|
|
28335
|
+
wh([
|
|
28336
28336
|
p(ae)
|
|
28337
28337
|
], Ol.prototype, "anchoredPosition", 1);
|
|
28338
|
-
|
|
28338
|
+
wh([
|
|
28339
28339
|
p(ae)
|
|
28340
28340
|
], Ol.prototype, "sizeDelta", 2);
|
|
28341
|
-
|
|
28341
|
+
wh([
|
|
28342
28342
|
p(ae)
|
|
28343
28343
|
], Ol.prototype, "pivot", 2);
|
|
28344
|
-
|
|
28344
|
+
wh([
|
|
28345
28345
|
p(ae)
|
|
28346
28346
|
], Ol.prototype, "anchorMin", 2);
|
|
28347
|
-
|
|
28347
|
+
wh([
|
|
28348
28348
|
p(ae)
|
|
28349
28349
|
], Ol.prototype, "anchorMax", 2);
|
|
28350
28350
|
let as = Ol;
|
|
@@ -28353,7 +28353,7 @@ var FT = Object.defineProperty, ex = (o, t, e, i) => {
|
|
|
28353
28353
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
28354
28354
|
return n && FT(t, e, n), n;
|
|
28355
28355
|
};
|
|
28356
|
-
class
|
|
28356
|
+
class xh extends D {
|
|
28357
28357
|
constructor() {
|
|
28358
28358
|
super(...arguments);
|
|
28359
28359
|
r(this, "effectColor");
|
|
@@ -28362,16 +28362,16 @@ class wh extends D {
|
|
|
28362
28362
|
}
|
|
28363
28363
|
ex([
|
|
28364
28364
|
p(ce)
|
|
28365
|
-
],
|
|
28365
|
+
], xh.prototype, "effectColor");
|
|
28366
28366
|
ex([
|
|
28367
28367
|
p(ae)
|
|
28368
|
-
],
|
|
28368
|
+
], xh.prototype, "effectDistance");
|
|
28369
28369
|
var zT = Object.defineProperty, UT = Object.getOwnPropertyDescriptor, tx = (o, t, e, i) => {
|
|
28370
28370
|
for (var n = i > 1 ? void 0 : i ? UT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
28371
28371
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
28372
28372
|
return i && n && zT(t, e, n), n;
|
|
28373
28373
|
};
|
|
28374
|
-
const
|
|
28374
|
+
const dd = {
|
|
28375
28375
|
backgroundColor: new re(1, 1, 1),
|
|
28376
28376
|
backgroundOpacity: 1,
|
|
28377
28377
|
borderColor: new re(1, 1, 1),
|
|
@@ -28406,7 +28406,7 @@ const wy = (Kn = class extends En {
|
|
|
28406
28406
|
return this._alphaFactor;
|
|
28407
28407
|
}
|
|
28408
28408
|
onColorChanged() {
|
|
28409
|
-
this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(),
|
|
28409
|
+
this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(), dd.backgroundColor = this.sRGBColor, dd.backgroundOpacity = this._color.alpha * this._alphaFactor, this.applyEffects(dd, this._alphaFactor), this.uiObject.set(dd), this.markDirty());
|
|
28410
28410
|
}
|
|
28411
28411
|
// used via animations
|
|
28412
28412
|
get m_Color() {
|
|
@@ -28462,7 +28462,7 @@ const wy = (Kn = class extends En {
|
|
|
28462
28462
|
}
|
|
28463
28463
|
applyEffects(e, i = 1) {
|
|
28464
28464
|
var s;
|
|
28465
|
-
const n = (s = this.gameObject) == null ? void 0 : s.getComponent(
|
|
28465
|
+
const n = (s = this.gameObject) == null ? void 0 : s.getComponent(xh);
|
|
28466
28466
|
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));
|
|
28467
28467
|
}
|
|
28468
28468
|
async setTexture(e) {
|
|
@@ -29036,11 +29036,11 @@ class $i extends D {
|
|
|
29036
29036
|
}
|
|
29037
29037
|
onEnable() {
|
|
29038
29038
|
Gb && console.log(this.name, this), this._rectTransform = this.gameObject.getComponent(as);
|
|
29039
|
-
const e = this.gameObject.getComponentInParent(
|
|
29039
|
+
const e = this.gameObject.getComponentInParent(ih);
|
|
29040
29040
|
e && e.registerLayoutGroup(this), this._needsUpdate = !0;
|
|
29041
29041
|
}
|
|
29042
29042
|
onDisable() {
|
|
29043
|
-
const e = this.gameObject.getComponentInParent(
|
|
29043
|
+
const e = this.gameObject.getComponentInParent(ih);
|
|
29044
29044
|
e && e.unregisterLayoutGroup(this);
|
|
29045
29045
|
}
|
|
29046
29046
|
// for animation:
|
|
@@ -29402,7 +29402,7 @@ ds([
|
|
|
29402
29402
|
ds([
|
|
29403
29403
|
p()
|
|
29404
29404
|
], hn.prototype, "planeDistance", 2);
|
|
29405
|
-
let
|
|
29405
|
+
let ih = hn;
|
|
29406
29406
|
var QT = Object.defineProperty, YT = Object.getOwnPropertyDescriptor, Sy = (o, t, e, i) => {
|
|
29407
29407
|
for (var n = i > 1 ? void 0 : i ? YT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
29408
29408
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
@@ -29456,7 +29456,7 @@ class cx {
|
|
|
29456
29456
|
// TODO would probably be better to export each object instead of the entire Canvas
|
|
29457
29457
|
// so that we don't export them twice (once as regular hierarchy, once as part of Canvas export)
|
|
29458
29458
|
onExportObject(t, e, i) {
|
|
29459
|
-
const n = C.getComponent(t,
|
|
29459
|
+
const n = C.getComponent(t, ih);
|
|
29460
29460
|
if (n && n.enabled && n.renderMode === ax.WorldSpace) {
|
|
29461
29461
|
const s = new xy(), a = C.getComponent(t, as), l = C.getComponent(t, Qr), c = new Array();
|
|
29462
29462
|
if (a) {
|
|
@@ -29536,7 +29536,7 @@ class cx {
|
|
|
29536
29536
|
t.index.needsUpdate = !0;
|
|
29537
29537
|
}
|
|
29538
29538
|
}
|
|
29539
|
-
const
|
|
29539
|
+
const gc = S("debugusdz");
|
|
29540
29540
|
function KT(o, t) {
|
|
29541
29541
|
var l;
|
|
29542
29542
|
const e = [], i = C.getComponentsInChildren(o, $t), n = C.getComponentsInChildren(o, si), s = new Array(), a = new Array();
|
|
@@ -29553,10 +29553,10 @@ function KT(o, t) {
|
|
|
29553
29553
|
else
|
|
29554
29554
|
for (const c of i) {
|
|
29555
29555
|
if (!c || !c.runtimeAnimatorController || !c.enabled) continue;
|
|
29556
|
-
|
|
29556
|
+
gc && console.log(c);
|
|
29557
29557
|
const h = [];
|
|
29558
29558
|
for (const d of c.runtimeAnimatorController.enumerateActions()) {
|
|
29559
|
-
|
|
29559
|
+
gc && console.log(d);
|
|
29560
29560
|
const u = d.getClip();
|
|
29561
29561
|
h.includes(u) || h.push(u);
|
|
29562
29562
|
}
|
|
@@ -29572,13 +29572,13 @@ function KT(o, t) {
|
|
|
29572
29572
|
}
|
|
29573
29573
|
else
|
|
29574
29574
|
for (const c of n) {
|
|
29575
|
-
|
|
29575
|
+
gc && console.log(c);
|
|
29576
29576
|
const h = [];
|
|
29577
29577
|
for (const d of c.animations)
|
|
29578
29578
|
h.includes(d) || h.push(d);
|
|
29579
29579
|
e.push({ root: c.gameObject, clips: h });
|
|
29580
29580
|
}
|
|
29581
|
-
|
|
29581
|
+
gc && (e == null ? void 0 : e.length) > 0 && console.log("USDZ Animation Clips without behaviours", e);
|
|
29582
29582
|
for (const c of e)
|
|
29583
29583
|
for (const h of c.clips)
|
|
29584
29584
|
t.registerAnimation(c.root, h);
|
|
@@ -29586,7 +29586,7 @@ function KT(o, t) {
|
|
|
29586
29586
|
}
|
|
29587
29587
|
function ZT(o, t) {
|
|
29588
29588
|
const e = C.getComponentsInChildren(o, Rn), i = C.getComponentsInChildren(o, qr), n = new Array(), s = new Array();
|
|
29589
|
-
|
|
29589
|
+
gc && console.log({ audioSources: e, playAudioOnClicks: i });
|
|
29590
29590
|
for (const a of i) {
|
|
29591
29591
|
if (!a.target) continue;
|
|
29592
29592
|
const l = e.indexOf(a.target);
|
|
@@ -29696,12 +29696,12 @@ const wi = (Is = class extends D {
|
|
|
29696
29696
|
onEnable() {
|
|
29697
29697
|
var n;
|
|
29698
29698
|
const e = Q.supportsQuickLookAR(), i = Q.isiOS() || Q.isiPad();
|
|
29699
|
-
!this.button && (xi || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = qb(this.context, e), this.link.addEventListener("message", this.lastCallback)), xi && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement),
|
|
29699
|
+
!this.button && (xi || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = qb(this.context, e), this.link.addEventListener("message", this.lastCallback)), xi && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement), Gc.registerExporter(this);
|
|
29700
29700
|
}
|
|
29701
29701
|
/** @internal */
|
|
29702
29702
|
onDisable() {
|
|
29703
29703
|
var e, i, n;
|
|
29704
|
-
(e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), xi && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement),
|
|
29704
|
+
(e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), xi && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement), Gc.unregisterExporter(this);
|
|
29705
29705
|
}
|
|
29706
29706
|
/**
|
|
29707
29707
|
* Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
|
|
@@ -29780,7 +29780,7 @@ const wi = (Is = class extends D {
|
|
|
29780
29780
|
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");
|
|
29781
29781
|
const g = new Array();
|
|
29782
29782
|
this.autoExportAnimations && g.push(...KT(e, h)), f.find((R) => R.extensionName === "Audio") && this.autoExportAudioSources && g.push(...ZT(e)), c.debug = xi, c.pruneUnusedNodes = !tE;
|
|
29783
|
-
const y =
|
|
29783
|
+
const y = Jc.instance.objs.map((R) => R.batchedMesh);
|
|
29784
29784
|
c.keepObject = (R) => {
|
|
29785
29785
|
let T = !0;
|
|
29786
29786
|
const U = C.getComponent(R, ln);
|
|
@@ -29930,7 +29930,7 @@ var iE = Object.defineProperty, nE = Object.getOwnPropertyDescriptor, Cy = (o, t
|
|
|
29930
29930
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
29931
29931
|
return n && iE(t, e, n), n;
|
|
29932
29932
|
};
|
|
29933
|
-
class
|
|
29933
|
+
class Sh extends D {
|
|
29934
29934
|
constructor() {
|
|
29935
29935
|
super(...arguments);
|
|
29936
29936
|
r(this, "_fog");
|
|
@@ -29968,13 +29968,13 @@ class xh extends D {
|
|
|
29968
29968
|
}
|
|
29969
29969
|
Cy([
|
|
29970
29970
|
p()
|
|
29971
|
-
],
|
|
29971
|
+
], Sh.prototype, "near");
|
|
29972
29972
|
Cy([
|
|
29973
29973
|
p()
|
|
29974
|
-
],
|
|
29974
|
+
], Sh.prototype, "far");
|
|
29975
29975
|
Cy([
|
|
29976
29976
|
p(re)
|
|
29977
|
-
],
|
|
29977
|
+
], Sh.prototype, "color");
|
|
29978
29978
|
var sE = Object.defineProperty, Py = (o, t, e, i) => {
|
|
29979
29979
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
29980
29980
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -29990,7 +29990,7 @@ class Rl extends D {
|
|
|
29990
29990
|
r(this, "_boxHelper", null);
|
|
29991
29991
|
}
|
|
29992
29992
|
onEnable() {
|
|
29993
|
-
this.isGizmo && !
|
|
29993
|
+
this.isGizmo && !hh || (this._gizmoObject || (this.objectBounds ? this._gizmoObject = new oC(this.gameObject, this.color ?? 16776960) : (this.objectBounds = !1, this._gizmoObject = Bg(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));
|
|
29994
29994
|
}
|
|
29995
29995
|
onDisable() {
|
|
29996
29996
|
this._gizmoObject && this.gameObject.remove(this._gizmoObject);
|
|
@@ -30015,7 +30015,7 @@ var oE = Object.defineProperty, Oy = (o, t, e, i) => {
|
|
|
30015
30015
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30016
30016
|
return n && oE(t, e, n), n;
|
|
30017
30017
|
};
|
|
30018
|
-
class
|
|
30018
|
+
class Ch extends D {
|
|
30019
30019
|
constructor() {
|
|
30020
30020
|
super(...arguments);
|
|
30021
30021
|
r(this, "isGizmo", !1);
|
|
@@ -30028,7 +30028,7 @@ class Sh extends D {
|
|
|
30028
30028
|
}
|
|
30029
30029
|
/** @internal */
|
|
30030
30030
|
onEnable() {
|
|
30031
|
-
if (this.isGizmo && !
|
|
30031
|
+
if (this.isGizmo && !hh) return;
|
|
30032
30032
|
const e = this.size, i = this.divisions;
|
|
30033
30033
|
this.gridHelper || (this.gridHelper = new mg(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);
|
|
30034
30034
|
}
|
|
@@ -30039,13 +30039,13 @@ class Sh extends D {
|
|
|
30039
30039
|
}
|
|
30040
30040
|
Oy([
|
|
30041
30041
|
p()
|
|
30042
|
-
],
|
|
30042
|
+
], Ch.prototype, "isGizmo");
|
|
30043
30043
|
Oy([
|
|
30044
30044
|
p(re)
|
|
30045
|
-
],
|
|
30045
|
+
], Ch.prototype, "color0");
|
|
30046
30046
|
Oy([
|
|
30047
30047
|
p(re)
|
|
30048
|
-
],
|
|
30048
|
+
], Ch.prototype, "color1");
|
|
30049
30049
|
var rE = Object.defineProperty, ky = (o, t, e, i) => {
|
|
30050
30050
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30051
30051
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -30376,28 +30376,28 @@ us([
|
|
|
30376
30376
|
p()
|
|
30377
30377
|
], Wi.prototype, "shadowResolution", 1);
|
|
30378
30378
|
new w(0, 0, 0);
|
|
30379
|
-
var cE = Object.defineProperty,
|
|
30379
|
+
var cE = Object.defineProperty, Ph = (o, t, e, i) => {
|
|
30380
30380
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30381
30381
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30382
30382
|
return n && cE(t, e, n), n;
|
|
30383
30383
|
};
|
|
30384
30384
|
const Vp = S("debuglods"), hE = S("nolods");
|
|
30385
|
-
class
|
|
30385
|
+
class Oh {
|
|
30386
30386
|
constructor() {
|
|
30387
30387
|
r(this, "screenRelativeTransitionHeight");
|
|
30388
30388
|
r(this, "distance");
|
|
30389
30389
|
r(this, "renderers");
|
|
30390
30390
|
}
|
|
30391
30391
|
}
|
|
30392
|
-
|
|
30392
|
+
Ph([
|
|
30393
30393
|
p()
|
|
30394
|
-
],
|
|
30395
|
-
|
|
30394
|
+
], Oh.prototype, "screenRelativeTransitionHeight");
|
|
30395
|
+
Ph([
|
|
30396
30396
|
p()
|
|
30397
|
-
],
|
|
30398
|
-
|
|
30397
|
+
], Oh.prototype, "distance");
|
|
30398
|
+
Ph([
|
|
30399
30399
|
p(ln)
|
|
30400
|
-
],
|
|
30400
|
+
], Oh.prototype, "renderers");
|
|
30401
30401
|
class dE {
|
|
30402
30402
|
constructor(t) {
|
|
30403
30403
|
r(this, "model");
|
|
@@ -30482,18 +30482,18 @@ class Cf extends D {
|
|
|
30482
30482
|
}
|
|
30483
30483
|
}
|
|
30484
30484
|
}
|
|
30485
|
-
|
|
30485
|
+
Ph([
|
|
30486
30486
|
p(w)
|
|
30487
30487
|
], Cf.prototype, "localReferencePoint");
|
|
30488
|
-
|
|
30489
|
-
p(
|
|
30488
|
+
Ph([
|
|
30489
|
+
p(Oh)
|
|
30490
30490
|
], Cf.prototype, "lodModels");
|
|
30491
30491
|
var uE = Object.defineProperty, fE = (o, t, e, i) => {
|
|
30492
30492
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
30493
30493
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30494
30494
|
return n && uE(t, e, n), n;
|
|
30495
30495
|
};
|
|
30496
|
-
const
|
|
30496
|
+
const ud = S("debugnestedgltf");
|
|
30497
30497
|
class Ry extends D {
|
|
30498
30498
|
constructor() {
|
|
30499
30499
|
super(...arguments);
|
|
@@ -30518,16 +30518,16 @@ class Ry extends D {
|
|
|
30518
30518
|
async start() {
|
|
30519
30519
|
var i, n, s, a, l;
|
|
30520
30520
|
if (this._isLoadingOrDoneLoading) return;
|
|
30521
|
-
|
|
30521
|
+
ud && console.log(this, this.guid);
|
|
30522
30522
|
const e = this.gameObject.parent;
|
|
30523
30523
|
if (e) {
|
|
30524
30524
|
this._isLoadingOrDoneLoading = !0;
|
|
30525
30525
|
const c = new cs();
|
|
30526
30526
|
c.idProvider = new zt(this.hash(this.guid)), c.parent = this.loadAssetInParent !== !1 ? e : this.gameObject, this.gameObject.updateMatrix();
|
|
30527
30527
|
const h = this.gameObject.matrix;
|
|
30528
|
-
|
|
30528
|
+
ud && console.log("Load nested:", ((i = this.filePath) == null ? void 0 : i.url) ?? this.filePath, this.gameObject.position);
|
|
30529
30529
|
const d = await ((s = (n = this.filePath) == null ? void 0 : n.instantiate) == null ? void 0 : s.call(this.filePath, c));
|
|
30530
|
-
|
|
30530
|
+
ud && console.log("Nested loaded:", ((a = this.filePath) == null ? void 0 : a.url) ?? this.filePath, d), d && this.loadAssetInParent !== !1 && (d.matrixAutoUpdate = !1, d.matrix.identity(), d.applyMatrix4(h), d.matrixAutoUpdate = !0, d.layers.disableAll(), d.layers.set(this.layer), this.dispatchEvent(new CustomEvent("loaded", { detail: { instance: d, assetReference: this.filePath } }))), ud && console.log("Nested loading done:", ((l = this.filePath) == null ? void 0 : l.url) ?? this.filePath, d);
|
|
30531
30531
|
}
|
|
30532
30532
|
}
|
|
30533
30533
|
/** @internal */
|
|
@@ -30702,7 +30702,7 @@ tr([
|
|
|
30702
30702
|
tr([
|
|
30703
30703
|
p()
|
|
30704
30704
|
], Ii.prototype, "weightedMode");
|
|
30705
|
-
const ux = class
|
|
30705
|
+
const ux = class yc {
|
|
30706
30706
|
constructor() {
|
|
30707
30707
|
r(this, "keys", []);
|
|
30708
30708
|
}
|
|
@@ -30710,14 +30710,14 @@ const ux = class gc {
|
|
|
30710
30710
|
* Creates an animation curve that goes from the `from` value to the `to` value over the given `duration`.
|
|
30711
30711
|
*/
|
|
30712
30712
|
static linearFromTo(t, e, i) {
|
|
30713
|
-
const n = new
|
|
30713
|
+
const n = new yc(), s = new Ii();
|
|
30714
30714
|
s.time = 0, s.value = t;
|
|
30715
30715
|
const a = new Ii();
|
|
30716
30716
|
return a.time = i, a.value = e, n.keys.push(s, a), n;
|
|
30717
30717
|
}
|
|
30718
30718
|
/** Creates an animation curve with just one keyframe */
|
|
30719
30719
|
static constant(t) {
|
|
30720
|
-
const e = new
|
|
30720
|
+
const e = new yc(), i = new Ii();
|
|
30721
30721
|
return i.time = 0, i.value = t, e.keys.push(i), e;
|
|
30722
30722
|
}
|
|
30723
30723
|
/**
|
|
@@ -30725,7 +30725,7 @@ const ux = class gc {
|
|
|
30725
30725
|
*/
|
|
30726
30726
|
clone() {
|
|
30727
30727
|
var e;
|
|
30728
|
-
const t = new
|
|
30728
|
+
const t = new yc();
|
|
30729
30729
|
return t.keys = ((e = this.keys) == null ? void 0 : e.map((i) => {
|
|
30730
30730
|
const n = new Ii();
|
|
30731
30731
|
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;
|
|
@@ -30751,7 +30751,7 @@ const ux = class gc {
|
|
|
30751
30751
|
if (e + 1 < this.keys.length) {
|
|
30752
30752
|
const s = this.keys[e + 1];
|
|
30753
30753
|
if (s.time < t) continue;
|
|
30754
|
-
return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value :
|
|
30754
|
+
return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value : yc.interpolateValue(t, i, s);
|
|
30755
30755
|
} else
|
|
30756
30756
|
return i.value;
|
|
30757
30757
|
}
|
|
@@ -30771,7 +30771,7 @@ var _E = Object.defineProperty, P = (o, t, e, i) => {
|
|
|
30771
30771
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30772
30772
|
return n && _E(t, e, n), n;
|
|
30773
30773
|
};
|
|
30774
|
-
const
|
|
30774
|
+
const fd = S("debugparticles");
|
|
30775
30775
|
var ks = /* @__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))(ks || {});
|
|
30776
30776
|
class El {
|
|
30777
30777
|
constructor() {
|
|
@@ -30812,8 +30812,8 @@ P([
|
|
|
30812
30812
|
P([
|
|
30813
30813
|
p()
|
|
30814
30814
|
], El.prototype, "colorKeys");
|
|
30815
|
-
var
|
|
30816
|
-
const ro = class
|
|
30815
|
+
var nh = /* @__PURE__ */ ((o) => (o[o.Local = 0] = "Local", o[o.World = 1] = "World", o[o.Custom = 2] = "Custom", o))(nh || {}), eg = /* @__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))(eg || {});
|
|
30816
|
+
const ro = class _c {
|
|
30817
30817
|
constructor() {
|
|
30818
30818
|
r(this, "mode", "Constant");
|
|
30819
30819
|
r(this, "constant");
|
|
@@ -30825,15 +30825,15 @@ const ro = class yc {
|
|
|
30825
30825
|
r(this, "curveMultiplier");
|
|
30826
30826
|
}
|
|
30827
30827
|
static constant(t) {
|
|
30828
|
-
const e = new
|
|
30828
|
+
const e = new _c();
|
|
30829
30829
|
return e.setConstant(t), e;
|
|
30830
30830
|
}
|
|
30831
30831
|
static betweenTwoConstants(t, e) {
|
|
30832
|
-
const i = new
|
|
30832
|
+
const i = new _c();
|
|
30833
30833
|
return i.setMinMaxConstant(t, e), i;
|
|
30834
30834
|
}
|
|
30835
30835
|
static curve(t, e = 1) {
|
|
30836
|
-
const i = new
|
|
30836
|
+
const i = new _c();
|
|
30837
30837
|
return i.setCurve(t, e), i;
|
|
30838
30838
|
}
|
|
30839
30839
|
setConstant(t) {
|
|
@@ -30847,7 +30847,7 @@ const ro = class yc {
|
|
|
30847
30847
|
}
|
|
30848
30848
|
clone() {
|
|
30849
30849
|
var e, i, n;
|
|
30850
|
-
const t = new
|
|
30850
|
+
const t = new _c();
|
|
30851
30851
|
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;
|
|
30852
30852
|
}
|
|
30853
30853
|
evaluate(t, e) {
|
|
@@ -31253,7 +31253,7 @@ const at = (Pn = class {
|
|
|
31253
31253
|
r(this, "_dir", new w());
|
|
31254
31254
|
r(this, "_loopTime", 0);
|
|
31255
31255
|
r(this, "_loopDirection", 1);
|
|
31256
|
-
|
|
31256
|
+
fd && console.log(this);
|
|
31257
31257
|
}
|
|
31258
31258
|
// Emittershape start
|
|
31259
31259
|
get type() {
|
|
@@ -31288,7 +31288,7 @@ const at = (Pn = class {
|
|
|
31288
31288
|
if (i && (n *= this.system.worldScale.x), this.enabled) {
|
|
31289
31289
|
switch (this.shapeType) {
|
|
31290
31290
|
case 5:
|
|
31291
|
-
|
|
31291
|
+
fd && H.DrawWireBox(this.position, this.scale, 14540253, 1), this._vector.x = Math.random() * this.scale.x - this.scale.x / 2, this._vector.y = Math.random() * this.scale.y - this.scale.y / 2, this._vector.z = Math.random() * this.scale.z - this.scale.z / 2, this._vector.add(e);
|
|
31292
31292
|
break;
|
|
31293
31293
|
case 4:
|
|
31294
31294
|
this.randomConePoint(this.position, this.angle, n, this.radiusThickness, this.arc, this.arcMode, this._vector);
|
|
@@ -31335,7 +31335,7 @@ const at = (Pn = class {
|
|
|
31335
31335
|
}
|
|
31336
31336
|
this.randomizePosition(this._vector, this.randomPositionAmount);
|
|
31337
31337
|
}
|
|
31338
|
-
this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)),
|
|
31338
|
+
this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)), fd && H.DrawSphere(this._vector, 0.03, 16711680, 0.5, !0);
|
|
31339
31339
|
}
|
|
31340
31340
|
getDirection(t, e) {
|
|
31341
31341
|
var i;
|
|
@@ -31382,7 +31382,7 @@ const at = (Pn = class {
|
|
|
31382
31382
|
this._dir.set(0, 0, 1);
|
|
31383
31383
|
break;
|
|
31384
31384
|
}
|
|
31385
|
-
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),
|
|
31385
|
+
return this._space === 1 && this._dir.applyQuaternion(this.system.worldQuaternion), this.applyRotation(this._dir), this._dir.normalize(), this.spherizeDirection(this._dir, this.sphericalDirectionAmount), this.randomizeDirection(this._dir, this.randomDirectionAmount), fd && (H.DrawSphere(e, 0.01, 8925952, 0.5, !0), H.DrawDirection(e, this._dir, 8925952, 0.5, !0)), this._dir;
|
|
31386
31386
|
}
|
|
31387
31387
|
randomizePosition(t, e) {
|
|
31388
31388
|
if (e <= 0) return;
|
|
@@ -32056,7 +32056,7 @@ P([
|
|
|
32056
32056
|
P([
|
|
32057
32057
|
p()
|
|
32058
32058
|
], Pt.prototype, "space");
|
|
32059
|
-
const
|
|
32059
|
+
const kh = class px {
|
|
32060
32060
|
constructor() {
|
|
32061
32061
|
r(this, "enabled");
|
|
32062
32062
|
r(this, "curve");
|
|
@@ -32103,17 +32103,17 @@ const Oh = class px {
|
|
|
32103
32103
|
};
|
|
32104
32104
|
P([
|
|
32105
32105
|
p()
|
|
32106
|
-
],
|
|
32106
|
+
], kh.prototype, "enabled");
|
|
32107
32107
|
P([
|
|
32108
32108
|
p(K)
|
|
32109
|
-
],
|
|
32109
|
+
], kh.prototype, "curve");
|
|
32110
32110
|
P([
|
|
32111
32111
|
p()
|
|
32112
|
-
],
|
|
32112
|
+
], kh.prototype, "curveMultiplier");
|
|
32113
32113
|
P([
|
|
32114
32114
|
p()
|
|
32115
|
-
],
|
|
32116
|
-
let mx =
|
|
32115
|
+
], kh.prototype, "mode");
|
|
32116
|
+
let mx = kh;
|
|
32117
32117
|
class Vi {
|
|
32118
32118
|
constructor() {
|
|
32119
32119
|
r(this, "enabled");
|
|
@@ -32166,7 +32166,7 @@ P([
|
|
|
32166
32166
|
P([
|
|
32167
32167
|
p()
|
|
32168
32168
|
], Vi.prototype, "zMultiplier");
|
|
32169
|
-
class
|
|
32169
|
+
class Mh {
|
|
32170
32170
|
constructor() {
|
|
32171
32171
|
r(this, "enabled");
|
|
32172
32172
|
r(this, "range");
|
|
@@ -32179,13 +32179,13 @@ class kh {
|
|
|
32179
32179
|
}
|
|
32180
32180
|
P([
|
|
32181
32181
|
p()
|
|
32182
|
-
],
|
|
32182
|
+
], Mh.prototype, "enabled");
|
|
32183
32183
|
P([
|
|
32184
32184
|
p(ae)
|
|
32185
|
-
],
|
|
32185
|
+
], Mh.prototype, "range");
|
|
32186
32186
|
P([
|
|
32187
32187
|
p(Al)
|
|
32188
|
-
],
|
|
32188
|
+
], Mh.prototype, "color");
|
|
32189
32189
|
new w(1, 1, 1);
|
|
32190
32190
|
new w(0, 0, 1);
|
|
32191
32191
|
class gx {
|
|
@@ -32333,7 +32333,7 @@ Ge([
|
|
|
32333
32333
|
Ge([
|
|
32334
32334
|
p()
|
|
32335
32335
|
], Ln.prototype, "lengthScale");
|
|
32336
|
-
class
|
|
32336
|
+
class pd {
|
|
32337
32337
|
constructor(t, e = 1) {
|
|
32338
32338
|
r(this, "_curve");
|
|
32339
32339
|
r(this, "_factor");
|
|
@@ -32512,7 +32512,7 @@ class RE extends la {
|
|
|
32512
32512
|
}
|
|
32513
32513
|
}
|
|
32514
32514
|
}
|
|
32515
|
-
const
|
|
32515
|
+
const md = Symbol("startVelocity"), Zb = Symbol("gravityModifier"), qp = Symbol("gravitySpeed"), gd = Symbol("velocity lerp factor"), sg = new w();
|
|
32516
32516
|
class TE extends la {
|
|
32517
32517
|
constructor() {
|
|
32518
32518
|
super(...arguments);
|
|
@@ -32524,26 +32524,26 @@ class TE extends la {
|
|
|
32524
32524
|
const i = this.system.main.simulationSpeed;
|
|
32525
32525
|
e.startSpeed = this.system.main.startSpeed.evaluate(Math.random(), Math.random());
|
|
32526
32526
|
const n = this.system.shape.getDirection(e, e.position);
|
|
32527
|
-
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[
|
|
32527
|
+
e.velocity.x = n.x * e.startSpeed, e.velocity.y = n.y * e.startSpeed, e.velocity.z = n.z * e.startSpeed, (a = this.system.inheritVelocity) != null && a.enabled && this.system.inheritVelocity.applyInitial(e.velocity), e[md] ? e[md].copy(e.velocity) : e[md] = e.velocity.clone();
|
|
32528
32528
|
const s = this.system.main.gravityModifier.evaluate(Math.random(), Math.random());
|
|
32529
|
-
e[Zb] = s * i, e[qp] = s * i * 0.5, e[
|
|
32529
|
+
e[Zb] = s * i, e[qp] = s * i * 0.5, e[gd] = Math.random(), (l = this.system.velocityOverLifetime) == null || l.init(e), this._gravityDirection.set(0, -1, 0), this.system.main.simulationSpace === nh.Local && this._gravityDirection.applyQuaternion(this.system.worldQuaternionInverted).normalize();
|
|
32530
32530
|
}
|
|
32531
32531
|
update(e, i) {
|
|
32532
32532
|
var f;
|
|
32533
|
-
const n = e[
|
|
32533
|
+
const n = e[md], s = e[Zb];
|
|
32534
32534
|
if (s !== 0) {
|
|
32535
32535
|
const m = s * e[qp];
|
|
32536
32536
|
sg.copy(this._gravityDirection).multiplyScalar(m), e[qp] += i * 0.05, n.add(sg);
|
|
32537
32537
|
}
|
|
32538
32538
|
e.velocity.copy(n);
|
|
32539
32539
|
const a = e.age / e.life;
|
|
32540
|
-
(f = this.system.inheritVelocity) != null && f.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[
|
|
32540
|
+
(f = this.system.inheritVelocity) != null && f.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[gd]);
|
|
32541
32541
|
const l = this.system.noise;
|
|
32542
32542
|
l.enabled && l.apply(0, e.position, e.velocity, i, e.age, e.life);
|
|
32543
32543
|
const c = this.system.sizeBySpeed;
|
|
32544
|
-
c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[
|
|
32544
|
+
c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[gd], e.size));
|
|
32545
32545
|
const h = this.system.colorBySpeed;
|
|
32546
|
-
h != null && h.enabled && h.evaluate(e.velocity, e[
|
|
32546
|
+
h != null && h.enabled && h.evaluate(e.velocity, e[gd], e.color);
|
|
32547
32547
|
const d = this.system.velocityOverLifetime;
|
|
32548
32548
|
d.enabled && d.apply(e, 0, e.position, e.velocity, i, e.age, e.life);
|
|
32549
32549
|
const u = this.system.limitVelocityOverLifetime;
|
|
@@ -32617,16 +32617,16 @@ class AE {
|
|
|
32617
32617
|
return this.system.shape;
|
|
32618
32618
|
}
|
|
32619
32619
|
get startLife() {
|
|
32620
|
-
return new
|
|
32620
|
+
return new pd(this.system.main.startLifetime);
|
|
32621
32621
|
}
|
|
32622
32622
|
get startSpeed() {
|
|
32623
|
-
return new
|
|
32623
|
+
return new pd(this.system.main.startSpeed);
|
|
32624
32624
|
}
|
|
32625
32625
|
get startRotation() {
|
|
32626
|
-
return new
|
|
32626
|
+
return new pd(this.system.main.startRotation);
|
|
32627
32627
|
}
|
|
32628
32628
|
get startSize() {
|
|
32629
|
-
return new
|
|
32629
|
+
return new pd(this.system.main.startSize);
|
|
32630
32630
|
}
|
|
32631
32631
|
/** start length is for trails */
|
|
32632
32632
|
get startColor() {
|
|
@@ -32698,7 +32698,7 @@ class AE {
|
|
|
32698
32698
|
return this.system.renderer.transparent;
|
|
32699
32699
|
}
|
|
32700
32700
|
get worldSpace() {
|
|
32701
|
-
return this.system.main.simulationSpace ===
|
|
32701
|
+
return this.system.main.simulationSpace === nh.World;
|
|
32702
32702
|
}
|
|
32703
32703
|
}
|
|
32704
32704
|
class IE {
|
|
@@ -32822,10 +32822,10 @@ const Ht = class Ad extends D {
|
|
|
32822
32822
|
return this._container;
|
|
32823
32823
|
}
|
|
32824
32824
|
get worldspace() {
|
|
32825
|
-
return this.main.simulationSpace ===
|
|
32825
|
+
return this.main.simulationSpace === nh.World;
|
|
32826
32826
|
}
|
|
32827
32827
|
get localspace() {
|
|
32828
|
-
return this.main.simulationSpace ===
|
|
32828
|
+
return this.main.simulationSpace === nh.Local;
|
|
32829
32829
|
}
|
|
32830
32830
|
get worldQuaternion() {
|
|
32831
32831
|
return this.__worldQuaternion;
|
|
@@ -33039,7 +33039,7 @@ Ge([
|
|
|
33039
33039
|
p(mx)
|
|
33040
33040
|
], Ht.prototype, "inheritVelocity");
|
|
33041
33041
|
Ge([
|
|
33042
|
-
p(
|
|
33042
|
+
p(Mh)
|
|
33043
33043
|
], Ht.prototype, "colorBySpeed");
|
|
33044
33044
|
Ge([
|
|
33045
33045
|
p(ci)
|
|
@@ -33085,7 +33085,7 @@ function yx(o, t) {
|
|
|
33085
33085
|
}
|
|
33086
33086
|
return t;
|
|
33087
33087
|
}
|
|
33088
|
-
class
|
|
33088
|
+
class sh extends D {
|
|
33089
33089
|
constructor() {
|
|
33090
33090
|
super(...arguments);
|
|
33091
33091
|
r(this, "_didAssignPlayerColor", !1);
|
|
@@ -33108,7 +33108,7 @@ class nh extends D {
|
|
|
33108
33108
|
;
|
|
33109
33109
|
}
|
|
33110
33110
|
assignUserColor(e) {
|
|
33111
|
-
const i =
|
|
33111
|
+
const i = sh.hashCode(e), n = sh.colorFromHashCode(i);
|
|
33112
33112
|
if (this.gameObject.type === "Mesh") {
|
|
33113
33113
|
const s = this.gameObject;
|
|
33114
33114
|
this.assignColor(n, e, s);
|
|
@@ -33134,7 +33134,7 @@ class nh extends D {
|
|
|
33134
33134
|
return new re(i / 255, n / 255, s / 255);
|
|
33135
33135
|
}
|
|
33136
33136
|
}
|
|
33137
|
-
const
|
|
33137
|
+
const bc = S("debugpost");
|
|
33138
33138
|
let rg = null;
|
|
33139
33139
|
function LE(o) {
|
|
33140
33140
|
rg = o;
|
|
@@ -33153,7 +33153,7 @@ function DE(o) {
|
|
|
33153
33153
|
let t = _x(o);
|
|
33154
33154
|
if (!t)
|
|
33155
33155
|
if (rg) {
|
|
33156
|
-
|
|
33156
|
+
bc && console.warn("Adding postprocessing manager to the scene.");
|
|
33157
33157
|
const e = o.scene;
|
|
33158
33158
|
t = sn(e, rg);
|
|
33159
33159
|
} else
|
|
@@ -33182,10 +33182,10 @@ const gt = {
|
|
|
33182
33182
|
};
|
|
33183
33183
|
let tt = null;
|
|
33184
33184
|
function jE(o) {
|
|
33185
|
-
|
|
33185
|
+
bc === "verbose" && console.debug("Before ordering effects", [...o]), tt || (tt = /* @__PURE__ */ new Map(), tt.set(j.POSTPROCESSING.MODULE.NormalPass, gt.NormalPass), tt.set(j.POSTPROCESSING.MODULE.DepthDownsamplingPass, gt.DepthDownsamplingPass), tt.set(j.POSTPROCESSING.MODULE.SMAAEffect, gt.SMAA), tt.set(j.POSTPROCESSING.MODULE.SSAOEffect, gt.SSAO), tt.set(j.POSTPROCESSING_AO.MODULE.N8AOPostPass, gt.SSAO), tt.set(j.POSTPROCESSING_AO.MODULE.N8AOPass, gt.SSAO), tt.set(j.POSTPROCESSING.MODULE.TiltShiftEffect, gt.TiltShift), tt.set(j.POSTPROCESSING.MODULE.DepthOfFieldEffect, gt.DepthOfField), tt.set(j.POSTPROCESSING.MODULE.ChromaticAberrationEffect, gt.ChromaticAberration), tt.set(j.POSTPROCESSING.MODULE.BloomEffect, gt.Bloom), tt.set(j.POSTPROCESSING.MODULE.SelectiveBloomEffect, gt.Bloom), tt.set(j.POSTPROCESSING.MODULE.VignetteEffect, gt.Vignette), tt.set(j.POSTPROCESSING.MODULE.PixelationEffect, gt.Pixelation), tt.set(j.POSTPROCESSING.MODULE.ToneMappingEffect, gt.ToneMapping), tt.set(j.POSTPROCESSING.MODULE.HueSaturationEffect, gt.HueSaturation), tt.set(j.POSTPROCESSING.MODULE.BrightnessContrastEffect, gt.BrightnessContrast)), o.sort((t, e) => {
|
|
33186
33186
|
const i = typeof t.priority == "number" ? t.priority : tt.get(t.effect.constructor) ?? Number.NEGATIVE_INFINITY, n = typeof e.priority == "number" ? e.priority : tt.get(e.effect.constructor) ?? Number.NEGATIVE_INFINITY;
|
|
33187
|
-
return i === Number.NEGATIVE_INFINITY ? (
|
|
33188
|
-
}),
|
|
33187
|
+
return i === Number.NEGATIVE_INFINITY ? (bc && console.warn("Unknown effect found: ", t.constructor.name, t), 1) : n === Number.NEGATIVE_INFINITY ? (bc && console.warn("Unknown effect found: ", e.constructor.name, e), -1) : i - n;
|
|
33188
|
+
}), bc === "verbose" && console.debug("After ordering effects", [...o]);
|
|
33189
33189
|
}
|
|
33190
33190
|
var BE = Object.defineProperty, FE = Object.getOwnPropertyDescriptor, bx = (o, t, e, i) => {
|
|
33191
33191
|
for (var n = FE(t, e), s = o.length - 1, a; s >= 0; s--)
|
|
@@ -33515,7 +33515,7 @@ KE([
|
|
|
33515
33515
|
p(N)
|
|
33516
33516
|
], Tf.prototype, "intensity");
|
|
33517
33517
|
Dn("ChromaticAberration", Tf);
|
|
33518
|
-
var
|
|
33518
|
+
var vc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.Neutral = 1] = "Neutral", o[o.ACES = 2] = "ACES", o[o.AgX = 3] = "AgX", o[o.KhronosNeutral = 4] = "KhronosNeutral", o))(vc || {});
|
|
33519
33519
|
const t0 = /* @__PURE__ */ new Map();
|
|
33520
33520
|
function Qp(o) {
|
|
33521
33521
|
switch (o) {
|
|
@@ -33583,7 +33583,7 @@ class Yr extends ft {
|
|
|
33583
33583
|
}
|
|
33584
33584
|
/** Set the tonemapping mode to e.g. "agx" */
|
|
33585
33585
|
setMode(e) {
|
|
33586
|
-
const i =
|
|
33586
|
+
const i = vc[e];
|
|
33587
33587
|
return i === void 0 ? (console.error("[PostProcessing] Invalid ToneMapping mode", e), this) : (this.mode.value = i, this);
|
|
33588
33588
|
}
|
|
33589
33589
|
get isToneMapping() {
|
|
@@ -33610,8 +33610,8 @@ class Yr extends ft {
|
|
|
33610
33610
|
const a = Qp(s);
|
|
33611
33611
|
i.mode = Id(a);
|
|
33612
33612
|
}
|
|
33613
|
-
i.name = "ToneMapping (" +
|
|
33614
|
-
}, Yp && console.log("[PostProcessing] Use ToneMapping",
|
|
33613
|
+
i.name = "ToneMapping (" + vc[s] + ")", Yp && console.log("[PostProcessing] ToneMapping mode changed to", vc[s], e, i.mode);
|
|
33614
|
+
}, Yp && console.log("[PostProcessing] Use ToneMapping", vc[this.mode.value], e, i.mode, "renderer.tonemapping: " + this.context.renderer.toneMapping), i;
|
|
33615
33615
|
}
|
|
33616
33616
|
onBeforeRender() {
|
|
33617
33617
|
var e;
|
|
@@ -33695,7 +33695,7 @@ class ps extends ft {
|
|
|
33695
33695
|
r(this, "focalLength", new N(0.2));
|
|
33696
33696
|
r(this, "aperture", new N(20));
|
|
33697
33697
|
r(this, "gaussianMaxRadius", new N());
|
|
33698
|
-
r(this, "resolutionScale", new N(1
|
|
33698
|
+
r(this, "resolutionScale", new N(1 / window.devicePixelRatio));
|
|
33699
33699
|
r(this, "bokehScale", new N());
|
|
33700
33700
|
}
|
|
33701
33701
|
get typeName() {
|
|
@@ -33789,7 +33789,7 @@ sA([
|
|
|
33789
33789
|
p(N)
|
|
33790
33790
|
], Af.prototype, "granularity");
|
|
33791
33791
|
Dn("PixelationEffect", Af);
|
|
33792
|
-
var oA = Object.defineProperty,
|
|
33792
|
+
var oA = Object.defineProperty, Rh = (o, t, e, i) => {
|
|
33793
33793
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33794
33794
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33795
33795
|
return n && oA(t, e, n), n;
|
|
@@ -33844,19 +33844,19 @@ class sr extends ft {
|
|
|
33844
33844
|
return a.push(i), a.push(n), a.push(s), a;
|
|
33845
33845
|
}
|
|
33846
33846
|
}
|
|
33847
|
-
|
|
33847
|
+
Rh([
|
|
33848
33848
|
p(N)
|
|
33849
33849
|
], sr.prototype, "intensity");
|
|
33850
|
-
|
|
33850
|
+
Rh([
|
|
33851
33851
|
p(N)
|
|
33852
33852
|
], sr.prototype, "falloff");
|
|
33853
|
-
|
|
33853
|
+
Rh([
|
|
33854
33854
|
p(N)
|
|
33855
33855
|
], sr.prototype, "samples");
|
|
33856
|
-
|
|
33856
|
+
Rh([
|
|
33857
33857
|
p(N)
|
|
33858
33858
|
], sr.prototype, "color");
|
|
33859
|
-
|
|
33859
|
+
Rh([
|
|
33860
33860
|
p(N)
|
|
33861
33861
|
], sr.prototype, "luminanceInfluence");
|
|
33862
33862
|
Dn("ScreenSpaceAmbientOcclusion", sr);
|
|
@@ -34378,7 +34378,7 @@ var fA = Object.defineProperty, Sx = (o, t, e, i) => {
|
|
|
34378
34378
|
return n && fA(t, e, n), n;
|
|
34379
34379
|
};
|
|
34380
34380
|
const mr = S("debugpost");
|
|
34381
|
-
class
|
|
34381
|
+
class Th extends D {
|
|
34382
34382
|
constructor() {
|
|
34383
34383
|
super(...arguments);
|
|
34384
34384
|
r(this, "sharedProfile");
|
|
@@ -34526,15 +34526,15 @@ class Rh extends D {
|
|
|
34526
34526
|
c.active = e.value, this.scheduleRecreate();
|
|
34527
34527
|
return;
|
|
34528
34528
|
}
|
|
34529
|
-
if (!
|
|
34529
|
+
if (!yd.has(a)) {
|
|
34530
34530
|
const h = new Array();
|
|
34531
|
-
|
|
34531
|
+
yd.set(a, h);
|
|
34532
34532
|
const d = Object.keys(c);
|
|
34533
34533
|
for (const u of d)
|
|
34534
34534
|
c[u] instanceof N && h.push(u);
|
|
34535
34535
|
}
|
|
34536
|
-
if (
|
|
34537
|
-
const h = l.toLowerCase(), d =
|
|
34536
|
+
if (yd.has(a)) {
|
|
34537
|
+
const h = l.toLowerCase(), d = yd.get(a);
|
|
34538
34538
|
for (const u of d)
|
|
34539
34539
|
if (u.toLowerCase() === h) {
|
|
34540
34540
|
const f = c[u];
|
|
@@ -34559,12 +34559,12 @@ class Rh extends D {
|
|
|
34559
34559
|
}
|
|
34560
34560
|
Sx([
|
|
34561
34561
|
yl(Iy)
|
|
34562
|
-
],
|
|
34562
|
+
], Th.prototype, "sharedProfile");
|
|
34563
34563
|
Sx([
|
|
34564
34564
|
yl()
|
|
34565
|
-
],
|
|
34566
|
-
const
|
|
34567
|
-
LE(
|
|
34565
|
+
], Th.prototype, "multisampling");
|
|
34566
|
+
const yd = /* @__PURE__ */ new Map();
|
|
34567
|
+
LE(Th);
|
|
34568
34568
|
async function By(o) {
|
|
34569
34569
|
const { NeedleEngineWebComponent: t } = await Promise.resolve().then(() => NI);
|
|
34570
34570
|
t.observedAttributes.includes(o) || t.observedAttributes.push(o);
|
|
@@ -35757,7 +35757,7 @@ class CA extends is {
|
|
|
35757
35757
|
this.offset = this.offset.set(0, 0), this.zoom = 1, this.needsUpdate = !0;
|
|
35758
35758
|
}
|
|
35759
35759
|
}
|
|
35760
|
-
var PA = Object.defineProperty, OA = Object.getOwnPropertyDescriptor,
|
|
35760
|
+
var PA = Object.defineProperty, OA = Object.getOwnPropertyDescriptor, Eh = (o, t, e, i) => {
|
|
35761
35761
|
for (var n = i > 1 ? void 0 : i ? OA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
35762
35762
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
35763
35763
|
return i && n && PA(t, e, n), n;
|
|
@@ -36041,19 +36041,19 @@ class ua extends D {
|
|
|
36041
36041
|
// private openWindowToSelectCamera(){
|
|
36042
36042
|
// }
|
|
36043
36043
|
}
|
|
36044
|
-
|
|
36044
|
+
Eh([
|
|
36045
36045
|
p()
|
|
36046
36046
|
], ua.prototype, "allowStartOnClick", 2);
|
|
36047
|
-
|
|
36047
|
+
Eh([
|
|
36048
36048
|
p()
|
|
36049
36049
|
], ua.prototype, "autoConnect", 2);
|
|
36050
|
-
|
|
36050
|
+
Eh([
|
|
36051
36051
|
p(xt)
|
|
36052
36052
|
], ua.prototype, "videoPlayer", 1);
|
|
36053
|
-
|
|
36053
|
+
Eh([
|
|
36054
36054
|
p()
|
|
36055
36055
|
], ua.prototype, "device", 2);
|
|
36056
|
-
|
|
36056
|
+
Eh([
|
|
36057
36057
|
p()
|
|
36058
36058
|
], ua.prototype, "deviceName", 2);
|
|
36059
36059
|
var kA = Object.defineProperty, Mx = (o, t, e, i) => {
|
|
@@ -36160,7 +36160,7 @@ Mx([
|
|
|
36160
36160
|
Mx([
|
|
36161
36161
|
p(ce)
|
|
36162
36162
|
], Lf.prototype, "shadowColor");
|
|
36163
|
-
var MA = Object.defineProperty,
|
|
36163
|
+
var MA = Object.defineProperty, Ah = (o, t, e, i) => {
|
|
36164
36164
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36165
36165
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36166
36166
|
return n && MA(t, e, n), n;
|
|
@@ -36360,20 +36360,20 @@ const Kr = class extends D {
|
|
|
36360
36360
|
this.context.domElement.removeEventListener("dragover", this.onDragOverEvent), this.context.domElement.removeEventListener("drop", this.onDrop);
|
|
36361
36361
|
}
|
|
36362
36362
|
};
|
|
36363
|
-
|
|
36363
|
+
Ah([
|
|
36364
36364
|
Xw(Kr.prototype.urlChangedSyncField),
|
|
36365
36365
|
p(URL)
|
|
36366
36366
|
], Kr.prototype, "url");
|
|
36367
|
-
|
|
36367
|
+
Ah([
|
|
36368
36368
|
p()
|
|
36369
36369
|
], Kr.prototype, "allowDrop");
|
|
36370
|
-
|
|
36370
|
+
Ah([
|
|
36371
36371
|
p()
|
|
36372
36372
|
], Kr.prototype, "background");
|
|
36373
|
-
|
|
36373
|
+
Ah([
|
|
36374
36374
|
p()
|
|
36375
36375
|
], Kr.prototype, "environment");
|
|
36376
|
-
|
|
36376
|
+
Ah([
|
|
36377
36377
|
p()
|
|
36378
36378
|
], Kr.prototype, "allowNetworking");
|
|
36379
36379
|
let Fy = Kr;
|
|
@@ -36396,13 +36396,13 @@ var AA = Object.defineProperty, Df = (o, t, e, i) => {
|
|
|
36396
36396
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36397
36397
|
return n && AA(t, e, n), n;
|
|
36398
36398
|
}, Ar;
|
|
36399
|
-
const
|
|
36399
|
+
const Ih = (Ar = class extends D {
|
|
36400
36400
|
constructor() {
|
|
36401
36401
|
super(...arguments);
|
|
36402
36402
|
r(this, "target", null);
|
|
36403
36403
|
r(this, "followFactor", 0.1);
|
|
36404
36404
|
r(this, "rotateFactor", 0.1);
|
|
36405
|
-
r(this, "positionAxes",
|
|
36405
|
+
r(this, "positionAxes", fc.All);
|
|
36406
36406
|
r(this, "flipForward", !1);
|
|
36407
36407
|
r(this, "_firstUpdate", !0);
|
|
36408
36408
|
}
|
|
@@ -36416,7 +36416,7 @@ const Ah = (Ar = class extends D {
|
|
|
36416
36416
|
if (!(!this.target || this.target === this.gameObject)) {
|
|
36417
36417
|
if (this.followFactor > 0) {
|
|
36418
36418
|
const i = te(this.target), n = this._firstUpdate || e ? 1 : $.clamp01(this.context.time.deltaTime * this.followFactor), s = this.worldPosition;
|
|
36419
|
-
this.positionAxes &
|
|
36419
|
+
this.positionAxes & fc.X && (s.x = $.lerp(s.x, i.x, n)), this.positionAxes & fc.Y && (s.y = $.lerp(s.y, i.y, n)), this.positionAxes & fc.Z && (s.z = $.lerp(s.z, i.z, n)), this.worldPosition = s;
|
|
36420
36420
|
}
|
|
36421
36421
|
if (this.rotateFactor > 0) {
|
|
36422
36422
|
const i = Oe(this.target);
|
|
@@ -36430,23 +36430,23 @@ const Ah = (Ar = class extends D {
|
|
|
36430
36430
|
}, r(Ar, "_invertForward", new W().setFromAxisAngle(new w(0, 1, 0), Math.PI)), Ar);
|
|
36431
36431
|
Df([
|
|
36432
36432
|
p(L)
|
|
36433
|
-
],
|
|
36433
|
+
], Ih.prototype, "target");
|
|
36434
36434
|
Df([
|
|
36435
36435
|
p()
|
|
36436
|
-
],
|
|
36436
|
+
], Ih.prototype, "followFactor");
|
|
36437
36437
|
Df([
|
|
36438
36438
|
p()
|
|
36439
|
-
],
|
|
36439
|
+
], Ih.prototype, "rotateFactor");
|
|
36440
36440
|
Df([
|
|
36441
36441
|
p()
|
|
36442
|
-
],
|
|
36443
|
-
let zy =
|
|
36444
|
-
var IA = Object.defineProperty,
|
|
36442
|
+
], Ih.prototype, "positionAxes");
|
|
36443
|
+
let zy = Ih;
|
|
36444
|
+
var IA = Object.defineProperty, Lh = (o, t, e, i) => {
|
|
36445
36445
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36446
36446
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36447
36447
|
return n && IA(t, e, n), n;
|
|
36448
36448
|
};
|
|
36449
|
-
const
|
|
36449
|
+
const Ic = S("debugspatialtrigger"), o0 = new Wo(), r0 = new Wo();
|
|
36450
36450
|
function LA(o, t) {
|
|
36451
36451
|
return o0.mask = o, r0.mask = t, o0.test(r0);
|
|
36452
36452
|
}
|
|
@@ -36467,7 +36467,7 @@ class Hs extends D {
|
|
|
36467
36467
|
* @internal
|
|
36468
36468
|
*/
|
|
36469
36469
|
start() {
|
|
36470
|
-
|
|
36470
|
+
Ic && console.log(this.name, this.triggerMask, this);
|
|
36471
36471
|
}
|
|
36472
36472
|
/**
|
|
36473
36473
|
* Checks for intersections with spatial triggers and fires appropriate events
|
|
@@ -36492,7 +36492,7 @@ class Hs extends D {
|
|
|
36492
36492
|
*/
|
|
36493
36493
|
onEnterTrigger(e) {
|
|
36494
36494
|
var i;
|
|
36495
|
-
|
|
36495
|
+
Ic && console.log("ENTER TRIGGER", this.name, e.name, this, e), e.raiseOnEnterEvent(this), (i = this.onEnter) == null || i.invoke();
|
|
36496
36496
|
}
|
|
36497
36497
|
/**
|
|
36498
36498
|
* Handles trigger exit events.
|
|
@@ -36500,7 +36500,7 @@ class Hs extends D {
|
|
|
36500
36500
|
*/
|
|
36501
36501
|
onExitTrigger(e) {
|
|
36502
36502
|
var i;
|
|
36503
|
-
|
|
36503
|
+
Ic && console.log("EXIT TRIGGER", this.name, e.name), e.raiseOnExitEvent(this), (i = this.onExit) == null || i.invoke();
|
|
36504
36504
|
}
|
|
36505
36505
|
/**
|
|
36506
36506
|
* Handles trigger stay events.
|
|
@@ -36511,16 +36511,16 @@ class Hs extends D {
|
|
|
36511
36511
|
e.raiseOnStayEvent(this), (i = this.onStay) == null || i.invoke();
|
|
36512
36512
|
}
|
|
36513
36513
|
}
|
|
36514
|
-
|
|
36514
|
+
Lh([
|
|
36515
36515
|
p()
|
|
36516
36516
|
], Hs.prototype, "triggerMask");
|
|
36517
|
-
|
|
36517
|
+
Lh([
|
|
36518
36518
|
p(Se)
|
|
36519
36519
|
], Hs.prototype, "onEnter");
|
|
36520
|
-
|
|
36520
|
+
Lh([
|
|
36521
36521
|
p(Se)
|
|
36522
36522
|
], Hs.prototype, "onStay");
|
|
36523
|
-
|
|
36523
|
+
Lh([
|
|
36524
36524
|
p(Se)
|
|
36525
36525
|
], Hs.prototype, "onExit");
|
|
36526
36526
|
var Fs;
|
|
@@ -36535,14 +36535,14 @@ const Tx = (Fs = class extends D {
|
|
|
36535
36535
|
* Initializes the trigger and logs debug info if enabled
|
|
36536
36536
|
*/
|
|
36537
36537
|
start() {
|
|
36538
|
-
|
|
36538
|
+
Ic && console.log(this.name, this.triggerMask, this);
|
|
36539
36539
|
}
|
|
36540
36540
|
/**
|
|
36541
36541
|
* Registers this trigger in the global registry and sets up debug visualization if enabled
|
|
36542
36542
|
*/
|
|
36543
36543
|
onEnable() {
|
|
36544
36544
|
var e;
|
|
36545
|
-
Fs.triggers.push(this), this.boxHelper || (this.boxHelper = C.addComponent(this.gameObject, Ks), (e = this.boxHelper) == null || e.showHelper(null,
|
|
36545
|
+
Fs.triggers.push(this), this.boxHelper || (this.boxHelper = C.addComponent(this.gameObject, Ks), (e = this.boxHelper) == null || e.showHelper(null, Ic));
|
|
36546
36546
|
}
|
|
36547
36547
|
/**
|
|
36548
36548
|
* Removes this trigger from the global registry when disabled
|
|
@@ -36588,7 +36588,7 @@ const Tx = (Fs = class extends D {
|
|
|
36588
36588
|
}
|
|
36589
36589
|
}, /** Global registry of all active spatial triggers in the scene */
|
|
36590
36590
|
r(Fs, "triggers", []), Fs);
|
|
36591
|
-
|
|
36591
|
+
Lh([
|
|
36592
36592
|
p()
|
|
36593
36593
|
], Tx.prototype, "triggerMask");
|
|
36594
36594
|
let Uy = Tx;
|
|
@@ -37431,7 +37431,7 @@ class Lx extends D {
|
|
|
37431
37431
|
}
|
|
37432
37432
|
awake() {
|
|
37433
37433
|
if (this.useFlatbuffers)
|
|
37434
|
-
this.context.connection.beginListenBinary(
|
|
37434
|
+
this.context.connection.beginListenBinary(Kc, (e) => {
|
|
37435
37435
|
});
|
|
37436
37436
|
else {
|
|
37437
37437
|
this.models = [];
|
|
@@ -37990,7 +37990,7 @@ const JA = S("mutetimeline"), kr = class kr extends zf {
|
|
|
37990
37990
|
}
|
|
37991
37991
|
};
|
|
37992
37992
|
r(kr, "_audioBuffers", /* @__PURE__ */ new Map());
|
|
37993
|
-
let
|
|
37993
|
+
let oh = kr;
|
|
37994
37994
|
class vu extends zf {
|
|
37995
37995
|
constructor() {
|
|
37996
37996
|
super(...arguments);
|
|
@@ -38044,7 +38044,7 @@ class Vy extends zf {
|
|
|
38044
38044
|
console.log("no source object, removing model", i, s), this.models.splice(i, 1);
|
|
38045
38045
|
continue;
|
|
38046
38046
|
} else {
|
|
38047
|
-
const a = C.getComponent(s.sourceObject,
|
|
38047
|
+
const a = C.getComponent(s.sourceObject, rh);
|
|
38048
38048
|
this.timelines.push(a), a && s.updateDirector && (a.playOnAwake = !1);
|
|
38049
38049
|
}
|
|
38050
38050
|
}
|
|
@@ -38438,7 +38438,7 @@ const Hy = (Do = class extends D {
|
|
|
38438
38438
|
}
|
|
38439
38439
|
} else if (a.type === Ki.Audio) {
|
|
38440
38440
|
if (!a.clips || a.clips.length <= 0) continue;
|
|
38441
|
-
const h = new
|
|
38441
|
+
const h = new oh();
|
|
38442
38442
|
h.director = this, h.track = a, h.audioSource = a.outputs.find((d) => d instanceof Rn), this._audioTracks.push(h), e || (e = (s = this.context.mainCameraComponent) == null ? void 0 : s.gameObject.addComponent(Io)), h.listener = e.listener;
|
|
38443
38443
|
for (let d = 0; d < a.clips.length; d++) {
|
|
38444
38444
|
const u = a.clips[d];
|
|
@@ -38494,7 +38494,7 @@ Fx([
|
|
|
38494
38494
|
Fx([
|
|
38495
38495
|
p()
|
|
38496
38496
|
], Hy.prototype, "extrapolationMode");
|
|
38497
|
-
let
|
|
38497
|
+
let rh = Hy;
|
|
38498
38498
|
var tI = Object.defineProperty, Uf = (o, t, e, i) => {
|
|
38499
38499
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38500
38500
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -38597,7 +38597,7 @@ class jl extends D {
|
|
|
38597
38597
|
/** @internal */
|
|
38598
38598
|
onEnable() {
|
|
38599
38599
|
var e;
|
|
38600
|
-
if (!(this.isGizmo && !
|
|
38600
|
+
if (!(this.isGizmo && !hh) && this.context.mainCamera && (this._control || (this._control = new NC(this.context.mainCamera, this.context.renderer.domElement), this._control.enabled = !0, this._control.getRaycaster().layers.set(2), this._control.size = 1, ("_root" in this._control ? this._control._root : this._control).traverse((n) => {
|
|
38601
38601
|
const s = n;
|
|
38602
38602
|
if (s.layers.set(2), s) {
|
|
38603
38603
|
const a = s.material;
|
|
@@ -38654,7 +38654,7 @@ class Gy {
|
|
|
38654
38654
|
Nf([
|
|
38655
38655
|
p(Fe)
|
|
38656
38656
|
], Gy.prototype, "texture", 2);
|
|
38657
|
-
let
|
|
38657
|
+
let Dh = class extends xf {
|
|
38658
38658
|
constructor() {
|
|
38659
38659
|
super(...arguments);
|
|
38660
38660
|
r(this, "_sprite");
|
|
@@ -38695,10 +38695,10 @@ let Lh = class extends xf {
|
|
|
38695
38695
|
};
|
|
38696
38696
|
Nf([
|
|
38697
38697
|
p(Gy)
|
|
38698
|
-
],
|
|
38698
|
+
], Dh.prototype, "sprite", 1);
|
|
38699
38699
|
Nf([
|
|
38700
38700
|
p()
|
|
38701
|
-
],
|
|
38701
|
+
], Dh.prototype, "pixelsPerUnitMultiplier", 2);
|
|
38702
38702
|
class qy extends xf {
|
|
38703
38703
|
constructor() {
|
|
38704
38704
|
super(...arguments);
|
|
@@ -38835,7 +38835,7 @@ class ar extends D {
|
|
|
38835
38835
|
this._requestedAnimatorTrigger = e, yield, yield, this._requestedAnimatorTrigger == e && ((i = this.animator) == null || i.setTrigger(e));
|
|
38836
38836
|
}
|
|
38837
38837
|
init() {
|
|
38838
|
-
this._isInit || (this._isInit = !0, this._image = C.getComponent(this.gameObject,
|
|
38838
|
+
this._isInit || (this._isInit = !0, this._image = C.getComponent(this.gameObject, Dh), this._image && (this.stateSetup(this._image), this.interactable ? this._image.setState("normal") : this._image.setState("disabled")));
|
|
38839
38839
|
}
|
|
38840
38840
|
stateSetup(e) {
|
|
38841
38841
|
var m, g, _, y, b;
|
|
@@ -38911,7 +38911,7 @@ var aI = Object.defineProperty, $f = (o, t, e, i) => {
|
|
|
38911
38911
|
};
|
|
38912
38912
|
const mo = S("debuginputfield");
|
|
38913
38913
|
var X;
|
|
38914
|
-
const
|
|
38914
|
+
const jh = (X = class extends D {
|
|
38915
38915
|
constructor() {
|
|
38916
38916
|
super(...arguments);
|
|
38917
38917
|
r(this, "textComponent");
|
|
@@ -39058,17 +39058,17 @@ const Dh = (X = class extends D {
|
|
|
39058
39058
|
}, r(X, "active", null), r(X, "activeTime", -1), r(X, "htmlField", null), r(X, "htmlFieldFocused", !1), X);
|
|
39059
39059
|
$f([
|
|
39060
39060
|
p(ai)
|
|
39061
|
-
],
|
|
39061
|
+
], jh.prototype, "textComponent");
|
|
39062
39062
|
$f([
|
|
39063
39063
|
p(ai)
|
|
39064
|
-
],
|
|
39064
|
+
], jh.prototype, "placeholder");
|
|
39065
39065
|
$f([
|
|
39066
39066
|
p(Se)
|
|
39067
|
-
],
|
|
39067
|
+
], jh.prototype, "onValueChanged");
|
|
39068
39068
|
$f([
|
|
39069
39069
|
p(Se)
|
|
39070
|
-
],
|
|
39071
|
-
let zx =
|
|
39070
|
+
], jh.prototype, "onEndEdit");
|
|
39071
|
+
let zx = jh;
|
|
39072
39072
|
var lI = Object.defineProperty, Ux = (o, t, e, i) => {
|
|
39073
39073
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39074
39074
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -39319,7 +39319,7 @@ var dI = Object.defineProperty, Vf = (o, t, e, i) => {
|
|
|
39319
39319
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39320
39320
|
return n && dI(t, e, n), n;
|
|
39321
39321
|
}, Ir;
|
|
39322
|
-
const
|
|
39322
|
+
const Bh = (Ir = class extends D {
|
|
39323
39323
|
constructor() {
|
|
39324
39324
|
super(...arguments);
|
|
39325
39325
|
r(this, "target");
|
|
@@ -39360,23 +39360,23 @@ const jh = (Ir = class extends D {
|
|
|
39360
39360
|
}, r(Ir, "flipYQuat", new W().setFromAxisAngle(new w(0, 1, 0), Math.PI)), Ir);
|
|
39361
39361
|
Vf([
|
|
39362
39362
|
p(L)
|
|
39363
|
-
],
|
|
39363
|
+
], Bh.prototype, "target");
|
|
39364
39364
|
Vf([
|
|
39365
39365
|
p()
|
|
39366
|
-
],
|
|
39366
|
+
], Bh.prototype, "invertForward");
|
|
39367
39367
|
Vf([
|
|
39368
39368
|
p()
|
|
39369
|
-
],
|
|
39369
|
+
], Bh.prototype, "keepUpDirection");
|
|
39370
39370
|
Vf([
|
|
39371
39371
|
p()
|
|
39372
|
-
],
|
|
39373
|
-
let Nx =
|
|
39372
|
+
], Bh.prototype, "copyTargetRotation");
|
|
39373
|
+
let Nx = Bh;
|
|
39374
39374
|
var uI = Object.defineProperty, Qy = (o, t, e, i) => {
|
|
39375
39375
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39376
39376
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39377
39377
|
return n && uI(t, e, n), n;
|
|
39378
39378
|
};
|
|
39379
|
-
class
|
|
39379
|
+
class Fh extends D {
|
|
39380
39380
|
constructor() {
|
|
39381
39381
|
super(...arguments);
|
|
39382
39382
|
r(this, "url");
|
|
@@ -39428,13 +39428,13 @@ class Bh extends D {
|
|
|
39428
39428
|
}
|
|
39429
39429
|
Qy([
|
|
39430
39430
|
p()
|
|
39431
|
-
],
|
|
39431
|
+
], Fh.prototype, "url");
|
|
39432
39432
|
Qy([
|
|
39433
39433
|
p()
|
|
39434
|
-
],
|
|
39434
|
+
], Fh.prototype, "mode");
|
|
39435
39435
|
Qy([
|
|
39436
39436
|
p()
|
|
39437
|
-
],
|
|
39437
|
+
], Fh.prototype, "clickable");
|
|
39438
39438
|
var fI = Object.defineProperty, Bl = (o, t, e, i) => {
|
|
39439
39439
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39440
39440
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
@@ -39576,7 +39576,7 @@ function Wx(o) {
|
|
|
39576
39576
|
const b = l.getRenderTarget(), v = l.getClearColor(new re()), x = l.getClearAlpha(), k = i.scene.background, O = "aspect" in a ? a.aspect : null;
|
|
39577
39577
|
try {
|
|
39578
39578
|
const U = o.render_events !== !1, E = new Array();
|
|
39579
|
-
U && (
|
|
39579
|
+
U && (dh(i.scene, ln, E), E.forEach((B) => {
|
|
39580
39580
|
var V;
|
|
39581
39581
|
if (B == null || B.onBeforeRender(), B.isInstancingActive && B.instances)
|
|
39582
39582
|
for (let J = 0; J < ((V = B.instances) == null ? void 0 : V.length); J++) {
|
|
@@ -40469,20 +40469,20 @@ M.add("Avatar_MouthShapes", rf);
|
|
|
40469
40469
|
M.add("Avatar_MustacheShake", lw);
|
|
40470
40470
|
M.add("AvatarBlink_Simple", bl);
|
|
40471
40471
|
M.add("AvatarEyeLook_Rotation", dw);
|
|
40472
|
-
M.add("AxesHelper",
|
|
40472
|
+
M.add("AxesHelper", mh);
|
|
40473
40473
|
M.add("BasicIKConstraint", uw);
|
|
40474
40474
|
M.add("BoxHelperComponent", Ks);
|
|
40475
40475
|
M.add("Camera", Ai);
|
|
40476
40476
|
M.add("CharacterController", vl);
|
|
40477
40477
|
M.add("CharacterControllerInput", Qo);
|
|
40478
40478
|
M.add("Collider", Ui);
|
|
40479
|
-
M.add("SphereCollider",
|
|
40479
|
+
M.add("SphereCollider", gh);
|
|
40480
40480
|
M.add("BoxCollider", oy);
|
|
40481
40481
|
M.add("MeshCollider", oa);
|
|
40482
40482
|
M.add("CapsuleCollider", Go);
|
|
40483
40483
|
M.add("ContactShadows", cf);
|
|
40484
40484
|
M.add("LogStats", pw);
|
|
40485
|
-
M.add("DeleteBox",
|
|
40485
|
+
M.add("DeleteBox", Zc);
|
|
40486
40486
|
M.add("Deletable", gw);
|
|
40487
40487
|
M.add("DeviceFlag", ry);
|
|
40488
40488
|
M.add("DragControls", Ea);
|
|
@@ -40496,18 +40496,18 @@ M.add("VariantAction", Ww);
|
|
|
40496
40496
|
M.add("ChangeTransformOnClick", Cl);
|
|
40497
40497
|
M.add("ChangeMaterialOnClick", Vw);
|
|
40498
40498
|
M.add("SetActiveOnClick", Hw);
|
|
40499
|
-
M.add("HideOnStart",
|
|
40500
|
-
M.add("EmphasizeOnClick",
|
|
40499
|
+
M.add("HideOnStart", eh);
|
|
40500
|
+
M.add("EmphasizeOnClick", bh);
|
|
40501
40501
|
M.add("PlayAudioOnClick", qr);
|
|
40502
40502
|
M.add("PlayAnimationOnClick", pu);
|
|
40503
|
-
M.add("PreliminaryAction",
|
|
40503
|
+
M.add("PreliminaryAction", vh);
|
|
40504
40504
|
M.add("PreliminaryTrigger", mf);
|
|
40505
40505
|
M.add("VisibilityAction", gf);
|
|
40506
40506
|
M.add("TapGestureTrigger", Gw);
|
|
40507
40507
|
M.add("USDZExporter", Vs);
|
|
40508
|
-
M.add("Fog",
|
|
40508
|
+
M.add("Fog", Sh);
|
|
40509
40509
|
M.add("BoxGizmo", Rl);
|
|
40510
|
-
M.add("GridHelper",
|
|
40510
|
+
M.add("GridHelper", Ch);
|
|
40511
40511
|
M.add("GroundProjectedEnv", to);
|
|
40512
40512
|
M.add("UsageMarker", hf);
|
|
40513
40513
|
M.add("Interactable", mw);
|
|
@@ -40524,7 +40524,7 @@ M.add("CameraTargetReachedEvent", au);
|
|
|
40524
40524
|
M.add("OrbitControls", xe);
|
|
40525
40525
|
M.add("ParticleSystemRenderer", Ln);
|
|
40526
40526
|
M.add("ParticleSystem", gu);
|
|
40527
|
-
M.add("PlayerColor",
|
|
40527
|
+
M.add("PlayerColor", sh);
|
|
40528
40528
|
M.add("Antialiasing", Mf);
|
|
40529
40529
|
M.add("BloomEffect", Dy);
|
|
40530
40530
|
M.add("ChromaticAberration", Tf);
|
|
@@ -40538,7 +40538,7 @@ M.add("SharpeningEffect", If);
|
|
|
40538
40538
|
M.add("TiltShiftEffect", ao);
|
|
40539
40539
|
M.add("ToneMappingEffect", Yr);
|
|
40540
40540
|
M.add("Vignette", Dl);
|
|
40541
|
-
M.add("Volume",
|
|
40541
|
+
M.add("Volume", Th);
|
|
40542
40542
|
M.add("ReflectionProbe", uu);
|
|
40543
40543
|
M.add("Renderer", ln);
|
|
40544
40544
|
M.add("MeshRenderer", uf);
|
|
@@ -40558,28 +40558,28 @@ M.add("SyncedRoom", gs);
|
|
|
40558
40558
|
M.add("SyncedTransform", Ys);
|
|
40559
40559
|
M.add("TestRunner", Ix);
|
|
40560
40560
|
M.add("TestSimulateUserData", Lx);
|
|
40561
|
-
M.add("PlayableDirector",
|
|
40561
|
+
M.add("PlayableDirector", rh);
|
|
40562
40562
|
M.add("SignalReceiver", Ff);
|
|
40563
40563
|
M.add("AnimationTrackHandler", Wy);
|
|
40564
|
-
M.add("AudioTrackHandler",
|
|
40564
|
+
M.add("AudioTrackHandler", oh);
|
|
40565
40565
|
M.add("SignalTrackHandler", vu);
|
|
40566
40566
|
M.add("ControlTrackHandler", Vy);
|
|
40567
40567
|
M.add("TransformGizmo", jl);
|
|
40568
40568
|
M.add("BaseUIComponent", En);
|
|
40569
40569
|
M.add("UIRootComponent", vf);
|
|
40570
40570
|
M.add("Button", ar);
|
|
40571
|
-
M.add("Canvas",
|
|
40571
|
+
M.add("Canvas", ih);
|
|
40572
40572
|
M.add("CanvasGroup", Qr);
|
|
40573
40573
|
M.add("EventSystem", yi);
|
|
40574
40574
|
M.add("Graphic", wf);
|
|
40575
40575
|
M.add("MaskableGraphic", xf);
|
|
40576
|
-
M.add("Image",
|
|
40576
|
+
M.add("Image", Dh);
|
|
40577
40577
|
M.add("RawImage", qy);
|
|
40578
40578
|
M.add("InputField", zx);
|
|
40579
40579
|
M.add("VerticalLayoutGroup", sx);
|
|
40580
40580
|
M.add("HorizontalLayoutGroup", ox);
|
|
40581
40581
|
M.add("GridLayoutGroup", rx);
|
|
40582
|
-
M.add("Outline",
|
|
40582
|
+
M.add("Outline", xh);
|
|
40583
40583
|
M.add("ObjectRaycaster", an);
|
|
40584
40584
|
M.add("GraphicRaycaster", Zg);
|
|
40585
40585
|
M.add("SpatialGrabRaycaster", fl);
|
|
@@ -40588,7 +40588,7 @@ M.add("SpatialHtml", Wf);
|
|
|
40588
40588
|
M.add("Text", ai);
|
|
40589
40589
|
M.add("EnvironmentScene", Xy);
|
|
40590
40590
|
M.add("LookAt", Nx);
|
|
40591
|
-
M.add("OpenURL",
|
|
40591
|
+
M.add("OpenURL", Fh);
|
|
40592
40592
|
M.add("VideoPlayer", xt);
|
|
40593
40593
|
M.add("Voip", sa);
|
|
40594
40594
|
M.add("Avatar", Xr);
|
|
@@ -40607,7 +40607,7 @@ M.add("XRFlag", xn);
|
|
|
40607
40607
|
M.add("PlayerSync", Yw);
|
|
40608
40608
|
M.add("PlayerState", Xn);
|
|
40609
40609
|
M.add("PresentationMode", PI);
|
|
40610
|
-
const
|
|
40610
|
+
const Lc = bt, OI = S("debugtypestore");
|
|
40611
40611
|
OI && console.log(M);
|
|
40612
40612
|
function kI(o, t) {
|
|
40613
40613
|
const i = MO(o, t);
|
|
@@ -40653,13 +40653,13 @@ const cg = Symbol("original-component-name"), wa = /* @__PURE__ */ new Map();
|
|
|
40653
40653
|
function hg(o, t, e, i) {
|
|
40654
40654
|
if (t === null || !o) return;
|
|
40655
40655
|
const n = o.guid, s = o.guid;
|
|
40656
|
-
s != null && s.length && (wa.has(s) || (
|
|
40656
|
+
s != null && s.length && (wa.has(s) || (Lc && console.log('Creating InstanceIdProvider with key "' + s + '" for object ' + o.name), wa.set(s, new zt(s))));
|
|
40657
40657
|
const a = s && wa.get(s) || t;
|
|
40658
40658
|
if (o.guid = a.generateUUID(), n && n !== "invalid" && (e[n] = o.guid), o && o.userData && o.userData.components)
|
|
40659
40659
|
for (const l of o.userData.components) {
|
|
40660
40660
|
if (l === null) continue;
|
|
40661
40661
|
const c = l.guid;
|
|
40662
|
-
c ? wa.has(c) || (
|
|
40662
|
+
c ? wa.has(c) || (Lc && console.log('Creating InstanceIdProvider with key "' + c + '" for component ' + l[cg]), wa.set(c, new zt(c))) : Lc && console.warn("Can not create IdProvider: component " + l[cg] + " has no guid", l.guid);
|
|
40663
40663
|
const h = wa.get(c) || t, d = l.guid;
|
|
40664
40664
|
l.guid = h.generateUUID(), d && d !== "invalid" && (e[d] = l.guid), l.resolveGuids && i.push(l);
|
|
40665
40665
|
}
|
|
@@ -40683,7 +40683,7 @@ async function dg(o, t, e, i) {
|
|
|
40683
40683
|
const m = new f();
|
|
40684
40684
|
m.sourceId = o.gltfId, al(m, u, o.implementationInformation), m.context = o.context, "guid" in u && (m[bd] = u.guid), m[cg] = u.name, qa(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());
|
|
40685
40685
|
} else
|
|
40686
|
-
|
|
40686
|
+
Lc && console.debug("unknown component: " + u.name), tc.includes(u.name) || tc.push(u.name);
|
|
40687
40687
|
} catch (f) {
|
|
40688
40688
|
console.error(u.name + " - " + f.message, f);
|
|
40689
40689
|
}
|
|
@@ -40703,7 +40703,7 @@ This could mean you forgot to add a npmdef to your ExportInfo
|
|
|
40703
40703
|
}
|
|
40704
40704
|
function TI(o, t) {
|
|
40705
40705
|
const { instance: e, compData: i, obj: n } = o;
|
|
40706
|
-
t.object = n, t.target = e, Mm(e, i, t),
|
|
40706
|
+
t.object = n, t.target = e, Mm(e, i, t), Lc && console.debug("add " + i.name, i, e);
|
|
40707
40707
|
}
|
|
40708
40708
|
class Vx {
|
|
40709
40709
|
createBuiltinComponents(t, e, i, n, s) {
|
|
@@ -40768,7 +40768,7 @@ async function AI(o, t, e, i) {
|
|
|
40768
40768
|
if (n instanceof Cg) {
|
|
40769
40769
|
typeof t != "string" && (t = new TextDecoder().decode(t));
|
|
40770
40770
|
const l = n.parse(t);
|
|
40771
|
-
return await
|
|
40771
|
+
return await Dc(n, o, e, l, i, s);
|
|
40772
40772
|
}
|
|
40773
40773
|
if (!(n instanceof Xs)) {
|
|
40774
40774
|
if (n.parse === void 0) {
|
|
@@ -40776,14 +40776,14 @@ async function AI(o, t, e, i) {
|
|
|
40776
40776
|
return;
|
|
40777
40777
|
}
|
|
40778
40778
|
const l = n.parse(t, e);
|
|
40779
|
-
return await
|
|
40779
|
+
return await Dc(n, o, e, l, i, s);
|
|
40780
40780
|
}
|
|
40781
40781
|
return new Promise((l, c) => {
|
|
40782
40782
|
try {
|
|
40783
40783
|
let h = e.split("?")[0].trimEnd();
|
|
40784
40784
|
const d = h.split("/");
|
|
40785
40785
|
d.length > 0 && d[d.length - 1] !== "" && d.pop(), h = d.join("/"), h.endsWith("/") || (h += "/"), n.resourcePath = h, n.parse(t, "", async (u) => {
|
|
40786
|
-
const f = await
|
|
40786
|
+
const f = await Dc(n, o, e, u, i, s);
|
|
40787
40787
|
l(f);
|
|
40788
40788
|
}, (u) => {
|
|
40789
40789
|
console.error('Loading asset at "' + e + `" failed
|
|
@@ -40802,12 +40802,12 @@ async function qx(o, t, e, i, n) {
|
|
|
40802
40802
|
const { componentsExtension: a } = Xx(s, o);
|
|
40803
40803
|
if (!(s instanceof Xs)) {
|
|
40804
40804
|
const l = await s.loadAsync(t, n);
|
|
40805
|
-
return await
|
|
40805
|
+
return await Dc(s, o, t, l, i, a);
|
|
40806
40806
|
}
|
|
40807
40807
|
return new Promise((l, c) => {
|
|
40808
40808
|
try {
|
|
40809
40809
|
s.load(t, async (h) => {
|
|
40810
|
-
const d = await
|
|
40810
|
+
const d = await Dc(s, o, e, h, i, a);
|
|
40811
40811
|
l(d);
|
|
40812
40812
|
}, (h) => {
|
|
40813
40813
|
n == null || n.call(s, h);
|
|
@@ -40824,7 +40824,7 @@ function Xx(o, t) {
|
|
|
40824
40824
|
const e = Pw(o);
|
|
40825
40825
|
return o instanceof Xs && Xg(o, t), { componentsExtension: e };
|
|
40826
40826
|
}
|
|
40827
|
-
async function
|
|
40827
|
+
async function Dc(o, t, e, i, n, s) {
|
|
40828
40828
|
var a;
|
|
40829
40829
|
if (Hx && console.warn("Loaded", e, i), i == null)
|
|
40830
40830
|
return console.error(`Loaded model is null '${e}' - please make sure the loader is registered correctly`), {
|
|
@@ -40997,7 +40997,7 @@ function Yx(o) {
|
|
|
40997
40997
|
const i = o.index / t + sc / t;
|
|
40998
40998
|
return $.clamp01(i);
|
|
40999
40999
|
}
|
|
41000
|
-
const
|
|
41000
|
+
const Nc = class Nc {
|
|
41001
41001
|
/**
|
|
41002
41002
|
* Creates a new loading view
|
|
41003
41003
|
* @param owner the element that will contain the loading view (should be the NeedleEngineHTMLElement)
|
|
@@ -41022,7 +41022,7 @@ const Uc = class Uc {
|
|
|
41022
41022
|
if (Sr && console.warn("Begin Loading"), !this._loadingElement) {
|
|
41023
41023
|
for (let i = 0; i < e.children.length; i++) {
|
|
41024
41024
|
const n = e.children[i];
|
|
41025
|
-
if (n.classList.contains(
|
|
41025
|
+
if (n.classList.contains(Nc.LoadingContainerClassName)) {
|
|
41026
41026
|
if (!this._allowCustomLoadingElement) {
|
|
41027
41027
|
Sr && console.warn("Remove custom loading container"), e.removeChild(n);
|
|
41028
41028
|
continue;
|
|
@@ -41072,7 +41072,7 @@ const Uc = class Uc {
|
|
|
41072
41072
|
const g = this._element.getAttribute("loading-background");
|
|
41073
41073
|
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)";
|
|
41074
41074
|
}
|
|
41075
|
-
const n = ((f = this._loadingElementOptions) == null ? void 0 : f.className) ??
|
|
41075
|
+
const n = ((f = this._loadingElementOptions) == null ? void 0 : f.className) ?? Nc.LoadingContainerClassName;
|
|
41076
41076
|
if (this._loadingElement.classList.add(n), (m = this._loadingElementOptions) != null && m.additionalClasses)
|
|
41077
41077
|
for (const g of this._loadingElementOptions.additionalClasses)
|
|
41078
41078
|
this._loadingElement.classList.add(g);
|
|
@@ -41120,8 +41120,8 @@ const Uc = class Uc {
|
|
|
41120
41120
|
CLICK HERE TO GET A LICENSE`, i.style.cursor = "pointer", i.style.userSelect = "none", i.style.textAlign = "center", i.style.pointerEvents = "all", i.addEventListener("click", () => window.open("https://needle.tools/pricing", "_self")), i.style.opacity = "0", t.appendChild(i), !z() && Uo && (d0 && console.log("Waiting for runtime license check"), await Uo, e = Ws()), !e && (i.style.transition = "opacity .5s ease-in-out", i.style.opacity = "1");
|
|
41121
41121
|
}
|
|
41122
41122
|
};
|
|
41123
|
-
r(
|
|
41124
|
-
let ug =
|
|
41123
|
+
r(Nc, "LoadingContainerClassName", "loading");
|
|
41124
|
+
let ug = Nc;
|
|
41125
41125
|
cv(Vx);
|
|
41126
41126
|
const Ae = S("debugwebcomponent"), f0 = "needle-engine", Kx = "vr", Zx = "desktop", FI = [Qx, Kx, Zx], oc = "ar-session-active", rc = "desktop-session-active", zI = [
|
|
41127
41127
|
"public-key",
|
|
@@ -41369,7 +41369,7 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
41369
41369
|
break;
|
|
41370
41370
|
}
|
|
41371
41371
|
case "public-key": {
|
|
41372
|
-
n !=
|
|
41372
|
+
n != cc && this.setPublicKey();
|
|
41373
41373
|
break;
|
|
41374
41374
|
}
|
|
41375
41375
|
case "version": {
|
|
@@ -41522,7 +41522,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
41522
41522
|
}
|
|
41523
41523
|
}
|
|
41524
41524
|
setPublicKey() {
|
|
41525
|
-
|
|
41525
|
+
cc && cc.length > 0 && this.setAttribute("public-key", cc);
|
|
41526
41526
|
}
|
|
41527
41527
|
setVersion() {
|
|
41528
41528
|
es.length > 0 && this.setAttribute("version", es);
|
|
@@ -42439,10 +42439,10 @@ class x2 {
|
|
|
42439
42439
|
{
|
|
42440
42440
|
let y = null;
|
|
42441
42441
|
if (c.endsWith(".hdr")) {
|
|
42442
|
-
const b = (await import("./three-examples-
|
|
42442
|
+
const b = (await import("./three-examples-B50TT3Iu.js").then((v) => v.RGBELoader$1)).RGBELoader;
|
|
42443
42443
|
y = new b();
|
|
42444
42444
|
} else if (c.endsWith(".exr")) {
|
|
42445
|
-
const b = (await import("./three-examples-
|
|
42445
|
+
const b = (await import("./three-examples-B50TT3Iu.js").then((v) => v.EXRLoader$1)).EXRLoader;
|
|
42446
42446
|
y = new b();
|
|
42447
42447
|
}
|
|
42448
42448
|
if (y) {
|
|
@@ -42507,7 +42507,7 @@ class GI {
|
|
|
42507
42507
|
}
|
|
42508
42508
|
onBeforeExport(t) {
|
|
42509
42509
|
t.context.animations.mixers.forEach((e) => {
|
|
42510
|
-
const i =
|
|
42510
|
+
const i = Qc.tryGetActionsFromMixer(e);
|
|
42511
42511
|
if (i)
|
|
42512
42512
|
for (let n = 0; n < i.length; n++) {
|
|
42513
42513
|
const s = i[n];
|
|
@@ -42529,7 +42529,7 @@ class GI {
|
|
|
42529
42529
|
}
|
|
42530
42530
|
function qI(o, t, e) {
|
|
42531
42531
|
o.animations.mixers.forEach((n) => {
|
|
42532
|
-
const s =
|
|
42532
|
+
const s = Qc.tryGetActionsFromMixer(n);
|
|
42533
42533
|
if (s)
|
|
42534
42534
|
for (let a = 0; a < s.length; a++) {
|
|
42535
42535
|
const c = s[a].getClip();
|
|
@@ -42537,12 +42537,12 @@ function qI(o, t, e) {
|
|
|
42537
42537
|
}
|
|
42538
42538
|
}), Array.isArray(t) || (t = [t]);
|
|
42539
42539
|
for (const n of t)
|
|
42540
|
-
|
|
42540
|
+
Qc.tryGetAnimationClipsFromObjectHierarchy(n, e);
|
|
42541
42541
|
const i = new Set(e);
|
|
42542
42542
|
return Array.from(i);
|
|
42543
42543
|
}
|
|
42544
42544
|
const y0 = "needle-button", sm = z();
|
|
42545
|
-
var Lr, Dr, jr, Kt, Ms, Ya, ml, tS, iS,
|
|
42545
|
+
var Lr, Dr, jr, Kt, Ms, Ya, ml, tS, iS, ch;
|
|
42546
42546
|
class eS extends HTMLElement {
|
|
42547
42547
|
constructor() {
|
|
42548
42548
|
super();
|
|
@@ -42556,10 +42556,10 @@ class eS extends HTMLElement {
|
|
|
42556
42556
|
/** If AR or VR is requested we create and use the webxr button factory to create a button with default behaviour */
|
|
42557
42557
|
mn(this, Ms);
|
|
42558
42558
|
mn(this, Ya);
|
|
42559
|
-
mn(this,
|
|
42559
|
+
mn(this, ch, (e) => {
|
|
42560
42560
|
sm && console.log("Needle Button clicked"), !e.defaultPrevented && ue(this, Kt) && ue(this, Kt).click();
|
|
42561
42561
|
});
|
|
42562
|
-
this.removeEventListener("click", ue(this,
|
|
42562
|
+
this.removeEventListener("click", ue(this, ch)), this.addEventListener("click", ue(this, ch));
|
|
42563
42563
|
}
|
|
42564
42564
|
attributeChangedCallback(e, i, n) {
|
|
42565
42565
|
Nl(this, ml, tS).call(this);
|
|
@@ -42614,7 +42614,7 @@ Lr = new WeakMap(), Dr = new WeakMap(), jr = new WeakMap(), Kt = new WeakMap(),
|
|
|
42614
42614
|
`), ue(this, Dr).innerHTML = ue(this, Kt).innerHTML, ue(this, Dr).style.cssText = "display: flex; align-items: center; justify-content: center;", ue(this, Kt).innerHTML = ue(this, Dr).outerHTML, ue(this, Lr).innerHTML = ue(this, Kt).outerHTML, ue(this, Lr).prepend(ue(this, jr)), iu(Dm, { element: ue(this, Lr) }), (n = ue(this, Ya)) == null || n.disconnect(), ue(this, Ya) ?? gn(this, Ya, new MutationObserver(() => Nl(this, ml, iS).call(this))), ue(this, Ya).observe(ue(this, Kt), { attributes: !0 }), sm && console.log("Needle Button updated");
|
|
42615
42615
|
}, iS = function() {
|
|
42616
42616
|
ue(this, Kt) && (ue(this, Kt).style.display === "none" ? this.style.display = "none" : this.style.display === "none" && (this.style.display = ""));
|
|
42617
|
-
},
|
|
42617
|
+
}, ch = new WeakMap(), r(eS, "observedAttributes", ["ar", "vr", "quicklook"]);
|
|
42618
42618
|
typeof window < "u" && !window.customElements.get(y0) && window.customElements.define(y0, eS);
|
|
42619
42619
|
const ac = S("debugavatar");
|
|
42620
42620
|
class nS {
|
|
@@ -42665,7 +42665,7 @@ class XI {
|
|
|
42665
42665
|
if (typeof e == "string") {
|
|
42666
42666
|
if (i = await this.loadAvatar(t, e), !i) {
|
|
42667
42667
|
const s = new cs();
|
|
42668
|
-
i = C.instantiate(
|
|
42668
|
+
i = C.instantiate(Wc(e, t.scene), s);
|
|
42669
42669
|
}
|
|
42670
42670
|
} else i = e;
|
|
42671
42671
|
if (!i)
|
|
@@ -42795,7 +42795,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42795
42795
|
AudioExtension: Sl,
|
|
42796
42796
|
AudioListener: Io,
|
|
42797
42797
|
AudioSource: Rn,
|
|
42798
|
-
AudioTrackHandler:
|
|
42798
|
+
AudioTrackHandler: oh,
|
|
42799
42799
|
Avatar: Xr,
|
|
42800
42800
|
AvatarBlink_Simple: bl,
|
|
42801
42801
|
AvatarEyeLook_Rotation: dw,
|
|
@@ -42806,7 +42806,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42806
42806
|
Avatar_MouthShapes: rf,
|
|
42807
42807
|
Avatar_MustacheShake: lw,
|
|
42808
42808
|
Avatar_POI: $o,
|
|
42809
|
-
AxesHelper:
|
|
42809
|
+
AxesHelper: mh,
|
|
42810
42810
|
BaseUIComponent: En,
|
|
42811
42811
|
BasicIKConstraint: uw,
|
|
42812
42812
|
BehaviorExtension: Kw,
|
|
@@ -42819,7 +42819,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42819
42819
|
CallInfo: Mo,
|
|
42820
42820
|
Camera: Ai,
|
|
42821
42821
|
CameraTargetReachedEvent: au,
|
|
42822
|
-
Canvas:
|
|
42822
|
+
Canvas: ih,
|
|
42823
42823
|
CanvasGroup: Qr,
|
|
42824
42824
|
CapsuleCollider: Go,
|
|
42825
42825
|
ChangeMaterialOnClick: Vw,
|
|
@@ -42829,13 +42829,13 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42829
42829
|
ChromaticAberration: Tf,
|
|
42830
42830
|
Collider: Ui,
|
|
42831
42831
|
ColorAdjustments: ca,
|
|
42832
|
-
ColorBySpeedModule:
|
|
42832
|
+
ColorBySpeedModule: Mh,
|
|
42833
42833
|
ColorOverLifetimeModule: Ey,
|
|
42834
42834
|
ContactShadows: cf,
|
|
42835
42835
|
ControlTrackHandler: Vy,
|
|
42836
42836
|
CustomBranding: Ml,
|
|
42837
42837
|
Deletable: gw,
|
|
42838
|
-
DeleteBox:
|
|
42838
|
+
DeleteBox: Zc,
|
|
42839
42839
|
DepthOfField: ps,
|
|
42840
42840
|
DeviceFlag: ry,
|
|
42841
42841
|
DocumentExtension: QI,
|
|
@@ -42844,7 +42844,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42844
42844
|
Duplicatable: bw,
|
|
42845
42845
|
EffectWrapper: yu,
|
|
42846
42846
|
EmissionModule: nr,
|
|
42847
|
-
EmphasizeOnClick:
|
|
42847
|
+
EmphasizeOnClick: bh,
|
|
42848
42848
|
EnvironmentScene: Xy,
|
|
42849
42849
|
EventList: Se,
|
|
42850
42850
|
EventListEvent: Kg,
|
|
@@ -42852,28 +42852,28 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42852
42852
|
EventTrigger: hy,
|
|
42853
42853
|
FieldWithDefault: LR,
|
|
42854
42854
|
FixedJoint: hx,
|
|
42855
|
-
Fog:
|
|
42855
|
+
Fog: Sh,
|
|
42856
42856
|
GltfExport: Iw,
|
|
42857
42857
|
GltfExportBox: Aw,
|
|
42858
42858
|
Gradient: El,
|
|
42859
42859
|
Graphic: wf,
|
|
42860
42860
|
GraphicRaycaster: Zg,
|
|
42861
|
-
GridHelper:
|
|
42861
|
+
GridHelper: Ch,
|
|
42862
42862
|
GridLayoutGroup: rx,
|
|
42863
42863
|
GroundProjectedEnv: to,
|
|
42864
42864
|
GroupActionModel: Mr,
|
|
42865
|
-
HideOnStart:
|
|
42865
|
+
HideOnStart: eh,
|
|
42866
42866
|
HingeJoint: Sf,
|
|
42867
42867
|
HorizontalLayoutGroup: ox,
|
|
42868
|
-
Image:
|
|
42868
|
+
Image: Dh,
|
|
42869
42869
|
InheritVelocityModule: mx,
|
|
42870
42870
|
InputField: zx,
|
|
42871
42871
|
InstanceHandle: fu,
|
|
42872
|
-
InstancingHandler:
|
|
42872
|
+
InstancingHandler: Jc,
|
|
42873
42873
|
Interactable: mw,
|
|
42874
42874
|
Keyframe: Ii,
|
|
42875
42875
|
LODGroup: Cf,
|
|
42876
|
-
LODModel:
|
|
42876
|
+
LODModel: Oh,
|
|
42877
42877
|
Light: Wi,
|
|
42878
42878
|
LimitVelocityOverLifetimeModule: Pt,
|
|
42879
42879
|
LogStats: pw,
|
|
@@ -42891,9 +42891,9 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42891
42891
|
NoiseModule: ke,
|
|
42892
42892
|
ObjectRaycaster: an,
|
|
42893
42893
|
OffsetConstraint: Tl,
|
|
42894
|
-
OpenURL:
|
|
42894
|
+
OpenURL: Fh,
|
|
42895
42895
|
OrbitControls: xe,
|
|
42896
|
-
Outline:
|
|
42896
|
+
Outline: xh,
|
|
42897
42897
|
Padding: kl,
|
|
42898
42898
|
ParticleBurst: ig,
|
|
42899
42899
|
ParticleSubEmitter: gx,
|
|
@@ -42903,11 +42903,11 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42903
42903
|
PixelationEffect: Af,
|
|
42904
42904
|
PlayAnimationOnClick: pu,
|
|
42905
42905
|
PlayAudioOnClick: qr,
|
|
42906
|
-
PlayableDirector:
|
|
42907
|
-
PlayerColor:
|
|
42906
|
+
PlayableDirector: rh,
|
|
42907
|
+
PlayerColor: sh,
|
|
42908
42908
|
PointerEventData: sf,
|
|
42909
42909
|
PostProcessingHandler: xx,
|
|
42910
|
-
PreliminaryAction:
|
|
42910
|
+
PreliminaryAction: vh,
|
|
42911
42911
|
PreliminaryTrigger: mf,
|
|
42912
42912
|
RawImage: qy,
|
|
42913
42913
|
Rect: BT,
|
|
@@ -42942,11 +42942,11 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42942
42942
|
SpatialTrigger: Uy,
|
|
42943
42943
|
SpatialTriggerReceiver: Hs,
|
|
42944
42944
|
SpectatorCamera: Ny,
|
|
42945
|
-
SphereCollider:
|
|
42945
|
+
SphereCollider: gh,
|
|
42946
42946
|
Sprite: Zo,
|
|
42947
|
-
SpriteData:
|
|
42947
|
+
SpriteData: Ec,
|
|
42948
42948
|
SpriteRenderer: Ni,
|
|
42949
|
-
SpriteSheet:
|
|
42949
|
+
SpriteSheet: th,
|
|
42950
42950
|
SubEmitterSystem: og,
|
|
42951
42951
|
SyncedCamera: Ax,
|
|
42952
42952
|
SyncedRoom: gs,
|
|
@@ -42979,7 +42979,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42979
42979
|
Vignette: Dl,
|
|
42980
42980
|
VisibilityAction: gf,
|
|
42981
42981
|
Voip: sa,
|
|
42982
|
-
Volume:
|
|
42982
|
+
Volume: Th,
|
|
42983
42983
|
VolumeParameter: N,
|
|
42984
42984
|
VolumeProfile: Iy,
|
|
42985
42985
|
WebARCameraBackground: Hf,
|
|
@@ -43057,14 +43057,14 @@ fe.registerCallback(me.ContextCreated, (o) => {
|
|
|
43057
43057
|
for (const e of o.files)
|
|
43058
43058
|
C.foreachComponent(e.file.scene, (n) => {
|
|
43059
43059
|
if (n.enabled !== !1) {
|
|
43060
|
-
if (n instanceof si && n.playAutomatically || n instanceof $t || n instanceof
|
|
43060
|
+
if (n instanceof si && n.playAutomatically || n instanceof $t || n instanceof rh && n.playOnAwake === !0)
|
|
43061
43061
|
return !0;
|
|
43062
43062
|
if (n instanceof si)
|
|
43063
43063
|
return n.playAutomatically = !0, !0;
|
|
43064
|
-
if (n instanceof
|
|
43064
|
+
if (n instanceof rh)
|
|
43065
43065
|
return n.playOnAwake = !0, !0;
|
|
43066
43066
|
}
|
|
43067
|
-
}, !0) !== !0 &&
|
|
43067
|
+
}, !0) !== !0 && Qc.assignAnimationsFromFile(e.file, {
|
|
43068
43068
|
createAnimationComponent: (n, s) => sn(n, si)
|
|
43069
43069
|
});
|
|
43070
43070
|
});
|
|
@@ -43072,7 +43072,7 @@ class KI extends t1 {
|
|
|
43072
43072
|
constructor() {
|
|
43073
43073
|
super(new Worker(new URL(
|
|
43074
43074
|
/* @vite-ignore */
|
|
43075
|
-
"/generateMeshBVH.worker-
|
|
43075
|
+
"/generateMeshBVH.worker-BaNp_Xtp.js",
|
|
43076
43076
|
import.meta.url
|
|
43077
43077
|
), { type: "module" })), this.name = "GenerateMeshBVHWorker";
|
|
43078
43078
|
}
|
|
@@ -43125,17 +43125,17 @@ export {
|
|
|
43125
43125
|
Ji as ActionModel,
|
|
43126
43126
|
QO as Addressables,
|
|
43127
43127
|
tf as AlignmentConstraint,
|
|
43128
|
-
|
|
43128
|
+
Pc as AmbientMode,
|
|
43129
43129
|
si as Animation,
|
|
43130
43130
|
kf as AnimationCurve,
|
|
43131
43131
|
py as AnimationExtension,
|
|
43132
43132
|
Wy as AnimationTrackHandler,
|
|
43133
|
-
|
|
43133
|
+
Qc as AnimationUtils,
|
|
43134
43134
|
$t as Animator,
|
|
43135
43135
|
_r as AnimatorConditionMode,
|
|
43136
43136
|
kn as AnimatorController,
|
|
43137
43137
|
iw as AnimatorControllerParameterType,
|
|
43138
|
-
|
|
43138
|
+
Zh as AnimatorStateInfo,
|
|
43139
43139
|
Mf as Antialiasing,
|
|
43140
43140
|
rs as Application,
|
|
43141
43141
|
ZP as AssetDatabase,
|
|
@@ -43143,7 +43143,7 @@ export {
|
|
|
43143
43143
|
Sl as AudioExtension,
|
|
43144
43144
|
Io as AudioListener,
|
|
43145
43145
|
Rn as AudioSource,
|
|
43146
|
-
|
|
43146
|
+
oh as AudioTrackHandler,
|
|
43147
43147
|
Xr as Avatar,
|
|
43148
43148
|
bl as AvatarBlink_Simple,
|
|
43149
43149
|
dw as AvatarEyeLook_Rotation,
|
|
@@ -43154,8 +43154,8 @@ export {
|
|
|
43154
43154
|
rf as Avatar_MouthShapes,
|
|
43155
43155
|
lw as Avatar_MustacheShake,
|
|
43156
43156
|
$o as Avatar_POI,
|
|
43157
|
-
|
|
43158
|
-
|
|
43157
|
+
fc as Axes,
|
|
43158
|
+
mh as AxesHelper,
|
|
43159
43159
|
av as BUILD_TIME,
|
|
43160
43160
|
En as BaseUIComponent,
|
|
43161
43161
|
uw as BasicIKConstraint,
|
|
@@ -43172,7 +43172,7 @@ export {
|
|
|
43172
43172
|
Mo as CallInfo,
|
|
43173
43173
|
Ai as Camera,
|
|
43174
43174
|
au as CameraTargetReachedEvent,
|
|
43175
|
-
|
|
43175
|
+
ih as Canvas,
|
|
43176
43176
|
Qr as CanvasGroup,
|
|
43177
43177
|
Go as CapsuleCollider,
|
|
43178
43178
|
Vw as ChangeMaterialOnClick,
|
|
@@ -43187,7 +43187,7 @@ export {
|
|
|
43187
43187
|
AM as Collision,
|
|
43188
43188
|
Yg as CollisionDetectionMode,
|
|
43189
43189
|
ca as ColorAdjustments,
|
|
43190
|
-
|
|
43190
|
+
Mh as ColorBySpeedModule,
|
|
43191
43191
|
Ey as ColorOverLifetimeModule,
|
|
43192
43192
|
ZL as Component,
|
|
43193
43193
|
D as Component$1,
|
|
@@ -43205,7 +43205,7 @@ export {
|
|
|
43205
43205
|
Vm as CustomShader,
|
|
43206
43206
|
Im as DefaultReflectionMode,
|
|
43207
43207
|
gw as Deletable,
|
|
43208
|
-
|
|
43208
|
+
Zc as DeleteBox,
|
|
43209
43209
|
ps as DepthOfField,
|
|
43210
43210
|
ry as DeviceFlag,
|
|
43211
43211
|
Q as DeviceUtilities,
|
|
@@ -43216,7 +43216,7 @@ export {
|
|
|
43216
43216
|
bw as Duplicatable,
|
|
43217
43217
|
yu as EffectWrapper,
|
|
43218
43218
|
nr as EmissionModule,
|
|
43219
|
-
|
|
43219
|
+
bh as EmphasizeOnClick,
|
|
43220
43220
|
ug as EngineLoadingView,
|
|
43221
43221
|
Xy as EnvironmentScene,
|
|
43222
43222
|
Se as EventList,
|
|
@@ -43229,7 +43229,7 @@ export {
|
|
|
43229
43229
|
d2 as FileSpawnModel,
|
|
43230
43230
|
sR as File_Event,
|
|
43231
43231
|
hx as FixedJoint,
|
|
43232
|
-
|
|
43232
|
+
Sh as Fog,
|
|
43233
43233
|
Re as FrameEvent,
|
|
43234
43234
|
Tg as GENERATOR,
|
|
43235
43235
|
C as GameObject,
|
|
@@ -43240,16 +43240,16 @@ export {
|
|
|
43240
43240
|
wf as Graphic,
|
|
43241
43241
|
Zg as GraphicRaycaster,
|
|
43242
43242
|
il as Graphics,
|
|
43243
|
-
|
|
43243
|
+
Ch as GridHelper,
|
|
43244
43244
|
rx as GridLayoutGroup,
|
|
43245
43245
|
to as GroundProjectedEnv,
|
|
43246
43246
|
Mr as GroupActionModel,
|
|
43247
43247
|
ey as HideFlags,
|
|
43248
|
-
|
|
43248
|
+
eh as HideOnStart,
|
|
43249
43249
|
Sf as HingeJoint,
|
|
43250
43250
|
ox as HorizontalLayoutGroup,
|
|
43251
43251
|
VL as HostData,
|
|
43252
|
-
|
|
43252
|
+
Dh as Image,
|
|
43253
43253
|
Jd as ImageReference,
|
|
43254
43254
|
ZO as ImageReferenceSerializer,
|
|
43255
43255
|
mx as InheritVelocityModule,
|
|
@@ -43258,7 +43258,7 @@ export {
|
|
|
43258
43258
|
We as InputEvents,
|
|
43259
43259
|
zx as InputField,
|
|
43260
43260
|
fu as InstanceHandle,
|
|
43261
|
-
|
|
43261
|
+
Jc as InstancingHandler,
|
|
43262
43262
|
On as InstancingUtil,
|
|
43263
43263
|
cO as InstantiateEvent,
|
|
43264
43264
|
zt as InstantiateIdProvider,
|
|
@@ -43269,7 +43269,7 @@ export {
|
|
|
43269
43269
|
DL as KeyEventArgs,
|
|
43270
43270
|
Ii as Keyframe,
|
|
43271
43271
|
Cf as LODGroup,
|
|
43272
|
-
|
|
43272
|
+
Oh as LODModel,
|
|
43273
43273
|
zL as LeftRoomResponse,
|
|
43274
43274
|
Wi as Light,
|
|
43275
43275
|
mk as LightData,
|
|
@@ -43288,7 +43288,7 @@ export {
|
|
|
43288
43288
|
uf as MeshRenderer,
|
|
43289
43289
|
K as MinMaxCurve,
|
|
43290
43290
|
Al as MinMaxGradient,
|
|
43291
|
-
|
|
43291
|
+
Nh as NEKeyboardEvent,
|
|
43292
43292
|
go as NEPointerEvent,
|
|
43293
43293
|
eS as NeedleButtonElement,
|
|
43294
43294
|
Mb as NeedleEngineModelLoader,
|
|
@@ -43311,12 +43311,12 @@ export {
|
|
|
43311
43311
|
Tl as OffsetConstraint,
|
|
43312
43312
|
ep as OneEuroFilter,
|
|
43313
43313
|
X0 as OneEuroFilterXYZ,
|
|
43314
|
-
|
|
43314
|
+
Fh as OpenURL,
|
|
43315
43315
|
xe as OrbitControls,
|
|
43316
|
-
|
|
43316
|
+
xh as Outline,
|
|
43317
43317
|
LP as OwnershipEvent,
|
|
43318
43318
|
yv as OwnershipModel,
|
|
43319
|
-
|
|
43319
|
+
cc as PUBLIC_KEY,
|
|
43320
43320
|
kl as Padding,
|
|
43321
43321
|
ig as ParticleBurst,
|
|
43322
43322
|
gx as ParticleSubEmitter,
|
|
@@ -43324,7 +43324,7 @@ export {
|
|
|
43324
43324
|
la as ParticleSystemBaseBehaviour,
|
|
43325
43325
|
Ln as ParticleSystemRenderer,
|
|
43326
43326
|
eg as ParticleSystemShapeType,
|
|
43327
|
-
|
|
43327
|
+
Rc as PeerHandle,
|
|
43328
43328
|
TP as PeerNetworking,
|
|
43329
43329
|
Hd as Physics,
|
|
43330
43330
|
Zw as PhysicsExtension,
|
|
@@ -43332,8 +43332,8 @@ export {
|
|
|
43332
43332
|
Af as PixelationEffect,
|
|
43333
43333
|
pu as PlayAnimationOnClick,
|
|
43334
43334
|
qr as PlayAudioOnClick,
|
|
43335
|
-
|
|
43336
|
-
|
|
43335
|
+
rh as PlayableDirector,
|
|
43336
|
+
sh as PlayerColor,
|
|
43337
43337
|
Xn as PlayerState,
|
|
43338
43338
|
PT as PlayerStateEvent,
|
|
43339
43339
|
Yw as PlayerSync,
|
|
@@ -43344,7 +43344,7 @@ export {
|
|
|
43344
43344
|
ft as PostProcessingEffect,
|
|
43345
43345
|
gt as PostProcessingEffectOrder,
|
|
43346
43346
|
xx as PostProcessingHandler,
|
|
43347
|
-
|
|
43347
|
+
vh as PreliminaryAction,
|
|
43348
43348
|
mf as PreliminaryTrigger,
|
|
43349
43349
|
wr as PreviewHelper,
|
|
43350
43350
|
ol as PrimitiveType,
|
|
@@ -43395,13 +43395,13 @@ export {
|
|
|
43395
43395
|
Uy as SpatialTrigger,
|
|
43396
43396
|
Hs as SpatialTriggerReceiver,
|
|
43397
43397
|
Ny as SpectatorCamera,
|
|
43398
|
-
|
|
43398
|
+
gh as SphereCollider,
|
|
43399
43399
|
bv as SphereIntersection,
|
|
43400
43400
|
IM as SphereOverlapResult,
|
|
43401
43401
|
Zo as Sprite,
|
|
43402
|
-
|
|
43402
|
+
Ec as SpriteData,
|
|
43403
43403
|
Ni as SpriteRenderer,
|
|
43404
|
-
|
|
43404
|
+
th as SpriteSheet,
|
|
43405
43405
|
e2 as StateMachineBehaviour,
|
|
43406
43406
|
rw as StreamEndedEvent,
|
|
43407
43407
|
LM as StreamReceivedEvent,
|
|
@@ -43450,7 +43450,7 @@ export {
|
|
|
43450
43450
|
Dl as Vignette,
|
|
43451
43451
|
gf as VisibilityAction,
|
|
43452
43452
|
sa as Voip,
|
|
43453
|
-
|
|
43453
|
+
Th as Volume,
|
|
43454
43454
|
N as VolumeParameter,
|
|
43455
43455
|
Iy as VolumeProfile,
|
|
43456
43456
|
GL as WaitForFrames,
|
|
@@ -43496,7 +43496,7 @@ export {
|
|
|
43496
43496
|
K1 as copyTexture,
|
|
43497
43497
|
$k as createMotion,
|
|
43498
43498
|
Ci as debugNet,
|
|
43499
|
-
|
|
43499
|
+
Vh as debugOwner,
|
|
43500
43500
|
ZR as decompressGpuTexture,
|
|
43501
43501
|
$u as deepClone,
|
|
43502
43502
|
ss as delay,
|
|
@@ -43528,7 +43528,7 @@ export {
|
|
|
43528
43528
|
Zu as getComponentInChildren,
|
|
43529
43529
|
Zd as getComponentInParent,
|
|
43530
43530
|
Ku as getComponents,
|
|
43531
|
-
|
|
43531
|
+
dh as getComponentsInChildren,
|
|
43532
43532
|
Ng as getComponentsInParent,
|
|
43533
43533
|
FR as getFormattedDate,
|
|
43534
43534
|
Bt as getIconElement,
|
|
@@ -43563,7 +43563,7 @@ export {
|
|
|
43563
43563
|
bP as invokeXRSessionEnd,
|
|
43564
43564
|
_P as invokeXRSessionStart,
|
|
43565
43565
|
VO as isActiveInHierarchy,
|
|
43566
|
-
|
|
43566
|
+
uh as isActiveSelf,
|
|
43567
43567
|
gL as isAndroidDevice,
|
|
43568
43568
|
Y1 as isAnimationAction,
|
|
43569
43569
|
TM as isComponent,
|
|
@@ -43668,7 +43668,7 @@ export {
|
|
|
43668
43668
|
Y0 as setWorldQuaternionXYZW,
|
|
43669
43669
|
Q1 as setWorldRotation,
|
|
43670
43670
|
Hu as setWorldRotationXYZ,
|
|
43671
|
-
|
|
43671
|
+
Hc as setWorldScale,
|
|
43672
43672
|
Gu as showBalloonError,
|
|
43673
43673
|
Ve as showBalloonMessage,
|
|
43674
43674
|
we as showBalloonWarning,
|
|
@@ -43681,7 +43681,7 @@ export {
|
|
|
43681
43681
|
kP as tryCastBinary,
|
|
43682
43682
|
aR as tryDetermineMimetypeFromBinary,
|
|
43683
43683
|
rR as tryDetermineMimetypeFromURL,
|
|
43684
|
-
|
|
43684
|
+
Wc as tryFindObject,
|
|
43685
43685
|
MP as tryGetGuid,
|
|
43686
43686
|
Dk as unregisterHotReloadType,
|
|
43687
43687
|
N0 as unwatchWrite,
|