@relu-interactives/spatial-ecs 0.9.0 → 0.10.0

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.
Files changed (39) hide show
  1. package/dist/{System-8D-XBDKZ.d.cts → System-BldSHxZV.d.cts} +214 -81
  2. package/dist/{System-DPMAW30g.d.ts → System-CADhPyQs.d.ts} +214 -81
  3. package/dist/{XRHandPose-CWSrsnYN.d.ts → XRHandPose-BNSwd1y9.d.ts} +1 -1
  4. package/dist/{XRHandPose-Dn2yiALk.d.cts → XRHandPose-D3Ab1Dfs.d.cts} +1 -1
  5. package/dist/{chunk-VYIWOXAY.js → chunk-TY3XCHOR.js} +18 -10
  6. package/dist/chunk-TY3XCHOR.js.map +1 -0
  7. package/dist/components/index.d.cts +3 -3
  8. package/dist/components/index.d.ts +3 -3
  9. package/dist/docs/guide/bone-attachments-and-ik.md +1 -1
  10. package/dist/docs/guide/multiplayer.md +65 -0
  11. package/dist/factories/index.d.cts +2 -2
  12. package/dist/factories/index.d.ts +2 -2
  13. package/dist/{index-D5MmJNyj.d.ts → index-6pZO_gV7.d.ts} +1 -1
  14. package/dist/{index-CAZHrh0q.d.cts → index-BXjwEdNq.d.cts} +2 -2
  15. package/dist/{index-DiIjV2lm.d.cts → index-BdghvXKE.d.cts} +1 -1
  16. package/dist/{index-CLtSMf2M.d.ts → index-CVG-hREM.d.ts} +2 -2
  17. package/dist/index.cjs +16 -8
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +8 -30
  20. package/dist/index.d.ts +8 -30
  21. package/dist/index.js +2 -2
  22. package/dist/network/index.cjs +681 -4
  23. package/dist/network/index.cjs.map +1 -1
  24. package/dist/network/index.d.cts +126 -5
  25. package/dist/network/index.d.ts +126 -5
  26. package/dist/network/index.js +680 -5
  27. package/dist/network/index.js.map +1 -1
  28. package/dist/systems/index.cjs +16 -8
  29. package/dist/systems/index.cjs.map +1 -1
  30. package/dist/systems/index.d.cts +2 -2
  31. package/dist/systems/index.d.ts +2 -2
  32. package/dist/systems/index.js +1 -1
  33. package/dist/types.d.cts +1 -1
  34. package/dist/types.d.ts +1 -1
  35. package/dist/webgpu/index.d.ts +2 -2
  36. package/dist/worldSnapshotUtils.d.cts +1 -1
  37. package/dist/worldSnapshotUtils.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/dist/chunk-VYIWOXAY.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { B as EcsSystem, C as Component, K as WorldEntityView, T as TransformComponent, W as World, S as SpawnPrefabSource, L as SpawnPrefabOptions, H as NetworkHandle, N as NetValue, M as PlaySlotOptions, O as ComponentClass, Q as ParentLookup, R as RenderBackend, U as EcsEntityKind, X as ObjectManagementSystem, Y as SubtreeSnapshot, G as EntityId, Z as ExternalRefWarning, _ as AudioBus } from './System-8D-XBDKZ.cjs';
2
- export { $ as AssetInput, a0 as AudioSystem, a1 as CheckboxInput, a2 as ChromaKeyOptions, a3 as ColorInput, a4 as ComponentFactory, a5 as ComponentInput, a6 as ComponentKind, a7 as DropdownInput, a8 as DropdownOption, a9 as EcsComponentFactoryKind, aa as EcsEntityEditorKind, ab as EcsRenderer, ac as EntityInput, ad as FloatInput, ae as IKSystem, af as InputSystem, ag as IntersectionResult, ah as KeyboardKey, ai as KeyboardKeys, aj as ModelBoneInfo, ak as MouseButton, J as NetSpawnOptions, al as PREFAB_FILE_VERSION, am as PREFAB_FILE_VERSION_NESTED, an as PostprocessingBuildContext, ao as PostprocessingPipeline, ap as PrefabAsset, aq as RemapSnapshotOptions, ar as RenderSystem, as as RendererKind, at as ScriptErrorEvent, au as ScriptErrorListener, av as ScriptErrorPhase, aw as ScriptErrorReport, ax as ScriptErrorSource, ay as SelectionListener, az as SliderInput, aA as SlotChooser, aB as SoundBankAsset, aC as SoundSlot, aD as SoundTake, aE as TextInput, aF as ToggleInput, aG as TransformSyncSystem, aH as Vec3, aI as Vector2Input, aJ as Vector3Input, aK as clearPrefabCache, aL as despawnPrefab, aM as findModelBone, aN as listModelBones, aO as loadPrefab, aP as parsePrefabAsset, aQ as prefabFileVersionFor, aR as remapSnapshotEntityIds, aS as setPrefabAssetUrlResolver, aT as soundBankFiles, aU as spawnPrefab } from './System-8D-XBDKZ.cjs';
1
+ import { K as EcsSystem, C as Component, S as WorldEntityView, T as TransformComponent, W as World, U as SpawnPrefabSource, X as SpawnPrefabOptions, O as NetworkHandle, N as NetValue, Y as PlaySlotOptions, Z as ComponentClass, _ as ParentLookup, $ as RenderBackend, a0 as EcsEntityKind, a1 as ObjectManagementSystem, a2 as SubtreeSnapshot, M as EntityId, a3 as ExternalRefWarning } from './System-BldSHxZV.cjs';
2
+ export { a4 as AssetInput, a5 as AudioBus, a6 as AudioMixer, a7 as AudioSystem, a8 as CheckboxInput, a9 as ChromaKeyOptions, aa as ColorInput, ab as ComponentFactory, ac as ComponentInput, ad as ComponentKind, ae as DropdownInput, af as DropdownOption, ag as EcsComponentFactoryKind, ah as EcsEntityEditorKind, ai as EcsRenderer, aj as EntityInput, ak as FloatInput, al as IKSystem, am as InputSystem, an as IntersectionResult, ao as KeyboardKey, ap as KeyboardKeys, aq as ModelBoneInfo, ar as MouseButton, Q as NetSpawnOptions, as as PREFAB_FILE_VERSION, at as PREFAB_FILE_VERSION_NESTED, au as PostprocessingBuildContext, av as PostprocessingPipeline, aw as PrefabAsset, ax as RemapSnapshotOptions, ay as RenderSystem, az as RendererKind, aA as ScriptErrorEvent, aB as ScriptErrorListener, aC as ScriptErrorPhase, aD as ScriptErrorReport, aE as ScriptErrorSource, aF as SelectionListener, aG as SliderInput, aH as SlotChooser, aI as SoundBankAsset, aJ as SoundSlot, aK as SoundTake, aL as TextInput, aM as ToggleInput, aN as TransformSyncSystem, aO as Vec3, aP as Vector2Input, aQ as Vector3Input, aR as clearPrefabCache, aS as despawnPrefab, aT as findModelBone, aU as listModelBones, aV as loadPrefab, aW as parsePrefabAsset, aX as prefabFileVersionFor, aY as remapSnapshotEntityIds, aZ as setPrefabAssetUrlResolver, a_ as soundBankFiles, a$ as spawnPrefab } from './System-BldSHxZV.cjs';
3
3
  import * as THREE from 'three';
