feat(gallery): transition to and from the nds

This commit is contained in:
2026-01-04 20:53:52 +01:00
parent 1f61eee93a
commit 18f91981ec
13 changed files with 253 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
import { z } from "zod/mini";
import type * as THREE from "three";
const STORAGE_ID = "app_settings";
@@ -29,6 +30,7 @@ export const useAppStore = defineStore("app", {
booted: false,
settings,
screen: "home" as AppScreen,
camera: null as THREE.Camera | null,
};
},
@@ -41,6 +43,10 @@ export const useAppStore = defineStore("app", {
this.screen = screen;
},
setCamera(camera: THREE.Camera) {
this.camera = camera;
},
save() {
localStorage.setItem(STORAGE_ID, JSON.stringify(this.settings));
},