Skip to content

isOverlappingSelection

isOverlappingSelection(selection): EditorSelector<boolean>

Defined in: selector.is-overlapping-selection.ts:15

Returns true if the supplied selection shares at least one point with the editor’s current selection. Resolves at any container depth.

Two selections that touch at a single endpoint share that point and are considered overlapping.

EditorSelection

EditorSelector<boolean>