@antv/g2 5.0.0-beta.12 → 5.0.0-beta.13

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 (917) hide show
  1. package/dist/g2-lite.min.js +3 -3
  2. package/dist/g2.min.js +3 -3
  3. package/esm/api/chart.d.ts +15 -2
  4. package/esm/api/chart.js +13 -3
  5. package/esm/api/chart.js.map +1 -1
  6. package/esm/api/composition/geoPath.js.map +1 -1
  7. package/esm/api/mark/index.d.ts +4 -1
  8. package/esm/api/mark/index.js +2 -1
  9. package/esm/api/mark/index.js.map +1 -1
  10. package/esm/api/mark/mark.d.ts +32 -26
  11. package/esm/api/mark/mark.js +9 -0
  12. package/esm/api/mark/mark.js.map +1 -1
  13. package/esm/api/mark/types.d.ts +2 -2
  14. package/esm/api/props.js +6 -2
  15. package/esm/api/props.js.map +1 -1
  16. package/esm/api/types.d.ts +2 -2
  17. package/esm/component/axis.js +3 -3
  18. package/esm/component/axis.js.map +1 -1
  19. package/esm/component/scrollbar.js +3 -3
  20. package/esm/component/scrollbar.js.map +1 -1
  21. package/esm/component/slider.js +3 -3
  22. package/esm/component/slider.js.map +1 -1
  23. package/esm/component/title.js +3 -14
  24. package/esm/component/title.js.map +1 -1
  25. package/esm/composition/mark.d.ts +1 -1
  26. package/esm/coordinate/polar.d.ts +3 -2
  27. package/esm/coordinate/radial.d.ts +3 -2
  28. package/esm/coordinate/theta.d.ts +1 -0
  29. package/esm/data/arc.d.ts +1 -2
  30. package/esm/data/arc.js.map +1 -1
  31. package/esm/data/cluster.d.ts +1 -2
  32. package/esm/data/cluster.js.map +1 -1
  33. package/esm/data/sankey.d.ts +1 -2
  34. package/esm/data/sankey.js.map +1 -1
  35. package/esm/data/tree.d.ts +1 -2
  36. package/esm/data/tree.js.map +1 -1
  37. package/esm/data/wordCloud.d.ts +1 -2
  38. package/esm/data/wordCloud.js.map +1 -1
  39. package/esm/geo/index.d.ts +2 -2
  40. package/esm/index.d.ts +3 -2
  41. package/esm/index.js +2 -1
  42. package/esm/index.js.map +1 -1
  43. package/esm/interaction/{native/brushAxisHighlight.js → brushAxisHighlight.js} +1 -1
  44. package/esm/interaction/brushAxisHighlight.js.map +1 -0
  45. package/esm/interaction/{native/brushFilter.js → brushFilter.js} +3 -3
  46. package/esm/interaction/brushFilter.js.map +1 -0
  47. package/esm/interaction/{native/brushHighlight.js → brushHighlight.js} +1 -1
  48. package/esm/interaction/brushHighlight.js.map +1 -0
  49. package/esm/interaction/brushXFilter.js.map +1 -0
  50. package/esm/interaction/brushXHighlight.js.map +1 -0
  51. package/esm/interaction/brushYFilter.js.map +1 -0
  52. package/esm/interaction/brushYHighlight.js.map +1 -0
  53. package/esm/interaction/{native/chartIndex.js → chartIndex.js} +2 -2
  54. package/esm/interaction/chartIndex.js.map +1 -0
  55. package/esm/interaction/{native/elementHighlight.js → elementHighlight.js} +1 -1
  56. package/esm/interaction/elementHighlight.js.map +1 -0
  57. package/esm/interaction/elementHighlightByColor.js.map +1 -0
  58. package/esm/interaction/elementHighlightByX.js.map +1 -0
  59. package/esm/interaction/{native/elementSelect.js → elementSelect.js} +1 -1
  60. package/esm/interaction/elementSelect.js.map +1 -0
  61. package/esm/interaction/elementSelectByColor.js.map +1 -0
  62. package/esm/interaction/elementSelectByX.js.map +1 -0
  63. package/esm/interaction/event.js +103 -0
  64. package/esm/interaction/event.js.map +1 -0
  65. package/esm/interaction/fisheye.js.map +1 -0
  66. package/esm/interaction/index.d.ts +21 -23
  67. package/esm/interaction/index.js +21 -24
  68. package/esm/interaction/index.js.map +1 -1
  69. package/esm/interaction/{native/legendFilter.js → legendFilter.js} +1 -1
  70. package/esm/interaction/legendFilter.js.map +1 -0
  71. package/esm/interaction/{native/legendHighlight.js → legendHighlight.js} +1 -1
  72. package/esm/interaction/legendHighlight.js.map +1 -0
  73. package/esm/interaction/{native/poptip.js → poptip.js} +2 -2
  74. package/esm/interaction/poptip.js.map +1 -0
  75. package/esm/interaction/{native/sliderFilter.js → sliderFilter.js} +3 -3
  76. package/esm/interaction/sliderFilter.js.map +1 -0
  77. package/esm/interaction/{native/tooltip.js → tooltip.js} +1 -1
  78. package/esm/interaction/tooltip.js.map +1 -0
  79. package/esm/interaction/utils.d.ts +47 -3
  80. package/esm/interaction/utils.js +371 -32
  81. package/esm/interaction/utils.js.map +1 -1
  82. package/esm/label-transform/contrastReverse.d.ts +2 -2
  83. package/esm/label-transform/contrastReverse.js.map +1 -1
  84. package/esm/label-transform/overflowHide.d.ts +2 -2
  85. package/esm/label-transform/overlapDodgeY.d.ts +2 -2
  86. package/esm/label-transform/overlapHide.d.ts +2 -2
  87. package/esm/mark/area.d.ts +2 -2
  88. package/esm/mark/box.d.ts +2 -2
  89. package/esm/mark/cell.d.ts +2 -2
  90. package/esm/mark/image.d.ts +2 -2
  91. package/esm/mark/interval.d.ts +2 -2
  92. package/esm/mark/line.d.ts +2 -2
  93. package/esm/mark/link.d.ts +2 -2
  94. package/esm/mark/point.d.ts +2 -2
  95. package/esm/mark/polygon.d.ts +2 -2
  96. package/esm/mark/rect.d.ts +2 -2
  97. package/esm/mark/text.d.ts +2 -2
  98. package/esm/mark/vector.d.ts +2 -2
  99. package/esm/palette/index.d.ts +0 -36
  100. package/esm/palette/index.js +0 -18
  101. package/esm/palette/index.js.map +1 -1
  102. package/esm/runtime/plot.js +3 -1
  103. package/esm/runtime/plot.js.map +1 -1
  104. package/esm/runtime/types/common.d.ts +6 -2
  105. package/esm/runtime/types/theme.d.ts +2 -2
  106. package/esm/spec/animate.d.ts +23 -1
  107. package/esm/spec/component.d.ts +68 -0
  108. package/esm/spec/component.js +2 -0
  109. package/esm/spec/component.js.map +1 -0
  110. package/esm/spec/composition.d.ts +26 -26
  111. package/esm/spec/coordinate.d.ts +23 -32
  112. package/esm/spec/coordinateTransform.d.ts +13 -0
  113. package/esm/spec/coordinateTransform.js +2 -0
  114. package/esm/spec/coordinateTransform.js.map +1 -0
  115. package/esm/spec/data.d.ts +4 -222
  116. package/esm/spec/dataTransform.d.ts +91 -0
  117. package/esm/spec/dataTransform.js +2 -0
  118. package/esm/spec/dataTransform.js.map +1 -0
  119. package/esm/spec/index.d.ts +15 -11
  120. package/esm/spec/index.js +12 -9
  121. package/esm/spec/index.js.map +1 -1
  122. package/esm/spec/interaction.d.ts +4 -4
  123. package/esm/spec/labelTransform.d.ts +5 -5
  124. package/esm/spec/mark.d.ts +185 -0
  125. package/esm/spec/mark.js +2 -0
  126. package/esm/spec/mark.js.map +1 -0
  127. package/esm/spec/palette.d.ts +0 -54
  128. package/esm/spec/transform.d.ts +1 -1
  129. package/esm/spec/utils.d.ts +4 -0
  130. package/esm/stdlib/index.js +3 -28
  131. package/esm/stdlib/index.js.map +1 -1
  132. package/lib/api/chart.d.ts +15 -2
  133. package/lib/api/chart.js +13 -3
  134. package/lib/api/chart.js.map +1 -1
  135. package/lib/api/composition/geoPath.js.map +1 -1
  136. package/lib/api/mark/index.d.ts +4 -1
  137. package/lib/api/mark/index.js +1 -0
  138. package/lib/api/mark/index.js.map +1 -1
  139. package/lib/api/mark/mark.d.ts +32 -26
  140. package/lib/api/mark/mark.js +10 -1
  141. package/lib/api/mark/mark.js.map +1 -1
  142. package/lib/api/mark/types.d.ts +2 -2
  143. package/lib/api/props.js +6 -2
  144. package/lib/api/props.js.map +1 -1
  145. package/lib/api/types.d.ts +2 -2
  146. package/lib/component/axis.js +3 -3
  147. package/lib/component/axis.js.map +1 -1
  148. package/lib/component/scrollbar.js +3 -3
  149. package/lib/component/scrollbar.js.map +1 -1
  150. package/lib/component/slider.js +3 -3
  151. package/lib/component/slider.js.map +1 -1
  152. package/lib/component/title.js +3 -14
  153. package/lib/component/title.js.map +1 -1
  154. package/lib/composition/mark.d.ts +1 -1
  155. package/lib/coordinate/polar.d.ts +3 -2
  156. package/lib/coordinate/radial.d.ts +3 -2
  157. package/lib/coordinate/theta.d.ts +1 -0
  158. package/lib/data/arc.d.ts +1 -2
  159. package/lib/data/arc.js.map +1 -1
  160. package/lib/data/cluster.d.ts +1 -2
  161. package/lib/data/cluster.js.map +1 -1
  162. package/lib/data/sankey.d.ts +1 -2
  163. package/lib/data/sankey.js.map +1 -1
  164. package/lib/data/tree.d.ts +1 -2
  165. package/lib/data/tree.js.map +1 -1
  166. package/lib/data/wordCloud.d.ts +1 -2
  167. package/lib/data/wordCloud.js.map +1 -1
  168. package/lib/geo/index.d.ts +2 -2
  169. package/lib/index.d.ts +3 -2
  170. package/lib/index.js +13 -2
  171. package/lib/index.js.map +1 -1
  172. package/lib/interaction/{native/brushAxisHighlight.js → brushAxisHighlight.js} +1 -1
  173. package/lib/interaction/brushAxisHighlight.js.map +1 -0
  174. package/lib/interaction/{native/brushFilter.js → brushFilter.js} +3 -3
  175. package/lib/interaction/brushFilter.js.map +1 -0
  176. package/lib/interaction/{native/brushHighlight.js → brushHighlight.js} +1 -1
  177. package/lib/interaction/brushHighlight.js.map +1 -0
  178. package/lib/interaction/brushXFilter.js.map +1 -0
  179. package/lib/interaction/brushXHighlight.js.map +1 -0
  180. package/lib/interaction/brushYFilter.js.map +1 -0
  181. package/lib/interaction/brushYHighlight.js.map +1 -0
  182. package/lib/interaction/{native/chartIndex.js → chartIndex.js} +2 -2
  183. package/lib/interaction/chartIndex.js.map +1 -0
  184. package/lib/interaction/{native/elementHighlight.js → elementHighlight.js} +1 -1
  185. package/lib/interaction/elementHighlight.js.map +1 -0
  186. package/lib/interaction/elementHighlightByColor.js.map +1 -0
  187. package/lib/interaction/elementHighlightByX.js.map +1 -0
  188. package/lib/interaction/{native/elementSelect.js → elementSelect.js} +1 -1
  189. package/lib/interaction/elementSelect.js.map +1 -0
  190. package/lib/interaction/elementSelectByColor.js.map +1 -0
  191. package/lib/interaction/elementSelectByX.js.map +1 -0
  192. package/lib/interaction/event.js +107 -0
  193. package/lib/interaction/event.js.map +1 -0
  194. package/lib/interaction/fisheye.js.map +1 -0
  195. package/lib/interaction/index.d.ts +21 -23
  196. package/lib/interaction/index.js +22 -26
  197. package/lib/interaction/index.js.map +1 -1
  198. package/lib/interaction/{native/legendFilter.js → legendFilter.js} +1 -1
  199. package/lib/interaction/legendFilter.js.map +1 -0
  200. package/lib/interaction/{native/legendHighlight.js → legendHighlight.js} +1 -1
  201. package/lib/interaction/legendHighlight.js.map +1 -0
  202. package/lib/interaction/{native/poptip.js → poptip.js} +2 -2
  203. package/lib/interaction/poptip.js.map +1 -0
  204. package/lib/interaction/{native/sliderFilter.js → sliderFilter.js} +3 -3
  205. package/lib/interaction/sliderFilter.js.map +1 -0
  206. package/lib/interaction/{native/tooltip.js → tooltip.js} +1 -1
  207. package/lib/interaction/tooltip.js.map +1 -0
  208. package/lib/interaction/utils.d.ts +47 -3
  209. package/lib/interaction/utils.js +389 -34
  210. package/lib/interaction/utils.js.map +1 -1
  211. package/lib/label-transform/contrastReverse.d.ts +2 -2
  212. package/lib/label-transform/contrastReverse.js.map +1 -1
  213. package/lib/label-transform/overflowHide.d.ts +2 -2
  214. package/lib/label-transform/overlapDodgeY.d.ts +2 -2
  215. package/lib/label-transform/overlapHide.d.ts +2 -2
  216. package/lib/mark/area.d.ts +2 -2
  217. package/lib/mark/box.d.ts +2 -2
  218. package/lib/mark/cell.d.ts +2 -2
  219. package/lib/mark/image.d.ts +2 -2
  220. package/lib/mark/interval.d.ts +2 -2
  221. package/lib/mark/line.d.ts +2 -2
  222. package/lib/mark/link.d.ts +2 -2
  223. package/lib/mark/point.d.ts +2 -2
  224. package/lib/mark/polygon.d.ts +2 -2
  225. package/lib/mark/rect.d.ts +2 -2
  226. package/lib/mark/text.d.ts +2 -2
  227. package/lib/mark/vector.d.ts +2 -2
  228. package/lib/palette/index.d.ts +0 -36
  229. package/lib/palette/index.js +1 -37
  230. package/lib/palette/index.js.map +1 -1
  231. package/lib/runtime/plot.js +3 -1
  232. package/lib/runtime/plot.js.map +1 -1
  233. package/lib/runtime/types/common.d.ts +6 -2
  234. package/lib/runtime/types/theme.d.ts +2 -2
  235. package/lib/spec/animate.d.ts +23 -1
  236. package/lib/spec/component.d.ts +68 -0
  237. package/lib/spec/{action.js → component.js} +1 -1
  238. package/lib/spec/component.js.map +1 -0
  239. package/lib/spec/composition.d.ts +26 -26
  240. package/lib/spec/coordinate.d.ts +23 -32
  241. package/lib/spec/coordinateTransform.d.ts +13 -0
  242. package/lib/spec/{title.js → coordinateTransform.js} +1 -1
  243. package/lib/spec/coordinateTransform.js.map +1 -0
  244. package/lib/spec/data.d.ts +4 -222
  245. package/lib/spec/dataTransform.d.ts +91 -0
  246. package/lib/spec/{geometry.js → dataTransform.js} +1 -1
  247. package/lib/spec/dataTransform.js.map +1 -0
  248. package/lib/spec/index.d.ts +15 -11
  249. package/lib/spec/index.js +12 -9
  250. package/lib/spec/index.js.map +1 -1
  251. package/lib/spec/interaction.d.ts +4 -4
  252. package/lib/spec/labelTransform.d.ts +5 -5
  253. package/lib/spec/mark.d.ts +185 -0
  254. package/lib/{interaction/types.js → spec/mark.js} +1 -1
  255. package/lib/spec/mark.js.map +1 -0
  256. package/lib/spec/palette.d.ts +0 -54
  257. package/lib/spec/transform.d.ts +1 -1
  258. package/lib/spec/utils.d.ts +4 -0
  259. package/lib/stdlib/index.js +1 -15
  260. package/lib/stdlib/index.js.map +1 -1
  261. package/package.json +1 -1
  262. package/src/api/chart.ts +31 -4
  263. package/src/api/composition/geoPath.ts +1 -6
  264. package/src/api/mark/index.ts +4 -0
  265. package/src/api/mark/mark.ts +49 -37
  266. package/src/api/mark/types.ts +2 -2
  267. package/src/api/props.ts +6 -2
  268. package/src/api/types.ts +4 -2
  269. package/src/component/axis.ts +3 -0
  270. package/src/component/scrollbar.ts +2 -1
  271. package/src/component/slider.ts +2 -1
  272. package/src/component/title.ts +3 -3
  273. package/src/composition/mark.ts +1 -1
  274. package/src/data/arc.ts +1 -2
  275. package/src/data/cluster.ts +1 -2
  276. package/src/data/sankey.ts +1 -2
  277. package/src/data/tree.ts +1 -2
  278. package/src/data/wordCloud.ts +1 -2
  279. package/src/index.ts +14 -2
  280. package/src/interaction/{native/brushAxisHighlight.ts → brushAxisHighlight.ts} +1 -1
  281. package/src/interaction/{native/brushFilter.ts → brushFilter.ts} +4 -4
  282. package/src/interaction/{native/brushHighlight.ts → brushHighlight.ts} +1 -1
  283. package/src/interaction/{native/chartIndex.ts → chartIndex.ts} +2 -2
  284. package/src/interaction/{native/elementHighlight.ts → elementHighlight.ts} +1 -1
  285. package/src/interaction/{native/elementSelect.ts → elementSelect.ts} +1 -1
  286. package/src/interaction/event.ts +119 -0
  287. package/src/interaction/index.ts +21 -57
  288. package/src/interaction/{native/legendFilter.ts → legendFilter.ts} +1 -1
  289. package/src/interaction/{native/legendHighlight.ts → legendHighlight.ts} +1 -1
  290. package/src/interaction/{native/poptip.ts → poptip.ts} +2 -2
  291. package/src/interaction/{native/sliderFilter.ts → sliderFilter.ts} +3 -3
  292. package/src/interaction/{native/tooltip.ts → tooltip.ts} +1 -1
  293. package/src/interaction/utils.ts +446 -56
  294. package/src/label-transform/contrastReverse.ts +5 -2
  295. package/src/label-transform/overflowHide.ts +2 -2
  296. package/src/label-transform/overlapDodgeY.ts +2 -2
  297. package/src/label-transform/overlapHide.ts +2 -2
  298. package/src/mark/area.ts +2 -2
  299. package/src/mark/box.ts +2 -2
  300. package/src/mark/cell.ts +2 -2
  301. package/src/mark/image.ts +2 -2
  302. package/src/mark/interval.ts +2 -2
  303. package/src/mark/line.ts +2 -2
  304. package/src/mark/link.ts +2 -2
  305. package/src/mark/point.ts +2 -2
  306. package/src/mark/polygon.ts +2 -2
  307. package/src/mark/rect.ts +2 -2
  308. package/src/mark/text.ts +2 -2
  309. package/src/mark/vector.ts +2 -2
  310. package/src/palette/index.ts +0 -37
  311. package/src/runtime/plot.ts +3 -2
  312. package/src/runtime/types/common.ts +7 -2
  313. package/src/runtime/types/theme.ts +1 -1
  314. package/src/spec/animate.ts +50 -4
  315. package/src/spec/component.ts +94 -0
  316. package/src/spec/composition.ts +40 -28
  317. package/src/spec/coordinate.ts +20 -36
  318. package/src/spec/coordinateTransform.ts +16 -0
  319. package/src/spec/data.ts +12 -271
  320. package/src/spec/dataTransform.ts +125 -0
  321. package/src/spec/index.ts +15 -11
  322. package/src/spec/interaction.ts +4 -5
  323. package/src/spec/labelTransform.ts +8 -8
  324. package/src/spec/mark.ts +359 -0
  325. package/src/spec/palette.ts +0 -80
  326. package/src/spec/transform.ts +1 -1
  327. package/src/spec/utils.ts +11 -2
  328. package/src/stdlib/index.ts +1 -64
  329. package/esm/data/voronoi.d.ts +0 -1
  330. package/esm/data/voronoi.js +0 -6
  331. package/esm/data/voronoi.js.map +0 -1
  332. package/esm/interaction/action/index.d.ts +0 -44
  333. package/esm/interaction/action/index.js +0 -24
  334. package/esm/interaction/action/index.js.map +0 -1
  335. package/esm/interaction/action/service/elementSelection.d.ts +0 -4
  336. package/esm/interaction/action/service/elementSelection.js +0 -90
  337. package/esm/interaction/action/service/elementSelection.js.map +0 -1
  338. package/esm/interaction/action/service/fisheyeFocus.d.ts +0 -4
  339. package/esm/interaction/action/service/fisheyeFocus.js +0 -51
  340. package/esm/interaction/action/service/fisheyeFocus.js.map +0 -1
  341. package/esm/interaction/action/service/legendItemSelection.d.ts +0 -4
  342. package/esm/interaction/action/service/legendItemSelection.js +0 -17
  343. package/esm/interaction/action/service/legendItemSelection.js.map +0 -1
  344. package/esm/interaction/action/service/recordCurrentPoint.d.ts +0 -4
  345. package/esm/interaction/action/service/recordCurrentPoint.js +0 -16
  346. package/esm/interaction/action/service/recordCurrentPoint.js.map +0 -1
  347. package/esm/interaction/action/service/recordPoint.d.ts +0 -4
  348. package/esm/interaction/action/service/recordPoint.js +0 -28
  349. package/esm/interaction/action/service/recordPoint.js.map +0 -1
  350. package/esm/interaction/action/service/recordRegion.d.ts +0 -4
  351. package/esm/interaction/action/service/recordRegion.js +0 -30
  352. package/esm/interaction/action/service/recordRegion.js.map +0 -1
  353. package/esm/interaction/action/service/recordState.d.ts +0 -4
  354. package/esm/interaction/action/service/recordState.js +0 -10
  355. package/esm/interaction/action/service/recordState.js.map +0 -1
  356. package/esm/interaction/action/service/recordTip.d.ts +0 -8
  357. package/esm/interaction/action/service/recordTip.js +0 -15
  358. package/esm/interaction/action/service/recordTip.js.map +0 -1
  359. package/esm/interaction/action/service/surfacePointSelection.d.ts +0 -4
  360. package/esm/interaction/action/service/surfacePointSelection.js +0 -19
  361. package/esm/interaction/action/service/surfacePointSelection.js.map +0 -1
  362. package/esm/interaction/action/service/triggerInfoSelection.d.ts +0 -4
  363. package/esm/interaction/action/service/triggerInfoSelection.js +0 -18
  364. package/esm/interaction/action/service/triggerInfoSelection.js.map +0 -1
  365. package/esm/interaction/action/transformer/activeElement.d.ts +0 -4
  366. package/esm/interaction/action/transformer/activeElement.js +0 -23
  367. package/esm/interaction/action/transformer/activeElement.js.map +0 -1
  368. package/esm/interaction/action/transformer/activeRegion.d.ts +0 -4
  369. package/esm/interaction/action/transformer/activeRegion.js +0 -52
  370. package/esm/interaction/action/transformer/activeRegion.js.map +0 -1
  371. package/esm/interaction/action/transformer/button.d.ts +0 -4
  372. package/esm/interaction/action/transformer/button.js +0 -76
  373. package/esm/interaction/action/transformer/button.js.map +0 -1
  374. package/esm/interaction/action/transformer/cursor.d.ts +0 -4
  375. package/esm/interaction/action/transformer/cursor.js +0 -15
  376. package/esm/interaction/action/transformer/cursor.js.map +0 -1
  377. package/esm/interaction/action/transformer/filter.d.ts +0 -7
  378. package/esm/interaction/action/transformer/filter.js +0 -47
  379. package/esm/interaction/action/transformer/filter.js.map +0 -1
  380. package/esm/interaction/action/transformer/filterElement.d.ts +0 -4
  381. package/esm/interaction/action/transformer/filterElement.js +0 -41
  382. package/esm/interaction/action/transformer/filterElement.js.map +0 -1
  383. package/esm/interaction/action/transformer/highlightElement.d.ts +0 -4
  384. package/esm/interaction/action/transformer/highlightElement.js +0 -48
  385. package/esm/interaction/action/transformer/highlightElement.js.map +0 -1
  386. package/esm/interaction/action/transformer/mask.d.ts +0 -7
  387. package/esm/interaction/action/transformer/mask.js +0 -106
  388. package/esm/interaction/action/transformer/mask.js.map +0 -1
  389. package/esm/interaction/action/transformer/move.d.ts +0 -7
  390. package/esm/interaction/action/transformer/move.js +0 -70
  391. package/esm/interaction/action/transformer/move.js.map +0 -1
  392. package/esm/interaction/action/transformer/plot.d.ts +0 -4
  393. package/esm/interaction/action/transformer/plot.js +0 -10
  394. package/esm/interaction/action/transformer/plot.js.map +0 -1
  395. package/esm/interaction/action/transformer/poptip.d.ts +0 -4
  396. package/esm/interaction/action/transformer/poptip.js +0 -39
  397. package/esm/interaction/action/transformer/poptip.js.map +0 -1
  398. package/esm/interaction/action/transformer/setItemState.d.ts +0 -4
  399. package/esm/interaction/action/transformer/setItemState.js +0 -31
  400. package/esm/interaction/action/transformer/setItemState.js.map +0 -1
  401. package/esm/interaction/action/transformer/tooltip.d.ts +0 -9
  402. package/esm/interaction/action/transformer/tooltip.js +0 -289
  403. package/esm/interaction/action/transformer/tooltip.js.map +0 -1
  404. package/esm/interaction/builtin/activeRegion.d.ts +0 -17
  405. package/esm/interaction/builtin/activeRegion.js +0 -18
  406. package/esm/interaction/builtin/activeRegion.js.map +0 -1
  407. package/esm/interaction/builtin/brush.d.ts +0 -132
  408. package/esm/interaction/builtin/brush.js +0 -93
  409. package/esm/interaction/builtin/brush.js.map +0 -1
  410. package/esm/interaction/builtin/brushHighlight.d.ts +0 -98
  411. package/esm/interaction/builtin/brushHighlight.js +0 -111
  412. package/esm/interaction/builtin/brushHighlight.js.map +0 -1
  413. package/esm/interaction/builtin/brushVisible.d.ts +0 -88
  414. package/esm/interaction/builtin/brushVisible.js +0 -62
  415. package/esm/interaction/builtin/brushVisible.js.map +0 -1
  416. package/esm/interaction/builtin/elementActive.d.ts +0 -20
  417. package/esm/interaction/builtin/elementActive.js +0 -25
  418. package/esm/interaction/builtin/elementActive.js.map +0 -1
  419. package/esm/interaction/builtin/elementHighlight.d.ts +0 -19
  420. package/esm/interaction/builtin/elementHighlight.js +0 -24
  421. package/esm/interaction/builtin/elementHighlight.js.map +0 -1
  422. package/esm/interaction/builtin/elementHighlightByColor.d.ts +0 -25
  423. package/esm/interaction/builtin/elementHighlightByColor.js +0 -24
  424. package/esm/interaction/builtin/elementHighlightByColor.js.map +0 -1
  425. package/esm/interaction/builtin/elementHighlightByX.d.ts +0 -25
  426. package/esm/interaction/builtin/elementHighlightByX.js +0 -24
  427. package/esm/interaction/builtin/elementHighlightByX.js.map +0 -1
  428. package/esm/interaction/builtin/elementListHighlight.d.ts +0 -43
  429. package/esm/interaction/builtin/elementListHighlight.js +0 -28
  430. package/esm/interaction/builtin/elementListHighlight.js.map +0 -1
  431. package/esm/interaction/builtin/elementSelected.d.ts +0 -18
  432. package/esm/interaction/builtin/elementSelected.js +0 -18
  433. package/esm/interaction/builtin/elementSelected.js.map +0 -1
  434. package/esm/interaction/builtin/ellipsisText.d.ts +0 -16
  435. package/esm/interaction/builtin/ellipsisText.js +0 -17
  436. package/esm/interaction/builtin/ellipsisText.js.map +0 -1
  437. package/esm/interaction/builtin/fisheye.d.ts +0 -41
  438. package/esm/interaction/builtin/fisheye.js +0 -20
  439. package/esm/interaction/builtin/fisheye.js.map +0 -1
  440. package/esm/interaction/builtin/legendActive.d.ts +0 -43
  441. package/esm/interaction/builtin/legendActive.js +0 -30
  442. package/esm/interaction/builtin/legendActive.js.map +0 -1
  443. package/esm/interaction/builtin/legendHighlight.d.ts +0 -43
  444. package/esm/interaction/builtin/legendHighlight.js +0 -30
  445. package/esm/interaction/builtin/legendHighlight.js.map +0 -1
  446. package/esm/interaction/builtin/tooltip.d.ts +0 -52
  447. package/esm/interaction/builtin/tooltip.js +0 -28
  448. package/esm/interaction/builtin/tooltip.js.map +0 -1
  449. package/esm/interaction/create.d.ts +0 -3
  450. package/esm/interaction/create.js +0 -96
  451. package/esm/interaction/create.js.map +0 -1
  452. package/esm/interaction/interactor/index.d.ts +0 -4
  453. package/esm/interaction/interactor/index.js +0 -3
  454. package/esm/interaction/interactor/index.js.map +0 -1
  455. package/esm/interaction/interactor/mousePosition.d.ts +0 -3
  456. package/esm/interaction/interactor/mousePosition.js +0 -10
  457. package/esm/interaction/interactor/mousePosition.js.map +0 -1
  458. package/esm/interaction/interactor/touchPosition.d.ts +0 -3
  459. package/esm/interaction/interactor/touchPosition.js +0 -10
  460. package/esm/interaction/interactor/touchPosition.js.map +0 -1
  461. package/esm/interaction/native/brushAxisHighlight.js.map +0 -1
  462. package/esm/interaction/native/brushFilter.js.map +0 -1
  463. package/esm/interaction/native/brushHighlight.js.map +0 -1
  464. package/esm/interaction/native/brushXFilter.js.map +0 -1
  465. package/esm/interaction/native/brushXHighlight.js.map +0 -1
  466. package/esm/interaction/native/brushYFilter.js.map +0 -1
  467. package/esm/interaction/native/brushYHighlight.js.map +0 -1
  468. package/esm/interaction/native/chartIndex.js.map +0 -1
  469. package/esm/interaction/native/elementHighlight.js.map +0 -1
  470. package/esm/interaction/native/elementHighlightByColor.js.map +0 -1
  471. package/esm/interaction/native/elementHighlightByX.js.map +0 -1
  472. package/esm/interaction/native/elementSelect.js.map +0 -1
  473. package/esm/interaction/native/elementSelectByColor.js.map +0 -1
  474. package/esm/interaction/native/elementSelectByX.js.map +0 -1
  475. package/esm/interaction/native/event.js +0 -42
  476. package/esm/interaction/native/event.js.map +0 -1
  477. package/esm/interaction/native/fisheye.js.map +0 -1
  478. package/esm/interaction/native/legendFilter.js.map +0 -1
  479. package/esm/interaction/native/legendHighlight.js.map +0 -1
  480. package/esm/interaction/native/poptip.js.map +0 -1
  481. package/esm/interaction/native/sliderFilter.js.map +0 -1
  482. package/esm/interaction/native/tooltip.js.map +0 -1
  483. package/esm/interaction/native/utils.d.ts +0 -47
  484. package/esm/interaction/native/utils.js +0 -379
  485. package/esm/interaction/native/utils.js.map +0 -1
  486. package/esm/interaction/stdlib.d.ts +0 -2
  487. package/esm/interaction/stdlib.js +0 -32
  488. package/esm/interaction/stdlib.js.map +0 -1
  489. package/esm/interaction/types.d.ts +0 -57
  490. package/esm/interaction/types.js +0 -2
  491. package/esm/interaction/types.js.map +0 -1
  492. package/esm/palette/divergingGreenRed.d.ts +0 -7
  493. package/esm/palette/divergingGreenRed.js +0 -26
  494. package/esm/palette/divergingGreenRed.js.map +0 -1
  495. package/esm/palette/divergingGreenYellow.d.ts +0 -7
  496. package/esm/palette/divergingGreenYellow.js +0 -26
  497. package/esm/palette/divergingGreenYellow.js.map +0 -1
  498. package/esm/palette/divergingRedBlue.d.ts +0 -7
  499. package/esm/palette/divergingRedBlue.js +0 -26
  500. package/esm/palette/divergingRedBlue.js.map +0 -1
  501. package/esm/palette/divergingRedPurple.d.ts +0 -7
  502. package/esm/palette/divergingRedPurple.js +0 -26
  503. package/esm/palette/divergingRedPurple.js.map +0 -1
  504. package/esm/palette/sequentialBlue.d.ts +0 -7
  505. package/esm/palette/sequentialBlue.js +0 -18
  506. package/esm/palette/sequentialBlue.js.map +0 -1
  507. package/esm/palette/sequentialDarkBlue.d.ts +0 -7
  508. package/esm/palette/sequentialDarkBlue.js +0 -18
  509. package/esm/palette/sequentialDarkBlue.js.map +0 -1
  510. package/esm/palette/sequentialDarkGreen.d.ts +0 -7
  511. package/esm/palette/sequentialDarkGreen.js +0 -18
  512. package/esm/palette/sequentialDarkGreen.js.map +0 -1
  513. package/esm/palette/sequentialGreen.d.ts +0 -7
  514. package/esm/palette/sequentialGreen.js +0 -18
  515. package/esm/palette/sequentialGreen.js.map +0 -1
  516. package/esm/palette/sequentialGreenBlue.d.ts +0 -7
  517. package/esm/palette/sequentialGreenBlue.js +0 -18
  518. package/esm/palette/sequentialGreenBlue.js.map +0 -1
  519. package/esm/palette/sequentialGrey.d.ts +0 -7
  520. package/esm/palette/sequentialGrey.js +0 -18
  521. package/esm/palette/sequentialGrey.js.map +0 -1
  522. package/esm/palette/sequentialOrange.d.ts +0 -7
  523. package/esm/palette/sequentialOrange.js +0 -18
  524. package/esm/palette/sequentialOrange.js.map +0 -1
  525. package/esm/palette/sequentialPink.d.ts +0 -7
  526. package/esm/palette/sequentialPink.js +0 -18
  527. package/esm/palette/sequentialPink.js.map +0 -1
  528. package/esm/palette/sequentialPinkPurple.d.ts +0 -7
  529. package/esm/palette/sequentialPinkPurple.js +0 -18
  530. package/esm/palette/sequentialPinkPurple.js.map +0 -1
  531. package/esm/palette/sequentialPurple.d.ts +0 -7
  532. package/esm/palette/sequentialPurple.js +0 -18
  533. package/esm/palette/sequentialPurple.js.map +0 -1
  534. package/esm/palette/sequentialRed.d.ts +0 -7
  535. package/esm/palette/sequentialRed.js +0 -18
  536. package/esm/palette/sequentialRed.js.map +0 -1
  537. package/esm/palette/sequentialYellow.d.ts +0 -7
  538. package/esm/palette/sequentialYellow.js +0 -18
  539. package/esm/palette/sequentialYellow.js.map +0 -1
  540. package/esm/palette/sequentialYellowGreen.d.ts +0 -7
  541. package/esm/palette/sequentialYellowGreen.js +0 -18
  542. package/esm/palette/sequentialYellowGreen.js.map +0 -1
  543. package/esm/palette/sequentialYellowOrange.d.ts +0 -7
  544. package/esm/palette/sequentialYellowOrange.js +0 -18
  545. package/esm/palette/sequentialYellowOrange.js.map +0 -1
  546. package/esm/spec/action.d.ts +0 -122
  547. package/esm/spec/action.js +0 -2
  548. package/esm/spec/action.js.map +0 -1
  549. package/esm/spec/geometry.d.ts +0 -162
  550. package/esm/spec/geometry.js +0 -2
  551. package/esm/spec/geometry.js.map +0 -1
  552. package/esm/spec/title.d.ts +0 -2
  553. package/esm/spec/title.js +0 -2
  554. package/esm/spec/title.js.map +0 -1
  555. package/lib/data/voronoi.d.ts +0 -1
  556. package/lib/data/voronoi.js +0 -7
  557. package/lib/data/voronoi.js.map +0 -1
  558. package/lib/interaction/action/index.d.ts +0 -44
  559. package/lib/interaction/action/index.js +0 -50
  560. package/lib/interaction/action/index.js.map +0 -1
  561. package/lib/interaction/action/service/elementSelection.d.ts +0 -4
  562. package/lib/interaction/action/service/elementSelection.js +0 -94
  563. package/lib/interaction/action/service/elementSelection.js.map +0 -1
  564. package/lib/interaction/action/service/fisheyeFocus.d.ts +0 -4
  565. package/lib/interaction/action/service/fisheyeFocus.js +0 -55
  566. package/lib/interaction/action/service/fisheyeFocus.js.map +0 -1
  567. package/lib/interaction/action/service/legendItemSelection.d.ts +0 -4
  568. package/lib/interaction/action/service/legendItemSelection.js +0 -21
  569. package/lib/interaction/action/service/legendItemSelection.js.map +0 -1
  570. package/lib/interaction/action/service/recordCurrentPoint.d.ts +0 -4
  571. package/lib/interaction/action/service/recordCurrentPoint.js +0 -20
  572. package/lib/interaction/action/service/recordCurrentPoint.js.map +0 -1
  573. package/lib/interaction/action/service/recordPoint.d.ts +0 -4
  574. package/lib/interaction/action/service/recordPoint.js +0 -32
  575. package/lib/interaction/action/service/recordPoint.js.map +0 -1
  576. package/lib/interaction/action/service/recordRegion.d.ts +0 -4
  577. package/lib/interaction/action/service/recordRegion.js +0 -34
  578. package/lib/interaction/action/service/recordRegion.js.map +0 -1
  579. package/lib/interaction/action/service/recordState.d.ts +0 -4
  580. package/lib/interaction/action/service/recordState.js +0 -14
  581. package/lib/interaction/action/service/recordState.js.map +0 -1
  582. package/lib/interaction/action/service/recordTip.d.ts +0 -8
  583. package/lib/interaction/action/service/recordTip.js +0 -19
  584. package/lib/interaction/action/service/recordTip.js.map +0 -1
  585. package/lib/interaction/action/service/surfacePointSelection.d.ts +0 -4
  586. package/lib/interaction/action/service/surfacePointSelection.js +0 -23
  587. package/lib/interaction/action/service/surfacePointSelection.js.map +0 -1
  588. package/lib/interaction/action/service/triggerInfoSelection.d.ts +0 -4
  589. package/lib/interaction/action/service/triggerInfoSelection.js +0 -22
  590. package/lib/interaction/action/service/triggerInfoSelection.js.map +0 -1
  591. package/lib/interaction/action/transformer/activeElement.d.ts +0 -4
  592. package/lib/interaction/action/transformer/activeElement.js +0 -27
  593. package/lib/interaction/action/transformer/activeElement.js.map +0 -1
  594. package/lib/interaction/action/transformer/activeRegion.d.ts +0 -4
  595. package/lib/interaction/action/transformer/activeRegion.js +0 -56
  596. package/lib/interaction/action/transformer/activeRegion.js.map +0 -1
  597. package/lib/interaction/action/transformer/button.d.ts +0 -4
  598. package/lib/interaction/action/transformer/button.js +0 -80
  599. package/lib/interaction/action/transformer/button.js.map +0 -1
  600. package/lib/interaction/action/transformer/cursor.d.ts +0 -4
  601. package/lib/interaction/action/transformer/cursor.js +0 -19
  602. package/lib/interaction/action/transformer/cursor.js.map +0 -1
  603. package/lib/interaction/action/transformer/filter.d.ts +0 -7
  604. package/lib/interaction/action/transformer/filter.js +0 -51
  605. package/lib/interaction/action/transformer/filter.js.map +0 -1
  606. package/lib/interaction/action/transformer/filterElement.d.ts +0 -4
  607. package/lib/interaction/action/transformer/filterElement.js +0 -45
  608. package/lib/interaction/action/transformer/filterElement.js.map +0 -1
  609. package/lib/interaction/action/transformer/highlightElement.d.ts +0 -4
  610. package/lib/interaction/action/transformer/highlightElement.js +0 -52
  611. package/lib/interaction/action/transformer/highlightElement.js.map +0 -1
  612. package/lib/interaction/action/transformer/mask.d.ts +0 -7
  613. package/lib/interaction/action/transformer/mask.js +0 -110
  614. package/lib/interaction/action/transformer/mask.js.map +0 -1
  615. package/lib/interaction/action/transformer/move.d.ts +0 -7
  616. package/lib/interaction/action/transformer/move.js +0 -74
  617. package/lib/interaction/action/transformer/move.js.map +0 -1
  618. package/lib/interaction/action/transformer/plot.d.ts +0 -4
  619. package/lib/interaction/action/transformer/plot.js +0 -14
  620. package/lib/interaction/action/transformer/plot.js.map +0 -1
  621. package/lib/interaction/action/transformer/poptip.d.ts +0 -4
  622. package/lib/interaction/action/transformer/poptip.js +0 -43
  623. package/lib/interaction/action/transformer/poptip.js.map +0 -1
  624. package/lib/interaction/action/transformer/setItemState.d.ts +0 -4
  625. package/lib/interaction/action/transformer/setItemState.js +0 -35
  626. package/lib/interaction/action/transformer/setItemState.js.map +0 -1
  627. package/lib/interaction/action/transformer/tooltip.d.ts +0 -9
  628. package/lib/interaction/action/transformer/tooltip.js +0 -293
  629. package/lib/interaction/action/transformer/tooltip.js.map +0 -1
  630. package/lib/interaction/builtin/activeRegion.d.ts +0 -17
  631. package/lib/interaction/builtin/activeRegion.js +0 -22
  632. package/lib/interaction/builtin/activeRegion.js.map +0 -1
  633. package/lib/interaction/builtin/brush.d.ts +0 -132
  634. package/lib/interaction/builtin/brush.js +0 -97
  635. package/lib/interaction/builtin/brush.js.map +0 -1
  636. package/lib/interaction/builtin/brushHighlight.d.ts +0 -98
  637. package/lib/interaction/builtin/brushHighlight.js +0 -115
  638. package/lib/interaction/builtin/brushHighlight.js.map +0 -1
  639. package/lib/interaction/builtin/brushVisible.d.ts +0 -88
  640. package/lib/interaction/builtin/brushVisible.js +0 -66
  641. package/lib/interaction/builtin/brushVisible.js.map +0 -1
  642. package/lib/interaction/builtin/elementActive.d.ts +0 -20
  643. package/lib/interaction/builtin/elementActive.js +0 -29
  644. package/lib/interaction/builtin/elementActive.js.map +0 -1
  645. package/lib/interaction/builtin/elementHighlight.d.ts +0 -19
  646. package/lib/interaction/builtin/elementHighlight.js +0 -28
  647. package/lib/interaction/builtin/elementHighlight.js.map +0 -1
  648. package/lib/interaction/builtin/elementHighlightByColor.d.ts +0 -25
  649. package/lib/interaction/builtin/elementHighlightByColor.js +0 -28
  650. package/lib/interaction/builtin/elementHighlightByColor.js.map +0 -1
  651. package/lib/interaction/builtin/elementHighlightByX.d.ts +0 -25
  652. package/lib/interaction/builtin/elementHighlightByX.js +0 -28
  653. package/lib/interaction/builtin/elementHighlightByX.js.map +0 -1
  654. package/lib/interaction/builtin/elementListHighlight.d.ts +0 -43
  655. package/lib/interaction/builtin/elementListHighlight.js +0 -32
  656. package/lib/interaction/builtin/elementListHighlight.js.map +0 -1
  657. package/lib/interaction/builtin/elementSelected.d.ts +0 -18
  658. package/lib/interaction/builtin/elementSelected.js +0 -22
  659. package/lib/interaction/builtin/elementSelected.js.map +0 -1
  660. package/lib/interaction/builtin/ellipsisText.d.ts +0 -16
  661. package/lib/interaction/builtin/ellipsisText.js +0 -21
  662. package/lib/interaction/builtin/ellipsisText.js.map +0 -1
  663. package/lib/interaction/builtin/fisheye.d.ts +0 -41
  664. package/lib/interaction/builtin/fisheye.js +0 -24
  665. package/lib/interaction/builtin/fisheye.js.map +0 -1
  666. package/lib/interaction/builtin/legendActive.d.ts +0 -43
  667. package/lib/interaction/builtin/legendActive.js +0 -34
  668. package/lib/interaction/builtin/legendActive.js.map +0 -1
  669. package/lib/interaction/builtin/legendHighlight.d.ts +0 -43
  670. package/lib/interaction/builtin/legendHighlight.js +0 -34
  671. package/lib/interaction/builtin/legendHighlight.js.map +0 -1
  672. package/lib/interaction/builtin/tooltip.d.ts +0 -52
  673. package/lib/interaction/builtin/tooltip.js +0 -32
  674. package/lib/interaction/builtin/tooltip.js.map +0 -1
  675. package/lib/interaction/create.d.ts +0 -3
  676. package/lib/interaction/create.js +0 -100
  677. package/lib/interaction/create.js.map +0 -1
  678. package/lib/interaction/interactor/index.d.ts +0 -4
  679. package/lib/interaction/interactor/index.js +0 -8
  680. package/lib/interaction/interactor/index.js.map +0 -1
  681. package/lib/interaction/interactor/mousePosition.d.ts +0 -3
  682. package/lib/interaction/interactor/mousePosition.js +0 -14
  683. package/lib/interaction/interactor/mousePosition.js.map +0 -1
  684. package/lib/interaction/interactor/touchPosition.d.ts +0 -3
  685. package/lib/interaction/interactor/touchPosition.js +0 -14
  686. package/lib/interaction/interactor/touchPosition.js.map +0 -1
  687. package/lib/interaction/native/brushAxisHighlight.js.map +0 -1
  688. package/lib/interaction/native/brushFilter.js.map +0 -1
  689. package/lib/interaction/native/brushHighlight.js.map +0 -1
  690. package/lib/interaction/native/brushXFilter.js.map +0 -1
  691. package/lib/interaction/native/brushXHighlight.js.map +0 -1
  692. package/lib/interaction/native/brushYFilter.js.map +0 -1
  693. package/lib/interaction/native/brushYHighlight.js.map +0 -1
  694. package/lib/interaction/native/chartIndex.js.map +0 -1
  695. package/lib/interaction/native/elementHighlight.js.map +0 -1
  696. package/lib/interaction/native/elementHighlightByColor.js.map +0 -1
  697. package/lib/interaction/native/elementHighlightByX.js.map +0 -1
  698. package/lib/interaction/native/elementSelect.js.map +0 -1
  699. package/lib/interaction/native/elementSelectByColor.js.map +0 -1
  700. package/lib/interaction/native/elementSelectByX.js.map +0 -1
  701. package/lib/interaction/native/event.js +0 -46
  702. package/lib/interaction/native/event.js.map +0 -1
  703. package/lib/interaction/native/fisheye.js.map +0 -1
  704. package/lib/interaction/native/legendFilter.js.map +0 -1
  705. package/lib/interaction/native/legendHighlight.js.map +0 -1
  706. package/lib/interaction/native/poptip.js.map +0 -1
  707. package/lib/interaction/native/sliderFilter.js.map +0 -1
  708. package/lib/interaction/native/tooltip.js.map +0 -1
  709. package/lib/interaction/native/utils.d.ts +0 -47
  710. package/lib/interaction/native/utils.js +0 -400
  711. package/lib/interaction/native/utils.js.map +0 -1
  712. package/lib/interaction/stdlib.d.ts +0 -2
  713. package/lib/interaction/stdlib.js +0 -36
  714. package/lib/interaction/stdlib.js.map +0 -1
  715. package/lib/interaction/types.d.ts +0 -57
  716. package/lib/interaction/types.js.map +0 -1
  717. package/lib/palette/divergingGreenRed.d.ts +0 -7
  718. package/lib/palette/divergingGreenRed.js +0 -30
  719. package/lib/palette/divergingGreenRed.js.map +0 -1
  720. package/lib/palette/divergingGreenYellow.d.ts +0 -7
  721. package/lib/palette/divergingGreenYellow.js +0 -30
  722. package/lib/palette/divergingGreenYellow.js.map +0 -1
  723. package/lib/palette/divergingRedBlue.d.ts +0 -7
  724. package/lib/palette/divergingRedBlue.js +0 -30
  725. package/lib/palette/divergingRedBlue.js.map +0 -1
  726. package/lib/palette/divergingRedPurple.d.ts +0 -7
  727. package/lib/palette/divergingRedPurple.js +0 -30
  728. package/lib/palette/divergingRedPurple.js.map +0 -1
  729. package/lib/palette/sequentialBlue.d.ts +0 -7
  730. package/lib/palette/sequentialBlue.js +0 -22
  731. package/lib/palette/sequentialBlue.js.map +0 -1
  732. package/lib/palette/sequentialDarkBlue.d.ts +0 -7
  733. package/lib/palette/sequentialDarkBlue.js +0 -22
  734. package/lib/palette/sequentialDarkBlue.js.map +0 -1
  735. package/lib/palette/sequentialDarkGreen.d.ts +0 -7
  736. package/lib/palette/sequentialDarkGreen.js +0 -22
  737. package/lib/palette/sequentialDarkGreen.js.map +0 -1
  738. package/lib/palette/sequentialGreen.d.ts +0 -7
  739. package/lib/palette/sequentialGreen.js +0 -22
  740. package/lib/palette/sequentialGreen.js.map +0 -1
  741. package/lib/palette/sequentialGreenBlue.d.ts +0 -7
  742. package/lib/palette/sequentialGreenBlue.js +0 -22
  743. package/lib/palette/sequentialGreenBlue.js.map +0 -1
  744. package/lib/palette/sequentialGrey.d.ts +0 -7
  745. package/lib/palette/sequentialGrey.js +0 -22
  746. package/lib/palette/sequentialGrey.js.map +0 -1
  747. package/lib/palette/sequentialOrange.d.ts +0 -7
  748. package/lib/palette/sequentialOrange.js +0 -22
  749. package/lib/palette/sequentialOrange.js.map +0 -1
  750. package/lib/palette/sequentialPink.d.ts +0 -7
  751. package/lib/palette/sequentialPink.js +0 -22
  752. package/lib/palette/sequentialPink.js.map +0 -1
  753. package/lib/palette/sequentialPinkPurple.d.ts +0 -7
  754. package/lib/palette/sequentialPinkPurple.js +0 -22
  755. package/lib/palette/sequentialPinkPurple.js.map +0 -1
  756. package/lib/palette/sequentialPurple.d.ts +0 -7
  757. package/lib/palette/sequentialPurple.js +0 -22
  758. package/lib/palette/sequentialPurple.js.map +0 -1
  759. package/lib/palette/sequentialRed.d.ts +0 -7
  760. package/lib/palette/sequentialRed.js +0 -22
  761. package/lib/palette/sequentialRed.js.map +0 -1
  762. package/lib/palette/sequentialYellow.d.ts +0 -7
  763. package/lib/palette/sequentialYellow.js +0 -22
  764. package/lib/palette/sequentialYellow.js.map +0 -1
  765. package/lib/palette/sequentialYellowGreen.d.ts +0 -7
  766. package/lib/palette/sequentialYellowGreen.js +0 -22
  767. package/lib/palette/sequentialYellowGreen.js.map +0 -1
  768. package/lib/palette/sequentialYellowOrange.d.ts +0 -7
  769. package/lib/palette/sequentialYellowOrange.js +0 -22
  770. package/lib/palette/sequentialYellowOrange.js.map +0 -1
  771. package/lib/spec/action.d.ts +0 -122
  772. package/lib/spec/action.js.map +0 -1
  773. package/lib/spec/geometry.d.ts +0 -162
  774. package/lib/spec/geometry.js.map +0 -1
  775. package/lib/spec/title.d.ts +0 -2
  776. package/lib/spec/title.js.map +0 -1
  777. package/src/.DS_Store +0 -0
  778. package/src/data/.DS_Store +0 -0
  779. package/src/data/voronoi.ts +0 -32
  780. package/src/interaction/action/index.ts +0 -45
  781. package/src/interaction/action/service/elementSelection.ts +0 -125
  782. package/src/interaction/action/service/fisheyeFocus.ts +0 -75
  783. package/src/interaction/action/service/legendItemSelection.ts +0 -33
  784. package/src/interaction/action/service/recordCurrentPoint.ts +0 -22
  785. package/src/interaction/action/service/recordPoint.ts +0 -35
  786. package/src/interaction/action/service/recordRegion.ts +0 -41
  787. package/src/interaction/action/service/recordState.ts +0 -15
  788. package/src/interaction/action/service/recordTip.ts +0 -20
  789. package/src/interaction/action/service/surfacePointSelection.ts +0 -28
  790. package/src/interaction/action/service/triggerInfoSelection.ts +0 -33
  791. package/src/interaction/action/transformer/activeElement.ts +0 -32
  792. package/src/interaction/action/transformer/activeRegion.ts +0 -73
  793. package/src/interaction/action/transformer/button.ts +0 -113
  794. package/src/interaction/action/transformer/cursor.ts +0 -21
  795. package/src/interaction/action/transformer/filter.ts +0 -58
  796. package/src/interaction/action/transformer/filterElement.ts +0 -54
  797. package/src/interaction/action/transformer/highlightElement.ts +0 -61
  798. package/src/interaction/action/transformer/mask.ts +0 -115
  799. package/src/interaction/action/transformer/move.ts +0 -76
  800. package/src/interaction/action/transformer/plot.ts +0 -15
  801. package/src/interaction/action/transformer/poptip.ts +0 -51
  802. package/src/interaction/action/transformer/setItemState.ts +0 -38
  803. package/src/interaction/action/transformer/tooltip.ts +0 -404
  804. package/src/interaction/builtin/activeRegion.ts +0 -26
  805. package/src/interaction/builtin/brush.ts +0 -100
  806. package/src/interaction/builtin/brushHighlight.ts +0 -123
  807. package/src/interaction/builtin/brushVisible.ts +0 -70
  808. package/src/interaction/builtin/elementActive.ts +0 -33
  809. package/src/interaction/builtin/elementHighlight.ts +0 -32
  810. package/src/interaction/builtin/elementHighlightByColor.ts +0 -36
  811. package/src/interaction/builtin/elementHighlightByX.ts +0 -36
  812. package/src/interaction/builtin/elementListHighlight.ts +0 -40
  813. package/src/interaction/builtin/elementSelected.ts +0 -26
  814. package/src/interaction/builtin/ellipsisText.ts +0 -25
  815. package/src/interaction/builtin/fisheye.ts +0 -26
  816. package/src/interaction/builtin/legendActive.ts +0 -38
  817. package/src/interaction/builtin/legendHighlight.ts +0 -38
  818. package/src/interaction/builtin/tooltip.ts +0 -34
  819. package/src/interaction/create.ts +0 -153
  820. package/src/interaction/interactor/index.ts +0 -5
  821. package/src/interaction/interactor/mousePosition.ts +0 -13
  822. package/src/interaction/interactor/touchPosition.ts +0 -13
  823. package/src/interaction/native/event.ts +0 -44
  824. package/src/interaction/native/utils.ts +0 -455
  825. package/src/interaction/stdlib.ts +0 -57
  826. package/src/interaction/types.ts +0 -80
  827. package/src/palette/divergingGreenRed.ts +0 -33
  828. package/src/palette/divergingGreenYellow.ts +0 -36
  829. package/src/palette/divergingRedBlue.ts +0 -33
  830. package/src/palette/divergingRedPurple.ts +0 -33
  831. package/src/palette/sequentialBlue.ts +0 -23
  832. package/src/palette/sequentialDarkBlue.ts +0 -25
  833. package/src/palette/sequentialDarkGreen.ts +0 -28
  834. package/src/palette/sequentialGreen.ts +0 -23
  835. package/src/palette/sequentialGreenBlue.ts +0 -28
  836. package/src/palette/sequentialGrey.ts +0 -23
  837. package/src/palette/sequentialOrange.ts +0 -25
  838. package/src/palette/sequentialPink.ts +0 -23
  839. package/src/palette/sequentialPinkPurple.ts +0 -28
  840. package/src/palette/sequentialPurple.ts +0 -25
  841. package/src/palette/sequentialRed.ts +0 -23
  842. package/src/palette/sequentialYellow.ts +0 -25
  843. package/src/palette/sequentialYellowGreen.ts +0 -28
  844. package/src/palette/sequentialYellowOrange.ts +0 -28
  845. package/src/shape/.DS_Store +0 -0
  846. package/src/spec/action.ts +0 -196
  847. package/src/spec/geometry.ts +0 -335
  848. package/src/spec/title.ts +0 -3
  849. /package/esm/interaction/{native/brushAxisHighlight.d.ts → brushAxisHighlight.d.ts} +0 -0
  850. /package/esm/interaction/{native/brushFilter.d.ts → brushFilter.d.ts} +0 -0
  851. /package/esm/interaction/{native/brushHighlight.d.ts → brushHighlight.d.ts} +0 -0
  852. /package/esm/interaction/{native/brushXFilter.d.ts → brushXFilter.d.ts} +0 -0
  853. /package/esm/interaction/{native/brushXFilter.js → brushXFilter.js} +0 -0
  854. /package/esm/interaction/{native/brushXHighlight.d.ts → brushXHighlight.d.ts} +0 -0
  855. /package/esm/interaction/{native/brushXHighlight.js → brushXHighlight.js} +0 -0
  856. /package/esm/interaction/{native/brushYFilter.d.ts → brushYFilter.d.ts} +0 -0
  857. /package/esm/interaction/{native/brushYFilter.js → brushYFilter.js} +0 -0
  858. /package/esm/interaction/{native/brushYHighlight.d.ts → brushYHighlight.d.ts} +0 -0
  859. /package/esm/interaction/{native/brushYHighlight.js → brushYHighlight.js} +0 -0
  860. /package/esm/interaction/{native/chartIndex.d.ts → chartIndex.d.ts} +0 -0
  861. /package/esm/interaction/{native/elementHighlight.d.ts → elementHighlight.d.ts} +0 -0
  862. /package/esm/interaction/{native/elementHighlightByColor.d.ts → elementHighlightByColor.d.ts} +0 -0
  863. /package/esm/interaction/{native/elementHighlightByColor.js → elementHighlightByColor.js} +0 -0
  864. /package/esm/interaction/{native/elementHighlightByX.d.ts → elementHighlightByX.d.ts} +0 -0
  865. /package/esm/interaction/{native/elementHighlightByX.js → elementHighlightByX.js} +0 -0
  866. /package/esm/interaction/{native/elementSelect.d.ts → elementSelect.d.ts} +0 -0
  867. /package/esm/interaction/{native/elementSelectByColor.d.ts → elementSelectByColor.d.ts} +0 -0
  868. /package/esm/interaction/{native/elementSelectByColor.js → elementSelectByColor.js} +0 -0
  869. /package/esm/interaction/{native/elementSelectByX.d.ts → elementSelectByX.d.ts} +0 -0
  870. /package/esm/interaction/{native/elementSelectByX.js → elementSelectByX.js} +0 -0
  871. /package/esm/interaction/{native/event.d.ts → event.d.ts} +0 -0
  872. /package/esm/interaction/{native/fisheye.d.ts → fisheye.d.ts} +0 -0
  873. /package/esm/interaction/{native/fisheye.js → fisheye.js} +0 -0
  874. /package/esm/interaction/{native/legendFilter.d.ts → legendFilter.d.ts} +0 -0
  875. /package/esm/interaction/{native/legendHighlight.d.ts → legendHighlight.d.ts} +0 -0
  876. /package/esm/interaction/{native/poptip.d.ts → poptip.d.ts} +0 -0
  877. /package/esm/interaction/{native/sliderFilter.d.ts → sliderFilter.d.ts} +0 -0
  878. /package/esm/interaction/{native/tooltip.d.ts → tooltip.d.ts} +0 -0
  879. /package/lib/interaction/{native/brushAxisHighlight.d.ts → brushAxisHighlight.d.ts} +0 -0
  880. /package/lib/interaction/{native/brushFilter.d.ts → brushFilter.d.ts} +0 -0
  881. /package/lib/interaction/{native/brushHighlight.d.ts → brushHighlight.d.ts} +0 -0
  882. /package/lib/interaction/{native/brushXFilter.d.ts → brushXFilter.d.ts} +0 -0
  883. /package/lib/interaction/{native/brushXFilter.js → brushXFilter.js} +0 -0
  884. /package/lib/interaction/{native/brushXHighlight.d.ts → brushXHighlight.d.ts} +0 -0
  885. /package/lib/interaction/{native/brushXHighlight.js → brushXHighlight.js} +0 -0
  886. /package/lib/interaction/{native/brushYFilter.d.ts → brushYFilter.d.ts} +0 -0
  887. /package/lib/interaction/{native/brushYFilter.js → brushYFilter.js} +0 -0
  888. /package/lib/interaction/{native/brushYHighlight.d.ts → brushYHighlight.d.ts} +0 -0
  889. /package/lib/interaction/{native/brushYHighlight.js → brushYHighlight.js} +0 -0
  890. /package/lib/interaction/{native/chartIndex.d.ts → chartIndex.d.ts} +0 -0
  891. /package/lib/interaction/{native/elementHighlight.d.ts → elementHighlight.d.ts} +0 -0
  892. /package/lib/interaction/{native/elementHighlightByColor.d.ts → elementHighlightByColor.d.ts} +0 -0
  893. /package/lib/interaction/{native/elementHighlightByColor.js → elementHighlightByColor.js} +0 -0
  894. /package/lib/interaction/{native/elementHighlightByX.d.ts → elementHighlightByX.d.ts} +0 -0
  895. /package/lib/interaction/{native/elementHighlightByX.js → elementHighlightByX.js} +0 -0
  896. /package/lib/interaction/{native/elementSelect.d.ts → elementSelect.d.ts} +0 -0
  897. /package/lib/interaction/{native/elementSelectByColor.d.ts → elementSelectByColor.d.ts} +0 -0
  898. /package/lib/interaction/{native/elementSelectByColor.js → elementSelectByColor.js} +0 -0
  899. /package/lib/interaction/{native/elementSelectByX.d.ts → elementSelectByX.d.ts} +0 -0
  900. /package/lib/interaction/{native/elementSelectByX.js → elementSelectByX.js} +0 -0
  901. /package/lib/interaction/{native/event.d.ts → event.d.ts} +0 -0
  902. /package/lib/interaction/{native/fisheye.d.ts → fisheye.d.ts} +0 -0
  903. /package/lib/interaction/{native/fisheye.js → fisheye.js} +0 -0
  904. /package/lib/interaction/{native/legendFilter.d.ts → legendFilter.d.ts} +0 -0
  905. /package/lib/interaction/{native/legendHighlight.d.ts → legendHighlight.d.ts} +0 -0
  906. /package/lib/interaction/{native/poptip.d.ts → poptip.d.ts} +0 -0
  907. /package/lib/interaction/{native/sliderFilter.d.ts → sliderFilter.d.ts} +0 -0
  908. /package/lib/interaction/{native/tooltip.d.ts → tooltip.d.ts} +0 -0
  909. /package/src/interaction/{native/brushXFilter.ts → brushXFilter.ts} +0 -0
  910. /package/src/interaction/{native/brushXHighlight.ts → brushXHighlight.ts} +0 -0
  911. /package/src/interaction/{native/brushYFilter.ts → brushYFilter.ts} +0 -0
  912. /package/src/interaction/{native/brushYHighlight.ts → brushYHighlight.ts} +0 -0
  913. /package/src/interaction/{native/elementHighlightByColor.ts → elementHighlightByColor.ts} +0 -0
  914. /package/src/interaction/{native/elementHighlightByX.ts → elementHighlightByX.ts} +0 -0
  915. /package/src/interaction/{native/elementSelectByColor.ts → elementSelectByColor.ts} +0 -0
  916. /package/src/interaction/{native/elementSelectByX.ts → elementSelectByX.ts} +0 -0
  917. /package/src/interaction/{native/fisheye.ts → fisheye.ts} +0 -0
