@tabler/charts 0.2.0 → 0.4.0

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 (420) hide show
  1. package/README.md +165 -17
  2. package/dist/{annotations-DdRdeBUB.cjs → annotations--m-HzMBM.cjs} +87 -11
  3. package/dist/annotations--m-HzMBM.cjs.map +1 -0
  4. package/dist/{annotations-B02GR_KU.d.ts → annotations-CCDUC1lW.d.ts} +16 -30
  5. package/dist/{annotations-CHafaGd4.d.cts → annotations-CqZM1z9R.d.cts} +16 -30
  6. package/dist/{annotations-D0YQ0IoA.js → annotations-DGITy6th.js} +87 -11
  7. package/dist/annotations-DGITy6th.js.map +1 -0
  8. package/dist/annotations.cjs +2 -2
  9. package/dist/annotations.d.cts +1 -1
  10. package/dist/annotations.d.ts +1 -1
  11. package/dist/annotations.js +2 -2
  12. package/dist/{area-0-L1bG9B.js → area-BN0uE9R0.js} +4 -3
  13. package/dist/area-BN0uE9R0.js.map +1 -0
  14. package/dist/{area-CJX9219z.d.cts → area-D6LNLk3r.d.cts} +2 -2
  15. package/dist/{area-d11XePuw.d.ts → area-DEFL-Yun.d.ts} +2 -2
  16. package/dist/{area-4eRs3c0K.cjs → area-D_N8b4Ng.cjs} +4 -3
  17. package/dist/area-D_N8b4Ng.cjs.map +1 -0
  18. package/dist/area.cjs +1 -1
  19. package/dist/area.d.cts +1 -1
  20. package/dist/area.d.ts +1 -1
  21. package/dist/area.js +1 -1
  22. package/dist/axis-BzBkkC5X.cjs +305 -0
  23. package/dist/axis-BzBkkC5X.cjs.map +1 -0
  24. package/dist/axis-C5obgdJt.js +240 -0
  25. package/dist/axis-C5obgdJt.js.map +1 -0
  26. package/dist/{bar-Da6dE_nI.cjs → bar-BrmfXugT.cjs} +77 -58
  27. package/dist/bar-BrmfXugT.cjs.map +1 -0
  28. package/dist/{bar-XwzM6Pb0.d.ts → bar-Bs_rPqgR.d.ts} +1 -1
  29. package/dist/{bar-BDLR4p9c.d.cts → bar-CEt8YRxf.d.cts} +2 -2
  30. package/dist/{bar-B5n2oq9-.js → bar-CgpC2EpX.js} +2 -2
  31. package/dist/{bar-B5n2oq9-.js.map → bar-CgpC2EpX.js.map} +1 -1
  32. package/dist/{bar-BNZ3GhIw.js → bar-D_KKd2fL.js} +75 -56
  33. package/dist/bar-D_KKd2fL.js.map +1 -0
  34. package/dist/{bar-LYIF8MEz.cjs → bar-wVykm1us.cjs} +2 -2
  35. package/dist/{bar-LYIF8MEz.cjs.map → bar-wVykm1us.cjs.map} +1 -1
  36. package/dist/bar.cjs +1 -1
  37. package/dist/bar.d.cts +1 -1
  38. package/dist/bar.d.ts +1 -1
  39. package/dist/bar.js +1 -1
  40. package/dist/calendar-B7843sQu.d.cts +106 -0
  41. package/dist/calendar-BG_q_NC_.cjs +507 -0
  42. package/dist/calendar-BG_q_NC_.cjs.map +1 -0
  43. package/dist/calendar-CF3gfDQk.js +502 -0
  44. package/dist/calendar-CF3gfDQk.js.map +1 -0
  45. package/dist/calendar-D10_ki1S.d.ts +106 -0
  46. package/dist/calendar.cjs +3 -0
  47. package/dist/calendar.d.cts +3 -0
  48. package/dist/calendar.d.ts +3 -0
  49. package/dist/calendar.js +1 -0
  50. package/dist/{candlestick-BHQkQfxH.js → candlestick-B1onjo1o.js} +17 -14
  51. package/dist/candlestick-B1onjo1o.js.map +1 -0
  52. package/dist/{candlestick-Dq7qp-F0.d.cts → candlestick-B7YXUVVh.d.cts} +4 -3
  53. package/dist/{candlestick-CYCQXgky.cjs → candlestick-BwrFKak_.cjs} +17 -14
  54. package/dist/candlestick-BwrFKak_.cjs.map +1 -0
  55. package/dist/{candlestick-D0xKkdqd.d.ts → candlestick-XpqJvarq.d.ts} +4 -3
  56. package/dist/candlestick.cjs +3 -3
  57. package/dist/candlestick.d.cts +1 -1
  58. package/dist/candlestick.d.ts +1 -1
  59. package/dist/candlestick.js +3 -3
  60. package/dist/{cartesian-DV02PsBe.cjs → cartesian-B9CrasFJ.cjs} +190 -310
  61. package/dist/cartesian-B9CrasFJ.cjs.map +1 -0
  62. package/dist/{cartesian-CI2x6N7N.js → cartesian-COglz544.js} +161 -251
  63. package/dist/cartesian-COglz544.js.map +1 -0
  64. package/dist/{chart-DWn9v6qw.js → chart-B97FBRCd.js} +114 -72
  65. package/dist/chart-B97FBRCd.js.map +1 -0
  66. package/dist/{chart-QilhWP8Z.d.ts → chart-CE9EVbfV.d.ts} +427 -112
  67. package/dist/{chart-kqFMEwDo.d.cts → chart-Dz4geQZy.d.cts} +427 -112
  68. package/dist/{chart-e2VqomCI.cjs → chart-GUmmjJ7S.cjs} +132 -78
  69. package/dist/chart-GUmmjJ7S.cjs.map +1 -0
  70. package/dist/{core-BKRQvPAT.js → core-7fgM3su0.js} +188 -73
  71. package/dist/core-7fgM3su0.js.map +1 -0
  72. package/dist/{core-DRUCk67j.d.ts → core-BUQzLsRJ.d.ts} +26 -10
  73. package/dist/{core-DIOC61up.cjs → core-BZTrsPxc.cjs} +200 -73
  74. package/dist/core-BZTrsPxc.cjs.map +1 -0
  75. package/dist/{core-PAX5ogLk.d.cts → core-Ck5uHcW8.d.cts} +45 -24
  76. package/dist/core.cjs +45 -31
  77. package/dist/core.d.cts +23 -18
  78. package/dist/core.d.ts +23 -18
  79. package/dist/core.js +28 -23
  80. package/dist/{dates-DurEr9WT.cjs → dates-0YNY49KQ.cjs} +2 -2
  81. package/dist/{dates-DurEr9WT.cjs.map → dates-0YNY49KQ.cjs.map} +1 -1
  82. package/dist/{dates-C2RzY3rE.js → dates-CKDRgpin.js} +2 -2
  83. package/dist/{dates-C2RzY3rE.js.map → dates-CKDRgpin.js.map} +1 -1
  84. package/dist/decimate.cjs +1 -1
  85. package/dist/decimate.js +1 -1
  86. package/dist/{dom-D_g13XWY.cjs → dom-C33zvtPo.cjs} +3 -7
  87. package/dist/dom-C33zvtPo.cjs.map +1 -0
  88. package/dist/{dom-CuceR8gt.js → dom-CTse6Rvd.js} +3 -7
  89. package/dist/dom-CTse6Rvd.js.map +1 -0
  90. package/dist/end-labels-B3oRvjxw.js +114 -0
  91. package/dist/end-labels-B3oRvjxw.js.map +1 -0
  92. package/dist/end-labels-CS-fnpp-.cjs +119 -0
  93. package/dist/end-labels-CS-fnpp-.cjs.map +1 -0
  94. package/dist/end-labels.cjs +11 -0
  95. package/dist/end-labels.cjs.map +1 -0
  96. package/dist/end-labels.d.cts +6 -0
  97. package/dist/end-labels.d.ts +6 -0
  98. package/dist/end-labels.js +11 -0
  99. package/dist/end-labels.js.map +1 -0
  100. package/dist/{export-chart-83UYH48t.js → export-chart-BOH_nfcH.js} +92 -15
  101. package/dist/export-chart-BOH_nfcH.js.map +1 -0
  102. package/dist/{export-chart-mYgEfK-L.cjs → export-chart-Be4T9J3m.cjs} +97 -14
  103. package/dist/export-chart-Be4T9J3m.cjs.map +1 -0
  104. package/dist/export.cjs +5 -3
  105. package/dist/export.cjs.map +1 -1
  106. package/dist/export.d.cts +4 -3
  107. package/dist/export.d.ts +4 -3
  108. package/dist/export.js +5 -4
  109. package/dist/export.js.map +1 -1
  110. package/dist/{fade-GGxcBdss.js → fade-CDrQjnDz.js} +56 -78
  111. package/dist/fade-CDrQjnDz.js.map +1 -0
  112. package/dist/{fade-DVTkhrFU.cjs → fade-CRqcKMWY.cjs} +56 -78
  113. package/dist/fade-CRqcKMWY.cjs.map +1 -0
  114. package/dist/{features-BMxkqCyS.js → features-B55rwpQC.js} +4 -2
  115. package/dist/features-B55rwpQC.js.map +1 -0
  116. package/dist/{features-DCXEvoya.cjs → features-DEDP5CEQ.cjs} +9 -1
  117. package/dist/features-DEDP5CEQ.cjs.map +1 -0
  118. package/dist/fit-BPyPRnsK.js +16 -0
  119. package/dist/fit-BPyPRnsK.js.map +1 -0
  120. package/dist/fit-D4MIIQQz.cjs +21 -0
  121. package/dist/fit-D4MIIQQz.cjs.map +1 -0
  122. package/dist/funnel-B9ridzNx.d.cts +50 -0
  123. package/dist/funnel-CFEEulw_.cjs +244 -0
  124. package/dist/funnel-CFEEulw_.cjs.map +1 -0
  125. package/dist/funnel-CYCv8cq2.js +239 -0
  126. package/dist/funnel-CYCv8cq2.js.map +1 -0
  127. package/dist/funnel-FogM8flk.d.ts +50 -0
  128. package/dist/funnel.cjs +3 -0
  129. package/dist/funnel.d.cts +3 -0
  130. package/dist/funnel.d.ts +3 -0
  131. package/dist/funnel.js +1 -0
  132. package/dist/{gauge-DXkjXNCD.cjs → gauge-6HfDcLMJ.cjs} +28 -28
  133. package/dist/gauge-6HfDcLMJ.cjs.map +1 -0
  134. package/dist/{gauge-BSist7My.d.cts → gauge-BScJ7U6O.d.cts} +2 -2
  135. package/dist/{gauge-0VJuAHWF.d.ts → gauge-D78oq1Lx.d.ts} +2 -2
  136. package/dist/{gauge-ts0kqN1-.js → gauge-DiTk5aWO.js} +28 -28
  137. package/dist/gauge-DiTk5aWO.js.map +1 -0
  138. package/dist/gauge.cjs +1 -1
  139. package/dist/gauge.d.cts +1 -1
  140. package/dist/gauge.d.ts +1 -1
  141. package/dist/gauge.js +1 -1
  142. package/dist/heat-Bsqq4zw9.js +38 -0
  143. package/dist/heat-Bsqq4zw9.js.map +1 -0
  144. package/dist/heat-DYsivvDq.cjs +49 -0
  145. package/dist/heat-DYsivvDq.cjs.map +1 -0
  146. package/dist/{heatmap-CXhlrLTl.cjs → heatmap-Dyzrd4Fd.cjs} +39 -37
  147. package/dist/heatmap-Dyzrd4Fd.cjs.map +1 -0
  148. package/dist/{heatmap-19BGJTKF.js → heatmap-J7fxG7MM.js} +35 -33
  149. package/dist/heatmap-J7fxG7MM.js.map +1 -0
  150. package/dist/{heatmap-Dp_oyEe0.d.cts → heatmap-Jvwo7iFW.d.cts} +2 -2
  151. package/dist/{heatmap-59lmClj9.d.ts → heatmap-mFCnP6aB.d.ts} +2 -2
  152. package/dist/heatmap.cjs +1 -1
  153. package/dist/heatmap.d.cts +1 -1
  154. package/dist/heatmap.d.ts +1 -1
  155. package/dist/heatmap.js +1 -1
  156. package/dist/{hydrate-OA6R2_Pn.js → hydrate-BB3MlR36.js} +2 -2
  157. package/dist/{hydrate-OA6R2_Pn.js.map → hydrate-BB3MlR36.js.map} +1 -1
  158. package/dist/{hydrate-CmN1k8Mo.cjs → hydrate-m0I5m6ue.cjs} +2 -2
  159. package/dist/{hydrate-CmN1k8Mo.cjs.map → hydrate-m0I5m6ue.cjs.map} +1 -1
  160. package/dist/hydrate.cjs +2 -2
  161. package/dist/hydrate.js +2 -2
  162. package/dist/index.cjs +69 -45
  163. package/dist/index.cjs.map +1 -1
  164. package/dist/index.d.cts +24 -19
  165. package/dist/index.d.ts +24 -19
  166. package/dist/index.js +51 -37
  167. package/dist/index.js.map +1 -1
  168. package/dist/interaction-DXYSjgnP.cjs +32 -0
  169. package/dist/interaction-DXYSjgnP.cjs.map +1 -0
  170. package/dist/interaction-En1KlwFO.js +21 -0
  171. package/dist/interaction-En1KlwFO.js.map +1 -0
  172. package/dist/layout-CYerDebD.d.cts +29 -0
  173. package/dist/layout-CYerDebD.d.ts +29 -0
  174. package/dist/{layout-JY2aR-yE.cjs → layout-Cfg9x1k2.cjs} +32 -1
  175. package/dist/layout-Cfg9x1k2.cjs.map +1 -0
  176. package/dist/{layout-DmrrLjwN.js → layout-DqAte3H8.js} +27 -2
  177. package/dist/layout-DqAte3H8.js.map +1 -0
  178. package/dist/{line-DO66LtwH.js → line-CXH0L10d.js} +84 -37
  179. package/dist/line-CXH0L10d.js.map +1 -0
  180. package/dist/{line-_rNdeKmS.d.cts → line-Cu9ctpbv.d.cts} +9 -3
  181. package/dist/{line-Dbt6KFRK.cjs → line-DHbYCQy4.cjs} +84 -37
  182. package/dist/line-DHbYCQy4.cjs.map +1 -0
  183. package/dist/{line-DtSh7HQU.d.ts → line-TkzA7wMK.d.ts} +8 -1
  184. package/dist/line.cjs +3 -3
  185. package/dist/line.d.cts +1 -1
  186. package/dist/line.d.ts +1 -1
  187. package/dist/line.js +3 -3
  188. package/dist/log.cjs +1 -1
  189. package/dist/log.js +1 -1
  190. package/dist/map-BirylCmT.d.cts +156 -0
  191. package/dist/map-CYp6x-uS.js +784 -0
  192. package/dist/map-CYp6x-uS.js.map +1 -0
  193. package/dist/map-ChwSgooH.cjs +795 -0
  194. package/dist/map-ChwSgooH.cjs.map +1 -0
  195. package/dist/map-DNqog2Xs.d.ts +156 -0
  196. package/dist/map.cjs +4 -0
  197. package/dist/map.d.cts +3 -0
  198. package/dist/map.d.ts +3 -0
  199. package/dist/map.js +1 -0
  200. package/dist/maps/world.cjs +875 -0
  201. package/dist/maps/world.cjs.map +1 -0
  202. package/dist/maps/world.d.cts +2 -0
  203. package/dist/maps/world.d.ts +2 -0
  204. package/dist/maps/world.js +874 -0
  205. package/dist/maps/world.js.map +1 -0
  206. package/dist/{morph-9_LJL0ra.cjs → morph-3I1Nf_tR.cjs} +2 -2
  207. package/dist/{morph-9_LJL0ra.cjs.map → morph-3I1Nf_tR.cjs.map} +1 -1
  208. package/dist/{morph-DnRxuwR-.js → morph-GfBab-b3.js} +2 -2
  209. package/dist/{morph-DnRxuwR-.js.map → morph-GfBab-b3.js.map} +1 -1
  210. package/dist/morph.cjs +2 -2
  211. package/dist/morph.js +2 -2
  212. package/dist/others-CuNdpvjd.d.cts +31 -0
  213. package/dist/{others-J7NCAMA0.js → others-DBIGE6jr.js} +11 -3
  214. package/dist/others-DBIGE6jr.js.map +1 -0
  215. package/dist/others-DBO4Kjwl.d.ts +29 -0
  216. package/dist/{others-DWdK7vKp.cjs → others-WfjCsjqT.cjs} +14 -6
  217. package/dist/others-WfjCsjqT.cjs.map +1 -0
  218. package/dist/{parliament-Cru4IcuM.js → parliament-BKN6ikBJ.js} +30 -29
  219. package/dist/parliament-BKN6ikBJ.js.map +1 -0
  220. package/dist/{parliament-CLCI7tUO.d.ts → parliament-CHdf13XU.d.ts} +2 -2
  221. package/dist/{parliament-CgsVnWEe.d.cts → parliament-CsYgh4N2.d.cts} +2 -2
  222. package/dist/{parliament-x5hcFaQ3.cjs → parliament-DhxAaIZ3.cjs} +30 -29
  223. package/dist/parliament-DhxAaIZ3.cjs.map +1 -0
  224. package/dist/parliament.cjs +1 -1
  225. package/dist/parliament.d.cts +1 -1
  226. package/dist/parliament.d.ts +1 -1
  227. package/dist/parliament.js +1 -1
  228. package/dist/{patterns-D3-wQagb.cjs → patterns-BPN1c9qe.cjs} +2 -2
  229. package/dist/{patterns-D3-wQagb.cjs.map → patterns-BPN1c9qe.cjs.map} +1 -1
  230. package/dist/{patterns-CufKZYhm.js → patterns-CVrLrJXg.js} +2 -2
  231. package/dist/{patterns-CufKZYhm.js.map → patterns-CVrLrJXg.js.map} +1 -1
  232. package/dist/patterns.cjs +2 -2
  233. package/dist/patterns.d.cts +1 -1
  234. package/dist/patterns.d.ts +1 -1
  235. package/dist/patterns.js +2 -2
  236. package/dist/{percentage-bar-ybNS3goo.cjs → percentage-bar-BChkTRoz.cjs} +37 -35
  237. package/dist/percentage-bar-BChkTRoz.cjs.map +1 -0
  238. package/dist/{percentage-bar-nhTeakD_.d.ts → percentage-bar-CSAbzDOn.d.ts} +11 -15
  239. package/dist/{percentage-bar-B6tNOqNn.js → percentage-bar-CaInxrL8.js} +37 -35
  240. package/dist/percentage-bar-CaInxrL8.js.map +1 -0
  241. package/dist/{percentage-bar-tepMr7Hd.d.cts → percentage-bar-UZHCRvlK.d.cts} +11 -15
  242. package/dist/percentage-bar.cjs +1 -1
  243. package/dist/percentage-bar.d.cts +1 -1
  244. package/dist/percentage-bar.d.ts +1 -1
  245. package/dist/percentage-bar.js +1 -1
  246. package/dist/{pie-BXg2gNpb.d.cts → pie-AFedsDcF.d.cts} +17 -14
  247. package/dist/{pie-CVsc-6qD.js → pie-Ch6Bx0ih.js} +68 -52
  248. package/dist/pie-Ch6Bx0ih.js.map +1 -0
  249. package/dist/{pie-BpjvSPnz.cjs → pie-Cll1OrVZ.cjs} +68 -52
  250. package/dist/pie-Cll1OrVZ.cjs.map +1 -0
  251. package/dist/{pie-CFptILSm.d.ts → pie-Cn2H3pz8.d.ts} +17 -14
  252. package/dist/pie.cjs +1 -1
  253. package/dist/pie.d.cts +1 -1
  254. package/dist/pie.d.ts +1 -1
  255. package/dist/pie.js +1 -1
  256. package/dist/{point-shapes--_gmdTyK.cjs → point-shapes-BRawRM78.cjs} +23 -22
  257. package/dist/point-shapes-BRawRM78.cjs.map +1 -0
  258. package/dist/{point-shapes-DD2Ektzm.js → point-shapes-DI6GhcI7.js} +18 -23
  259. package/dist/point-shapes-DI6GhcI7.js.map +1 -0
  260. package/dist/point-shapes.cjs +6 -4
  261. package/dist/point-shapes.cjs.map +1 -1
  262. package/dist/point-shapes.d.cts +2 -2
  263. package/dist/point-shapes.d.ts +2 -2
  264. package/dist/point-shapes.js +7 -5
  265. package/dist/point-shapes.js.map +1 -1
  266. package/dist/{radar-BR-mumDd.js → radar-Bg-IiIWB.js} +21 -22
  267. package/dist/radar-Bg-IiIWB.js.map +1 -0
  268. package/dist/{radar-BC9Skgpj.d.ts → radar-DEer2jjd.d.ts} +2 -2
  269. package/dist/{radar-D1-lItDy.d.cts → radar-DxmjXhMc.d.cts} +2 -2
  270. package/dist/{radar-HPDrIdzc.cjs → radar-wDyX17S3.cjs} +22 -23
  271. package/dist/radar-wDyX17S3.cjs.map +1 -0
  272. package/dist/radar.cjs +1 -1
  273. package/dist/radar.d.cts +1 -1
  274. package/dist/radar.d.ts +1 -1
  275. package/dist/radar.js +1 -1
  276. package/dist/range-bar-BnKjJP89.cjs +348 -0
  277. package/dist/range-bar-BnKjJP89.cjs.map +1 -0
  278. package/dist/range-bar-C4cRaaQE.d.ts +123 -0
  279. package/dist/range-bar-D32dIQOY.d.cts +123 -0
  280. package/dist/range-bar-Dx6ce0J1.js +343 -0
  281. package/dist/range-bar-Dx6ce0J1.js.map +1 -0
  282. package/dist/range-bar.cjs +3 -0
  283. package/dist/range-bar.d.cts +3 -0
  284. package/dist/range-bar.d.ts +3 -0
  285. package/dist/range-bar.js +1 -0
  286. package/dist/{rect-DSVmUZrD.js → rect-CZTNvMlf.js} +2 -2
  287. package/dist/{rect-DSVmUZrD.js.map → rect-CZTNvMlf.js.map} +1 -1
  288. package/dist/{rect-D6VhynBM.cjs → rect-DPr9QRxl.cjs} +2 -2
  289. package/dist/{rect-D6VhynBM.cjs.map → rect-DPr9QRxl.cjs.map} +1 -1
  290. package/dist/{sankey-fCoo1cpz.cjs → sankey-0CSp_Er9.cjs} +72 -71
  291. package/dist/sankey-0CSp_Er9.cjs.map +1 -0
  292. package/dist/{sankey-Dk7jUt8x.d.cts → sankey-D-8ATwBT.d.cts} +2 -2
  293. package/dist/{sankey-D6JeZfK5.js → sankey-Dp4CuLVe.js} +72 -71
  294. package/dist/sankey-Dp4CuLVe.js.map +1 -0
  295. package/dist/{sankey-D_v7KxnJ.d.ts → sankey-DpYJsOI4.d.ts} +2 -2
  296. package/dist/sankey.cjs +1 -1
  297. package/dist/sankey.d.cts +1 -1
  298. package/dist/sankey.d.ts +1 -1
  299. package/dist/sankey.js +1 -1
  300. package/dist/{scatter-C0TWjFpW.js → scatter-0Z7K_YUz.js} +94 -46
  301. package/dist/scatter-0Z7K_YUz.js.map +1 -0
  302. package/dist/{scatter-CXEsioOJ.d.ts → scatter-BAL5K9_4.d.ts} +28 -9
  303. package/dist/{scatter-DZeEIfyo.d.cts → scatter-BUGbnRzM.d.cts} +28 -9
  304. package/dist/{scatter-DVqB_fP9.cjs → scatter-CZ8do3Up.cjs} +95 -47
  305. package/dist/scatter-CZ8do3Up.cjs.map +1 -0
  306. package/dist/scatter.cjs +1 -1
  307. package/dist/scatter.d.cts +2 -2
  308. package/dist/scatter.d.ts +2 -2
  309. package/dist/scatter.js +1 -1
  310. package/dist/slice-labels-1TBq7p3q.d.cts +28 -0
  311. package/dist/slice-labels-C9ucsBVW.js +88 -0
  312. package/dist/slice-labels-C9ucsBVW.js.map +1 -0
  313. package/dist/slice-labels-CbFiy46l.cjs +93 -0
  314. package/dist/slice-labels-CbFiy46l.cjs.map +1 -0
  315. package/dist/slice-labels-Cm5CyV7B.d.ts +28 -0
  316. package/dist/slice-labels.cjs +11 -0
  317. package/dist/slice-labels.cjs.map +1 -0
  318. package/dist/slice-labels.d.cts +6 -0
  319. package/dist/slice-labels.d.ts +6 -0
  320. package/dist/slice-labels.js +11 -0
  321. package/dist/slice-labels.js.map +1 -0
  322. package/dist/{sparkline-cbvRkWqS.d.ts → sparkline-CtoBJe-a.d.ts} +2 -2
  323. package/dist/{sparkline-B39NA0Mi.cjs → sparkline-DjR-V6BI.cjs} +13 -15
  324. package/dist/sparkline-DjR-V6BI.cjs.map +1 -0
  325. package/dist/{sparkline-DAP6jtzw.d.cts → sparkline-DwHJfeZz.d.cts} +2 -2
  326. package/dist/{sparkline-XO_TqCNP.js → sparkline-_dxwtdli.js} +13 -15
  327. package/dist/sparkline-_dxwtdli.js.map +1 -0
  328. package/dist/sparkline.cjs +1 -1
  329. package/dist/sparkline.d.cts +1 -1
  330. package/dist/sparkline.d.ts +1 -1
  331. package/dist/sparkline.js +1 -1
  332. package/dist/{stack-Dagxq7l2.d.cts → stack-CcmyALx0.d.cts} +1 -1
  333. package/dist/{stack-2H2Gfs1Q.js → stack-CyVlS7Fr.js} +2 -2
  334. package/dist/{stack-2H2Gfs1Q.js.map → stack-CyVlS7Fr.js.map} +1 -1
  335. package/dist/{stack-BgPzoQmv.cjs → stack-DBhmYNat.cjs} +2 -2
  336. package/dist/{stack-BgPzoQmv.cjs.map → stack-DBhmYNat.cjs.map} +1 -1
  337. package/dist/style.css +1 -1
  338. package/dist/{time-axis-BjZ1bYTK.cjs → time-axis-CVKjQKSS.cjs} +4 -3
  339. package/dist/{time-axis-BjZ1bYTK.cjs.map → time-axis-CVKjQKSS.cjs.map} +1 -1
  340. package/dist/{time-axis-FLONo54E.js → time-axis-CkmbAw4Z.js} +3 -2
  341. package/dist/{time-axis-FLONo54E.js.map → time-axis-CkmbAw4Z.js.map} +1 -1
  342. package/dist/time.cjs +3 -3
  343. package/dist/time.js +3 -3
  344. package/dist/{treemap-BAkhmVQc.d.cts → treemap-C2maqerU.d.cts} +37 -5
  345. package/dist/{treemap-BNpxFBao.d.ts → treemap-D_zbubo3.d.ts} +37 -5
  346. package/dist/{treemap-BWpEUlDh.cjs → treemap-PulGXZv0.cjs} +58 -33
  347. package/dist/treemap-PulGXZv0.cjs.map +1 -0
  348. package/dist/{treemap-CQdavQ9u.js → treemap-lbYxb-7h.js} +57 -32
  349. package/dist/treemap-lbYxb-7h.js.map +1 -0
  350. package/dist/treemap.cjs +1 -1
  351. package/dist/treemap.d.cts +1 -1
  352. package/dist/treemap.d.ts +1 -1
  353. package/dist/treemap.js +1 -1
  354. package/dist/{value-labels-BBuSi4i0.js → value-labels-B0VeheyE.js} +29 -8
  355. package/dist/value-labels-B0VeheyE.js.map +1 -0
  356. package/dist/{value-labels-BV9keAuL.cjs → value-labels-Dcyk3GIY.cjs} +29 -8
  357. package/dist/value-labels-Dcyk3GIY.cjs.map +1 -0
  358. package/dist/value-labels.cjs +2 -2
  359. package/dist/value-labels.d.cts +1 -1
  360. package/dist/value-labels.d.ts +1 -1
  361. package/dist/value-labels.js +2 -2
  362. package/dist/zoom.cjs +810 -0
  363. package/dist/zoom.cjs.map +1 -0
  364. package/dist/zoom.d.cts +34 -0
  365. package/dist/zoom.d.ts +34 -0
  366. package/dist/zoom.js +806 -0
  367. package/dist/zoom.js.map +1 -0
  368. package/package.json +120 -235
  369. package/dist/annotations-D0YQ0IoA.js.map +0 -1
  370. package/dist/annotations-DdRdeBUB.cjs.map +0 -1
  371. package/dist/area-0-L1bG9B.js.map +0 -1
  372. package/dist/area-4eRs3c0K.cjs.map +0 -1
  373. package/dist/bar-BNZ3GhIw.js.map +0 -1
  374. package/dist/bar-Da6dE_nI.cjs.map +0 -1
  375. package/dist/candlestick-BHQkQfxH.js.map +0 -1
  376. package/dist/candlestick-CYCQXgky.cjs.map +0 -1
  377. package/dist/cartesian-CI2x6N7N.js.map +0 -1
  378. package/dist/cartesian-DV02PsBe.cjs.map +0 -1
  379. package/dist/chart-DWn9v6qw.js.map +0 -1
  380. package/dist/chart-e2VqomCI.cjs.map +0 -1
  381. package/dist/core-BKRQvPAT.js.map +0 -1
  382. package/dist/core-DIOC61up.cjs.map +0 -1
  383. package/dist/dom-CuceR8gt.js.map +0 -1
  384. package/dist/dom-D_g13XWY.cjs.map +0 -1
  385. package/dist/export-chart-83UYH48t.js.map +0 -1
  386. package/dist/export-chart-mYgEfK-L.cjs.map +0 -1
  387. package/dist/fade-DVTkhrFU.cjs.map +0 -1
  388. package/dist/fade-GGxcBdss.js.map +0 -1
  389. package/dist/features-BMxkqCyS.js.map +0 -1
  390. package/dist/features-DCXEvoya.cjs.map +0 -1
  391. package/dist/gauge-DXkjXNCD.cjs.map +0 -1
  392. package/dist/gauge-ts0kqN1-.js.map +0 -1
  393. package/dist/heatmap-19BGJTKF.js.map +0 -1
  394. package/dist/heatmap-CXhlrLTl.cjs.map +0 -1
  395. package/dist/layout-DmrrLjwN.js.map +0 -1
  396. package/dist/layout-JY2aR-yE.cjs.map +0 -1
  397. package/dist/line-DO66LtwH.js.map +0 -1
  398. package/dist/line-Dbt6KFRK.cjs.map +0 -1
  399. package/dist/others-DWdK7vKp.cjs.map +0 -1
  400. package/dist/others-J7NCAMA0.js.map +0 -1
  401. package/dist/parliament-Cru4IcuM.js.map +0 -1
  402. package/dist/parliament-x5hcFaQ3.cjs.map +0 -1
  403. package/dist/percentage-bar-B6tNOqNn.js.map +0 -1
  404. package/dist/percentage-bar-ybNS3goo.cjs.map +0 -1
  405. package/dist/pie-BpjvSPnz.cjs.map +0 -1
  406. package/dist/pie-CVsc-6qD.js.map +0 -1
  407. package/dist/point-shapes--_gmdTyK.cjs.map +0 -1
  408. package/dist/point-shapes-DD2Ektzm.js.map +0 -1
  409. package/dist/radar-BR-mumDd.js.map +0 -1
  410. package/dist/radar-HPDrIdzc.cjs.map +0 -1
  411. package/dist/sankey-D6JeZfK5.js.map +0 -1
  412. package/dist/sankey-fCoo1cpz.cjs.map +0 -1
  413. package/dist/scatter-C0TWjFpW.js.map +0 -1
  414. package/dist/scatter-DVqB_fP9.cjs.map +0 -1
  415. package/dist/sparkline-B39NA0Mi.cjs.map +0 -1
  416. package/dist/sparkline-XO_TqCNP.js.map +0 -1
  417. package/dist/treemap-BWpEUlDh.cjs.map +0 -1
  418. package/dist/treemap-CQdavQ9u.js.map +0 -1
  419. package/dist/value-labels-BBuSi4i0.js.map +0 -1
  420. package/dist/value-labels-BV9keAuL.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-ChwSgooH.cjs","names":["finite","toChartPoint","isRecord","finite","text","round","formatNumber","heatScale","insets","LINE_HEIGHT","innerRect","EMPTY","h","estimateTextWidth","list","records"],"sources":["../src/charts/map-view.ts","../src/plugins/map.ts","../src/charts/map.ts"],"sourcesContent":["import { finite } from './clean.ts'\n\n/** The part of a map in sight. */\nexport interface MapView {\n /** The top left corner, in the coordinates of the map file. */\n x: number\n y: number\n /** How many times the map is magnified; `1` shows all of it. */\n scale: number\n}\n\n/** Where the last render put the map, for the zoom to work from. */\nexport interface MapLayout {\n /** The room of the map in chart pixels. */\n x: number\n y: number\n width: number\n height: number\n /** Pixels per unit of the map when all of it is in sight. */\n k: number\n /** Size of the map file. */\n mapWidth: number\n mapHeight: number\n /** The most the map can be magnified. */\n max: number\n}\n\n/**\n * A view kept inside the zoom range and the map itself, so the map can never\n * be dragged out of sight; along a side where all of the map fits, it is centered.\n */\nexport function fitView(view: Partial<MapView> | undefined, layout: MapLayout): MapView {\n const scale = Math.min(layout.max, Math.max(1, finite(view?.scale) ?? 1))\n const unit = layout.k * scale\n const fit = (at: number | null, size: number, room: number): number => {\n const span = room / unit\n return span >= size ? (size - span) / 2 : Math.min(size - span, Math.max(0, at ?? 0))\n }\n return unit > 0\n ? {\n x: fit(finite(view?.x), layout.mapWidth, layout.width),\n y: fit(finite(view?.y), layout.mapHeight, layout.height),\n scale,\n }\n : { x: 0, y: 0, scale }\n}\n","import type { MapHit, MapInteraction, MapOptions } from '../charts/map.ts'\nimport { fitView, type MapView } from '../charts/map-view.ts'\nimport { toChartPoint } from '../interaction.ts'\nimport type { ChartPlugin } from '../plugin.ts'\n\ntype Point = [number, number]\n\n/** One step of a button, a key or a double click. */\nconst ZOOM_STEP = 2\nconst ZOOM_DURATION = 200\n/**\n * How much one unit of wheel movement magnifies. A pinch on a trackpad comes\n * as a wheel event with `ctrlKey` and much smaller numbers.\n */\nconst WHEEL_SPEED = 0.002\nconst WHEEL_SPEED_PINCH = 0.01\n/** How far a pointer has to move, in pixels, before a press becomes a drag and stops being a click. */\nconst DRAG_THRESHOLD = 4\nconst SVG_NS = 'http://www.w3.org/2000/svg'\nconst ICONS = ['M12 5v14M5 12h14', 'M5 12h14']\n\n/**\n * What makes a map more than a picture: with `zoom` it is magnified with its\n * buttons, the wheel, a double click, a pinch or the `+`, `-` and `0` keys,\n * and dragged around; with `select` a click (or Enter) selects a region. The\n * `map` chart type brings it along, so it needs no import of its own; it\n * keeps no state, the view and the selection live in the options.\n */\nexport function mapInteraction(): ChartPlugin {\n return {\n name: 'map',\n install(chart) {\n const host = chart.element\n if (typeof host.addEventListener !== 'function') return {}\n const doc = host.ownerDocument\n const win = doc.defaultView\n const options = () => chart.config as unknown as MapOptions & { animate?: boolean }\n const isMap = () => chart.config.type.name === 'map'\n const zoomOn = () => isMap() && !!options().zoom\n const layout = () => (chart.interaction as Partial<MapInteraction> | undefined)?.map\n const svg = () => host.querySelector(':scope > svg.tc-chart')\n /** Whether an event happened on the drawing, not on a control over it. */\n const onMap = (event: Event) =>\n (event.target as Element | null)?.closest?.('svg.tc-chart') === svg() && !!svg()\n\n let frame = 0\n /** Pointers that are down on the map, with where each was last seen. */\n const pointers = new Map<number, Point>()\n /** Whether the pointers that are down have moved the map: the click that ends a drag selects nothing. */\n let dragged = false\n let controls: HTMLElement | undefined\n const addedClass = !host.classList.contains('tc-container')\n\n const stop = () => win?.cancelAnimationFrame(frame)\n const current = (): MapView | undefined => {\n const l = layout()\n return l && fitView(options().view, l)\n }\n const setView = (view: MapView) => {\n const l = layout()\n if (l) chart.update({ view: fitView(view, l) } as never)\n }\n\n /** A point of the screen in chart pixels. */\n const toChart = (x: number, y: number): Point => {\n const el = svg()\n const { width, height } = chart.size\n const p = el ? toChartPoint(el, x, y, width, height) : { x: 0, y: 0 }\n return [p.x, p.y]\n }\n /** A point of the screen in the coordinates of the map. */\n const toMapPoint = (x: number, y: number): Point | null => {\n const l = layout()\n const view = current()\n if (!l || !view) return null\n const unit = l.k * view.scale\n const [cx, cy] = toChart(x, y)\n return [view.x + (cx - l.x) / unit, view.y + (cy - l.y) / unit]\n }\n\n /**\n * Moves to a view over a few frames. The corner and the size of the\n * view change at the same pace, which keeps the point being zoomed at in place.\n */\n const animateTo = (to: MapView) => {\n stop()\n const l = layout()\n const from = current()\n if (!l || !from) return\n const target = fitView(to, l)\n const still =\n options().animate === false ||\n !win?.requestAnimationFrame ||\n win.matchMedia?.('(prefers-reduced-motion: reduce)').matches\n if (still) {\n setView(target)\n return\n }\n const start = performance.now()\n const step = (now: number) => {\n const t = Math.min((now - start) / ZOOM_DURATION, 1)\n const eased = 1 - (1 - t) ** 3\n const at = (a: number, b: number) => a + (b - a) * eased\n setView({\n x: at(from.x, target.x),\n y: at(from.y, target.y),\n scale: 1 / at(1 / from.scale, 1 / target.scale),\n })\n if (t < 1) frame = win.requestAnimationFrame(step)\n }\n frame = win.requestAnimationFrame(step)\n }\n\n /**\n * Magnifies by a factor around a point of the map, which stays where it\n * is on the screen. Without a point, around the middle of the view.\n */\n const zoomBy = (factor: number, anchor: Point | null, animate = false) => {\n const l = layout()\n const view = current()\n if (!l || !view || !(l.k > 0)) return\n const next = Math.min(l.max, Math.max(1, view.scale * factor))\n const unit = l.k * view.scale\n const [ax, ay] = anchor ?? [view.x + l.width / unit / 2, view.y + l.height / unit / 2]\n const target = {\n x: ax - ((ax - view.x) * view.scale) / next,\n y: ay - ((ay - view.y) * view.scale) / next,\n scale: next,\n }\n if (animate) animateTo(target)\n else {\n stop()\n setView(target)\n }\n }\n\n /** Selects the region of a hit, or takes it out when it is selected. */\n const select = (hit: MapHit | null) => {\n const o = options()\n const code = hit?.region\n if (!isMap() || !o.select || !code) return\n const selected = [...(o.selected ?? [])]\n const rest = selected.filter((other) => other !== code)\n const next =\n rest.length < selected.length\n ? rest\n : o.select === 'multiple'\n ? [...selected, code]\n : [code]\n chart.update({ selected: next } as never)\n o.onSelect?.(next, code)\n }\n\n const onPointerEnd = (event: PointerEvent) => {\n pointers.delete(event.pointerId)\n if (pointers.size === 0) {\n doc.removeEventListener('pointerup', onPointerEnd)\n doc.removeEventListener('pointercancel', onPointerEnd)\n // The cursor of a drag goes with the next render.\n if (dragged) chart.update({})\n }\n }\n const onPointerDown = (event: PointerEvent) => {\n if (!zoomOn() || !onMap(event) || (event.pointerType === 'mouse' && event.button !== 0))\n return\n if (pointers.size === 0) dragged = false\n pointers.set(event.pointerId, [event.clientX, event.clientY])\n stop()\n doc.addEventListener('pointerup', onPointerEnd)\n doc.addEventListener('pointercancel', onPointerEnd)\n }\n /** One pointer drags the map, two pinch it. */\n const onPointerMove = (event: PointerEvent) => {\n const previous = pointers.get(event.pointerId)\n const view = current()\n const l = layout()\n if (!previous || !view || !l) return\n const now: Point = [event.clientX, event.clientY]\n // A press that barely moves is a click, not a drag: until the pointer\n // has moved far enough the map stays put, and the click reaches the region.\n if (!dragged) {\n if (\n pointers.size === 1 &&\n Math.hypot(now[0] - previous[0], now[1] - previous[1]) < DRAG_THRESHOLD\n )\n return\n dragged = true\n // The map keeps getting the moves of this pointer when it leaves the\n // map. Capturing throws for a pointer the browser does not know,\n // which is what an event made in a script has.\n try {\n svg()?.setPointerCapture(event.pointerId)\n } catch {\n // The drag still works while the pointer stays over the map.\n }\n }\n // The highlight and the tooltip stay out of a drag.\n event.stopPropagation()\n chart.clearHighlight()\n pointers.set(event.pointerId, now)\n if (pointers.size === 1) {\n const unit = l.k * view.scale\n const [x0, y0] = toChart(previous[0], previous[1])\n const [x1, y1] = toChart(now[0], now[1])\n setView({ x: view.x - (x1 - x0) / unit, y: view.y - (y1 - y0) / unit, scale: view.scale })\n return\n }\n const other = [...pointers].find(([id]) => id !== event.pointerId)?.[1]\n if (!other) return\n const before = Math.hypot(previous[0] - other[0], previous[1] - other[1])\n const after = Math.hypot(now[0] - other[0], now[1] - other[1])\n if (before > 0 && after > 0)\n zoomBy(after / before, toMapPoint((now[0] + other[0]) / 2, (now[1] + other[1]) / 2))\n }\n const onWheel = (event: WheelEvent) => {\n const { zoom } = options()\n if (!zoomOn() || (typeof zoom === 'object' && zoom.wheel === false) || !onMap(event)) return\n // The page must not scroll while the wheel zooms the map.\n event.preventDefault()\n zoomBy(\n Math.exp(-event.deltaY * (event.ctrlKey ? WHEEL_SPEED_PINCH : WHEEL_SPEED)),\n toMapPoint(event.clientX, event.clientY),\n )\n }\n const onDoubleClick = (event: MouseEvent) => {\n if (zoomOn() && onMap(event))\n zoomBy(ZOOM_STEP, toMapPoint(event.clientX, event.clientY), true)\n }\n /** The click that ends a drag is not a click on the map. */\n const onClickCapture = (event: MouseEvent) => {\n if (dragged) event.stopPropagation()\n dragged = false\n }\n const onKey = (event: KeyboardEvent) => {\n if (event.target !== svg() || !isMap()) return\n const { key } = event\n if (zoomOn() && (key === '+' || key === '=')) zoomBy(ZOOM_STEP, null, true)\n else if (zoomOn() && key === '-') zoomBy(1 / ZOOM_STEP, null, true)\n else if (zoomOn() && key === '0') animateTo({ x: 0, y: 0, scale: 1 })\n else if (options().select && (key === 'Enter' || key === ' ') && chart.active)\n select(chart.active)\n else return\n event.preventDefault()\n }\n const onControl = (event: MouseEvent) => {\n const button = (event.target as Element).closest('button')\n if (button) zoomBy(button.value === 'in' ? ZOOM_STEP : 1 / ZOOM_STEP, null, true)\n }\n\n // Moves are taken on their way down, so a drag never reaches the highlight.\n host.addEventListener('pointermove', onPointerMove, true)\n host.addEventListener('click', onClickCapture, true)\n host.addEventListener('pointerdown', onPointerDown)\n // (Not passive: the wheel must be kept from scrolling the page.)\n host.addEventListener('wheel', onWheel, { passive: false })\n host.addEventListener('dblclick', onDoubleClick)\n host.addEventListener('keydown', onKey)\n const off = chart.on('click', ({ hit }) => select(hit))\n\n /** The zoom buttons, laid over a corner of the map. */\n const renderControls = () => {\n if (!zoomOn()) {\n controls?.remove()\n controls = undefined\n return\n }\n if (!controls) {\n controls = doc.createElement('div')\n controls.className = 'tc-map-zoom'\n for (const [i, d] of ICONS.entries()) {\n const button = doc.createElement('button')\n button.type = 'button'\n button.className = 'tc-download-toggle'\n button.value = i ? 'out' : 'in'\n const icon = doc.createElementNS(SVG_NS, 'svg')\n icon.setAttribute('viewBox', '0 0 24 24')\n icon.setAttribute('width', '16')\n icon.setAttribute('height', '16')\n icon.setAttribute('aria-hidden', 'true')\n const path = doc.createElementNS(SVG_NS, 'path')\n path.setAttribute('d', d)\n icon.append(path)\n button.append(icon)\n controls.append(button)\n }\n controls.addEventListener('click', onControl)\n host.classList.add('tc-container')\n }\n if (!controls.isConnected) host.append(controls)\n const { zoom } = options()\n const labels = typeof zoom === 'object' ? zoom.labels : undefined\n const view = current()\n const max = layout()?.max ?? 1\n const [zoomIn, zoomOut] = controls.querySelectorAll('button')\n if (zoomIn && zoomOut && view) {\n zoomIn.setAttribute('aria-label', labels?.in ?? 'Zoom in')\n zoomOut.setAttribute('aria-label', labels?.out ?? 'Zoom out')\n zoomIn.disabled = view.scale >= max\n zoomOut.disabled = view.scale <= 1\n }\n }\n\n return {\n // The stylesheet takes drags and pinches for a map that can be\n // magnified, so the page does not scroll or zoom under the finger.\n svgAttrs: () =>\n zoomOn() ? { 'data-zoom': dragged && pointers.size ? 'drag' : '' } : undefined,\n afterRender: renderControls,\n destroy() {\n stop()\n off()\n host.removeEventListener('pointermove', onPointerMove, true)\n host.removeEventListener('click', onClickCapture, true)\n host.removeEventListener('pointerdown', onPointerDown)\n host.removeEventListener('wheel', onWheel)\n host.removeEventListener('dblclick', onDoubleClick)\n host.removeEventListener('keydown', onKey)\n doc.removeEventListener('pointerup', onPointerEnd)\n doc.removeEventListener('pointercancel', onPointerEnd)\n controls?.remove()\n if (controls && addedClass) host.classList.remove('tc-container')\n },\n }\n },\n }\n}\n","import type { ChartType, DataTable, RenderContext, RenderResult, TableContext } from '../chart.ts'\nimport { formatNumber, type NumberFormat } from '../format.ts'\nimport type { Hit, Interaction } from '../interaction.ts'\nimport {\n estimateTextWidth,\n type InsetsInput,\n innerRect,\n insets,\n LINE_HEIGHT,\n round,\n} from '../layout.ts'\nimport { mapInteraction } from '../plugins/map.ts'\nimport { h, type VNode } from '../vnode.ts'\nimport { finite, isRecord, list, records, text } from './clean.ts'\nimport { EMPTY, heatScale } from './heat.ts'\nimport { fitView, type MapLayout, type MapView } from './map-view.ts'\n\nexport type { MapLayout, MapView }\n\n/** One region of a map (a country, a state …). */\nexport interface MapRegion {\n name: string\n /**\n * SVG path data in the coordinates of the map (`M`, `L`, `H`, `V` and `Z`,\n * absolute or relative; curves are drawn but not hit by the pointer).\n */\n path: string\n /** Too small for a shape at the scale of the map: `path` is a single point, drawn as a dot when it has a value. */\n point?: boolean\n}\n\n/** A map: shapes already projected into a `width` × `height` box, as the files in `@tabler/charts/maps/*` are. */\nexport interface MapData {\n width: number\n height: number\n /** How the shapes were projected, to place a marker by its coordinates. */\n projection?: { type: 'miller'; scale: number; translate: readonly number[] }\n /** Regions by their code, e.g. ISO 3166-1 alpha-2 for countries. */\n regions: Readonly<Record<string, MapRegion>>\n}\n\n/** A place on the map, by its coordinates. */\nexport interface MapMarker {\n /** Shown in the tooltip, and what a line refers to. */\n name?: string\n /** Latitude and longitude in degrees. */\n lat: number\n lng: number\n}\n\n/** A curve between two markers, by their names. */\nexport interface MapLine {\n from: string\n to: string\n}\n\nexport interface MapOptions {\n /** The map: a map file (`import { world } from '@tabler/charts/maps/world'`), or the name it was given with `addMap()`. */\n map: MapData | string\n /** A value per region code, e.g. `{ PL: 80, DE: 45 }`. Regions without one keep the empty shade. */\n data: Readonly<Record<string, number | null>>\n /** Value shown with the lightest shade (or the first color). Defaults to the smaller of `0` and the data minimum. */\n min?: number\n /** Value shown with the full color (or the last color). Defaults to the data maximum. */\n max?: number\n /**\n * A continuous scale through two or more colors (any CSS color, including\n * `var(--tc-…)`), from `min` to `max`, instead of one hue (`--tc-heat-color`).\n * Values that could inject CSS are ignored, as for series colors.\n */\n colors?: readonly string[]\n /** Value placed on the middle color of `colors` (e.g. `0` for changes). Defaults to halfway. */\n mid?: number\n /** Places drawn as dots over the map. */\n markers?: readonly MapMarker[]\n /** Dashed curves between markers. */\n lines?: readonly MapLine[]\n /** Radius of the markers and of the regions drawn as a dot, in pixels. Defaults to `4`. */\n markerRadius?: number\n /** Format of the values (tooltip, scale, table). */\n format?: NumberFormat\n /**\n * The bar below the map with the lowest and the highest value: `false`\n * hides it, an object names its ends instead of the values.\n */\n scale?: boolean | { low?: string; high?: string }\n /** Extra space around the map, in pixels. */\n padding?: InsetsInput\n /**\n * Let the map be magnified with its buttons, the wheel, a double click, a\n * pinch or the `+` and `-` keys, and dragged around. An object sets the\n * most it magnifies (`max`, `8` by default), turns the wheel off\n * (`wheel: false`) and names the buttons (`labels`).\n */\n zoom?: boolean | { max?: number; wheel?: boolean; labels?: { in?: string; out?: string } }\n /**\n * The part of the map in sight. Zooming and dragging write it; set it\n * yourself to start on a part of the map, leave it out for the whole map.\n */\n view?: Partial<MapView>\n /**\n * Let regions be selected with a click (or Enter on the region the\n * keyboard is on): one at a time, or any number of them. A click on a\n * selected region takes it out again.\n */\n select?: 'single' | 'multiple'\n /** Codes of the selected regions. Selecting writes it; `onSelect` hears of it. */\n selected?: readonly string[]\n /** Called when a click or a key changes the selection, with the codes now selected and the one that changed. */\n onSelect?: (selected: string[], code: string) => void\n}\n\n/** A hit of a map: what it is on. */\nexport interface MapHit extends Hit {\n /** Code of the region, for a hit on a region. */\n region?: string\n /** Name of the marker, for a hit on a marker. */\n marker?: string\n}\n\n/** The interaction of a map, with where the map was drawn. */\nexport interface MapInteraction extends Interaction {\n map: MapLayout\n}\n\n/** The selected regions of the options that are allowed: one when only one can be selected. */\nexport const selectedOf = (options: MapOptions): readonly string[] =>\n options.select === 'multiple'\n ? (options.selected ?? [])\n : options.select === 'single'\n ? (options.selected ?? []).slice(0, 1)\n : []\n\n/** Share of the full color at the minimum, so the lowest value still stands out from a region without one. */\nconst FLOOR = 0.1\nconst MARKER = 'var(--tc-map-marker-color,var(--tc-color-1))'\n/** Slices of the scale's bar: enough to read as one smooth gradient. */\nconst SCALE_STEPS = 24\nconst SCALE_STEP = 5\nconst SCALE_HEIGHT = 8\n/** How far a line bends away from the straight one, as a share of its length. */\nconst LINE_CURVE = 0.2\nconst RADIANS = Math.PI / 180\n\nconst maps: Record<string, MapData> = {}\n\n/** Register a map under a name, so `map: 'world'` finds it (configs from JSON, `<tabler-chart>`, the data API). */\nexport function addMap(name: string, data: MapData): void {\n maps[name] = data\n}\n\nconst isMap = (v: unknown): v is MapData =>\n isRecord(v) && isRecord(v.regions) && (finite(v.width) ?? 0) > 0 && (finite(v.height) ?? 0) > 0\n\n/** A region ready to draw and to hit: its rings as flat `x, y` lists in map coordinates. */\ninterface Shape {\n code: string\n name: string\n path: string\n point: boolean\n rings: number[][]\n /** Bounds of the shape: left, top, right, bottom. */\n box: [number, number, number, number]\n /** Middle of the largest ring (the mainland), where the keyboard's tooltip sits. */\n x: number\n y: number\n}\n\n/** Rings of path data made of moves and straight lines. */\nfunction parsePath(d: string): number[][] {\n const rings: number[][] = []\n let ring: number[] = []\n let x = 0\n let y = 0\n for (const [, command = '', args = ''] of d.matchAll(/([MLHVZ])([^MLHVZ]*)/gi)) {\n const n = (args.match(/-?(?:\\d+\\.?\\d*|\\.\\d+)(?:e[-+]?\\d+)?/gi) ?? []).map(Number)\n const relative = command >= 'a'\n const type = command.toUpperCase()\n if (type === 'Z') {\n if (ring.length) {\n x = ring[0] as number\n y = ring[1] as number\n }\n continue\n }\n const step = type === 'H' || type === 'V' ? 1 : 2\n for (let i = 0; i + step <= n.length; i += step) {\n const a = n[i] as number\n const b = n[i + 1] as number\n if (type === 'H') x = relative ? x + a : a\n else if (type === 'V') y = relative ? y + a : a\n else {\n x = relative ? x + a : a\n y = relative ? y + b : b\n }\n // A move starts a ring; the pairs after its first are lines.\n if (type === 'M' && i === 0) {\n ring = []\n rings.push(ring)\n }\n ring.push(x, y)\n }\n }\n return rings\n}\n\nconst parsed = new WeakMap<MapData, Map<string, Shape>>()\n\n/** The regions of a map, parsed once per map file. */\nfunction shapesOf(map: MapData): Map<string, Shape> {\n let shapes = parsed.get(map)\n if (shapes) return shapes\n shapes = new Map()\n for (const [code, region] of Object.entries(map.regions)) {\n if (!isRecord(region) || typeof region.path !== 'string') continue\n const rings = parsePath(region.path).filter((ring) => ring.every(Number.isFinite))\n const box: Shape['box'] = [\n Number.POSITIVE_INFINITY,\n Number.POSITIVE_INFINITY,\n Number.NEGATIVE_INFINITY,\n Number.NEGATIVE_INFINITY,\n ]\n let x = 0\n let y = 0\n let largest = -1\n for (const ring of rings) {\n let x0 = Number.POSITIVE_INFINITY\n let y0 = Number.POSITIVE_INFINITY\n let x1 = Number.NEGATIVE_INFINITY\n let y1 = Number.NEGATIVE_INFINITY\n for (let i = 0; i < ring.length; i += 2) {\n x0 = Math.min(x0, ring[i] as number)\n x1 = Math.max(x1, ring[i] as number)\n y0 = Math.min(y0, ring[i + 1] as number)\n y1 = Math.max(y1, ring[i + 1] as number)\n }\n box[0] = Math.min(box[0], x0)\n box[1] = Math.min(box[1], y0)\n box[2] = Math.max(box[2], x1)\n box[3] = Math.max(box[3], y1)\n const size = (x1 - x0) * (y1 - y0)\n if (size > largest) {\n largest = size\n x = (x0 + x1) / 2\n y = (y0 + y1) / 2\n }\n }\n if (largest < 0) continue\n shapes.set(code, {\n code,\n name: text(region.name) || code,\n path: region.path,\n point: region.point === true,\n rings,\n box,\n x,\n y,\n })\n }\n parsed.set(map, shapes)\n return shapes\n}\n\n/** Whether a point lies inside the rings (even-odd, so a hole is outside). */\nfunction inside(rings: readonly number[][], x: number, y: number): boolean {\n let hit = false\n for (const ring of rings) {\n for (let i = 0, j = ring.length - 2; i < ring.length; j = i, i += 2) {\n const xi = ring[i] as number\n const yi = ring[i + 1] as number\n const xj = ring[j] as number\n const yj = ring[j + 1] as number\n if (yi > y !== yj > y && x < ((xj - xi) * (y - yi)) / (yj - yi) + xi) hit = !hit\n }\n }\n return hit\n}\n\n/** Path of a circle, for the ring around a hovered dot. */\nconst circlePath = (x: number, y: number, r: number): string =>\n `M${round(x - r)} ${round(y)}a${r} ${r} 0 1 0 ${r * 2} 0a${r} ${r} 0 1 0 ${-r * 2} 0Z`\n\n/** What the pointer and the keyboard can land on. */\ninterface Entry {\n shape?: Shape\n marker?: { name: string; x: number; y: number }\n value: number | null\n}\n\nfunction renderMap(options: MapOptions, ctx: RenderContext): RenderResult {\n const { width, height, fontSize, locale } = ctx\n if (typeof options.map === 'string' && !maps[options.map]) {\n throw new Error(\n `[tabler-charts] Map \"${options.map}\" is not registered. Import it (e.g. from '@tabler/charts/maps/world') and call addMap('${options.map}', data).`,\n )\n }\n const map = typeof options.map === 'string' ? maps[options.map] : options.map\n if (!isMap(map)) return { content: null }\n const shapes = shapesOf(map)\n const data = options.data ?? {}\n const value = formatNumber(options.format, locale)\n const radius = Math.max(0, finite(options.markerRadius) ?? 4)\n\n // Regions with a value, in the order of the data (the order the keyboard walks).\n const entries: Entry[] = []\n const indexOf = new Map<Shape, number>()\n let dataMin = Number.POSITIVE_INFINITY\n let dataMax = Number.NEGATIVE_INFINITY\n for (const code of Object.keys(data)) {\n const shape = shapes.get(code)\n const v = finite(data[code])\n if (!shape || v === null) continue\n indexOf.set(shape, entries.length)\n entries.push({ shape, value: v })\n if (v < dataMin) dataMin = v\n if (v > dataMax) dataMax = v\n }\n const valued = entries.length\n\n // Color domain and the scale of colors.\n const lo = finite(options.min) ?? (valued ? Math.min(0, dataMin) : 0)\n const hi = finite(options.max) ?? (valued ? dataMax : 1)\n const stops = options.colors && options.colors.length >= 2 ? options.colors : undefined\n const mid = finite(options.mid)\n const { position, paint } = heatScale(lo, hi, mid, stops, FLOOR)\n\n // The map keeps its proportions, centered in the room above the scale.\n const pad = insets(options.padding, 0)\n const scale = options.scale !== false && valued > 0\n const scaleHeight = scale ? Math.ceil(fontSize * LINE_HEIGHT) + 8 : 0\n const area = innerRect(width, height, { ...pad, bottom: pad.bottom + scaleHeight })\n const zoom = typeof options.zoom === 'object' ? options.zoom : {}\n const layout: MapLayout = {\n ...area,\n k: Math.max(0, Math.min(area.width / map.width, area.height / map.height)),\n mapWidth: map.width,\n mapHeight: map.height,\n max: Math.max(1, finite(zoom.max) ?? 8),\n }\n const view = fitView(options.view, layout)\n // (`k` is pixels per unit of the map as it is drawn, magnified by the view.)\n const k = Math.round(layout.k * view.scale * 1e4) / 1e4\n const tx = round(area.x - view.x * k)\n const ty = round(area.y - view.y * k)\n const px = (x: number) => tx + x * k\n const py = (y: number) => ty + y * k\n // A magnified map is cut at the edges of its room.\n const clipped = view.scale > 1\n const selected = new Set(selectedOf(options))\n\n // Markers, placed with the projection the map file was made with.\n const { projection } = map\n const project =\n isRecord(projection) &&\n finite(projection.scale) !== null &&\n Array.isArray(projection.translate) &&\n projection.translate.slice(0, 2).every((n) => finite(n) !== null)\n ? (lng: number, lat: number): [number, number] => [\n px(lng * RADIANS * projection.scale + (projection.translate[0] as number)),\n py(\n (projection.translate[1] as number) -\n 1.25 * Math.log(Math.tan(Math.PI / 4 + 0.4 * lat * RADIANS)) * projection.scale,\n ),\n ]\n : undefined\n const markers: NonNullable<Entry['marker']>[] = []\n if (project && k > 0) {\n for (const marker of options.markers ?? []) {\n const [x, y] = project(marker.lng, marker.lat)\n if (Number.isFinite(x) && Number.isFinite(y)) markers.push({ name: marker.name ?? '', x, y })\n }\n }\n const firstMarker = entries.length\n for (const marker of markers) entries.push({ marker, value: null })\n // Regions without a value are not walked by the keyboard, but still name themselves on hover.\n const count = entries.length\n for (const shape of shapes.values()) {\n if (shape.point || indexOf.has(shape)) continue\n indexOf.set(shape, entries.length)\n entries.push({ shape, value: null })\n }\n\n const hitAt = (i: number): MapHit | null => {\n const entry = entries[i]\n if (!entry) return null\n const { shape, marker } = entry\n const dot = marker ?? (shape?.point ? { x: px(shape.x), y: py(shape.y) } : undefined)\n const x = dot?.x ?? px(shape?.x ?? 0)\n const y = dot?.y ?? py(shape?.y ?? 0)\n const name = marker?.name ?? shape?.name ?? ''\n const v = entry.value\n return {\n index: i,\n label: shape?.code ?? name,\n ...(shape ? { region: shape.code } : { marker: name }),\n // One row, \"■ Poland 80\": a region without a value and a marker only name themselves.\n title: '',\n x,\n area,\n items: [\n {\n name,\n seriesIndex: 0,\n value: v,\n text: v === null ? '' : value(v),\n x,\n y,\n color: marker ? MARKER : v === null ? EMPTY : paint(position(v)).color,\n },\n ],\n highlight: {\n kind: 'halo',\n d: dot\n ? circlePath(dot.x, dot.y, radius + 3)\n : (shape?.rings ?? [])\n .map((ring) => {\n let d = ''\n for (let p = 0; p < ring.length; p += 2)\n d += `${p ? 'L' : 'M'}${Math.round(px(ring[p] as number) * 10) / 10} ${Math.round(py(ring[p + 1] as number) * 10) / 10}`\n return `${d}Z`\n })\n .join(''),\n },\n }\n }\n\n const interaction: MapInteraction = {\n count,\n map: layout,\n hitIndex: hitAt,\n hitTest(x, y) {\n if (!(k > 0)) return null\n if (x < area.x || x > area.x + area.width || y < area.y || y > area.y + area.height)\n return null\n const near = (dot: { x: number; y: number }) => Math.hypot(dot.x - x, dot.y - y) <= radius + 4\n // What is drawn on top is hit first: markers, then dots, then shapes.\n for (let i = count - 1; i >= firstMarker; i--)\n if (near(entries[i]?.marker as { x: number; y: number })) return hitAt(i)\n for (let i = 0; i < valued; i++) {\n const shape = entries[i]?.shape as Shape\n if (shape.point && near({ x: px(shape.x), y: py(shape.y) })) return hitAt(i)\n }\n const mx = (x - tx) / k\n const my = (y - ty) / k\n for (const [shape, i] of indexOf) {\n const [x0, y0, x1, y1] = shape.box\n if (shape.point || mx < x0 || mx > x1 || my < y0 || my > y1) continue\n if (inside(shape.rings, mx, my)) return hitAt(i)\n }\n return null\n },\n }\n const regions: VNode[] = []\n // A selected shape goes in after the others, where nothing covers its outline.\n const raised: VNode[] = []\n const points: VNode[] = []\n for (const shape of shapes.values()) {\n const i = indexOf.get(shape)\n const v = i === undefined ? null : (entries[i]?.value ?? null)\n const style = v === null ? undefined : paint(position(v)).style\n const chosen = selected.has(shape.code) && 'tc-region-selected'\n if (!shape.point) {\n ;(chosen ? raised : regions).push(\n h('path', {\n key: shape.code,\n class: ['tc-region', v === null ? 'tc-region-empty' : 'tc-cell', chosen],\n 'data-region': shape.code,\n d: shape.path,\n style,\n }),\n )\n } else if (v !== null) {\n // A country too small for a shape says nothing without a value, so only then is it drawn.\n points.push(\n h('circle', {\n key: shape.code,\n class: ['tc-region tc-region-point tc-cell', chosen],\n 'data-region': shape.code,\n cx: round(px(shape.x)),\n cy: round(py(shape.y)),\n r: radius,\n style,\n }),\n )\n }\n }\n\n // Lines go in before the markers, so the markers sit on top of their ends.\n const byName = new Map(markers.map((marker) => [marker.name, marker]))\n const lines = (options.lines ?? []).flatMap((line, i) => {\n const from = byName.get(line.from)\n const to = byName.get(line.to)\n if (!from || !to) return []\n // A curve through a point pushed sideways from the middle of the line.\n const cx = (from.x + to.x) / 2 + (to.y - from.y) * LINE_CURVE\n const cy = (from.y + to.y) / 2 - (to.x - from.x) * LINE_CURVE\n return h('path', {\n key: `${line.from}›${line.to}›${i}`,\n class: 'tc-map-line',\n d: `M${round(from.x)} ${round(from.y)}Q${round(cx)} ${round(cy)} ${round(to.x)} ${round(to.y)}`,\n })\n })\n\n // The scale, centered below the map: the lowest value, a bar of the colors, the highest.\n const scaleText = typeof options.scale === 'object' ? options.scale : {}\n const low = scaleText.low ?? value(lo)\n const high = scaleText.high ?? value(hi)\n const lowWidth = estimateTextWidth(low, fontSize)\n const barWidth = SCALE_STEPS * SCALE_STEP\n const scaleWidth = lowWidth + 8 + barWidth + 8 + estimateTextWidth(high, fontSize)\n const scaleX = Math.round(area.x + Math.max(0, (area.width - scaleWidth) / 2))\n const barX = Math.round(scaleX + lowWidth + 8)\n const scaleY = area.y + area.height + 8 + (scaleHeight - 8) / 2\n\n const selectable = options.select === 'single' || options.select === 'multiple'\n const clip = `${ctx.id}-map`\n\n const content = [\n clipped &&\n h(\n 'clipPath',\n { key: 'clip', id: clip },\n h('rect', { x: area.x, y: area.y, width: area.width, height: area.height }),\n ),\n h(\n 'g',\n {\n key: 'map',\n class: ['tc-map', selectable && 'tc-map-selectable'],\n 'clip-path': clipped ? `url(#${clip})` : undefined,\n },\n k > 0 &&\n h(\n 'g',\n {\n key: 'regions',\n class: 'tc-map-regions',\n transform: `translate(${tx} ${ty}) scale(${k})`,\n },\n regions,\n raised,\n ),\n h('g', { key: 'points', class: 'tc-map-points' }, points),\n h('g', { key: 'lines', class: 'tc-map-lines' }, lines),\n h(\n 'g',\n { key: 'markers', class: 'tc-map-markers' },\n markers.map((marker, i) =>\n h('circle', {\n key: `${marker.name}›${i}`,\n class: 'tc-map-marker',\n 'data-marker': marker.name,\n cx: round(marker.x),\n cy: round(marker.y),\n r: radius,\n }),\n ),\n ),\n ),\n scale &&\n h(\n 'g',\n // (Crisp edges: the slices of the bar meet without a seam.)\n {\n key: 'scale',\n class: 'tc-map-scale',\n 'aria-hidden': 'true',\n 'shape-rendering': 'crispEdges',\n },\n h('text', { class: 'tc-tick-label', x: scaleX, y: round(scaleY), dy: '0.32em' }, low),\n Array.from({ length: SCALE_STEPS }, (_, s) =>\n h('rect', {\n key: s,\n class: 'tc-cell',\n x: barX + s * SCALE_STEP,\n y: round(scaleY - SCALE_HEIGHT / 2),\n width: SCALE_STEP,\n height: SCALE_HEIGHT,\n style: paint(s / (SCALE_STEPS - 1)).style,\n }),\n ),\n h(\n 'text',\n { class: 'tc-tick-label', x: barX + barWidth + 8, y: round(scaleY), dy: '0.32em' },\n high,\n ),\n ),\n ]\n return { content, interaction }\n}\n\n/** Table: one row per region with a value, in the order of the data. */\nfunction mapTable(options: MapOptions, ctx: TableContext, limit: number): DataTable {\n const map = typeof options.map === 'string' ? maps[options.map] : options.map\n const shapes = isMap(map) ? shapesOf(map) : undefined\n const value = formatNumber(options.format, ctx.locale)\n const rows: string[][] = []\n for (const [code, raw] of Object.entries(options.data ?? {})) {\n const v = finite(raw)\n const shape = shapes?.get(code)\n if (shape && v !== null) rows.push([shape.name, value(v)])\n }\n return { columns: ['', 'Value'], total: rows.length, rows: rows.slice(0, limit) }\n}\n\n/** Width to height of the map with its scale at a usual size, so the map fills the chart. */\nfunction ratioOf(options: MapOptions): number | undefined {\n const map = typeof options.map === 'string' ? maps[options.map] : options.map\n if (!isMap(map)) return undefined\n const scale = options.scale !== false && Object.keys(options.data ?? {}).length > 0\n return round(600 / ((600 * map.height) / map.width + (scale ? 23 : 0)))\n}\n\n/** Values that are finite numbers, markers with real coordinates, lines and colors that are text. */\nconst cleanMap = (options: MapOptions): MapOptions => {\n const o = options as unknown as Record<string, unknown>\n const data: Record<string, number> = {}\n if (isRecord(o.data))\n for (const [code, v] of Object.entries(o.data)) {\n const n = finite(v)\n if (n !== null) data[code] = n\n }\n return {\n ...options,\n map: typeof o.map === 'string' || isMap(o.map) ? o.map : (undefined as never),\n data,\n colors: list(o.colors).filter((c): c is string => typeof c === 'string' && c.trim() !== ''),\n markers: records(o.markers, (m) => ({\n lat: finite(m.lat) as number,\n lng: finite(m.lng) as number,\n ...(typeof m.name === 'string' ? { name: m.name } : {}),\n })).filter((m) => m.lat !== null && m.lng !== null),\n lines: records(o.lines, (l) => ({ from: text(l.from), to: text(l.to) })),\n select: o.select === 'single' || o.select === 'multiple' ? o.select : undefined,\n selected: list(o.selected).filter((code): code is string => typeof code === 'string'),\n view: isRecord(o.view) ? (o.view as Partial<MapView>) : undefined,\n onSelect: typeof o.onSelect === 'function' ? (o.onSelect as MapOptions['onSelect']) : undefined,\n }\n}\n\n/**\n * Map: the regions of a map file as SVG shapes, shaded by value from the\n * empty shade to the full color (`--tc-heat-color`, the cells of the\n * heatmap) or through a scale of `colors`, with markers placed by their\n * coordinates, lines between them and a bar of the scale. The shapes come\n * projected from the map file, so no geo library ships to the browser.\n *\n * ```ts\n * import { world } from '@tabler/charts/maps/world'\n *\n * new Chart('#el', {\n * type: map,\n * map: world,\n * data: { PL: 80, DE: 45, US: 100 },\n * })\n * ```\n */\nexport const map: ChartType<MapOptions> = {\n name: 'map',\n // (The options come with the whole config: its proportions are defaulted here.)\n clean: (options) => {\n const config = cleanMap(options) as MapOptions & {\n aspectRatio?: number\n autoRatio?: number\n }\n // The ratio set here follows the map; one of your own is kept.\n if (config.aspectRatio !== undefined && config.aspectRatio !== config.autoRatio) return config\n const autoRatio = ratioOf(config)\n return { ...config, aspectRatio: autoRatio, autoRatio }\n },\n render: renderMap,\n table: mapTable,\n // Zoom, drag and selection: at work only with `zoom` or `select`.\n plugins: [mapInteraction()],\n}\n"],"mappings":";;;;;;;;;;;AA+BA,SAAgB,QAAQ,MAAoC,QAA4B;CACtF,MAAM,QAAQ,KAAK,IAAI,OAAO,KAAK,KAAK,IAAI,GAAGA,cAAAA,OAAO,MAAM,KAAK,KAAK,CAAC,CAAC;CACxE,MAAM,OAAO,OAAO,IAAI;CACxB,MAAM,OAAO,IAAmB,MAAc,SAAyB;EACrE,MAAM,OAAO,OAAO;EACpB,OAAO,QAAQ,QAAQ,OAAO,QAAQ,IAAI,KAAK,IAAI,OAAO,MAAM,KAAK,IAAI,GAAG,MAAM,CAAC,CAAC;CACtF;CACA,OAAO,OAAO,IACV;EACE,GAAG,IAAIA,cAAAA,OAAO,MAAM,CAAC,GAAG,OAAO,UAAU,OAAO,KAAK;EACrD,GAAG,IAAIA,cAAAA,OAAO,MAAM,CAAC,GAAG,OAAO,WAAW,OAAO,MAAM;EACvD;CACF,IACA;EAAE,GAAG;EAAG,GAAG;EAAG;CAAM;AAC1B;;;ACrCA,MAAM,YAAY;AAClB,MAAM,gBAAgB;;;;;AAKtB,MAAM,cA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AO,MAAM,YAAY,EAAE,KAAK,MAAM,EAAE;EAC1F,SAASC,cAAAA,QAAQ,EAAE,UAAU,OAAO;GAClC,KAAKZ,cAAAA,OAAO,EAAE,GAAG;GACjB,KAAKA,cAAAA,OAAO,EAAE,GAAG;GACjB,GAAI,OAAO,EAAE,SAAS,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;EACvD,EAAE,CAAC,CAAC,QAAQ,MAAM,EAAE,QAAQ,QAAQ,EAAE,QAAQ,IAAI;EAClD,OAAOY,cAAAA,QAAQ,EAAE,QAAQ,OAAO;GAAE,MAAMX,cAAAA,KAAK,EAAE,IAAI;GAAG,IAAIA,cAAAA,KAAK,EAAE,EAAE;EAAE,EAAE;EACvE,QAAQ,EAAE,WAAW,YAAY,EAAE,WAAW,aAAa,EAAE,SAAS,KAAA;EACtE,UAAUU,cAAAA,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,SAAyB,OAAO,SAAS,QAAQ;EACpF,MAAMZ,cAAAA,SAAS,EAAE,IAAI,IAAK,EAAE,OAA4B,KAAA;EACxD,UAAU,OAAO,EAAE,aAAa,aAAc,EAAE,WAAsC,KAAA;CACxF;AACF;;;;;;;;;;;;;;;;;;AAmBA,MAAa,MAA6B;CACxC,MAAM;CAEN,QAAQ,YAAY;EAClB,MAAM,SAAS,SAAS,OAAO;EAK/B,IAAI,OAAO,gBAAgB,KAAA,KAAa,OAAO,gBAAgB,OAAO,WAAW,OAAO;EACxF,MAAM,YAAY,QAAQ,MAAM;EAChC,OAAO;GAAE,GAAG;GAAQ,aAAa;GAAW;EAAU;CACxD;CACA,QAAQ;CACR,OAAO;CAEP,SAAS,CAAC,eAAe,CAAC;AAC5B"}
@@ -0,0 +1,156 @@
1
+ import { o as ChartType, zt as Hit } from "./chart-CE9EVbfV.js";
2
+ import { c as NumberFormat } from "./time-DRIDgv2a.js";
3
+ import { n as InsetsInput } from "./layout-CYerDebD.js";
4
+ /** The part of a map in sight. */
5
+ interface MapView {
6
+ /** The top left corner, in the coordinates of the map file. */
7
+ x: number;
8
+ y: number;
9
+ /** How many times the map is magnified; `1` shows all of it. */
10
+ scale: number;
11
+ }
12
+ /** Where the last render put the map, for the zoom to work from. */
13
+ interface MapLayout {
14
+ /** The room of the map in chart pixels. */
15
+ x: number;
16
+ y: number;
17
+ width: number;
18
+ height: number;
19
+ /** Pixels per unit of the map when all of it is in sight. */
20
+ k: number;
21
+ /** Size of the map file. */
22
+ mapWidth: number;
23
+ mapHeight: number;
24
+ /** The most the map can be magnified. */
25
+ max: number;
26
+ }
27
+ /** One region of a map (a country, a state …). */
28
+ interface MapRegion {
29
+ name: string;
30
+ /**
31
+ * SVG path data in the coordinates of the map (`M`, `L`, `H`, `V` and `Z`,
32
+ * absolute or relative; curves are drawn but not hit by the pointer).
33
+ */
34
+ path: string;
35
+ /** Too small for a shape at the scale of the map: `path` is a single point, drawn as a dot when it has a value. */
36
+ point?: boolean;
37
+ }
38
+ /** A map: shapes already projected into a `width` × `height` box, as the files in `@tabler/charts/maps/*` are. */
39
+ interface MapData {
40
+ width: number;
41
+ height: number;
42
+ /** How the shapes were projected, to place a marker by its coordinates. */
43
+ projection?: {
44
+ type: "miller";
45
+ scale: number;
46
+ translate: readonly number[];
47
+ };
48
+ /** Regions by their code, e.g. ISO 3166-1 alpha-2 for countries. */
49
+ regions: Readonly<Record<string, MapRegion>>;
50
+ }
51
+ /** A place on the map, by its coordinates. */
52
+ interface MapMarker {
53
+ /** Shown in the tooltip, and what a line refers to. */
54
+ name?: string;
55
+ /** Latitude and longitude in degrees. */
56
+ lat: number;
57
+ lng: number;
58
+ }
59
+ /** A curve between two markers, by their names. */
60
+ interface MapLine {
61
+ from: string;
62
+ to: string;
63
+ }
64
+ interface MapOptions {
65
+ /** The map: a map file (`import { world } from '@tabler/charts/maps/world'`), or the name it was given with `addMap()`. */
66
+ map: MapData | string;
67
+ /** A value per region code, e.g. `{ PL: 80, DE: 45 }`. Regions without one keep the empty shade. */
68
+ data: Readonly<Record<string, number | null>>;
69
+ /** Value shown with the lightest shade (or the first color). Defaults to the smaller of `0` and the data minimum. */
70
+ min?: number;
71
+ /** Value shown with the full color (or the last color). Defaults to the data maximum. */
72
+ max?: number;
73
+ /**
74
+ * A continuous scale through two or more colors (any CSS color, including
75
+ * `var(--tc-…)`), from `min` to `max`, instead of one hue (`--tc-heat-color`).
76
+ * Values that could inject CSS are ignored, as for series colors.
77
+ */
78
+ colors?: readonly string[];
79
+ /** Value placed on the middle color of `colors` (e.g. `0` for changes). Defaults to halfway. */
80
+ mid?: number;
81
+ /** Places drawn as dots over the map. */
82
+ markers?: readonly MapMarker[];
83
+ /** Dashed curves between markers. */
84
+ lines?: readonly MapLine[];
85
+ /** Radius of the markers and of the regions drawn as a dot, in pixels. Defaults to `4`. */
86
+ markerRadius?: number;
87
+ /** Format of the values (tooltip, scale, table). */
88
+ format?: NumberFormat;
89
+ /**
90
+ * The bar below the map with the lowest and the highest value: `false`
91
+ * hides it, an object names its ends instead of the values.
92
+ */
93
+ scale?: boolean | {
94
+ low?: string;
95
+ high?: string;
96
+ };
97
+ /** Extra space around the map, in pixels. */
98
+ padding?: InsetsInput;
99
+ /**
100
+ * Let the map be magnified with its buttons, the wheel, a double click, a
101
+ * pinch or the `+` and `-` keys, and dragged around. An object sets the
102
+ * most it magnifies (`max`, `8` by default), turns the wheel off
103
+ * (`wheel: false`) and names the buttons (`labels`).
104
+ */
105
+ zoom?: boolean | {
106
+ max?: number;
107
+ wheel?: boolean;
108
+ labels?: {
109
+ in?: string;
110
+ out?: string;
111
+ };
112
+ };
113
+ /**
114
+ * The part of the map in sight. Zooming and dragging write it; set it
115
+ * yourself to start on a part of the map, leave it out for the whole map.
116
+ */
117
+ view?: Partial<MapView>;
118
+ /**
119
+ * Let regions be selected with a click (or Enter on the region the
120
+ * keyboard is on): one at a time, or any number of them. A click on a
121
+ * selected region takes it out again.
122
+ */
123
+ select?: "single" | "multiple";
124
+ /** Codes of the selected regions. Selecting writes it; `onSelect` hears of it. */
125
+ selected?: readonly string[];
126
+ /** Called when a click or a key changes the selection, with the codes now selected and the one that changed. */
127
+ onSelect?: (selected: string[], code: string) => void;
128
+ }
129
+ /** A hit of a map: what it is on. */
130
+ interface MapHit extends Hit {
131
+ /** Code of the region, for a hit on a region. */
132
+ region?: string;
133
+ /** Name of the marker, for a hit on a marker. */
134
+ marker?: string;
135
+ }
136
+ /** Register a map under a name, so `map: 'world'` finds it (configs from JSON, `<tabler-chart>`, the data API). */
137
+ declare function addMap(name: string, data: MapData): void;
138
+ /**
139
+ * Map: the regions of a map file as SVG shapes, shaded by value from the
140
+ * empty shade to the full color (`--tc-heat-color`, the cells of the
141
+ * heatmap) or through a scale of `colors`, with markers placed by their
142
+ * coordinates, lines between them and a bar of the scale. The shapes come
143
+ * projected from the map file, so no geo library ships to the browser.
144
+ *
145
+ * ```ts
146
+ * import { world } from '@tabler/charts/maps/world'
147
+ *
148
+ * new Chart('#el', {
149
+ * type: map,
150
+ * map: world,
151
+ * data: { PL: 80, DE: 45, US: 100 },
152
+ * })
153
+ * ```
154
+ */
155
+ declare const map: ChartType<MapOptions>;
156
+ export { MapOptions as a, map as c, MapMarker as i, MapLayout as l, MapHit as n, MapRegion as o, MapLine as r, addMap as s, MapData as t, MapView as u };
package/dist/map.cjs ADDED
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_map = require("./map-ChwSgooH.cjs");
3
+ exports.addMap = require_map.addMap;
4
+ exports.map = require_map.map;
package/dist/map.d.cts ADDED
@@ -0,0 +1,3 @@
1
+ /** Standalone entry: `import { map } from '@tabler/charts/map'`. */
2
+ import { a as MapOptions, c as map, i as MapMarker, l as MapLayout, n as MapHit, o as MapRegion, r as MapLine, s as addMap, t as MapData, u as MapView } from "./map-BirylCmT.cjs";
3
+ export { type MapData, type MapHit, type MapLayout, type MapLine, type MapMarker, type MapOptions, type MapRegion, type MapView, addMap, map };
package/dist/map.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ /** Standalone entry: `import { map } from '@tabler/charts/map'`. */
2
+ import { a as MapOptions, c as map, i as MapMarker, l as MapLayout, n as MapHit, o as MapRegion, r as MapLine, s as addMap, t as MapData, u as MapView } from "./map-DNqog2Xs.js";
3
+ export { type MapData, type MapHit, type MapLayout, type MapLine, type MapMarker, type MapOptions, type MapRegion, type MapView, addMap, map };
package/dist/map.js ADDED
@@ -0,0 +1 @@
1
+ export { t as addMap, n as map } from "./map-CYp6x-uS.js";