fix(capture): remove unsupported snapdom option

This commit is contained in:
digua committed 2026-07-16 11:23:39 +08:00
1 parent d2cd841168
commit 3275591c11
1 file changed
-2
-2
View File
@@ -6,7 +6,6 @@ export interface CaptureOptions {
backgroundColor?: string
crossOrigin?: string
embedFonts?: boolean
compress?: boolean
filename?: string
/** 是否捕获完整的可滚动内容(默认 true) */
fullContent?: boolean
@@ -174,7 +173,6 @@ export async function captureAsImageData(rootEl: HTMLElement, options?: CaptureO
scale: captureScale,
// 禁用字体嵌入可以避免某些 Unicode 字符导致的 encodeURIComponent 错误
embedFonts: options?.embedFonts ?? false,
compress: options?.compress ?? true,
backgroundColor: bgColor,
}