UNPKG

three-stdlib

Version:

stand-alone library of threejs examples

30 lines (29 loc) 957 B
import { Camera } from 'three'; import { EventDispatcher } from './EventDispatcher'; import { StandardControlsEventMap } from './StandardControlsEventMap'; /** * W3C Device Orientation control (http://w3c.github.io/deviceorientation/spec-source-orientation.html) */ declare class DeviceOrientationControls extends EventDispatcher<StandardControlsEventMap> { object: Camera; private changeEvent; private EPS; enabled: boolean; deviceOrientation: Partial<DeviceOrientationEvent>; screenOrientation: string | number; alphaOffset: number; constructor(object: Camera); private onDeviceOrientationChangeEvent; private onScreenOrientationChangeEvent; private zee; private euler; private q0; private q1; private setObjectQuaternion; connect: () => void; disconnect: () => void; private lastQuaternion; update: () => void; dispose: () => void; } export { DeviceOrientationControls };