Skip to content

Commit 126ac68

Browse files
committed
Code style improvement
1 parent d434c42 commit 126ac68

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/graph_spectrum.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
1616
ANALYSER_LARGE_HEIGHT_MARGIN = 20,
1717
ANALYSER_LARGE_WIDTH_MARGIN = 20;
1818

19-
let that = this,
20-
analyserZoomX = 1.0 /* 100% */,
21-
analyserZoomY = 1.0 /* 100% */,
22-
dataReload = false,
23-
fftData = null,
24-
prefs = new PrefStorage();
25-
const dataBuffer = {
19+
const that = this,
20+
dataBuffer = {
2621
fieldIndex: 0,
2722
curve: null,
2823
fieldName: null,
29-
};
24+
},
25+
prefs = new PrefStorage();
26+
27+
let analyserZoomX = 1.0 /* 100% */,
28+
analyserZoomY = 1.0 /* 100% */,
29+
dataReload = false,
30+
fftData = null;
3031

3132
try {
3233
let isFullscreen = false;
@@ -62,7 +63,7 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
6263
return GraphSpectrumCalc.setOutTime(time);
6364
};
6465

65-
let getSize = function () {
66+
const getSize = function () {
6667
if (isFullscreen) {
6768
return {
6869
height: canvas.clientHeight - ANALYSER_LARGE_HEIGHT_MARGIN,

0 commit comments

Comments
 (0)