better tests

This commit is contained in:
Anton Lavrenov
2020-09-17 13:25:46 -05:00
parent 42562438eb
commit 4ce6800fd9
19 changed files with 174 additions and 173 deletions

View File

@@ -167,11 +167,16 @@ export class Text extends Shape<TextConfig> {
}
_sceneFunc(context) {
var textArr = this.textArr,
textArrLen = textArr.length;
if (!this.text()) {
return;
}
var padding = this.padding(),
fontSize = this.fontSize(),
lineHeightPx = this.lineHeight() * fontSize,
textArr = this.textArr,
textArrLen = textArr.length,
verticalAlign = this.verticalAlign(),
alignY = 0,
align = this.align(),