@zumer/snapdom 2.12.0 → 2.12.2
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 +3 -3
- package/dist/plugins.mjs +2 -2
- package/dist/preCache.mjs +5 -5
- package/dist/snapdom.js +8 -8
- package/dist/snapdom.mjs +8 -8
- package/package.json +1 -1
- package/types/snapdom.d.ts +4 -0
package/package.json
CHANGED
package/types/snapdom.d.ts
CHANGED
|
@@ -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. */
|