Skip to main content

Class: Point

lexical.Point

Constructors

constructor

new Point(key, offset, type): Point

Parameters

NameType
keystring
offsetnumber
type"text" | "element"

Returns

Point

Defined in

packages/lexical/src/LexicalSelection.ts:98

Properties

_selection

_selection: null | BaseSelection

Defined in

packages/lexical/src/LexicalSelection.ts:96


key

key: string

Defined in

packages/lexical/src/LexicalSelection.ts:93


offset

offset: number

Defined in

packages/lexical/src/LexicalSelection.ts:94


type

type: "text" | "element"

Defined in

packages/lexical/src/LexicalSelection.ts:95

Methods

getNode

getNode(): LexicalNode

Returns

LexicalNode

Defined in

packages/lexical/src/LexicalSelection.ts:133


is

is(point): boolean

Parameters

NameType
pointPointType

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:105


isBefore

isBefore(b): boolean

Parameters

NameType
bPointType

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:113


set

set(key, offset, type): void

Parameters

NameType
keystring
offsetnumber
type"text" | "element"

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:142