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 • 585 B
JavaScript
import { ACameraControlsPlugin } from '../base/ACameraControlsPlugin';
import { PointerLockControls2 } from '../../three';
export class PointerLockControlsPlugin extends ACameraControlsPlugin {
constructor() {
super(...arguments);
this.controlsKey = 'pointerLock';
this._controlsCtor = (object, domElement) => new PointerLockControls2(object, !domElement?.ownerDocument ? (domElement || document).documentElement : domElement);
}
}
PointerLockControlsPlugin.PluginType = 'PointerLockControlsPlugin';
//# sourceMappingURL=PointerLockControlsPlugin.js.map