(pdfOriginalWH, pageNumber, containerWH)
| 3318 | } |
| 3319 | //function to use calculate pdf rendering scale in the container |
| 3320 | export const getContainerScale = (pdfOriginalWH, pageNumber, containerWH) => { |
| 3321 | const getPdfPageWidth = pdfOriginalWH.find( |
| 3322 | (data) => data.pageNumber === pageNumber |
| 3323 | ); |
| 3324 | const containerScale = containerWH?.width / getPdfPageWidth?.width || 1; |
| 3325 | return containerScale; |
| 3326 | }; |
| 3327 | |
| 3328 | //function to get current laguage and set it in local |
| 3329 | export const saveLanguageInLocal = (i18n) => { |
no outgoing calls
no test coverage detected