@liquid-js/qr-code-styling 1.8.0 → 1.9.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.
|
@@ -4,6 +4,7 @@ interface ImageSizeOptions {
|
|
|
4
4
|
maxHiddenDots: number;
|
|
5
5
|
maxHiddenAxisDots?: number;
|
|
6
6
|
dotSize: number;
|
|
7
|
+
margin: number;
|
|
7
8
|
}
|
|
8
9
|
interface ImageSizeResult {
|
|
9
10
|
height: number;
|
|
@@ -11,5 +12,5 @@ interface ImageSizeResult {
|
|
|
11
12
|
hideYDots: number;
|
|
12
13
|
hideXDots: number;
|
|
13
14
|
}
|
|
14
|
-
export declare function calculateImageSize({ originalHeight, originalWidth, maxHiddenDots, maxHiddenAxisDots, dotSize }: ImageSizeOptions): ImageSizeResult;
|
|
15
|
+
export declare function calculateImageSize({ originalHeight, originalWidth, maxHiddenDots, maxHiddenAxisDots, dotSize, margin }: ImageSizeOptions): ImageSizeResult;
|
|
15
16
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liquid-js/qr-code-styling",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Add a style and an image to your QR code",
|
|
5
5
|
"main": "lib/qr-code-styling-node.js",
|
|
6
6
|
"browser": "lib/qr-code-styling.js",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"jest": "^29.7.0",
|
|
34
34
|
"jest-environment-jsdom": "^29.7.0",
|
|
35
35
|
"prettier": "^3.2.5",
|
|
36
|
+
"rimraf": "^5.0.5",
|
|
36
37
|
"rollup": "^4.13.0",
|
|
37
38
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
38
39
|
"ts-jest": "^29.1.2",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"vite": "^5.2.2"
|
|
41
42
|
},
|
|
42
43
|
"scripts": {
|
|
43
|
-
"build": "rollup -c rollup.config.mjs",
|
|
44
|
+
"build": "rimraf lib && rollup -c rollup.config.mjs",
|
|
44
45
|
"test": "jest",
|
|
45
46
|
"start": "vite src",
|
|
46
47
|
"lint": "eslint . --fix",
|