Browse Source

PDF.js version 1.8.469 - See mozilla/pdf.js@054fe1392078078e9d2d71879ed6a73d2202ed50

master v1.8.469
pdfjsbot 8 years ago
parent
commit
a4dd3acec4
  1. 2
      bower.json
  2. 12
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 12
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 4
      build/pdf.min.js
  7. 4
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 4
      lib/display/api.js
  10. 4
      lib/display/global.js
  11. 4
      lib/pdf.js
  12. 4
      lib/pdf.worker.js
  13. 82
      lib/web/toolbar.js
  14. 2
      package.json

2
bower.json

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

12
build/pdf.combined.js

@ -13077,8 +13077,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.467'; exports.version = version = '1.8.469';
exports.build = build = '679ffc84'; exports.build = build = '054fe139';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -28425,8 +28425,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.467'; PDFJS.version = '1.8.469';
PDFJS.build = '679ffc84'; PDFJS.build = '054fe139';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -47043,8 +47043,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.8.467'; var pdfjsVersion = '1.8.469';
var pdfjsBuild = '679ffc84'; var pdfjsBuild = '054fe139';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26); var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
var pdfjsDisplayAPI = __w_pdfjs_require__(10); var pdfjsDisplayAPI = __w_pdfjs_require__(10);

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

12
build/pdf.js

@ -3806,8 +3806,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.467'; exports.version = version = '1.8.469';
exports.build = build = '679ffc84'; exports.build = build = '054fe139';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -5780,8 +5780,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.467'; PDFJS.version = '1.8.469';
PDFJS.build = '679ffc84'; PDFJS.build = '054fe139';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -11320,8 +11320,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.8.467'; var pdfjsVersion = '1.8.469';
var pdfjsBuild = '679ffc84'; var pdfjsBuild = '054fe139';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9); var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
var pdfjsDisplayAPI = __w_pdfjs_require__(3); var pdfjsDisplayAPI = __w_pdfjs_require__(3);

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

4
build/pdf.worker.js vendored

