ArcballControls constructor
ArcballControls(])
camera - (required) The camera to be controlled. The camera must not be a child of another object, unless that object is the scene itself.
listenableKey - The element used for event listeners.
scene - The scene rendered by the camera. If not given, gizmos cannot be shown.
Implementation
ArcballControls(this.camera, this.listenableKey, [this.scene, double devicePixelRatio = 1.0]): super() {
//FSA
_state = State2.idle;
setCamera(camera);
if (scene != null) {
scene!.add(_gizmos);
}
// domElement.style.touchAction = 'none';
_devPxRatio = devicePixelRatio;
initializeMouseActions();
domElement.addEventListener(PeripheralType.contextmenu, onContextMenu);
domElement.addEventListener(PeripheralType.wheel, onWheel);
domElement.addEventListener(PeripheralType.pointerdown, onPointerDown);
domElement.addEventListener(PeripheralType.pointercancel, onPointerCancel);
// window.addEventListener( PeripheralType.resize, onWindowResize );
}