Browse Source

PDF.js version 2.0.442 - See mozilla/pdf.js@3bfc797bc718a367f4b79d7bccb789f9f45bb406

master v2.0.442
pdfjsbot 7 years ago
parent
commit
74141fc84f
  1. 2
      bower.json
  2. 10
      build/pdf.js
  3. 2
      build/pdf.js.map
  4. 2
      build/pdf.min.js
  5. 6
      build/pdf.worker.js
  6. 2
      build/pdf.worker.js.map
  7. 2
      build/pdf.worker.min.js
  8. 2
      lib/core/worker.js
  9. 6
      lib/display/api.js
  10. 4
      lib/pdf.js
  11. 4
      lib/pdf.worker.js
  12. 4
      lib/web/app.js
  13. 4
      lib/web/app_options.js
  14. 9
      lib/web/pdf_cursor_tools.js
  15. 4
      lib/web/pdf_viewer.component.js
  16. 6
      lib/web/ui_utils.js
  17. 2
      package.json
  18. 10
      web/pdf_viewer.js
  19. 2
      web/pdf_viewer.js.map

2
bower.json

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

10
build/pdf.js

@ -3135,8 +3135,8 @@ exports.GlobalWorkerOptions = GlobalWorkerOptions; @@ -3135,8 +3135,8 @@ exports.GlobalWorkerOptions = GlobalWorkerOptions;
"use strict";
var pdfjsVersion = '2.0.439';
var pdfjsBuild = '6db9c3cb';
var pdfjsVersion = '2.0.442';
var pdfjsBuild = '3bfc797b';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayAPI = __w_pdfjs_require__(117);
var pdfjsDisplayTextLayer = __w_pdfjs_require__(124);
@ -8567,7 +8567,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -8567,7 +8567,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
}
return worker.messageHandler.sendWithPromise('GetDocRequest', {
docId: docId,
apiVersion: '2.0.439',
apiVersion: '2.0.442',
source: {
data: source.data,
url: source.url,
@ -9998,8 +9998,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -9998,8 +9998,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.439';
exports.build = build = '6db9c3cb';
exports.version = version = '2.0.442';
exports.build = build = '3bfc797b';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

2
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

6
build/pdf.worker.js vendored

@ -22350,8 +22350,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -22350,8 +22350,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '2.0.439';
var pdfjsBuild = '6db9c3cb';
var pdfjsVersion = '2.0.442';
var pdfjsBuild = '3bfc797b';
var pdfjsCoreWorker = __w_pdfjs_require__(74);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -22564,7 +22564,7 @@ var WorkerMessageHandler = { @@ -22564,7 +22564,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.439';
var workerVersion = '2.0.442';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

2
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
lib/core/worker.js

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

6
lib/display/api.js

@ -234,7 +234,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -234,7 +234,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
}
return worker.messageHandler.sendWithPromise('GetDocRequest', {
docId: docId,
apiVersion: '2.0.439',
apiVersion: '2.0.442',
source: {
data: source.data,
url: source.url,
@ -1665,8 +1665,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -1665,8 +1665,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.439';
exports.build = build = '6db9c3cb';
exports.version = version = '2.0.442';
exports.build = build = '3bfc797b';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/pdf.js

@ -21,8 +21,8 @@ @@ -21,8 +21,8 @@
*/
'use strict';
var pdfjsVersion = '2.0.439';
var pdfjsBuild = '6db9c3cb';
var pdfjsVersion = '2.0.442';
var pdfjsBuild = '3bfc797b';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayAPI = require('./display/api.js');
var pdfjsDisplayTextLayer = require('./display/text_layer.js');

4
lib/pdf.worker.js vendored

@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
*/
'use strict';
var pdfjsVersion = '2.0.439';
var pdfjsBuild = '6db9c3cb';
var pdfjsVersion = '2.0.442';
var pdfjsBuild = '3bfc797b';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

4
lib/web/app.js

@ -166,6 +166,8 @@ var PDFViewerApplication = { @@ -166,6 +166,8 @@ var PDFViewerApplication = {
_app_options.AppOptions.set('enableWebGL', value);
}), preferences.get('sidebarViewOnLoad').then(function resolved(value) {
_app_options.AppOptions.set('sidebarViewOnLoad', value);
}), preferences.get('cursorToolOnLoad').then(function resolved(value) {
_app_options.AppOptions.set('cursorToolOnLoad', value);
}), preferences.get('pdfBugEnabled').then(function resolved(value) {
_app_options.AppOptions.set('pdfBugEnabled', value);
}), preferences.get('showPreviousViewOnLoad').then(function resolved(value) {
@ -357,7 +359,7 @@ var PDFViewerApplication = { @@ -357,7 +359,7 @@ var PDFViewerApplication = {
_this2.pdfCursorTools = new _pdf_cursor_tools.PDFCursorTools({
container: container,
eventBus: eventBus,
preferences: _this2.preferences
cursorToolOnLoad: _app_options.AppOptions.get('cursorToolOnLoad')
});
_this2.toolbar = new _toolbar.Toolbar(appConfig.toolbar, container, eventBus, _this2.l10n);
_this2.secondaryToolbar = new _secondary_toolbar.SecondaryToolbar(appConfig.secondaryToolbar, container, eventBus);

4
lib/web/app_options.js

@ -40,6 +40,10 @@ var OptionKind = { @@ -40,6 +40,10 @@ var OptionKind = {
WORKER: 'worker'
};
var defaultOptions = {
cursorToolOnLoad: {
value: 0,
kind: OptionKind.VIEWER
},
defaultUrl: {
value: 'compressed.tracemonkey-pldi-09.pdf',
kind: OptionKind.VIEWER

9
lib/web/pdf_cursor_tools.js

@ -44,7 +44,8 @@ var PDFCursorTools = function () { @@ -44,7 +44,8 @@ var PDFCursorTools = function () {
var container = _ref.container,
eventBus = _ref.eventBus,
preferences = _ref.preferences;
_ref$cursorToolOnLoad = _ref.cursorToolOnLoad,
cursorToolOnLoad = _ref$cursorToolOnLoad === undefined ? CursorTool.SELECT : _ref$cursorToolOnLoad;
_classCallCheck(this, PDFCursorTools);
@ -54,9 +55,9 @@ var PDFCursorTools = function () { @@ -54,9 +55,9 @@ var PDFCursorTools = function () {
this.activeBeforePresentationMode = null;
this.handTool = new _grab_to_pan.GrabToPan({ element: this.container });
this._addEventListeners();
preferences.get('cursorToolOnLoad').then(function (value) {
_this.switchTool(value);
}).catch(function () {});
Promise.resolve().then(function () {
_this.switchTool(cursorToolOnLoad);
});
}
_createClass(PDFCursorTools, [{

4
lib/web/pdf_viewer.component.js

@ -48,8 +48,8 @@ var _pdf_single_page_viewer = require('./pdf_single_page_viewer'); @@ -48,8 +48,8 @@ var _pdf_single_page_viewer = require('./pdf_single_page_viewer');
var _pdf_viewer = require('./pdf_viewer.js');
var pdfjsVersion = '2.0.439';
var pdfjsBuild = '6db9c3cb';
var pdfjsVersion = '2.0.442';
var pdfjsBuild = '3bfc797b';
exports.PDFViewer = _pdf_viewer.PDFViewer;
exports.PDFSinglePageViewer = _pdf_single_page_viewer.PDFSinglePageViewer;
exports.PDFPageView = _pdf_page_view.PDFPageView;

6
lib/web/ui_utils.js

@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.waitOnEventOrTimeout = exports.WaitOnType = exports.localized = exports.animationStarted = exports.normalizeWheelEventDelta = exports.binarySearchFirstItem = exports.watchScroll = exports.scrollIntoView = exports.getOutputScale = exports.approximateFraction = exports.roundToDivide = exports.getVisibleElements = exports.parseQueryString = exports.noContextMenuHandler = exports.getPDFFileNameFromURL = exports.ProgressBar = exports.EventBus = exports.NullL10n = exports.mozL10n = exports.TextLayerMode = exports.RendererType = exports.PresentationModeState = exports.cloneObj = exports.isFileSchema = exports.isValidRotation = exports.VERTICAL_PADDING = exports.SCROLLBAR_PADDING = exports.MAX_AUTO_SCALE = exports.UNKNOWN_SCALE = exports.MAX_SCALE = exports.MIN_SCALE = exports.DEFAULT_SCALE = exports.DEFAULT_SCALE_VALUE = exports.CSS_UNITS = undefined;
exports.waitOnEventOrTimeout = exports.WaitOnType = exports.animationStarted = exports.normalizeWheelEventDelta = exports.binarySearchFirstItem = exports.watchScroll = exports.scrollIntoView = exports.getOutputScale = exports.approximateFraction = exports.roundToDivide = exports.getVisibleElements = exports.parseQueryString = exports.noContextMenuHandler = exports.getPDFFileNameFromURL = exports.ProgressBar = exports.EventBus = exports.NullL10n = exports.TextLayerMode = exports.RendererType = exports.PresentationModeState = exports.cloneObj = exports.isFileSchema = exports.isValidRotation = exports.VERTICAL_PADDING = exports.SCROLLBAR_PADDING = exports.MAX_AUTO_SCALE = exports.UNKNOWN_SCALE = exports.MAX_SCALE = exports.MIN_SCALE = exports.DEFAULT_SCALE = exports.DEFAULT_SCALE_VALUE = exports.CSS_UNITS = 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; }; }();
@ -387,8 +387,6 @@ function waitOnEventOrTimeout(_ref) { @@ -387,8 +387,6 @@ function waitOnEventOrTimeout(_ref) {
var animationStarted = new Promise(function (resolve) {
window.requestAnimationFrame(resolve);
});
var mozL10n = void 0;
var localized = Promise.resolve();
var EventBus = function () {
function EventBus() {
@ -531,7 +529,6 @@ exports.cloneObj = cloneObj; @@ -531,7 +529,6 @@ exports.cloneObj = cloneObj;
exports.PresentationModeState = PresentationModeState;
exports.RendererType = RendererType;
exports.TextLayerMode = TextLayerMode;
exports.mozL10n = mozL10n;
exports.NullL10n = NullL10n;
exports.EventBus = EventBus;
exports.ProgressBar = ProgressBar;
@ -547,6 +544,5 @@ exports.watchScroll = watchScroll; @@ -547,6 +544,5 @@ exports.watchScroll = watchScroll;
exports.binarySearchFirstItem = binarySearchFirstItem;
exports.normalizeWheelEventDelta = normalizeWheelEventDelta;
exports.animationStarted = animationStarted;
exports.localized = localized;
exports.WaitOnType = WaitOnType;
exports.waitOnEventOrTimeout = waitOnEventOrTimeout;

2
package.json

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

10
web/pdf_viewer.js

@ -105,7 +105,7 @@ return /******/ (function(modules) { // webpackBootstrap @@ -105,7 +105,7 @@ return /******/ (function(modules) { // webpackBootstrap
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.waitOnEventOrTimeout = exports.WaitOnType = exports.localized = exports.animationStarted = exports.normalizeWheelEventDelta = exports.binarySearchFirstItem = exports.watchScroll = exports.scrollIntoView = exports.getOutputScale = exports.approximateFraction = exports.roundToDivide = exports.getVisibleElements = exports.parseQueryString = exports.noContextMenuHandler = exports.getPDFFileNameFromURL = exports.ProgressBar = exports.EventBus = exports.NullL10n = exports.mozL10n = exports.TextLayerMode = exports.RendererType = exports.PresentationModeState = exports.cloneObj = exports.isFileSchema = exports.isValidRotation = exports.VERTICAL_PADDING = exports.SCROLLBAR_PADDING = exports.MAX_AUTO_SCALE = exports.UNKNOWN_SCALE = exports.MAX_SCALE = exports.MIN_SCALE = exports.DEFAULT_SCALE = exports.DEFAULT_SCALE_VALUE = exports.CSS_UNITS = undefined;
exports.waitOnEventOrTimeout = exports.WaitOnType = exports.animationStarted = exports.normalizeWheelEventDelta = exports.binarySearchFirstItem = exports.watchScroll = exports.scrollIntoView = exports.getOutputScale = exports.approximateFraction = exports.roundToDivide = exports.getVisibleElements = exports.parseQueryString = exports.noContextMenuHandler = exports.getPDFFileNameFromURL = exports.ProgressBar = exports.EventBus = exports.NullL10n = exports.TextLayerMode = exports.RendererType = exports.PresentationModeState = exports.cloneObj = exports.isFileSchema = exports.isValidRotation = exports.VERTICAL_PADDING = exports.SCROLLBAR_PADDING = exports.MAX_AUTO_SCALE = exports.UNKNOWN_SCALE = exports.MAX_SCALE = exports.MIN_SCALE = exports.DEFAULT_SCALE = exports.DEFAULT_SCALE_VALUE = exports.CSS_UNITS = 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; }; }();
@ -468,8 +468,6 @@ function waitOnEventOrTimeout(_ref) { @@ -468,8 +468,6 @@ function waitOnEventOrTimeout(_ref) {
var animationStarted = new Promise(function (resolve) {
window.requestAnimationFrame(resolve);
});
var mozL10n = void 0;
var localized = Promise.resolve();
var EventBus = function () {
function EventBus() {
@ -612,7 +610,6 @@ exports.cloneObj = cloneObj; @@ -612,7 +610,6 @@ exports.cloneObj = cloneObj;
exports.PresentationModeState = PresentationModeState;
exports.RendererType = RendererType;
exports.TextLayerMode = TextLayerMode;
exports.mozL10n = mozL10n;
exports.NullL10n = NullL10n;
exports.EventBus = EventBus;
exports.ProgressBar = ProgressBar;
@ -628,7 +625,6 @@ exports.watchScroll = watchScroll; @@ -628,7 +625,6 @@ exports.watchScroll = watchScroll;
exports.binarySearchFirstItem = binarySearchFirstItem;
exports.normalizeWheelEventDelta = normalizeWheelEventDelta;
exports.animationStarted = animationStarted;
exports.localized = localized;
exports.WaitOnType = WaitOnType;
exports.waitOnEventOrTimeout = waitOnEventOrTimeout;
@ -3183,8 +3179,8 @@ var _pdf_single_page_viewer = __w_pdfjs_require__(16); @@ -3183,8 +3179,8 @@ var _pdf_single_page_viewer = __w_pdfjs_require__(16);
var _pdf_viewer = __w_pdfjs_require__(17);
var pdfjsVersion = '2.0.439';
var pdfjsBuild = '6db9c3cb';
var pdfjsVersion = '2.0.442';
var pdfjsBuild = '3bfc797b';
exports.PDFViewer = _pdf_viewer.PDFViewer;
exports.PDFSinglePageViewer = _pdf_single_page_viewer.PDFSinglePageViewer;
exports.PDFPageView = _pdf_page_view.PDFPageView;

2
web/pdf_viewer.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save