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

    Function formatTimeTick

    • Formats a time tick with just enough decimals for its step, never as -0.

      Parameters

      • value: number

        Tick value, seconds.

      • step: number

        Tick step from timeAxisTicks, seconds.

      • unit: "s" | "ms"

        Label unit from timeAxisTicks.

      Returns string

      The number without unit, e.g. -500 (ms) or 1.5 (s).