refactor(pdf): remove unused code
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 34s

This commit is contained in:
enes 2024-08-26 14:10:11 +02:00
parent ea09daa669
commit 8c5be3713d

View File

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