@pond-ts/fit API Reference
    Preparing search index...

    Function levelFor

    • The level to draw when one screen pixel covers metresPerPixel: the coarsest whose error stays under a pixel, or the finest when even that is too coarse. Undefined with no levels. A pixel here is a CSS pixel; on a 2× screen the error can reach two device pixels, which still looks smooth.

      Parameters

      • levels: readonly TrackLevel[]
      • metresPerPixel: number

      Returns TrackLevel | undefined