@oceandesign-next/charts 0.0.0-stage → 1.0.0-next.1

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 (409) hide show
  1. package/dist/LICENSE +22 -0
  2. package/dist/THIRD_PARTY_NOTICES.txt +2976 -0
  3. package/dist/announce-VO76XEYK.browser.js +2 -0
  4. package/dist/announce-VO76XEYK.js +13 -0
  5. package/dist/announce-VO76XEYK.js.map +6 -0
  6. package/dist/area/index.browser.js +4 -0
  7. package/dist/area/index.css +29 -0
  8. package/dist/area/index.css.map +6 -0
  9. package/dist/area/index.d.ts +11 -0
  10. package/dist/area/index.js +16 -0
  11. package/dist/area/index.js.map +6 -0
  12. package/dist/bar/index.browser.js +4 -0
  13. package/dist/bar/index.css +29 -0
  14. package/dist/bar/index.css.map +6 -0
  15. package/dist/bar/index.d.ts +16 -0
  16. package/dist/bar/index.js +16 -0
  17. package/dist/bar/index.js.map +6 -0
  18. package/dist/bidirectional-bar/index.browser.js +4 -0
  19. package/dist/bidirectional-bar/index.css +29 -0
  20. package/dist/bidirectional-bar/index.css.map +6 -0
  21. package/dist/bidirectional-bar/index.d.ts +6 -0
  22. package/dist/bidirectional-bar/index.js +14 -0
  23. package/dist/bidirectional-bar/index.js.map +6 -0
  24. package/dist/box/index.browser.js +4 -0
  25. package/dist/box/index.css +29 -0
  26. package/dist/box/index.css.map +6 -0
  27. package/dist/box/index.d.ts +6 -0
  28. package/dist/box/index.js +14 -0
  29. package/dist/box/index.js.map +6 -0
  30. package/dist/bullet/index.browser.js +4 -0
  31. package/dist/bullet/index.css +29 -0
  32. package/dist/bullet/index.css.map +6 -0
  33. package/dist/bullet/index.d.ts +6 -0
  34. package/dist/bullet/index.js +14 -0
  35. package/dist/bullet/index.js.map +6 -0
  36. package/dist/chart-provider/index.browser.js +3 -0
  37. package/dist/chart-provider/index.d.ts +17 -0
  38. package/dist/chart-provider/index.js +13 -0
  39. package/dist/chart-provider/index.js.map +6 -0
  40. package/dist/chord/index.browser.js +4 -0
  41. package/dist/chord/index.css +29 -0
  42. package/dist/chord/index.css.map +6 -0
  43. package/dist/chord/index.d.ts +6 -0
  44. package/dist/chord/index.js +14 -0
  45. package/dist/chord/index.js.map +6 -0
  46. package/dist/chunk-25ZIIMYZ.js +53 -0
  47. package/dist/chunk-25ZIIMYZ.js.map +6 -0
  48. package/dist/chunk-27BWUEHJ.js +25 -0
  49. package/dist/chunk-27BWUEHJ.js.map +6 -0
  50. package/dist/chunk-2QGGUYYY.js +65 -0
  51. package/dist/chunk-2QGGUYYY.js.map +6 -0
  52. package/dist/chunk-3TA337BG.js +15 -0
  53. package/dist/chunk-3TA337BG.js.map +6 -0
  54. package/dist/chunk-4JZTGD2I.js +32 -0
  55. package/dist/chunk-4JZTGD2I.js.map +6 -0
  56. package/dist/chunk-4N7QFNEX.js +10086 -0
  57. package/dist/chunk-4N7QFNEX.js.map +6 -0
  58. package/dist/chunk-5C3VRSBP.js +15 -0
  59. package/dist/chunk-5C3VRSBP.js.map +6 -0
  60. package/dist/chunk-5SAKSJEI.js +15 -0
  61. package/dist/chunk-5SAKSJEI.js.map +6 -0
  62. package/dist/chunk-5XL4RCIO.js +108 -0
  63. package/dist/chunk-5XL4RCIO.js.map +6 -0
  64. package/dist/chunk-65CM4Q5O.js +126 -0
  65. package/dist/chunk-65CM4Q5O.js.map +6 -0
  66. package/dist/chunk-6UJBK43S.js +58 -0
  67. package/dist/chunk-6UJBK43S.js.map +6 -0
  68. package/dist/chunk-7CWTKTUP.js +15 -0
  69. package/dist/chunk-7CWTKTUP.js.map +6 -0
  70. package/dist/chunk-7HTRVNC2.js +31 -0
  71. package/dist/chunk-7HTRVNC2.js.map +6 -0
  72. package/dist/chunk-7QZAXPKM.js +15 -0
  73. package/dist/chunk-7QZAXPKM.js.map +6 -0
  74. package/dist/chunk-7VVXPNBC.js +27 -0
  75. package/dist/chunk-7VVXPNBC.js.map +6 -0
  76. package/dist/chunk-ACLUGRQA.js +3238 -0
  77. package/dist/chunk-ACLUGRQA.js.map +6 -0
  78. package/dist/chunk-BHEZX264.js +4009 -0
  79. package/dist/chunk-BHEZX264.js.map +6 -0
  80. package/dist/chunk-C5K4ZUUY.js +49 -0
  81. package/dist/chunk-C5K4ZUUY.js.map +6 -0
  82. package/dist/chunk-CDBUMLXE.js +3530 -0
  83. package/dist/chunk-CDBUMLXE.js.map +6 -0
  84. package/dist/chunk-CTZ4UZLL.js +15 -0
  85. package/dist/chunk-CTZ4UZLL.js.map +6 -0
  86. package/dist/chunk-E35R6IAI.js +73 -0
  87. package/dist/chunk-E35R6IAI.js.map +6 -0
  88. package/dist/chunk-E4O57OSB.js +124 -0
  89. package/dist/chunk-E4O57OSB.js.map +6 -0
  90. package/dist/chunk-EIPPXQHA.js +61 -0
  91. package/dist/chunk-EIPPXQHA.js.map +6 -0
  92. package/dist/chunk-EN42FWLW.js +15 -0
  93. package/dist/chunk-EN42FWLW.js.map +6 -0
  94. package/dist/chunk-EUZXQRYT.js +89436 -0
  95. package/dist/chunk-EUZXQRYT.js.map +6 -0
  96. package/dist/chunk-FL732P2Z.js +49 -0
  97. package/dist/chunk-FL732P2Z.js.map +6 -0
  98. package/dist/chunk-FVD54Z5U.js +15 -0
  99. package/dist/chunk-FVD54Z5U.js.map +6 -0
  100. package/dist/chunk-GLEOAYJM.js +50 -0
  101. package/dist/chunk-GLEOAYJM.js.map +6 -0
  102. package/dist/chunk-H674ZB3X.js +15 -0
  103. package/dist/chunk-H674ZB3X.js.map +6 -0
  104. package/dist/chunk-J6WHJJOU.js +18 -0
  105. package/dist/chunk-J6WHJJOU.js.map +6 -0
  106. package/dist/chunk-JVPIX7BV.js +15 -0
  107. package/dist/chunk-JVPIX7BV.js.map +6 -0
  108. package/dist/chunk-KRL5CJSP.js +15 -0
  109. package/dist/chunk-KRL5CJSP.js.map +6 -0
  110. package/dist/chunk-L5KK6DHG.js +45 -0
  111. package/dist/chunk-L5KK6DHG.js.map +6 -0
  112. package/dist/chunk-LPTXWQ2A.js +15 -0
  113. package/dist/chunk-LPTXWQ2A.js.map +6 -0
  114. package/dist/chunk-LPVSKK2M.js +218 -0
  115. package/dist/chunk-LPVSKK2M.js.map +6 -0
  116. package/dist/chunk-LTLWYV3B.js +53 -0
  117. package/dist/chunk-LTLWYV3B.js.map +6 -0
  118. package/dist/chunk-MC65GNVE.js +15 -0
  119. package/dist/chunk-MC65GNVE.js.map +6 -0
  120. package/dist/chunk-MD5VNILI.js +15 -0
  121. package/dist/chunk-MD5VNILI.js.map +6 -0
  122. package/dist/chunk-MI3Y33DH.js +66 -0
  123. package/dist/chunk-MI3Y33DH.js.map +6 -0
  124. package/dist/chunk-MV7L5O54.js +14 -0
  125. package/dist/chunk-MV7L5O54.js.map +6 -0
  126. package/dist/chunk-N34BBVXG.js +209 -0
  127. package/dist/chunk-N34BBVXG.js.map +6 -0
  128. package/dist/chunk-N53YQY4I.js +15 -0
  129. package/dist/chunk-N53YQY4I.js.map +6 -0
  130. package/dist/chunk-NKVX6ENR.js +75 -0
  131. package/dist/chunk-NKVX6ENR.js.map +6 -0
  132. package/dist/chunk-NTEP2K5D.js +110 -0
  133. package/dist/chunk-NTEP2K5D.js.map +6 -0
  134. package/dist/chunk-PG3HYCG5.js +15 -0
  135. package/dist/chunk-PG3HYCG5.js.map +6 -0
  136. package/dist/chunk-PW7ML5VZ.js +15 -0
  137. package/dist/chunk-PW7ML5VZ.js.map +6 -0
  138. package/dist/chunk-QGHRRR5T.js +15 -0
  139. package/dist/chunk-QGHRRR5T.js.map +6 -0
  140. package/dist/chunk-RJA36HUN.js +15 -0
  141. package/dist/chunk-RJA36HUN.js.map +6 -0
  142. package/dist/chunk-SHVOQJSL.js +50 -0
  143. package/dist/chunk-SHVOQJSL.js.map +6 -0
  144. package/dist/chunk-SUENZLGA.js +15 -0
  145. package/dist/chunk-SUENZLGA.js.map +6 -0
  146. package/dist/chunk-UBFQGG7O.js +65 -0
  147. package/dist/chunk-UBFQGG7O.js.map +6 -0
  148. package/dist/chunk-WFP2BMMV.js +73 -0
  149. package/dist/chunk-WFP2BMMV.js.map +6 -0
  150. package/dist/chunk-WM5W2GTO.js +53 -0
  151. package/dist/chunk-WM5W2GTO.js.map +6 -0
  152. package/dist/chunk-XY5B64AW.js +273 -0
  153. package/dist/chunk-XY5B64AW.js.map +6 -0
  154. package/dist/chunk-Y2U5HO43.js +113 -0
  155. package/dist/chunk-Y2U5HO43.js.map +6 -0
  156. package/dist/chunk-YT65SUKQ.js +15 -0
  157. package/dist/chunk-YT65SUKQ.js.map +6 -0
  158. package/dist/chunk-YXOYFXIL.js +52 -0
  159. package/dist/chunk-YXOYFXIL.js.map +6 -0
  160. package/dist/chunk-ZCVR5DDQ.js +980 -0
  161. package/dist/chunk-ZCVR5DDQ.js.map +6 -0
  162. package/dist/circle-packing/index.browser.js +4 -0
  163. package/dist/circle-packing/index.css +29 -0
  164. package/dist/circle-packing/index.css.map +6 -0
  165. package/dist/circle-packing/index.d.ts +6 -0
  166. package/dist/circle-packing/index.js +14 -0
  167. package/dist/circle-packing/index.js.map +6 -0
  168. package/dist/client-FRZH3CDP.browser.js +3 -0
  169. package/dist/client-FRZH3CDP.js +46855 -0
  170. package/dist/client-FRZH3CDP.js.map +6 -0
  171. package/dist/client-H3O66XVO.css +1528 -0
  172. package/dist/client-H3O66XVO.css.map +6 -0
  173. package/dist/client-visualization.d.ts +1 -0
  174. package/dist/column/index.browser.js +4 -0
  175. package/dist/column/index.css +29 -0
  176. package/dist/column/index.css.map +6 -0
  177. package/dist/column/index.d.ts +11 -0
  178. package/dist/column/index.js +16 -0
  179. package/dist/column/index.js.map +6 -0
  180. package/dist/dual-axes/index.browser.js +4 -0
  181. package/dist/dual-axes/index.css +29 -0
  182. package/dist/dual-axes/index.css.map +6 -0
  183. package/dist/dual-axes/index.d.ts +11 -0
  184. package/dist/dual-axes/index.js +16 -0
  185. package/dist/dual-axes/index.js.map +6 -0
  186. package/dist/es-6LNOHJAR.browser.js +2 -0
  187. package/dist/es-6LNOHJAR.js +86671 -0
  188. package/dist/es-6LNOHJAR.js.map +6 -0
  189. package/dist/es-PCWNJLQB.browser.js +2 -0
  190. package/dist/es-PCWNJLQB.js +13699 -0
  191. package/dist/es-PCWNJLQB.js.map +6 -0
  192. package/dist/facet/index.browser.js +4 -0
  193. package/dist/facet/index.css +29 -0
  194. package/dist/facet/index.css.map +6 -0
  195. package/dist/facet/index.d.ts +6 -0
  196. package/dist/facet/index.js +14 -0
  197. package/dist/facet/index.js.map +6 -0
  198. package/dist/findable-rows-7ADT7E7V.browser.js +2 -0
  199. package/dist/findable-rows-7ADT7E7V.js +356 -0
  200. package/dist/findable-rows-7ADT7E7V.js.map +6 -0
  201. package/dist/flowchart/client.d.ts +3 -0
  202. package/dist/flowchart/color-field.d.ts +3 -0
  203. package/dist/flowchart/commands.d.ts +189 -0
  204. package/dist/flowchart/context.d.ts +27 -0
  205. package/dist/flowchart/data.d.ts +7 -0
  206. package/dist/flowchart/fields.d.ts +60 -0
  207. package/dist/flowchart/icon-store.d.ts +7 -0
  208. package/dist/flowchart/index.browser.js +4 -0
  209. package/dist/flowchart/index.css +2134 -0
  210. package/dist/flowchart/index.css.map +6 -0
  211. package/dist/flowchart/index.d.ts +13 -0
  212. package/dist/flowchart/index.js +54 -0
  213. package/dist/flowchart/index.js.map +6 -0
  214. package/dist/flowchart/keybinding.d.ts +29 -0
  215. package/dist/flowchart/schema-data.d.ts +11 -0
  216. package/dist/flowchart/toolbar.d.ts +3 -0
  217. package/dist/flowchart/types.d.ts +309 -0
  218. package/dist/funnel/index.browser.js +4 -0
  219. package/dist/funnel/index.css +29 -0
  220. package/dist/funnel/index.css.map +6 -0
  221. package/dist/funnel/index.d.ts +6 -0
  222. package/dist/funnel/index.js +14 -0
  223. package/dist/funnel/index.js.map +6 -0
  224. package/dist/gauge/index.browser.js +4 -0
  225. package/dist/gauge/index.css +29 -0
  226. package/dist/gauge/index.css.map +6 -0
  227. package/dist/gauge/index.d.ts +11 -0
  228. package/dist/gauge/index.js +16 -0
  229. package/dist/gauge/index.js.map +6 -0
  230. package/dist/graphs/canvas-contrast.d.ts +7 -0
  231. package/dist/graphs/index.browser.js +2 -0
  232. package/dist/graphs/index.d.ts +22 -0
  233. package/dist/graphs/index.js +47 -0
  234. package/dist/graphs/index.js.map +6 -0
  235. package/dist/graphs/sample-data.d.ts +35 -0
  236. package/dist/heatmap/index.browser.js +4 -0
  237. package/dist/heatmap/index.css +29 -0
  238. package/dist/heatmap/index.css.map +6 -0
  239. package/dist/heatmap/index.d.ts +6 -0
  240. package/dist/heatmap/index.js +14 -0
  241. package/dist/heatmap/index.js.map +6 -0
  242. package/dist/histogram/index.browser.js +4 -0
  243. package/dist/histogram/index.css +29 -0
  244. package/dist/histogram/index.css.map +6 -0
  245. package/dist/histogram/index.d.ts +11 -0
  246. package/dist/histogram/index.js +16 -0
  247. package/dist/histogram/index.js.map +6 -0
  248. package/dist/index.browser.js +3 -0
  249. package/dist/index.css +2275 -0
  250. package/dist/index.css.map +6 -0
  251. package/dist/index.d.ts +87 -0
  252. package/dist/index.js +680 -0
  253. package/dist/index.js.map +6 -0
  254. package/dist/line/index.browser.js +4 -0
  255. package/dist/line/index.css +29 -0
  256. package/dist/line/index.css.map +6 -0
  257. package/dist/line/index.d.ts +15 -0
  258. package/dist/line/index.js +14 -0
  259. package/dist/line/index.js.map +6 -0
  260. package/dist/liquid/index.browser.js +4 -0
  261. package/dist/liquid/index.css +29 -0
  262. package/dist/liquid/index.css.map +6 -0
  263. package/dist/liquid/index.d.ts +22 -0
  264. package/dist/liquid/index.js +16 -0
  265. package/dist/liquid/index.js.map +6 -0
  266. package/dist/maps/index.browser.js +2 -0
  267. package/dist/maps/index.d.ts +9 -0
  268. package/dist/maps/index.js +24 -0
  269. package/dist/maps/index.js.map +6 -0
  270. package/dist/maps/sample-data.d.ts +97 -0
  271. package/dist/mix/index.browser.js +4 -0
  272. package/dist/mix/index.css +29 -0
  273. package/dist/mix/index.css.map +6 -0
  274. package/dist/mix/index.d.ts +6 -0
  275. package/dist/mix/index.js +14 -0
  276. package/dist/mix/index.js.map +6 -0
  277. package/dist/pie/index.browser.js +4 -0
  278. package/dist/pie/index.css +29 -0
  279. package/dist/pie/index.css.map +6 -0
  280. package/dist/pie/index.d.ts +27 -0
  281. package/dist/pie/index.js +17 -0
  282. package/dist/pie/index.js.map +6 -0
  283. package/dist/plot/cartesian.d.ts +9 -0
  284. package/dist/plot/chart-contrast.d.ts +5 -0
  285. package/dist/plot/chart-loading.d.ts +5 -0
  286. package/dist/plot/metric-text.d.ts +1 -0
  287. package/dist/plot/metrics.d.ts +9 -0
  288. package/dist/plot/native-plot.d.ts +10 -0
  289. package/dist/plot/plot-surface.d.ts +33 -0
  290. package/dist/plot/props.d.ts +15 -0
  291. package/dist/plot/tooltip.d.ts +14 -0
  292. package/dist/plot/types.d.ts +15 -0
  293. package/dist/progress/index.browser.js +4 -0
  294. package/dist/progress/index.css +29 -0
  295. package/dist/progress/index.css.map +6 -0
  296. package/dist/progress/index.d.ts +22 -0
  297. package/dist/progress/index.js +16 -0
  298. package/dist/progress/index.js.map +6 -0
  299. package/dist/radar/index.browser.js +4 -0
  300. package/dist/radar/index.css +29 -0
  301. package/dist/radar/index.css.map +6 -0
  302. package/dist/radar/index.d.ts +6 -0
  303. package/dist/radar/index.js +14 -0
  304. package/dist/radar/index.js.map +6 -0
  305. package/dist/radial-bar/index.browser.js +4 -0
  306. package/dist/radial-bar/index.css +29 -0
  307. package/dist/radial-bar/index.css.map +6 -0
  308. package/dist/radial-bar/index.d.ts +6 -0
  309. package/dist/radial-bar/index.js +14 -0
  310. package/dist/radial-bar/index.js.map +6 -0
  311. package/dist/ring-progress/index.browser.js +4 -0
  312. package/dist/ring-progress/index.css +29 -0
  313. package/dist/ring-progress/index.css.map +6 -0
  314. package/dist/ring-progress/index.d.ts +6 -0
  315. package/dist/ring-progress/index.js +14 -0
  316. package/dist/ring-progress/index.js.map +6 -0
  317. package/dist/rose/index.browser.js +4 -0
  318. package/dist/rose/index.css +29 -0
  319. package/dist/rose/index.css.map +6 -0
  320. package/dist/rose/index.d.ts +6 -0
  321. package/dist/rose/index.js +14 -0
  322. package/dist/rose/index.js.map +6 -0
  323. package/dist/sankey/index.browser.js +4 -0
  324. package/dist/sankey/index.css +29 -0
  325. package/dist/sankey/index.css.map +6 -0
  326. package/dist/sankey/index.d.ts +6 -0
  327. package/dist/sankey/index.js +14 -0
  328. package/dist/sankey/index.js.map +6 -0
  329. package/dist/scatter/index.browser.js +4 -0
  330. package/dist/scatter/index.css +29 -0
  331. package/dist/scatter/index.css.map +6 -0
  332. package/dist/scatter/index.d.ts +6 -0
  333. package/dist/scatter/index.js +14 -0
  334. package/dist/scatter/index.js.map +6 -0
  335. package/dist/score/index.browser.js +4 -0
  336. package/dist/score/index.css +73 -0
  337. package/dist/score/index.css.map +6 -0
  338. package/dist/score/index.d.ts +15 -0
  339. package/dist/score/index.js +14 -0
  340. package/dist/score/index.js.map +6 -0
  341. package/dist/stat/index.browser.js +4 -0
  342. package/dist/stat/index.css +68 -0
  343. package/dist/stat/index.css.map +6 -0
  344. package/dist/stat/index.d.ts +23 -0
  345. package/dist/stat/index.js +19 -0
  346. package/dist/stat/index.js.map +6 -0
  347. package/dist/stock/index.browser.js +4 -0
  348. package/dist/stock/index.css +29 -0
  349. package/dist/stock/index.css.map +6 -0
  350. package/dist/stock/index.d.ts +6 -0
  351. package/dist/stock/index.js +14 -0
  352. package/dist/stock/index.js.map +6 -0
  353. package/dist/sunburst/index.browser.js +4 -0
  354. package/dist/sunburst/index.css +29 -0
  355. package/dist/sunburst/index.css.map +6 -0
  356. package/dist/sunburst/index.d.ts +6 -0
  357. package/dist/sunburst/index.js +14 -0
  358. package/dist/sunburst/index.js.map +6 -0
  359. package/dist/theme/presets.d.ts +165 -0
  360. package/dist/tiny-area/index.browser.js +4 -0
  361. package/dist/tiny-area/index.css +29 -0
  362. package/dist/tiny-area/index.css.map +6 -0
  363. package/dist/tiny-area/index.d.ts +12 -0
  364. package/dist/tiny-area/index.js +15 -0
  365. package/dist/tiny-area/index.js.map +6 -0
  366. package/dist/tiny-column/index.browser.js +4 -0
  367. package/dist/tiny-column/index.css +29 -0
  368. package/dist/tiny-column/index.css.map +6 -0
  369. package/dist/tiny-column/index.d.ts +16 -0
  370. package/dist/tiny-column/index.js +15 -0
  371. package/dist/tiny-column/index.js.map +6 -0
  372. package/dist/tiny-line/index.browser.js +4 -0
  373. package/dist/tiny-line/index.css +29 -0
  374. package/dist/tiny-line/index.css.map +6 -0
  375. package/dist/tiny-line/index.d.ts +11 -0
  376. package/dist/tiny-line/index.js +15 -0
  377. package/dist/tiny-line/index.js.map +6 -0
  378. package/dist/treemap/index.browser.js +4 -0
  379. package/dist/treemap/index.css +29 -0
  380. package/dist/treemap/index.css.map +6 -0
  381. package/dist/treemap/index.d.ts +6 -0
  382. package/dist/treemap/index.js +14 -0
  383. package/dist/treemap/index.js.map +6 -0
  384. package/dist/venn/index.browser.js +4 -0
  385. package/dist/venn/index.css +29 -0
  386. package/dist/venn/index.css.map +6 -0
  387. package/dist/venn/index.d.ts +6 -0
  388. package/dist/venn/index.js +14 -0
  389. package/dist/venn/index.js.map +6 -0
  390. package/dist/violin/index.browser.js +4 -0
  391. package/dist/violin/index.css +29 -0
  392. package/dist/violin/index.css.map +6 -0
  393. package/dist/violin/index.d.ts +6 -0
  394. package/dist/violin/index.js +14 -0
  395. package/dist/violin/index.js.map +6 -0
  396. package/dist/waterfall/index.browser.js +4 -0
  397. package/dist/waterfall/index.css +29 -0
  398. package/dist/waterfall/index.css.map +6 -0
  399. package/dist/waterfall/index.d.ts +6 -0
  400. package/dist/waterfall/index.js +14 -0
  401. package/dist/waterfall/index.js.map +6 -0
  402. package/dist/word-cloud/index.browser.js +4 -0
  403. package/dist/word-cloud/index.css +29 -0
  404. package/dist/word-cloud/index.css.map +6 -0
  405. package/dist/word-cloud/index.d.ts +6 -0
  406. package/dist/word-cloud/index.js +14 -0
  407. package/dist/word-cloud/index.js.map +6 -0
  408. package/package.json +337 -3
  409. package/README.md +0 -3
