vue-pdf-eurlanda
Advanced tools
Comparing version 1.0.18 to 1.0.19
{ | ||
"name": "vue-pdf-eurlanda", | ||
"version": "1.0.18", | ||
"description": "vue.js pdf viewer", | ||
"main": "src/vuePdfNoSss.vue", | ||
"scripts": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/FranckFreiburger/vue-pdf.git" | ||
}, | ||
"keywords": [ | ||
"vue.js", | ||
"pdf", | ||
"viewer" | ||
], | ||
"author": "Franck FREIBURGER", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/FranckFreiburger/vue-pdf/issues" | ||
}, | ||
"homepage": "https://github.com/FranckFreiburger/vue-pdf#readme", | ||
"dependencies": { | ||
"pdfjs-dist": "^2.0.303", | ||
"vue-resize-sensor": "^2.0.0", | ||
"raw-loader": "^0.5.1", | ||
"babel-plugin-syntax-dynamic-import": "^6.18.0" | ||
} | ||
"author": { | ||
"name": "Franck FREIBURGER" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/FranckFreiburger/vue-pdf/issues" | ||
}, | ||
"bundleDependencies": false, | ||
"dependencies": { | ||
"babel-plugin-syntax-dynamic-import": "^6.18.0", | ||
"pdfjs-dist": "^2.0.303", | ||
"raw-loader": "^0.5.1", | ||
"vue-resize-sensor": "^2.0.0" | ||
}, | ||
"deprecated": false, | ||
"description": "vue.js pdf viewer", | ||
"homepage": "https://github.com/FranckFreiburger/vue-pdf#readme", | ||
"keywords": [ | ||
"vue.js", | ||
"pdf", | ||
"viewer" | ||
], | ||
"license": "MIT", | ||
"main": "src/vuePdfNoSss.vue", | ||
"name": "vue-pdf-eurlanda", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/FranckFreiburger/vue-pdf.git" | ||
}, | ||
"scripts": {}, | ||
"version": "1.0.19" | ||
} |
@@ -87,5 +87,5 @@ import resizeSensor from 'vue-resize-sensor' | ||
//if (resolutionScale < 0.85 || resolutionScale > 1.15) { | ||
this.pdf.renderPage(this.rotate); | ||
//} | ||
if (resolutionScale < 0.85 || resolutionScale > 1.15) { | ||
this.pdf.renderPage(this.rotate); | ||
} | ||
@@ -107,4 +107,4 @@ | ||
this.$on('loaded', function() { | ||
let docheight = document.getElementById(this.container).offsetHeight; | ||
this.pdf.setCanvasHeight(docheight + 'px'); | ||
//let docheight = document.getElementById(this.container).offsetHeight; | ||
//this.pdf.setCanvasHeight(docheight + 'px'); | ||
this.pdf.loadPage(this.page, this.rotate); | ||
@@ -127,4 +127,4 @@ }); | ||
//初始设置高度 | ||
let docheight = document.getElementById(this.container).offsetHeight; | ||
this.pdf.setCanvasHeight(docheight + "px"); | ||
//let docheight = document.getElementById(this.container).offsetHeight; | ||
//this.pdf.setCanvasHeight(docheight + "px"); | ||
this.pdf.loadDocument(this.src); | ||
@@ -131,0 +131,0 @@ }, |
32503