Промежуточный коммит, работа над изображениями, небольшой рефакторинг попутно

This commit is contained in:
Book Pauk
2019-02-20 15:26:54 +07:00
parent 12e0f9459b
commit ae3dc9b22c
3 changed files with 59 additions and 29 deletions

View File

@@ -216,6 +216,9 @@ class TextPage extends Vue {
while (this.drawHelper.measureText(t, {}) < this.w) t += 'Щ';
this.parsed.maxWordLength = t.length - 1;
this.parsed.measureText = this.drawHelper.measureText.bind(this.drawHelper);
this.parsed.lineHeight = this.lineHeight;
this.parsed.showImages = true;
this.parsed.imageHeightLines = 100;
}
//statusBar