Skip to content

Commit

Permalink
add currentColorSettings to selection branch state
Browse files Browse the repository at this point in the history
  • Loading branch information
interim17 committed Oct 31, 2024
1 parent 25f4478 commit 7ac652e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/ViewerPanel/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import {
getAgentsToHide,
getCurrentTime,
getHighlightedAgents,
getSelectedUIDisplayData,
} from "../../state/selection/selectors";
import { AgentRenderingCheckboxMap } from "../../state/selection/types";
import { roundTimeForDisplay } from "../../util";
import { DisplayTimes } from "./types";
import { isNetworkSimFileInterface } from "../../state/trajectory/types";
import { getCurrentUIData } from "../../state/compoundSelectors";

export const getSelectionStateInfoForViewer = createSelector(
[getHighlightedAgents, getAgentsToHide, getCurrentUIData],
[getHighlightedAgents, getAgentsToHide, getSelectedUIDisplayData],
(highlightedAgents, hiddenAgents, appliedColors): SelectionStateInfo => ({
highlightedAgents,
hiddenAgents,
Expand Down
2 changes: 2 additions & 0 deletions src/state/selection/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
SetRecentColorsAction,
SetSelectedAgentMetadataAction,
SetSelectedUIDisplayDataAction,
ColorSettings,
} from "./types";

export const initialState = {
Expand All @@ -36,6 +37,7 @@ export const initialState = {
recentColors: [],
selectedAgentMetadata: {},
selectedUIDisplayData: [],
currentColorSettings: ColorSettings.Default,
};

const actionToConfigMap: TypeToDescriptionMap = {
Expand Down

0 comments on commit 7ac652e

Please sign in to comment.