diff --git a/bower.json b/bower.json index adf7dd002..2e8fdaa48 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.459", + "version": "1.0.461", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 8a4303ff7..0b754bfd3 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.459'; -PDFJS.build = '9c6316f'; +PDFJS.version = '1.0.461'; +PDFJS.build = '4be90c3'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -5735,24 +5735,24 @@ ShadingIRs.Mesh = { return { type: 'Pattern', getPattern: function Mesh_getPattern(ctx, owner, shadingFill) { - var combinedScale; - // Obtain scale from matrix and current transformation matrix. + var scale; if (shadingFill) { - combinedScale = Util.singularValueDecompose2dScale( - ctx.mozCurrentTransform); + scale = Util.singularValueDecompose2dScale(ctx.mozCurrentTransform); } else { - var matrixScale = Util.singularValueDecompose2dScale(matrix); - var curMatrixScale = Util.singularValueDecompose2dScale( - owner.baseTransform); - combinedScale = [matrixScale[0] * curMatrixScale[0], - matrixScale[1] * curMatrixScale[1]]; + // Obtain scale from matrix and current transformation matrix. + scale = Util.singularValueDecompose2dScale(owner.baseTransform); + if (matrix) { + var matrixScale = Util.singularValueDecompose2dScale(matrix); + scale = [scale[0] * matrixScale[0], + scale[1] * matrixScale[1]]; + } } // Rasterizing on the main thread since sending/queue large canvases // might cause OOM. - var temporaryPatternCanvas = createMeshCanvas(bounds, combinedScale, - coords, colors, figures, shadingFill ? null : background); + var temporaryPatternCanvas = createMeshCanvas(bounds, scale, coords, + colors, figures, shadingFill ? null : background); if (!shadingFill) { ctx.setTransform.apply(ctx, owner.baseTransform); diff --git a/build/pdf.js b/build/pdf.js index c7765a07c..605377db2 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.459'; -PDFJS.build = '9c6316f'; +PDFJS.version = '1.0.461'; +PDFJS.build = '4be90c3'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -5779,24 +5779,24 @@ ShadingIRs.Mesh = { return { type: 'Pattern', getPattern: function Mesh_getPattern(ctx, owner, shadingFill) { - var combinedScale; - // Obtain scale from matrix and current transformation matrix. + var scale; if (shadingFill) { - combinedScale = Util.singularValueDecompose2dScale( - ctx.mozCurrentTransform); + scale = Util.singularValueDecompose2dScale(ctx.mozCurrentTransform); } else { - var matrixScale = Util.singularValueDecompose2dScale(matrix); - var curMatrixScale = Util.singularValueDecompose2dScale( - owner.baseTransform); - combinedScale = [matrixScale[0] * curMatrixScale[0], - matrixScale[1] * curMatrixScale[1]]; + // Obtain scale from matrix and current transformation matrix. + scale = Util.singularValueDecompose2dScale(owner.baseTransform); + if (matrix) { + var matrixScale = Util.singularValueDecompose2dScale(matrix); + scale = [scale[0] * matrixScale[0], + scale[1] * matrixScale[1]]; + } } // Rasterizing on the main thread since sending/queue large canvases // might cause OOM. - var temporaryPatternCanvas = createMeshCanvas(bounds, combinedScale, - coords, colors, figures, shadingFill ? null : background); + var temporaryPatternCanvas = createMeshCanvas(bounds, scale, coords, + colors, figures, shadingFill ? null : background); if (!shadingFill) { ctx.setTransform.apply(ctx, owner.baseTransform); diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 765fe38f6..75592fe38 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.459'; -PDFJS.build = '9c6316f'; +PDFJS.version = '1.0.461'; +PDFJS.build = '4be90c3'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 5cc8a8fe7..86f4432ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.459", + "version": "1.0.461", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",