@@ -0,0 +1,185 @@
1
+ import { MarkComponent } from '../runtime';
2
+ import { Encode } from './encode';
3
+ import { Transform } from './transform';
4
+ import { Scale } from './scale';
5
+ import { Coordinate } from './coordinate';
6
+ import { Animation } from './animate';
7
+ import { Interaction } from './interaction';
8
+ import { Theme } from './theme';
9
+ import { Data } from './data';
10
+ import { AxisComponent, LegendComponent, ScrollbarComponent, SliderComponent, TitleComponent, TooltipComponent } from './component';
11
+ import { Closeable, Literal2Object } from './utils';
12
+ export type Mark = IntervalMark | RectMark | LineMark | PointMark | TextMark | CellMark | AreaMark | NodeMark | EdgeMark | ImageMark | PolygonMark | BoxMark | VectorMark | LineXMark | LineYMark | RangeMark | RangeXMark | RangeYMark | ConnectorMark | SankeyMark | PathMark | TreemapMark | PackMark | BoxPlotMark | ShapeMark | ForceGraphMark | TreeMark | WordCloudMark | CustomMark;
13
+ export type MarkTypes = 'interval' | 'rect' | 'line' | 'point' | 'text' | 'cell' | 'area' | 'node' | 'edge' | 'link' | 'image' | 'polygon' | 'box' | 'vector' | 'lineX' | 'lineY' | 'connector' | 'range' | 'rangeX' | 'rangeY' | 'sankey' | 'path' | 'treemap' | 'pack' | 'boxplot' | 'shape' | 'forceGraph' | 'tree' | 'wordCloud' | MarkComponent;
14
+ export type ChannelTypes = 'x' | 'y' | 'x1' | 'y1' | 'series' | 'color' | 'opacity' | 'shape' | 'size' | 'key' | 'groupKey' | 'position' | 'series' | 'enterType' | 'enterEasing' | 'enterDuration' | 'enterDelay' | 'updateType' | 'updateEasing' | 'updateDuration' | 'updateDelay' | 'exitType' | 'exitEasing' | 'exitDuration' | 'exitDelay' | `position${number}`;
15
+ export type PositionChannelTypes = 'x' | 'y' | 'position' | `position${number}`;
16
+ export type AtheisticChanelTypes = 'size' | 'color' | 'shape' | 'opacity';
17
+ export type BaseMark<T extends MarkTypes, C extends string = ChannelTypes> = {
18
+ type?: T | string;
19
+ class?: string;
20
+ key?: string;
21
+ paddingLeft?: number;
22
+ paddingRight?: number;
23
+ paddingBottom?: number;
24
+ paddingTop?: number;
25
+ padding?: number;
26
+ inset?: number;
27
+ insetLeft?: number;
28
+ insetBottom?: number;
29
+ insetTop?: number;
30
+ insetRight?: number;
31
+ margin?: number;
32
+ marginLeft?: number;
33
+ marginBottom?: number;
34
+ marginTop?: number;
35
+ marginRight?: number;
36
+ facet?: boolean;
37
+ frame?: boolean;
38
+ zIndex?: number;
39
+ cartesian?: boolean;
40
+ clip?: boolean;
41
+ data?: Data;
42
+ transform?: Transform[];
43
+ layout?: Record<string, any>;
44
+ encode?: Partial<Record<C, Encode | Encode[]>>;
45
+ scale?: Partial<Record<C, Scale>>;
46
+ coordinate?: Coordinate;
47
+ style?: Record<string, any>;
48
+ state?: Partial<Record<'active' | 'selected' | 'inactive' | 'unselected', Record<string, any>>>;
49
+ animate?: Closeable<Partial<Record<'enter' | 'update' | 'exit', Closeable<Animation>>>>;
50
+ labels?: Record<string, any>[];
51
+ tooltip?: TooltipComponent;
52
+ axis?: Closeable<Partial<Record<PositionChannelTypes, Closeable<AxisComponent>>>>;
53
+ legend?: Closeable<Partial<Record<AtheisticChanelTypes, Closeable<LegendComponent>>>>;
54
+ slider?: Closeable<Partial<Record<PositionChannelTypes, Closeable<SliderComponent>>>>;
55
+ scrollbar?: Closeable<Partial<Record<PositionChannelTypes, Closeable<ScrollbarComponent>>>>;
56
+ title?: string | TitleComponent;
57
+ interaction?: Literal2Object<Interaction>;
58
+ theme?: Theme;
59
+ };
60
+ export type HOMMarkType = (options: Record<string, any>) => () => any[];
61
+ export type HOMMarkMark = BaseMark<HOMMarkType>;
62
+ export type IntervalMark = BaseMark<'interval', ChannelTypes | 'series'>;
63
+ export type RectMark = BaseMark<'rect', ChannelTypes>;
64
+ export type LineMark = BaseMark<'line', ChannelTypes | 'position' | `position${number}`>;
65
+ export type PointMark = BaseMark<'point'>;
66
+ export type TextMark = BaseMark<'text', ChannelTypes | 'text' | 'fontSize' | 'fontWeight' | 'rotate'>;
67
+ export type LineXMark = BaseMark<'lineX', ChannelTypes>;
68
+ export type LineYMark = BaseMark<'lineY', ChannelTypes>;
69
+ export type RangeMark = BaseMark<'range', ChannelTypes>;
70
+ export type RangeXMark = BaseMark<'rangeX', ChannelTypes>;
71
+ export type RangeYMark = BaseMark<'rangeY', ChannelTypes>;
72
+ export type ConnectorMark = BaseMark<'connector', ChannelTypes>;
73
+ export type CellMark = BaseMark<'cell'>;
74
+ export type AreaMark = BaseMark<'area', ChannelTypes>;
75
+ export type NodeMark = BaseMark<'node', ChannelTypes>;
76
+ export type EdgeMark = BaseMark<'edge', ChannelTypes>;
77
+ export type LinkMark = BaseMark<'link', ChannelTypes>;
78
+ export type ImageMark = BaseMark<'image', ChannelTypes | 'src'>;
79
+ export type PolygonMark = BaseMark<'polygon', ChannelTypes>;
80
+ export type BoxMark = BaseMark<'box', ChannelTypes>;
81
+ export type BoxPlotMark = BaseMark<'box', ChannelTypes>;
82
+ export type ShapeMark = BaseMark<'shape', ChannelTypes>;
83
+ export type VectorMark = BaseMark<'vector', ChannelTypes | 'rotate' | 'size'>;
84
+ export type SankeyMark = BaseMark<'sankey', 'source' | 'target' | 'value' | `node${Capitalize<ChannelTypes>}` | `link${Capitalize<ChannelTypes>}` | ChannelTypes> & {
85
+ layout?: {
86
+ nodeId?: (node: any) => string;
87
+ nodes?: (graph: any) => any;
88
+ links?: (graph: any) => any;
89
+ /**
90
+ * sankey.nodeSort(undefined) is the default and resorts by ascending breadth during each iteration.
91
+ * sankey.nodeSort(null) specifies the input order of nodes and never sorts.
92
+ * sankey.nodeSort(function) specifies the given order as a comparator function and sorts once on initialization.
93
+ */
94
+ nodeSort?: null | undefined | ((a: any, b: any) => number);
95
+ /**
96
+ * sankey.linkSort(undefined) is the default, indicating that vertical order of links within each node will be determined automatically by the layout. If
97
+ * sankey.linkSort(null) will resort by the input.
98
+ * sankey.linkSort(function) specifies the given order as a comparator function and sorts once on initialization.
99
+ */
100
+ linkSort?: null | undefined | ((a: any, b: any) => number);
101
+ nodeAlign?: 'left' | 'center' | 'right' | 'justify' | ((node: any, n: number) => number);
102
+ nodeWidth?: number;
103
+ nodePadding?: number;
104
+ iterations?: number;
105
+ nodeDepth?: (datum: any, maxDepth: number) => number;
106
+ };
107
+ nodeLabels: Record<string, any>[];
108
+ linkLabels: Record<string, any>[];
109
+ };
110
+ export type PathMark = BaseMark<'path', ChannelTypes>;
111
+ export type TreemapMark = BaseMark<'treemap', 'value' | ChannelTypes> & {
112
+ layout?: Record<string, any>;
113
+ };
114
+ export type PackMark = BaseMark<'pack', 'value' | ChannelTypes> & {
115
+ layout?: Record<string, any>;
116
+ };
117
+ export type ForceGraphMark = BaseMark<'forceGraph', 'source' | 'target' | 'color' | 'value' | `node${Capitalize<ChannelTypes>}` | `link${Capitalize<ChannelTypes>}`> & {
118
+ layout?: Record<string, any>;
119
+ nodeLabels: Record<string, any>[];
120
+ linkLabels: Record<string, any>[];
121
+ };
122
+ export type TreeMark = BaseMark<'tree', 'value' | ChannelTypes> & {
123
+ layout?: {
124
+ /**
125
+ * Layout field. Default: 'value'.
126
+ */
127
+ field?: string;
128
+ /**
129
+ * Sets this cluster layout’s node size to the specified two-element array of numbers [width, height] and returns this cluster layout.
130
+ * Default: null.
131
+ */
132
+ nodeSize?: any;
133
+ /**
134
+ * The separation accessor is used to separate neighboring leaves. Default: (a, b) => a.parent == b.parent ? 1 : 2;
135
+ */
136
+ separation?: (a: any, b: any) => number;
137
+ /**
138
+ * Sort function by compare 2 nodes.
139
+ */
140
+ sortBy?: (a: any, b: any) => number;
141
+ /**
142
+ * Layout infomation saved into fields. Default: ['x', 'y'].
143
+ */
144
+ as?: [string, string];
145
+ };
146
+ nodeLabels: Record<string, any>[];
147
+ linkLabels: Record<string, any>[];
148
+ };
149
+ export type WordCloudMark = BaseMark<'wordCloud', 'value' | ChannelTypes | 'text'> & {
150
+ layout?: {
151
+ /**
152
+ * @description If specified, sets the rectangular [width, height] of the layout
153
+ * @default [1, 1]
154
+ */
155
+ size?: [number, number];
156
+ font?: string | ((word: any) => string);
157
+ fontStyle?: string | ((word: any) => string);
158
+ fontWeight?: any | ((word: any) => any);
159
+ fontSize?: number | [number, number] | ((word: any) => number);
160
+ padding?: number | ((word: any) => number);
161
+ /**
162
+ * @description sets the text accessor function, which indicates the text for each word
163
+ * @default (d) => d.text
164
+ */
165
+ text?: (word: any) => number;
166
+ rotate?: number | ((word: any) => number);
167
+ timeInterval?: number;
168
+ random?: number | (() => number);
169
+ /**
170
+ * @description sets the current type of spiral used for positioning words. This can either be one of the two built-in spirals, "archimedean" and "rectangular"
171
+ * @default "archimedean"
172
+ */
173
+ spiral?: 'archimedean' | 'rectangular' | ((size: [number, number]) => (t: number) => number[]);
174
+ imageMask?: HTMLImageElement | string;
175
+ on?: ((type: 'end', details?: {
176
+ cloud: any;
177
+ words: any;
178
+ bounds: any;
179
+ }) => void) | ((type: 'word', details?: {
180
+ cloud: any;
181
+ word: any;
182
+ }) => void);
183
+ };
184
+ };
185
+ export type CustomMark = BaseMark<MarkComponent, ChannelTypes>;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=mark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mark.js","sourceRoot":"src/","sources":["spec/mark.ts"],"names":[],"mappings":""}
@@ -7,60 +7,6 @@ export type Category10Palette = {
7
7
  export type Category20Palette = {
8
8
  type?: 'category20';
9
9
  };
10
- export type SequentialBluePalette = {
11
- type?: 'sequentialBlue';
12
- };
13
- export type SequentialDarkBluePalette = {
14
- type?: 'sequentialDarkBlue';
15
- };
16
- export type SequentialGreenPalette = {
17
- type?: 'sequentialGreen';
18
- };
19
- export type SequentialDarkGreenPalette = {
20
- type?: 'sequentialDarkGreen';
21
- };
22
- export type SequentialGreyPalette = {
23
- type?: 'sequentialGrey';
24
- };
25
- export type SequentialOrangePalette = {
26
- type?: 'sequentialOrange';
27
- };
28
- export type SequentialPinkPalette = {
29
- type?: 'sequentialPink';
30
- };
31
- export type SequentialPurplePalette = {
32
- type?: 'sequentialPurple';
33
- };
34
- export type SequentialRedPalette = {
35
- type?: 'sequentialRed';
36
- };
37
- export type SequentialYellowPalette = {
38
- type?: 'sequentialYellow';
39
- };
40
- export type SequentialYellowOrangePalette = {
41
- type?: 'sequentialYellowOrange';
42
- };
43
- export type SequentialYellowGreenPalette = {
44
- type?: 'sequentialYellowGreen';
45
- };
46
- export type SequentialPinkPurplePalette = {
47
- type?: 'sequentialPinkPurple';
48
- };
49
- export type SequentialGreenBluePalette = {
50
- type?: 'sequentialGreenBlue';
51
- };
52
- export type DivergingRedBluePalette = {
53
- type?: 'divergingRedBlue';
54
- };
55
- export type DivergingGreenRedPalette = {
56
- type?: 'divergingGreenRed';
57
- };
58
- export type DivergingGreenYellowPalette = {
59
- type?: 'divergingGreenYellow';
60
- };
61
- export type DivergingRedPurplePalette = {
62
- type?: 'divergingRedPurple';
63
- };
64
10
  export type CustomPalette = {
65
11
  type?: PaletteComponent;
66
12
  [key: string]: any;
@@ -1,5 +1,5 @@
1
1
  import { TransformComponent, Primitive } from '../runtime';
2
- import { ChannelTypes } from './geometry';
2
+ import { ChannelTypes } from './mark';
3
3
  export type Transform = StackYTransform | DodgeXTransform | NormalizeYTransform | StackEnterTransform | JitterTransform | JitterXTransform | SymmetryYTransform | DiffYTransform | SelectTransform | SelectXTransform | SelectYTransform | GroupXTransform | GroupYTransform | GroupColorTransform | SortXTransform | SortYTransform | SortColorTransform | GroupTransform | PackTransform | BinXTransform | BinTransform | SampleTransform | FlexXTransform | FilterTransform;
4
4
  export type TransformTypes = 'dodgeX' | 'stackY' | 'normalizeY' | 'stackEnter' | 'jitter' | 'jitterX' | 'symmetryY' | 'diffY' | 'select' | 'selectY' | 'selectX' | 'groupX' | 'groupY' | 'group' | 'groupColor' | 'sortX' | 'sortColor' | 'sortY' | 'flexX' | 'pack' | 'sample' | 'filter' | TransformComponent;
5
5
  export type TransformOrder = 'value' | 'sum' | 'series' | 'maxIndex' | string[] | null | ((data: Record<string, Primitive>) => Primitive);
@@ -5,3 +5,7 @@ export type Literal2Object<Literal extends {
5
5
  type?: Type;
6
6
  } ? Omit<Literal, 'type'> | boolean : never;
7
7
  }>;
8
+ export type UsePrefix<Prefix extends string, Obj extends Record<string, unknown>> = {
9
+ [Property in keyof Obj as `${Prefix}${Capitalize<string & Property>}`]: Obj[Property];
10
+ };
11
+ export type Closeable<T> = T | boolean | null;
@@ -19,21 +19,7 @@ const geo_1 = require("../geo");
19
19
  function createLibrary() {
20
20
  return Object.assign({ 'data.fetch': data_1.Fetch, 'data.inline': data_1.Inline, 'data.sortBy': data_1.SortBy, 'data.sort': data_1.Sort, 'data.filter': data_1.Filter, 'data.pick': data_1.Pick, 'data.rename': data_1.Rename, 'data.fold': data_1.Fold, 'data.slice': data_1.Slice, 'data.custom': data_1.Custom, 'data.map': data_1.Map, 'data.cluster': data_1.Cluster, 'data.tree': data_1.Tree, 'data.sankey': data_1.Sankey, 'data.arc': data_1.Arc, 'data.wordCloud': data_1.WordCloud, 'data.join': data_1.Join,
21
21
  // 'transform.voronoi': Voronoi,
22
- 'transform.maybeZeroY1': transform_1.MaybeZeroY1, 'transform.maybeZeroX': transform_1.MaybeZeroX, 'transform.maybeStackY': transform_1.MaybeStackY, 'transform.maybeTitle': transform_1.MaybeTitle, 'transform.maybeSeries': transform_1.MaybeSeries, 'transform.maybeZeroPadding': transform_1.MaybeZeroPadding, 'transform.stackY': transform_1.StackY, 'transform.binX': transform_1.BinX, 'transform.bin': transform_1.Bin, 'transform.dodgeX': transform_1.DodgeX, 'transform.jitter': transform_1.Jitter, 'transform.jitterX': transform_1.JitterX, 'transform.symmetryY': transform_1.SymmetryY, 'transform.diffY': transform_1.DiffY, 'transform.stackEnter': transform_1.StackEnter, 'transform.normalizeY': transform_1.NormalizeY, 'transform.select': transform_1.Select, 'transform.selectX': transform_1.SelectX, 'transform.selectY': transform_1.SelectY, 'transform.groupX': transform_1.GroupX, 'transform.groupY': transform_1.GroupY, 'transform.groupColor': transform_1.GroupColor, 'transform.group': transform_1.Group, 'transform.maybeSize': transform_1.MaybeSize, 'transform.maybeZeroY': transform_1.MaybeZeroY, 'transform.maybeKey': transform_1.MaybeKey, 'transform.sortX': transform_1.SortX, 'transform.sortY': transform_1.SortY, 'transform.sortColor': transform_1.SortColor, 'transform.flexX': transform_1.FlexX, 'transform.maybeTupleY': transform_1.MaybeTupleY, 'transform.maybeTupleX': transform_1.MaybeTupleX, 'transform.maybeIdentityY': transform_1.MaybeIdentityY, 'transform.maybeIdentityX': transform_1.MaybeIdentityX, 'transform.maybeTuple': transform_1.MaybeTuple, 'transform.maybeVisualPosition': transform_1.MaybeVisualPosition, 'transform.maybeFunctionAttribute': transform_1.MaybeFunctionAttribute, 'transform.maybeGradient': transform_1.MaybeGradient, 'transform.maybeTooltip': transform_1.MaybeTooltip, 'transform.pack': transform_1.Pack, 'transform.sample': transform_1.Sample, 'transform.filter': transform_1.Filter, 'coordinate.cartesian': coordinate_1.Cartesian, 'coordinate.polar': coordinate_1.Polar, 'coordinate.helix': coordinate_1.Helix, 'coordinate.transpose': coordinate_1.Transpose, 'coordinate.theta': coordinate_1.Theta, 'coordinate.parallel': coordinate_1.Parallel, 'coordinate.fisheye': coordinate_1.Fisheye, 'coordinate.radial': coordinate_1.Radial, 'coordinate.radar': coordinate_1.Radar, 'encode.constant': encode_1.Constant, 'encode.field': encode_1.Field, 'encode.transform': encode_1.Transform, 'encode.column': encode_1.Column, 'mark.interval': mark_1.Interval, 'mark.rect': mark_1.Rect, 'mark.line': mark_1.Line, 'mark.point': mark_1.Point, 'mark.text': mark_1.Text, 'mark.cell': mark_1.Cell, 'mark.area': mark_1.Area, 'mark.link': mark_1.Link, 'mark.image': mark_1.Image, 'mark.polygon': mark_1.Polygon, 'mark.box': mark_1.Box, 'mark.vector': mark_1.Vector, 'mark.lineX': mark_1.LineX, 'mark.lineY': mark_1.LineY, 'mark.connector': mark_1.Connector, 'mark.range': mark_1.Range, 'mark.rangeX': mark_1.RangeX, 'mark.rangeY': mark_1.RangeY, 'mark.sankey': mark_1.Sankey, 'mark.path': mark_1.Path, 'mark.treemap': mark_1.Treemap, 'mark.pack': mark_1.Pack, 'mark.boxplot': mark_1.Boxplot, 'mark.shape': mark_1.Shape, 'mark.forceGraph': mark_1.ForceGraph, 'mark.tree': mark_1.Tree, 'mark.wordCloud': mark_1.WordCloud, 'palette.category10': palette_1.Category10, 'palette.category20': palette_1.Category20, 'palette.sequentialBlue': palette_1.SequentialBlue, 'palette.sequentialDarkBlue': palette_1.SequentialDarkBlue, 'palette.sequentialGreen': palette_1.SequentialGreen, 'palette.sequentialDarkGreen': palette_1.SequentialDarkGreen, 'palette.sequentialGrey': palette_1.SequentialGrey, 'palette.sequentialOrange': palette_1.SequentialOrange, 'palette.sequentialPink': palette_1.SequentialPink, 'palette.sequentialRed': palette_1.SequentialRed, 'palette.sequentialYellow': palette_1.SequentialYellow, 'palette.sequentialPurple': palette_1.SequentialPurple, 'palette.sequentialYellowOrange': palette_1.SequentialYellowOrange, 'palette.sequentialYellowGreen': palette_1.SequentialYellowGreen, 'palette.sequentialPinkPurple': palette_1.SequentialPinkPurple, 'palette.sequentialGreenBlue': palette_1.SequentialGreenBlue, 'palette.divergingGreenYellow': palette_1.DivergingGreenYellow, 'palette.divergingRedBlue': palette_1.DivergingRedBlue, 'palette.divergingGreenRed': palette_1.DivergingGreenRed, 'palette.divergingRedPurple': palette_1.DivergingRedPurple, 'scale.linear': scale_1.Linear, 'scale.ordinal': scale_1.Ordinal, 'scale.band': scale_1.Band, 'scale.identity': scale_1.Identity, 'scale.point': scale_1.Point, 'scale.time': scale_1.Time, 'scale.log': scale_1.Log, 'scale.pow': scale_1.Pow, 'scale.sqrt': scale_1.Sqrt, 'scale.threshold': scale_1.Threshold, 'scale.quantile': scale_1.Quantile, 'scale.quantize': scale_1.Quantize, 'scale.sequential': scale_1.Sequential, 'scale.constant': scale_1.Constant, 'shape.interval.rect': shape_1.Rect, 'shape.interval.hollow': shape_1.HollowRect, 'shape.interval.funnel': shape_1.Funnel, 'shape.interval.pyramid': shape_1.Pyramid, 'shape.rect.rect': shape_1.Rect, 'shape.rect.hollow': shape_1.HollowRect, 'shape.cell.cell': shape_1.Rect, 'shape.cell.hollow': shape_1.HollowRect, 'shape.line.line': shape_1.Line, 'shape.line.hv': shape_1.HV, 'shape.line.vh': shape_1.VH, 'shape.line.hvh': shape_1.HVH, 'shape.line.smooth': shape_1.Smooth, 'shape.point.bowtie': shape_1.Bowtie, 'shape.point.cross': shape_1.Cross, 'shape.point.diamond': shape_1.Diamond, 'shape.point.hexagon': shape_1.Hexagon, 'shape.point.hollowBowtie': shape_1.HollowBowtie, 'shape.point.hollowDiamond': shape_1.HollowDiamond, 'shape.point.hollowHexagon': shape_1.HollowHexagon, 'shape.point.hollow': shape_1.HollowPoint, 'shape.point.hollowSquare': shape_1.HollowSquare, 'shape.point.hollowTriangle': shape_1.HollowTriangle, 'shape.point.hollowTriangleDown': shape_1.HollowTriangleDown, 'shape.point.hyphen': shape_1.Hyphen, 'shape.point.line': shape_1.LinePoint, 'shape.point.plus': shape_1.Plus, 'shape.point.point': shape_1.Point, 'shape.point.square': shape_1.Square, 'shape.point.tick': shape_1.Tick, 'shape.point.triangle': shape_1.Triangle, 'shape.point.triangleDown': shape_1.TriangleDown, 'shape.text.text': shape_1.Text, 'shape.area.area': shape_1.Area, 'shape.area.smooth': shape_1.SmoothArea, 'shape.area.hvh': shape_1.HVHArea, 'shape.area.vh': shape_1.VHArea, 'shape.area.hv': shape_1.HVArea, 'shape.link.smooth': shape_1.SmoothEdge, 'shape.link.vhv': shape_1.VHVEdge, 'shape.link.arc': shape_1.Arc, 'shape.link.link': shape_1.Link, 'shape.image.image': shape_1.Image, 'shape.polygon.polygon': shape_1.Polygon, 'shape.polygon.ribbon': shape_1.Ribbon, 'shape.box.box': shape_1.Box, 'shape.vector.vector': shape_1.Vector, 'shape.label.label': shape_1.Label, 'shape.text.badge': shape_1.Badge, 'shape.lineX.line': shape_1.LineXY, 'shape.lineY.line': shape_1.LineXY, 'shape.shape.shape': shape_1.Shape, 'shape.connector.connector': shape_1.Connector, 'shape.range.range': shape_1.Rect, 'shape.rangeX.range': shape_1.Rect, 'shape.rangeY.range': shape_1.Rect, 'shape.path.path': shape_1.Path, 'shape.path.hollow': shape_1.HollowPath, 'theme.light': theme_1.Light, 'theme.dark': theme_1.Dark, 'theme.academy': theme_1.Academy, 'component.axisX': component_1.AxisX, 'component.axisY': component_1.AxisY, 'component.axisRadar': component_1.AxisRadar, 'component.axisLinear': component_1.AxisLinear, 'component.axisArc': component_1.AxisArc, 'component.legendCategory': component_1.LegendCategory, 'component.legendContinuous': component_1.LegendContinuous, 'component.legendContinuousBlock': component_1.LegendContinuousBlock, 'component.legendContinuousBlockSize': component_1.LegendContinuousBlockSize, 'component.legendContinuousSize': component_1.LegendContinuousSize, 'component.title': component_1.TitleComponent, 'component.sliderX': component_1.SliderX, 'component.sliderY': component_1.SliderY, 'component.scrollbarX': component_1.ScrollbarX, 'component.scrollbarY': component_1.ScrollbarY, 'animation.scaleInX': animation_1.ScaleInX, 'animation.scaleOutX': animation_1.ScaleOutX, 'animation.scaleInY': animation_1.ScaleInY, 'animation.scaleOutY': animation_1.ScaleOutY, 'animation.waveIn': animation_1.WaveIn, 'animation.fadeIn': animation_1.FadeIn, 'animation.fadeOut': animation_1.FadeOut, 'animation.zoomIn': animation_1.ZoomIn, 'animation.zoomOut': animation_1.ZoomOut, 'animation.pathIn': animation_1.PathIn, 'animation.morphing': animation_1.Morphing, 'animation.growInX': animation_1.GrowInX, 'animation.growInY': animation_1.GrowInY, 'interaction.elementHighlight': interaction_1.ElementHighlight, 'interaction.elementHighlightByX': interaction_1.ElementHighlightByX, 'interaction.elementHighlightByColor': interaction_1.ElementHighlightByColor, 'interaction.elementSelect': interaction_1.ElementSelect, 'interaction.elementSelectByX': interaction_1.ElementSelectByX, 'interaction.elementSelectByColor': interaction_1.ElementSelectByColor, 'interaction.fisheye': interaction_1.Fisheye, 'interaction.chartIndex': interaction_1.ChartIndex, 'interaction.tooltip': interaction_1.Tooltip, 'interaction.legendFilter': interaction_1.LegendFilter, 'interaction.legendHighlight': interaction_1.LegendHighlight, 'interaction.brushHighlight': interaction_1.BrushHighlight, 'interaction.brushXHighlight': interaction_1.BrushXHighlight, 'interaction.brushYHighlight': interaction_1.BrushYHighlight, 'interaction.brushAxisHighlight': interaction_1.BrushAxisHighlight, 'interaction.brushFilter': interaction_1.BrushFilter, 'interaction.brushXFilter': interaction_1.BrushXFilter, 'interaction.brushYFilter': interaction_1.BrushYFilter, 'interaction.sliderFilter': interaction_1.SliderFilter, 'interaction.poptip': interaction_1.Poptip, 'interaction.event': interaction_1.Event,
23
- // 'interaction.elementSelected': ElementSelected,
24
- // 'interaction.elementHighlight': ElementHighlight,
25
- // 'interaction.elementHighlightByX': ElementHighlightByX,
26
- // 'interaction.elementHighlightByColor': ElementHighlightByColor,
27
- // 'interaction.elementListHighlight': ElementListHighlight,
28
- // 'interaction.legendActive': LegendActive,
29
- // 'interaction.legendHighlight': LegendHighlight,
30
- // 'interaction.tooltip': Tooltip,
31
- // 'interaction.fisheye': FisheyeInteraction,
32
- // 'interaction.brush': Brush,
33
- // 'interaction.brushVisible': BrushVisible,
34
- // 'interaction.activeRegion': ActiveRegion,
35
- // 'interaction.ellipsisText': EllipsisText,
36
- 'composition.spaceLayer': composition_1.SpaceLayer, 'composition.spaceFlex': composition_1.SpaceFlex, 'composition.mark': composition_1.Mark, 'composition.view': composition_1.View, 'composition.facetRect': composition_1.FacetRect, 'composition.repeatMatrix': composition_1.RepeatMatrix, 'composition.facetCircle': composition_1.FacetCircle, 'composition.timingKeyframe': composition_1.TimingKeyframe, 'labelTransform.overlapHide': label_transform_1.OverlapHide, 'labelTransform.overlapDodgeY': label_transform_1.OverlapDodgeY, 'labelTransform.overflowHide': label_transform_1.OverflowHide, 'labelTransform.contrastReverse': label_transform_1.ContrastReverse }, geo_1.geoLibrary);
22
+ 'transform.maybeZeroY1': transform_1.MaybeZeroY1, 'transform.maybeZeroX': transform_1.MaybeZeroX, 'transform.maybeStackY': transform_1.MaybeStackY, 'transform.maybeTitle': transform_1.MaybeTitle, 'transform.maybeSeries': transform_1.MaybeSeries, 'transform.maybeZeroPadding': transform_1.MaybeZeroPadding, 'transform.stackY': transform_1.StackY, 'transform.binX': transform_1.BinX, 'transform.bin': transform_1.Bin, 'transform.dodgeX': transform_1.DodgeX, 'transform.jitter': transform_1.Jitter, 'transform.jitterX': transform_1.JitterX, 'transform.symmetryY': transform_1.SymmetryY, 'transform.diffY': transform_1.DiffY, 'transform.stackEnter': transform_1.StackEnter, 'transform.normalizeY': transform_1.NormalizeY, 'transform.select': transform_1.Select, 'transform.selectX': transform_1.SelectX, 'transform.selectY': transform_1.SelectY, 'transform.groupX': transform_1.GroupX, 'transform.groupY': transform_1.GroupY, 'transform.groupColor': transform_1.GroupColor, 'transform.group': transform_1.Group, 'transform.maybeSize': transform_1.MaybeSize, 'transform.maybeZeroY': transform_1.MaybeZeroY, 'transform.maybeKey': transform_1.MaybeKey, 'transform.sortX': transform_1.SortX, 'transform.sortY': transform_1.SortY, 'transform.sortColor': transform_1.SortColor, 'transform.flexX': transform_1.FlexX, 'transform.maybeTupleY': transform_1.MaybeTupleY, 'transform.maybeTupleX': transform_1.MaybeTupleX, 'transform.maybeIdentityY': transform_1.MaybeIdentityY, 'transform.maybeIdentityX': transform_1.MaybeIdentityX, 'transform.maybeTuple': transform_1.MaybeTuple, 'transform.maybeVisualPosition': transform_1.MaybeVisualPosition, 'transform.maybeFunctionAttribute': transform_1.MaybeFunctionAttribute, 'transform.maybeGradient': transform_1.MaybeGradient, 'transform.maybeTooltip': transform_1.MaybeTooltip, 'transform.pack': transform_1.Pack, 'transform.sample': transform_1.Sample, 'transform.filter': transform_1.Filter, 'coordinate.cartesian': coordinate_1.Cartesian, 'coordinate.polar': coordinate_1.Polar, 'coordinate.helix': coordinate_1.Helix, 'coordinate.transpose': coordinate_1.Transpose, 'coordinate.theta': coordinate_1.Theta, 'coordinate.parallel': coordinate_1.Parallel, 'coordinate.fisheye': coordinate_1.Fisheye, 'coordinate.radial': coordinate_1.Radial, 'coordinate.radar': coordinate_1.Radar, 'encode.constant': encode_1.Constant, 'encode.field': encode_1.Field, 'encode.transform': encode_1.Transform, 'encode.column': encode_1.Column, 'mark.interval': mark_1.Interval, 'mark.rect': mark_1.Rect, 'mark.line': mark_1.Line, 'mark.point': mark_1.Point, 'mark.text': mark_1.Text, 'mark.cell': mark_1.Cell, 'mark.area': mark_1.Area, 'mark.link': mark_1.Link, 'mark.image': mark_1.Image, 'mark.polygon': mark_1.Polygon, 'mark.box': mark_1.Box, 'mark.vector': mark_1.Vector, 'mark.lineX': mark_1.LineX, 'mark.lineY': mark_1.LineY, 'mark.connector': mark_1.Connector, 'mark.range': mark_1.Range, 'mark.rangeX': mark_1.RangeX, 'mark.rangeY': mark_1.RangeY, 'mark.sankey': mark_1.Sankey, 'mark.path': mark_1.Path, 'mark.treemap': mark_1.Treemap, 'mark.pack': mark_1.Pack, 'mark.boxplot': mark_1.Boxplot, 'mark.shape': mark_1.Shape, 'mark.forceGraph': mark_1.ForceGraph, 'mark.tree': mark_1.Tree, 'mark.wordCloud': mark_1.WordCloud, 'palette.category10': palette_1.Category10, 'palette.category20': palette_1.Category20, 'scale.linear': scale_1.Linear, 'scale.ordinal': scale_1.Ordinal, 'scale.band': scale_1.Band, 'scale.identity': scale_1.Identity, 'scale.point': scale_1.Point, 'scale.time': scale_1.Time, 'scale.log': scale_1.Log, 'scale.pow': scale_1.Pow, 'scale.sqrt': scale_1.Sqrt, 'scale.threshold': scale_1.Threshold, 'scale.quantile': scale_1.Quantile, 'scale.quantize': scale_1.Quantize, 'scale.sequential': scale_1.Sequential, 'scale.constant': scale_1.Constant, 'shape.interval.rect': shape_1.Rect, 'shape.interval.hollow': shape_1.HollowRect, 'shape.interval.funnel': shape_1.Funnel, 'shape.interval.pyramid': shape_1.Pyramid, 'shape.rect.rect': shape_1.Rect, 'shape.rect.hollow': shape_1.HollowRect, 'shape.cell.cell': shape_1.Rect, 'shape.cell.hollow': shape_1.HollowRect, 'shape.line.line': shape_1.Line, 'shape.line.hv': shape_1.HV, 'shape.line.vh': shape_1.VH, 'shape.line.hvh': shape_1.HVH, 'shape.line.smooth': shape_1.Smooth, 'shape.point.bowtie': shape_1.Bowtie, 'shape.point.cross': shape_1.Cross, 'shape.point.diamond': shape_1.Diamond, 'shape.point.hexagon': shape_1.Hexagon, 'shape.point.hollowBowtie': shape_1.HollowBowtie, 'shape.point.hollowDiamond': shape_1.HollowDiamond, 'shape.point.hollowHexagon': shape_1.HollowHexagon, 'shape.point.hollow': shape_1.HollowPoint, 'shape.point.hollowSquare': shape_1.HollowSquare, 'shape.point.hollowTriangle': shape_1.HollowTriangle, 'shape.point.hollowTriangleDown': shape_1.HollowTriangleDown, 'shape.point.hyphen': shape_1.Hyphen, 'shape.point.line': shape_1.LinePoint, 'shape.point.plus': shape_1.Plus, 'shape.point.point': shape_1.Point, 'shape.point.square': shape_1.Square, 'shape.point.tick': shape_1.Tick, 'shape.point.triangle': shape_1.Triangle, 'shape.point.triangleDown': shape_1.TriangleDown, 'shape.text.text': shape_1.Text, 'shape.area.area': shape_1.Area, 'shape.area.smooth': shape_1.SmoothArea, 'shape.area.hvh': shape_1.HVHArea, 'shape.area.vh': shape_1.VHArea, 'shape.area.hv': shape_1.HVArea, 'shape.link.smooth': shape_1.SmoothEdge, 'shape.link.vhv': shape_1.VHVEdge, 'shape.link.arc': shape_1.Arc, 'shape.link.link': shape_1.Link, 'shape.image.image': shape_1.Image, 'shape.polygon.polygon': shape_1.Polygon, 'shape.polygon.ribbon': shape_1.Ribbon, 'shape.box.box': shape_1.Box, 'shape.vector.vector': shape_1.Vector, 'shape.label.label': shape_1.Label, 'shape.text.badge': shape_1.Badge, 'shape.lineX.line': shape_1.LineXY, 'shape.lineY.line': shape_1.LineXY, 'shape.shape.shape': shape_1.Shape, 'shape.connector.connector': shape_1.Connector, 'shape.range.range': shape_1.Rect, 'shape.rangeX.range': shape_1.Rect, 'shape.rangeY.range': shape_1.Rect, 'shape.path.path': shape_1.Path, 'shape.path.hollow': shape_1.HollowPath, 'theme.light': theme_1.Light, 'theme.dark': theme_1.Dark, 'theme.academy': theme_1.Academy, 'component.axisX': component_1.AxisX, 'component.axisY': component_1.AxisY, 'component.axisRadar': component_1.AxisRadar, 'component.axisLinear': component_1.AxisLinear, 'component.axisArc': component_1.AxisArc, 'component.legendCategory': component_1.LegendCategory, 'component.legendContinuous': component_1.LegendContinuous, 'component.legendContinuousBlock': component_1.LegendContinuousBlock, 'component.legendContinuousBlockSize': component_1.LegendContinuousBlockSize, 'component.legendContinuousSize': component_1.LegendContinuousSize, 'component.title': component_1.TitleComponent, 'component.sliderX': component_1.SliderX, 'component.sliderY': component_1.SliderY, 'component.scrollbarX': component_1.ScrollbarX, 'component.scrollbarY': component_1.ScrollbarY, 'animation.scaleInX': animation_1.ScaleInX, 'animation.scaleOutX': animation_1.ScaleOutX, 'animation.scaleInY': animation_1.ScaleInY, 'animation.scaleOutY': animation_1.ScaleOutY, 'animation.waveIn': animation_1.WaveIn, 'animation.fadeIn': animation_1.FadeIn, 'animation.fadeOut': animation_1.FadeOut, 'animation.zoomIn': animation_1.ZoomIn, 'animation.zoomOut': animation_1.ZoomOut, 'animation.pathIn': animation_1.PathIn, 'animation.morphing': animation_1.Morphing, 'animation.growInX': animation_1.GrowInX, 'animation.growInY': animation_1.GrowInY, 'interaction.elementHighlight': interaction_1.ElementHighlight, 'interaction.elementHighlightByX': interaction_1.ElementHighlightByX, 'interaction.elementHighlightByColor': interaction_1.ElementHighlightByColor, 'interaction.elementSelect': interaction_1.ElementSelect, 'interaction.elementSelectByX': interaction_1.ElementSelectByX, 'interaction.elementSelectByColor': interaction_1.ElementSelectByColor, 'interaction.fisheye': interaction_1.Fisheye, 'interaction.chartIndex': interaction_1.ChartIndex, 'interaction.tooltip': interaction_1.Tooltip, 'interaction.legendFilter': interaction_1.LegendFilter, 'interaction.legendHighlight': interaction_1.LegendHighlight, 'interaction.brushHighlight': interaction_1.BrushHighlight, 'interaction.brushXHighlight': interaction_1.BrushXHighlight, 'interaction.brushYHighlight': interaction_1.BrushYHighlight, 'interaction.brushAxisHighlight': interaction_1.BrushAxisHighlight, 'interaction.brushFilter': interaction_1.BrushFilter, 'interaction.brushXFilter': interaction_1.BrushXFilter, 'interaction.brushYFilter': interaction_1.BrushYFilter, 'interaction.sliderFilter': interaction_1.SliderFilter, 'interaction.poptip': interaction_1.Poptip, 'interaction.event': interaction_1.Event, 'composition.spaceLayer': composition_1.SpaceLayer, 'composition.spaceFlex': composition_1.SpaceFlex, 'composition.mark': composition_1.Mark, 'composition.view': composition_1.View, 'composition.facetRect': composition_1.FacetRect, 'composition.repeatMatrix': composition_1.RepeatMatrix, 'composition.facetCircle': composition_1.FacetCircle, 'composition.timingKeyframe': composition_1.TimingKeyframe, 'labelTransform.overlapHide': label_transform_1.OverlapHide, 'labelTransform.overlapDodgeY': label_transform_1.OverlapDodgeY, 'labelTransform.overflowHide': label_transform_1.OverflowHide, 'labelTransform.contrastReverse': label_transform_1.ContrastReverse }, geo_1.geoLibrary);
37
23
  }
