Skip to content

Commit 75945c0

Browse files
author
Ritika Mishra
committed
updated ui of fft
1 parent 8243c88 commit 75945c0

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/app/serial-plotter/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ const SerialPlotter = () => {
454454
</div>
455455
</div>
456456

457-
458-
459457
{/* Data Display */}
460458
<pre className="text-xs whitespace-pre-wrap break-words px-4 pb-4 flex-grow overflow-auto rounded-xl">
461459
{rawData}

src/components/FFT.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ const FFT = forwardRef(
133133
line.lineSpaceX(-1, 2 / dataPointCountRef.current);
134134
wglp.addLine(line);
135135
newWglPlots.push(wglp);
136-
console.log(newWglPlots)
136+
console.log(newWglPlots)
137137
linesRef.current = [line];
138-
wglPlotsref.current=[wglp];
138+
wglPlotsref.current = [wglp];
139139
setCanvasElements([canvas]);
140140
} catch (error) {
141141
console.error("Error creating WebglPlot:", error);
@@ -324,19 +324,19 @@ console.log(newWglPlots)
324324
return (
325325
<div className="flex flex-col gap-2 w-full h-full">
326326
<main
327-
className="flex flex-col flex-[1_1_0%] min-h-80 bg-highlight rounded-2xl m-4 relative"
327+
className="flex flex-col flex-[1_1_0%] min-h-70 bg-highlight rounded-2xl m-4 relative"
328328
ref={canvasContainerRef}
329329
></main>
330330

331331
{/* Flex container for side-by-side layout */}
332-
<div className="w-full flex flex-row justify-between items-center max-w-full h-[300px] gap-20">
332+
<div className="w-full flex flex-row justify-between items-center max-w-full gap-20">
333333
{/* Canvas container (left side) */}
334-
<div ref={containerRef} className="flex-1 h-full">
335-
<canvas ref={canvasRef} className="w-full h-full" />
334+
<div ref={containerRef} className="flex-1">
335+
<canvas ref={canvasRef} className="w-full" />
336336
</div>
337337

338338
{/* BandPowerGraph (right side) */}
339-
<div className="flex-1 h-full">
339+
<div className="flex-1">
340340
<BandPowerGraph fftData={fftData} samplingRate={currentSamplingRate} />
341341
</div>
342342
</div>

0 commit comments

Comments
 (0)