vue-pdf-eurlanda
Advanced tools
Comparing version 3.3.4 to 3.3.5
@@ -31,3 +31,3 @@ { | ||
"scripts": {}, | ||
"version": "3.3.4" | ||
"version": "3.3.5" | ||
} |
@@ -60,5 +60,6 @@ import { CMapCompressionType } from 'pdfjs-dist/lib/shared/util'; | ||
canvasElt.style.display = 'block'; | ||
canvasElt.style.width = '100%'; | ||
canvasElt.style.height = '100%'; | ||
canvasParent.appendChild(canvasElt); | ||
console.log(canvasElt.offsetHeight); | ||
function clearCanvas() { | ||
@@ -238,3 +239,3 @@ | ||
console.log(pdfPage.getViewport(1).width,pdfPage.getViewport(1).height); | ||
var widthscale = canvasElt.offsetWidth / pdfPage.getViewport(1).width * (window.devicePixelRatio || 1); | ||
@@ -241,0 +242,0 @@ var heightscale = canvasElt.offsetHeight / pdfPage.getViewport(1).height * (window.devicePixelRatio || 1); |
28042
523