• This function calculates a direction, based on an input parameter 'direction'.

    Parameters

    • direction: string | number

      A number or string input that represents the initial direction value. This is then processed to calculate the final direction.

    Returns string

    direction - The calculated direction value in form of a string. It can be either 'max' or 'min'.

Generated using TypeDoc