Skip to main content

Module: @lexical/offset

Classes

Functions

$createChildrenArray

$createChildrenArray(element, nodeMap): NodeKey[]

Parameters

NameType
elementElementNode
nodeMapnull | NodeMap

Returns

NodeKey[]

Defined in

packages/lexical-offset/src/index.ts:540


$createOffsetView

$createOffsetView(editor, blockOffsetSize?, editorState?): OffsetView

Parameters

NameTypeDefault value
editorLexicalEditorundefined
blockOffsetSizenumber1
editorState?null | EditorStateundefined

Returns

OffsetView

Defined in

packages/lexical-offset/src/index.ts:560


createChildrenArray

createChildrenArray(element, nodeMap): NodeKey[]

Parameters

NameType
elementElementNode
nodeMapnull | NodeMap

Returns

NodeKey[]

Deprecated

renamed to $createChildrenArray by @lexical/eslint-plugin rules-of-lexical

Defined in

packages/lexical-offset/src/index.ts:558