@threlte/xr
Version:
Tools to more easily create VR and AR experiences with Threlte
29 lines (28 loc) • 936 B
TypeScript
import type { XRControllerEvents } from '../types';
import type { Snippet } from 'svelte';
/** `<Controller />` represents a THREE.XRTargetRaySpace, a THREE.XRGripSpace, and a controller model. */
declare const Controller: import("svelte").Component<{
children?: Snippet;
grip?: Snippet;
targetRay?: Snippet;
pointerRay?: Snippet;
pointerCursor?: Snippet;
teleportRay?: Snippet;
teleportCursor?: Snippet;
} & (XRControllerEvents & ({
/** Whether the controller should be matched with the left hand. */
left: true;
right?: undefined;
hand?: undefined;
} | {
/** Whether the controller should be matched with the right hand. */
right: true;
left?: undefined;
hand?: undefined;
} | {
/** Whether the controller should be matched with the left or right hand. */
hand: "left" | "right";
left?: undefined;
right?: undefined;
})), {}, "">;
export default Controller;