Browse Source

PDF.js version 1.3.127 - See mozilla/pdf.js@ad4354c0bd60c5f2d43c3657c51e812028e3ae54

master v1.3.127
Pdf Bot 9 years ago
parent
commit
d277bd9163
  1. 2
      bower.json
  2. 14
      build/pdf.combined.js
  3. 14
      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.3.125", "version": "1.3.127",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

14
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
typeof global !== 'undefined' ? global : this).PDFJS = {}; typeof global !== 'undefined' ? global : this).PDFJS = {};
} }
PDFJS.version = '1.3.125'; PDFJS.version = '1.3.127';
PDFJS.build = '17780da'; PDFJS.build = 'ad4354c';
(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
@ -1883,7 +1883,9 @@ var AnnotationElement = (function AnnotationElementClosure() {
container.setAttribute('data-annotation-id', data.id); 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], data.rect[0],
page.view[3] - data.rect[1] + page.view[1], page.view[3] - data.rect[1] + page.view[1],
data.rect[2], data.rect[2],
@ -1893,7 +1895,7 @@ var AnnotationElement = (function AnnotationElementClosure() {
CustomStyle.setProp('transform', container, CustomStyle.setProp('transform', container,
'matrix(' + viewport.transform.join(',') + ')'); 'matrix(' + viewport.transform.join(',') + ')');
CustomStyle.setProp('transformOrigin', container, CustomStyle.setProp('transformOrigin', container,
-data.rect[0] + 'px ' + -data.rect[1] + 'px'); -rect[0] + 'px ' + -rect[1] + 'px');
if (data.borderStyle.width > 0) { if (data.borderStyle.width > 0) {
container.style.borderWidth = data.borderStyle.width + 'px'; container.style.borderWidth = data.borderStyle.width + 'px';
@ -1948,8 +1950,8 @@ var AnnotationElement = (function AnnotationElementClosure() {
} }
} }
container.style.left = data.rect[0] + 'px'; container.style.left = rect[0] + 'px';
container.style.top = data.rect[1] + 'px'; container.style.top = rect[1] + 'px';
container.style.width = width + 'px'; container.style.width = width + 'px';
container.style.height = height + 'px'; container.style.height = height + 'px';

14
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
typeof global !== 'undefined' ? global : this).PDFJS = {}; typeof global !== 'undefined' ? global : this).PDFJS = {};
} }
PDFJS.version = '1.3.125'; PDFJS.version = '1.3.127';
PDFJS.build = '17780da'; PDFJS.build = 'ad4354c';
(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
@ -1883,7 +1883,9 @@ var AnnotationElement = (function AnnotationElementClosure() {
container.setAttribute('data-annotation-id', data.id); 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], data.rect[0],
page.view[3] - data.rect[1] + page.view[1], page.view[3] - data.rect[1] + page.view[1],
data.rect[2], data.rect[2],
@ -1893,7 +1895,7 @@ var AnnotationElement = (function AnnotationElementClosure() {
CustomStyle.setProp('transform', container, CustomStyle.setProp('transform', container,
'matrix(' + viewport.transform.join(',') + ')'); 'matrix(' + viewport.transform.join(',') + ')');
CustomStyle.setProp('transformOrigin', container, CustomStyle.setProp('transformOrigin', container,
-data.rect[0] + 'px ' + -data.rect[1] + 'px'); -rect[0] + 'px ' + -rect[1] + 'px');
if (data.borderStyle.width > 0) { if (data.borderStyle.width > 0) {
container.style.borderWidth = data.borderStyle.width + 'px'; container.style.borderWidth = data.borderStyle.width + 'px';
@ -1948,8 +1950,8 @@ var AnnotationElement = (function AnnotationElementClosure() {
} }
} }
container.style.left = data.rect[0] + 'px'; container.style.left = rect[0] + 'px';
container.style.top = data.rect[1] + 'px'; container.style.top = rect[1] + 'px';
container.style.width = width + 'px'; container.style.width = width + 'px';
container.style.height = height + 'px'; container.style.height = height + 'px';

4
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
typeof global !== 'undefined' ? global : this).PDFJS = {}; typeof global !== 'undefined' ? global : this).PDFJS = {};
} }
PDFJS.version = '1.3.125'; PDFJS.version = '1.3.127';
PDFJS.build = '17780da'; PDFJS.build = 'ad4354c';
(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.3.125", "version": "1.3.127",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save