watermark-js-plus 1.6.1 → 1.6.3

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.
Files changed (39) hide show
  1. package/dist/es/src/core/watermark.js +1 -30
  2. package/dist/es/src/utils/index.js +3 -3
  3. package/dist/es/src/utils/initialization.js +0 -1
  4. package/dist/es/src/utils/protection.js +0 -4
  5. package/dist/ie/es/node_modules/core-js/internals/iterate.js +1 -1
  6. package/dist/ie/es/node_modules/core-js/internals/path.js +15 -0
  7. package/dist/ie/es/node_modules/core-js/internals/shared-store.js +2 -2
  8. package/dist/ie/es/node_modules/core-js/internals/uid.js +1 -1
  9. package/dist/ie/es/node_modules/core-js/modules/es.promise.constructor.js +4 -0
  10. package/dist/ie/es/src/core/watermark.js +1 -30
  11. package/dist/ie/es/src/utils/index.js +3 -3
  12. package/dist/ie/es/src/utils/initialization.js +0 -1
  13. package/dist/ie/es/src/utils/protection.js +0 -4
  14. package/dist/ie/index.cjs.js +23 -42
  15. package/dist/ie/index.cjs.js.map +1 -1
  16. package/dist/ie/index.cjs.min.js +1 -1
  17. package/dist/ie/index.esm.js +23 -42
  18. package/dist/ie/index.esm.js.map +1 -1
  19. package/dist/ie/index.esm.min.js +1 -1
  20. package/dist/ie/index.iife.js +23 -42
  21. package/dist/ie/index.iife.js.map +1 -1
  22. package/dist/ie/index.iife.min.js +1 -1
  23. package/dist/ie/index.umd.js +23 -42
  24. package/dist/ie/index.umd.js.map +1 -1
  25. package/dist/ie/index.umd.min.js +1 -1
  26. package/dist/index.cjs.js +4 -38
  27. package/dist/index.cjs.js.map +1 -1
  28. package/dist/index.cjs.min.js +1 -1
  29. package/dist/index.esm.js +4 -38
  30. package/dist/index.esm.js.map +1 -1
  31. package/dist/index.esm.min.js +1 -1
  32. package/dist/index.iife.js +4 -38
  33. package/dist/index.iife.js.map +1 -1
  34. package/dist/index.iife.min.js +1 -1
  35. package/dist/index.umd.js +4 -38
  36. package/dist/index.umd.js.map +1 -1
  37. package/dist/index.umd.min.js +1 -1
  38. package/dist/types/core/watermark.d.ts +0 -4
  39. package/package.json +14 -13
@@ -1,5 +1,5 @@
1
1
  import { __awaiter, __assign, __generator } from '../../node_modules/tslib/tslib.es6.js';
2
- import { isUndefined, convertImage, generateAnimationStyle } from '../utils/index.js';
2
+ import { convertImage, generateAnimationStyle, isUndefined } from '../utils/index.js';
3
3
  import { initialOptions } from '../utils/initialization.js';
4
4
  import protection from '../utils/protection.js';
5
5
  import { renderLayout, generateBackgroundSize } from './layout/index.js';
