Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace TextSpan

A wrapper class for offset and length, which together, represent a span of text in a text document.

Properties

Optional length

length: undefined | number

The length of the selected text. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Optional offset

offset: undefined | number

The offset of the selected text within the entire text. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Functions

getDeserializedJsonObj

  • getDeserializedJsonObj(obj: TextSpan): object

getJsonObj