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
package/dist/html2canvas-pro.cjs
CHANGED
|
@@ -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
|
*/
|
|
@@ -7449,7 +7449,12 @@ var ElementContainer = class {
|
|
|
7449
7449
|
this.bounds = parseBounds(this.context, element);
|
|
7450
7450
|
if (element.tagName === "FIELDSET") {
|
|
7451
7451
|
const legend = element.querySelector(":scope > legend");
|
|
7452
|
-
if (legend)
|
|
7452
|
+
if (legend) {
|
|
7453
|
+
const legendBounds = parseBounds(this.context, legend);
|
|
7454
|
+
this.legendBounds = legendBounds;
|
|
7455
|
+
const borderBoxTop = legendBounds.top + legendBounds.height / 2 - this.styles.borderTopWidth / 2;
|
|
7456
|
+
this.bounds = new Bounds(this.bounds.left, borderBoxTop, this.bounds.width, this.bounds.height - (borderBoxTop - this.bounds.top));
|
|
7457
|
+
}
|
|
7453
7458
|
}
|
|
7454
7459
|
if (isDebugging(element, 4)) this.debugRender = true;
|
|
7455
7460
|
}
|