@needle-tools/engine 5.1.0-canary.0d9f44e → 5.1.0-canary.244f23e
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 +34 -0
- package/components.needle.json +1 -1
- package/dist/{needle-engine.bundle-D5zzggEG.min.js → needle-engine.bundle-CJmix0Oo.min.js} +141 -141
- package/dist/{needle-engine.bundle-B35n_IHX.js → needle-engine.bundle-CcPGKcD_.js} +7638 -7673
- package/dist/{needle-engine.bundle-CDj15wRB.umd.cjs → needle-engine.bundle-rcR8UYgV.umd.cjs} +141 -141
- package/dist/needle-engine.d.ts +35 -62
- package/dist/needle-engine.js +188 -186
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/dist/three-examples.js +3778 -4289
- package/dist/three-examples.min.js +14 -301
- package/dist/three-examples.umd.cjs +14 -301
- package/lib/engine/debug/debug_spatial_console.d.ts +2 -0
- package/lib/engine/debug/debug_spatial_console.js +10 -7
- package/lib/engine/debug/debug_spatial_console.js.map +1 -1
- package/lib/engine/engine_addressables.d.ts +2 -0
- package/lib/engine/engine_addressables.js +6 -3
- package/lib/engine/engine_addressables.js.map +1 -1
- package/lib/engine/engine_context.d.ts +16 -19
- package/lib/engine/engine_context.js +12 -15
- package/lib/engine/engine_context.js.map +1 -1
- package/lib/engine/engine_gameobject.js +2 -2
- package/lib/engine/engine_gameobject.js.map +1 -1
- package/lib/engine/engine_init.js +10 -0
- package/lib/engine/engine_init.js.map +1 -1
- package/lib/engine/engine_scenedata.d.ts +5 -7
- package/lib/engine/engine_scenedata.js +14 -11
- package/lib/engine/engine_scenedata.js.map +1 -1
- package/lib/engine/engine_serialization_builtin_serializer.d.ts +10 -16
- package/lib/engine/engine_serialization_builtin_serializer.js +28 -41
- package/lib/engine/engine_serialization_builtin_serializer.js.map +1 -1
- package/lib/engine/webcomponents/jsx.d.ts +51 -0
- package/lib/engine/webcomponents/logo-element.d.ts +0 -8
- package/lib/engine/webcomponents/logo-element.js.map +1 -1
- package/lib/engine/webcomponents/needle menu/needle-menu.d.ts +0 -8
- package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
- package/lib/engine/webcomponents/needle-button.d.ts +0 -13
- package/lib/engine/webcomponents/needle-button.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.d.ts +0 -5
- package/lib/engine/webcomponents/needle-engine.js.map +1 -1
- package/lib/engine-components/AnimatorController.d.ts +2 -0
- package/lib/engine-components/AnimatorController.js +4 -1
- package/lib/engine-components/AnimatorController.js.map +1 -1
- package/lib/engine-components/Light.d.ts +0 -19
- package/lib/engine-components/Light.js +4 -96
- package/lib/engine-components/Light.js.map +1 -1
- package/lib/engine-components/ReflectionProbe.js +2 -0
- package/lib/engine-components/ReflectionProbe.js.map +1 -1
- package/lib/engine-components/postprocessing/VolumeParameter.d.ts +2 -0
- package/lib/engine-components/postprocessing/VolumeParameter.js +4 -1
- package/lib/engine-components/postprocessing/VolumeParameter.js.map +1 -1
- package/lib/needle-engine.d.ts +1 -0
- package/lib/needle-engine.js +1 -0
- package/lib/needle-engine.js.map +1 -1
- package/package.json +1 -1
- package/plugins/vite/reload.js +18 -17
- package/src/engine/debug/debug_spatial_console.ts +10 -7
- package/src/engine/engine_addressables.ts +6 -3
- package/src/engine/engine_context.ts +18 -20
- package/src/engine/engine_gameobject.ts +2 -2
- package/src/engine/engine_init.ts +10 -0
- package/src/engine/engine_scenedata.ts +13 -10
- package/src/engine/engine_serialization_builtin_serializer.ts +32 -43
- package/src/engine/webcomponents/jsx.d.ts +51 -0
- package/src/engine/webcomponents/logo-element.ts +1 -8
- package/src/engine/webcomponents/needle menu/needle-menu.ts +1 -8
- package/src/engine/webcomponents/needle-button.ts +1 -13
- package/src/engine/webcomponents/needle-engine.ts +1 -6
- package/src/engine-components/AnimatorController.ts +4 -1
- package/src/engine-components/Light.ts +4 -95
- package/src/engine-components/ReflectionProbe.ts +2 -0
- package/src/engine-components/postprocessing/VolumeParameter.ts +4 -1
- package/src/needle-engine.ts +1 -0
package/dist/needle-engine.d.ts
CHANGED
|
@@ -3623,7 +3623,7 @@ declare class ColorSerializer extends TypeSerializer {
|
|
|
3623
3623
|
onSerialize(data: any): any | void;
|
|
3624
3624
|
}
|
|
3625
3625
|
|
|
3626
|
-
export declare
|
|
3626
|
+
export declare let colorSerializer: ColorSerializer;
|
|
3627
3627
|
|
|
3628
3628
|
/**
|
|
3629
3629
|
* Utility method to check if two materials were created from the same glTF material
|
|
@@ -4097,7 +4097,7 @@ declare class ComponentSerializer extends TypeSerializer {
|
|
|
4097
4097
|
findObjectForGuid(guid: string, root: Object3D): any;
|
|
4098
4098
|
}
|
|
4099
4099
|
|
|
4100
|
-
export declare
|
|
4100
|
+
export declare let componentSerializer: ComponentSerializer;
|
|
4101
4101
|
|
|
4102
4102
|
declare type ComponentType = "button" | "thumbstick" | "squeeze" | "touchpad";
|
|
4103
4103
|
|
|
@@ -4460,13 +4460,14 @@ export declare class Context implements IContext {
|
|
|
4460
4460
|
* Use `setCurrentCamera` for updating the main camera.
|
|
4461
4461
|
*/
|
|
4462
4462
|
/**
|
|
4463
|
-
*
|
|
4464
|
-
* Types are
|
|
4465
|
-
* and written to `src/generated/needle-bindings.d.ts` on every dev-server start and GLB change.
|
|
4463
|
+
* Access your scene's full hierarchy, objects, and components directly by name — with full autocomplete.
|
|
4464
|
+
* Types are generated automatically from your GLB files when the dev server starts.
|
|
4466
4465
|
*
|
|
4467
|
-
*
|
|
4468
|
-
*
|
|
4469
|
-
*
|
|
4466
|
+
* You can store references to objects or components for later use.
|
|
4467
|
+
* Note that the scene hierarchy can change at runtime (e.g. when objects are added, removed, or re-parented),
|
|
4468
|
+
* in which case stored references may become stale.
|
|
4469
|
+
*
|
|
4470
|
+
* @experimental This API may change in future versions.
|
|
4470
4471
|
*
|
|
4471
4472
|
* @example
|
|
4472
4473
|
* // Toggle auto-rotate on the orbit camera
|
|
@@ -4475,12 +4476,6 @@ export declare class Context implements IContext {
|
|
|
4475
4476
|
* @example
|
|
4476
4477
|
* // Change the background color
|
|
4477
4478
|
* ctx.sceneData.Camera.Camera.backgroundColor = new RGBAColor(1, 0, 0, 1);
|
|
4478
|
-
*
|
|
4479
|
-
* @example
|
|
4480
|
-
* // Equivalent manual approach (without sceneData)
|
|
4481
|
-
* const node = ctx.scene.getObjectByName("Camera");
|
|
4482
|
-
* const orbit = getComponent(node, OrbitControls);
|
|
4483
|
-
* if (orbit) orbit.autoRotate = true;
|
|
4484
4479
|
*/
|
|
4485
4480
|
get sceneData(): SceneData;
|
|
4486
4481
|
get mainCamera(): Camera_2;
|
|
@@ -4504,19 +4499,21 @@ export declare class Context implements IContext {
|
|
|
4504
4499
|
connection: NetworkConnection;
|
|
4505
4500
|
/** @deprecated AssetDatabase is deprecated */
|
|
4506
4501
|
assets: AssetDatabase;
|
|
4507
|
-
/** All registered lights in the scene, maintained by the Light component
|
|
4508
|
-
|
|
4502
|
+
/** All registered lights in the scene, maintained by the Light component.
|
|
4503
|
+
* @see mainLight for accessing the main directional light in the scene
|
|
4504
|
+
*/
|
|
4505
|
+
readonly lights: ILight[];
|
|
4509
4506
|
/** The brightest registered directional light, or null if none are registered
|
|
4510
4507
|
* @see lights
|
|
4511
4508
|
*/
|
|
4512
4509
|
get mainLight(): ILight | null;
|
|
4513
4510
|
/** @deprecated Use sceneLighting */
|
|
4514
|
-
get rendererData()
|
|
4511
|
+
private get rendererData();
|
|
4515
4512
|
/** Access the scene lighting manager to control lighting settings in the context */
|
|
4516
|
-
sceneLighting: RendererData;
|
|
4517
|
-
addressables: Addressables;
|
|
4518
|
-
lightmaps: ILightDataRegistry;
|
|
4519
|
-
players: PlayerViewManager;
|
|
4513
|
+
readonly sceneLighting: RendererData;
|
|
4514
|
+
readonly addressables: Addressables;
|
|
4515
|
+
readonly lightmaps: ILightDataRegistry;
|
|
4516
|
+
readonly players: PlayerViewManager;
|
|
4520
4517
|
/** Access the LODs manager to control LOD behavior in the context */
|
|
4521
4518
|
readonly lodsManager: LODsManager;
|
|
4522
4519
|
/** Access the needle menu to add or remove buttons to the menu element */
|
|
@@ -5923,19 +5920,6 @@ export declare class EnvironmentScene extends Scene {
|
|
|
5923
5920
|
createAreaLightMaterial(intensity: number): MeshBasicMaterial;
|
|
5924
5921
|
}
|
|
5925
5922
|
|
|
5926
|
-
export declare const euler: EulerSerializer;
|
|
5927
|
-
|
|
5928
|
-
declare class EulerSerializer extends TypeSerializer {
|
|
5929
|
-
constructor();
|
|
5930
|
-
onDeserialize(data: any, _context: SerializationContext): Euler | undefined;
|
|
5931
|
-
onSerialize(data: any, _context: SerializationContext): {
|
|
5932
|
-
x: any;
|
|
5933
|
-
y: any;
|
|
5934
|
-
z: any;
|
|
5935
|
-
order: any;
|
|
5936
|
-
};
|
|
5937
|
-
}
|
|
5938
|
-
|
|
5939
5923
|
/**
|
|
5940
5924
|
* EventList manages a list of callbacks that can be invoked together.
|
|
5941
5925
|
* Used for Unity-style events that can be configured in the editor (Unity or Blender).
|
|
@@ -6068,7 +6052,7 @@ declare class EventListSerializer extends TypeSerializer {
|
|
|
6068
6052
|
onDeserialize(data: EventListData, context: SerializationContext): EventList<any> | undefined | null;
|
|
6069
6053
|
}
|
|
6070
6054
|
|
|
6071
|
-
export declare
|
|
6055
|
+
export declare let eventListSerializer: EventListSerializer;
|
|
6072
6056
|
|
|
6073
6057
|
/**
|
|
6074
6058
|
* [EventSystem](https://engine.needle.tools/docs/api/EventSystem) is responsible for managing and dispatching input events to UI components within the scene.
|
|
@@ -8460,10 +8444,20 @@ export declare class InheritVelocityModule {
|
|
|
8460
8444
|
applyCurrent(vel: Vector3 | Vector3_2, t01: number, lerpFactor: number): void;
|
|
8461
8445
|
}
|
|
8462
8446
|
|
|
8447
|
+
/* Excluded from this release type: initAddressableSerializers */
|
|
8448
|
+
|
|
8449
|
+
/** Register all builtin serializers and prototype patches.
|
|
8450
|
+
* Must be called from {@link initEngine} so the registrations survive tree-shaking
|
|
8451
|
+
* when the package declares `sideEffects: false`.
|
|
8452
|
+
*/
|
|
8453
|
+
export declare function initBuiltinSerializers(): void;
|
|
8454
|
+
|
|
8463
8455
|
/** Register the Rapier physics backend. Called from {@link initEngine}
|
|
8464
8456
|
* to ensure it runs regardless of tree-shaking. */
|
|
8465
8457
|
export declare function initPhysics(): void;
|
|
8466
8458
|
|
|
8459
|
+
/* Excluded from this release type: initVolumeParameterSerializer */
|
|
8460
|
+
|
|
8467
8461
|
/**
|
|
8468
8462
|
* Handles all input events including mouse, touch, keyboard, and XR controllers.
|
|
8469
8463
|
* Access via `this.context.input` from any component.
|
|
@@ -9967,19 +9961,6 @@ export declare class Light extends Component implements ILight {
|
|
|
9967
9961
|
get shadowResolution(): number;
|
|
9968
9962
|
set shadowResolution(val: number);
|
|
9969
9963
|
private _shadowResolution?;
|
|
9970
|
-
/**
|
|
9971
|
-
* Number of shadow cascade levels (only used when `useCascades` is true)
|
|
9972
|
-
*/
|
|
9973
|
-
cascades: number;
|
|
9974
|
-
/**
|
|
9975
|
-
* Cascade split mode (only used when `useCascades` is true):
|
|
9976
|
-
* - `practical` — balanced (default, recommended)
|
|
9977
|
-
* - `logarithmic` — more resolution close up
|
|
9978
|
-
* - `uniform` — equal splits
|
|
9979
|
-
*/
|
|
9980
|
-
cascadeMode: "practical" | "logarithmic" | "uniform";
|
|
9981
|
-
private _csm?;
|
|
9982
|
-
private _csmHelper?;
|
|
9983
9964
|
/**
|
|
9984
9965
|
* Whether this light's illumination is entirely baked into lightmaps
|
|
9985
9966
|
*/
|
|
@@ -10001,7 +9982,6 @@ export declare class Light extends Component implements ILight {
|
|
|
10001
9982
|
awake(): void;
|
|
10002
9983
|
onEnable(): void;
|
|
10003
9984
|
onDisable(): void;
|
|
10004
|
-
onBeforeRender(): void;
|
|
10005
9985
|
/**
|
|
10006
9986
|
* Creates the appropriate three.js light based on the configured light type
|
|
10007
9987
|
* and applies all settings like shadows, intensity, and color.
|
|
@@ -10022,11 +10002,6 @@ export declare class Light extends Component implements ILight {
|
|
|
10022
10002
|
* When the rig is scaled, world-space distances change proportionally
|
|
10023
10003
|
* causing lights to appear brighter or dimmer due to distance falloff. */
|
|
10024
10004
|
private applyXRScale;
|
|
10025
|
-
/**
|
|
10026
|
-
* Creates and initializes a CSM instance for this directional light.
|
|
10027
|
-
* CSM manages its own cascade DirectionalLights internally.
|
|
10028
|
-
*/
|
|
10029
|
-
private createCSM;
|
|
10030
10005
|
/**
|
|
10031
10006
|
* Configures a directional light by adding and positioning its target
|
|
10032
10007
|
* @param dirLight The directional light to set up
|
|
@@ -11067,15 +11042,13 @@ export declare type MouseButtonName = "left" | "right" | "middle";
|
|
|
11067
11042
|
/* Excluded from this release type: nameofFactory */
|
|
11068
11043
|
|
|
11069
11044
|
/**
|
|
11070
|
-
*
|
|
11071
|
-
*
|
|
11072
|
-
* safe to import at module level, including in SSR environments
|
|
11073
|
-
* (returns a silent error proxy when no context is active).
|
|
11045
|
+
* Quick access to the current Needle Engine context from anywhere — no need to pass `ctx` around.
|
|
11046
|
+
* Use it in React/Svelte/Vue components, button handlers, or plain JavaScript.
|
|
11074
11047
|
*
|
|
11075
|
-
*
|
|
11076
|
-
*
|
|
11048
|
+
* Safe to import at module level, including in SSR environments.
|
|
11049
|
+
* For pages with multiple `<needle-engine>` elements, use `ctx` directly instead.
|
|
11077
11050
|
*
|
|
11078
|
-
*
|
|
11051
|
+
* @experimental This API may change in future releases.
|
|
11079
11052
|
*
|
|
11080
11053
|
* @example
|
|
11081
11054
|
* import { needle } from "@needle-tools/engine";
|
|
@@ -13078,7 +13051,7 @@ declare class ObjectSerializer extends TypeSerializer {
|
|
|
13078
13051
|
onDeserialize(data: ObjectData | string | null, context: SerializationContext): Object3D<Object3DEventMap> | Component | null | undefined;
|
|
13079
13052
|
}
|
|
13080
13053
|
|
|
13081
|
-
export declare
|
|
13054
|
+
export declare let objectSerializer: ObjectSerializer;
|
|
13082
13055
|
|
|
13083
13056
|
declare type ObjectToNodeMap = {
|
|
13084
13057
|
[uuid: string]: number;
|
package/dist/needle-engine.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { initEngine as i, GameObject as r, onClear as a, onDestroy as s, onInitialized as l, onAfterRender as d, onBeforeRender as c, onUpdate as m, onStart as p, TypeStore as g, loadAsset as S, NeedleXRSession as u, Context as C, VERSION as y, Component as E, Components as R } from "./needle-engine.bundle-
|
|
2
|
-
import { $componentName as T, $physicsKey as b, ActionBuilder as M, ActionCollection as I, ActionModel as D, Addressables as O, AlignmentConstraint as x, AmbientMode as k, Animation as L, AnimationCurve as B, AnimationExtension as N, AnimationTrackHandler as F, AnimationUtils as w, Animator as U, AnimatorConditionMode as W, AnimatorController as G, AnimatorControllerBuilder as H, AnimatorControllerParameterType as X, AnimatorStateInfo as z, Antialiasing as V, Application as _, AssetDatabase as j, AssetReference as Z, Attractor as K, AudioExtension as Q, AudioListener as $, AudioSource as Y, AudioTrackHandler as J, Avatar as q, AvatarBlink_Simple as ee, AvatarEyeLook_Rotation as te, AvatarLoader as oe, AvatarMarker as re, AvatarModel as ne, Avatar_Brain_LookAt as ie, Avatar_MouthShapes as ae, Avatar_MustacheShake as se, Avatar_POI as le, Axes as de, AxesHelper as ce, BUILD_TIME as me, BaseUIComponent as pe, BasicIKConstraint as ge, BehaviorExtension as Se, BehaviorModel as ue, Component$1 as Ce, BlobStorage as ye, BloomEffect as Ee, BoxCollider as Re, BoxGizmo as he, BoxHelperComponent as fe, Button as ve, ButtonsFactory as Pe, CallDirection as Ae, CallInfo as Te, Camera as be, CameraTargetReachedEvent as Me, Canvas as Ie, CanvasGroup as De, CapsuleCollider as Oe, ChangeMaterialOnClick as xe, ChangeTransformOnClick as ke, CharacterController as Le, CharacterControllerInput as Be, ChromaticAberration as Ne, CircularBuffer as Fe, ClearFlags as we, ClickThrough as Ue, ClipExtrapolation as We, Collider as Ge, Collision as He, CollisionDetectionMode as Xe, ColorAdjustments as ze, ColorBySpeedModule as Ve, ColorOverLifetimeModule as _e, Component$1 as je, ComponentLifecycleEvents as Ze, ConnectionEvents as Ke, ContactPoint as Qe, ContactShadows as $e, ContextArgs as Ye, ContextEvent as Je, ContextRegistry as qe, ControlTrackHandler as et, CursorFollow as tt, CustomBranding as ot, CustomShader as rt, DefaultReflectionMode as nt, Deletable as it, DeleteBox as at, DepthOfField as st, DeviceFlag as lt, DeviceUtilities as dt, DocumentExtension as ct, DragControls as mt, DragMode as pt, DropListener as gt, Duplicatable as St, EffectWrapper as ut, EmissionModule as Ct, EmphasizeOnClick as yt, EngineLoadingView as Et, EnvironmentScene as Rt, EventList as ht, EventListEvent as ft, EventSystem as vt, EventTrigger as Pt, FieldWithDefault as At, FileReference as Tt, FileReferenceSerializer as bt, FileSpawnModel as Mt, File_Event as It, FixedJoint as Dt, Fog as Ot, FontStyle as xt, FrameEvent as kt, GENERATOR as Lt, Gizmos as Bt, GltfExport as Nt, GltfExportBox as Ft, Gradient as wt, Graphic as Ut, GraphicRaycaster as Wt, Graphics as Gt, GridHelper as Ht, GridLayoutGroup as Xt, GroundProjectedEnv as zt, GroupActionModel as Vt, HideFlags as _t, HideOnStart as jt, HingeJoint as Zt, HorizontalLayoutGroup as Kt, HorizontalWrapMode as Qt, HostData as $t, HoverAnimation as Yt, Image as Jt, ImageReference as qt, ImageReferenceSerializer as eo, InheritVelocityModule as to, Input as oo, InputEventQueue as ro, InputEvents as no, InputField as io, InstanceHandle as ao, InstancingHandler as so, InstancingUtil as lo, InstantiateEvent as co, InstantiateIdProvider as mo, InstantiateOptions as po, Interactable as go, InternalScreenshotUtils as So, JoinedRoomResponse as uo, KeyEventArgs as Co, Keyframe as yo, LODGroup as Eo, LODModel as Ro, LeftRoomResponse as ho, Light as fo, LightData as vo, LimitVelocityOverLifetimeModule as Po, LoadingElementOptions as Ao, LogStats as To, LogType as bo, LookAt as Mo, LookAtConstraint as Io, MainModule as Do, MarkerTrackHandler as Oo, MarkerType as xo, MaskableGraphic as ko, MaterialPropertyBlock as Lo, MaterialX as Bo, Mathf as No, MeshCollider as Fo, MeshRenderer as wo, MinMaxCurve as Uo, MinMaxGradient as Wo, NEEDLE_ENGINE_FEATURE_FLAGS as Go, MODULES as Ho, NEKeyboardEvent as Xo, NEPointerEvent as zo, NeedleButtonElement as Vo, ContextRegistry as _o, NeedleEngineModelLoader as jo, NeedleEngineWebComponent as Zo, NeedleMenu as Ko, NeedlePatchesKey as Qo, USDZExporter as $o, NeedleXRController as Yo, NeedleXRSync as Jo, NeedleXRUtils as qo, NestedGltf as er, NetworkConnection as tr, NetworkedStreamEvents as or, NetworkedStreams as rr, Networking as nr, NewInstanceModel as ir, NoiseModule as ar, ObjectRaycaster as sr, ObjectUtils as lr, OffsetConstraint as dr, OneEuroFilter as cr, OneEuroFilterXYZ as mr, OpenURL as pr, OrbitControls as gr, Outline as Sr, OwnershipEvent as ur, OwnershipModel as Cr, PUBLIC_KEY as yr, Padding as Er, ParticleBurst as Rr, ParticleSubEmitter as hr, ParticleSystem as fr, ParticleSystemBaseBehaviour as vr, ParticleSystemRenderer as Pr, ParticleSystemShapeType as Ar, PeerHandle as Tr, PeerNetworking as br, Physics as Mr, PhysicsExtension as Ir, PhysicsMaterialCombine as Dr, PixelationEffect as Or, PlayAnimationOnClick as xr, PlayAudioOnClick as kr, PlayableDirector as Lr, PlayerColor as Br, PlayerState as Nr, PlayerStateEvent as Fr, PlayerSync as wr, PlayerView as Ur, PlayerViewManager as Wr, PointerEventData as Gr, PointerType as Hr, PostProcessing as Xr, PostProcessingEffect as zr, PostProcessingEffectOrder as Vr, PostProcessingHandler as _r, Volume as jr, Prefabs as Zr, PreliminaryAction as Kr, PreliminaryTrigger as Qr, PreviewHelper as $r, PrimitiveType as Yr, Progress as Jr, PromiseAllWithErrors as qr, PromiseErrorResult as en, RGBAColor as tn, RapierPhysics as on, RawImage as rn, RaycastOptions as nn, Rect as an, RectTransform as sn, ReflectionProbe as ln, RegisteredAnimationInfo as dn, RemoteSkybox as cn, RenderTexture as mn, RenderTextureSerializer as pn, Renderer as gn, RendererData as Sn, RendererLightmap as un, Rigidbody as Cn, RigidbodyConstraints as yn, RoomEvents as En, RotationBySpeedModule as Rn, RotationOverLifetimeModule as hn, SceneLightSettings as fn, SceneSwitcher as vn, ScreenCapture as Pn, ScreenSpaceAmbientOcclusion as An, ScreenSpaceAmbientOcclusionN8 as Tn, ScrollFollow as bn, SeeThrough as Mn, SendQueue as In, SerializationContext as Dn, SetActiveOnClick as On, ShadowCatcher as xn, ShapeModule as kn, ShapeOverlapResult as Ln, SharpeningEffect as Bn, SignalAsset as Nn, SignalReceiver as Fn, SignalReceiverEvent as wn, SignalTrackHandler as Un, Size as Wn, SizeBySpeedModule as Gn, SizeOverLifetimeModule as Hn, SkinnedMeshRenderer as Xn, SmoothFollow as zn, SpatialGrabRaycaster as Vn, SpatialHtml as _n, SpatialTrigger as jn, SpatialTriggerReceiver as Zn, SpectatorCamera as Kn, SphereCollider as Qn, SphereIntersection as $n, SplineContainer as Yn, SplineData as Jn, SplineUtils as qn, SplineWalker as ei, Sprite as ti, SpriteData as oi, SpriteRenderer as ri, SpriteSheet as ni, StateMachineBehaviour as ii, StreamEndedEvent as ai, StreamReceivedEvent as si, SubEmitterSystem as li, SyncedCamera as di, SyncedRoom as ci, SyncedTransform as mi, TapGestureTrigger as pi, TeleportTarget as gi, TestRunner as Si, TestSimulateUserData as ui, Text as Ci, TextAnchor as yi, TextBuilder as Ei, TextExtension as Ri, TextureSheetAnimationModule as hi, TiltShiftEffect as fi, Time as vi, ToneMappingEffect as Pi, TrackHandler as Ai, TrackType as Ti, TrailModule as bi, TransformData as Mi, TransformGizmo as Ii, TriggerBuilder as Di, TriggerModel as Oi, UIRaycastUtils as xi, UIRootComponent as ki, USDDocument as Li, USDObject as Bi, USDWriter as Ni, USDZExporter$1 as Fi, USDZText as wi, USDZUIExtension as Ui, UriSerializer as Wi, UsageMarker as Gi, UserJoinedOrLeftRoomModel as Hi, VariantAction as Xi, VelocityOverLifetimeModule as zi, VerticalLayoutGroup as Vi, VerticalWrapMode as _i, VideoPlayer as ji, ViewBox as Zi, ViewDevice as Ki, Vignette as Qi, VisibilityAction as $i, Voip as Yi, Volume as Ji, VolumeParameter as qi, VolumeProfile as ea, WaitForFrames as ta, WaitForPromise as oa, WaitForSeconds as ra, Watch as na, WebARCameraBackground as ia, WebARSessionRoot as aa, WebXR as sa, WebXRButtonFactory as la, WebXRImageTracking as da, WebXRImageTrackingModel as ca, WebXRPlaneTracking as ma, WebXRTrackedImage as pa, XRControllerFollow as ga, XRControllerModel as Sa, XRControllerMovement as ua, XRFlag as Ca, XRRig as ya, XRState as Ea, XRStateFlag as Ra, __Ignore as ha, __internalNotifyObjectDestroyed as fa, activeInHierarchyFieldName as va, addAttributeChangeCallback as Pa, addComponent as Aa, addCustomExtensionPlugin as Ta, addNewComponent as ba, addPatch as Ma, apply as Ia, applyHMRChanges as Da, applyPrototypeExtensions as Oa, beginListenDestroy as xa, beginListenInstantiate as ka, binaryIdentifierCasts as La, build_scene_functions as Ba, builtinComponentKeyName as Na, calculateProgress01 as Fa, clearMessages as wa, clearMessages as Ua, colorSerializer as Wa, compareAssociation as Ga, componentSerializer as Ha, copyTexture as Xa, createMotion as za, debugNet as Va, debugOwner as _a, decompressGpuTexture as ja, deepClone as Za, delay as Ka, delayForFrames as Qa, deserializeObject as $a, destroy as Ya, destroyComponentInstance as Ja, determineMimeTypeFromExtension as qa, disposeObjectResources as es, disposeStream as ts, editorGuidKeyName as os, enableSpatialConsole as rs, euler as ns, eventListSerializer as is, exportAsGLTF as as, findByGuid as ss, findObjectOfType as ls, findObjectsOfType as ds, findResourceUsers as cs, fitCamera as ms, fitObjectIntoVolume as ps, foreachComponent as gs, foreachComponentEnumerator as Ss, forward as us, generateQRCode as Cs, generateSeed as ys, getBoundingBox as Es, getCameraController as Rs, getComponent as hs, getComponentInChildren as fs, getComponentInParent as vs, getComponents as Ps, getComponentsInChildren as As, getComponentsInParent as Ts, getFormattedDate as bs, getIconElement as Ms, getIconTexture as Is, getLoader as Ds, getOrAddComponent as Os, getParam as xs, getParentHierarchyPath as ks, getPath as Ls, getPeerOptions as Bs, getPeerjsInstance as Ns, getResourceUserCount as Fs, getSceneData as ws, getTempColor as Us, getTempQuaternion as Ws, getTempVector as Gs, getUrlParams as Hs, getVisibleInCustomShadowRendering as Xs, getWorldDirection as zs, getWorldEuler as Vs, getWorldPosition as _s, getWorldQuaternion as js, getWorldRotation as Zs, getWorldScale as Ks, hasCommercialLicense as Qs, hasIndieLicense as $s, hasPointerEventComponent as Ys, hasProLicense as Js, hideDebugConsole as qs, imageToCanvas as el, initPhysics as tl, instantiate as ol, invokeLoadedImportPluginHooks as rl, invokeXRSessionEnd as nl, invokeXRSessionStart as il, isActiveInHierarchy as al, isActiveSelf as sl, isAndroidDevice as ll, isAnimationAction as dl, isComponent as cl, isDebugMode as ml, isDesktop as pl, isDestroyed as gl, isDevEnvironment as Sl, isDisposed as ul, isExporting as Cl, isGLTFModel as yl, isHostedOnGlitch as El, isHotReloadEnabled as Rl, isHotReloading as hl, isIPad as fl, isIconElement as vl, isLocalNetwork as Pl, isMacOS as Al, isMobileDevice as Tl, isMozillaXR as bl, isQuest as Ml, isResourceTrackingEnabled as Il, isSafari as Dl, isUsingInstancing as Ol, isiOS as xl, isiPad as kl, loadPMREM as Ll, loadSync as Bl, logHierarchy as Nl, lookAtInverse as Fl, lookAtObject as wl, lookAtScreenPoint as Ul, makeId as Wl, makeIdFromRandomWords as Gl, makeNameSafe as Hl, markAsInstancedRendered as Xl, microphonePermissionsGranted as zl, nameof as Vl, nameofFactory as _l, needle as jl, objectSerializer as Zl, offBeforeXRSession as Kl, offXRSessionEnd as Ql, offXRSessionStart as $l, onBeforeXRSession as Yl, onSyncDestroy as Jl, onSyncInstantiate as ql, onXRSessionEnd as ed, onXRSessionStart as td, parseSync as od, placeOnSurface as rd, postprocessFBXMaterials as nd, prefix as id, pushState as ad, randomNumber as sd, registerBinaryType as ld, registerComponent as dd, registerComponentExtension as cd, registerCustomEffectType as md, registerExportExtensions as pd, registerExtensions as gd, registerHotReloadType as Sd, registerLoader as ud, registerPrefabProvider as Cd, registerPrototypeExtensions as yd, registerType as Ed, relativePathPrefix as Rd, removeAttributeChangeCallback as hd, removeComponent as fd, removeCustomImportExtensionType as vd, removePatch as Pd, resolveUrl as Ad, sanitizeString as Td, saveImage as bd, screenshot as Md, screenshot2 as Id, sendDestroyed as Dd, serializable as Od, serializeObject as xd, serializeable as kd, setActive as Ld, setAllowBalloonMessages as Bd, setAllowOverlayMessages as Nd, setAutoFitEnabled as Fd, setCameraController as wd, setDestroyed as Ud, setDevEnvironment as Wd, setDisposable as Gd, setDontDestroy as Hd, setOrAddParamsToUrl as Xd, setParam as zd, setParamWithoutReload as Vd, setPeerOptions as _d, setResourceTrackingEnabled as jd, setState as Zd, setVisibleInCustomShadowRendering as Kd, setWorldEuler as Qd, setWorldPosition as $d, setWorldPositionXYZ as Yd, setWorldQuaternion as Jd, setWorldQuaternionXYZW as qd, setWorldRotation as ec, setWorldRotationXYZ as tc, setWorldScale as oc, showBalloonError as rc, showBalloonMessage as nc, showBalloonWarning as ic, showDebugConsole as ac, slerp as sc, syncDestroy as lc, syncField as dc, syncInstantiate as cc, textureToCanvas as mc, toSourceId as pc, tryCastBinary as gc, tryDetermineMimetypeFromBinary as Sc, tryDetermineMimetypeFromURL as uc, tryFindObject as Cc, tryGetGuid as yc, unregisterHotReloadType as Ec, unregisterPrefabProvider as Rc, unwatchWrite as hc, useForAutoFit as fc, validate as vc, watchWrite as Pc } from "./needle-engine.bundle-B35n_IHX.js";
|
|
1
|
+
import { initEngine as i, GameObject as r, onClear as a, onDestroy as s, onInitialized as l, onAfterRender as d, onBeforeRender as c, onUpdate as m, onStart as p, TypeStore as g, loadAsset as S, NeedleXRSession as u, Context as C, VERSION as y, Component as E, Components as R } from "./needle-engine.bundle-CcPGKcD_.js";
|
|
2
|
+
import { $componentName as T, $physicsKey as b, ActionBuilder as M, ActionCollection as I, ActionModel as D, Addressables as O, AlignmentConstraint as x, AmbientMode as k, Animation as L, AnimationCurve as B, AnimationExtension as N, AnimationTrackHandler as F, AnimationUtils as w, Animator as U, AnimatorConditionMode as W, AnimatorController as G, AnimatorControllerBuilder as H, AnimatorControllerParameterType as X, AnimatorStateInfo as z, Antialiasing as V, Application as _, AssetDatabase as j, AssetReference as Z, Attractor as K, AudioExtension as Q, AudioListener as $, AudioSource as Y, AudioTrackHandler as J, Avatar as q, AvatarBlink_Simple as ee, AvatarEyeLook_Rotation as te, AvatarLoader as oe, AvatarMarker as re, AvatarModel as ne, Avatar_Brain_LookAt as ie, Avatar_MouthShapes as ae, Avatar_MustacheShake as se, Avatar_POI as le, Axes as de, AxesHelper as ce, BUILD_TIME as me, BaseUIComponent as pe, BasicIKConstraint as ge, BehaviorExtension as Se, BehaviorModel as ue, Component$1 as Ce, BlobStorage as ye, BloomEffect as Ee, BoxCollider as Re, BoxGizmo as he, BoxHelperComponent as fe, Button as ve, ButtonsFactory as Pe, CallDirection as Ae, CallInfo as Te, Camera as be, CameraTargetReachedEvent as Me, Canvas as Ie, CanvasGroup as De, CapsuleCollider as Oe, ChangeMaterialOnClick as xe, ChangeTransformOnClick as ke, CharacterController as Le, CharacterControllerInput as Be, ChromaticAberration as Ne, CircularBuffer as Fe, ClearFlags as we, ClickThrough as Ue, ClipExtrapolation as We, Collider as Ge, Collision as He, CollisionDetectionMode as Xe, ColorAdjustments as ze, ColorBySpeedModule as Ve, ColorOverLifetimeModule as _e, Component$1 as je, ComponentLifecycleEvents as Ze, ConnectionEvents as Ke, ContactPoint as Qe, ContactShadows as $e, ContextArgs as Ye, ContextEvent as Je, ContextRegistry as qe, ControlTrackHandler as et, CursorFollow as tt, CustomBranding as ot, CustomShader as rt, DefaultReflectionMode as nt, Deletable as it, DeleteBox as at, DepthOfField as st, DeviceFlag as lt, DeviceUtilities as dt, DocumentExtension as ct, DragControls as mt, DragMode as pt, DropListener as gt, Duplicatable as St, EffectWrapper as ut, EmissionModule as Ct, EmphasizeOnClick as yt, EngineLoadingView as Et, EnvironmentScene as Rt, EventList as ht, EventListEvent as ft, EventSystem as vt, EventTrigger as Pt, FieldWithDefault as At, FileReference as Tt, FileReferenceSerializer as bt, FileSpawnModel as Mt, File_Event as It, FixedJoint as Dt, Fog as Ot, FontStyle as xt, FrameEvent as kt, GENERATOR as Lt, Gizmos as Bt, GltfExport as Nt, GltfExportBox as Ft, Gradient as wt, Graphic as Ut, GraphicRaycaster as Wt, Graphics as Gt, GridHelper as Ht, GridLayoutGroup as Xt, GroundProjectedEnv as zt, GroupActionModel as Vt, HideFlags as _t, HideOnStart as jt, HingeJoint as Zt, HorizontalLayoutGroup as Kt, HorizontalWrapMode as Qt, HostData as $t, HoverAnimation as Yt, Image as Jt, ImageReference as qt, ImageReferenceSerializer as eo, InheritVelocityModule as to, Input as oo, InputEventQueue as ro, InputEvents as no, InputField as io, InstanceHandle as ao, InstancingHandler as so, InstancingUtil as lo, InstantiateEvent as co, InstantiateIdProvider as mo, InstantiateOptions as po, Interactable as go, InternalScreenshotUtils as So, JoinedRoomResponse as uo, KeyEventArgs as Co, Keyframe as yo, LODGroup as Eo, LODModel as Ro, LeftRoomResponse as ho, Light as fo, LightData as vo, LimitVelocityOverLifetimeModule as Po, LoadingElementOptions as Ao, LogStats as To, LogType as bo, LookAt as Mo, LookAtConstraint as Io, MainModule as Do, MarkerTrackHandler as Oo, MarkerType as xo, MaskableGraphic as ko, MaterialPropertyBlock as Lo, MaterialX as Bo, Mathf as No, MeshCollider as Fo, MeshRenderer as wo, MinMaxCurve as Uo, MinMaxGradient as Wo, NEEDLE_ENGINE_FEATURE_FLAGS as Go, MODULES as Ho, NEKeyboardEvent as Xo, NEPointerEvent as zo, NeedleButtonElement as Vo, ContextRegistry as _o, NeedleEngineModelLoader as jo, NeedleEngineWebComponent as Zo, NeedleMenu as Ko, NeedlePatchesKey as Qo, USDZExporter as $o, NeedleXRController as Yo, NeedleXRSync as Jo, NeedleXRUtils as qo, NestedGltf as er, NetworkConnection as tr, NetworkedStreamEvents as or, NetworkedStreams as rr, Networking as nr, NewInstanceModel as ir, NoiseModule as ar, ObjectRaycaster as sr, ObjectUtils as lr, OffsetConstraint as dr, OneEuroFilter as cr, OneEuroFilterXYZ as mr, OpenURL as pr, OrbitControls as gr, Outline as Sr, OwnershipEvent as ur, OwnershipModel as Cr, PUBLIC_KEY as yr, Padding as Er, ParticleBurst as Rr, ParticleSubEmitter as hr, ParticleSystem as fr, ParticleSystemBaseBehaviour as vr, ParticleSystemRenderer as Pr, ParticleSystemShapeType as Ar, PeerHandle as Tr, PeerNetworking as br, Physics as Mr, PhysicsExtension as Ir, PhysicsMaterialCombine as Dr, PixelationEffect as Or, PlayAnimationOnClick as xr, PlayAudioOnClick as kr, PlayableDirector as Lr, PlayerColor as Br, PlayerState as Nr, PlayerStateEvent as Fr, PlayerSync as wr, PlayerView as Ur, PlayerViewManager as Wr, PointerEventData as Gr, PointerType as Hr, PostProcessing as Xr, PostProcessingEffect as zr, PostProcessingEffectOrder as Vr, PostProcessingHandler as _r, Volume as jr, Prefabs as Zr, PreliminaryAction as Kr, PreliminaryTrigger as Qr, PreviewHelper as $r, PrimitiveType as Yr, Progress as Jr, PromiseAllWithErrors as qr, PromiseErrorResult as en, RGBAColor as tn, RapierPhysics as on, RawImage as rn, RaycastOptions as nn, Rect as an, RectTransform as sn, ReflectionProbe as ln, RegisteredAnimationInfo as dn, RemoteSkybox as cn, RenderTexture as mn, RenderTextureSerializer as pn, Renderer as gn, RendererData as Sn, RendererLightmap as un, Rigidbody as Cn, RigidbodyConstraints as yn, RoomEvents as En, RotationBySpeedModule as Rn, RotationOverLifetimeModule as hn, SceneLightSettings as fn, SceneSwitcher as vn, ScreenCapture as Pn, ScreenSpaceAmbientOcclusion as An, ScreenSpaceAmbientOcclusionN8 as Tn, ScrollFollow as bn, SeeThrough as Mn, SendQueue as In, SerializationContext as Dn, SetActiveOnClick as On, ShadowCatcher as xn, ShapeModule as kn, ShapeOverlapResult as Ln, SharpeningEffect as Bn, SignalAsset as Nn, SignalReceiver as Fn, SignalReceiverEvent as wn, SignalTrackHandler as Un, Size as Wn, SizeBySpeedModule as Gn, SizeOverLifetimeModule as Hn, SkinnedMeshRenderer as Xn, SmoothFollow as zn, SpatialGrabRaycaster as Vn, SpatialHtml as _n, SpatialTrigger as jn, SpatialTriggerReceiver as Zn, SpectatorCamera as Kn, SphereCollider as Qn, SphereIntersection as $n, SplineContainer as Yn, SplineData as Jn, SplineUtils as qn, SplineWalker as ei, Sprite as ti, SpriteData as oi, SpriteRenderer as ri, SpriteSheet as ni, StateMachineBehaviour as ii, StreamEndedEvent as ai, StreamReceivedEvent as si, SubEmitterSystem as li, SyncedCamera as di, SyncedRoom as ci, SyncedTransform as mi, TapGestureTrigger as pi, TeleportTarget as gi, TestRunner as Si, TestSimulateUserData as ui, Text as Ci, TextAnchor as yi, TextBuilder as Ei, TextExtension as Ri, TextureSheetAnimationModule as hi, TiltShiftEffect as fi, Time as vi, ToneMappingEffect as Pi, TrackHandler as Ai, TrackType as Ti, TrailModule as bi, TransformData as Mi, TransformGizmo as Ii, TriggerBuilder as Di, TriggerModel as Oi, UIRaycastUtils as xi, UIRootComponent as ki, USDDocument as Li, USDObject as Bi, USDWriter as Ni, USDZExporter$1 as Fi, USDZText as wi, USDZUIExtension as Ui, UriSerializer as Wi, UsageMarker as Gi, UserJoinedOrLeftRoomModel as Hi, VariantAction as Xi, VelocityOverLifetimeModule as zi, VerticalLayoutGroup as Vi, VerticalWrapMode as _i, VideoPlayer as ji, ViewBox as Zi, ViewDevice as Ki, Vignette as Qi, VisibilityAction as $i, Voip as Yi, Volume as Ji, VolumeParameter as qi, VolumeProfile as ea, WaitForFrames as ta, WaitForPromise as oa, WaitForSeconds as ra, Watch as na, WebARCameraBackground as ia, WebARSessionRoot as aa, WebXR as sa, WebXRButtonFactory as la, WebXRImageTracking as da, WebXRImageTrackingModel as ca, WebXRPlaneTracking as ma, WebXRTrackedImage as pa, XRControllerFollow as ga, XRControllerModel as Sa, XRControllerMovement as ua, XRFlag as Ca, XRRig as ya, XRState as Ea, XRStateFlag as Ra, __Ignore as ha, __internalNotifyObjectDestroyed as fa, activeInHierarchyFieldName as va, addAttributeChangeCallback as Pa, addComponent as Aa, addCustomExtensionPlugin as Ta, addNewComponent as ba, addPatch as Ma, apply as Ia, applyHMRChanges as Da, applyPrototypeExtensions as Oa, beginListenDestroy as xa, beginListenInstantiate as ka, binaryIdentifierCasts as La, build_scene_functions as Ba, builtinComponentKeyName as Na, calculateProgress01 as Fa, clearMessages as wa, clearMessages as Ua, colorSerializer as Wa, compareAssociation as Ga, componentSerializer as Ha, copyTexture as Xa, createMotion as za, debugNet as Va, debugOwner as _a, decompressGpuTexture as ja, deepClone as Za, delay as Ka, delayForFrames as Qa, deserializeObject as $a, destroy as Ya, destroyComponentInstance as Ja, determineMimeTypeFromExtension as qa, disposeObjectResources as es, disposeStream as ts, editorGuidKeyName as os, enableSpatialConsole as rs, eventListSerializer as ns, exportAsGLTF as is, findByGuid as as, findObjectOfType as ss, findObjectsOfType as ls, findResourceUsers as ds, fitCamera as cs, fitObjectIntoVolume as ms, foreachComponent as ps, foreachComponentEnumerator as gs, forward as Ss, generateQRCode as us, generateSeed as Cs, getBoundingBox as ys, getCameraController as Es, getComponent as Rs, getComponentInChildren as hs, getComponentInParent as fs, getComponents as vs, getComponentsInChildren as Ps, getComponentsInParent as As, getFormattedDate as Ts, getIconElement as bs, getIconTexture as Ms, getLoader as Is, getOrAddComponent as Ds, getParam as Os, getParentHierarchyPath as xs, getPath as ks, getPeerOptions as Ls, getPeerjsInstance as Bs, getResourceUserCount as Ns, getSceneData as Fs, getTempColor as ws, getTempQuaternion as Us, getTempVector as Ws, getUrlParams as Gs, getVisibleInCustomShadowRendering as Hs, getWorldDirection as Xs, getWorldEuler as zs, getWorldPosition as Vs, getWorldQuaternion as _s, getWorldRotation as js, getWorldScale as Zs, hasCommercialLicense as Ks, hasIndieLicense as Qs, hasPointerEventComponent as $s, hasProLicense as Ys, hideDebugConsole as Js, imageToCanvas as qs, initAddressableSerializers as el, initBuiltinSerializers as tl, initPhysics as ol, initVolumeParameterSerializer as rl, instantiate as nl, invokeLoadedImportPluginHooks as il, invokeXRSessionEnd as al, invokeXRSessionStart as sl, isActiveInHierarchy as ll, isActiveSelf as dl, isAndroidDevice as cl, isAnimationAction as ml, isComponent as pl, isDebugMode as gl, isDesktop as Sl, isDestroyed as ul, isDevEnvironment as Cl, isDisposed as yl, isExporting as El, isGLTFModel as Rl, isHostedOnGlitch as hl, isHotReloadEnabled as fl, isHotReloading as vl, isIPad as Pl, isIconElement as Al, isLocalNetwork as Tl, isMacOS as bl, isMobileDevice as Ml, isMozillaXR as Il, isQuest as Dl, isResourceTrackingEnabled as Ol, isSafari as xl, isUsingInstancing as kl, isiOS as Ll, isiPad as Bl, loadPMREM as Nl, loadSync as Fl, logHierarchy as wl, lookAtInverse as Ul, lookAtObject as Wl, lookAtScreenPoint as Gl, makeId as Hl, makeIdFromRandomWords as Xl, makeNameSafe as zl, markAsInstancedRendered as Vl, microphonePermissionsGranted as _l, nameof as jl, nameofFactory as Zl, needle as Kl, objectSerializer as Ql, offBeforeXRSession as $l, offXRSessionEnd as Yl, offXRSessionStart as Jl, onBeforeXRSession as ql, onSyncDestroy as ed, onSyncInstantiate as td, onXRSessionEnd as od, onXRSessionStart as rd, parseSync as nd, placeOnSurface as id, postprocessFBXMaterials as ad, prefix as sd, pushState as ld, randomNumber as dd, registerBinaryType as cd, registerComponent as md, registerComponentExtension as pd, registerCustomEffectType as gd, registerExportExtensions as Sd, registerExtensions as ud, registerHotReloadType as Cd, registerLoader as yd, registerPrefabProvider as Ed, registerPrototypeExtensions as Rd, registerType as hd, relativePathPrefix as fd, removeAttributeChangeCallback as vd, removeComponent as Pd, removeCustomImportExtensionType as Ad, removePatch as Td, resolveUrl as bd, sanitizeString as Md, saveImage as Id, screenshot as Dd, screenshot2 as Od, sendDestroyed as xd, serializable as kd, serializeObject as Ld, serializeable as Bd, setActive as Nd, setAllowBalloonMessages as Fd, setAllowOverlayMessages as wd, setAutoFitEnabled as Ud, setCameraController as Wd, setDestroyed as Gd, setDevEnvironment as Hd, setDisposable as Xd, setDontDestroy as zd, setOrAddParamsToUrl as Vd, setParam as _d, setParamWithoutReload as jd, setPeerOptions as Zd, setResourceTrackingEnabled as Kd, setState as Qd, setVisibleInCustomShadowRendering as $d, setWorldEuler as Yd, setWorldPosition as Jd, setWorldPositionXYZ as qd, setWorldQuaternion as ec, setWorldQuaternionXYZW as tc, setWorldRotation as oc, setWorldRotationXYZ as rc, setWorldScale as nc, showBalloonError as ic, showBalloonMessage as ac, showBalloonWarning as sc, showDebugConsole as lc, slerp as dc, syncDestroy as cc, syncField as mc, syncInstantiate as pc, textureToCanvas as gc, toSourceId as Sc, tryCastBinary as uc, tryDetermineMimetypeFromBinary as Cc, tryDetermineMimetypeFromURL as yc, tryFindObject as Ec, tryGetGuid as Rc, unregisterHotReloadType as hc, unregisterPrefabProvider as fc, unwatchWrite as vc, useForAutoFit as Pc, validate as Ac, watchWrite as Tc } from "./needle-engine.bundle-CcPGKcD_.js";
|
|
3
3
|
import { THREE as h } from "./three.js";
|
|
4
|
-
import { NEEDLE_progressive as
|
|
4
|
+
import { NEEDLE_progressive as Mc } from "./gltf-progressive-DUlhxdv4.js";
|
|
5
5
|
i();
|
|
6
6
|
const t = {
|
|
7
7
|
VERSION: y,
|
|
@@ -224,7 +224,7 @@ export {
|
|
|
224
224
|
Wo as MinMaxGradient,
|
|
225
225
|
Go as NEEDLE_ENGINE_FEATURE_FLAGS,
|
|
226
226
|
Ho as NEEDLE_ENGINE_MODULES,
|
|
227
|
-
|
|
227
|
+
Mc as NEEDLE_progressive,
|
|
228
228
|
Xo as NEKeyboardEvent,
|
|
229
229
|
zo as NEPointerEvent,
|
|
230
230
|
Vo as NeedleButtonElement,
|
|
@@ -459,194 +459,196 @@ export {
|
|
|
459
459
|
ts as disposeStream,
|
|
460
460
|
os as editorGuidKeyName,
|
|
461
461
|
rs as enableSpatialConsole,
|
|
462
|
-
ns as
|
|
463
|
-
is as
|
|
464
|
-
as as
|
|
465
|
-
ss as
|
|
466
|
-
ls as
|
|
467
|
-
ds as
|
|
468
|
-
cs as
|
|
469
|
-
ms as
|
|
470
|
-
ps as
|
|
471
|
-
gs as
|
|
472
|
-
Ss as
|
|
473
|
-
us as
|
|
474
|
-
Cs as
|
|
475
|
-
ys as
|
|
476
|
-
Es as
|
|
477
|
-
Rs as
|
|
478
|
-
hs as
|
|
479
|
-
fs as
|
|
480
|
-
vs as
|
|
481
|
-
Ps as
|
|
482
|
-
As as
|
|
483
|
-
Ts as
|
|
484
|
-
bs as
|
|
485
|
-
Ms as
|
|
486
|
-
Is as
|
|
487
|
-
Ds as
|
|
488
|
-
Os as
|
|
489
|
-
xs as
|
|
490
|
-
ks as
|
|
491
|
-
Ls as
|
|
492
|
-
Bs as
|
|
493
|
-
Ns as
|
|
494
|
-
Fs as
|
|
495
|
-
ws as
|
|
496
|
-
Us as
|
|
497
|
-
Ws as
|
|
498
|
-
Gs as
|
|
499
|
-
Hs as
|
|
500
|
-
Xs as
|
|
501
|
-
zs as
|
|
502
|
-
Vs as
|
|
503
|
-
_s as
|
|
504
|
-
js as
|
|
505
|
-
Zs as
|
|
506
|
-
Ks as
|
|
507
|
-
Qs as
|
|
508
|
-
$s as
|
|
509
|
-
Ys as
|
|
510
|
-
Js as
|
|
511
|
-
qs as
|
|
512
|
-
el as
|
|
513
|
-
tl as
|
|
514
|
-
ol as
|
|
515
|
-
rl as
|
|
516
|
-
nl as
|
|
517
|
-
il as
|
|
518
|
-
al as
|
|
519
|
-
sl as
|
|
520
|
-
ll as
|
|
521
|
-
dl as
|
|
522
|
-
cl as
|
|
523
|
-
ml as
|
|
524
|
-
pl as
|
|
525
|
-
gl as
|
|
526
|
-
Sl as
|
|
527
|
-
ul as
|
|
528
|
-
Cl as
|
|
529
|
-
yl as
|
|
530
|
-
El as
|
|
531
|
-
Rl as
|
|
532
|
-
hl as
|
|
533
|
-
fl as
|
|
534
|
-
vl as
|
|
535
|
-
Pl as
|
|
536
|
-
Al as
|
|
537
|
-
Tl as
|
|
538
|
-
bl as
|
|
539
|
-
Ml as
|
|
540
|
-
Il as
|
|
541
|
-
Dl as
|
|
542
|
-
Ol as
|
|
543
|
-
xl as
|
|
544
|
-
kl as
|
|
462
|
+
ns as eventListSerializer,
|
|
463
|
+
is as exportAsGLTF,
|
|
464
|
+
as as findByGuid,
|
|
465
|
+
ss as findObjectOfType,
|
|
466
|
+
ls as findObjectsOfType,
|
|
467
|
+
ds as findResourceUsers,
|
|
468
|
+
cs as fitCamera,
|
|
469
|
+
ms as fitObjectIntoVolume,
|
|
470
|
+
ps as foreachComponent,
|
|
471
|
+
gs as foreachComponentEnumerator,
|
|
472
|
+
Ss as forward,
|
|
473
|
+
us as generateQRCode,
|
|
474
|
+
Cs as generateSeed,
|
|
475
|
+
ys as getBoundingBox,
|
|
476
|
+
Es as getCameraController,
|
|
477
|
+
Rs as getComponent,
|
|
478
|
+
hs as getComponentInChildren,
|
|
479
|
+
fs as getComponentInParent,
|
|
480
|
+
vs as getComponents,
|
|
481
|
+
Ps as getComponentsInChildren,
|
|
482
|
+
As as getComponentsInParent,
|
|
483
|
+
Ts as getFormattedDate,
|
|
484
|
+
bs as getIconElement,
|
|
485
|
+
Ms as getIconTexture,
|
|
486
|
+
Is as getLoader,
|
|
487
|
+
Ds as getOrAddComponent,
|
|
488
|
+
Os as getParam,
|
|
489
|
+
xs as getParentHierarchyPath,
|
|
490
|
+
ks as getPath,
|
|
491
|
+
Ls as getPeerOptions,
|
|
492
|
+
Bs as getPeerjsInstance,
|
|
493
|
+
Ns as getResourceUserCount,
|
|
494
|
+
Fs as getSceneData,
|
|
495
|
+
ws as getTempColor,
|
|
496
|
+
Us as getTempQuaternion,
|
|
497
|
+
Ws as getTempVector,
|
|
498
|
+
Gs as getUrlParams,
|
|
499
|
+
Hs as getVisibleInCustomShadowRendering,
|
|
500
|
+
Xs as getWorldDirection,
|
|
501
|
+
zs as getWorldEuler,
|
|
502
|
+
Vs as getWorldPosition,
|
|
503
|
+
_s as getWorldQuaternion,
|
|
504
|
+
js as getWorldRotation,
|
|
505
|
+
Zs as getWorldScale,
|
|
506
|
+
Ks as hasCommercialLicense,
|
|
507
|
+
Qs as hasIndieLicense,
|
|
508
|
+
$s as hasPointerEventComponent,
|
|
509
|
+
Ys as hasProLicense,
|
|
510
|
+
Js as hideDebugConsole,
|
|
511
|
+
qs as imageToCanvas,
|
|
512
|
+
el as initAddressableSerializers,
|
|
513
|
+
tl as initBuiltinSerializers,
|
|
514
|
+
ol as initPhysics,
|
|
515
|
+
rl as initVolumeParameterSerializer,
|
|
516
|
+
nl as instantiate,
|
|
517
|
+
il as invokeLoadedImportPluginHooks,
|
|
518
|
+
al as invokeXRSessionEnd,
|
|
519
|
+
sl as invokeXRSessionStart,
|
|
520
|
+
ll as isActiveInHierarchy,
|
|
521
|
+
dl as isActiveSelf,
|
|
522
|
+
cl as isAndroidDevice,
|
|
523
|
+
ml as isAnimationAction,
|
|
524
|
+
pl as isComponent,
|
|
525
|
+
gl as isDebugMode,
|
|
526
|
+
Sl as isDesktop,
|
|
527
|
+
ul as isDestroyed,
|
|
528
|
+
Cl as isDevEnvironment,
|
|
529
|
+
yl as isDisposed,
|
|
530
|
+
El as isExporting,
|
|
531
|
+
Rl as isGLTFModel,
|
|
532
|
+
hl as isHostedOnGlitch,
|
|
533
|
+
fl as isHotReloadEnabled,
|
|
534
|
+
vl as isHotReloading,
|
|
535
|
+
Pl as isIPad,
|
|
536
|
+
Al as isIconElement,
|
|
537
|
+
Tl as isLocalNetwork,
|
|
538
|
+
bl as isMacOS,
|
|
539
|
+
Ml as isMobileDevice,
|
|
540
|
+
Il as isMozillaXR,
|
|
541
|
+
Dl as isQuest,
|
|
542
|
+
Ol as isResourceTrackingEnabled,
|
|
543
|
+
xl as isSafari,
|
|
544
|
+
kl as isUsingInstancing,
|
|
545
|
+
Ll as isiOS,
|
|
546
|
+
Bl as isiPad,
|
|
545
547
|
S as loadAsset,
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
548
|
+
Nl as loadPMREM,
|
|
549
|
+
Fl as loadSync,
|
|
550
|
+
wl as logHierarchy,
|
|
551
|
+
Ul as lookAtInverse,
|
|
552
|
+
Wl as lookAtObject,
|
|
553
|
+
Gl as lookAtScreenPoint,
|
|
554
|
+
Hl as makeId,
|
|
555
|
+
Xl as makeIdFromRandomWords,
|
|
556
|
+
zl as makeNameSafeForUSD,
|
|
557
|
+
Vl as markAsInstancedRendered,
|
|
558
|
+
_l as microphonePermissionsGranted,
|
|
559
|
+
jl as nameof,
|
|
560
|
+
Zl as nameofFactory,
|
|
561
|
+
Kl as needle,
|
|
562
|
+
Ql as objectSerializer,
|
|
563
|
+
$l as offBeforeXRSession,
|
|
564
|
+
Yl as offXRSessionEnd,
|
|
565
|
+
Jl as offXRSessionStart,
|
|
564
566
|
d as onAfterRender,
|
|
565
567
|
c as onBeforeRender,
|
|
566
|
-
|
|
568
|
+
ql as onBeforeXRSession,
|
|
567
569
|
a as onClear,
|
|
568
570
|
s as onDestroy,
|
|
569
571
|
l as onInitialized,
|
|
570
572
|
p as onStart,
|
|
571
|
-
|
|
572
|
-
|
|
573
|
+
ed as onSyncDestroy,
|
|
574
|
+
td as onSyncInstantiate,
|
|
573
575
|
m as onUpdate,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
576
|
+
od as onXRSessionEnd,
|
|
577
|
+
rd as onXRSessionStart,
|
|
578
|
+
nd as parseSync,
|
|
579
|
+
id as placeOnSurface,
|
|
580
|
+
ad as postprocessFBXMaterials,
|
|
581
|
+
sd as prefix,
|
|
582
|
+
ld as pushState,
|
|
583
|
+
dd as randomNumber,
|
|
584
|
+
cd as registerBinaryType,
|
|
585
|
+
md as registerComponent,
|
|
586
|
+
pd as registerComponentExtension,
|
|
587
|
+
gd as registerCustomEffectType,
|
|
588
|
+
Sd as registerExportExtensions,
|
|
589
|
+
ud as registerExtensions,
|
|
590
|
+
Cd as registerHotReloadType,
|
|
591
|
+
yd as registerLoader,
|
|
592
|
+
Ed as registerPrefabProvider,
|
|
593
|
+
Rd as registerPrototypeExtensions,
|
|
594
|
+
hd as registerType,
|
|
595
|
+
fd as relativePathPrefix,
|
|
596
|
+
vd as removeAttributeChangeCallback,
|
|
597
|
+
Pd as removeComponent,
|
|
598
|
+
Ad as removeCustomImportExtensionType,
|
|
599
|
+
Td as removePatch,
|
|
600
|
+
bd as resolveUrl,
|
|
601
|
+
Md as sanitizeString,
|
|
602
|
+
Id as saveImage,
|
|
603
|
+
Dd as screenshot,
|
|
604
|
+
Od as screenshot2,
|
|
605
|
+
xd as sendDestroyed,
|
|
606
|
+
kd as serializable,
|
|
607
|
+
Ld as serializeObject,
|
|
608
|
+
Bd as serializeable,
|
|
609
|
+
Nd as setActive,
|
|
610
|
+
Fd as setAllowBalloonMessages,
|
|
611
|
+
wd as setAllowOverlayMessages,
|
|
612
|
+
Ud as setAutoFitEnabled,
|
|
613
|
+
Wd as setCameraController,
|
|
614
|
+
Gd as setDestroyed,
|
|
615
|
+
Hd as setDevEnvironment,
|
|
616
|
+
Xd as setDisposable,
|
|
617
|
+
zd as setDontDestroy,
|
|
618
|
+
Vd as setOrAddParamsToUrl,
|
|
619
|
+
_d as setParam,
|
|
620
|
+
jd as setParamWithoutReload,
|
|
621
|
+
Zd as setPeerOptions,
|
|
622
|
+
Kd as setResourceTrackingEnabled,
|
|
623
|
+
Qd as setState,
|
|
624
|
+
$d as setVisibleInCustomShadowRendering,
|
|
625
|
+
Yd as setWorldEuler,
|
|
626
|
+
Jd as setWorldPosition,
|
|
627
|
+
qd as setWorldPositionXYZ,
|
|
628
|
+
ec as setWorldQuaternion,
|
|
629
|
+
tc as setWorldQuaternionXYZW,
|
|
630
|
+
oc as setWorldRotation,
|
|
631
|
+
rc as setWorldRotationXYZ,
|
|
632
|
+
nc as setWorldScale,
|
|
633
|
+
ic as showBalloonError,
|
|
634
|
+
ac as showBalloonMessage,
|
|
635
|
+
sc as showBalloonWarning,
|
|
636
|
+
lc as showDebugConsole,
|
|
637
|
+
dc as slerp,
|
|
638
|
+
cc as syncDestroy,
|
|
639
|
+
mc as syncField,
|
|
640
|
+
pc as syncInstantiate,
|
|
641
|
+
gc as textureToCanvas,
|
|
642
|
+
Sc as toSourceId,
|
|
643
|
+
uc as tryCastBinary,
|
|
644
|
+
Cc as tryDetermineMimetypeFromBinary,
|
|
645
|
+
yc as tryDetermineMimetypeFromURL,
|
|
646
|
+
Ec as tryFindObject,
|
|
647
|
+
Rc as tryGetGuid,
|
|
648
|
+
hc as unregisterHotReloadType,
|
|
649
|
+
fc as unregisterPrefabProvider,
|
|
650
|
+
vc as unwatchWrite,
|
|
651
|
+
Pc as useForAutoFit,
|
|
652
|
+
Ac as validate,
|
|
653
|
+
Tc as watchWrite
|
|
652
654
|
};
|