Skip to main content

Interface: BatchOptions

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

Options for batchToPNG, as Python gt_save_batch (no width; each file is named by its group).

Extends​

Properties​

background?​

optional background?: string

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

the color around the content; default "white"

Inherited from​

PNGOptions.background


deviceScaleFactor?​

optional deviceScaleFactor?: number

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

the rendering zoom (Python zoom); default 2, a sharp (retina) image

Inherited from​

PNGOptions.deviceScaleFactor


dir​

dir: string

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


optional fontLinks?: readonly string[]

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

stylesheet URLs (Google Fonts) awaited via document.fonts.ready

Inherited from​

PNGOptions.fontLinks


matchWidth?​

optional matchWidth?: boolean

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


whitespace?​

optional whitespace?: number

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

image pixels of background left around the trimmed content (Python whitespace, truncated to an integer); default 50

Inherited from​

PNGOptions.whitespace