Merge pull request #8474 from Snuffleupagus/ESLint-object-styles-src-core
Fix inconsistent spacing and trailing commas in objects in `src/core/` files, so we can enable the `comma-dangle` and `object-curly-spacing` ESLint rules later on
This commit is contained in:
commit
a3fae906a6
@ -111,7 +111,7 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
|
|||||||
}
|
}
|
||||||
return new Annotation(parameters);
|
return new Annotation(parameters);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
var Annotation = (function AnnotationClosure() {
|
var Annotation = (function AnnotationClosure() {
|
||||||
@ -435,7 +435,7 @@ var Annotation = (function AnnotationClosure() {
|
|||||||
return opList;
|
return opList;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return Annotation;
|
return Annotation;
|
||||||
@ -573,7 +573,7 @@ var AnnotationBorderStyle = (function AnnotationBorderStyleClosure() {
|
|||||||
if (radius === (radius | 0)) {
|
if (radius === (radius | 0)) {
|
||||||
this.verticalCornerRadius = radius;
|
this.verticalCornerRadius = radius;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return AnnotationBorderStyle;
|
return AnnotationBorderStyle;
|
||||||
@ -736,7 +736,7 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
|
|||||||
}).then(function () {
|
}).then(function () {
|
||||||
return operatorList;
|
return operatorList;
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return TextWidgetAnnotation;
|
return TextWidgetAnnotation;
|
||||||
@ -806,7 +806,7 @@ var ButtonWidgetAnnotation = (function ButtonWidgetAnnotationClosure() {
|
|||||||
renderForms);
|
renderForms);
|
||||||
}
|
}
|
||||||
return Promise.resolve(operatorList);
|
return Promise.resolve(operatorList);
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return ButtonWidgetAnnotation;
|
return ButtonWidgetAnnotation;
|
||||||
@ -867,7 +867,7 @@ var ChoiceWidgetAnnotation = (function ChoiceWidgetAnnotationClosure() {
|
|||||||
|
|
||||||
return Annotation.prototype.getOperatorList.call(this, evaluator, task,
|
return Annotation.prototype.getOperatorList.call(this, evaluator, task,
|
||||||
renderForms);
|
renderForms);
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return ChoiceWidgetAnnotation;
|
return ChoiceWidgetAnnotation;
|
||||||
|
|||||||
@ -24,53 +24,53 @@
|
|||||||
var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
|
var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
|
||||||
// Table C-2
|
// Table C-2
|
||||||
var QeTable = [
|
var QeTable = [
|
||||||
{qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
|
{ qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1, },
|
||||||
{qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
|
{ qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0, },
|
||||||
{qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
|
{ qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0, },
|
||||||
{qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
|
{ qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0, },
|
||||||
{qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
|
{ qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0, },
|
||||||
{qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
|
{ qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0, },
|
||||||
{qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
|
{ qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1, },
|
||||||
{qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
|
{ qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0, },
|
||||||
{qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
|
{ qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0, },
|
||||||
{qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
|
{ qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0, },
|
||||||
{qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
|
{ qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0, },
|
||||||
{qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
|
{ qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0, },
|
||||||
{qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
|
{ qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0, },
|
||||||
{qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
|
{ qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0, },
|
||||||
{qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
|
{ qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1, },
|
||||||
{qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
|
{ qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0, },
|
||||||
{qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
|
{ qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0, },
|
||||||
{qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
|
{ qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0, },
|
||||||
{qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
|
{ qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0, },
|
||||||
{qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
|
{ qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0, },
|
||||||
{qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
|
{ qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0, },
|
||||||
{qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
|
{ qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0, },
|
||||||
{qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
|
{ qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0, },
|
||||||
{qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
|
{ qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0, },
|
||||||
{qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
|
{ qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0, },
|
||||||
{qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
|
{ qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0, },
|
||||||
{qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
|
{ qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0, },
|
||||||
{qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
|
{ qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0, },
|
||||||
{qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
|
{ qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0, },
|
||||||
{qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
|
{ qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0, },
|
||||||
{qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
|
{ qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0, },
|
||||||
{qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
|
{ qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0, },
|
||||||
{qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
|
{ qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0, },
|
||||||
{qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
|
{ qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0, },
|
||||||
{qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
|
{ qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0, },
|
||||||
{qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
|
{ qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0, },
|
||||||
{qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
|
{ qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0, },
|
||||||
{qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
|
{ qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0, },
|
||||||
{qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
|
{ qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0, },
|
||||||
{qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
|
{ qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0, },
|
||||||
{qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
|
{ qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0, },
|
||||||
{qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
|
{ qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0, },
|
||||||
{qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
|
{ qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0, },
|
||||||
{qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
|
{ qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0, },
|
||||||
{qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
|
{ qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0, },
|
||||||
{qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
|
{ qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0, },
|
||||||
{qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
|
{ qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0, }
|
||||||
];
|
];
|
||||||
|
|
||||||
// C.3.5 Initialisation of the decoder (INITDEC)
|
// C.3.5 Initialisation of the decoder (INITDEC)
|
||||||
@ -174,7 +174,7 @@ var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
|
|||||||
|
|
||||||
contexts[pos] = cx_index << 1 | cx_mps;
|
contexts[pos] = cx_index << 1 | cx_mps;
|
||||||
return d;
|
return d;
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return ArithmeticDecoder;
|
return ArithmeticDecoder;
|
||||||
|
|||||||
@ -105,7 +105,7 @@ function reverseValues(arr, start, end) {
|
|||||||
function createBidiText(str, isLTR, vertical) {
|
function createBidiText(str, isLTR, vertical) {
|
||||||
return {
|
return {
|
||||||
str,
|
str,
|
||||||
dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'))
|
dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl')),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -100,97 +100,97 @@ var CFFStandardStrings = [
|
|||||||
var CFFParser = (function CFFParserClosure() {
|
var CFFParser = (function CFFParserClosure() {
|
||||||
var CharstringValidationData = [
|
var CharstringValidationData = [
|
||||||
null,
|
null,
|
||||||
{ id: 'hstem', min: 2, stackClearing: true, stem: true },
|
{ id: 'hstem', min: 2, stackClearing: true, stem: true, },
|
||||||
null,
|
null,
|
||||||
{ id: 'vstem', min: 2, stackClearing: true, stem: true },
|
{ id: 'vstem', min: 2, stackClearing: true, stem: true, },
|
||||||
{ id: 'vmoveto', min: 1, stackClearing: true },
|
{ id: 'vmoveto', min: 1, stackClearing: true, },
|
||||||
{ id: 'rlineto', min: 2, resetStack: true },
|
{ id: 'rlineto', min: 2, resetStack: true, },
|
||||||
{ id: 'hlineto', min | |||||||