You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option to selectively include style properties when cloning element (#436)
* feat: add `includeStyleProperties` option
* the full list of computedStyle properties can be cached
* users can now manually specify which style properties are included
* docs: update docs
Copy file name to clipboardexpand all lines: README.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -294,7 +294,11 @@ Defaults to `false`
294
294
A string indicating the image format. The default type is image/png; that type is also used if the given type isn't supported.
295
295
When supplied, the toCanvas function will return a blob matching the given image type and quality.
296
296
297
-
Defaults to `image/png`
297
+
Defaults to `image/png`
298
+
299
+
### includeStyleProperties
300
+
301
+
An array of style property names. Can be used to manually specify which style properties are included when cloning nodes. This can be useful for performance-critical scenarios.
0 commit comments