Skip to content

Commit 9dd61e8

Browse files
committed
feat(config): simplify default segments and labels
1 parent 3d33e7a commit 9dd61e8

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> = {
@@ -296,20 +290,8 @@ export const ACTION_TO_KEY = {
296290
export const DEFAULT_SEGMENT_MASKS: SegmentMask[] = [
297291
{
298292
value: 1,
299-
name: 'Tissue',
300-
color: [255, 0, 0, 255],
301-
visible: true,
302-
},
303-
{
304-
value: 2,
305-
name: 'Liver',
306-
color: [0, 255, 0, 255],
307-
visible: true,
308-
},
309-
{
310-
value: 3,
311-
name: 'Heart',
312-
color: [0, 0, 255, 255],
293+
name: 'Segment 1',
294+
color: [255, 255, 0, 255],
313295
visible: true,
314296
},
315297
];

0 commit comments

Comments
 (0)