refactor: Update color codes to use full hex values and remove unused functions in simulation dashboard
This commit is contained in:
@@ -8,8 +8,6 @@ interface SimulationDashboardStore {
|
||||
blocks: Block[];
|
||||
selectedBlockId: string | null;
|
||||
selectedElementId: string | null;
|
||||
hoveredBlockId: string | null;
|
||||
hoveredElementId: string | null;
|
||||
|
||||
// Block operations
|
||||
addBlock: () => void;
|
||||
@@ -45,8 +43,6 @@ interface SimulationDashboardStore {
|
||||
// Selection and hover management
|
||||
setSelectedBlock: (blockId: string | null) => void;
|
||||
setSelectedElement: (elementId: string | null) => void;
|
||||
setHoveredBlock: (blockId: string | null) => void;
|
||||
setHoveredElement: (elementId: string | null) => void;
|
||||
|
||||
// Element swapping
|
||||
swapElements: (blockId: string, elementId1: string, elementId2: string) => void;
|
||||
@@ -66,8 +62,6 @@ export const createSimulationDashboardStore = () => {
|
||||
blocks: [],
|
||||
selectedBlockId: null,
|
||||
selectedElementId: null,
|
||||
hoveredBlockId: null,
|
||||
hoveredElementId: null,
|
||||
|
||||
// Block operations
|
||||
addBlock: () => {
|
||||
@@ -188,7 +182,7 @@ export const createSimulationDashboardStore = () => {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
minHeight: "120px",
|
||||
color: "#fff",
|
||||
color: "#ffffff",
|
||||
fontSize: 14,
|
||||
textAlign: "left" as const,
|
||||
backgroundColor: "rgba(0, 0, 0, 0.2)",
|
||||
@@ -197,7 +191,7 @@ export const createSimulationDashboardStore = () => {
|
||||
}
|
||||
: type === "label-value"
|
||||
? {
|
||||
color: "#fff",
|
||||
color: "#ffffff",
|
||||
fontSize: 14,
|
||||
textAlign: "left" as const,
|
||||
display: "flex",
|
||||
@@ -209,7 +203,7 @@ export const createSimulationDashboardStore = () => {
|
||||
valueColor: "#ffffff",
|
||||
}
|
||||
: {
|
||||
color: "#fff",
|
||||
color: "#ffffff",
|
||||
fontSize: 14,
|
||||
textAlign: "left" as const,
|
||||
},
|
||||
@@ -369,18 +363,6 @@ export const createSimulationDashboardStore = () => {
|
||||
});
|
||||
},
|
||||
|
||||
setHoveredBlock: (blockId) => {
|
||||
set((state) => {
|
||||
state.hoveredBlockId = blockId;
|
||||
});
|
||||
},
|
||||
|
||||
setHoveredElement: (elementId) => {
|
||||
set((state) => {
|
||||
state.hoveredElementId = elementId;
|
||||
});
|
||||
},
|
||||
|
||||
// Element swapping
|
||||
swapElements: (blockId, elementId1, elementId2) => {
|
||||
set((state) => {
|
||||
|
||||
Reference in New Issue
Block a user