Skip to content

Commit f569f6a

Browse files
authored
Merge pull request #1376 from chhsiao1981/actc
zmap with DisplayColorMap.Actc
2 parents ea36bab + 7514909 commit f569f6a

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/components/Preview/displays/NiiVueDisplay.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const SLICE_TYPE_LIST = [
5050

5151
const COLOR_MAP_LIST = [
5252
DisplayColorMap.Gray,
53+
DisplayColorMap.Actc,
5354
DisplayColorMap.Plasma,
5455
DisplayColorMap.Viridis,
5556
DisplayColorMap.Freesurfer,
@@ -70,7 +71,7 @@ const DISPLAY_TYPE_MAP: DisplayTypeMap = {
7071
calMax: 4096,
7172
},
7273
[DisplayType.ZMap]: {
73-
colorMap: DisplayColorMap.Viridis,
74+
colorMap: DisplayColorMap.Actc,
7475
calMin: -4,
7576
calMax: 4,
7677
},
@@ -141,15 +142,6 @@ export default (props: Props) => {
141142
);
142143
}
143144

144-
const rotateSliceType = () => {
145-
const names = Object.keys(
146-
SLICE_TYPE_MAP,
147-
) as (keyof typeof SLICE_TYPE_MAP)[];
148-
const i = names.indexOf(sliceTypeName);
149-
const next = i + 1 >= names.length ? 0 : i + 1;
150-
setSliceTypeName(names[next]);
151-
};
152-
153145
const selectStyle = { width: "9em" };
154146

155147
const inputStyle = { width: "9em" };

src/components/Preview/displays/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export enum DisplayColorMap {
1414
Gray = "gray",
1515
Plasma = "plasma",
1616
Viridis = "viridis",
17+
Actc = "actc",
1718
Freesurfer = "freesurfer",
1819
}
1920

0 commit comments

Comments
 (0)