selection

selection.clear

clear(): Promise<void>

Clear both node and edge selections.

Not undoable. Emits "selection:changed".

Returns: Promise<void>

Example

await api.selection.clear();