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.
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.