This commit is contained in:
Daniel Imms
2022-10-29 18:09:18 -07:00
parent 04f79aa7b4
commit bfa9dd5060
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -56,7 +56,6 @@ export class TextureAtlas implements ITextureAtlas {
private _workBoundingBox: IBoundingBox = { top: 0, left: 0, bottom: 0, right: 0 };
private _workAttributeData: AttributeData = new AttributeData();
// TODO: Register
private readonly _onAddTextureAtlasCanvas = new EventEmitter<HTMLCanvasElement>();
public readonly onAddTextureAtlasCanvas = this._onAddTextureAtlasCanvas.event;
@@ -81,6 +80,7 @@ export class TextureAtlas implements ITextureAtlas {
for (const page of this.pages) {
page.canvas.remove();
}
this._onAddTextureAtlasCanvas.dispose();
}
public warmUp(): void {