selection

selection.toggleEdges

toggleEdges(selector: EdgeSelector): Promise<void>

Toggle the selected state of each edge identified by the selector.

Selected edges become deselected and vice-versa. Accepts any EdgeSelector shape (ยง9.1). Not undoable. Emits "selection:changed".

selectorEdgeSelectorIdentifies the edges whose selection state to toggle.

Returns: Promise<void>

Example

await api.selection.toggleEdges(["e1", "e2"]);