Avena Webapp API - v0.0.1
    Preparing search index...

    Function snapshotNewest

    • Copies the newest keepMs of a buffer, plus the one point before that span so the line reaches the left edge of the plot.

      Parameters

      • data: DataPoint[]

        Points sorted by time.

      • keepMs: number

        Span to keep, measured back from the newest point, ms.

      Returns DataPoint[]

      A new array.