Skip to content

Commit f6d135c

Browse files
committed
Code style improvement
1 parent 4e04ee5 commit f6d135c

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
@@ -207,7 +207,7 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
207207
analyserZoomX = analyserZoomXElem.val() / 100;
208208
GraphSpectrumPlot.setZoom(analyserZoomX, analyserZoomY);
209209
that.refresh();
210-
})
210+
}),
211211
)
212212
.dblclick(function () {
213213
$(this).val(DEFAULT_ZOOM).trigger("input");
@@ -226,14 +226,14 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
226226
GraphSpectrumPlot.setData(fftData, userSettings.spectrumType);
227227
}
228228
that.refresh();
229-
})
229+
}),
230230
)
231231
.dblclick(function () {
232232
$(this).val(DEFAULT_ZOOM).trigger("input");
233233
})
234234
.val(DEFAULT_ZOOM);
235235

236-
analyserMinPSD
236+
analyserMinPSD
237237
.on(
238238
"input",
239239
debounce(100, function () {
@@ -246,13 +246,15 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
246246
}
247247
that.refresh();
248248
}),
249-
).dblclick(function (e) {
249+
)
250+
.dblclick(function (e) {
250251
if (e.ctrlKey) {
251252
$(this).val(DEFAULT_MIN_DBM_VALUE).trigger("input");
252253
}
253-
}).val(DEFAULT_MIN_DBM_VALUE);
254+
})
255+
.val(DEFAULT_MIN_DBM_VALUE);
254256

255-
analyserMaxPSD
257+
analyserMaxPSD
256258
.on(
257259
"input",
258260
debounce(100, function () {
@@ -265,25 +267,29 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
265267
}
266268
that.refresh();
267269
}),
268-
).dblclick(function (e) {
270+
)
271+
.dblclick(function (e) {
269272
if (e.ctrlKey) {
270273
$(this).val(DEFAULT_MAX_DBM_VALUE).trigger("input");
271274
}
272-
}).val(DEFAULT_MAX_DBM_VALUE);
275+
})
276+
.val(DEFAULT_MAX_DBM_VALUE);
273277

274-
analyserLowLevelPSD
278+
analyserLowLevelPSD
275279
.on(
276280
"input",
277281
debounce(100, function () {
278282
const lowLevel = analyserLowLevelPSD.val();
279283
GraphSpectrumPlot.setLowLevelPSD(lowLevel);
280284
that.refresh();
281285
}),
282-
).dblclick(function (e) {
286+
)
287+
.dblclick(function (e) {
283288
if (e.ctrlKey) {
284289
$(this).val(analyserMinPSD.val()).trigger("input");
285290
}
286-
}).val(analyserMinPSD.val());
291+
})
292+
.val(analyserMinPSD.val());
287293

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

0 commit comments

Comments
 (0)