558568ef6b9214287c2d1c1a679072610c0671473c41439dd12c926d00596f2e9e02fcef884329031cafefb565cb8554f48a36538186e765541e570c7009ca 2.8 KB

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