@kne/react-pdf-sign 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -682,13 +682,15 @@ const computedPDFSignLocation = ({
|
|
|
682
682
|
}) => {
|
|
683
683
|
const scaleX = size.width / size.originalWidth;
|
|
684
684
|
const scaleY = size.height / size.originalHeight;
|
|
685
|
-
const pdfX = Math.round(location.size.x
|
|
686
|
-
const pdfY = Math.round(size.originalHeight - location.size.y
|
|
687
|
-
const signWidth = Math.round(location.size.width
|
|
688
|
-
const signHeight = Math.round(location.size.height
|
|
685
|
+
const pdfX = Math.round(location.size.x);
|
|
686
|
+
const pdfY = Math.round(size.originalHeight - location.size.y);
|
|
687
|
+
const signWidth = Math.round(location.size.width);
|
|
688
|
+
const signHeight = Math.round(location.size.height);
|
|
689
689
|
return {
|
|
690
690
|
scaleX,
|
|
691
691
|
scaleY,
|
|
692
|
+
pageWidth: size.originalWidth,
|
|
693
|
+
pageHeight: size.originalHeight,
|
|
692
694
|
pdfX,
|
|
693
695
|
pdfY,
|
|
694
696
|
width: signWidth,
|
|
@@ -4134,9 +4136,10 @@ const PDFSignMultiInner = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
4134
4136
|
});
|
|
4135
4137
|
}
|
|
4136
4138
|
}));
|
|
4139
|
+
const scale = size.width / size.originalWidth;
|
|
4137
4140
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
4138
4141
|
style: {
|
|
4139
|
-
transform: "scale(" +
|
|
4142
|
+
transform: "scale(" + scale + ")",
|
|
4140
4143
|
transformOrigin: '0 0'
|
|
4141
4144
|
},
|
|
4142
4145
|
children: /*#__PURE__*/jsxRuntime.jsx(LocationGroup, {
|
|
@@ -4408,6 +4411,7 @@ exports.PDFSign = PDFSign;
|
|
|
4408
4411
|
exports.PDFSignMulti = PDFSignMulti;
|
|
4409
4412
|
exports.PDFViewer = PDFViewer;
|
|
4410
4413
|
exports["default"] = PDFSign;
|
|
4414
|
+
exports.signMultiPdfFile = signMultiPdfFile;
|
|
4411
4415
|
exports.signPdfFile = signPdfFile;
|
|
4412
4416
|
exports.useSignature = useSignature;
|
|
4413
4417
|
//# sourceMappingURL=index.js.map
|