Risuai 0.6.3 first commit

This commit is contained in:
kwaroran
2023-05-07 12:41:45 +09:00
parent 50e5e1d917
commit 2c5c7d2694
98 changed files with 15070 additions and 0 deletions

21
src/ts/stores.ts Normal file
View File

@@ -0,0 +1,21 @@
import { writable } from "svelte/store";
function updateSize(){
SizeStore.set({
w: window.innerWidth,
h: window.innerHeight
})
}
export const SizeStore = writable({
w: 0,
h: 0
})
export const sideBarStore = writable(true)
export const selectedCharID = writable(-1)
export const CharEmotion = writable({} as {[key:string]: [string, string, number][]})
export const ViewBoxsize = writable({ width: 12 * 16, height: 12 * 16 }); // Default width and height in pixels
export const settingsOpen = writable(false)
updateSize()
window.addEventListener("resize", updateSize);