Browse Source

PDF.js version 1.2.135 - See mozilla/pdf.js@467c6f93b5929b7b2b824d5bb794d153544c3620

master v1.2.135
Pdf Bot 9 years ago
parent
commit
32f43e4855
  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. 10
      web/pdf_viewer.js

2
bower.json

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

4
build/pdf.combined.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.2.133';
PDFJS.build = '43de3cc';
PDFJS.version = '1.2.135';
PDFJS.build = '467c6f9';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

4
build/pdf.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.2.133';
PDFJS.build = '43de3cc';
PDFJS.version = '1.2.135';
PDFJS.build = '467c6f9';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

4
build/pdf.worker.js vendored

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.2.133';
PDFJS.build = '43de3cc';
PDFJS.version = '1.2.135';
PDFJS.build = '467c6f9';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

2
package.json

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

10
web/pdf_viewer.js

@ -1227,7 +1227,11 @@ var PDFPageView = (function PDFPageViewClosure() { @@ -1227,7 +1227,11 @@ var PDFPageView = (function PDFPageViewClosure() {
var canvas = document.createElement('canvas');
canvas.id = 'page' + this.id;
// Keep the canvas hidden until the first draw callback, or until drawing
// is complete when `!this.renderingQueue`, to prevent black flickering.
canvas.setAttribute('hidden', 'hidden');
var isCanvasHidden = true;
canvasWrapper.appendChild(canvas);
if (this.annotationLayer && this.annotationLayer.div) {
// annotationLayer needs to stay on top
@ -1235,7 +1239,6 @@ var PDFPageView = (function PDFPageViewClosure() { @@ -1235,7 +1239,6 @@ var PDFPageView = (function PDFPageViewClosure() {
} else {
div.appendChild(canvasWrapper);
}
var isCanvasHidden = true;
this.canvas = canvas;
var ctx = canvas.getContext('2d', {alpha: false});
@ -1317,6 +1320,11 @@ var PDFPageView = (function PDFPageViewClosure() { @@ -1317,6 +1320,11 @@ var PDFPageView = (function PDFPageViewClosure() {
self.renderingState = RenderingStates.FINISHED;
if (isCanvasHidden) {
self.canvas.removeAttribute('hidden');
isCanvasHidden = false;
}
if (self.loadingIconDiv) {
div.removeChild(self.loadingIconDiv);
delete self.loadingIconDiv;

Loading…
Cancel
Save