@chartts/core 0.1.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/dist/area-type-B3CtuIIP.d.cts +9 -0
- package/dist/area-type-DmB6fTVf.d.ts +9 -0
- package/dist/area.cjs +34 -0
- package/dist/area.cjs.map +1 -0
- package/dist/area.d.cts +8 -0
- package/dist/area.d.ts +8 -0
- package/dist/area.js +13 -0
- package/dist/area.js.map +1 -0
- package/dist/bar-type-Bne_khsO.d.ts +5 -0
- package/dist/bar-type-CkI-kkrC.d.cts +5 -0
- package/dist/bar.cjs +34 -0
- package/dist/bar.cjs.map +1 -0
- package/dist/bar.d.cts +8 -0
- package/dist/bar.d.ts +8 -0
- package/dist/bar.js +13 -0
- package/dist/bar.js.map +1 -0
- package/dist/baseline-type-B1O4XHT3.d.ts +25 -0
- package/dist/baseline-type-BAPrZJ5W.d.cts +25 -0
- package/dist/baseline.cjs +32 -0
- package/dist/baseline.cjs.map +1 -0
- package/dist/baseline.d.cts +8 -0
- package/dist/baseline.d.ts +8 -0
- package/dist/baseline.js +11 -0
- package/dist/baseline.js.map +1 -0
- package/dist/boxplot-type-CEWf7p5X.d.ts +5 -0
- package/dist/boxplot-type-Da8_smoe.d.cts +5 -0
- package/dist/boxplot.cjs +33 -0
- package/dist/boxplot.cjs.map +1 -0
- package/dist/boxplot.d.cts +8 -0
- package/dist/boxplot.d.ts +8 -0
- package/dist/boxplot.js +12 -0
- package/dist/boxplot.js.map +1 -0
- package/dist/bubble-type-Dxb2JCKv.d.cts +9 -0
- package/dist/bubble-type-pru5MgB7.d.ts +9 -0
- package/dist/bubble.cjs +32 -0
- package/dist/bubble.cjs.map +1 -0
- package/dist/bubble.d.cts +8 -0
- package/dist/bubble.d.ts +8 -0
- package/dist/bubble.js +11 -0
- package/dist/bubble.js.map +1 -0
- package/dist/bullet-type-CPEYkEvt.d.ts +15 -0
- package/dist/bullet-type-khCmwFqH.d.cts +15 -0
- package/dist/bullet.cjs +33 -0
- package/dist/bullet.cjs.map +1 -0
- package/dist/bullet.d.cts +8 -0
- package/dist/bullet.d.ts +8 -0
- package/dist/bullet.js +12 -0
- package/dist/bullet.js.map +1 -0
- package/dist/calendar-type-Br5mpdea.d.cts +15 -0
- package/dist/calendar-type-yJWPY6qT.d.ts +15 -0
- package/dist/calendar.cjs +33 -0
- package/dist/calendar.cjs.map +1 -0
- package/dist/calendar.d.cts +8 -0
- package/dist/calendar.d.ts +8 -0
- package/dist/calendar.js +12 -0
- package/dist/calendar.js.map +1 -0
- package/dist/candlestick-type-CazXUb77.d.cts +22 -0
- package/dist/candlestick-type-CtLZy_uC.d.ts +22 -0
- package/dist/candlestick.cjs +33 -0
- package/dist/candlestick.cjs.map +1 -0
- package/dist/candlestick.d.cts +8 -0
- package/dist/candlestick.d.ts +8 -0
- package/dist/candlestick.js +12 -0
- package/dist/candlestick.js.map +1 -0
- package/dist/chord-type-ChIZaOZd.d.cts +5 -0
- package/dist/chord-type-ruvHboZl.d.ts +5 -0
- package/dist/chord.cjs +33 -0
- package/dist/chord.cjs.map +1 -0
- package/dist/chord.d.cts +8 -0
- package/dist/chord.d.ts +8 -0
- package/dist/chord.js +12 -0
- package/dist/chord.js.map +1 -0
- package/dist/chunk-22LR6CFM.js +176 -0
- package/dist/chunk-22LR6CFM.js.map +1 -0
- package/dist/chunk-2TWYS3BT.cjs +199 -0
- package/dist/chunk-2TWYS3BT.cjs.map +1 -0
- package/dist/chunk-3BRQGYDX.js +4859 -0
- package/dist/chunk-3BRQGYDX.js.map +1 -0
- package/dist/chunk-3TTTELGB.cjs +146 -0
- package/dist/chunk-3TTTELGB.cjs.map +1 -0
- package/dist/chunk-3XVGEBR4.js +17 -0
- package/dist/chunk-3XVGEBR4.js.map +1 -0
- package/dist/chunk-4HK4RM3X.cjs +128 -0
- package/dist/chunk-4HK4RM3X.cjs.map +1 -0
- package/dist/chunk-4VG47RLS.js +130 -0
- package/dist/chunk-4VG47RLS.js.map +1 -0
- package/dist/chunk-4YJPBUX2.cjs +68 -0
- package/dist/chunk-4YJPBUX2.cjs.map +1 -0
- package/dist/chunk-5QOQR5FE.cjs +19 -0
- package/dist/chunk-5QOQR5FE.cjs.map +1 -0
- package/dist/chunk-66HSJRRH.js +112 -0
- package/dist/chunk-66HSJRRH.js.map +1 -0
- package/dist/chunk-6KNBJ4CE.js +144 -0
- package/dist/chunk-6KNBJ4CE.js.map +1 -0
- package/dist/chunk-6LKN3HRX.js +79 -0
- package/dist/chunk-6LKN3HRX.js.map +1 -0
- package/dist/chunk-6N66T7VQ.js +103 -0
- package/dist/chunk-6N66T7VQ.js.map +1 -0
- package/dist/chunk-6YKFTEX4.js +336 -0
- package/dist/chunk-6YKFTEX4.js.map +1 -0
- package/dist/chunk-7CGXK7KT.js +124 -0
- package/dist/chunk-7CGXK7KT.js.map +1 -0
- package/dist/chunk-7HDAYWK3.cjs +358 -0
- package/dist/chunk-7HDAYWK3.cjs.map +1 -0
- package/dist/chunk-7SEHTEMR.js +91 -0
- package/dist/chunk-7SEHTEMR.js.map +1 -0
- package/dist/chunk-7YV56WPE.js +157 -0
- package/dist/chunk-7YV56WPE.js.map +1 -0
- package/dist/chunk-B54L2CPW.cjs +165 -0
- package/dist/chunk-B54L2CPW.cjs.map +1 -0
- package/dist/chunk-BC6KW2OG.js +197 -0
- package/dist/chunk-BC6KW2OG.js.map +1 -0
- package/dist/chunk-BEYG2HQ4.cjs +178 -0
- package/dist/chunk-BEYG2HQ4.cjs.map +1 -0
- package/dist/chunk-BR3KTAGW.js +113 -0
- package/dist/chunk-BR3KTAGW.js.map +1 -0
- package/dist/chunk-BRSHEDTZ.js +30 -0
- package/dist/chunk-BRSHEDTZ.js.map +1 -0
- package/dist/chunk-BXX2EPFE.cjs +160 -0
- package/dist/chunk-BXX2EPFE.cjs.map +1 -0
- package/dist/chunk-BYXRFTEI.cjs +114 -0
- package/dist/chunk-BYXRFTEI.cjs.map +1 -0
- package/dist/chunk-CMEXNS5V.js +158 -0
- package/dist/chunk-CMEXNS5V.js.map +1 -0
- package/dist/chunk-D2SV6YT3.js +47 -0
- package/dist/chunk-D2SV6YT3.js.map +1 -0
- package/dist/chunk-DL7P72FA.cjs +273 -0
- package/dist/chunk-DL7P72FA.cjs.map +1 -0
- package/dist/chunk-DNQ6N3VG.js +208 -0
- package/dist/chunk-DNQ6N3VG.js.map +1 -0
- package/dist/chunk-E2S7RAT2.js +126 -0
- package/dist/chunk-E2S7RAT2.js.map +1 -0
- package/dist/chunk-E6PR75X7.js +15 -0
- package/dist/chunk-E6PR75X7.js.map +1 -0
- package/dist/chunk-EGQ4JCFU.cjs +109 -0
- package/dist/chunk-EGQ4JCFU.cjs.map +1 -0
- package/dist/chunk-ETPZGEL7.cjs +105 -0
- package/dist/chunk-ETPZGEL7.cjs.map +1 -0
- package/dist/chunk-FFJ6BVEY.cjs +132 -0
- package/dist/chunk-FFJ6BVEY.cjs.map +1 -0
- package/dist/chunk-FKYNRMPX.js +133 -0
- package/dist/chunk-FKYNRMPX.js.map +1 -0
- package/dist/chunk-FRWC6GUR.cjs +126 -0
- package/dist/chunk-FRWC6GUR.cjs.map +1 -0
- package/dist/chunk-FUZFNUCJ.js +104 -0
- package/dist/chunk-FUZFNUCJ.js.map +1 -0
- package/dist/chunk-GM3ZO5WV.js +13 -0
- package/dist/chunk-GM3ZO5WV.js.map +1 -0
- package/dist/chunk-GNRRK7TZ.cjs +149 -0
- package/dist/chunk-GNRRK7TZ.cjs.map +1 -0
- package/dist/chunk-H2AE7JMU.js +128 -0
- package/dist/chunk-H2AE7JMU.js.map +1 -0
- package/dist/chunk-H4RNJ7FK.cjs +115 -0
- package/dist/chunk-H4RNJ7FK.cjs.map +1 -0
- package/dist/chunk-HB4EGHJ7.cjs +153 -0
- package/dist/chunk-HB4EGHJ7.cjs.map +1 -0
- package/dist/chunk-HDWWUEPD.js +122 -0
- package/dist/chunk-HDWWUEPD.js.map +1 -0
- package/dist/chunk-HOOOCSU4.js +216 -0
- package/dist/chunk-HOOOCSU4.js.map +1 -0
- package/dist/chunk-J6NPRKT4.cjs +49 -0
- package/dist/chunk-J6NPRKT4.cjs.map +1 -0
- package/dist/chunk-JO6U4YR4.js +355 -0
- package/dist/chunk-JO6U4YR4.js.map +1 -0
- package/dist/chunk-KE7ILTM4.cjs +162 -0
- package/dist/chunk-KE7ILTM4.cjs.map +1 -0
- package/dist/chunk-KSRROKYC.cjs +135 -0
- package/dist/chunk-KSRROKYC.cjs.map +1 -0
- package/dist/chunk-KVI6DN3R.js +147 -0
- package/dist/chunk-KVI6DN3R.js.map +1 -0
- package/dist/chunk-L54BZYAI.cjs +111 -0
- package/dist/chunk-L54BZYAI.cjs.map +1 -0
- package/dist/chunk-LB4MV5CG.js +109 -0
- package/dist/chunk-LB4MV5CG.js.map +1 -0
- package/dist/chunk-LEJGLR2P.cjs +106 -0
- package/dist/chunk-LEJGLR2P.cjs.map +1 -0
- package/dist/chunk-LU35QDPN.cjs +30 -0
- package/dist/chunk-LU35QDPN.cjs.map +1 -0
- package/dist/chunk-LUTU4WW3.js +151 -0
- package/dist/chunk-LUTU4WW3.js.map +1 -0
- package/dist/chunk-M4AQD6WX.cjs +220 -0
- package/dist/chunk-M4AQD6WX.cjs.map +1 -0
- package/dist/chunk-M4UST3UU.cjs +159 -0
- package/dist/chunk-M4UST3UU.cjs.map +1 -0
- package/dist/chunk-MLD5ZIDO.cjs +359 -0
- package/dist/chunk-MLD5ZIDO.cjs.map +1 -0
- package/dist/chunk-MLX3EO2C.js +107 -0
- package/dist/chunk-MLX3EO2C.js.map +1 -0
- package/dist/chunk-MVWERW4G.cjs +28 -0
- package/dist/chunk-MVWERW4G.cjs.map +1 -0
- package/dist/chunk-MYPCA25Y.cjs +115 -0
- package/dist/chunk-MYPCA25Y.cjs.map +1 -0
- package/dist/chunk-N6IVODRJ.js +114 -0
- package/dist/chunk-N6IVODRJ.js.map +1 -0
- package/dist/chunk-NFD6VAVM.js +155 -0
- package/dist/chunk-NFD6VAVM.js.map +1 -0
- package/dist/chunk-NHGKZMD7.cjs +18 -0
- package/dist/chunk-NHGKZMD7.cjs.map +1 -0
- package/dist/chunk-NMLDPXOL.js +167 -0
- package/dist/chunk-NMLDPXOL.js.map +1 -0
- package/dist/chunk-NONU7KUN.cjs +32 -0
- package/dist/chunk-NONU7KUN.cjs.map +1 -0
- package/dist/chunk-NQSC7CKN.js +130 -0
- package/dist/chunk-NQSC7CKN.js.map +1 -0
- package/dist/chunk-NYVFC2SF.js +87 -0
- package/dist/chunk-NYVFC2SF.js.map +1 -0
- package/dist/chunk-O5KGKQSU.js +218 -0
- package/dist/chunk-O5KGKQSU.js.map +1 -0
- package/dist/chunk-OGSZO22B.js +26 -0
- package/dist/chunk-OGSZO22B.js.map +1 -0
- package/dist/chunk-Q2BDB5ZA.cjs +218 -0
- package/dist/chunk-Q2BDB5ZA.cjs.map +1 -0
- package/dist/chunk-Q6U5D2ZB.cjs +210 -0
- package/dist/chunk-Q6U5D2ZB.cjs.map +1 -0
- package/dist/chunk-QAYX6XN3.js +26 -0
- package/dist/chunk-QAYX6XN3.js.map +1 -0
- package/dist/chunk-QHJHYV3H.cjs +15 -0
- package/dist/chunk-QHJHYV3H.cjs.map +1 -0
- package/dist/chunk-QIJZZOX7.js +249 -0
- package/dist/chunk-QIJZZOX7.js.map +1 -0
- package/dist/chunk-QLRK46YY.cjs +93 -0
- package/dist/chunk-QLRK46YY.cjs.map +1 -0
- package/dist/chunk-QZ4ZYTP6.js +124 -0
- package/dist/chunk-QZ4ZYTP6.js.map +1 -0
- package/dist/chunk-RCVRZCCC.cjs +156 -0
- package/dist/chunk-RCVRZCCC.cjs.map +1 -0
- package/dist/chunk-ROYZ7W4M.cjs +81 -0
- package/dist/chunk-ROYZ7W4M.cjs.map +1 -0
- package/dist/chunk-SJS4ISBA.js +163 -0
- package/dist/chunk-SJS4ISBA.js.map +1 -0
- package/dist/chunk-SKVCPG5R.cjs +124 -0
- package/dist/chunk-SKVCPG5R.cjs.map +1 -0
- package/dist/chunk-SQJAKZ4W.js +113 -0
- package/dist/chunk-SQJAKZ4W.js.map +1 -0
- package/dist/chunk-SUNC3CPV.js +79 -0
- package/dist/chunk-SUNC3CPV.js.map +1 -0
- package/dist/chunk-SWYCVF46.js +145 -0
- package/dist/chunk-SWYCVF46.js.map +1 -0
- package/dist/chunk-SZVK6RRQ.js +98 -0
- package/dist/chunk-SZVK6RRQ.js.map +1 -0
- package/dist/chunk-TOS2RYHQ.js +154 -0
- package/dist/chunk-TOS2RYHQ.js.map +1 -0
- package/dist/chunk-TTOX27BZ.cjs +116 -0
- package/dist/chunk-TTOX27BZ.cjs.map +1 -0
- package/dist/chunk-TW6KPQIS.js +160 -0
- package/dist/chunk-TW6KPQIS.js.map +1 -0
- package/dist/chunk-UN7K3YQG.cjs +81 -0
- package/dist/chunk-UN7K3YQG.cjs.map +1 -0
- package/dist/chunk-UQBDGCS6.cjs +89 -0
- package/dist/chunk-UQBDGCS6.cjs.map +1 -0
- package/dist/chunk-VPI7UGB3.cjs +130 -0
- package/dist/chunk-VPI7UGB3.cjs.map +1 -0
- package/dist/chunk-X2JNB5UN.js +271 -0
- package/dist/chunk-X2JNB5UN.js.map +1 -0
- package/dist/chunk-XBIM73HV.cjs +126 -0
- package/dist/chunk-XBIM73HV.cjs.map +1 -0
- package/dist/chunk-XHQWWR5M.cjs +4892 -0
- package/dist/chunk-XHQWWR5M.cjs.map +1 -0
- package/dist/chunk-Y2JZHX3P.cjs +169 -0
- package/dist/chunk-Y2JZHX3P.cjs.map +1 -0
- package/dist/chunk-Y4P4VY7A.cjs +251 -0
- package/dist/chunk-Y4P4VY7A.cjs.map +1 -0
- package/dist/chunk-Y54XVNXB.cjs +157 -0
- package/dist/chunk-Y54XVNXB.cjs.map +1 -0
- package/dist/chunk-Z6E3XVP2.cjs +132 -0
- package/dist/chunk-Z6E3XVP2.cjs.map +1 -0
- package/dist/chunk-ZDYCIP6N.cjs +100 -0
- package/dist/chunk-ZDYCIP6N.cjs.map +1 -0
- package/dist/chunk-ZDZQG3GH.cjs +148 -0
- package/dist/chunk-ZDZQG3GH.cjs.map +1 -0
- package/dist/chunk-ZL25X5WW.js +66 -0
- package/dist/chunk-ZL25X5WW.js.map +1 -0
- package/dist/combo-type-BdSohVyy.d.ts +16 -0
- package/dist/combo-type-wodyLq1f.d.cts +16 -0
- package/dist/combo.cjs +34 -0
- package/dist/combo.cjs.map +1 -0
- package/dist/combo.d.cts +8 -0
- package/dist/combo.d.ts +8 -0
- package/dist/combo.js +13 -0
- package/dist/combo.js.map +1 -0
- package/dist/custom-type-B6w1n5Ua.d.cts +23 -0
- package/dist/custom-type-XFjuPwCr.d.ts +23 -0
- package/dist/custom.cjs +33 -0
- package/dist/custom.cjs.map +1 -0
- package/dist/custom.d.cts +8 -0
- package/dist/custom.d.ts +8 -0
- package/dist/custom.js +12 -0
- package/dist/custom.js.map +1 -0
- package/dist/donut.cjs +33 -0
- package/dist/donut.cjs.map +1 -0
- package/dist/donut.d.cts +8 -0
- package/dist/donut.d.ts +8 -0
- package/dist/donut.js +12 -0
- package/dist/donut.js.map +1 -0
- package/dist/dumbbell-type-DPSE0OTg.d.ts +12 -0
- package/dist/dumbbell-type-w424KzI2.d.cts +12 -0
- package/dist/dumbbell.cjs +34 -0
- package/dist/dumbbell.cjs.map +1 -0
- package/dist/dumbbell.d.cts +8 -0
- package/dist/dumbbell.d.ts +8 -0
- package/dist/dumbbell.js +13 -0
- package/dist/dumbbell.js.map +1 -0
- package/dist/engine-CNukbv7k.d.cts +426 -0
- package/dist/engine-CNukbv7k.d.ts +426 -0
- package/dist/factory-dbngWV4d.d.cts +8 -0
- package/dist/factory-jRzNNxwj.d.ts +8 -0
- package/dist/finance.cjs +92 -0
- package/dist/finance.cjs.map +1 -0
- package/dist/finance.d.cts +192 -0
- package/dist/finance.d.ts +192 -0
- package/dist/finance.js +3 -0
- package/dist/finance.js.map +1 -0
- package/dist/funnel-type-BeVl3ohX.d.cts +9 -0
- package/dist/funnel-type-CMXGQq4T.d.ts +9 -0
- package/dist/funnel.cjs +33 -0
- package/dist/funnel.cjs.map +1 -0
- package/dist/funnel.d.cts +8 -0
- package/dist/funnel.d.ts +8 -0
- package/dist/funnel.js +12 -0
- package/dist/funnel.js.map +1 -0
- package/dist/gauge-type-BpDBwCeD.d.ts +11 -0
- package/dist/gauge-type-DmjDdfsY.d.cts +11 -0
- package/dist/gauge.cjs +33 -0
- package/dist/gauge.cjs.map +1 -0
- package/dist/gauge.d.cts +8 -0
- package/dist/gauge.d.ts +8 -0
- package/dist/gauge.js +12 -0
- package/dist/gauge.js.map +1 -0
- package/dist/geo.cjs +41 -0
- package/dist/geo.cjs.map +1 -0
- package/dist/geo.d.cts +8 -0
- package/dist/geo.d.ts +8 -0
- package/dist/geo.js +12 -0
- package/dist/geo.js.map +1 -0
- package/dist/graph-type-DkdAB6Vc.d.cts +5 -0
- package/dist/graph-type-ul9xwdf5.d.ts +5 -0
- package/dist/graph.cjs +33 -0
- package/dist/graph.cjs.map +1 -0
- package/dist/graph.d.cts +8 -0
- package/dist/graph.d.ts +8 -0
- package/dist/graph.js +12 -0
- package/dist/graph.js.map +1 -0
- package/dist/heatmap-type-D0shkxK7.d.cts +12 -0
- package/dist/heatmap-type-q6nNhVTr.d.ts +12 -0
- package/dist/heatmap.cjs +33 -0
- package/dist/heatmap.cjs.map +1 -0
- package/dist/heatmap.d.cts +8 -0
- package/dist/heatmap.d.ts +8 -0
- package/dist/heatmap.js +12 -0
- package/dist/heatmap.js.map +1 -0
- package/dist/histogram-type-BWil-Rb7.d.cts +13 -0
- package/dist/histogram-type-CF593WSp.d.ts +13 -0
- package/dist/histogram.cjs +33 -0
- package/dist/histogram.cjs.map +1 -0
- package/dist/histogram.d.cts +8 -0
- package/dist/histogram.d.ts +8 -0
- package/dist/histogram.js +12 -0
- package/dist/histogram.js.map +1 -0
- package/dist/horizontal-bar-type-0mqnyMUR.d.cts +11 -0
- package/dist/horizontal-bar-type-DAlrxY0h.d.ts +11 -0
- package/dist/horizontal-bar.cjs +34 -0
- package/dist/horizontal-bar.cjs.map +1 -0
- package/dist/horizontal-bar.d.cts +8 -0
- package/dist/horizontal-bar.d.ts +8 -0
- package/dist/horizontal-bar.js +13 -0
- package/dist/horizontal-bar.js.map +1 -0
- package/dist/index.cjs +1604 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +594 -0
- package/dist/index.d.ts +594 -0
- package/dist/index.js +1201 -0
- package/dist/index.js.map +1 -0
- package/dist/kagi-type-Y5XUVm3h.d.ts +26 -0
- package/dist/kagi-type-aG-Q1bWk.d.cts +26 -0
- package/dist/kagi.cjs +33 -0
- package/dist/kagi.cjs.map +1 -0
- package/dist/kagi.d.cts +8 -0
- package/dist/kagi.d.ts +8 -0
- package/dist/kagi.js +12 -0
- package/dist/kagi.js.map +1 -0
- package/dist/line-type-B8lgTFjb.d.cts +5 -0
- package/dist/line-type-Diw0nXj7.d.ts +5 -0
- package/dist/line.cjs +33 -0
- package/dist/line.cjs.map +1 -0
- package/dist/line.d.cts +8 -0
- package/dist/line.d.ts +8 -0
- package/dist/line.js +12 -0
- package/dist/line.js.map +1 -0
- package/dist/lines-type-CGrg_mDi.d.cts +31 -0
- package/dist/lines-type-V-seVNZ4.d.ts +31 -0
- package/dist/lines.cjs +33 -0
- package/dist/lines.cjs.map +1 -0
- package/dist/lines.d.cts +8 -0
- package/dist/lines.d.ts +8 -0
- package/dist/lines.js +12 -0
- package/dist/lines.js.map +1 -0
- package/dist/lollipop-type-CoTzKLSu.d.cts +11 -0
- package/dist/lollipop-type-Ygc4rRql.d.ts +11 -0
- package/dist/lollipop.cjs +33 -0
- package/dist/lollipop.cjs.map +1 -0
- package/dist/lollipop.d.cts +8 -0
- package/dist/lollipop.d.ts +8 -0
- package/dist/lollipop.js +12 -0
- package/dist/lollipop.js.map +1 -0
- package/dist/matrix-type-Crb_NwUJ.d.cts +26 -0
- package/dist/matrix-type-Dag1VLCY.d.ts +26 -0
- package/dist/matrix.cjs +33 -0
- package/dist/matrix.cjs.map +1 -0
- package/dist/matrix.d.cts +8 -0
- package/dist/matrix.d.ts +8 -0
- package/dist/matrix.js +12 -0
- package/dist/matrix.js.map +1 -0
- package/dist/ohlc-type-BQBHvVJO.d.cts +28 -0
- package/dist/ohlc-type-CGR-vRGL.d.ts +28 -0
- package/dist/ohlc.cjs +33 -0
- package/dist/ohlc.cjs.map +1 -0
- package/dist/ohlc.d.cts +8 -0
- package/dist/ohlc.d.ts +8 -0
- package/dist/ohlc.js +12 -0
- package/dist/ohlc.js.map +1 -0
- package/dist/parallel-type-6t6xyHMg.d.ts +14 -0
- package/dist/parallel-type-D-S-EqeC.d.cts +14 -0
- package/dist/parallel.cjs +33 -0
- package/dist/parallel.cjs.map +1 -0
- package/dist/parallel.d.cts +8 -0
- package/dist/parallel.d.ts +8 -0
- package/dist/parallel.js +12 -0
- package/dist/parallel.js.map +1 -0
- package/dist/pictorialbar-type-A-8mTX1N.d.ts +5 -0
- package/dist/pictorialbar-type-CnJEH9GZ.d.cts +5 -0
- package/dist/pictorialbar.cjs +33 -0
- package/dist/pictorialbar.cjs.map +1 -0
- package/dist/pictorialbar.d.cts +8 -0
- package/dist/pictorialbar.d.ts +8 -0
- package/dist/pictorialbar.js +12 -0
- package/dist/pictorialbar.js.map +1 -0
- package/dist/pie-type-S7kUKGRS.d.ts +7 -0
- package/dist/pie-type-duX5xkfQ.d.cts +7 -0
- package/dist/pie.cjs +33 -0
- package/dist/pie.cjs.map +1 -0
- package/dist/pie.d.cts +8 -0
- package/dist/pie.d.ts +8 -0
- package/dist/pie.js +12 -0
- package/dist/pie.js.map +1 -0
- package/dist/polar-type-CI6-I8Yg.d.cts +11 -0
- package/dist/polar-type-Dj21GIc9.d.ts +11 -0
- package/dist/polar.cjs +33 -0
- package/dist/polar.cjs.map +1 -0
- package/dist/polar.d.cts +8 -0
- package/dist/polar.d.ts +8 -0
- package/dist/polar.js +12 -0
- package/dist/polar.js.map +1 -0
- package/dist/radar-type-CYjZHuKm.d.ts +9 -0
- package/dist/radar-type-Dgyr13Zd.d.cts +9 -0
- package/dist/radar.cjs +33 -0
- package/dist/radar.cjs.map +1 -0
- package/dist/radar.d.cts +8 -0
- package/dist/radar.d.ts +8 -0
- package/dist/radar.js +12 -0
- package/dist/radar.js.map +1 -0
- package/dist/radialbar-type-CLZ8XgST.d.ts +11 -0
- package/dist/radialbar-type-C_SBXoaa.d.cts +11 -0
- package/dist/radialbar.cjs +33 -0
- package/dist/radialbar.cjs.map +1 -0
- package/dist/radialbar.d.cts +8 -0
- package/dist/radialbar.d.ts +8 -0
- package/dist/radialbar.js +12 -0
- package/dist/radialbar.js.map +1 -0
- package/dist/range-type-CkriEnLm.d.cts +26 -0
- package/dist/range-type-_LbMV4tl.d.ts +26 -0
- package/dist/range.cjs +32 -0
- package/dist/range.cjs.map +1 -0
- package/dist/range.d.cts +8 -0
- package/dist/range.d.ts +8 -0
- package/dist/range.js +11 -0
- package/dist/range.js.map +1 -0
- package/dist/renko-type-43OXCtZ3.d.cts +24 -0
- package/dist/renko-type-ejoXt2ro.d.ts +24 -0
- package/dist/renko.cjs +33 -0
- package/dist/renko.cjs.map +1 -0
- package/dist/renko.d.cts +8 -0
- package/dist/renko.d.ts +8 -0
- package/dist/renko.js +12 -0
- package/dist/renko.js.map +1 -0
- package/dist/sankey-type-CN7PL5MQ.d.ts +5 -0
- package/dist/sankey-type-DfkTUnXB.d.cts +5 -0
- package/dist/sankey.cjs +33 -0
- package/dist/sankey.cjs.map +1 -0
- package/dist/sankey.d.cts +8 -0
- package/dist/sankey.d.ts +8 -0
- package/dist/sankey.js +12 -0
- package/dist/sankey.js.map +1 -0
- package/dist/scatter-type-CD7X1pZb.d.cts +5 -0
- package/dist/scatter-type-D3HdPkZ6.d.ts +5 -0
- package/dist/scatter.cjs +32 -0
- package/dist/scatter.cjs.map +1 -0
- package/dist/scatter.d.cts +8 -0
- package/dist/scatter.d.ts +8 -0
- package/dist/scatter.js +11 -0
- package/dist/scatter.js.map +1 -0
- package/dist/sparkline-type-COW3izgF.d.ts +9 -0
- package/dist/sparkline-type-qt3yoLs7.d.cts +9 -0
- package/dist/sparkline.cjs +33 -0
- package/dist/sparkline.cjs.map +1 -0
- package/dist/sparkline.d.cts +8 -0
- package/dist/sparkline.d.ts +8 -0
- package/dist/sparkline.js +12 -0
- package/dist/sparkline.js.map +1 -0
- package/dist/stacked-bar-type-C-5pmb-D.d.ts +8 -0
- package/dist/stacked-bar-type-Ct6HK2A0.d.cts +8 -0
- package/dist/stacked-bar.cjs +34 -0
- package/dist/stacked-bar.cjs.map +1 -0
- package/dist/stacked-bar.d.cts +8 -0
- package/dist/stacked-bar.d.ts +8 -0
- package/dist/stacked-bar.js +13 -0
- package/dist/stacked-bar.js.map +1 -0
- package/dist/step-type-BSL-CUny.d.cts +11 -0
- package/dist/step-type-Cleoshov.d.ts +11 -0
- package/dist/step.cjs +34 -0
- package/dist/step.cjs.map +1 -0
- package/dist/step.d.cts +8 -0
- package/dist/step.d.ts +8 -0
- package/dist/step.js +13 -0
- package/dist/step.js.map +1 -0
- package/dist/sunburst-type-BOztb_Px.d.cts +5 -0
- package/dist/sunburst-type-ZFw2w6m8.d.ts +5 -0
- package/dist/sunburst.cjs +33 -0
- package/dist/sunburst.cjs.map +1 -0
- package/dist/sunburst.d.cts +8 -0
- package/dist/sunburst.d.ts +8 -0
- package/dist/sunburst.js +12 -0
- package/dist/sunburst.js.map +1 -0
- package/dist/themeriver-type-B5PYChcC.d.ts +15 -0
- package/dist/themeriver-type-BnRSsyal.d.cts +15 -0
- package/dist/themeriver.cjs +33 -0
- package/dist/themeriver.cjs.map +1 -0
- package/dist/themeriver.d.cts +8 -0
- package/dist/themeriver.d.ts +8 -0
- package/dist/themeriver.js +12 -0
- package/dist/themeriver.js.map +1 -0
- package/dist/tree-type-B-bOSg0l.d.ts +5 -0
- package/dist/tree-type-Cz84wHnR.d.cts +5 -0
- package/dist/tree.cjs +33 -0
- package/dist/tree.cjs.map +1 -0
- package/dist/tree.d.cts +8 -0
- package/dist/tree.d.ts +8 -0
- package/dist/tree.js +12 -0
- package/dist/tree.js.map +1 -0
- package/dist/treemap-type-DYDj-rWv.d.ts +11 -0
- package/dist/treemap-type-OBCGexiK.d.cts +11 -0
- package/dist/treemap.cjs +33 -0
- package/dist/treemap.cjs.map +1 -0
- package/dist/treemap.d.cts +8 -0
- package/dist/treemap.d.ts +8 -0
- package/dist/treemap.js +12 -0
- package/dist/treemap.js.map +1 -0
- package/dist/volume-type-C9wRmKR6.d.ts +21 -0
- package/dist/volume-type-CfERBN5g.d.cts +21 -0
- package/dist/volume.cjs +33 -0
- package/dist/volume.cjs.map +1 -0
- package/dist/volume.d.cts +8 -0
- package/dist/volume.d.ts +8 -0
- package/dist/volume.js +12 -0
- package/dist/volume.js.map +1 -0
- package/dist/waterfall-type-CpdVtBi_.d.ts +10 -0
- package/dist/waterfall-type-hm5ylGgW.d.cts +10 -0
- package/dist/waterfall.cjs +33 -0
- package/dist/waterfall.cjs.map +1 -0
- package/dist/waterfall.d.cts +8 -0
- package/dist/waterfall.d.ts +8 -0
- package/dist/waterfall.js +12 -0
- package/dist/waterfall.js.map +1 -0
- package/dist/world-regions-Cfvxpbx0.d.ts +50 -0
- package/dist/world-regions-cMulhqDW.d.cts +50 -0
- package/package.json +262 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { c as ChartTypePlugin } from './engine-CNukbv7k.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Calendar heatmap — GitHub-style contribution grid.
|
|
5
|
+
*
|
|
6
|
+
* Data format:
|
|
7
|
+
* - labels: dates as strings (YYYY-MM-DD) or numbers (day index)
|
|
8
|
+
* - series[0]: values for each day (intensity)
|
|
9
|
+
*
|
|
10
|
+
* Renders a 7-row (days of week) x N-column (weeks) grid.
|
|
11
|
+
* If labels aren't dates, treats data as a flat grid: 7 rows.
|
|
12
|
+
*/
|
|
13
|
+
declare const calendarChartType: ChartTypePlugin;
|
|
14
|
+
|
|
15
|
+
export { calendarChartType as c };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { c as ChartTypePlugin } from './engine-CNukbv7k.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Calendar heatmap — GitHub-style contribution grid.
|
|
5
|
+
*
|
|
6
|
+
* Data format:
|
|
7
|
+
* - labels: dates as strings (YYYY-MM-DD) or numbers (day index)
|
|
8
|
+
* - series[0]: values for each day (intensity)
|
|
9
|
+
*
|
|
10
|
+
* Renders a 7-row (days of week) x N-column (weeks) grid.
|
|
11
|
+
* If labels aren't dates, treats data as a flat grid: 7 rows.
|
|
12
|
+
*/
|
|
13
|
+
declare const calendarChartType: ChartTypePlugin;
|
|
14
|
+
|
|
15
|
+
export { calendarChartType as c };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkH4RNJ7FK_cjs = require('./chunk-H4RNJ7FK.cjs');
|
|
4
|
+
require('./chunk-5QOQR5FE.cjs');
|
|
5
|
+
var chunkQHJHYV3H_cjs = require('./chunk-QHJHYV3H.cjs');
|
|
6
|
+
var chunkXHQWWR5M_cjs = require('./chunk-XHQWWR5M.cjs');
|
|
7
|
+
|
|
8
|
+
// src/entries/calendar.ts
|
|
9
|
+
var Calendar = chunkQHJHYV3H_cjs.createConvenience(chunkH4RNJ7FK_cjs.calendarChartType);
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "calendarChartType", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkH4RNJ7FK_cjs.calendarChartType; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "applyTheme", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkXHQWWR5M_cjs.applyTheme; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "createChart", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkXHQWWR5M_cjs.createChart; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "renderToString", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkXHQWWR5M_cjs.renderToString; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "resolveTheme", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkXHQWWR5M_cjs.resolveTheme; }
|
|
30
|
+
});
|
|
31
|
+
exports.Calendar = Calendar;
|
|
32
|
+
//# sourceMappingURL=calendar.cjs.map
|
|
33
|
+
//# sourceMappingURL=calendar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/entries/calendar.ts"],"names":["createConvenience","calendarChartType"],"mappings":";;;;;;;;AAGO,IAAM,QAAA,GAAWA,oCAAkBC,mCAAiB","file":"calendar.cjs","sourcesContent":["import { createConvenience } from '../api/factory'\nimport { calendarChartType } from '../charts/calendar/calendar-type'\n\nexport const Calendar = createConvenience(calendarChartType)\nexport { calendarChartType }\nexport { createChart } from '../api/create'\nexport { renderToString } from '../render/string'\nexport { resolveTheme, applyTheme } from '../theme/engine'\nexport type {\n ChartData, ChartOptions, ChartInstance, ChartTypePlugin,\n ThemeConfig, Series, RenderContext, RenderNode,\n} from '../types'\nexport type { ChartConfig } from '../api/factory'\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { C as ChartInstance } from './engine-CNukbv7k.cjs';
|
|
2
|
+
export { a as ChartData, b as ChartOptions, c as ChartTypePlugin, R as RenderContext, d as RenderNode, S as Series, T as ThemeConfig, e as applyTheme, f as createChart, r as renderToString, g as resolveTheme } from './engine-CNukbv7k.cjs';
|
|
3
|
+
import { C as ChartConfig } from './factory-dbngWV4d.cjs';
|
|
4
|
+
export { c as calendarChartType } from './calendar-type-Br5mpdea.cjs';
|
|
5
|
+
|
|
6
|
+
declare const Calendar: (target: string | HTMLElement, config: ChartConfig) => ChartInstance;
|
|
7
|
+
|
|
8
|
+
export { Calendar, ChartConfig, ChartInstance };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { C as ChartInstance } from './engine-CNukbv7k.js';
|
|
2
|
+
export { a as ChartData, b as ChartOptions, c as ChartTypePlugin, R as RenderContext, d as RenderNode, S as Series, T as ThemeConfig, e as applyTheme, f as createChart, r as renderToString, g as resolveTheme } from './engine-CNukbv7k.js';
|
|
3
|
+
import { C as ChartConfig } from './factory-jRzNNxwj.js';
|
|
4
|
+
export { c as calendarChartType } from './calendar-type-yJWPY6qT.js';
|
|
5
|
+
|
|
6
|
+
declare const Calendar: (target: string | HTMLElement, config: ChartConfig) => ChartInstance;
|
|
7
|
+
|
|
8
|
+
export { Calendar, ChartConfig, ChartInstance };
|
package/dist/calendar.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { calendarChartType } from './chunk-BR3KTAGW.js';
|
|
2
|
+
export { calendarChartType } from './chunk-BR3KTAGW.js';
|
|
3
|
+
import './chunk-3XVGEBR4.js';
|
|
4
|
+
import { createConvenience } from './chunk-GM3ZO5WV.js';
|
|
5
|
+
export { applyTheme, createChart, renderToString, resolveTheme } from './chunk-3BRQGYDX.js';
|
|
6
|
+
|
|
7
|
+
// src/entries/calendar.ts
|
|
8
|
+
var Calendar = createConvenience(calendarChartType);
|
|
9
|
+
|
|
10
|
+
export { Calendar };
|
|
11
|
+
//# sourceMappingURL=calendar.js.map
|
|
12
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/entries/calendar.ts"],"names":[],"mappings":";;;;;;;AAGO,IAAM,QAAA,GAAW,kBAAkB,iBAAiB","file":"calendar.js","sourcesContent":["import { createConvenience } from '../api/factory'\nimport { calendarChartType } from '../charts/calendar/calendar-type'\n\nexport const Calendar = createConvenience(calendarChartType)\nexport { calendarChartType }\nexport { createChart } from '../api/create'\nexport { renderToString } from '../render/string'\nexport { resolveTheme, applyTheme } from '../theme/engine'\nexport type {\n ChartData, ChartOptions, ChartInstance, ChartTypePlugin,\n ThemeConfig, Series, RenderContext, RenderNode,\n} from '../types'\nexport type { ChartConfig } from '../api/factory'\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { c as ChartTypePlugin } from './engine-CNukbv7k.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Candlestick / OHLC chart for financial data.
|
|
5
|
+
*
|
|
6
|
+
* Pass OHLC data via options:
|
|
7
|
+
* ```ts
|
|
8
|
+
* Candlestick('#el', {
|
|
9
|
+
* data: { labels: ['Mon','Tue','Wed'], series: [{ name: 'AAPL', values: [150, 152, 148] }] },
|
|
10
|
+
* ohlc: {
|
|
11
|
+
* open: [148, 150, 152],
|
|
12
|
+
* high: [153, 155, 154],
|
|
13
|
+
* low: [146, 149, 147],
|
|
14
|
+
* close: [150, 152, 148],
|
|
15
|
+
* }
|
|
16
|
+
* })
|
|
17
|
+
* ```
|
|
18
|
+
* The series values are used as close prices for scale computation.
|
|
19
|
+
*/
|
|
20
|
+
declare const candlestickChartType: ChartTypePlugin;
|
|
21
|
+
|
|
22
|
+
export { candlestickChartType as c };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { c as ChartTypePlugin } from './engine-CNukbv7k.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Candlestick / OHLC chart for financial data.
|
|
5
|
+
*
|
|
6
|
+
* Pass OHLC data via options:
|
|
7
|
+
* ```ts
|
|
8
|
+
* Candlestick('#el', {
|
|
9
|
+
* data: { labels: ['Mon','Tue','Wed'], series: [{ name: 'AAPL', values: [150, 152, 148] }] },
|
|
10
|
+
* ohlc: {
|
|
11
|
+
* open: [148, 150, 152],
|
|
12
|
+
* high: [153, 155, 154],
|
|
13
|
+
* low: [146, 149, 147],
|
|
14
|
+
* close: [150, 152, 148],
|
|
15
|
+
* }
|
|
16
|
+
* })
|
|
17
|
+
* ```
|
|
18
|
+
* The series values are used as close prices for scale computation.
|
|
19
|
+
*/
|
|
20
|
+
declare const candlestickChartType: ChartTypePlugin;
|
|
21
|
+
|
|
22
|
+
export { candlestickChartType as c };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkL54BZYAI_cjs = require('./chunk-L54BZYAI.cjs');
|
|
4
|
+
require('./chunk-NHGKZMD7.cjs');
|
|
5
|
+
var chunkQHJHYV3H_cjs = require('./chunk-QHJHYV3H.cjs');
|
|
6
|
+
var chunkXHQWWR5M_cjs = require('./chunk-XHQWWR5M.cjs');
|
|
7
|
+
|
|
8
|
+
// src/entries/candlestick.ts
|
|
9
|
+
var Candlestick = chunkQHJHYV3H_cjs.createConvenience(chunkL54BZYAI_cjs.candlestickChartType);
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "candlestickChartType", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkL54BZYAI_cjs.candlestickChartType; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "applyTheme", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkXHQWWR5M_cjs.applyTheme; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "createChart", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkXHQWWR5M_cjs.createChart; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "renderToString", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkXHQWWR5M_cjs.renderToString; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "resolveTheme", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkXHQWWR5M_cjs.resolveTheme; }
|
|
30
|
+
});
|
|
31
|
+
exports.Candlestick = Candlestick;
|
|
32
|
+
//# sourceMappingURL=candlestick.cjs.map
|
|
33
|
+
//# sourceMappingURL=candlestick.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/entries/candlestick.ts"],"names":["createConvenience","candlestickChartType"],"mappings":";;;;;;;;AAGO,IAAM,WAAA,GAAcA,oCAAkBC,sCAAoB","file":"candlestick.cjs","sourcesContent":["import { createConvenience } from '../api/factory'\nimport { candlestickChartType } from '../charts/candlestick/candlestick-type'\n\nexport const Candlestick = createConvenience(candlestickChartType)\nexport { candlestickChartType }\nexport { createChart } from '../api/create'\nexport { renderToString } from '../render/string'\nexport { resolveTheme, applyTheme } from '../theme/engine'\nexport type {\n ChartData, ChartOptions, ChartInstance, ChartTypePlugin,\n ThemeConfig, Series, RenderContext, RenderNode,\n} from '../types'\nexport type { ChartConfig } from '../api/factory'\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { C as ChartInstance } from './engine-CNukbv7k.cjs';
|
|
2
|
+
export { a as ChartData, b as ChartOptions, c as ChartTypePlugin, R as RenderContext, d as RenderNode, S as Series, T as ThemeConfig, e as applyTheme, f as createChart, r as renderToString, g as resolveTheme } from './engine-CNukbv7k.cjs';
|
|
3
|
+
import { C as ChartConfig } from './factory-dbngWV4d.cjs';
|
|
4
|
+
export { c as candlestickChartType } from './candlestick-type-CazXUb77.cjs';
|
|
5
|
+
|
|
6
|
+
declare const Candlestick: (target: string | HTMLElement, config: ChartConfig) => ChartInstance;
|
|
7
|
+
|
|
8
|
+
export { Candlestick, ChartConfig, ChartInstance };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { C as ChartInstance } from './engine-CNukbv7k.js';
|
|
2
|
+
export { a as ChartData, b as ChartOptions, c as ChartTypePlugin, R as RenderContext, d as RenderNode, S as Series, T as ThemeConfig, e as applyTheme, f as createChart, r as renderToString, g as resolveTheme } from './engine-CNukbv7k.js';
|
|
3
|
+
import { C as ChartConfig } from './factory-jRzNNxwj.js';
|
|
4
|
+
export { c as candlestickChartType } from './candlestick-type-CtLZy_uC.js';
|
|
5
|
+
|
|
6
|
+
declare const Candlestick: (target: string | HTMLElement, config: ChartConfig) => ChartInstance;
|
|
7
|
+
|
|
8
|
+
export { Candlestick, ChartConfig, ChartInstance };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { candlestickChartType } from './chunk-LB4MV5CG.js';
|
|
2
|
+
export { candlestickChartType } from './chunk-LB4MV5CG.js';
|
|
3
|
+
import './chunk-E6PR75X7.js';
|
|
4
|
+
import { createConvenience } from './chunk-GM3ZO5WV.js';
|
|
5
|
+
export { applyTheme, createChart, renderToString, resolveTheme } from './chunk-3BRQGYDX.js';
|
|
6
|
+
|
|
7
|
+
// src/entries/candlestick.ts
|
|
8
|
+
var Candlestick = createConvenience(candlestickChartType);
|
|
9
|
+
|
|
10
|
+
export { Candlestick };
|
|
11
|
+
//# sourceMappingURL=candlestick.js.map
|
|
12
|
+
//# sourceMappingURL=candlestick.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/entries/candlestick.ts"],"names":[],"mappings":";;;;;;;AAGO,IAAM,WAAA,GAAc,kBAAkB,oBAAoB","file":"candlestick.js","sourcesContent":["import { createConvenience } from '../api/factory'\nimport { candlestickChartType } from '../charts/candlestick/candlestick-type'\n\nexport const Candlestick = createConvenience(candlestickChartType)\nexport { candlestickChartType }\nexport { createChart } from '../api/create'\nexport { renderToString } from '../render/string'\nexport { resolveTheme, applyTheme } from '../theme/engine'\nexport type {\n ChartData, ChartOptions, ChartInstance, ChartTypePlugin,\n ThemeConfig, Series, RenderContext, RenderNode,\n} from '../types'\nexport type { ChartConfig } from '../api/factory'\n"]}
|
package/dist/chord.cjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkM4AQD6WX_cjs = require('./chunk-M4AQD6WX.cjs');
|
|
4
|
+
require('./chunk-5QOQR5FE.cjs');
|
|
5
|
+
var chunkQHJHYV3H_cjs = require('./chunk-QHJHYV3H.cjs');
|
|
6
|
+
var chunkXHQWWR5M_cjs = require('./chunk-XHQWWR5M.cjs');
|
|
7
|
+
|
|
8
|
+
// src/entries/chord.ts
|
|
9
|
+
var Chord = chunkQHJHYV3H_cjs.createConvenience(chunkM4AQD6WX_cjs.chordChartType);
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "chordChartType", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkM4AQD6WX_cjs.chordChartType; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "applyTheme", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkXHQWWR5M_cjs.applyTheme; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "createChart", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkXHQWWR5M_cjs.createChart; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "renderToString", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkXHQWWR5M_cjs.renderToString; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "resolveTheme", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkXHQWWR5M_cjs.resolveTheme; }
|
|
30
|
+
});
|
|
31
|
+
exports.Chord = Chord;
|
|
32
|
+
//# sourceMappingURL=chord.cjs.map
|
|
33
|
+
//# sourceMappingURL=chord.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/entries/chord.ts"],"names":["createConvenience","chordChartType"],"mappings":";;;;;;;;AAGO,IAAM,KAAA,GAAQA,oCAAkBC,gCAAc","file":"chord.cjs","sourcesContent":["import { createConvenience } from '../api/factory'\nimport { chordChartType } from '../charts/chord/chord-type'\n\nexport const Chord = createConvenience(chordChartType)\nexport { chordChartType }\nexport { createChart } from '../api/create'\nexport { renderToString } from '../render/string'\nexport { resolveTheme, applyTheme } from '../theme/engine'\nexport type {\n ChartData, ChartOptions, ChartInstance, ChartTypePlugin,\n ThemeConfig, Series, RenderContext, RenderNode,\n} from '../types'\nexport type { ChartConfig } from '../api/factory'\n"]}
|
package/dist/chord.d.cts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { C as ChartInstance } from './engine-CNukbv7k.cjs';
|
|
2
|
+
export { a as ChartData, b as ChartOptions, c as ChartTypePlugin, R as RenderContext, d as RenderNode, S as Series, T as ThemeConfig, e as applyTheme, f as createChart, r as renderToString, g as resolveTheme } from './engine-CNukbv7k.cjs';
|
|
3
|
+
import { C as ChartConfig } from './factory-dbngWV4d.cjs';
|
|
4
|
+
export { c as chordChartType } from './chord-type-ChIZaOZd.cjs';
|
|
5
|
+
|
|
6
|
+
declare const Chord: (target: string | HTMLElement, config: ChartConfig) => ChartInstance;
|
|
7
|
+
|
|
8
|
+
export { ChartConfig, ChartInstance, Chord };
|
package/dist/chord.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { C as ChartInstance } from './engine-CNukbv7k.js';
|
|
2
|
+
export { a as ChartData, b as ChartOptions, c as ChartTypePlugin, R as RenderContext, d as RenderNode, S as Series, T as ThemeConfig, e as applyTheme, f as createChart, r as renderToString, g as resolveTheme } from './engine-CNukbv7k.js';
|
|
3
|
+
import { C as ChartConfig } from './factory-jRzNNxwj.js';
|
|
4
|
+
export { c as chordChartType } from './chord-type-ruvHboZl.js';
|
|
5
|
+
|
|
6
|
+
declare const Chord: (target: string | HTMLElement, config: ChartConfig) => ChartInstance;
|
|
7
|
+
|
|
8
|
+
export { ChartConfig, ChartInstance, Chord };
|
package/dist/chord.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { chordChartType } from './chunk-O5KGKQSU.js';
|
|
2
|
+
export { chordChartType } from './chunk-O5KGKQSU.js';
|
|
3
|
+
import './chunk-3XVGEBR4.js';
|
|
4
|
+
import { createConvenience } from './chunk-GM3ZO5WV.js';
|
|
5
|
+
export { applyTheme, createChart, renderToString, resolveTheme } from './chunk-3BRQGYDX.js';
|
|
6
|
+
|
|
7
|
+
// src/entries/chord.ts
|
|
8
|
+
var Chord = createConvenience(chordChartType);
|
|
9
|
+
|
|
10
|
+
export { Chord };
|
|
11
|
+
//# sourceMappingURL=chord.js.map
|
|
12
|
+
//# sourceMappingURL=chord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/entries/chord.ts"],"names":[],"mappings":";;;;;;;AAGO,IAAM,KAAA,GAAQ,kBAAkB,cAAc","file":"chord.js","sourcesContent":["import { createConvenience } from '../api/factory'\nimport { chordChartType } from '../charts/chord/chord-type'\n\nexport const Chord = createConvenience(chordChartType)\nexport { chordChartType }\nexport { createChart } from '../api/create'\nexport { renderToString } from '../render/string'\nexport { resolveTheme, applyTheme } from '../theme/engine'\nexport type {\n ChartData, ChartOptions, ChartInstance, ChartTypePlugin,\n ThemeConfig, Series, RenderContext, RenderNode,\n} from '../types'\nexport type { ChartConfig } from '../api/factory'\n"]}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { prepareNoAxes } from './chunk-3XVGEBR4.js';
|
|
2
|
+
import { PathBuilder, path, circle, text, group } from './chunk-3BRQGYDX.js';
|
|
3
|
+
|
|
4
|
+
// src/charts/lines/lines-type.ts
|
|
5
|
+
var linesChartType = {
|
|
6
|
+
type: "lines",
|
|
7
|
+
getScaleTypes() {
|
|
8
|
+
return { x: "categorical", y: "linear" };
|
|
9
|
+
},
|
|
10
|
+
prepareData(data, options) {
|
|
11
|
+
return prepareNoAxes(data, options);
|
|
12
|
+
},
|
|
13
|
+
render(ctx) {
|
|
14
|
+
const { data, area, theme, options } = ctx;
|
|
15
|
+
const nodes = [];
|
|
16
|
+
const lOpts = options;
|
|
17
|
+
const showNodes = lOpts.showNodes !== false;
|
|
18
|
+
const showArrows = lOpts.showArrows !== false;
|
|
19
|
+
const showLabels = lOpts.showLabels !== false;
|
|
20
|
+
const curvature = lOpts.curvature ?? 0.3;
|
|
21
|
+
const pointMap = /* @__PURE__ */ new Map();
|
|
22
|
+
if (lOpts.points) {
|
|
23
|
+
for (const p of lOpts.points) {
|
|
24
|
+
pointMap.set(p.name, {
|
|
25
|
+
x: area.x + p.x * area.width,
|
|
26
|
+
y: area.y + p.y * area.height
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
} else {
|
|
30
|
+
const names = /* @__PURE__ */ new Set();
|
|
31
|
+
for (const s of data.series) {
|
|
32
|
+
const parts = s.name.split(/\s*(?:→|->)\s*/);
|
|
33
|
+
if (parts.length >= 2) {
|
|
34
|
+
names.add(parts[0].trim());
|
|
35
|
+
names.add(parts[1].trim());
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
for (const l of data.labels) names.add(String(l));
|
|
39
|
+
const nameArr = [...names];
|
|
40
|
+
const cx = area.x + area.width / 2;
|
|
41
|
+
const cy = area.y + area.height / 2;
|
|
42
|
+
const r = Math.min(area.width, area.height) / 2 - 40;
|
|
43
|
+
nameArr.forEach((name, i) => {
|
|
44
|
+
const angle = i / nameArr.length * Math.PI * 2 - Math.PI / 2;
|
|
45
|
+
pointMap.set(name, {
|
|
46
|
+
x: cx + r * Math.cos(angle),
|
|
47
|
+
y: cy + r * Math.sin(angle)
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
const flows = [];
|
|
52
|
+
for (const s of data.series) {
|
|
53
|
+
const parts = s.name.split(/\s*(?:→|->)\s*/);
|
|
54
|
+
if (parts.length >= 2) {
|
|
55
|
+
flows.push({
|
|
56
|
+
source: parts[0].trim(),
|
|
57
|
+
target: parts[1].trim(),
|
|
58
|
+
value: s.values[0] ?? 1
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (flows.length === 0 && pointMap.size === 0) return nodes;
|
|
63
|
+
const maxFlow = Math.max(...flows.map((f) => Math.abs(f.value)), 1);
|
|
64
|
+
for (let fi = 0; fi < flows.length; fi++) {
|
|
65
|
+
const flow = flows[fi];
|
|
66
|
+
const src = pointMap.get(flow.source);
|
|
67
|
+
const tgt = pointMap.get(flow.target);
|
|
68
|
+
if (!src || !tgt) continue;
|
|
69
|
+
const color = options.colors[fi % options.colors.length];
|
|
70
|
+
const lineWidth = 1 + Math.abs(flow.value) / maxFlow * 4;
|
|
71
|
+
const dx = tgt.x - src.x;
|
|
72
|
+
const dy = tgt.y - src.y;
|
|
73
|
+
const mx = (src.x + tgt.x) / 2;
|
|
74
|
+
const my = (src.y + tgt.y) / 2;
|
|
75
|
+
const cpx = mx - dy * curvature;
|
|
76
|
+
const cpy = my + dx * curvature;
|
|
77
|
+
const pb = new PathBuilder();
|
|
78
|
+
pb.moveTo(src.x, src.y);
|
|
79
|
+
pb.quadTo(cpx, cpy, tgt.x, tgt.y);
|
|
80
|
+
nodes.push(path(pb.build(), {
|
|
81
|
+
class: "chartts-lines-flow",
|
|
82
|
+
fill: "none",
|
|
83
|
+
stroke: color,
|
|
84
|
+
strokeWidth: lineWidth,
|
|
85
|
+
strokeOpacity: 0.6,
|
|
86
|
+
strokeLinecap: "round",
|
|
87
|
+
"data-series": fi,
|
|
88
|
+
"data-index": 0,
|
|
89
|
+
tabindex: 0,
|
|
90
|
+
role: "img",
|
|
91
|
+
ariaLabel: `${flow.source} \u2192 ${flow.target}: ${flow.value}`
|
|
92
|
+
}));
|
|
93
|
+
if (showArrows) {
|
|
94
|
+
const t = 0.95;
|
|
95
|
+
const ax = (1 - t) * (1 - t) * src.x + 2 * (1 - t) * t * cpx + t * t * tgt.x;
|
|
96
|
+
const ay = (1 - t) * (1 - t) * src.y + 2 * (1 - t) * t * cpy + t * t * tgt.y;
|
|
97
|
+
const angle = Math.atan2(tgt.y - ay, tgt.x - ax);
|
|
98
|
+
const arrowSize = 6 + lineWidth;
|
|
99
|
+
const apb = new PathBuilder();
|
|
100
|
+
apb.moveTo(tgt.x, tgt.y);
|
|
101
|
+
apb.lineTo(
|
|
102
|
+
tgt.x - arrowSize * Math.cos(angle - 0.4),
|
|
103
|
+
tgt.y - arrowSize * Math.sin(angle - 0.4)
|
|
104
|
+
);
|
|
105
|
+
apb.lineTo(
|
|
106
|
+
tgt.x - arrowSize * Math.cos(angle + 0.4),
|
|
107
|
+
tgt.y - arrowSize * Math.sin(angle + 0.4)
|
|
108
|
+
);
|
|
109
|
+
apb.close();
|
|
110
|
+
nodes.push(path(apb.build(), {
|
|
111
|
+
class: "chartts-lines-arrow",
|
|
112
|
+
fill: color,
|
|
113
|
+
fillOpacity: 0.8
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (showNodes) {
|
|
118
|
+
const nodeNodes = [];
|
|
119
|
+
let idx = 0;
|
|
120
|
+
for (const [name, pos] of pointMap) {
|
|
121
|
+
const color = options.colors[idx % options.colors.length];
|
|
122
|
+
nodeNodes.push(circle(pos.x, pos.y, 6, {
|
|
123
|
+
class: "chartts-lines-node",
|
|
124
|
+
fill: color,
|
|
125
|
+
stroke: theme.background === "transparent" ? "#fff" : theme.background,
|
|
126
|
+
strokeWidth: 2,
|
|
127
|
+
"data-series": idx,
|
|
128
|
+
"data-index": 0
|
|
129
|
+
}));
|
|
130
|
+
if (showLabels) {
|
|
131
|
+
nodeNodes.push(text(pos.x, pos.y - 14, name, {
|
|
132
|
+
class: "chartts-lines-label",
|
|
133
|
+
fill: theme.textColor,
|
|
134
|
+
textAnchor: "middle",
|
|
135
|
+
dominantBaseline: "auto",
|
|
136
|
+
fontSize: theme.fontSizeSmall,
|
|
137
|
+
fontFamily: theme.fontFamily,
|
|
138
|
+
fontWeight: 600
|
|
139
|
+
}));
|
|
140
|
+
}
|
|
141
|
+
idx++;
|
|
142
|
+
}
|
|
143
|
+
nodes.push(group(nodeNodes, { class: "chartts-lines-nodes" }));
|
|
144
|
+
}
|
|
145
|
+
return nodes;
|
|
146
|
+
},
|
|
147
|
+
hitTest(ctx, mx, my) {
|
|
148
|
+
const { options } = ctx;
|
|
149
|
+
const lOpts = options;
|
|
150
|
+
const pointMap = /* @__PURE__ */ new Map();
|
|
151
|
+
if (lOpts.points) {
|
|
152
|
+
const { area } = ctx;
|
|
153
|
+
for (const p of lOpts.points) {
|
|
154
|
+
pointMap.set(p.name, {
|
|
155
|
+
x: area.x + p.x * area.width,
|
|
156
|
+
y: area.y + p.y * area.height
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
let idx = 0;
|
|
161
|
+
for (const [, pos] of pointMap) {
|
|
162
|
+
const dx = mx - pos.x;
|
|
163
|
+
const dy = my - pos.y;
|
|
164
|
+
const dist = Math.sqrt(dx * dx + dy * dy);
|
|
165
|
+
if (dist < 12) {
|
|
166
|
+
return { seriesIndex: idx, pointIndex: 0, distance: dist };
|
|
167
|
+
}
|
|
168
|
+
idx++;
|
|
169
|
+
}
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
export { linesChartType };
|
|
175
|
+
//# sourceMappingURL=chunk-22LR6CFM.js.map
|
|
176
|
+
//# sourceMappingURL=chunk-22LR6CFM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/charts/lines/lines-type.ts"],"names":[],"mappings":";;;;AA4CO,IAAM,cAAA,GAAkC;AAAA,EAC7C,IAAA,EAAM,OAAA;AAAA,EAEN,aAAA,GAAgD;AAC9C,IAAA,OAAO,EAAE,CAAA,EAAG,aAAA,EAAe,CAAA,EAAG,QAAA,EAAS;AAAA,EACzC,CAAA;AAAA,EAEA,WAAA,CAAY,MAAiB,OAAA,EAAwC;AACnE,IAAA,OAAO,aAAA,CAAc,MAAM,OAAO,CAAA;AAAA,EACpC,CAAA;AAAA,EAEA,OAAO,GAAA,EAAkC;AACvC,IAAA,MAAM,EAAE,IAAA,EAAM,IAAA,EAAM,KAAA,EAAO,SAAQ,GAAI,GAAA;AACvC,IAAA,MAAM,QAAsB,EAAC;AAE7B,IAAA,MAAM,KAAA,GAAQ,OAAA;AACd,IAAA,MAAM,SAAA,GAAY,MAAM,SAAA,KAAc,KAAA;AACtC,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AAAA,UACvB,CAAA,EAAG,IAAA,CAAK,CAAA,GAAI,CAAA,CAAE,IAAI,IAAA,CAAK;AAAA,SACxB,CAAA;AAAA,MACH;AAAA,IACF;AAEA,IAAA,IAAI,GAAA,GAAM,CAAA;AACV,IAAA,KAAA,MAAW,GAAG,GAAG,CAAA,IAAK,QAAA,EAAU;AAC9B,MAAA,MAAM,EAAA,GAAK,KAAK,GAAA,CAAI,CAAA;AACpB,MAAA,MAAM,EAAA,GAAK,KAAK,GAAA,CAAI,CAAA;AACpB,MAAA,MAAM,OAAO,IAAA,CAAK,IAAA,CAAK,EAAA,GAAK,EAAA,GAAK,KAAK,EAAE,CAAA;AACxC,MAAA,IAAI,OAAO,EAAA,EAAI;AACb,QAAA,OAAO,EAAE,WAAA,EAAa,GAAA,EAAK,UAAA,EAAY,CAAA,EAAG,UAAU,IAAA,EAAK;AAAA,MAC3D;AACA,MAAA,GAAA,EAAA;AAAA,IACF;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AACF","file":"chunk-22LR6CFM.js","sourcesContent":["import type {\n ChartTypePlugin, ChartData, ResolvedOptions, PreparedData,\n RenderContext, RenderNode, HitResult, ScaleType,\n} from '../../types'\nimport { prepareNoAxes } from '../../utils/prepare'\nimport { circle, text, group } from '../../render/tree'\nimport { PathBuilder } from '../../render/tree'\nimport { path } from '../../render/tree'\n\n/**\n * Lines (flow lines) chart — curved connection lines between named points.\n *\n * Data convention:\n * - labels: point/city names\n * - series use arrow notation: \"A → B\" with values[0] = flow magnitude\n *\n * Options:\n * - points: array of {name, x, y} defining positions in 0..1 normalized space\n * - showNodes: show circles at point positions (default true)\n * - showArrows: show arrowheads (default true)\n * - showLabels: show point name labels (default true)\n * - curvature: bezier curve amount 0..1 (default 0.3)\n */\n\nexport interface LinesPoint {\n name: string\n x: number // 0..1 normalized\n y: number // 0..1 normalized\n}\n\nexport interface LinesOptions {\n points?: LinesPoint[]\n showNodes?: boolean\n showArrows?: boolean\n showLabels?: boolean\n curvature?: number\n}\n\ninterface ParsedFlow {\n source: string\n target: string\n value: number\n}\n\nexport const linesChartType: ChartTypePlugin = {\n type: 'lines',\n\n getScaleTypes(): { x: ScaleType; y: ScaleType } {\n return { x: 'categorical', y: 'linear' }\n },\n\n prepareData(data: ChartData, options: ResolvedOptions): PreparedData {\n return prepareNoAxes(data, options)\n },\n\n render(ctx: RenderContext): RenderNode[] {\n const { data, area, theme, options } = ctx\n const nodes: RenderNode[] = []\n\n const lOpts = options as unknown as LinesOptions\n const showNodes = lOpts.showNodes !== false\n const showArrows = lOpts.showArrows !== false\n const showLabels = lOpts.showLabels !== false\n const curvature = lOpts.curvature ?? 0.3\n\n // Build point positions\n const pointMap = new Map<string, { x: number; y: number }>()\n\n if (lOpts.points) {\n for (const p of lOpts.points) {\n pointMap.set(p.name, {\n x: area.x + p.x * area.width,\n y: area.y + p.y * area.height,\n })\n }\n } else {\n // Auto-layout: arrange points in a circle\n const names = new Set<string>()\n for (const s of data.series) {\n const parts = s.name.split(/\\s*(?:→|->)\\s*/)\n if (parts.length >= 2) {\n names.add(parts[0]!.trim())\n names.add(parts[1]!.trim())\n }\n }\n // Also add labels\n for (const l of data.labels) names.add(String(l))\n\n const nameArr = [...names]\n const cx = area.x + area.width / 2\n const cy = area.y + area.height / 2\n const r = Math.min(area.width, area.height) / 2 - 40\n\n nameArr.forEach((name, i) => {\n const angle = (i / nameArr.length) * Math.PI * 2 - Math.PI / 2\n pointMap.set(name, {\n x: cx + r * Math.cos(angle),\n y: cy + r * Math.sin(angle),\n })\n })\n }\n\n // Parse flows from series\n const flows: ParsedFlow[] = []\n for (const s of data.series) {\n const parts = s.name.split(/\\s*(?:→|->)\\s*/)\n if (parts.length >= 2) {\n flows.push({\n source: parts[0]!.trim(),\n target: parts[1]!.trim(),\n value: s.values[0] ?? 1,\n })\n }\n }\n\n if (flows.length === 0 && pointMap.size === 0) return nodes\n\n // Max flow for line width scaling\n const maxFlow = Math.max(...flows.map(f => Math.abs(f.value)), 1)\n\n // Render flow lines\n for (let fi = 0; fi < flows.length; fi++) {\n const flow = flows[fi]!\n const src = pointMap.get(flow.source)\n const tgt = pointMap.get(flow.target)\n if (!src || !tgt) continue\n\n const color = options.colors[fi % options.colors.length]!\n const lineWidth = 1 + (Math.abs(flow.value) / maxFlow) * 4\n\n // Curved bezier\n const dx = tgt.x - src.x\n const dy = tgt.y - src.y\n const mx = (src.x + tgt.x) / 2\n const my = (src.y + tgt.y) / 2\n const cpx = mx - dy * curvature\n const cpy = my + dx * curvature\n\n const pb = new PathBuilder()\n pb.moveTo(src.x, src.y)\n pb.quadTo(cpx, cpy, tgt.x, tgt.y)\n\n nodes.push(path(pb.build(), {\n class: 'chartts-lines-flow',\n fill: 'none',\n stroke: color,\n strokeWidth: lineWidth,\n strokeOpacity: 0.6,\n strokeLinecap: 'round',\n 'data-series': fi,\n 'data-index': 0,\n tabindex: 0,\n role: 'img',\n ariaLabel: `${flow.source} → ${flow.target}: ${flow.value}`,\n }))\n\n // Arrowhead at target\n if (showArrows) {\n const t = 0.95 // position along curve for arrow direction\n const ax = (1 - t) * (1 - t) * src.x + 2 * (1 - t) * t * cpx + t * t * tgt.x\n const ay = (1 - t) * (1 - t) * src.y + 2 * (1 - t) * t * cpy + t * t * tgt.y\n const angle = Math.atan2(tgt.y - ay, tgt.x - ax)\n const arrowSize = 6 + lineWidth\n\n const apb = new PathBuilder()\n apb.moveTo(tgt.x, tgt.y)\n apb.lineTo(\n tgt.x - arrowSize * Math.cos(angle - 0.4),\n tgt.y - arrowSize * Math.sin(angle - 0.4),\n )\n apb.lineTo(\n tgt.x - arrowSize * Math.cos(angle + 0.4),\n tgt.y - arrowSize * Math.sin(angle + 0.4),\n )\n apb.close()\n\n nodes.push(path(apb.build(), {\n class: 'chartts-lines-arrow',\n fill: color,\n fillOpacity: 0.8,\n }))\n }\n }\n\n // Render nodes\n if (showNodes) {\n const nodeNodes: RenderNode[] = []\n let idx = 0\n for (const [name, pos] of pointMap) {\n const color = options.colors[idx % options.colors.length]!\n\n nodeNodes.push(circle(pos.x, pos.y, 6, {\n class: 'chartts-lines-node',\n fill: color,\n stroke: theme.background === 'transparent' ? '#fff' : theme.background,\n strokeWidth: 2,\n 'data-series': idx,\n 'data-index': 0,\n }))\n\n if (showLabels) {\n nodeNodes.push(text(pos.x, pos.y - 14, name, {\n class: 'chartts-lines-label',\n fill: theme.textColor,\n textAnchor: 'middle',\n dominantBaseline: 'auto',\n fontSize: theme.fontSizeSmall,\n fontFamily: theme.fontFamily,\n fontWeight: 600,\n }))\n }\n idx++\n }\n nodes.push(group(nodeNodes, { class: 'chartts-lines-nodes' }))\n }\n\n return nodes\n },\n\n hitTest(ctx: RenderContext, mx: number, my: number): HitResult | null {\n const { options } = ctx\n const lOpts = options as unknown as LinesOptions\n const pointMap = new Map<string, { x: number; y: number }>()\n\n if (lOpts.points) {\n const { area } = ctx\n for (const p of lOpts.points) {\n pointMap.set(p.name, {\n x: area.x + p.x * area.width,\n y: area.y + p.y * area.height,\n })\n }\n }\n\n let idx = 0\n for (const [, pos] of pointMap) {\n const dx = mx - pos.x\n const dy = my - pos.y\n const dist = Math.sqrt(dx * dx + dy * dy)\n if (dist < 12) {\n return { seriesIndex: idx, pointIndex: 0, distance: dist }\n }\n idx++\n }\n return null\n },\n}\n"]}
|