Skip to content

Commit

Permalink
Feature/new colors cellsystems data (#81)
Browse files Browse the repository at this point in the history
* updated colors

* fix colors and get them to be the right data format
  • Loading branch information
toloudis authored Nov 10, 2021
1 parent 75532e7 commit 574b757
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 additions & 6 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const VIEWER_CHANNEL_SETTINGS: {
channelNameMapping: "" | { test: RegExp; label: string }[];
groupToChannelNameMap: "" | { [key: string]: string[] };
channelsEnabled?: number[];
initialChannelSettings?: { [key: string]: { color: [number, number, number] } };
initialChannelSettings?: { [key: string]: { color: string } };
}
| undefined;
} = {
Expand All @@ -139,11 +139,22 @@ export const VIEWER_CHANNEL_SETTINGS: {
groupToChannelNameMap: {},
channelsEnabled: [0, 1, 3, 4],
initialChannelSettings: {
"0": { color: [128, 0, 128] },
"1": { color: [128, 128, 128] },
"2": { color: [0, 128, 128] },
"3": { color: [128, 128, 0] },
"4": { color: [255, 255, 255] },
"0": { color: "ffffff" },
"1": { color: "00ffff" },
"2": { color: "808080" },
"3": { color: "ff00ff" },
"4": { color: "00ff00" },
},
},
cellsystems_live: {
channelNameMapping: [],
groupToChannelNameMap: {},
channelsEnabled: [1, 2],
initialChannelSettings: {
"0": { color: "ff00ff" },
"1": { color: "ffffff" },
"2": { color: "00ffff" },
"3": { color: "808080" },
},
},
};
2 changes: 1 addition & 1 deletion src/containers/Cfe/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface VolumeViewerProps {
channelNameMapping?: { label: string; test: RegExp }[] | "";
groupToChannelNameMap?: { [key: string]: string[] } | "";
channelsEnabled?: number[];
initialChannelSettings?: { [key: string]: { color: [number, number, number] } };
initialChannelSettings?: { [key: string]: { color: string } };
}

export const getPropsForVolumeViewer = createSelector(
Expand Down

0 comments on commit 574b757

Please sign in to comment.