Skip to content

Commit 676b2f6

Browse files
authored
Merge pull request Kitware#718 from PaulHax/default-seg
feat(config): simplify default segments and labels
2 parents 613bf75 + 9dd61e8 commit 676b2f6

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

src/config.ts

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -237,21 +237,15 @@ export const TOOL_COLORS = [
237237
export const STROKE_WIDTH_ANNOTATION_TOOL_DEFAULT = 1;
238238

239239
export const RULER_LABEL_DEFAULTS = {
240-
red: { color: 'red' },
241-
green: { color: '#00ff00' },
242-
white: { color: '#ffffff' },
240+
'Label 1': { color: 'red' },
243241
};
244242

245243
export const RECTANGLE_LABEL_DEFAULTS = {
246-
artifact: { color: '#888888' },
247-
innocuous: { color: '#00ff00' },
248-
lesion: { color: 'red' },
244+
'Label 1': { color: 'red' },
249245
};
250246

251247
export const POLYGON_LABEL_DEFAULTS = {
252-
red: { color: 'red' },
253-
green: { color: '#00ff00' },
254-
white: { color: '#ffffff' },
248+
'Label 1': { color: 'red' },
255249
};
256250

257251
export const DEFAULT_PRESET_BY_MODALITY: Record<string, string> = {
@@ -297,20 +291,8 @@ export const ACTION_TO_KEY = {
297291
export const DEFAULT_SEGMENT_MASKS: SegmentMask[] = [
298292
{
299293
value: 1,
300-
name: 'Tissue',
301-
color: [255, 0, 0, 255],
302-
visible: true,
303-
},
304-
{
305-
value: 2,
306-
name: 'Liver',
307-
color: [0, 255, 0, 255],
308-
visible: true,
309-
},
310-
{
311-
value: 3,
312-
name: 'Heart',
313-
color: [0, 0, 255, 255],
294+
name: 'Segment 1',
295+
color: [255, 255, 0, 255],
314296
visible: true,
315297
},
316298
];

0 commit comments

Comments
 (0)