Skip to content

Commit

Permalink
remove more personal prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Greenan committed Dec 11, 2024
1 parent 9e39485 commit 3e09239
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shapes/Text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ export class Text extends Shape<TextConfig> {
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
Expand Down

0 comments on commit 3e09239

Please sign in to comment.