Class: Point
lexical.Point
Constructors
constructor
• new Point(key
, offset
, type
): Point
Parameters
Name | Type |
---|---|
key | string |
offset | number |
type | "text" | "element" |
Returns
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
Defined in
packages/lexical/src/LexicalSelection.ts:133
is
▸ is(point
): boolean
Parameters
Name | Type |
---|---|
point | PointType |
Returns
boolean
Defined in
packages/lexical/src/LexicalSelection.ts:105
isBefore
▸ isBefore(b
): boolean
Parameters
Name | Type |
---|---|
b | PointType |
Returns
boolean
Defined in
packages/lexical/src/LexicalSelection.ts:113
set
▸ set(key
, offset
, type
): void
Parameters
Name | Type |
---|---|
key | string |
offset | number |
type | "text" | "element" |
Returns
void