[FEAT] Add missing types

This commit is contained in:
2025-12-17 21:21:03 +01:00
parent bcd6dc43c7
commit 012448df3e
2 changed files with 15 additions and 0 deletions

View File

@@ -101,6 +101,9 @@ export const useSprites = () => {
height: img.height,
x: old.x,
y: old.y,
rotation: 0,
flipX: false,
flipY: false,
};
const arr = [...sprites.value];
arr[i] = next;
@@ -132,6 +135,9 @@ export const useSprites = () => {
height: img.height,
x: 0,
y: 0,
rotation: 0,
flipX: false,
flipY: false,
};
sprites.value = [...sprites.value, s];
};
@@ -163,6 +169,9 @@ export const useSprites = () => {
height: img.height,
x: 0,
y: 0,
rotation: 0,
flipX: false,
flipY: false,
};
const newMaxWidth = Math.max(maxWidth, img.width);
@@ -222,6 +231,9 @@ export const useSprites = () => {
height: img.height,
x: 0,
y: 0,
rotation: 0,
flipX: false,
flipY: false,
});
};
img.onerror = () => reject(new Error(`Failed to load image: ${file.name}`));