Browse Source

PDF.js version 1.6.324 - See mozilla/pdf.js@f6a8d9c4dd338ac18de673103c4e2cf8e65daf5a

master v1.6.324
Pdf Bot 8 years ago
parent
commit
40a73418b5
  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. 22
      web/pdf_viewer.js

2
bower.json

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

4
build/pdf.combined.js

@ -23,8 +23,8 @@ @@ -23,8 +23,8 @@
}
}(this, function (exports) {
'use strict';
var pdfjsVersion = '1.6.322';
var pdfjsBuild = '043cea2';
var pdfjsVersion = '1.6.324';
var pdfjsBuild = 'f6a8d9c';
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
var pdfjsLibs = {};
(function pdfjsWrapper() {

4
build/pdf.js

@ -23,8 +23,8 @@ @@ -23,8 +23,8 @@
}
}(this, function (exports) {
'use strict';
var pdfjsVersion = '1.6.322';
var pdfjsBuild = '043cea2';
var pdfjsVersion = '1.6.324';
var pdfjsBuild = 'f6a8d9c';
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
var pdfjsLibs = {};
(function pdfjsWrapper() {

4
build/pdf.worker.js vendored

@ -23,8 +23,8 @@ @@ -23,8 +23,8 @@
}
}(this, function (exports) {
'use strict';
var pdfjsVersion = '1.6.322';
var pdfjsBuild = '043cea2';
var pdfjsVersion = '1.6.324';
var pdfjsBuild = 'f6a8d9c';
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
var pdfjsLibs = {};
(function pdfjsWrapper() {

2
package.json

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

22
web/pdf_viewer.js

@ -195,6 +195,8 @@ @@ -195,6 +195,8 @@
var CSS_UNITS = 96.0 / 72.0;
var DEFAULT_SCALE_VALUE = 'auto';
var DEFAULT_SCALE = 1.0;
var MIN_SCALE = 0.25;
var MAX_SCALE = 10.0;
var UNKNOWN_SCALE = 0;
var MAX_AUTO_SCALE = 1.25;
var SCROLLBAR_PADDING = 40;
@ -451,6 +453,22 @@ @@ -451,6 +453,22 @@
}
return delta;
}
var animationStarted = new Promise(function (resolve) {
window.requestAnimationFrame(resolve);
});
var localized = new Promise(function (resolve, reject) {
if (!mozL10n) {
reject(new Error('mozL10n service is not available.'));
return;
}
if (mozL10n.getReadyState() !== 'loading') {
resolve();
return;
}
window.addEventListener('localized', function localized(evt) {
resolve();
});
});
var EventBus = function EventBusClosure() {
function EventBus() {
this._listeners = Object.create(null);
@ -549,6 +567,8 @@ @@ -549,6 +567,8 @@
exports.CSS_UNITS = CSS_UNITS;
exports.DEFAULT_SCALE_VALUE = DEFAULT_SCALE_VALUE;
exports.DEFAULT_SCALE = DEFAULT_SCALE;
exports.MIN_SCALE = MIN_SCALE;
exports.MAX_SCALE = MAX_SCALE;
exports.UNKNOWN_SCALE = UNKNOWN_SCALE;
exports.MAX_AUTO_SCALE = MAX_AUTO_SCALE;
exports.SCROLLBAR_PADDING = SCROLLBAR_PADDING;
@ -567,6 +587,8 @@ @@ -567,6 +587,8 @@
exports.watchScroll = watchScroll;
exports.binarySearchFirstItem = binarySearchFirstItem;
exports.normalizeWheelEventDelta = normalizeWheelEventDelta;
exports.animationStarted = animationStarted;
exports.localized = localized;
}));
(function (root, factory) {
factory(root.pdfjsWebDOMEvents = {}, root.pdfjsWebUIUtils);

Loading…
Cancel
Save