Skip to content

@burnmark-io/designer-core


@burnmark-io/designer-core / renderBatch

Function: renderBatch()

renderBatch(designer, rows): AsyncGenerator<BatchResult>

Defined in: packages/core/src/batch.ts:18

Render a batch of labels from CSV rows. Memory-efficient: each label is rendered on demand and yielded, so the consumer can print/save/GC it before the next one is produced.

Yields full-colour RGBA per row. Colour separation and 1bpp conversion happen downstream in the driver (printer.print(image, media)).

Parameters

designer

LabelDesigner

rows

Record<string, string>[]

Returns

AsyncGenerator<BatchResult>

Not affiliated with Dymo, Brother, Avery, or any hardware vendor.