This commit is contained in:
Daniel Imms
2022-10-30 18:11:24 -07:00
parent dda3f5f545
commit 4d05905736
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ declare module 'xterm-addon-canvas' {
*/
public readonly onChangeTextureAtlas: IEvent<HTMLCanvasElement>;
// TODO: Doc
/**
* An event that is fired when the a new page is added to the texture atlas.
*/
public readonly onAddTextureAtlasCanvas: IEvent<HTMLCanvasElement>;
constructor();
+3 -1
View File
@@ -22,7 +22,9 @@ declare module 'xterm-addon-webgl' {
*/
public readonly onChangeTextureAtlas: IEvent<HTMLCanvasElement>;
// TODO: Doc
/**
* An event that is fired when the a new page is added to the texture atlas.
*/
public readonly onAddTextureAtlasCanvas: IEvent<HTMLCanvasElement>;
constructor(preserveDrawingBuffer?: boolean);
+1 -1
View File
@@ -137,7 +137,7 @@ export class TextureAtlas implements ITextureAtlas {
if (this._pages.length === 4 || this._pages.length === 7) {
this._increaseTextureSize();
}
// TODO: Clear all pages and restart if the maximum page count is reached
// TODO: Ensure pages aren't created beyond the maximum supported
const newPage = new AtlasPage(this._document, this._textureSize);
this._pages.push(newPage);
this._activePages.push(newPage);