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.10 to 1.0.11

2

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

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

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

this.renderPage = function(rotate) {
alert(pdfRender);
if (pdfRender !== null) {

@@ -232,2 +233,4 @@

var scale = docWidth / pdfPage.getViewport(1).width * (window.devicePixelRatio || 1);
console.log("-----计算的长度和宽度-------");
console.log(docWidth, pdfPage.getViewport(1).height * scale);
//如果按照宽度计算下来的比例。大于容器的高度,那么按照容器高度来进行比例计算

@@ -322,3 +325,3 @@ if (pdfPage.getViewport(1).height * scale > canvasElt.offsetHeight) {

.then(function(page) {
alert("读取页数");
pdfPage = page;

@@ -325,0 +328,0 @@ this.renderPage(rotate);

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