Returns an array of currently selected nodes in the diagram.
An array of INode objects representing the selected nodes.
Checks if a given node is currently selected in the diagram.
The node to check for selection.
True if the node is selected, false otherwise.
Selects a given node in the diagram.
The node to select.
The selection option, either 'in_group' or 'isolated'.
Deselects a given node in the diagram.
The node to deselect.
The selection option, either 'in_group' or 'isolated'.
Clears the current selection in the diagram.
Payload for selection change events, which includes the currently selected nodes and their IDs.