Browse Source

Move default deleted segment color to colors

master
rozetko 5 years ago
parent
commit
85eb750b57
  1. 1
      src/panel/graph_panel/colors.ts
  2. 4
      src/panel/graph_panel/models/analytic_unit.ts

1
src/panel/graph_panel/colors.ts

@ -76,6 +76,7 @@ export const ANALYTIC_UNIT_COLORS = [
'#f8c171',
];
export const DEFAULT_DELETED_SEGMENT_COLOR = '#00f0ff';
export const REGION_UNLABEL_COLOR_LIGHT = '#d1d1d1';
export const REGION_UNLABEL_COLOR_DARK = 'white';
export const LABELED_SEGMENT_BORDER_COLOR = 'black';

4
src/panel/graph_panel/models/analytic_unit.ts

@ -2,7 +2,7 @@ import { SegmentsSet } from './segment_set';
import { SegmentArray } from './segment_array';
import { Segment, SegmentId } from './segment';
import { ANALYTIC_UNIT_COLORS } from '../colors';
import { ANALYTIC_UNIT_COLORS, DEFAULT_DELETED_SEGMENT_COLOR } from '../colors';
import _ from 'lodash';
@ -44,7 +44,7 @@ export class AnalyticUnit {
_.defaults(this._panelObject, {
name: 'AnalyticUnitName',
labeledColor: ANALYTIC_UNIT_COLORS[0],
deletedColor: '#00f0ff',
deletedColor: DEFAULT_DELETED_SEGMENT_COLOR,
detectorType: 'pattern',
type: 'GENERAL',
alert: false

Loading…
Cancel
Save