@egova-mobile/app-media-utils 0.0.3 → 0.0.5
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/dist/index.cjs.js +1 -1
- package/dist/index.esm.mjs +1 -1
- package/package.json +11 -10
package/dist/index.cjs.js
CHANGED
|
@@ -1216,7 +1216,7 @@ function drawGroupedWatermarks(canvas, watermarks, groupPosition) {
|
|
|
1216
1216
|
const tile = buildTile(canvas, watermark);
|
|
1217
1217
|
if (tile) {
|
|
1218
1218
|
tiles.push(tile);
|
|
1219
|
-
totalHeight += tile.size.height +
|
|
1219
|
+
totalHeight += tile.size.height + tile.style.paddingTop + tile.style.paddingBottom;
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
if (totalHeight <= 0) {
|
package/dist/index.esm.mjs
CHANGED
|
@@ -1191,7 +1191,7 @@ function drawGroupedWatermarks(canvas, watermarks, groupPosition) {
|
|
|
1191
1191
|
const tile = buildTile(canvas, watermark);
|
|
1192
1192
|
if (tile) {
|
|
1193
1193
|
tiles.push(tile);
|
|
1194
|
-
totalHeight += tile.size.height +
|
|
1194
|
+
totalHeight += tile.size.height + tile.style.paddingTop + tile.style.paddingBottom;
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
1197
|
if (totalHeight <= 0) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egova-mobile/app-media-utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.mjs",
|
|
7
7
|
"typings": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"clean": "rimraf ./dist",
|
|
10
|
+
"dev": "node ./build.js -w",
|
|
11
|
+
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
|
|
12
|
+
"build:bundle": "node ./build.js",
|
|
13
|
+
"build": "pnpm clean && pnpm build:bundle && pnpm build:types",
|
|
14
|
+
"release": "zartui-mobile-cli release",
|
|
15
|
+
"prepare": "pnpm build"
|
|
16
|
+
},
|
|
8
17
|
"publishConfig": {
|
|
9
18
|
"access": "public",
|
|
10
19
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,13 +41,5 @@
|
|
|
32
41
|
},
|
|
33
42
|
"peerDependencies": {
|
|
34
43
|
"dayjs": "^1.11.8"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"clean": "rimraf ./dist",
|
|
38
|
-
"dev": "node ./build.js -w",
|
|
39
|
-
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
|
|
40
|
-
"build:bundle": "node ./build.js",
|
|
41
|
-
"build": "pnpm clean && pnpm build:bundle && pnpm build:types",
|
|
42
|
-
"release": "zartui-mobile-cli release"
|
|
43
44
|
}
|
|
44
|
-
}
|
|
45
|
+
}
|