thumbnail generation

This commit is contained in:
wass08
2026-03-04 15:13:07 +01:00
parent ba2dfa8caa
commit 23ed54cb6a
6 changed files with 213 additions and 15 deletions
+6 -1
View File
@@ -73,6 +73,10 @@ type ToolEvents = {
'tool:cancel': undefined
}
type PresetEvents = {
'preset:generate-thumbnail': { presetId: string; nodeId: string }
}
type EditorEvents = GridEvents &
NodeEvents<'wall', WallEvent> &
NodeEvents<'item', ItemEvent> &
@@ -86,6 +90,7 @@ type EditorEvents = GridEvents &
NodeEvents<'window', WindowEvent> &
NodeEvents<'door', DoorEvent> &
CameraControlEvents &
ToolEvents
ToolEvents &
PresetEvents
export const emitter = mitt<EditorEvents>()