Refactor editor workflow and update UI state handling

This commit is contained in:
sudhir
2026-04-30 13:37:52 +05:30
parent 3d0000f93f
commit 8631622e60
9 changed files with 1229 additions and 108 deletions
+9 -1
View File
@@ -1,11 +1,12 @@
import type { ThreeEvent } from '@react-three/fiber'
import type { Object3D } from 'three'
import mitt from 'mitt'
import type { Object3D } from 'three'
import type {
BuildingNode,
CeilingNode,
DoorNode,
FenceNode,
GuideNode,
ItemNode,
LevelNode,
RoofNode,
@@ -130,6 +131,12 @@ type ToolEvents = {
'tool:cancel': undefined
}
type GuideEvents = {
'guide:set-reference-scale': { guideId: GuideNode['id'] }
'guide:cancel-reference-scale': undefined
'guide:deleted': { guideId: GuideNode['id'] }
}
type PresetEvents = {
'preset:generate-thumbnail': { presetId: string; nodeId: string }
'preset:thumbnail-updated': { presetId: string; thumbnailUrl: string }
@@ -169,6 +176,7 @@ type EditorEvents = GridEvents &
NodeEvents<'door', DoorEvent> &
CameraControlEvents &
ToolEvents &
GuideEvents &
PresetEvents &
ThumbnailEvents &
SnapshotEvents &