Przeglądaj źródła

PDF.js version 1.8.520 - See mozilla/pdf.js@12f1b747b12468705bc7970f6ee1a224a7f2e0d0

pdfjsbot 8 lat temu
rodzic
commit
a9d1f04cce

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.8.518",
+  "version": "1.8.520",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 6 - 6
build/pdf.combined.js

@@ -13125,8 +13125,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.8.518';
-  exports.build = build = '1788a6b0';
+  exports.version = version = '1.8.520';
+  exports.build = build = '12f1b747';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -28631,8 +28631,8 @@ if (!_util.globalScope.PDFJS) {
 }
 var PDFJS = _util.globalScope.PDFJS;
 {
-  PDFJS.version = '1.8.518';
-  PDFJS.build = '1788a6b0';
+  PDFJS.version = '1.8.520';
+  PDFJS.build = '12f1b747';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -47242,8 +47242,8 @@ exports.TilingPattern = TilingPattern;
 "use strict";
 
 
-var pdfjsVersion = '1.8.518';
-var pdfjsBuild = '1788a6b0';
+var pdfjsVersion = '1.8.520';
+var pdfjsBuild = '12f1b747';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
 var pdfjsDisplayAPI = __w_pdfjs_require__(10);

Plik diff jest za duży
+ 0 - 0
build/pdf.combined.js.map


+ 6 - 6
build/pdf.js

@@ -3854,8 +3854,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.8.518';
-  exports.build = build = '1788a6b0';
+  exports.version = version = '1.8.520';
+  exports.build = build = '12f1b747';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -5912,8 +5912,8 @@ if (!_util.globalScope.PDFJS) {
 }
 var PDFJS = _util.globalScope.PDFJS;
 {
-  PDFJS.version = '1.8.518';
-  PDFJS.build = '1788a6b0';
+  PDFJS.version = '1.8.520';
+  PDFJS.build = '12f1b747';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -11452,8 +11452,8 @@ exports.TilingPattern = TilingPattern;
 "use strict";
 
 
-var pdfjsVersion = '1.8.518';
-var pdfjsBuild = '1788a6b0';
+var pdfjsVersion = '1.8.520';
+var pdfjsBuild = '12f1b747';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
 var pdfjsDisplayAPI = __w_pdfjs_require__(3);

Plik diff jest za duży
+ 0 - 0
build/pdf.js.map


Plik diff jest za duży
+ 0 - 0
build/pdf.min.js


+ 2 - 2
build/pdf.worker.js

@@ -40395,8 +40395,8 @@ exports.Type1Parser = Type1Parser;
 "use strict";
 
 
-var pdfjsVersion = '1.8.518';
-var pdfjsBuild = '1788a6b0';
+var pdfjsVersion = '1.8.520';
+var pdfjsBuild = '12f1b747';
 var pdfjsCoreWorker = __w_pdfjs_require__(8);
 {
   __w_pdfjs_require__(19);

Plik diff jest za duży
+ 0 - 0
build/pdf.worker.js.map


+ 2 - 2
lib/display/api.js

@@ -1480,8 +1480,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.8.518';
-  exports.build = build = '1788a6b0';
+  exports.version = version = '1.8.520';
+  exports.build = build = '12f1b747';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;

+ 2 - 2
lib/display/global.js

@@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
 }
 var PDFJS = _util.globalScope.PDFJS;
 {
-  PDFJS.version = '1.8.518';
-  PDFJS.build = '1788a6b0';
+  PDFJS.version = '1.8.520';
+  PDFJS.build = '12f1b747';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

+ 2 - 2
lib/pdf.js

@@ -14,8 +14,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.8.518';
-var pdfjsBuild = '1788a6b0';
+var pdfjsVersion = '1.8.520';
+var pdfjsBuild = '12f1b747';
 var pdfjsSharedUtil = require('./shared/util.js');
 var pdfjsDisplayGlobal = require('./display/global.js');
 var pdfjsDisplayAPI = require('./display/api.js');

+ 2 - 2
lib/pdf.worker.js

@@ -14,8 +14,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.8.518';
-var pdfjsBuild = '1788a6b0';
+var pdfjsVersion = '1.8.520';
+var pdfjsBuild = '12f1b747';
 var pdfjsCoreWorker = require('./core/worker.js');
 {
   require('./core/network.js');

+ 7 - 1
lib/web/pdf_thumbnail_viewer.js

@@ -196,8 +196,14 @@ var PDFThumbnailViewer = function () {
       return this._pagesRotation;
     },
     set: function set(rotation) {
+      if (!(typeof rotation === 'number' && rotation % 90 === 0)) {
+        throw new Error('Invalid thumbnails rotation angle.');
+      }
+      if (!this.pdfDocument) {
+        return;
+      }
       this._pagesRotation = rotation;
-      for (var i = 0, l = this._thumbnails.length; i < l; i++) {
+      for (var i = 0, ii = this._thumbnails.length; i < ii; i++) {
         this._thumbnails[i].update(rotation);
       }
     }

+ 2 - 7
lib/web/pdf_viewer.js

@@ -119,7 +119,6 @@ var PDFViewer = function pdfViewer() {
         throw new Error('Invalid page number.');
       }
       if (!this.pdfDocument) {
-        this._currentPageNumber = val;
         return;
       }
       this._setCurrentPageNumber(val, true);
@@ -168,8 +167,6 @@ var PDFViewer = function pdfViewer() {
         throw new Error('Invalid numeric scale');
       }
       if (!this.pdfDocument) {
-        this._currentScale = val;
-        this._currentScaleValue = val !== _ui_utils.UNKNOWN_SCALE ? val.toString() : null;
         return;
       }
       this._setScale(val, false);
@@ -179,8 +176,6 @@ var PDFViewer = function pdfViewer() {
     },
     set currentScaleValue(val) {
       if (!this.pdfDocument) {
-        this._currentScale = isNaN(val) ? _ui_utils.UNKNOWN_SCALE : val;
-        this._currentScaleValue = val.toString();
         return;
       }
       this._setScale(val, false);
@@ -192,11 +187,11 @@ var PDFViewer = function pdfViewer() {
       if (!(typeof rotation === 'number' && rotation % 90 === 0)) {
         throw new Error('Invalid pages rotation angle.');
       }
-      this._pagesRotation = rotation;
       if (!this.pdfDocument) {
         return;
       }
-      for (var i = 0, l = this._pages.length; i < l; i++) {
+      this._pagesRotation = rotation;
+      for (var i = 0, ii = this._pages.length; i < ii; i++) {
         var pageView = this._pages[i];
         pageView.update(pageView.scale, rotation);
       }

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.8.518",
+  "version": "1.8.520",
   "main": "build/pdf.js",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [

+ 2 - 7
web/pdf_viewer.js

@@ -3138,7 +3138,6 @@ var PDFViewer = function pdfViewer() {
         throw new Error('Invalid page number.');
       }
       if (!this.pdfDocument) {
-        this._currentPageNumber = val;
         return;
       }
       this._setCurrentPageNumber(val, true);
@@ -3187,8 +3186,6 @@ var PDFViewer = function pdfViewer() {
         throw new Error('Invalid numeric scale');
       }
       if (!this.pdfDocument) {
-        this._currentScale = val;
-        this._currentScaleValue = val !== _ui_utils.UNKNOWN_SCALE ? val.toString() : null;
         return;
       }
       this._setScale(val, false);
@@ -3198,8 +3195,6 @@ var PDFViewer = function pdfViewer() {
     },
     set currentScaleValue(val) {
       if (!this.pdfDocument) {
-        this._currentScale = isNaN(val) ? _ui_utils.UNKNOWN_SCALE : val;
-        this._currentScaleValue = val.toString();
         return;
       }
       this._setScale(val, false);
@@ -3211,11 +3206,11 @@ var PDFViewer = function pdfViewer() {
       if (!(typeof rotation === 'number' && rotation % 90 === 0)) {
         throw new Error('Invalid pages rotation angle.');
       }
-      this._pagesRotation = rotation;
       if (!this.pdfDocument) {
         return;
       }
-      for (var i = 0, l = this._pages.length; i < l; i++) {
+      this._pagesRotation = rotation;
+      for (var i = 0, ii = this._pages.length; i < ii; i++) {
         var pageView = this._pages[i];
         pageView.update(pageView.scale, rotation);
       }

Plik diff jest za duży
+ 0 - 0
web/pdf_viewer.js.map


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików