@tabler/charts 0.1.0 → 0.3.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 (445) hide show
  1. package/README.md +92 -4
  2. package/dist/{annotations-Bp7HwtF5.d.ts → annotations-B02GR_KU.d.ts} +3 -8
  3. package/dist/{annotations-BszTTjf9.js → annotations-BQ8l-qHs.js} +6 -7
  4. package/dist/{annotations-BszTTjf9.js.map → annotations-BQ8l-qHs.js.map} +1 -1
  5. package/dist/{annotations-lyt0I3HU.d.cts → annotations-CHafaGd4.d.cts} +3 -8
  6. package/dist/{annotations-DpETO8dE.cjs → annotations-CpCWA29b.cjs} +6 -7
  7. package/dist/{annotations-DpETO8dE.cjs.map → annotations-CpCWA29b.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/{arc-a1tRTEw7.js → arc-B3V5IR0w.js} +2 -3
  14. package/dist/{arc-a1tRTEw7.js.map → arc-B3V5IR0w.js.map} +1 -1
  15. package/dist/{arc-BXpLrt9b.cjs → arc-CYhI62kO.cjs} +2 -3
  16. package/dist/{arc-BXpLrt9b.cjs.map → arc-CYhI62kO.cjs.map} +1 -1
  17. package/dist/{area-CF__HOwL.d.ts → area-DEFQm_SQ.d.ts} +3 -6
  18. package/dist/{area-sHCE3pg5.cjs → area-DYdQ_sMV.cjs} +5 -6
  19. package/dist/{area-sHCE3pg5.cjs.map → area-DYdQ_sMV.cjs.map} +1 -1
  20. package/dist/{area-DQsLERhx.js → area-WdtfqvhX.js} +5 -6
  21. package/dist/{area-DQsLERhx.js.map → area-WdtfqvhX.js.map} +1 -1
  22. package/dist/{area-DIxaAbYZ.d.cts → area-h_FvieFb.d.cts} +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/axis-MMaVoSWB.js +235 -0
  28. package/dist/axis-MMaVoSWB.js.map +1 -0
  29. package/dist/axis-YfAerNBA.cjs +300 -0
  30. package/dist/axis-YfAerNBA.cjs.map +1 -0
  31. package/dist/{band-DTcNDAFO.d.ts → band-CNKvdnTC.d.cts} +1 -4
  32. package/dist/{band-DTcNDAFO.d.cts → band-CNKvdnTC.d.ts} +1 -4
  33. package/dist/{bar-jZEoao74.js → bar-BOcRcArc.js} +80 -62
  34. package/dist/bar-BOcRcArc.js.map +1 -0
  35. package/dist/{bar-C-7zR2qp.cjs → bar-CVkOJ7WA.cjs} +82 -64
  36. package/dist/bar-CVkOJ7WA.cjs.map +1 -0
  37. package/dist/{bar-DM16NUvV.js → bar-CgpC2EpX.js} +3 -4
  38. package/dist/{bar-DM16NUvV.js.map → bar-CgpC2EpX.js.map} +1 -1
  39. package/dist/{bar-BBM8RhoL.d.ts → bar-D9B_arKf.d.ts} +4 -7
  40. package/dist/{bar-CRKLDg98.d.cts → bar-DZCQ-kyf.d.cts} +4 -7
  41. package/dist/{bar-DGuUN3nc.cjs → bar-wVykm1us.cjs} +3 -4
  42. package/dist/{bar-DGuUN3nc.cjs.map → bar-wVykm1us.cjs.map} +1 -1
  43. package/dist/bar.cjs +1 -1
  44. package/dist/bar.d.cts +2 -1
  45. package/dist/bar.d.ts +2 -1
  46. package/dist/bar.js +1 -2
  47. package/dist/calendar-BSvO8nRb.d.cts +106 -0
  48. package/dist/calendar-BXgIX5H1.js +502 -0
  49. package/dist/calendar-BXgIX5H1.js.map +1 -0
  50. package/dist/calendar-Bq3vFzPl.d.ts +106 -0
  51. package/dist/calendar-DAFXjV99.cjs +507 -0
  52. package/dist/calendar-DAFXjV99.cjs.map +1 -0
  53. package/dist/calendar.cjs +3 -0
  54. package/dist/calendar.d.cts +3 -0
  55. package/dist/calendar.d.ts +3 -0
  56. package/dist/calendar.js +1 -0
  57. package/dist/{candlestick-D_vV0_XZ.d.ts → candlestick-B3WcLzph.d.ts} +3 -6
  58. package/dist/{candlestick-__pXl_pV.d.cts → candlestick-BcomxeVG.d.cts} +3 -6
  59. package/dist/{candlestick-DuXwAFID.js → candlestick-BtT9glp9.js} +19 -18
  60. package/dist/{candlestick-DuXwAFID.js.map → candlestick-BtT9glp9.js.map} +1 -1
  61. package/dist/{candlestick-B5r1w3kc.cjs → candlestick-CSmRuZ4v.cjs} +19 -18
  62. package/dist/{candlestick-B5r1w3kc.cjs.map → candlestick-CSmRuZ4v.cjs.map} +1 -1
  63. package/dist/candlestick.cjs +4 -5
  64. package/dist/candlestick.d.cts +1 -1
  65. package/dist/candlestick.d.ts +1 -1
  66. package/dist/candlestick.js +4 -6
  67. package/dist/{cartesian-Cr0AF0nG.js → cartesian-BrPqb5Qn.js} +138 -264
  68. package/dist/cartesian-BrPqb5Qn.js.map +1 -0
  69. package/dist/{cartesian-BoDfgBCV.cjs → cartesian-DRSXHxWe.cjs} +162 -324
  70. package/dist/cartesian-DRSXHxWe.cjs.map +1 -0
  71. package/dist/{chart-BF2CK9I_.js → chart-B6TTY4Kr.js} +120 -77
  72. package/dist/chart-B6TTY4Kr.js.map +1 -0
  73. package/dist/{chart-DyN7bcx8.d.ts → chart-CYrrUCi3.d.ts} +222 -102
  74. package/dist/{chart-D7ooEFnk.d.cts → chart-CbPzP5Dp.d.cts} +248 -102
  75. package/dist/{chart-CowF_lWY.cjs → chart-D_lyOy-M.cjs} +132 -83
  76. package/dist/chart-D_lyOy-M.cjs.map +1 -0
  77. package/dist/{circle-BQMuAfls.cjs → circle-Bwxy5j7B.cjs} +2 -3
  78. package/dist/{circle-BQMuAfls.cjs.map → circle-Bwxy5j7B.cjs.map} +1 -1
  79. package/dist/{circle-Z7YfCoCM.js → circle-YRDaOBpk.js} +2 -3
  80. package/dist/{circle-Z7YfCoCM.js.map → circle-YRDaOBpk.js.map} +1 -1
  81. package/dist/{clean-o1vDEhFV.js → clean-CkoQobGv.js} +3 -4
  82. package/dist/{clean-o1vDEhFV.js.map → clean-CkoQobGv.js.map} +1 -1
  83. package/dist/{clean-Byl6kzf0.cjs → clean-Die2iCNc.cjs} +8 -3
  84. package/dist/{clean-Byl6kzf0.cjs.map → clean-Die2iCNc.cjs.map} +1 -1
  85. package/dist/{core-D1vO1LrC.d.cts → core-9BnLEW4K.d.cts} +31 -72
  86. package/dist/{core-DcbemzGf.d.ts → core-C3qEppSm.d.ts} +10 -46
  87. package/dist/{core-CegR_j55.js → core-CQ0FaJ4G.js} +138 -99
  88. package/dist/core-CQ0FaJ4G.js.map +1 -0
  89. package/dist/{core-RzS9IQO5.cjs → core-D2PSked3.cjs} +139 -100
  90. package/dist/core-D2PSked3.cjs.map +1 -0
  91. package/dist/core.cjs +47 -33
  92. package/dist/core.d.cts +26 -21
  93. package/dist/core.d.ts +26 -21
  94. package/dist/core.js +31 -25
  95. package/dist/{dates-CG-FvioW.js → dates-DLe2Ww64.js} +4 -5
  96. package/dist/{dates-CG-FvioW.js.map → dates-DLe2Ww64.js.map} +1 -1
  97. package/dist/{dates-Btm7Zm6W.cjs → dates-DerXTb1J.cjs} +4 -5
  98. package/dist/{dates-Btm7Zm6W.cjs.map → dates-DerXTb1J.cjs.map} +1 -1
  99. package/dist/{decimate-tLhDk1ys.cjs → decimate-BS3x8g-f.cjs} +2 -3
  100. package/dist/{decimate-tLhDk1ys.cjs.map → decimate-BS3x8g-f.cjs.map} +1 -1
  101. package/dist/{decimate-BGg9XgF0.d.ts → decimate-BxxYBJJk.d.cts} +2 -5
  102. package/dist/{decimate-C87cl_Sp.js → decimate-CapfgiDY.js} +2 -3
  103. package/dist/{decimate-C87cl_Sp.js.map → decimate-CapfgiDY.js.map} +1 -1
  104. package/dist/{decimate-CNSpgGa5.d.cts → decimate-Du87fMLG.d.ts} +2 -5
  105. package/dist/decimate.cjs +3 -4
  106. package/dist/decimate.d.cts +1 -1
  107. package/dist/decimate.d.ts +1 -1
  108. package/dist/decimate.js +3 -4
  109. package/dist/{dom-CLF868Qs.cjs → dom-C33zvtPo.cjs} +5 -11
  110. package/dist/dom-C33zvtPo.cjs.map +1 -0
  111. package/dist/{dom-vP3IcMak.js → dom-CTse6Rvd.js} +5 -11
  112. package/dist/dom-CTse6Rvd.js.map +1 -0
  113. package/dist/{export-chart-BhhYgksr.cjs → export-chart-CPtXmZvi.cjs} +18 -14
  114. package/dist/export-chart-CPtXmZvi.cjs.map +1 -0
  115. package/dist/{export-chart-9w8t3rjZ.js → export-chart-DoeiAyR2.js} +18 -14
  116. package/dist/export-chart-DoeiAyR2.js.map +1 -0
  117. package/dist/export.cjs +3 -5
  118. package/dist/export.cjs.map +1 -1
  119. package/dist/export.d.cts +8 -1
  120. package/dist/export.d.ts +8 -1
  121. package/dist/export.js +3 -4
  122. package/dist/{extent-BAMZo0Nq.js → extent-DOV8rs-6.js} +2 -3
  123. package/dist/{extent-BAMZo0Nq.js.map → extent-DOV8rs-6.js.map} +1 -1
  124. package/dist/{extent-DsFWvAHJ.cjs → extent-DuYDcvM9.cjs} +2 -3
  125. package/dist/{extent-DsFWvAHJ.cjs.map → extent-DuYDcvM9.cjs.map} +1 -1
  126. package/dist/{fade-D3NxH5Qg.js → fade-CDrQjnDz.js} +59 -83
  127. package/dist/fade-CDrQjnDz.js.map +1 -0
  128. package/dist/{fade-Cs74puQS.cjs → fade-CRqcKMWY.cjs} +59 -83
  129. package/dist/fade-CRqcKMWY.cjs.map +1 -0
  130. package/dist/{features-wASyHGic.js → features-B55rwpQC.js} +5 -4
  131. package/dist/features-B55rwpQC.js.map +1 -0
  132. package/dist/{features-BclHgg2W.cjs → features-DEDP5CEQ.cjs} +10 -3
  133. package/dist/features-DEDP5CEQ.cjs.map +1 -0
  134. package/dist/fit-BPyPRnsK.js +16 -0
  135. package/dist/fit-BPyPRnsK.js.map +1 -0
  136. package/dist/fit-D4MIIQQz.cjs +21 -0
  137. package/dist/fit-D4MIIQQz.cjs.map +1 -0
  138. package/dist/{format-B0yKXBTH.cjs → format-CAE5ruy6.cjs} +2 -3
  139. package/dist/{format-B0yKXBTH.cjs.map → format-CAE5ruy6.cjs.map} +1 -1
  140. package/dist/{format-lStwuc1L.js → format-it1kepFG.js} +2 -3
  141. package/dist/{format-lStwuc1L.js.map → format-it1kepFG.js.map} +1 -1
  142. package/dist/funnel-BdcfUkb5.d.ts +50 -0
  143. package/dist/funnel-CFEEulw_.cjs +244 -0
  144. package/dist/funnel-CFEEulw_.cjs.map +1 -0
  145. package/dist/funnel-CYCv8cq2.js +239 -0
  146. package/dist/funnel-CYCv8cq2.js.map +1 -0
  147. package/dist/funnel-CarOh8w_.d.cts +50 -0
  148. package/dist/funnel.cjs +3 -0
  149. package/dist/funnel.d.cts +3 -0
  150. package/dist/funnel.d.ts +3 -0
  151. package/dist/funnel.js +1 -0
  152. package/dist/{gauge-D-FYhuds.cjs → gauge-6HfDcLMJ.cjs} +35 -36
  153. package/dist/gauge-6HfDcLMJ.cjs.map +1 -0
  154. package/dist/{gauge-Dh423FHh.js → gauge-DiTk5aWO.js} +35 -36
  155. package/dist/gauge-DiTk5aWO.js.map +1 -0
  156. package/dist/{gauge-zpia05t2.d.ts → gauge-Ds9k1UV2.d.cts} +5 -8
  157. package/dist/{gauge-DP_EB2z3.d.cts → gauge-Zy25jfps.d.ts} +5 -8
  158. package/dist/gauge.cjs +1 -1
  159. package/dist/gauge.d.cts +2 -1
  160. package/dist/gauge.d.ts +2 -1
  161. package/dist/gauge.js +1 -2
  162. package/dist/{heatmap-DSZ2bVIa.js → heatmap-C1v8bwpq.js} +43 -43
  163. package/dist/heatmap-C1v8bwpq.js.map +1 -0
  164. package/dist/{heatmap-BectCEeE.d.ts → heatmap-CJ-0dfhJ.d.cts} +4 -7
  165. package/dist/{heatmap-BK18EBgJ.cjs → heatmap-Dcc_bsoQ.cjs} +47 -47
  166. package/dist/heatmap-Dcc_bsoQ.cjs.map +1 -0
  167. package/dist/{heatmap-CCso6m61.d.cts → heatmap-Jp5sHRTo.d.ts} +4 -7
  168. package/dist/heatmap.cjs +1 -1
  169. package/dist/heatmap.d.cts +2 -1
  170. package/dist/heatmap.d.ts +2 -1
  171. package/dist/heatmap.js +1 -2
  172. package/dist/{hydrate-DDNIHYv_.js → hydrate-BB3MlR36.js} +3 -4
  173. package/dist/{hydrate-DDNIHYv_.js.map → hydrate-BB3MlR36.js.map} +1 -1
  174. package/dist/{hydrate-CzfxLfTv.d.ts → hydrate-BtAZf_5K.d.cts} +2 -5
  175. package/dist/{hydrate-CTTmQy0x.d.cts → hydrate-OjM1pIUG.d.ts} +2 -5
  176. package/dist/{hydrate-CxwTXDqO.cjs → hydrate-m0I5m6ue.cjs} +3 -4
  177. package/dist/hydrate-m0I5m6ue.cjs.map +1 -0
  178. package/dist/hydrate.cjs +3 -4
  179. package/dist/hydrate.cjs.map +1 -1
  180. package/dist/hydrate.d.cts +1 -1
  181. package/dist/hydrate.d.ts +1 -1
  182. package/dist/hydrate.js +3 -4
  183. package/dist/index.cjs +72 -56
  184. package/dist/index.cjs.map +1 -1
  185. package/dist/index.d.cts +28 -28
  186. package/dist/index.d.ts +28 -28
  187. package/dist/index.js +52 -44
  188. package/dist/index.js.map +1 -1
  189. package/dist/interaction-DXYSjgnP.cjs +32 -0
  190. package/dist/interaction-DXYSjgnP.cjs.map +1 -0
  191. package/dist/interaction-En1KlwFO.js +21 -0
  192. package/dist/interaction-En1KlwFO.js.map +1 -0
  193. package/dist/{layout-CtMBhNd9.cjs → layout-Cfg9x1k2.cjs} +45 -3
  194. package/dist/layout-Cfg9x1k2.cjs.map +1 -0
  195. package/dist/{layout-B3hiqVEw.js → layout-DqAte3H8.js} +34 -4
  196. package/dist/layout-DqAte3H8.js.map +1 -0
  197. package/dist/{line-CN4uZ9ZX.d.ts → line-Bpr5uVLQ.d.ts} +4 -7
  198. package/dist/{line-B3Ed6u7j.js → line-CxR4tg1Q.js} +49 -38
  199. package/dist/line-CxR4tg1Q.js.map +1 -0
  200. package/dist/{line-fQbtP_jL.cjs → line-YiCuhVMI.cjs} +49 -38
  201. package/dist/line-YiCuhVMI.cjs.map +1 -0
  202. package/dist/{line-W7VD_qs1.d.cts → line-vyWO030v.d.cts} +4 -7
  203. package/dist/line.cjs +4 -5
  204. package/dist/line.cjs.map +1 -1
  205. package/dist/line.d.cts +1 -1
  206. package/dist/line.d.ts +1 -1
  207. package/dist/line.js +4 -6
  208. package/dist/{log-CaofN3-n.d.ts → log-CI41TmcU.d.cts} +1 -6
  209. package/dist/{log-CaofN3-n.d.cts → log-CI41TmcU.d.ts} +1 -6
  210. package/dist/{log-axis-83rSpvL5.cjs → log-axis-DdRNyAq8.cjs} +6 -8
  211. package/dist/{log-axis-83rSpvL5.cjs.map → log-axis-DdRNyAq8.cjs.map} +1 -1
  212. package/dist/{log-axis-B_uvvOFc.js → log-axis-DhthtHFk.js} +6 -8
  213. package/dist/{log-axis-B_uvvOFc.js.map → log-axis-DhthtHFk.js.map} +1 -1
  214. package/dist/log.cjs +3 -5
  215. package/dist/log.cjs.map +1 -1
  216. package/dist/log.d.cts +1 -1
  217. package/dist/log.d.ts +1 -1
  218. package/dist/log.js +3 -4
  219. package/dist/map-49FcfdmJ.d.cts +156 -0
  220. package/dist/map-BMC61J-P.d.ts +156 -0
  221. package/dist/map-BqrZ80vT.cjs +818 -0
  222. package/dist/map-BqrZ80vT.cjs.map +1 -0
  223. package/dist/map-C15NC7kW.js +807 -0
  224. package/dist/map-C15NC7kW.js.map +1 -0
  225. package/dist/map.cjs +4 -0
  226. package/dist/map.d.cts +3 -0
  227. package/dist/map.d.ts +3 -0
  228. package/dist/map.js +1 -0
  229. package/dist/maps/world.cjs +875 -0
  230. package/dist/maps/world.cjs.map +1 -0
  231. package/dist/maps/world.d.cts +2 -0
  232. package/dist/maps/world.d.ts +2 -0
  233. package/dist/maps/world.js +874 -0
  234. package/dist/maps/world.js.map +1 -0
  235. package/dist/{morph-CqYDu1bY.cjs → morph-3I1Nf_tR.cjs} +4 -5
  236. package/dist/morph-3I1Nf_tR.cjs.map +1 -0
  237. package/dist/{morph-BMxz3X2b.d.ts → morph-Dh7gJkV4.d.cts} +1 -4
  238. package/dist/{morph-BMxz3X2b.d.cts → morph-Dh7gJkV4.d.ts} +1 -4
  239. package/dist/{morph-Bgg-24l8.js → morph-GfBab-b3.js} +4 -5
  240. package/dist/{morph-Bgg-24l8.js.map → morph-GfBab-b3.js.map} +1 -1
  241. package/dist/morph.cjs +3 -4
  242. package/dist/morph.cjs.map +1 -1
  243. package/dist/morph.d.cts +1 -1
  244. package/dist/morph.d.ts +1 -1
  245. package/dist/morph.js +3 -4
  246. package/dist/{named-BWWb5LQJ.cjs → named-BBASc8dW.cjs} +2 -3
  247. package/dist/{named-BWWb5LQJ.cjs.map → named-BBASc8dW.cjs.map} +1 -1
  248. package/dist/{named-DE15TOgh.js → named-BOiBah6I.js} +2 -3
  249. package/dist/{named-DE15TOgh.js.map → named-BOiBah6I.js.map} +1 -1
  250. package/dist/others-DBIGE6jr.js +57 -0
  251. package/dist/others-DBIGE6jr.js.map +1 -0
  252. package/dist/others-DBO4Kjwl.d.ts +29 -0
  253. package/dist/others-WfjCsjqT.cjs +68 -0
  254. package/dist/others-WfjCsjqT.cjs.map +1 -0
  255. package/dist/others-ls5eKtZ4.d.cts +31 -0
  256. package/dist/{parliament-Dw0sOERi.js → parliament-BKN6ikBJ.js} +36 -36
  257. package/dist/parliament-BKN6ikBJ.js.map +1 -0
  258. package/dist/{parliament-1Zv2Xh0D.d.ts → parliament-C7V8UJj1.d.cts} +5 -8
  259. package/dist/{parliament-DdrLVZwt.d.cts → parliament-Cz9n_DoK.d.ts} +5 -8
  260. package/dist/{parliament-CpWnoEvG.cjs → parliament-DhxAaIZ3.cjs} +36 -36
  261. package/dist/parliament-DhxAaIZ3.cjs.map +1 -0
  262. package/dist/parliament.cjs +1 -1
  263. package/dist/parliament.d.cts +2 -1
  264. package/dist/parliament.d.ts +2 -1
  265. package/dist/parliament.js +1 -2
  266. package/dist/{path-CwB28da0.d.ts → path-YeUiOfG8.d.cts} +1 -4
  267. package/dist/{path-CwB28da0.d.cts → path-YeUiOfG8.d.ts} +1 -4
  268. package/dist/{patterns-DtgcnA8o.js → patterns-BMUINoka.js} +4 -5
  269. package/dist/{patterns-DtgcnA8o.js.map → patterns-BMUINoka.js.map} +1 -1
  270. package/dist/{patterns-LfcQAWCy.cjs → patterns-Dw7OMD_2.cjs} +4 -5
  271. package/dist/{patterns-LfcQAWCy.cjs.map → patterns-Dw7OMD_2.cjs.map} +1 -1
  272. package/dist/patterns.cjs +3 -5
  273. package/dist/patterns.cjs.map +1 -1
  274. package/dist/patterns.d.cts +5 -1
  275. package/dist/patterns.d.ts +5 -1
  276. package/dist/patterns.js +3 -4
  277. package/dist/percentage-bar-BChkTRoz.cjs +164 -0
  278. package/dist/percentage-bar-BChkTRoz.cjs.map +1 -0
  279. package/dist/percentage-bar-CaInxrL8.js +159 -0
  280. package/dist/percentage-bar-CaInxrL8.js.map +1 -0
  281. package/dist/percentage-bar-R1--2grK.d.cts +58 -0
  282. package/dist/percentage-bar-cSeiLdwU.d.ts +58 -0
  283. package/dist/percentage-bar.cjs +3 -0
  284. package/dist/percentage-bar.d.cts +3 -0
  285. package/dist/percentage-bar.d.ts +3 -0
  286. package/dist/percentage-bar.js +1 -0
  287. package/dist/{pie-BF9yI5mE.d.cts → pie-BQQkvy1N.d.ts} +11 -11
  288. package/dist/{pie-DzUXDTcn.js → pie-Bd8wyrtY.js} +52 -55
  289. package/dist/pie-Bd8wyrtY.js.map +1 -0
  290. package/dist/{pie-BxTZt6Go.cjs → pie-BseZlCgP.cjs} +52 -55
  291. package/dist/pie-BseZlCgP.cjs.map +1 -0
  292. package/dist/{pie-5z1fDdKO.d.ts → pie-vD5-g8je.d.cts} +11 -11
  293. package/dist/pie.cjs +1 -1
  294. package/dist/pie.d.cts +2 -1
  295. package/dist/pie.d.ts +2 -1
  296. package/dist/pie.js +1 -2
  297. package/dist/{point-shapes-CGl4dugc.cjs → point-shapes-BRawRM78.cjs} +24 -24
  298. package/dist/point-shapes-BRawRM78.cjs.map +1 -0
  299. package/dist/{point-shapes-DI84NNpI.js → point-shapes-DI6GhcI7.js} +19 -25
  300. package/dist/point-shapes-DI6GhcI7.js.map +1 -0
  301. package/dist/point-shapes.cjs +7 -6
  302. package/dist/point-shapes.cjs.map +1 -1
  303. package/dist/point-shapes.d.cts +6 -2
  304. package/dist/point-shapes.d.ts +6 -2
  305. package/dist/point-shapes.js +8 -7
  306. package/dist/point-shapes.js.map +1 -1
  307. package/dist/{radar-1-EryihA.d.ts → radar-7I6hsY_h.d.cts} +4 -7
  308. package/dist/{radar-CYPab_I4.js → radar-D6XqkFWQ.js} +25 -27
  309. package/dist/radar-D6XqkFWQ.js.map +1 -0
  310. package/dist/{radar-CoGUNNSb.cjs → radar-DjISDnSf.cjs} +26 -28
  311. package/dist/radar-DjISDnSf.cjs.map +1 -0
  312. package/dist/{radar-DBW4O0Vt.d.cts → radar-vLxilcr4.d.ts} +4 -7
  313. package/dist/radar.cjs +1 -1
  314. package/dist/radar.d.cts +2 -1
  315. package/dist/radar.d.ts +2 -1
  316. package/dist/radar.js +1 -2
  317. package/dist/rect-CZTNvMlf.js +11 -0
  318. package/dist/rect-CZTNvMlf.js.map +1 -0
  319. package/dist/rect-DPr9QRxl.cjs +16 -0
  320. package/dist/rect-DPr9QRxl.cjs.map +1 -0
  321. package/dist/{sankey-Bacx4fVe.cjs → sankey-0CSp_Er9.cjs} +100 -95
  322. package/dist/sankey-0CSp_Er9.cjs.map +1 -0
  323. package/dist/{sankey-OV_WoPrl.d.ts → sankey-7As41Fo4.d.ts} +4 -7
  324. package/dist/{sankey-B4PNKusJ.js → sankey-Dp4CuLVe.js} +100 -95
  325. package/dist/sankey-Dp4CuLVe.js.map +1 -0
  326. package/dist/{sankey-DuGI3Qc5.d.cts → sankey-DqiuxUx7.d.cts} +4 -7
  327. package/dist/sankey.cjs +1 -1
  328. package/dist/sankey.d.cts +2 -1
  329. package/dist/sankey.d.ts +2 -1
  330. package/dist/sankey.js +1 -2
  331. package/dist/{scatter-DbxLyZX0.d.cts → scatter-BXkXGgM_.d.ts} +14 -9
  332. package/dist/{scatter-DgMN9zRy.cjs → scatter-Bwkblr4L.cjs} +47 -42
  333. package/dist/scatter-Bwkblr4L.cjs.map +1 -0
  334. package/dist/{scatter-kgtgR318.js → scatter-DCMAtt5L.js} +45 -40
  335. package/dist/scatter-DCMAtt5L.js.map +1 -0
  336. package/dist/{scatter-BqzgJqdX.d.ts → scatter-DL0zAV09.d.cts} +14 -9
  337. package/dist/scatter.cjs +1 -1
  338. package/dist/scatter.d.cts +2 -1
  339. package/dist/scatter.d.ts +2 -1
  340. package/dist/scatter.js +1 -2
  341. package/dist/{sparkline-BfyO_oNM.d.ts → sparkline-BElUSd0r.d.ts} +5 -8
  342. package/dist/{sparkline-BS9-hltA.cjs → sparkline-BMSuEPHP.cjs} +22 -23
  343. package/dist/sparkline-BMSuEPHP.cjs.map +1 -0
  344. package/dist/{sparkline-BQzt27Fr.js → sparkline-NDmq90kP.js} +22 -23
  345. package/dist/sparkline-NDmq90kP.js.map +1 -0
  346. package/dist/{sparkline-CWlJDKyh.d.cts → sparkline-RYly7bR0.d.cts} +5 -8
  347. package/dist/sparkline.cjs +1 -1
  348. package/dist/sparkline.d.cts +2 -1
  349. package/dist/sparkline.d.ts +2 -1
  350. package/dist/sparkline.js +1 -2
  351. package/dist/{stack-DVhJWaki.cjs → stack-BO4624CY.cjs} +3 -4
  352. package/dist/{stack-DVhJWaki.cjs.map → stack-BO4624CY.cjs.map} +1 -1
  353. package/dist/{stack-CpR6RGKd.d.ts → stack-BTWYIwLO.d.cts} +2 -4
  354. package/dist/{stack-CpR6RGKd.d.cts → stack-DR0eQTsB.d.ts} +1 -4
  355. package/dist/{stack-DRbwTeF3.js → stack-jVKvg2x_.js} +3 -4
  356. package/dist/{stack-DRbwTeF3.js.map → stack-jVKvg2x_.js.map} +1 -1
  357. package/dist/style.css +1 -1
  358. package/dist/{sweep-CbfR7--d.js → sweep-BpRPlhs6.js} +5 -6
  359. package/dist/{sweep-CbfR7--d.js.map → sweep-BpRPlhs6.js.map} +1 -1
  360. package/dist/{sweep-DaTEDDuC.cjs → sweep-Dnp6LDBz.cjs} +5 -6
  361. package/dist/sweep-Dnp6LDBz.cjs.map +1 -0
  362. package/dist/{time-CNVnt-B2.d.cts → time-B4oxWHQI.d.cts} +2 -7
  363. package/dist/{time-CHjiY9Q4.d.ts → time-DRIDgv2a.d.ts} +2 -7
  364. package/dist/{time-axis-VSX34_Tb.cjs → time-axis-B3VekUfX.cjs} +11 -11
  365. package/dist/{time-axis-VSX34_Tb.cjs.map → time-axis-B3VekUfX.cjs.map} +1 -1
  366. package/dist/{time-axis-Bc9eHX1r.js → time-axis-CLjqOakA.js} +10 -10
  367. package/dist/{time-axis-Bc9eHX1r.js.map → time-axis-CLjqOakA.js.map} +1 -1
  368. package/dist/time.cjs +4 -6
  369. package/dist/time.cjs.map +1 -1
  370. package/dist/time.d.cts +1 -1
  371. package/dist/time.d.ts +1 -1
  372. package/dist/time.js +4 -5
  373. package/dist/treemap-25vHO_UK.d.cts +65 -0
  374. package/dist/treemap-BCXUbixd.d.ts +65 -0
  375. package/dist/treemap-C4glsx-g.js +293 -0
  376. package/dist/treemap-C4glsx-g.js.map +1 -0
  377. package/dist/treemap-CZk8kKFD.cjs +298 -0
  378. package/dist/treemap-CZk8kKFD.cjs.map +1 -0
  379. package/dist/treemap.cjs +3 -0
  380. package/dist/treemap.d.cts +3 -0
  381. package/dist/treemap.d.ts +3 -0
  382. package/dist/treemap.js +1 -0
  383. package/dist/{tween-BCYd0RTY.js → tween-BdQqUmmv.js} +2 -3
  384. package/dist/{tween-BCYd0RTY.js.map → tween-BdQqUmmv.js.map} +1 -1
  385. package/dist/{tween-CIGBlryn.cjs → tween-c3aOmfKE.cjs} +2 -3
  386. package/dist/{tween-CIGBlryn.cjs.map → tween-c3aOmfKE.cjs.map} +1 -1
  387. package/dist/{value-labels-IZIQPhfk.js → value-labels-C7GrhOXJ.js} +30 -10
  388. package/dist/value-labels-C7GrhOXJ.js.map +1 -0
  389. package/dist/{value-labels-B0WJoJ7x.cjs → value-labels-DzaKIWKp.cjs} +30 -10
  390. package/dist/value-labels-DzaKIWKp.cjs.map +1 -0
  391. package/dist/value-labels.cjs +3 -5
  392. package/dist/value-labels.cjs.map +1 -1
  393. package/dist/value-labels.d.cts +5 -1
  394. package/dist/value-labels.d.ts +5 -1
  395. package/dist/value-labels.js +3 -4
  396. package/dist/{vnode-CkQ27Cxe.cjs → vnode-ClAiw28x.cjs} +2 -3
  397. package/dist/{vnode-CkQ27Cxe.cjs.map → vnode-ClAiw28x.cjs.map} +1 -1
  398. package/dist/{vnode-BUflsBsa.d.ts → vnode-Du2cC8Fm.d.cts} +1 -4
  399. package/dist/{vnode-BUflsBsa.d.cts → vnode-Du2cC8Fm.d.ts} +1 -4
  400. package/dist/{vnode-tCWItoUH.js → vnode-_EMUqysL.js} +2 -3
  401. package/dist/{vnode-tCWItoUH.js.map → vnode-_EMUqysL.js.map} +1 -1
  402. package/package.json +94 -214
  403. package/dist/bar-C-7zR2qp.cjs.map +0 -1
  404. package/dist/bar-jZEoao74.js.map +0 -1
  405. package/dist/cartesian-BoDfgBCV.cjs.map +0 -1
  406. package/dist/cartesian-Cr0AF0nG.js.map +0 -1
  407. package/dist/chart-BF2CK9I_.js.map +0 -1
  408. package/dist/chart-CowF_lWY.cjs.map +0 -1
  409. package/dist/core-CegR_j55.js.map +0 -1
  410. package/dist/core-RzS9IQO5.cjs.map +0 -1
  411. package/dist/dom-CLF868Qs.cjs.map +0 -1
  412. package/dist/dom-vP3IcMak.js.map +0 -1
  413. package/dist/export-chart-9w8t3rjZ.js.map +0 -1
  414. package/dist/export-chart-BhhYgksr.cjs.map +0 -1
  415. package/dist/fade-Cs74puQS.cjs.map +0 -1
  416. package/dist/fade-D3NxH5Qg.js.map +0 -1
  417. package/dist/features-BclHgg2W.cjs.map +0 -1
  418. package/dist/features-wASyHGic.js.map +0 -1
  419. package/dist/gauge-D-FYhuds.cjs.map +0 -1
  420. package/dist/gauge-Dh423FHh.js.map +0 -1
  421. package/dist/heatmap-BK18EBgJ.cjs.map +0 -1
  422. package/dist/heatmap-DSZ2bVIa.js.map +0 -1
  423. package/dist/hydrate-CxwTXDqO.cjs.map +0 -1
  424. package/dist/layout-B3hiqVEw.js.map +0 -1
  425. package/dist/layout-CtMBhNd9.cjs.map +0 -1
  426. package/dist/line-B3Ed6u7j.js.map +0 -1
  427. package/dist/line-fQbtP_jL.cjs.map +0 -1
  428. package/dist/morph-CqYDu1bY.cjs.map +0 -1
  429. package/dist/parliament-CpWnoEvG.cjs.map +0 -1
  430. package/dist/parliament-Dw0sOERi.js.map +0 -1
  431. package/dist/pie-BxTZt6Go.cjs.map +0 -1
  432. package/dist/pie-DzUXDTcn.js.map +0 -1
  433. package/dist/point-shapes-CGl4dugc.cjs.map +0 -1
  434. package/dist/point-shapes-DI84NNpI.js.map +0 -1
  435. package/dist/radar-CYPab_I4.js.map +0 -1
  436. package/dist/radar-CoGUNNSb.cjs.map +0 -1
  437. package/dist/sankey-B4PNKusJ.js.map +0 -1
  438. package/dist/sankey-Bacx4fVe.cjs.map +0 -1
  439. package/dist/scatter-DgMN9zRy.cjs.map +0 -1
  440. package/dist/scatter-kgtgR318.js.map +0 -1
  441. package/dist/sparkline-BQzt27Fr.js.map +0 -1
  442. package/dist/sparkline-BS9-hltA.cjs.map +0 -1
  443. package/dist/sweep-DaTEDDuC.cjs.map +0 -1
  444. package/dist/value-labels-B0WJoJ7x.cjs.map +0 -1
  445. package/dist/value-labels-IZIQPhfk.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,39 +1,45 @@
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, t as addPost } from "./features-wASyHGic.js";
6
- import { t as extent } from "./extent-BAMZo0Nq.js";
7
- import { n as annotationValues, t as annotationLayers } from "./annotations-BszTTjf9.js";
8
- import { t as dateLabels } from "./dates-CG-FvioW.js";
9
- import { n as logTicks, r as log, t as logDomain } from "./log-axis-B_uvvOFc.js";
10
- 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$1, u as flush, v as legendContent } from "./chart-BF2CK9I_.js";
11
- import { a as render } from "./dom-vP3IcMak.js";
12
- import { n as patternFills } from "./patterns-DtgcnA8o.js";
13
- import { n as shapesStep, t as markerPath } from "./point-shapes-DI84NNpI.js";
14
- import { n as time, r as timePointScale, t as timeAxis } from "./time-axis-Bc9eHX1r.js";
15
- import { t as labelsStep } from "./value-labels-IZIQPhfk.js";
16
- import { t as hydrate } from "./hydrate-DDNIHYv_.js";
17
- import { t as morph } from "./morph-Bgg-24l8.js";
18
- import { n as lttbIndices, t as lttb } from "./decimate-C87cl_Sp.js";
19
- import { n as areaPath, r as linePath } from "./fade-D3NxH5Qg.js";
20
- 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-CegR_j55.js";
21
- import { t as line } from "./line-B3Ed6u7j.js";
22
- import { t as area } from "./area-DQsLERhx.js";
23
- import { n as hbarPath, t as barPath } from "./bar-DM16NUvV.js";
24
- import { t as bar } from "./bar-jZEoao74.js";
25
- import { t as candlestick } from "./candlestick-DuXwAFID.js";
26
- import { i as padAngleForGap, n as arcCentroid, r as arcPathStable } from "./arc-a1tRTEw7.js";
27
- import { t as gauge } from "./gauge-Dh423FHh.js";
28
- import { t as heatmap } from "./heatmap-DSZ2bVIa.js";
29
- import { t as parliament } from "./parliament-Dw0sOERi.js";
30
- import { n as pie, t as donut } from "./pie-DzUXDTcn.js";
31
- import { t as radar } from "./radar-CYPab_I4.js";
32
- import { t as sankey } from "./sankey-B4PNKusJ.js";
33
- import { t as scatter } from "./scatter-kgtgR318.js";
34
- import { t as sparkline } from "./sparkline-BQzt27Fr.js";
35
- import { n as exportImage, r as exportSVG, t as downloadChart } from "./export-chart-9w8t3rjZ.js";
36
- //#region src/chart-default.ts
1
+ import { i as insets, n as estimateTextWidth, r as innerRect, t as LINE_HEIGHT } from "./layout-DqAte3H8.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 bandTicks, c as niceDomain, d as ticks, l as tickIncrement, n as axisSize, o as linearTicks, s as thinTicks, t as axis, u as tickStep } from "./axis-MMaVoSWB.js";
5
+ import { C as linear, E as grid, T as point, _ as seriesTable, h as seriesLegend, m as seriesKey, n as categoryInteraction, r as domainOf, w as band } from "./cartesian-BrPqb5Qn.js";
6
+ import { n as annotationValues, t as annotationLayers } from "./annotations-BQ8l-qHs.js";
7
+ import { t as extent } from "./extent-DOV8rs-6.js";
8
+ import { t as dateLabels } from "./dates-DLe2Ww64.js";
9
+ import { n as logTicks, r as log, t as logDomain } from "./log-axis-DhthtHFk.js";
10
+ import { n as patternFills } from "./patterns-BMUINoka.js";
11
+ import { n as markerPath, t as markerClip } from "./point-shapes-DI6GhcI7.js";
12
+ import { a as render } from "./dom-CTse6Rvd.js";
13
+ import { n as time, r as timePointScale, t as timeAxis } from "./time-axis-CLjqOakA.js";
14
+ import { t as labelsStep } from "./value-labels-C7GrhOXJ.js";
15
+ import { i as register, n as feature, r as features, t as addPost } from "./features-B55rwpQC.js";
16
+ import { t as hydrate } from "./hydrate-BB3MlR36.js";
17
+ import { t as morph } from "./morph-GfBab-b3.js";
18
+ import { n as lttbIndices, t as lttb } from "./decimate-CapfgiDY.js";
19
+ import { n as areaPath, r as linePath } from "./fade-CDrQjnDz.js";
20
+ import { _ as escapeText, a as chartModel, b as legendContent, c as renderContext, d as cancel, f as flush, g as escapeAttr, h as schedule, i as chartLabel, l as resolveLegend, n as buildChart, o as chartToString, r as chartEvents, s as renderChart, t as Chart$1, u as resolveSize, v as renderToString, y as defaultHidden } from "./chart-B6TTY4Kr.js";
21
+ 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-CQ0FaJ4G.js";
22
+ import { t as area } from "./area-WdtfqvhX.js";
23
+ import { t as bar } from "./bar-BOcRcArc.js";
24
+ import { n as hbarPath, t as barPath } from "./bar-CgpC2EpX.js";
25
+ import { t as calendar } from "./calendar-BXgIX5H1.js";
26
+ import { t as candlestick } from "./candlestick-BtT9glp9.js";
27
+ import { t as funnel } from "./funnel-CYCv8cq2.js";
28
+ import { t as gauge } from "./gauge-DiTk5aWO.js";
29
+ import { i as padAngleForGap, n as arcCentroid, r as arcPathStable } from "./arc-B3V5IR0w.js";
30
+ import { t as heatmap } from "./heatmap-C1v8bwpq.js";
31
+ import { t as line } from "./line-CxR4tg1Q.js";
32
+ import { n as map, t as addMap } from "./map-C15NC7kW.js";
33
+ import { t as parliament } from "./parliament-BKN6ikBJ.js";
34
+ import { t as percentageBar } from "./percentage-bar-CaInxrL8.js";
35
+ import { n as pie, t as donut } from "./pie-Bd8wyrtY.js";
36
+ import { t as radar } from "./radar-D6XqkFWQ.js";
37
+ import { t as sankey } from "./sankey-Dp4CuLVe.js";
38
+ import { t as scatter } from "./scatter-DCMAtt5L.js";
39
+ import { t as sparkline } from "./sparkline-NDmq90kP.js";
40
+ import { t as treemap } from "./treemap-C4glsx-g.js";
41
+ import { n as exportImage, r as exportSVG, t as downloadChart } from "./export-chart-DoeiAyR2.js";
42
+ // src/chart-default.ts
37
43
  /**
38
44
  * A chart with every built-in plugin installed: hover highlight, legend,
39
45
  * tooltip, data table and keyboard navigation. Each can be switched off in
@@ -49,8 +55,7 @@ var Chart = class extends Chart$1 {
49
55
  super(target, config, defaultPlugins());
50
56
  }
51
57
  };
52
- //#endregion
53
- //#region src/chart-types.ts
58
+ // src/chart-types.ts
54
59
  /**
55
60
  * Every built-in chart type by its name, for charts declared in markup
56
61
  * (`<tabler-chart type="line">`, `data-tc-chart="line"`). Importing it
@@ -66,13 +71,17 @@ const types = {
66
71
  sparkline,
67
72
  gauge,
68
73
  heatmap,
74
+ calendar,
75
+ map,
69
76
  candlestick,
70
77
  radar,
71
78
  sankey,
72
- parliament
79
+ parliament,
80
+ treemap,
81
+ "percentage-bar": percentageBar,
82
+ funnel
73
83
  };
74
- //#endregion
75
- //#region src/index.ts
84
+ // src/index.ts
76
85
  /**
77
86
  * `@tabler/charts`: everything from `@tabler/charts/core`, with a `Chart`
78
87
  * that installs the built-in plugins (tooltip, legend, keyboard, …) and
@@ -104,12 +113,11 @@ register({
104
113
  },
105
114
  patterns: patternFills,
106
115
  "point-shapes": markerPath,
116
+ swatch: markerClip,
107
117
  hydrate,
108
118
  morph
109
119
  });
110
- addPost(shapesStep);
111
120
  addPost(labelsStep);
112
- //#endregion
113
- 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, downloadChart, escapeAttr, escapeText, estimateTextWidth, exportImage, exportSVG, 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, log, lttb, lttbIndices, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, parliament, 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, time, timePointScale, tooltip, tooltipContent, types };
121
+ export { Chart, LINE_HEIGHT, VERSION, addMap, arcCentroid, arcPathStable, area, areaPath, axis, axisSize, band, bandTicks, bar, barPath, buildChart, calendar, cancel, candlestick, categoryInteraction, chartEvents, chartLabel, chartModel, chartToString, dataTable, defaultHidden, defaultPlugins, describeHit, domainOf, donut, download, downloadChart, escapeAttr, escapeText, estimateTextWidth, exportImage, exportSVG, extent, feature, features, flush, formatDate, formatDetail, formatNumber, formatTicks, funnel, gauge, getDateFormat, getNumberFormat, grid, h, hbarPath, heatmap, highlight, hitAnchor, hoverOverlay, hoverUnderlay, innerRect, insets, keyboard, legend, legendContent, line, linePath, linear, linearTicks, log, lttb, lttbIndices, map, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, parliament, percentageBar, pie, placeTooltip, point, pointer, radar, register, render, renderChart, renderContext, renderToString, resolveLegend, resolveSize, sankey, scatter, schedule, seriesKey, seriesLegend, seriesTable, sparkline, stepPrecision, sync, tableContent, thinTicks, tickIncrement, tickStep, ticks, time, timePointScale, tooltip, tooltipContent, treemap, types };
114
122
 
115
123
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["CoreChart"],"sources":["../src/chart-default.ts","../src/chart-types.ts","../src/index.ts"],"sourcesContent":["import { type ChartConfig, Chart as CoreChart } from './chart.ts'\nimport { defaultPlugins } from './plugins/index.ts'\n\n/**\n * A chart with every built-in plugin installed: hover highlight, legend,\n * tooltip, data table and keyboard navigation. Each can be switched off in\n * the config (`tooltip: false`, …). For the smallest bundle, use the bare\n * `Chart` from `@tabler/charts/core` and pick plugins explicitly.\n *\n * ```ts\n * const chart = new Chart('#sales', { type: line, data })\n * ```\n */\nexport class Chart<O extends object = object> extends CoreChart<O> {\n constructor(target: Element | string, config: ChartConfig<O>) {\n super(target, config, defaultPlugins())\n }\n}\n","import type { ChartType } from './chart.ts'\nimport { area } from './charts/area.ts'\nimport { bar } from './charts/bar.ts'\nimport { candlestick } from './charts/candlestick.ts'\nimport { gauge } from './charts/gauge.ts'\nimport { heatmap } from './charts/heatmap.ts'\nimport { line } from './charts/line.ts'\nimport { parliament } from './charts/parliament.ts'\nimport { donut, pie } from './charts/pie.ts'\nimport { radar } from './charts/radar.ts'\nimport { sankey } from './charts/sankey.ts'\nimport { scatter } from './charts/scatter.ts'\nimport { sparkline } from './charts/sparkline.ts'\n\n/**\n * Every built-in chart type by its name, for charts declared in markup\n * (`<tabler-chart type=\"line\">`, `data-tc-chart=\"line\"`). Importing it\n * brings every type along: code that knows its types imports them directly.\n */\nexport const types: Readonly<Record<string, ChartType<never>>> = {\n line,\n area,\n bar,\n pie,\n donut,\n scatter,\n sparkline,\n gauge,\n heatmap,\n candlestick,\n radar,\n sankey,\n parliament,\n} as Record<string, ChartType<never>>\n","/**\n * `@tabler/charts`: everything from `@tabler/charts/core`, with a `Chart`\n * that installs the built-in plugins (tooltip, legend, keyboard, …) and\n * every optional feature registered (time and log axes, decimation,\n * annotations, pattern fills, value labels, point shapes). The one exception\n * is the `download` menu's saver: `import '@tabler/charts/export'` adds it,\n * so charts that never offer a download do not carry the export code.\n */\n\nimport { annotationLayers, annotationValues } from './charts/annotations.ts'\nimport { dateLabels } from './charts/dates.ts'\nimport { logDomain, logTicks } from './charts/log-axis.ts'\nimport { patternFills } from './charts/patterns.ts'\nimport { markerPath, shapesStep } from './charts/point-shapes.ts'\nimport { timeAxis } from './charts/time-axis.ts'\nimport { labelsStep } from './charts/value-labels.ts'\nimport { addPost, register } from './features.ts'\nimport { hydrate } from './render/hydrate.ts'\nimport { morph } from './render/morph.ts'\nimport { log } from './scales/log.ts'\nimport { time, timePointScale } from './scales/time.ts'\nimport { lttb, lttbIndices } from './shapes/decimate.ts'\nimport { areaPath, linePath } from './shapes/path.ts'\n\n// Registered here, in the entry itself, so no bundler can shake it away.\nregister({\n time: { scale: time, points: timePointScale, axis: timeAxis },\n dates: dateLabels,\n log: { scale: log, domain: logDomain, ticks: logTicks },\n decimate: lttbIndices,\n line: { linePath, areaPath },\n annotations: { layers: annotationLayers, values: annotationValues },\n patterns: patternFills,\n 'point-shapes': markerPath,\n hydrate,\n morph,\n})\n\n// Steps that finish the content: shapes first, then the labels over them.\naddPost(shapesStep)\naddPost(labelsStep)\n\nexport { Chart } from './chart-default.ts'\nexport { types } from './chart-types.ts'\nexport * from './core.ts'\nexport type { DownloadOptions, ExportOptions, ExportTarget, ImageOptions } from './export-chart.ts'\nexport { downloadChart, exportImage, exportSVG } from './export-chart.ts'\nexport type { LogScaleOptions } from './scales/log.ts'\nexport type { TimeScale, TimeScaleOptions, TimeValue } from './scales/time.ts'\nexport { log, lttb, lttbIndices, time, timePointScale }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAa,QAAb,cAAsDA,QAAa;CACjE,YAAY,QAA0B,QAAwB;EAC5D,MAAM,QAAQ,QAAQ,eAAe,CAAC;CACxC;AACF;;;;;;;;ACEA,MAAa,QAAoD;CAC/D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;;;;;;ACRA,SAAS;CACP,MAAM;EAAE,OAAO;EAAM,QAAQ;EAAgB,MAAM;CAAS;CAC5D,OAAO;CACP,KAAK;EAAE,OAAO;EAAK,QAAQ;EAAW,OAAO;CAAS;CACtD,UAAU;CACV,MAAM;EAAE;EAAU;CAAS;CAC3B,aAAa;EAAE,QAAQ;EAAkB,QAAQ;CAAiB;CAClE,UAAU;CACV,gBAAgB;CAChB;CACA;AACF,CAAC;AAGD,QAAQ,UAAU;AAClB,QAAQ,UAAU"}
1
+ {"version":3,"file":"index.js","names":["CoreChart"],"sources":["../src/chart-default.ts","../src/chart-types.ts","../src/index.ts"],"sourcesContent":["import { type ChartConfig, Chart as CoreChart } from './chart.ts'\nimport { defaultPlugins } from './plugins/index.ts'\n\n/**\n * A chart with every built-in plugin installed: hover highlight, legend,\n * tooltip, data table and keyboard navigation. Each can be switched off in\n * the config (`tooltip: false`, …). For the smallest bundle, use the bare\n * `Chart` from `@tabler/charts/core` and pick plugins explicitly.\n *\n * ```ts\n * const chart = new Chart('#sales', { type: line, data })\n * ```\n */\nexport class Chart<O extends object = object> extends CoreChart<O> {\n constructor(target: HTMLElement | string, config: ChartConfig<O>) {\n super(target, config, defaultPlugins())\n }\n}\n","import type { ChartType } from './chart.ts'\nimport { area } from './charts/area.ts'\nimport { bar } from './charts/bar.ts'\nimport { calendar } from './charts/calendar.ts'\nimport { candlestick } from './charts/candlestick.ts'\nimport { funnel } from './charts/funnel.ts'\nimport { gauge } from './charts/gauge.ts'\nimport { heatmap } from './charts/heatmap.ts'\nimport { line } from './charts/line.ts'\nimport { map } from './charts/map.ts'\nimport { parliament } from './charts/parliament.ts'\nimport { percentageBar } from './charts/percentage-bar.ts'\nimport { donut, pie } from './charts/pie.ts'\nimport { radar } from './charts/radar.ts'\nimport { sankey } from './charts/sankey.ts'\nimport { scatter } from './charts/scatter.ts'\nimport { sparkline } from './charts/sparkline.ts'\nimport { treemap } from './charts/treemap.ts'\n\n/**\n * Every built-in chart type by its name, for charts declared in markup\n * (`<tabler-chart type=\"line\">`, `data-tc-chart=\"line\"`). Importing it\n * brings every type along: code that knows its types imports them directly.\n */\nexport const types: Readonly<Record<string, ChartType<never>>> = {\n line,\n area,\n bar,\n pie,\n donut,\n scatter,\n sparkline,\n gauge,\n heatmap,\n calendar,\n map,\n candlestick,\n radar,\n sankey,\n parliament,\n treemap,\n 'percentage-bar': percentageBar,\n funnel,\n} as Record<string, ChartType<never>>\n","/**\n * `@tabler/charts`: everything from `@tabler/charts/core`, with a `Chart`\n * that installs the built-in plugins (tooltip, legend, keyboard, …) and\n * every optional feature registered (time and log axes, decimation,\n * annotations, pattern fills, value labels, point shapes). The one exception\n * is the `download` menu's saver: `import '@tabler/charts/export'` adds it,\n * so charts that never offer a download do not carry the export code.\n */\n\nimport { annotationLayers, annotationValues } from './charts/annotations.ts'\nimport { dateLabels } from './charts/dates.ts'\nimport { logDomain, logTicks } from './charts/log-axis.ts'\nimport { patternFills } from './charts/patterns.ts'\nimport { markerClip, markerPath } from './charts/point-shapes.ts'\nimport { timeAxis } from './charts/time-axis.ts'\nimport { labelsStep } from './charts/value-labels.ts'\nimport { addPost, register } from './features.ts'\nimport { hydrate } from './render/hydrate.ts'\nimport { morph } from './render/morph.ts'\nimport { log } from './scales/log.ts'\nimport { time, timePointScale } from './scales/time.ts'\nimport { lttb, lttbIndices } from './shapes/decimate.ts'\nimport { areaPath, linePath } from './shapes/path.ts'\n\n// Registered here, in the entry itself, so no bundler can shake it away.\nregister({\n time: { scale: time, points: timePointScale, axis: timeAxis },\n dates: dateLabels,\n log: { scale: log, domain: logDomain, ticks: logTicks },\n decimate: lttbIndices,\n line: { linePath, areaPath },\n annotations: { layers: annotationLayers, values: annotationValues },\n patterns: patternFills,\n 'point-shapes': markerPath,\n swatch: markerClip,\n hydrate,\n morph,\n})\n\n// The step that finishes the content: value labels over the marks.\naddPost(labelsStep)\n\nexport { Chart } from './chart-default.ts'\nexport { types } from './chart-types.ts'\nexport * from './core.ts'\nexport type { DownloadOptions, ExportOptions, ExportTarget, ImageOptions } from './export-chart.ts'\nexport { downloadChart, exportImage, exportSVG } from './export-chart.ts'\nexport type { LogScaleOptions } from './scales/log.ts'\nexport type { TimeScale, TimeScaleOptions, TimeValue } from './scales/time.ts'\nexport { log, lttb, lttbIndices, time, timePointScale }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAa,QAAb,cAAsDA,QAAa;CACjE,YAAY,QAA8B,QAAwB;EAChE,MAAM,QAAQ,QAAQ,eAAe,CAAC;CACxC;AACF;;;;;;;ACOA,MAAa,QAAoD;CAC/D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,kBAAkB;CAClB;AACF;;;;;;;;;;AClBA,SAAS;CACP,MAAM;EAAE,OAAO;EAAM,QAAQ;EAAgB,MAAM;CAAS;CAC5D,OAAO;CACP,KAAK;EAAE,OAAO;EAAK,QAAQ;EAAW,OAAO;CAAS;CACtD,UAAU;CACV,MAAM;EAAE;EAAU;CAAS;CAC3B,aAAa;EAAE,QAAQ;EAAkB,QAAQ;CAAiB;CAClE,UAAU;CACV,gBAAgB;CAChB,QAAQ;CACR;CACA;AACF,CAAC;AAGD,QAAQ,UAAU"}
@@ -0,0 +1,32 @@
1
+ // src/interaction.ts
2
+ /** Identity of a hit, used to emit hover changes only when it changes. */
3
+ function hitKey(hit) {
4
+ return hit ? `${hit.index}:${hit.seriesIndex ?? ""}` : "";
5
+ }
6
+ /**
7
+ * Convert a pointer position to chart pixels, accounting for the SVG being
8
+ * scaled by CSS (e.g. `max-width: 100%`).
9
+ */
10
+ function toChartPoint(svg, clientX, clientY, width, height) {
11
+ const rect = svg.getBoundingClientRect();
12
+ const sx = rect.width > 0 ? width / rect.width : 1;
13
+ const sy = rect.height > 0 ? height / rect.height : 1;
14
+ return {
15
+ x: (clientX - rect.left) * sx,
16
+ y: (clientY - rect.top) * sy
17
+ };
18
+ }
19
+ Object.defineProperty(exports, "hitKey", {
20
+ enumerable: true,
21
+ get: function() {
22
+ return hitKey;
23
+ }
24
+ });
25
+ Object.defineProperty(exports, "toChartPoint", {
26
+ enumerable: true,
27
+ get: function() {
28
+ return toChartPoint;
29
+ }
30
+ });
31
+
32
+ //# sourceMappingURL=interaction-DXYSjgnP.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interaction-DXYSjgnP.cjs","names":[],"sources":["../src/interaction.ts"],"sourcesContent":["import type { Rect } from './layout.ts'\n\n/** One series' value at a hovered position. */\nexport interface HitItem {\n /** Series name. */\n name: string\n /** Position of the series in `data.series`. */\n seriesIndex: number\n /** Custom series color, if one was set. */\n color?: string\n value: number | null\n /** Value formatted for display (tooltips). */\n text: string\n /** Anchor of the value in chart pixels (point, bar end); `y` is `null` for gaps. */\n x: number\n y: number | null\n /** The mark's rectangle (bar, segment, cell), for value labels inside it. */\n box?: Rect\n}\n\n/** What lies under the pointer. */\nexport interface Hit {\n /** Category index. */\n index: number\n /** Category label. */\n label: string | number\n /** Label formatted for display (tooltips). */\n title: string\n /** Anchor x of the category in chart pixels (for crosshairs and tooltips); the plot center for horizontal bars. */\n x: number\n /** Plot area, in chart pixels. */\n area: Rect\n /** Axis the categories run along; `'y'` for horizontal bars. Defaults to `'x'`. */\n axis?: 'x' | 'y'\n /** Center of the category along y, when categories run along y. */\n y?: number\n /** Every series' value at this category. */\n items: HitItem[]\n /** Series of the mark directly under the pointer (e.g. a bar), if any. */\n seriesIndex?: number\n /** The shape that marks the hit; a crosshair when left out. */\n highlight?: Highlight\n}\n\n/**\n * The one shape drawn to mark a hit, in chart pixels:\n *\n * - `crosshair`: a vertical line through the category across the plot, and\n * a dot on every value (point charts);\n * - `band`: the category's band behind the series (bars);\n * - `spoke`: a line from `x1, y1` to `x2, y2` (a radar spoke), and a dot on\n * every value; keyboard tooltips anchor on the value itself;\n * - `halo`: path data `d` drawn translated by `x` / `y` in the color of the\n * hit's series (a ring around a pie slice); `under` draws it below the\n * chart instead of above, so it never covers the labels.\n */\nexport type Highlight =\n | { kind: 'crosshair' }\n | { kind: 'band'; x: number; y: number; width: number; height: number }\n | { kind: 'spoke'; x1: number; y1: number; x2: number; y2: number }\n | { kind: 'halo'; d: string; x?: number; y?: number; under?: boolean }\n\n/** Maps a point in chart pixels to what lies there. */\nexport type HitTester = (x: number, y: number) => Hit | null\n\n/** How a rendered chart answers pointer and keyboard interaction. */\nexport interface Interaction {\n /** What lies at a point in chart pixels. */\n hitTest: HitTester\n /** The hit for a category by index (keyboard navigation), optionally focused on a series. */\n hitIndex(index: number, seriesIndex?: number): Hit | null\n /** Number of categories. */\n count: number\n /**\n * Categories fill a grid column by column, this many to a column (the days\n * of a calendar in weeks): left and right move by a column, up and down by one.\n */\n rows?: number\n /** Categories run from the right: the left arrow key goes to the next one. */\n reversed?: boolean\n}\n\n/** Identity of a hit, used to emit hover changes only when it changes. */\nexport function hitKey(hit: Hit | null): string {\n return hit ? `${hit.index}:${hit.seriesIndex ?? ''}` : ''\n}\n\n/**\n * Convert a pointer position to chart pixels, accounting for the SVG being\n * scaled by CSS (e.g. `max-width: 100%`).\n */\nexport function toChartPoint(\n svg: Element,\n clientX: number,\n clientY: number,\n width: number,\n height: number,\n): { x: number; y: number } {\n const rect = svg.getBoundingClientRect()\n const sx = rect.width > 0 ? width / rect.width : 1\n const sy = rect.height > 0 ? height / rect.height : 1\n return { x: (clientX - rect.left) * sx, y: (clientY - rect.top) * sy }\n}\n"],"mappings":";;AAmFA,SAAgB,OAAO,KAAyB;CAC9C,OAAO,MAAM,GAAG,IAAI,MAAM,GAAG,IAAI,eAAe,OAAO;AACzD;;;;;AAMA,SAAgB,aACd,KACA,SACA,SACA,OACA,QAC0B;CAC1B,MAAM,OAAO,IAAI,sBAAsB;CACvC,MAAM,KAAK,KAAK,QAAQ,IAAI,QAAQ,KAAK,QAAQ;CACjD,MAAM,KAAK,KAAK,SAAS,IAAI,SAAS,KAAK,SAAS;CACpD,OAAO;EAAE,IAAI,UAAU,KAAK,QAAQ;EAAI,IAAI,UAAU,KAAK,OAAO;CAAG;AACvE"}
@@ -0,0 +1,21 @@
1
+ // src/interaction.ts
2
+ /** Identity of a hit, used to emit hover changes only when it changes. */
3
+ function hitKey(hit) {
4
+ return hit ? `${hit.index}:${hit.seriesIndex ?? ""}` : "";
5
+ }
6
+ /**
7
+ * Convert a pointer position to chart pixels, accounting for the SVG being
8
+ * scaled by CSS (e.g. `max-width: 100%`).
9
+ */
10
+ function toChartPoint(svg, clientX, clientY, width, height) {
11
+ const rect = svg.getBoundingClientRect();
12
+ const sx = rect.width > 0 ? width / rect.width : 1;
13
+ const sy = rect.height > 0 ? height / rect.height : 1;
14
+ return {
15
+ x: (clientX - rect.left) * sx,
16
+ y: (clientY - rect.top) * sy
17
+ };
18
+ }
19
+ export { toChartPoint as n, hitKey as t };
20
+
21
+ //# sourceMappingURL=interaction-En1KlwFO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interaction-En1KlwFO.js","names":[],"sources":["../src/interaction.ts"],"sourcesContent":["import type { Rect } from './layout.ts'\n\n/** One series' value at a hovered position. */\nexport interface HitItem {\n /** Series name. */\n name: string\n /** Position of the series in `data.series`. */\n seriesIndex: number\n /** Custom series color, if one was set. */\n color?: string\n value: number | null\n /** Value formatted for display (tooltips). */\n text: string\n /** Anchor of the value in chart pixels (point, bar end); `y` is `null` for gaps. */\n x: number\n y: number | null\n /** The mark's rectangle (bar, segment, cell), for value labels inside it. */\n box?: Rect\n}\n\n/** What lies under the pointer. */\nexport interface Hit {\n /** Category index. */\n index: number\n /** Category label. */\n label: string | number\n /** Label formatted for display (tooltips). */\n title: string\n /** Anchor x of the category in chart pixels (for crosshairs and tooltips); the plot center for horizontal bars. */\n x: number\n /** Plot area, in chart pixels. */\n area: Rect\n /** Axis the categories run along; `'y'` for horizontal bars. Defaults to `'x'`. */\n axis?: 'x' | 'y'\n /** Center of the category along y, when categories run along y. */\n y?: number\n /** Every series' value at this category. */\n items: HitItem[]\n /** Series of the mark directly under the pointer (e.g. a bar), if any. */\n seriesIndex?: number\n /** The shape that marks the hit; a crosshair when left out. */\n highlight?: Highlight\n}\n\n/**\n * The one shape drawn to mark a hit, in chart pixels:\n *\n * - `crosshair`: a vertical line through the category across the plot, and\n * a dot on every value (point charts);\n * - `band`: the category's band behind the series (bars);\n * - `spoke`: a line from `x1, y1` to `x2, y2` (a radar spoke), and a dot on\n * every value; keyboard tooltips anchor on the value itself;\n * - `halo`: path data `d` drawn translated by `x` / `y` in the color of the\n * hit's series (a ring around a pie slice); `under` draws it below the\n * chart instead of above, so it never covers the labels.\n */\nexport type Highlight =\n | { kind: 'crosshair' }\n | { kind: 'band'; x: number; y: number; width: number; height: number }\n | { kind: 'spoke'; x1: number; y1: number; x2: number; y2: number }\n | { kind: 'halo'; d: string; x?: number; y?: number; under?: boolean }\n\n/** Maps a point in chart pixels to what lies there. */\nexport type HitTester = (x: number, y: number) => Hit | null\n\n/** How a rendered chart answers pointer and keyboard interaction. */\nexport interface Interaction {\n /** What lies at a point in chart pixels. */\n hitTest: HitTester\n /** The hit for a category by index (keyboard navigation), optionally focused on a series. */\n hitIndex(index: number, seriesIndex?: number): Hit | null\n /** Number of categories. */\n count: number\n /**\n * Categories fill a grid column by column, this many to a column (the days\n * of a calendar in weeks): left and right move by a column, up and down by one.\n */\n rows?: number\n /** Categories run from the right: the left arrow key goes to the next one. */\n reversed?: boolean\n}\n\n/** Identity of a hit, used to emit hover changes only when it changes. */\nexport function hitKey(hit: Hit | null): string {\n return hit ? `${hit.index}:${hit.seriesIndex ?? ''}` : ''\n}\n\n/**\n * Convert a pointer position to chart pixels, accounting for the SVG being\n * scaled by CSS (e.g. `max-width: 100%`).\n */\nexport function toChartPoint(\n svg: Element,\n clientX: number,\n clientY: number,\n width: number,\n height: number,\n): { x: number; y: number } {\n const rect = svg.getBoundingClientRect()\n const sx = rect.width > 0 ? width / rect.width : 1\n const sy = rect.height > 0 ? height / rect.height : 1\n return { x: (clientX - rect.left) * sx, y: (clientY - rect.top) * sy }\n}\n"],"mappings":";;AAmFA,SAAgB,OAAO,KAAyB;CAC9C,OAAO,MAAM,GAAG,IAAI,MAAM,GAAG,IAAI,eAAe,OAAO;AACzD;;;;;AAMA,SAAgB,aACd,KACA,SACA,SACA,OACA,QAC0B;CAC1B,MAAM,OAAO,IAAI,sBAAsB;CACvC,MAAM,KAAK,KAAK,QAAQ,IAAI,QAAQ,KAAK,QAAQ;CACjD,MAAM,KAAK,KAAK,SAAS,IAAI,SAAS,KAAK,SAAS;CACpD,OAAO;EAAE,IAAI,UAAU,KAAK,QAAQ;EAAI,IAAI,UAAU,KAAK,OAAO;CAAG;AACvE"}
@@ -1,4 +1,4 @@
1
- //#region src/layout.ts
1
+ // src/layout.ts
2
2
  /** Normalize an {@link InsetsInput}; missing sides fall back to `fallback`. */
3
3
  function insets(value, fallback = 0) {
4
4
  const side = (key) => {
@@ -12,6 +12,12 @@ function insets(value, fallback = 0) {
12
12
  left: side("left")
13
13
  };
14
14
  }
15
+ /** Swap the left and right of `sides` in a right-to-left chart. */
16
+ const mirrorSides = (sides, rtl) => rtl ? {
17
+ ...sides,
18
+ left: sides.right,
19
+ right: sides.left
20
+ } : sides;
15
21
  /** Rectangle left inside `width × height` after `margins`; never negative. */
16
22
  function innerRect(width, height, margins) {
17
23
  return {
@@ -21,6 +27,31 @@ function innerRect(width, height, margins) {
21
27
  height: Math.max(0, height - margins.top - margins.bottom)
22
28
  };
23
29
  }
30
+ /**
31
+ * Place the plot area of a chart with axes. `margins` gets the padding by
32
+ * reading direction and returns the space each side needs, so a chart type
33
+ * works its margins out once, whichever way the chart is read.
34
+ */
35
+ function plotFrame(size, padding, margins) {
36
+ const { width, height, rtl } = size;
37
+ const pad = insets(padding);
38
+ const m = margins({
39
+ ...pad,
40
+ start: rtl ? pad.right : pad.left,
41
+ end: rtl ? pad.left : pad.right
42
+ });
43
+ const area = innerRect(width, height, {
44
+ ...m,
45
+ left: rtl ? m.end : m.start,
46
+ right: rtl ? m.start : m.end
47
+ });
48
+ const end = area.x + area.width;
49
+ return {
50
+ area,
51
+ side: rtl ? "right" : "left",
52
+ range: (reverse = rtl) => reverse ? [end, area.x] : [area.x, end]
53
+ };
54
+ }
24
55
  const THIN = " !'.,:;|ijlI`";
25
56
  const NARROW = "()[]{}-/frt";
26
57
  const ROUND = "CDGHNOQU";
@@ -63,7 +94,6 @@ const ASCII = /* @__PURE__ */ Array.from({ length: 128 }, (_, code) => charWidth
63
94
  const round = (value) => Math.round(value * 100) / 100;
64
95
  /** Line height used for single-line labels, relative to the font size. */
65
96
  const LINE_HEIGHT = 1.25;
66
- //#endregion
67
97
  Object.defineProperty(exports, "LINE_HEIGHT", {
68
98
  enumerable: true,
69
99
  get: function() {
@@ -88,6 +118,18 @@ Object.defineProperty(exports, "insets", {
88
118
  return insets;
89
119
  }
90
120
  });
121
+ Object.defineProperty(exports, "mirrorSides", {
122
+ enumerable: true,
123
+ get: function() {
124
+ return mirrorSides;
125
+ }
126
+ });
127
+ Object.defineProperty(exports, "plotFrame", {
128
+ enumerable: true,
129
+ get: function() {
130
+ return plotFrame;
131
+ }
132
+ });
91
133
  Object.defineProperty(exports, "round", {
92
134
  enumerable: true,
93
135
  get: function() {
@@ -95,4 +137,4 @@ Object.defineProperty(exports, "round", {
95
137
  }
96
138
  });
97
139
 
98
- //# sourceMappingURL=layout-CtMBhNd9.cjs.map
140
+ //# sourceMappingURL=layout-Cfg9x1k2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-Cfg9x1k2.cjs","names":[],"sources":["../src/layout.ts"],"sourcesContent":["/** Axis-aligned rectangle in pixels. */\nexport interface Rect {\n x: number\n y: number\n width: number\n height: number\n}\n\n/** Space around a box, in pixels. */\nexport interface Insets {\n top: number\n right: number\n bottom: number\n left: number\n}\n\n/** Insets given as one number for all sides or per side. */\nexport type InsetsInput = number | Partial<Insets>\n\n/** Normalize an {@link InsetsInput}; missing sides fall back to `fallback`. */\nexport function insets(value: InsetsInput | undefined, fallback = 0): Insets {\n // A side that is not a finite number (left out, or junk from outside) takes the fallback.\n const side = (key: keyof Insets): number => {\n const v = typeof value === 'number' ? value : value?.[key]\n return Number.isFinite(v) ? (v as number) : fallback\n }\n return { top: side('top'), right: side('right'), bottom: side('bottom'), left: side('left') }\n}\n\n/** Swap the left and right of `sides` in a right-to-left chart. */\nexport const mirrorSides = <T extends { left: number; right: number }>(\n sides: T,\n rtl: boolean | undefined,\n): T => (rtl ? { ...sides, left: sides.right, right: sides.left } : sides)\n\n/** Rectangle left inside `width × height` after `margins`; never negative. */\nexport function innerRect(width: number, height: number, margins: Insets): Rect {\n return {\n x: margins.left,\n y: margins.top,\n width: Math.max(0, width - margins.left - margins.right),\n height: Math.max(0, height - margins.top - margins.bottom),\n }\n}\n\n/**\n * Space around a box by reading direction: `start` is the side the chart is\n * read from (the left, or the right in a right-to-left chart), `end` the other.\n */\nexport interface FrameInsets {\n top: number\n bottom: number\n start: number\n end: number\n}\n\n/** A plot area placed for the chart's reading direction. */\nexport interface PlotFrame {\n /** Where the data is drawn. */\n area: Rect\n /** The start side, where the axis beside the plot sits. */\n side: 'left' | 'right'\n /** The plot's horizontal range, from the end side when `reverse` (by default in a right-to-left chart). */\n range(reverse?: boolean): [number, number]\n}\n\n/**\n * Place the plot area of a chart with axes. `margins` gets the padding by\n * reading direction and returns the space each side needs, so a chart type\n * works its margins out once, whichever way the chart is read.\n */\nexport function plotFrame(\n size: { width: number; height: number; rtl?: boolean },\n padding: InsetsInput | undefined,\n margins: (padding: FrameInsets) => FrameInsets,\n): PlotFrame {\n const { width, height, rtl } = size\n const pad = insets(padding)\n const m = margins({\n ...pad,\n start: rtl ? pad.right : pad.left,\n end: rtl ? pad.left : pad.right,\n })\n const area = innerRect(width, height, {\n ...m,\n left: rtl ? m.end : m.start,\n right: rtl ? m.start : m.end,\n })\n const end = area.x + area.width\n return {\n area,\n side: rtl ? 'right' : 'left',\n range: (reverse = rtl) => (reverse ? [end, area.x] : [area.x, end]),\n }\n}\n\n// Approximate advance widths in em for common UI sans-serif fonts\n// (system-ui / SF, Segoe UI, Roboto), measured in the browser.\nconst THIN = \" !'.,:;|ijlI`\"\nconst NARROW = '()[]{}-/frt'\nconst ROUND = 'CDGHNOQU'\nconst WIDE = '%@MWmw'\n\n/**\n * Full-width characters, a whole em each: Hangul, CJK and kana, compatibility\n * ideographs, fullwidth forms and pictographs (emoji).\n */\nconst isWide = (code: number): boolean =>\n code >= 0x1100 &&\n (code <= 0x115f ||\n (code >= 0x2e80 && code <= 0xa4cf) ||\n (code >= 0xac00 && code <= 0xd7a3) ||\n (code >= 0xf900 && code <= 0xfaff) ||\n (code >= 0xff00 && code <= 0xff60) ||\n code >= 0x1f300)\n\n/** The width of an ASCII character, in em. */\nfunction charWidth(char: string): number {\n if (char >= '0' && char <= '9') return char === '1' ? 0.45 : 0.63\n if (THIN.includes(char)) return 0.27\n if (NARROW.includes(char)) return 0.38\n if (WIDE.includes(char)) return 0.88\n if (ROUND.includes(char)) return 0.76\n if (char >= 'A' && char <= 'Z') return 0.66\n return 0.57\n}\n\n/**\n * Estimate the rendered width of `text` without a DOM, for layout on the\n * server and in workers. Tuned for common UI sans-serif fonts; deterministic,\n * so SSR and client layouts agree.\n */\nexport function estimateTextWidth(text: string, fontSize: number): number {\n let em = 0\n for (let i = 0; i < text.length; i++) {\n const point = text.codePointAt(i) as number\n // Beyond ASCII a character is a whole em or an average one; a pair of surrogates is one.\n em += ASCII[point] ?? (isWide(point) ? 1 : 0.57)\n if (point > 0xffff) i++\n }\n return em * fontSize\n}\n\n/**\n * The width of every ASCII character, looked up instead of worked out: an\n * axis of 100,000 long labels estimates millions of characters per render.\n */\nconst ASCII = /* @__PURE__ */ Array.from({ length: 128 }, (_, code) =>\n charWidth(String.fromCharCode(code)),\n)\n\n/** A pixel value rounded to two decimals, as written into attributes and path data. */\nexport const round = (value: number): number => Math.round(value * 100) / 100\n\n/** Line height used for single-line labels, relative to the font size. */\nexport const LINE_HEIGHT = 1.25\n"],"mappings":";;AAoBA,SAAgB,OAAO,OAAgC,WAAW,GAAW;CAE3E,MAAM,QAAQ,QAA8B;EAC1C,MAAM,IAAI,OAAO,UAAU,WAAW,QAAQ,QAAQ;EACtD,OAAO,OAAO,SAAS,CAAC,IAAK,IAAe;CAC9C;CACA,OAAO;EAAE,KAAK,KAAK,KAAK;EAAG,OAAO,KAAK,OAAO;EAAG,QAAQ,KAAK,QAAQ;EAAG,MAAM,KAAK,MAAM;CAAE;AAC9F;;AAGA,MAAa,eACX,OACA,QACO,MAAM;CAAE,GAAG;CAAO,MAAM,MAAM;CAAO,OAAO,MAAM;AAAK,IAAI;;AAGpE,SAAgB,UAAU,OAAe,QAAgB,SAAuB;CAC9E,OAAO;EACL,GAAG,QAAQ;EACX,GAAG,QAAQ;EACX,OAAO,KAAK,IAAI,GAAG,QAAQ,QAAQ,OAAO,QAAQ,KAAK;EACvD,QAAQ,KAAK,IAAI,GAAG,SAAS,QAAQ,MAAM,QAAQ,MAAM;CAC3D;AACF;;;;;;AA4BA,SAAgB,UACd,MACA,SACA,SACW;CACX,MAAM,EAAE,OAAO,QAAQ,QAAQ;CAC/B,MAAM,MAAM,OAAO,OAAO;CAC1B,MAAM,IAAI,QAAQ;EAChB,GAAG;EACH,OAAO,MAAM,IAAI,QAAQ,IAAI;EAC7B,KAAK,MAAM,IAAI,OAAO,IAAI;CAC5B,CAAC;CACD,MAAM,OAAO,UAAU,OAAO,QAAQ;EACpC,GAAG;EACH,MAAM,MAAM,EAAE,MAAM,EAAE;EACtB,OAAO,MAAM,EAAE,QAAQ,EAAE;CAC3B,CAAC;CACD,MAAM,MAAM,KAAK,IAAI,KAAK;CAC1B,OAAO;EACL;EACA,MAAM,MAAM,UAAU;EACtB,QAAQ,UAAU,QAAS,UAAU,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG;CACnE;AACF;AAIA,MAAM,OAAO;AACb,MAAM,SAAS;AACf,MAAM,QAAQ;AACd,MAAM,OAAO;;;;;AAMb,MAAM,UAAU,SACd,QAAQ,SACP,QAAQ,QACN,QAAQ,SAAU,QAAQ,SAC1B,QAAQ,SAAU,QAAQ,SAC1B,QAAQ,SAAU,QAAQ,SAC1B,QAAQ,SAAU,QAAQ,SAC3B,QAAQ;;AAGZ,SAAS,UAAU,MAAsB;CACvC,IAAI,QAAQ,OAAO,QAAQ,KAAK,OAAO,SAAS,MAAM,MAAO;CAC7D,IAAI,KAAK,SAAS,IAAI,GAAG,OAAO;CAChC,IAAI,OAAO,SAAS,IAAI,GAAG,OAAO;CAClC,IAAI,KAAK,SAAS,IAAI,GAAG,OAAO;CAChC,IAAI,MAAM,SAAS,IAAI,GAAG,OAAO;CACjC,IAAI,QAAQ,OAAO,QAAQ,KAAK,OAAO;CACvC,OAAO;AACT;;;;;;AAOA,SAAgB,kBAAkB,MAAc,UAA0B;CACxE,IAAI,KAAK;CACT,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;EACpC,MAAM,QAAQ,KAAK,YAAY,CAAC;EAEhC,MAAM,MAAM,WAAW,OAAO,KAAK,IAAI,IAAI;EAC3C,IAAI,QAAQ,OAAQ;CACtB;CACA,OAAO,KAAK;AACd;;;;;AAMA,MAAM,QAAwB,sBAAM,KAAK,EAAE,QAAQ,IAAI,IAAI,GAAG,SAC5D,UAAU,OAAO,aAAa,IAAI,CAAC,CACrC;;AAGA,MAAa,SAAS,UAA0B,KAAK,MAAM,QAAQ,GAAG,IAAI;;AAG1E,MAAa,cAAc"}
@@ -1,4 +1,4 @@
1
- //#region src/layout.ts
1
+ // src/layout.ts
2
2
  /** Normalize an {@link InsetsInput}; missing sides fall back to `fallback`. */
3
3
  function insets(value, fallback = 0) {
4
4
  const side = (key) => {
@@ -12,6 +12,12 @@ function insets(value, fallback = 0) {
12
12
  left: side("left")
13
13
  };
14
14
  }
15
+ /** Swap the left and right of `sides` in a right-to-left chart. */
16
+ const mirrorSides = (sides, rtl) => rtl ? {
17
+ ...sides,
18
+ left: sides.right,
19
+ right: sides.left
20
+ } : sides;
15
21
  /** Rectangle left inside `width × height` after `margins`; never negative. */
16
22
  function innerRect(width, height, margins) {
17
23
  return {
@@ -21,6 +27,31 @@ function innerRect(width, height, margins) {
21
27
  height: Math.max(0, height - margins.top - margins.bottom)
22
28
  };
23
29
  }
30
+ /**
31
+ * Place the plot area of a chart with axes. `margins` gets the padding by
32
+ * reading direction and returns the space each side needs, so a chart type
33
+ * works its margins out once, whichever way the chart is read.
34
+ */
35
+ function plotFrame(size, padding, margins) {
36
+ const { width, height, rtl } = size;
37
+ const pad = insets(padding);
38
+ const m = margins({
39
+ ...pad,
40
+ start: rtl ? pad.right : pad.left,
41
+ end: rtl ? pad.left : pad.right
42
+ });
43
+ const area = innerRect(width, height, {
44
+ ...m,
45
+ left: rtl ? m.end : m.start,
46
+ right: rtl ? m.start : m.end
47
+ });
48
+ const end = area.x + area.width;
49
+ return {
50
+ area,
51
+ side: rtl ? "right" : "left",
52
+ range: (reverse = rtl) => reverse ? [end, area.x] : [area.x, end]
53
+ };
54
+ }
24
55
  const THIN = " !'.,:;|ijlI`";
25
56
  const NARROW = "()[]{}-/frt";
26
57
  const ROUND = "CDGHNOQU";
@@ -63,7 +94,6 @@ const ASCII = /* @__PURE__ */ Array.from({ length: 128 }, (_, code) => charWidth
63
94
  const round = (value) => Math.round(value * 100) / 100;
64
95
  /** Line height used for single-line labels, relative to the font size. */
65
96
  const LINE_HEIGHT = 1.25;
66
- //#endregion
67
- export { round as a, insets as i, estimateTextWidth as n, innerRect as r, LINE_HEIGHT as t };
97
+ export { mirrorSides as a, insets as i, estimateTextWidth as n, plotFrame as o, innerRect as r, round as s, LINE_HEIGHT as t };
68
98
 
69
- //# sourceMappingURL=layout-B3hiqVEw.js.map
99
+ //# sourceMappingURL=layout-DqAte3H8.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-DqAte3H8.js","names":[],"sources":["../src/layout.ts"],"sourcesContent":["/** Axis-aligned rectangle in pixels. */\nexport interface Rect {\n x: number\n y: number\n width: number\n height: number\n}\n\n/** Space around a box, in pixels. */\nexport interface Insets {\n top: number\n right: number\n bottom: number\n left: number\n}\n\n/** Insets given as one number for all sides or per side. */\nexport type InsetsInput = number | Partial<Insets>\n\n/** Normalize an {@link InsetsInput}; missing sides fall back to `fallback`. */\nexport function insets(value: InsetsInput | undefined, fallback = 0): Insets {\n // A side that is not a finite number (left out, or junk from outside) takes the fallback.\n const side = (key: keyof Insets): number => {\n const v = typeof value === 'number' ? value : value?.[key]\n return Number.isFinite(v) ? (v as number) : fallback\n }\n return { top: side('top'), right: side('right'), bottom: side('bottom'), left: side('left') }\n}\n\n/** Swap the left and right of `sides` in a right-to-left chart. */\nexport const mirrorSides = <T extends { left: number; right: number }>(\n sides: T,\n rtl: boolean | undefined,\n): T => (rtl ? { ...sides, left: sides.right, right: sides.left } : sides)\n\n/** Rectangle left inside `width × height` after `margins`; never negative. */\nexport function innerRect(width: number, height: number, margins: Insets): Rect {\n return {\n x: margins.left,\n y: margins.top,\n width: Math.max(0, width - margins.left - margins.right),\n height: Math.max(0, height - margins.top - margins.bottom),\n }\n}\n\n/**\n * Space around a box by reading direction: `start` is the side the chart is\n * read from (the left, or the right in a right-to-left chart), `end` the other.\n */\nexport interface FrameInsets {\n top: number\n bottom: number\n start: number\n end: number\n}\n\n/** A plot area placed for the chart's reading direction. */\nexport interface PlotFrame {\n /** Where the data is drawn. */\n area: Rect\n /** The start side, where the axis beside the plot sits. */\n side: 'left' | 'right'\n /** The plot's horizontal range, from the end side when `reverse` (by default in a right-to-left chart). */\n range(reverse?: boolean): [number, number]\n}\n\n/**\n * Place the plot area of a chart with axes. `margins` gets the padding by\n * reading direction and returns the space each side needs, so a chart type\n * works its margins out once, whichever way the chart is read.\n */\nexport function plotFrame(\n size: { width: number; height: number; rtl?: boolean },\n padding: InsetsInput | undefined,\n margins: (padding: FrameInsets) => FrameInsets,\n): PlotFrame {\n const { width, height, rtl } = size\n const pad = insets(padding)\n const m = margins({\n ...pad,\n start: rtl ? pad.right : pad.left,\n end: rtl ? pad.left : pad.right,\n })\n const area = innerRect(width, height, {\n ...m,\n left: rtl ? m.end : m.start,\n right: rtl ? m.start : m.end,\n })\n const end = area.x + area.width\n return {\n area,\n side: rtl ? 'right' : 'left',\n range: (reverse = rtl) => (reverse ? [end, area.x] : [area.x, end]),\n }\n}\n\n// Approximate advance widths in em for common UI sans-serif fonts\n// (system-ui / SF, Segoe UI, Roboto), measured in the browser.\nconst THIN = \" !'.,:;|ijlI`\"\nconst NARROW = '()[]{}-/frt'\nconst ROUND = 'CDGHNOQU'\nconst WIDE = '%@MWmw'\n\n/**\n * Full-width characters, a whole em each: Hangul, CJK and kana, compatibility\n * ideographs, fullwidth forms and pictographs (emoji).\n */\nconst isWide = (code: number): boolean =>\n code >= 0x1100 &&\n (code <= 0x115f ||\n (code >= 0x2e80 && code <= 0xa4cf) ||\n (code >= 0xac00 && code <= 0xd7a3) ||\n (code >= 0xf900 && code <= 0xfaff) ||\n (code >= 0xff00 && code <= 0xff60) ||\n code >= 0x1f300)\n\n/** The width of an ASCII character, in em. */\nfunction charWidth(char: string): number {\n if (char >= '0' && char <= '9') return char === '1' ? 0.45 : 0.63\n if (THIN.includes(char)) return 0.27\n if (NARROW.includes(char)) return 0.38\n if (WIDE.includes(char)) return 0.88\n if (ROUND.includes(char)) return 0.76\n if (char >= 'A' && char <= 'Z') return 0.66\n return 0.57\n}\n\n/**\n * Estimate the rendered width of `text` without a DOM, for layout on the\n * server and in workers. Tuned for common UI sans-serif fonts; deterministic,\n * so SSR and client layouts agree.\n */\nexport function estimateTextWidth(text: string, fontSize: number): number {\n let em = 0\n for (let i = 0; i < text.length; i++) {\n const point = text.codePointAt(i) as number\n // Beyond ASCII a character is a whole em or an average one; a pair of surrogates is one.\n em += ASCII[point] ?? (isWide(point) ? 1 : 0.57)\n if (point > 0xffff) i++\n }\n return em * fontSize\n}\n\n/**\n * The width of every ASCII character, looked up instead of worked out: an\n * axis of 100,000 long labels estimates millions of characters per render.\n */\nconst ASCII = /* @__PURE__ */ Array.from({ length: 128 }, (_, code) =>\n charWidth(String.fromCharCode(code)),\n)\n\n/** A pixel value rounded to two decimals, as written into attributes and path data. */\nexport const round = (value: number): number => Math.round(value * 100) / 100\n\n/** Line height used for single-line labels, relative to the font size. */\nexport const LINE_HEIGHT = 1.25\n"],"mappings":";;AAoBA,SAAgB,OAAO,OAAgC,WAAW,GAAW;CAE3E,MAAM,QAAQ,QAA8B;EAC1C,MAAM,IAAI,OAAO,UAAU,WAAW,QAAQ,QAAQ;EACtD,OAAO,OAAO,SAAS,CAAC,IAAK,IAAe;CAC9C;CACA,OAAO;EAAE,KAAK,KAAK,KAAK;EAAG,OAAO,KAAK,OAAO;EAAG,QAAQ,KAAK,QAAQ;EAAG,MAAM,KAAK,MAAM;CAAE;AAC9F;;AAGA,MAAa,eACX,OACA,QACO,MAAM;CAAE,GAAG;CAAO,MAAM,MAAM;CAAO,OAAO,MAAM;AAAK,IAAI;;AAGpE,SAAgB,UAAU,OAAe,QAAgB,SAAuB;CAC9E,OAAO;EACL,GAAG,QAAQ;EACX,GAAG,QAAQ;EACX,OAAO,KAAK,IAAI,GAAG,QAAQ,QAAQ,OAAO,QAAQ,KAAK;EACvD,QAAQ,KAAK,IAAI,GAAG,SAAS,QAAQ,MAAM,QAAQ,MAAM;CAC3D;AACF;;;;;;AA4BA,SAAgB,UACd,MACA,SACA,SACW;CACX,MAAM,EAAE,OAAO,QAAQ,QAAQ;CAC/B,MAAM,MAAM,OAAO,OAAO;CAC1B,MAAM,IAAI,QAAQ;EAChB,GAAG;EACH,OAAO,MAAM,IAAI,QAAQ,IAAI;EAC7B,KAAK,MAAM,IAAI,OAAO,IAAI;CAC5B,CAAC;CACD,MAAM,OAAO,UAAU,OAAO,QAAQ;EACpC,GAAG;EACH,MAAM,MAAM,EAAE,MAAM,EAAE;EACtB,OAAO,MAAM,EAAE,QAAQ,EAAE;CAC3B,CAAC;CACD,MAAM,MAAM,KAAK,IAAI,KAAK;CAC1B,OAAO;EACL;EACA,MAAM,MAAM,UAAU;EACtB,QAAQ,UAAU,QAAS,UAAU,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG;CACnE;AACF;AAIA,MAAM,OAAO;AACb,MAAM,SAAS;AACf,MAAM,QAAQ;AACd,MAAM,OAAO;;;;;AAMb,MAAM,UAAU,SACd,QAAQ,SACP,QAAQ,QACN,QAAQ,SAAU,QAAQ,SAC1B,QAAQ,SAAU,QAAQ,SAC1B,QAAQ,SAAU,QAAQ,SAC1B,QAAQ,SAAU,QAAQ,SAC3B,QAAQ;;AAGZ,SAAS,UAAU,MAAsB;CACvC,IAAI,QAAQ,OAAO,QAAQ,KAAK,OAAO,SAAS,MAAM,MAAO;CAC7D,IAAI,KAAK,SAAS,IAAI,GAAG,OAAO;CAChC,IAAI,OAAO,SAAS,IAAI,GAAG,OAAO;CAClC,IAAI,KAAK,SAAS,IAAI,GAAG,OAAO;CAChC,IAAI,MAAM,SAAS,IAAI,GAAG,OAAO;CACjC,IAAI,QAAQ,OAAO,QAAQ,KAAK,OAAO;CACvC,OAAO;AACT;;;;;;AAOA,SAAgB,kBAAkB,MAAc,UAA0B;CACxE,IAAI,KAAK;CACT,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;EACpC,MAAM,QAAQ,KAAK,YAAY,CAAC;EAEhC,MAAM,MAAM,WAAW,OAAO,KAAK,IAAI,IAAI;EAC3C,IAAI,QAAQ,OAAQ;CACtB;CACA,OAAO,KAAK;AACd;;;;;AAMA,MAAM,QAAwB,sBAAM,KAAK,EAAE,QAAQ,IAAI,IAAI,GAAG,SAC5D,UAAU,OAAO,aAAa,IAAI,CAAC,CACrC;;AAGA,MAAa,SAAS,UAA0B,KAAK,MAAM,QAAQ,GAAG,IAAI;;AAG1E,MAAa,cAAc"}
@@ -1,7 +1,6 @@
1
- import { $ as CartesianOptions, a as ChartType } from "./chart-DyN7bcx8.js";
2
- import { t as Curve } from "./path-CwB28da0.js";
3
- import { t as StackMode } from "./stack-CpR6RGKd.js";
4
- //#region src/charts/line.d.ts
1
+ import { o as ChartType, ot as CartesianOptions } from "./chart-CYrrUCi3.js";
2
+ import { t as Curve } from "./path-YeUiOfG8.js";
3
+ import { t as StackMode } from "./stack-DR0eQTsB.js";
5
4
  interface LineOptions extends CartesianOptions {
6
5
  /** Interpolation between points. Defaults to `'monotone'`. */
7
6
  curve?: Curve;
@@ -42,6 +41,4 @@ interface LineOptions extends CartesianOptions {
42
41
  * ```
43
42
  */
44
43
  declare const line: ChartType<LineOptions>;
45
- //#endregion
46
- export { line as n, LineOptions as t };
47
- //# sourceMappingURL=line-CN4uZ9ZX.d.ts.map
44
+ export { line as n, LineOptions as t };
@@ -1,11 +1,11 @@
1
- import { a as round } from "./layout-B3hiqVEw.js";
2
- import { t as h } from "./vnode-tCWItoUH.js";
3
- import { d as seriesAttrs, f as seriesKey, l as plottable, m as seriesTable, n as categoryInteraction, p as seriesLegend, t as cartesianLayout, u as resolveLabels } from "./cartesian-Cr0AF0nG.js";
4
- import { n as feature } from "./features-wASyHGic.js";
5
- import { r as cleanSeries, t as cleanData } from "./clean-o1vDEhFV.js";
6
- import { n as areaPath, r as linePath, t as fadeMask } from "./fade-D3NxH5Qg.js";
7
- import { n as stackSeries, t as stackBounds } from "./stack-DRbwTeF3.js";
8
- //#region src/charts/line.ts
1
+ import { n as areaPath, r as linePath, t as fadeMask } from "./fade-CDrQjnDz.js";
2
+ import { n as feature } from "./features-B55rwpQC.js";
3
+ import { s as round } from "./layout-DqAte3H8.js";
4
+ import { t as h } from "./vnode-_EMUqysL.js";
5
+ import { _ as seriesTable, d as resolveLabels, f as seriesAttrs, g as seriesScale, h as seriesLegend, l as plottable, m as seriesKey, n as categoryInteraction, p as seriesAxes, s as markerShape, t as cartesianLayout, u as pointMark } from "./cartesian-BrPqb5Qn.js";
6
+ import { r as cleanSeries, t as cleanData } from "./clean-CkoQobGv.js";
7
+ import { n as stackSeries, t as stackBounds } from "./stack-jVKvg2x_.js";
8
+ // src/charts/line.ts
9
9
  /** Points in pixels for a series; `null` for missing values. */
10
10
  function seriesPoints(series, count, x, y, connectNulls, valid) {
11
11
  const points = [];
@@ -23,32 +23,45 @@ function renderLines(options, ctx, fill) {
23
23
  const overhang = points === "none" ? 2 : pointRadius + 2;
24
24
  const { series } = options.data;
25
25
  const count = resolveLabels(options.data).length;
26
+ const axisOf = seriesAxes(options);
27
+ const seconds = series.filter((s) => axisOf(s).second).map(seriesKey);
26
28
  const stacks = stacked ? stackSeries(series, count, {
27
29
  percent: stacked === "percent",
28
30
  nullAsZero: true,
29
- hidden: ctx.hidden
31
+ hidden: seconds.length ? /* @__PURE__ */ new Set([...ctx.hidden, ...seconds]) : ctx.hidden
30
32
  }) : null;
31
33
  const layout = cartesianLayout(options, ctx, {
32
34
  scale: "point",
33
35
  zero: filled || stacks !== null,
36
+ zero2: filled,
34
37
  overhang,
35
38
  ...stacks ? { values: stackBounds(stacks) } : {},
36
39
  ...stacked === "percent" ? { tickFormat: { style: "percent" } } : {}
37
40
  });
38
- const { x, y, labels } = layout;
39
- const baseline = y(Math.min(Math.max(0, y.domain[0]), y.domain[1]));
40
- ctx.onHitTest(categoryInteraction(layout, options, ctx, (seriesIndex, i, v) => ({
41
- x: x.at(i),
42
- y: y(stacks ? stacks[seriesIndex]?.[i]?.y1 ?? 0 : v)
43
- })));
41
+ const { x, labels } = layout;
42
+ const scaleOf = (index) => seriesScale(layout, series[index]);
43
+ const baselineOf = (index) => {
44
+ const y = scaleOf(index);
45
+ return y(Math.min(Math.max(0, y.domain[0]), y.domain[1]));
46
+ };
47
+ const stackOf = (index) => !axisOf(series[index]).second && stacks?.[index] || null;
48
+ const interaction = categoryInteraction(layout, options, ctx, (seriesIndex, i, v) => {
49
+ const stack = stackOf(seriesIndex);
50
+ return {
51
+ x: x.at(i),
52
+ y: scaleOf(seriesIndex)(stack ? stack[i]?.y1 ?? 0 : v)
53
+ };
54
+ });
44
55
  const gradient = filled && fillStyle === "gradient";
45
56
  const fadeId = `${ctx.id}-fade`;
46
57
  const visible = (s) => !ctx.hidden.has(seriesKey(s));
47
58
  const all = series.map((s, index) => {
48
59
  if (!visible(s)) return [];
49
- const stack = stacks?.[index];
60
+ const y = scaleOf(index);
61
+ const stack = stackOf(index);
50
62
  if (stack) return stack.map((seg, i) => seg ? [x.at(i), y(seg.y1)] : null);
51
- return seriesPoints(s, labels.length, (i) => x.at(i), y, connectNulls, (v) => plottable(v, options.y));
63
+ const axis = axisOf(s).axis;
64
+ return seriesPoints(s, labels.length, (i) => x.at(i), y, connectNulls, (v) => plottable(v, axis));
52
65
  });
53
66
  /** Indices drawn per series: a downsampled subset when `decimate` is set. */
54
67
  const kept = all.map((pts) => decimate !== void 0 && pts.length > decimate ? feature("decimate")(pts, decimate) : null);
@@ -59,8 +72,9 @@ function renderLines(options, ctx, fill) {
59
72
  };
60
73
  /** Area bottom: zero, or the top of the layer below for stacks (downsampled alike). */
61
74
  const bottom = (index) => {
62
- const stack = stacks?.[index];
63
- if (!stack) return baseline;
75
+ const stack = stackOf(index);
76
+ if (!stack) return baselineOf(index);
77
+ const y = scaleOf(index);
64
78
  const bottoms = stack.map((seg) => seg ? y(seg.y0) : null);
65
79
  const keep = kept[index];
66
80
  return keep ? keep.map((i) => bottoms[i] ?? null) : bottoms;
@@ -70,6 +84,7 @@ function renderLines(options, ctx, fill) {
70
84
  d: areaPath(drawn(index), bottom(index), { curve }),
71
85
  mask: gradient ? `url(#${fadeId})` : void 0
72
86
  }))));
87
+ const shape = markerShape(options);
73
88
  const lines = options.data.series.map((s, index) => {
74
89
  if (!visible(s)) return null;
75
90
  const pts = drawn(index);
@@ -78,24 +93,21 @@ function renderLines(options, ctx, fill) {
78
93
  return h("g", seriesAttrs(s, index), h("path", {
79
94
  class: "tc-line",
80
95
  d: linePath(pts, { curve })
81
- }), dots.length > 0 && h("g", { class: "tc-points" }, dots.map(([cx, cy]) => h("circle", {
82
- key: cx,
83
- class: "tc-point",
84
- cx: round(cx),
85
- cy: round(cy),
86
- r: pointRadius
87
- }))));
96
+ }), dots.length > 0 && h("g", { class: "tc-points" }, dots.map(([cx, cy]) => pointMark(shape, index, cx, "tc-point", round(cx), round(cy), pointRadius))));
88
97
  });
89
- return [
90
- h("defs", { key: "defs" }, layout.clip.def, gradient && fadeMask(fadeId)),
91
- layout.background,
92
- h("g", {
93
- key: "series",
94
- class: "tc-series-list",
95
- "clip-path": layout.clip.url
96
- }, areas, lines),
97
- layout.foreground
98
- ];
98
+ return {
99
+ content: [
100
+ h("defs", { key: "defs" }, layout.clip.def, gradient && fadeMask(fadeId)),
101
+ layout.background,
102
+ h("g", {
103
+ key: "series",
104
+ class: "tc-series-list",
105
+ "clip-path": layout.clip.url
106
+ }, areas, lines),
107
+ layout.foreground
108
+ ],
109
+ interaction
110
+ };
99
111
  }
100
112
  /**
101
113
  * Line chart: one line per series over category labels.
@@ -114,7 +126,6 @@ const line = {
114
126
  legend: (options) => seriesLegend(options.data),
115
127
  table: (options, ctx, limit) => seriesTable(options, ctx, limit)
116
128
  };
117
- //#endregion
118
129
  export { renderLines as n, line as t };
119
130
 
120
- //# sourceMappingURL=line-B3Ed6u7j.js.map
131
+ //# sourceMappingURL=line-CxR4tg1Q.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-CxR4tg1Q.js","names":[],"sources":["../src/charts/line.ts"],"sourcesContent":["import type { ChartType, RenderContext, RenderResult } from '../chart.ts'\nimport { fadeMask } from '../components/fade.ts'\nimport { feature } from '../features.ts'\nimport { round } from '../layout.ts'\nimport { areaPath, type Curve, linePath, type Point } from '../shapes/path.ts'\nimport { h } from '../vnode.ts'\nimport {\n type CartesianOptions,\n cartesianLayout,\n categoryInteraction,\n markerShape,\n plottable,\n pointMark,\n resolveLabels,\n type Series,\n seriesAttrs,\n seriesAxes,\n seriesKey,\n seriesLegend,\n seriesScale,\n seriesTable,\n} from './cartesian.ts'\nimport { cleanData, cleanSeries } from './clean.ts'\nimport { type StackMode, stackBounds, stackSeries } from './stack.ts'\n\nexport interface LineOptions extends CartesianOptions {\n /** Interpolation between points. Defaults to `'monotone'`. */\n curve?: Curve\n /** Draw dots on every point, only on the last one, or none. Defaults to `'none'`. */\n points?: 'none' | 'last' | 'all'\n /** Dot radius in pixels. Defaults to `4`. */\n pointRadius?: number\n /** Bridge `null` values instead of leaving gaps. Defaults to `false`. */\n connectNulls?: boolean\n /** Fill the area under each line. Defaults to `false` (`true` for `area`). */\n area?: boolean\n /**\n * Area fill style: a vertical fade (strength set by `--tc-area-gradient-start`\n * / `--tc-area-gradient-end`) or a flat wash (`--tc-area-opacity`).\n * Defaults to `'gradient'`, or `'solid'` for stacked areas.\n */\n fill?: 'gradient' | 'solid'\n /**\n * Stack series on top of each other (each line draws the running total);\n * `'percent'` shows every category as 100%. Missing values count as zero.\n */\n stacked?: StackMode\n /**\n * Draw long series with at most this many points, chosen by LTTB\n * downsampling so peaks and valleys survive. Tooltips and keyboard\n * navigation still use every value. Off by default.\n */\n decimate?: number\n}\n\n/** Points in pixels for a series; `null` for missing values. */\nfunction seriesPoints(\n series: Series,\n count: number,\n x: (i: number) => number,\n y: (v: number) => number,\n connectNulls: boolean,\n valid: (v: number | null | undefined) => v is number,\n): Point[] {\n const points: Point[] = []\n for (let i = 0; i < count; i++) {\n const v = series.values[i]\n if (!valid(v)) {\n if (!connectNulls) points.push(null)\n } else {\n points.push([x(i), y(v)])\n }\n }\n return points\n}\n\n/** Render line (and optionally area) series; shared by `line` and `area`. */\nexport function renderLines(options: LineOptions, ctx: RenderContext, fill: boolean): RenderResult {\n const {\n curve = 'monotone',\n points = 'none',\n pointRadius = 4,\n connectNulls = false,\n area: filled = fill,\n stacked = false,\n decimate,\n // Faded layers would show light seams between stacked areas, so stacks default to solid.\n fill: fillStyle = stacked ? 'solid' : 'gradient',\n } = options\n const overhang = points === 'none' ? 2 : pointRadius + 2\n const { series } = options.data\n const count = resolveLabels(options.data).length\n const axisOf = seriesAxes(options)\n // Series on the second axis keep out of the stacks.\n const seconds = series.filter((s) => axisOf(s).second).map(seriesKey)\n const stacks = stacked\n ? stackSeries(series, count, {\n percent: stacked === 'percent',\n nullAsZero: true,\n hidden: seconds.length ? new Set([...ctx.hidden, ...seconds]) : ctx.hidden,\n })\n : null\n const layout = cartesianLayout(options, ctx, {\n scale: 'point',\n zero: filled || stacks !== null,\n zero2: filled,\n overhang,\n ...(stacks ? { values: stackBounds(stacks) } : {}),\n ...(stacked === 'percent' ? { tickFormat: { style: 'percent' } } : {}),\n })\n const { x, labels } = layout\n const scaleOf = (index: number) => seriesScale(layout, series[index])\n // Areas grow from zero, or from the bottom of the plot when zero is out of view.\n const baselineOf = (index: number) => {\n const y = scaleOf(index)\n return y(Math.min(Math.max(0, y.domain[0]), y.domain[1]))\n }\n // (series left out of the stacks have empty rows there)\n const stackOf = (index: number) => (!axisOf(series[index]).second && stacks?.[index]) || null\n const interaction = categoryInteraction(layout, options, ctx, (seriesIndex, i, v) => {\n const stack = stackOf(seriesIndex)\n return { x: x.at(i), y: scaleOf(seriesIndex)(stack ? (stack[i]?.y1 ?? 0) : v) }\n })\n const gradient = filled && fillStyle === 'gradient'\n const fadeId = `${ctx.id}-fade`\n\n // Hidden series keep their index (and color slot) but draw nothing.\n const visible = (s: Series) => !ctx.hidden.has(seriesKey(s))\n const all = series.map((s, index) => {\n if (!visible(s)) return []\n const y = scaleOf(index)\n // Stacked series draw their running total.\n const stack = stackOf(index)\n if (stack) return stack.map((seg, i): Point => (seg ? [x.at(i), y(seg.y1)] : null))\n const axis = axisOf(s).axis\n return seriesPoints(\n s,\n labels.length,\n (i) => x.at(i),\n y,\n connectNulls,\n (v) => plottable(v, axis),\n )\n })\n /** Indices drawn per series: a downsampled subset when `decimate` is set. */\n const kept = all.map((pts) =>\n decimate !== undefined && pts.length > decimate ? feature('decimate')(pts, decimate) : null,\n )\n const drawn = (index: number): Point[] => {\n const pts = all[index] as Point[]\n const keep = kept[index]\n return keep ? keep.map((i) => pts[i] as Point) : pts\n }\n /** Area bottom: zero, or the top of the layer below for stacks (downsampled alike). */\n const bottom = (index: number): number | (number | null)[] => {\n const stack = stackOf(index)\n if (!stack) return baselineOf(index)\n const y = scaleOf(index)\n const bottoms = stack.map((seg) => (seg ? y(seg.y0) : null))\n const keep = kept[index]\n return keep ? keep.map((i) => bottoms[i] ?? null) : bottoms\n }\n\n // All areas go below all lines, so a filled series never covers another line.\n const areas =\n filled &&\n h(\n 'g',\n { class: 'tc-areas' },\n options.data.series.map(\n (s, index) =>\n visible(s) &&\n h(\n 'g',\n seriesAttrs(s, index),\n h('path', {\n class: ['tc-area', gradient && 'tc-area-gradient'],\n d: areaPath(drawn(index), bottom(index), { curve }),\n mask: gradient ? `url(#${fadeId})` : undefined,\n }),\n ),\n ),\n )\n\n const shape = markerShape(options)\n const lines = options.data.series.map((s, index) => {\n if (!visible(s)) return null\n const pts = drawn(index)\n const valid = pts.filter((p): p is readonly [number, number] => p != null)\n const dots = points === 'all' ? valid : points === 'last' ? valid.slice(-1) : []\n return h(\n 'g',\n seriesAttrs(s, index),\n h('path', { class: 'tc-line', d: linePath(pts, { curve }) }),\n dots.length > 0 &&\n h(\n 'g',\n { class: 'tc-points' },\n dots.map(([cx, cy]) =>\n pointMark(shape, index, cx, 'tc-point', round(cx), round(cy), pointRadius),\n ),\n ),\n )\n })\n\n const content = [\n h('defs', { key: 'defs' }, layout.clip.def, gradient && fadeMask(fadeId)),\n layout.background,\n // Layers are keyed: an annotation band or a grid that comes and goes must not\n // shift the series list onto another node (that would recreate every series).\n h('g', { key: 'series', class: 'tc-series-list', 'clip-path': layout.clip.url }, areas, lines),\n layout.foreground,\n ]\n return { content, interaction }\n}\n\n/**\n * Line chart: one line per series over category labels.\n *\n * ```ts\n * new Chart('#el', {\n * type: line,\n * data: { labels: ['Jan', 'Feb', 'Mar'], series: [{ name: 'Sales', values: [3, 5, 4] }] },\n * })\n * ```\n */\nexport const line: ChartType<LineOptions> = {\n name: 'line',\n clean: cleanData(cleanSeries),\n render: (options, ctx) => renderLines(options, ctx, false),\n legend: (options) => seriesLegend(options.data),\n table: (options, ctx, limit) => seriesTable(options, ctx, limit),\n}\n"],"mappings":";;;;;;;;;AAwDA,SAAS,aACP,QACA,OACA,GACA,GACA,cACA,OACS;CACT,MAAM,SAAkB,CAAC;CACzB,KAAK,IAAI,IAAI,GAAG,IAAI,OAAO,KAAK;EAC9B,MAAM,IAAI,OAAO,OAAO;EACxB,IAAI,CAAC,MAAM,CAAC,GACN;OAAA,CAAC,cAAc,OAAO,KAAK,IAAI;EAAA,OAEnC,OAAO,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;CAE5B;CACA,OAAO;AACT;;AAGA,SAAgB,YAAY,SAAsB,KAAoB,MAA6B;CACjG,MAAM,EACJ,QAAQ,YACR,SAAS,QACT,cAAc,GACd,eAAe,OACf,MAAM,SAAS,MACf,UAAU,OACV,UAEA,MAAM,YAAY,UAAU,UAAU,eACpC;CACJ,MAAM,WAAW,WAAW,SAAS,IAAI,cAAc;CACvD,MAAM,EAAE,WAAW,QAAQ;CAC3B,MAAM,QAAQ,cAAc,QAAQ,IAAI,CAAC,CAAC;CAC1C,MAAM,SAAS,WAAW,OAAO;CAEjC,MAAM,UAAU,OAAO,QAAQ,MAAM,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,SAAS;CACpE,MAAM,SAAS,UACX,YAAY,QAAQ,OAAO;EACzB,SAAS,YAAY;EACrB,YAAY;EACZ,QAAQ,QAAQ,yBAAS,IAAI,IAAI,CAAC,GAAG,IAAI,QAAQ,GAAG,OAAO,CAAC,IAAI,IAAI;CACtE,CAAC,IACD;CACJ,MAAM,SAAS,gBAAgB,SAAS,KAAK;EAC3C,OAAO;EACP,MAAM,UAAU,WAAW;EAC3B,OAAO;EACP;EACA,GAAI,SAAS,EAAE,QAAQ,YAAY,MAAM,EAAE,IAAI,CAAC;EAChD,GAAI,YAAY,YAAY,EAAE,YAAY,EAAE,OAAO,UAAU,EAAE,IAAI,CAAC;CACtE,CAAC;CACD,MAAM,EAAE,GAAG,WAAW;CACtB,MAAM,WAAW,UAAkB,YAAY,QAAQ,OAAO,MAAM;CAEpE,MAAM,cAAc,UAAkB;EACpC,MAAM,IAAI,QAAQ,KAAK;EACvB,OAAO,EAAE,KAAK,IAAI,KAAK,IAAI,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;CAC1D;CAEA,MAAM,WAAW,UAAmB,CAAC,OAAO,OAAO,MAAM,CAAC,CAAC,UAAU,SAAS,UAAW;CACzF,MAAM,cAAc,oBAAoB,QAAQ,SAAS,MAAM,aAAa,GAAG,MAAM;EACnF,MAAM,QAAQ,QAAQ,WAAW;EACjC,OAAO;GAAE,GAAG,EAAE,GAAG,CAAC;GAAG,GAAG,QAAQ,WAAW,CAAC,CAAC,QAAS,MAAM,EAAE,EAAE,MAAM,IAAK,CAAC;EAAE;CAChF,CAAC;CACD,MAAM,WAAW,UAAU,cAAc;CACzC,MAAM,SAAS,GAAG,IAAI,GAAG;CAGzB,MAAM,WAAW,MAAc,CAAC,IAAI,OAAO,IAAI,UAAU,CAAC,CAAC;CAC3D,MAAM,MAAM,OAAO,KAAK,GAAG,UAAU;EACnC,IAAI,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC;EACzB,MAAM,IAAI,QAAQ,KAAK;EAEvB,MAAM,QAAQ,QAAQ,KAAK;EAC3B,IAAI,OAAO,OAAO,MAAM,KAAK,KAAK,MAAc,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,IAAI,IAAK;EAClF,MAAM,OAAO,OAAO,CAAC,CAAC,CAAC;EACvB,OAAO,aACL,GACA,OAAO,SACN,MAAM,EAAE,GAAG,CAAC,GACb,GACA,eACC,MAAM,UAAU,GAAG,IAAI,CAC1B;CACF,CAAC;;CAED,MAAM,OAAO,IAAI,KAAK,QACpB,aAAa,KAAA,KAAa,IAAI,SAAS,WAAW,QAAQ,UAAU,CAAC,CAAC,KAAK,QAAQ,IAAI,IACzF;CACA,MAAM,SAAS,UAA2B;EACxC,MAAM,MAAM,IAAI;EAChB,MAAM,OAAO,KAAK;EAClB,OAAO,OAAO,KAAK,KAAK,MAAM,IAAI,EAAW,IAAI;CACnD;;CAEA,MAAM,UAAU,UAA8C;EAC5D,MAAM,QAAQ,QAAQ,KAAK;EAC3B,IAAI,CAAC,OAAO,OAAO,WAAW,KAAK;EACnC,MAAM,IAAI,QAAQ,KAAK;EACvB,MAAM,UAAU,MAAM,KAAK,QAAS,MAAM,EAAE,IAAI,EAAE,IAAI,IAAK;EAC3D,MAAM,OAAO,KAAK;EAClB,OAAO,OAAO,KAAK,KAAK,MAAM,QAAQ,MAAM,IAAI,IAAI;CACtD;CAGA,MAAM,QACJ,UACA,EACE,KACA,EAAE,OAAO,WAAW,GACpB,QAAQ,KAAK,OAAO,KACjB,GAAG,UACF,QAAQ,CAAC,KACT,EACE,KACA,YAAY,GAAG,KAAK,GACpB,EAAE,QAAQ;EACR,OAAO,CAAC,WAAW,YAAY,kBAAkB;EACjD,GAAG,SAAS,MAAM,KAAK,GAAG,OAAO,KAAK,GAAG,EAAE,MAAM,CAAC;EAClD,MAAM,WAAW,QAAQ,OAAO,KAAK,KAAA;CACvC,CAAC,CACH,CACJ,CACF;CAEF,MAAM,QAAQ,YAAY,OAAO;CACjC,MAAM,QAAQ,QAAQ,KAAK,OAAO,KAAK,GAAG,UAAU;EAClD,IAAI,CAAC,QAAQ,CAAC,GAAG,OAAO;EACxB,MAAM,MAAM,MAAM,KAAK;EACvB,MAAM,QAAQ,IAAI,QAAQ,MAAsC,KAAK,IAAI;EACzE,MAAM,OAAO,WAAW,QAAQ,QAAQ,WAAW,SAAS,MAAM,MAAM,EAAE,IAAI,CAAC;EAC/E,OAAO,EACL,KACA,YAAY,GAAG,KAAK,GACpB,EAAE,QAAQ;GAAE,OAAO;GAAW,GAAG,SAAS,KAAK,EAAE,MAAM,CAAC;EAAE,CAAC,GAC3D,KAAK,SAAS,KACZ,EACE,KACA,EAAE,OAAO,YAAY,GACrB,KAAK,KAAK,CAAC,IAAI,QACb,UAAU,OAAO,OAAO,IAAI,YAAY,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,WAAW,CAC3E,CACF,CACJ;CACF,CAAC;CAUD,OAAO;EAAE,SAAA;GAPP,EAAE,QAAQ,EAAE,KAAK,OAAO,GAAG,OAAO,KAAK,KAAK,YAAY,SAAS,MAAM,CAAC;GACxE,OAAO;GAGP,EAAE,KAAK;IAAE,KAAK;IAAU,OAAO;IAAkB,aAAa,OAAO,KAAK;GAAI,GAAG,OAAO,KAAK;GAC7F,OAAO;EAEM;EAAG;CAAY;AAChC;;;;;;;;;;;AAYA,MAAa,OAA+B;CAC1C,MAAM;CACN,OAAO,UAAU,WAAW;CAC5B,SAAS,SAAS,QAAQ,YAAY,SAAS,KAAK,KAAK;CACzD,SAAS,YAAY,aAAa,QAAQ,IAAI;CAC9C,QAAQ,SAAS,KAAK,UAAU,YAAY,SAAS,KAAK,KAAK;AACjE"}