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

    Interface ActivityEdit

    An edit, every position a duration from the original recording's start.

    interface ActivityEdit {
        crop?: { from?: Duration; to?: Duration };
        laps?: {
            removeBoundaryAt?: readonly Duration[];
            splitAt?: readonly Duration[];
        };
        parts?: { splitAt: readonly Duration[] };
    }
    Index

    Properties

    Properties

    crop?: { from?: Duration; to?: Duration }

    Keep only this stretch. Either end may be left out.

    laps?: { removeBoundaryAt?: readonly Duration[]; splitAt?: readonly Duration[] }

    Type Declaration

    • OptionalremoveBoundaryAt?: readonly Duration[]

      The recorded lap starting at each of these (within a second) joins the lap before it.

    • OptionalsplitAt?: readonly Duration[]

      A new lap starts at each of these.

    parts?: { splitAt: readonly Duration[] }

    Split the recording into several activities: a new one starts at each of these (a run, then the walk home).