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 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.8.467",
"version": "1.8.469",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

12
build/pdf.combined.js

@ -13077,8 +13077,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -13077,8 +13077,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.8.467';
exports.build = build = '679ffc84';
exports.version = version = '1.8.469';
exports.build = build = '054fe139';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -28425,8 +28425,8 @@ if (!_util.globalScope.PDFJS) { @@ -28425,8 +28425,8 @@ if (!_util.globalScope.PDFJS) {
}
var PDFJS = _util.globalScope.PDFJS;
{
PDFJS.version = '1.8.467';
PDFJS.build = '679ffc84';
PDFJS.version = '1.8.469';
PDFJS.build = '054fe139';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -47043,8 +47043,8 @@ exports.TilingPattern = TilingPattern; @@ -47043,8 +47043,8 @@ exports.TilingPattern = TilingPattern;
"use strict";
var pdfjsVersion = '1.8.467';
var pdfjsBuild = '679ffc84';
var pdfjsVersion = '1.8.469';
var pdfjsBuild = '054fe139';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
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() { @@ -3806,8 +3806,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.8.467';
exports.build = build = '679ffc84';
exports.version = version = '1.8.469';
exports.build = build = '054fe139';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -5780,8 +5780,8 @@ if (!_util.globalScope.PDFJS) { @@ -5780,8 +5780,8 @@ if (!_util.globalScope.PDFJS) {
}
var PDFJS = _util.globalScope.PDFJS;
{
PDFJS.version = '1.8.467';
PDFJS.build = '679ffc84';
PDFJS.version = '1.8.469';
PDFJS.build = '054fe139';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -11320,8 +11320,8 @@ exports.TilingPattern = TilingPattern; @@ -11320,8 +11320,8 @@ exports.TilingPattern = TilingPattern;
"use strict";
var pdfjsVersion = '1.8.467';
var pdfjsBuild = '679ffc84';
var pdfjsVersion = '1.8.469';
var pdfjsBuild = '054fe139';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
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; @@ -40317,8 +40317,8 @@ exports.Type1Parser = Type1Parser;
"use strict";
var pdfjsVersion = '1.8.467';
var pdfjsBuild = '679ffc84';
var pdfjsVersion = '1.8.469';
var pdfjsBuild = '054fe139';
var pdfjsCoreWorker = __w_pdfjs_require__(8);
{
__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() { @@ -1443,8 +1443,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.8.467';
exports.build = build = '679ffc84';
exports.version = version = '1.8.469';
exports.build = build = '054fe139';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

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

4
lib/pdf.js

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

4
lib/pdf.worker.js vendored

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

82
lib/web/toolbar.js

@ -19,15 +19,22 @@ Object.defineProperty(exports, "__esModule", { @@ -19,15 +19,22 @@ Object.defineProperty(exports, "__esModule", {
});
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');
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 SCALE_SELECT_CONTAINER_PADDING = 8;
var SCALE_SELECT_PADDING = 22;
var Toolbar = function ToolbarClosure() {
var Toolbar = function () {
function Toolbar(options, mainContainer, eventBus) {
var l10n = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _ui_utils.NullL10n;
_classCallCheck(this, Toolbar);
this.toolbar = options.container;
this.mainContainer = mainContainer;
this.eventBus = eventBus;
@ -37,23 +44,31 @@ var Toolbar = function ToolbarClosure() { @@ -37,23 +44,31 @@ var Toolbar = function ToolbarClosure() {
this.reset();
this._bindListeners();
}
Toolbar.prototype = {
setPageNumber: function setPageNumber(pageNumber, pageLabel) {
_createClass(Toolbar, [{
key: 'setPageNumber',
value: function setPageNumber(pageNumber, pageLabel) {
this.pageNumber = pageNumber;
this.pageLabel = pageLabel;
this._updateUIState(false);
},
setPagesCount: function setPagesCount(pagesCount, hasPageLabels) {
}
}, {
key: 'setPagesCount',
value: function setPagesCount(pagesCount, hasPageLabels) {
this.pagesCount = pagesCount;
this.hasPageLabels = hasPageLabels;
this._updateUIState(true);
},
setPageScale: function setPageScale(pageScaleValue, pageScale) {
}
}, {
key: 'setPageScale',
value: function setPageScale(pageScaleValue, pageScale) {
this.pageScaleValue = pageScaleValue;
this.pageScale = pageScale;
this._updateUIState(false);
},
reset: function reset() {
}
}, {
key: 'reset',
value: function reset() {
this.pageNumber = 0;
this.pageLabel = null;
this.hasPageLabels = false;
@ -61,9 +76,10 @@ var Toolbar = function ToolbarClosure() { @@ -61,9 +76,10 @@ var Toolbar = function ToolbarClosure() {
this.pageScaleValue = _ui_utils.DEFAULT_SCALE_VALUE;
this.pageScale = _ui_utils.DEFAULT_SCALE;
this._updateUIState(true);
},
_bindListeners: function Toolbar_bindClickListeners() {
}
}, {
key: '_bindListeners',
value: function _bindListeners() {
var _this = this;
var eventBus = this.eventBus;
@ -99,31 +115,37 @@ var Toolbar = function ToolbarClosure() { @@ -99,31 +115,37 @@ var Toolbar = function ToolbarClosure() {
value: this.value
});
});
items.presentationModeButton.addEventListener('click', function (e) {
items.presentationModeButton.addEventListener('click', function () {
eventBus.dispatch('presentationmode');
});
items.openFile.addEventListener('click', function (e) {
items.openFile.addEventListener('click', function () {
eventBus.dispatch('openfile');
});
items.print.addEventListener('click', function (e) {
items.print.addEventListener('click', function () {
eventBus.dispatch('print');
});
items.download.addEventListener('click', function (e) {
items.download.addEventListener('click', function () {
eventBus.dispatch('download');
});
items.scaleSelect.oncontextmenu = _ui_utils.noContextMenuHandler;
eventBus.on('localized', function (evt) {
eventBus.on('localized', function () {
_this._localized();
});
},
_localized: function Toolbar_localized() {
}
}, {
key: '_localized',
value: function _localized() {
this._wasLocalized = true;
this._adjustScaleWidth();
this._updateUIState(true);
},
_updateUIState: function Toolbar_updateUIState(resetNumPages) {
}
}, {
key: '_updateUIState',
value: function _updateUIState() {
var _this2 = this;
var resetNumPages = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
if (!this._wasLocalized) {
return;
}
@ -179,16 +201,22 @@ var Toolbar = function ToolbarClosure() { @@ -179,16 +201,22 @@ var Toolbar = function ToolbarClosure() {
items.zoomOut.disabled = scale <= _ui_utils.MIN_SCALE;
items.zoomIn.disabled = scale >= _ui_utils.MAX_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;
if (loading) {
pageNumberInput.classList.add(PAGE_NUMBER_LOADING_INDICATOR);
} else {
pageNumberInput.classList.remove(PAGE_NUMBER_LOADING_INDICATOR);
}
},
_adjustScaleWidth: function Toolbar_adjustScaleWidth() {
}
}, {
key: '_adjustScaleWidth',
value: function _adjustScaleWidth() {
var container = this.items.scaleSelectContainer;
var select = this.items.scaleSelect;
_ui_utils.animationStarted.then(function () {
@ -203,7 +231,9 @@ var Toolbar = function ToolbarClosure() { @@ -203,7 +231,9 @@ var Toolbar = function ToolbarClosure() {
}
});
}
};
}]);
return Toolbar;
}();
exports.Toolbar = Toolbar;

2
package.json

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

Loading…
Cancel
Save