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

Function posWidth

apps/OpenSign/src/components/pdf/RenderPdf.jsx:321–330  ·  view source on GitHub ↗
(pos, pageNum)

Source from the content-addressed store, hash-verified

319
320 // handle signature block width and height according to screen
321 const posWidth = (pos, pageNum) => {
322 const containerScale = getContainerScale(
323 props.pdfOriginalWH,
324 pageNum || props.pageNumber,
325 props.containerWH
326 );
327 const defaultWidth = defaultWidthHeight(pos.type).width;
328 const posWidth = pos.Width ? pos.Width : defaultWidth;
329 return posWidth * containerScale;
330 };
331 const posHeight = (pos, pageNum) => {
332 const containerScale = getContainerScale(
333 props.pdfOriginalWH,

Callers 1

pagePosWidthFunction · 0.85

Calls 2

getContainerScaleFunction · 0.90
defaultWidthHeightFunction · 0.90

Tested by

no test coverage detected