html2canvas-pro 2.3.6 → 2.3.7
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 +7 -2
- package/dist/html2canvas-pro.cjs.map +1 -1
- package/dist/html2canvas-pro.esm.js +7 -2
- package/dist/html2canvas-pro.esm.js.map +1 -1
- package/dist/html2canvas-pro.js +7 -2
- package/dist/html2canvas-pro.js.map +1 -1
- package/dist/html2canvas-pro.min.js +2 -2
- package/dist/lib/dom/element-container.js +10 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* html2canvas-pro 2.3.
|
|
2
|
+
* html2canvas-pro 2.3.7 <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
|
*/
|
|
@@ -7445,7 +7445,12 @@ var ElementContainer = class {
|
|
|
7445
7445
|
this.bounds = parseBounds(this.context, element);
|
|
7446
7446
|
if (element.tagName === "FIELDSET") {
|
|
7447
7447
|
const legend = element.querySelector(":scope > legend");
|
|
7448
|
-
if (legend)
|
|
7448
|
+
if (legend) {
|
|
7449
|
+
const legendBounds = parseBounds(this.context, legend);
|
|
7450
|
+
this.legendBounds = legendBounds;
|
|
7451
|
+
const borderBoxTop = legendBounds.top + legendBounds.height / 2 - this.styles.borderTopWidth / 2;
|
|
7452
|
+
this.bounds = new Bounds(this.bounds.left, borderBoxTop, this.bounds.width, this.bounds.height - (borderBoxTop - this.bounds.top));
|
|
7453
|
+
}
|
|
7449
7454
|
}
|
|
7450
7455
|
if (isDebugging(element, 4)) this.debugRender = true;
|
|
7451
7456
|
}
|