Browse Source

PDF.js version 1.0.461

master v1.0.461
Yury Delendik 10 years ago
parent
commit
38398bf381
  1. 2
      bower.json
  2. 26
      build/pdf.combined.js
  3. 26
      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.0.459", "version": "1.0.461",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",
"pdf", "pdf",

26
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.459'; PDFJS.version = '1.0.461';
PDFJS.build = '9c6316f'; PDFJS.build = '4be90c3';
(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
@ -5735,24 +5735,24 @@ ShadingIRs.Mesh = {
return { return {
type: 'Pattern', type: 'Pattern',
getPattern: function Mesh_getPattern(ctx, owner, shadingFill) { getPattern: function Mesh_getPattern(ctx, owner, shadingFill) {
var combinedScale; var scale;
// Obtain scale from matrix and current transformation matrix.
if (shadingFill) { if (shadingFill) {
combinedScale = Util.singularValueDecompose2dScale( scale = Util.singularValueDecompose2dScale(ctx.mozCurrentTransform);
ctx.mozCurrentTransform);
} else { } else {
var matrixScale = Util.singularValueDecompose2dScale(matrix); // Obtain scale from matrix and current transformation matrix.
var curMatrixScale = Util.singularValueDecompose2dScale( scale = Util.singularValueDecompose2dScale(owner.baseTransform);
owner.baseTransform); if (matrix) {
combinedScale = [matrixScale[0] * curMatrixScale[0], var matrixScale = Util.singularValueDecompose2dScale(matrix);
matrixScale[1] * curMatrixScale[1]]; scale = [scale[0] * matrixScale[0],
scale[1] * matrixScale[1]];
}
} }
// Rasterizing on the main thread since sending/queue large canvases // Rasterizing on the main thread since sending/queue large canvases
// might cause OOM. // might cause OOM.
var temporaryPatternCanvas = createMeshCanvas(bounds, combinedScale, var temporaryPatternCanvas = createMeshCanvas(bounds, scale, coords,
coords, colors, figures, shadingFill ? null : background); colors, figures, shadingFill ? null : background);
if (!shadingFill) { if (!shadingFill) {
ctx.setTransform.apply(ctx, owner.baseTransform); ctx.setTransform.apply(ctx, owner.baseTransform);

26
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.459'; PDFJS.version = '1.0.461';
PDFJS.build = '9c6316f'; PDFJS.build = '4be90c3';
(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
@ -5779,24 +5779,24 @@ ShadingIRs.Mesh = {
return { return {
type: 'Pattern', type: 'Pattern',
getPattern: function Mesh_getPattern(ctx, owner, shadingFill) { getPattern: function Mesh_getPattern(ctx, owner, shadingFill) {
var combinedScale; var scale;
// Obtain scale from matrix and current transformation matrix.
if (shadingFill) { if (shadingFill) {
combinedScale = Util.singularValueDecompose2dScale( scale = Util.singularValueDecompose2dScale(ctx.mozCurrentTransform);
ctx.mozCurrentTransform);
} else { } else {
var matrixScale = Util.singularValueDecompose2dScale(matrix); // Obtain scale from matrix and current transformation matrix.
var curMatrixScale = Util.singularValueDecompose2dScale( scale = Util.singularValueDecompose2dScale(owner.baseTransform);
owner.baseTransform); if (matrix) {
combinedScale = [matrixScale[0] * curMatrixScale[0], var matrixScale = Util.singularValueDecompose2dScale(matrix);
matrixScale[1] * curMatrixScale[1]]; scale = [scale[0] * matrixScale[0],
scale[1] * matrixScale[1]];
}
} }
// Rasterizing on the main thread since sending/queue large canvases // Rasterizing on the main thread since sending/queue large canvases
// might cause OOM. // might cause OOM.
var temporaryPatternCanvas = createMeshCanvas(bounds, combinedScale, var temporaryPatternCanvas = createMeshCanvas(bounds, scale, coords,
coords, colors, figures, shadingFill ? null : background); colors, figures, shadingFill ? null : background);
if (!shadingFill) { if (!shadingFill) {
ctx.setTransform.apply(ctx, owner.baseTransform); ctx.setTransform.apply(ctx, owner.baseTransform);

4
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.459'; PDFJS.version = '1.0.461';
PDFJS.build = '9c6316f'; PDFJS.build = '4be90c3';
(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.0.459", "version": "1.0.461",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save