Rename to pageLayoutVersion

This commit is contained in:
Anthony Kim
2026-07-09 11:32:23 -07:00
parent 64ecce4f25
commit 46556eb6cf
3 changed files with 13 additions and 13 deletions
+6 -6
View File
@@ -132,8 +132,8 @@ export class TextureAtlas implements ITextureAtlas {
}
}
private _pagesVersion = 0;
public get pagesVersion(): number { return this._pagesVersion; }
private _pageLayoutVersion = 0;
public get pageLayoutVersion(): number { return this._pageLayoutVersion; }
public clearTexture(): void {
if (this._pages[0].currentRow.x === 0 && this._pages[0].currentRow.y === 0) {
@@ -202,8 +202,8 @@ export class TextureAtlas implements ITextureAtlas {
// Add the new merged page to the end
this.pages.push(mergedPage);
// Invalidate renderer models so all texture pages are refreshed.
this._pagesVersion++;
// Request the model to be cleared to refresh all texture pages.
this._pageLayoutVersion++;
this._onAddTextureAtlasCanvas.fire(mergedPage.canvas);
}
@@ -814,8 +814,8 @@ export class TextureAtlas implements ITextureAtlas {
this._overflowSizePage = new AtlasPage(this._document, this._config.deviceMaxTextureSize);
this.pages.push(this._overflowSizePage);
// Invalidate renderer models so all texture pages are refreshed.
this._pagesVersion++;
// Request the model to be cleared to refresh all texture pages.
this._pageLayoutVersion++;
this._onAddTextureAtlasCanvas.fire(this._overflowSizePage.canvas);
}
activePage = this._overflowSizePage;