Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a selection as wed understands it.

Hierarchy

  • WedSelection

Index

Constructors

constructor

  • Parameters

    • converter: GUIToDataConverter
    • anchor: DLoc

      The anchor point of the selection. The anchor is where the selection started. It does not move when the user selects text.

    • Optional focus: DLoc | undefined

      The focus point of the selection. It is the part of the selection that moves when the user selects text. Omitting focus will result in a collapsed selection.

    Returns WedSelection

Properties

anchor

anchor: DLoc

The anchor point of the selection. The anchor is where the selection started. It does not move when the user selects text.

converter

focus

focus: DLoc

Accessors

collapsed

  • get collapsed(): boolean

range

  • get range(): Range | undefined

rangeInfo

wellFormed

  • get wellFormed(): boolean

Methods

asDataCarets

  • asDataCarets(): [DLoc, DLoc] | undefined

equals

  • equals<T>(other: T | undefined | null): boolean
  • Type parameters

    Parameters

    • other: T | undefined | null

    Returns boolean

    Whether the two objects are equal. They are equal if they are the same object or if they have equal focuses (foci?) and equal anchors.

mustAsDataCarets

Generated using TypeDoc