From 8c5be3713ddbcf49520323f259741e365be0cdc9 Mon Sep 17 00:00:00 2001 From: enes Date: Mon, 26 Aug 2024 14:10:11 +0200 Subject: [PATCH] refactor(pdf): remove unused code --- src/utils/pdf.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/utils/pdf.ts b/src/utils/pdf.ts index 15bcba7..8716ef5 100644 --- a/src/utils/pdf.ts +++ b/src/utils/pdf.ts @@ -8,11 +8,6 @@ PDFJS.GlobalWorkerOptions.workerSrc = new URL( import.meta.url ).toString() -/** - * Scale between the PDF page's natural size and rendered size - * @constant {number} - */ -export const DEFAULT_SCALE: number = 1 /** * Defined font size used when generating a PDF. Currently it is difficult to fully * correlate font size used at the time of filling in / drawing on the PDF @@ -32,12 +27,6 @@ export const FONT_TYPE: string = 'Arial' */ export const inPx = (coordinate: number): string => `${coordinate}px` -/** - * A utility that transforms a drawing coordinate number into a CSS-compatible percentage string - * @param coordinate - */ -export const inPerc = (coordinate: number): string => `${coordinate}%` - /** * A utility that checks if a given file is of the pdf type * @param file