Function calculateScope

  • Calculates the appropriate scope measure (unit prefix) based on the current zoom level, considering the main scope and threshold settings.

    Parameters

    • zoom: number

      The current raw zoom level.

    • scopeExpThreshold: number

      The exponent difference threshold for main scope influence.

    • mainMeasure: SupportedMeasures

      The designated main measure acting as a gravity well.

    Returns SupportedMeasures

    The calculated scope measure (unit prefix).