Browse Source

PDF.js version 1.9.558 - See mozilla/pdf.js@f2618eb2e4db3921cc710edd90f795a8379136d3

master v1.9.558
pdfjsbot 7 years ago
parent
commit
cf9dcb2661
  1. 2
      bower.json
  2. 22
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 22
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      build/pdf.min.js
  7. 4
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 4
      lib/display/api.js
  10. 4
      lib/display/global.js
  11. 10
      lib/display/pattern_helper.js
  12. 4
      lib/pdf.js
  13. 4
      lib/pdf.worker.js
  14. 2
      package.json

2
bower.json

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

22
build/pdf.combined.js

@ -13473,8 +13473,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -13473,8 +13473,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.556';
exports.build = build = '2916ed08';
exports.version = version = '1.9.558';
exports.build = build = 'f2618eb2';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -29310,8 +29310,8 @@ exports.SVGGraphics = SVGGraphics; @@ -29310,8 +29310,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.9.556';
var pdfjsBuild = '2916ed08';
var pdfjsVersion = '1.9.558';
var pdfjsBuild = 'f2618eb2';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(98);
var pdfjsDisplayAPI = __w_pdfjs_require__(55);
@ -35173,8 +35173,8 @@ if (!_global_scope2.default.PDFJS) { @@ -35173,8 +35173,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.556';
PDFJS.build = '2916ed08';
PDFJS.version = '1.9.558';
PDFJS.build = 'f2618eb2';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -37627,7 +37627,7 @@ var TilingPattern = function TilingPatternClosure() { @@ -37627,7 +37627,7 @@ var TilingPattern = function TilingPatternClosure() {
var tmpCtx = tmpCanvas.context;
var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx);
graphics.groupLevel = owner.groupLevel;
this.setFillAndStrokeStyleToContext(tmpCtx, paintType, color);
this.setFillAndStrokeStyleToContext(graphics, paintType, color);
this.setScale(width, height, xstep, ystep);
this.transformToScale(graphics);
var tmpTranslate = [1, 0, 0, 1, -topLeft[0], -topLeft[1]];
@ -37657,17 +37657,23 @@ var TilingPattern = function TilingPatternClosure() { @@ -37657,17 +37657,23 @@ var TilingPattern = function TilingPatternClosure() {
graphics.endPath();
}
},
setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(context, paintType, color) {
setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(graphics, paintType, color) {
var context = graphics.ctx,
current = graphics.current;
switch (paintType) {
case PaintType.COLORED:
var ctx = this.ctx;
context.fillStyle = ctx.fillStyle;
context.strokeStyle = ctx.strokeStyle;
current.fillColor = ctx.fillStyle;
current.strokeColor = ctx.strokeStyle;
break;
case PaintType.UNCOLORED:
var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]);
context.fillStyle = cssColor;
context.strokeStyle = cssColor;
current.fillColor = cssColor;
current.strokeColor = cssColor;
break;
default:
throw new _util.FormatError('Unsupported paint type: ' + paintType);

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

22
build/pdf.js

@ -4203,8 +4203,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -4203,8 +4203,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.556';
exports.build = build = '2916ed08';
exports.version = version = '1.9.558';
exports.build = build = 'f2618eb2';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -7155,8 +7155,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7155,8 +7155,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.9.556';
var pdfjsBuild = '2916ed08';
var pdfjsVersion = '1.9.558';
var pdfjsBuild = 'f2618eb2';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(82);
var pdfjsDisplayAPI = __w_pdfjs_require__(48);
@ -13018,8 +13018,8 @@ if (!_global_scope2.default.PDFJS) { @@ -13018,8 +13018,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.556';
PDFJS.build = '2916ed08';
PDFJS.version = '1.9.558';
PDFJS.build = 'f2618eb2';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -15472,7 +15472,7 @@ var TilingPattern = function TilingPatternClosure() { @@ -15472,7 +15472,7 @@ var TilingPattern = function TilingPatternClosure() {
var tmpCtx = tmpCanvas.context;
var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx);
graphics.groupLevel = owner.groupLevel;
this.setFillAndStrokeStyleToContext(tmpCtx, paintType, color);
this.setFillAndStrokeStyleToContext(graphics, paintType, color);
this.setScale(width, height, xstep, ystep);
this.transformToScale(graphics);
var tmpTranslate = [1, 0, 0, 1, -topLeft[0], -topLeft[1]];
@ -15502,17 +15502,23 @@ var TilingPattern = function TilingPatternClosure() { @@ -15502,17 +15502,23 @@ var TilingPattern = function TilingPatternClosure() {
graphics.endPath();
}
},
setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(context, paintType, color) {
setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(graphics, paintType, color) {
var context = graphics.ctx,
current = graphics.current;
switch (paintType) {
case PaintType.COLORED:
var ctx = this.ctx;
context.fillStyle = ctx.fillStyle;
context.strokeStyle = ctx.strokeStyle;
current.fillColor = ctx.fillStyle;
current.strokeColor = ctx.strokeStyle;
break;
case PaintType.UNCOLORED:
var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]);
context.fillStyle = cssColor;
context.strokeStyle = cssColor;
current.fillColor = cssColor;
current.strokeColor = cssColor;
break;
default:
throw new _util.FormatError('Unsupported paint type: ' + paintType);

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

2
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

4
build/pdf.worker.js vendored

@ -24512,8 +24512,8 @@ exports.getUnicodeForGlyph = getUnicodeForGlyph; @@ -24512,8 +24512,8 @@ exports.getUnicodeForGlyph = getUnicodeForGlyph;
"use strict";
var pdfjsVersion = '1.9.556';
var pdfjsBuild = '2916ed08';
var pdfjsVersion = '1.9.558';
var pdfjsBuild = 'f2618eb2';
var pdfjsCoreWorker = __w_pdfjs_require__(62);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

4
lib/display/api.js

@ -1581,8 +1581,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -1581,8 +1581,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.556';
exports.build = build = '2916ed08';
exports.version = version = '1.9.558';
exports.build = build = 'f2618eb2';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -45,8 +45,8 @@ if (!_global_scope2.default.PDFJS) { @@ -45,8 +45,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.556';
PDFJS.build = '2916ed08';
PDFJS.version = '1.9.558';
PDFJS.build = 'f2618eb2';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

10
lib/display/pattern_helper.js

@ -319,7 +319,7 @@ var TilingPattern = function TilingPatternClosure() { @@ -319,7 +319,7 @@ var TilingPattern = function TilingPatternClosure() {
var tmpCtx = tmpCanvas.context;
var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx);
graphics.groupLevel = owner.groupLevel;
this.setFillAndStrokeStyleToContext(tmpCtx, paintType, color);
this.setFillAndStrokeStyleToContext(graphics, paintType, color);
this.setScale(width, height, xstep, ystep);
this.transformToScale(graphics);
var tmpTranslate = [1, 0, 0, 1, -topLeft[0], -topLeft[1]];
@ -349,17 +349,23 @@ var TilingPattern = function TilingPatternClosure() { @@ -349,17 +349,23 @@ var TilingPattern = function TilingPatternClosure() {
graphics.endPath();
}
},
setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(context, paintType, color) {
setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(graphics, paintType, color) {
var context = graphics.ctx,
current = graphics.current;
switch (paintType) {
case PaintType.COLORED:
var ctx = this.ctx;
context.fillStyle = ctx.fillStyle;
context.strokeStyle = ctx.strokeStyle;
current.fillColor = ctx.fillStyle;
current.strokeColor = ctx.strokeStyle;
break;
case PaintType.UNCOLORED:
var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]);
context.fillStyle = cssColor;
context.strokeStyle = cssColor;
current.fillColor = cssColor;
current.strokeColor = cssColor;
break;
default:
throw new _util.FormatError('Unsupported paint type: ' + paintType);

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.9.556';
var pdfjsBuild = '2916ed08';
var pdfjsVersion = '1.9.558';
var pdfjsBuild = 'f2618eb2';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
*/
'use strict';
var pdfjsVersion = '1.9.556';
var pdfjsBuild = '2916ed08';
var pdfjsVersion = '1.9.558';
var pdfjsBuild = 'f2618eb2';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.9.556",
"version": "1.9.558",
"main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [

Loading…
Cancel
Save