Browse Source

PDF.js version 1.1.124

master v1.1.124
Pdf Bot 10 years ago
parent
commit
b7394c2d04
  1. 2
      bower.json
  2. 12
      build/pdf.combined.js
  3. 12
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

12
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.122'; PDFJS.version = '1.1.124';
PDFJS.build = '00f3756'; PDFJS.build = 'd87c1ec';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -2321,6 +2321,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
this.commonObjs, this.commonObjs,
intentState.operatorList, intentState.operatorList,
this.pageNumber); this.pageNumber);
internalRenderTask.useRequestAnimationFrame = renderingIntent !== 'print';
if (!intentState.renderTasks) { if (!intentState.renderTasks) {
intentState.renderTasks = []; intentState.renderTasks = [];
} }
@ -3082,6 +3083,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
this.running = false; this.running = false;
this.graphicsReadyCallback = null; this.graphicsReadyCallback = null;
this.graphicsReady = false; this.graphicsReady = false;
this.useRequestAnimationFrame = false;
this.cancelled = false; this.cancelled = false;
this.capability = createPromiseCapability(); this.capability = createPromiseCapability();
this.task = new RenderTask(this); this.task = new RenderTask(this);
@ -3155,7 +3157,11 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
}, },
_scheduleNext: function InternalRenderTask__scheduleNext() { _scheduleNext: function InternalRenderTask__scheduleNext() {
window.requestAnimationFrame(this._nextBound); if (this.useRequestAnimationFrame) {
window.requestAnimationFrame(this._nextBound);
} else {
Promise.resolve(undefined).then(this._nextBound);
}
}, },
_next: function InternalRenderTask__next() { _next: function InternalRenderTask__next() {

12
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.122'; PDFJS.version = '1.1.124';
PDFJS.build = '00f3756'; PDFJS.build = 'd87c1ec';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -2321,6 +2321,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
this.commonObjs, this.commonObjs,
intentState.operatorList, intentState.operatorList,
this.pageNumber); this.pageNumber);
internalRenderTask.useRequestAnimationFrame = renderingIntent !== 'print';
if (!intentState.renderTasks) { if (!intentState.renderTasks) {
intentState.renderTasks = []; intentState.renderTasks = [];
} }
@ -3126,6 +3127,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
this.running = false; this.running = false;
this.graphicsReadyCallback = null; this.graphicsReadyCallback = null;
this.graphicsReady = false; this.graphicsReady = false;
this.useRequestAnimationFrame = false;
this.cancelled = false; this.cancelled = false;
this.capability = createPromiseCapability(); this.capability = createPromiseCapability();
this.task = new RenderTask(this); this.task = new RenderTask(this);
@ -3199,7 +3201,11 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
}, },
_scheduleNext: function InternalRenderTask__scheduleNext() { _scheduleNext: function InternalRenderTask__scheduleNext() {
window.requestAnimationFrame(this._nextBound); if (this.useRequestAnimationFrame) {
window.requestAnimationFrame(this._nextBound);
} else {
Promise.resolve(undefined).then(this._nextBound);
}
}, },
_next: function InternalRenderTask__next() { _next: function InternalRenderTask__next() {

4
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.122'; PDFJS.version = '1.1.124';
PDFJS.build = '00f3756'; PDFJS.build = 'd87c1ec';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.1.122", "version": "1.1.124",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save