From 85eb750b57d52f8a3649913eda7e69874e3223f0 Mon Sep 17 00:00:00 2001 From: rozetko Date: Mon, 25 Feb 2019 11:47:20 +0300 Subject: [PATCH] Move default deleted segment color to colors --- src/panel/graph_panel/colors.ts | 1 + src/panel/graph_panel/models/analytic_unit.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/panel/graph_panel/colors.ts b/src/panel/graph_panel/colors.ts index 778fea7..451fd17 100644 --- a/src/panel/graph_panel/colors.ts +++ b/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'; diff --git a/src/panel/graph_panel/models/analytic_unit.ts b/src/panel/graph_panel/models/analytic_unit.ts index 8d81310..85e70c8 100644 --- a/src/panel/graph_panel/models/analytic_unit.ts +++ b/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