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

export const option = {
  colors: ['#1DC1F533', '#1DC1F5FF'],
  dataset: '我是标题',
  textSize: 32,
  textFlod: 500
}

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