@tabler/charts 0.2.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.
- package/README.md +74 -4
- package/dist/{annotations-D0YQ0IoA.js → annotations-BQ8l-qHs.js} +3 -3
- package/dist/{annotations-D0YQ0IoA.js.map → annotations-BQ8l-qHs.js.map} +1 -1
- package/dist/{annotations-DdRdeBUB.cjs → annotations-CpCWA29b.cjs} +3 -3
- package/dist/{annotations-DdRdeBUB.cjs.map → annotations-CpCWA29b.cjs.map} +1 -1
- package/dist/annotations.cjs +2 -2
- package/dist/annotations.js +2 -2
- package/dist/{area-d11XePuw.d.ts → area-DEFQm_SQ.d.ts} +2 -2
- package/dist/{area-4eRs3c0K.cjs → area-DYdQ_sMV.cjs} +3 -3
- package/dist/{area-4eRs3c0K.cjs.map → area-DYdQ_sMV.cjs.map} +1 -1
- package/dist/{area-0-L1bG9B.js → area-WdtfqvhX.js} +3 -3
- package/dist/{area-0-L1bG9B.js.map → area-WdtfqvhX.js.map} +1 -1
- package/dist/{area-CJX9219z.d.cts → area-h_FvieFb.d.cts} +2 -2
- package/dist/area.cjs +1 -1
- package/dist/area.d.cts +1 -1
- package/dist/area.d.ts +1 -1
- package/dist/area.js +1 -1
- package/dist/axis-MMaVoSWB.js +235 -0
- package/dist/axis-MMaVoSWB.js.map +1 -0
- package/dist/axis-YfAerNBA.cjs +300 -0
- package/dist/axis-YfAerNBA.cjs.map +1 -0
- package/dist/{bar-BNZ3GhIw.js → bar-BOcRcArc.js} +74 -56
- package/dist/bar-BOcRcArc.js.map +1 -0
- package/dist/{bar-Da6dE_nI.cjs → bar-CVkOJ7WA.cjs} +76 -58
- package/dist/bar-CVkOJ7WA.cjs.map +1 -0
- package/dist/{bar-B5n2oq9-.js → bar-CgpC2EpX.js} +2 -2
- package/dist/{bar-B5n2oq9-.js.map → bar-CgpC2EpX.js.map} +1 -1
- package/dist/{bar-XwzM6Pb0.d.ts → bar-D9B_arKf.d.ts} +1 -1
- package/dist/{bar-BDLR4p9c.d.cts → bar-DZCQ-kyf.d.cts} +2 -2
- package/dist/{bar-LYIF8MEz.cjs → bar-wVykm1us.cjs} +2 -2
- package/dist/{bar-LYIF8MEz.cjs.map → bar-wVykm1us.cjs.map} +1 -1
- package/dist/bar.cjs +1 -1
- package/dist/bar.d.cts +1 -1
- package/dist/bar.d.ts +1 -1
- package/dist/bar.js +1 -1
- package/dist/calendar-BSvO8nRb.d.cts +106 -0
- package/dist/calendar-BXgIX5H1.js +502 -0
- package/dist/calendar-BXgIX5H1.js.map +1 -0
- package/dist/calendar-Bq3vFzPl.d.ts +106 -0
- package/dist/calendar-DAFXjV99.cjs +507 -0
- package/dist/calendar-DAFXjV99.cjs.map +1 -0
- package/dist/calendar.cjs +3 -0
- package/dist/calendar.d.cts +3 -0
- package/dist/calendar.d.ts +3 -0
- package/dist/calendar.js +1 -0
- package/dist/{candlestick-D0xKkdqd.d.ts → candlestick-B3WcLzph.d.ts} +1 -1
- package/dist/{candlestick-Dq7qp-F0.d.cts → candlestick-BcomxeVG.d.cts} +1 -1
- package/dist/{candlestick-BHQkQfxH.js → candlestick-BtT9glp9.js} +16 -14
- package/dist/{candlestick-BHQkQfxH.js.map → candlestick-BtT9glp9.js.map} +1 -1
- package/dist/{candlestick-CYCQXgky.cjs → candlestick-CSmRuZ4v.cjs} +16 -14
- package/dist/{candlestick-CYCQXgky.cjs.map → candlestick-CSmRuZ4v.cjs.map} +1 -1
- package/dist/candlestick.cjs +3 -3
- package/dist/candlestick.d.cts +1 -1
- package/dist/candlestick.d.ts +1 -1
- package/dist/candlestick.js +3 -3
- package/dist/{cartesian-CI2x6N7N.js → cartesian-BrPqb5Qn.js} +122 -248
- package/dist/cartesian-BrPqb5Qn.js.map +1 -0
- package/dist/{cartesian-DV02PsBe.cjs → cartesian-DRSXHxWe.cjs} +146 -308
- package/dist/cartesian-DRSXHxWe.cjs.map +1 -0
- package/dist/{chart-DWn9v6qw.js → chart-B6TTY4Kr.js} +94 -62
- package/dist/chart-B6TTY4Kr.js.map +1 -0
- package/dist/{chart-QilhWP8Z.d.ts → chart-CYrrUCi3.d.ts} +193 -56
- package/dist/{chart-kqFMEwDo.d.cts → chart-CbPzP5Dp.d.cts} +193 -56
- package/dist/{chart-e2VqomCI.cjs → chart-D_lyOy-M.cjs} +106 -68
- package/dist/chart-D_lyOy-M.cjs.map +1 -0
- package/dist/{core-PAX5ogLk.d.cts → core-9BnLEW4K.d.cts} +24 -20
- package/dist/{core-DRUCk67j.d.ts → core-C3qEppSm.d.ts} +7 -6
- package/dist/{core-BKRQvPAT.js → core-CQ0FaJ4G.js} +112 -65
- package/dist/core-CQ0FaJ4G.js.map +1 -0
- package/dist/{core-DIOC61up.cjs → core-D2PSked3.cjs} +113 -66
- package/dist/core-D2PSked3.cjs.map +1 -0
- package/dist/core.cjs +41 -31
- package/dist/core.d.cts +20 -17
- package/dist/core.d.ts +20 -17
- package/dist/core.js +27 -23
- package/dist/{dates-C2RzY3rE.js → dates-DLe2Ww64.js} +2 -2
- package/dist/{dates-C2RzY3rE.js.map → dates-DLe2Ww64.js.map} +1 -1
- package/dist/{dates-DurEr9WT.cjs → dates-DerXTb1J.cjs} +2 -2
- package/dist/{dates-DurEr9WT.cjs.map → dates-DerXTb1J.cjs.map} +1 -1
- package/dist/decimate.cjs +1 -1
- package/dist/decimate.js +1 -1
- package/dist/{dom-D_g13XWY.cjs → dom-C33zvtPo.cjs} +3 -7
- package/dist/dom-C33zvtPo.cjs.map +1 -0
- package/dist/{dom-CuceR8gt.js → dom-CTse6Rvd.js} +3 -7
- package/dist/dom-CTse6Rvd.js.map +1 -0
- package/dist/{export-chart-mYgEfK-L.cjs → export-chart-CPtXmZvi.cjs} +17 -12
- package/dist/export-chart-CPtXmZvi.cjs.map +1 -0
- package/dist/{export-chart-83UYH48t.js → export-chart-DoeiAyR2.js} +17 -12
- package/dist/export-chart-DoeiAyR2.js.map +1 -0
- package/dist/export.cjs +2 -2
- package/dist/export.d.cts +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/export.js +2 -2
- package/dist/{fade-GGxcBdss.js → fade-CDrQjnDz.js} +56 -78
- package/dist/fade-CDrQjnDz.js.map +1 -0
- package/dist/{fade-DVTkhrFU.cjs → fade-CRqcKMWY.cjs} +56 -78
- package/dist/fade-CRqcKMWY.cjs.map +1 -0
- package/dist/{features-BMxkqCyS.js → features-B55rwpQC.js} +4 -2
- package/dist/features-B55rwpQC.js.map +1 -0
- package/dist/{features-DCXEvoya.cjs → features-DEDP5CEQ.cjs} +9 -1
- package/dist/features-DEDP5CEQ.cjs.map +1 -0
- package/dist/fit-BPyPRnsK.js +16 -0
- package/dist/fit-BPyPRnsK.js.map +1 -0
- package/dist/fit-D4MIIQQz.cjs +21 -0
- package/dist/fit-D4MIIQQz.cjs.map +1 -0
- package/dist/funnel-BdcfUkb5.d.ts +50 -0
- package/dist/funnel-CFEEulw_.cjs +244 -0
- package/dist/funnel-CFEEulw_.cjs.map +1 -0
- package/dist/funnel-CYCv8cq2.js +239 -0
- package/dist/funnel-CYCv8cq2.js.map +1 -0
- package/dist/funnel-CarOh8w_.d.cts +50 -0
- package/dist/funnel.cjs +3 -0
- package/dist/funnel.d.cts +3 -0
- package/dist/funnel.d.ts +3 -0
- package/dist/funnel.js +1 -0
- package/dist/{gauge-DXkjXNCD.cjs → gauge-6HfDcLMJ.cjs} +28 -28
- package/dist/gauge-6HfDcLMJ.cjs.map +1 -0
- package/dist/{gauge-ts0kqN1-.js → gauge-DiTk5aWO.js} +28 -28
- package/dist/gauge-DiTk5aWO.js.map +1 -0
- package/dist/{gauge-BSist7My.d.cts → gauge-Ds9k1UV2.d.cts} +1 -1
- package/dist/{gauge-0VJuAHWF.d.ts → gauge-Zy25jfps.d.ts} +1 -1
- package/dist/gauge.cjs +1 -1
- package/dist/gauge.d.cts +1 -1
- package/dist/gauge.d.ts +1 -1
- package/dist/gauge.js +1 -1
- package/dist/{heatmap-19BGJTKF.js → heatmap-C1v8bwpq.js} +35 -33
- package/dist/heatmap-C1v8bwpq.js.map +1 -0
- package/dist/{heatmap-Dp_oyEe0.d.cts → heatmap-CJ-0dfhJ.d.cts} +1 -1
- package/dist/{heatmap-CXhlrLTl.cjs → heatmap-Dcc_bsoQ.cjs} +39 -37
- package/dist/heatmap-Dcc_bsoQ.cjs.map +1 -0
- package/dist/{heatmap-59lmClj9.d.ts → heatmap-Jp5sHRTo.d.ts} +1 -1
- package/dist/heatmap.cjs +1 -1
- package/dist/heatmap.d.cts +1 -1
- package/dist/heatmap.d.ts +1 -1
- package/dist/heatmap.js +1 -1
- package/dist/{hydrate-OA6R2_Pn.js → hydrate-BB3MlR36.js} +2 -2
- package/dist/{hydrate-OA6R2_Pn.js.map → hydrate-BB3MlR36.js.map} +1 -1
- package/dist/{hydrate-CmN1k8Mo.cjs → hydrate-m0I5m6ue.cjs} +2 -2
- package/dist/{hydrate-CmN1k8Mo.cjs.map → hydrate-m0I5m6ue.cjs.map} +1 -1
- package/dist/hydrate.cjs +2 -2
- package/dist/hydrate.js +2 -2
- package/dist/index.cjs +55 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -18
- package/dist/index.d.ts +21 -18
- package/dist/index.js +41 -34
- package/dist/index.js.map +1 -1
- package/dist/interaction-DXYSjgnP.cjs +32 -0
- package/dist/interaction-DXYSjgnP.cjs.map +1 -0
- package/dist/interaction-En1KlwFO.js +21 -0
- package/dist/interaction-En1KlwFO.js.map +1 -0
- package/dist/{layout-JY2aR-yE.cjs → layout-Cfg9x1k2.cjs} +32 -1
- package/dist/layout-Cfg9x1k2.cjs.map +1 -0
- package/dist/{layout-DmrrLjwN.js → layout-DqAte3H8.js} +27 -2
- package/dist/layout-DqAte3H8.js.map +1 -0
- package/dist/{line-DtSh7HQU.d.ts → line-Bpr5uVLQ.d.ts} +1 -1
- package/dist/{line-DO66LtwH.js → line-CxR4tg1Q.js} +46 -34
- package/dist/line-CxR4tg1Q.js.map +1 -0
- package/dist/{line-Dbt6KFRK.cjs → line-YiCuhVMI.cjs} +46 -34
- package/dist/line-YiCuhVMI.cjs.map +1 -0
- package/dist/{line-_rNdeKmS.d.cts → line-vyWO030v.d.cts} +2 -3
- package/dist/line.cjs +3 -3
- package/dist/line.d.cts +1 -1
- package/dist/line.d.ts +1 -1
- package/dist/line.js +3 -3
- package/dist/log.cjs +1 -1
- package/dist/log.js +1 -1
- package/dist/map-49FcfdmJ.d.cts +156 -0
- package/dist/map-BMC61J-P.d.ts +156 -0
- package/dist/map-BqrZ80vT.cjs +818 -0
- package/dist/map-BqrZ80vT.cjs.map +1 -0
- package/dist/map-C15NC7kW.js +807 -0
- package/dist/map-C15NC7kW.js.map +1 -0
- package/dist/map.cjs +4 -0
- package/dist/map.d.cts +3 -0
- package/dist/map.d.ts +3 -0
- package/dist/map.js +1 -0
- package/dist/maps/world.cjs +875 -0
- package/dist/maps/world.cjs.map +1 -0
- package/dist/maps/world.d.cts +2 -0
- package/dist/maps/world.d.ts +2 -0
- package/dist/maps/world.js +874 -0
- package/dist/maps/world.js.map +1 -0
- package/dist/{morph-9_LJL0ra.cjs → morph-3I1Nf_tR.cjs} +2 -2
- package/dist/{morph-9_LJL0ra.cjs.map → morph-3I1Nf_tR.cjs.map} +1 -1
- package/dist/{morph-DnRxuwR-.js → morph-GfBab-b3.js} +2 -2
- package/dist/{morph-DnRxuwR-.js.map → morph-GfBab-b3.js.map} +1 -1
- package/dist/morph.cjs +2 -2
- package/dist/morph.js +2 -2
- package/dist/{others-J7NCAMA0.js → others-DBIGE6jr.js} +11 -3
- package/dist/others-DBIGE6jr.js.map +1 -0
- package/dist/others-DBO4Kjwl.d.ts +29 -0
- package/dist/{others-DWdK7vKp.cjs → others-WfjCsjqT.cjs} +14 -6
- package/dist/others-WfjCsjqT.cjs.map +1 -0
- package/dist/others-ls5eKtZ4.d.cts +31 -0
- package/dist/{parliament-Cru4IcuM.js → parliament-BKN6ikBJ.js} +30 -29
- package/dist/parliament-BKN6ikBJ.js.map +1 -0
- package/dist/{parliament-CgsVnWEe.d.cts → parliament-C7V8UJj1.d.cts} +1 -1
- package/dist/{parliament-CLCI7tUO.d.ts → parliament-Cz9n_DoK.d.ts} +1 -1
- package/dist/{parliament-x5hcFaQ3.cjs → parliament-DhxAaIZ3.cjs} +30 -29
- package/dist/parliament-DhxAaIZ3.cjs.map +1 -0
- package/dist/parliament.cjs +1 -1
- package/dist/parliament.d.cts +1 -1
- package/dist/parliament.d.ts +1 -1
- package/dist/parliament.js +1 -1
- package/dist/{patterns-CufKZYhm.js → patterns-BMUINoka.js} +2 -2
- package/dist/{patterns-CufKZYhm.js.map → patterns-BMUINoka.js.map} +1 -1
- package/dist/{patterns-D3-wQagb.cjs → patterns-Dw7OMD_2.cjs} +2 -2
- package/dist/{patterns-D3-wQagb.cjs.map → patterns-Dw7OMD_2.cjs.map} +1 -1
- package/dist/patterns.cjs +2 -2
- package/dist/patterns.d.cts +1 -1
- package/dist/patterns.d.ts +1 -1
- package/dist/patterns.js +2 -2
- package/dist/{percentage-bar-ybNS3goo.cjs → percentage-bar-BChkTRoz.cjs} +37 -35
- package/dist/percentage-bar-BChkTRoz.cjs.map +1 -0
- package/dist/{percentage-bar-B6tNOqNn.js → percentage-bar-CaInxrL8.js} +37 -35
- package/dist/percentage-bar-CaInxrL8.js.map +1 -0
- package/dist/{percentage-bar-tepMr7Hd.d.cts → percentage-bar-R1--2grK.d.cts} +10 -14
- package/dist/{percentage-bar-nhTeakD_.d.ts → percentage-bar-cSeiLdwU.d.ts} +10 -14
- package/dist/percentage-bar.cjs +1 -1
- package/dist/percentage-bar.d.cts +1 -1
- package/dist/percentage-bar.d.ts +1 -1
- package/dist/percentage-bar.js +1 -1
- package/dist/{pie-CFptILSm.d.ts → pie-BQQkvy1N.d.ts} +7 -13
- package/dist/{pie-CVsc-6qD.js → pie-Bd8wyrtY.js} +45 -44
- package/dist/pie-Bd8wyrtY.js.map +1 -0
- package/dist/{pie-BpjvSPnz.cjs → pie-BseZlCgP.cjs} +45 -44
- package/dist/pie-BseZlCgP.cjs.map +1 -0
- package/dist/{pie-BXg2gNpb.d.cts → pie-vD5-g8je.d.cts} +7 -13
- package/dist/pie.cjs +1 -1
- package/dist/pie.d.cts +1 -1
- package/dist/pie.d.ts +1 -1
- package/dist/pie.js +1 -1
- package/dist/{point-shapes--_gmdTyK.cjs → point-shapes-BRawRM78.cjs} +23 -22
- package/dist/point-shapes-BRawRM78.cjs.map +1 -0
- package/dist/{point-shapes-DD2Ektzm.js → point-shapes-DI6GhcI7.js} +18 -23
- package/dist/point-shapes-DI6GhcI7.js.map +1 -0
- package/dist/point-shapes.cjs +6 -4
- package/dist/point-shapes.cjs.map +1 -1
- package/dist/point-shapes.d.cts +2 -2
- package/dist/point-shapes.d.ts +2 -2
- package/dist/point-shapes.js +7 -5
- package/dist/point-shapes.js.map +1 -1
- package/dist/{radar-D1-lItDy.d.cts → radar-7I6hsY_h.d.cts} +1 -1
- package/dist/{radar-BR-mumDd.js → radar-D6XqkFWQ.js} +21 -22
- package/dist/radar-D6XqkFWQ.js.map +1 -0
- package/dist/{radar-HPDrIdzc.cjs → radar-DjISDnSf.cjs} +22 -23
- package/dist/radar-DjISDnSf.cjs.map +1 -0
- package/dist/{radar-BC9Skgpj.d.ts → radar-vLxilcr4.d.ts} +1 -1
- package/dist/radar.cjs +1 -1
- package/dist/radar.d.cts +1 -1
- package/dist/radar.d.ts +1 -1
- package/dist/radar.js +1 -1
- package/dist/{rect-DSVmUZrD.js → rect-CZTNvMlf.js} +2 -2
- package/dist/{rect-DSVmUZrD.js.map → rect-CZTNvMlf.js.map} +1 -1
- package/dist/{rect-D6VhynBM.cjs → rect-DPr9QRxl.cjs} +2 -2
- package/dist/{rect-D6VhynBM.cjs.map → rect-DPr9QRxl.cjs.map} +1 -1
- package/dist/{sankey-fCoo1cpz.cjs → sankey-0CSp_Er9.cjs} +72 -71
- package/dist/sankey-0CSp_Er9.cjs.map +1 -0
- package/dist/{sankey-D_v7KxnJ.d.ts → sankey-7As41Fo4.d.ts} +1 -1
- package/dist/{sankey-D6JeZfK5.js → sankey-Dp4CuLVe.js} +72 -71
- package/dist/sankey-Dp4CuLVe.js.map +1 -0
- package/dist/{sankey-Dk7jUt8x.d.cts → sankey-DqiuxUx7.d.cts} +1 -1
- package/dist/sankey.cjs +1 -1
- package/dist/sankey.d.cts +1 -1
- package/dist/sankey.d.ts +1 -1
- package/dist/sankey.js +1 -1
- package/dist/{scatter-CXEsioOJ.d.ts → scatter-BXkXGgM_.d.ts} +7 -1
- package/dist/{scatter-DVqB_fP9.cjs → scatter-Bwkblr4L.cjs} +40 -38
- package/dist/scatter-Bwkblr4L.cjs.map +1 -0
- package/dist/{scatter-C0TWjFpW.js → scatter-DCMAtt5L.js} +38 -36
- package/dist/scatter-DCMAtt5L.js.map +1 -0
- package/dist/{scatter-DZeEIfyo.d.cts → scatter-DL0zAV09.d.cts} +7 -1
- package/dist/scatter.cjs +1 -1
- package/dist/scatter.d.cts +1 -1
- package/dist/scatter.d.ts +1 -1
- package/dist/scatter.js +1 -1
- package/dist/{sparkline-cbvRkWqS.d.ts → sparkline-BElUSd0r.d.ts} +1 -1
- package/dist/{sparkline-B39NA0Mi.cjs → sparkline-BMSuEPHP.cjs} +13 -15
- package/dist/sparkline-BMSuEPHP.cjs.map +1 -0
- package/dist/{sparkline-XO_TqCNP.js → sparkline-NDmq90kP.js} +13 -15
- package/dist/sparkline-NDmq90kP.js.map +1 -0
- package/dist/{sparkline-DAP6jtzw.d.cts → sparkline-RYly7bR0.d.cts} +1 -1
- package/dist/sparkline.cjs +1 -1
- package/dist/sparkline.d.cts +1 -1
- package/dist/sparkline.d.ts +1 -1
- package/dist/sparkline.js +1 -1
- package/dist/{stack-BgPzoQmv.cjs → stack-BO4624CY.cjs} +2 -2
- package/dist/{stack-BgPzoQmv.cjs.map → stack-BO4624CY.cjs.map} +1 -1
- package/dist/{stack-Dagxq7l2.d.cts → stack-BTWYIwLO.d.cts} +1 -1
- package/dist/{stack-2H2Gfs1Q.js → stack-jVKvg2x_.js} +2 -2
- package/dist/{stack-2H2Gfs1Q.js.map → stack-jVKvg2x_.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{time-axis-BjZ1bYTK.cjs → time-axis-B3VekUfX.cjs} +4 -3
- package/dist/{time-axis-BjZ1bYTK.cjs.map → time-axis-B3VekUfX.cjs.map} +1 -1
- package/dist/{time-axis-FLONo54E.js → time-axis-CLjqOakA.js} +3 -2
- package/dist/{time-axis-FLONo54E.js.map → time-axis-CLjqOakA.js.map} +1 -1
- package/dist/time.cjs +3 -3
- package/dist/time.js +3 -3
- package/dist/{treemap-BAkhmVQc.d.cts → treemap-25vHO_UK.d.cts} +12 -2
- package/dist/{treemap-BNpxFBao.d.ts → treemap-BCXUbixd.d.ts} +12 -2
- package/dist/{treemap-CQdavQ9u.js → treemap-C4glsx-g.js} +20 -25
- package/dist/treemap-C4glsx-g.js.map +1 -0
- package/dist/{treemap-BWpEUlDh.cjs → treemap-CZk8kKFD.cjs} +21 -26
- package/dist/treemap-CZk8kKFD.cjs.map +1 -0
- package/dist/treemap.cjs +1 -1
- package/dist/treemap.d.cts +1 -1
- package/dist/treemap.d.ts +1 -1
- package/dist/treemap.js +1 -1
- package/dist/{value-labels-BBuSi4i0.js → value-labels-C7GrhOXJ.js} +25 -5
- package/dist/value-labels-C7GrhOXJ.js.map +1 -0
- package/dist/{value-labels-BV9keAuL.cjs → value-labels-DzaKIWKp.cjs} +25 -5
- package/dist/value-labels-DzaKIWKp.cjs.map +1 -0
- package/dist/value-labels.cjs +2 -2
- package/dist/value-labels.d.cts +1 -1
- package/dist/value-labels.d.ts +1 -1
- package/dist/value-labels.js +2 -2
- package/package.json +93 -233
- package/dist/bar-BNZ3GhIw.js.map +0 -1
- package/dist/bar-Da6dE_nI.cjs.map +0 -1
- package/dist/cartesian-CI2x6N7N.js.map +0 -1
- package/dist/cartesian-DV02PsBe.cjs.map +0 -1
- package/dist/chart-DWn9v6qw.js.map +0 -1
- package/dist/chart-e2VqomCI.cjs.map +0 -1
- package/dist/core-BKRQvPAT.js.map +0 -1
- package/dist/core-DIOC61up.cjs.map +0 -1
- package/dist/dom-CuceR8gt.js.map +0 -1
- package/dist/dom-D_g13XWY.cjs.map +0 -1
- package/dist/export-chart-83UYH48t.js.map +0 -1
- package/dist/export-chart-mYgEfK-L.cjs.map +0 -1
- package/dist/fade-DVTkhrFU.cjs.map +0 -1
- package/dist/fade-GGxcBdss.js.map +0 -1
- package/dist/features-BMxkqCyS.js.map +0 -1
- package/dist/features-DCXEvoya.cjs.map +0 -1
- package/dist/gauge-DXkjXNCD.cjs.map +0 -1
- package/dist/gauge-ts0kqN1-.js.map +0 -1
- package/dist/heatmap-19BGJTKF.js.map +0 -1
- package/dist/heatmap-CXhlrLTl.cjs.map +0 -1
- package/dist/layout-DmrrLjwN.js.map +0 -1
- package/dist/layout-JY2aR-yE.cjs.map +0 -1
- package/dist/line-DO66LtwH.js.map +0 -1
- package/dist/line-Dbt6KFRK.cjs.map +0 -1
- package/dist/others-DWdK7vKp.cjs.map +0 -1
- package/dist/others-J7NCAMA0.js.map +0 -1
- package/dist/parliament-Cru4IcuM.js.map +0 -1
- package/dist/parliament-x5hcFaQ3.cjs.map +0 -1
- package/dist/percentage-bar-B6tNOqNn.js.map +0 -1
- package/dist/percentage-bar-ybNS3goo.cjs.map +0 -1
- package/dist/pie-BpjvSPnz.cjs.map +0 -1
- package/dist/pie-CVsc-6qD.js.map +0 -1
- package/dist/point-shapes--_gmdTyK.cjs.map +0 -1
- package/dist/point-shapes-DD2Ektzm.js.map +0 -1
- package/dist/radar-BR-mumDd.js.map +0 -1
- package/dist/radar-HPDrIdzc.cjs.map +0 -1
- package/dist/sankey-D6JeZfK5.js.map +0 -1
- package/dist/sankey-fCoo1cpz.cjs.map +0 -1
- package/dist/scatter-C0TWjFpW.js.map +0 -1
- package/dist/scatter-DVqB_fP9.cjs.map +0 -1
- package/dist/sparkline-B39NA0Mi.cjs.map +0 -1
- package/dist/sparkline-XO_TqCNP.js.map +0 -1
- package/dist/treemap-BWpEUlDh.cjs.map +0 -1
- package/dist/treemap-CQdavQ9u.js.map +0 -1
- package/dist/value-labels-BBuSi4i0.js.map +0 -1
- package/dist/value-labels-BV9keAuL.cjs.map +0 -1
|
@@ -1,216 +1,11 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import {
|
|
1
|
+
import { a as bandTicks, c as niceDomain, d as ticks, i as axisTitleSize, n as axisSize, o as linearTicks, r as axisTitle, s as thinTicks, t as axis } from "./axis-MMaVoSWB.js";
|
|
2
|
+
import { n as estimateTextWidth, o as plotFrame, s as round, t as LINE_HEIGHT } from "./layout-DqAte3H8.js";
|
|
3
3
|
import { t as h } from "./vnode-_EMUqysL.js";
|
|
4
|
-
import { n as feature, r as features } from "./features-
|
|
4
|
+
import { n as feature, r as features } from "./features-B55rwpQC.js";
|
|
5
|
+
import { n as formatDetail } from "./format-it1kepFG.js";
|
|
5
6
|
import { t as extent } from "./extent-DOV8rs-6.js";
|
|
6
7
|
import { i as finite } from "./clean-CkoQobGv.js";
|
|
7
8
|
import { n as keyOf, r as legendItems, t as groupAttrs } from "./named-BOiBah6I.js";
|
|
8
|
-
// src/scales/ticks.ts
|
|
9
|
-
const E10 = Math.sqrt(50);
|
|
10
|
-
const E5 = Math.sqrt(10);
|
|
11
|
-
const E2 = Math.sqrt(2);
|
|
12
|
-
/**
|
|
13
|
-
* Integer tick indices `[i1, i2]` and an increment `inc`. A negative `inc`
|
|
14
|
-
* means "divide by -inc", which keeps decimal ticks exact (0.3, not
|
|
15
|
-
* 0.30000000000000004).
|
|
16
|
-
*/
|
|
17
|
-
function tickSpec(start, stop, count) {
|
|
18
|
-
const step = (stop - start) / Math.max(0, count);
|
|
19
|
-
const power = Math.floor(Math.log10(step));
|
|
20
|
-
const error = step / 10 ** power;
|
|
21
|
-
const factor = error >= E10 ? 10 : error >= E5 ? 5 : error >= E2 ? 2 : 1;
|
|
22
|
-
let i1;
|
|
23
|
-
let i2;
|
|
24
|
-
let inc;
|
|
25
|
-
if (power < 0) {
|
|
26
|
-
inc = 10 ** -power / factor;
|
|
27
|
-
i1 = Math.round(start * inc);
|
|
28
|
-
i2 = Math.round(stop * inc);
|
|
29
|
-
if (i1 / inc < start) ++i1;
|
|
30
|
-
if (i2 / inc > stop) --i2;
|
|
31
|
-
inc = -inc;
|
|
32
|
-
} else {
|
|
33
|
-
inc = 10 ** power * factor;
|
|
34
|
-
i1 = Math.round(start / inc);
|
|
35
|
-
i2 = Math.round(stop / inc);
|
|
36
|
-
if (i1 * inc < start) ++i1;
|
|
37
|
-
if (i2 * inc > stop) --i2;
|
|
38
|
-
}
|
|
39
|
-
if (i2 < i1 && count >= .5 && count < 2) return tickSpec(start, stop, count * 2);
|
|
40
|
-
return [
|
|
41
|
-
i1,
|
|
42
|
-
i2,
|
|
43
|
-
inc
|
|
44
|
-
];
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Roughly `count` evenly spaced, "nice" values (multiples of 1, 2 or 5 × 10ⁿ)
|
|
48
|
-
* between `start` and `stop`, inclusive. Order follows `start → stop`.
|
|
49
|
-
*/
|
|
50
|
-
function ticks(start, stop, count = 5) {
|
|
51
|
-
if (!(count > 0) || !Number.isFinite(start) || !Number.isFinite(stop)) return [];
|
|
52
|
-
if (start === stop) return [start];
|
|
53
|
-
const reverse = stop < start;
|
|
54
|
-
const [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count);
|
|
55
|
-
if (!(i2 >= i1)) return [];
|
|
56
|
-
const n = i2 - i1 + 1;
|
|
57
|
-
const out = new Array(n);
|
|
58
|
-
for (let i = 0; i < n; i++) {
|
|
59
|
-
const index = reverse ? i2 - i : i1 + i;
|
|
60
|
-
out[i] = inc < 0 ? index / -inc : index * inc;
|
|
61
|
-
}
|
|
62
|
-
return out;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Signed tick increment: positive values are the step, negative values `-k`
|
|
66
|
-
* mean a step of `1 / k`.
|
|
67
|
-
*/
|
|
68
|
-
function tickIncrement(start, stop, count) {
|
|
69
|
-
return tickSpec(start, stop, count)[2];
|
|
70
|
-
}
|
|
71
|
-
/** Distance between ticks produced by {@link ticks} for the same arguments. */
|
|
72
|
-
function tickStep(start, stop, count = 5) {
|
|
73
|
-
const reverse = stop < start;
|
|
74
|
-
const inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);
|
|
75
|
-
return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Extend `[start, stop]` to round tick values, e.g. `[0.2, 9.7] → [0, 10]`.
|
|
79
|
-
* Iterates because rounding can change the ideal step; if the step does not
|
|
80
|
-
* settle (e.g. very low `count` around zero keeps doubling the domain), the
|
|
81
|
-
* domain is returned unchanged, matching d3.
|
|
82
|
-
*/
|
|
83
|
-
function niceDomain(start, stop, count = 5) {
|
|
84
|
-
if (!Number.isFinite(start) || !Number.isFinite(stop) || start === stop || !(count > 0)) return [start, stop];
|
|
85
|
-
const reverse = stop < start;
|
|
86
|
-
let lo = reverse ? stop : start;
|
|
87
|
-
let hi = reverse ? start : stop;
|
|
88
|
-
let prev;
|
|
89
|
-
for (let i = 0; i < 10; i++) {
|
|
90
|
-
const step = tickIncrement(lo, hi, count);
|
|
91
|
-
if (step === prev) return reverse ? [hi, lo] : [lo, hi];
|
|
92
|
-
if (step > 0) {
|
|
93
|
-
lo = Math.floor(lo / step) * step;
|
|
94
|
-
hi = Math.ceil(hi / step) * step;
|
|
95
|
-
} else if (step < 0) {
|
|
96
|
-
lo = Math.ceil(lo * step) / step;
|
|
97
|
-
hi = Math.floor(hi * step) / step;
|
|
98
|
-
} else break;
|
|
99
|
-
prev = step;
|
|
100
|
-
}
|
|
101
|
-
return [start, stop];
|
|
102
|
-
}
|
|
103
|
-
// src/components/axis.ts
|
|
104
|
-
/** Ticks for a linear scale, labelled with a shared precision. */
|
|
105
|
-
function linearTicks(scale, options = {}) {
|
|
106
|
-
const { count = 5, format, locale } = options;
|
|
107
|
-
const [d0, d1] = scale.domain;
|
|
108
|
-
const fmt = formatTicks(tickStep(d0, d1, count), format, locale);
|
|
109
|
-
return scale.ticks(count).map((value) => ({
|
|
110
|
-
value,
|
|
111
|
-
position: scale(value),
|
|
112
|
-
label: fmt(value)
|
|
113
|
-
}));
|
|
114
|
-
}
|
|
115
|
-
/** Ticks at the center of every band. */
|
|
116
|
-
function bandTicks(scale, format = String) {
|
|
117
|
-
return scale.domain.map((key, i) => ({
|
|
118
|
-
value: key,
|
|
119
|
-
position: scale.at(i) + scale.bandwidth / 2,
|
|
120
|
-
label: format(key, i)
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
/** Whether labels are laid out along x (horizontal axes). */
|
|
124
|
-
const isHorizontal = (position) => position === "top" || position === "bottom";
|
|
125
|
-
/**
|
|
126
|
-
* Keep every n-th tick (smallest n) so labels do not overlap along the axis.
|
|
127
|
-
* The first and the last tick are always kept: when the last one does not
|
|
128
|
-
* land on the step, it replaces the last kept tick if they would collide.
|
|
129
|
-
*/
|
|
130
|
-
function thinTicks(ticks, position, fontSize, gap = 8) {
|
|
131
|
-
if (ticks.length < 2) return ticks.slice();
|
|
132
|
-
const size = (tick) => isHorizontal(position) ? estimateTextWidth(tick.label, fontSize) : fontSize * LINE_HEIGHT;
|
|
133
|
-
const sizes = ticks.map(size);
|
|
134
|
-
const fitsBetween = (i, j) => Math.abs(ticks[j].position - ticks[i].position) >= (sizes[i] + sizes[j]) / 2 + gap;
|
|
135
|
-
const last = ticks.length - 1;
|
|
136
|
-
const span = Math.abs(ticks[last].position - ticks[0].position);
|
|
137
|
-
const total = sizes.reduce((sum, size) => sum + size + gap, 0);
|
|
138
|
-
const first = span > 0 ? Math.max(1, Math.floor(total / span)) : last;
|
|
139
|
-
for (let step = first; step <= last; step++) {
|
|
140
|
-
let fits = true;
|
|
141
|
-
for (let i = step; i <= last && fits; i += step) fits = fitsBetween(i - step, i);
|
|
142
|
-
if (!fits) continue;
|
|
143
|
-
const kept = [];
|
|
144
|
-
for (let i = 0; i <= last; i += step) kept.push(i);
|
|
145
|
-
const tail = kept[kept.length - 1];
|
|
146
|
-
if (tail !== last) {
|
|
147
|
-
if (fitsBetween(tail, last)) kept.push(last);
|
|
148
|
-
else if (kept.length > 1 && fitsBetween(kept[kept.length - 2], last)) kept[kept.length - 1] = last;
|
|
149
|
-
}
|
|
150
|
-
return kept.map((i) => ticks[i]);
|
|
151
|
-
}
|
|
152
|
-
return ticks.slice(0, 1);
|
|
153
|
-
}
|
|
154
|
-
/** Pixels an axis occupies perpendicular to the plot edge (for margins). */
|
|
155
|
-
function axisSize(position, ticks, fontSize, options = {}) {
|
|
156
|
-
const { tickSize = 0, tickPadding = 8 } = options;
|
|
157
|
-
if (ticks.length === 0) return 0;
|
|
158
|
-
const labels = isHorizontal(position) ? fontSize * LINE_HEIGHT : ticks.reduce((max, t) => Math.max(max, estimateTextWidth(t.label, fontSize)), 0) + 3;
|
|
159
|
-
return Math.ceil(labels + tickSize + tickPadding);
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Render an axis as `<g class="tc-axis tc-axis-{x|y} tc-axis-{position}">`
|
|
163
|
-
* with one `<g class="tc-tick">` per tick, keyed by value so ticks can
|
|
164
|
-
* transition when the scale changes.
|
|
165
|
-
*/
|
|
166
|
-
function axis(options) {
|
|
167
|
-
const { position, ticks, area, tickSize = 0, tickPadding = 8, line = false } = options;
|
|
168
|
-
const horizontal = isHorizontal(position);
|
|
169
|
-
const sign = position === "top" || position === "left" ? -1 : 1;
|
|
170
|
-
const offset = sign * (tickSize + tickPadding);
|
|
171
|
-
const edge = position === "top" ? area.y : position === "bottom" ? area.y + area.height : position === "left" ? area.x : area.x + area.width;
|
|
172
|
-
const label = horizontal ? {
|
|
173
|
-
y: offset,
|
|
174
|
-
dy: position === "top" ? "0em" : "0.71em",
|
|
175
|
-
"text-anchor": "middle"
|
|
176
|
-
} : {
|
|
177
|
-
x: offset,
|
|
178
|
-
dy: "0.32em",
|
|
179
|
-
"text-anchor": position === "left" ? "end" : "start"
|
|
180
|
-
};
|
|
181
|
-
const tickLine = horizontal ? { y2: sign * tickSize } : { x2: sign * tickSize };
|
|
182
|
-
return h("g", {
|
|
183
|
-
key: `axis-${position}`,
|
|
184
|
-
class: [
|
|
185
|
-
"tc-axis",
|
|
186
|
-
horizontal ? "tc-axis-x" : "tc-axis-y",
|
|
187
|
-
`tc-axis-${position}`
|
|
188
|
-
],
|
|
189
|
-
"aria-hidden": "true"
|
|
190
|
-
}, line && h("line", horizontal ? {
|
|
191
|
-
class: "tc-axis-line",
|
|
192
|
-
x1: area.x,
|
|
193
|
-
x2: area.x + area.width,
|
|
194
|
-
y1: edge,
|
|
195
|
-
y2: edge
|
|
196
|
-
} : {
|
|
197
|
-
class: "tc-axis-line",
|
|
198
|
-
x1: edge,
|
|
199
|
-
x2: edge,
|
|
200
|
-
y1: area.y,
|
|
201
|
-
y2: area.y + area.height
|
|
202
|
-
}), ticks.map((tick) => h("g", {
|
|
203
|
-
key: tick.value,
|
|
204
|
-
class: "tc-tick",
|
|
205
|
-
style: horizontal ? `transform:translate(${round(tick.position)}px,${round(edge)}px)` : `transform:translate(${round(edge)}px,${round(tick.position)}px)`
|
|
206
|
-
}, tickSize > 0 && h("line", {
|
|
207
|
-
class: "tc-tick-line",
|
|
208
|
-
...tickLine
|
|
209
|
-
}), h("text", {
|
|
210
|
-
class: "tc-tick-label",
|
|
211
|
-
...label
|
|
212
|
-
}, tick.label))));
|
|
213
|
-
}
|
|
214
9
|
// src/components/grid.ts
|
|
215
10
|
/**
|
|
216
11
|
* Render grid lines as `<g class="tc-grid tc-grid-{x|y}">`. The line at
|
|
@@ -353,6 +148,29 @@ function linear(domain, range, options = {}) {
|
|
|
353
148
|
const labelKey = (label) => label instanceof Date ? label.getTime() : label;
|
|
354
149
|
/** Stable key of a series: its `id`, or its name. */
|
|
355
150
|
const seriesKey = keyOf;
|
|
151
|
+
/**
|
|
152
|
+
* Whether the chart draws a second value axis: a series asks for it with
|
|
153
|
+
* `axis: 'y2'`, and the values run along y (not in horizontal bars).
|
|
154
|
+
*/
|
|
155
|
+
const hasY2 = (options) => options.orientation !== "horizontal" && options.data.series.some((s) => s.axis === "y2");
|
|
156
|
+
/**
|
|
157
|
+
* The value axis a series is read on: a function giving each series'
|
|
158
|
+
* axis options, and whether it is the second one.
|
|
159
|
+
*/
|
|
160
|
+
function seriesAxes(options) {
|
|
161
|
+
const second = hasY2(options);
|
|
162
|
+
const y = {
|
|
163
|
+
second: false,
|
|
164
|
+
axis: options.y ?? {}
|
|
165
|
+
};
|
|
166
|
+
const y2 = {
|
|
167
|
+
second: true,
|
|
168
|
+
axis: options.y2 ?? {}
|
|
169
|
+
};
|
|
170
|
+
return (series) => second && series?.axis === "y2" ? y2 : y;
|
|
171
|
+
}
|
|
172
|
+
/** The scale of a series: the second one for series on `y2`. */
|
|
173
|
+
const seriesScale = (layout, series) => layout.y2 && series?.axis === "y2" ? layout.y2 : layout.y;
|
|
356
174
|
/** Legend entries for series-based charts. */
|
|
357
175
|
const seriesLegend = (data) => legendItems(data.series);
|
|
358
176
|
/** Categories from `data.labels`, or `1…n` for the longest series. */
|
|
@@ -400,6 +218,23 @@ const markerShape = (options) => {
|
|
|
400
218
|
const { shapes, patterns } = options;
|
|
401
219
|
return shapes ?? patterns === true ? features["point-shapes"] : void 0;
|
|
402
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* A point of the series in color slot `slot`: a circle, or the slot's marker
|
|
223
|
+
* when the chart has point shapes (see `markerShape`).
|
|
224
|
+
*/
|
|
225
|
+
function pointMark(shape, slot, key, cls, cx, cy, r) {
|
|
226
|
+
return shape ? h("path", {
|
|
227
|
+
key,
|
|
228
|
+
class: [cls, "tc-marker"],
|
|
229
|
+
d: shape(slot, cx, cy, r)
|
|
230
|
+
}) : h("circle", {
|
|
231
|
+
key,
|
|
232
|
+
class: cls,
|
|
233
|
+
cx,
|
|
234
|
+
cy,
|
|
235
|
+
r
|
|
236
|
+
});
|
|
237
|
+
}
|
|
403
238
|
/** The tick count asked for on an axis (a number up to 100), or `auto`. */
|
|
404
239
|
const tickCount = (axis, auto) => Math.min(finite(axis?.ticks) ?? auto, 100);
|
|
405
240
|
/** Y domain from the data and axis options. */
|
|
@@ -444,11 +279,20 @@ function notesFeature(options) {
|
|
|
444
279
|
* measure the labels with (their positions mean nothing). `auto` is the
|
|
445
280
|
* tick count the plot has room for, unless the axis asks for its own.
|
|
446
281
|
*/
|
|
447
|
-
function valueAxis(options, ctx, layout, auto) {
|
|
448
|
-
const
|
|
282
|
+
function valueAxis(options, ctx, layout, auto, which) {
|
|
283
|
+
const second = which === "y2";
|
|
284
|
+
const axis = (second ? options.y2 : options.y) ?? {};
|
|
449
285
|
const count = tickCount(axis, Math.max(2, auto));
|
|
450
|
-
|
|
451
|
-
|
|
286
|
+
let domain;
|
|
287
|
+
if (second) {
|
|
288
|
+
const own = options.data.series.filter((s) => s.axis === "y2");
|
|
289
|
+
const shown = own.filter((s) => !ctx.hidden.has(seriesKey(s)));
|
|
290
|
+
domain = domainOf((shown.length ? shown : own).flatMap((s) => s.values), axis, layout.zero2 ?? layout.zero, count);
|
|
291
|
+
} else domain = valueDomain(which === "y" ? {
|
|
292
|
+
...options.data,
|
|
293
|
+
series: options.data.series.filter((s) => s.axis !== "y2")
|
|
294
|
+
} : options.data, axis, layout.zero, count, ctx.hidden, layout.values, notesFeature(options)?.values(options.annotations));
|
|
295
|
+
const format = second ? axis.format : layout.tickFormat ?? axis.format;
|
|
452
296
|
const scale = (range) => valueScale(domain, range, axis);
|
|
453
297
|
const ticks = (of) => valueTicks(of, axis, count, format, ctx.locale);
|
|
454
298
|
return {
|
|
@@ -461,12 +305,13 @@ function valueAxis(options, ctx, layout, auto) {
|
|
|
461
305
|
* Finish a layout that has its plot area, scales and ticks with what is
|
|
462
306
|
* drawn around the marks: grid lines and annotation bands below them,
|
|
463
307
|
* annotation lines and the axes above. Values run along y and categories
|
|
464
|
-
* along x, or the other way round when `horizontal`.
|
|
308
|
+
* along x, or the other way round when `horizontal`. The value axis (the
|
|
309
|
+
* category axis when `horizontal`) sits on the start `side`.
|
|
465
310
|
*/
|
|
466
|
-
function finishLayout(options, ctx, overhang, plot, keys, time) {
|
|
467
|
-
const { area, x, y, xTicks, yTicks, horizontal: flip } = plot;
|
|
311
|
+
function finishLayout(options, ctx, side, overhang, plot, keys, time) {
|
|
312
|
+
const { area, x, y, xTicks, yTicks, y2Ticks, horizontal: flip } = plot;
|
|
468
313
|
const xOptions = options.x ?? {};
|
|
469
|
-
const
|
|
314
|
+
const opposite = side === "left" ? "right" : "left";
|
|
470
315
|
const notes = notesFeature(options)?.layers(options.annotations, {
|
|
471
316
|
area,
|
|
472
317
|
horizontal: flip,
|
|
@@ -487,6 +332,17 @@ function finishLayout(options, ctx, overhang, plot, keys, time) {
|
|
|
487
332
|
area,
|
|
488
333
|
line: xOptions.line === true
|
|
489
334
|
})];
|
|
335
|
+
const seconds = !!y2Ticks && options.y2?.show !== false && [axis({
|
|
336
|
+
position: opposite,
|
|
337
|
+
ticks: y2Ticks,
|
|
338
|
+
area
|
|
339
|
+
})];
|
|
340
|
+
const title = (text, position, ticks) => !!text && axisTitle(position, ticks || [], area, text, ctx.fontSize);
|
|
341
|
+
const titles = [
|
|
342
|
+
title(options.y?.title, flip ? "bottom" : side, !!values && yTicks),
|
|
343
|
+
title(xOptions.title, flip ? side : "bottom", xTicks),
|
|
344
|
+
!!y2Ticks && title(options.y2?.title, opposite, !!seconds && y2Ticks)
|
|
345
|
+
];
|
|
490
346
|
const present = (parts) => parts.flatMap((part) => part || []);
|
|
491
347
|
return {
|
|
492
348
|
...plot,
|
|
@@ -506,7 +362,9 @@ function finishLayout(options, ctx, overhang, plot, keys, time) {
|
|
|
506
362
|
foreground: present([
|
|
507
363
|
notes?.over,
|
|
508
364
|
flip ? categories : values,
|
|
509
|
-
flip ? values : categories
|
|
365
|
+
flip ? values : categories,
|
|
366
|
+
seconds,
|
|
367
|
+
...titles
|
|
510
368
|
]),
|
|
511
369
|
clip: plotClip(ctx, area, overhang)
|
|
512
370
|
};
|
|
@@ -520,14 +378,18 @@ function cartesianLayout(options, ctx, layout) {
|
|
|
520
378
|
const overhang = layout.overhang ?? 0;
|
|
521
379
|
const rtl = ctx.rtl === true;
|
|
522
380
|
const reverse = xOptions.reverse ?? rtl;
|
|
523
|
-
const pad = mirrorSides(insets(options.padding), rtl);
|
|
524
381
|
const labels = resolveLabels(data);
|
|
525
382
|
const format = labelFormatter(options, ctx);
|
|
526
383
|
const showY = yOptions.show !== false;
|
|
527
384
|
const showX = xOptions.show !== false && labels.length > 0;
|
|
528
385
|
const timed = isTimeAxis(options) && layout.scale === "point";
|
|
529
|
-
const
|
|
386
|
+
const auto = Math.round(height / 60);
|
|
387
|
+
const second = hasY2(options);
|
|
388
|
+
const value = valueAxis(options, ctx, layout, auto, second ? "y" : void 0);
|
|
530
389
|
const probeY = value.probe;
|
|
390
|
+
const y2Options = options.y2 ?? {};
|
|
391
|
+
const value2 = second ? valueAxis(options, ctx, layout, auto, "y2") : null;
|
|
392
|
+
const showY2 = !!value2 && y2Options.show !== false;
|
|
531
393
|
const countX = Math.max(2, Math.round(width / 80));
|
|
532
394
|
const keys = labels.map(labelKey);
|
|
533
395
|
const labelAt = (i) => format(labels[i], i);
|
|
@@ -545,28 +407,30 @@ function cartesianLayout(options, ctx, layout) {
|
|
|
545
407
|
const firstLabel = edgeWidth(reverse !== rtl);
|
|
546
408
|
const lastLabel = edgeWidth(reverse === rtl);
|
|
547
409
|
const edgeX = layout.scale === "point";
|
|
548
|
-
const valueWidth = showY ? axisSize("left", probeY, fontSize) : 0;
|
|
549
|
-
const
|
|
550
|
-
|
|
410
|
+
const valueWidth = (showY ? axisSize("left", probeY, fontSize) : 0) + axisTitleSize(yOptions.title, fontSize);
|
|
411
|
+
const value2Width = value2 ? (showY2 ? axisSize("right", value2.probe, fontSize) : 0) + axisTitleSize(y2Options.title, fontSize) : 0;
|
|
412
|
+
const { area, side, range } = plotFrame(ctx, options.padding, (pad) => {
|
|
413
|
+
const sides = (halfStep) => {
|
|
414
|
+
const overflow = (label) => edgeX ? Math.ceil(label / 2) : Math.max(0, Math.ceil(label / 2 - halfStep));
|
|
415
|
+
return {
|
|
416
|
+
start: pad.start + Math.max(valueWidth, overflow(firstLabel), overhang, showY ? 0 : 8),
|
|
417
|
+
end: pad.end + Math.max(value2Width, overflow(lastLabel), overhang, 8)
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
const steps = Math.max(1, labels.length) * 2;
|
|
421
|
+
let both = sides((width - pad.start - pad.end - valueWidth - value2Width) / steps);
|
|
422
|
+
if (!edgeX) both = sides((width - both.start - both.end) / steps);
|
|
551
423
|
return {
|
|
552
|
-
|
|
553
|
-
|
|
424
|
+
top: pad.top + Math.max(showY || showY2 ? halfLine : 0, overhang, 4),
|
|
425
|
+
bottom: pad.bottom + Math.max((showX ? axisSize("bottom", [probeY[0]], fontSize) : showY ? halfLine : 0) + axisTitleSize(xOptions.title, fontSize), overhang, 4),
|
|
426
|
+
...both
|
|
554
427
|
};
|
|
555
|
-
};
|
|
556
|
-
const
|
|
557
|
-
let sides = side((width - pad.left - pad.right - valueWidth) / steps);
|
|
558
|
-
if (!edgeX) sides = side((width - sides.left - sides.right) / steps);
|
|
559
|
-
const margins = {
|
|
560
|
-
top: pad.top + Math.max(showY ? halfLine : 0, overhang, 4),
|
|
561
|
-
bottom: pad.bottom + Math.max(showX ? axisSize("bottom", [probeY[0]], fontSize) : showY ? halfLine : 0, overhang, 4),
|
|
562
|
-
...mirrorSides(sides, rtl)
|
|
563
|
-
};
|
|
564
|
-
const area = innerRect(width, height, margins);
|
|
565
|
-
const end = area.x + area.width;
|
|
566
|
-
const x = xAxis.scale(reverse ? [end, area.x] : [area.x, end]);
|
|
428
|
+
});
|
|
429
|
+
const x = xAxis.scale(range(reverse));
|
|
567
430
|
const y = value.scale([area.y + area.height, area.y]);
|
|
431
|
+
const y2 = value2?.scale([area.y + area.height, area.y]);
|
|
568
432
|
const yTicks = thinTicks(value.ticks(y), "left", fontSize, 4);
|
|
569
|
-
|
|
433
|
+
const plot = {
|
|
570
434
|
area,
|
|
571
435
|
labels,
|
|
572
436
|
x,
|
|
@@ -574,7 +438,12 @@ function cartesianLayout(options, ctx, layout) {
|
|
|
574
438
|
horizontal: false,
|
|
575
439
|
xTicks: showX ? thinTicks(xAxis.ticks(x), "bottom", fontSize) : [],
|
|
576
440
|
yTicks
|
|
577
|
-
}
|
|
441
|
+
};
|
|
442
|
+
if (value2 && y2) {
|
|
443
|
+
plot.y2 = y2;
|
|
444
|
+
plot.y2Ticks = thinTicks(value2.ticks(y2), "right", fontSize, 4);
|
|
445
|
+
}
|
|
446
|
+
return finishLayout(options, ctx, side, overhang, plot, keys, xAxis.time);
|
|
578
447
|
}
|
|
579
448
|
/** Clip path around the plot area, a little larger so strokes and dots are not cut. */
|
|
580
449
|
function plotClip(ctx, area, overhang) {
|
|
@@ -615,7 +484,9 @@ function categoryInteraction(layout, options, ctx, anchor, markAt) {
|
|
|
615
484
|
const { area, x, labels, horizontal } = layout;
|
|
616
485
|
const { data } = options;
|
|
617
486
|
const formatLabel = labelFormatter(options, ctx);
|
|
618
|
-
const
|
|
487
|
+
const axisOf = seriesAxes(options);
|
|
488
|
+
const axes = data.series.map((s) => axisOf(s).axis);
|
|
489
|
+
const formats = axes.map((axis) => formatDetail(axis.format, ctx.locale));
|
|
619
490
|
const hitAt = (index) => {
|
|
620
491
|
const start = x.at(index);
|
|
621
492
|
const center = start + x.bandwidth / 2;
|
|
@@ -631,13 +502,13 @@ function categoryInteraction(layout, options, ctx, anchor, markAt) {
|
|
|
631
502
|
data.series.forEach((series, seriesIndex) => {
|
|
632
503
|
if (ctx.hidden.has(seriesKey(series))) return;
|
|
633
504
|
const raw = series.values[index];
|
|
634
|
-
const value = plottable(raw,
|
|
505
|
+
const value = plottable(raw, axes[seriesIndex]) ? raw : null;
|
|
635
506
|
const point = value === null ? empty : anchor(seriesIndex, index, value);
|
|
636
507
|
const item = {
|
|
637
508
|
name: series.name,
|
|
638
509
|
seriesIndex,
|
|
639
510
|
value,
|
|
640
|
-
text: value === null ? "–" :
|
|
511
|
+
text: value === null ? "–" : formats[seriesIndex](value),
|
|
641
512
|
...point
|
|
642
513
|
};
|
|
643
514
|
if (series.color) item.color = series.color;
|
|
@@ -655,12 +526,14 @@ function categoryInteraction(layout, options, ctx, anchor, markAt) {
|
|
|
655
526
|
hit.y = center;
|
|
656
527
|
hit.axis = "y";
|
|
657
528
|
}
|
|
658
|
-
if (x.bandwidth > 0) hit.
|
|
529
|
+
if (x.bandwidth > 0) hit.highlight = horizontal ? {
|
|
530
|
+
kind: "band",
|
|
659
531
|
x: area.x,
|
|
660
532
|
y: start,
|
|
661
533
|
width: area.width,
|
|
662
534
|
height: x.bandwidth
|
|
663
535
|
} : {
|
|
536
|
+
kind: "band",
|
|
664
537
|
x: start,
|
|
665
538
|
y: area.y,
|
|
666
539
|
width: x.bandwidth,
|
|
@@ -693,17 +566,18 @@ function seriesTable(options, ctx, limit = Number.POSITIVE_INFINITY) {
|
|
|
693
566
|
const all = resolveLabels(options.data);
|
|
694
567
|
const labels = all.length > limit ? all.slice(0, limit) : all;
|
|
695
568
|
const formatLabel = labelFormatter(options, ctx);
|
|
696
|
-
const
|
|
569
|
+
const axisOf = seriesAxes(options);
|
|
697
570
|
const series = options.data.series.filter((s) => !ctx.hidden.has(seriesKey(s)));
|
|
571
|
+
const formats = series.map((s) => formatDetail(axisOf(s).axis.format, ctx.locale));
|
|
698
572
|
return {
|
|
699
573
|
columns: ["", ...series.map((s) => s.name)],
|
|
700
574
|
total: all.length,
|
|
701
|
-
rows: labels.map((label, i) => [formatLabel(label, i), ...series.map((s) => {
|
|
575
|
+
rows: labels.map((label, i) => [formatLabel(label, i), ...series.map((s, n) => {
|
|
702
576
|
const v = s.values[i];
|
|
703
|
-
return v == null || !Number.isFinite(v) ? "–" :
|
|
577
|
+
return v == null || !Number.isFinite(v) ? "–" : formats[n](v);
|
|
704
578
|
})])
|
|
705
579
|
};
|
|
706
580
|
}
|
|
707
|
-
export {
|
|
581
|
+
export { linear as C, grid as E, valueTicks as S, point as T, seriesTable as _, labelFormatter as a, valueAxis as b, plotClip as c, resolveLabels as d, seriesAttrs as f, seriesScale as g, seriesLegend as h, finishLayout as i, plottable as l, seriesKey as m, categoryInteraction as n, labelKey as o, seriesAxes as p, domainOf as r, markerShape as s, cartesianLayout as t, pointMark as u, tickCount as v, band as w, valueScale as x, toMs as y };
|
|
708
582
|
|
|
709
|
-
//# sourceMappingURL=cartesian-
|
|
583
|
+
//# sourceMappingURL=cartesian-BrPqb5Qn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartesian-BrPqb5Qn.js","names":[],"sources":["../src/components/grid.ts","../src/scales/band.ts","../src/scales/linear.ts","../src/charts/cartesian.ts"],"sourcesContent":["import type { Rect } from '../layout.ts'\nimport { round } from '../layout.ts'\nimport { h, type VNode } from '../vnode.ts'\nimport type { Tick } from './axis.ts'\n\nexport interface GridOptions {\n /** `'y'` draws horizontal lines at y ticks, `'x'` vertical lines at x ticks. */\n direction: 'x' | 'y'\n ticks: readonly Tick[]\n area: Rect\n}\n\n/**\n * Render grid lines as `<g class=\"tc-grid tc-grid-{x|y}\">`. The line at\n * value `0` also gets `tc-grid-line-zero`, so the baseline can be emphasized.\n */\nexport function grid(options: GridOptions): VNode {\n const { direction, ticks, area } = options\n return h(\n 'g',\n { key: `grid-${direction}`, class: ['tc-grid', `tc-grid-${direction}`], 'aria-hidden': 'true' },\n ticks.map((tick) => {\n const p = round(tick.position)\n return h('line', {\n key: tick.value,\n class: ['tc-grid-line', tick.value === 0 && 'tc-grid-line-zero'],\n // Positioned with a transitionable transform, so lines glide when the scale changes.\n ...(direction === 'y'\n ? {\n x1: area.x,\n x2: area.x + area.width,\n y1: 0,\n y2: 0,\n style: `transform:translateY(${p}px)`,\n }\n : {\n x1: 0,\n x2: 0,\n y1: area.y,\n y2: area.y + area.height,\n style: `transform:translateX(${p}px)`,\n }),\n })\n }),\n )\n}\n","/** Category identifier used by band and point scales. */\nexport type BandKey = string | number\n\nexport interface BandScaleOptions {\n /** Share of each step left empty between bands, `0…1`. Defaults to `0`. */\n paddingInner?: number\n /** Space before the first and after the last band, in steps. Defaults to `0`. */\n paddingOuter?: number\n /** Where leftover space goes: `0` start, `0.5` center, `1` end. Defaults to `0.5`. */\n align?: number\n}\n\n/** Discrete scale splitting a range into equal bands, one per category. */\nexport interface BandScale {\n /** Start of the band for `key`, or `undefined` for unknown keys. */\n (key: BandKey): number | undefined\n readonly domain: readonly BandKey[]\n readonly range: readonly [number, number]\n /** Width of a single band. */\n readonly bandwidth: number\n /** Distance between the starts of adjacent bands. */\n readonly step: number\n /** Start of the band at `index`. */\n at(index: number): number\n /** Center of the band for `key`. */\n center(key: BandKey): number | undefined\n /** Index of the band nearest to `pixel` (for hit testing), or `-1` when empty. */\n indexAt(pixel: number): number\n}\n\n/**\n * Create a band scale, e.g. for bar charts.\n *\n * ```ts\n * const x = band(['Jan', 'Feb', 'Mar'], [0, 300], { paddingInner: 0.2 })\n * x('Feb') // start of the \"Feb\" band\n * x.bandwidth // bar width\n * ```\n */\nexport function band(\n domain: readonly BandKey[],\n range: readonly [number, number],\n options: BandScaleOptions = {},\n): BandScale {\n const { paddingInner = 0, paddingOuter = 0, align = 0.5 } = options\n const inner = Math.min(1, Math.max(0, paddingInner))\n const n = domain.length\n const [r0, r1] = range\n const reverse = r1 < r0\n const lo = reverse ? r1 : r0\n const hi = reverse ? r0 : r1\n\n const step = (hi - lo) / Math.max(1, n - inner + paddingOuter * 2)\n const start = lo + (hi - lo - step * (n - inner)) * align\n const bandwidth = step * (1 - inner)\n\n const index = new Map<BandKey, number>()\n for (let i = 0; i < n; i++) {\n const key = domain[i] as BandKey\n if (!index.has(key)) index.set(key, i)\n }\n\n const at = (i: number): number => start + step * (reverse ? n - 1 - i : i)\n\n const scale = (key: BandKey): number | undefined => {\n const i = index.get(key)\n return i === undefined ? undefined : at(i)\n }\n\n return Object.assign(scale, {\n domain: domain.slice(),\n range: [r0, r1] as const,\n bandwidth,\n step,\n at,\n center(key: BandKey): number | undefined {\n const px = scale(key)\n return px === undefined ? undefined : px + bandwidth / 2\n },\n indexAt(pixel: number): number {\n if (n === 0) return -1\n const raw = step === 0 ? 0 : Math.round((pixel - start - bandwidth / 2) / step)\n const i = Math.min(n - 1, Math.max(0, raw))\n return reverse ? n - 1 - i : i\n },\n })\n}\n\n/**\n * Create a point scale: a band scale with zero-width bands, placing each\n * category on a single point (e.g. line charts over labels).\n * `padding` is the space before the first and after the last point, in steps.\n */\nexport function point(\n domain: readonly BandKey[],\n range: readonly [number, number],\n options: { padding?: number; align?: number } = {},\n): BandScale {\n const { padding = 0, align } = options\n return band(domain, range, {\n paddingInner: 1,\n paddingOuter: padding,\n ...(align === undefined ? {} : { align }),\n })\n}\n","import { niceDomain, ticks } from './ticks.ts'\n\nexport interface LinearScaleOptions {\n /** Clamp output to the range (and `invert()` output to the domain). */\n clamp?: boolean\n}\n\n/** Continuous scale mapping a numeric domain to a pixel range. */\nexport interface LinearScale {\n (value: number): number\n readonly domain: readonly [number, number]\n readonly range: readonly [number, number]\n /** Map a pixel back to a domain value. */\n invert(pixel: number): number\n /** Nice tick values inside the domain. */\n ticks(count?: number): number[]\n /** A copy of the scale with its domain extended to round values. */\n nice(count?: number): LinearScale\n}\n\n/**\n * Create a linear scale.\n *\n * ```ts\n * const y = linear([0, 120], [300, 0]).nice()\n * y(60) // 150\n * ```\n *\n * A zero-width domain (e.g. a single data point) maps to the middle of the range.\n */\nexport function linear(\n domain: readonly [number, number],\n range: readonly [number, number],\n options: LinearScaleOptions = {},\n): LinearScale {\n const [d0, d1] = domain\n const [r0, r1] = range\n const span = d1 - d0\n const k = span === 0 ? 0 : (r1 - r0) / span\n const mid = (r0 + r1) / 2\n const { clamp = false } = options\n const rMin = Math.min(r0, r1)\n const rMax = Math.max(r0, r1)\n const dMin = Math.min(d0, d1)\n const dMax = Math.max(d0, d1)\n\n const scale = (value: number): number => {\n if (span === 0) return mid\n const px = r0 + (value - d0) * k\n return clamp ? Math.min(rMax, Math.max(rMin, px)) : px\n }\n\n return Object.assign(scale, {\n domain: [d0, d1] as const,\n range: [r0, r1] as const,\n invert(pixel: number): number {\n if (span === 0 || r1 === r0) return d0\n const value = d0 + (pixel - r0) / k\n return clamp ? Math.min(dMax, Math.max(dMin, value)) : value\n },\n ticks(count?: number): number[] {\n return ticks(d0, d1, count)\n },\n nice(count?: number): LinearScale {\n return linear(niceDomain(d0, d1, count), range, options)\n },\n })\n}\n","import type { DataTable, LegendItem, RenderContext, TableContext } from '../chart.ts'\nimport {\n axis,\n axisSize,\n axisTitle,\n axisTitleSize,\n bandTicks,\n linearTicks,\n type Tick,\n thinTicks,\n} from '../components/axis.ts'\nimport { grid } from '../components/grid.ts'\nimport { type Features, feature, features } from '../features.ts'\nimport { formatDetail, type NumberFormat } from '../format.ts'\nimport type { Hit, HitItem, Interaction } from '../interaction.ts'\nimport {\n estimateTextWidth,\n type InsetsInput,\n LINE_HEIGHT,\n type PlotFrame,\n plotFrame,\n type Rect,\n} from '../layout.ts'\nimport { type BandKey, type BandScale, band, point } from '../scales/band.ts'\nimport { extent } from '../scales/extent.ts'\nimport { type LinearScale, linear } from '../scales/linear.ts'\nimport { niceDomain } from '../scales/ticks.ts'\nimport { type ClassValue, h, type Props, type VNode } from '../vnode.ts'\nimport type { Annotation } from './annotations.ts'\nimport { finite } from './clean.ts'\nimport { groupAttrs, keyOf, legendItems } from './named.ts'\n\n/** Category label on the x axis. */\nexport type Label = string | number | Date\n\n/** A label as a `key` for keyed rendering (dates by their timestamp). */\nexport const labelKey = (label: Label): string | number =>\n label instanceof Date ? label.getTime() : label\n\n/** One data series. `null` values are gaps. */\nexport interface Series {\n /** Display name (legend, tooltip, accessibility). */\n name: string\n /** One value per label; `null`/`undefined` leaves a gap. */\n values: readonly (number | null | undefined)[]\n /** Stable identity for keyed updates. Defaults to `name`. */\n id?: string\n /**\n * Custom color; overrides the palette slot via `--tc-series-color`.\n * Values that could inject CSS (`;`, quotes, `url()` …) are ignored, so colors from user data are safe.\n */\n color?: string\n /**\n * Dashed line: dash and gap length in pixels, or a full `stroke-dasharray`\n * such as `'6 3'`. Sets `--tc-series-dash` on the series group; values\n * that could inject CSS are ignored, as for `color`.\n */\n dash?: number | string\n /** Line width in pixels; overrides `--tc-stroke-width` via `--tc-series-width`. */\n width?: number\n /**\n * In a `bar` chart, draw this series as a line or a filled area over the\n * bars instead (it is left out of stacks). Needs the line module\n * (`@tabler/charts/line`, or `@tabler/charts`). Defaults to `'bar'`.\n */\n type?: 'bar' | 'line' | 'area'\n /**\n * Value axis of the series: `'y2'` draws it against the second axis\n * (options in `y2`), on the right of the plot (on the left in a\n * right-to-left chart), and leaves it out of stacks. Line, area and\n * vertical bar charts. Defaults to `'y'`.\n */\n axis?: 'y' | 'y2'\n /** Extra classes on the series group. */\n class?: ClassValue\n /** Start hidden (toggle it back from the legend). */\n hidden?: boolean\n /**\n * Write values on this series' marks, whatever the chart's `valueLabels`\n * says: `true` labels it even when the chart option is off, `false` leaves\n * it out. Needs `@tabler/charts/value-labels` on the core.\n */\n valueLabels?: boolean\n}\n\nexport interface CartesianData {\n /** Categories along x. Defaults to `1…n` for the longest series. */\n labels?: readonly Label[]\n series: readonly Series[]\n}\n\n/** Options for the value (y) axis. */\nexport interface ValueAxisOptions {\n /** Render the axis labels. Defaults to `true`. */\n show?: boolean\n /**\n * Title of the axis (e.g. a unit), beside its labels: turned 90° on the\n * left of the plot, or on the right in a right-to-left chart.\n */\n title?: string\n /** Render horizontal grid lines. Defaults to `true`. */\n grid?: boolean\n /** Fixed lower bound; overrides data and `zero`. */\n min?: number\n /** Fixed upper bound. */\n max?: number\n /** Include zero in the domain. */\n zero?: boolean\n /** Extend the domain to round tick values. Defaults to `true`. */\n nice?: boolean\n /** Approximate tick count. Defaults to one per ~60px of height. */\n ticks?: number\n format?: NumberFormat\n /** `'log'` for a logarithmic axis (positive values only). Defaults to `'linear'`. */\n scale?: 'linear' | 'log'\n}\n\n/** Options for the category (x) axis. */\nexport interface CategoryAxisOptions {\n /** Render the axis labels. Defaults to `true`. */\n show?: boolean\n /** Title of the axis, below its labels. */\n title?: string\n /** Render vertical grid lines. Defaults to `false`. */\n grid?: boolean\n /** Draw the axis line along the bottom edge. Defaults to `false`. */\n line?: boolean\n /** Format a label for display (axis ticks for categories, tooltips and the table). */\n format?: (label: Label, index: number) => string\n /**\n * `'time'` treats labels as dates or timestamps: line and area charts place\n * points at their real distance in time, with calendar-aware ticks.\n * Labels must be in ascending order. Needs `@tabler/charts/time` (included\n * in `@tabler/charts`; candlesticks label dates without it). Defaults to `'category'`.\n */\n type?: 'category' | 'time'\n /** Align time ticks to UTC instead of local time (use it for SSR). */\n utc?: boolean\n /** Run the categories from the right. Defaults to the chart's `rtl`. */\n reverse?: boolean\n}\n\nexport interface CartesianOptions {\n data: CartesianData\n y?: ValueAxisOptions\n /**\n * The second value axis, for series with `axis: 'y2'` (it is drawn only\n * when a series uses it). Its labels and title stand on the other side of\n * the plot; the grid lines follow `y`.\n */\n y2?: ValueAxisOptions\n x?: CategoryAxisOptions\n /** Reference lines and bands: targets, normal ranges, events and periods. */\n annotations?: readonly Annotation[]\n /** Extra space around the plot area, in pixels. */\n padding?: InsetsInput\n}\n\nexport interface CartesianLayoutOptions {\n /** `point` places categories on points (lines), `band` on bands (bars). */\n scale: 'point' | 'band'\n /** Values spanning the y domain, when they differ from the raw data (stacks). */\n values?: readonly (number | null | undefined)[]\n /** Format of the value axis ticks, when it differs from `y.format` (percent stacks). */\n tickFormat?: NumberFormat\n /** Default for `y.zero`. */\n zero: boolean\n /** Default for `y2.zero`. Defaults to `zero`. */\n zero2?: boolean\n /** Space marks need beyond the plot edge (point radius, stroke). */\n overhang?: number\n /** Band padding for `scale: 'band'`. */\n paddingInner?: number\n paddingOuter?: number\n}\n\nexport interface CartesianLayout {\n area: Rect\n labels: readonly Label[]\n /** Category scale (along x, or along y when `horizontal`). */\n x: BandScale\n /** Value scale (along y, or along x when `horizontal`). */\n y: LinearScale\n /** Scale of the second value axis, when a series uses it. */\n y2?: LinearScale\n /** Whether categories run along y. */\n horizontal: boolean\n xTicks: Tick[]\n yTicks: Tick[]\n /** Ticks of the second value axis (with `y2`). */\n y2Ticks?: Tick[]\n /** Grid lines, drawn below the marks. */\n background: VNode[]\n /** Axes, drawn above the marks. */\n foreground: VNode[]\n /** Clip path definition and its url, for the marks group. */\n clip: { def: VNode; url: string }\n}\n\nexport const TICK_SPACING = 60\n/** Horizontal value axes need more room per label. */\nexport const TICK_SPACING_X = 80\n/** Minimal margin around the plot, in pixels. */\nexport const EDGE = 8\n\n/** Stable key of a series: its `id`, or its name. */\nexport const seriesKey: (series: Series) => string = keyOf\n\n/**\n * Whether the chart draws a second value axis: a series asks for it with\n * `axis: 'y2'`, and the values run along y (not in horizontal bars).\n */\nexport const hasY2 = (options: CartesianOptions): boolean =>\n (options as { orientation?: unknown }).orientation !== 'horizontal' &&\n options.data.series.some((s) => s.axis === 'y2')\n\n/**\n * The value axis a series is read on: a function giving each series'\n * axis options, and whether it is the second one.\n */\nexport function seriesAxes(\n options: CartesianOptions,\n): (series: Series | undefined) => { second: boolean; axis: ValueAxisOptions } {\n const second = hasY2(options)\n const y = { second: false, axis: options.y ?? {} }\n const y2 = { second: true, axis: options.y2 ?? {} }\n return (series) => (second && series?.axis === 'y2' ? y2 : y)\n}\n\n/** The scale of a series: the second one for series on `y2`. */\nexport const seriesScale = (\n layout: Pick<CartesianLayout, 'y' | 'y2'>,\n series: Series | undefined,\n): LinearScale => (layout.y2 && series?.axis === 'y2' ? layout.y2 : layout.y)\n\n/** Legend entries for series-based charts. */\nexport const seriesLegend = (data: CartesianData): LegendItem[] => legendItems(data.series)\n\n/** Categories from `data.labels`, or `1…n` for the longest series. */\nexport function resolveLabels(data: CartesianData): Label[] {\n if (data.labels) return data.labels.slice()\n const n = Math.max(0, ...data.series.map((s) => s.values.length))\n return Array.from({ length: n }, (_, i) => i + 1)\n}\n\n/**\n * Whether a value can be plotted on the axis: finite, and positive on a log\n * scale (zero and negatives become gaps there).\n */\nexport function plottable(\n value: number | null | undefined,\n axis: ValueAxisOptions | undefined,\n): value is number {\n if (value == null || !Number.isFinite(value)) return false\n return axis?.scale !== 'log' || value > 0\n}\n\n/**\n * Whether the category axis carries time: `x.type === 'time'` and every label\n * is a date, a timestamp or a parseable string. Otherwise the axis falls back\n * to categories instead of producing NaN positions.\n */\nexport const isTimeAxis = (options: CartesianOptions): boolean =>\n options.x?.type === 'time' && resolveLabels(options.data).every((l) => Number.isFinite(toMs(l)))\n\n/** Formatter for category labels in tooltips and tables. */\nexport function labelFormatter(\n options: CartesianOptions,\n ctx: TableContext,\n): (label: Label, index: number) => string {\n if (options.x?.format) return options.x.format\n if (!isTimeAxis(options)) return (label) => String(label)\n return feature('dates')(resolveLabels(options.data), options.x?.utc, ctx.locale)\n}\n\n/** A label as a timestamp: dates, numbers, or parseable strings (ISO); `NaN` otherwise. */\n// Through Date, so timestamps out of its range are NaN too.\nexport const toMs = (label: Label): number => new Date(label).getTime()\n\n/** Value scale for a domain: linear, or logarithmic with positive-only ticks. */\nexport function valueScale(\n domain: [number, number],\n range: [number, number],\n options: ValueAxisOptions,\n): LinearScale {\n return options.scale === 'log' ? feature('log').scale(domain, range) : linear(domain, range)\n}\n\n/** Ticks of a value scale with labels; log scales format each power as is. */\nexport function valueTicks(\n scale: LinearScale,\n options: ValueAxisOptions,\n count: number,\n format: NumberFormat | undefined,\n locale: RenderContext['locale'],\n): Tick[] {\n return options.scale === 'log'\n ? feature('log').ticks(scale, count, format, locale)\n : linearTicks(scale, { count, format, locale })\n}\n\n/** The point shapes of a chart (`shapes`, or with `patterns: true`), if it has them. */\nexport const markerShape = (options: object): NonNullable<Features['point-shapes']> | undefined => {\n const { shapes, patterns } = options as { shapes?: boolean; patterns?: unknown }\n // On the core, the shapes come with their module (like the points of line charts).\n return (shapes ?? patterns === true) ? features['point-shapes'] : undefined\n}\n\n/**\n * A point of the series in color slot `slot`: a circle, or the slot's marker\n * when the chart has point shapes (see `markerShape`).\n */\nexport function pointMark(\n shape: ReturnType<typeof markerShape>,\n slot: number,\n key: string | number,\n cls: ClassValue,\n cx: number,\n cy: number,\n r: number,\n): VNode {\n return shape\n ? h('path', { key, class: [cls, 'tc-marker'], d: shape(slot, cx, cy, r) })\n : h('circle', { key, class: cls, cx, cy, r })\n}\n\n/** The tick count asked for on an axis (a number up to 100), or `auto`. */\nexport const tickCount = (axis: { ticks?: number } | undefined, auto: number): number =>\n Math.min(finite(axis?.ticks) ?? auto, 100)\n\n/** Y domain from the data and axis options. */\nexport function valueDomain(\n data: CartesianData,\n options: ValueAxisOptions,\n zeroDefault: boolean,\n count: number,\n hidden: ReadonlySet<string> = new Set(),\n override?: readonly (number | null | undefined)[],\n extra: readonly number[] = [],\n): [number, number] {\n // (extra: values to include besides the data, e.g. annotation targets)\n const values =\n override ?? data.series.filter((s) => !hidden.has(seriesKey(s))).flatMap((s) => s.values)\n return domainOf(extra.length ? [...values, ...extra] : values, options, zeroDefault, count)\n}\n\n/** A niced numeric domain for `values`, honouring zero, min, max and nice. */\nexport function domainOf(\n values: readonly (number | null | undefined)[],\n options: ValueAxisOptions,\n zeroDefault: boolean,\n count: number,\n): [number, number] {\n if (options.scale === 'log') return feature('log').domain(values, options)\n // Bounds may come from outside: only numbers count.\n const min = finite(options.min)\n const max = finite(options.max)\n let [lo, hi] = extent(values) ?? [0, 1]\n if (options.zero ?? zeroDefault) {\n lo = Math.min(lo, 0)\n hi = Math.max(hi, 0)\n }\n if (lo === hi) {\n // A flat series still needs a visible range.\n if (lo === 0) {\n hi = 1\n } else {\n const pad = Math.abs(lo) * 0.1\n lo -= pad\n hi += pad\n }\n }\n if (min !== null) lo = min\n if (max !== null) hi = max\n if (options.nice !== false) {\n const [nlo, nhi] = niceDomain(lo, hi, count)\n if (min === null) lo = nlo\n if (max === null) hi = nhi\n }\n return [lo, hi]\n}\n\n/** The annotations feature, when the chart has annotations (it then must be registered). */\nexport function notesFeature(\n options: CartesianOptions,\n): NonNullable<Features['annotations']> | undefined {\n return options.annotations?.length ? feature('annotations') : undefined\n}\n\n/**\n * The category axis of a cartesian layout: the labels at its edges (for the\n * margins), its scale over a pixel range, and its ticks on that scale.\n */\nexport interface CategoryAxis {\n edges: readonly string[]\n scale(range: [number, number]): BandScale\n ticks(scale: BandScale): Tick[]\n /** Pixel position of a date, on time axes (after `scale()`). */\n readonly time?: ((date: Date) => number) | undefined\n}\n\n/**\n * The value axis of a cartesian layout, before the plot area is known: its\n * scale over a pixel range, the ticks of that scale, and `probe`, ticks to\n * measure the labels with (their positions mean nothing). `auto` is the\n * tick count the plot has room for, unless the axis asks for its own.\n */\nexport function valueAxis(\n options: CartesianOptions,\n ctx: RenderContext,\n layout: CartesianLayoutOptions,\n auto: number,\n /** Only the series of this axis (`y` or `y2`); every series when not set. */\n which?: 'y' | 'y2',\n): {\n scale(range: [number, number]): LinearScale\n ticks(scale: LinearScale): Tick[]\n probe: Tick[]\n} {\n const second = which === 'y2'\n const axis = (second ? options.y2 : options.y) ?? {}\n const count = tickCount(axis, Math.max(2, auto))\n let domain: [number, number]\n if (second) {\n const own = options.data.series.filter((s) => s.axis === 'y2')\n const shown = own.filter((s) => !ctx.hidden.has(seriesKey(s)))\n // With all its series hidden, the axis keeps its scale instead of jumping to 0…1.\n const values = (shown.length ? shown : own).flatMap((s) => s.values)\n domain = domainOf(values, axis, layout.zero2 ?? layout.zero, count)\n } else {\n const data =\n which === 'y'\n ? { ...options.data, series: options.data.series.filter((s) => s.axis !== 'y2') }\n : options.data\n domain = valueDomain(\n data,\n axis,\n layout.zero,\n count,\n ctx.hidden,\n layout.values,\n notesFeature(options)?.values(options.annotations),\n )\n }\n const format = second ? axis.format : (layout.tickFormat ?? axis.format)\n const scale = (range: [number, number]) => valueScale(domain, range, axis)\n const ticks = (of: LinearScale) => valueTicks(of, axis, count, format, ctx.locale)\n return { scale, ticks, probe: ticks(scale([0, 1])) }\n}\n\n/**\n * Finish a layout that has its plot area, scales and ticks with what is\n * drawn around the marks: grid lines and annotation bands below them,\n * annotation lines and the axes above. Values run along y and categories\n * along x, or the other way round when `horizontal`. The value axis (the\n * category axis when `horizontal`) sits on the start `side`.\n */\nexport function finishLayout(\n options: CartesianOptions,\n ctx: RenderContext,\n side: PlotFrame['side'],\n overhang: number,\n plot: Omit<CartesianLayout, 'background' | 'foreground' | 'clip'>,\n keys: readonly BandKey[],\n time?: (date: Date) => number,\n): CartesianLayout {\n const { area, x, y, xTicks, yTicks, y2Ticks, horizontal: flip } = plot\n const xOptions = options.x ?? {}\n // The second value axis stands on the other side.\n const opposite = side === 'left' ? 'right' : 'left'\n // Annotations: bands under the series, lines above them (and below the axes).\n const notes = notesFeature(options)?.layers(options.annotations, {\n area,\n horizontal: flip,\n fontSize: ctx.fontSize,\n value: y,\n band: x,\n keys,\n time,\n })\n const values = options.y?.show !== false && [\n axis({ position: flip ? 'bottom' : side, ticks: yTicks, area }),\n ]\n const categories = ((xOptions.show !== false && plot.labels.length > 0) || xOptions.line) && [\n axis({ position: flip ? side : 'bottom', ticks: xTicks, area, line: xOptions.line === true }),\n ]\n // Titles stand past the labels of their axis, or at the plot's edge when it is hidden.\n const seconds = !!y2Ticks &&\n options.y2?.show !== false && [axis({ position: opposite, ticks: y2Ticks, area })]\n const title = (\n text: string | undefined,\n position: 'left' | 'right' | 'bottom',\n ticks: readonly Tick[] | false,\n ) => !!text && axisTitle(position, ticks || [], area, text, ctx.fontSize)\n const titles = [\n title(options.y?.title, flip ? 'bottom' : side, !!values && yTicks),\n title(xOptions.title, flip ? side : 'bottom', xTicks),\n !!y2Ticks && title(options.y2?.title, opposite, !!seconds && y2Ticks),\n ]\n const present = (parts: (VNode | VNode[] | null | false | undefined)[]): VNode[] =>\n parts.flatMap((part) => part || [])\n return {\n ...plot,\n background: present([\n options.y?.grid !== false && grid({ direction: flip ? 'x' : 'y', ticks: yTicks, area }),\n xOptions.grid && grid({ direction: flip ? 'y' : 'x', ticks: xTicks, area }),\n notes?.under,\n ]),\n // The axis on the left first, then the one at the bottom.\n foreground: present([\n notes?.over,\n flip ? categories : values,\n flip ? values : categories,\n seconds,\n ...titles,\n ]),\n clip: plotClip(ctx, area, overhang),\n }\n}\n\n/** Compute scales, ticks, grid and axes shared by line, area and bar charts. */\nexport function cartesianLayout(\n options: CartesianOptions,\n ctx: RenderContext,\n layout: CartesianLayoutOptions,\n): CartesianLayout {\n const { data } = options\n const yOptions = options.y ?? {}\n const xOptions = options.x ?? {}\n const { fontSize, locale, width, height } = ctx\n const overhang = layout.overhang ?? 0\n const rtl = ctx.rtl === true\n const reverse = xOptions.reverse ?? rtl\n const labels = resolveLabels(data)\n const format = labelFormatter(options, ctx)\n const showY = yOptions.show !== false\n const showX = xOptions.show !== false && labels.length > 0\n const timed = isTimeAxis(options) && layout.scale === 'point'\n\n const auto = Math.round(height / TICK_SPACING)\n const second = hasY2(options)\n const value = valueAxis(options, ctx, layout, auto, second ? 'y' : undefined)\n const probeY = value.probe\n const y2Options = options.y2 ?? {}\n const value2 = second ? valueAxis(options, ctx, layout, auto, 'y2') : null\n const showY2 = !!value2 && y2Options.show !== false\n const countX = Math.max(2, Math.round(width / TICK_SPACING_X))\n const keys = labels.map(labelKey)\n const labelAt = (i: number) => format(labels[i] as Label, i)\n // Time axes (from the time module) place points by date, with calendar ticks.\n const xAxis: CategoryAxis = timed\n ? feature('time').axis(labels, keys, xOptions, countX, locale)\n : {\n // No labels, no edges: a custom format is not asked about a label that is not there.\n edges: labels.length ? [labelAt(0), labelAt(labels.length - 1)] : [],\n scale: (range) =>\n layout.scale === 'point'\n ? point(keys, range)\n : band(keys, range, {\n paddingInner: layout.paddingInner ?? 0.3,\n paddingOuter: layout.paddingOuter ?? 0.15,\n }),\n ticks: (scale) => bandTicks(scale, (_: BandKey, i) => labelAt(i)),\n }\n const edgeLabels = xAxis.edges\n\n // Margins: labels outside the plot, half a line above the top tick,\n // half of the first/last x label for point scales.\n const halfLine = Math.ceil((fontSize * LINE_HEIGHT) / 2)\n // The label at the value axis' end of the plot, and the one at the other end.\n const edgeWidth = (last: boolean) =>\n showX ? estimateTextWidth(edgeLabels[last ? edgeLabels.length - 1 : 0] ?? '', fontSize) : 0\n const firstLabel = edgeWidth(reverse !== rtl)\n const lastLabel = edgeWidth(reverse === rtl)\n const edgeX = layout.scale === 'point'\n // On bands a label is centered half a step from the edge: only what is wider\n // than that needs margin (long labels on narrow bands, e.g. dates on candles).\n // The step depends on the margins, so they are worked out twice.\n const valueWidth =\n (showY ? axisSize('left', probeY, fontSize) : 0) + axisTitleSize(yOptions.title, fontSize)\n // The second axis takes the end side (measured as the right, then mirrored).\n const value2Width = value2\n ? (showY2 ? axisSize('right', value2.probe, fontSize) : 0) +\n axisTitleSize(y2Options.title, fontSize)\n : 0\n const { area, side, range } = plotFrame(ctx, options.padding, (pad) => {\n const sides = (halfStep: number) => {\n const overflow = (label: number) =>\n edgeX ? Math.ceil(label / 2) : Math.max(0, Math.ceil(label / 2 - halfStep))\n return {\n start: pad.start + Math.max(valueWidth, overflow(firstLabel), overhang, showY ? 0 : EDGE),\n end: pad.end + Math.max(value2Width, overflow(lastLabel), overhang, EDGE),\n }\n }\n const steps = Math.max(1, labels.length) * 2\n let both = sides((width - pad.start - pad.end - valueWidth - value2Width) / steps)\n if (!edgeX) both = sides((width - both.start - both.end) / steps)\n return {\n top: pad.top + Math.max(showY || showY2 ? halfLine : 0, overhang, EDGE / 2),\n bottom:\n pad.bottom +\n Math.max(\n // Without an x axis, the lowest value label still needs half a line.\n (showX ? axisSize('bottom', [probeY[0] as Tick], fontSize) : showY ? halfLine : 0) +\n axisTitleSize(xOptions.title, fontSize),\n overhang,\n EDGE / 2,\n ),\n ...both,\n }\n })\n\n const x = xAxis.scale(range(reverse))\n const y = value.scale([area.y + area.height, area.y])\n const y2 = value2?.scale([area.y + area.height, area.y])\n\n // Nice ticks can outnumber the count asked for: on a short plot, thin them\n // like category labels so none overlap (the grid follows the ticks kept).\n const yTicks = thinTicks(value.ticks(y), 'left', fontSize, 4)\n const xTicks = showX ? thinTicks(xAxis.ticks(x), 'bottom', fontSize) : []\n const plot: Omit<CartesianLayout, 'background' | 'foreground' | 'clip'> = {\n area,\n labels,\n x,\n y,\n horizontal: false,\n xTicks,\n yTicks,\n }\n if (value2 && y2) {\n plot.y2 = y2\n plot.y2Ticks = thinTicks(value2.ticks(y2), 'right', fontSize, 4)\n }\n\n return finishLayout(options, ctx, side, overhang, plot, keys, xAxis.time)\n}\n\n/** Clip path around the plot area, a little larger so strokes and dots are not cut. */\nexport function plotClip(\n ctx: RenderContext,\n area: Rect,\n overhang: number,\n): CartesianLayout['clip'] {\n const clipId = `${ctx.id}-clip`\n const bleed = overhang + 1\n return {\n def: h(\n 'clipPath',\n { id: clipId },\n h('rect', {\n x: area.x - bleed,\n y: area.y - bleed,\n width: area.width + bleed * 2,\n height: area.height + bleed * 2,\n }),\n ),\n url: `url(#${clipId})`,\n }\n}\n\n/** Attributes shared by every series group. */\nexport function seriesAttrs(series: Series, index: number): Props {\n const { dash, width } = series\n return {\n ...groupAttrs(series, index),\n // A map, so values from data cannot inject CSS (see normalizeStyle).\n style: {\n '--tc-series-color': series.color,\n '--tc-series-dash': Number.isFinite(dash) ? `${dash}px` : dash,\n '--tc-series-width': Number.isFinite(width) ? `${width}px` : undefined,\n },\n }\n}\n\n/** Pixels around the plot area that still count as hovering it. */\nconst HOVER_SLOP = 8\n\n/**\n * Interaction by category: the nearest category to the pointer while it is\n * over the plot area, with every visible series' value there. `anchor`\n * places each value (line point, bar end, and the bar's box); `markAt` names the series of the\n * mark directly under the pointer, if the chart has distinct marks (bars).\n * Labels and values are formatted with `x.format` / `y.format` and the locale.\n */\nexport function categoryInteraction(\n layout: CartesianLayout,\n options: CartesianOptions,\n ctx: RenderContext,\n anchor: (\n seriesIndex: number,\n index: number,\n value: number,\n ) => { x: number; y: number; box?: Rect },\n markAt?: (x: number, y: number, index: number) => number | undefined,\n): Interaction {\n const { area, x, labels, horizontal } = layout\n const { data } = options\n const formatLabel = labelFormatter(options, ctx)\n const axisOf = seriesAxes(options)\n // Each series reads its values like its axis: bounds (log) and format.\n const axes = data.series.map((s) => axisOf(s).axis)\n const formats = axes.map((axis) => formatDetail(axis.format, ctx.locale))\n\n const hitAt = (index: number): Hit => {\n const start = x.at(index)\n const center = start + x.bandwidth / 2\n const label = labels[index] as Label\n // Where a missing value is anchored: the category center on its axis.\n const empty = horizontal ? { x: area.x, y: center } : { x: center, y: null }\n const items: HitItem[] = []\n data.series.forEach((series, seriesIndex) => {\n if (ctx.hidden.has(seriesKey(series))) return\n const raw = series.values[index]\n const value = plottable(raw, axes[seriesIndex]) ? raw : null\n const point = value === null ? empty : anchor(seriesIndex, index, value)\n const item: HitItem = {\n name: series.name,\n seriesIndex,\n value,\n text: value === null ? '–' : (formats[seriesIndex] as (v: number) => string)(value),\n ...point,\n }\n if (series.color) item.color = series.color\n items.push(item)\n })\n // Horizontal bars run the categories along y: the hit sits at the plot center on x.\n const hit: Hit = {\n index,\n label: labelKey(label),\n title: formatLabel(label, index),\n x: horizontal ? area.x + area.width / 2 : center,\n area,\n items,\n }\n if (horizontal) {\n hit.y = center\n hit.axis = 'y'\n }\n if (x.bandwidth > 0) {\n hit.highlight = horizontal\n ? { kind: 'band', x: area.x, y: start, width: area.width, height: x.bandwidth }\n : { kind: 'band', x: start, y: area.y, width: x.bandwidth, height: area.height }\n }\n return hit\n }\n\n return {\n count: labels.length,\n reversed: x.range[1] < x.range[0],\n hitTest(px, py) {\n if (labels.length === 0) return null\n if (\n px < area.x - HOVER_SLOP ||\n px > area.x + area.width + HOVER_SLOP ||\n py < area.y - HOVER_SLOP ||\n py > area.y + area.height + HOVER_SLOP\n ) {\n return null\n }\n const index = x.indexAt(horizontal ? py : px)\n const hit = hitAt(index)\n const mark = markAt?.(px, py, index)\n if (mark !== undefined) hit.seriesIndex = mark\n return hit\n },\n hitIndex(index, seriesIndex) {\n if (index < 0 || index >= labels.length) return null\n const hit = hitAt(index)\n if (seriesIndex !== undefined && hit.items.some((item) => item.seriesIndex === seriesIndex)) {\n hit.seriesIndex = seriesIndex\n }\n return hit\n },\n }\n}\n\n/** Accessible table of series values: one row per category, one column per visible series. */\nexport function seriesTable(\n options: CartesianOptions,\n ctx: TableContext,\n limit: number = Number.POSITIVE_INFINITY,\n): DataTable {\n const all = resolveLabels(options.data)\n const labels = all.length > limit ? all.slice(0, limit) : all\n const formatLabel = labelFormatter(options, ctx)\n const axisOf = seriesAxes(options)\n const series = options.data.series.filter((s) => !ctx.hidden.has(seriesKey(s)))\n const formats = series.map((s) => formatDetail(axisOf(s).axis.format, ctx.locale))\n return {\n columns: ['', ...series.map((s) => s.name)],\n total: all.length,\n rows: labels.map((label, i) => [\n formatLabel(label, i),\n ...series.map((s, n) => {\n const v = s.values[i]\n return v == null || !Number.isFinite(v) ? '–' : (formats[n] as (v: number) => string)(v)\n }),\n ]),\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,SAAgB,KAAK,SAA6B;CAChD,MAAM,EAAE,WAAW,OAAO,SAAS;CACnC,OAAO,EACL,KACA;EAAE,KAAK,QAAQ;EAAa,OAAO,CAAC,WAAW,WAAW,WAAW;EAAG,eAAe;CAAO,GAC9F,MAAM,KAAK,SAAS;EAClB,MAAM,IAAI,MAAM,KAAK,QAAQ;EAC7B,OAAO,EAAE,QAAQ;GACf,KAAK,KAAK;GACV,OAAO,CAAC,gBAAgB,KAAK,UAAU,KAAK,mBAAmB;GAE/D,GAAI,cAAc,MACd;IACE,IAAI,KAAK;IACT,IAAI,KAAK,IAAI,KAAK;IAClB,IAAI;IACJ,IAAI;IACJ,OAAO,wBAAwB,EAAE;GACnC,IACA;IACE,IAAI;IACJ,IAAI;IACJ,IAA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