Fix : switch to state based shuffle animation

This commit is contained in:
2024-07-04 22:07:48 +02:00
parent 25cf8a55e9
commit b1a874aaeb
11 changed files with 97 additions and 232 deletions
+8 -8
View File
@@ -4,12 +4,12 @@ export function delay(delay: number) {
});
}
export type ContainerHandler = {
populateContainer: () => void;
shuffleContainer: () => void;
getCardsPosition: (cards: string) => any;
startAnimation: () => void;
endAnimation: () => void;
};
// export type ContainerHandler = {
// populateContainer: () => void;
// shuffleContainer: () => void;
// getCardsPosition: (cards: string) => any;
// startAnimation: () => void;
// endAnimation: () => void;
// };
export const containerEvents = reactive(new Map<string, ContainerHandler>());
// export const containerEvents = reactive(new Map<string, ContainerHandler>());