selection.selectNodes
selectNodes(nodeIds: string[], mode: SelectionMode): Promise<void>Select nodes using the given mode.
Not undoable — selection is intentionally outside the undo stack.
Emits "selection:changed".
nodeIds | string[] | Ids of the nodes to act on. |
mode | SelectionMode | How the new ids interact with the current selection; defaults to "replace". |
Returns: Promise<void>
Example
await api.selection.selectNodes(["s1", "s2"], "add");