@zumer/snapdom 2.12.9 → 2.15.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -2
- package/dist/plugins.mjs +1 -1
- package/dist/preCache.mjs +5 -5
- package/dist/snapdom.js +8 -8
- package/dist/snapdom.mjs +8 -8
- package/package.json +2 -2
- package/types/snapdom.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zumer/snapdom",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0-dev.1",
|
|
4
4
|
"description": "Fast, modern alternative to html2canvas — captures HTML elements to images (PNG, JPG, SVG, WebP) with exceptional speed and accuracy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/snapdom.js",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@vitest/browser": "^3.1.2",
|
|
84
84
|
"@vitest/coverage-v8": "^3.1.2",
|
|
85
85
|
"@zumer/snapdiff": "^0.1.1",
|
|
86
|
-
"esbuild": "^0.
|
|
86
|
+
"esbuild": "^0.28.1",
|
|
87
87
|
"eslint": "^9.36.0",
|
|
88
88
|
"globals": "^16.4.0",
|
|
89
89
|
"playwright": "^1.52.0"
|
package/types/snapdom.d.ts
CHANGED
|
@@ -88,6 +88,13 @@ export interface SnapdomOptions {
|
|
|
88
88
|
*/
|
|
89
89
|
outerShadows?: boolean;
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Downsample inlined raster images to their visible resolution (display box × scale × dpr),
|
|
93
|
+
* preserving the source codec (lossless PNG stays lossless). Opt-in; off by default — output is
|
|
94
|
+
* byte-identical to omitting it.
|
|
95
|
+
*/
|
|
96
|
+
compress?: boolean;
|
|
97
|
+
|
|
91
98
|
/** Inline non-icon fonts actually used within the subtree. */
|
|
92
99
|
embedFonts?: boolean;
|
|
93
100
|
/** Provide fonts explicitly to avoid remote discovery. */
|