Class: NodeSelection
lexical.NodeSelection
實作
建構函式
constructor
• new NodeSelection(objects
): NodeSelection
參數
名稱 | 類型 |
---|---|
objects | Set <string > |
回傳值
定義於
packages/lexical/src/LexicalSelection.ts:272
屬性
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
實作自
定義於
packages/lexical/src/LexicalSelection.ts:269
_nodes
• _nodes: Set
<string
>
定義於
packages/lexical/src/LexicalSelection.ts:268
dirty
• dirty: boolean
實作自
定義於
packages/lexical/src/LexicalSelection.ts:270
函式
add
▸ add(key
): void
參數
名稱 | 類型 |
---|---|
key | string |
回傳值
void
定義於
packages/lexical/src/LexicalSelection.ts:307
clear
▸ clear(): void
回傳值
void
定義於
packages/lexical/src/LexicalSelection.ts:319
clone
▸ clone(): NodeSelection
回傳值
實作自
定義於
packages/lexical/src/LexicalSelection.ts:329
delete
▸ delete(key
): void
參數
名稱 | 類型 |
---|---|
key | string |
回傳值
void
定義於
packages/lexical/src/LexicalSelection.ts:313
extract
▸ extract(): LexicalNode
[]
回傳值
實作自
定義於
packages/lexical/src/LexicalSelection.ts:333
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]