From d5c17e1cf1cdf4afd1ad2b560fbe8d467d608947 Mon Sep 17 00:00:00 2001 From: hzsrc Date: Fri, 16 Aug 2024 15:31:51 +0800 Subject: [PATCH 01/12] feat: add option to resolve problems which caused by html that has large amount of sub nodes --- README.md | 9 +++++++++ src/clone-node.ts | 12 ++++++------ src/index.ts | 2 +- src/types.ts | 5 +++++ src/util.ts | 27 +++++++++++++++++++++++++++ 5 files changed, 48 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 782d2525..1b1e0a8b 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,15 @@ A string indicating the image format. The default type is image/png; that type i When supplied, the toCanvas function will return a blob matching the given image type and quality. Defaults to `image/png` + + +### usePageCss + +Use `true` to add a `