refactor(pdf): remove unused code
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 34s
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 34s
This commit is contained in:
parent
ea09daa669
commit
8c5be3713d
@ -8,11 +8,6 @@ PDFJS.GlobalWorkerOptions.workerSrc = new URL(
|
|||||||
import.meta.url
|
import.meta.url
|
||||||
).toString()
|
).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
|
* 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
|
* 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`
|
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
|
* A utility that checks if a given file is of the pdf type
|
||||||
* @param file
|
* @param file
|
||||||
|
Loading…
Reference in New Issue
Block a user