pdfrx_web
    Preparing search index...

    Function clampToBoundary

    • Translate the candidate transform back inside the allowed boundary. Overscroll is expressed in document coordinates and applied to the scaled space, i.e. xZoomed -= zoom * dx.

      Parameters

      • candidate: ViewTransform

        The candidate value (ViewTransform).

      • viewSize: Size

        The viewport size.

      • documentSize: Size

        The laid-out document size.

      • adjustedBoundaryMargins: EdgeInsets

        The adjustedBoundaryMargins value (EdgeInsets).

      Returns ViewTransform

      The resulting ViewTransform.