Skip to content

Commit bade57d

Browse files
demvladhaslinghuis
andauthored
Code style improvement
Co-authored-by: Mark Haslinghuis <[email protected]>
1 parent 4606c37 commit bade57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph_spectrum_plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ GraphSpectrumPlot._drawLegend = function (canvasCtx, WIDTH, HEIGHT, importedCurv
452452
canvasCtx.textAlign = "left";
453453
for (let row = 0; row < spectrumCount; row++) {
454454
const curvesName = importedCurves[row].name;
455-
const Y = legendPosY + padding + rowHeight * row + rowHeight/2; // Center text vertically
455+
const Y = legendPosY + padding + rowHeight * row + rowHeight / 2; // Center text vertically
456456
canvasCtx.strokeStyle = this.curvesColors[row];
457457
canvasCtx.strokeText(curvesName, legendPosX + padding, Y);
458458
}

0 commit comments

Comments
 (0)