const.ts 1.76 KB
export enum FrontComponentCategory {
  TEXT = 'text',
  PICTURE = 'picture',
  INSTRUMENT = 'instrument',
  CONTROL = 'control',
  MAP = 'map',
}

export const FrontComponentCategoryName = {
  [FrontComponentCategory.TEXT]: '文本组件',
  [FrontComponentCategory.INSTRUMENT]: '仪表组件',
  [FrontComponentCategory.CONTROL]: '控制组件',
  [FrontComponentCategory.PICTURE]: '图片组件',
  [FrontComponentCategory.MAP]: '地图组件',
};

export enum FrontComponent {
  TEXT_COMPONENT_1 = 'text-component-1',
  TEXT_COMPONENT_2 = 'text-component-2',
  TEXT_COMPONENT_3 = 'text-component-3',
  TEXT_COMPONENT_4 = 'text-component-4',
  TEXT_COMPONENT_5 = 'text-component-5',
  INSTRUMENT_COMPONENT_1 = 'instrument-component-1',
  INSTRUMENT_COMPONENT_2 = 'instrument-component-2',
  DIGITAL_DASHBOARD_COMPONENT = 'digital-dashboard-component',
  PICTURE_COMPONENT_1 = 'picture-component-1',
  CONTROL_COMPONENT_TOGGLE_SWITCH = 'control-component-toggle-switch',
  CONTROL_COMPONENT_SWITCH_WITH_ICON = 'control-component-switch-with-icon',
  CONTROL_COMPONENT_SLIDING_SWITCH = 'control-component-sliding-switch',
  MAP_COMPONENT_TRACK_REAL = 'map-component-track-real',
  MAP_COMPONENT_TRACK_HISTORY = 'map-component-track-history',
}

export enum Gradient {
  FIRST = 'first',
  SECOND = 'second',
  THIRD = 'third',
}
export enum GradientColor {
  FIRST = '#67e0e3',
  SECOND = '#37a2da',
  THIRD = '#fd666d',
}

export enum visualOptionField {
  FONT_COLOR = 'fontColor',
  UNIT = 'unit',
  ICON_COLOR = 'iconColor',
  ICON = 'icon',
  FIRST_PHASE_COLOR = 'firstPhaseColor',
  SECOND_PHASE_COLOR = 'secondPhaseColor',
  THIRD_PHASE_COLOR = 'thirdPhaseColor',
  FIRST_PHASE_VALUE = 'firstPhaseValue',
  SECOND_PHASE_VALUE = 'secondPhaseValue',
  THIRD_PHASE_VALUE = 'thirdPhaseValue',
}