Events are scoped to the <ansys-adr-viewer> element and handlers should be attached to the viewer element itself. An example of connecting to the partlist changed event assuming instantiation via the previous example code:
Event details
There are a number of available events. Many are in common over all the renderers, but not all.
gltfviewer-spaceclaim-pick details:
- name: part name
- path: complete “path” to the pick target
- type: SELECTION_NONE|SELECTION_EDGE|SELECTION_FACE|SELECTION_BODY
- min: [xmin, ymin, zmin]
- max: [xmax, ymax, zmax]
- vertices: [[x,y,z], …]
- min: [xmin, ymin, zmin]
- max: [xmax, ymax, zmax]