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:110

Properties

_selection

_selection: null | BaseSelection

Defined in

packages/lexical/src/LexicalSelection.ts:108


key

key: string

Defined in

packages/lexical/src/LexicalSelection.ts:105


offset

offset: number

Defined in

packages/lexical/src/LexicalSelection.ts:106


type

type: "text" | "element"

Defined in

packages/lexical/src/LexicalSelection.ts:107

Methods

getNode

getNode(): LexicalNode

Returns

LexicalNode

Defined in

packages/lexical/src/LexicalSelection.ts:153


is

is(point): boolean

Parameters

NameType
pointPointType

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:125


isBefore

isBefore(b): boolean

Parameters

NameType
bPointType

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:133


set

set(key, offset, type, onlyIfChanged?): void

Parameters

NameType
keystring
offsetnumber
type"text" | "element"
onlyIfChanged?boolean

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:162