@zumer/snapdom 2.9.0 → 2.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zumer/snapdom",
3
- "version": "2.9.0",
3
+ "version": "2.12.1",
4
4
  "description": "snapDOM captures HTML elements to images with exceptional speed and accuracy.",
5
5
  "type": "module",
6
6
  "main": "./dist/snapdom.js",
@@ -78,9 +78,10 @@
78
78
  "@eslint/js": "^9.36.0",
79
79
  "@vitest/browser": "^3.1.2",
80
80
  "@vitest/coverage-v8": "^3.1.2",
81
+ "@zumer/snapdiff": "^0.1.1",
82
+ "esbuild": "^0.25.0",
81
83
  "eslint": "^9.36.0",
82
84
  "globals": "^16.4.0",
83
- "playwright": "^1.52.0",
84
- "esbuild": "^0.24.0"
85
+ "playwright": "^1.52.0"
85
86
  }
86
87
  }
@@ -58,6 +58,8 @@ export interface SnapdomOptions {
58
58
  backgroundColor?: string;
59
59
  /** Quality for JPEG/WebP (0..1). Default 1. */
60
60
  quality?: number;
61
+ /** Output format for capture/export helpers. Default "png". */
62
+ format?: BlobType;
61
63
 
62
64
  /** Cross-origin proxy prefix (used as a fallback when CORS blocks). */
63
65
  useProxy?: string;
@@ -214,6 +216,8 @@ export type PluginUse =
214
216
 
215
217
  export interface DownloadOptions {
216
218
  filename?: string;
219
+ /** Output format for the downloaded file. Default "png". */
220
+ format?: BlobType;
217
221
  /** Override default blob type for this download. */
218
222
  type?: BlobType;
219
223
  /** Quality hint for raster formats. */