File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { FrameworkConfig } from "@designto/config" ;
2- import type { EditorState } from "core/states" ;
2+ import type { EditorState , ScenePreviewData } from "core/states" ;
33
44export type WorkspaceAction =
55 //
@@ -19,6 +19,7 @@ export type Action =
1919 | SelectNodeAction
2020 | HighlightLayerAction
2121 | CanvasModeAction
22+ | PreviewAction
2223 | CodeEditorAction ;
2324
2425export type ActionType = Action [ "type" ] ;
@@ -52,6 +53,18 @@ export interface CanvasModeGobackAction {
5253 fallback ?: EditorState [ "canvasMode" ] ;
5354}
5455
56+ export type PreviewAction = PreviewSetAction | PreviewBuildingStateUpdateAction ;
57+
58+ export interface PreviewSetAction {
59+ type : "preview-set" ;
60+ data : ScenePreviewData ;
61+ }
62+
63+ export interface PreviewBuildingStateUpdateAction {
64+ type : "preview-update-building-state" ;
65+ isBuilding : boolean ;
66+ }
67+
5568export type CodeEditorAction = CodeEditorEditComponentCodeAction ;
5669
5770export interface CodeEditorEditComponentCodeAction {
You can’t perform that action at this time.
0 commit comments