@@ -0,0 +1,29 @@
1
+ /* src/plot/plot.css */
2
+ [data-ob-plot] {
3
+ position: relative;
4
+ }
5
+ [data-ob-plot-view],
6
+ [data-ob-plot-canvas] {
7
+ min-inline-size: 0;
8
+ inline-size: 100%;
9
+ block-size: 100%;
10
+ }
11
+ [data-ob-plot-overlay] {
12
+ position: absolute;
13
+ inset: 0;
14
+ display: grid;
15
+ place-items: center;
16
+ }
17
+ [data-ob-plot-loading] {
18
+ z-index: 99;
19
+ background: #fff;
20
+ }
21
+ [data-ob-plot-loading=dark] {
22
+ background: #141414;
23
+ }
24
+ @media (prefers-reduced-motion: reduce) {
25
+ [data-ob-plot-shimmer] {
26
+ display: none;
27
+ }
28
+ }
29
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/plot/plot.css"],
4
+ "mappings": ";AAAA,CAAC;AACC,YAAU;AACZ;AAEA,CAAC;AACD,CAAC;AACC,mBAAiB;AACjB,eAAa;AACb,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,WAAS;AACT,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,QAAO,wBAAyB;AAC9B,GAAC;AACC,aAAS;AACX;AACF;",
5
+ "names": []
6
+ }
@@ -0,0 +1,15 @@
1
+ import { Line as LinePlot } from '@antv/g2plot';
2
+ import type { LineOptions } from '@antv/g2plot';
3
+ import type { Theme } from '../chart-provider';
4
+ import type { PlotContainerProps, PlotHandle } from '../plot/plot-surface';
5
+ import type { Tooltip } from '../plot/tooltip';
6
+ type LineArea = NonNullable<LineOptions['area']> & {
7
+ gradientFill?: boolean;
8
+ };
9
+ export interface LineConfig extends Omit<LineOptions, 'theme' | 'area' | 'tooltip'>, PlotContainerProps<LinePlot> {
10
+ theme?: Theme;
11
+ area?: LineArea;
12
+ tooltip?: false | Tooltip;
13
+ }
14
+ export declare const Line: import("react").ForwardRefExoticComponent<LineConfig & import("react").RefAttributes<PlotHandle<LinePlot>>>;
15
+ export default Line;
@@ -0,0 +1,14 @@
1
+ 'use client'
2
+ import {
3
+ Line,
4
+ line_default
5
+ } from "../chunk-5XL4RCIO.js";
6
+ import "../chunk-XY5B64AW.js";
7
+ import "../chunk-LPVSKK2M.js";
8
+ import "../chunk-ACLUGRQA.js";
9
+ import "../chunk-YXOYFXIL.js";
10
+ export {
11
+ Line,
12
+ line_default as default
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ import './index.css'
3
+ export * from './index.js'
4
+ export { default } from './index.js'
@@ -0,0 +1,29 @@
1
+ /* src/plot/plot.css */
2
+ [data-ob-plot] {
3
+ position: relative;
4
+ }
5
+ [data-ob-plot-view],
6
+ [data-ob-plot-canvas] {
7
+ min-inline-size: 0;
8
+ inline-size: 100%;
9
+ block-size: 100%;
10
+ }
11
+ [data-ob-plot-overlay] {
12
+ position: absolute;
13
+ inset: 0;
14
+ display: grid;
15
+ place-items: center;
16
+ }
17
+ [data-ob-plot-loading] {
18
+ z-index: 99;
19
+ background: #fff;
20
+ }
21
+ [data-ob-plot-loading=dark] {
22
+ background: #141414;
23
+ }
24
+ @media (prefers-reduced-motion: reduce) {
25
+ [data-ob-plot-shimmer] {
26
+ display: none;
27
+ }
28
+ }
29
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/plot/plot.css"],
4
+ "mappings": ";AAAA,CAAC;AACC,YAAU;AACZ;AAEA,CAAC;AACD,CAAC;AACC,mBAAiB;AACjB,eAAa;AACb,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,WAAS;AACT,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,QAAO,wBAAyB;AAC9B,GAAC;AACC,aAAS;AACX;AACF;",
5
+ "names": []
6
+ }
@@ -0,0 +1,22 @@
1
+ import { Liquid as LiquidPlot } from '@antv/g2plot';
2
+ import type { LiquidOptions } from '@antv/g2plot';
3
+ import type { CSSProperties, ReactNode } from 'react';
4
+ import type { PlotHandle } from '../plot/plot-surface';
5
+ import type { ChartConfig } from '../plot/props';
6
+ interface LiquidAppearance {
7
+ layout?: 'horizontal' | 'vertical';
8
+ title?: ReactNode;
9
+ warningPercent?: number;
10
+ dangerPercent?: number;
11
+ decimal?: number;
12
+ containerStyle?: CSSProperties;
13
+ percentStyle?: CSSProperties;
14
+ titleStyle?: CSSProperties;
15
+ }
16
+ export type LiquidConfig = ChartConfig<LiquidOptions, LiquidPlot, LiquidAppearance>;
17
+ export declare const Liquid: import("react").ForwardRefExoticComponent<Omit<Omit<LiquidOptions, "theme" | keyof import("../plot/plot-surface").PlotContainerProps<Instance>>, "tooltip"> & {
18
+ tooltip?: false | import("..").Tooltip;
19
+ } & LiquidAppearance & import("../plot/plot-surface").PlotContainerProps<LiquidPlot> & {
20
+ theme?: import("..").Theme;
21
+ } & import("react").RefAttributes<PlotHandle<LiquidPlot>>>;
22
+ export default Liquid;
@@ -0,0 +1,16 @@
1
+ 'use client'
2
+ import {
3
+ Liquid,
4
+ liquid_default
5
+ } from "../chunk-65CM4Q5O.js";
6
+ import "../chunk-GLEOAYJM.js";
7
+ import "../chunk-7VVXPNBC.js";
8
+ import "../chunk-XY5B64AW.js";
9
+ import "../chunk-LPVSKK2M.js";
10
+ import "../chunk-ACLUGRQA.js";
11
+ import "../chunk-YXOYFXIL.js";
12
+ export {
13
+ Liquid,
14
+ liquid_default as default
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -0,0 +1,2 @@
1
+ 'use client'
2
+ export * from './index.js'
@@ -0,0 +1,9 @@
1
+ export declare const AreaMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").AreaMapConfig & import("react").RefAttributes<unknown>>;
2
+ export declare const ChoroplethMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").ChoroplethMapConfig & import("react").RefAttributes<unknown>>;
3
+ export declare const DotMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").DotMapConfig & import("react").RefAttributes<unknown>>;
4
+ export declare const FlowMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").FlowMapConfig & import("react").RefAttributes<unknown>>;
5
+ export declare const GeographicHeatmap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").GeographicHeatmapConfig & import("react").RefAttributes<unknown>>;
6
+ export declare const GridMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").GridMapConfig & import("react").RefAttributes<unknown>>;
7
+ export declare const HexbinMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").HexbinMapConfig & import("react").RefAttributes<unknown>>;
8
+ export declare const PathMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").PathMapConfig & import("react").RefAttributes<unknown>>;
9
+ export type { AreaMapConfig, ChoroplethMapConfig, DotMapConfig, FlowMapConfig, GeographicHeatmapConfig, GridMapConfig, HexbinMapConfig, MapContainerConfig, PathMapConfig, PlotRef, } from '@ant-design/maps';
@@ -0,0 +1,24 @@
1
+ 'use client'
2
+ import {
3
+ AreaMap,
4
+ ChoroplethMap,
5
+ DotMap,
6
+ FlowMap,
7
+ GeographicHeatmap,
8
+ GridMap,
9
+ HexbinMap,
10
+ PathMap
11
+ } from "../chunk-4JZTGD2I.js";
12
+ import "../chunk-27BWUEHJ.js";
13
+ import "../chunk-YXOYFXIL.js";
14
+ export {
15
+ AreaMap,
16
+ ChoroplethMap,
17
+ DotMap,
18
+ FlowMap,
19
+ GeographicHeatmap,
20
+ GridMap,
21
+ HexbinMap,
22
+ PathMap
23
+ };
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -0,0 +1,97 @@
1
+ export declare const mapOptions: {
2
+ width: number;
3
+ height: number;
4
+ map: {
5
+ type: "map";
6
+ center: [number, number];
7
+ zoom: number;
8
+ };
9
+ logo: false;
10
+ preserveDrawingBuffer: true;
11
+ };
12
+ export declare const sites: {
13
+ site: string;
14
+ lng: number;
15
+ lat: number;
16
+ value: number;
17
+ }[];
18
+ export declare const points: {
19
+ readonly data: {
20
+ site: string;
21
+ lng: number;
22
+ lat: number;
23
+ value: number;
24
+ }[];
25
+ readonly parser: {
26
+ readonly type: "json";
27
+ readonly x: "lng";
28
+ readonly y: "lat";
29
+ };
30
+ };
31
+ export declare const aggregates: {
32
+ readonly aggregation: {
33
+ readonly field: "value";
34
+ readonly radius: 35000;
35
+ readonly method: "sum";
36
+ };
37
+ readonly data: {
38
+ site: string;
39
+ lng: number;
40
+ lat: number;
41
+ value: number;
42
+ }[];
43
+ readonly parser: {
44
+ readonly type: "json";
45
+ readonly x: "lng";
46
+ readonly y: "lat";
47
+ };
48
+ };
49
+ export declare const boundary: {
50
+ type: "FeatureCollection";
51
+ features: {
52
+ type: "Feature";
53
+ properties: {
54
+ name: string;
55
+ };
56
+ geometry: {
57
+ type: "Polygon";
58
+ coordinates: number[][][];
59
+ };
60
+ }[];
61
+ };
62
+ export declare const routes: {
63
+ type: "FeatureCollection";
64
+ features: {
65
+ type: "Feature";
66
+ properties: {
67
+ name: string;
68
+ value: number;
69
+ };
70
+ geometry: {
71
+ type: "LineString";
72
+ coordinates: number[][];
73
+ };
74
+ }[];
75
+ };
76
+ export declare const flows: {
77
+ readonly data: readonly [{
78
+ readonly fromLongitude: 0;
79
+ readonly fromLatitude: 0;
80
+ readonly toLongitude: 2;
81
+ readonly toLatitude: 0.7;
82
+ readonly value: 24;
83
+ }, {
84
+ readonly fromLongitude: 0;
85
+ readonly fromLatitude: 0;
86
+ readonly toLongitude: -1.8;
87
+ readonly toLatitude: -0.7;
88
+ readonly value: 16;
89
+ }];
90
+ readonly parser: {
91
+ readonly type: "json";
92
+ readonly x: "fromLongitude";
93
+ readonly y: "fromLatitude";
94
+ readonly x1: "toLongitude";
95
+ readonly y1: "toLatitude";
96
+ };
97
+ };
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ import './index.css'
3
+ export * from './index.js'
4
+ export { default } from './index.js'
@@ -0,0 +1,29 @@
1
+ /* src/plot/plot.css */
2
+ [data-ob-plot] {
3
+ position: relative;
4
+ }
5
+ [data-ob-plot-view],
6
+ [data-ob-plot-canvas] {
7
+ min-inline-size: 0;
8
+ inline-size: 100%;
9
+ block-size: 100%;
10
+ }
11
+ [data-ob-plot-overlay] {
12
+ position: absolute;
13
+ inset: 0;
14
+ display: grid;
15
+ place-items: center;
16
+ }
17
+ [data-ob-plot-loading] {
18
+ z-index: 99;
19
+ background: #fff;
20
+ }
21
+ [data-ob-plot-loading=dark] {
22
+ background: #141414;
23
+ }
24
+ @media (prefers-reduced-motion: reduce) {
25
+ [data-ob-plot-shimmer] {
26
+ display: none;
27
+ }
28
+ }
29
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/plot/plot.css"],
4
+ "mappings": ";AAAA,CAAC;AACC,YAAU;AACZ;AAEA,CAAC;AACD,CAAC;AACC,mBAAiB;AACjB,eAAa;AACb,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,WAAS;AACT,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,QAAO,wBAAyB;AAC9B,GAAC;AACC,aAAS;AACX;AACF;",
5
+ "names": []
6
+ }
@@ -0,0 +1,6 @@
1
+ import { Mix as Engine } from '@antv/g2plot';
2
+ import type { MixOptions } from '@antv/g2plot';
3
+ import type { NativePlotConfig } from '../plot/native-plot';
4
+ export type MixConfig = NativePlotConfig<MixOptions, Engine>;
5
+ export declare const Mix: import("../plot/native-plot").NativePlotComponent<MixOptions, Engine>;
6
+ export default Mix;
@@ -0,0 +1,14 @@
1
+ 'use client'
2
+ import {
3
+ Mix,
4
+ mix_default
5
+ } from "../chunk-CTZ4UZLL.js";
6
+ import "../chunk-C5K4ZUUY.js";
7
+ import "../chunk-LPVSKK2M.js";
8
+ import "../chunk-ACLUGRQA.js";
9
+ import "../chunk-YXOYFXIL.js";
10
+ export {
11
+ Mix,
12
+ mix_default as default
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ import './index.css'
3
+ export * from './index.js'
4
+ export { default } from './index.js'
@@ -0,0 +1,29 @@
1
+ /* src/plot/plot.css */
2
+ [data-ob-plot] {
3
+ position: relative;
4
+ }
5
+ [data-ob-plot-view],
6
+ [data-ob-plot-canvas] {
7
+ min-inline-size: 0;
8
+ inline-size: 100%;
9
+ block-size: 100%;
10
+ }
11
+ [data-ob-plot-overlay] {
12
+ position: absolute;
13
+ inset: 0;
14
+ display: grid;
15
+ place-items: center;
16
+ }
17
+ [data-ob-plot-loading] {
18
+ z-index: 99;
19
+ background: #fff;
20
+ }
21
+ [data-ob-plot-loading=dark] {
22
+ background: #141414;
23
+ }
24
+ @media (prefers-reduced-motion: reduce) {
25
+ [data-ob-plot-shimmer] {
26
+ display: none;
27
+ }
28
+ }
29
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/plot/plot.css"],
4
+ "mappings": ";AAAA,CAAC;AACC,YAAU;AACZ;AAEA,CAAC;AACD,CAAC;AACC,mBAAiB;AACjB,eAAa;AACb,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,WAAS;AACT,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,QAAO,wBAAyB;AAC9B,GAAC;AACC,aAAS;AACX;AACF;",
5
+ "names": []
6
+ }
@@ -0,0 +1,27 @@
1
+ import { Pie as PiePlot } from '@antv/g2plot';
2
+ import type { PieOptions } from '@antv/g2plot';
3
+ import type { PlotContainerProps, PlotHandle } from '../plot/plot-surface';
4
+ import type { ChartConfig } from '../plot/props';
5
+ interface DonutOptions {
6
+ isDonut?: boolean;
7
+ isHalfDonut?: boolean;
8
+ statisticTitle?: string;
9
+ }
10
+ export type PieConfig = ChartConfig<PieOptions, PiePlot, DonutOptions>;
11
+ interface CanvasFont {
12
+ fontSize?: number;
13
+ fontFamily?: string;
14
+ fontWeight?: string | number;
15
+ fontStyle?: string;
16
+ fontVariant?: string;
17
+ }
18
+ export declare function measureTextSize(text: string, font?: CanvasFont): {
19
+ width: number;
20
+ height: number;
21
+ };
22
+ export declare const Pie: import("react").ForwardRefExoticComponent<Omit<Omit<PieOptions, "theme" | keyof PlotContainerProps<Instance>>, "tooltip"> & {
23
+ tooltip?: false | import("..").Tooltip;
24
+ } & DonutOptions & PlotContainerProps<PiePlot> & {
25
+ theme?: import("..").Theme;
26
+ } & import("react").RefAttributes<PlotHandle<PiePlot>>>;
27
+ export default Pie;
@@ -0,0 +1,17 @@
1
+ 'use client'
2
+ import {
3
+ Pie,
4
+ measureTextSize,
5
+ pie_default
6
+ } from "../chunk-Y2U5HO43.js";
7
+ import "../chunk-7VVXPNBC.js";
8
+ import "../chunk-XY5B64AW.js";
9
+ import "../chunk-LPVSKK2M.js";
10
+ import "../chunk-ACLUGRQA.js";
11
+ import "../chunk-YXOYFXIL.js";
12
+ export {
13
+ Pie,
14
+ pie_default as default,
15
+ measureTextSize
16
+ };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -0,0 +1,9 @@
1
+ import type { Axis, Options } from '@antv/g2plot';
2
+ import type { ThemeConfig } from '../chart-provider';
3
+ export declare function sortPlotData(data: Options['data'], field: string | undefined, axis?: Axis): Record<string, any>[];
4
+ export declare function dashedAxis(axis: Axis | undefined, theme: ThemeConfig): Axis;
5
+ type Legend = NonNullable<Options['legend']>;
6
+ type Marker = 'square' | 'hyphen' | 'circle';
7
+ export declare function bottomLegend(legend?: Legend, symbol?: Marker): Legend;
8
+ export declare function stackCategories(data: Options['data'], field: string | undefined): any[];
9
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare function chartContrastIssues(chart: HTMLElement): {
2
+ label: string;
3
+ ratio: number;
4
+ minimum: number;
5
+ }[];
@@ -0,0 +1,5 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function ChartLoading({ dark, children }: {
3
+ dark: boolean;
4
+ children?: ReactNode;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function fitText(text: string, width: number, height: number, maxSize?: number, weight?: number): number;
@@ -0,0 +1,9 @@
1
+ import type { ThemeConfig } from '../chart-provider';
2
+ export declare function percentValue(ratio: number, decimal?: number): number;
3
+ export declare function thresholdColor(ratio: number, warning: number | undefined, danger: number | undefined, theme: ThemeConfig): string | undefined;
4
+ export declare function matchingThreshold(value: number | undefined, thresholds: Record<string, string>): string | undefined;
5
+ export declare function useElementSize<Element extends HTMLElement>(box?: ResizeObserverBoxOptions): {
6
+ width: number;
7
+ height: number;
8
+ ref: import("react").Dispatch<import("react").SetStateAction<Element | null>>;
9
+ };
@@ -0,0 +1,10 @@
1
+ import type { Options, Plot } from '@antv/g2plot';
2
+ import type { PickOptions } from '@antv/g2plot/lib/core/plot';
3
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
4
+ import type { PlotContainerProps, PlotHandle } from './plot-surface';
5
+ import type { PlotOptions } from './tooltip';
6
+ type EngineOptions = PickOptions & Pick<Options, 'tooltip' | 'theme'>;
7
+ export type NativePlotConfig<Config, Instance> = PlotOptions<Omit<Config, keyof PlotContainerProps<Instance>>> & PlotContainerProps<Instance>;
8
+ export type NativePlotComponent<Config, Instance> = ForwardRefExoticComponent<PropsWithoutRef<NativePlotConfig<Config, Instance>> & RefAttributes<PlotHandle<Instance>>>;
9
+ export declare function createNativePlot<Config extends EngineOptions, Instance extends Plot<Config>>(engine: new (element: HTMLElement, config: Config) => Instance, name: string, label: string): NativePlotComponent<Config, Instance>;
10
+ export {};
@@ -0,0 +1,33 @@
1
+ import type { G2, Options, Plot } from '@antv/g2plot';
2
+ import type { PickOptions } from '@antv/g2plot/lib/core/plot';
3
+ import type { CSSProperties, ReactNode, Ref } from 'react';
4
+ import type { PlotOptions } from './tooltip';
5
+ import './plot.css';
6
+ type EngineOptions = PickOptions & Pick<Options, 'tooltip' | 'theme'>;
7
+ type PlotConstructor<Config extends EngineOptions, Instance extends Plot<Config>> = new (container: HTMLElement, config: Config) => Instance;
8
+ type ChartRef<Instance> = ((chart: Instance) => void) | {
9
+ current: Instance | null | undefined;
10
+ };
11
+ export interface PlotContainerProps<Instance> {
12
+ className?: string;
13
+ style?: CSSProperties;
14
+ 'aria-label'?: string;
15
+ loading?: boolean;
16
+ loadingTemplate?: ReactNode;
17
+ errorTemplate?: ReactNode | ((error: Error) => ReactNode);
18
+ chartRef?: ChartRef<Instance>;
19
+ onReady?: (chart: Instance) => void;
20
+ onEvent?: (chart: Instance, event: G2.Event) => void;
21
+ }
22
+ export interface PlotHandle<Instance> {
23
+ getChart: () => Instance | undefined;
24
+ toDataURL: (type?: string, encoderOptions?: number) => string | undefined;
25
+ downloadImage: (name?: string, type?: string, encoderOptions?: number) => string | undefined;
26
+ }
27
+ interface PlotSurfaceProps<Config extends EngineOptions, Instance extends Plot<Config>> extends PlotContainerProps<Instance> {
28
+ engine: PlotConstructor<Config, Instance>;
29
+ options: PlotOptions<Config>;
30
+ instanceRef: Ref<PlotHandle<Instance>>;
31
+ }
32
+ export declare function PlotSurface<Config extends EngineOptions, Instance extends Plot<Config>>({ engine, options, instanceRef, className, style, 'aria-label': label, loading, loadingTemplate, errorTemplate, chartRef, onReady, onEvent, }: PlotSurfaceProps<Config, Instance>): import("react").JSX.Element;
33
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { Theme } from '../chart-provider';
2
+ import type { PlotContainerProps } from './plot-surface';
3
+ import type { PlotOptions } from './tooltip';
4
+ export type ChartConfig<Options, Instance, Extras extends object = object> = PlotOptions<Omit<Options, 'theme' | keyof PlotContainerProps<Instance>>> & Extras & PlotContainerProps<Instance> & {
5
+ theme?: Theme;
6
+ };
7
+ export declare function splitChartProps<Options extends object, Instance>({ theme, style, className, 'aria-label': label, loading, loadingTemplate, errorTemplate, chartRef, onReady, onEvent, ...options }: Options & PlotContainerProps<Instance> & {
8
+ theme?: Theme;
9
+ }): {
10
+ options: Omit<Options & PlotContainerProps<Instance> & {
11
+ theme?: Theme;
12
+ }, keyof PlotContainerProps<Instance> | 'theme'>;
13
+ theme: Theme | undefined;
14
+ surface: PlotContainerProps<Instance>;
15
+ };
@@ -0,0 +1,14 @@
1
+ import type { Options } from '@antv/g2plot';
2
+ import type { ReactNode } from 'react';
3
+ type EngineTooltip = Exclude<NonNullable<Options['tooltip']>, false>;
4
+ type TooltipArguments = Parameters<NonNullable<EngineTooltip['customContent']>>;
5
+ export interface Tooltip extends Omit<EngineTooltip, 'customContent'> {
6
+ customContent?: (...args: TooltipArguments) => ReactNode | HTMLElement;
7
+ scrollable?: boolean;
8
+ }
9
+ export type PlotOptions<Config> = Omit<Config, 'tooltip'> & {
10
+ tooltip?: false | Tooltip;
11
+ };
12
+ export declare function engineTooltip(tooltip: false | Tooltip | undefined, mount: (content: ReactNode) => HTMLElement): Options['tooltip'];
13
+ export declare function prepareTooltip(tooltip?: false | Tooltip, height?: number): false | Tooltip;
14
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { BulletOptions, DualAxesOptions, G2, GaugeOptions, MixOptions, Options, Plot, TreemapOptions } from '@antv/g2plot';
2
+ import type { PlotContainerProps, PlotHandle } from './plot-surface';
3
+ import type { Tooltip } from './tooltip';
4
+ type TinyPlotOptions = Omit<Options, 'data' | 'legend' | 'label'> & {
5
+ data: number[];
6
+ };
7
+ export type AllBaseConfig = Options | DualAxesOptions | GaugeOptions | TinyPlotOptions | BulletOptions | MixOptions | TreemapOptions;
8
+ export type ChartRefConfig = NonNullable<PlotContainerProps<Plot<AllBaseConfig>>['chartRef']>;
9
+ export type BasePlot = Plot<AllBaseConfig> & Partial<Pick<PlotHandle<Plot<AllBaseConfig>>, 'toDataURL' | 'downloadImage'>>;
10
+ export type PlotEvent = G2.Event;
11
+ export interface BaseConfig<Config extends Omit<AllBaseConfig, 'tooltip'>, Instance extends Plot<Config> = Plot<Config>> extends Omit<PlotContainerProps<Instance>, 'chartRef'> {
12
+ tooltip?: false | Tooltip;
13
+ chartRef?: ChartRefConfig;
14
+ }
15
+ export {};
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ import './index.css'
3
+ export * from './index.js'
4
+ export { default } from './index.js'