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

Function xPos

apps/OpenSign/src/components/pdf/Placeholder.jsx:588–597  ·  view source on GitHub ↗
(pos)

Source from the content-addressed store, hash-verified

586 );
587 };
588 const xPos = (pos) => {
589 const containerScale = getContainerScale(
590 props.pdfOriginalWH,
591 props.pageNumber,
592 props.containerWH
593 );
594 const resizePos = pos.xPosition;
595
596 return resizePos * containerScale; // ✅ desktop: account for Page scale
597 };
598
599 const yPos = (pos) => {
600 const containerScale = getContainerScale(

Callers 1

PlaceholderFunction · 0.70

Calls 1

getContainerScaleFunction · 0.90

Tested by

no test coverage detected