From 3e092392cca1200b6b5e837e473a4124ede32718 Mon Sep 17 00:00:00 2001 From: Adam Greenan Date: Wed, 11 Dec 2024 13:39:27 +0000 Subject: [PATCH] remove more personal prettier changes --- src/shapes/Text.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shapes/Text.ts b/src/shapes/Text.ts index 662fa5f2..ba8c2353 100644 --- a/src/shapes/Text.ts +++ b/src/shapes/Text.ts @@ -309,7 +309,8 @@ export class Text extends Shape { context.moveTo(lineTranslateX, translateY + lineTranslateY + yOffset); spacesNumber = text.split(' ').length - 1; oneWord = spacesNumber === 0; - lineWidth = align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width; + lineWidth = + align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width; context.lineTo( lineTranslateX + Math.round(lineWidth), translateY + lineTranslateY + yOffset