🆙 Update IGetImageListener

This commit is contained in:
DuckieTM
2025-03-09 10:53:31 +01:00
parent 70b1d232d5
commit 5ff7478cb5
6 changed files with 20 additions and 9 deletions
+6 -4
View File
@@ -4,9 +4,11 @@ import { Texture } from 'pixi.js';
export class ImageResult implements IImageResult
{
public id: number = 0;
public data: Texture = null;
public image: HTMLImageElement = null;
constructor(
public id: number = 0,
public data: Texture = null,
public image: HTMLImageElement = null)
{}
public async getImage(): Promise<HTMLImageElement>
{
@@ -16,4 +18,4 @@ export class ImageResult implements IImageResult
return await TextureUtils.generateImage(this.data);
}
}
}