feat(gallery): transition to and from the nds
This commit is contained in:
@@ -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));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user