EVT_Renderer_Get_CameraPositionandTarget
Last updated
Last updated
This event is raised when getCameraPositionandTarget is called on the AdvancedRenderer component. It returns a single. Handling this event allows for the receiving of the details of that 3D node. These details can be used to apply 3D effects to the scene, or by looking up related data within the Salesforce platform.
“data” parameter structure
Choosing where to aim the camera is important when displaying 3D diagrams to users. Often, its easier to navigate where you want the users to look and get the position of the camera in order to re-use as part of a scene or a configuration.To do this, simply call the getCameraPositionandTarget on the instance of your renderer, after subscribing to the message type and you'll receive the position in JSON format.
Component
Controller
NAME
TYPE
REQUIRED
DESCRIPTION
data
object
Yes
The camera's position returned in JSON object format