New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-pdf-eurlanda

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-pdf-eurlanda - npm Package Compare versions

Comparing version 1.0.34 to 1.0.35

2

package.json

@@ -31,3 +31,3 @@ {

"scripts": {},
"version": "1.0.34"
"version": "1.0.35"
}

@@ -112,10 +112,10 @@ import resizeSensor from 'vue-resize-sensor'

//let width = document.getElementById(this.container).offsetWidth;
let docheight = document.getElementById(this.container).offsetHeight;
let docWidth = document.getElementById(this.container).offsetWidth;
let calHeight = docWidth * (this.pdf.getCanvas().height / this.pdf.getCanvas().width);
if (calHeight > docheight) {
calHeight = docheight;
}
//let docheight = document.getElementById(this.container).offsetHeight;
//let docWidth = document.getElementById(this.container).offsetWidth;
//let calHeight = docWidth * (this.pdf.getCanvas().height / this.pdf.getCanvas().width);
//if (calHeight > docheight) {
// calHeight = docheight;
//}
this.pdf.setCanvasHeight(calHeight + 'px');
this.pdf.setCanvasHeight(this.pdf.getCanvas().offsetWidth * (height / width) + 'px');
});

@@ -122,0 +122,0 @@

@@ -235,3 +235,2 @@ import { CMapCompressionType } from 'pdfjs-dist/lib/shared/util';

}
var viewport = pdfPage.getViewport(scale, rotate);

@@ -238,0 +237,0 @@

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