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.
- package/README.md +25 -9
- package/build/addons/ai/AudioCaptureProcessorCode.d.ts +1 -0
- package/build/addons/ai/AudioCaptureProcessorCode.js +27 -0
- package/build/addons/ai/GeminiManager.d.ts +7 -3
- package/build/addons/ai/GeminiManager.js +48 -23
- package/build/addons/objects/SimpleDecalGeometry.js +9 -5
- package/build/addons/simulator/instructions/CustomInstruction.js +8 -9
- package/build/addons/simulator/instructions/HandsInstructions.js +17 -10
- package/build/addons/simulator/instructions/NavigationInstructions.js +10 -9
- package/build/addons/simulator/instructions/SimulatorInstructions.js +17 -18
- package/build/addons/simulator/instructions/SimulatorInstructionsCard.js +69 -75
- package/build/addons/simulator/instructions/SimulatorInstructionsEvents.js +4 -1
- package/build/addons/simulator/instructions/UserInstructions.js +18 -15
- package/build/addons/simulator/ui/EnterXRButton.js +17 -17
- package/build/addons/simulator/ui/GeminiLiveApiKeyInput.js +45 -39
- package/build/addons/simulator/ui/HandPosePanel.js +20 -10
- package/build/addons/simulator/ui/MicButton.js +23 -18
- package/build/addons/simulator/ui/ModeIndicator.js +17 -17
- package/build/addons/ui/TextBillboard.js +1 -1
- package/build/addons/utils/Palette.js +3 -15
- package/build/addons/virtualkeyboard/Keyboard.js +24 -21
- package/build/addons/volumes/VolumetricCloud.glsl.js +1 -1
- package/build/addons/volumes/VolumetricCloud.js +8 -5
- package/build/agent/Tool.d.ts +3 -1
- package/build/ai/AI.d.ts +2 -2
- package/build/ai/Gemini.d.ts +1 -5
- package/build/camera/XRDeviceCamera.d.ts +1 -1
- package/build/core/Core.d.ts +3 -1
- package/build/core/Options.d.ts +7 -0
- package/build/core/components/ScreenshotSynthesizer.d.ts +2 -2
- package/build/core/components/XRTransition.d.ts +1 -1
- package/build/depth/DepthMesh.d.ts +1 -1
- package/build/input/Hands.d.ts +1 -1
- package/build/input/Input.d.ts +1 -1
- package/build/input/gestures/GestureEvents.d.ts +23 -0
- package/build/input/gestures/GestureRecognition.d.ts +43 -0
- package/build/input/gestures/GestureRecognitionOptions.d.ts +43 -0
- package/build/input/gestures/GestureTypes.d.ts +16 -0
- package/build/input/gestures/providers/HeuristicGestureDetectors.d.ts +2 -0
- package/build/simulator/Simulator.d.ts +2 -0
- package/build/simulator/SimulatorControls.d.ts +1 -1
- package/build/simulator/controlModes/SimulatorControlMode.d.ts +1 -1
- package/build/simulator/handPoses/HandPoseJoints.d.ts +2 -2
- package/build/simulator/userActions/PinchOnButtonAction.d.ts +2 -2
- package/build/simulator/userActions/WalkTowardsPanelAction.d.ts +1 -1
- package/build/singletons.d.ts +2 -2
- package/build/sound/CoreSound.d.ts +1 -1
- package/build/stereo/utils.d.ts +1 -1
- package/build/ui/components/MaterialSymbolsView.d.ts +1 -1
- package/build/ui/components/ScrollingTroikaTextView.d.ts +1 -1
- package/build/ui/interaction/ModelViewer.d.ts +6 -2
- package/build/utils/ModelLoader.d.ts +1 -1
- package/build/utils/SparkRendererHolder.d.ts +5 -0
- package/build/utils/Types.d.ts +2 -2
- package/build/video/VideoStream.d.ts +1 -1
- package/build/world/World.d.ts +1 -1
- package/build/world/objects/ObjectDetector.d.ts +1 -1
- package/build/world/planes/PlaneDetector.d.ts +1 -1
- package/build/xrblocks.d.ts +3 -0
- package/build/xrblocks.js +6782 -6020
- package/build/xrblocks.js.map +1 -1
- package/build/xrblocks.min.js +1 -1
- package/build/xrblocks.min.js.map +1 -1
- package/package.json +13 -8
package/build/utils/Types.d.ts
CHANGED
|
@@ -21,12 +21,12 @@ export interface Shader {
|
|
|
21
21
|
/**
|
|
22
22
|
* A recursive readonly type.
|
|
23
23
|
*/
|
|
24
|
-
export type DeepReadonly<T> = T extends (
|
|
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 (
|
|
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
|
*/
|
package/build/world/World.d.ts
CHANGED
|
@@ -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;
|
package/build/xrblocks.d.ts
CHANGED
|
@@ -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';
|