4
- import { T as Object3DRef, aM as XrHandPreset } from './XRHandPose-Dn2yiALk.cjs';
5
- export { aZ as AnimationStateCallbacks, a_ as AnimationStateMachine, a$ as AnimationStateManager, b0 as StateMachine, b1 as UiColorStop, b2 as UiPaint, b3 as UiShadow, b4 as UiStyle, b5 as UiTextStyle, b6 as UiTokens } from './XRHandPose-Dn2yiALk.cjs';
6
- import { X as XrCapabilities, a as XrInputState, b as XrHandPoseEventDetail } from './index-DiIjV2lm.cjs';
7
- export { A as AnimationSystem, C as CameraSyncSystem, D as DEFAULT_SCRIPT_ERROR_RETRY_DELAY, E as EnvironmentSyncSystem, I as InstancedMeshSystem, L as LightSyncSystem, M as MaterialSyncSystem, c as MeshGeometrySystem, d as ModuleLoader, N as NO_XR_CAPABILITIES, O as ObjectVisibilitySystem, P as PhysicsSyncSystem, e as PostprocessingSyncSystem, S as SCRIPT_OBJECT_ROOT_FLAG, f as ScriptBehaviourSystem, g as ScriptBehaviourSystemOptions, h as ScriptObjectSystem, i as SelectionContext, U as UIInteractionSystem, j as UIPanelSystem, k as UiCanvasLike, V as VRTeleportAreaSystem, l as VideoSystem, m as XRAnchorSystem, n as XRControllerVisualSystem, o as XREnvironmentSystem, p as XRHandPoseSystem, q as XRHitTestSystem, r as XRHoverVisualSystem, s as XRInputSystem, t as XRInteractionSystem, u as XRLocomotionSystem, v as XRSessionSystem, w as XRTeleportVisualSystem, x as XR_HOVER_SHELL_FLAG, y as XrHandedness, z as XrHitResult, B as XrInputKind, F as readXrCapabilities } from './index-DiIjV2lm.cjs';
8
- export { i as CoreComponents } from './index-CAZHrh0q.cjs';
4
+ import { T as Object3DRef, aM as XrHandPreset } from './XRHandPose-D3Ab1Dfs.cjs';
5
+ export { aZ as AnimationStateCallbacks, a_ as AnimationStateMachine, a$ as AnimationStateManager, b0 as StateMachine, b1 as UiColorStop, b2 as UiPaint, b3 as UiShadow, b4 as UiStyle, b5 as UiTextStyle, b6 as UiTokens } from './XRHandPose-D3Ab1Dfs.cjs';
6
+ import { X as XrCapabilities, a as XrInputState, b as XrHandPoseEventDetail } from './index-BdghvXKE.cjs';
7
+ export { A as AnimationSystem, C as CameraSyncSystem, D as DEFAULT_SCRIPT_ERROR_RETRY_DELAY, E as EnvironmentSyncSystem, I as InstancedMeshSystem, L as LightSyncSystem, M as MaterialSyncSystem, c as MeshGeometrySystem, d as ModuleLoader, N as NO_XR_CAPABILITIES, O as ObjectVisibilitySystem, P as PhysicsSyncSystem, e as PostprocessingSyncSystem, S as SCRIPT_OBJECT_ROOT_FLAG, f as ScriptBehaviourSystem, g as ScriptBehaviourSystemOptions, h as ScriptObjectSystem, i as SelectionContext, U as UIInteractionSystem, j as UIPanelSystem, k as UiCanvasLike, V as VRTeleportAreaSystem, l as VideoSystem, m as XRAnchorSystem, n as XRControllerVisualSystem, o as XREnvironmentSystem, p as XRHandPoseSystem, q as XRHitTestSystem, r as XRHoverVisualSystem, s as XRInputSystem, t as XRInteractionSystem, u as XRLocomotionSystem, v as XRSessionSystem, w as XRTeleportVisualSystem, x as XR_HOVER_SHELL_FLAG, y as XrHandedness, z as XrHitResult, B as XrInputKind, F as readXrCapabilities } from './index-BdghvXKE.cjs';
8
+ export { i as CoreComponents } from './index-BXjwEdNq.cjs';
9
9
  export { createAnimationComponent, createAudioComponent, createBoneAttachmentComponent, createCameraComponent, createEntityTypeComponent, createEnvironmentComponent, createIKComponent, createImageComponent, createImageTargetAnchorComponent, createImageTargetComponent, createInstanceSlotComponent, createInstancedMeshComponent, createLightComponent, createMaterialComponent, createMeshComponent, createMeshGeometryComponent, createModelComponent, createNameComponent, createNetworkIdentityComponent, createNetworkSpawnerComponent, createNetworkTransformComponent, createNetworkedPropsComponent, createObject3DRefComponent, createParentIdComponent, createPhysicsComponent, createPostprocessingComponent, createScriptComponent, createScriptObjectComponent, createSelectableComponent, createSelectionTransformStateComponent, createSpriteComponent, createTransformComponent, createUIButtonComponent, createUIPanelComponent, createUISliderComponent, createUITextComponent, createUIToggleComponent, createVRTeleportAreaComponent, createVideoComponent, createXRAnchorComponent, createXRHandPoseComponent, createXRInteractableComponent, createXRInteractorComponent, createXRInteractorSideComponent, createXRRigComponent, registerDefaultComponentFactories, registerDefaultFactories } from './factories/index.cjs';
10
10
  import { GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
11
11
  import { X as XrHandPoseDefinition, a as XrFinger, b as XrHandPoseOrientation, c as XrHandPoseDirection } from './handPose-DlcTtqgx.cjs';
@@ -921,28 +921,6 @@ declare function gripQuaternion(axis: THREE.Vector3, back: THREE.Vector3, forear
921
921
  */
922
922
  declare function createGLTFLoader(): GLTFLoader;
923
923
 
924
- /**
925
- * The volume groups every sound plays through: each sound's output goes to its
926
- * bus instead of straight to the listener, so a game can turn music down
927
- * without touching a single sound, and music dips while a voice plays.
928
- */
929
- declare class AudioMixer {
930
- readonly listener: THREE.AudioListener;
931
- private readonly buses;
932
- private readonly volumes;
933
- private readonly routed;
934
- constructor(listener: THREE.AudioListener);
935
- /** The node a sound connects to for this bus. */
936
- input(bus: AudioBus): GainNode;
937
- /** Send a three.js sound through a bus. Does nothing when it's already there. */
938
- route(sound: THREE.Audio<GainNode> | THREE.PositionalAudio, bus: AudioBus): void;
939
- setVolume(bus: AudioBus, volume: number): void;
940
- getVolume(bus: AudioBus): number;
941
- /** Dip the music for `seconds`, then bring it back. A later duck replaces this one. */
942
- duckMusic(seconds: number): void;
943
- dispose(): void;
944
- }
945
-
946
924
  /**
947
925
  * Decides when a teleport may actually commit.
948
926
  *
@@ -1104,4 +1082,4 @@ declare class ThrowVelocityTracker {
1104
1082
  */
1105
1083
  declare function angularVelocityFrom(previous: THREE.Quaternion, current: THREE.Quaternion, deltaTime: number): THREE.Vector3;
1106
1084
 
1107
- export { ADDED_NODE_MARKER_COMPONENT, ARC_GRAVITY, ARC_MAX_TIME, ARC_SPEED, ARC_STEPS, type ApplyPrefabToSnapshotResult, AudioBus, AudioMixer, Behaviour, Component, type ComponentValueMaps, EcsEntityKind, EcsSystem, type EcsWorldComponentSnapshot, type EcsWorldStateSnapshotLike, EntityId, ExternalRefWarning, HAND_POSE_PRESETS, HAND_POSE_PRESET_IDS, HYDRATABLE_ENTITY_KINDS, type HandMaterialOptions, type HydrateOptions, type HydrateWorldFromSnapshotResult, type InstantiateSubtreeResult, MAX_PLAUSIBLE_SPEED, MAX_SAMPLE_AGE_SECONDS, NODE_KEY_SEPARATOR, type NestedRegion, NetworkHandle, type NodeKeyMaps, type NodeMaps, OVERRIDE_DIFF_EXCLUDED_COMPONENTS, OVERRIDE_ROOT_EXCLUDED_COMPONENTS, ObjectManagementSystem, ParentLookup, PlaySlotOptions, RenderBackend, SHARED_MODEL_RESOURCE_FLAG, ScriptObject, type SerializeEntitySubtreeResult, SpawnPrefabOptions, SpawnPrefabSource, SubtreeSnapshot, TeleportAimGate, ThrowVelocityTracker, type UiInteractionEvent, VELOCITY_SAMPLES, type VelocitySample, World, WorldEntityView, XrCapabilities, XrFinger, XrHandPoseDefinition, XrHandPoseDirection, XrHandPoseEventDetail, XrHandPoseOrientation, XrInputState, angularVelocityFrom, applyHandMaterial, applyPrefabToSnapshotInstances, arcGroundCrossing, buildComponentValueMaps, buildNodeKeyMapsFromSnapshot, buildNodeMapsFromSnapshot, canonicalizeComponentValue, clearModelCache, cloneHandPose, collectDiffPaths, collectDirectPrefabDependencies, collectEntitySubtree, collectSnapshotSubtreeIds, computeInstanceOverrides, createGLTFLoader, createHandMaterial, decanonicalizeComponentValue, encodeOverride, findSnapshotRootEntityIds, findTopLevelNestedRegions, getHandPosePreset, gripQuaternion, groupOverridePaths, handPoseFromCurls, hydrateWorldFromSnapshot, hydrateWorldFromSnapshotDetailed, indexSnapshotByEntity, instantiateSubtree, loadSharedGltf, mergeComponentValue, parseOverride, resolveDracoDecoderPath, restoreComponentState, restorePostCreateComponents, sampleTeleportArc, serializeEntitySubtree, setDracoDecoderPath, setWorldQuaternion, twoBoneIK, webglBackend };
1085
+ export { ADDED_NODE_MARKER_COMPONENT, ARC_GRAVITY, ARC_MAX_TIME, ARC_SPEED, ARC_STEPS, type ApplyPrefabToSnapshotResult, Behaviour, Component, type ComponentValueMaps, EcsEntityKind, EcsSystem, type EcsWorldComponentSnapshot, type EcsWorldStateSnapshotLike, EntityId, ExternalRefWarning, HAND_POSE_PRESETS, HAND_POSE_PRESET_IDS, HYDRATABLE_ENTITY_KINDS, type HandMaterialOptions, type HydrateOptions, type HydrateWorldFromSnapshotResult, type InstantiateSubtreeResult, MAX_PLAUSIBLE_SPEED, MAX_SAMPLE_AGE_SECONDS, NODE_KEY_SEPARATOR, type NestedRegion, NetworkHandle, type NodeKeyMaps, type NodeMaps, OVERRIDE_DIFF_EXCLUDED_COMPONENTS, OVERRIDE_ROOT_EXCLUDED_COMPONENTS, ObjectManagementSystem, ParentLookup, PlaySlotOptions, RenderBackend, SHARED_MODEL_RESOURCE_FLAG, ScriptObject, type SerializeEntitySubtreeResult, SpawnPrefabOptions, SpawnPrefabSource, SubtreeSnapshot, TeleportAimGate, ThrowVelocityTracker, type UiInteractionEvent, VELOCITY_SAMPLES, type VelocitySample, World, WorldEntityView, XrCapabilities, XrFinger, XrHandPoseDefinition, XrHandPoseDirection, XrHandPoseEventDetail, XrHandPoseOrientation, XrInputState, angularVelocityFrom, applyHandMaterial, applyPrefabToSnapshotInstances, arcGroundCrossing, buildComponentValueMaps, buildNodeKeyMapsFromSnapshot, buildNodeMapsFromSnapshot, canonicalizeComponentValue, clearModelCache, cloneHandPose, collectDiffPaths, collectDirectPrefabDependencies, collectEntitySubtree, collectSnapshotSubtreeIds, computeInstanceOverrides, createGLTFLoader, createHandMaterial, decanonicalizeComponentValue, encodeOverride, findSnapshotRootEntityIds, findTopLevelNestedRegions, getHandPosePreset, gripQuaternion, groupOverridePaths, handPoseFromCurls, hydrateWorldFromSnapshot, hydrateWorldFromSnapshotDetailed, indexSnapshotByEntity, instantiateSubtree, loadSharedGltf, mergeComponentValue, parseOverride, resolveDracoDecoderPath, restoreComponentState, restorePostCreateComponents, sampleTeleportArc, serializeEntitySubtree, setDracoDecoderPath, setWorldQuaternion, twoBoneIK, webglBackend };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { K as EcsSystem, d as Component, S as WorldEntityView, T as TransformComponent, W as World, U as SpawnPrefabSource, X as SpawnPrefabOptions, O as NetworkHandle, N as NetValue, Y as PlaySlotOptions, Z as ComponentClass, _ as ParentLookup, R as RenderBackend, $ as EcsEntityKind, a0 as ObjectManagementSystem, a1 as SubtreeSnapshot, M as EntityId, a2 as ExternalRefWarning, a3 as AudioBus } from './System-DPMAW30g.js';
2
- export { a4 as AssetInput, a5 as AudioSystem, a6 as CheckboxInput, C as ChromaKeyOptions, a7 as ColorInput, a8 as ComponentFactory, a9 as ComponentInput, aa as ComponentKind, ab as DropdownInput, ac as DropdownOption, ad as EcsComponentFactoryKind, ae as EcsEntityEditorKind, E as EcsRenderer, af as EntityInput, ag as FloatInput, ah as IKSystem, ai as InputSystem, aj as IntersectionResult, ak as KeyboardKey, al as KeyboardKeys, am as ModelBoneInfo, an as MouseButton, Q as NetSpawnOptions, ao as PREFAB_FILE_VERSION, ap as PREFAB_FILE_VERSION_NESTED, a as PostprocessingBuildContext, P as PostprocessingPipeline, aq as PrefabAsset, ar as RemapSnapshotOptions, as as RenderSystem, c as RendererKind, at as ScriptErrorEvent, au as ScriptErrorListener, av as ScriptErrorPhase, aw as ScriptErrorReport, ax as ScriptErrorSource, ay as SelectionListener, az as SliderInput, aA as SlotChooser, aB as SoundBankAsset, aC as SoundSlot, aD as SoundTake, aE as TextInput, aF as ToggleInput, aG as TransformSyncSystem, aH as Vec3, aI as Vector2Input, aJ as Vector3Input, aK as clearPrefabCache, aL as despawnPrefab, aM as findModelBone, aN as listModelBones, aO as loadPrefab, aP as parsePrefabAsset, aQ as prefabFileVersionFor, aR as remapSnapshotEntityIds, aS as setPrefabAssetUrlResolver, aT as soundBankFiles, aU as spawnPrefab } from './System-DPMAW30g.js';
1
+ import { S as EcsSystem, d as Component, $ as WorldEntityView, T as TransformComponent, W as World, a0 as SpawnPrefabSource, a1 as SpawnPrefabOptions, Y as NetworkHandle, N as NetValue, a2 as PlaySlotOptions, a3 as ComponentClass, a4 as ParentLookup, R as RenderBackend, a5 as EcsEntityKind, a6 as ObjectManagementSystem, a7 as SubtreeSnapshot, X as EntityId, a8 as ExternalRefWarning } from './System-CADhPyQs.js';
2
+ export { a9 as AssetInput, aa as AudioBus, ab as AudioMixer, ac as AudioSystem, ad as CheckboxInput, C as ChromaKeyOptions, ae as ColorInput, af as ComponentFactory, ag as ComponentInput, ah as ComponentKind, ai as DropdownInput, aj as DropdownOption, ak as EcsComponentFactoryKind, al as EcsEntityEditorKind, E as EcsRenderer, am as EntityInput, an as FloatInput, ao as IKSystem, ap as InputSystem, aq as IntersectionResult, ar as KeyboardKey, as as KeyboardKeys, at as ModelBoneInfo, au as MouseButton, Z as NetSpawnOptions, av as PREFAB_FILE_VERSION, aw as PREFAB_FILE_VERSION_NESTED, a as PostprocessingBuildContext, P as PostprocessingPipeline, ax as PrefabAsset, ay as RemapSnapshotOptions, az as RenderSystem, c as RendererKind, aA as ScriptErrorEvent, aB as ScriptErrorListener, aC as ScriptErrorPhase, aD as ScriptErrorReport, aE as ScriptErrorSource, aF as SelectionListener, aG as SliderInput, aH as SlotChooser, aI as SoundBankAsset, aJ as SoundSlot, aK as SoundTake, aL as TextInput, aM as ToggleInput, aN as TransformSyncSystem, aO as Vec3, aP as Vector2Input, aQ as Vector3Input, aR as clearPrefabCache, aS as despawnPrefab, aT as findModelBone, aU as listModelBones, aV as loadPrefab, aW as parsePrefabAsset, aX as prefabFileVersionFor, aY as remapSnapshotEntityIds, aZ as setPrefabAssetUrlResolver, a_ as soundBankFiles, a$ as spawnPrefab } from './System-CADhPyQs.js';
3
3
  import * as THREE from 'three';
4
- import { T as Object3DRef, aM as XrHandPreset } from './XRHandPose-CWSrsnYN.js';
5
- export { aZ as AnimationStateCallbacks, a_ as AnimationStateMachine, a$ as AnimationStateManager, b0 as StateMachine, b1 as UiColorStop, b2 as UiPaint, b3 as UiShadow, b4 as UiStyle, b5 as UiTextStyle, b6 as UiTokens } from './XRHandPose-CWSrsnYN.js';
6
- import { X as XrCapabilities, a as XrInputState, b as XrHandPoseEventDetail } from './index-D5MmJNyj.js';
7
- export { A as AnimationSystem, C as CameraSyncSystem, D as DEFAULT_SCRIPT_ERROR_RETRY_DELAY, E as EnvironmentSyncSystem, I as InstancedMeshSystem, L as LightSyncSystem, M as MaterialSyncSystem, c as MeshGeometrySystem, d as ModuleLoader, N as NO_XR_CAPABILITIES, O as ObjectVisibilitySystem, P as PhysicsSyncSystem, e as PostprocessingSyncSystem, S as SCRIPT_OBJECT_ROOT_FLAG, f as ScriptBehaviourSystem, g as ScriptBehaviourSystemOptions, h as ScriptObjectSystem, i as SelectionContext, U as UIInteractionSystem, j as UIPanelSystem, k as UiCanvasLike, V as VRTeleportAreaSystem, l as VideoSystem, m as XRAnchorSystem, n as XRControllerVisualSystem, o as XREnvironmentSystem, p as XRHandPoseSystem, q as XRHitTestSystem, r as XRHoverVisualSystem, s as XRInputSystem, t as XRInteractionSystem, u as XRLocomotionSystem, v as XRSessionSystem, w as XRTeleportVisualSystem, x as XR_HOVER_SHELL_FLAG, y as XrHandedness, z as XrHitResult, B as XrInputKind, F as readXrCapabilities } from './index-D5MmJNyj.js';
8
- export { i as CoreComponents } from './index-CLtSMf2M.js';
4
+ import { T as Object3DRef, aM as XrHandPreset } from './XRHandPose-BNSwd1y9.js';
5
+ export { aZ as AnimationStateCallbacks, a_ as AnimationStateMachine, a$ as AnimationStateManager, b0 as StateMachine, b1 as UiColorStop, b2 as UiPaint, b3 as UiShadow, b4 as UiStyle, b5 as UiTextStyle, b6 as UiTokens } from './XRHandPose-BNSwd1y9.js';
6
+ import { X as XrCapabilities, a as XrInputState, b as XrHandPoseEventDetail } from './index-6pZO_gV7.js';
7
+ export { A as AnimationSystem, C as CameraSyncSystem, D as DEFAULT_SCRIPT_ERROR_RETRY_DELAY, E as EnvironmentSyncSystem, I as InstancedMeshSystem, L as LightSyncSystem, M as MaterialSyncSystem, c as MeshGeometrySystem, d as ModuleLoader, N as NO_XR_CAPABILITIES, O as ObjectVisibilitySystem, P as PhysicsSyncSystem, e as PostprocessingSyncSystem, S as SCRIPT_OBJECT_ROOT_FLAG, f as ScriptBehaviourSystem, g as ScriptBehaviourSystemOptions, h as ScriptObjectSystem, i as SelectionContext, U as UIInteractionSystem, j as UIPanelSystem, k as UiCanvasLike, V as VRTeleportAreaSystem, l as VideoSystem, m as XRAnchorSystem, n as XRControllerVisualSystem, o as XREnvironmentSystem, p as XRHandPoseSystem, q as XRHitTestSystem, r as XRHoverVisualSystem, s as XRInputSystem, t as XRInteractionSystem, u as XRLocomotionSystem, v as XRSessionSystem, w as XRTeleportVisualSystem, x as XR_HOVER_SHELL_FLAG, y as XrHandedness, z as XrHitResult, B as XrInputKind, F as readXrCapabilities } from './index-6pZO_gV7.js';
8
+ export { i as CoreComponents } from './index-CVG-hREM.js';
9
9
  export { createAnimationComponent, createAudioComponent, createBoneAttachmentComponent, createCameraComponent, createEntityTypeComponent, createEnvironmentComponent, createIKComponent, createImageComponent, createImageTargetAnchorComponent, createImageTargetComponent, createInstanceSlotComponent, createInstancedMeshComponent, createLightComponent, createMaterialComponent, createMeshComponent, createMeshGeometryComponent, createModelComponent, createNameComponent, createNetworkIdentityComponent, createNetworkSpawnerComponent, createNetworkTransformComponent, createNetworkedPropsComponent, createObject3DRefComponent, createParentIdComponent, createPhysicsComponent, createPostprocessingComponent, createScriptComponent, createScriptObjectComponent, createSelectableComponent, createSelectionTransformStateComponent, createSpriteComponent, createTransformComponent, createUIButtonComponent, createUIPanelComponent, createUISliderComponent, createUITextComponent, createUIToggleComponent, createVRTeleportAreaComponent, createVideoComponent, createXRAnchorComponent, createXRHandPoseComponent, createXRInteractableComponent, createXRInteractorComponent, createXRInteractorSideComponent, createXRRigComponent, registerDefaultComponentFactories, registerDefaultFactories } from './factories/index.js';
10
10
  import { GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
11
11
  import { X as XrHandPoseDefinition, a as XrFinger, b as XrHandPoseOrientation, c as XrHandPoseDirection } from './handPose-DlcTtqgx.js';
@@ -921,28 +921,6 @@ declare function gripQuaternion(axis: THREE.Vector3, back: THREE.Vector3, forear
921
921
  */
922
922
  declare function createGLTFLoader(): GLTFLoader;
923
923
 
924
- /**
925
- * The volume groups every sound plays through: each sound's output goes to its
926
- * bus instead of straight to the listener, so a game can turn music down
927
- * without touching a single sound, and music dips while a voice plays.
928
- */
929
- declare class AudioMixer {
930
- readonly listener: THREE.AudioListener;
931
- private readonly buses;
932
- private readonly volumes;
933
- private readonly routed;
934
- constructor(listener: THREE.AudioListener);
935
- /** The node a sound connects to for this bus. */
936
- input(bus: AudioBus): GainNode;
937
- /** Send a three.js sound through a bus. Does nothing when it's already there. */
938
- route(sound: THREE.Audio<GainNode> | THREE.PositionalAudio, bus: AudioBus): void;
939
- setVolume(bus: AudioBus, volume: number): void;
940
- getVolume(bus: AudioBus): number;
941
- /** Dip the music for `seconds`, then bring it back. A later duck replaces this one. */
942
- duckMusic(seconds: number): void;
943
- dispose(): void;
944
- }
945
-
946
924
  /**
947
925
  * Decides when a teleport may actually commit.
948
926
  *
@@ -1104,4 +1082,4 @@ declare class ThrowVelocityTracker {
1104
1082
  */
1105
1083
  declare function angularVelocityFrom(previous: THREE.Quaternion, current: THREE.Quaternion, deltaTime: number): THREE.Vector3;
1106
1084
 
1107
- export { ADDED_NODE_MARKER_COMPONENT, ARC_GRAVITY, ARC_MAX_TIME, ARC_SPEED, ARC_STEPS, type ApplyPrefabToSnapshotResult, AudioBus, AudioMixer, Behaviour, Component, type ComponentValueMaps, EcsEntityKind, EcsSystem, type EcsWorldComponentSnapshot, type EcsWorldStateSnapshotLike, EntityId, ExternalRefWarning, HAND_POSE_PRESETS, HAND_POSE_PRESET_IDS, HYDRATABLE_ENTITY_KINDS, type HandMaterialOptions, type HydrateOptions, type HydrateWorldFromSnapshotResult, type InstantiateSubtreeResult, MAX_PLAUSIBLE_SPEED, MAX_SAMPLE_AGE_SECONDS, NODE_KEY_SEPARATOR, type NestedRegion, NetworkHandle, type NodeKeyMaps, type NodeMaps, OVERRIDE_DIFF_EXCLUDED_COMPONENTS, OVERRIDE_ROOT_EXCLUDED_COMPONENTS, ObjectManagementSystem, ParentLookup, PlaySlotOptions, RenderBackend, SHARED_MODEL_RESOURCE_FLAG, ScriptObject, type SerializeEntitySubtreeResult, SpawnPrefabOptions, SpawnPrefabSource, SubtreeSnapshot, TeleportAimGate, ThrowVelocityTracker, type UiInteractionEvent, VELOCITY_SAMPLES, type VelocitySample, World, WorldEntityView, XrCapabilities, XrFinger, XrHandPoseDefinition, XrHandPoseDirection, XrHandPoseEventDetail, XrHandPoseOrientation, XrInputState, angularVelocityFrom, applyHandMaterial, applyPrefabToSnapshotInstances, arcGroundCrossing, buildComponentValueMaps, buildNodeKeyMapsFromSnapshot, buildNodeMapsFromSnapshot, canonicalizeComponentValue, clearModelCache, cloneHandPose, collectDiffPaths, collectDirectPrefabDependencies, collectEntitySubtree, collectSnapshotSubtreeIds, computeInstanceOverrides, createGLTFLoader, createHandMaterial, decanonicalizeComponentValue, encodeOverride, findSnapshotRootEntityIds, findTopLevelNestedRegions, getHandPosePreset, gripQuaternion, groupOverridePaths, handPoseFromCurls, hydrateWorldFromSnapshot, hydrateWorldFromSnapshotDetailed, indexSnapshotByEntity, instantiateSubtree, loadSharedGltf, mergeComponentValue, parseOverride, resolveDracoDecoderPath, restoreComponentState, restorePostCreateComponents, sampleTeleportArc, serializeEntitySubtree, setDracoDecoderPath, setWorldQuaternion, twoBoneIK, webglBackend };
1085
+ export { ADDED_NODE_MARKER_COMPONENT, ARC_GRAVITY, ARC_MAX_TIME, ARC_SPEED, ARC_STEPS, type ApplyPrefabToSnapshotResult, Behaviour, Component, type ComponentValueMaps, EcsEntityKind, EcsSystem, type EcsWorldComponentSnapshot, type EcsWorldStateSnapshotLike, EntityId, ExternalRefWarning, HAND_POSE_PRESETS, HAND_POSE_PRESET_IDS, HYDRATABLE_ENTITY_KINDS, type HandMaterialOptions, type HydrateOptions, type HydrateWorldFromSnapshotResult, type InstantiateSubtreeResult, MAX_PLAUSIBLE_SPEED, MAX_SAMPLE_AGE_SECONDS, NODE_KEY_SEPARATOR, type NestedRegion, NetworkHandle, type NodeKeyMaps, type NodeMaps, OVERRIDE_DIFF_EXCLUDED_COMPONENTS, OVERRIDE_ROOT_EXCLUDED_COMPONENTS, ObjectManagementSystem, ParentLookup, PlaySlotOptions, RenderBackend, SHARED_MODEL_RESOURCE_FLAG, ScriptObject, type SerializeEntitySubtreeResult, SpawnPrefabOptions, SpawnPrefabSource, SubtreeSnapshot, TeleportAimGate, ThrowVelocityTracker, type UiInteractionEvent, VELOCITY_SAMPLES, type VelocitySample, World, WorldEntityView, XrCapabilities, XrFinger, XrHandPoseDefinition, XrHandPoseDirection, XrHandPoseEventDetail, XrHandPoseOrientation, XrInputState, angularVelocityFrom, applyHandMaterial, applyPrefabToSnapshotInstances, arcGroundCrossing, buildComponentValueMaps, buildNodeKeyMapsFromSnapshot, buildNodeMapsFromSnapshot, canonicalizeComponentValue, clearModelCache, cloneHandPose, collectDiffPaths, collectDirectPrefabDependencies, collectEntitySubtree, collectSnapshotSubtreeIds, computeInstanceOverrides, createGLTFLoader, createHandMaterial, decanonicalizeComponentValue, encodeOverride, findSnapshotRootEntityIds, findTopLevelNestedRegions, getHandPosePreset, gripQuaternion, groupOverridePaths, handPoseFromCurls, hydrateWorldFromSnapshot, hydrateWorldFromSnapshotDetailed, indexSnapshotByEntity, instantiateSubtree, loadSharedGltf, mergeComponentValue, parseOverride, resolveDracoDecoderPath, restoreComponentState, restorePostCreateComponents, sampleTeleportArc, serializeEntitySubtree, setDracoDecoderPath, setWorldQuaternion, twoBoneIK, webglBackend };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { MeshGeometrySystem, InstancedMeshSystem, EnvironmentSyncSystem, PostprocessingSyncSystem, LightSyncSystem, MaterialSyncSystem, VRTeleportAreaSystem, UIPanelSystem, PhysicsSyncSystem, AnimationSystem, IKSystem, AudioSystem, VideoSystem, CameraSyncSystem, TransformSyncSystem, ObjectVisibilitySystem, RenderSystem } from './chunk-VYIWOXAY.js';
2
- export { ARC_GRAVITY, ARC_MAX_TIME, ARC_SPEED, ARC_STEPS, AnimationSystem, AudioMixer, AudioSystem, CURLED_COS, CameraSyncSystem, DEFAULT_DIRECTION_TOLERANCE, DEFAULT_ENTER_CONFIDENCE, DEFAULT_EXIT_CONFIDENCE, DEFAULT_LOST_GRACE_SECONDS, DEFAULT_MIN_HOLD_SECONDS, DEFAULT_SCRIPT_ERROR_RETRY_DELAY, EnvironmentSyncSystem, FALLBACK_HAND_SCALE, HandPoseTracker, IKSystem, InputSystem, InstancedMeshSystem, KeyboardKeys, LightSyncSystem, MATCH_FALLOFF, MAX_PLAUSIBLE_SPEED, MAX_SAMPLE_AGE_SECONDS, MaterialSyncSystem, MeshGeometrySystem, NO_XR_CAPABILITIES, ObjectVisibilitySystem, PINCH_FINGERS, PhysicsSyncSystem, PostprocessingSyncSystem, RenderSystem, SCRIPT_OBJECT_ROOT_FLAG, STRAIGHT_COS, ScriptBehaviourSystem, ScriptObject, ScriptObjectSystem, SlotChooser, TeleportAimGate, ThrowVelocityTracker, TransformSyncSystem, UIInteractionSystem, UIPanelSystem, VELOCITY_SAMPLES, VRTeleportAreaSystem, VideoSystem, XRAnchorSystem, XRControllerVisualSystem, XREnvironmentSystem, XRHandPoseSystem, XRHitTestSystem, XRHoverVisualSystem, XRInputSystem, XRInteractionSystem, XRLocomotionSystem, XRSessionSystem, XRTeleportVisualSystem, XR_FINGERS, XR_HOVER_SHELL_FLAG, angularVelocityFrom, applyHandMaterial, arcGroundCrossing, computeFingerCurl, computeHandShape, computePalmPose, computePalmWidth, computePinch, computeSpread, createHandMaterial, estimateHandScale, gripQuaternion, matchHandPose, readXrCapabilities, sampleTeleportArc, setWorldQuaternion, soundBankFiles, twoBoneIK } from './chunk-VYIWOXAY.js';
1
+ import { MeshGeometrySystem, InstancedMeshSystem, EnvironmentSyncSystem, PostprocessingSyncSystem, LightSyncSystem, MaterialSyncSystem, VRTeleportAreaSystem, UIPanelSystem, PhysicsSyncSystem, AnimationSystem, IKSystem, AudioSystem, VideoSystem, CameraSyncSystem, TransformSyncSystem, ObjectVisibilitySystem, RenderSystem } from './chunk-TY3XCHOR.js';
2
+ export { ARC_GRAVITY, ARC_MAX_TIME, ARC_SPEED, ARC_STEPS, AnimationSystem, AudioMixer, AudioSystem, CURLED_COS, CameraSyncSystem, DEFAULT_DIRECTION_TOLERANCE, DEFAULT_ENTER_CONFIDENCE, DEFAULT_EXIT_CONFIDENCE, DEFAULT_LOST_GRACE_SECONDS, DEFAULT_MIN_HOLD_SECONDS, DEFAULT_SCRIPT_ERROR_RETRY_DELAY, EnvironmentSyncSystem, FALLBACK_HAND_SCALE, HandPoseTracker, IKSystem, InputSystem, InstancedMeshSystem, KeyboardKeys, LightSyncSystem, MATCH_FALLOFF, MAX_PLAUSIBLE_SPEED, MAX_SAMPLE_AGE_SECONDS, MaterialSyncSystem, MeshGeometrySystem, NO_XR_CAPABILITIES, ObjectVisibilitySystem, PINCH_FINGERS, PhysicsSyncSystem, PostprocessingSyncSystem, RenderSystem, SCRIPT_OBJECT_ROOT_FLAG, STRAIGHT_COS, ScriptBehaviourSystem, ScriptObject, ScriptObjectSystem, SlotChooser, TeleportAimGate, ThrowVelocityTracker, TransformSyncSystem, UIInteractionSystem, UIPanelSystem, VELOCITY_SAMPLES, VRTeleportAreaSystem, VideoSystem, XRAnchorSystem, XRControllerVisualSystem, XREnvironmentSystem, XRHandPoseSystem, XRHitTestSystem, XRHoverVisualSystem, XRInputSystem, XRInteractionSystem, XRLocomotionSystem, XRSessionSystem, XRTeleportVisualSystem, XR_FINGERS, XR_HOVER_SHELL_FLAG, angularVelocityFrom, applyHandMaterial, arcGroundCrossing, computeFingerCurl, computeHandShape, computePalmPose, computePalmWidth, computePinch, computeSpread, createHandMaterial, estimateHandScale, gripQuaternion, matchHandPose, readXrCapabilities, sampleTeleportArc, setWorldQuaternion, soundBankFiles, twoBoneIK } from './chunk-TY3XCHOR.js';
3
3
  import { registerDefaultFactories } from './chunk-NXASMBDS.js';
4
4
  export { registerDefaultComponentFactories, registerDefaultFactories } from './chunk-NXASMBDS.js';
5
5
  import { getRendererKindOf, resolveRenderBackend } from './chunk-OHCNPPMX.js';