0310e15816a972248d30a5ef95d6bf8bc57516e1e4236913221556050010af63f9568fc9104efc04501979e991fa8640f1d87740eacb795bcf76f0dfaec99e 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.yAxisConfig = exports.xAxisConfig = void 0;
  6. var xAxisConfig = {
  7. /**
  8. * @description Axis name
  9. * @type {String}
  10. * @default name = ''
  11. */
  12. name: '',
  13. /**
  14. * @description Whether to display this axis
  15. * @type {Boolean}
  16. * @default show = true
  17. */
  18. show: true,
  19. /**
  20. * @description Axis position
  21. * @type {String}
  22. * @default position = 'bottom'
  23. * @example position = 'bottom' | 'top'
  24. */
  25. position: 'bottom',
  26. /**
  27. * @description Name gap
  28. * @type {Number}
  29. * @default nameGap = 15
  30. */
  31. nameGap: 15,
  32. /**
  33. * @description Name location
  34. * @type {String}
  35. * @default nameLocation = 'end'
  36. * @example nameLocation = 'end' | 'center' | 'start'
  37. */
  38. nameLocation: 'end',
  39. /**
  40. * @description Name default style configuration
  41. * @type {Object}
  42. * @default style = {Configuration Of Class Style}
  43. */
  44. nameTextStyle: {
  45. fill: '#333',
  46. fontSize: 10
  47. },
  48. /**
  49. * @description Axis min value
  50. * @type {String|Number}
  51. * @default min = '20%'
  52. * @example min = '20%' | 0
  53. */
  54. min: '20%',
  55. /**
  56. * @description Axis max value
  57. * @type {String|Number}
  58. * @default max = '20%'
  59. * @example max = '20%' | 0
  60. */
  61. max: '20%',
  62. /**
  63. * @description Axis value interval
  64. * @type {Number}
  65. * @default interval = null
  66. * @example interval = 100
  67. */
  68. interval: null,
  69. /**
  70. * @description Min interval
  71. * @type {Number}
  72. * @default minInterval = null
  73. * @example minInterval = 1
  74. */
  75. minInterval: null,
  76. /**
  77. * @description Max interval
  78. * @type {Number}
  79. * @default maxInterval = null
  80. * @example maxInterval = 100
  81. */
  82. maxInterval: null,
  83. /**
  84. * @description Boundary gap
  85. * @type {Boolean}
  86. * @default boundaryGap = null
  87. * @example boundaryGap = true
  88. */
  89. boundaryGap: null,
  90. /**
  91. * @description Axis split number
  92. * @type {Number}
  93. * @default splitNumber = 5
  94. */
  95. splitNumber: 5,
  96. /**
  97. * @description Axis line configuration
  98. * @type {Object}
  99. */
  100. axisLine: {
  101. /**
  102. * @description Whether to display axis line
  103. * @type {Boolean}
  104. * @default show = true
  105. */
  106. show: true,
  107. /**
  108. * @description Axis line default style configuration
  109. * @type {Object}
  110. * @default style = {Configuration Of Class Style}
  111. */
  112. style: {
  113. stroke: '#333',
  114. lineWidth: 1
  115. }
  116. },
  117. /**
  118. * @description Axis tick configuration
  119. * @type {Object}
  120. */
  121. axisTick: {
  122. /**
  123. * @description Whether to display axis tick
  124. * @type {Boolean}
  125. * @default show = true
  126. */
  127. show: true,
  128. /**
  129. * @description Axis tick default style configuration
  130. * @type {Object}
  131. * @default style = {Configuration Of Class Style}
  132. */
  133. style: {
  134. stroke: '#333',
  135. lineWidth: 1
  136. }
  137. },
  138. /**
  139. * @description Axis label configuration
  140. * @type {Object}
  141. */
  142. axisLabel: {
  143. /**
  144. * @description Whether to display axis label
  145. * @type {Boolean}
  146. * @default show = true
  147. */
  148. show: true,
  149. /**
  150. * @description Axis label formatter
  151. * @type {String|Function}
  152. * @default formatter = null
  153. * @example formatter = '{value}件'
  154. * @example formatter = (dataItem) => (dataItem.value)
  155. */
  156. formatter: null,
  157. /**
  158. * @description Axis label default style configuration
  159. * @type {Object}
  160. * @default style = {Configuration Of Class Style}
  161. */
  162. style: {
  163. fill: '#333',
  164. fontSize: 10,
  165. rotate: 0
  166. }
  167. },
  168. /**
  169. * @description Axis split line configuration
  170. * @type {Object}
  171. */
  172. splitLine: {
  173. /**
  174. * @description Whether to display axis split line
  175. * @type {Boolean}
  176. * @default show = false
  177. */
  178. show: false,
  179. /**
  180. * @description Axis split line default style configuration
  181. * @type {Object}
  182. * @default style = {Configuration Of Class Style}
  183. */
  184. style: {
  185. stroke: '#d4d4d4',
  186. lineWidth: 1
  187. }
  188. },
  189. /**
  190. * @description X axis render level
  191. * Priority rendering high level
  192. * @type {Number}
  193. * @default rLevel = -20
  194. */
  195. rLevel: -20,
  196. /**
  197. * @description X axis animation curve
  198. * @type {String}
  199. * @default animationCurve = 'easeOutCubic'
  200. */
  201. animationCurve: 'easeOutCubic',
  202. /**
  203. * @description X axis animation frame
  204. * @type {Number}
  205. * @default animationFrame = 50
  206. */
  207. animationFrame: 50
  208. };
  209. exports.xAxisConfig = xAxisConfig;
  210. var yAxisConfig = {
  211. /**
  212. * @description Axis name
  213. * @type {String}
  214. * @default name = ''
  215. */
  216. name: '',
  217. /**
  218. * @description Whether to display this axis
  219. * @type {Boolean}
  220. * @default show = true
  221. */
  222. show: true,
  223. /**
  224. * @description Axis position
  225. * @type {String}
  226. * @default position = 'left'
  227. * @example position = 'left' | 'right'
  228. */
  229. position: 'left',
  230. /**
  231. * @description Name gap
  232. * @type {Number}
  233. * @default nameGap = 15
  234. */
  235. nameGap: 15,
  236. /**
  237. * @description Name location
  238. * @type {String}
  239. * @default nameLocation = 'end'
  240. * @example nameLocation = 'end' | 'center' | 'start'
  241. */
  242. nameLocation: 'end',
  243. /**
  244. * @description name default style configuration
  245. * @type {Object}
  246. * @default style = {Configuration Of Class Style}
  247. */
  248. nameTextStyle: {
  249. fill: '#333',
  250. fontSize: 10
  251. },
  252. /**
  253. * @description Axis min value
  254. * @type {String|Number}
  255. * @default min = '20%'
  256. * @example min = '20%' | 0
  257. */
  258. min: '20%',
  259. /**
  260. * @description Axis max value
  261. * @type {String|Number}
  262. * @default max = '20%'
  263. * @example max = '20%' | 0
  264. */
  265. max: '20%',
  266. /**
  267. * @description Axis value interval
  268. * @type {Number}
  269. * @default interval = null
  270. * @example interval = 100
  271. */
  272. interval: null,
  273. /**
  274. * @description Min interval
  275. * @type {Number}
  276. * @default minInterval = null
  277. * @example minInterval = 1
  278. */
  279. minInterval: null,
  280. /**
  281. * @description Max interval
  282. * @type {Number}
  283. * @default maxInterval = null
  284. * @example maxInterval = 100
  285. */
  286. maxInterval: null,
  287. /**
  288. * @description Boundary gap
  289. * @type {Boolean}
  290. * @default boundaryGap = null
  291. * @example boundaryGap = true
  292. */
  293. boundaryGap: null,
  294. /**
  295. * @description Axis split number
  296. * @type {Number}
  297. * @default splitNumber = 5
  298. */
  299. splitNumber: 5,
  300. /**
  301. * @description Axis line configuration
  302. * @type {Object}
  303. */
  304. axisLine: {
  305. /**
  306. * @description Whether to display axis line
  307. * @type {Boolean}
  308. * @default show = true
  309. */
  310. show: true,
  311. /**
  312. * @description Axis line default style configuration
  313. * @type {Object}
  314. * @default style = {Configuration Of Class Style}
  315. */
  316. style: {
  317. stroke: '#333',
  318. lineWidth: 1
  319. }
  320. },
  321. /**
  322. * @description Axis tick configuration
  323. * @type {Object}
  324. */
  325. axisTick: {
  326. /**
  327. * @description Whether to display axis tick
  328. * @type {Boolean}
  329. * @default show = true
  330. */
  331. show: true,
  332. /**
  333. * @description Axis tick default style configuration
  334. * @type {Object}
  335. * @default style = {Configuration Of Class Style}
  336. */
  337. style: {
  338. stroke: '#333',
  339. lineWidth: 1
  340. }
  341. },
  342. /**
  343. * @description Axis label configuration
  344. * @type {Object}
  345. */
  346. axisLabel: {
  347. /**
  348. * @description Whether to display axis label
  349. * @type {Boolean}
  350. * @default show = true
  351. */
  352. show: true,
  353. /**
  354. * @description Axis label formatter
  355. * @type {String|Function}
  356. * @default formatter = null
  357. * @example formatter = '{value}件'
  358. * @example formatter = (dataItem) => (dataItem.value)
  359. */
  360. formatter: null,
  361. /**
  362. * @description Axis label default style configuration
  363. * @type {Object}
  364. * @default style = {Configuration Of Class Style}
  365. */
  366. style: {
  367. fill: '#333',
  368. fontSize: 10,
  369. rotate: 0
  370. }
  371. },
  372. /**
  373. * @description Axis split line configuration
  374. * @type {Object}
  375. */
  376. splitLine: {
  377. /**
  378. * @description Whether to display axis split line
  379. * @type {Boolean}
  380. * @default show = true
  381. */
  382. show: true,
  383. /**
  384. * @description Axis split line default style configuration
  385. * @type {Object}
  386. * @default style = {Configuration Of Class Style}
  387. */
  388. style: {
  389. stroke: '#d4d4d4',
  390. lineWidth: 1
  391. }
  392. },
  393. /**
  394. * @description Y axis render level
  395. * Priority rendering high level
  396. * @type {Number}
  397. * @default rLevel = -20
  398. */
  399. rLevel: -20,
  400. /**
  401. * @description Y axis animation curve
  402. * @type {String}
  403. * @default animationCurve = 'easeOutCubic'
  404. */
  405. animationCurve: 'easeOutCubic',
  406. /**
  407. * @description Y axis animation frame
  408. * @type {Number}
  409. * @default animationFrame = 50
  410. */
  411. animationFrame: 50
  412. };
  413. exports.yAxisConfig = yAxisConfig;