1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fix errors reported by the comma-spacing ESLint rule

http://eslint.org/docs/rules/comma-spacing
This commit is contained in:
Jonas Jenwald 2016-12-10 19:58:36 +01:00
parent 66d2637b3f
commit ad915f8af1
9 changed files with 36 additions and 36 deletions

View file

@ -435,7 +435,7 @@ var Annotation = (function AnnotationClosure() {
// Properties
]);
var bbox = appearanceDict.getArray('BBox') || [0, 0, 1, 1];
var matrix = appearanceDict.getArray('Matrix') || [1, 0, 0, 1, 0 ,0];
var matrix = appearanceDict.getArray('Matrix') || [1, 0, 0, 1, 0, 0];
var transform = getTransformMatrix(data.rect, bbox, matrix);
var self = this;

View file

@ -609,22 +609,22 @@ var calculateSHA512 = (function calculateSHA512Closure() {
var result;
if (!mode384) {
result = new Uint8Array(64);
h0.copyTo(result,0);
h1.copyTo(result,8);
h2.copyTo(result,16);
h3.copyTo(result,24);
h4.copyTo(result,32);
h5.copyTo(result,40);
h6.copyTo(result,48);
h7.copyTo(result,56);
h0.copyTo(result, 0);
h1.copyTo(result, 8);
h2.copyTo(result, 16);
h3.copyTo(result, 24);
h4.copyTo(result, 32);
h5.copyTo(result, 40);
h6.copyTo(result, 48);
h7.copyTo(result, 56);
} else {
result = new Uint8Array(48);
h0.copyTo(result,0);
h1.copyTo(result,8);
h2.copyTo(result,16);
h3.copyTo(result,24);
h4.copyTo(result,32);
h5.copyTo(result,40);
h0.copyTo(result, 0);
h1.copyTo(result, 8);
h2.copyTo(result, 16);
h3.copyTo(result, 24);
h4.copyTo(result, 32);
h5.copyTo(result, 40);
}
return result;
}

View file

@ -841,7 +841,7 @@ var SVGGraphics = (function SVGGraphicsClosure() {
var height = args[j++];
var xw = x + width;
var yh = y + height;
d.push('M', pf(x), pf(y), 'L', pf(xw) , pf(y), 'L', pf(xw), pf(yh),
d.push('M', pf(x), pf(y), 'L', pf(xw), pf(y), 'L', pf(xw), pf(yh),
'L', pf(x), pf(yh), 'Z');
break;
case OPS.moveTo:
@ -852,7 +852,7 @@ var SVGGraphics = (function SVGGraphicsClosure() {
case OPS.lineTo:
x = args[j++];
y = args[j++];
d.push('L', pf(x) , pf(y));
d.push('L', pf(x), pf(y));
break;
case OPS.curveTo:
x = args[j + 4];

View file

@ -186,7 +186,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
if (!smaskCache) {
initSmaskGL();
}
var cache = smaskCache,canvas = cache.canvas, gl = cache.gl;
var cache = smaskCache, canvas = cache.canvas, gl = cache.gl;
canvas.width = width;
canvas.height = height;
gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight);

View file

@ -148,7 +148,7 @@ var CFFDictDataMap = {
},
'7': {
name: 'FontMatrix',
operand: [0.001, 0, 0, 0.001, 0 , 0]
operand: [0.001, 0, 0, 0.001, 0, 0]
},
'8': {
name: 'StrokeWidth',