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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## 1.5.1 (2024-07-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * operation is insecure on safari ([71f7c28](https://github.com/yorickshan/html2canvas-pro/commit/71f7c283dfe5a8cd64b39343bc7cec85e3932200))
7
+
8
+
9
+ ### Features
10
+
11
+ * better color() support ([2559164](https://github.com/yorickshan/html2canvas-pro/commit/2559164c9890ea4985ce4cf09d27184da6ee22f8))
12
+ * color functions ([1c9ece3](https://github.com/yorickshan/html2canvas-pro/commit/1c9ece3887e229eb69b34a5bb082c059355518e2))
13
+ * complete work on relative from colors in the color() function ([ac6e331](https://github.com/yorickshan/html2canvas-pro/commit/ac6e33118be76734ff9b1f5cd92e147babd46548))
14
+ * work on relative color support ([88e6aba](https://github.com/yorickshan/html2canvas-pro/commit/88e6abaa47b9c59e49a7bc3c0008849cc365f787))
15
+
16
+
17
+
1
18
  # Changelog
2
19
 
3
20
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
@@ -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
  */
@@ -7997,10 +7997,11 @@ var CanvasRenderer = /** @class */ (function (_super) {
7997
7997
  this.ctx.translate(-offsetX, -offsetY);
7998
7998
  };
7999
7999
  CanvasRenderer.prototype.resizeImage = function (image, width, height) {
8000
+ // https://github.com/niklasvh/html2canvas/pull/2911
8001
+ // if (image.width === width && image.height === height) {
8002
+ // return image;
8003
+ // }
8000
8004
  var _a;
8001
- if (image.width === width && image.height === height) {
8002
- return image;
8003
- }
8004
8005
  var ownerDocument = (_a = this.canvas.ownerDocument) !== null && _a !== void 0 ? _a : document;
8005
8006
  var canvas = ownerDocument.createElement('canvas');
8006
8007
  canvas.width = Math.max(1, width);