/*
 * @Descripttion:
 * @Author: liu.shiyi
 * @Date: 2022-10-13 11:18:03
 * @LastEditTime: 2022-10-13 13:55:11
 */
import { commonConfig, displayOption } from 'data-room-ui/js/config'

export const settingConfig = {
  theme: 'dark',
  data: [],
  text: '文本标签占位符', // text内容
  // 设置面板属性的显隐
  displayOption: {
    ...displayOption,
    metricField: {
      // 指标
      label: '指标',
      enable: true,
      multiple: false // 是否多选
    },
    dimensionField: {
      // 维度
      label: '维度', // 维度/查询字段
      enable: false,
      multiple: true // 是否多选
    },
    text: { // 文本占位符
      label: '占位内容', // 维度/查询字段
      enable: true
    },
    expression: { // 文本占位符
      label: '表达式', // 维度/查询字段
      enable: true
    }
  }
}
const customConfig = {
  type: 'numbers',
  root: {
    version: '2023111401',
    url: 'https://www.runoob.com/',
    expression: 'return ',
    expressionCodes: [],
    // 绕x轴旋转角度
    rotateX: 0,
    // 绕y轴旋转角度
    rotateY: 0,
    // 绕z轴旋转角度
    rotateZ: 0,
    // 透视距离
    perspective: 0,
    skewX: 0,
    skewY: 0
  },
  customize: {
    title: '1234',
    fontSize: 40,
    fontWeight: 700,
    fontFamily: 'ds-digitalbold', // 字体类型
    color: 'left,#ffffff,#ffffff',
    thousands: false, // 千分位分隔
    align: 'center', // 文字对齐方式
    letterSpacing: 1// 文字间距
  }

}
export const dataConfig = {
  ...commonConfig(customConfig)
}