@oceandesign-next/charts 0.0.0-stage → 1.0.0-next.1
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/LICENSE +22 -0
- package/dist/THIRD_PARTY_NOTICES.txt +2976 -0
- package/dist/announce-VO76XEYK.browser.js +2 -0
- package/dist/announce-VO76XEYK.js +13 -0
- package/dist/announce-VO76XEYK.js.map +6 -0
- package/dist/area/index.browser.js +4 -0
- package/dist/area/index.css +29 -0
- package/dist/area/index.css.map +6 -0
- package/dist/area/index.d.ts +11 -0
- package/dist/area/index.js +16 -0
- package/dist/area/index.js.map +6 -0
- package/dist/bar/index.browser.js +4 -0
- package/dist/bar/index.css +29 -0
- package/dist/bar/index.css.map +6 -0
- package/dist/bar/index.d.ts +16 -0
- package/dist/bar/index.js +16 -0
- package/dist/bar/index.js.map +6 -0
- package/dist/bidirectional-bar/index.browser.js +4 -0
- package/dist/bidirectional-bar/index.css +29 -0
- package/dist/bidirectional-bar/index.css.map +6 -0
- package/dist/bidirectional-bar/index.d.ts +6 -0
- package/dist/bidirectional-bar/index.js +14 -0
- package/dist/bidirectional-bar/index.js.map +6 -0
- package/dist/box/index.browser.js +4 -0
- package/dist/box/index.css +29 -0
- package/dist/box/index.css.map +6 -0
- package/dist/box/index.d.ts +6 -0
- package/dist/box/index.js +14 -0
- package/dist/box/index.js.map +6 -0
- package/dist/bullet/index.browser.js +4 -0
- package/dist/bullet/index.css +29 -0
- package/dist/bullet/index.css.map +6 -0
- package/dist/bullet/index.d.ts +6 -0
- package/dist/bullet/index.js +14 -0
- package/dist/bullet/index.js.map +6 -0
- package/dist/chart-provider/index.browser.js +3 -0
- package/dist/chart-provider/index.d.ts +17 -0
- package/dist/chart-provider/index.js +13 -0
- package/dist/chart-provider/index.js.map +6 -0
- package/dist/chord/index.browser.js +4 -0
- package/dist/chord/index.css +29 -0
- package/dist/chord/index.css.map +6 -0
- package/dist/chord/index.d.ts +6 -0
- package/dist/chord/index.js +14 -0
- package/dist/chord/index.js.map +6 -0
- package/dist/chunk-25ZIIMYZ.js +53 -0
- package/dist/chunk-25ZIIMYZ.js.map +6 -0
- package/dist/chunk-27BWUEHJ.js +25 -0
- package/dist/chunk-27BWUEHJ.js.map +6 -0
- package/dist/chunk-2QGGUYYY.js +65 -0
- package/dist/chunk-2QGGUYYY.js.map +6 -0
- package/dist/chunk-3TA337BG.js +15 -0
- package/dist/chunk-3TA337BG.js.map +6 -0
- package/dist/chunk-4JZTGD2I.js +32 -0
- package/dist/chunk-4JZTGD2I.js.map +6 -0
- package/dist/chunk-4N7QFNEX.js +10086 -0
- package/dist/chunk-4N7QFNEX.js.map +6 -0
- package/dist/chunk-5C3VRSBP.js +15 -0
- package/dist/chunk-5C3VRSBP.js.map +6 -0
- package/dist/chunk-5SAKSJEI.js +15 -0
- package/dist/chunk-5SAKSJEI.js.map +6 -0
- package/dist/chunk-5XL4RCIO.js +108 -0
- package/dist/chunk-5XL4RCIO.js.map +6 -0
- package/dist/chunk-65CM4Q5O.js +126 -0
- package/dist/chunk-65CM4Q5O.js.map +6 -0
- package/dist/chunk-6UJBK43S.js +58 -0
- package/dist/chunk-6UJBK43S.js.map +6 -0
- package/dist/chunk-7CWTKTUP.js +15 -0
- package/dist/chunk-7CWTKTUP.js.map +6 -0
- package/dist/chunk-7HTRVNC2.js +31 -0
- package/dist/chunk-7HTRVNC2.js.map +6 -0
- package/dist/chunk-7QZAXPKM.js +15 -0
- package/dist/chunk-7QZAXPKM.js.map +6 -0
- package/dist/chunk-7VVXPNBC.js +27 -0
- package/dist/chunk-7VVXPNBC.js.map +6 -0
- package/dist/chunk-ACLUGRQA.js +3238 -0
- package/dist/chunk-ACLUGRQA.js.map +6 -0
- package/dist/chunk-BHEZX264.js +4009 -0
- package/dist/chunk-BHEZX264.js.map +6 -0
- package/dist/chunk-C5K4ZUUY.js +49 -0
- package/dist/chunk-C5K4ZUUY.js.map +6 -0
- package/dist/chunk-CDBUMLXE.js +3530 -0
- package/dist/chunk-CDBUMLXE.js.map +6 -0
- package/dist/chunk-CTZ4UZLL.js +15 -0
- package/dist/chunk-CTZ4UZLL.js.map +6 -0
- package/dist/chunk-E35R6IAI.js +73 -0
- package/dist/chunk-E35R6IAI.js.map +6 -0
- package/dist/chunk-E4O57OSB.js +124 -0
- package/dist/chunk-E4O57OSB.js.map +6 -0
- package/dist/chunk-EIPPXQHA.js +61 -0
- package/dist/chunk-EIPPXQHA.js.map +6 -0
- package/dist/chunk-EN42FWLW.js +15 -0
- package/dist/chunk-EN42FWLW.js.map +6 -0
- package/dist/chunk-EUZXQRYT.js +89436 -0
- package/dist/chunk-EUZXQRYT.js.map +6 -0
- package/dist/chunk-FL732P2Z.js +49 -0
- package/dist/chunk-FL732P2Z.js.map +6 -0
- package/dist/chunk-FVD54Z5U.js +15 -0
- package/dist/chunk-FVD54Z5U.js.map +6 -0
- package/dist/chunk-GLEOAYJM.js +50 -0
- package/dist/chunk-GLEOAYJM.js.map +6 -0
- package/dist/chunk-H674ZB3X.js +15 -0
- package/dist/chunk-H674ZB3X.js.map +6 -0
- package/dist/chunk-J6WHJJOU.js +18 -0
- package/dist/chunk-J6WHJJOU.js.map +6 -0
- package/dist/chunk-JVPIX7BV.js +15 -0
- package/dist/chunk-JVPIX7BV.js.map +6 -0
- package/dist/chunk-KRL5CJSP.js +15 -0
- package/dist/chunk-KRL5CJSP.js.map +6 -0
- package/dist/chunk-L5KK6DHG.js +45 -0
- package/dist/chunk-L5KK6DHG.js.map +6 -0
- package/dist/chunk-LPTXWQ2A.js +15 -0
- package/dist/chunk-LPTXWQ2A.js.map +6 -0
- package/dist/chunk-LPVSKK2M.js +218 -0
- package/dist/chunk-LPVSKK2M.js.map +6 -0
- package/dist/chunk-LTLWYV3B.js +53 -0
- package/dist/chunk-LTLWYV3B.js.map +6 -0
- package/dist/chunk-MC65GNVE.js +15 -0
- package/dist/chunk-MC65GNVE.js.map +6 -0
- package/dist/chunk-MD5VNILI.js +15 -0
- package/dist/chunk-MD5VNILI.js.map +6 -0
- package/dist/chunk-MI3Y33DH.js +66 -0
- package/dist/chunk-MI3Y33DH.js.map +6 -0
- package/dist/chunk-MV7L5O54.js +14 -0
- package/dist/chunk-MV7L5O54.js.map +6 -0
- package/dist/chunk-N34BBVXG.js +209 -0
- package/dist/chunk-N34BBVXG.js.map +6 -0
- package/dist/chunk-N53YQY4I.js +15 -0
- package/dist/chunk-N53YQY4I.js.map +6 -0
- package/dist/chunk-NKVX6ENR.js +75 -0
- package/dist/chunk-NKVX6ENR.js.map +6 -0
- package/dist/chunk-NTEP2K5D.js +110 -0
- package/dist/chunk-NTEP2K5D.js.map +6 -0
- package/dist/chunk-PG3HYCG5.js +15 -0
- package/dist/chunk-PG3HYCG5.js.map +6 -0
- package/dist/chunk-PW7ML5VZ.js +15 -0
- package/dist/chunk-PW7ML5VZ.js.map +6 -0
- package/dist/chunk-QGHRRR5T.js +15 -0
- package/dist/chunk-QGHRRR5T.js.map +6 -0
- package/dist/chunk-RJA36HUN.js +15 -0
- package/dist/chunk-RJA36HUN.js.map +6 -0
- package/dist/chunk-SHVOQJSL.js +50 -0
- package/dist/chunk-SHVOQJSL.js.map +6 -0
- package/dist/chunk-SUENZLGA.js +15 -0
- package/dist/chunk-SUENZLGA.js.map +6 -0
- package/dist/chunk-UBFQGG7O.js +65 -0
- package/dist/chunk-UBFQGG7O.js.map +6 -0
- package/dist/chunk-WFP2BMMV.js +73 -0
- package/dist/chunk-WFP2BMMV.js.map +6 -0
- package/dist/chunk-WM5W2GTO.js +53 -0
- package/dist/chunk-WM5W2GTO.js.map +6 -0
- package/dist/chunk-XY5B64AW.js +273 -0
- package/dist/chunk-XY5B64AW.js.map +6 -0
- package/dist/chunk-Y2U5HO43.js +113 -0
- package/dist/chunk-Y2U5HO43.js.map +6 -0
- package/dist/chunk-YT65SUKQ.js +15 -0
- package/dist/chunk-YT65SUKQ.js.map +6 -0
- package/dist/chunk-YXOYFXIL.js +52 -0
- package/dist/chunk-YXOYFXIL.js.map +6 -0
- package/dist/chunk-ZCVR5DDQ.js +980 -0
- package/dist/chunk-ZCVR5DDQ.js.map +6 -0
- package/dist/circle-packing/index.browser.js +4 -0
- package/dist/circle-packing/index.css +29 -0
- package/dist/circle-packing/index.css.map +6 -0
- package/dist/circle-packing/index.d.ts +6 -0
- package/dist/circle-packing/index.js +14 -0
- package/dist/circle-packing/index.js.map +6 -0
- package/dist/client-FRZH3CDP.browser.js +3 -0
- package/dist/client-FRZH3CDP.js +46855 -0
- package/dist/client-FRZH3CDP.js.map +6 -0
- package/dist/client-H3O66XVO.css +1528 -0
- package/dist/client-H3O66XVO.css.map +6 -0
- package/dist/client-visualization.d.ts +1 -0
- package/dist/column/index.browser.js +4 -0
- package/dist/column/index.css +29 -0
- package/dist/column/index.css.map +6 -0
- package/dist/column/index.d.ts +11 -0
- package/dist/column/index.js +16 -0
- package/dist/column/index.js.map +6 -0
- package/dist/dual-axes/index.browser.js +4 -0
- package/dist/dual-axes/index.css +29 -0
- package/dist/dual-axes/index.css.map +6 -0
- package/dist/dual-axes/index.d.ts +11 -0
- package/dist/dual-axes/index.js +16 -0
- package/dist/dual-axes/index.js.map +6 -0
- package/dist/es-6LNOHJAR.browser.js +2 -0
- package/dist/es-6LNOHJAR.js +86671 -0
- package/dist/es-6LNOHJAR.js.map +6 -0
- package/dist/es-PCWNJLQB.browser.js +2 -0
- package/dist/es-PCWNJLQB.js +13699 -0
- package/dist/es-PCWNJLQB.js.map +6 -0
- package/dist/facet/index.browser.js +4 -0
- package/dist/facet/index.css +29 -0
- package/dist/facet/index.css.map +6 -0
- package/dist/facet/index.d.ts +6 -0
- package/dist/facet/index.js +14 -0
- package/dist/facet/index.js.map +6 -0
- package/dist/findable-rows-7ADT7E7V.browser.js +2 -0
- package/dist/findable-rows-7ADT7E7V.js +356 -0
- package/dist/findable-rows-7ADT7E7V.js.map +6 -0
- package/dist/flowchart/client.d.ts +3 -0
- package/dist/flowchart/color-field.d.ts +3 -0
- package/dist/flowchart/commands.d.ts +189 -0
- package/dist/flowchart/context.d.ts +27 -0
- package/dist/flowchart/data.d.ts +7 -0
- package/dist/flowchart/fields.d.ts +60 -0
- package/dist/flowchart/icon-store.d.ts +7 -0
- package/dist/flowchart/index.browser.js +4 -0
- package/dist/flowchart/index.css +2134 -0
- package/dist/flowchart/index.css.map +6 -0
- package/dist/flowchart/index.d.ts +13 -0
- package/dist/flowchart/index.js +54 -0
- package/dist/flowchart/index.js.map +6 -0
- package/dist/flowchart/keybinding.d.ts +29 -0
- package/dist/flowchart/schema-data.d.ts +11 -0
- package/dist/flowchart/toolbar.d.ts +3 -0
- package/dist/flowchart/types.d.ts +309 -0
- package/dist/funnel/index.browser.js +4 -0
- package/dist/funnel/index.css +29 -0
- package/dist/funnel/index.css.map +6 -0
- package/dist/funnel/index.d.ts +6 -0
- package/dist/funnel/index.js +14 -0
- package/dist/funnel/index.js.map +6 -0
- package/dist/gauge/index.browser.js +4 -0
- package/dist/gauge/index.css +29 -0
- package/dist/gauge/index.css.map +6 -0
- package/dist/gauge/index.d.ts +11 -0
- package/dist/gauge/index.js +16 -0
- package/dist/gauge/index.js.map +6 -0
- package/dist/graphs/canvas-contrast.d.ts +7 -0
- package/dist/graphs/index.browser.js +2 -0
- package/dist/graphs/index.d.ts +22 -0
- package/dist/graphs/index.js +47 -0
- package/dist/graphs/index.js.map +6 -0
- package/dist/graphs/sample-data.d.ts +35 -0
- package/dist/heatmap/index.browser.js +4 -0
- package/dist/heatmap/index.css +29 -0
- package/dist/heatmap/index.css.map +6 -0
- package/dist/heatmap/index.d.ts +6 -0
- package/dist/heatmap/index.js +14 -0
- package/dist/heatmap/index.js.map +6 -0
- package/dist/histogram/index.browser.js +4 -0
- package/dist/histogram/index.css +29 -0
- package/dist/histogram/index.css.map +6 -0
- package/dist/histogram/index.d.ts +11 -0
- package/dist/histogram/index.js +16 -0
- package/dist/histogram/index.js.map +6 -0
- package/dist/index.browser.js +3 -0
- package/dist/index.css +2275 -0
- package/dist/index.css.map +6 -0
- package/dist/index.d.ts +87 -0
- package/dist/index.js +680 -0
- package/dist/index.js.map +6 -0
- package/dist/line/index.browser.js +4 -0
- package/dist/line/index.css +29 -0
- package/dist/line/index.css.map +6 -0
- package/dist/line/index.d.ts +15 -0
- package/dist/line/index.js +14 -0
- package/dist/line/index.js.map +6 -0
- package/dist/liquid/index.browser.js +4 -0
- package/dist/liquid/index.css +29 -0
- package/dist/liquid/index.css.map +6 -0
- package/dist/liquid/index.d.ts +22 -0
- package/dist/liquid/index.js +16 -0
- package/dist/liquid/index.js.map +6 -0
- package/dist/maps/index.browser.js +2 -0
- package/dist/maps/index.d.ts +9 -0
- package/dist/maps/index.js +24 -0
- package/dist/maps/index.js.map +6 -0
- package/dist/maps/sample-data.d.ts +97 -0
- package/dist/mix/index.browser.js +4 -0
- package/dist/mix/index.css +29 -0
- package/dist/mix/index.css.map +6 -0
- package/dist/mix/index.d.ts +6 -0
- package/dist/mix/index.js +14 -0
- package/dist/mix/index.js.map +6 -0
- package/dist/pie/index.browser.js +4 -0
- package/dist/pie/index.css +29 -0
- package/dist/pie/index.css.map +6 -0
- package/dist/pie/index.d.ts +27 -0
- package/dist/pie/index.js +17 -0
- package/dist/pie/index.js.map +6 -0
- package/dist/plot/cartesian.d.ts +9 -0
- package/dist/plot/chart-contrast.d.ts +5 -0
- package/dist/plot/chart-loading.d.ts +5 -0
- package/dist/plot/metric-text.d.ts +1 -0
- package/dist/plot/metrics.d.ts +9 -0
- package/dist/plot/native-plot.d.ts +10 -0
- package/dist/plot/plot-surface.d.ts +33 -0
- package/dist/plot/props.d.ts +15 -0
- package/dist/plot/tooltip.d.ts +14 -0
- package/dist/plot/types.d.ts +15 -0
- package/dist/progress/index.browser.js +4 -0
- package/dist/progress/index.css +29 -0
- package/dist/progress/index.css.map +6 -0
- package/dist/progress/index.d.ts +22 -0
- package/dist/progress/index.js +16 -0
- package/dist/progress/index.js.map +6 -0
- package/dist/radar/index.browser.js +4 -0
- package/dist/radar/index.css +29 -0
- package/dist/radar/index.css.map +6 -0
- package/dist/radar/index.d.ts +6 -0
- package/dist/radar/index.js +14 -0
- package/dist/radar/index.js.map +6 -0
- package/dist/radial-bar/index.browser.js +4 -0
- package/dist/radial-bar/index.css +29 -0
- package/dist/radial-bar/index.css.map +6 -0
- package/dist/radial-bar/index.d.ts +6 -0
- package/dist/radial-bar/index.js +14 -0
- package/dist/radial-bar/index.js.map +6 -0
- package/dist/ring-progress/index.browser.js +4 -0
- package/dist/ring-progress/index.css +29 -0
- package/dist/ring-progress/index.css.map +6 -0
- package/dist/ring-progress/index.d.ts +6 -0
- package/dist/ring-progress/index.js +14 -0
- package/dist/ring-progress/index.js.map +6 -0
- package/dist/rose/index.browser.js +4 -0
- package/dist/rose/index.css +29 -0
- package/dist/rose/index.css.map +6 -0
- package/dist/rose/index.d.ts +6 -0
- package/dist/rose/index.js +14 -0
- package/dist/rose/index.js.map +6 -0
- package/dist/sankey/index.browser.js +4 -0
- package/dist/sankey/index.css +29 -0
- package/dist/sankey/index.css.map +6 -0
- package/dist/sankey/index.d.ts +6 -0
- package/dist/sankey/index.js +14 -0
- package/dist/sankey/index.js.map +6 -0
- package/dist/scatter/index.browser.js +4 -0
- package/dist/scatter/index.css +29 -0
- package/dist/scatter/index.css.map +6 -0
- package/dist/scatter/index.d.ts +6 -0
- package/dist/scatter/index.js +14 -0
- package/dist/scatter/index.js.map +6 -0
- package/dist/score/index.browser.js +4 -0
- package/dist/score/index.css +73 -0
- package/dist/score/index.css.map +6 -0
- package/dist/score/index.d.ts +15 -0
- package/dist/score/index.js +14 -0
- package/dist/score/index.js.map +6 -0
- package/dist/stat/index.browser.js +4 -0
- package/dist/stat/index.css +68 -0
- package/dist/stat/index.css.map +6 -0
- package/dist/stat/index.d.ts +23 -0
- package/dist/stat/index.js +19 -0
- package/dist/stat/index.js.map +6 -0
- package/dist/stock/index.browser.js +4 -0
- package/dist/stock/index.css +29 -0
- package/dist/stock/index.css.map +6 -0
- package/dist/stock/index.d.ts +6 -0
- package/dist/stock/index.js +14 -0
- package/dist/stock/index.js.map +6 -0
- package/dist/sunburst/index.browser.js +4 -0
- package/dist/sunburst/index.css +29 -0
- package/dist/sunburst/index.css.map +6 -0
- package/dist/sunburst/index.d.ts +6 -0
- package/dist/sunburst/index.js +14 -0
- package/dist/sunburst/index.js.map +6 -0
- package/dist/theme/presets.d.ts +165 -0
- package/dist/tiny-area/index.browser.js +4 -0
- package/dist/tiny-area/index.css +29 -0
- package/dist/tiny-area/index.css.map +6 -0
- package/dist/tiny-area/index.d.ts +12 -0
- package/dist/tiny-area/index.js +15 -0
- package/dist/tiny-area/index.js.map +6 -0
- package/dist/tiny-column/index.browser.js +4 -0
- package/dist/tiny-column/index.css +29 -0
- package/dist/tiny-column/index.css.map +6 -0
- package/dist/tiny-column/index.d.ts +16 -0
- package/dist/tiny-column/index.js +15 -0
- package/dist/tiny-column/index.js.map +6 -0
- package/dist/tiny-line/index.browser.js +4 -0
- package/dist/tiny-line/index.css +29 -0
- package/dist/tiny-line/index.css.map +6 -0
- package/dist/tiny-line/index.d.ts +11 -0
- package/dist/tiny-line/index.js +15 -0
- package/dist/tiny-line/index.js.map +6 -0
- package/dist/treemap/index.browser.js +4 -0
- package/dist/treemap/index.css +29 -0
- package/dist/treemap/index.css.map +6 -0
- package/dist/treemap/index.d.ts +6 -0
- package/dist/treemap/index.js +14 -0
- package/dist/treemap/index.js.map +6 -0
- package/dist/venn/index.browser.js +4 -0
- package/dist/venn/index.css +29 -0
- package/dist/venn/index.css.map +6 -0
- package/dist/venn/index.d.ts +6 -0
- package/dist/venn/index.js +14 -0
- package/dist/venn/index.js.map +6 -0
- package/dist/violin/index.browser.js +4 -0
- package/dist/violin/index.css +29 -0
- package/dist/violin/index.css.map +6 -0
- package/dist/violin/index.d.ts +6 -0
- package/dist/violin/index.js +14 -0
- package/dist/violin/index.js.map +6 -0
- package/dist/waterfall/index.browser.js +4 -0
- package/dist/waterfall/index.css +29 -0
- package/dist/waterfall/index.css.map +6 -0
- package/dist/waterfall/index.d.ts +6 -0
- package/dist/waterfall/index.js +14 -0
- package/dist/waterfall/index.js.map +6 -0
- package/dist/word-cloud/index.browser.js +4 -0
- package/dist/word-cloud/index.css +29 -0
- package/dist/word-cloud/index.css.map +6 -0
- package/dist/word-cloud/index.d.ts +6 -0
- package/dist/word-cloud/index.js +14 -0
- package/dist/word-cloud/index.js.map +6 -0
- package/package.json +337 -3
- package/README.md +0 -3
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* src/plot/plot.css */
|
|
2
|
+
[data-ob-plot] {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
[data-ob-plot-view],
|
|
6
|
+
[data-ob-plot-canvas] {
|
|
7
|
+
min-inline-size: 0;
|
|
8
|
+
inline-size: 100%;
|
|
9
|
+
block-size: 100%;
|
|
10
|
+
}
|
|
11
|
+
[data-ob-plot-overlay] {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
display: grid;
|
|
15
|
+
place-items: center;
|
|
16
|
+
}
|
|
17
|
+
[data-ob-plot-loading] {
|
|
18
|
+
z-index: 99;
|
|
19
|
+
background: #fff;
|
|
20
|
+
}
|
|
21
|
+
[data-ob-plot-loading=dark] {
|
|
22
|
+
background: #141414;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
[data-ob-plot-shimmer] {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/plot/plot.css"],
|
|
4
|
+
"mappings": ";AAAA,CAAC;AACC,YAAU;AACZ;AAEA,CAAC;AACD,CAAC;AACC,mBAAiB;AACjB,eAAa;AACb,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,WAAS;AACT,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,QAAO,wBAAyB;AAC9B,GAAC;AACC,aAAS;AACX;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Line as LinePlot } from '@antv/g2plot';
|
|
2
|
+
import type { LineOptions } from '@antv/g2plot';
|
|
3
|
+
import type { Theme } from '../chart-provider';
|
|
4
|
+
import type { PlotContainerProps, PlotHandle } from '../plot/plot-surface';
|
|
5
|
+
import type { Tooltip } from '../plot/tooltip';
|
|
6
|
+
type LineArea = NonNullable<LineOptions['area']> & {
|
|
7
|
+
gradientFill?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export interface LineConfig extends Omit<LineOptions, 'theme' | 'area' | 'tooltip'>, PlotContainerProps<LinePlot> {
|
|
10
|
+
theme?: Theme;
|
|
11
|
+
area?: LineArea;
|
|
12
|
+
tooltip?: false | Tooltip;
|
|
13
|
+
}
|
|
14
|
+
export declare const Line: import("react").ForwardRefExoticComponent<LineConfig & import("react").RefAttributes<PlotHandle<LinePlot>>>;
|
|
15
|
+
export default Line;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import {
|
|
3
|
+
Line,
|
|
4
|
+
line_default
|
|
5
|
+
} from "../chunk-5XL4RCIO.js";
|
|
6
|
+
import "../chunk-XY5B64AW.js";
|
|
7
|
+
import "../chunk-LPVSKK2M.js";
|
|
8
|
+
import "../chunk-ACLUGRQA.js";
|
|
9
|
+
import "../chunk-YXOYFXIL.js";
|
|
10
|
+
export {
|
|
11
|
+
Line,
|
|
12
|
+
line_default as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* src/plot/plot.css */
|
|
2
|
+
[data-ob-plot] {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
[data-ob-plot-view],
|
|
6
|
+
[data-ob-plot-canvas] {
|
|
7
|
+
min-inline-size: 0;
|
|
8
|
+
inline-size: 100%;
|
|
9
|
+
block-size: 100%;
|
|
10
|
+
}
|
|
11
|
+
[data-ob-plot-overlay] {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
display: grid;
|
|
15
|
+
place-items: center;
|
|
16
|
+
}
|
|
17
|
+
[data-ob-plot-loading] {
|
|
18
|
+
z-index: 99;
|
|
19
|
+
background: #fff;
|
|
20
|
+
}
|
|
21
|
+
[data-ob-plot-loading=dark] {
|
|
22
|
+
background: #141414;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
[data-ob-plot-shimmer] {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/plot/plot.css"],
|
|
4
|
+
"mappings": ";AAAA,CAAC;AACC,YAAU;AACZ;AAEA,CAAC;AACD,CAAC;AACC,mBAAiB;AACjB,eAAa;AACb,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,WAAS;AACT,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,QAAO,wBAAyB;AAC9B,GAAC;AACC,aAAS;AACX;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Liquid as LiquidPlot } from '@antv/g2plot';
|
|
2
|
+
import type { LiquidOptions } from '@antv/g2plot';
|
|
3
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
4
|
+
import type { PlotHandle } from '../plot/plot-surface';
|
|
5
|
+
import type { ChartConfig } from '../plot/props';
|
|
6
|
+
interface LiquidAppearance {
|
|
7
|
+
layout?: 'horizontal' | 'vertical';
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
warningPercent?: number;
|
|
10
|
+
dangerPercent?: number;
|
|
11
|
+
decimal?: number;
|
|
12
|
+
containerStyle?: CSSProperties;
|
|
13
|
+
percentStyle?: CSSProperties;
|
|
14
|
+
titleStyle?: CSSProperties;
|
|
15
|
+
}
|
|
16
|
+
export type LiquidConfig = ChartConfig<LiquidOptions, LiquidPlot, LiquidAppearance>;
|
|
17
|
+
export declare const Liquid: import("react").ForwardRefExoticComponent<Omit<Omit<LiquidOptions, "theme" | keyof import("../plot/plot-surface").PlotContainerProps<Instance>>, "tooltip"> & {
|
|
18
|
+
tooltip?: false | import("..").Tooltip;
|
|
19
|
+
} & LiquidAppearance & import("../plot/plot-surface").PlotContainerProps<LiquidPlot> & {
|
|
20
|
+
theme?: import("..").Theme;
|
|
21
|
+
} & import("react").RefAttributes<PlotHandle<LiquidPlot>>>;
|
|
22
|
+
export default Liquid;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import {
|
|
3
|
+
Liquid,
|
|
4
|
+
liquid_default
|
|
5
|
+
} from "../chunk-65CM4Q5O.js";
|
|
6
|
+
import "../chunk-GLEOAYJM.js";
|
|
7
|
+
import "../chunk-7VVXPNBC.js";
|
|
8
|
+
import "../chunk-XY5B64AW.js";
|
|
9
|
+
import "../chunk-LPVSKK2M.js";
|
|
10
|
+
import "../chunk-ACLUGRQA.js";
|
|
11
|
+
import "../chunk-YXOYFXIL.js";
|
|
12
|
+
export {
|
|
13
|
+
Liquid,
|
|
14
|
+
liquid_default as default
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const AreaMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").AreaMapConfig & import("react").RefAttributes<unknown>>;
|
|
2
|
+
export declare const ChoroplethMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").ChoroplethMapConfig & import("react").RefAttributes<unknown>>;
|
|
3
|
+
export declare const DotMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").DotMapConfig & import("react").RefAttributes<unknown>>;
|
|
4
|
+
export declare const FlowMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").FlowMapConfig & import("react").RefAttributes<unknown>>;
|
|
5
|
+
export declare const GeographicHeatmap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").GeographicHeatmapConfig & import("react").RefAttributes<unknown>>;
|
|
6
|
+
export declare const GridMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").GridMapConfig & import("react").RefAttributes<unknown>>;
|
|
7
|
+
export declare const HexbinMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").HexbinMapConfig & import("react").RefAttributes<unknown>>;
|
|
8
|
+
export declare const PathMap: import("react").ForwardRefExoticComponent<import("@ant-design/maps").PathMapConfig & import("react").RefAttributes<unknown>>;
|
|
9
|
+
export type { AreaMapConfig, ChoroplethMapConfig, DotMapConfig, FlowMapConfig, GeographicHeatmapConfig, GridMapConfig, HexbinMapConfig, MapContainerConfig, PathMapConfig, PlotRef, } from '@ant-design/maps';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import {
|
|
3
|
+
AreaMap,
|
|
4
|
+
ChoroplethMap,
|
|
5
|
+
DotMap,
|
|
6
|
+
FlowMap,
|
|
7
|
+
GeographicHeatmap,
|
|
8
|
+
GridMap,
|
|
9
|
+
HexbinMap,
|
|
10
|
+
PathMap
|
|
11
|
+
} from "../chunk-4JZTGD2I.js";
|
|
12
|
+
import "../chunk-27BWUEHJ.js";
|
|
13
|
+
import "../chunk-YXOYFXIL.js";
|
|
14
|
+
export {
|
|
15
|
+
AreaMap,
|
|
16
|
+
ChoroplethMap,
|
|
17
|
+
DotMap,
|
|
18
|
+
FlowMap,
|
|
19
|
+
GeographicHeatmap,
|
|
20
|
+
GridMap,
|
|
21
|
+
HexbinMap,
|
|
22
|
+
PathMap
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export declare const mapOptions: {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
map: {
|
|
5
|
+
type: "map";
|
|
6
|
+
center: [number, number];
|
|
7
|
+
zoom: number;
|
|
8
|
+
};
|
|
9
|
+
logo: false;
|
|
10
|
+
preserveDrawingBuffer: true;
|
|
11
|
+
};
|
|
12
|
+
export declare const sites: {
|
|
13
|
+
site: string;
|
|
14
|
+
lng: number;
|
|
15
|
+
lat: number;
|
|
16
|
+
value: number;
|
|
17
|
+
}[];
|
|
18
|
+
export declare const points: {
|
|
19
|
+
readonly data: {
|
|
20
|
+
site: string;
|
|
21
|
+
lng: number;
|
|
22
|
+
lat: number;
|
|
23
|
+
value: number;
|
|
24
|
+
}[];
|
|
25
|
+
readonly parser: {
|
|
26
|
+
readonly type: "json";
|
|
27
|
+
readonly x: "lng";
|
|
28
|
+
readonly y: "lat";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const aggregates: {
|
|
32
|
+
readonly aggregation: {
|
|
33
|
+
readonly field: "value";
|
|
34
|
+
readonly radius: 35000;
|
|
35
|
+
readonly method: "sum";
|
|
36
|
+
};
|
|
37
|
+
readonly data: {
|
|
38
|
+
site: string;
|
|
39
|
+
lng: number;
|
|
40
|
+
lat: number;
|
|
41
|
+
value: number;
|
|
42
|
+
}[];
|
|
43
|
+
readonly parser: {
|
|
44
|
+
readonly type: "json";
|
|
45
|
+
readonly x: "lng";
|
|
46
|
+
readonly y: "lat";
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const boundary: {
|
|
50
|
+
type: "FeatureCollection";
|
|
51
|
+
features: {
|
|
52
|
+
type: "Feature";
|
|
53
|
+
properties: {
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
geometry: {
|
|
57
|
+
type: "Polygon";
|
|
58
|
+
coordinates: number[][][];
|
|
59
|
+
};
|
|
60
|
+
}[];
|
|
61
|
+
};
|
|
62
|
+
export declare const routes: {
|
|
63
|
+
type: "FeatureCollection";
|
|
64
|
+
features: {
|
|
65
|
+
type: "Feature";
|
|
66
|
+
properties: {
|
|
67
|
+
name: string;
|
|
68
|
+
value: number;
|
|
69
|
+
};
|
|
70
|
+
geometry: {
|
|
71
|
+
type: "LineString";
|
|
72
|
+
coordinates: number[][];
|
|
73
|
+
};
|
|
74
|
+
}[];
|
|
75
|
+
};
|
|
76
|
+
export declare const flows: {
|
|
77
|
+
readonly data: readonly [{
|
|
78
|
+
readonly fromLongitude: 0;
|
|
79
|
+
readonly fromLatitude: 0;
|
|
80
|
+
readonly toLongitude: 2;
|
|
81
|
+
readonly toLatitude: 0.7;
|
|
82
|
+
readonly value: 24;
|
|
83
|
+
}, {
|
|
84
|
+
readonly fromLongitude: 0;
|
|
85
|
+
readonly fromLatitude: 0;
|
|
86
|
+
readonly toLongitude: -1.8;
|
|
87
|
+
readonly toLatitude: -0.7;
|
|
88
|
+
readonly value: 16;
|
|
89
|
+
}];
|
|
90
|
+
readonly parser: {
|
|
91
|
+
readonly type: "json";
|
|
92
|
+
readonly x: "fromLongitude";
|
|
93
|
+
readonly y: "fromLatitude";
|
|
94
|
+
readonly x1: "toLongitude";
|
|
95
|
+
readonly y1: "toLatitude";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* src/plot/plot.css */
|
|
2
|
+
[data-ob-plot] {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
[data-ob-plot-view],
|
|
6
|
+
[data-ob-plot-canvas] {
|
|
7
|
+
min-inline-size: 0;
|
|
8
|
+
inline-size: 100%;
|
|
9
|
+
block-size: 100%;
|
|
10
|
+
}
|
|
11
|
+
[data-ob-plot-overlay] {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
display: grid;
|
|
15
|
+
place-items: center;
|
|
16
|
+
}
|
|
17
|
+
[data-ob-plot-loading] {
|
|
18
|
+
z-index: 99;
|
|
19
|
+
background: #fff;
|
|
20
|
+
}
|
|
21
|
+
[data-ob-plot-loading=dark] {
|
|
22
|
+
background: #141414;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
[data-ob-plot-shimmer] {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/plot/plot.css"],
|
|
4
|
+
"mappings": ";AAAA,CAAC;AACC,YAAU;AACZ;AAEA,CAAC;AACD,CAAC;AACC,mBAAiB;AACjB,eAAa;AACb,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,WAAS;AACT,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,QAAO,wBAAyB;AAC9B,GAAC;AACC,aAAS;AACX;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Mix as Engine } from '@antv/g2plot';
|
|
2
|
+
import type { MixOptions } from '@antv/g2plot';
|
|
3
|
+
import type { NativePlotConfig } from '../plot/native-plot';
|
|
4
|
+
export type MixConfig = NativePlotConfig<MixOptions, Engine>;
|
|
5
|
+
export declare const Mix: import("../plot/native-plot").NativePlotComponent<MixOptions, Engine>;
|
|
6
|
+
export default Mix;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import {
|
|
3
|
+
Mix,
|
|
4
|
+
mix_default
|
|
5
|
+
} from "../chunk-CTZ4UZLL.js";
|
|
6
|
+
import "../chunk-C5K4ZUUY.js";
|
|
7
|
+
import "../chunk-LPVSKK2M.js";
|
|
8
|
+
import "../chunk-ACLUGRQA.js";
|
|
9
|
+
import "../chunk-YXOYFXIL.js";
|
|
10
|
+
export {
|
|
11
|
+
Mix,
|
|
12
|
+
mix_default as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* src/plot/plot.css */
|
|
2
|
+
[data-ob-plot] {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
[data-ob-plot-view],
|
|
6
|
+
[data-ob-plot-canvas] {
|
|
7
|
+
min-inline-size: 0;
|
|
8
|
+
inline-size: 100%;
|
|
9
|
+
block-size: 100%;
|
|
10
|
+
}
|
|
11
|
+
[data-ob-plot-overlay] {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
display: grid;
|
|
15
|
+
place-items: center;
|
|
16
|
+
}
|
|
17
|
+
[data-ob-plot-loading] {
|
|
18
|
+
z-index: 99;
|
|
19
|
+
background: #fff;
|
|
20
|
+
}
|
|
21
|
+
[data-ob-plot-loading=dark] {
|
|
22
|
+
background: #141414;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
[data-ob-plot-shimmer] {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/plot/plot.css"],
|
|
4
|
+
"mappings": ";AAAA,CAAC;AACC,YAAU;AACZ;AAEA,CAAC;AACD,CAAC;AACC,mBAAiB;AACjB,eAAa;AACb,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,WAAS;AACT,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,QAAO,wBAAyB;AAC9B,GAAC;AACC,aAAS;AACX;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Pie as PiePlot } from '@antv/g2plot';
|
|
2
|
+
import type { PieOptions } from '@antv/g2plot';
|
|
3
|
+
import type { PlotContainerProps, PlotHandle } from '../plot/plot-surface';
|
|
4
|
+
import type { ChartConfig } from '../plot/props';
|
|
5
|
+
interface DonutOptions {
|
|
6
|
+
isDonut?: boolean;
|
|
7
|
+
isHalfDonut?: boolean;
|
|
8
|
+
statisticTitle?: string;
|
|
9
|
+
}
|
|
10
|
+
export type PieConfig = ChartConfig<PieOptions, PiePlot, DonutOptions>;
|
|
11
|
+
interface CanvasFont {
|
|
12
|
+
fontSize?: number;
|
|
13
|
+
fontFamily?: string;
|
|
14
|
+
fontWeight?: string | number;
|
|
15
|
+
fontStyle?: string;
|
|
16
|
+
fontVariant?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function measureTextSize(text: string, font?: CanvasFont): {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
};
|
|
22
|
+
export declare const Pie: import("react").ForwardRefExoticComponent<Omit<Omit<PieOptions, "theme" | keyof PlotContainerProps<Instance>>, "tooltip"> & {
|
|
23
|
+
tooltip?: false | import("..").Tooltip;
|
|
24
|
+
} & DonutOptions & PlotContainerProps<PiePlot> & {
|
|
25
|
+
theme?: import("..").Theme;
|
|
26
|
+
} & import("react").RefAttributes<PlotHandle<PiePlot>>>;
|
|
27
|
+
export default Pie;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import {
|
|
3
|
+
Pie,
|
|
4
|
+
measureTextSize,
|
|
5
|
+
pie_default
|
|
6
|
+
} from "../chunk-Y2U5HO43.js";
|
|
7
|
+
import "../chunk-7VVXPNBC.js";
|
|
8
|
+
import "../chunk-XY5B64AW.js";
|
|
9
|
+
import "../chunk-LPVSKK2M.js";
|
|
10
|
+
import "../chunk-ACLUGRQA.js";
|
|
11
|
+
import "../chunk-YXOYFXIL.js";
|
|
12
|
+
export {
|
|
13
|
+
Pie,
|
|
14
|
+
pie_default as default,
|
|
15
|
+
measureTextSize
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Axis, Options } from '@antv/g2plot';
|
|
2
|
+
import type { ThemeConfig } from '../chart-provider';
|
|
3
|
+
export declare function sortPlotData(data: Options['data'], field: string | undefined, axis?: Axis): Record<string, any>[];
|
|
4
|
+
export declare function dashedAxis(axis: Axis | undefined, theme: ThemeConfig): Axis;
|
|
5
|
+
type Legend = NonNullable<Options['legend']>;
|
|
6
|
+
type Marker = 'square' | 'hyphen' | 'circle';
|
|
7
|
+
export declare function bottomLegend(legend?: Legend, symbol?: Marker): Legend;
|
|
8
|
+
export declare function stackCategories(data: Options['data'], field: string | undefined): any[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fitText(text: string, width: number, height: number, maxSize?: number, weight?: number): number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ThemeConfig } from '../chart-provider';
|
|
2
|
+
export declare function percentValue(ratio: number, decimal?: number): number;
|
|
3
|
+
export declare function thresholdColor(ratio: number, warning: number | undefined, danger: number | undefined, theme: ThemeConfig): string | undefined;
|
|
4
|
+
export declare function matchingThreshold(value: number | undefined, thresholds: Record<string, string>): string | undefined;
|
|
5
|
+
export declare function useElementSize<Element extends HTMLElement>(box?: ResizeObserverBoxOptions): {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
ref: import("react").Dispatch<import("react").SetStateAction<Element | null>>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Options, Plot } from '@antv/g2plot';
|
|
2
|
+
import type { PickOptions } from '@antv/g2plot/lib/core/plot';
|
|
3
|
+
import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
4
|
+
import type { PlotContainerProps, PlotHandle } from './plot-surface';
|
|
5
|
+
import type { PlotOptions } from './tooltip';
|
|
6
|
+
type EngineOptions = PickOptions & Pick<Options, 'tooltip' | 'theme'>;
|
|
7
|
+
export type NativePlotConfig<Config, Instance> = PlotOptions<Omit<Config, keyof PlotContainerProps<Instance>>> & PlotContainerProps<Instance>;
|
|
8
|
+
export type NativePlotComponent<Config, Instance> = ForwardRefExoticComponent<PropsWithoutRef<NativePlotConfig<Config, Instance>> & RefAttributes<PlotHandle<Instance>>>;
|
|
9
|
+
export declare function createNativePlot<Config extends EngineOptions, Instance extends Plot<Config>>(engine: new (element: HTMLElement, config: Config) => Instance, name: string, label: string): NativePlotComponent<Config, Instance>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { G2, Options, Plot } from '@antv/g2plot';
|
|
2
|
+
import type { PickOptions } from '@antv/g2plot/lib/core/plot';
|
|
3
|
+
import type { CSSProperties, ReactNode, Ref } from 'react';
|
|
4
|
+
import type { PlotOptions } from './tooltip';
|
|
5
|
+
import './plot.css';
|
|
6
|
+
type EngineOptions = PickOptions & Pick<Options, 'tooltip' | 'theme'>;
|
|
7
|
+
type PlotConstructor<Config extends EngineOptions, Instance extends Plot<Config>> = new (container: HTMLElement, config: Config) => Instance;
|
|
8
|
+
type ChartRef<Instance> = ((chart: Instance) => void) | {
|
|
9
|
+
current: Instance | null | undefined;
|
|
10
|
+
};
|
|
11
|
+
export interface PlotContainerProps<Instance> {
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
'aria-label'?: string;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
loadingTemplate?: ReactNode;
|
|
17
|
+
errorTemplate?: ReactNode | ((error: Error) => ReactNode);
|
|
18
|
+
chartRef?: ChartRef<Instance>;
|
|
19
|
+
onReady?: (chart: Instance) => void;
|
|
20
|
+
onEvent?: (chart: Instance, event: G2.Event) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface PlotHandle<Instance> {
|
|
23
|
+
getChart: () => Instance | undefined;
|
|
24
|
+
toDataURL: (type?: string, encoderOptions?: number) => string | undefined;
|
|
25
|
+
downloadImage: (name?: string, type?: string, encoderOptions?: number) => string | undefined;
|
|
26
|
+
}
|
|
27
|
+
interface PlotSurfaceProps<Config extends EngineOptions, Instance extends Plot<Config>> extends PlotContainerProps<Instance> {
|
|
28
|
+
engine: PlotConstructor<Config, Instance>;
|
|
29
|
+
options: PlotOptions<Config>;
|
|
30
|
+
instanceRef: Ref<PlotHandle<Instance>>;
|
|
31
|
+
}
|
|
32
|
+
export declare function PlotSurface<Config extends EngineOptions, Instance extends Plot<Config>>({ engine, options, instanceRef, className, style, 'aria-label': label, loading, loadingTemplate, errorTemplate, chartRef, onReady, onEvent, }: PlotSurfaceProps<Config, Instance>): import("react").JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Theme } from '../chart-provider';
|
|
2
|
+
import type { PlotContainerProps } from './plot-surface';
|
|
3
|
+
import type { PlotOptions } from './tooltip';
|
|
4
|
+
export type ChartConfig<Options, Instance, Extras extends object = object> = PlotOptions<Omit<Options, 'theme' | keyof PlotContainerProps<Instance>>> & Extras & PlotContainerProps<Instance> & {
|
|
5
|
+
theme?: Theme;
|
|
6
|
+
};
|
|
7
|
+
export declare function splitChartProps<Options extends object, Instance>({ theme, style, className, 'aria-label': label, loading, loadingTemplate, errorTemplate, chartRef, onReady, onEvent, ...options }: Options & PlotContainerProps<Instance> & {
|
|
8
|
+
theme?: Theme;
|
|
9
|
+
}): {
|
|
10
|
+
options: Omit<Options & PlotContainerProps<Instance> & {
|
|
11
|
+
theme?: Theme;
|
|
12
|
+
}, keyof PlotContainerProps<Instance> | 'theme'>;
|
|
13
|
+
theme: Theme | undefined;
|
|
14
|
+
surface: PlotContainerProps<Instance>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Options } from '@antv/g2plot';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
type EngineTooltip = Exclude<NonNullable<Options['tooltip']>, false>;
|
|
4
|
+
type TooltipArguments = Parameters<NonNullable<EngineTooltip['customContent']>>;
|
|
5
|
+
export interface Tooltip extends Omit<EngineTooltip, 'customContent'> {
|
|
6
|
+
customContent?: (...args: TooltipArguments) => ReactNode | HTMLElement;
|
|
7
|
+
scrollable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type PlotOptions<Config> = Omit<Config, 'tooltip'> & {
|
|
10
|
+
tooltip?: false | Tooltip;
|
|
11
|
+
};
|
|
12
|
+
export declare function engineTooltip(tooltip: false | Tooltip | undefined, mount: (content: ReactNode) => HTMLElement): Options['tooltip'];
|
|
13
|
+
export declare function prepareTooltip(tooltip?: false | Tooltip, height?: number): false | Tooltip;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BulletOptions, DualAxesOptions, G2, GaugeOptions, MixOptions, Options, Plot, TreemapOptions } from '@antv/g2plot';
|
|
2
|
+
import type { PlotContainerProps, PlotHandle } from './plot-surface';
|
|
3
|
+
import type { Tooltip } from './tooltip';
|
|
4
|
+
type TinyPlotOptions = Omit<Options, 'data' | 'legend' | 'label'> & {
|
|
5
|
+
data: number[];
|
|
6
|
+
};
|
|
7
|
+
export type AllBaseConfig = Options | DualAxesOptions | GaugeOptions | TinyPlotOptions | BulletOptions | MixOptions | TreemapOptions;
|
|
8
|
+
export type ChartRefConfig = NonNullable<PlotContainerProps<Plot<AllBaseConfig>>['chartRef']>;
|
|
9
|
+
export type BasePlot = Plot<AllBaseConfig> & Partial<Pick<PlotHandle<Plot<AllBaseConfig>>, 'toDataURL' | 'downloadImage'>>;
|
|
10
|
+
export type PlotEvent = G2.Event;
|
|
11
|
+
export interface BaseConfig<Config extends Omit<AllBaseConfig, 'tooltip'>, Instance extends Plot<Config> = Plot<Config>> extends Omit<PlotContainerProps<Instance>, 'chartRef'> {
|
|
12
|
+
tooltip?: false | Tooltip;
|
|
13
|
+
chartRef?: ChartRefConfig;
|
|
14
|
+
}
|
|
15
|
+
export {};
|