# All files / constants thresholds.ts

100% Statements 14/14
100% Branches 0/0
100% Functions 0/0
100% Lines 14/14

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
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    1301x
    1x

    1x
    1x
    1x
    1x
    1x

    1x
    1x

    1x

    1x

    1x

    1x

    1x

     export const MAX_THRESHOLDS = 5
    export const MIN_THRESHOLDS = 2

    export const COLOR_TYPE_MIN = 'min'
    export const DEFAULT_VALUE_MIN = 0
    export const COLOR_TYPE_MAX = 'max'
    export const DEFAULT_VALUE_MAX = 100
    export const COLOR_TYPE_THRESHOLD = 'threshold'

    export const THRESHOLD_TYPE_TEXT = 'text'
    export const THRESHOLD_TYPE_BG = 'background'

    export const BASE_THRESHOLD_ID = 'base'

    export const THRESHOLD_COLORS = [
      {
        hex: '#BF3D5E',
        name: 'ruby',
      },
      {
        hex: '#DC4E58',
        name: 'fire',
      },
      {
        hex: '#F95F53',
        name: 'curacao',
      },
      {
        hex: '#F48D38',
        name: 'tiger',
      },
      {
        hex: '#FFB94A',
        name: 'pineapple',
      },
      {
        hex: '#FFD255',
        name: 'thunder',
      },
      {
        hex: '#7CE490',
        name: 'honeydew',
      },
      {
        hex: '#4ED8A0',
        name: 'rainforest',
      },
      {
        hex: '#32B08C',
        name: 'viridian',
      },
      {
        hex: '#4591ED',
        name: 'ocean',
      },
      {
        hex: '#22ADF6',
        name: 'pool',
      },
      {
        hex: '#00C9FF',
        name: 'laser',
      },
      {
        hex: '#513CC6',
        name: 'planet',
      },
      {
        hex: '#7A65F2',
        name: 'star',
      },
      {
        hex: '#9394FF',
        name: 'comet',
      },
      {
        hex: '#383846',
        name: 'pepper',
      },
      {
        hex: '#545667',
        name: 'graphite',
      },
      {
        hex: '#ffffff',
        name: 'white',
      },
      {
        hex: '#292933',
        name: 'castle',
      },
    ]

    export const DEFAULT_GAUGE_COLORS = [
      {
        type: COLOR_TYPE_MIN,
        hex: THRESHOLD_COLORS[11].hex,
        id: '0',
        name: THRESHOLD_COLORS[11].name,
        value: DEFAULT_VALUE_MIN,
      },
      {
        type: COLOR_TYPE_MAX,
        hex: THRESHOLD_COLORS[14].hex,
        id: '1',
        name: THRESHOLD_COLORS[14].name,
        value: DEFAULT_VALUE_MAX,
      },
    ]

    export const DEFAULT_THRESHOLDS_LIST_COLORS = [
      {
        type: THRESHOLD_TYPE_TEXT,
        hex: THRESHOLD_COLORS[11].hex,
        id: BASE_THRESHOLD_ID,
        name: THRESHOLD_COLORS[11].name,
        value: 0,
      },
    ]

    export const DEFAULT_THRESHOLDS_TABLE_COLORS = [
      {
        type: THRESHOLD_TYPE_TEXT,
        hex: THRESHOLD_COLORS[17].hex,
        id: BASE_THRESHOLD_ID,
        name: THRESHOLD_COLORS[17].name,
        value: 0,
      },
    ]