Работа над избавлением от канваса в сторону верстки дивами

This commit is contained in:
Book Pauk
2019-01-24 16:16:04 +07:00
parent 132956eabd
commit 6cecc8d8c8
3 changed files with 73 additions and 89 deletions

View File

@@ -67,5 +67,11 @@ export default class DrawHelper {
}
}
fillText(text, x, y, font) {
/*this.context1.textAlign = 'left';
this.context2.textAlign = 'left';
this.context1.textBaseline = 'bottom';
this.context2.textBaseline = 'bottom';*/
return `<div style="position: absolute; left: ${x}px; top: ${y}px; font: ${font}">${text}</div>`;
}
}