The boundaries of the camera in the world coordinate system.
The position of the camera in the world coordinate system.
The rotation of the camera in the world coordinate system.
The boundaries of the rotation of the camera.
The height of the viewport. (The height of the canvas in css pixels)
The width of the viewport. (The width of the canvas in css pixels)
The boundaries of the zoom level of the camera.
The zoom level of the camera.
The width of the viewport. (The width of the canvas in css pixels)
The height of the viewport. (The height of the canvas in css pixels)
The position of the camera in the world coordinate system
The rotation of the camera in the world coordinate system
The zoom level of the camera
The boundaries of the camera in the world coordinate system
The boundaries of the zoom level of the camera
The boundaries of the rotation of the camera
The order of the transformation is as follows:
The device pixel ratio of the canvas
Whether to align the coordinate system to the camera's position
The transformation matrix
This function is used to subscribe to the camera events.
The name of the event to subscribe to.
The callback function to be called when the event is triggered.
Optional
options: SubscriptionOptionsThe options for the subscription.
The unsubscribe function.
This function is used to set the position of the camera.This function has a guard that checks if the destination point is within the boundaries of the camera. If the destination point is not within the boundaries, the function will return false and the position will not be updated. If the destination point is within the boundaries, the function will return true and the position will be updated.
The destination point of the camera.
Whether the position is set successfully.
This function is used to set the rotation of the camera.
The rotation of the camera in the world coordinate system.
Whether the rotation is set successfully.
The default board camera. This is basically the same as the BaseCamera class. But it's observable.