Honor borderless FirmaEC signatures
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "linkedsign-backend",
|
||||
"version": "1.2.20",
|
||||
"version": "1.2.21",
|
||||
"private": true,
|
||||
"description": "Initial backend for LinkedSign",
|
||||
"main": "src/server.js",
|
||||
|
||||
@@ -285,9 +285,16 @@ async function drawStyleFirmaEC(pdfDoc, page, sx, sy, sw, sh, { signerName, veri
|
||||
// Background
|
||||
const bgColor = useSoftBackground ? C.bgBlue : C.white;
|
||||
page.drawRectangle({ x: sx, y: sy, width: sw, height: sh, color: bgColor });
|
||||
const borderColor = useBorder ? rgb(0.15, 0.15, 0.15) : rgb(0.70, 0.70, 0.72);
|
||||
const borderWidth = useBorder ? 0.85 : 0.5;
|
||||
page.drawRectangle({ x: sx, y: sy, width: sw, height: sh, borderColor, borderWidth });
|
||||
if (useBorder) {
|
||||
page.drawRectangle({
|
||||
x: sx,
|
||||
y: sy,
|
||||
width: sw,
|
||||
height: sh,
|
||||
borderColor: rgb(0.15, 0.15, 0.15),
|
||||
borderWidth: 0.85,
|
||||
});
|
||||
}
|
||||
|
||||
// QR image
|
||||
const qrX = qrOnRight ? sx + sw - qrSize - 4 : sx + 4;
|
||||
|
||||
Reference in New Issue
Block a user