Skip to content

Commit 9e68386

Browse files
committed
Code style improvement
1 parent 234f34f commit 9e68386

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

src/graph_spectrum.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
206206
analyserZoomX = analyserZoomXElem.val() / 100;
207207
GraphSpectrumPlot.setZoom(analyserZoomX, analyserZoomY);
208208
that.refresh();
209-
})
209+
}),
210210
)
211211
.dblclick(function () {
212212
$(this).val(DEFAULT_ZOOM).trigger("input");
@@ -225,14 +225,14 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
225225
GraphSpectrumPlot.setData(fftData, userSettings.spectrumType);
226226
}
227227
that.refresh();
228-
})
228+
}),
229229
)
230230
.dblclick(function () {
231231
$(this).val(DEFAULT_ZOOM).trigger("input");
232232
})
233233
.val(DEFAULT_ZOOM);
234234

235-
analyserMinPSD
235+
analyserMinPSD
236236
.on(
237237
"input",
238238
debounce(100, function () {
@@ -245,13 +245,15 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
245245
}
246246
that.refresh();
247247
}),
248-
).dblclick(function (e) {
248+
)
249+
.dblclick(function (e) {
249250
if (e.ctrlKey) {
250251
$(this).val(DEFAULT_MIN_DBM_VALUE).trigger("input");
251252
}
252-
}).val(DEFAULT_MIN_DBM_VALUE);
253+
})
254+
.val(DEFAULT_MIN_DBM_VALUE);
253255

254-
analyserMaxPSD
256+
analyserMaxPSD
255257
.on(
256258
"input",
257259
debounce(100, function () {
@@ -264,25 +266,29 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
264266
}
265267
that.refresh();
266268
}),
267-
).dblclick(function (e) {
269+
)
270+
.dblclick(function (e) {
268271
if (e.ctrlKey) {
269272
$(this).val(DEFAULT_MAX_DBM_VALUE).trigger("input");
270273
}
271-
}).val(DEFAULT_MAX_DBM_VALUE);
274+
})
275+
.val(DEFAULT_MAX_DBM_VALUE);
272276

273-
analyserLowLevelPSD
277+
analyserLowLevelPSD
274278
.on(
275279
"input",
276280
debounce(100, function () {
277281
const lowLevel = analyserLowLevelPSD.val();
278282
GraphSpectrumPlot.setLowLevelPSD(lowLevel);
279283
that.refresh();
280284
}),
281-
).dblclick(function (e) {
285+
)
286+
.dblclick(function (e) {
282287
if (e.ctrlKey) {
283288
$(this).val(analyserMinPSD.val()).trigger("input");
284289
}
285-
}).val(analyserMinPSD.val());
290+
})
291+
.val(analyserMinPSD.val());
286292

287293
// Spectrum type to show
288294
userSettings.spectrumType =

0 commit comments

Comments
 (0)