@ -40317,8 +40317,8 @@ exports.Type1Parser = Type1Parser;
"use strict"; "use strict";
var pdfjsVersion = '1.8.467'; var pdfjsVersion = '1.8.469';
var pdfjsBuild = '679ffc84'; var pdfjsBuild = '054fe139';
var pdfjsCoreWorker = __w_pdfjs_require__(8); var pdfjsCoreWorker = __w_pdfjs_require__(8);
{ {
__w_pdfjs_require__(19); __w_pdfjs_require__(19);

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

4
lib/display/api.js

@ -1443,8 +1443,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.467'; exports.version = version = '1.8.469';
exports.build = build = '679ffc84'; exports.build = build = '054fe139';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.467'; PDFJS.version = '1.8.469';
PDFJS.build = '679ffc84'; PDFJS.build = '054fe139';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.8.467'; var pdfjsVersion = '1.8.469';
var pdfjsBuild = '679ffc84'; var pdfjsBuild = '054fe139';
var pdfjsSharedUtil = require('./shared/util.js'); var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js'); var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js'); var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -14,8 +14,8 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.8.467'; var pdfjsVersion = '1.8.469';
var pdfjsBuild = '679ffc84'; var pdfjsBuild = '054fe139';
var pdfjsCoreWorker = require('./core/worker.js'); var pdfjsCoreWorker = require('./core/worker.js');
{ {
require('./core/network.js'); require('./core/network.js');

82
lib/web/toolbar.js

@ -19,15 +19,22 @@ Object.defineProperty(exports, "__esModule", {
}); });
exports.Toolbar = undefined; exports.Toolbar = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _ui_utils = require('./ui_utils'); var _ui_utils = require('./ui_utils');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var PAGE_NUMBER_LOADING_INDICATOR = 'visiblePageIsLoading'; var PAGE_NUMBER_LOADING_INDICATOR = 'visiblePageIsLoading';
var SCALE_SELECT_CONTAINER_PADDING = 8; var SCALE_SELECT_CONTAINER_PADDING = 8;
var SCALE_SELECT_PADDING = 22; var SCALE_SELECT_PADDING = 22;
var Toolbar = function ToolbarClosure() {
var Toolbar = function () {
function Toolbar(options, mainContainer, eventBus) { function Toolbar(options, mainContainer, eventBus) {
var l10n = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _ui_utils.NullL10n; var l10n = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _ui_utils.NullL10n;
_classCallCheck(this, Toolbar);
this.toolbar = options.container; this.toolbar = options.container;
this.mainContainer = mainContainer; this.mainContainer = mainContainer;
this.eventBus = eventBus; this.eventBus = eventBus;
@ -37,23 +44,31 @@ var Toolbar = function ToolbarClosure() {
this.reset(); this.reset();
this._bindListeners(); this._bindListeners();
} }
Toolbar.prototype = {
setPageNumber: function setPageNumber(pageNumber, pageLabel) { _createClass(Toolbar, [{
key: 'setPageNumber',
value: function setPageNumber(pageNumber, pageLabel) {
this.pageNumber = pageNumber; this.pageNumber = pageNumber;
this.pageLabel = pageLabel; this.pageLabel = pageLabel;
this._updateUIState(false); this._updateUIState(false);
}, }
setPagesCount: function setPagesCount(pagesCount, hasPageLabels) { }, {
key: 'setPagesCount',
value: function setPagesCount(pagesCount, hasPageLabels) {
this.pagesCount = pagesCount; this.pagesCount = pagesCount;
this.hasPageLabels = hasPageLabels; this.hasPageLabels = hasPageLabels;
this._updateUIState(true); this._updateUIState(true);
}, }
setPageScale: function setPageScale(pageScaleValue, pageScale) { }, {
key: 'setPageScale',
value: function setPageScale(pageScaleValue, pageScale) {
this.pageScaleValue = pageScaleValue; this.pageScaleValue = pageScaleValue;
this.pageScale = pageScale; this.pageScale = pageScale;
this._updateUIState(false); this._updateUIState(false);
}, }
reset: function reset() { }, {
key: 'reset',
value: function reset() {
this.pageNumber = 0; this.pageNumber = 0;
this.pageLabel = null; this.pageLabel = null;
this.hasPageLabels = false; this.hasPageLabels = false;
@ -61,9 +76,10 @@ var Toolbar = function ToolbarClosure() {
this.pageScaleValue = _ui_utils.DEFAULT_SCALE_VALUE; this.pageScaleValue = _ui_utils.DEFAULT_SCALE_VALUE;
this.pageScale = _ui_utils.DEFAULT_SCALE; this.pageScale = _ui_utils.DEFAULT_SCALE;
this._updateUIState(true); this._updateUIState(true);
}, }
}, {
_bindListeners: function Toolbar_bindClickListeners() { key: '_bindListeners',
value: function _bindListeners() {
var _this = this; var _this = this;
var eventBus = this.eventBus; var eventBus = this.eventBus;
@ -99,31 +115,37 @@ var Toolbar = function ToolbarClosure() {
value: this.value value: this.value
}); });
}); });
items.presentationModeButton.addEventListener('click', function (e) { items.presentationModeButton.addEventListener('click', function () {
eventBus.dispatch('presentationmode'); eventBus.dispatch('presentationmode');
}); });
items.openFile.addEventListener('click', function (e) { items.openFile.addEventListener('click', function () {
eventBus.dispatch('openfile'); eventBus.dispatch('openfile');
}); });
items.print.addEventListener('click', function (e) { items.print.addEventListener('click', function () {
eventBus.dispatch('print'); eventBus.dispatch('print');
}); });
items.download.addEventListener('click', function (e) { items.download.addEventListener('click', function () {
eventBus.dispatch('download'); eventBus.dispatch('download');
}); });
items.scaleSelect.oncontextmenu = _ui_utils.noContextMenuHandler; items.scaleSelect.oncontextmenu = _ui_utils.noContextMenuHandler;
eventBus.on('localized', function (evt) { eventBus.on('localized', function () {
_this._localized(); _this._localized();
}); });
}, }
_localized: function Toolbar_localized() { }, {
key: '_localized',
value: function _localized() {
this._wasLocalized = true; this._wasLocalized = true;
this._adjustScaleWidth(); this._adjustScaleWidth();
this._updateUIState(true); this._updateUIState(true);
}, }
_updateUIState: function Toolbar_updateUIState(resetNumPages) { }, {
key: '_updateUIState',
value: function _updateUIState() {
var _this2 = this; var _this2 = this;
var resetNumPages = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
if (!this._wasLocalized) { if (!this._wasLocalized) {
return; return;
} }
@ -179,16 +201,22 @@ var Toolbar = function ToolbarClosure() {
items.zoomOut.disabled = scale <= _ui_utils.MIN_SCALE; items.zoomOut.disabled = scale <= _ui_utils.MIN_SCALE;
items.zoomIn.disabled = scale >= _ui_utils.MAX_SCALE; items.zoomIn.disabled = scale >= _ui_utils.MAX_SCALE;
selectScaleOption(scaleValue, scale); selectScaleOption(scaleValue, scale);
}, }
updateLoadingIndicatorState: function Toolbar_updateLoadingIndicatorState(loading) { }, {
key: 'updateLoadingIndicatorState',
value: function updateLoadingIndicatorState() {
var loading = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
var pageNumberInput = this.items.pageNumber; var pageNumberInput = this.items.pageNumber;
if (loading) { if (loading) {
pageNumberInput.classList.add(PAGE_NUMBER_LOADING_INDICATOR); pageNumberInput.classList.add(PAGE_NUMBER_LOADING_INDICATOR);
} else { } else {
pageNumberInput.classList.remove(PAGE_NUMBER_LOADING_INDICATOR); pageNumberInput.classList.remove(PAGE_NUMBER_LOADING_INDICATOR);
} }
}, }
_adjustScaleWidth: function Toolbar_adjustScaleWidth() { }, {
key: '_adjustScaleWidth',
value: function _adjustScaleWidth() {
var container = this.items.scaleSelectContainer; var container = this.items.scaleSelectContainer;
var select = this.items.scaleSelect; var select = this.items.scaleSelect;
_ui_utils.animationStarted.then(function () { _ui_utils.animationStarted.then(function () {
@ -203,7 +231,9 @@ var Toolbar = function ToolbarClosure() {
} }
}); });
} }
}; }]);
return Toolbar; return Toolbar;
}(); }();
exports.Toolbar = Toolbar; exports.Toolbar = Toolbar;

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.8.467", "version": "1.8.469",
"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": [

Loading…
Cancel
Save