You can use the editor.selection
object to select or change the selection of shapes and handle related events.
Get selected shapes
In order to get a set of selected shapes in the editor:
You can also test a shape is selected or not as below:
Select shapes
You can use various selection methods to select/deselect shapes or area.
Listen to the changes of selection
You can listen to the changes of selection through the both React component and editor object.