small refactoring

This commit is contained in:
Anton Lavrenov
2019-11-12 14:38:36 -05:00
parent 633de7b779
commit 680ea026d8
14 changed files with 215 additions and 1409 deletions

View File

@@ -466,7 +466,7 @@ export class Text extends Shape<TextConfig> {
}
}
// if (align === 'right') {
match = trimRight.call(match);
match = match.trimRight();
// }
this._addTextLine(match);
textWidth = Math.max(textWidth, matchWidth);