xrblocks 0.2.0 → 0.3.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 (64) hide show
  1. package/README.md +25 -9
  2. package/build/addons/ai/AudioCaptureProcessorCode.d.ts +1 -0
  3. package/build/addons/ai/AudioCaptureProcessorCode.js +27 -0
  4. package/build/addons/ai/GeminiManager.d.ts +7 -3
  5. package/build/addons/ai/GeminiManager.js +48 -23
  6. package/build/addons/objects/SimpleDecalGeometry.js +9 -5
  7. package/build/addons/simulator/instructions/CustomInstruction.js +8 -9
  8. package/build/addons/simulator/instructions/HandsInstructions.js +17 -10
  9. package/build/addons/simulator/instructions/NavigationInstructions.js +10 -9
  10. package/build/addons/simulator/instructions/SimulatorInstructions.js +17 -18
  11. package/build/addons/simulator/instructions/SimulatorInstructionsCard.js +69 -75
  12. package/build/addons/simulator/instructions/SimulatorInstructionsEvents.js +4 -1
  13. package/build/addons/simulator/instructions/UserInstructions.js +18 -15
  14. package/build/addons/simulator/ui/EnterXRButton.js +17 -17
  15. package/build/addons/simulator/ui/GeminiLiveApiKeyInput.js +45 -39
  16. package/build/addons/simulator/ui/HandPosePanel.js +20 -10
  17. package/build/addons/simulator/ui/MicButton.js +23 -18
  18. package/build/addons/simulator/ui/ModeIndicator.js +17 -17
  19. package/build/addons/ui/TextBillboard.js +1 -1
  20. package/build/addons/utils/Palette.js +3 -15
  21. package/build/addons/virtualkeyboard/Keyboard.js +24 -21
  22. package/build/addons/volumes/VolumetricCloud.glsl.js +1 -1
  23. package/build/addons/volumes/VolumetricCloud.js +8 -5
  24. package/build/agent/Tool.d.ts +3 -1
  25. package/build/ai/AI.d.ts +2 -2
  26. package/build/ai/Gemini.d.ts +1 -5
  27. package/build/camera/XRDeviceCamera.d.ts +1 -1
  28. package/build/core/Core.d.ts +3 -1
  29. package/build/core/Options.d.ts +7 -0
  30. package/build/core/components/ScreenshotSynthesizer.d.ts +2 -2
  31. package/build/core/components/XRTransition.d.ts +1 -1
  32. package/build/depth/DepthMesh.d.ts +1 -1
  33. package/build/input/Hands.d.ts +1 -1
  34. package/build/input/Input.d.ts +1 -1
  35. package/build/input/gestures/GestureEvents.d.ts +23 -0
  36. package/build/input/gestures/GestureRecognition.d.ts +43 -0
  37. package/build/input/gestures/GestureRecognitionOptions.d.ts +43 -0
  38. package/build/input/gestures/GestureTypes.d.ts +16 -0
  39. package/build/input/gestures/providers/HeuristicGestureDetectors.d.ts +2 -0
  40. package/build/simulator/Simulator.d.ts +2 -0
  41. package/build/simulator/SimulatorControls.d.ts +1 -1
  42. package/build/simulator/controlModes/SimulatorControlMode.d.ts +1 -1
  43. package/build/simulator/handPoses/HandPoseJoints.d.ts +2 -2
  44. package/build/simulator/userActions/PinchOnButtonAction.d.ts +2 -2
  45. package/build/simulator/userActions/WalkTowardsPanelAction.d.ts +1 -1
  46. package/build/singletons.d.ts +2 -2
  47. package/build/sound/CoreSound.d.ts +1 -1
  48. package/build/stereo/utils.d.ts +1 -1
  49. package/build/ui/components/MaterialSymbolsView.d.ts +1 -1
  50. package/build/ui/components/ScrollingTroikaTextView.d.ts +1 -1
  51. package/build/ui/interaction/ModelViewer.d.ts +6 -2
  52. package/build/utils/ModelLoader.d.ts +1 -1
  53. package/build/utils/SparkRendererHolder.d.ts +5 -0
  54. package/build/utils/Types.d.ts +2 -2
  55. package/build/video/VideoStream.d.ts +1 -1
  56. package/build/world/World.d.ts +1 -1
  57. package/build/world/objects/ObjectDetector.d.ts +1 -1
  58. package/build/world/planes/PlaneDetector.d.ts +1 -1
  59. package/build/xrblocks.d.ts +3 -0
  60. package/build/xrblocks.js +6782 -6020
  61. package/build/xrblocks.js.map +1 -1
  62. package/build/xrblocks.min.js +1 -1
  63. package/build/xrblocks.min.js.map +1 -1
  64. package/package.json +13 -8
@@ -21,12 +21,12 @@ export interface Shader {
21
21
  /**
22
22
  * A recursive readonly type.
23
23
  */
24
- export type DeepReadonly<T> = T extends ((...args: any[]) => any) ? T : T extends object ? {
24
+ export type DeepReadonly<T> = T extends (...args: any[]) => any ? T : T extends object ? {
25
25
  readonly [P in keyof T]: DeepReadonly<T[P]>;
26
26
  } : T;
27
27
  /**
28
28
  * A recursive partial type.
29
29
  */
30
- export type DeepPartial<T> = T extends ((...args: any[]) => any) ? T : T extends object ? {
30
+ export type DeepPartial<T> = T extends (...args: any[]) => any ? T : T extends object ? {
31
31
  [P in keyof T]?: DeepPartial<T[P]>;
32
32
  } : T;
@@ -75,7 +75,7 @@ export declare class VideoStream<T extends VideoStreamDetails = VideoStreamDetai
75
75
  * @param options - The options for the snapshot.
76
76
  * @returns The captured data.
77
77
  */
78
- getSnapshot({ width, height, outputFormat, mimeType, quality }?: VideoStreamGetSnapshotOptions): string | THREE.Texture | ImageData | null;
78
+ getSnapshot({ width, height, outputFormat, mimeType, quality, }?: VideoStreamGetSnapshotOptions): string | THREE.Texture<unknown> | ImageData | null;
79
79
  /**
80
80
  * Stops the current video stream tracks.
81
81
  */
@@ -46,7 +46,7 @@ export declare class World extends Script {
46
46
  * Initializes the world-sensing modules based on the provided configuration.
47
47
  * This method is called automatically by the XRCore.
48
48
  */
49
- init({ options, camera }: {
49
+ init({ options, camera, }: {
50
50
  options: WorldOptions;
51
51
  camera: THREE.Camera;
52
52
  }): Promise<void>;
@@ -39,7 +39,7 @@ export declare class ObjectDetector extends Script {
39
39
  * Initializes the ObjectDetector.
40
40
  * @override
41
41
  */
42
- init({ options, ai, aiOptions, deviceCamera, depth, camera }: {
42
+ init({ options, ai, aiOptions, deviceCamera, depth, camera, }: {
43
43
  options: WorldOptions;
44
44
  ai: AI;
45
45
  aiOptions: AIOptions;
@@ -27,7 +27,7 @@ export declare class PlaneDetector extends Script {
27
27
  /**
28
28
  * Initializes the PlaneDetector.
29
29
  */
30
- init({ options, renderer }: {
30
+ init({ options, renderer, }: {
31
31
  options: WorldOptions;
32
32
  renderer: THREE.WebGLRenderer;
33
33
  }): void;
@@ -31,6 +31,9 @@ export * from './input/components/HandJointNames';
31
31
  export * from './input/GazeController';
32
32
  export * from './input/Hands';
33
33
  export * from './input/HandsOptions';
34
+ export * from './input/gestures/GestureRecognition';
35
+ export * from './input/gestures/GestureRecognitionOptions';
36
+ export * from './input/gestures/GestureEvents';
34
37
  export * from './input/Input';
35
38
  export * from './input/MouseController';
36
39
  export * from './lighting/Lighting';