From 70ff42d01788c789d41cc54a43010e3c7d6e150b Mon Sep 17 00:00:00 2001 From: VladimirTechMan Date: Fri, 11 Jan 2019 21:46:44 +0300 Subject: [PATCH] Spelling correction to variable name --- src/shapes/Text.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shapes/Text.ts b/src/shapes/Text.ts index 97d87c6e..abc2ba47 100644 --- a/src/shapes/Text.ts +++ b/src/shapes/Text.ts @@ -336,11 +336,11 @@ export class Text extends Shape { return this.textArr.push({ text: line, width: width }); } _getTextWidth(text) { - var latterSpacing = this.letterSpacing(); + var letterSpacing = this.letterSpacing(); var length = text.length; return ( getDummyContext().measureText(text).width + - (length ? latterSpacing * (length - 1) : 0) + (length ? letterSpacing * (length - 1) : 0) ); } _setTextData() {