The renderer plugin context.
Optional
isDefaultCameraPositionEnabled: booleanAdds an event listener for a specific event.
The type of the event key.
An object with a remove
method to unsubscribe the listener.
Registers an event listener handle to be managed by the plugin. Managed listeners will be automatically removed when the plugin is torn down.
The event listener handle to manage.
Animates the camera to the home position while preserving the current yaw angle.
Animates the camera to the home position.
Home position is either computed based on the asset's bounds or set explicitly by setDefaultAssetHome
.
Animates the camera to a top-down view of the map.
Animates the camera to the specified look-at position.
Animates the camera to look at the center of the asset with a certain pitch, yaw and roll
Returns the current camera state, including the eye position, forward vector, and up vector. The returned state is in the reference of the asset.
Tears down the plugin by removing all managed event listeners and clearing the event emitter. This method is called when the plugin is being destroyed.
The plugin context provided during teardown.
Checks if the camera is currently in a top-down view.
Protected
isChecks if the plugin has been torn down.
true
if the plugin has been torn down, otherwise false
.
Sets the default camera state (home position & orientation).
If no default state is explicitly set, it will be computed based on the asset's bounds. The camera state that is passed should be in the reference of the asset.
Optional
cameraState: null | CameraStateThe new default camera state to set. If null is provided, the computed camera state will be used as the home position.
Transform from RIA map representation to the Asset representation (the case for non-geo-referenced assets)
Transform from Asset representation to the RIA map representation
A plugin that manages interactions and operations related to the asset camera.