Bläddra i källkod

PDF.js version 2.0.263 - See mozilla/pdf.js@ba0a3aebd05fe85f5eef42260b1346d5856b6ba1

pdfjsbot 7 år sedan
förälder
incheckning
edaea9a257

+ 1 - 1
bower.json

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

+ 8 - 8
build/pdf.combined.js

@@ -11619,7 +11619,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
   if (worker.destroyed) {
     return Promise.reject(new Error('Worker was destroyed'));
   }
-  var apiVersion = '2.0.260';
+  var apiVersion = '2.0.263';
   source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
   source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
   source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@@ -12911,8 +12911,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '2.0.260';
-  exports.build = build = 'd77fc888';
+  exports.version = version = '2.0.263';
+  exports.build = build = 'ba0a3aeb';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -26703,8 +26703,8 @@ exports.SVGGraphics = SVGGraphics;
 "use strict";
 
 
-var pdfjsVersion = '2.0.260';
-var pdfjsBuild = 'd77fc888';
+var pdfjsVersion = '2.0.263';
+var pdfjsBuild = 'ba0a3aeb';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(131);
 var pdfjsDisplayAPI = __w_pdfjs_require__(65);
@@ -31883,8 +31883,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '2.0.260';
-  PDFJS.build = 'd77fc888';
+  PDFJS.version = '2.0.263';
+  PDFJS.build = 'ba0a3aeb';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -35245,7 +35245,7 @@ var WorkerMessageHandler = {
     var cancelXHRs = null;
     var WorkerTasks = [];
     var apiVersion = docParams.apiVersion;
-    var workerVersion = '2.0.260';
+    var workerVersion = '2.0.263';
     if (apiVersion !== null && apiVersion !== workerVersion) {
       throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
     }

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
build/pdf.combined.js.map


+ 7 - 7
build/pdf.js

@@ -3299,7 +3299,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
   if (worker.destroyed) {
     return Promise.reject(new Error('Worker was destroyed'));
   }
-  var apiVersion = '2.0.260';
+  var apiVersion = '2.0.263';
   source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
   source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
   source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@@ -4672,8 +4672,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '2.0.260';
-  exports.build = build = 'd77fc888';
+  exports.version = version = '2.0.263';
+  exports.build = build = 'ba0a3aeb';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -7425,8 +7425,8 @@ exports.SVGGraphics = SVGGraphics;
 "use strict";
 
 
-var pdfjsVersion = '2.0.260';
-var pdfjsBuild = 'd77fc888';
+var pdfjsVersion = '2.0.263';
+var pdfjsBuild = 'ba0a3aeb';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(114);
 var pdfjsDisplayAPI = __w_pdfjs_require__(57);
@@ -12605,8 +12605,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '2.0.260';
-  PDFJS.build = 'd77fc888';
+  PDFJS.version = '2.0.263';
+  PDFJS.build = 'ba0a3aeb';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
build/pdf.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
build/pdf.min.js


+ 3 - 3
build/pdf.worker.js

@@ -21946,8 +21946,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
 "use strict";
 
 
-var pdfjsVersion = '2.0.260';
-var pdfjsBuild = 'd77fc888';
+var pdfjsVersion = '2.0.263';
+var pdfjsBuild = 'ba0a3aeb';
 var pdfjsCoreWorker = __w_pdfjs_require__(72);
 exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
 
@@ -22154,7 +22154,7 @@ var WorkerMessageHandler = {
     var cancelXHRs = null;
     var WorkerTasks = [];
     var apiVersion = docParams.apiVersion;
-    var workerVersion = '2.0.260';
+    var workerVersion = '2.0.263';
     if (apiVersion !== null && apiVersion !== workerVersion) {
       throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
     }

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
build/pdf.worker.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
build/pdf.worker.min.js


+ 1 - 1
lib/core/worker.js

@@ -217,7 +217,7 @@ var WorkerMessageHandler = {
     var cancelXHRs = null;
     var WorkerTasks = [];
     var apiVersion = docParams.apiVersion;
-    var workerVersion = '2.0.260';
+    var workerVersion = '2.0.263';
     if (apiVersion !== null && apiVersion !== workerVersion) {
       throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
     }

+ 3 - 3
lib/display/api.js

@@ -178,7 +178,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
   if (worker.destroyed) {
     return Promise.reject(new Error('Worker was destroyed'));
   }
-  var apiVersion = '2.0.260';
+  var apiVersion = '2.0.263';
   source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
   source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
   source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@@ -1551,8 +1551,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '2.0.260';
-  exports.build = build = 'd77fc888';
+  exports.version = version = '2.0.263';
+  exports.build = build = 'ba0a3aeb';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;

+ 2 - 2
lib/display/global.js

@@ -51,8 +51,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '2.0.260';
-  PDFJS.build = 'd77fc888';
+  PDFJS.version = '2.0.263';
+  PDFJS.build = 'ba0a3aeb';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

+ 2 - 2
lib/pdf.js

@@ -21,8 +21,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '2.0.260';
-var pdfjsBuild = 'd77fc888';
+var pdfjsVersion = '2.0.263';
+var pdfjsBuild = 'ba0a3aeb';
 var pdfjsSharedUtil = require('./shared/util.js');
 var pdfjsDisplayGlobal = require('./display/global.js');
 var pdfjsDisplayAPI = require('./display/api.js');

+ 2 - 2
lib/pdf.worker.js

@@ -21,7 +21,7 @@
  */
 'use strict';
 
-var pdfjsVersion = '2.0.260';
-var pdfjsBuild = 'd77fc888';
+var pdfjsVersion = '2.0.263';
+var pdfjsBuild = 'ba0a3aeb';
 var pdfjsCoreWorker = require('./core/worker.js');
 exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

+ 7 - 1
lib/web/pdf_history.js

@@ -125,6 +125,9 @@ var PDFHistory = function () {
       }
       var destination = state.destination;
       this._updateInternalState(destination, state.uid, true);
+      if (this._uid > this._maxUid) {
+        this._maxUid = this._uid;
+      }
       if (destination.rotation !== undefined) {
         this.initialRotation = destination.rotation;
       }
@@ -371,6 +374,9 @@ var PDFHistory = function () {
       }
       var destination = state.destination;
       this._updateInternalState(destination, state.uid, true);
+      if (this._uid > this._maxUid) {
+        this._maxUid = this._uid;
+      }
       if ((0, _ui_utils.isValidRotation)(destination.rotation)) {
         this.linkService.rotation = destination.rotation;
       }
@@ -396,7 +402,7 @@ var PDFHistory = function () {
       _boundEvents.updateViewarea = this._updateViewarea.bind(this);
       _boundEvents.popState = this._popState.bind(this);
       _boundEvents.pageHide = function (evt) {
-        if (!_this5._destination) {
+        if (!_this5._destination || _this5._destination.temporary) {
           _this5._tryPushCurrentPosition();
         }
       };

+ 1 - 1
package.json

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

+ 7 - 1
web/pdf_viewer.js

@@ -4580,6 +4580,9 @@ var PDFHistory = function () {
       }
       var destination = state.destination;
       this._updateInternalState(destination, state.uid, true);
+      if (this._uid > this._maxUid) {
+        this._maxUid = this._uid;
+      }
       if (destination.rotation !== undefined) {
         this.initialRotation = destination.rotation;
       }
@@ -4826,6 +4829,9 @@ var PDFHistory = function () {
       }
       var destination = state.destination;
       this._updateInternalState(destination, state.uid, true);
+      if (this._uid > this._maxUid) {
+        this._maxUid = this._uid;
+      }
       if ((0, _ui_utils.isValidRotation)(destination.rotation)) {
         this.linkService.rotation = destination.rotation;
       }
@@ -4851,7 +4857,7 @@ var PDFHistory = function () {
       _boundEvents.updateViewarea = this._updateViewarea.bind(this);
       _boundEvents.popState = this._popState.bind(this);
       _boundEvents.pageHide = function (evt) {
-        if (!_this5._destination) {
+        if (!_this5._destination || _this5._destination.temporary) {
           _this5._tryPushCurrentPosition();
         }
       };

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
web/pdf_viewer.js.map


Vissa filer visades inte eftersom för många filer har ändrats