From d277bd916356103794eb61b4346ea44e71f33ea3 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Sun, 27 Dec 2015 13:38:40 +0000 Subject: [PATCH] PDF.js version 1.3.127 - See mozilla/pdf.js@ad4354c0bd60c5f2d43c3657c51e812028e3ae54 --- bower.json | 2 +- build/pdf.combined.js | 16 +++++++++------- build/pdf.js | 16 +++++++++------- build/pdf.worker.js | 4 ++-- package.json | 2 +- 5 files changed, 22 insertions(+), 18 deletions(-) diff --git a/bower.json b/bower.json index 3a4593a65..3f704a88b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.125", + "version": "1.3.127", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 5210050b4..706ee2c4c 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { typeof global !== 'undefined' ? global : this).PDFJS = {}; } -PDFJS.version = '1.3.125'; -PDFJS.build = '17780da'; +PDFJS.version = '1.3.127'; +PDFJS.build = 'ad4354c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1883,7 +1883,9 @@ var AnnotationElement = (function AnnotationElementClosure() { container.setAttribute('data-annotation-id', data.id); - data.rect = Util.normalizeRect([ + // Do *not* modify `data.rect`, since that will corrupt the annotation + // position on subsequent calls to `_createContainer` (see issue 6804). + var rect = Util.normalizeRect([ data.rect[0], page.view[3] - data.rect[1] + page.view[1], data.rect[2], @@ -1893,7 +1895,7 @@ var AnnotationElement = (function AnnotationElementClosure() { CustomStyle.setProp('transform', container, 'matrix(' + viewport.transform.join(',') + ')'); CustomStyle.setProp('transformOrigin', container, - -data.rect[0] + 'px ' + -data.rect[1] + 'px'); + -rect[0] + 'px ' + -rect[1] + 'px'); if (data.borderStyle.width > 0) { container.style.borderWidth = data.borderStyle.width + 'px'; @@ -1948,8 +1950,8 @@ var AnnotationElement = (function AnnotationElementClosure() { } } - container.style.left = data.rect[0] + 'px'; - container.style.top = data.rect[1] + 'px'; + container.style.left = rect[0] + 'px'; + container.style.top = rect[1] + 'px'; container.style.width = width + 'px'; container.style.height = height + 'px'; @@ -2235,7 +2237,7 @@ var PopupAnnotationElement = (function PopupAnnotationElementClosure() { /** * @class - * @alias PopupElement + * @alias PopupElement */ var PopupElement = (function PopupElementClosure() { var BACKGROUND_ENLIGHT = 0.7; diff --git a/build/pdf.js b/build/pdf.js index 83af82625..717bd9a2c 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { typeof global !== 'undefined' ? global : this).PDFJS = {}; } -PDFJS.version = '1.3.125'; -PDFJS.build = '17780da'; +PDFJS.version = '1.3.127'; +PDFJS.build = 'ad4354c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1883,7 +1883,9 @@ var AnnotationElement = (function AnnotationElementClosure() { container.setAttribute('data-annotation-id', data.id); - data.rect = Util.normalizeRect([ + // Do *not* modify `data.rect`, since that will corrupt the annotation + // position on subsequent calls to `_createContainer` (see issue 6804). + var rect = Util.normalizeRect([ data.rect[0], page.view[3] - data.rect[1] + page.view[1], data.rect[2], @@ -1893,7 +1895,7 @@ var AnnotationElement = (function AnnotationElementClosure() { CustomStyle.setProp('transform', container, 'matrix(' + viewport.transform.join(',') + ')'); CustomStyle.setProp('transformOrigin', container, - -data.rect[0] + 'px ' + -data.rect[1] + 'px'); + -rect[0] + 'px ' + -rect[1] + 'px'); if (data.borderStyle.width > 0) { container.style.borderWidth = data.borderStyle.width + 'px'; @@ -1948,8 +1950,8 @@ var AnnotationElement = (function AnnotationElementClosure() { } } - container.style.left = data.rect[0] + 'px'; - container.style.top = data.rect[1] + 'px'; + container.style.left = rect[0] + 'px'; + container.style.top = rect[1] + 'px'; container.style.width = width + 'px'; container.style.height = height + 'px'; @@ -2235,7 +2237,7 @@ var PopupAnnotationElement = (function PopupAnnotationElementClosure() { /** * @class - * @alias PopupElement + * @alias PopupElement */ var PopupElement = (function PopupElementClosure() { var BACKGROUND_ENLIGHT = 0.7; diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 0682419ef..9193d076a 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { typeof global !== 'undefined' ? global : this).PDFJS = {}; } -PDFJS.version = '1.3.125'; -PDFJS.build = '17780da'; +PDFJS.version = '1.3.127'; +PDFJS.build = 'ad4354c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 2cbc0876a..73fbcf435 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.125", + "version": "1.3.127", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [