Class: Point
lexical.Point
Constructors
constructor
• new Point(key
, offset
, type
)
Parameters
Name | Type |
---|---|
key | string |
offset | number |
type | "text" | "element" |
Defined in
lexical/src/LexicalSelection.ts:114
Properties
_selection
• _selection: null
| RangeSelection
| GridSelection
Defined in
lexical/src/LexicalSelection.ts:112
key
• key: string
Defined in
lexical/src/LexicalSelection.ts:109
offset
• offset: number
Defined in
lexical/src/LexicalSelection.ts:110
type
• type: "text"
| "element"
Defined in
lexical/src/LexicalSelection.ts:111
Methods
getNode
▸ getNode(): LexicalNode
Returns
Defined in
lexical/src/LexicalSelection.ts:149
is
▸ is(point
): boolean
Parameters
Name | Type |
---|---|
point | PointType |
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:121
isBefore
▸ isBefore(b
): boolean
Parameters
Name | Type |
---|---|
b | PointType |
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:129
set
▸ set(key
, offset
, type
): void
Parameters
Name | Type |
---|---|
key | string |
offset | number |
type | "text" | "element" |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:158