Function getAdjustedZoomForMainScopeChange

  • Adjusts the raw zoom level when the main scope is changed, aiming to maintain the same visual center point or numeric value representation on screen.

    Parameters

    • currentZoom: number

      The current raw zoom level.

    • oldMainMeasure: SupportedMeasures

      The previous main measure.

    • newMainMeasure: SupportedMeasures

      The newly selected main measure.

    Returns number

    The adjusted raw zoom level.