Skip to content

Commit 16bfb43

Browse files
committed
lint
1 parent 2730044 commit 16bfb43

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

js/utils/munsell.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6712,7 +6712,7 @@ const MUNSELL = [
67126712
"#ffffff"
67136713
];
67146714

6715-
let interpColor = (hex1, hex2, p) => {
6715+
const interpColor = (hex1, hex2, p) => {
67166716
if (hex1 === undefined && hex2 === undefined) {
67176717
null;
67186718
} else if (hex1 === undefined) {
@@ -6739,7 +6739,7 @@ let interpColor = (hex1, hex2, p) => {
67396739

67406740
return createjs.Graphics.getRGB(nr, ng, nb, 1.0);
67416741
}
6742-
}
6742+
};
67436743

67446744
let getMunsellColor = (hue, value, chroma) => {
67456745
// hue (aka color) 0-100 -> 0-39
@@ -6778,7 +6778,7 @@ let getMunsellColor = (hue, value, chroma) => {
67786778
}
67796779

67806780
return interpColor(MUNSELL[h * 165 + v1 * 15 + c], MUNSELL[h * 165 + v2 * 15 + c], p);
6781-
}
6781+
};
67826782

67836783
let getcolor = (color) => {
67846784
let h1 = Math.floor(color / 2.5);
@@ -6798,7 +6798,7 @@ let getcolor = (color) => {
67986798
const v = Math.floor(COLORS40[h1][0] * p + COLORS40[h2][0] * (1 - p));
67996799
const c = Math.floor(COLORS40[h1][1] * p + COLORS40[h2][1] * (1 - p));
68006800
return [v * 10, c * 100 / 28, interpColor(COLORS40[h1][2], COLORS40[h2][2], p)];
6801-
}
6801+
};
68026802

68036803
/**
68046804
* Searches for nearest match to high chroma colors, scaled from 0-100
@@ -6822,7 +6822,7 @@ let searchColors = (r, g, b) => {
68226822
}
68236823

68246824
return nearestColor;
6825-
}
6825+
};
68266826

68276827
// /**
68286828
// * @deprecated

js/utils/platformstyle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ document.querySelector("meta[name=theme-color]").content = platformColor.header;
181181
let showButtonHighlight = (x, y, r, event, scale, stage) => {
182182
if (platform.FFOS) return {};
183183
return showMaterialHighlight(x, y, r, event, scale, stage);
184-
}
184+
};

js/utils/synthutils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,15 @@ const stringInstruments = ["piano", "guitar", "acoustic guitar", "electric guita
303303

304304
// Validate the passed on parameters in a function as per the default
305305
// parameters values
306-
let validateAndSetParams = (defaultParams, params) => {
306+
const validateAndSetParams = (defaultParams, params) => {
307307
if (defaultParams && defaultParams !== null && params && params !== undefined) {
308308
for (const key in defaultParams) {
309309
if (key in params && params[key] !== undefined) defaultParams[key] = params[key];
310310
}
311311
}
312312

313313
return defaultParams;
314-
}
314+
};
315315

316316
// This object contains mapping between instrument name and
317317
// corresponding synth object. The instrument name is the one that

0 commit comments

Comments
 (0)