# All files / constants tableGraph.ts

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

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

    1x

    1x
    1x
    1x

    1x
    1x

    1x

    1x

    1x

    1x

    1x

     import {Color, TimeField} from '../types'

    export const NULL_ARRAY_INDEX = -1

    export const ASCENDING = 'asc'
    export const DESCENDING = 'desc'
    export const DEFAULT_SORT_DIRECTION = ASCENDING

    export const DEFAULT_FIX_FIRST_COLUMN = true
    export const DEFAULT_VERTICAL_TIME_AXIS = true

    export const CELL_HORIZONTAL_PADDING = 30

    export const DEFAULT_TIME_FIELD: TimeField = {
      internalName: '_time',
      displayName: 'time',
      visible: true,
    }

    export const DEFAULT_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss ZZ'

    export const FORMAT_OPTIONS: Array<{text: string}> = [
      {text: DEFAULT_TIME_FORMAT},
      {text: 'DD/MM/YYYY HH:mm:ss.sss'},
      {text: 'MM/DD/YYYY HH:mm:ss.sss'},
      {text: 'YYYY/MM/DD HH:mm:ss'},
      {text: 'hh:mm a'},
      {text: 'HH:mm'},
      {text: 'HH:mm:ss'},
      {text: 'HH:mm:ss ZZ'},
      {text: 'HH:mm:ss.sss'},
      {text: 'MMMM D, YYYY HH:mm:ss'},
      {text: 'dddd, MMMM D, YYYY HH:mm:ss'},
    ]

    export const DEFAULT_TABLE_COLORS = [
      {
        id: 'base',
        type: 'text',
        hex: '#ffffff',
        name: 'white',
        value: 0,
      } as Color,
    ]