@antv/g2 5.0.0-beta.4 → 5.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (576) hide show
  1. package/dist/g2-lite.min.js +5 -2
  2. package/dist/g2.min.js +5 -2
  3. package/esm/api/chart.d.ts +4 -0
  4. package/esm/api/chart.js +26 -4
  5. package/esm/api/chart.js.map +1 -1
  6. package/esm/api/mark/mark.js +1 -2
  7. package/esm/api/mark/mark.js.map +1 -1
  8. package/esm/api/mark/types.d.ts +1 -2
  9. package/esm/component/axis.js +23 -9
  10. package/esm/component/axis.js.map +1 -1
  11. package/esm/component/index.d.ts +2 -0
  12. package/esm/component/index.js +2 -0
  13. package/esm/component/index.js.map +1 -1
  14. package/esm/component/scrollbar.d.ts +9 -0
  15. package/esm/component/scrollbar.js +36 -0
  16. package/esm/component/scrollbar.js.map +1 -0
  17. package/esm/component/scrollbarX.d.ts +7 -0
  18. package/esm/component/scrollbarX.js +9 -0
  19. package/esm/component/scrollbarX.js.map +1 -0
  20. package/esm/component/scrollbarY.d.ts +7 -0
  21. package/esm/component/scrollbarY.js +9 -0
  22. package/esm/component/scrollbarY.js.map +1 -0
  23. package/esm/component/slider.js +2 -4
  24. package/esm/component/slider.js.map +1 -1
  25. package/esm/component/title.js +46 -22
  26. package/esm/component/title.js.map +1 -1
  27. package/esm/composition/mark.js +2 -1
  28. package/esm/composition/mark.js.map +1 -1
  29. package/esm/data/fold.js +4 -10
  30. package/esm/data/fold.js.map +1 -1
  31. package/esm/data/index.d.ts +2 -2
  32. package/esm/data/index.js +1 -1
  33. package/esm/data/index.js.map +1 -1
  34. package/esm/data/pick.js +10 -2
  35. package/esm/data/pick.js.map +1 -1
  36. package/esm/data/slice.d.ts +8 -0
  37. package/esm/data/slice.js +10 -0
  38. package/esm/data/slice.js.map +1 -0
  39. package/esm/interaction/builtin/brushHighlight.d.ts +1 -1
  40. package/esm/interaction/index.d.ts +8 -0
  41. package/esm/interaction/index.js +7 -30
  42. package/esm/interaction/index.js.map +1 -1
  43. package/esm/interaction/native/brushAxisHighlight.d.ts +26 -0
  44. package/esm/interaction/native/brushAxisHighlight.js +159 -0
  45. package/esm/interaction/native/brushAxisHighlight.js.map +1 -0
  46. package/esm/interaction/native/brushFilter.d.ts +12 -0
  47. package/esm/interaction/native/brushFilter.js +147 -0
  48. package/esm/interaction/native/brushFilter.js.map +1 -0
  49. package/esm/interaction/native/brushHighlight.d.ts +40 -0
  50. package/esm/interaction/native/brushHighlight.js +341 -0
  51. package/esm/interaction/native/brushHighlight.js.map +1 -0
  52. package/esm/interaction/native/brushXFilter.d.ts +1 -0
  53. package/esm/interaction/native/brushXFilter.js +6 -0
  54. package/esm/interaction/native/brushXFilter.js.map +1 -0
  55. package/esm/interaction/native/brushXHighlight.d.ts +6 -0
  56. package/esm/interaction/native/brushXHighlight.js +9 -0
  57. package/esm/interaction/native/brushXHighlight.js.map +1 -0
  58. package/esm/interaction/native/brushYFilter.d.ts +1 -0
  59. package/esm/interaction/native/brushYFilter.js +6 -0
  60. package/esm/interaction/native/brushYFilter.js.map +1 -0
  61. package/esm/interaction/native/brushYHighlight.d.ts +6 -0
  62. package/esm/interaction/native/brushYHighlight.js +9 -0
  63. package/esm/interaction/native/brushYHighlight.js.map +1 -0
  64. package/esm/interaction/native/legendFilter.js +3 -12
  65. package/esm/interaction/native/legendFilter.js.map +1 -1
  66. package/esm/interaction/native/tooltip.js +101 -32
  67. package/esm/interaction/native/tooltip.js.map +1 -1
  68. package/esm/interaction/native/utils.d.ts +8 -0
  69. package/esm/interaction/native/utils.js +31 -0
  70. package/esm/interaction/native/utils.js.map +1 -1
  71. package/esm/label-transform/contrastReverse.d.ts +9 -0
  72. package/esm/label-transform/contrastReverse.js +48 -0
  73. package/esm/label-transform/contrastReverse.js.map +1 -0
  74. package/esm/label-transform/index.d.ts +8 -8
  75. package/esm/label-transform/index.js +4 -4
  76. package/esm/label-transform/index.js.map +1 -1
  77. package/esm/label-transform/overflowHide.d.ts +7 -0
  78. package/esm/label-transform/overflowHide.js +18 -0
  79. package/esm/label-transform/overflowHide.js.map +1 -0
  80. package/esm/label-transform/overlapDodgeY.d.ts +7 -0
  81. package/esm/label-transform/{dodgeY.js → overlapDodgeY.js} +4 -4
  82. package/esm/label-transform/overlapDodgeY.js.map +1 -0
  83. package/esm/label-transform/overlapHide.d.ts +7 -0
  84. package/esm/label-transform/overlapHide.js +24 -0
  85. package/esm/label-transform/overlapHide.js.map +1 -0
  86. package/esm/mark/area.js +1 -1
  87. package/esm/mark/area.js.map +1 -1
  88. package/esm/mark/boxplot.js +5 -18
  89. package/esm/mark/boxplot.js.map +1 -1
  90. package/esm/runtime/component.js +33 -38
  91. package/esm/runtime/component.js.map +1 -1
  92. package/esm/runtime/layout.js +7 -7
  93. package/esm/runtime/layout.js.map +1 -1
  94. package/esm/runtime/plot.js +28 -6
  95. package/esm/runtime/plot.js.map +1 -1
  96. package/esm/runtime/render.d.ts +0 -1
  97. package/esm/runtime/render.js +4 -34
  98. package/esm/runtime/render.js.map +1 -1
  99. package/esm/runtime/scale.js +17 -5
  100. package/esm/runtime/scale.js.map +1 -1
  101. package/esm/runtime/transform.js +16 -6
  102. package/esm/runtime/transform.js.map +1 -1
  103. package/esm/runtime/types/common.d.ts +27 -9
  104. package/esm/runtime/types/options.d.ts +3 -5
  105. package/esm/runtime/types/theme.d.ts +2 -5
  106. package/esm/shape/area/curve.js +15 -8
  107. package/esm/shape/area/curve.js.map +1 -1
  108. package/esm/shape/box/box.js +1 -1
  109. package/esm/shape/box/box.js.map +1 -1
  110. package/esm/shape/connector/connector.js +2 -2
  111. package/esm/shape/connector/connector.js.map +1 -1
  112. package/esm/shape/image/image.js +2 -2
  113. package/esm/shape/image/image.js.map +1 -1
  114. package/esm/shape/interval/color.js +3 -1
  115. package/esm/shape/interval/color.js.map +1 -1
  116. package/esm/shape/label/label.js +3 -3
  117. package/esm/shape/label/label.js.map +1 -1
  118. package/esm/shape/label/position/area.d.ts +13 -0
  119. package/esm/shape/label/position/area.js +28 -0
  120. package/esm/shape/label/position/area.js.map +1 -0
  121. package/esm/shape/label/position/bottom.d.ts +1 -0
  122. package/esm/shape/label/position/bottom.js +2 -0
  123. package/esm/shape/label/position/bottom.js.map +1 -0
  124. package/esm/shape/label/position/bottomLeft.d.ts +1 -0
  125. package/esm/shape/label/position/bottomLeft.js +2 -0
  126. package/esm/shape/label/position/bottomLeft.js.map +1 -0
  127. package/esm/shape/label/position/bottomRight.d.ts +1 -0
  128. package/esm/shape/label/position/bottomRight.js +2 -0
  129. package/esm/shape/label/position/bottomRight.js.map +1 -0
  130. package/esm/shape/label/position/default.d.ts +18 -0
  131. package/esm/shape/label/position/default.js +107 -0
  132. package/esm/shape/label/position/default.js.map +1 -0
  133. package/esm/shape/label/position/index.d.ts +13 -0
  134. package/esm/shape/label/position/index.js +14 -0
  135. package/esm/shape/label/position/index.js.map +1 -0
  136. package/esm/shape/label/position/inside.d.ts +1 -0
  137. package/esm/shape/label/position/inside.js +2 -0
  138. package/esm/shape/label/position/inside.js.map +1 -0
  139. package/esm/shape/label/position/left.d.ts +1 -0
  140. package/esm/shape/label/position/left.js +2 -0
  141. package/esm/shape/label/position/left.js.map +1 -0
  142. package/esm/shape/label/position/outside.d.ts +18 -0
  143. package/esm/shape/label/position/outside.js +67 -0
  144. package/esm/shape/label/position/outside.js.map +1 -0
  145. package/esm/shape/label/position/right.d.ts +1 -0
  146. package/esm/shape/label/position/right.js +2 -0
  147. package/esm/shape/label/position/right.js.map +1 -0
  148. package/esm/shape/label/position/spider.d.ts +7 -0
  149. package/esm/shape/label/position/spider.js +34 -0
  150. package/esm/shape/label/position/spider.js.map +1 -0
  151. package/esm/shape/label/position/surround.d.ts +7 -0
  152. package/esm/shape/label/position/surround.js +35 -0
  153. package/esm/shape/label/position/surround.js.map +1 -0
  154. package/esm/shape/label/position/top.d.ts +1 -0
  155. package/esm/shape/label/position/top.js +2 -0
  156. package/esm/shape/label/position/top.js.map +1 -0
  157. package/esm/shape/label/position/topLeft.d.ts +1 -0
  158. package/esm/shape/label/position/topLeft.js +2 -0
  159. package/esm/shape/label/position/topLeft.js.map +1 -0
  160. package/esm/shape/label/position/topRight.d.ts +1 -0
  161. package/esm/shape/label/position/topRight.js +2 -0
  162. package/esm/shape/label/position/topRight.js.map +1 -0
  163. package/esm/shape/line/curve.js +1 -1
  164. package/esm/shape/line/curve.js.map +1 -1
  165. package/esm/shape/lineXY/line.js +2 -2
  166. package/esm/shape/lineXY/line.js.map +1 -1
  167. package/esm/shape/link/arc.js +2 -2
  168. package/esm/shape/link/arc.js.map +1 -1
  169. package/esm/shape/link/link.js +2 -2
  170. package/esm/shape/link/link.js.map +1 -1
  171. package/esm/shape/link/smooth.js +2 -2
  172. package/esm/shape/link/smooth.js.map +1 -1
  173. package/esm/shape/link/vhv.js +2 -2
  174. package/esm/shape/link/vhv.js.map +1 -1
  175. package/esm/shape/point/color.js +1 -1
  176. package/esm/shape/point/color.js.map +1 -1
  177. package/esm/shape/polygon/polygon.js +3 -3
  178. package/esm/shape/polygon/polygon.js.map +1 -1
  179. package/esm/shape/polygon/ribbon.js +3 -3
  180. package/esm/shape/polygon/ribbon.js.map +1 -1
  181. package/esm/shape/text/advance.js +1 -1
  182. package/esm/shape/text/advance.js.map +1 -1
  183. package/esm/shape/text/badge.js +3 -3
  184. package/esm/shape/text/badge.js.map +1 -1
  185. package/esm/shape/text/text.js +1 -1
  186. package/esm/shape/text/text.js.map +1 -1
  187. package/esm/shape/utils.d.ts +4 -0
  188. package/esm/shape/utils.js +6 -1
  189. package/esm/shape/utils.js.map +1 -1
  190. package/esm/shape/vector/vector.js +3 -3
  191. package/esm/shape/vector/vector.js.map +1 -1
  192. package/esm/spec/composition.d.ts +2 -0
  193. package/esm/spec/data.d.ts +24 -9
  194. package/esm/spec/geometry.d.ts +2 -1
  195. package/esm/spec/interaction.d.ts +41 -6
  196. package/esm/spec/labelTransform.d.ts +24 -11
  197. package/esm/spec/theme.d.ts +5 -2
  198. package/esm/stdlib/index.js +8 -9
  199. package/esm/stdlib/index.js.map +1 -1
  200. package/esm/theme/academy.d.ts +3 -0
  201. package/esm/theme/academy.js +398 -0
  202. package/esm/theme/academy.js.map +1 -0
  203. package/esm/theme/dark.js +14 -20
  204. package/esm/theme/dark.js.map +1 -1
  205. package/esm/theme/index.d.ts +1 -0
  206. package/esm/theme/index.js +1 -0
  207. package/esm/theme/index.js.map +1 -1
  208. package/esm/theme/light.js +29 -22
  209. package/esm/theme/light.js.map +1 -1
  210. package/esm/transform/maybeTooltip.js +3 -1
  211. package/esm/transform/maybeTooltip.js.map +1 -1
  212. package/esm/utils/bounds.d.ts +26 -0
  213. package/esm/utils/bounds.js +41 -0
  214. package/esm/utils/bounds.js.map +1 -0
  215. package/esm/utils/color.d.ts +6 -0
  216. package/esm/utils/color.js +7 -0
  217. package/esm/utils/color.js.map +1 -0
  218. package/esm/utils/coordinate.d.ts +1 -0
  219. package/esm/utils/coordinate.js +12 -0
  220. package/esm/utils/coordinate.js.map +1 -1
  221. package/esm/utils/helper.d.ts +1 -0
  222. package/esm/utils/helper.js +3 -0
  223. package/esm/utils/helper.js.map +1 -1
  224. package/lib/api/chart.d.ts +4 -0
  225. package/lib/api/chart.js +26 -4
  226. package/lib/api/chart.js.map +1 -1
  227. package/lib/api/mark/mark.js +1 -2
  228. package/lib/api/mark/mark.js.map +1 -1
  229. package/lib/api/mark/types.d.ts +1 -2
  230. package/lib/component/axis.js +23 -9
  231. package/lib/component/axis.js.map +1 -1
  232. package/lib/component/index.d.ts +2 -0
  233. package/lib/component/index.js +5 -1
  234. package/lib/component/index.js.map +1 -1
  235. package/lib/component/scrollbar.d.ts +9 -0
  236. package/lib/component/scrollbar.js +40 -0
  237. package/lib/component/scrollbar.js.map +1 -0
  238. package/lib/component/scrollbarX.d.ts +7 -0
  239. package/lib/component/scrollbarX.js +13 -0
  240. package/lib/component/scrollbarX.js.map +1 -0
  241. package/lib/component/scrollbarY.d.ts +7 -0
  242. package/lib/component/scrollbarY.js +13 -0
  243. package/lib/component/scrollbarY.js.map +1 -0
  244. package/lib/component/slider.js +2 -4
  245. package/lib/component/slider.js.map +1 -1
  246. package/lib/component/title.js +46 -22
  247. package/lib/component/title.js.map +1 -1
  248. package/lib/composition/mark.js +2 -1
  249. package/lib/composition/mark.js.map +1 -1
  250. package/lib/data/fold.js +4 -10
  251. package/lib/data/fold.js.map +1 -1
  252. package/lib/data/index.d.ts +2 -2
  253. package/lib/data/index.js +3 -3
  254. package/lib/data/index.js.map +1 -1
  255. package/lib/data/pick.js +10 -2
  256. package/lib/data/pick.js.map +1 -1
  257. package/lib/data/slice.d.ts +8 -0
  258. package/lib/data/slice.js +14 -0
  259. package/lib/data/slice.js.map +1 -0
  260. package/lib/interaction/builtin/brushHighlight.d.ts +1 -1
  261. package/lib/interaction/index.d.ts +8 -0
  262. package/lib/interaction/index.js +15 -31
  263. package/lib/interaction/index.js.map +1 -1
  264. package/lib/interaction/native/brushAxisHighlight.d.ts +26 -0
  265. package/lib/interaction/native/brushAxisHighlight.js +164 -0
  266. package/lib/interaction/native/brushAxisHighlight.js.map +1 -0
  267. package/lib/interaction/native/brushFilter.d.ts +12 -0
  268. package/lib/interaction/native/brushFilter.js +152 -0
  269. package/lib/interaction/native/brushFilter.js.map +1 -0
  270. package/lib/interaction/native/brushHighlight.d.ts +40 -0
  271. package/lib/interaction/native/brushHighlight.js +347 -0
  272. package/lib/interaction/native/brushHighlight.js.map +1 -0
  273. package/lib/interaction/native/brushXFilter.d.ts +1 -0
  274. package/lib/interaction/native/brushXFilter.js +10 -0
  275. package/lib/interaction/native/brushXFilter.js.map +1 -0
  276. package/lib/interaction/native/brushXHighlight.d.ts +6 -0
  277. package/lib/interaction/native/brushXHighlight.js +14 -0
  278. package/lib/interaction/native/brushXHighlight.js.map +1 -0
  279. package/lib/interaction/native/brushYFilter.d.ts +1 -0
  280. package/lib/interaction/native/brushYFilter.js +10 -0
  281. package/lib/interaction/native/brushYFilter.js.map +1 -0
  282. package/lib/interaction/native/brushYHighlight.d.ts +6 -0
  283. package/lib/interaction/native/brushYHighlight.js +14 -0
  284. package/lib/interaction/native/brushYHighlight.js.map +1 -0
  285. package/lib/interaction/native/legendFilter.js +4 -13
  286. package/lib/interaction/native/legendFilter.js.map +1 -1
  287. package/lib/interaction/native/tooltip.js +98 -29
  288. package/lib/interaction/native/tooltip.js.map +1 -1
  289. package/lib/interaction/native/utils.d.ts +8 -0
  290. package/lib/interaction/native/utils.js +37 -1
  291. package/lib/interaction/native/utils.js.map +1 -1
  292. package/lib/label-transform/contrastReverse.d.ts +9 -0
  293. package/lib/label-transform/contrastReverse.js +52 -0
  294. package/lib/label-transform/contrastReverse.js.map +1 -0
  295. package/lib/label-transform/index.d.ts +8 -8
  296. package/lib/label-transform/index.js +9 -9
  297. package/lib/label-transform/index.js.map +1 -1
  298. package/lib/label-transform/overflowHide.d.ts +7 -0
  299. package/lib/label-transform/overflowHide.js +22 -0
  300. package/lib/label-transform/overflowHide.js.map +1 -0
  301. package/lib/label-transform/overlapDodgeY.d.ts +7 -0
  302. package/lib/label-transform/{dodgeY.js → overlapDodgeY.js} +6 -6
  303. package/lib/label-transform/overlapDodgeY.js.map +1 -0
  304. package/lib/label-transform/overlapHide.d.ts +7 -0
  305. package/lib/label-transform/overlapHide.js +28 -0
  306. package/lib/label-transform/overlapHide.js.map +1 -0
  307. package/lib/mark/area.js +1 -1
  308. package/lib/mark/area.js.map +1 -1
  309. package/lib/mark/boxplot.js +5 -18
  310. package/lib/mark/boxplot.js.map +1 -1
  311. package/lib/runtime/component.js +33 -38
  312. package/lib/runtime/component.js.map +1 -1
  313. package/lib/runtime/layout.js +7 -7
  314. package/lib/runtime/layout.js.map +1 -1
  315. package/lib/runtime/plot.js +28 -6
  316. package/lib/runtime/plot.js.map +1 -1
  317. package/lib/runtime/render.d.ts +0 -1
  318. package/lib/runtime/render.js +4 -35
  319. package/lib/runtime/render.js.map +1 -1
  320. package/lib/runtime/scale.js +16 -4
  321. package/lib/runtime/scale.js.map +1 -1
  322. package/lib/runtime/transform.js +16 -6
  323. package/lib/runtime/transform.js.map +1 -1
  324. package/lib/runtime/types/common.d.ts +27 -9
  325. package/lib/runtime/types/options.d.ts +3 -5
  326. package/lib/runtime/types/theme.d.ts +2 -5
  327. package/lib/shape/area/curve.js +14 -7
  328. package/lib/shape/area/curve.js.map +1 -1
  329. package/lib/shape/box/box.js +1 -1
  330. package/lib/shape/box/box.js.map +1 -1
  331. package/lib/shape/connector/connector.js +2 -2
  332. package/lib/shape/connector/connector.js.map +1 -1
  333. package/lib/shape/image/image.js +2 -2
  334. package/lib/shape/image/image.js.map +1 -1
  335. package/lib/shape/interval/color.js +3 -1
  336. package/lib/shape/interval/color.js.map +1 -1
  337. package/lib/shape/label/label.js +3 -3
  338. package/lib/shape/label/label.js.map +1 -1
  339. package/lib/shape/label/position/area.d.ts +13 -0
  340. package/lib/shape/label/position/area.js +32 -0
  341. package/lib/shape/label/position/area.js.map +1 -0
  342. package/lib/shape/label/position/bottom.d.ts +1 -0
  343. package/lib/shape/label/position/bottom.js +6 -0
  344. package/lib/shape/label/position/bottom.js.map +1 -0
  345. package/lib/shape/label/position/bottomLeft.d.ts +1 -0
  346. package/lib/shape/label/position/bottomLeft.js +6 -0
  347. package/lib/shape/label/position/bottomLeft.js.map +1 -0
  348. package/lib/shape/label/position/bottomRight.d.ts +1 -0
  349. package/lib/shape/label/position/bottomRight.js +6 -0
  350. package/lib/shape/label/position/bottomRight.js.map +1 -0
  351. package/lib/shape/label/position/default.d.ts +18 -0
  352. package/lib/shape/label/{position.js → position/default.js} +24 -81
  353. package/lib/shape/label/position/default.js.map +1 -0
  354. package/lib/shape/label/position/index.d.ts +13 -0
  355. package/lib/shape/label/position/index.js +30 -0
  356. package/lib/shape/label/position/index.js.map +1 -0
  357. package/lib/shape/label/position/inside.d.ts +1 -0
  358. package/lib/shape/label/position/inside.js +6 -0
  359. package/lib/shape/label/position/inside.js.map +1 -0
  360. package/lib/shape/label/position/left.d.ts +1 -0
  361. package/lib/shape/label/position/left.js +6 -0
  362. package/lib/shape/label/position/left.js.map +1 -0
  363. package/lib/shape/label/position/outside.d.ts +18 -0
  364. package/lib/shape/label/position/outside.js +75 -0
  365. package/lib/shape/label/position/outside.js.map +1 -0
  366. package/lib/shape/label/position/right.d.ts +1 -0
  367. package/lib/shape/label/position/right.js +6 -0
  368. package/lib/shape/label/position/right.js.map +1 -0
  369. package/lib/shape/label/position/spider.d.ts +7 -0
  370. package/lib/shape/label/position/spider.js +38 -0
  371. package/lib/shape/label/position/spider.js.map +1 -0
  372. package/lib/shape/label/position/surround.d.ts +7 -0
  373. package/lib/shape/label/position/surround.js +39 -0
  374. package/lib/shape/label/position/surround.js.map +1 -0
  375. package/lib/shape/label/position/top.d.ts +1 -0
  376. package/lib/shape/label/position/top.js +6 -0
  377. package/lib/shape/label/position/top.js.map +1 -0
  378. package/lib/shape/label/position/topLeft.d.ts +1 -0
  379. package/lib/shape/label/position/topLeft.js +6 -0
  380. package/lib/shape/label/position/topLeft.js.map +1 -0
  381. package/lib/shape/label/position/topRight.d.ts +1 -0
  382. package/lib/shape/label/position/topRight.js +6 -0
  383. package/lib/shape/label/position/topRight.js.map +1 -0
  384. package/lib/shape/line/curve.js +1 -1
  385. package/lib/shape/line/curve.js.map +1 -1
  386. package/lib/shape/lineXY/line.js +2 -2
  387. package/lib/shape/lineXY/line.js.map +1 -1
  388. package/lib/shape/link/arc.js +2 -2
  389. package/lib/shape/link/arc.js.map +1 -1
  390. package/lib/shape/link/link.js +2 -2
  391. package/lib/shape/link/link.js.map +1 -1
  392. package/lib/shape/link/smooth.js +2 -2
  393. package/lib/shape/link/smooth.js.map +1 -1
  394. package/lib/shape/link/vhv.js +2 -2
  395. package/lib/shape/link/vhv.js.map +1 -1
  396. package/lib/shape/point/color.js +1 -1
  397. package/lib/shape/point/color.js.map +1 -1
  398. package/lib/shape/polygon/polygon.js +3 -3
  399. package/lib/shape/polygon/polygon.js.map +1 -1
  400. package/lib/shape/polygon/ribbon.js +3 -3
  401. package/lib/shape/polygon/ribbon.js.map +1 -1
  402. package/lib/shape/text/advance.js +1 -1
  403. package/lib/shape/text/advance.js.map +1 -1
  404. package/lib/shape/text/badge.js +3 -3
  405. package/lib/shape/text/badge.js.map +1 -1
  406. package/lib/shape/text/text.js +1 -1
  407. package/lib/shape/text/text.js.map +1 -1
  408. package/lib/shape/utils.d.ts +4 -0
  409. package/lib/shape/utils.js +6 -1
  410. package/lib/shape/utils.js.map +1 -1
  411. package/lib/shape/vector/vector.js +3 -3
  412. package/lib/shape/vector/vector.js.map +1 -1
  413. package/lib/spec/composition.d.ts +2 -0
  414. package/lib/spec/data.d.ts +24 -9
  415. package/lib/spec/geometry.d.ts +2 -1
  416. package/lib/spec/interaction.d.ts +41 -6
  417. package/lib/spec/labelTransform.d.ts +24 -11
  418. package/lib/spec/theme.d.ts +5 -2
  419. package/lib/stdlib/index.js +3 -4
  420. package/lib/stdlib/index.js.map +1 -1
  421. package/lib/theme/academy.d.ts +3 -0
  422. package/lib/theme/academy.js +402 -0
  423. package/lib/theme/academy.js.map +1 -0
  424. package/lib/theme/dark.js +14 -20
  425. package/lib/theme/dark.js.map +1 -1
  426. package/lib/theme/index.d.ts +1 -0
  427. package/lib/theme/index.js +3 -1
  428. package/lib/theme/index.js.map +1 -1
  429. package/lib/theme/light.js +29 -22
  430. package/lib/theme/light.js.map +1 -1
  431. package/lib/transform/maybeTooltip.js +3 -1
  432. package/lib/transform/maybeTooltip.js.map +1 -1
  433. package/lib/utils/bounds.d.ts +26 -0
  434. package/lib/utils/bounds.js +48 -0
  435. package/lib/utils/bounds.js.map +1 -0
  436. package/lib/utils/color.d.ts +6 -0
  437. package/lib/utils/color.js +11 -0
  438. package/lib/utils/color.js.map +1 -0
  439. package/lib/utils/coordinate.d.ts +1 -0
  440. package/lib/utils/coordinate.js +14 -1
  441. package/lib/utils/coordinate.js.map +1 -1
  442. package/lib/utils/helper.d.ts +1 -0
  443. package/lib/utils/helper.js +5 -1
  444. package/lib/utils/helper.js.map +1 -1
  445. package/package.json +2 -2
  446. package/src/api/chart.ts +29 -8
  447. package/src/api/mark/mark.ts +1 -2
  448. package/src/api/mark/types.ts +1 -2
  449. package/src/component/axis.ts +38 -16
  450. package/src/component/index.ts +2 -0
  451. package/src/component/scrollbar.ts +41 -0
  452. package/src/component/scrollbarX.ts +16 -0
  453. package/src/component/scrollbarY.ts +16 -0
  454. package/src/component/slider.ts +1 -3
  455. package/src/component/title.ts +69 -30
  456. package/src/composition/mark.ts +2 -0
  457. package/src/data/fold.ts +6 -10
  458. package/src/data/index.ts +2 -2
  459. package/src/data/pick.ts +11 -2
  460. package/src/data/slice.ts +15 -0
  461. package/src/interaction/index.ts +23 -16
  462. package/src/interaction/native/brushAxisHighlight.ts +194 -0
  463. package/src/interaction/native/brushFilter.ts +163 -0
  464. package/src/interaction/native/brushHighlight.ts +419 -0
  465. package/src/interaction/native/brushXFilter.ts +9 -0
  466. package/src/interaction/native/brushXHighlight.ts +13 -0
  467. package/src/interaction/native/brushYFilter.ts +9 -0
  468. package/src/interaction/native/brushYHighlight.ts +13 -0
  469. package/src/interaction/native/legendFilter.ts +3 -14
  470. package/src/interaction/native/tooltip.ts +128 -38
  471. package/src/interaction/native/utils.ts +40 -0
  472. package/src/label-transform/contrastReverse.ts +56 -0
  473. package/src/label-transform/index.ts +8 -8
  474. package/src/label-transform/overflowHide.ts +23 -0
  475. package/src/label-transform/{dodgeY.ts → overlapDodgeY.ts} +6 -6
  476. package/src/label-transform/overlapHide.ts +32 -0
  477. package/src/mark/area.ts +1 -1
  478. package/src/mark/boxplot.ts +3 -1
  479. package/src/runtime/component.ts +46 -47
  480. package/src/runtime/layout.ts +6 -6
  481. package/src/runtime/plot.ts +40 -6
  482. package/src/runtime/render.ts +6 -58
  483. package/src/runtime/scale.ts +15 -7
  484. package/src/runtime/transform.ts +19 -6
  485. package/src/runtime/types/common.ts +27 -10
  486. package/src/runtime/types/options.ts +3 -5
  487. package/src/runtime/types/theme.ts +2 -5
  488. package/src/shape/area/curve.ts +15 -8
  489. package/src/shape/box/box.ts +6 -6
  490. package/src/shape/connector/connector.ts +2 -3
  491. package/src/shape/image/image.ts +2 -2
  492. package/src/shape/interval/color.ts +2 -1
  493. package/src/shape/label/label.ts +4 -3
  494. package/src/shape/label/position/area.ts +39 -0
  495. package/src/shape/label/position/bottom.ts +1 -0
  496. package/src/shape/label/position/bottomLeft.ts +1 -0
  497. package/src/shape/label/position/bottomRight.ts +1 -0
  498. package/src/shape/label/{position.ts → position/default.ts} +26 -110
  499. package/src/shape/label/position/index.ts +13 -0
  500. package/src/shape/label/position/inside.ts +1 -0
  501. package/src/shape/label/position/left.ts +1 -0
  502. package/src/shape/label/position/outside.ts +121 -0
  503. package/src/shape/label/position/right.ts +1 -0
  504. package/src/shape/label/position/spider.ts +39 -0
  505. package/src/shape/label/position/surround.ts +40 -0
  506. package/src/shape/label/position/top.ts +1 -0
  507. package/src/shape/label/position/topLeft.ts +1 -0
  508. package/src/shape/label/position/topRight.ts +1 -0
  509. package/src/shape/line/curve.ts +1 -1
  510. package/src/shape/lineXY/line.ts +2 -2
  511. package/src/shape/link/arc.ts +2 -2
  512. package/src/shape/link/link.ts +2 -2
  513. package/src/shape/link/smooth.ts +2 -2
  514. package/src/shape/link/vhv.ts +2 -2
  515. package/src/shape/point/color.ts +6 -5
  516. package/src/shape/polygon/polygon.ts +3 -3
  517. package/src/shape/polygon/ribbon.ts +3 -3
  518. package/src/shape/text/advance.ts +4 -1
  519. package/src/shape/text/badge.ts +8 -3
  520. package/src/shape/text/text.ts +1 -1
  521. package/src/shape/utils.ts +6 -5
  522. package/src/shape/vector/vector.ts +3 -3
  523. package/src/spec/action.ts +0 -1
  524. package/src/spec/composition.ts +2 -0
  525. package/src/spec/data.ts +25 -10
  526. package/src/spec/geometry.ts +3 -1
  527. package/src/spec/interaction.ts +59 -5
  528. package/src/spec/labelTransform.ts +29 -11
  529. package/src/spec/theme.ts +6 -2
  530. package/src/stdlib/index.ts +33 -9
  531. package/src/theme/academy.ts +404 -0
  532. package/src/theme/dark.ts +14 -20
  533. package/src/theme/index.ts +1 -0
  534. package/src/theme/light.ts +29 -22
  535. package/src/transform/maybeTooltip.ts +3 -1
  536. package/src/utils/bounds.ts +52 -0
  537. package/src/utils/color.ts +12 -0
  538. package/src/utils/coordinate.ts +12 -0
  539. package/src/utils/helper.ts +4 -0
  540. package/esm/data/subset.d.ts +0 -7
  541. package/esm/data/subset.js +0 -26
  542. package/esm/data/subset.js.map +0 -1
  543. package/esm/label-transform/dodgeY.d.ts +0 -7
  544. package/esm/label-transform/dodgeY.js.map +0 -1
  545. package/esm/label-transform/hideOverlap.d.ts +0 -4
  546. package/esm/label-transform/hideOverlap.js +0 -48
  547. package/esm/label-transform/hideOverlap.js.map +0 -1
  548. package/esm/label-transform/spider.d.ts +0 -7
  549. package/esm/label-transform/spider.js +0 -30
  550. package/esm/label-transform/spider.js.map +0 -1
  551. package/esm/label-transform/surround.d.ts +0 -7
  552. package/esm/label-transform/surround.js +0 -30
  553. package/esm/label-transform/surround.js.map +0 -1
  554. package/esm/shape/label/position.d.ts +0 -25
  555. package/esm/shape/label/position.js +0 -169
  556. package/esm/shape/label/position.js.map +0 -1
  557. package/lib/data/subset.d.ts +0 -7
  558. package/lib/data/subset.js +0 -30
  559. package/lib/data/subset.js.map +0 -1
  560. package/lib/label-transform/dodgeY.d.ts +0 -7
  561. package/lib/label-transform/dodgeY.js.map +0 -1
  562. package/lib/label-transform/hideOverlap.d.ts +0 -4
  563. package/lib/label-transform/hideOverlap.js +0 -52
  564. package/lib/label-transform/hideOverlap.js.map +0 -1
  565. package/lib/label-transform/spider.d.ts +0 -7
  566. package/lib/label-transform/spider.js +0 -34
  567. package/lib/label-transform/spider.js.map +0 -1
  568. package/lib/label-transform/surround.d.ts +0 -7
  569. package/lib/label-transform/surround.js +0 -34
  570. package/lib/label-transform/surround.js.map +0 -1
  571. package/lib/shape/label/position.d.ts +0 -25
  572. package/lib/shape/label/position.js.map +0 -1
  573. package/src/data/subset.ts +0 -35
  574. package/src/label-transform/hideOverlap.ts +0 -62
  575. package/src/label-transform/spider.ts +0 -37
  576. package/src/label-transform/surround.ts +0 -37
