watermark-js-plus 1.4.21 → 1.4.23
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 +32 -32
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.esm.js +32 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.iife.js +1262 -1262
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.umd.js +1263 -1263
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/types/src/index.d.ts +4 -4
- package/package.json +5 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,10 +1,40 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* watermark-js-plus v1.4.
|
|
3
|
-
* (c) 2022-
|
|
2
|
+
* watermark-js-plus v1.4.23
|
|
3
|
+
* (c) 2022-2024 Michael Sun
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
+
function styleInject(css, ref) {
|
|
9
|
+
if ( ref === void 0 ) ref = {};
|
|
10
|
+
var insertAt = ref.insertAt;
|
|
11
|
+
|
|
12
|
+
if (typeof document === 'undefined') { return; }
|
|
13
|
+
|
|
14
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
15
|
+
var style = document.createElement('style');
|
|
16
|
+
style.type = 'text/css';
|
|
17
|
+
|
|
18
|
+
if (insertAt === 'top') {
|
|
19
|
+
if (head.firstChild) {
|
|
20
|
+
head.insertBefore(style, head.firstChild);
|
|
21
|
+
} else {
|
|
22
|
+
head.appendChild(style);
|
|
23
|
+
}
|
|
24
|
+
} else {
|
|
25
|
+
head.appendChild(style);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (style.styleSheet) {
|
|
29
|
+
style.styleSheet.cssText = css;
|
|
30
|
+
} else {
|
|
31
|
+
style.appendChild(document.createTextNode(css));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
var css_248z = "@keyframes watermark{0%{background-position:0 0}25%{background-position:100% 100%}50%{background-position:0 0}75%{background-position:100% -100%}to{background-position:0 0}}";
|
|
36
|
+
styleInject(css_248z);
|
|
37
|
+
|
|
8
38
|
/******************************************************************************
|
|
9
39
|
Copyright (c) Microsoft Corporation.
|
|
10
40
|
|
|
@@ -1249,36 +1279,6 @@ var ImageWatermark = /** @class */ (function () {
|
|
|
1249
1279
|
return ImageWatermark;
|
|
1250
1280
|
}());
|
|
1251
1281
|
|
|
1252
|
-
function styleInject(css, ref) {
|
|
1253
|
-
if ( ref === void 0 ) ref = {};
|
|
1254
|
-
var insertAt = ref.insertAt;
|
|
1255
|
-
|
|
1256
|
-
if (typeof document === 'undefined') { return; }
|
|
1257
|
-
|
|
1258
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1259
|
-
var style = document.createElement('style');
|
|
1260
|
-
style.type = 'text/css';
|
|
1261
|
-
|
|
1262
|
-
if (insertAt === 'top') {
|
|
1263
|
-
if (head.firstChild) {
|
|
1264
|
-
head.insertBefore(style, head.firstChild);
|
|
1265
|
-
} else {
|
|
1266
|
-
head.appendChild(style);
|
|
1267
|
-
}
|
|
1268
|
-
} else {
|
|
1269
|
-
head.appendChild(style);
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
if (style.styleSheet) {
|
|
1273
|
-
style.styleSheet.cssText = css;
|
|
1274
|
-
} else {
|
|
1275
|
-
style.appendChild(document.createTextNode(css));
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
var css_248z = "@keyframes watermark{0%{background-position:0 0}25%{background-position:100% 100%}50%{background-position:0 0}75%{background-position:100% -100%}to{background-position:0 0}}";
|
|
1280
|
-
styleInject(css_248z);
|
|
1281
|
-
|
|
1282
1282
|
exports.BlindWatermark = BlindWatermark;
|
|
1283
1283
|
exports.ImageWatermark = ImageWatermark;
|
|
1284
1284
|
exports.Watermark = Watermark;
|