Fix borderless FirmaEC rendering and bump to 1.2.22
This commit is contained in:
@@ -301,9 +301,11 @@ async function drawStyleFirmaEC(pdfDoc, page, sx, sy, sw, sh, { signerName, veri
|
||||
const qrY = sy + (sh - qrSize) / 2;
|
||||
page.drawImage(qrImage, { x: qrX, y: qrY, width: qrSize, height: qrSize });
|
||||
|
||||
// Vertical divider
|
||||
// Vertical divider belongs to the bordered variant only.
|
||||
const divX = qrOnRight ? qrX - 4 : sx + qrSize + 8;
|
||||
page.drawLine({ start: { x: divX, y: sy + 6 }, end: { x: divX, y: sy + sh - 6 }, thickness: 0.5, color: rgb(0.55, 0.55, 0.58) });
|
||||
if (useBorder) {
|
||||
page.drawLine({ start: { x: divX, y: sy + 6 }, end: { x: divX, y: sy + sh - 6 }, thickness: 0.5, color: rgb(0.55, 0.55, 0.58) });
|
||||
}
|
||||
|
||||
// Text column
|
||||
const textX = qrOnRight ? sx + 6 : divX + 5;
|
||||
|
||||
Reference in New Issue
Block a user