MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / getContainerScale

Function getContainerScale

apps/OpenSign/src/constant/Utils.js:3320–3326  ·  view source on GitHub ↗
(pdfOriginalWH, pageNumber, containerWH)

Source from the content-addressed store, hash-verified

3318}
3319//function to use calculate pdf rendering scale in the container
3320export 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
3329export const saveLanguageInLocal = (i18n) => {

Callers 15

xPosFunction · 0.90
yPosFunction · 0.90
calculateFontFunction · 0.90
WidgetsDragPreviewFunction · 0.90
DragGuideLinesLayerFunction · 0.90
posWidthFunction · 0.90
posHeightFunction · 0.90
RenderPdfFunction · 0.90
handlePointerUpFunction · 0.90
getSignerPosFunction · 0.90
handleStopFunction · 0.90
addPositionOfSignatureFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected