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

export const option = {
  textSize: 14,
  colors: ['#0C2411','#00611A','#FFFFFF'],
  text: '添加途经点'
}

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