Function getMainScopeInfluence

  • Calculates how much influence the main scope should have based on zoom level. This function now provides a simple normalized distance metric for UI animations.

    Returns a value from 0 to 1 where:

    • 1 means we're exactly at the main scope's exponent
    • 0 means we're at or beyond the threshold from the main scope's exponent

    Parameters

    • zoomExponent: number
    • mainScopeExponent: number
    • scopeExpThreshold: number

    Returns number