Huge News!Announcing our $40M Series B led by Abstract Ventures.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 3.3.18 to 3.3.19

2

package.json

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

"scripts": {},
"version": "3.3.18"
"version": "3.3.19"
}

@@ -67,9 +67,15 @@ import resizeSensor from 'vue-resize-sensor'

resize: function(size) {
var width = document.getElementById(this.container).offsetWidth;
var height = document.getElementById(this.container).offsetHeight;
// check if the element is attached to the dom tree || resizeSensor being destroyed
if ( this.$el.parentNode === null || (size.width === 0 && size.height === 0) )
return;
return;
// on IE10- canvas height must be set
this.pdf.setCanvasHeight(size.width * (this.pdf.getCanvas().height / this.pdf.getCanvas().width) + 'px');
var calHeight = width * (this.pdf.getCanvas().height / this.pdf.getCanvas().width);
if(calHeight > height){
calHeight = height;
}
this.pdf.setCanvasHeight(calHeight + 'px');
// update the page when the resolution is too poor

@@ -76,0 +82,0 @@ var resolutionScale = this.pdf.getResolutionScale();

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