mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
fix(capture): remove unsupported snapdom option
This commit is contained in:
1 parent
d2cd841168
commit
3275591c11
1 file changed
-2
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user