Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Oct 31, 2022
1 parent dda3f5f commit 4d05905
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion addons/xterm-addon-canvas/typings/xterm-addon-canvas.d.ts
Expand Up @@ -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();
Expand Down
4 changes: 3 additions & 1 deletion addons/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/browser/renderer/shared/TextureAtlas.ts
Expand Up @@ -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);
Expand Down

0 comments on commit 4d05905

Please sign in to comment.