Skip to content
Lamina PDF
Unreleased

These docs describe changes that aren’t released yet. For the newest release, see the released docs.

Chunk

Chunk = object

One chunk.

blockIds: string[]

The blocks it holds, in order.


headingPath: string[]

The headings above its first block, outermost first.


id: string

c<n>, from 0, in order.


pages: number[]

The pages its blocks are on, ascending.


regions: Region[]

Its area on each of those pages.


text: string

The Markdown from the first block’s start to the last block’s end.


textRange: TextRange

Where text sits in the Markdown.


tokensApprox: number

[tokens_approx] of text.