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

export const option = {
  dataStyle:{
    mouseListener: true,
    mask: false,
    maskClickClose: false,
    maskColor:'#FFFFFF00',
    maskFrameX: 0,
    maskFrameY: 0,
    maskFrameW: 0,
    maskFrameH: 0,
    // 背景颜色
    backgroud: '#161A1A',
    // 左上、右下角装饰颜色
    lineColor1: '#25673D',
    lineColor2: '#3E674A',
    lineColor3: '#8BE8A3',
    // 外侧边框线颜色
    pathLineColor1: '#7CA791',
    // 内侧边框线颜色
    pathLineColor2: '#435A4E',
    // 顶部矩形块颜色
    topPolygonColor: '#4D815D',
    // 顶部椭圆形块颜色
    topEllipseColor: '#4A5C4A',
    // 底部矩形块颜色
    bottomUseColor: '#FFE4AC',
  },
}

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