From 6196004b51a6850909c154f5402ff4858eab479a Mon Sep 17 00:00:00 2001 From: grothedev Date: Fri, 29 May 2026 21:49:20 -0400 Subject: mv web stuff to root project dir --- web-timeplot/src/plot/plot-buffer.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 web-timeplot/src/plot/plot-buffer.js (limited to 'web-timeplot/src/plot/plot-buffer.js') diff --git a/web-timeplot/src/plot/plot-buffer.js b/web-timeplot/src/plot/plot-buffer.js deleted file mode 100644 index b13cdd8..0000000 --- a/web-timeplot/src/plot/plot-buffer.js +++ /dev/null @@ -1,22 +0,0 @@ -export class PlotBuffer { - constructor(maxPoints = 1600) { - this.maxPoints = maxPoints; - this.points = []; - } - - addPoint(point) { - this.points.push(point); - if (this.points.length > this.maxPoints) { - this.points.splice(0, this.points.length - this.maxPoints); - } - } - - clear() { - this.points = []; - } - - getVisiblePoints(currentPlotTimeMs, windowDurationMs) { - const minTime = currentPlotTimeMs - windowDurationMs; - return this.points.filter((point) => point.timeMs >= minTime && point.timeMs <= currentPlotTimeMs); - } -} -- cgit v1.2.3