Class: INTERNAL_PointSelection
lexical.INTERNAL_PointSelection
This class is being used only for internal use case of migration GridSelection outside of core package. DO NOT USE THIS CLASS DIRECTLY.
Hierarchy
INTERNAL_PointSelection
Implements
Constructors
constructor
• new INTERNAL_PointSelection(anchor
, focus
)
Parameters
Name | Type |
---|---|
anchor | PointType |
focus | PointType |
Defined in
lexical/src/LexicalSelection.ts:288
Properties
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
Defined in
lexical/src/LexicalSelection.ts:286
anchor
• anchor: PointType
Defined in
lexical/src/LexicalSelection.ts:283
dirty
• dirty: boolean
Implementation of
Defined in
lexical/src/LexicalSelection.ts:285
focus
• focus: PointType
Defined in
lexical/src/LexicalSelection.ts:284
Methods
clone
▸ Abstract
clone(): INTERNAL_PointSelection
Returns
Implementation of
Defined in
lexical/src/LexicalSelection.ts:319
extract
▸ extract(): LexicalNode
[]
Returns
Implementation of
Defined in
lexical/src/LexicalSelection.ts:315
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]
Returns
null
| LexicalNode
[]
Implementation of
Defined in
lexical/src/LexicalSelection.ts:296
getCharacterOffsets
▸ getCharacterOffsets(): [number
, number
]
Returns the character-based offsets of the Selection, accounting for non-text Points by using the children size or text content.
Returns
[number
, number
]
the character offsets for the Selection
Defined in
lexical/src/LexicalSelection.ts:346
getNodes
▸ Abstract
getNodes(): LexicalNode
[]
Returns
Implementation of
Defined in
lexical/src/LexicalSelection.ts:321
getTextContent
▸ Abstract
getTextContent(): string
Returns
string
Implementation of
Defined in
lexical/src/LexicalSelection.ts:323
insertNodes
▸ Abstract
insertNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | LexicalNode [] |
Returns
void
Implementation of
Defined in
lexical/src/LexicalSelection.ts:329
insertRawText
▸ Abstract
insertRawText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Implementation of
Defined in
lexical/src/LexicalSelection.ts:327
insertText
▸ Abstract
insertText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Implementation of
Defined in
lexical/src/LexicalSelection.ts:325
is
▸ is(selection
): boolean
Parameters
Name | Type |
---|---|
selection | null | BaseSelection |
Returns
boolean
Implementation of
Defined in
lexical/src/LexicalSelection.ts:304
isBackward
▸ isBackward(): boolean
Returns whether the Selection is "backwards", meaning the focus logically precedes the anchor in the EditorState.
Returns
boolean
true if the Selection is backwards, false otherwise.
Defined in
lexical/src/LexicalSelection.ts:336
isCollapsed
▸ isCollapsed(): boolean
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:311
setCachedNodes
▸ setCachedNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | null | LexicalNode [] |
Returns
void
Implementation of
Defined in
lexical/src/LexicalSelection.ts:300