Browse Source

original ping color of labeling :)

pull/25/head
Alexey Velikiy 3 years ago
parent
commit
01eefc89a7
  1. 7
      client/src/components/hastic_pod/index.ts
  2. 2
      client/src/types/colors.ts
  3. 2
      client/src/types/detection.ts

7
client/src/components/hastic_pod/index.ts

@ -1,6 +1,7 @@
import { AxisRange } from "@chartwerk/core/dist/types"; import { AxisRange } from "@chartwerk/core/dist/types";
import { LinePod, LineTimeSerie } from "@chartwerk/line-pod"; import { LinePod, LineTimeSerie } from "@chartwerk/line-pod";
import { SegmentsSet } from "@/types/segment_set"; import { SegmentsSet } from "@/types/segment_set";
import { ANALYTIC_UNIT_COLORS } from "@/types/colors"
import { Segment, SegmentId } from "@/types/segment"; import { Segment, SegmentId } from "@/types/segment";
export type TimeRange = { from: number, to: number }; export type TimeRange = { from: number, to: number };
@ -110,8 +111,8 @@ export class HasticPod extends LinePod {
} }
protected renderSegments() { protected renderSegments() {
let segments = this._segmentSet.getSegments(); const segments = this._segmentSet.getSegments();
for (let s in segments) { for (const s in segments) {
console.log(s); console.log(s);
} }
} }
@ -129,7 +130,7 @@ export class HasticPod extends LinePod {
.attr('y', y) .attr('y', y)
.attr('width', w) .attr('width', w)
.attr('height', h) .attr('height', h)
.attr('fill', 'red') .attr('fill', ANALYTIC_UNIT_COLORS[0])
.attr('opacity', '0.8') .attr('opacity', '0.8')
} }

2
client/src/types/colors.ts

@ -8,7 +8,7 @@ export const OK_COLOR = 'rgba(11, 237, 50, 1)';
export const NO_DATA_COLOR = 'rgba(150, 150, 150, 1)'; export const NO_DATA_COLOR = 'rgba(150, 150, 150, 1)';
export const REGION_FILL_ALPHA = 0.09; export const REGION_FILL_ALPHA = 0.09;
let colors = [ const colors = [
'#7EB26D', '#7EB26D',
'#EAB839', '#EAB839',
'#6ED0E0', '#6ED0E0',

2
client/src/types/detection.ts

@ -4,7 +4,7 @@ export enum DetectionStatus {
READY = 'READY', READY = 'READY',
RUNNING = 'RUNNING', RUNNING = 'RUNNING',
FAILED = 'FAILED' FAILED = 'FAILED'
}; }
export type DetectionSpan = { export type DetectionSpan = {
id: AnalyticUnitId, id: AnalyticUnitId,

Loading…
Cancel
Save