feat: Introduce a new simulation dashboard editor with block and element components, dedicated styling, visualization state management, and an analyzer.
This commit is contained in:
@@ -1,13 +1,22 @@
|
||||
import { create } from "zustand";
|
||||
import { immer } from "zustand/middleware/immer";
|
||||
|
||||
interface PanelPosition {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
|
||||
interface VisualizationState {
|
||||
// blocks: Block[]
|
||||
editorPosition: PanelPosition | null;
|
||||
setEditorPosition: (position: PanelPosition) => void;
|
||||
}
|
||||
|
||||
export const useVisualizationStore = create<VisualizationState>()(
|
||||
immer((set) => ({
|
||||
// blocks: [],
|
||||
|
||||
editorPosition: null,
|
||||
setEditorPosition: (position) =>
|
||||
set((state) => {
|
||||
state.editorPosition = position;
|
||||
}),
|
||||
}))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user