Browse Source

PDF.js version 1.3.146 - See mozilla/pdf.js@8ed369211af8c077f744b0e79b640b795a0fba43

master v1.3.146
Pdf Bot 9 years ago
parent
commit
54edbf6228
  1. 2
      bower.json
  2. 52
      build/pdf.combined.js
  3. 33
      build/pdf.js
  4. 23
      build/pdf.worker.js
  5. 2
      package.json
  6. 6
      web/pdf_viewer.css

2
bower.json

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

52
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.144'; PDFJS.version = '1.3.146';
PDFJS.build = 'd956177'; PDFJS.build = '8ed3692';
(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
@ -15569,6 +15569,9 @@ AnnotationElementFactory.prototype =
case AnnotationType.UNDERLINE: case AnnotationType.UNDERLINE:
return new UnderlineAnnotationElement(parameters); return new UnderlineAnnotationElement(parameters);
case AnnotationType.SQUIGGLY:
return new SquigglyAnnotationElement(parameters);
case AnnotationType.STRIKEOUT: case AnnotationType.STRIKEOUT:
return new StrikeOutAnnotationElement(parameters); return new StrikeOutAnnotationElement(parameters);
@ -16127,6 +16130,32 @@ var UnderlineAnnotationElement = (
return UnderlineAnnotationElement; return UnderlineAnnotationElement;
})(); })();
/**
* @class
* @alias SquigglyAnnotationElement
*/
var SquigglyAnnotationElement = (function SquigglyAnnotationElementClosure() {
function SquigglyAnnotationElement(parameters) {
AnnotationElement.call(this, parameters);
}
Util.inherit(SquigglyAnnotationElement, AnnotationElement, {
/**
* Render the squiggly annotation's HTML element in the empty container.
*
* @public
* @memberof SquigglyAnnotationElement
* @returns {HTMLSectionElement}
*/
render: function SquigglyAnnotationElement_render() {
this.container.className = 'squigglyAnnotation';
return this.container;
}
});
return SquigglyAnnotationElement;
})();
/** /**
* @class * @class
* @alias StrikeOutAnnotationElement * @alias StrikeOutAnnotationElement
@ -46638,6 +46667,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
case 'Underline': case 'Underline':
return new UnderlineAnnotation(parameters); return new UnderlineAnnotation(parameters);
case 'Squiggly':
return new SquigglyAnnotation(parameters);
case 'StrikeOut': case 'StrikeOut':
return new StrikeOutAnnotation(parameters); return new StrikeOutAnnotation(parameters);
@ -47347,6 +47379,22 @@ var UnderlineAnnotation = (function UnderlineAnnotationClosure() {
return UnderlineAnnotation; return UnderlineAnnotation;
})(); })();
var SquigglyAnnotation = (function SquigglyAnnotationClosure() {
function SquigglyAnnotation(parameters) {
Annotation.call(this, parameters);
this.data.annotationType = AnnotationType.SQUIGGLY;
this.data.hasHtml = true;
// PDF viewers completely ignore any border styles.
this.data.borderStyle.setWidth(0);
}
Util.inherit(SquigglyAnnotation, Annotation, {});
return SquigglyAnnotation;
})();
var StrikeOutAnnotation = (function StrikeOutAnnotationClosure() { var StrikeOutAnnotation = (function StrikeOutAnnotationClosure() {
function StrikeOutAnnotation(parameters) { function StrikeOutAnnotation(parameters) {
Annotation.call(this, parameters); Annotation.call(this, parameters);

33
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.144'; PDFJS.version = '1.3.146';
PDFJS.build = 'd956177'; PDFJS.build = '8ed3692';
(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
@ -1849,6 +1849,9 @@ AnnotationElementFactory.prototype =
case AnnotationType.UNDERLINE: case AnnotationType.UNDERLINE:
return new UnderlineAnnotationElement(parameters); return new UnderlineAnnotationElement(parameters);
case AnnotationType.SQUIGGLY:
return new SquigglyAnnotationElement(parameters);
case AnnotationType.STRIKEOUT: case AnnotationType.STRIKEOUT:
return new StrikeOutAnnotationElement(parameters); return new StrikeOutAnnotationElement(parameters);
@ -2407,6 +2410,32 @@ var UnderlineAnnotationElement = (
return UnderlineAnnotationElement; return UnderlineAnnotationElement;
})(); })();
/**
* @class
* @alias SquigglyAnnotationElement
*/
var SquigglyAnnotationElement = (function SquigglyAnnotationElementClosure() {
function SquigglyAnnotationElement(parameters) {
AnnotationElement.call(this, parameters);
}
Util.inherit(SquigglyAnnotationElement, AnnotationElement, {
/**
* Render the squiggly annotation's HTML element in the empty container.
*
* @public
* @memberof SquigglyAnnotationElement
* @returns {HTMLSectionElement}
*/
render: function SquigglyAnnotationElement_render() {
this.container.className = 'squigglyAnnotation';
return this.container;
}
});
return SquigglyAnnotationElement;
})();
/** /**
* @class * @class
* @alias StrikeOutAnnotationElement * @alias StrikeOutAnnotationElement

23
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.144'; PDFJS.version = '1.3.146';
PDFJS.build = 'd956177'; PDFJS.build = '8ed3692';
(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
@ -38885,6 +38885,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
case 'Underline': case 'Underline':
return new UnderlineAnnotation(parameters); return new UnderlineAnnotation(parameters);
case 'Squiggly':
return new SquigglyAnnotation(parameters);
case 'StrikeOut': case 'StrikeOut':
return new StrikeOutAnnotation(parameters); return new StrikeOutAnnotation(parameters);
@ -39594,6 +39597,22 @@ var UnderlineAnnotation = (function UnderlineAnnotationClosure() {
return UnderlineAnnotation; return UnderlineAnnotation;
})(); })();
var SquigglyAnnotation = (function SquigglyAnnotationClosure() {
function SquigglyAnnotation(parameters) {
Annotation.call(this, parameters);
this.data.annotationType = AnnotationType.SQUIGGLY;
this.data.hasHtml = true;
// PDF viewers completely ignore any border styles.
this.data.borderStyle.setWidth(0);
}
Util.inherit(SquigglyAnnotation, Annotation, {});
return SquigglyAnnotation;
})();
var StrikeOutAnnotation = (function StrikeOutAnnotationClosure() { var StrikeOutAnnotation = (function StrikeOutAnnotationClosure() {
function StrikeOutAnnotation(parameters) { function StrikeOutAnnotation(parameters) {
Annotation.call(this, parameters); Annotation.call(this, parameters);

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.3.144", "version": "1.3.146",
"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": [

6
web/pdf_viewer.css

@ -138,10 +138,8 @@
padding-top: 0.2em; padding-top: 0.2em;
} }
.annotationLayer .underlineAnnotation { .annotationLayer .underlineAnnotation,
cursor: pointer; .annotationLayer .squigglyAnnotation,
}
.annotationLayer .strikeoutAnnotation { .annotationLayer .strikeoutAnnotation {
cursor: pointer; cursor: pointer;
} }

Loading…
Cancel
Save