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

    Class Activity

    The activity façade. Construct from an imported activity (fromStreams); read the canonical series (timeSeries), slice it (splits / laps / range), sample it (at), and run analytics (power / powerCurve / bestEfforts / hrZones). Immutable; derived results memoize on first call.

    Index

    Accessors

    • get hasPower(): boolean

      Whether a power channel was recorded.

      Returns boolean

    • get hasTrack(): boolean

      Whether the activity carries GPS positions (a map; otherwise indoor / GPS-off).

      Returns boolean

    Methods

    • Power best efforts at the canonical durations (+ W/kg if weightKg); [] when no power.

      Parameters

      • opts: { durations?: number[]; weightKg?: number } = {}

      Returns PowerEffort[]

    • Distance best efforts — fastest time over each canonical distance window (400 m … marathon), with avg HR. Needs a time axis; [] otherwise.

      Parameters

      • Optionaldistances: number[]

      Returns DistanceEffort[]

    • Power summary (NP, IF, TSS, distribution, zones, curve) at the given FTP — undefined when no power was recorded. elapsedSeconds drives TSS.

      Parameters

      • ftp: number

      Returns PowerSummary | undefined