Function getScaledBarZoomValue

Calculates the real-world length a scale bar represents on the screen. scaledZoom is the value representing how many units of the current drawing scope one physical pixel covers. Multiplying this by the pixel width of the scale bar gives its total real-world length.

  • Parameters

    • scaleBarPxWidth: number

      The width of the scale bar in physical pixels on the screen.

    • scaledZoom: ScaledZoom

      The current scaled zoom value (units of current drawing scope per physical pixel).

    Returns ScaledZoom

    The real-world length the scale bar represents, in the units of the currentScope implied by scaledZoom.