[FEAT] Add missing types
This commit is contained in:
@@ -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}`));
|
||||
|
||||
Reference in New Issue
Block a user