threepipe
Version:
A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.
11 lines • 544 B
JavaScript
import { ACameraControlsPlugin } from '../base/ACameraControlsPlugin';
import { DeviceOrientationControls2 } from '../../three';
export class DeviceOrientationControlsPlugin extends ACameraControlsPlugin {
constructor() {
super(...arguments);
this.controlsKey = 'deviceOrientation';
this._controlsCtor = (object, _domElement) => new DeviceOrientationControls2(object);
}
}
DeviceOrientationControlsPlugin.PluginType = 'DeviceOrientationControlsPlugin';
//# sourceMappingURL=DeviceOrientationControlsPlugin.js.map