Browse Source

Move default deleted segment color to colors

master
rozetko 6 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', '#f8c171',
]; ];
export const DEFAULT_DELETED_SEGMENT_COLOR = '#00f0ff';
export const REGION_UNLABEL_COLOR_LIGHT = '#d1d1d1'; export const REGION_UNLABEL_COLOR_LIGHT = '#d1d1d1';
export const REGION_UNLABEL_COLOR_DARK = 'white'; export const REGION_UNLABEL_COLOR_DARK = 'white';
export const LABELED_SEGMENT_BORDER_COLOR = 'black'; 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 { SegmentArray } from './segment_array';
import { Segment, SegmentId } from './segment'; import { Segment, SegmentId } from './segment';
import { ANALYTIC_UNIT_COLORS } from '../colors'; import { ANALYTIC_UNIT_COLORS, DEFAULT_DELETED_SEGMENT_COLOR } from '../colors';
import _ from 'lodash'; import _ from 'lodash';
@ -44,7 +44,7 @@ export class AnalyticUnit {
_.defaults(this._panelObject, { _.defaults(this._panelObject, {
name: 'AnalyticUnitName', name: 'AnalyticUnitName',
labeledColor: ANALYTIC_UNIT_COLORS[0], labeledColor: ANALYTIC_UNIT_COLORS[0],
deletedColor: '#00f0ff', deletedColor: DEFAULT_DELETED_SEGMENT_COLOR,
detectorType: 'pattern', detectorType: 'pattern',
type: 'GENERAL', type: 'GENERAL',
alert: false alert: false

Loading…
Cancel
Save