Browse Source

PDF.js version 1.0.1162

master v1.0.1162
Pdf Bot 10 years ago
parent
commit
22b06f30ad
  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. 9
      web/pdf_viewer.js

2
bower.json

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

4
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.1160';
PDFJS.build = '2e14cc7';
PDFJS.version = '1.0.1162';
PDFJS.build = '6ead5c4';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

4
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.1160';
PDFJS.build = '2e14cc7';
PDFJS.version = '1.0.1162';
PDFJS.build = '6ead5c4';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

4
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.1160';
PDFJS.build = '2e14cc7';
PDFJS.version = '1.0.1162';
PDFJS.build = '6ead5c4';
(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.0.1160",
"version": "1.0.1162",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [
"Mozilla",

9
web/pdf_viewer.js

@ -206,16 +206,16 @@ function getVisibleElements(scrollEl, views, sortByVisibility) { @@ -206,16 +206,16 @@ function getVisibleElements(scrollEl, views, sortByVisibility) {
var currentWidth, viewWidth;
for (var i = 0, ii = views.length; i < ii; ++i) {
view = views[i];
currentHeight = view.el.offsetTop + view.el.clientTop;
viewHeight = view.el.clientHeight;
currentHeight = view.div.offsetTop + view.div.clientTop;
viewHeight = view.div.clientHeight;
if ((currentHeight + viewHeight) < top) {
continue;
}
if (currentHeight > bottom) {
break;
}
currentWidth = view.el.offsetLeft + view.el.clientLeft;
viewWidth = view.el.clientWidth;
currentWidth = view.div.offsetLeft + view.div.clientLeft;
viewWidth = view.div.clientWidth;
if ((currentWidth + viewWidth) < left || currentWidth > right) {
continue;
}
@ -596,7 +596,6 @@ var PDFPageView = (function PDFPageViewClosure() { @@ -596,7 +596,6 @@ var PDFPageView = (function PDFPageViewClosure() {
div.className = 'page';
div.style.width = Math.floor(this.viewport.width) + 'px';
div.style.height = Math.floor(this.viewport.height) + 'px';
this.el = div; // TODO replace 'el' property usage
this.div = div;
container.appendChild(div);

Loading…
Cancel
Save