settingConfig.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { commonConfig } from '../../js/config'
  2. export const settingConfig = {
  3. padding: [30, 30, 30, 60],
  4. legend: false,
  5. isGroup: true,
  6. data: [],
  7. // displayOption: {
  8. // color: '',
  9. // backgroundColor: ''
  10. // }
  11. // 设置面板属性的显隐
  12. displayOption: {
  13. dataAllocation: {
  14. // 是否存在数据配置
  15. enable: false
  16. }
  17. }
  18. }
  19. const customConfig = {
  20. type: 'border2',
  21. root: {
  22. version: '2023071001',
  23. contribution: false,
  24. // 绕x轴旋转角度
  25. rotateX: 0,
  26. // 绕y轴旋转角度
  27. rotateY: 0,
  28. // 绕z轴旋转角度
  29. rotateZ: 0,
  30. // 透视距离
  31. perspective: 0,
  32. skewX: 0,
  33. skewY: 0
  34. },
  35. customize: {
  36. borderMainColor: '#83bff6',
  37. borderSecondaryColor: '#00CED1',
  38. backgroundColor: '',
  39. colorType: 'single',
  40. // 渐变色0值
  41. gradientColor0: '#83bff6',
  42. // 渐变色1值
  43. gradientColor1: '#188df0',
  44. // 渐变色色值改变方向
  45. gradientDirection: 'to right',
  46. // 透明度
  47. opacity: 100
  48. }
  49. }
  50. export const dataConfig = {
  51. ...commonConfig(customConfig)
  52. }