import { EventDispatcher, OrthographicCamera, PerspectiveCamera, Quaternion, Vector3 } from 'three'; import { ComboControlsOptions } from './ComboControlsOptions'; /** * The event type for events emitted by {@link ComboControls}. */ export type ComboControlsEventType = { cameraChange: { camera: { position: Vector3; target: Vector3; }; }; }; export declare class ComboControls extends EventDispatcher { dispose: () => void; private _enabled; private _options; private _temporarilyDisableDamping; private readonly _domElement; private readonly _camera; private readonly _reusableCamera; private readonly _target; private readonly _targetEnd; private readonly _spherical; private readonly _sphericalEnd; private readonly _scrollTarget; private readonly _viewTarget; private readonly _rawCameraRotation; private readonly _accumulatedMouseMove; private readonly _keyboard; private readonly _pointEventCache; private readonly _reusableVector3s; private readonly _raycaster; constructor(camera: PerspectiveCamera | OrthographicCamera, domElement: HTMLElement); /** * Gets current Combo Controls options. */ get options(): Readonly; /** * Sets Combo Controls options. * * Only the provided options will be changed, any undefined options will be kept as is. */ set options(options: Partial); /** * Returns true if these controls are enabled. */ get enabled(): boolean; /** * Sets the enabled state of these controls. */ set enabled(newEnabledValue: boolean); /** * Camera rotation to be used by the camera instead of target-based rotation. * This rotation is used only when set to non-default quaternion value (not identity rotation quaternion). * Externally, value is updated by `CameraManager` when `setState` method with non-zero rotation is called. Automatically * resets to default value when `setState` method is called with no rotation value. */ get cameraRawRotation(): Quaternion; getScrollTarget: () => Vector3; getState: () => { target: Vector3; position: Vector3; }; setScrollTarget: (target: Vector3) => void; setState: (position: Vector3, target: Vector3) => void; setViewTarget: (target: Vector3) => void; /** * Converts deltaTimeS to a time scale based on the target frames per second (FPS). * * @param deltaTimeS - The elapsed time since the last frame in seconds. * @returns The time scale, which is a factor representing the relationship of deltaTimeS to the target FPS. */ private getTimeScale; private getDollyDeltaDistance; private newVector3; update: (deltaTimeS: number, forceUpdate?: boolean) => boolean; triggerCameraChangeEvent: () => void; private readonly onPointerDown; private readonly onMouseDown; private readonly onPointerUp; private readonly onMouseUp; private readonly onMouseWheel; private readonly onTouchStart; private readonly onFocusChanged; private readonly onContextMenu; private addEventListeners; private removeEventListeners; private startMouseRotation; private startTouchRotation; private rotate; private rotateFirstPersonMode; private startTouchPinch; private startMousePan; private pan; private panLeft; private panUp; private dolly; private dollyOrthographicCamera; private dollyPerspectiveCamera; private dollyWithWheelScroll; private calculateNewRadiusAndTargetOffsetLerp; private calculateNewRadiusAndTargetOffsetScrollTarget; private handleRotationFromKeyboard; private handleDollyFromKeyboard; private handlePanFromKeyboard; private handleKeyboard; }