Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x | import {
COLOR_PALETTES,
STATE_COLORS_HEX,
type ColorPaletteId
} from '@ska-octopus-widget-sdk/widget-sdk';
export const FALLBACK_ATTR = ['sys/tg_test/1/short_scalar_ro'];
const AVAILABLE_PALETTES = Object.keys(COLOR_PALETTES) as ColorPaletteId[];
export const DEFAULT_COLOR_SCHEME: ColorPaletteId = (AVAILABLE_PALETTES.find(
(id) => id === 'scientificActon10'
) ??
AVAILABLE_PALETTES[0] ??
'tableau10') as ColorPaletteId;
export const LINE_FALLBACK_COLOR = '#4cc9f0';
export const LINE_LEGEND_FONT_SIZE = 9;
export const ENUM_AXIS_FONT_SIZE = 9;
export const STATE_COLOR_SCHEME_ID = 'stateColors';
export const LINE_COLOR_TRIM = { trimStart: 0.3, trimEnd: 0.1 } as const;
export const BAR_VIEW_TRACE_TYPE = 'heatmap' as const;
export const TANGO_STATE_ENUM_FALLBACK: string[] = [
'ON', // 0
'OFF', // 1
'STANDBY', // 7
'FAULT', // 8
'INIT', // 9
'ALARM', // 11
'DISABLE', // 12
'UNKNOWN' // 13
];
export const TANGO_STATE_PALETTE: Record<string, string> = STATE_COLORS_HEX as Record<
string,
string
>;
export const TANGO_STATE_FALLBACK = STATE_COLORS_HEX.UNKNOWN;
export type OptionalRampSamplingOptions = { trimStart?: number; trimEnd?: number };
|