TransformControls constructor
TransformControls(
- dynamic camera,
- dynamic domKey
Implementation
TransformControls(camera, this.domKey) : super() {
scope = this;
this.visible = false;
domElement = domKey.currentState;
// this.domElement.style.touchAction = 'none'; // disable touch scroll
_gizmo = TransformControlsGizmo(this);
_gizmo.name = "TransformControlsGizmo";
_plane = TransformControlsPlane(this);
_plane.name = "TransformControlsPlane";
this.camera = camera;
add(_gizmo);
add(_plane);
domElement.addEventListener('pointerdown', _onPointerDown, false);
domElement.addEventListener('pointermove', _onPointerHover, false);
domElement.addEventListener('pointerup', _onPointerUp, false);
}