itowns
Version:
A JS/WebGL framework for 3D geospatial data visualization
34 lines (33 loc) • 1.14 kB
TypeScript
export namespace VR_EVENTS {
let CONTROLS_INITIALIZED: string;
}
export default WebXR;
/**
* @property {VRControls} vrControls - WebXR controllers handler
* */
declare class WebXR extends THREE.EventDispatcher<any> {
/**
* Handler of a webXR session
*
*
* @param {GlobeView} view - The view where the webXR session will be started
* @param {Object} [options] - WebXR configuration - its presence alone
* enable WebXR to switch on VR visualization.
* @param {function} [options.callback] - WebXR rendering callback (optional).
* @param {boolean} [options.controllers] - Enable the webXR controllers handling (optional).
*/
constructor(view: GlobeView, options?: {
callback?: Function | undefined;
controllers?: boolean | undefined;
});
view: GlobeView;
options: {
callback?: Function | undefined;
controllers?: boolean | undefined;
} | undefined;
renderCb: Function | undefined;
vrControls: VRControls | null;
initializeWebXR: () => void;
}
import * as THREE from 'three';
import VRControls from '../Controls/VRControls';