Skip to main content

Function: batchToPNG()

batchToPNG<Row, G>(rows, group, build, filePattern, __namedParameters): Promise<string[]>

Defined in: packages/sdvtables/src/export/index.ts:306

gt_save_batch: one image per group value, {group} in the file name replaced by slug(value). A group whose table fails to build (build or the spec throws) is skipped and named in one warning at the end; when none builds, the error lists every failure. Python's quiet progress lines are not ported.

Type Parameters​

Row​

Row

G​

G extends string | number | symbol

Parameters​

rows​

readonly Row[]

group​

G

build​

(groupRows, value) => TableItem<Row>

filePattern​

string

__namedParameters​

BatchOptions

Returns​

Promise<string[]>