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

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

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

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