Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/threejs_4_deno/src/Three.d.ts>XRSession

A simple transformation of three.js for use within a Deno workflow
Go to Latest
interface XRSession
Re-export
import { type XRSession } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";

Properties

addEventListener: Function
removeEventListener: Function
renderState: XRRenderState
inputSources: Array<XRInputSource>
environmentBlendMode: XREnvironmentBlendMode
visibilityState: XRVisibilityState

Methods

requestReferenceSpace(type: XRReferenceSpaceType): Promise<XRReferenceSpace>
updateRenderState(renderStateInit: XRRenderStateInit): Promise<void>
requestAnimationFrame(callback: XRFrameRequestCallback): number
cancelAnimationFrame(id: number): void
end(): Promise<void>
requestHitTestSource(options: XRHitTestOptionsInit): Promise<XRHitTestSource>
requestHitTestSourceForTransientInput(options: XRTransientInputHitTestOptionsInit): Promise<XRTransientInputHitTestSource>
requestHitTest(ray: XRRay, referenceSpace: XRReferenceSpace): Promise<XRHitResult[]>
updateWorldTrackingState(options: { planeDetectionState?: { enabled: boolean; }; }): void