🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

to
1.0.14

2

package.json
{
"name": "vue-pdf-eurlanda",
"version": "1.0.13",
"version": "1.0.14",
"description": "vue.js pdf viewer",

@@ -5,0 +5,0 @@ "main": "src/vuePdfNoSss.vue",

@@ -103,2 +103,3 @@ import resizeSensor from 'vue-resize-sensor'

let docheight = document.getElementById(this.container).offsetHeight;
console.log("loaded高度:" + docheight);
this.pdf.setCanvasHeight(docheight + 'px');

@@ -105,0 +106,0 @@ this.pdf.loadPage(this.page, this.rotate);

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

this.setCanvasHeight = function(h) {
console.log("setCanvasHeight:" + h);
canvasElt.style.height = h

@@ -247,3 +248,5 @@ }

canvasElt.height = viewport.height;
console.log("给canvas赋值:" + viewport.height);
canvasElt.style.width = viewport.width + "px";
canvasElt.style.height = viewport.height + "px";
pdfRender = pdfPage.render({

@@ -282,3 +285,3 @@ canvasContext: canvasElt.getContext('2d'),

.then(function() {
annotationLayerElt.style.visibility = '';
annotationLayerElt.style.display = 'none';
canceling = false;

@@ -285,0 +288,0 @@ pdfRender = null;