Skip to content

BlockSuite API Documentation / @blocksuite/virgo / 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/virgo/src/utils/delta-convert.ts:37


Generated using typedoc-plugin-markdown and TypeDoc