@threlte/xr
Version:
Tools to more easily create VR and AR experiences with Threlte
26 lines (25 loc) • 741 B
TypeScript
import type { XRHandEvents } from '../types.js';
import type { Snippet } from 'svelte';
type Props = {
children?: Snippet;
targetRay?: Snippet;
wrist?: Snippet;
} & XRHandEvents & ({
/** Whether the XRHand should be matched with the left hand. */
left: true;
right?: undefined;
hand?: undefined;
} | {
/** Whether the XRHand should be matched with the right hand. */
right: true;
left?: undefined;
hand?: undefined;
} | {
/** Whether the XRHand should be matched with the left or right hand. */
hand: 'left' | 'right';
left?: undefined;
right?: undefined;
});
declare const Hand: import("svelte").Component<Props, {}, "">;
type Hand = ReturnType<typeof Hand>;
export default Hand;