🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
fix: remoove unnecessary code
RaktimaNXGe78a3991f03a
diff --git a/apps/OpenSign/src/constant/Utils.js b/apps/OpenSign/src/constant/Utils.jsindex 67b1f9d7f..19a8662ab 100644--- a/apps/OpenSign/src/constant/Utils.js+++ b/apps/OpenSign/src/constant/Utils.js@@ -1319,11 +1319,12 @@ export const multiSignEmbed = async (let currentLine = "";for (const word of textContent.split(" ")) {+ //get text line widthconst lineWidth = font.widthOfTextAtSize(`${currentLine} ${word}`,fontSize);-+ //check text content line width is less or equal to container widthif (lineWidth <= width) {currentLine += ` ${word}`;} else {@@ -1338,13 +1339,9 @@ export const multiSignEmbed = async (// Function to break text into lines based on when user go next line on press enter buttonconst breakTextIntoLines = (textContent, width) => {const lines = [];- let currentLine = "";for (const word of textContent.split("\n")) {- const lineWidth = font.widthOfTextAtSize(- `${currentLine} ${word}`,- fontSize- );+ const lineWidth = font.widthOfTextAtSize(`${word}`, fontSize);//checking string length to container width//if string length is less then container width it means user press enter buttonif (lineWidth <= width) {