SizingOptions
Defined in: packages/core/src/capture/sizing.ts:25
Options for computing the screenshot plan.
Properties
Section titled “Properties”autoCrop?
Section titled “autoCrop?”
optionalautoCrop?:boolean
Defined in: packages/core/src/capture/sizing.ts:27
Per-story override: false forces full viewport, true forces crop when possible.
fullPageOnOverflow?
Section titled “fullPageOnOverflow?”
optionalfullPageOnOverflow?:boolean
Defined in: packages/core/src/capture/sizing.ts:31
Whether overflow should trigger fullPage; default true.
maxHeight?
Section titled “maxHeight?”
optionalmaxHeight?:number
Defined in: packages/core/src/capture/sizing.ts:37
maxWidth?
Section titled “maxWidth?”
optionalmaxWidth?:number
Defined in: packages/core/src/capture/sizing.ts:36
Max dimensions for the final PNG (clamp after padding).
minHeight?
Section titled “minHeight?”
optionalminHeight?:number
Defined in: packages/core/src/capture/sizing.ts:34
minWidth?
Section titled “minWidth?”
optionalminWidth?:number
Defined in: packages/core/src/capture/sizing.ts:33
Min dimensions for the final PNG (clamp after padding).
whitespaceThreshold?
Section titled “whitespaceThreshold?”
optionalwhitespaceThreshold?:number
Defined in: packages/core/src/capture/sizing.ts:29
Whitespace fraction (0..1) above which we crop; default 0.6.