@tabler/charts 0.0.1-alpha.0 → 0.2.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 (377) hide show
  1. package/README.md +33 -5
  2. package/dist/{annotations-Bp7HwtF5.d.ts → annotations-B02GR_KU.d.ts} +3 -8
  3. package/dist/{annotations-lyt0I3HU.d.cts → annotations-CHafaGd4.d.cts} +3 -8
  4. package/dist/{annotations-BszTTjf9.js → annotations-D0YQ0IoA.js} +6 -7
  5. package/dist/{annotations-BszTTjf9.js.map → annotations-D0YQ0IoA.js.map} +1 -1
  6. package/dist/{annotations-DpETO8dE.cjs → annotations-DdRdeBUB.cjs} +6 -7
  7. package/dist/{annotations-DpETO8dE.cjs.map → annotations-DdRdeBUB.cjs.map} +1 -1
  8. package/dist/annotations.cjs +3 -5
  9. package/dist/annotations.cjs.map +1 -1
  10. package/dist/annotations.d.cts +2 -1
  11. package/dist/annotations.d.ts +2 -1
  12. package/dist/annotations.js +3 -4
  13. package/dist/{sweep-WSgn2etB.js → arc-B3V5IR0w.js} +3 -60
  14. package/dist/arc-B3V5IR0w.js.map +1 -0
  15. package/dist/{sweep-Duowaput.cjs → arc-CYhI62kO.cjs} +2 -71
  16. package/dist/arc-CYhI62kO.cjs.map +1 -0
  17. package/dist/{area-DQsLERhx.js → area-0-L1bG9B.js} +5 -6
  18. package/dist/{area-DQsLERhx.js.map → area-0-L1bG9B.js.map} +1 -1
  19. package/dist/{area-sHCE3pg5.cjs → area-4eRs3c0K.cjs} +5 -6
  20. package/dist/{area-sHCE3pg5.cjs.map → area-4eRs3c0K.cjs.map} +1 -1
  21. package/dist/{area-DaO4MQl4.d.ts → area-CJX9219z.d.cts} +3 -6
  22. package/dist/{area-BFvkc-ZM.d.cts → area-d11XePuw.d.ts} +3 -6
  23. package/dist/area.cjs +1 -1
  24. package/dist/area.d.cts +2 -1
  25. package/dist/area.d.ts +2 -1
  26. package/dist/area.js +1 -2
  27. package/dist/{band-DTcNDAFO.d.ts → band-CNKvdnTC.d.cts} +1 -4
  28. package/dist/{band-DTcNDAFO.d.cts → band-CNKvdnTC.d.ts} +1 -4
  29. package/dist/{bar-DM16NUvV.js → bar-B5n2oq9-.js} +3 -4
  30. package/dist/{bar-DM16NUvV.js.map → bar-B5n2oq9-.js.map} +1 -1
  31. package/dist/{bar-DdsDxk3W.d.ts → bar-BDLR4p9c.d.cts} +4 -7
  32. package/dist/{bar-jZEoao74.js → bar-BNZ3GhIw.js} +20 -20
  33. package/dist/bar-BNZ3GhIw.js.map +1 -0
  34. package/dist/{bar-C-7zR2qp.cjs → bar-Da6dE_nI.cjs} +20 -20
  35. package/dist/bar-Da6dE_nI.cjs.map +1 -0
  36. package/dist/{bar-DGuUN3nc.cjs → bar-LYIF8MEz.cjs} +3 -4
  37. package/dist/{bar-DGuUN3nc.cjs.map → bar-LYIF8MEz.cjs.map} +1 -1
  38. package/dist/{bar-a0h9KC8A.d.cts → bar-XwzM6Pb0.d.ts} +4 -7
  39. package/dist/bar.cjs +1 -1
  40. package/dist/bar.d.cts +2 -1
  41. package/dist/bar.d.ts +2 -1
  42. package/dist/bar.js +1 -2
  43. package/dist/{candlestick-DuXwAFID.js → candlestick-BHQkQfxH.js} +6 -7
  44. package/dist/{candlestick-DuXwAFID.js.map → candlestick-BHQkQfxH.js.map} +1 -1
  45. package/dist/{candlestick-B5r1w3kc.cjs → candlestick-CYCQXgky.cjs} +6 -7
  46. package/dist/{candlestick-B5r1w3kc.cjs.map → candlestick-CYCQXgky.cjs.map} +1 -1
  47. package/dist/{candlestick-BnUG1SGi.d.ts → candlestick-D0xKkdqd.d.ts} +3 -6
  48. package/dist/{candlestick-BKdPyorY.d.cts → candlestick-Dq7qp-F0.d.cts} +3 -6
  49. package/dist/candlestick.cjs +4 -5
  50. package/dist/candlestick.d.cts +1 -1
  51. package/dist/candlestick.d.ts +1 -1
  52. package/dist/candlestick.js +4 -6
  53. package/dist/{cartesian-Cr0AF0nG.js → cartesian-CI2x6N7N.js} +27 -27
  54. package/dist/cartesian-CI2x6N7N.js.map +1 -0
  55. package/dist/{cartesian-BoDfgBCV.cjs → cartesian-DV02PsBe.cjs} +27 -27
  56. package/dist/cartesian-DV02PsBe.cjs.map +1 -0
  57. package/dist/{chart-BF2CK9I_.js → chart-DWn9v6qw.js} +35 -24
  58. package/dist/chart-DWn9v6qw.js.map +1 -0
  59. package/dist/{chart-iJGxMz9z.d.ts → chart-QilhWP8Z.d.ts} +38 -49
  60. package/dist/{chart-CowF_lWY.cjs → chart-e2VqomCI.cjs} +35 -24
  61. package/dist/chart-e2VqomCI.cjs.map +1 -0
  62. package/dist/{chart-Qa417fJo.d.cts → chart-kqFMEwDo.d.cts} +64 -49
  63. package/dist/{circle-BQMuAfls.cjs → circle-Bwxy5j7B.cjs} +2 -3
  64. package/dist/{circle-BQMuAfls.cjs.map → circle-Bwxy5j7B.cjs.map} +1 -1
  65. package/dist/{circle-Z7YfCoCM.js → circle-YRDaOBpk.js} +2 -3
  66. package/dist/{circle-Z7YfCoCM.js.map → circle-YRDaOBpk.js.map} +1 -1
  67. package/dist/{clean-o1vDEhFV.js → clean-CkoQobGv.js} +3 -4
  68. package/dist/{clean-o1vDEhFV.js.map → clean-CkoQobGv.js.map} +1 -1
  69. package/dist/{clean-Byl6kzf0.cjs → clean-Die2iCNc.cjs} +8 -3
  70. package/dist/{clean-Byl6kzf0.cjs.map → clean-Die2iCNc.cjs.map} +1 -1
  71. package/dist/{core-plobgBC7.js → core-BKRQvPAT.js} +47 -46
  72. package/dist/core-BKRQvPAT.js.map +1 -0
  73. package/dist/{core-C7fPm6t7.cjs → core-DIOC61up.cjs} +47 -46
  74. package/dist/core-DIOC61up.cjs.map +1 -0
  75. package/dist/{core-CjgbhS_v.d.ts → core-DRUCk67j.d.ts} +6 -42
  76. package/dist/{core-CnGFKojH.d.cts → core-PAX5ogLk.d.cts} +24 -68
  77. package/dist/core.cjs +32 -26
  78. package/dist/core.d.cts +23 -20
  79. package/dist/core.d.ts +23 -20
  80. package/dist/core.js +27 -24
  81. package/dist/{dates-CG-FvioW.js → dates-C2RzY3rE.js} +4 -5
  82. package/dist/{dates-CG-FvioW.js.map → dates-C2RzY3rE.js.map} +1 -1
  83. package/dist/{dates-Btm7Zm6W.cjs → dates-DurEr9WT.cjs} +4 -5
  84. package/dist/{dates-Btm7Zm6W.cjs.map → dates-DurEr9WT.cjs.map} +1 -1
  85. package/dist/{decimate-tLhDk1ys.cjs → decimate-BS3x8g-f.cjs} +2 -3
  86. package/dist/{decimate-tLhDk1ys.cjs.map → decimate-BS3x8g-f.cjs.map} +1 -1
  87. package/dist/{decimate-BGg9XgF0.d.ts → decimate-BxxYBJJk.d.cts} +2 -5
  88. package/dist/{decimate-C87cl_Sp.js → decimate-CapfgiDY.js} +2 -3
  89. package/dist/{decimate-C87cl_Sp.js.map → decimate-CapfgiDY.js.map} +1 -1
  90. package/dist/{decimate-CNSpgGa5.d.cts → decimate-Du87fMLG.d.ts} +2 -5
  91. package/dist/decimate.cjs +3 -4
  92. package/dist/decimate.d.cts +1 -1
  93. package/dist/decimate.d.ts +1 -1
  94. package/dist/decimate.js +3 -4
  95. package/dist/{dom-vP3IcMak.js → dom-CuceR8gt.js} +4 -6
  96. package/dist/{dom-vP3IcMak.js.map → dom-CuceR8gt.js.map} +1 -1
  97. package/dist/{dom-CLF868Qs.cjs → dom-D_g13XWY.cjs} +4 -6
  98. package/dist/{dom-CLF868Qs.cjs.map → dom-D_g13XWY.cjs.map} +1 -1
  99. package/dist/{export-chart-9w8t3rjZ.js → export-chart-83UYH48t.js} +3 -4
  100. package/dist/{export-chart-9w8t3rjZ.js.map → export-chart-83UYH48t.js.map} +1 -1
  101. package/dist/{export-chart-BhhYgksr.cjs → export-chart-mYgEfK-L.cjs} +3 -4
  102. package/dist/{export-chart-BhhYgksr.cjs.map → export-chart-mYgEfK-L.cjs.map} +1 -1
  103. package/dist/export.cjs +3 -5
  104. package/dist/export.cjs.map +1 -1
  105. package/dist/export.d.cts +8 -1
  106. package/dist/export.d.ts +8 -1
  107. package/dist/export.js +3 -4
  108. package/dist/{extent-BAMZo0Nq.js → extent-DOV8rs-6.js} +2 -3
  109. package/dist/{extent-BAMZo0Nq.js.map → extent-DOV8rs-6.js.map} +1 -1
  110. package/dist/{extent-DsFWvAHJ.cjs → extent-DuYDcvM9.cjs} +2 -3
  111. package/dist/{extent-DsFWvAHJ.cjs.map → extent-DuYDcvM9.cjs.map} +1 -1
  112. package/dist/{fade-Cs74puQS.cjs → fade-DVTkhrFU.cjs} +4 -6
  113. package/dist/{fade-Cs74puQS.cjs.map → fade-DVTkhrFU.cjs.map} +1 -1
  114. package/dist/{fade-D3NxH5Qg.js → fade-GGxcBdss.js} +4 -6
  115. package/dist/{fade-D3NxH5Qg.js.map → fade-GGxcBdss.js.map} +1 -1
  116. package/dist/{features-wASyHGic.js → features-BMxkqCyS.js} +2 -3
  117. package/dist/{features-wASyHGic.js.map → features-BMxkqCyS.js.map} +1 -1
  118. package/dist/{features-BclHgg2W.cjs → features-DCXEvoya.cjs} +2 -3
  119. package/dist/{features-BclHgg2W.cjs.map → features-DCXEvoya.cjs.map} +1 -1
  120. package/dist/{format-B0yKXBTH.cjs → format-CAE5ruy6.cjs} +2 -3
  121. package/dist/{format-B0yKXBTH.cjs.map → format-CAE5ruy6.cjs.map} +1 -1
  122. package/dist/{format-lStwuc1L.js → format-it1kepFG.js} +2 -3
  123. package/dist/{format-lStwuc1L.js.map → format-it1kepFG.js.map} +1 -1
  124. package/dist/{gauge-Cu9jttC0.d.ts → gauge-0VJuAHWF.d.ts} +5 -8
  125. package/dist/{gauge-Cu_OFxBd.d.cts → gauge-BSist7My.d.cts} +5 -8
  126. package/dist/{gauge-CEfkWXSu.cjs → gauge-DXkjXNCD.cjs} +14 -14
  127. package/dist/gauge-DXkjXNCD.cjs.map +1 -0
  128. package/dist/{gauge-_ljQHrMN.js → gauge-ts0kqN1-.js} +10 -10
  129. package/dist/{gauge-_ljQHrMN.js.map → gauge-ts0kqN1-.js.map} +1 -1
  130. package/dist/gauge.cjs +1 -1
  131. package/dist/gauge.d.cts +2 -1
  132. package/dist/gauge.d.ts +2 -1
  133. package/dist/gauge.js +1 -2
  134. package/dist/{heatmap-DSZ2bVIa.js → heatmap-19BGJTKF.js} +20 -22
  135. package/dist/heatmap-19BGJTKF.js.map +1 -0
  136. package/dist/{heatmap-PhLPXIg1.d.ts → heatmap-59lmClj9.d.ts} +4 -7
  137. package/dist/{heatmap-BK18EBgJ.cjs → heatmap-CXhlrLTl.cjs} +20 -22
  138. package/dist/heatmap-CXhlrLTl.cjs.map +1 -0
  139. package/dist/{heatmap-BwS-y0c6.d.cts → heatmap-Dp_oyEe0.d.cts} +4 -7
  140. package/dist/heatmap.cjs +1 -1
  141. package/dist/heatmap.d.cts +2 -1
  142. package/dist/heatmap.d.ts +2 -1
  143. package/dist/heatmap.js +1 -2
  144. package/dist/{hydrate-CzfxLfTv.d.ts → hydrate-BtAZf_5K.d.cts} +2 -5
  145. package/dist/{hydrate-CxwTXDqO.cjs → hydrate-CmN1k8Mo.cjs} +3 -4
  146. package/dist/hydrate-CmN1k8Mo.cjs.map +1 -0
  147. package/dist/{hydrate-DDNIHYv_.js → hydrate-OA6R2_Pn.js} +3 -4
  148. package/dist/{hydrate-DDNIHYv_.js.map → hydrate-OA6R2_Pn.js.map} +1 -1
  149. package/dist/{hydrate-CTTmQy0x.d.cts → hydrate-OjM1pIUG.d.ts} +2 -5
  150. package/dist/hydrate.cjs +3 -4
  151. package/dist/hydrate.cjs.map +1 -1
  152. package/dist/hydrate.d.cts +1 -1
  153. package/dist/hydrate.d.ts +1 -1
  154. package/dist/hydrate.js +3 -4
  155. package/dist/index.cjs +54 -48
  156. package/dist/index.cjs.map +1 -1
  157. package/dist/index.d.cts +24 -26
  158. package/dist/index.d.ts +24 -26
  159. package/dist/index.js +45 -42
  160. package/dist/index.js.map +1 -1
  161. package/dist/{layout-B3hiqVEw.js → layout-DmrrLjwN.js} +9 -4
  162. package/dist/layout-DmrrLjwN.js.map +1 -0
  163. package/dist/{layout-CtMBhNd9.cjs → layout-JY2aR-yE.cjs} +14 -3
  164. package/dist/layout-JY2aR-yE.cjs.map +1 -0
  165. package/dist/{line-B3Ed6u7j.js → line-DO66LtwH.js} +9 -10
  166. package/dist/{line-B3Ed6u7j.js.map → line-DO66LtwH.js.map} +1 -1
  167. package/dist/{line-fQbtP_jL.cjs → line-Dbt6KFRK.cjs} +9 -10
  168. package/dist/{line-fQbtP_jL.cjs.map → line-Dbt6KFRK.cjs.map} +1 -1
  169. package/dist/{line-CMDGH6q5.d.cts → line-DtSh7HQU.d.ts} +4 -7
  170. package/dist/{line-D5kb8e6w.d.ts → line-_rNdeKmS.d.cts} +5 -7
  171. package/dist/line.cjs +4 -5
  172. package/dist/line.cjs.map +1 -1
  173. package/dist/line.d.cts +1 -1
  174. package/dist/line.d.ts +1 -1
  175. package/dist/line.js +4 -6
  176. package/dist/{log-CaofN3-n.d.ts → log-CI41TmcU.d.cts} +1 -6
  177. package/dist/{log-CaofN3-n.d.cts → log-CI41TmcU.d.ts} +1 -6
  178. package/dist/{log-axis-83rSpvL5.cjs → log-axis-DdRNyAq8.cjs} +6 -8
  179. package/dist/{log-axis-83rSpvL5.cjs.map → log-axis-DdRNyAq8.cjs.map} +1 -1
  180. package/dist/{log-axis-B_uvvOFc.js → log-axis-DhthtHFk.js} +6 -8
  181. package/dist/{log-axis-B_uvvOFc.js.map → log-axis-DhthtHFk.js.map} +1 -1
  182. package/dist/log.cjs +3 -5
  183. package/dist/log.cjs.map +1 -1
  184. package/dist/log.d.cts +1 -1
  185. package/dist/log.d.ts +1 -1
  186. package/dist/log.js +3 -4
  187. package/dist/{morph-CqYDu1bY.cjs → morph-9_LJL0ra.cjs} +4 -5
  188. package/dist/morph-9_LJL0ra.cjs.map +1 -0
  189. package/dist/{morph-BMxz3X2b.d.ts → morph-Dh7gJkV4.d.cts} +1 -4
  190. package/dist/{morph-BMxz3X2b.d.cts → morph-Dh7gJkV4.d.ts} +1 -4
  191. package/dist/{morph-Bgg-24l8.js → morph-DnRxuwR-.js} +4 -5
  192. package/dist/{morph-Bgg-24l8.js.map → morph-DnRxuwR-.js.map} +1 -1
  193. package/dist/morph.cjs +3 -4
  194. package/dist/morph.cjs.map +1 -1
  195. package/dist/morph.d.cts +1 -1
  196. package/dist/morph.d.ts +1 -1
  197. package/dist/morph.js +3 -4
  198. package/dist/{named-BWWb5LQJ.cjs → named-BBASc8dW.cjs} +2 -3
  199. package/dist/{named-BWWb5LQJ.cjs.map → named-BBASc8dW.cjs.map} +1 -1
  200. package/dist/{named-DE15TOgh.js → named-BOiBah6I.js} +2 -3
  201. package/dist/{named-DE15TOgh.js.map → named-BOiBah6I.js.map} +1 -1
  202. package/dist/others-DWdK7vKp.cjs +60 -0
  203. package/dist/others-DWdK7vKp.cjs.map +1 -0
  204. package/dist/others-J7NCAMA0.js +49 -0
  205. package/dist/others-J7NCAMA0.js.map +1 -0
  206. package/dist/parliament-CLCI7tUO.d.ts +66 -0
  207. package/dist/parliament-CgsVnWEe.d.cts +66 -0
  208. package/dist/parliament-Cru4IcuM.js +302 -0
  209. package/dist/parliament-Cru4IcuM.js.map +1 -0
  210. package/dist/parliament-x5hcFaQ3.cjs +307 -0
  211. package/dist/parliament-x5hcFaQ3.cjs.map +1 -0
  212. package/dist/parliament.cjs +3 -0
  213. package/dist/parliament.d.cts +3 -0
  214. package/dist/parliament.d.ts +3 -0
  215. package/dist/parliament.js +1 -0
  216. package/dist/{path-CwB28da0.d.ts → path-YeUiOfG8.d.cts} +1 -4
  217. package/dist/{path-CwB28da0.d.cts → path-YeUiOfG8.d.ts} +1 -4
  218. package/dist/{patterns-DtgcnA8o.js → patterns-CufKZYhm.js} +4 -5
  219. package/dist/{patterns-DtgcnA8o.js.map → patterns-CufKZYhm.js.map} +1 -1
  220. package/dist/{patterns-LfcQAWCy.cjs → patterns-D3-wQagb.cjs} +4 -5
  221. package/dist/{patterns-LfcQAWCy.cjs.map → patterns-D3-wQagb.cjs.map} +1 -1
  222. package/dist/patterns.cjs +3 -5
  223. package/dist/patterns.cjs.map +1 -1
  224. package/dist/patterns.d.cts +5 -1
  225. package/dist/patterns.d.ts +5 -1
  226. package/dist/patterns.js +3 -4
  227. package/dist/percentage-bar-B6tNOqNn.js +157 -0
  228. package/dist/percentage-bar-B6tNOqNn.js.map +1 -0
  229. package/dist/percentage-bar-nhTeakD_.d.ts +62 -0
  230. package/dist/percentage-bar-tepMr7Hd.d.cts +62 -0
  231. package/dist/percentage-bar-ybNS3goo.cjs +162 -0
  232. package/dist/percentage-bar-ybNS3goo.cjs.map +1 -0
  233. package/dist/percentage-bar.cjs +3 -0
  234. package/dist/percentage-bar.d.cts +3 -0
  235. package/dist/percentage-bar.d.ts +3 -0
  236. package/dist/percentage-bar.js +1 -0
  237. package/dist/{pie-B8UlOZiq.d.ts → pie-BXg2gNpb.d.cts} +14 -8
  238. package/dist/{pie-C1Pa6W_l.cjs → pie-BpjvSPnz.cjs} +19 -22
  239. package/dist/pie-BpjvSPnz.cjs.map +1 -0
  240. package/dist/{pie-DnQQmxkk.d.cts → pie-CFptILSm.d.ts} +14 -8
  241. package/dist/{pie-RnMTQWMS.js → pie-CVsc-6qD.js} +13 -16
  242. package/dist/pie-CVsc-6qD.js.map +1 -0
  243. package/dist/pie.cjs +1 -1
  244. package/dist/pie.d.cts +2 -1
  245. package/dist/pie.d.ts +2 -1
  246. package/dist/pie.js +1 -2
  247. package/dist/{point-shapes-CGl4dugc.cjs → point-shapes--_gmdTyK.cjs} +3 -4
  248. package/dist/{point-shapes-CGl4dugc.cjs.map → point-shapes--_gmdTyK.cjs.map} +1 -1
  249. package/dist/{point-shapes-DI84NNpI.js → point-shapes-DD2Ektzm.js} +3 -4
  250. package/dist/{point-shapes-DI84NNpI.js.map → point-shapes-DD2Ektzm.js.map} +1 -1
  251. package/dist/point-shapes.cjs +3 -4
  252. package/dist/point-shapes.d.cts +5 -1
  253. package/dist/point-shapes.d.ts +5 -1
  254. package/dist/point-shapes.js +3 -4
  255. package/dist/{radar-pFI6fvOq.d.ts → radar-BC9Skgpj.d.ts} +4 -7
  256. package/dist/{radar-CYPab_I4.js → radar-BR-mumDd.js} +7 -8
  257. package/dist/{radar-CYPab_I4.js.map → radar-BR-mumDd.js.map} +1 -1
  258. package/dist/{radar-BB13CGmq.d.cts → radar-D1-lItDy.d.cts} +4 -7
  259. package/dist/{radar-CoGUNNSb.cjs → radar-HPDrIdzc.cjs} +7 -8
  260. package/dist/{radar-CoGUNNSb.cjs.map → radar-HPDrIdzc.cjs.map} +1 -1
  261. package/dist/radar.cjs +1 -1
  262. package/dist/radar.d.cts +2 -1
  263. package/dist/radar.d.ts +2 -1
  264. package/dist/radar.js +1 -2
  265. package/dist/rect-D6VhynBM.cjs +16 -0
  266. package/dist/rect-D6VhynBM.cjs.map +1 -0
  267. package/dist/rect-DSVmUZrD.js +11 -0
  268. package/dist/rect-DSVmUZrD.js.map +1 -0
  269. package/dist/{sankey-B4PNKusJ.js → sankey-D6JeZfK5.js} +33 -29
  270. package/dist/sankey-D6JeZfK5.js.map +1 -0
  271. package/dist/{sankey-Bm518bqL.d.ts → sankey-D_v7KxnJ.d.ts} +4 -7
  272. package/dist/{sankey-B9JYnx7e.d.cts → sankey-Dk7jUt8x.d.cts} +4 -7
  273. package/dist/{sankey-Bacx4fVe.cjs → sankey-fCoo1cpz.cjs} +33 -29
  274. package/dist/sankey-fCoo1cpz.cjs.map +1 -0
  275. package/dist/sankey.cjs +1 -1
  276. package/dist/sankey.d.cts +2 -1
  277. package/dist/sankey.d.ts +2 -1
  278. package/dist/sankey.js +1 -2
  279. package/dist/{scatter-kgtgR318.js → scatter-C0TWjFpW.js} +21 -18
  280. package/dist/scatter-C0TWjFpW.js.map +1 -0
  281. package/dist/{scatter-Bl7nasE6.d.ts → scatter-CXEsioOJ.d.ts} +8 -9
  282. package/dist/{scatter-DgMN9zRy.cjs → scatter-DVqB_fP9.cjs} +21 -18
  283. package/dist/scatter-DVqB_fP9.cjs.map +1 -0
  284. package/dist/{scatter-DrJ8xYz4.d.cts → scatter-DZeEIfyo.d.cts} +8 -9
  285. package/dist/scatter.cjs +1 -1
  286. package/dist/scatter.d.cts +2 -1
  287. package/dist/scatter.d.ts +2 -1
  288. package/dist/scatter.js +1 -2
  289. package/dist/{sparkline-BS9-hltA.cjs → sparkline-B39NA0Mi.cjs} +14 -13
  290. package/dist/sparkline-B39NA0Mi.cjs.map +1 -0
  291. package/dist/{sparkline-BG13V4Pz.d.cts → sparkline-DAP6jtzw.d.cts} +5 -8
  292. package/dist/{sparkline-BQzt27Fr.js → sparkline-XO_TqCNP.js} +14 -13
  293. package/dist/sparkline-XO_TqCNP.js.map +1 -0
  294. package/dist/{sparkline-iWuXbKpd.d.ts → sparkline-cbvRkWqS.d.ts} +5 -8
  295. package/dist/sparkline.cjs +1 -1
  296. package/dist/sparkline.d.cts +2 -1
  297. package/dist/sparkline.d.ts +2 -1
  298. package/dist/sparkline.js +1 -2
  299. package/dist/{stack-DRbwTeF3.js → stack-2H2Gfs1Q.js} +3 -4
  300. package/dist/{stack-DRbwTeF3.js.map → stack-2H2Gfs1Q.js.map} +1 -1
  301. package/dist/{stack-DVhJWaki.cjs → stack-BgPzoQmv.cjs} +3 -4
  302. package/dist/{stack-DVhJWaki.cjs.map → stack-BgPzoQmv.cjs.map} +1 -1
  303. package/dist/{stack-CpR6RGKd.d.ts → stack-DR0eQTsB.d.ts} +1 -4
  304. package/dist/{stack-CpR6RGKd.d.cts → stack-Dagxq7l2.d.cts} +2 -4
  305. package/dist/style.css +1 -1
  306. package/dist/sweep-BpRPlhs6.js +59 -0
  307. package/dist/sweep-BpRPlhs6.js.map +1 -0
  308. package/dist/sweep-Dnp6LDBz.cjs +70 -0
  309. package/dist/sweep-Dnp6LDBz.cjs.map +1 -0
  310. package/dist/{time-CNVnt-B2.d.cts → time-B4oxWHQI.d.cts} +2 -7
  311. package/dist/{time-CHjiY9Q4.d.ts → time-DRIDgv2a.d.ts} +2 -7
  312. package/dist/{time-axis-VSX34_Tb.cjs → time-axis-BjZ1bYTK.cjs} +9 -10
  313. package/dist/{time-axis-VSX34_Tb.cjs.map → time-axis-BjZ1bYTK.cjs.map} +1 -1
  314. package/dist/{time-axis-Bc9eHX1r.js → time-axis-FLONo54E.js} +9 -10
  315. package/dist/{time-axis-Bc9eHX1r.js.map → time-axis-FLONo54E.js.map} +1 -1
  316. package/dist/time.cjs +4 -6
  317. package/dist/time.cjs.map +1 -1
  318. package/dist/time.d.cts +1 -1
  319. package/dist/time.d.ts +1 -1
  320. package/dist/time.js +4 -5
  321. package/dist/treemap-BAkhmVQc.d.cts +55 -0
  322. package/dist/treemap-BNpxFBao.d.ts +55 -0
  323. package/dist/treemap-BWpEUlDh.cjs +303 -0
  324. package/dist/treemap-BWpEUlDh.cjs.map +1 -0
  325. package/dist/treemap-CQdavQ9u.js +298 -0
  326. package/dist/treemap-CQdavQ9u.js.map +1 -0
  327. package/dist/treemap.cjs +3 -0
  328. package/dist/treemap.d.cts +3 -0
  329. package/dist/treemap.d.ts +3 -0
  330. package/dist/treemap.js +1 -0
  331. package/dist/{tween-BCYd0RTY.js → tween-BdQqUmmv.js} +2 -3
  332. package/dist/{tween-BCYd0RTY.js.map → tween-BdQqUmmv.js.map} +1 -1
  333. package/dist/{tween-CIGBlryn.cjs → tween-c3aOmfKE.cjs} +2 -3
  334. package/dist/{tween-CIGBlryn.cjs.map → tween-c3aOmfKE.cjs.map} +1 -1
  335. package/dist/{value-labels-IZIQPhfk.js → value-labels-BBuSi4i0.js} +7 -7
  336. package/dist/value-labels-BBuSi4i0.js.map +1 -0
  337. package/dist/{value-labels-B0WJoJ7x.cjs → value-labels-BV9keAuL.cjs} +7 -7
  338. package/dist/value-labels-BV9keAuL.cjs.map +1 -0
  339. package/dist/value-labels.cjs +3 -5
  340. package/dist/value-labels.cjs.map +1 -1
  341. package/dist/value-labels.d.cts +5 -1
  342. package/dist/value-labels.d.ts +5 -1
  343. package/dist/value-labels.js +3 -4
  344. package/dist/{vnode-CkQ27Cxe.cjs → vnode-ClAiw28x.cjs} +2 -3
  345. package/dist/{vnode-CkQ27Cxe.cjs.map → vnode-ClAiw28x.cjs.map} +1 -1
  346. package/dist/{vnode-BUflsBsa.d.ts → vnode-Du2cC8Fm.d.cts} +1 -4
  347. package/dist/{vnode-BUflsBsa.d.cts → vnode-Du2cC8Fm.d.ts} +1 -4
  348. package/dist/{vnode-tCWItoUH.js → vnode-_EMUqysL.js} +2 -3
  349. package/dist/{vnode-tCWItoUH.js.map → vnode-_EMUqysL.js.map} +1 -1
  350. package/package.json +31 -1
  351. package/dist/bar-C-7zR2qp.cjs.map +0 -1
  352. package/dist/bar-jZEoao74.js.map +0 -1
  353. package/dist/cartesian-BoDfgBCV.cjs.map +0 -1
  354. package/dist/cartesian-Cr0AF0nG.js.map +0 -1
  355. package/dist/chart-BF2CK9I_.js.map +0 -1
  356. package/dist/chart-CowF_lWY.cjs.map +0 -1
  357. package/dist/core-C7fPm6t7.cjs.map +0 -1
  358. package/dist/core-plobgBC7.js.map +0 -1
  359. package/dist/gauge-CEfkWXSu.cjs.map +0 -1
  360. package/dist/heatmap-BK18EBgJ.cjs.map +0 -1
  361. package/dist/heatmap-DSZ2bVIa.js.map +0 -1
  362. package/dist/hydrate-CxwTXDqO.cjs.map +0 -1
  363. package/dist/layout-B3hiqVEw.js.map +0 -1
  364. package/dist/layout-CtMBhNd9.cjs.map +0 -1
  365. package/dist/morph-CqYDu1bY.cjs.map +0 -1
  366. package/dist/pie-C1Pa6W_l.cjs.map +0 -1
  367. package/dist/pie-RnMTQWMS.js.map +0 -1
  368. package/dist/sankey-B4PNKusJ.js.map +0 -1
  369. package/dist/sankey-Bacx4fVe.cjs.map +0 -1
  370. package/dist/scatter-DgMN9zRy.cjs.map +0 -1
  371. package/dist/scatter-kgtgR318.js.map +0 -1
  372. package/dist/sparkline-BQzt27Fr.js.map +0 -1
  373. package/dist/sparkline-BS9-hltA.cjs.map +0 -1
  374. package/dist/sweep-Duowaput.cjs.map +0 -1
  375. package/dist/sweep-WSgn2etB.js.map +0 -1
  376. package/dist/value-labels-B0WJoJ7x.cjs.map +0 -1
  377. package/dist/value-labels-IZIQPhfk.js.map +0 -1
