import cloneDeep from 'lodash/cloneDeep'
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { chartInitConfig } from '@/settings/designSetting'
import { ZhiGan_LowerLeftConfig } from './index'

export const option = {
  dataStyle: {
    backgroud: '#FFFFFF00',
    imageWidth: 25,
    imageHeight: 28,
    bottom: 0,
    left: 5,

    smallColor1: '#00D586',
    smallColor2: '#00AB4E',
    largeColor1: '#007343',
    largeColor2: '#89E5A1',
  },
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = ZhiGan_LowerLeftConfig.key
  public attr = { ...chartInitConfig, w: 400, h: 32, zIndex: -1 }
  public chartConfig = cloneDeep(ZhiGan_LowerLeftConfig)
  public option = cloneDeep(option)
}