@@ -1,18 +1,53 @@
1
- import { ChannelTypes } from 'spec';
2
1
  import { InteractionComponent } from '../runtime';
2
+ import { ChannelTypes } from './geometry';
3
3
  import { ActiveRegionAction, PoptipAction, TooltipAction } from './action';
4
4
  import { FisheyeCoordinate } from './coordinate';
5
- export type Interaction = ElementHighlightInteraction | ElementHighlightByColorInteraction | ElementHighlightByXInteraction | ElementSelectByColorInteraction | ElementSelectByXInteraction | ElementSelectInteraction | TooltipInteraction | FisheyeInteraction | ChartIndex | CustomInteraction | LegendFilterInteraction;
6
- export type InteractionTypes = 'elementHighlight' | 'elementHighlightByX' | 'elementHighlightByColor' | 'fisheye' | 'chartIndex' | 'elementSelect' | 'elementSelectByX' | 'elementSelectByColor' | 'fisheye' | 'tooltip' | 'legendFilter' | InteractionComponent;
5
+ export type Interaction = ElementHighlightInteraction | ElementHighlightByColorInteraction | ElementHighlightByXInteraction | ElementSelectByColorInteraction | ElementSelectByXInteraction | ElementSelectInteraction | TooltipInteraction | FisheyeInteraction | ChartIndex | CustomInteraction | LegendFilterInteraction | BrushHighlightInteraction | BrushXHighlightInteraction | BrushYHighlightInteraction | BrushAxisHighlightInteraction | BrushFilter | BrushYFilter | BrushXFilter;
6
+ export type InteractionTypes = 'elementHighlight' | 'elementHighlightByX' | 'elementHighlightByColor' | 'fisheye' | 'chartIndex' | 'elementSelect' | 'elementSelectByX' | 'elementSelectByColor' | 'fisheye' | 'tooltip' | 'legendFilter' | 'brushXHighlight' | 'brushYHighlight' | 'brushHighlight' | 'brushFilter' | 'brushXFilter' | 'brushYFilter' | InteractionComponent;
7
7
  export type BrushInteraction = {
8
8
  type?: 'brush';
9
9
  brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
10
10
  };
