Function getCurrentUnitDefinition

  • Gets the full unit definition object for the current scope based on zoom and main scope 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.

    Returns UnitDefinition

    The full UnitDefinition object for the current scope.