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:287
Properties
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
Defined in
lexical/src/LexicalSelection.ts:285
anchor
• anchor: PointType
Defined in
lexical/src/LexicalSelection.ts:282
dirty
• dirty: boolean
Implementation of
Defined in
lexical/src/LexicalSelection.ts:284
focus
• focus: PointType
Defined in
lexical/src/LexicalSelection.ts:283
Methods
clone
▸ Abstract
clone(): INTERNAL_PointSelection
Returns
Implementation of
Defined in
lexical/src/LexicalSelection.ts:318
extract
▸ extract(): LexicalNode
[]
Returns
Implementation of
Defined in
lexical/src/LexicalSelection.ts:314
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]
Returns
null
| LexicalNode
[]
Defined in
lexical/src/LexicalSelection.ts:295
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:345
getNodes
▸ Abstract
getNodes(): LexicalNode
[]
Returns
Implementation of
Defined in
lexical/src/LexicalSelection.ts:320
getTextContent
▸ Abstract
getTextContent(): string
Returns
string
Implementation of
Defined in
lexical/src/LexicalSelection.ts:322
insertNodes
▸ Abstract
insertNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | LexicalNode [] |
Returns
void
Implementation of
Defined in
lexical/src/LexicalSelection.ts:328
insertRawText
▸ Abstract
insertRawText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Implementation of
Defined in
lexical/src/LexicalSelection.ts:326
insertText
▸ Abstract
insertText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Implementation of
Defined in
lexical/src/LexicalSelection.ts:324
is
▸ is(selection
): boolean
Parameters
Name | Type |
---|---|
selection | null | BaseSelection |
Returns
boolean
Implementation of
Defined in
lexical/src/LexicalSelection.ts:303
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:335
isCollapsed
▸ isCollapsed(): boolean
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:310
setCachedNodes
▸ setCachedNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | null | LexicalNode [] |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:299