Merge pull request #536 from VladimirTechMan/master

Spelling correction to variable name
This commit is contained in:
Anton Lavrenov 2019-01-11 20:19:16 -05:00 committed by GitHub
commit fd2ff292e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {