Рефакторинг

This commit is contained in:
Book Pauk
2019-02-18 15:00:20 +07:00
parent f9e000034f
commit c7db0ec643
5 changed files with 59 additions and 57 deletions

View File

@@ -210,6 +210,8 @@ class TextPage extends Vue {
this.parsed.w = this.w;// px, ширина текста
this.parsed.font = this.font;
this.parsed.wordWrap = this.wordWrap;
this.parsed.cutEmptyParagraphs = this.cutEmptyParagraphs;
this.parsed.addEmptyParagraphs = this.addEmptyParagraphs;
let t = '';
while (this.drawHelper.measureText(t, {}) < this.w) t += 'Щ';
this.parsed.maxWordLength = t.length - 1;