feat: Enable text input signature feature

This commit is contained in:
RaktimaNXG
2023-12-29 16:36:49 +05:30
parent 751c7b5787
commit 852a3dc8bb
6 changed files with 242 additions and 103 deletions
@@ -657,10 +657,10 @@ function SignYourSelf() {
};
//function for save button to save signature or image url
const saveSign = (isDefaultSign) => {
const saveSign = (isDefaultSign, width, height) => {
const isTypeText = width && height ? true : false;
const signatureImg = isDefaultSign ? defaultSignImg : signature;
let imgWH = { width: "", height: "" };
let imgWH = { width: width ? width : "", height: height ? height : "" };
setIsSignPad(false);
setIsImageSelect(false);
setImage();
@@ -681,7 +681,8 @@ function SignYourSelf() {
signKey,
signatureImg,
imgWH,
isDefaultSign
isDefaultSign,
isTypeText
);
setXyPostion(getUpdatePosition);