This event is raised when the getHierarchy method is called on the AdvancedRenderer component. A parameter is passed back (data) that represents the 3D structure of the Scene being rendered.
({
handleTestGetHierarchy: function (component, event, helper) {
let renderer = component.find('renderer');
renderer.getHierarchy();
},
handleGetHierarchy: function (component, event, helper) {
alert(JSON.stringify(event.getParam('data'), null, 2))
},
handleGetCameraPositionsandTarget: function (component, event, helper) {
alert(JSON.stringify(event.getParam('data'), null, 2))
},
handleComponentSelected: function (component, event, helper) {
alert('Selected name = ' + event.getParams().name);
//todo do something with the selected component data like fetch salesforce data
},
})
NAME
TYPE
REQUIRED
DESCRIPTION
data
object
The JSON hierarchical representation of the 3D scene