diff --git a/src/composables/useSprites.ts b/src/composables/useSprites.ts index e1c8f40..ba48f87 100644 --- a/src/composables/useSprites.ts +++ b/src/composables/useSprites.ts @@ -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}`)); diff --git a/src/views/ShareView.vue b/src/views/ShareView.vue index 58e1502..9899c7f 100644 --- a/src/views/ShareView.vue +++ b/src/views/ShareView.vue @@ -197,6 +197,9 @@ height: spriteData.height, x: spriteData.x || 0, y: spriteData.y || 0, + rotation: spriteData.rotation || 0, + flipX: spriteData.flipX || false, + flipY: spriteData.flipY || false, }); }; img.src = spriteData.base64;