html2canvas-pro 1.5.0 → 1.5.1

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * html2canvas-pro 1.5.0 <undefined>
2
+ * html2canvas-pro 1.5.1 <undefined>
3
3
  * Copyright (c) 2024 yorickshan <https://github.com/yorickshan>
4
4
  * Released under MIT License
5
5
  */
@@ -8003,10 +8003,11 @@
8003
8003
  this.ctx.translate(-offsetX, -offsetY);
8004
8004
  };
8005
8005
  CanvasRenderer.prototype.resizeImage = function (image, width, height) {
8006
+ // https://github.com/niklasvh/html2canvas/pull/2911
8007
+ // if (image.width === width && image.height === height) {
8008
+ // return image;
8009
+ // }
8006
8010
  var _a;
8007
- if (image.width === width && image.height === height) {
8008
- return image;
8009
- }
8010
8011
  var ownerDocument = (_a = this.canvas.ownerDocument) !== null && _a !== void 0 ? _a : document;
8011
8012
  var canvas = ownerDocument.createElement('canvas');
8012
8013
  canvas.width = Math.max(1, width);