Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

element-to-pdf

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-to-pdf - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

14

libs/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc