@zumer/snapdom 1.7.1 → 1.9.3-next-dev.0
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 +161 -35
- package/dist/snapdom.js +1089 -598
- package/dist/snapdom.min.js +13 -13
- package/dist/snapdom.min.mjs +13 -13
- package/dist/snapdom.mjs +559 -171
- package/package.json +3 -2
- package/types/snapdom.d.ts +7 -2
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zumer/snapdom",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.3-next-dev.0",
|
|
4
4
|
"description": "snapDOM captures HTML elements to images with exceptional speed and accuracy.",
|
|
5
5
|
"main": "dist/snapdom.js",
|
|
6
6
|
"module": "dist/snapdom.mjs",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "npx vitest run --browser.headless --reporter=verbose",
|
|
9
9
|
"test:benchmark": "npx vitest bench --browser.headless --watch=false",
|
|
10
|
-
"compile-browser": "npx @zumerbox/build -n snapdom -j src/index.browser.js",
|
|
10
|
+
"compile-browser": "npx @zumerbox/build -n snapdom -j src/index.browser.js -t es2015",
|
|
11
11
|
"compile-esm": "npx @zumerbox/build -n snapdom -j src/index.js -p neutral -x",
|
|
12
12
|
"compile": "npm run compile-browser && npm run compile-esm",
|
|
13
13
|
"build": "npm run compile && npm pack",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"homepage": "https://zumerlab.github.io/snapdom/",
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@vitest/browser": "^3.1.2",
|
|
69
|
+
"@vitest/coverage-v8": "^3.1.2",
|
|
69
70
|
"playwright": "^1.52.0"
|
|
70
71
|
}
|
|
71
72
|
}
|
package/types/snapdom.d.ts
CHANGED
|
@@ -4,12 +4,17 @@ declare module "@zumer/snapdom" {
|
|
|
4
4
|
embedFonts?: boolean;
|
|
5
5
|
fast?: boolean;
|
|
6
6
|
scale?: number;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
7
9
|
backgroundColor?: string;
|
|
8
10
|
format?: "png" | "jpeg" | "jpg" | "webp" | "svg";
|
|
11
|
+
type?: "png" | "jpeg" | "jpg" | "webp" | "svg";
|
|
9
12
|
filename?: string;
|
|
10
13
|
dpr?: number;
|
|
11
14
|
quality?: number;
|
|
12
|
-
|
|
15
|
+
useProxy?: string;
|
|
16
|
+
exclude?: string[];
|
|
17
|
+
filter?: (element: Element, originalElement: Element) => boolean;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
export interface SnapResult {
|
|
@@ -52,7 +57,7 @@ declare module "@zumer/snapdom" {
|
|
|
52
57
|
root?: Document | HTMLElement,
|
|
53
58
|
options?: {
|
|
54
59
|
embedFonts?: boolean;
|
|
55
|
-
|
|
60
|
+
useProxy?: string;
|
|
56
61
|
}
|
|
57
62
|
): Promise<void>;
|
|
58
63
|
}
|