7c5ff3f504e9a2342dfed870b3ec91f69cee0305372dafec76dff57d7b9b4fb6eb04d640640789d00fd292cd2cd2749dd5f6862c7dcd1576692c628fa7e417 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. export const legendConfig = {
  2. /**
  3. * @description Whether to display legend
  4. * @type {Boolean}
  5. * @default show = true
  6. */
  7. show: true,
  8. /**
  9. * @description Legend orient
  10. * @type {String}
  11. * @default orient = 'horizontal'
  12. * @example orient = 'horizontal' | 'vertical'
  13. */
  14. orient: 'horizontal',
  15. /**
  16. * @description Legend left
  17. * @type {String|Number}
  18. * @default left = 'auto'
  19. * @example left = 'auto' | '10%' | 10
  20. */
  21. left: 'auto',
  22. /**
  23. * @description Legend right
  24. * @type {String|Number}
  25. * @default right = 'auto'
  26. * @example right = 'auto' | '10%' | 10
  27. */
  28. right: 'auto',
  29. /**
  30. * @description Legend top
  31. * @type {String|Number}
  32. * @default top = 'auto'
  33. * @example top = 'auto' | '10%' | 10
  34. */
  35. top: 'auto',
  36. /**
  37. * @description Legend bottom
  38. * @type {String|Number}
  39. * @default bottom = 'auto'
  40. * @example bottom = 'auto' | '10%' | 10
  41. */
  42. bottom: 'auto',
  43. /**
  44. * @description Legend item gap
  45. * @type {Number}
  46. * @default itemGap = 10
  47. */
  48. itemGap: 10,
  49. /**
  50. * @description Icon width
  51. * @type {Number}
  52. * @default iconWidth = 25
  53. */
  54. iconWidth: 25,
  55. /**
  56. * @description Icon height
  57. * @type {Number}
  58. * @default iconHeight = 10
  59. */
  60. iconHeight: 10,
  61. /**
  62. * @description Whether legend is optional
  63. * @type {Boolean}
  64. * @default selectAble = true
  65. */
  66. selectAble: true,
  67. /**
  68. * @description Legend data
  69. * @type {Array}
  70. * @default data = []
  71. */
  72. data: [],
  73. /**
  74. * @description Legend text default style configuration
  75. * @type {Object}
  76. * @default style = {Configuration Of Class Style}
  77. */
  78. textStyle: {
  79. fontFamily: 'Arial',
  80. fontSize: 13,
  81. fill: '#000'
  82. },
  83. /**
  84. * @description Legend icon default style configuration
  85. * @type {Object}
  86. * @default style = {Configuration Of Class Style}
  87. */
  88. iconStyle: {
  89. },
  90. /**
  91. * @description Legend text unselected default style configuration
  92. * @type {Object}
  93. * @default style = {Configuration Of Class Style}
  94. */
  95. textUnselectedStyle: {
  96. fontFamily: 'Arial',
  97. fontSize: 13,
  98. fill: '#999'
  99. },
  100. /**
  101. * @description Legend icon unselected default style configuration
  102. * @type {Object}
  103. * @default style = {Configuration Of Class Style}
  104. */
  105. iconUnselectedStyle: {
  106. fill: '#999'
  107. },
  108. /**
  109. * @description Legend render level
  110. * Priority rendering high level
  111. * @type {Number}
  112. * @default rLevel = 20
  113. */
  114. rLevel: 20,
  115. /**
  116. * @description Legend animation curve
  117. * @type {String}
  118. * @default animationCurve = 'easeOutCubic'
  119. */
  120. animationCurve: 'easeOutCubic',
  121. /**
  122. * @description Legend animation frame
  123. * @type {Number}
  124. * @default animationFrame = 50
  125. */
  126. animationFrame: 50
  127. }