11
11
  export type BrushHighlightInteraction = {
12
12
  type?: 'brushHighlight';
13
- brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
14
- multiple?: boolean;
15
- };
13
+ brushKey?: string;
14
+ reverse?: boolean;
15
+ shared?: boolean;
16
+ series?: boolean;
17
+ facet?: boolean;
18
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
19
+ export type BrushXHighlightInteraction = {
20
+ type?: 'brushXHighlight';
21
+ brushKey?: string;
22
+ reverse?: boolean;
23
+ shared?: boolean;
24
+ series?: boolean;
25
+ facet?: boolean;
26
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
27
+ export type BrushYHighlightInteraction = {
28
+ type?: 'brushYHighlight';
29
+ brushKey?: string;
30
+ reverse?: boolean;
31
+ shared?: boolean;
32
+ series?: boolean;
33
+ facet?: boolean;
34
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
35
+ export type BrushAxisHighlightInteraction = {
36
+ type?: 'brushAxisHighlight';
37
+ reverse?: boolean;
38
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
39
+ export type BrushFilter = {
40
+ type?: 'brushFilter';
41
+ reverse?: boolean;
42
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
43
+ export type BrushXFilter = {
44
+ type?: 'brushXFilter';
45
+ reverse?: boolean;
46
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
47
+ export type BrushYFilter = {
48
+ type?: 'brushYFilter';
49
+ reverse?: boolean;
50
+ } & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
16
51
  export type BrushVisibleInteraction = {
17
52
  type?: 'brushVisible';
18
53
  brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
@@ -1,17 +1,30 @@
1
- export type LabelTransform = HideOverlapLabelTransform | DodgeYLabelTransform;
2
- export type HideOverlapLabelTransform = {
3
- type?: 'hideOverlap';
1
+ import { DisplayObject } from '@antv/g';
2
+ export type LabelTransform = OverlapHideTransform | OverlapDodgeYTransform | ContrastReverseTransform | OverflowHideTransform;
3
+ export type OverlapHideTransform = {
4
+ type?: 'overlapHide';
5
+ /**
6
+ * The hide priority, is the comparator for label.sort().
7
+ */
8
+ priority?: (a: DisplayObject, b: DisplayObject) => number;
4
9
  };
5
- export type DodgeYLabelTransform = {
6
- type?: 'dodgeY';
7
- maxIter?: number;
10
+ export type OverlapDodgeYTransform = {
11
+ type?: 'overlapDodgeY';
12
+ maxIterations?: number;
8
13
  maxError?: number;
9
14
  padding?: number;
10
15
  };
11
- export type SpiderLabelTransform = {
12
- type?: 'spider';
13
- edgeDistance?: string | number;
16
+ export type ContrastReverseTransform = {
17
+ type: 'contrastReverse';
18
+ /**
19
+ * Transform when the contrast ratio < threshold.
20
+ * Default is `4.5`.
21
+ */
22
+ threshold?: number;
23
+ /**
24
+ * The optional color palette, default is [#000, #fff].
25
+ */
26
+ palette?: string[];
14
27
  };
15
- export type SurroundLabelTransform = {
16
- type?: 'surround';
28
+ export type OverflowHideTransform = {
29
+ type: 'overflowHide';
17
30
  };
@@ -1,12 +1,15 @@
1
1
  import { Theme as ThemeOptions, ThemeComponent } from '../runtime/types/component';
2
- export type Theme = LightTheme | DarkTheme | CustomTheme;
3
- export type ThemeTypes = 'light' | 'dark' | ThemeComponent;
2
+ export type Theme = LightTheme | DarkTheme | AcademyTheme | CustomTheme;
3
+ export type ThemeTypes = 'light' | 'dark' | 'academy' | ThemeComponent;
4
4
  export type LightTheme = {
5
5
  type?: 'light';
6
6
  } & ThemeOptions;
7
7
  export type DarkTheme = {
8
8
  type?: 'dark';
9
9
  } & ThemeOptions;
10
+ export type AcademyTheme = {
11
+ type?: 'academy';
12
+ } & ThemeOptions;
10
13
  export type CustomTheme = {
11
14
  type?: ThemeComponent;
12
15
  } & ThemeOptions;
@@ -4,15 +4,15 @@ import { Cell, Interval, Rect, Line, Point as PointGeometry, Text as TextGeometr
4
4
  import { Category10, Category20, SequentialBlue, SequentialDarkBlue, SequentialGreen, SequentialDarkGreen, SequentialGrey, SequentialOrange, SequentialPink, SequentialRed, SequentialYellow, SequentialPurple, SequentialYellowOrange, SequentialYellowGreen, SequentialPinkPurple, SequentialGreenBlue, DivergingGreenYellow, DivergingRedBlue, DivergingGreenRed, DivergingRedPurple, } from '../palette';
5
5
  import { Linear, Ordinal, Band, Identity, Point, Time, Log, Pow, Threshold, Quantile, Quantize, Sqrt, Sequential, } from '../scale';
6
6
  import { Rect as RectShape, HollowRect, Line as LineShape, HV, VH, HVH, Smooth, Bowtie, Cross, Diamond, Hexagon, HollowBowtie, HollowDiamond, HollowHexagon, HollowPoint, HollowSquare, HollowTriangle, HollowTriangleDown, Hyphen, LinePoint, Plus, Point as PointShape, Square, Tick, Triangle, TriangleDown, Text, Badge, LineXY, Connector as ConnectorShape, Area, SmoothArea, Step, SmoothEdge, VHVEdge, Arc, Image, Polygon, Ribbon, Box, Funnel, Pyramid, Vector, Link, Label, Path as PathShape, HollowPath, Shape as CustomShape, } from '../shape';
7
- import { Light, Dark } from '../theme';
8
- import { AxisX, AxisY, LegendCategory, LegendContinuous, TitleComponent, SliderX, SliderY, } from '../component';
7
+ import { Light, Dark, Academy } from '../theme';
8
+ import { AxisX, AxisY, LegendCategory, LegendContinuous, TitleComponent, SliderX, SliderY, ScrollbarX, ScrollbarY, } from '../component';
9
9
  import { ScaleInX, ScaleOutX, ScaleInY, ScaleOutY, WaveIn, FadeIn, FadeOut, Morphing, ZoomIn, ZoomOut, PathIn, GrowInX, GrowInY, } from '../animation';
10
10
  import {
11
11
  // ElementHighlight,
12
12
  // ElementSelected,
13
13
  // Tooltip,
14
14
  // Fisheye as FisheyeInteraction,
15
- ElementHighlight, ElementHighlightByX, ElementHighlightByColor, ElementSelect, ElementSelectByX, ElementSelectByColor, ChartIndex, Fisheye as ChartFisheye, Tooltip, LegendFilter,
15
+ ElementHighlight, ElementHighlightByX, ElementHighlightByColor, ElementSelect, ElementSelectByX, ElementSelectByColor, ChartIndex, Fisheye as ChartFisheye, Tooltip, LegendFilter, BrushHighlight, BrushXHighlight, BrushYHighlight, BrushAxisHighlight, BrushFilter, BrushXFilter, BrushYFilter,
16
16
  // ElementHighlightByX,
17
17
  // ElementHighlightByColor,
18
18
  // ElementListHighlight,
@@ -26,13 +26,13 @@ ElementHighlight, ElementHighlightByX, ElementHighlightByColor, ElementSelect, E
26
26
  } from '../interaction';
27
27
  import { SpaceLayer, SpaceFlex, Mark, View, FacetRect, FacetCircle, RepeatMatrix, TimingKeyframe, } from '../composition';
28
28
  import { MaybeTitle, MaybeZeroX, MaybeZeroY1, MaybeStackY, MaybeSeries, MaybeZeroY, MaybeSize, MaybeKey, StackY, DodgeX, StackEnter, NormalizeY, Jitter, JitterX, SymmetryY, DiffY, Select, SelectX, SelectY, GroupX, Group, SortX, FlexX, MaybeTupleY, MaybeTupleX, MaybeIdentityY, MaybeIdentityX, MaybeZeroPadding, MaybeTuple, SortY, GroupY, GroupColor, SortColor, Pack, BinX, Bin, MaybeVisualPosition, MaybeFunctionAttribute, MaybeGradient, MaybeTooltip, Sample, Filter, } from '../transform';
29
- import { Fetch, SortBy, Filter as DataFilter, Map, Pick, Rename, Subset, Fold, Inline, Custom, Cluster, Tree, Sankey as SankeyTransform, Arc as ArcTransform, WordCloud, Join, Sort, } from '../data';
30
- import { HideOverlap, DodgeY, Spider, Surround } from '../label-transform';
29
+ import { Fetch, SortBy, Filter as DataFilter, Map, Pick, Rename, Fold, Slice, Inline, Custom, Cluster, Tree, Sankey as SankeyTransform, Arc as ArcTransform, WordCloud, Join, Sort, } from '../data';
30
+ import { OverlapDodgeY, OverflowHide, ContrastReverse, OverlapHide, } from '../label-transform';
31
31
  import { geoLibrary } from '../geo';
32
32
  export function createLibrary() {
33
- return Object.assign({ 'data.fetch': Fetch, 'data.inline': Inline, 'data.sortBy': SortBy, 'data.sort': Sort, 'data.filter': DataFilter, 'data.pick': Pick, 'data.rename': Rename, 'data.subset': Subset, 'data.fold': Fold, 'data.custom': Custom, 'data.map': Map, 'data.cluster': Cluster, 'data.tree': Tree, 'data.sankey': SankeyTransform, 'data.arc': ArcTransform, 'data.wordCloud': WordCloud, 'data.join': Join,
33
+ return Object.assign({ 'data.fetch': Fetch, 'data.inline': Inline, 'data.sortBy': SortBy, 'data.sort': Sort, 'data.filter': DataFilter, 'data.pick': Pick, 'data.rename': Rename, 'data.fold': Fold, 'data.slice': Slice, 'data.custom': Custom, 'data.map': Map, 'data.cluster': Cluster, 'data.tree': Tree, 'data.sankey': SankeyTransform, 'data.arc': ArcTransform, 'data.wordCloud': WordCloud, 'data.join': Join,
34
34
  // 'transform.voronoi': Voronoi,
35
- 'transform.maybeZeroY1': MaybeZeroY1, 'transform.maybeZeroX': MaybeZeroX, 'transform.maybeStackY': MaybeStackY, 'transform.maybeTitle': MaybeTitle, 'transform.maybeSeries': MaybeSeries, 'transform.maybeZeroPadding': MaybeZeroPadding, 'transform.stackY': StackY, 'transform.binX': BinX, 'transform.bin': Bin, 'transform.dodgeX': DodgeX, 'transform.jitter': Jitter, 'transform.jitterX': JitterX, 'transform.symmetryY': SymmetryY, 'transform.diffY': DiffY, 'transform.stackEnter': StackEnter, 'transform.normalizeY': NormalizeY, 'transform.select': Select, 'transform.selectX': SelectX, 'transform.selectY': SelectY, 'transform.groupX': GroupX, 'transform.groupY': GroupY, 'transform.groupColor': GroupColor, 'transform.group': Group, 'transform.maybeSize': MaybeSize, 'transform.maybeZeroY': MaybeZeroY, 'transform.maybeKey': MaybeKey, 'transform.sortX': SortX, 'transform.sortY': SortY, 'transform.sortColor': SortColor, 'transform.flexX': FlexX, 'transform.maybeTupleY': MaybeTupleY, 'transform.maybeTupleX': MaybeTupleX, 'transform.maybeIdentityY': MaybeIdentityY, 'transform.maybeIdentityX': MaybeIdentityX, 'transform.maybeTuple': MaybeTuple, 'transform.maybeVisualPosition': MaybeVisualPosition, 'transform.maybeFunctionAttribute': MaybeFunctionAttribute, 'transform.maybeGradient': MaybeGradient, 'transform.maybeTooltip': MaybeTooltip, 'transform.pack': Pack, 'transform.sample': Sample, 'transform.filter': Filter, 'coordinate.cartesian': Cartesian, 'coordinate.polar': Polar, 'coordinate.helix': Helix, 'coordinate.transpose': Transpose, 'coordinate.theta': Theta, 'coordinate.reflect': Reflect, 'coordinate.reflectX': ReflectX, 'coordinate.reflectY': ReflectY, 'coordinate.parallel': Parallel, 'coordinate.fisheye': Fisheye, 'coordinate.fisheyeX': FisheyeX, 'coordinate.fisheyeY': FisheyeY, 'coordinate.radial': Radial, 'encode.constant': Constant, 'encode.field': Field, 'encode.transform': Transform, 'encode.column': Column, 'mark.interval': Interval, 'mark.rect': Rect, 'mark.line': Line, 'mark.point': PointGeometry, 'mark.text': TextGeometry, 'mark.cell': Cell, 'mark.area': AreaGeometry, 'mark.link': LinkGeometry, 'mark.image': ImageGeometry, 'mark.polygon': PolygonGeometry, 'mark.box': BoxGeometry, 'mark.vector': VectorGeometry, 'mark.lineX': LineX, 'mark.lineY': LineY, 'mark.connector': Connector, 'mark.range': Range, 'mark.rangeX': RangeX, 'mark.rangeY': RangeY, 'mark.sankey': Sankey, 'mark.path': Path, 'mark.treemap': Treemap, 'mark.pack': PackGeometry, 'mark.boxplot': Boxplot, 'mark.shape': Shape, 'mark.forceGraph': ForceGraph, 'mark.tree': TreeGeometry, 'mark.wordCloud': WordCloudGeometry, 'palette.category10': Category10, 'palette.category20': Category20, 'palette.sequentialBlue': SequentialBlue, 'palette.sequentialDarkBlue': SequentialDarkBlue, 'palette.sequentialGreen': SequentialGreen, 'palette.sequentialDarkGreen': SequentialDarkGreen, 'palette.sequentialGrey': SequentialGrey, 'palette.sequentialOrange': SequentialOrange, 'palette.sequentialPink': SequentialPink, 'palette.sequentialRed': SequentialRed, 'palette.sequentialYellow': SequentialYellow, 'palette.sequentialPurple': SequentialPurple, 'palette.sequentialYellowOrange': SequentialYellowOrange, 'palette.sequentialYellowGreen': SequentialYellowGreen, 'palette.sequentialPinkPurple': SequentialPinkPurple, 'palette.sequentialGreenBlue': SequentialGreenBlue, 'palette.divergingGreenYellow': DivergingGreenYellow, 'palette.divergingRedBlue': DivergingRedBlue, 'palette.divergingGreenRed': DivergingGreenRed, 'palette.divergingRedPurple': DivergingRedPurple, 'scale.linear': Linear, 'scale.ordinal': Ordinal, 'scale.band': Band, 'scale.identity': Identity, 'scale.point': Point, 'scale.time': Time, 'scale.log': Log, 'scale.pow': Pow, 'scale.sqrt': Sqrt, 'scale.threshold': Threshold, 'scale.quantile': Quantile, 'scale.quantize': Quantize, 'scale.sequential': Sequential, 'shape.interval.rect': RectShape, 'shape.interval.hollow': HollowRect, 'shape.interval.funnel': Funnel, 'shape.interval.pyramid': Pyramid, 'shape.rect.rect': RectShape, 'shape.rect.hollow': HollowRect, 'shape.cell.cell': RectShape, 'shape.cell.hollow': HollowRect, 'shape.line.line': LineShape, 'shape.line.hv': HV, 'shape.line.vh': VH, 'shape.line.hvh': HVH, 'shape.line.smooth': Smooth, 'shape.point.bowtie': Bowtie, 'shape.point.cross': Cross, 'shape.point.diamond': Diamond, 'shape.point.hexagon': Hexagon, 'shape.point.hollowBowtie': HollowBowtie, 'shape.point.hollowDiamond': HollowDiamond, 'shape.point.hollowHexagon': HollowHexagon, 'shape.point.hollow': HollowPoint, 'shape.point.hollowSquare': HollowSquare, 'shape.point.hollowTriangle': HollowTriangle, 'shape.point.hollowTriangleDown': HollowTriangleDown, 'shape.point.hyphen': Hyphen, 'shape.point.line': LinePoint, 'shape.point.plus': Plus, 'shape.point.point': PointShape, 'shape.point.square': Square, 'shape.point.tick': Tick, 'shape.point.triangle': Triangle, 'shape.point.triangleDown': TriangleDown, 'shape.text.text': Text, 'shape.area.area': Area, 'shape.area.smooth': SmoothArea, 'shape.area.step': Step, 'shape.link.smooth': SmoothEdge, 'shape.link.vhv': VHVEdge, 'shape.link.arc': Arc, 'shape.link.link': Link, 'shape.image.image': Image, 'shape.polygon.polygon': Polygon, 'shape.polygon.ribbon': Ribbon, 'shape.box.box': Box, 'shape.vector.vector': Vector, 'shape.label.label': Label, 'shape.text.badge': Badge, 'shape.lineX.line': LineXY, 'shape.lineY.line': LineXY, 'shape.shape.shape': CustomShape, 'shape.connector.connector': ConnectorShape, 'shape.range.range': RectShape, 'shape.rangeX.range': RectShape, 'shape.rangeY.range': RectShape, 'shape.path.path': PathShape, 'shape.path.hollow': HollowPath, 'theme.light': Light, 'theme.dark': Dark, 'component.axisX': AxisX, 'component.axisY': AxisY, 'component.legendCategory': LegendCategory, 'component.legendContinuous': LegendContinuous, 'component.title': TitleComponent, 'component.sliderX': SliderX, 'component.sliderY': SliderY, 'animation.scaleInX': ScaleInX, 'animation.scaleOutX': ScaleOutX, 'animation.scaleInY': ScaleInY, 'animation.scaleOutY': ScaleOutY, 'animation.waveIn': WaveIn, 'animation.fadeIn': FadeIn, 'animation.fadeOut': FadeOut, 'animation.zoomIn': ZoomIn, 'animation.zoomOut': ZoomOut, 'animation.pathIn': PathIn, 'animation.morphing': Morphing, 'animation.growInX': GrowInX, 'animation.growInY': GrowInY, 'interaction.elementHighlight': ElementHighlight, 'interaction.elementHighlightByX': ElementHighlightByX, 'interaction.elementHighlightByColor': ElementHighlightByColor, 'interaction.elementSelect': ElementSelect, 'interaction.elementSelectByX': ElementSelectByX, 'interaction.elementSelectByColor': ElementSelectByColor, 'interaction.fisheye': ChartFisheye, 'interaction.chartIndex': ChartIndex, 'interaction.tooltip': Tooltip, 'interaction.legendFilter': LegendFilter,
35
+ 'transform.maybeZeroY1': MaybeZeroY1, 'transform.maybeZeroX': MaybeZeroX, 'transform.maybeStackY': MaybeStackY, 'transform.maybeTitle': MaybeTitle, 'transform.maybeSeries': MaybeSeries, 'transform.maybeZeroPadding': MaybeZeroPadding, 'transform.stackY': StackY, 'transform.binX': BinX, 'transform.bin': Bin, 'transform.dodgeX': DodgeX, 'transform.jitter': Jitter, 'transform.jitterX': JitterX, 'transform.symmetryY': SymmetryY, 'transform.diffY': DiffY, 'transform.stackEnter': StackEnter, 'transform.normalizeY': NormalizeY, 'transform.select': Select, 'transform.selectX': SelectX, 'transform.selectY': SelectY, 'transform.groupX': GroupX, 'transform.groupY': GroupY, 'transform.groupColor': GroupColor, 'transform.group': Group, 'transform.maybeSize': MaybeSize, 'transform.maybeZeroY': MaybeZeroY, 'transform.maybeKey': MaybeKey, 'transform.sortX': SortX, 'transform.sortY': SortY, 'transform.sortColor': SortColor, 'transform.flexX': FlexX, 'transform.maybeTupleY': MaybeTupleY, 'transform.maybeTupleX': MaybeTupleX, 'transform.maybeIdentityY': MaybeIdentityY, 'transform.maybeIdentityX': MaybeIdentityX, 'transform.maybeTuple': MaybeTuple, 'transform.maybeVisualPosition': MaybeVisualPosition, 'transform.maybeFunctionAttribute': MaybeFunctionAttribute, 'transform.maybeGradient': MaybeGradient, 'transform.maybeTooltip': MaybeTooltip, 'transform.pack': Pack, 'transform.sample': Sample, 'transform.filter': Filter, 'coordinate.cartesian': Cartesian, 'coordinate.polar': Polar, 'coordinate.helix': Helix, 'coordinate.transpose': Transpose, 'coordinate.theta': Theta, 'coordinate.reflect': Reflect, 'coordinate.reflectX': ReflectX, 'coordinate.reflectY': ReflectY, 'coordinate.parallel': Parallel, 'coordinate.fisheye': Fisheye, 'coordinate.fisheyeX': FisheyeX, 'coordinate.fisheyeY': FisheyeY, 'coordinate.radial': Radial, 'encode.constant': Constant, 'encode.field': Field, 'encode.transform': Transform, 'encode.column': Column, 'mark.interval': Interval, 'mark.rect': Rect, 'mark.line': Line, 'mark.point': PointGeometry, 'mark.text': TextGeometry, 'mark.cell': Cell, 'mark.area': AreaGeometry, 'mark.link': LinkGeometry, 'mark.image': ImageGeometry, 'mark.polygon': PolygonGeometry, 'mark.box': BoxGeometry, 'mark.vector': VectorGeometry, 'mark.lineX': LineX, 'mark.lineY': LineY, 'mark.connector': Connector, 'mark.range': Range, 'mark.rangeX': RangeX, 'mark.rangeY': RangeY, 'mark.sankey': Sankey, 'mark.path': Path, 'mark.treemap': Treemap, 'mark.pack': PackGeometry, 'mark.boxplot': Boxplot, 'mark.shape': Shape, 'mark.forceGraph': ForceGraph, 'mark.tree': TreeGeometry, 'mark.wordCloud': WordCloudGeometry, 'palette.category10': Category10, 'palette.category20': Category20, 'palette.sequentialBlue': SequentialBlue, 'palette.sequentialDarkBlue': SequentialDarkBlue, 'palette.sequentialGreen': SequentialGreen, 'palette.sequentialDarkGreen': SequentialDarkGreen, 'palette.sequentialGrey': SequentialGrey, 'palette.sequentialOrange': SequentialOrange, 'palette.sequentialPink': SequentialPink, 'palette.sequentialRed': SequentialRed, 'palette.sequentialYellow': SequentialYellow, 'palette.sequentialPurple': SequentialPurple, 'palette.sequentialYellowOrange': SequentialYellowOrange, 'palette.sequentialYellowGreen': SequentialYellowGreen, 'palette.sequentialPinkPurple': SequentialPinkPurple, 'palette.sequentialGreenBlue': SequentialGreenBlue, 'palette.divergingGreenYellow': DivergingGreenYellow, 'palette.divergingRedBlue': DivergingRedBlue, 'palette.divergingGreenRed': DivergingGreenRed, 'palette.divergingRedPurple': DivergingRedPurple, 'scale.linear': Linear, 'scale.ordinal': Ordinal, 'scale.band': Band, 'scale.identity': Identity, 'scale.point': Point, 'scale.time': Time, 'scale.log': Log, 'scale.pow': Pow, 'scale.sqrt': Sqrt, 'scale.threshold': Threshold, 'scale.quantile': Quantile, 'scale.quantize': Quantize, 'scale.sequential': Sequential, 'shape.interval.rect': RectShape, 'shape.interval.hollow': HollowRect, 'shape.interval.funnel': Funnel, 'shape.interval.pyramid': Pyramid, 'shape.rect.rect': RectShape, 'shape.rect.hollow': HollowRect, 'shape.cell.cell': RectShape, 'shape.cell.hollow': HollowRect, 'shape.line.line': LineShape, 'shape.line.hv': HV, 'shape.line.vh': VH, 'shape.line.hvh': HVH, 'shape.line.smooth': Smooth, 'shape.point.bowtie': Bowtie, 'shape.point.cross': Cross, 'shape.point.diamond': Diamond, 'shape.point.hexagon': Hexagon, 'shape.point.hollowBowtie': HollowBowtie, 'shape.point.hollowDiamond': HollowDiamond, 'shape.point.hollowHexagon': HollowHexagon, 'shape.point.hollow': HollowPoint, 'shape.point.hollowSquare': HollowSquare, 'shape.point.hollowTriangle': HollowTriangle, 'shape.point.hollowTriangleDown': HollowTriangleDown, 'shape.point.hyphen': Hyphen, 'shape.point.line': LinePoint, 'shape.point.plus': Plus, 'shape.point.point': PointShape, 'shape.point.square': Square, 'shape.point.tick': Tick, 'shape.point.triangle': Triangle, 'shape.point.triangleDown': TriangleDown, 'shape.text.text': Text, 'shape.area.area': Area, 'shape.area.smooth': SmoothArea, 'shape.area.step': Step, 'shape.link.smooth': SmoothEdge, 'shape.link.vhv': VHVEdge, 'shape.link.arc': Arc, 'shape.link.link': Link, 'shape.image.image': Image, 'shape.polygon.polygon': Polygon, 'shape.polygon.ribbon': Ribbon, 'shape.box.box': Box, 'shape.vector.vector': Vector, 'shape.label.label': Label, 'shape.text.badge': Badge, 'shape.lineX.line': LineXY, 'shape.lineY.line': LineXY, 'shape.shape.shape': CustomShape, 'shape.connector.connector': ConnectorShape, 'shape.range.range': RectShape, 'shape.rangeX.range': RectShape, 'shape.rangeY.range': RectShape, 'shape.path.path': PathShape, 'shape.path.hollow': HollowPath, 'theme.light': Light, 'theme.dark': Dark, 'theme.academy': Academy, 'component.axisX': AxisX, 'component.axisY': AxisY, 'component.legendCategory': LegendCategory, 'component.legendContinuous': LegendContinuous, 'component.title': TitleComponent, 'component.sliderX': SliderX, 'component.sliderY': SliderY, 'component.scrollbarX': ScrollbarX, 'component.scrollbarY': ScrollbarY, 'animation.scaleInX': ScaleInX, 'animation.scaleOutX': ScaleOutX, 'animation.scaleInY': ScaleInY, 'animation.scaleOutY': ScaleOutY, 'animation.waveIn': WaveIn, 'animation.fadeIn': FadeIn, 'animation.fadeOut': FadeOut, 'animation.zoomIn': ZoomIn, 'animation.zoomOut': ZoomOut, 'animation.pathIn': PathIn, 'animation.morphing': Morphing, 'animation.growInX': GrowInX, 'animation.growInY': GrowInY, 'interaction.elementHighlight': ElementHighlight, 'interaction.elementHighlightByX': ElementHighlightByX, 'interaction.elementHighlightByColor': ElementHighlightByColor, 'interaction.elementSelect': ElementSelect, 'interaction.elementSelectByX': ElementSelectByX, 'interaction.elementSelectByColor': ElementSelectByColor, 'interaction.fisheye': ChartFisheye, 'interaction.chartIndex': ChartIndex, 'interaction.tooltip': Tooltip, 'interaction.legendFilter': LegendFilter, 'interaction.brushHighlight': BrushHighlight, 'interaction.brushXHighlight': BrushXHighlight, 'interaction.brushYHighlight': BrushYHighlight, 'interaction.brushAxisHighlight': BrushAxisHighlight, 'interaction.brushFilter': BrushFilter, 'interaction.brushXFilter': BrushXFilter, 'interaction.brushYFilter': BrushYFilter,
36
36
  // 'interaction.elementSelected': ElementSelected,
37
37
  // 'interaction.elementHighlight': ElementHighlight,
38
38
  // 'interaction.elementHighlightByX': ElementHighlightByX,
@@ -43,10 +43,9 @@ export function createLibrary() {
43
43
  // 'interaction.tooltip': Tooltip,
44
44
  // 'interaction.fisheye': FisheyeInteraction,
45
45
  // 'interaction.brush': Brush,
46
- // 'interaction.brushHighlight': BrushHighlight,
47
46
  // 'interaction.brushVisible': BrushVisible,
48
47
  // 'interaction.activeRegion': ActiveRegion,
49
48
  // 'interaction.ellipsisText': EllipsisText,
50
- 'composition.spaceLayer': SpaceLayer, 'composition.spaceFlex': SpaceFlex, 'composition.mark': Mark, 'composition.view': View, 'composition.facetRect': FacetRect, 'composition.repeatMatrix': RepeatMatrix, 'composition.facetCircle': FacetCircle, 'composition.timingKeyframe': TimingKeyframe, 'labelTransform.hideOverlap': HideOverlap, 'labelTransform.dodgeY': DodgeY, 'labelTransform.spider': Spider, 'labelTransform.surround': Surround }, geoLibrary);
49
+ 'composition.spaceLayer': SpaceLayer, 'composition.spaceFlex': SpaceFlex, 'composition.mark': Mark, 'composition.view': View, 'composition.facetRect': FacetRect, 'composition.repeatMatrix': RepeatMatrix, 'composition.facetCircle': FacetCircle, 'composition.timingKeyframe': TimingKeyframe, 'labelTransform.overlapHide': OverlapHide, 'labelTransform.overlapDodgeY': OverlapDodgeY, 'labelTransform.overflowHide': OverflowHide, 'labelTransform.contrastReverse': ContrastReverse }, geoLibrary);
51
50
  }
52
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["stdlib/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,KAAK,EACL,KAAK,EACL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,KAAK,IAAI,aAAa,EACtB,IAAI,IAAI,YAAY,EACpB,IAAI,IAAI,YAAY,EACpB,KAAK,IAAI,aAAa,EACtB,OAAO,IAAI,eAAe,EAC1B,GAAG,IAAI,WAAW,EAClB,MAAM,IAAI,cAAc,EACxB,IAAI,IAAI,YAAY,EACpB,KAAK,EACL,KAAK,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,MAAM,EACN,MAAM,EACN,IAAI,EACJ,OAAO,EACP,IAAI,IAAI,YAAY,EACpB,KAAK,EACL,OAAO,EACP,UAAU,EACV,IAAI,IAAI,YAAY,EACpB,SAAS,IAAI,iBAAiB,GAC/B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,UAAU,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACn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AW,EACtC,4BAA4B,EAAE,cAAc,EAC5C,4BAA4B,EAAE,WAAW,EACzC,8BAA8B,EAAE,aAAa,EAC7C,6BAA6B,EAAE,YAAY,EAC3C,gCAAgC,EAAE,eAAe,IAC9C,UAAU,EACb;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ThemeComponent as TC, Theme } from '../runtime';
2
+ export type AcademyOptions = Theme;
3
+ export declare const Academy: TC<AcademyOptions>;
@@ -0,0 +1,398 @@
1
+ const COLORS = {
2
+ BLACK: '#000',
3
+ WHITE: '#fff',
4
+ STROKE: '#888',
5
+ };
6
+ const BACKGROUND_COLOR = 'transparent';
7
+ export const Academy = (options) => {
8
+ const DEFAULT_COLOR = '#4e79a7';
9
+ const defaultOptions = {
10
+ defaultColor: DEFAULT_COLOR,
11
+ defaultCategory10: 'tableau10',
12
+ defaultCategory20: 'tableau10',
13
+ defaultSize: 1,
14
+ elementActiveStroke: COLORS.BLACK,
15
+ enter: {
16
+ duration: 300,
17
+ fill: 'both',
18
+ delay: 0,
19
+ },
20
+ update: {
21
+ duration: 300,
22
+ fill: 'both',
23
+ delay: 0,
24
+ },
25
+ exit: {
26
+ duration: 300,
27
+ fill: 'both',
28
+ delay: 0,
29
+ },
30
+ // --- Theme of area style
31
+ viewFill: BACKGROUND_COLOR,
32
+ plotFill: 'transparent',
33
+ mainFill: 'transparent',
34
+ contentFill: 'transparent',
35
+ // --- Theme of mark shape
36
+ line: {
37
+ line: {
38
+ fill: '',
39
+ strokeOpacity: 1,
40
+ lineWidth: 1,
41
+ connectStroke: '#aaa',
42
+ },
43
+ },
44
+ point: {
45
+ point: {
46
+ r: 3,
47
+ fillOpacity: 0.95,
48
+ lineWidth: 0,
49
+ },
50
+ hollow: {
51
+ r: 3,
52
+ strokeOpacity: 0.95,
53
+ lineWidth: 1,
54
+ },
55
+ plus: {
56
+ r: 3,
57
+ strokeOpacity: 0.95,
58
+ lineWidth: 3,
59
+ },
60
+ diamond: {
61
+ r: 3,
62
+ strokeOpacity: 0.95,
63
+ lineWidth: 1,
64
+ },
65
+ },
66
+ interval: {
67
+ rect: {
68
+ fillOpacity: 0.95,
69
+ },
70
+ hollow: {
71
+ fill: '',
72
+ strokeOpacity: 1,
73
+ lineWidth: 2,
74
+ },
75
+ },
76
+ area: {
77
+ area: {
78
+ fillOpacity: 0.85,
79
+ lineWidth: 0,
80
+ connectFill: COLORS.BLACK,
81
+ connectFillOpacity: 0.1,
82
+ },
83
+ },
84
+ polygon: {
85
+ polygon: {
86
+ fillOpacity: 0.95,
87
+ },
88
+ },
89
+ cell: {
90
+ cell: {
91
+ fillOpacity: 0.95,
92
+ },
93
+ hollow: {
94
+ fill: '',
95
+ strokeOpacity: 1,
96
+ lineWidth: 2,
97
+ },
98
+ },
99
+ rect: {
100
+ rect: {
101
+ fillOpacity: 0.95,
102
+ },
103
+ hollow: {
104
+ fill: '',
105
+ strokeOpacity: 1,
106
+ lineWidth: 2,
107
+ },
108
+ },
109
+ link: {
110
+ link: {
111
+ fill: '',
112
+ strokeOpacity: 1,
113
+ },
114
+ },
115
+ vector: {
116
+ vector: {
117
+ fillOpacity: 1,
118
+ },
119
+ },
120
+ box: {
121
+ box: {
122
+ fillOpacity: 0.95,
123
+ stroke: '#1D2129',
124
+ lineWidth: 1,
125
+ },
126
+ },
127
+ text: {
128
+ text: {
129
+ fill: '#1D2129',
130
+ fontSize: 10,
131
+ strokeWidth: 0,
132
+ connectorStroke: COLORS.STROKE,
133
+ connectorStrokeOpacity: 0.45,
134
+ connectorLineWidth: 1,
135
+ backgroundFill: COLORS.STROKE,
136
+ backgroundFillOpacity: 0.15,
137
+ backgroundPadding: [2, 4],
138
+ startMarkerSymbol: 'circle',
139
+ startMarkerSize: 4,
140
+ endMarkerSymbol: 'circle',
141
+ endMarkerSize: 4,
142
+ },
143
+ badge: {
144
+ fill: '#1D2129',
145
+ fillOpacity: 0.65,
146
+ strokeWidth: 0,
147
+ fontSize: 10,
148
+ textAlign: 'center',
149
+ textBaseline: 'middle',
150
+ markerFill: COLORS.STROKE,
151
+ markerFillOpacity: 0.25,
152
+ markerStrokeOpacity: 0,
153
+ },
154
+ },
155
+ lineX: {
156
+ line: {
157
+ stroke: COLORS.STROKE,
158
+ strokeOpacity: 0.45,
159
+ lineWidth: 1,
160
+ },
161
+ },
162
+ lineY: {
163
+ line: {
164
+ stroke: COLORS.STROKE,
165
+ strokeOpacity: 0.45,
166
+ lineWidth: 1,
167
+ },
168
+ },
169
+ rangeX: {
170
+ range: {
171
+ fill: COLORS.STROKE,
172
+ fillOpacity: 0.15,
173
+ lineWidth: 0,
174
+ },
175
+ },
176
+ rangeY: {
177
+ range: {
178
+ fill: COLORS.STROKE,
179
+ fillOpacity: 0.15,
180
+ lineWidth: 0,
181
+ },
182
+ },
183
+ connector: {
184
+ connector: {
185
+ stroke: COLORS.STROKE,
186
+ strokeOpacity: 0.45,
187
+ lineWidth: 1,
188
+ connectLength1: 12,
189
+ endMarker: true,
190
+ endMarkerSize: 6,
191
+ endMarkerFill: COLORS.STROKE,
192
+ endMarkerFillOpacity: 0.95,
193
+ },
194
+ },
195
+ interaction: {
196
+ active: {
197
+ line: {
198
+ line: { lineWidth: 3 },
199
+ },
200
+ interval: {
201
+ rect: { stroke: COLORS.BLACK },
202
+ },
203
+ area: {
204
+ area: { fillOpacity: 0.5 },
205
+ },
206
+ },
207
+ inactive: {
208
+ area: {
209
+ area: { fillOpacity: 0.3 },
210
+ },
211
+ },
212
+ selected: {},
213
+ disabled: {},
214
+ },
215
+ axis: {
216
+ titleFill: COLORS.BLACK,
217
+ titleFillOpacity: 1,
218
+ titleFontSize: 11,
219
+ titleFontWeight: 'bold',
220
+ titleSpacing: 12,
221
+ line: true,
222
+ lineStroke: '#888',
223
+ lineStrokeOpacity: 1,
224
+ lineLineWidth: 1,
225
+ lineArrow: null,
226
+ tickStroke: COLORS.STROKE,
227
+ tickStrokeOpacity: 1,
228
+ tickLineWidth: 1,
229
+ tickLength: 5,
230
+ labelFill: COLORS.BLACK,
231
+ labelFillOpacity: 1,
232
+ labelFontSize: 10,
233
+ labelAutoRotate: false,
234
+ labelFontWeight: 'normal',
235
+ labelSpacing: 4,
236
+ labelAlign: 'horizontal',
237
+ gridStroke: '#ddd',
238
+ gridStrokeOpacity: 1,
239
+ gridLineWidth: 1,
240
+ gridLineDash: [0, 0],
241
+ titleTransformOrigin: 'center',
242
+ },
243
+ axisTop: {
244
+ titlePosition: 'top',
245
+ titleSpacing: 0,
246
+ titleTextBaseline: 'middle',
247
+ labelDirection: 'negative',
248
+ tickDirection: 'negative',
249
+ gridDirection: 'positive',
250
+ },
251
+ axisBottom: {
252
+ titleSpacing: 4,
253
+ titleTextBaseline: 'bottom',
254
+ labelSpacing: 8,
255
+ labelDirection: 'positive',
256
+ tickDirection: 'positive',
257
+ gridDirection: 'negative',
258
+ },
259
+ axisLeft: {
260
+ titleTextBaseline: 'middle',
261
+ titleSpacing: 4,
262
+ titlePosition: 'left',
263
+ titleTransformOrigin: 'center',
264
+ titleTransform: `translate(50%, 0) rotate(-90) translate(0, -50%)`,
265
+ labelSpacing: 4,
266
+ labelDirection: 'positive',
267
+ tickDirection: 'positive',
268
+ gridDirection: 'negative',
269
+ },
270
+ axisRight: {
271
+ titleTextBaseline: 'top',
272
+ titleSpacing: 0,
273
+ titlePosition: 'right',
274
+ titleTransformOrigin: 'center',
275
+ titleTransform: `translate(-50%, 0) rotate(-90)`,
276
+ labelSpacing: 4,
277
+ labelDirection: 'negative',
278
+ tickDirection: 'negative',
279
+ gridDirection: 'positive',
280
+ },
281
+ axisArcY: {
282
+ titlePosition: 'top',
283
+ titleSpacing: 0,
284
+ titleTextBaseline: 'bottom',
285
+ gridDirection: 'negative',
286
+ gridConnect: 'arc',
287
+ gridControlAngles: [90, 180, 360],
288
+ gridType: 'surround',
289
+ girdClosed: true,
290
+ },
291
+ legend: {
292
+ padding: 8,
293
+ showTitle: false,
294
+ titleFill: COLORS.BLACK,
295
+ titleFillOpacity: 1,
296
+ titleFontSize: 11,
297
+ titleFontWeight: 'bold',
298
+ titleSpacing: 4,
299
+ // legend marker
300
+ itemMarkerFill: DEFAULT_COLOR,
301
+ itemMarkerFillOpacity: 1,
302
+ itemMarkerSize: 8,
303
+ itemSpacing: [5, 4],
304
+ itemLabelFill: COLORS.BLACK,
305
+ itemLabelFillOpacity: 1,
306
+ itemLabelFontSize: 10,
307
+ itemLabelFontWeight: 'normal',
308
+ itemValueFill: COLORS.BLACK,
309
+ itemValueFillOpacity: 1,
310
+ itemValueFontSize: 10,
311
+ itemValueFontWeight: 'normal',
312
+ itemBackgroundFill: 'transparent',
313
+ // [todo] rename legend navigator
314
+ navButtonFill: COLORS.BLACK,
315
+ navButtonFillOpacity: 0.45,
316
+ navButtonSize: 6,
317
+ navPageNumFill: COLORS.BLACK,
318
+ navPageNumFillOpacity: 0.45,
319
+ navPageNumFontSize: 10,
320
+ // others
321
+ backgroundFill: 'transparent',
322
+ },
323
+ continuousLegend: {
324
+ showTitle: false,
325
+ labelFill: COLORS.BLACK,
326
+ labelFillOpacity: 0.45,
327
+ labelFontSize: 10,
328
+ labelFontWeight: 'normal',
329
+ handleWidth: 10,
330
+ handleHeight: 12,
331
+ handleMarkerFill: COLORS.BLACK,
332
+ handleMarkerFillOpacity: 0.6,
333
+ handleMarkerStroke: COLORS.BLACK,
334
+ handleMarkerStrokeOpacity: 0.25,
335
+ handleMarkerLineWidth: 1,
336
+ handleLabelFill: COLORS.BLACK,
337
+ handleLabelFillOpacity: 0.45,
338
+ handleLabelFontSize: 10,
339
+ handleLabelFontWeight: 'normal',
340
+ },
341
+ label: {
342
+ fill: COLORS.BLACK,
343
+ fillOpacity: 0.65,
344
+ fontSize: 10,
345
+ fontWeight: 'normal',
346
+ stroke: null,
347
+ offset: 12,
348
+ connectorStroke: COLORS.BLACK,
349
+ connectorStrokeOpacity: 0.45,
350
+ connectorLineWidth: 1,
351
+ connectorLength: 12,
352
+ connectorLength2: 8,
353
+ connectorDistance: 4,
354
+ },
355
+ innerLabel: {
356
+ fill: COLORS.WHITE,
357
+ fontSize: 10,
358
+ fillOpacity: 0.85,
359
+ fontWeight: 'normal',
360
+ stroke: null,
361
+ offset: 0,
362
+ },
363
+ slider: {
364
+ trackSize: 16,
365
+ backgroundFill: COLORS.STROKE,
366
+ backgroundFillOpacity: 0.05,
367
+ selectionFill: DEFAULT_COLOR,
368
+ selectionFillOpacity: 0.15,
369
+ handleIconSize: 10,
370
+ handleIconFill: '#f7f7f7',
371
+ handleIconFillOpacity: 1,
372
+ handleIconStroke: COLORS.BLACK,
373
+ handleIconStrokeOpacity: 0.25,
374
+ handleIconLineWidth: 1,
375
+ handleIconRadius: 2,
376
+ handleLabelFill: COLORS.BLACK,
377
+ handleLabelFillOpacity: 0.45,
378
+ handleLabelFontSize: 10,
379
+ handleLabelFontWeight: 'normal',
380
+ },
381
+ scrollbar: {},
382
+ title: {
383
+ titleFill: COLORS.BLACK,
384
+ titleFillOpacity: 0.85,
385
+ titleFontSize: 14,
386
+ titleFontWeight: 'bold',
387
+ titleTextBaseline: 'top',
388
+ subtitleFill: COLORS.BLACK,
389
+ subtitleFillOpacity: 0.65,
390
+ subtitleFontSize: 12,
391
+ subtitleFontWeight: 'normal',
392
+ subtitleTextBaseline: 'top',
393
+ },
394
+ };
395
+ return Object.assign({}, defaultOptions, options);
396
+ };
397
+ Academy.props = {};
398
+ //# sourceMappingURL=academy.js.map