Skip to content

SizingOptions

Defined in: packages/core/src/capture/sizing.ts:25

Options for computing the screenshot plan.

optional autoCrop?: boolean

Defined in: packages/core/src/capture/sizing.ts:27

Per-story override: false forces full viewport, true forces crop when possible.


optional fullPageOnOverflow?: boolean

Defined in: packages/core/src/capture/sizing.ts:31

Whether overflow should trigger fullPage; default true.


optional maxHeight?: number

Defined in: packages/core/src/capture/sizing.ts:37


optional maxWidth?: number

Defined in: packages/core/src/capture/sizing.ts:36

Max dimensions for the final PNG (clamp after padding).


optional minHeight?: number

Defined in: packages/core/src/capture/sizing.ts:34


optional minWidth?: number

Defined in: packages/core/src/capture/sizing.ts:33

Min dimensions for the final PNG (clamp after padding).


optional whitespaceThreshold?: number

Defined in: packages/core/src/capture/sizing.ts:29

Whitespace fraction (0..1) above which we crop; default 0.6.