Browse Source

PDF.js version 1.5.220 - See mozilla/pdf.js@baa149365090d3b23f63c41ca0da552866c78e5e

master v1.5.220
Pdf Bot 9 years ago
parent
commit
7bb0098ca1
  1. 2
      bower.json
  2. 4
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json
  6. 19
      web/pdf_viewer.js

2
bower.json

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

4
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.218'; var pdfjsVersion = '1.5.220';
var pdfjsBuild = '4968ac7'; var pdfjsBuild = 'baa1493';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.218'; var pdfjsVersion = '1.5.220';
var pdfjsBuild = '4968ac7'; var pdfjsBuild = 'baa1493';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

4
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.218'; var pdfjsVersion = '1.5.220';
var pdfjsBuild = '4968ac7'; var pdfjsBuild = 'baa1493';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

2
package.json

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

19
web/pdf_viewer.js

@ -3249,23 +3249,28 @@ var PDFViewer = (function pdfViewer() {
return; return;
} }
var arg;
if (!(0 < val && val <= this.pagesCount)) { if (!(0 < val && val <= this.pagesCount)) {
this.eventBus.dispatch('pagechange', { arg = {
source: this, source: this,
updateInProgress: this.updateInProgress, updateInProgress: this.updateInProgress,
pageNumber: this._currentPageNumber, pageNumber: this._currentPageNumber,
previousPageNumber: val previousPageNumber: val
}); };
this.eventBus.dispatch('pagechanging', arg);
this.eventBus.dispatch('pagechange', arg);
return; return;
} }
this.eventBus.dispatch('pagechange', { arg = {
source: this, source: this,
updateInProgress: this.updateInProgress, updateInProgress: this.updateInProgress,
pageNumber: val, pageNumber: val,
previousPageNumber: this._currentPageNumber previousPageNumber: this._currentPageNumber
}); };
this.eventBus.dispatch('pagechanging', arg);
this._currentPageNumber = val; this._currentPageNumber = val;
this.eventBus.dispatch('pagechange', arg);
// Check if the caller is `PDFViewer_update`, to avoid breaking scrolling. // Check if the caller is `PDFViewer_update`, to avoid breaking scrolling.
if (this.updateInProgress) { if (this.updateInProgress) {
@ -3486,11 +3491,13 @@ var PDFViewer = (function pdfViewer() {
_setScaleDispatchEvent: function pdfViewer_setScaleDispatchEvent( _setScaleDispatchEvent: function pdfViewer_setScaleDispatchEvent(
newScale, newValue, preset) { newScale, newValue, preset) {
this.eventBus.dispatch('scalechange', { var arg = {
source: this, source: this,
scale: newScale, scale: newScale,
presetValue: preset ? newValue : undefined presetValue: preset ? newValue : undefined
}); };
this.eventBus.dispatch('scalechanging', arg);
this.eventBus.dispatch('scalechange', arg);
}, },
_setScaleUpdatePages: function pdfViewer_setScaleUpdatePages( _setScaleUpdatePages: function pdfViewer_setScaleUpdatePages(

Loading…
Cancel
Save