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:
13
app/src/store/visualization/useVisualizationStore.ts
Normal file
13
app/src/store/visualization/useVisualizationStore.ts
Normal 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: [],
|
||||
|
||||
}))
|
||||
);
|
||||
Reference in New Issue
Block a user