Skip to content

Markdown 截图选项

Extends ​

Properties ​

deviceScaleFactor? ​

optional deviceScaleFactor?: number

设备像素比,CSS 尺寸不变,输出物理像素按比例放大;默认 1

Inherited from ​

ScreenshotOptions.deviceScaleFactor


fullPage? ​

optional fullPage?: boolean

是否截取完整页面

Inherited from ​

ScreenshotOptions.fullPage


height? ​

optional height?: number

视图高度

Inherited from ​

ScreenshotOptions.height


quality? ​

optional quality?: number

图片质量 1-100

Inherited from ​

ScreenshotOptions.quality


themeMode? ​

optional themeMode?: "auto" | "light" | "dark"

主题模式,默认 auto(按时间自动切换)

Inherited from ​

ScreenshotOptions.themeMode


type? ​

optional type?: "png" | "jpeg" | "webp"

输出图片格式

Inherited from ​

ScreenshotOptions.type


waitTime? ​

optional waitTime?: number

渲染等待时间

Inherited from ​

ScreenshotOptions.waitTime


width? ​

optional width?: number

视图宽度

Inherited from ​

ScreenshotOptions.width

Released under the MIT License with love.