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:
2025-12-20 09:43:28 +05:30
parent c072648397
commit 525bfb6541
6 changed files with 77 additions and 84 deletions

View File

@@ -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;
}),
}))
);