toolConfig.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. const TEXT_SIZE = 18;
  2. //默认配置
  3. export let configOpt = {
  4. text: { //文本设置
  5. size: TEXT_SIZE,
  6. fontWeight: 'normal',
  7. color: '#333',
  8. lineHeight: TEXT_SIZE * 1.3,
  9. },
  10. line: { //线条设置
  11. width: 1,
  12. color: '#0052D9',
  13. },
  14. border: { //线框设置
  15. isDash: 0, // 0实 1虚线border: 1px solid #0052D9
  16. width: 2,
  17. fill: '#DAE8FF',
  18. borderColor: '#0052D9',
  19. }
  20. }
  21. /* 定义默认颜色 */
  22. export const colorsOptions = ['#333','#5B9BD5','#f00','#fff','#00f','#000','#00FFFF','#70DB93','#9F5F9F','#A67D3D','#5F9F9F']
  23. export const familyOptions = [
  24. {name:'微软雅黑',value:'微软雅黑'},
  25. {name:'宋体',value:'宋体'},
  26. {name:'黑体',value:'黑体'}
  27. ]
  28. export const fontSizeOptions = [
  29. {name:'12px',value:12},
  30. {name:'14px',value:14},
  31. {name:'16px',value:16}
  32. ]
  33. export const lineHeightOptions = [
  34. {name:'1',value:1},
  35. {name:'1.15',value:1.15},
  36. {name:'1.5',value:1.5},
  37. {name:'2',value:2}
  38. ]
  39. export const sizeOptions = [
  40. 30,
  41. 28,
  42. 26,
  43. 24,
  44. 22,
  45. 20,
  46. 18,
  47. 16,
  48. 14,
  49. 12,
  50. 10,
  51. ]
  52. export const styleSettings=[
  53. {
  54. id:1,
  55. backgroundColor:'#DAE8FF'
  56. },
  57. {
  58. id:2,
  59. backgroundColor:'orange'
  60. },
  61. {
  62. id:3,
  63. backgroundColor:'purple'
  64. },
  65. {
  66. id:4,
  67. backgroundColor:'red'
  68. }
  69. ]