element-to-pdf
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -63,3 +63,3 @@ var __assign = (this && this.__assign) || function () { | ||
* @LastEditors: wang0122xl@163.com | ||
* @LastEditTime: 2022-04-14 18:34:45 | ||
* @LastEditTime: 2022-04-14 18:49:58 | ||
* @Description: file content | ||
@@ -251,3 +251,3 @@ */ | ||
return { | ||
y: calculateLength(rect.y), | ||
y: calculateLength(rect.top), | ||
height: calculateLength(rect.height), | ||
@@ -262,3 +262,3 @@ width: calculateLength(rect.width) | ||
function initializePage() { | ||
top = firstEleY - calculateLength(parentRect.y) + padding[0]; | ||
top = firstEleY - calculateLength(parentRect.top) + padding[0]; | ||
} | ||
@@ -285,3 +285,3 @@ /** | ||
if (firstElementAsHeader && !isFirst) { | ||
total += firstEleHeight + firstEleY - calculateLength(parentRect.y) + firstOffsetY; | ||
total += firstEleHeight + firstEleY - calculateLength(parentRect.top) + firstOffsetY; | ||
} | ||
@@ -359,4 +359,4 @@ if (lastElementAsFooter && !isLast) { | ||
if (i < parentChildren.length - 1) { | ||
offsetY = calculateLength(parentChildren[i + 1].getBoundingClientRect().y - | ||
trs[trs.length - 1].getBoundingClientRect().y); | ||
offsetY = calculateLength(parentChildren[i + 1].getBoundingClientRect().top - | ||
trs[trs.length - 1].getBoundingClientRect().top); | ||
} | ||
@@ -377,3 +377,3 @@ for (var i_1 = 0; i_1 < trs.length; i_1++) { | ||
if (i < parentChildren.length - 1) { | ||
top += calculateLength(parentChildren[i + 1].getBoundingClientRect().y) - eleY; | ||
top += calculateLength(parentChildren[i + 1].getBoundingClientRect().top) - eleY; | ||
} | ||
@@ -380,0 +380,0 @@ else if (inTable) { |
{ | ||
"name": "element-to-pdf", | ||
"private": false, | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"homepage": "https://wang0122xl.github.io/dom-to-pdf/", | ||
@@ -6,0 +6,0 @@ "main": "libs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4050272