mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-25 22:25:53 +02:00
Update to Angular 9
This commit is contained in:
@@ -24,7 +24,7 @@ function loadSpriteSheet(sheet: SpriteSheet, loadImage: LoadImage) {
|
||||
sheet.srcA ? loadImage(sheet.srcA) : Promise.resolve(undefined)
|
||||
])
|
||||
.then(([img, imgA]) => {
|
||||
sheet.data = getImageData(img);
|
||||
sheet.data = getImageData(img!);
|
||||
|
||||
if (imgA) {
|
||||
const alpha = getImageData(imgA);
|
||||
|
||||
Reference in New Issue
Block a user