import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { WorkshopSceneConfig } from './index'
import dataJson from './data.json'
export enum FontWeightEnum {
  NORMAL = '常规',
  BOLD = '加粗',
}

export enum FontStyleEnum {
  NORMAL = '常规',
  ITALIC = '斜体',
}

export const FontWeightObject = {
  [FontWeightEnum.NORMAL]: 'normal',
  [FontWeightEnum.BOLD]: 'bold',
}

export const FontStyleObject = {
  [FontStyleEnum.NORMAL]: 'normal',
  [FontStyleEnum.ITALIC]: 'italic',
}
export const option = {
  dataset: dataJson.source,
  title: '场景分布概况',
  titleColor: '#ffffff',
  titleSize: 20,
  iconColor: '#00E5FF',
  fontWeight: 'normal',
  fontStyle: 'normal',
  paddingX: 10,
  paddingY: -12,
  letterSpacing: 1,
  isShowButton: false,
  linkColor: '#00E5FF',
  linkText: '查看更多>>',
  sceneNameColor: '#ffffff',
  sceneNameSize: 20,
  labelColor: '#B0E0E6',
  labelSize: 16,
  valueColor: '#ffffff',
  valueSize: 28,
  pointColor1: '#00E5FF',
  pointColor2: '#FFD700'
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = WorkshopSceneConfig.key
  public chartConfig = WorkshopSceneConfig
  public option = option
}
