chore: fix eslint errors

This commit is contained in:
Ephraim Atta-Duncan
2023-09-06 11:55:02 +00:00
committed by Mythie
parent 73a9213088
commit e5871da7b5

View File

@ -50,10 +50,10 @@ export const insertFieldInPDF = async (pdf: PDFDocument, field: FieldWithSignatu
let imageWidth = image.width; let imageWidth = image.width;
let imageHeight = image.height; let imageHeight = image.height;
const initialDimensions = { // const initialDimensions = {
width: imageWidth, // width: imageWidth,
height: imageHeight, // height: imageHeight,
}; // };
const scalingFactor = Math.min(fieldWidth / imageWidth, fieldHeight / imageHeight, 1); const scalingFactor = Math.min(fieldWidth / imageWidth, fieldHeight / imageHeight, 1);
@ -76,10 +76,10 @@ export const insertFieldInPDF = async (pdf: PDFDocument, field: FieldWithSignatu
let textWidth = font.widthOfTextAtSize(field.customText, fontSize); let textWidth = font.widthOfTextAtSize(field.customText, fontSize);
const textHeight = font.heightAtSize(fontSize); const textHeight = font.heightAtSize(fontSize);
const initialDimensions = { // const initialDimensions = {
width: textWidth, // width: textWidth,
height: textHeight, // height: textHeight,
}; // };
const scalingFactor = Math.min(fieldWidth / textWidth, fieldHeight / textHeight, 1); const scalingFactor = Math.min(fieldWidth / textWidth, fieldHeight / textHeight, 1);