Skip to main content

CameraControl

Interface for camera control

interface CameraControl

Properties

Whether this control is animating the camera

Whether this control is enabled or not

Methods

Destroy the instance and remove all event listeners attached.

Disable this control and remove all event listeners

Enable this control and add event listeners.

Synchronize this control's state to current camera state

Properties

animating

>=4.0.0
readonly
animating

boolean

Whether this control is animating the camera

enabled

>=4.0.0
readonly
enabled

boolean

Whether this control is enabled or not

Methods

destroy

>=4.0.0
destroy

void

destroy(): void

Destroy the instance and remove all event listeners attached.

disable

>=4.0.0
disable

void

disable(): void

Disable this control and remove all event listeners

enable

>=4.0.0
enable

void

enable(): void

Enable this control and add event listeners.

sync

>=4.0.0
sync

void

sync(camera: Camera): void

Synchronize this control's state to current camera state

Parameters

camera

Camera's instance