selection

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".

edgeIdsstring[]Ids of the edges to act on.
modeSelectionModeHow the new ids interact with the current edge selection; defaults to "replace".

Returns: Promise<void>

Example

await api.selection.selectEdges(["e1"], "add");