mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Update Prettier to version 2.0
Please note that these changes were done automatically, using `gulp lint --fix`. Given that the major version number was increased, there's a fair number of (primarily whitespace) changes; please see https://prettier.io/blog/2020/03/21/2.0.0.html In order to reduce the size of these changes somewhat, this patch maintains the old "arrowParens" style for now (once mozilla-central updates Prettier we can simply choose the same formatting, assuming it will differ here).
This commit is contained in:
parent
a4dd081d7b
commit
426945b480
145 changed files with 2005 additions and 2009 deletions
|
@ -18,13 +18,13 @@ import { getLookupTableFactory } from "./core_utils.js";
|
|||
// The Metrics object contains glyph widths (in glyph space units).
|
||||
// As per PDF spec, for most fonts (Type 3 being an exception) a glyph
|
||||
// space unit corresponds to 1/1000th of text space unit.
|
||||
var getMetrics = getLookupTableFactory(function(t) {
|
||||
var getMetrics = getLookupTableFactory(function (t) {
|
||||
t["Courier"] = 600;
|
||||
t["Courier-Bold"] = 600;
|
||||
t["Courier-BoldOblique"] = 600;
|
||||
t["Courier-Oblique"] = 600;
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["Helvetica"] = getLookupTableFactory(function(t) {
|
||||
t["Helvetica"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 278;
|
||||
t["exclam"] = 278;
|
||||
t["quotedbl"] = 355;
|
||||
|
@ -342,7 +342,7 @@ var getMetrics = getLookupTableFactory(function(t) {
|
|||
t["Euro"] = 556;
|
||||
});
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["Helvetica-Bold"] = getLookupTableFactory(function(t) {
|
||||
t["Helvetica-Bold"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 278;
|
||||
t["exclam"] = 333;
|
||||
t["quotedbl"] = 474;
|
||||
|
@ -660,7 +660,7 @@ var getMetrics = getLookupTableFactory(function(t) {
|
|||
t["Euro"] = 556;
|
||||
});
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["Helvetica-BoldOblique"] = getLookupTableFactory(function(t) {
|
||||
t["Helvetica-BoldOblique"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 278;
|
||||
t["exclam"] = 333;
|
||||
t["quotedbl"] = 474;
|
||||
|
@ -978,7 +978,7 @@ var getMetrics = getLookupTableFactory(function(t) {
|
|||
t["Euro"] = 556;
|
||||
});
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["Helvetica-Oblique"] = getLookupTableFactory(function(t) {
|
||||
t["Helvetica-Oblique"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 278;
|
||||
t["exclam"] = 278;
|
||||
t["quotedbl"] = 355;
|
||||
|
@ -1296,7 +1296,7 @@ var getMetrics = getLookupTableFactory(function(t) {
|
|||
t["Euro"] = 556;
|
||||
});
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["Symbol"] = getLookupTableFactory(function(t) {
|
||||
t["Symbol"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 250;
|
||||
t["exclam"] = 333;
|
||||
t["universal"] = 713;
|
||||
|
@ -1489,7 +1489,7 @@ var getMetrics = getLookupTableFactory(function(t) {
|
|||
t["apple"] = 790;
|
||||
});
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["Times-Roman"] = getLookupTableFactory(function(t) {
|
||||
t["Times-Roman"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 250;
|
||||
t["exclam"] = 333;
|
||||
t["quotedbl"] = 408;
|
||||
|
@ -1807,7 +1807,7 @@ var getMetrics = getLookupTableFactory(function(t) {
|
|||
t["Euro"] = 500;
|
||||
});
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["Times-Bold"] = getLookupTableFactory(function(t) {
|
||||
t["Times-Bold"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 250;
|
||||
t["exclam"] = 333;
|
||||
t["quotedbl"] = 555;
|
||||
|
@ -2125,7 +2125,7 @@ var getMetrics = getLookupTableFactory(function(t) {
|
|||
t["Euro"] = 500;
|
||||
});
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["Times-BoldItalic"] = getLookupTableFactory(function(t) {
|
||||
t["Times-BoldItalic"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 250;
|
||||
t["exclam"] = 389;
|
||||
t["quotedbl"] = 555;
|
||||
|
@ -2443,7 +2443,7 @@ var getMetrics = getLookupTableFactory(function(t) {
|
|||
t["Euro"] = 500;
|
||||
});
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["Times-Italic"] = getLookupTableFactory(function(t) {
|
||||
t["Times-Italic"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 250;
|
||||
t["exclam"] = 333;
|
||||
t["quotedbl"] = 420;
|
||||
|
@ -2761,7 +2761,7 @@ var getMetrics = getLookupTableFactory(function(t) {
|
|||
t["Euro"] = 500;
|
||||
});
|
||||
// eslint-disable-next-line no-shadow
|
||||
t["ZapfDingbats"] = getLookupTableFactory(function(t) {
|
||||
t["ZapfDingbats"] = getLookupTableFactory(function (t) {
|
||||
t["space"] = 278;
|
||||
t["a1"] = 974;
|
||||
t["a2"] = 961;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue