Skip to content

Commit 6b580c6

Browse files
committed
Resolved code issues
1 parent 1647d06 commit 6b580c6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/graph_imported_curves.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function ImportedCurves(curvesChanged) {
99

1010
this.curvesCount = function() {
1111
return this._curvesData.length;
12-
}
12+
};
1313

1414
this.importCurvesFromCSV = function(files) {
1515
let importsLeft = maxImportCount - this._curvesData.length;
@@ -71,5 +71,5 @@ export function ImportedCurves(curvesChanged) {
7171
this.minY = Number.MAX_VALUE;
7272
this.maxY = -Number.MAX_VALUE;
7373
curvesChanged();
74-
}
74+
};
7575
}

src/graph_spectrum_plot.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const GraphSpectrumPlot = window.GraphSpectrumPlot || {
6565
"DeepPink",
6666
"DarkCyan",
6767
"Chocolate",
68-
]
68+
],
6969
};
7070

7171
GraphSpectrumPlot.initialize = function (canvas, sysConfig) {
@@ -376,7 +376,6 @@ GraphSpectrumPlot._drawPowerSpectralDensityGraph = function (canvasCtx) {
376376
canvasCtx.lineWidth = 1;
377377
canvasCtx.strokeStyle = this.curvesColors[spectrumNum];
378378
canvasCtx.moveTo(0, HEIGHT);
379-
const filterPointsCount = 100;
380379
for (const point of curvesPonts) {
381380
canvasCtx.lineTo(point.x * scaleX, HEIGHT - (point.y - minY) * scaleY);
382381
}
@@ -454,7 +453,7 @@ GraphSpectrumPlot._drawLegend = function (canvasCtx, WIDTH, HEIGHT, importedCurv
454453
canvasCtx.strokeStyle = this.curvesColors[row];
455454
canvasCtx.strokeText(curvesName, legendPosX + padding, Y);
456455
}
457-
}
456+
};
458457

459458
GraphSpectrumPlot.getPSDbyFreq = function(frequency) {
460459
let freqIndex = Math.round(2 * frequency / this._fftData.blackBoxRate * (this._fftData.fftOutput.length - 1) );

0 commit comments

Comments
 (0)