UX enhancements

This commit is contained in:
2025-11-26 20:29:30 +01:00
parent c4a0024ec0
commit bf95f4fbee
4 changed files with 27 additions and 9 deletions

View File

@@ -30,6 +30,8 @@ export const useLayers = () => {
const visibleLayers = computed(() => layers.value.filter(l => l.visible));
const hasSprites = computed(() => layers.value.some(l => l.sprites.length > 0));
const updateSpritePosition = (id: string, x: number, y: number) => {
const l = activeLayer.value;
if (!l) return;
@@ -238,6 +240,7 @@ export const useLayers = () => {
addLayer,
removeLayer,
moveLayer,
hasSprites,
};
};