@@ -123,7 +123,6 @@ var Watermark = /** @class */ (function () {
123
123
  (_b = (_a = this.options).onBeforeDestroy) === null || _b === void 0 ? void 0 : _b.call(_a);
124
124
  (_c = this.observer) === null || _c === void 0 ? void 0 : _c.disconnect();
125
125
  (_d = this.parentObserve) === null || _d === void 0 ? void 0 : _d.disconnect();
126
- this.unbindCheckWatermarkElementEvent();
127
126
  (_f = (_e = this.watermarkDom) === null || _e === void 0 ? void 0 : _e.parentNode) === null || _f === void 0 ? void 0 : _f.removeChild(this.watermarkDom);
128
127
  (_h = (_g = this.options).onDestroyed) === null || _h === void 0 ? void 0 : _h.call(_g);
129
128
  };
@@ -183,30 +182,11 @@ var Watermark = /** @class */ (function () {
183
182
  }
184
183
  return 'custom';
185
184
  };
186
- Watermark.prototype.checkWatermarkElement = function () {
187
- return __awaiter(this, void 0, void 0, function () {
188
- return __generator(this, function (_a) {
189
- switch (_a.label) {
190
- case 0:
191
- if (!!this.parentElement.contains(this.watermarkDom)) return [3 /*break*/, 2];
192
- this.remove();
193
- return [4 /*yield*/, this.create()];
194
- case 1:
195
- _a.sent();
196
- _a.label = 2;
197
- case 2:
198
- this.bindCheckWatermarkElementEvent();
199
- return [2 /*return*/];
200
- }
201
- });
202
- });
203
- };
204
185
  Watermark.prototype.bindMutationObserve = function () {
205
186
  var _this = this;
206
187
  if (!this.watermarkDom) {
207
188
  return;
208
189
  }
209
- this.bindCheckWatermarkElementEvent();
210
190
  this.observer = new MutationObserver(function (mutationsList) { return __awaiter(_this, void 0, void 0, function () {
211
191
  return __generator(this, function (_a) {
212
192
  switch (_a.label) {
@@ -262,15 +242,6 @@ var Watermark = /** @class */ (function () {
262
242
  characterData: true, // 节点内容或节点文本的变动。
263
243
  });
264
244
  };
265
- Watermark.prototype.bindCheckWatermarkElementEvent = function () {
266
- this.unbindCheckWatermarkElementEvent();
267
- this.checkWatermarkElementRequestID = requestAnimationFrame(this.checkWatermarkElement.bind(this));
268
- };
269
- Watermark.prototype.unbindCheckWatermarkElementEvent = function () {
270
- if (!isUndefined(this.checkWatermarkElementRequestID)) {
271
- cancelAnimationFrame(this.checkWatermarkElementRequestID);
272
- }
273
- };
274
245
  return Watermark;
275
246
  }());
276
247
 
@@ -186,11 +186,11 @@ var generateAnimationStyle = function (movable, backgroundRepeat) {
186
186
  case 'repeat':
187
187
  return 'animation: 200s linear 0s infinite alternate watermark !important;';
188
188
  case 'repeat-x':
189
- return "animation: ".concat(horizontalDuration, "s ease-in 0s infinite alternate watermark-vertical !important;'");
189
+ return "animation: ".concat(horizontalDuration, "s linear 0s infinite alternate watermark-vertical !important;'");
190
190
  case 'repeat-y':
191
- return "animation: ".concat(verticalDuration, "s ease-out 0s infinite alternate watermark-horizontal !important;'");
191
+ return "animation: ".concat(verticalDuration, "s linear 0s infinite alternate watermark-horizontal !important;'");
192
192
  case 'no-repeat':
193
- return "animation: ".concat(horizontalDuration, "s ease-in 0s infinite alternate watermark-horizontal, ").concat(verticalDuration, "s ease-out 0s infinite alternate watermark-vertical !important;");
193
+ return "animation: ".concat(horizontalDuration, "s linear 0s infinite alternate watermark-horizontal, ").concat(verticalDuration, "s linear 0s infinite alternate watermark-vertical !important;");
194
194
  default:
195
195
  return '';
196
196
  }
@@ -43,7 +43,6 @@ var generateRecommendOptions = function (canvas, options, args) {
43
43
  }
44
44
  ctx.font = "".concat(options.fontStyle, " ").concat(options.fontVariant, " ").concat(options.fontWeight, " ").concat(options.fontSize, " ").concat(options.fontFamily);
45
45
  ctx.filter = options.filter;
46
- // @ts-ignore
47
46
  ctx.letterSpacing = options.letterSpacing;
48
47
  ctx.wordSpacing = options.wordSpacing;
49
48
  if (options === null || options === void 0 ? void 0 : options.rotate) {
@@ -7,10 +7,6 @@ var protection = (function (need) {
7
7
  writable: false,
8
8
  configurable: false,
9
9
  });
10
- Object.defineProperty(window, 'requestAnimationFrame', {
11
- writable: false,
12
- configurable: false,
13
- });
14
10
  }
15
11
  });
16
12
 
@@ -45,7 +45,7 @@ function requireIterate () {
45
45
  var iterator, iterFn, index, length, result, next, step;
46
46
 
47
47
  var stop = function (condition) {
48
- if (iterator) iteratorClose(iterator, 'normal', condition);
48
+ if (iterator) iteratorClose(iterator, 'normal');
49
49
  return new Result(true, condition);
50
50
  };
51
51
 
@@ -0,0 +1,15 @@
1
+ import { __require as requireGlobalThis } from './global-this.js';
2
+
3
+ var path;
4
+ var hasRequiredPath;
5
+
6
+ function requirePath () {
7
+ if (hasRequiredPath) return path;
8
+ hasRequiredPath = 1;
9
+ var globalThis = requireGlobalThis();
10
+
11
+ path = globalThis;
12
+ return path;
13
+ }
14
+
15
+ export { requirePath as __require };
@@ -16,10 +16,10 @@ function requireSharedStore () {
16
16
  var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
17
17
 
18
18
  (store.versions || (store.versions = [])).push({
19
- version: '3.42.0',
19
+ version: '3.44.0',
20
20
  mode: IS_PURE ? 'pure' : 'global',
21
21
  copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
22
- license: 'https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE',
22
+ license: 'https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE',
23
23
  source: 'https://github.com/zloirock/core-js'
24
24
  });
25
25
  return sharedStore.exports;
@@ -10,7 +10,7 @@ function requireUid () {
10
10
 
11
11
  var id = 0;
12
12
  var postfix = Math.random();
13
- var toString = uncurryThis(1.0.toString);
13
+ var toString = uncurryThis(1.1.toString);
14
14
 
15
15
  uid = function (key) {
16
16
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
@@ -3,6 +3,7 @@ import { __require as require_export } from '../internals/export.js';
3
3
  import { __require as requireIsPure } from '../internals/is-pure.js';
4
4
  import { __require as requireEnvironmentIsNode } from '../internals/environment-is-node.js';
5
5
  import { __require as requireGlobalThis } from '../internals/global-this.js';
6
+ import { __require as requirePath } from '../internals/path.js';
6
7
  import { __require as requireFunctionCall } from '../internals/function-call.js';
7
8
  import { __require as requireDefineBuiltIn } from '../internals/define-built-in.js';
8
9
  import { __require as requireObjectSetPrototypeOf } from '../internals/object-set-prototype-of.js';
@@ -32,6 +33,7 @@ function requireEs_promise_constructor () {
32
33
  var IS_PURE = requireIsPure();
33
34
  var IS_NODE = requireEnvironmentIsNode();
34
35
  var globalThis = requireGlobalThis();
36
+ var path = requirePath();
35
37
  var call = requireFunctionCall();
36
38
  var defineBuiltIn = requireDefineBuiltIn();
37
39
  var setPrototypeOf = requireObjectSetPrototypeOf();
@@ -315,6 +317,8 @@ function requireEs_promise_constructor () {
315
317
  Promise: PromiseConstructor
316
318
  });
317
319
 
320
+ PromiseWrapper = path.Promise;
321
+
318
322
  setToStringTag(PromiseConstructor, PROMISE, false, true);
319
323
  setSpecies(PROMISE);
320
324
  return es_promise_constructor;
@@ -1,5 +1,5 @@
1
1
  import { __awaiter, __assign, __generator } from '../../node_modules/tslib/tslib.es6.js';
2
- import { isUndefined, convertImage, generateAnimationStyle } from '../utils/index.js';
2
+ import { convertImage, generateAnimationStyle, isUndefined } from '../utils/index.js';
3
3
  import { initialOptions } from '../utils/initialization.js';
4
4
  import protection from '../utils/protection.js';
5
5
  import { renderLayout, generateBackgroundSize } from './layout/index.js';
@@ -123,7 +123,6 @@ var Watermark = /** @class */ (function () {
123
123
  (_b = (_a = this.options).onBeforeDestroy) === null || _b === void 0 ? void 0 : _b.call(_a);
124
124
  (_c = this.observer) === null || _c === void 0 ? void 0 : _c.disconnect();
125
125
  (_d = this.parentObserve) === null || _d === void 0 ? void 0 : _d.disconnect();
126
- this.unbindCheckWatermarkElementEvent();
127
126
  (_f = (_e = this.watermarkDom) === null || _e === void 0 ? void 0 : _e.parentNode) === null || _f === void 0 ? void 0 : _f.removeChild(this.watermarkDom);
128
127
  (_h = (_g = this.options).onDestroyed) === null || _h === void 0 ? void 0 : _h.call(_g);
129
128
  };
@@ -183,30 +182,11 @@ var Watermark = /** @class */ (function () {
183
182
  }
184
183
  return 'custom';
185
184
  };
186
- Watermark.prototype.checkWatermarkElement = function () {
187
- return __awaiter(this, void 0, void 0, function () {
188
- return __generator(this, function (_a) {
189
- switch (_a.label) {
190
- case 0:
191
- if (!!this.parentElement.contains(this.watermarkDom)) return [3 /*break*/, 2];
192
- this.remove();
193
- return [4 /*yield*/, this.create()];
194
- case 1:
195
- _a.sent();
196
- _a.label = 2;
197
- case 2:
198
- this.bindCheckWatermarkElementEvent();
199
- return [2 /*return*/];
200
- }
201
- });
202
- });
203
- };
204
185
  Watermark.prototype.bindMutationObserve = function () {
205
186
  var _this = this;
206
187
  if (!this.watermarkDom) {
207
188
  return;
208
189
  }
209
- this.bindCheckWatermarkElementEvent();
210
190
  this.observer = new MutationObserver(function (mutationsList) { return __awaiter(_this, void 0, void 0, function () {
211
191
  return __generator(this, function (_a) {
212
192
  switch (_a.label) {
@@ -262,15 +242,6 @@ var Watermark = /** @class */ (function () {
262
242
  characterData: true, // 节点内容或节点文本的变动。
263
243
  });
264
244
  };
265
- Watermark.prototype.bindCheckWatermarkElementEvent = function () {
266
- this.unbindCheckWatermarkElementEvent();
267
- this.checkWatermarkElementRequestID = requestAnimationFrame(this.checkWatermarkElement.bind(this));
268
- };
269
- Watermark.prototype.unbindCheckWatermarkElementEvent = function () {
270
- if (!isUndefined(this.checkWatermarkElementRequestID)) {
271
- cancelAnimationFrame(this.checkWatermarkElementRequestID);
272
- }
273
- };
274
245
  return Watermark;
275
246
  }());
276
247
 
@@ -186,11 +186,11 @@ var generateAnimationStyle = function (movable, backgroundRepeat) {
186
186
  case 'repeat':
187
187
  return 'animation: 200s linear 0s infinite alternate watermark !important;';
188
188
  case 'repeat-x':
189
- return "animation: ".concat(horizontalDuration, "s ease-in 0s infinite alternate watermark-vertical !important;'");
189
+ return "animation: ".concat(horizontalDuration, "s linear 0s infinite alternate watermark-vertical !important;'");
190
190
  case 'repeat-y':
191
- return "animation: ".concat(verticalDuration, "s ease-out 0s infinite alternate watermark-horizontal !important;'");
191
+ return "animation: ".concat(verticalDuration, "s linear 0s infinite alternate watermark-horizontal !important;'");
192
192
  case 'no-repeat':
193
- return "animation: ".concat(horizontalDuration, "s ease-in 0s infinite alternate watermark-horizontal, ").concat(verticalDuration, "s ease-out 0s infinite alternate watermark-vertical !important;");
193
+ return "animation: ".concat(horizontalDuration, "s linear 0s infinite alternate watermark-horizontal, ").concat(verticalDuration, "s linear 0s infinite alternate watermark-vertical !important;");
194
194
  default:
195
195
  return '';
196
196
  }
@@ -43,7 +43,6 @@ var generateRecommendOptions = function (canvas, options, args) {
43
43
  }
44
44
  ctx.font = "".concat(options.fontStyle, " ").concat(options.fontVariant, " ").concat(options.fontWeight, " ").concat(options.fontSize, " ").concat(options.fontFamily);
45
45
  ctx.filter = options.filter;
46
- // @ts-ignore
47
46
  ctx.letterSpacing = options.letterSpacing;
48
47
  ctx.wordSpacing = options.wordSpacing;
49
48
  if (options === null || options === void 0 ? void 0 : options.rotate) {
@@ -7,10 +7,6 @@ var protection = (function (need) {
7
7
  writable: false,
8
8
  configurable: false,
9
9
  });
10
- Object.defineProperty(window, 'requestAnimationFrame', {
11
- writable: false,
12
- configurable: false,
13
- });
14
10
  }
15
11
  });
16
12
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * watermark-js-plus v1.6.1
2
+ * watermark-js-plus v1.6.3
3
3
  * (c) 2022-2024 Michael Sun
4
4
  * Released under the MIT License.
5
5
  */
@@ -556,10 +556,10 @@ function requireSharedStore () {
556
556
  var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
557
557
 
558
558
  (store.versions || (store.versions = [])).push({
559
- version: '3.42.0',
559
+ version: '3.44.0',
560
560
  mode: IS_PURE ? 'pure' : 'global',
561
561
  copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
562
- license: 'https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE',
562
+ license: 'https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE',
563
563
  source: 'https://github.com/zloirock/core-js'
564
564
  });
565
565
  return sharedStore.exports;
@@ -627,7 +627,7 @@ function requireUid () {
627
627
 
628
628
  var id = 0;
629
629
  var postfix = Math.random();
630
- var toString = uncurryThis(1.0.toString);
630
+ var toString = uncurryThis(1.1.toString);
631
631
 
632
632
  uid = function (key) {
633
633
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
@@ -1992,6 +1992,18 @@ function requireEnvironmentIsNode () {
1992
1992
  return environmentIsNode;
1993
1993
  }
1994
1994
 
1995
+ var path;
1996
+ var hasRequiredPath;
1997
+
1998
+ function requirePath () {
1999
+ if (hasRequiredPath) return path;
2000
+ hasRequiredPath = 1;
2001
+ var globalThis = requireGlobalThis();
2002
+
2003
+ path = globalThis;
2004
+ return path;
2005
+ }
2006
+
1995
2007
  var functionUncurryThisAccessor;
1996
2008
  var hasRequiredFunctionUncurryThisAccessor;
1997
2009
 
@@ -2700,6 +2712,7 @@ function requireEs_promise_constructor () {
2700
2712
  var IS_PURE = requireIsPure();
2701
2713
  var IS_NODE = requireEnvironmentIsNode();
2702
2714
  var globalThis = requireGlobalThis();
2715
+ var path = requirePath();
2703
2716
  var call = requireFunctionCall();
2704
2717
  var defineBuiltIn = requireDefineBuiltIn();
2705
2718
  var setPrototypeOf = requireObjectSetPrototypeOf();
@@ -2983,6 +2996,8 @@ function requireEs_promise_constructor () {
2983
2996
  Promise: PromiseConstructor
2984
2997
  });
2985
2998
 
2999
+ PromiseWrapper = path.Promise;
3000
+
2986
3001
  setToStringTag(PromiseConstructor, PROMISE, false, true);
2987
3002
  setSpecies(PROMISE);
2988
3003
  return es_promise_constructor;
@@ -3026,7 +3041,7 @@ function requireIterate () {
3026
3041
  var iterator, iterFn, index, length, result, next, step;
3027
3042
 
3028
3043
  var stop = function (condition) {
3029
- if (iterator) iteratorClose(iterator, 'normal', condition);
3044
+ if (iterator) iteratorClose(iterator, 'normal');
3030
3045
  return new Result(true, condition);
3031
3046
  };
3032
3047
 
@@ -4489,11 +4504,11 @@ var generateAnimationStyle = function (movable, backgroundRepeat) {
4489
4504
  case 'repeat':
4490
4505
  return 'animation: 200s linear 0s infinite alternate watermark !important;';
4491
4506
  case 'repeat-x':
4492
- return "animation: ".concat(horizontalDuration, "s ease-in 0s infinite alternate watermark-vertical !important;'");
4507
+ return "animation: ".concat(horizontalDuration, "s linear 0s infinite alternate watermark-vertical !important;'");
4493
4508
  case 'repeat-y':
4494
- return "animation: ".concat(verticalDuration, "s ease-out 0s infinite alternate watermark-horizontal !important;'");
4509
+ return "animation: ".concat(verticalDuration, "s linear 0s infinite alternate watermark-horizontal !important;'");
4495
4510
  case 'no-repeat':
4496
- return "animation: ".concat(horizontalDuration, "s ease-in 0s infinite alternate watermark-horizontal, ").concat(verticalDuration, "s ease-out 0s infinite alternate watermark-vertical !important;");
4511
+ return "animation: ".concat(horizontalDuration, "s linear 0s infinite alternate watermark-horizontal, ").concat(verticalDuration, "s linear 0s infinite alternate watermark-vertical !important;");
4497
4512
  default:
4498
4513
  return '';
4499
4514
  }
@@ -4542,7 +4557,6 @@ var generateRecommendOptions = function (canvas, options, args) {
4542
4557
  }
4543
4558
  ctx.font = "".concat(options.fontStyle, " ").concat(options.fontVariant, " ").concat(options.fontWeight, " ").concat(options.fontSize, " ").concat(options.fontFamily);
4544
4559
  ctx.filter = options.filter;
4545
- // @ts-ignore
4546
4560
  ctx.letterSpacing = options.letterSpacing;
4547
4561
  ctx.wordSpacing = options.wordSpacing;
4548
4562
  if (options === null || options === void 0 ? void 0 : options.rotate) {
@@ -4790,10 +4804,6 @@ var protection = (function (need) {
4790
4804
  writable: false,
4791
4805
  configurable: false,
4792
4806
  });
4793
- Object.defineProperty(window, 'requestAnimationFrame', {
4794
- writable: false,
4795
- configurable: false,
4796
- });
4797
4807
  }
4798
4808
  });
4799
4809
 
@@ -5256,7 +5266,6 @@ var Watermark = /** @class */ (function () {
5256
5266
  (_b = (_a = this.options).onBeforeDestroy) === null || _b === void 0 ? void 0 : _b.call(_a);
5257
5267
  (_c = this.observer) === null || _c === void 0 ? void 0 : _c.disconnect();
5258
5268
  (_d = this.parentObserve) === null || _d === void 0 ? void 0 : _d.disconnect();
5259
- this.unbindCheckWatermarkElementEvent();
5260
5269
  (_f = (_e = this.watermarkDom) === null || _e === void 0 ? void 0 : _e.parentNode) === null || _f === void 0 ? void 0 : _f.removeChild(this.watermarkDom);
5261
5270
  (_h = (_g = this.options).onDestroyed) === null || _h === void 0 ? void 0 : _h.call(_g);
5262
5271
  };
@@ -5316,30 +5325,11 @@ var Watermark = /** @class */ (function () {
5316
5325
  }
5317
5326
  return 'custom';
5318
5327
  };
5319
- Watermark.prototype.checkWatermarkElement = function () {
5320
- return __awaiter(this, void 0, void 0, function () {
5321
- return __generator(this, function (_a) {
5322
- switch (_a.label) {
5323
- case 0:
5324
- if (!!this.parentElement.contains(this.watermarkDom)) return [3 /*break*/, 2];
5325
- this.remove();
5326
- return [4 /*yield*/, this.create()];
5327
- case 1:
5328
- _a.sent();
5329
- _a.label = 2;
5330
- case 2:
5331
- this.bindCheckWatermarkElementEvent();
5332
- return [2 /*return*/];
5333
- }
5334
- });
5335
- });
5336
- };
5337
5328
  Watermark.prototype.bindMutationObserve = function () {
5338
5329
  var _this = this;
5339
5330
  if (!this.watermarkDom) {
5340
5331
  return;
5341
5332
  }
5342
- this.bindCheckWatermarkElementEvent();
5343
5333
  this.observer = new MutationObserver(function (mutationsList) { return __awaiter(_this, void 0, void 0, function () {
5344
5334
  return __generator(this, function (_a) {
5345
5335
  switch (_a.label) {
@@ -5395,15 +5385,6 @@ var Watermark = /** @class */ (function () {
5395
5385
  characterData: true, // 节点内容或节点文本的变动。
5396
5386
  });
5397
5387
  };
5398
- Watermark.prototype.bindCheckWatermarkElementEvent = function () {
5399
- this.unbindCheckWatermarkElementEvent();
5400
- this.checkWatermarkElementRequestID = requestAnimationFrame(this.checkWatermarkElement.bind(this));
5401
- };
5402
- Watermark.prototype.unbindCheckWatermarkElementEvent = function () {
5403
- if (!isUndefined(this.checkWatermarkElementRequestID)) {
5404
- cancelAnimationFrame(this.checkWatermarkElementRequestID);
5405
- }
5406
- };
5407
5388
  return Watermark;
5408
5389
  }());
5409
5390