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