import { writable } from 'svelte/store'; import type { Brush, Params, DrawingLayer } from '../types'; import { randomSeed } from '$lib/utils'; import { PRESETS } from '../data'; export const drawingLayers = writable>(new Map()); export const resultImage = writable(); export const currentCanvas = writable(); export const selectedImage = writable(); export const selectedBrush = writable(); export const selectedParams = writable({ prompt: "Aerial view of rue des Lilas, Toulouse, Haute-Garonne, France", modifier: PRESETS[0][0], seed: randomSeed(), steps: 20 }); export const generateMap = writable(false); export const saveResult = writable(false);