papi-dts
    Preparing search index...
    • Clamps a position to the visible viewport with optional padding.

      Parameters

      • position: { x: number; y: number }

        The position to clamp

      • Optionalpadding: number

        Optional padding from the viewport edges (default 0)

      Returns { x: number; y: number }

      The clamped position