Class: GridSelection
lexical.GridSelection
Implements
Constructors
constructor
• new GridSelection(gridKey
, anchor
, focus
)
Parameters
Name | Type |
---|---|
gridKey | string |
anchor | PointType |
focus | PointType |
Defined in
lexical/src/LexicalSelection.ts:382
Properties
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
Defined in
lexical/src/LexicalSelection.ts:380
anchor
• anchor: PointType
Defined in
lexical/src/LexicalSelection.ts:377
dirty
• dirty: boolean
Implementation of
Defined in
lexical/src/LexicalSelection.ts:379
focus
• focus: PointType
Defined in
lexical/src/LexicalSelection.ts:378
gridKey
• gridKey: string
Defined in
lexical/src/LexicalSelection.ts:376
Methods
clone
▸ clone(): GridSelection
Returns
Implementation of
Defined in
lexical/src/LexicalSelection.ts:413
extract
▸ extract(): LexicalNode
[]
Returns
Implementation of
Defined in
lexical/src/LexicalSelection.ts:429
getCharacterOffsets
▸ getCharacterOffsets(): [number
, number
]
Returns
[number
, number
]
Defined in
lexical/src/LexicalSelection.ts:425
getNodes
▸ getNodes(): LexicalNode
[]
Returns
Implementation of
Defined in
lexical/src/LexicalSelection.ts:478
getShape
▸ getShape(): GridSelectionShape
Returns
Defined in
lexical/src/LexicalSelection.ts:449
getTextContent
▸ getTextContent(): string
Returns
string
Implementation of
Defined in
lexical/src/LexicalSelection.ts:526
insertNodes
▸ insertNodes(nodes
, selectStart?
): boolean
Parameters
Name | Type |
---|---|
nodes | LexicalNode [] |
selectStart? | boolean |
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:441
insertRawText
▸ insertRawText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Implementation of
Defined in
lexical/src/LexicalSelection.ts:433
insertText
▸ insertText(): void
Returns
void
Defined in
lexical/src/LexicalSelection.ts:437
is
▸ is(selection
): boolean
Parameters
Name | Type |
---|---|
selection | null | RangeSelection | NodeSelection | GridSelection |
Returns
boolean
Implementation of
Defined in
lexical/src/LexicalSelection.ts:392
isBackward
▸ isBackward(): boolean
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:421
isCollapsed
▸ isCollapsed(): boolean
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:417
set
▸ set(gridKey
, anchorCellKey
, focusCellKey
): void
Parameters
Name | Type |
---|---|
gridKey | string |
anchorCellKey | string |
focusCellKey | string |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:405