@zumer/snapdom 3.1.1 → 3.1.2-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 +37 -1
- package/dist/snapdom.js +9 -9
- package/dist/snapdom.mjs +9 -9
- package/package.json +1 -1
- package/types/snapdom.d.ts +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zumer/snapdom",
|
|
3
|
-
"version": "3.1.1",
|
|
3
|
+
"version": "3.1.2-dev.1",
|
|
4
4
|
"description": "Browser capture engine for web interfaces. Reusable images and canvas, with plugins for HTML, context, PDF and recordings.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/snapdom.js",
|
package/types/snapdom.d.ts
CHANGED
|
@@ -557,7 +557,9 @@ export interface CaptureResult {
|
|
|
557
557
|
* `meta` viewBox coordinates, so a long capture can be rasterized page by page. */
|
|
558
558
|
toCanvas(options?: CanvasExportOptions): Promise<HTMLCanvasElement>;
|
|
559
559
|
|
|
560
|
-
/** Returns a Blob of the chosen type (svg/png/jpeg/webp).
|
|
560
|
+
/** Returns a Blob of the chosen type (svg/png/jpeg/webp). PNG files from SVG captures
|
|
561
|
+
* automatically preserve oversized output resolution when CompressionStream is available.
|
|
562
|
+
* Defaults to SVG on the default
|
|
561
563
|
* engine and PNG after a successful html-in-canvas capture. An explicit SVG request on
|
|
562
564
|
* that raster path rejects because there is no SVG source. */
|
|
563
565
|
toBlob(options?: BlobOptions & Partial<SnapdomOptions>): Promise<Blob>;
|
|
@@ -569,7 +571,8 @@ export interface CaptureResult {
|
|
|
569
571
|
toJpg(options?: Partial<SnapdomOptions>): Promise<HTMLImageElement>;
|
|
570
572
|
toWebp(options?: Partial<SnapdomOptions>): Promise<HTMLImageElement>;
|
|
571
573
|
|
|
572
|
-
/**
|
|
574
|
+
/** Download the snapshot at DPR 1. PNG files from SVG captures automatically preserve
|
|
575
|
+
* oversized output resolution when CompressionStream is available. */
|
|
573
576
|
download(options?: DownloadOptions & Partial<SnapdomOptions>): Promise<void>;
|
|
574
577
|
|
|
575
578
|
/**
|