Make texture atlas presentation nicer for multiple pages

This commit is contained in:
Daniel Imms
2022-10-29 13:01:41 -07:00
parent c6e3cc007c
commit 0a49a5dde1
3 changed files with 8 additions and 7 deletions
@@ -109,6 +109,7 @@ export class TextureAtlas implements ITextureAtlas {
const page = this._pages[this._pages.length - 1];
// TODO: Fill the page completely
if (page.currentRow.y > Math.floor(page.canvas.height * 0.8)) {
// TODO: Clear all pages and restart if the maximum page count is reached
// TODO: Support drawing to multiple pages at once
console.log(`Add page #${this._pages.length + 1}`);
const newPage = new AtlasPage(this._document, this._config.devicePixelRatio);