html2canvas-pro 2.3.8 → 2.3.9
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/html2canvas-pro.cjs +8 -6
- package/dist/html2canvas-pro.cjs.map +1 -1
- package/dist/html2canvas-pro.esm.js +8 -6
- package/dist/html2canvas-pro.esm.js.map +1 -1
- package/dist/html2canvas-pro.js +8 -6
- package/dist/html2canvas-pro.js.map +1 -1
- package/dist/html2canvas-pro.min.js +2 -2
- package/dist/lib/render/canvas/canvas-renderer.js +11 -8
- package/package.json +1 -1
package/dist/html2canvas-pro.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* html2canvas-pro 2.3.
|
|
2
|
+
* html2canvas-pro 2.3.9 <https://yorickshan.github.io/html2canvas-pro/>
|
|
3
3
|
* Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
|
|
4
4
|
* Released under MIT License
|
|
5
5
|
*/
|
|
@@ -10605,11 +10605,13 @@
|
|
|
10605
10605
|
}
|
|
10606
10606
|
mask(paths) {
|
|
10607
10607
|
this.ctx.beginPath();
|
|
10608
|
-
this.
|
|
10609
|
-
this.
|
|
10610
|
-
this.ctx.
|
|
10611
|
-
this.ctx.lineTo(
|
|
10612
|
-
this.ctx.lineTo(
|
|
10608
|
+
const x = this.options.x;
|
|
10609
|
+
const y = this.options.y;
|
|
10610
|
+
this.ctx.moveTo(x, y);
|
|
10611
|
+
this.ctx.lineTo(x + this.options.width, y);
|
|
10612
|
+
this.ctx.lineTo(x + this.options.width, y + this.options.height);
|
|
10613
|
+
this.ctx.lineTo(x, y + this.options.height);
|
|
10614
|
+
this.ctx.lineTo(x, y);
|
|
10613
10615
|
this.formatPath(paths.slice(0).reverse());
|
|
10614
10616
|
this.ctx.closePath();
|
|
10615
10617
|
}
|