Skip to main content

Class: Point

lexical.Point

Constructors

constructor

new Point(key, offset, type)

Parameters

NameType
keystring
offsetnumber
type"text" | "element"

Defined in

lexical/src/LexicalSelection.ts:115

Properties

_selection

_selection: null | RangeSelection | GridSelection

Defined in

lexical/src/LexicalSelection.ts:113


key

key: string

Defined in

lexical/src/LexicalSelection.ts:110


offset

offset: number

Defined in

lexical/src/LexicalSelection.ts:111


type

type: "text" | "element"

Defined in

lexical/src/LexicalSelection.ts:112

Methods

getNode

getNode(): LexicalNode

Returns

LexicalNode

Defined in

lexical/src/LexicalSelection.ts:150


is

is(point): boolean

Parameters

NameType
pointPointType

Returns

boolean

Defined in

lexical/src/LexicalSelection.ts:122


isBefore

isBefore(b): boolean

Parameters

NameType
bPointType

Returns

boolean

Defined in

lexical/src/LexicalSelection.ts:130


set

set(key, offset, type): void

Parameters

NameType
keystring
offsetnumber
type"text" | "element"

Returns

void

Defined in

lexical/src/LexicalSelection.ts:159