38
24
  exports.createLibrary = createLibrary;
39
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["stdlib/index.ts"],"names":[],"mappings":";;;AACA,8CAUuB;AACvB,sCAA+D;AAC/D,kCA4BiB;AACjB,wCAqBoB;AACpB,oCAekB;AAClB,oCAmDkB;AAClB,oCAAgD;AAChD,4CAgBsB;AACtB,4CAcsB;AACtB,gDAgCwB;AACxB,gDASwB;AACxB,4CA2CsB;AACtB,kCAkBiB;AACjB,wDAK4B;AA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BAAyB,EAAE,yBAAW,EACtC,0BAA0B,EAAE,0BAAY,EACxC,0BAA0B,EAAE,0BAAY,EACxC,0BAA0B,EAAE,0BAAY,EACxC,oBAAoB,EAAE,oBAAM,EAC5B,mBAAmB,EAAE,mBAAK,EAC1B,wBAAwB,EAAE,wBAAU,EACpC,uBAAuB,EAAE,uBAAS,EAClC,kBAAkB,EAAE,kBAAI,EACxB,kBAAkB,EAAE,kBAAI,EACxB,uBAAuB,EAAE,uBAAS,EAClC,0BAA0B,EAAE,0BAAY,EACxC,yBAAyB,EAAE,yBAAW,EACtC,4BAA4B,EAAE,4BAAc,EAC5C,4BAA4B,EAAE,6BAAW,EACzC,8BAA8B,EAAE,+BAAa,EAC7C,6BAA6B,EAAE,8BAAY,EAC3C,gCAAgC,EAAE,iCAAe,IAC9C,gBAAU,EACb;AACJ,CAAC;AAlPD,sCAkPC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g2",
3
- "version": "5.0.0-beta.12",
3
+ "version": "5.0.0-beta.13",
4
4
  "description": "the Grammar of Graphics in Javascript",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
