Skip to main content
Version: Next

Type Alias: CameraControlsOptions

CameraControlsOptions = object

Defined in: packages/camera-manager/src/CameraControlsOptions.ts:5

Properties​

changeCameraPositionOnDoubleClick?​

optional changeCameraPositionOnDoubleClick?: boolean

Defined in: packages/camera-manager/src/CameraControlsOptions.ts:36

Enables or disables change of camera position on mouse doubke click. New target is then set to the point of the model under current cursor position and the a camera position is set half way to this point

Default is false.


changeCameraTargetOnClick?​

optional changeCameraTargetOnClick?: boolean

Defined in: packages/camera-manager/src/CameraControlsOptions.ts:27

Enables or disables change of camera target on mouse click. New target is then set to the point of the model under current cursor position.

Default is false.


mouseWheelAction?​

optional mouseWheelAction?: "zoomToTarget" | "zoomPastCursor" | "zoomToCursor"

Defined in: packages/camera-manager/src/CameraControlsOptions.ts:20

Sets mouse wheel initiated action.

Modes:

'zoomToTarget' - zooms just to the current target (center of the screen) of the camera.

'zoomPastCursor' - zooms in the direction of the ray coming from camera through cursor screen position, allows going through objects.

'zoomToCursor' - mouse wheel scroll zooms towards the point on the model where cursor is hovering over, doesn't allow going through objects.

Default is 'zoomPastCursor'.