@@ -1,35 +1,24 @@
1
- import { s as Rect } from "./annotations-lyt0I3HU.cjs";
2
- import { l as VNode, r as Child } from "./vnode-BUflsBsa.cjs";
3
- import { D as ChartPlugin, ft as Tick, xt as Hit } from "./chart-Qa417fJo.cjs";
4
- //#region src/shapes/arc.d.ts
5
- interface ArcOptions {
6
- innerRadius: number;
7
- outerRadius: number;
8
- startAngle: number;
9
- endAngle: number;
10
- /** Angle removed between adjacent arcs, split between both ends. Defaults to `0`. */
11
- padAngle?: number;
12
- /** Radius the pad angle is measured at. Defaults to `sqrt(inner² + outer²)` like d3. */
13
- padRadius?: number;
14
- /** Radius of the rounded corners, clamped to half the ring thickness. Defaults to `0`. */
15
- cornerRadius?: number;
16
- /** Decimal places kept in the path data. Defaults to `2`. */
17
- precision?: number;
18
- }
19
- /** Midpoint of an arc, e.g. to anchor a tooltip or label (like d3's `arc.centroid`). */
20
- declare function arcCentroid(options: ArcOptions): [number, number];
21
- /** Pad angle giving a constant `gap` (in pixels) between arcs of a ring. */
22
- declare function padAngleForGap(gap: number, innerRadius: number, outerRadius: number): number;
23
- /**
24
- * The same sector as {@link arcPath}, drawn with a fixed command structure:
25
- * every corner is always present (zero length when there is none) and each
26
- * ring is split into two half arcs, so the large-arc flag never flips.
27
- * Paths of different angles therefore keep their commands while an arc is
28
- * redrawn frame by frame, turning to its new angles (see `sweep`).
29
- */
30
- declare function arcPathStable(options: ArcOptions): string;
31
- //#endregion
32
- //#region src/components/grid.d.ts
1
+ import { D as ChartPlugin, Tt as Hit, gt as Tick } from "./chart-kqFMEwDo.cjs";
2
+ import { s as Rect } from "./annotations-CHafaGd4.cjs";
3
+ import "./area-CJX9219z.cjs";
4
+ import "./bar-BDLR4p9c.cjs";
5
+ import "./candlestick-Dq7qp-F0.cjs";
6
+ import "./gauge-BSist7My.cjs";
7
+ import "./heatmap-Dp_oyEe0.cjs";
8
+ import "./line-_rNdeKmS.cjs";
9
+ import "./parliament-CgsVnWEe.cjs";
10
+ import "./percentage-bar-tepMr7Hd.cjs";
11
+ import "./pie-BXg2gNpb.cjs";
12
+ import "./radar-D1-lItDy.cjs";
13
+ import "./sankey-Dk7jUt8x.cjs";
14
+ import "./scatter-DZeEIfyo.cjs";
15
+ import "./sparkline-DAP6jtzw.cjs";
16
+ import "./treemap-BAkhmVQc.cjs";
17
+ import { l as VNode, r as Child } from "./vnode-Du2cC8Fm.cjs";
18
+ import "./time-B4oxWHQI.cjs";
19
+ import "./band-CNKvdnTC.cjs";
20
+ import "./log-CI41TmcU.cjs";
21
+ import "./path-YeUiOfG8.cjs";
33
22
  interface GridOptions {
34
23
  /** `'y'` draws horizontal lines at y ticks, `'x'` vertical lines at x ticks. */
35
24
  direction: "x" | "y";
@@ -41,8 +30,6 @@ interface GridOptions {
41
30
  * value `0` also gets `tc-grid-line-zero`, so the baseline can be emphasized.
42
31
  */
43
32
  declare function grid(options: GridOptions): VNode;
44
- //#endregion
45
- //#region src/components/hover.d.ts
46
33
  /**
47
34
  * Hover marks drawn below the series: a band behind the hovered category of
48
35
  * band charts (bars), or a vertical crosshair for point charts (lines).
@@ -53,33 +40,23 @@ declare function hoverUnderlay(hit: Hit, crosshair?: boolean): VNode;
53
40
  * an active dot on every point of point charts (of the series' `shape`, if given).
54
41
  */
55
42
  declare function hoverOverlay(hit: Hit, radius?: number, shape?: (slot: number, x: number, y: number, r: number) => string): VNode;
56
- //#endregion
57
- //#region src/plugins/highlight.d.ts
58
43
  /**
59
44
  * Draws the highlighted category: a crosshair (or a band behind bars) under
60
45
  * the series and active dots above them. `crosshair: false` keeps the dots.
61
46
  */
62
47
  declare function highlight(): ChartPlugin;
63
- //#endregion
64
- //#region src/plugins/keyboard.d.ts
65
48
  declare function keyboard(): ChartPlugin;
66
- //#endregion
67
- //#region src/plugins/legend.d.ts
68
49
  /**
69
50
  * An HTML legend (`.tc-legend`) with toggle buttons, above or below the SVG.
70
51
  * Shown for two or more entries unless the `legend` option says otherwise.
71
52
  */
72
53
  declare function legend(): ChartPlugin;
73
- //#endregion
74
- //#region src/plugins/pointer.d.ts
75
54
  /**
76
55
  * Pointer input: hovering highlights what is under the pointer and emits
77
56
  * `hover`, clicking emits `click`. The highlight and tooltip plugins turn it
78
57
  * on themselves; add it to a bare `Chart` that only needs the events.
79
58
  */
80
59
  declare function pointer(): ChartPlugin;
81
- //#endregion
82
- //#region src/plugins/sync.d.ts
83
60
  /**
84
61
  * Shared hover across charts: charts with the same `sync` group highlight
85
62
  * the category under the pointer in any of them (with its crosshair and
@@ -87,22 +64,15 @@ declare function pointer(): ChartPlugin;
87
64
  * highlights stay in their own chart.
88
65
  */
89
66
  declare function sync(): ChartPlugin;
90
- //#endregion
91
- //#region src/plugins/table.d.ts
92
67
  declare function dataTable(): ChartPlugin;
93
- //#endregion
94
- //#region src/plugins/tooltip.d.ts
95
68
  /**
96
69
  * An HTML tooltip (`.tc-tooltip`) for the highlighted category, placed next
97
- * to it inside the chart element. Configure it with the `tooltip` option.
70
+ * to it inside the chart element. Configure it with the `tooltip` option;
71
+ * `theme: 'light'` adds `.tc-tooltip-light` for the white variant.
98
72
  */
99
73
  declare function tooltip(): ChartPlugin;
100
- //#endregion
101
- //#region src/plugins/index.d.ts
102
74
  /** The built-in plugins installed by the default `Chart` from `@tabler/charts`. */
103
75
  declare function defaultPlugins(): ChartPlugin[];
104
- //#endregion
105
- //#region src/render/dom.d.ts
106
76
  /**
107
77
  * Render a VNode tree into `container`.
108
78
  *
@@ -119,8 +89,6 @@ declare function defaultPlugins(): ChartPlugin[];
119
89
  * Otherwise the root takes its place.
120
90
  */
121
91
  declare function render(container: Element, vnode: VNode | null, replace?: Element | null): Element | null;
122
- //#endregion
123
- //#region src/render/string.d.ts
124
92
  interface RenderToStringOptions {
125
93
  /**
126
94
  * Add `xmlns` to a root `<svg>` that has none, so the output is a valid
@@ -148,15 +116,11 @@ declare function renderToString(node: Child, options?: RenderToStringOptions): s
148
116
  declare function escapeText(value: string): string;
149
117
  /** Escape a double-quoted attribute value. */
150
118
  declare function escapeAttr(value: string): string;
151
- //#endregion
152
- //#region src/scales/extent.d.ts
153
119
  /**
154
120
  * Minimum and maximum of `values`, skipping `null`, `undefined` and
155
121
  * non-finite numbers. Returns `undefined` when nothing is left.
156
122
  */
157
123
  declare function extent(values: Iterable<number | null | undefined>): [number, number] | undefined;
158
- //#endregion
159
- //#region src/scales/ticks.d.ts
160
124
  /**
161
125
  * Roughly `count` evenly spaced, "nice" values (multiples of 1, 2 or 5 × 10ⁿ)
162
126
  * between `start` and `stop`, inclusive. Order follows `start → stop`.
@@ -176,8 +140,6 @@ declare function tickStep(start: number, stop: number, count?: number): number;
176
140
  * domain is returned unchanged, matching d3.
177
141
  */
178
142
  declare function niceDomain(start: number, stop: number, count?: number): [number, number];
179
- //#endregion
180
- //#region src/scheduler.d.ts
181
143
  /** Run `task` in the next frame, replacing any task already queued for `key`. */
182
144
  declare function schedule(key: object, task: () => void): void;
183
145
  /** Drop the task queued for `key`, if any. */
@@ -189,8 +151,6 @@ declare function cancel(key: object): void;
189
151
  * frame, instead of looping in this one and freezing the page.
190
152
  */
191
153
  declare function flush(): number;
192
- //#endregion
193
- //#region src/shapes/bar.d.ts
194
154
  /**
195
155
  * Path of a vertical bar from `baseline` to `value` (both y in pixels),
196
156
  * `x`…`x + width` wide. Only the data end is rounded, with `radius` clamped
@@ -210,10 +170,6 @@ declare function barPath(x: number, width: number, baseline: number, value: numb
210
170
  * Same commands as `barPath`, so a chart can morph between orientations.
211
171
  */
212
172
  declare function hbarPath(y: number, height: number, baseline: number, value: number, radius?: number): string;
213
- //#endregion
214
- //#region src/core.d.ts
215
173
  /** Version of the `@tabler/charts` package. */
216
174
  declare const VERSION: string;
217
- //#endregion
218
- export { arcCentroid as A, keyboard as C, GridOptions as D, hoverUnderlay as E, padAngleForGap as M, grid as O, legend as S, hoverOverlay as T, defaultPlugins as _, flush as a, sync as b, tickIncrement as c, extent as d, RenderToStringOptions as f, render as g, renderToString as h, cancel as i, arcPathStable as j, ArcOptions as k, tickStep as l, escapeText as m, barPath as n, schedule as o, escapeAttr as p, hbarPath as r, niceDomain as s, VERSION as t, ticks as u, tooltip as v, highlight as w, pointer as x, dataTable as y };
219
- //# sourceMappingURL=core-CnGFKojH.d.cts.map
175
+ export { keyboard as C, GridOptions as D, hoverUnderlay as E, grid as O, legend as S, hoverOverlay as T, defaultPlugins as _, flush as a, sync as b, tickIncrement as c, extent as d, RenderToStringOptions as f, render as g, renderToString as h, cancel as i, tickStep as l, escapeText as m, barPath as n, schedule as o, escapeAttr as p, hbarPath as r, niceDomain as s, VERSION as t, ticks as u, tooltip as v, highlight as w, pointer as x, dataTable as y };
package/dist/core.cjs CHANGED
@@ -1,32 +1,35 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_layout = require("./layout-CtMBhNd9.cjs");
3
- const require_vnode = require("./vnode-CkQ27Cxe.cjs");
4
- const require_format = require("./format-B0yKXBTH.cjs");
5
- const require_cartesian = require("./cartesian-BoDfgBCV.cjs");
6
- const require_features = require("./features-BclHgg2W.cjs");
7
- const require_extent = require("./extent-DsFWvAHJ.cjs");
8
- const require_chart = require("./chart-CowF_lWY.cjs");
9
- const require_dom = require("./dom-CLF868Qs.cjs");
10
- const require_fade = require("./fade-Cs74puQS.cjs");
11
- const require_core = require("./core-C7fPm6t7.cjs");
12
- const require_line = require("./line-fQbtP_jL.cjs");
13
- const require_area = require("./area-sHCE3pg5.cjs");
14
- const require_bar = require("./bar-DGuUN3nc.cjs");
15
- const require_bar$1 = require("./bar-C-7zR2qp.cjs");
16
- const require_candlestick = require("./candlestick-B5r1w3kc.cjs");
17
- const require_sweep = require("./sweep-Duowaput.cjs");
18
- const require_gauge = require("./gauge-CEfkWXSu.cjs");
19
- const require_heatmap = require("./heatmap-BK18EBgJ.cjs");
20
- const require_pie = require("./pie-C1Pa6W_l.cjs");
21
- const require_radar = require("./radar-CoGUNNSb.cjs");
22
- const require_sankey = require("./sankey-Bacx4fVe.cjs");
23
- const require_scatter = require("./scatter-DgMN9zRy.cjs");
24
- const require_sparkline = require("./sparkline-BS9-hltA.cjs");
2
+ const require_layout = require("./layout-JY2aR-yE.cjs");
3
+ const require_vnode = require("./vnode-ClAiw28x.cjs");
4
+ const require_format = require("./format-CAE5ruy6.cjs");
5
+ const require_cartesian = require("./cartesian-DV02PsBe.cjs");
6
+ const require_features = require("./features-DCXEvoya.cjs");
7
+ const require_extent = require("./extent-DuYDcvM9.cjs");
8
+ const require_chart = require("./chart-e2VqomCI.cjs");
9
+ const require_dom = require("./dom-D_g13XWY.cjs");
10
+ const require_fade = require("./fade-DVTkhrFU.cjs");
11
+ const require_core = require("./core-DIOC61up.cjs");
12
+ const require_line = require("./line-Dbt6KFRK.cjs");
13
+ const require_area = require("./area-4eRs3c0K.cjs");
14
+ const require_bar = require("./bar-LYIF8MEz.cjs");
15
+ const require_bar$1 = require("./bar-Da6dE_nI.cjs");
16
+ const require_candlestick = require("./candlestick-CYCQXgky.cjs");
17
+ const require_arc = require("./arc-CYhI62kO.cjs");
18
+ const require_gauge = require("./gauge-DXkjXNCD.cjs");
19
+ const require_heatmap = require("./heatmap-CXhlrLTl.cjs");
20
+ const require_parliament = require("./parliament-x5hcFaQ3.cjs");
21
+ const require_percentage_bar = require("./percentage-bar-ybNS3goo.cjs");
22
+ const require_pie = require("./pie-BpjvSPnz.cjs");
23
+ const require_radar = require("./radar-HPDrIdzc.cjs");
24
+ const require_sankey = require("./sankey-fCoo1cpz.cjs");
25
+ const require_scatter = require("./scatter-DVqB_fP9.cjs");
26
+ const require_sparkline = require("./sparkline-B39NA0Mi.cjs");
27
+ const require_treemap = require("./treemap-BWpEUlDh.cjs");
25
28
  exports.Chart = require_chart.Chart;
26
29
  exports.LINE_HEIGHT = require_layout.LINE_HEIGHT;
27
30
  exports.VERSION = require_core.VERSION;
28
- exports.arcCentroid = require_sweep.arcCentroid;
29
- exports.arcPathStable = require_sweep.arcPathStable;
31
+ exports.arcCentroid = require_arc.arcCentroid;
32
+ exports.arcPathStable = require_arc.arcPathStable;
30
33
  exports.area = require_area.area;
31
34
  exports.areaPath = require_fade.areaPath;
32
35
  exports.axis = require_cartesian.axis;
@@ -83,7 +86,9 @@ exports.linearTicks = require_cartesian.linearTicks;
83
86
  exports.niceDomain = require_cartesian.niceDomain;
84
87
  exports.normalizeClass = require_vnode.normalizeClass;
85
88
  exports.normalizeStyle = require_vnode.normalizeStyle;
86
- exports.padAngleForGap = require_sweep.padAngleForGap;
89
+ exports.padAngleForGap = require_arc.padAngleForGap;
90
+ exports.parliament = require_parliament.parliament;
91
+ exports.percentageBar = require_percentage_bar.percentageBar;
87
92
  exports.pie = require_pie.pie;
88
93
  exports.placeTooltip = require_core.placeTooltip;
89
94
  exports.point = require_cartesian.point;
@@ -111,3 +116,4 @@ exports.tickStep = require_cartesian.tickStep;
111
116
  exports.ticks = require_cartesian.ticks;
112
117
  exports.tooltip = require_core.tooltip;
113
118
  exports.tooltipContent = require_core.tooltipContent;
119
+ exports.treemap = require_treemap.treemap;
package/dist/core.d.cts CHANGED
@@ -1,20 +1,23 @@
1
- import { a as InsetsInput, c as estimateTextWidth, i as Insets, l as innerRect, o as LINE_HEIGHT, s as Rect, t as Annotation, u as insets } from "./annotations-lyt0I3HU.cjs";
2
- import { a as point, i as band, n as BandScale, r as BandScaleOptions, t as BandKey } from "./band-DTcNDAFO.cjs";
3
- import { a as ClassValue, c as StyleValue, d as normalizeClass, f as normalizeStyle, i as ChildInput, l as VNode, n as Attrs, o as Key, r as Child, s as Props, t as AttrValue, u as h } from "./vnode-BUflsBsa.cjs";
4
- import { $ as CartesianOptions, C as DownloadOption, Ct as HitTester, D as ChartPlugin, E as BeforeRenderState, F as register, J as LegendItem, M as Features, N as feature, O as PluginInstance, P as features, Q as CartesianData, S as DownloadMenuOptions, St as HitItem, T as AfterRenderState, X as defaultHidden, Y as LegendOptions, Z as legendContent, _ as TooltipPlacement, _t as thinTicks, a as ChartType, at as domainOf, b as tooltipContent, bt as tableContent, c as Size, ct as seriesTable, d as chartLabel, dt as LinearTicksOptions, et as CategoryAxisOptions, f as chartToString, ft as Tick, g as TooltipOptions, gt as linearTicks, h as resolveSize, ht as bandTicks, i as ChartEvents, it as categoryInteraction, l as buildChart, lt as AxisOptions, m as resolveLegend, mt as axisSize, n as Chart, nt as Series, o as RenderContext, ot as seriesKey, p as renderContext, pt as axis, r as ChartConfig, rt as ValueAxisOptions, s as ResolvedLegend, st as seriesLegend, t as BaseOptions, tt as Label, u as chartEvents, ut as AxisPosition, v as hitAnchor, vt as DataTable, w as download, wt as Interaction, x as DownloadFormat, xt as Hit, y as placeTooltip, yt as describeHit } from "./chart-Qa417fJo.cjs";
5
- import { c as NumberFormat, d as formatDetail, f as formatNumber, g as stepPrecision, h as getNumberFormat, l as NumberFormatOptions, m as getDateFormat, o as DateFormat, p as formatTicks, s as Locale, u as formatDate } from "./time-CNVnt-B2.cjs";
6
- import { a as linear, i as LinearScaleOptions, r as LinearScale } from "./log-CaofN3-n.cjs";
7
- import { A as arcCentroid, C as keyboard, D as GridOptions, E as hoverUnderlay, M as padAngleForGap, O as grid, S as legend, T as hoverOverlay, _ as defaultPlugins, a as flush, b as sync, c as tickIncrement, d as extent, f as RenderToStringOptions, g as render, h as renderToString, i as cancel, j as arcPathStable, k as ArcOptions, l as tickStep, m as escapeText, n as barPath, o as schedule, p as escapeAttr, r as hbarPath, s as niceDomain, t as VERSION, u as ticks, v as tooltip, w as highlight, x as pointer, y as dataTable } from "./core-CnGFKojH.cjs";
8
- import { a as linePath, i as areaPath, n as PathOptions, r as Point, t as Curve } from "./path-CwB28da0.cjs";
9
- import { n as line, t as LineOptions } from "./line-CMDGH6q5.cjs";
10
- import { n as area, t as AreaOptions } from "./area-BFvkc-ZM.cjs";
11
- import { n as bar, t as BarOptions } from "./bar-a0h9KC8A.cjs";
12
- import { n as CandlestickOptions, r as candlestick, t as Candle } from "./candlestick-BKdPyorY.cjs";
13
- import { n as GaugeRing, r as gauge, t as GaugeOptions } from "./gauge-Cu_OFxBd.cjs";
14
- import { n as HeatmapRange, r as heatmap, t as HeatmapOptions } from "./heatmap-BwS-y0c6.cjs";
15
- import { i as pie, n as PieSlice, r as donut, t as PieOptions } from "./pie-DnQQmxkk.cjs";
16
- import { n as RadialAxisOptions, r as radar, t as RadarOptions } from "./radar-BB13CGmq.cjs";
17
- import { a as sankey, i as SankeyOptions, n as SankeyLink, r as SankeyNode, t as SankeyData } from "./sankey-B9JYnx7e.cjs";
18
- import { i as scatter, n as ScatterPoint, r as ScatterSeries, t as ScatterOptions } from "./scatter-DrJ8xYz4.cjs";
19
- import { n as sparkline, t as SparklineOptions } from "./sparkline-BG13V4Pz.cjs";
20
- export { type AfterRenderState, type Annotation, type ArcOptions, type AreaOptions, type AttrValue, type Attrs, type AxisOptions, type AxisPosition, type BandKey, type BandScale, type BandScaleOptions, type BarOptions, type BaseOptions, type BeforeRenderState, type Candle, type CandlestickOptions, type CartesianData, type CartesianOptions, type CategoryAxisOptions, Chart, type ChartConfig, type ChartEvents, type ChartPlugin, type ChartType, type Child, type ChildInput, type ClassValue, type Curve, type DataTable, type DateFormat, type DownloadFormat, type DownloadMenuOptions, type DownloadOption, type Features, type GaugeOptions, type GaugeRing, type GridOptions, type HeatmapOptions, type HeatmapRange, type Hit, type HitItem, type HitTester, type Insets, type InsetsInput, type Interaction, type Key, LINE_HEIGHT, type Label, type LegendItem, type LegendOptions, type LineOptions, type LinearScale, type LinearScaleOptions, type LinearTicksOptions, type Locale, type NumberFormat, type NumberFormatOptions, type PathOptions, type PieOptions, type PieSlice, type PluginInstance, type Point, type Props, type RadarOptions, type RadialAxisOptions, type Rect, type RenderContext, type RenderToStringOptions, type ResolvedLegend, type SankeyData, type SankeyLink, type SankeyNode, type SankeyOptions, type ScatterOptions, type ScatterPoint, type ScatterSeries, type Series, type Size, type SparklineOptions, type StyleValue, type Tick, type TooltipOptions, type TooltipPlacement, VERSION, type VNode, type ValueAxisOptions, arcCentroid, arcPathStable, area, areaPath, axis, axisSize, band, bandTicks, bar, barPath, buildChart, cancel, candlestick, categoryInteraction, chartEvents, chartLabel, chartToString, dataTable, defaultHidden, defaultPlugins, describeHit, domainOf, donut, download, escapeAttr, escapeText, estimateTextWidth, extent, feature, features, flush, formatDate, formatDetail, formatNumber, formatTicks, gauge, getDateFormat, getNumberFormat, grid, h, hbarPath, heatmap, highlight, hitAnchor, hoverOverlay, hoverUnderlay, innerRect, insets, keyboard, legend, legendContent, line, linePath, linear, linearTicks, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, pie, placeTooltip, point, pointer, radar, register, render, renderContext, renderToString, resolveLegend, resolveSize, sankey, scatter, schedule, seriesKey, seriesLegend, seriesTable, sparkline, stepPrecision, sync, tableContent, thinTicks, tickIncrement, tickStep, ticks, tooltip, tooltipContent };
1
+ import { a as linear, i as LinearScaleOptions, r as LinearScale } from "./log-CI41TmcU.cjs";
2
+ import { c as NumberFormat, d as formatDetail, f as formatNumber, g as stepPrecision, h as getNumberFormat, l as NumberFormatOptions, m as getDateFormat, o as DateFormat, p as formatTicks, s as Locale, u as formatDate } from "./time-B4oxWHQI.cjs";
3
+ import { a as point, i as band, n as BandScale, r as BandScaleOptions, t as BandKey } from "./band-CNKvdnTC.cjs";
4
+ import { a as linePath, i as areaPath, n as PathOptions, r as Point, t as Curve } from "./path-YeUiOfG8.cjs";
5
+ import { a as InsetsInput, c as estimateTextWidth, i as Insets, l as innerRect, o as LINE_HEIGHT, s as Rect, t as Annotation, u as insets } from "./annotations-CHafaGd4.cjs";
6
+ import { $ as LegendOptions, C as DownloadOption, Ct as describeHit, D as ChartPlugin, Dt as HitTester, E as BeforeRenderState, Et as HitItem, F as register, I as ArcOptions, L as arcCentroid, M as Features, N as feature, O as PluginInstance, Ot as Interaction, P as features, Q as LegendItem, R as arcPathStable, S as DownloadMenuOptions, St as DataTable, T as AfterRenderState, Tt as Hit, _ as TooltipPlacement, _t as axis, a as ChartType, at as Label, b as tooltipContent, bt as linearTicks, c as Size, ct as categoryInteraction, d as chartLabel, dt as seriesLegend, et as defaultHidden, f as chartToString, ft as seriesTable, g as TooltipOptions, gt as Tick, h as resolveSize, ht as LinearTicksOptions, i as ChartEvents, it as CategoryAxisOptions, l as buildChart, lt as domainOf, m as resolveLegend, mt as AxisPosition, n as Chart, nt as CartesianData, o as RenderContext, ot as Series, p as renderContext, pt as AxisOptions, r as ChartConfig, rt as CartesianOptions, s as ResolvedLegend, st as ValueAxisOptions, t as BaseOptions, tt as legendContent, u as chartEvents, ut as seriesKey, v as hitAnchor, vt as axisSize, w as download, wt as tableContent, x as DownloadFormat, xt as thinTicks, y as placeTooltip, yt as bandTicks, z as padAngleForGap } from "./chart-kqFMEwDo.cjs";
7
+ import { a as ClassValue, c as StyleValue, d as normalizeClass, f as normalizeStyle, i as ChildInput, l as VNode, n as Attrs, o as Key, r as Child, s as Props, t as AttrValue, u as h } from "./vnode-Du2cC8Fm.cjs";
8
+ import { n as line, t as LineOptions } from "./line-_rNdeKmS.cjs";
9
+ import { n as area, t as AreaOptions } from "./area-CJX9219z.cjs";
10
+ import { n as bar, t as BarOptions } from "./bar-BDLR4p9c.cjs";
11
+ import { n as CandlestickOptions, r as candlestick, t as Candle } from "./candlestick-Dq7qp-F0.cjs";
12
+ import { n as GaugeRing, r as gauge, t as GaugeOptions } from "./gauge-BSist7My.cjs";
13
+ import { n as HeatmapRange, r as heatmap, t as HeatmapOptions } from "./heatmap-Dp_oyEe0.cjs";
14
+ import { n as ParliamentParty, r as parliament, t as ParliamentOptions } from "./parliament-CgsVnWEe.cjs";
15
+ import { n as PercentageBarSegment, r as percentageBar, t as PercentageBarOptions } from "./percentage-bar-tepMr7Hd.cjs";
16
+ import { i as pie, n as PieSlice, r as donut, t as PieOptions } from "./pie-BXg2gNpb.cjs";
17
+ import { n as RadialAxisOptions, r as radar, t as RadarOptions } from "./radar-D1-lItDy.cjs";
18
+ import { a as sankey, i as SankeyOptions, n as SankeyLink, r as SankeyNode, t as SankeyData } from "./sankey-Dk7jUt8x.cjs";
19
+ import { i as scatter, n as ScatterPoint, r as ScatterSeries, t as ScatterOptions } from "./scatter-DZeEIfyo.cjs";
20
+ import { n as sparkline, t as SparklineOptions } from "./sparkline-DAP6jtzw.cjs";
21
+ import { n as TreemapOptions, r as treemap, t as TreemapNode } from "./treemap-BAkhmVQc.cjs";
22
+ import { C as keyboard, D as GridOptions, E as hoverUnderlay, O as grid, S as legend, T as hoverOverlay, _ as defaultPlugins, a as flush, b as sync, c as tickIncrement, d as extent, f as RenderToStringOptions, g as render, h as renderToString, i as cancel, l as tickStep, m as escapeText, n as barPath, o as schedule, p as escapeAttr, r as hbarPath, s as niceDomain, t as VERSION, u as ticks, v as tooltip, w as highlight, x as pointer, y as dataTable } from "./core-PAX5ogLk.cjs";
23
+ export { type AfterRenderState, type Annotation, type ArcOptions, type AreaOptions, type AttrValue, type Attrs, type AxisOptions, type AxisPosition, type BandKey, type BandScale, type BandScaleOptions, type BarOptions, type BaseOptions, type BeforeRenderState, type Candle, type CandlestickOptions, type CartesianData, type CartesianOptions, type CategoryAxisOptions, Chart, type ChartConfig, type ChartEvents, type ChartPlugin, type ChartType, type Child, type ChildInput, type ClassValue, type Curve, type DataTable, type DateFormat, type DownloadFormat, type DownloadMenuOptions, type DownloadOption, type Features, type GaugeOptions, type GaugeRing, type GridOptions, type HeatmapOptions, type HeatmapRange, type Hit, type HitItem, type HitTester, type Insets, type InsetsInput, type Interaction, type Key, LINE_HEIGHT, type Label, type LegendItem, type LegendOptions, type LineOptions, type LinearScale, type LinearScaleOptions, type LinearTicksOptions, type Locale, type NumberFormat, type NumberFormatOptions, type ParliamentOptions, type ParliamentParty, type PathOptions, type PercentageBarOptions, type PercentageBarSegment, type PieOptions, type PieSlice, type PluginInstance, type Point, type Props, type RadarOptions, type RadialAxisOptions, type Rect, type RenderContext, type RenderToStringOptions, type ResolvedLegend, type SankeyData, type SankeyLink, type SankeyNode, type SankeyOptions, type ScatterOptions, type ScatterPoint, type ScatterSeries, type Series, type Size, type SparklineOptions, type StyleValue, type Tick, type TooltipOptions, type TooltipPlacement, type TreemapNode, type TreemapOptions, VERSION, type VNode, type ValueAxisOptions, arcCentroid, arcPathStable, area, areaPath, axis, axisSize, band, bandTicks, bar, barPath, buildChart, cancel, candlestick, categoryInteraction, chartEvents, chartLabel, chartToString, dataTable, defaultHidden, defaultPlugins, describeHit, domainOf, donut, download, escapeAttr, escapeText, estimateTextWidth, extent, feature, features, flush, formatDate, formatDetail, formatNumber, formatTicks, gauge, getDateFormat, getNumberFormat, grid, h, hbarPath, heatmap, highlight, hitAnchor, hoverOverlay, hoverUnderlay, innerRect, insets, keyboard, legend, legendContent, line, linePath, linear, linearTicks, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, parliament, percentageBar, pie, placeTooltip, point, pointer, radar, register, render, renderContext, renderToString, resolveLegend, resolveSize, sankey, scatter, schedule, seriesKey, seriesLegend, seriesTable, sparkline, stepPrecision, sync, tableContent, thinTicks, tickIncrement, tickStep, ticks, tooltip, tooltipContent, treemap };
package/dist/core.d.ts CHANGED
@@ -1,20 +1,23 @@
1
- import { a as InsetsInput, c as estimateTextWidth, i as Insets, l as innerRect, o as LINE_HEIGHT, s as Rect, t as Annotation, u as insets } from "./annotations-Bp7HwtF5.js";
2
- import { a as point, i as band, n as BandScale, r as BandScaleOptions, t as BandKey } from "./band-DTcNDAFO.js";
3
- import { a as ClassValue, c as StyleValue, d as normalizeClass, f as normalizeStyle, i as ChildInput, l as VNode, n as Attrs, o as Key, r as Child, s as Props, t as AttrValue, u as h } from "./vnode-BUflsBsa.js";
4
- import { $ as CartesianOptions, C as DownloadOption, Ct as HitTester, D as ChartPlugin, E as BeforeRenderState, F as register, J as LegendItem, M as Features, N as feature, O as PluginInstance, P as features, Q as CartesianData, S as DownloadMenuOptions, St as HitItem, T as AfterRenderState, X as defaultHidden, Y as LegendOptions, Z as legendContent, _ as TooltipPlacement, _t as thinTicks, a as ChartType, at as domainOf, b as tooltipContent, bt as tableContent, c as Size, ct as seriesTable, d as chartLabel, dt as LinearTicksOptions, et as CategoryAxisOptions, f as chartToString, ft as Tick, g as TooltipOptions, gt as linearTicks, h as resolveSize, ht as bandTicks, i as ChartEvents, it as categoryInteraction, l as buildChart, lt as AxisOptions, m as resolveLegend, mt as axisSize, n as Chart, nt as Series, o as RenderContext, ot as seriesKey, p as renderContext, pt as axis, r as ChartConfig, rt as ValueAxisOptions, s as ResolvedLegend, st as seriesLegend, t as BaseOptions, tt as Label, u as chartEvents, ut as AxisPosition, v as hitAnchor, vt as DataTable, w as download, wt as Interaction, x as DownloadFormat, xt as Hit, y as placeTooltip, yt as describeHit } from "./chart-iJGxMz9z.js";
5
- import { c as NumberFormat, d as formatDetail, f as formatNumber, g as stepPrecision, h as getNumberFormat, l as NumberFormatOptions, m as getDateFormat, o as DateFormat, p as formatTicks, s as Locale, u as formatDate } from "./time-CHjiY9Q4.js";
6
- import { a as linear, i as LinearScaleOptions, r as LinearScale } from "./log-CaofN3-n.js";
7
- import { A as arcCentroid, C as keyboard, D as GridOptions, E as hoverUnderlay, M as padAngleForGap, O as grid, S as legend, T as hoverOverlay, _ as defaultPlugins, a as flush, b as sync, c as tickIncrement, d as extent, f as RenderToStringOptions, g as render, h as renderToString, i as cancel, j as arcPathStable, k as ArcOptions, l as tickStep, m as escapeText, n as barPath, o as schedule, p as escapeAttr, r as hbarPath, s as niceDomain, t as VERSION, u as ticks, v as tooltip, w as highlight, x as pointer, y as dataTable } from "./core-CjgbhS_v.js";
8
- import { a as linePath, i as areaPath, n as PathOptions, r as Point, t as Curve } from "./path-CwB28da0.js";
9
- import { n as line, t as LineOptions } from "./line-D5kb8e6w.js";
10
- import { n as area, t as AreaOptions } from "./area-DaO4MQl4.js";
11
- import { n as bar, t as BarOptions } from "./bar-DdsDxk3W.js";
12
- import { n as CandlestickOptions, r as candlestick, t as Candle } from "./candlestick-BnUG1SGi.js";
13
- import { n as GaugeRing, r as gauge, t as GaugeOptions } from "./gauge-Cu9jttC0.js";
14
- import { n as HeatmapRange, r as heatmap, t as HeatmapOptions } from "./heatmap-PhLPXIg1.js";
15
- import { i as pie, n as PieSlice, r as donut, t as PieOptions } from "./pie-B8UlOZiq.js";
16
- import { n as RadialAxisOptions, r as radar, t as RadarOptions } from "./radar-pFI6fvOq.js";
17
- import { a as sankey, i as SankeyOptions, n as SankeyLink, r as SankeyNode, t as SankeyData } from "./sankey-Bm518bqL.js";
18
- import { i as scatter, n as ScatterPoint, r as ScatterSeries, t as ScatterOptions } from "./scatter-Bl7nasE6.js";
19
- import { n as sparkline, t as SparklineOptions } from "./sparkline-iWuXbKpd.js";
20
- export { type AfterRenderState, type Annotation, type ArcOptions, type AreaOptions, type AttrValue, type Attrs, type AxisOptions, type AxisPosition, type BandKey, type BandScale, type BandScaleOptions, type BarOptions, type BaseOptions, type BeforeRenderState, type Candle, type CandlestickOptions, type CartesianData, type CartesianOptions, type CategoryAxisOptions, Chart, type ChartConfig, type ChartEvents, type ChartPlugin, type ChartType, type Child, type ChildInput, type ClassValue, type Curve, type DataTable, type DateFormat, type DownloadFormat, type DownloadMenuOptions, type DownloadOption, type Features, type GaugeOptions, type GaugeRing, type GridOptions, type HeatmapOptions, type HeatmapRange, type Hit, type HitItem, type HitTester, type Insets, type InsetsInput, type Interaction, type Key, LINE_HEIGHT, type Label, type LegendItem, type LegendOptions, type LineOptions, type LinearScale, type LinearScaleOptions, type LinearTicksOptions, type Locale, type NumberFormat, type NumberFormatOptions, type PathOptions, type PieOptions, type PieSlice, type PluginInstance, type Point, type Props, type RadarOptions, type RadialAxisOptions, type Rect, type RenderContext, type RenderToStringOptions, type ResolvedLegend, type SankeyData, type SankeyLink, type SankeyNode, type SankeyOptions, type ScatterOptions, type ScatterPoint, type ScatterSeries, type Series, type Size, type SparklineOptions, type StyleValue, type Tick, type TooltipOptions, type TooltipPlacement, VERSION, type VNode, type ValueAxisOptions, arcCentroid, arcPathStable, area, areaPath, axis, axisSize, band, bandTicks, bar, barPath, buildChart, cancel, candlestick, categoryInteraction, chartEvents, chartLabel, chartToString, dataTable, defaultHidden, defaultPlugins, describeHit, domainOf, donut, download, escapeAttr, escapeText, estimateTextWidth, extent, feature, features, flush, formatDate, formatDetail, formatNumber, formatTicks, gauge, getDateFormat, getNumberFormat, grid, h, hbarPath, heatmap, highlight, hitAnchor, hoverOverlay, hoverUnderlay, innerRect, insets, keyboard, legend, legendContent, line, linePath, linear, linearTicks, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, pie, placeTooltip, point, pointer, radar, register, render, renderContext, renderToString, resolveLegend, resolveSize, sankey, scatter, schedule, seriesKey, seriesLegend, seriesTable, sparkline, stepPrecision, sync, tableContent, thinTicks, tickIncrement, tickStep, ticks, tooltip, tooltipContent };
1
+ import { a as InsetsInput, c as estimateTextWidth, i as Insets, l as innerRect, o as LINE_HEIGHT, s as Rect, t as Annotation, u as insets } from "./annotations-B02GR_KU.js";
2
+ import { a as point, i as band, n as BandScale, r as BandScaleOptions, t as BandKey } from "./band-CNKvdnTC.js";
3
+ import { a as ClassValue, c as StyleValue, d as normalizeClass, f as normalizeStyle, i as ChildInput, l as VNode, n as Attrs, o as Key, r as Child, s as Props, t as AttrValue, u as h } from "./vnode-Du2cC8Fm.js";
4
+ import { $ as CartesianOptions, C as DownloadOption, Ct as HitTester, D as ChartPlugin, E as BeforeRenderState, F as register, J as LegendItem, M as Features, N as feature, O as PluginInstance, P as features, Q as CartesianData, S as DownloadMenuOptions, St as HitItem, T as AfterRenderState, X as defaultHidden, Y as LegendOptions, Z as legendContent, _ as TooltipPlacement, _t as thinTicks, a as ChartType, at as domainOf, b as tooltipContent, bt as tableContent, c as Size, ct as seriesTable, d as chartLabel, dt as LinearTicksOptions, et as CategoryAxisOptions, f as chartToString, ft as Tick, g as TooltipOptions, gt as linearTicks, h as resolveSize, ht as bandTicks, i as ChartEvents, it as categoryInteraction, l as buildChart, lt as AxisOptions, m as resolveLegend, mt as axisSize, n as Chart, nt as Series, o as RenderContext, ot as seriesKey, p as renderContext, pt as axis, r as ChartConfig, rt as ValueAxisOptions, s as ResolvedLegend, st as seriesLegend, t as BaseOptions, tt as Label, u as chartEvents, ut as AxisPosition, v as hitAnchor, vt as DataTable, w as download, wt as Interaction, x as DownloadFormat, xt as Hit, y as placeTooltip, yt as describeHit } from "./chart-QilhWP8Z.js";
5
+ import { c as NumberFormat, d as formatDetail, f as formatNumber, g as stepPrecision, h as getNumberFormat, l as NumberFormatOptions, m as getDateFormat, o as DateFormat, p as formatTicks, s as Locale, u as formatDate } from "./time-DRIDgv2a.js";
6
+ import { a as linear, i as LinearScaleOptions, r as LinearScale } from "./log-CI41TmcU.js";
7
+ import { A as arcCentroid, C as keyboard, D as GridOptions, E as hoverUnderlay, M as padAngleForGap, O as grid, S as legend, T as hoverOverlay, _ as defaultPlugins, a as flush, b as sync, c as tickIncrement, d as extent, f as RenderToStringOptions, g as render, h as renderToString, i as cancel, j as arcPathStable, k as ArcOptions, l as tickStep, m as escapeText, n as barPath, o as schedule, p as escapeAttr, r as hbarPath, s as niceDomain, t as VERSION, u as ticks, v as tooltip, w as highlight, x as pointer, y as dataTable } from "./core-DRUCk67j.js";
8
+ import { a as linePath, i as areaPath, n as PathOptions, r as Point, t as Curve } from "./path-YeUiOfG8.js";
9
+ import { n as line, t as LineOptions } from "./line-DtSh7HQU.js";
10
+ import { n as area, t as AreaOptions } from "./area-d11XePuw.js";
11
+ import { n as bar, t as BarOptions } from "./bar-XwzM6Pb0.js";
12
+ import { n as CandlestickOptions, r as candlestick, t as Candle } from "./candlestick-D0xKkdqd.js";
13
+ import { n as GaugeRing, r as gauge, t as GaugeOptions } from "./gauge-0VJuAHWF.js";
14
+ import { n as HeatmapRange, r as heatmap, t as HeatmapOptions } from "./heatmap-59lmClj9.js";
15
+ import { n as ParliamentParty, r as parliament, t as ParliamentOptions } from "./parliament-CLCI7tUO.js";
16
+ import { n as PercentageBarSegment, r as percentageBar, t as PercentageBarOptions } from "./percentage-bar-nhTeakD_.js";
17
+ import { i as pie, n as PieSlice, r as donut, t as PieOptions } from "./pie-CFptILSm.js";
18
+ import { n as RadialAxisOptions, r as radar, t as RadarOptions } from "./radar-BC9Skgpj.js";
19
+ import { a as sankey, i as SankeyOptions, n as SankeyLink, r as SankeyNode, t as SankeyData } from "./sankey-D_v7KxnJ.js";
20
+ import { i as scatter, n as ScatterPoint, r as ScatterSeries, t as ScatterOptions } from "./scatter-CXEsioOJ.js";
21
+ import { n as sparkline, t as SparklineOptions } from "./sparkline-cbvRkWqS.js";
22
+ import { n as TreemapOptions, r as treemap, t as TreemapNode } from "./treemap-BNpxFBao.js";
23
+ export { type AfterRenderState, type Annotation, type ArcOptions, type AreaOptions, type AttrValue, type Attrs, type AxisOptions, type AxisPosition, type BandKey, type BandScale, type BandScaleOptions, type BarOptions, type BaseOptions, type BeforeRenderState, type Candle, type CandlestickOptions, type CartesianData, type CartesianOptions, type CategoryAxisOptions, Chart, type ChartConfig, type ChartEvents, type ChartPlugin, type ChartType, type Child, type ChildInput, type ClassValue, type Curve, type DataTable, type DateFormat, type DownloadFormat, type DownloadMenuOptions, type DownloadOption, type Features, type GaugeOptions, type GaugeRing, type GridOptions, type HeatmapOptions, type HeatmapRange, type Hit, type HitItem, type HitTester, type Insets, type InsetsInput, type Interaction, type Key, LINE_HEIGHT, type Label, type LegendItem, type LegendOptions, type LineOptions, type LinearScale, type LinearScaleOptions, type LinearTicksOptions, type Locale, type NumberFormat, type NumberFormatOptions, type ParliamentOptions, type ParliamentParty, type PathOptions, type PercentageBarOptions, type PercentageBarSegment, type PieOptions, type PieSlice, type PluginInstance, type Point, type Props, type RadarOptions, type RadialAxisOptions, type Rect, type RenderContext, type RenderToStringOptions, type ResolvedLegend, type SankeyData, type SankeyLink, type SankeyNode, type SankeyOptions, type ScatterOptions, type ScatterPoint, type ScatterSeries, type Series, type Size, type SparklineOptions, type StyleValue, type Tick, type TooltipOptions, type TooltipPlacement, type TreemapNode, type TreemapOptions, VERSION, type VNode, type ValueAxisOptions, arcCentroid, arcPathStable, area, areaPath, axis, axisSize, band, bandTicks, bar, barPath, buildChart, cancel, candlestick, categoryInteraction, chartEvents, chartLabel, chartToString, dataTable, defaultHidden, defaultPlugins, describeHit, domainOf, donut, download, escapeAttr, escapeText, estimateTextWidth, extent, feature, features, flush, formatDate, formatDetail, formatNumber, formatTicks, gauge, getDateFormat, getNumberFormat, grid, h, hbarPath, heatmap, highlight, hitAnchor, hoverOverlay, hoverUnderlay, innerRect, insets, keyboard, legend, legendContent, line, linePath, linear, linearTicks, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, parliament, percentageBar, pie, placeTooltip, point, pointer, radar, register, render, renderContext, renderToString, resolveLegend, resolveSize, sankey, scatter, schedule, seriesKey, seriesLegend, seriesTable, sparkline, stepPrecision, sync, tableContent, thinTicks, tickIncrement, tickStep, ticks, tooltip, tooltipContent, treemap };
package/dist/core.js CHANGED
@@ -1,24 +1,27 @@
1
- import { i as insets, n as estimateTextWidth, r as innerRect, t as LINE_HEIGHT } from "./layout-B3hiqVEw.js";
2
- import { n as normalizeClass, r as normalizeStyle, t as h } from "./vnode-tCWItoUH.js";
3
- import { a as getDateFormat, i as formatTicks, n as formatDetail, o as getNumberFormat, r as formatNumber, s as stepPrecision, t as formatDate } from "./format-lStwuc1L.js";
4
- import { A as tickIncrement, C as grid, D as linearTicks, E as bandTicks, M as ticks, O as thinTicks, S as point, T as axisSize, b as linear, f as seriesKey, j as tickStep, k as niceDomain, m as seriesTable, n as categoryInteraction, p as seriesLegend, r as domainOf, w as axis, x as band } from "./cartesian-Cr0AF0nG.js";
5
- import { i as register, n as feature, r as features } from "./features-wASyHGic.js";
6
- import { t as extent } from "./extent-BAMZo0Nq.js";
7
- import { _ as defaultHidden, a as chartToString, c as resolveSize, g as renderToString, h as escapeText, i as chartLabel, l as cancel, m as escapeAttr, n as buildChart, o as renderContext, p as schedule, r as chartEvents, s as resolveLegend, t as Chart, u as flush, v as legendContent } from "./chart-BF2CK9I_.js";
8
- import { a as render } from "./dom-vP3IcMak.js";
9
- import { n as areaPath, r as linePath } from "./fade-D3NxH5Qg.js";
10
- import { _ as download, a as placeTooltip, c as sync, d as describeHit, f as tableContent, g as hoverUnderlay, h as hoverOverlay, i as hitAnchor, l as legend, m as pointer, n as defaultPlugins, o as tooltipContent, p as highlight, r as tooltip, s as dataTable, t as VERSION, u as keyboard } from "./core-plobgBC7.js";
11
- import { t as line } from "./line-B3Ed6u7j.js";
12
- import { t as area } from "./area-DQsLERhx.js";
13
- import { n as hbarPath, t as barPath } from "./bar-DM16NUvV.js";
14
- import { t as bar } from "./bar-jZEoao74.js";
15
- import { t as candlestick } from "./candlestick-DuXwAFID.js";
16
- import { a as arcPathStable, i as arcCentroid, o as padAngleForGap } from "./sweep-WSgn2etB.js";
17
- import { t as gauge } from "./gauge-_ljQHrMN.js";
18
- import { t as heatmap } from "./heatmap-DSZ2bVIa.js";
19
- import { n as pie, t as donut } from "./pie-RnMTQWMS.js";
20
- import { t as radar } from "./radar-CYPab_I4.js";
21
- import { t as sankey } from "./sankey-B4PNKusJ.js";
22
- import { t as scatter } from "./scatter-kgtgR318.js";
23
- import { t as sparkline } from "./sparkline-BQzt27Fr.js";
24
- export { Chart, LINE_HEIGHT, VERSION, arcCentroid, arcPathStable, area, areaPath, axis, axisSize, band, bandTicks, bar, barPath, buildChart, cancel, candlestick, categoryInteraction, chartEvents, chartLabel, chartToString, dataTable, defaultHidden, defaultPlugins, describeHit, domainOf, donut, download, escapeAttr, escapeText, estimateTextWidth, extent, feature, features, flush, formatDate, formatDetail, formatNumber, formatTicks, gauge, getDateFormat, getNumberFormat, grid, h, hbarPath, heatmap, highlight, hitAnchor, hoverOverlay, hoverUnderlay, innerRect, insets, keyboard, legend, legendContent, line, linePath, linear, linearTicks, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, pie, placeTooltip, point, pointer, radar, register, render, renderContext, renderToString, resolveLegend, resolveSize, sankey, scatter, schedule, seriesKey, seriesLegend, seriesTable, sparkline, stepPrecision, sync, tableContent, thinTicks, tickIncrement, tickStep, ticks, tooltip, tooltipContent };
1
+ import { i as insets, n as estimateTextWidth, r as innerRect, t as LINE_HEIGHT } from "./layout-DmrrLjwN.js";
2
+ import { n as normalizeClass, r as normalizeStyle, t as h } from "./vnode-_EMUqysL.js";
3
+ import { a as getDateFormat, i as formatTicks, n as formatDetail, o as getNumberFormat, r as formatNumber, s as stepPrecision, t as formatDate } from "./format-it1kepFG.js";
4
+ import { A as tickIncrement, C as grid, D as linearTicks, E as bandTicks, M as ticks, O as thinTicks, S as point, T as axisSize, b as linear, f as seriesKey, j as tickStep, k as niceDomain, m as seriesTable, n as categoryInteraction, p as seriesLegend, r as domainOf, w as axis, x as band } from "./cartesian-CI2x6N7N.js";
5
+ import { i as register, n as feature, r as features } from "./features-BMxkqCyS.js";
6
+ import { t as extent } from "./extent-DOV8rs-6.js";
7
+ import { _ as defaultHidden, a as chartToString, c as resolveSize, g as renderToString, h as escapeText, i as chartLabel, l as cancel, m as escapeAttr, n as buildChart, o as renderContext, p as schedule, r as chartEvents, s as resolveLegend, t as Chart, u as flush, v as legendContent } from "./chart-DWn9v6qw.js";
8
+ import { a as render } from "./dom-CuceR8gt.js";
9
+ import { n as areaPath, r as linePath } from "./fade-GGxcBdss.js";
10
+ import { _ as download, a as placeTooltip, c as sync, d as describeHit, f as tableContent, g as hoverUnderlay, h as hoverOverlay, i as hitAnchor, l as legend, m as pointer, n as defaultPlugins, o as tooltipContent, p as highlight, r as tooltip, s as dataTable, t as VERSION, u as keyboard } from "./core-BKRQvPAT.js";
11
+ import { t as line } from "./line-DO66LtwH.js";
12
+ import { t as area } from "./area-0-L1bG9B.js";
13
+ import { n as hbarPath, t as barPath } from "./bar-B5n2oq9-.js";
14
+ import { t as bar } from "./bar-BNZ3GhIw.js";
15
+ import { t as candlestick } from "./candlestick-BHQkQfxH.js";
16
+ import { i as padAngleForGap, n as arcCentroid, r as arcPathStable } from "./arc-B3V5IR0w.js";
17
+ import { t as gauge } from "./gauge-ts0kqN1-.js";
18
+ import { t as heatmap } from "./heatmap-19BGJTKF.js";
19
+ import { t as parliament } from "./parliament-Cru4IcuM.js";
20
+ import { t as percentageBar } from "./percentage-bar-B6tNOqNn.js";
21
+ import { n as pie, t as donut } from "./pie-CVsc-6qD.js";
22
+ import { t as radar } from "./radar-BR-mumDd.js";
23
+ import { t as sankey } from "./sankey-D6JeZfK5.js";
24
+ import { t as scatter } from "./scatter-C0TWjFpW.js";
25
+ import { t as sparkline } from "./sparkline-XO_TqCNP.js";
26
+ import { t as treemap } from "./treemap-CQdavQ9u.js";
27
+ export { Chart, LINE_HEIGHT, VERSION, arcCentroid, arcPathStable, area, areaPath, axis, axisSize, band, bandTicks, bar, barPath, buildChart, cancel, candlestick, categoryInteraction, chartEvents, chartLabel, chartToString, dataTable, defaultHidden, defaultPlugins, describeHit, domainOf, donut, download, escapeAttr, escapeText, estimateTextWidth, extent, feature, features, flush, formatDate, formatDetail, formatNumber, formatTicks, gauge, getDateFormat, getNumberFormat, grid, h, hbarPath, heatmap, highlight, hitAnchor, hoverOverlay, hoverUnderlay, innerRect, insets, keyboard, legend, legendContent, line, linePath, linear, linearTicks, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, parliament, percentageBar, pie, placeTooltip, point, pointer, radar, register, render, renderContext, renderToString, resolveLegend, resolveSize, sankey, scatter, schedule, seriesKey, seriesLegend, seriesTable, sparkline, stepPrecision, sync, tableContent, thinTicks, tickIncrement, tickStep, ticks, tooltip, tooltipContent, treemap };
@@ -1,6 +1,6 @@
1
- import { t as formatDate } from "./format-lStwuc1L.js";
2
- import { g as toMs } from "./cartesian-Cr0AF0nG.js";
3
- //#region src/charts/dates.ts
1
+ import { t as formatDate } from "./format-it1kepFG.js";
2
+ import { g as toMs } from "./cartesian-CI2x6N7N.js";
3
+ // src/charts/dates.ts
4
4
  /**
5
5
  * Formatter for date labels on a time axis (tooltips, tables, band axes):
6
6
  * the date, with the time of day when the labels span less than a few days.
@@ -21,7 +21,6 @@ function dateLabels(labels, utc, locale) {
21
21
  }, locale);
22
22
  return (label) => Number.isFinite(toMs(label)) ? fmt(toMs(label)) : String(label);
23
23
  }
24
- //#endregion
25
24
  export { dateLabels as t };
26
25
 
27
- //# sourceMappingURL=dates-CG-FvioW.js.map
26
+ //# sourceMappingURL=dates-C2RzY3rE.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dates-CG-FvioW.js","names":[],"sources":["../src/charts/dates.ts"],"sourcesContent":["import type { Locale } from '../format.ts'\nimport { formatDate } from '../format.ts'\nimport { type Label, toMs } from './cartesian.ts'\n\n/**\n * Formatter for date labels on a time axis (tooltips, tables, band axes):\n * the date, with the time of day when the labels span less than a few days.\n */\nexport function dateLabels(\n labels: readonly Label[],\n utc: boolean | undefined,\n locale: Locale,\n): (label: Label) => string {\n const first = labels[0]\n const last = labels[labels.length - 1]\n const span = first !== undefined && last !== undefined ? Math.abs(toMs(last) - toMs(first)) : 0\n const withTime = span > 0 && span < 3 * 24 * 60 * 60 * 1000\n const fmt = formatDate(\n {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n ...(withTime ? { hour: 'numeric', minute: '2-digit' } : {}),\n ...(utc ? { timeZone: 'UTC' } : {}),\n },\n locale,\n )\n return (label) => (Number.isFinite(toMs(label)) ? fmt(toMs(label)) : String(label))\n}\n"],"mappings":";;;;;;;AAQA,SAAgB,WACd,QACA,KACA,QAC0B;CAC1B,MAAM,QAAQ,OAAO;CACrB,MAAM,OAAO,OAAO,OAAO,SAAS;CACpC,MAAM,OAAO,UAAU,KAAA,KAAa,SAAS,KAAA,IAAY,KAAK,IAAI,KAAK,IAAI,IAAI,KAAK,KAAK,CAAC,IAAI;CAE9F,MAAM,MAAM,WACV;EACE,MAAM;EACN,OAAO;EACP,KAAK;EACL,GANa,OAAO,KAAK,OAAO,SAMjB;GAAE,MAAM;GAAW,QAAQ;EAAU,IAAI,CAAC;EACzD,GAAI,MAAM,EAAE,UAAU,MAAM,IAAI,CAAC;CACnC,GACA,MACF;CACA,QAAQ,UAAW,OAAO,SAAS,KAAK,KAAK,CAAC,IAAI,IAAI,KAAK,KAAK,CAAC,IAAI,OAAO,KAAK;AACnF"}
1
+ {"version":3,"file":"dates-C2RzY3rE.js","names":[],"sources":["../src/charts/dates.ts"],"sourcesContent":["import type { Locale } from '../format.ts'\nimport { formatDate } from '../format.ts'\nimport { type Label, toMs } from './cartesian.ts'\n\n/**\n * Formatter for date labels on a time axis (tooltips, tables, band axes):\n * the date, with the time of day when the labels span less than a few days.\n */\nexport function dateLabels(\n labels: readonly Label[],\n utc: boolean | undefined,\n locale: Locale,\n): (label: Label) => string {\n const first = labels[0]\n const last = labels[labels.length - 1]\n const span = first !== undefined && last !== undefined ? Math.abs(toMs(last) - toMs(first)) : 0\n const withTime = span > 0 && span < 3 * 24 * 60 * 60 * 1000\n const fmt = formatDate(\n {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n ...(withTime ? { hour: 'numeric', minute: '2-digit' } : {}),\n ...(utc ? { timeZone: 'UTC' } : {}),\n },\n locale,\n )\n return (label) => (Number.isFinite(toMs(label)) ? fmt(toMs(label)) : String(label))\n}\n"],"mappings":";;;;;;;AAQA,SAAgB,WACd,QACA,KACA,QAC0B;CAC1B,MAAM,QAAQ,OAAO;CACrB,MAAM,OAAO,OAAO,OAAO,SAAS;CACpC,MAAM,OAAO,UAAU,KAAA,KAAa,SAAS,KAAA,IAAY,KAAK,IAAI,KAAK,IAAI,IAAI,KAAK,KAAK,CAAC,IAAI;CAE9F,MAAM,MAAM,WACV;EACE,MAAM;EACN,OAAO;EACP,KAAK;EACL,GANa,OAAO,KAAK,OAAO,SAMjB;GAAE,MAAM;GAAW,QAAQ;EAAU,IAAI,CAAC;EACzD,GAAI,MAAM,EAAE,UAAU,MAAM,IAAI,CAAC;CACnC,GACA,MACF;CACA,QAAQ,UAAW,OAAO,SAAS,KAAK,KAAK,CAAC,IAAI,IAAI,KAAK,KAAK,CAAC,IAAI,OAAO,KAAK;AACnF"}
@@ -1,6 +1,6 @@
1
- const require_format = require("./format-B0yKXBTH.cjs");
2
- const require_cartesian = require("./cartesian-BoDfgBCV.cjs");
3
- //#region src/charts/dates.ts
1
+ const require_format = require("./format-CAE5ruy6.cjs");
2
+ const require_cartesian = require("./cartesian-DV02PsBe.cjs");
3
+ // src/charts/dates.ts
4
4
  /**
5
5
  * Formatter for date labels on a time axis (tooltips, tables, band axes):
6
6
  * the date, with the time of day when the labels span less than a few days.
@@ -21,7 +21,6 @@ function dateLabels(labels, utc, locale) {
21
21
  }, locale);
22
22
  return (label) => Number.isFinite(require_cartesian.toMs(label)) ? fmt(require_cartesian.toMs(label)) : String(label);
23
23
  }
24
- //#endregion
25
24
  Object.defineProperty(exports, "dateLabels", {
26
25
  enumerable: true,
27
26
  get: function() {
@@ -29,4 +28,4 @@ Object.defineProperty(exports, "dateLabels", {
29
28
  }
30
29
  });
31
30
 
32
- //# sourceMappingURL=dates-Btm7Zm6W.cjs.map
31
+ //# sourceMappingURL=dates-DurEr9WT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dates-Btm7Zm6W.cjs","names":["toMs","formatDate"],"sources":["../src/charts/dates.ts"],"sourcesContent":["import type { Locale } from '../format.ts'\nimport { formatDate } from '../format.ts'\nimport { type Label, toMs } from './cartesian.ts'\n\n/**\n * Formatter for date labels on a time axis (tooltips, tables, band axes):\n * the date, with the time of day when the labels span less than a few days.\n */\nexport function dateLabels(\n labels: readonly Label[],\n utc: boolean | undefined,\n locale: Locale,\n): (label: Label) => string {\n const first = labels[0]\n const last = labels[labels.length - 1]\n const span = first !== undefined && last !== undefined ? Math.abs(toMs(last) - toMs(first)) : 0\n const withTime = span > 0 && span < 3 * 24 * 60 * 60 * 1000\n const fmt = formatDate(\n {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n ...(withTime ? { hour: 'numeric', minute: '2-digit' } : {}),\n ...(utc ? { timeZone: 'UTC' } : {}),\n },\n locale,\n )\n return (label) => (Number.isFinite(toMs(label)) ? fmt(toMs(label)) : String(label))\n}\n"],"mappings":";;;;;;;AAQA,SAAgB,WACd,QACA,KACA,QAC0B;CAC1B,MAAM,QAAQ,OAAO;CACrB,MAAM,OAAO,OAAO,OAAO,SAAS;CACpC,MAAM,OAAO,UAAU,KAAA,KAAa,SAAS,KAAA,IAAY,KAAK,IAAIA,kBAAAA,KAAK,IAAI,IAAIA,kBAAAA,KAAK,KAAK,CAAC,IAAI;CAE9F,MAAM,MAAMC,eAAAA,WACV;EACE,MAAM;EACN,OAAO;EACP,KAAK;EACL,GANa,OAAO,KAAK,OAAO,SAMjB;GAAE,MAAM;GAAW,QAAQ;EAAU,IAAI,CAAC;EACzD,GAAI,MAAM,EAAE,UAAU,MAAM,IAAI,CAAC;CACnC,GACA,MACF;CACA,QAAQ,UAAW,OAAO,SAASD,kBAAAA,KAAK,KAAK,CAAC,IAAI,IAAIA,kBAAAA,KAAK,KAAK,CAAC,IAAI,OAAO,KAAK;AACnF"}
1
+ {"version":3,"file":"dates-DurEr9WT.cjs","names":["toMs","formatDate"],"sources":["../src/charts/dates.ts"],"sourcesContent":["import type { Locale } from '../format.ts'\nimport { formatDate } from '../format.ts'\nimport { type Label, toMs } from './cartesian.ts'\n\n/**\n * Formatter for date labels on a time axis (tooltips, tables, band axes):\n * the date, with the time of day when the labels span less than a few days.\n */\nexport function dateLabels(\n labels: readonly Label[],\n utc: boolean | undefined,\n locale: Locale,\n): (label: Label) => string {\n const first = labels[0]\n const last = labels[labels.length - 1]\n const span = first !== undefined && last !== undefined ? Math.abs(toMs(last) - toMs(first)) : 0\n const withTime = span > 0 && span < 3 * 24 * 60 * 60 * 1000\n const fmt = formatDate(\n {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n ...(withTime ? { hour: 'numeric', minute: '2-digit' } : {}),\n ...(utc ? { timeZone: 'UTC' } : {}),\n },\n locale,\n )\n return (label) => (Number.isFinite(toMs(label)) ? fmt(toMs(label)) : String(label))\n}\n"],"mappings":";;;;;;;AAQA,SAAgB,WACd,QACA,KACA,QAC0B;CAC1B,MAAM,QAAQ,OAAO;CACrB,MAAM,OAAO,OAAO,OAAO,SAAS;CACpC,MAAM,OAAO,UAAU,KAAA,KAAa,SAAS,KAAA,IAAY,KAAK,IAAIA,kBAAAA,KAAK,IAAI,IAAIA,kBAAAA,KAAK,KAAK,CAAC,IAAI;CAE9F,MAAM,MAAMC,eAAAA,WACV;EACE,MAAM;EACN,OAAO;EACP,KAAK;EACL,GANa,OAAO,KAAK,OAAO,SAMjB;GAAE,MAAM;GAAW,QAAQ;EAAU,IAAI,CAAC;EACzD,GAAI,MAAM,EAAE,UAAU,MAAM,IAAI,CAAC;CACnC,GACA,MACF;CACA,QAAQ,UAAW,OAAO,SAASD,kBAAAA,KAAK,KAAK,CAAC,IAAI,IAAIA,kBAAAA,KAAK,KAAK,CAAC,IAAI,OAAO,KAAK;AACnF"}
@@ -1,4 +1,4 @@
1
- //#region src/shapes/decimate.ts
1
+ // src/shapes/decimate.ts
2
2
  /**
3
3
  * Largest-Triangle-Three-Buckets downsampling (Sveinn Steinarsson, 2013):
4
4
  * keep roughly `threshold` points that preserve the visual shape of a line,
@@ -78,7 +78,6 @@ function sampleRun(points, from, to, budget, out) {
78
78
  function lttb(points, threshold) {
79
79
  return lttbIndices(points, threshold).map((i) => points[i]);
80
80
  }
81
- //#endregion
82
81
  Object.defineProperty(exports, "lttb", {
83
82
  enumerable: true,
84
83
  get: function() {
@@ -92,4 +91,4 @@ Object.defineProperty(exports, "lttbIndices", {
92
91
  }
93
92
  });
94
93
 
95
- //# sourceMappingURL=decimate-tLhDk1ys.cjs.map
94
+ //# sourceMappingURL=decimate-BS3x8g-f.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"decimate-tLhDk1ys.cjs","names":[],"sources":["../src/shapes/decimate.ts"],"sourcesContent":["import type { Point } from './path.ts'\n\n/**\n * Largest-Triangle-Three-Buckets downsampling (Sveinn Steinarsson, 2013):\n * keep roughly `threshold` points that preserve the visual shape of a line,\n * including its peaks and valleys.\n *\n * Returns the indices to keep, in order. Gaps (`null` points) are kept as\n * gap markers and every run between gaps is sampled on its own, so the\n * result lines up with any per-index data (e.g. stacked baselines).\n */\nexport function lttbIndices(points: readonly Point[], threshold: number): number[] {\n const n = points.length\n if (!(threshold >= 3) || n <= threshold) return points.map((_, i) => i)\n\n // Split into runs of valid points.\n const runs: [number, number][] = []\n let start = -1\n for (let i = 0; i < n; i++) {\n const valid = points[i] != null\n if (valid && start === -1) start = i\n if (!valid && start !== -1) {\n runs.push([start, i])\n start = -1\n }\n }\n if (start !== -1) runs.push([start, n])\n const valid = runs.reduce((sum, [a, b]) => sum + (b - a), 0)\n\n const out: number[] = []\n let last = 0\n for (const [a, b] of runs) {\n // One gap marker between runs; everything else in the gap is dropped.\n if (a > last) out.push(last)\n // Each run gets a share of the budget (at least its two ends).\n const budget = Math.max(2, Math.round((threshold * (b - a)) / valid))\n sampleRun(points, a, b, budget, out)\n last = b\n }\n if (last < n) out.push(last)\n return out\n}\n\n/** LTTB over `points[from, to)`, pushing kept indices to `out`. */\nfunction sampleRun(\n points: readonly Point[],\n from: number,\n to: number,\n budget: number,\n out: number[],\n): void {\n const n = to - from\n if (n <= budget) {\n for (let i = from; i < to; i++) out.push(i)\n return\n }\n const at = (i: number) => points[i] as readonly [number, number]\n const bucketSize = (n - 2) / (budget - 2)\n let a = from\n out.push(a)\n\n for (let bucket = 0; bucket < budget - 2; bucket++) {\n // Average of the next bucket is the third corner of every candidate triangle.\n const nextStart = from + 1 + Math.floor((bucket + 1) * bucketSize)\n const nextEnd = Math.min(to, from + 1 + Math.floor((bucket + 2) * bucketSize))\n let avgX = 0\n let avgY = 0\n for (let i = nextStart; i < nextEnd; i++) {\n avgX += at(i)[0]\n avgY += at(i)[1]\n }\n const count = Math.max(1, nextEnd - nextStart)\n avgX /= count\n avgY /= count\n\n // The point of this bucket forming the largest triangle with `a` and the average.\n const rangeStart = from + 1 + Math.floor(bucket * bucketSize)\n const rangeEnd = Math.min(to - 1, from + 1 + Math.floor((bucket + 1) * bucketSize))\n const [ax, ay] = at(a)\n let best = rangeStart\n let bestArea = -1\n for (let i = rangeStart; i < rangeEnd; i++) {\n const [x, y] = at(i)\n const area = Math.abs((ax - avgX) * (y - ay) - (ax - x) * (avgY - ay))\n if (area > bestArea) {\n bestArea = area\n best = i\n }\n }\n out.push(best)\n a = best\n }\n out.push(to - 1)\n}\n\n/** The points kept by {@link lttbIndices}, gaps included. */\nexport function lttb(points: readonly Point[], threshold: number): Point[] {\n return lttbIndices(points, threshold).map((i) => points[i])\n}\n"],"mappings":";;;;;;;;;;AAWA,SAAgB,YAAY,QAA0B,WAA6B;CACjF,MAAM,IAAI,OAAO;CACjB,IAAI,EAAE,aAAa,MAAM,KAAK,WAAW,OAAO,OAAO,KAAK,GAAG,MAAM,CAAC;CAGtE,MAAM,OAA2B,CAAC;CAClC,IAAI,QAAQ;CACZ,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,KAAK;EAC1B,MAAM,QAAQ,OAAO,MAAM;EAC3B,IAAI,SAAS,UAAU,IAAI,QAAQ;EACnC,IAAI,CAAC,SAAS,UAAU,IAAI;GAC1B,KAAK,KAAK,CAAC,OAAO,CAAC,CAAC;GACpB,QAAQ;EACV;CACF;CACA,IAAI,UAAU,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,CAAC;CACtC,MAAM,QAAQ,KAAK,QAAQ,KAAK,CAAC,GAAG,OAAO,OAAO,IAAI,IAAI,CAAC;CAE3D,MAAM,MAAgB,CAAC;CACvB,IAAI,OAAO;CACX,KAAK,MAAM,CAAC,GAAG,MAAM,MAAM;EAEzB,IAAI,IAAI,MAAM,IAAI,KAAK,IAAI;EAG3B,UAAU,QAAQ,GAAG,GADN,KAAK,IAAI,GAAG,KAAK,MAAO,aAAa,IAAI,KAAM,KAAK,CACtC,GAAG,GAAG;EACnC,OAAO;CACT;CACA,IAAI,OAAO,GAAG,IAAI,KAAK,IAAI;CAC3B,OAAO;AACT;;AAGA,SAAS,UACP,QACA,MACA,IACA,QACA,KACM;CACN,MAAM,IAAI,KAAK;CACf,IAAI,KAAK,QAAQ;EACf,KAAK,IAAI,IAAI,MAAM,IAAI,IAAI,KAAK,IAAI,KAAK,CAAC;EAC1C;CACF;CACA,MAAM,MAAM,MAAc,OAAO;CACjC,MAAM,cAAc,IAAI,MAAM,SAAS;CACvC,IAAI,IAAI;CACR,IAAI,KAAK,CAAC;CAEV,KAAK,IAAI,SAAS,GAAG,SAAS,SAAS,GAAG,UAAU;EAElD,MAAM,YAAY,OAAO,IAAI,KAAK,OAAO,SAAS,KAAK,UAAU;EACjE,MAAM,UAAU,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,OAAO,SAAS,KAAK,UAAU,CAAC;EAC7E,IAAI,OAAO;EACX,IAAI,OAAO;EACX,KAAK,IAAI,IAAI,WAAW,IAAI,SAAS,KAAK;GACxC,QAAQ,GAAG,CAAC,CAAC,CAAC;GACd,QAAQ,GAAG,CAAC,CAAC,CAAC;EAChB;EACA,MAAM,QAAQ,KAAK,IAAI,GAAG,UAAU,SAAS;EAC7C,QAAQ;EACR,QAAQ;EAGR,MAAM,aAAa,OAAO,IAAI,KAAK,MAAM,SAAS,UAAU;EAC5D,MAAM,WAAW,KAAK,IAAI,KAAK,GAAG,OAAO,IAAI,KAAK,OAAO,SAAS,KAAK,UAAU,CAAC;EAClF,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC;EACrB,IAAI,OAAO;EACX,IAAI,WAAW;EACf,KAAK,IAAI,IAAI,YAAY,IAAI,UAAU,KAAK;GAC1C,MAAM,CAAC,GAAG,KAAK,GAAG,CAAC;GACnB,MAAM,OAAO,KAAK,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,MAAM,OAAO,GAAG;GACrE,IAAI,OAAO,UAAU;IACnB,WAAW;IACX,OAAO;GACT;EACF;EACA,IAAI,KAAK,IAAI;EACb,IAAI;CACN;CACA,IAAI,KAAK,KAAK,CAAC;AACjB;;AAGA,SAAgB,KAAK,QAA0B,WAA4B;CACzE,OAAO,YAAY,QAAQ,SAAS,CAAC,CAAC,KAAK,MAAM,OAAO,EAAE;AAC5D"}
1
+ {"version":3,"file":"decimate-BS3x8g-f.cjs","names":[],"sources":["../src/shapes/decimate.ts"],"sourcesContent":["import type { Point } from './path.ts'\n\n/**\n * Largest-Triangle-Three-Buckets downsampling (Sveinn Steinarsson, 2013):\n * keep roughly `threshold` points that preserve the visual shape of a line,\n * including its peaks and valleys.\n *\n * Returns the indices to keep, in order. Gaps (`null` points) are kept as\n * gap markers and every run between gaps is sampled on its own, so the\n * result lines up with any per-index data (e.g. stacked baselines).\n */\nexport function lttbIndices(points: readonly Point[], threshold: number): number[] {\n const n = points.length\n if (!(threshold >= 3) || n <= threshold) return points.map((_, i) => i)\n\n // Split into runs of valid points.\n const runs: [number, number][] = []\n let start = -1\n for (let i = 0; i < n; i++) {\n const valid = points[i] != null\n if (valid && start === -1) start = i\n if (!valid && start !== -1) {\n runs.push([start, i])\n start = -1\n }\n }\n if (start !== -1) runs.push([start, n])\n const valid = runs.reduce((sum, [a, b]) => sum + (b - a), 0)\n\n const out: number[] = []\n let last = 0\n for (const [a, b] of runs) {\n // One gap marker between runs; everything else in the gap is dropped.\n if (a > last) out.push(last)\n // Each run gets a share of the budget (at least its two ends).\n const budget = Math.max(2, Math.round((threshold * (b - a)) / valid))\n sampleRun(points, a, b, budget, out)\n last = b\n }\n if (last < n) out.push(last)\n return out\n}\n\n/** LTTB over `points[from, to)`, pushing kept indices to `out`. */\nfunction sampleRun(\n points: readonly Point[],\n from: number,\n to: number,\n budget: number,\n out: number[],\n): void {\n const n = to - from\n if (n <= budget) {\n for (let i = from; i < to; i++) out.push(i)\n return\n }\n const at = (i: number) => points[i] as readonly [number, number]\n const bucketSize = (n - 2) / (budget - 2)\n let a = from\n out.push(a)\n\n for (let bucket = 0; bucket < budget - 2; bucket++) {\n // Average of the next bucket is the third corner of every candidate triangle.\n const nextStart = from + 1 + Math.floor((bucket + 1) * bucketSize)\n const nextEnd = Math.min(to, from + 1 + Math.floor((bucket + 2) * bucketSize))\n let avgX = 0\n let avgY = 0\n for (let i = nextStart; i < nextEnd; i++) {\n avgX += at(i)[0]\n avgY += at(i)[1]\n }\n const count = Math.max(1, nextEnd - nextStart)\n avgX /= count\n avgY /= count\n\n // The point of this bucket forming the largest triangle with `a` and the average.\n const rangeStart = from + 1 + Math.floor(bucket * bucketSize)\n const rangeEnd = Math.min(to - 1, from + 1 + Math.floor((bucket + 1) * bucketSize))\n const [ax, ay] = at(a)\n let best = rangeStart\n let bestArea = -1\n for (let i = rangeStart; i < rangeEnd; i++) {\n const [x, y] = at(i)\n const area = Math.abs((ax - avgX) * (y - ay) - (ax - x) * (avgY - ay))\n if (area > bestArea) {\n bestArea = area\n best = i\n }\n }\n out.push(best)\n a = best\n }\n out.push(to - 1)\n}\n\n/** The points kept by {@link lttbIndices}, gaps included. */\nexport function lttb(points: readonly Point[], threshold: number): Point[] {\n return lttbIndices(points, threshold).map((i) => points[i])\n}\n"],"mappings":";;;;;;;;;;AAWA,SAAgB,YAAY,QAA0B,WAA6B;CACjF,MAAM,IAAI,OAAO;CACjB,IAAI,EAAE,aAAa,MAAM,KAAK,WAAW,OAAO,OAAO,KAAK,GAAG,MAAM,CAAC;CAGtE,MAAM,OAA2B,CAAC;CAClC,IAAI,QAAQ;CACZ,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,KAAK;EAC1B,MAAM,QAAQ,OAAO,MAAM;EAC3B,IAAI,SAAS,UAAU,IAAI,QAAQ;EACnC,IAAI,CAAC,SAAS,UAAU,IAAI;GAC1B,KAAK,KAAK,CAAC,OAAO,CAAC,CAAC;GACpB,QAAQ;EACV;CACF;CACA,IAAI,UAAU,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,CAAC;CACtC,MAAM,QAAQ,KAAK,QAAQ,KAAK,CAAC,GAAG,OAAO,OAAO,IAAI,IAAI,CAAC;CAE3D,MAAM,MAAgB,CAAC;CACvB,IAAI,OAAO;CACX,KAAK,MAAM,CAAC,GAAG,MAAM,MAAM;EAEzB,IAAI,IAAI,MAAM,IAAI,KAAK,IAAI;EAG3B,UAAU,QAAQ,GAAG,GADN,KAAK,IAAI,GAAG,KAAK,MAAO,aAAa,IAAI,KAAM,KAAK,CACtC,GAAG,GAAG;EACnC,OAAO;CACT;CACA,IAAI,OAAO,GAAG,IAAI,KAAK,IAAI;CAC3B,OAAO;AACT;;AAGA,SAAS,UACP,QACA,MACA,IACA,QACA,KACM;CACN,MAAM,IAAI,KAAK;CACf,IAAI,KAAK,QAAQ;EACf,KAAK,IAAI,IAAI,MAAM,IAAI,IAAI,KAAK,IAAI,KAAK,CAAC;EAC1C;CACF;CACA,MAAM,MAAM,MAAc,OAAO;CACjC,MAAM,cAAc,IAAI,MAAM,SAAS;CACvC,IAAI,IAAI;CACR,IAAI,KAAK,CAAC;CAEV,KAAK,IAAI,SAAS,GAAG,SAAS,SAAS,GAAG,UAAU;EAElD,MAAM,YAAY,OAAO,IAAI,KAAK,OAAO,SAAS,KAAK,UAAU;EACjE,MAAM,UAAU,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,OAAO,SAAS,KAAK,UAAU,CAAC;EAC7E,IAAI,OAAO;EACX,IAAI,OAAO;EACX,KAAK,IAAI,IAAI,WAAW,IAAI,SAAS,KAAK;GACxC,QAAQ,GAAG,CAAC,CAAC,CAAC;GACd,QAAQ,GAAG,CAAC,CAAC,CAAC;EAChB;EACA,MAAM,QAAQ,KAAK,IAAI,GAAG,UAAU,SAAS;EAC7C,QAAQ;EACR,QAAQ;EAGR,MAAM,aAAa,OAAO,IAAI,KAAK,MAAM,SAAS,UAAU;EAC5D,MAAM,WAAW,KAAK,IAAI,KAAK,GAAG,OAAO,IAAI,KAAK,OAAO,SAAS,KAAK,UAAU,CAAC;EAClF,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC;EACrB,IAAI,OAAO;EACX,IAAI,WAAW;EACf,KAAK,IAAI,IAAI,YAAY,IAAI,UAAU,KAAK;GAC1C,MAAM,CAAC,GAAG,KAAK,GAAG,CAAC;GACnB,MAAM,OAAO,KAAK,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,MAAM,OAAO,GAAG;GACrE,IAAI,OAAO,UAAU;IACnB,WAAW;IACX,OAAO;GACT;EACF;EACA,IAAI,KAAK,IAAI;EACb,IAAI;CACN;CACA,IAAI,KAAK,KAAK,CAAC;AACjB;;AAGA,SAAgB,KAAK,QAA0B,WAA4B;CACzE,OAAO,YAAY,QAAQ,SAAS,CAAC,CAAC,KAAK,MAAM,OAAO,EAAE;AAC5D"}
@@ -1,5 +1,4 @@
1
- import { r as Point } from "./path-CwB28da0.js";
2
- //#region src/shapes/decimate.d.ts
1
+ import { r as Point } from "./path-YeUiOfG8.cjs";
3
2
  /**
4
3
  * Largest-Triangle-Three-Buckets downsampling (Sveinn Steinarsson, 2013):
5
4
  * keep roughly `threshold` points that preserve the visual shape of a line,
@@ -12,6 +11,4 @@ import { r as Point } from "./path-CwB28da0.js";
12
11
  declare function lttbIndices(points: readonly Point[], threshold: number): number[];
13
12
  /** The points kept by {@link lttbIndices}, gaps included. */
14
13
  declare function lttb(points: readonly Point[], threshold: number): Point[];
15
- //#endregion
16
- export { lttbIndices as n, lttb as t };
17
- //# sourceMappingURL=decimate-BGg9XgF0.d.ts.map
14
+ export { lttbIndices as n, lttb as t };
@@ -1,4 +1,4 @@
1
- //#region src/shapes/decimate.ts
1
+ // src/shapes/decimate.ts
2
2
  /**
3
3
  * Largest-Triangle-Three-Buckets downsampling (Sveinn Steinarsson, 2013):
4
4
  * keep roughly `threshold` points that preserve the visual shape of a line,
@@ -78,7 +78,6 @@ function sampleRun(points, from, to, budget, out) {
78
78
  function lttb(points, threshold) {
79
79
  return lttbIndices(points, threshold).map((i) => points[i]);
80
80
  }
81
- //#endregion
82
81
  export { lttbIndices as n, lttb as t };
83
82
 
84
- //# sourceMappingURL=decimate-C87cl_Sp.js.map
83
+ //# sourceMappingURL=decimate-CapfgiDY.js.map