package/src/api/chart.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  import { RendererPlugin, Canvas as GCanvas } from '@antv/g';
2
2
  import { Renderer as CanvasRenderer } from '@antv/g-canvas';
3
3
  import { Plugin as DragAndDropPlugin } from '@antv/g-plugin-dragndrop';
4
- import { debounce } from '@antv/util';
4
+ import { debounce, deepMix, omit } from '@antv/util';
5
5
  import EventEmitter from '@antv/event-emitter';
6
6
  import { G2Context, render, destroy } from '../runtime';
7
7
  import { ViewComposition } from '../spec';
8
8
  import { getChartSize } from '../utils/size';
9
9
  import { CHART_LIFE_CIRCLE } from '../utils/event';
10
+ import { G2ViewTree } from '../runtime/types/options';
10
11
  import { Node } from './node';
11
12
  import {
12
13
  defineProps,
@@ -24,6 +25,8 @@ import { mark, Mark } from './mark';
24
25
  import { composition, Composition, View } from './composition';
25
26
  import { library } from './library';
26
27
 
28
+ export const SPEC_EXTERNAL_KEYS = ['container', 'renderer'];
29
+
27
30
  function normalizeContainer(container: string | HTMLElement): HTMLElement {
28
31
  if (container === undefined) return document.createElement('div');
29
32
  if (typeof container === 'string') {
@@ -134,7 +137,7 @@ export interface Chart extends Composition, Mark {
134
137
  key: ValueAttribute<ChartProps['key'], Chart>;
135
138
  transform: ArrayAttribute<ChartProps['transform'], Chart>;
136
139
  theme: ObjectAttribute<ChartProps['theme'], Chart>;
137
- title: ObjectAttribute<ChartProps['title'], Chart>;
140
+ title: ValueAttribute<ChartProps['title'], Chart>;
138
141
  scale: ObjectAttribute<ChartOptions['scale'], Chart>;
139
142
  axis: ObjectAttribute<ChartOptions['axis'], Chart>;
140
143
  legend: ObjectAttribute<ChartOptions['legend'], Chart>;
@@ -165,6 +168,7 @@ export class Chart extends View<ChartOptions> {
165
168
  private _container: HTMLElement;
166
169
  private _context: G2Context;
167
170
  private _emitter: EventEmitter;
171
+ private _options: G2ViewTree;
168
172
 
169
173
  constructor(options: ChartOptions = {}) {
170
174
  const { container, canvas, ...rest } = options;
@@ -208,9 +212,32 @@ export class Chart extends View<ChartOptions> {
208
212
  render(this.options(), this._context, () => resolve(this));
209
213
  });
210
214
  }
215
+ /**
216
+ * @overload
217
+ * @returns {G2ViewTree}
218
+ */
219
+ options(): G2ViewTree;
220
+ /**
221
+ * @overload
222
+ * @param {G2ViewTree} options
223
+ * @returns {Chart}
224
+ */
225
+ options(options: G2ViewTree): Chart;
226
+ /**
227
+ * @overload
228
+ * @param {G2ViewTree} [options]
229
+ * @returns {Chart|G2ViewTree}
230
+ */
231
+ options(options?: G2ViewTree): Chart | G2ViewTree {
232
+ if (arguments.length === 0) {
233
+ return this._options || optionsOf(this);
234
+ }
235
+ this._options = deepMix(
236
+ this._options || {},
237
+ omit(options, SPEC_EXTERNAL_KEYS),
238
+ );
211
239
 
212
- options() {
213
- return optionsOf(this);
240
+ return this;
214
241
  }
215
242
 
216
243
  getContainer(): HTMLElement {
@@ -1,11 +1,6 @@
1
1
  import { GeoPathComposition } from '../../spec';
2
2
  import { defineProps, nodeProps } from '../props';
3
- import {
4
- ValueAttribute,
5
- ObjectAttribute,
6
- ArrayAttribute,
7
- Concrete,
8
- } from '../types';
3
+ import { ValueAttribute, ObjectAttribute, Concrete } from '../types';
9
4
  import { mark, Mark } from '../mark';
10
5
  import { Composition, CompositionNode } from './index';
11
6
 
@@ -1,3 +1,4 @@
1
+ import { HOMMarkType } from '../../spec';
1
2
  import {
2
3
  Interval,
3
4
  Rect,
@@ -25,9 +26,11 @@ import {
25
26
  ForceGraph,
26
27
  Tree,
27
28
  WordCloud,
29
+ HOMMark,
28
30
  } from './mark';
29
31
 
30
32
  export interface Mark {
33
+ mark(HOMMark: HOMMarkType): HOMMark;
31
34
  interval(): Interval;
32
35
  rect(): Rect;
33
36
  point(): Point;
@@ -59,6 +62,7 @@ export interface Mark {
59
62
  export { MarkNode } from './base';
60
63
 
61
64
  export const mark = {
65
+ mark: HOMMark,
62
66
  interval: Interval,
63
67
  rect: Rect,
64
68
  point: Point,