kapom-report - v0.1.2
    Preparing search index...

    Function withOpacity

    • A helper that controls opacity around a draw call — sets the GState opacity before calling draw, then always resets it back to 1, so a watermark renderer doesn't need to import GState from jspdf itself (easier to use, same purpose as the drawText facade); a value outside 0-1 is clamped by jsPDF itself.

      Parameters

      • doc: jsPDF
      • opacity: number
      • draw: () => void

      Returns void