Class: CameraComponent
Defined in: rendering/components/camera-component.ts:52
The CameraComponent
class implements the Component
interface and represents
a camera in the rendering system. It provides properties for zooming and panning
sensitivity, as well as options to restrict zoom levels and enable/disable panning
and zooming.
Implements
Constructors
Constructor
new CameraComponent(
options
):CameraComponent
Defined in: rendering/components/camera-component.ts:87
Constructs a new instance of the CameraComponent
class with the given options.
Parameters
options
Partial
<CameraComponentOptions
> = defaultOptions
Partial options to configure the camera component.
Returns
CameraComponent
Properties
allowPanning
allowPanning:
boolean
Defined in: rendering/components/camera-component.ts:75
Indicates if panning is allowed.
allowZooming
allowZooming:
boolean
Defined in: rendering/components/camera-component.ts:78
Indicates if zooming is allowed.
isStatic
isStatic:
boolean
Defined in: rendering/components/camera-component.ts:72
Indicates if the camera is static (non-movable).
maxZoom
maxZoom:
number
Defined in: rendering/components/camera-component.ts:69
The maximum zoom level allowed.
minZoom
minZoom:
number
Defined in: rendering/components/camera-component.ts:66
The minimum zoom level allowed.
name
name:
symbol
Defined in: rendering/components/camera-component.ts:54
The name property holds the unique symbol for this component.
Implementation of
panSensitivity
panSensitivity:
number
Defined in: rendering/components/camera-component.ts:63
The sensitivity of the panning controls.
zoom
zoom:
number
Defined in: rendering/components/camera-component.ts:57
The current zoom level of the camera.
zoomSensitivity
zoomSensitivity:
number
Defined in: rendering/components/camera-component.ts:60
The sensitivity of the zoom controls.
symbol
readonly
static
symbol: typeofsymbol
Defined in: rendering/components/camera-component.ts:81
A static symbol property that uniquely identifies the CameraComponent
.
Methods
createDefaultCamera()
static
createDefaultCamera(isStatic
):CameraComponent
Defined in: rendering/components/camera-component.ts:109
Creates a default camera component with the option to set it as static.
Parameters
isStatic
boolean
= false
Indicates if the camera should be static (default: false).
Returns
CameraComponent
A new CameraComponent
instance with default settings.