import { PublicConfigClass, chartInitConfig } from '../../../../../utils/PublicConfigClass'
import { TextCommonConfig } from './basis'
import {cloneDeep} from 'lodash-es'

export const WritingModeObject = {
  "水平": 'horizontal-tb',
  "垂直": 'vertical-rl'
}

export const FontWeightObject = {
  "常规": 'normal',
  "加粗": 'bold',
}

export const option = {
  link: '',
  linkHead: 'http://',
  dataset: '我是文本',
  fontSize: 20,
  fontColor: '#ffffff',
  paddingX: 10,
  paddingY: 10,
  textAlign: 'center', // 水平对齐方式
  fontWeight: 'normal',

  // 边框
  borderWidth: 0,
  borderColor: '#ffffff',
  borderRadius: 5,

  // 字间距
  letterSpacing: 5,
  writingMode: 'horizontal-tb',
  backgroundColor: '#00000000'
}

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