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

export const option = {
  dataset: '天气温度',
  textColor: '#fff',
  textSize: 28,
  colors: '#03A9F4',
  size: 64,
  rotate: 0 // 旋转角度
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = WeatherConfig.key
  public attr = { ...chartInitConfig, w: 200, h: 50, zIndex: 1 }
  public chartConfig = cloneDeep(WeatherConfig)
  public option = cloneDeep(option)
}
