Refactor simulation dashboard styles and types

- Updated SCSS styles for the simulation dashboard, adjusting z-index and reintroducing the element dropdown styles.
- Simplified type definitions in simulationDashboard.d.ts by removing unnecessary exports and consolidating types.
- Modified shortcut key handling to import from the correct path for useSelectedZoneStore.
- Created a new Zustand store for managing simulation dashboard state, including blocks and elements.
- Introduced old visualization stores for chart and dropped objects, refactoring to use Zustand for state management.
- Added a new store for managing 3D widget data and zone widget data.
- Implemented a store for managing selected zones and their properties.
- Initialized a visualization store with a basic structure for future enhancements.
- Updated exported types to include ExtendedCSSProperties and refined Block and UIElement definitions.
This commit is contained in:
2025-10-16 11:38:51 +05:30
parent b0df64a42e
commit bf35e00df6
81 changed files with 1170 additions and 1598 deletions

View File

@@ -0,0 +1,13 @@
import { create } from "zustand";
import { immer } from "zustand/middleware/immer";
interface VisualizationState {
// blocks: Block[]
}
export const useVisualizationStore = create<VisualizationState>()(
immer((set) => ({
// blocks: [],
}))
);