BlockSuite API Documentation / @blocksuite/inline / deltaInsertsToChunks
Function: deltaInsertsToChunks()
deltaInsertsToChunks<
TextAttributes
>(delta
):DeltaInsert
<TextAttributes
>[][]
convert a delta insert array to chunks, each chunk is a line
Type parameters
• TextAttributes extends Object
Parameters
• delta: DeltaInsert
<TextAttributes
>[]
Returns
DeltaInsert
<TextAttributes
>[][]
Source
packages/framework/inline/src/utils/delta-convert.ts:37
Generated using TypeDoc and typedoc-plugin-markdown.