Промежуточный коммит, работа над изображениями, небольшой рефакторинг попутно
This commit is contained in:
@@ -28,7 +28,7 @@ export default class DrawHelper {
|
||||
|
||||
let out = `<div class="layout" style="width: ${this.w}px; height: ${this.h}px;` +
|
||||
` position: absolute; top: ${this.fontSize*this.textShift}px; color: ${this.textColor}; font: ${font}; ${justify}` +
|
||||
` line-height: ${this.lineHeight}px;">`;
|
||||
` line-height: ${this.lineHeight}px;">`;
|
||||
|
||||
let len = lines.length;
|
||||
const lineCount = this.pageLineCount + (isScrolling ? 1 : 0);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user