mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-25 06:05:52 +02:00
Update to Angular 14
This commit is contained in:
@@ -290,7 +290,7 @@ function getSpriteImageData(s: ExtSprite): ImageData | undefined {
|
||||
|
||||
const context = s.image.getContext('2d')!;
|
||||
const { width, height, data } = context.getImageData(s.ox, s.oy, s.w, s.h);
|
||||
return { width, height, data };
|
||||
return { width, height, data } as ImageData;
|
||||
}
|
||||
|
||||
export function createSpriteSheet(name: string, images: ExtSprite[], log: boolean, size: number, bg?: string, pack = false) {
|
||||
|
||||
Reference in New Issue
Block a user