@visactor/react-vchart 0.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/cjs/VChart.d.ts +3 -0
- package/cjs/VChart.js +9 -0
- package/cjs/VChart.js.map +1 -0
- package/cjs/charts/AreaChart.d.ts +5 -0
- package/cjs/charts/AreaChart.js +10 -0
- package/cjs/charts/AreaChart.js.map +1 -0
- package/cjs/charts/BarChart.d.ts +5 -0
- package/cjs/charts/BarChart.js +10 -0
- package/cjs/charts/BarChart.js.map +1 -0
- package/cjs/charts/BaseChart.d.ts +18 -0
- package/cjs/charts/BaseChart.js +94 -0
- package/cjs/charts/BaseChart.js.map +1 -0
- package/cjs/charts/BoxPlotChart.d.ts +5 -0
- package/cjs/charts/BoxPlotChart.js +10 -0
- package/cjs/charts/BoxPlotChart.js.map +1 -0
- package/cjs/charts/CircularProgressChart.d.ts +5 -0
- package/cjs/charts/CircularProgressChart.js +10 -0
- package/cjs/charts/CircularProgressChart.js.map +1 -0
- package/cjs/charts/CommonChart.d.ts +5 -0
- package/cjs/charts/CommonChart.js +10 -0
- package/cjs/charts/CommonChart.js.map +1 -0
- package/cjs/charts/FunnelChart.d.ts +5 -0
- package/cjs/charts/FunnelChart.js +10 -0
- package/cjs/charts/FunnelChart.js.map +1 -0
- package/cjs/charts/HistogramChart.d.ts +5 -0
- package/cjs/charts/HistogramChart.js +10 -0
- package/cjs/charts/HistogramChart.js.map +1 -0
- package/cjs/charts/LineChart.d.ts +5 -0
- package/cjs/charts/LineChart.js +10 -0
- package/cjs/charts/LineChart.js.map +1 -0
- package/cjs/charts/LinearProgressChart.d.ts +5 -0
- package/cjs/charts/LinearProgressChart.js +9 -0
- package/cjs/charts/LinearProgressChart.js.map +1 -0
- package/cjs/charts/MapChart.d.ts +5 -0
- package/cjs/charts/MapChart.js +10 -0
- package/cjs/charts/MapChart.js.map +1 -0
- package/cjs/charts/PieChart.d.ts +5 -0
- package/cjs/charts/PieChart.js +10 -0
- package/cjs/charts/PieChart.js.map +1 -0
- package/cjs/charts/RadarChart.d.ts +5 -0
- package/cjs/charts/RadarChart.js +10 -0
- package/cjs/charts/RadarChart.js.map +1 -0
- package/cjs/charts/RangeColumnChart.d.ts +5 -0
- package/cjs/charts/RangeColumnChart.js +10 -0
- package/cjs/charts/RangeColumnChart.js.map +1 -0
- package/cjs/charts/RoseChart.d.ts +5 -0
- package/cjs/charts/RoseChart.js +10 -0
- package/cjs/charts/RoseChart.js.map +1 -0
- package/cjs/charts/ScatterChart.d.ts +5 -0
- package/cjs/charts/ScatterChart.js +10 -0
- package/cjs/charts/ScatterChart.js.map +1 -0
- package/cjs/charts/SequenceChart.d.ts +5 -0
- package/cjs/charts/SequenceChart.js +10 -0
- package/cjs/charts/SequenceChart.js.map +1 -0
- package/cjs/charts/WordCloudChart.d.ts +5 -0
- package/cjs/charts/WordCloudChart.js +10 -0
- package/cjs/charts/WordCloudChart.js.map +1 -0
- package/cjs/charts/index.d.ts +16 -0
- package/cjs/charts/index.js +150 -0
- package/cjs/charts/index.js.map +1 -0
- package/cjs/components/Axis.d.ts +5 -0
- package/cjs/components/Axis.js +10 -0
- package/cjs/components/Axis.js.map +1 -0
- package/cjs/components/BaseComponent.d.ts +9 -0
- package/cjs/components/BaseComponent.js +76 -0
- package/cjs/components/BaseComponent.js.map +1 -0
- package/cjs/components/Legend.d.ts +9 -0
- package/cjs/components/Legend.js +10 -0
- package/cjs/components/Legend.js.map +1 -0
- package/cjs/components/Mark.d.ts +14 -0
- package/cjs/components/Mark.js +68 -0
- package/cjs/components/Mark.js.map +1 -0
- package/cjs/components/Region.d.ts +5 -0
- package/cjs/components/Region.js +10 -0
- package/cjs/components/Region.js.map +1 -0
- package/cjs/components/index.d.ts +4 -0
- package/cjs/components/index.js +22 -0
- package/cjs/components/index.js.map +1 -0
- package/cjs/constants.d.ts +1 -0
- package/cjs/constants.js +6 -0
- package/cjs/constants.js.map +1 -0
- package/cjs/containers/withContainer.d.ts +8 -0
- package/cjs/containers/withContainer.js +64 -0
- package/cjs/containers/withContainer.js.map +1 -0
- package/cjs/context/chart.d.ts +10 -0
- package/cjs/context/chart.js +25 -0
- package/cjs/context/chart.js.map +1 -0
- package/cjs/context/stage.d.ts +4 -0
- package/cjs/context/stage.js +24 -0
- package/cjs/context/stage.js.map +1 -0
- package/cjs/context/view.d.ts +5 -0
- package/cjs/context/view.js +24 -0
- package/cjs/context/view.js.map +1 -0
- package/cjs/eventsUtils.d.ts +155 -0
- package/cjs/eventsUtils.js +84 -0
- package/cjs/eventsUtils.js.map +1 -0
- package/cjs/index.d.ts +6 -0
- package/cjs/index.js +38 -0
- package/cjs/index.js.map +1 -0
- package/cjs/series/Area.d.ts +6 -0
- package/cjs/series/Area.js +10 -0
- package/cjs/series/Area.js.map +1 -0
- package/cjs/series/Bar.d.ts +6 -0
- package/cjs/series/Bar.js +10 -0
- package/cjs/series/Bar.js.map +1 -0
- package/cjs/series/BaseSeries.d.ts +8 -0
- package/cjs/series/BaseSeries.js +77 -0
- package/cjs/series/BaseSeries.js.map +1 -0
- package/cjs/series/BoxPlot.d.ts +6 -0
- package/cjs/series/BoxPlot.js +10 -0
- package/cjs/series/BoxPlot.js.map +1 -0
- package/cjs/series/CircularProgress.d.ts +6 -0
- package/cjs/series/CircularProgress.js +10 -0
- package/cjs/series/CircularProgress.js.map +1 -0
- package/cjs/series/Dot.d.ts +6 -0
- package/cjs/series/Dot.js +10 -0
- package/cjs/series/Dot.js.map +1 -0
- package/cjs/series/Funnel.d.ts +6 -0
- package/cjs/series/Funnel.js +10 -0
- package/cjs/series/Funnel.js.map +1 -0
- package/cjs/series/Line.d.ts +6 -0
- package/cjs/series/Line.js +9 -0
- package/cjs/series/Line.js.map +1 -0
- package/cjs/series/LinearProgress.d.ts +6 -0
- package/cjs/series/LinearProgress.js +10 -0
- package/cjs/series/LinearProgress.js.map +1 -0
- package/cjs/series/Link.d.ts +6 -0
- package/cjs/series/Link.js +10 -0
- package/cjs/series/Link.js.map +1 -0
- package/cjs/series/Map.d.ts +6 -0
- package/cjs/series/Map.js +10 -0
- package/cjs/series/Map.js.map +1 -0
- package/cjs/series/Pie.d.ts +6 -0
- package/cjs/series/Pie.js +10 -0
- package/cjs/series/Pie.js.map +1 -0
- package/cjs/series/Radar.d.ts +6 -0
- package/cjs/series/Radar.js +10 -0
- package/cjs/series/Radar.js.map +1 -0
- package/cjs/series/RangeColumn.d.ts +6 -0
- package/cjs/series/RangeColumn.js +10 -0
- package/cjs/series/RangeColumn.js.map +1 -0
- package/cjs/series/Rose.d.ts +6 -0
- package/cjs/series/Rose.js +10 -0
- package/cjs/series/Rose.js.map +1 -0
- package/cjs/series/Scatter.d.ts +6 -0
- package/cjs/series/Scatter.js +10 -0
- package/cjs/series/Scatter.js.map +1 -0
- package/cjs/series/Series.d.ts +7 -0
- package/cjs/series/Series.js +10 -0
- package/cjs/series/Series.js.map +1 -0
- package/cjs/series/WordCloud.d.ts +6 -0
- package/cjs/series/WordCloud.js +10 -0
- package/cjs/series/WordCloud.js.map +1 -0
- package/cjs/series/index.d.ts +17 -0
- package/cjs/series/index.js +29 -0
- package/cjs/series/index.js.map +1 -0
- package/cjs/util.d.ts +7 -0
- package/cjs/util.js +57 -0
- package/cjs/util.js.map +1 -0
- package/esm/VChart.d.ts +3 -0
- package/esm/VChart.js +3 -0
- package/esm/VChart.js.map +1 -0
- package/esm/charts/AreaChart.d.ts +5 -0
- package/esm/charts/AreaChart.js +4 -0
- package/esm/charts/AreaChart.js.map +1 -0
- package/esm/charts/BarChart.d.ts +5 -0
- package/esm/charts/BarChart.js +4 -0
- package/esm/charts/BarChart.js.map +1 -0
- package/esm/charts/BaseChart.d.ts +18 -0
- package/esm/charts/BaseChart.js +75 -0
- package/esm/charts/BaseChart.js.map +1 -0
- package/esm/charts/BoxPlotChart.d.ts +5 -0
- package/esm/charts/BoxPlotChart.js +4 -0
- package/esm/charts/BoxPlotChart.js.map +1 -0
- package/esm/charts/CircularProgressChart.d.ts +5 -0
- package/esm/charts/CircularProgressChart.js +4 -0
- package/esm/charts/CircularProgressChart.js.map +1 -0
- package/esm/charts/CommonChart.d.ts +5 -0
- package/esm/charts/CommonChart.js +4 -0
- package/esm/charts/CommonChart.js.map +1 -0
- package/esm/charts/FunnelChart.d.ts +5 -0
- package/esm/charts/FunnelChart.js +4 -0
- package/esm/charts/FunnelChart.js.map +1 -0
- package/esm/charts/HistogramChart.d.ts +5 -0
- package/esm/charts/HistogramChart.js +4 -0
- package/esm/charts/HistogramChart.js.map +1 -0
- package/esm/charts/LineChart.d.ts +5 -0
- package/esm/charts/LineChart.js +4 -0
- package/esm/charts/LineChart.js.map +1 -0
- package/esm/charts/LinearProgressChart.d.ts +5 -0
- package/esm/charts/LinearProgressChart.js +3 -0
- package/esm/charts/LinearProgressChart.js.map +1 -0
- package/esm/charts/MapChart.d.ts +5 -0
- package/esm/charts/MapChart.js +4 -0
- package/esm/charts/MapChart.js.map +1 -0
- package/esm/charts/PieChart.d.ts +5 -0
- package/esm/charts/PieChart.js +4 -0
- package/esm/charts/PieChart.js.map +1 -0
- package/esm/charts/RadarChart.d.ts +5 -0
- package/esm/charts/RadarChart.js +4 -0
- package/esm/charts/RadarChart.js.map +1 -0
- package/esm/charts/RangeColumnChart.d.ts +5 -0
- package/esm/charts/RangeColumnChart.js +4 -0
- package/esm/charts/RangeColumnChart.js.map +1 -0
- package/esm/charts/RoseChart.d.ts +5 -0
- package/esm/charts/RoseChart.js +4 -0
- package/esm/charts/RoseChart.js.map +1 -0
- package/esm/charts/ScatterChart.d.ts +5 -0
- package/esm/charts/ScatterChart.js +4 -0
- package/esm/charts/ScatterChart.js.map +1 -0
- package/esm/charts/SequenceChart.d.ts +5 -0
- package/esm/charts/SequenceChart.js +4 -0
- package/esm/charts/SequenceChart.js.map +1 -0
- package/esm/charts/WordCloudChart.d.ts +5 -0
- package/esm/charts/WordCloudChart.js +4 -0
- package/esm/charts/WordCloudChart.js.map +1 -0
- package/esm/charts/index.d.ts +16 -0
- package/esm/charts/index.js +32 -0
- package/esm/charts/index.js.map +1 -0
- package/esm/components/Axis.d.ts +5 -0
- package/esm/components/Axis.js +4 -0
- package/esm/components/Axis.js.map +1 -0
- package/esm/components/BaseComponent.d.ts +9 -0
- package/esm/components/BaseComponent.js +47 -0
- package/esm/components/BaseComponent.js.map +1 -0
- package/esm/components/Legend.d.ts +9 -0
- package/esm/components/Legend.js +6 -0
- package/esm/components/Legend.js.map +1 -0
- package/esm/components/Mark.d.ts +14 -0
- package/esm/components/Mark.js +40 -0
- package/esm/components/Mark.js.map +1 -0
- package/esm/components/Region.d.ts +5 -0
- package/esm/components/Region.js +4 -0
- package/esm/components/Region.js.map +1 -0
- package/esm/components/index.d.ts +4 -0
- package/esm/components/index.js +8 -0
- package/esm/components/index.js.map +1 -0
- package/esm/constants.d.ts +1 -0
- package/esm/constants.js +2 -0
- package/esm/constants.js.map +1 -0
- package/esm/containers/withContainer.d.ts +8 -0
- package/esm/containers/withContainer.js +33 -0
- package/esm/containers/withContainer.js.map +1 -0
- package/esm/context/chart.d.ts +10 -0
- package/esm/context/chart.js +16 -0
- package/esm/context/chart.js.map +1 -0
- package/esm/context/stage.d.ts +4 -0
- package/esm/context/stage.js +16 -0
- package/esm/context/stage.js.map +1 -0
- package/esm/context/view.d.ts +5 -0
- package/esm/context/view.js +16 -0
- package/esm/context/view.js.map +1 -0
- package/esm/eventsUtils.d.ts +155 -0
- package/esm/eventsUtils.js +82 -0
- package/esm/eventsUtils.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.js +11 -0
- package/esm/index.js.map +1 -0
- package/esm/series/Area.d.ts +6 -0
- package/esm/series/Area.js +4 -0
- package/esm/series/Area.js.map +1 -0
- package/esm/series/Bar.d.ts +6 -0
- package/esm/series/Bar.js +4 -0
- package/esm/series/Bar.js.map +1 -0
- package/esm/series/BaseSeries.d.ts +8 -0
- package/esm/series/BaseSeries.js +72 -0
- package/esm/series/BaseSeries.js.map +1 -0
- package/esm/series/BoxPlot.d.ts +6 -0
- package/esm/series/BoxPlot.js +4 -0
- package/esm/series/BoxPlot.js.map +1 -0
- package/esm/series/CircularProgress.d.ts +6 -0
- package/esm/series/CircularProgress.js +4 -0
- package/esm/series/CircularProgress.js.map +1 -0
- package/esm/series/Dot.d.ts +6 -0
- package/esm/series/Dot.js +4 -0
- package/esm/series/Dot.js.map +1 -0
- package/esm/series/Funnel.d.ts +6 -0
- package/esm/series/Funnel.js +4 -0
- package/esm/series/Funnel.js.map +1 -0
- package/esm/series/Line.d.ts +6 -0
- package/esm/series/Line.js +3 -0
- package/esm/series/Line.js.map +1 -0
- package/esm/series/LinearProgress.d.ts +6 -0
- package/esm/series/LinearProgress.js +4 -0
- package/esm/series/LinearProgress.js.map +1 -0
- package/esm/series/Link.d.ts +6 -0
- package/esm/series/Link.js +4 -0
- package/esm/series/Link.js.map +1 -0
- package/esm/series/Map.d.ts +6 -0
- package/esm/series/Map.js +4 -0
- package/esm/series/Map.js.map +1 -0
- package/esm/series/Pie.d.ts +6 -0
- package/esm/series/Pie.js +4 -0
- package/esm/series/Pie.js.map +1 -0
- package/esm/series/Radar.d.ts +6 -0
- package/esm/series/Radar.js +4 -0
- package/esm/series/Radar.js.map +1 -0
- package/esm/series/RangeColumn.d.ts +6 -0
- package/esm/series/RangeColumn.js +4 -0
- package/esm/series/RangeColumn.js.map +1 -0
- package/esm/series/Rose.d.ts +6 -0
- package/esm/series/Rose.js +4 -0
- package/esm/series/Rose.js.map +1 -0
- package/esm/series/Scatter.d.ts +6 -0
- package/esm/series/Scatter.js +4 -0
- package/esm/series/Scatter.js.map +1 -0
- package/esm/series/Series.d.ts +7 -0
- package/esm/series/Series.js +4 -0
- package/esm/series/Series.js.map +1 -0
- package/esm/series/WordCloud.d.ts +6 -0
- package/esm/series/WordCloud.js +4 -0
- package/esm/series/WordCloud.js.map +1 -0
- package/esm/series/index.d.ts +17 -0
- package/esm/series/index.js +34 -0
- package/esm/series/index.js.map +1 -0
- package/esm/util.d.ts +7 -0
- package/esm/util.js +36 -0
- package/esm/util.js.map +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Link = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries");
|
|
8
|
+
|
|
9
|
+
exports.Link = (0, BaseSeries_1.createSeries)("Link", [ "link" ], "link");
|
|
10
|
+
//# sourceMappingURL=Link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/Link.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAMhD,QAAA,IAAI,GAAG,IAAA,yBAAY,EAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC","file":"Link.js","sourcesContent":["import { BaseSeriesProps, createSeries } from \"./BaseSeries\";\n\nexport interface LinkProps extends BaseSeriesProps {\n //\n}\n\nexport const Link = createSeries(\"Link\", [\"link\"], \"link\");\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Map = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries");
|
|
8
|
+
|
|
9
|
+
exports.Map = (0, BaseSeries_1.createSeries)("Map", [ "map" ], "map");
|
|
10
|
+
//# sourceMappingURL=Map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/Map.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAMhD,QAAA,GAAG,GAAG,IAAA,yBAAY,EAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC","file":"Map.js","sourcesContent":["import { BaseSeriesProps, createSeries } from \"./BaseSeries\";\n\nexport interface MapProps extends BaseSeriesProps {\n //\n}\n\nexport const Map = createSeries(\"Map\", [\"map\"], \"map\");\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Pie = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries");
|
|
8
|
+
|
|
9
|
+
exports.Pie = (0, BaseSeries_1.createSeries)("Pie", [ "pie" ], "pie");
|
|
10
|
+
//# sourceMappingURL=Pie.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/Pie.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAMhD,QAAA,GAAG,GAAG,IAAA,yBAAY,EAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC","file":"Pie.js","sourcesContent":["import { BaseSeriesProps, createSeries } from \"./BaseSeries\";\n\nexport interface PieProps extends BaseSeriesProps {\n //\n}\n\nexport const Pie = createSeries(\"Pie\", [\"pie\"], \"pie\");\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Radar = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries");
|
|
8
|
+
|
|
9
|
+
exports.Radar = (0, BaseSeries_1.createSeries)("Radar", [ "radar" ], "radar");
|
|
10
|
+
//# sourceMappingURL=Radar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/Radar.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAMhD,QAAA,KAAK,GAAG,IAAA,yBAAY,EAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC","file":"Radar.js","sourcesContent":["import { BaseSeriesProps, createSeries } from \"./BaseSeries\";\n\nexport interface RadarProps extends BaseSeriesProps {\n //\n}\n\nexport const Radar = createSeries(\"Radar\", [\"radar\"], \"radar\");\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.RangeColumn = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries");
|
|
8
|
+
|
|
9
|
+
exports.RangeColumn = (0, BaseSeries_1.createSeries)("RangeColumn", [ "rangeColumn" ], "rangeColumn");
|
|
10
|
+
//# sourceMappingURL=RangeColumn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/RangeColumn.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAMhD,QAAA,WAAW,GAAG,IAAA,yBAAY,EACrC,aAAa,EACb,CAAC,aAAa,CAAC,EACf,aAAa,CACd,CAAC","file":"RangeColumn.js","sourcesContent":["import { BaseSeriesProps, createSeries } from \"./BaseSeries\";\n\nexport interface RangeColumnProps extends BaseSeriesProps {\n //\n}\n\nexport const RangeColumn = createSeries(\n \"RangeColumn\",\n [\"rangeColumn\"],\n \"rangeColumn\"\n);\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Rose = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries");
|
|
8
|
+
|
|
9
|
+
exports.Rose = (0, BaseSeries_1.createSeries)("Rose", [ "rose" ], "rose");
|
|
10
|
+
//# sourceMappingURL=Rose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/Rose.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAMhD,QAAA,IAAI,GAAG,IAAA,yBAAY,EAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC","file":"Rose.js","sourcesContent":["import { BaseSeriesProps, createSeries } from \"./BaseSeries\";\n\nexport interface RoseProps extends BaseSeriesProps {\n //\n}\n\nexport const Rose = createSeries(\"Rose\", [\"rose\"], \"rose\");\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Scatter = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries");
|
|
8
|
+
|
|
9
|
+
exports.Scatter = (0, BaseSeries_1.createSeries)("Scatter", [ "scatter" ], "scatter");
|
|
10
|
+
//# sourceMappingURL=Scatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/Scatter.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAMhD,QAAA,OAAO,GAAG,IAAA,yBAAY,EAAC,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC","file":"Scatter.js","sourcesContent":["import { BaseSeriesProps, createSeries } from \"./BaseSeries\";\n\nexport interface ScatterProps extends BaseSeriesProps {\n //\n}\n\nexport const Scatter = createSeries(\"Scatter\", [\"scatter\"], \"scatter\");\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Series = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries");
|
|
8
|
+
|
|
9
|
+
exports.Series = (0, BaseSeries_1.createSeries)("Series", [ "bar", "line", "area" ]);
|
|
10
|
+
//# sourceMappingURL=Series.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/Series.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAMhD,QAAA,MAAM,GAAG,IAAA,yBAAY,EAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC","file":"Series.js","sourcesContent":["import { BaseSeriesProps, createSeries } from \"./BaseSeries\";\n\nexport interface SeriesProps extends BaseSeriesProps {\n type: string;\n}\n\nexport const Series = createSeries(\"Series\", [\"bar\", \"line\", \"area\"]);\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.WordCloud = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries");
|
|
8
|
+
|
|
9
|
+
exports.WordCloud = (0, BaseSeries_1.createSeries)("WordCloud", [ "wordCloud" ], "wordCloud");
|
|
10
|
+
//# sourceMappingURL=WordCloud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/WordCloud.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAMhD,QAAA,SAAS,GAAG,IAAA,yBAAY,EAAC,WAAW,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC","file":"WordCloud.js","sourcesContent":["import { BaseSeriesProps, createSeries } from \"./BaseSeries\";\n\nexport interface WordCloudProps extends BaseSeriesProps {\n //\n}\n\nexport const WordCloud = createSeries(\"WordCloud\", [\"wordCloud\"], \"wordCloud\");\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './Series';
|
|
2
|
+
export * from './Line';
|
|
3
|
+
export * from './Area';
|
|
4
|
+
export * from './Bar';
|
|
5
|
+
export * from './Scatter';
|
|
6
|
+
export * from './Map';
|
|
7
|
+
export * from './Pie';
|
|
8
|
+
export * from './Rose';
|
|
9
|
+
export * from './Radar';
|
|
10
|
+
export * from './Dot';
|
|
11
|
+
export * from './Link';
|
|
12
|
+
export * from './CircularProgress';
|
|
13
|
+
export * from './WordCloud';
|
|
14
|
+
export * from './Funnel';
|
|
15
|
+
export * from './LinearProgress';
|
|
16
|
+
export * from './RangeColumn';
|
|
17
|
+
export * from './BoxPlot';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
4
|
+
void 0 === k2 && (k2 = k);
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
get: function() {
|
|
9
|
+
return m[k];
|
|
10
|
+
}
|
|
11
|
+
}), Object.defineProperty(o, k2, desc);
|
|
12
|
+
} : function(o, m, k, k2) {
|
|
13
|
+
void 0 === k2 && (k2 = k), o[k2] = m[k];
|
|
14
|
+
}), __exportStar = this && this.__exportStar || function(m, exports) {
|
|
15
|
+
for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(exports, p) || __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(exports, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), __exportStar(require("./Series"), exports), __exportStar(require("./Line"), exports),
|
|
21
|
+
__exportStar(require("./Area"), exports), __exportStar(require("./Bar"), exports),
|
|
22
|
+
__exportStar(require("./Scatter"), exports), __exportStar(require("./Map"), exports),
|
|
23
|
+
__exportStar(require("./Pie"), exports), __exportStar(require("./Rose"), exports),
|
|
24
|
+
__exportStar(require("./Radar"), exports), __exportStar(require("./Dot"), exports),
|
|
25
|
+
__exportStar(require("./Link"), exports), __exportStar(require("./CircularProgress"), exports),
|
|
26
|
+
__exportStar(require("./WordCloud"), exports), __exportStar(require("./Funnel"), exports),
|
|
27
|
+
__exportStar(require("./LinearProgress"), exports), __exportStar(require("./RangeColumn"), exports),
|
|
28
|
+
__exportStar(require("./BoxPlot"), exports);
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["series/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,yCAAuB;AACvB,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,wCAAsB;AACtB,wCAAsB;AACtB,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB;AACtB,yCAAuB;AACvB,qDAAmC;AACnC,8CAA4B;AAC5B,2CAAyB;AACzB,mDAAiC;AACjC,gDAA8B;AAC9B,4CAA0B","file":"index.js","sourcesContent":["export * from './Series';\n\nexport * from './Line';\nexport * from './Area';\nexport * from './Bar';\nexport * from './Scatter';\nexport * from './Map';\nexport * from './Pie';\nexport * from './Rose';\nexport * from './Radar';\nexport * from './Dot';\nexport * from './Link';\nexport * from './CircularProgress';\nexport * from './WordCloud';\nexport * from './Funnel';\nexport * from './LinearProgress';\nexport * from './RangeColumn';\nexport * from './BoxPlot';\n"]}
|
package/cjs/util.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export declare const uid: (prefix?: string) => string;
|
|
3
|
+
export declare const getDisplayName: (Comp: any) => any;
|
|
4
|
+
export declare const typeOfComponent: (component: any, customTypeKey?: string) => string;
|
|
5
|
+
export declare const toArray: <T = React.ReactNode, TC = React.ReactNode>(children: T) => TC[];
|
|
6
|
+
export declare const findAllByType: <T extends React.ReactNode, TC = unknown>(children: React.ReactNode, type: TC | TC[]) => T[];
|
|
7
|
+
export declare const findChildByType: <T extends React.ReactNode, TC = unknown>(children: React.ReactNode, type: TC) => T;
|
package/cjs/util.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __importDefault = this && this.__importDefault || function(mod) {
|
|
4
|
+
return mod && mod.__esModule ? mod : {
|
|
5
|
+
default: mod
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: !0
|
|
11
|
+
}), exports.findChildByType = exports.findAllByType = exports.toArray = exports.typeOfComponent = exports.getDisplayName = exports.uid = void 0;
|
|
12
|
+
|
|
13
|
+
const vutils_1 = require("@visactor/vutils"), react_1 = __importDefault(require("react")), react_is_1 = require("react-is");
|
|
14
|
+
|
|
15
|
+
let id = 0;
|
|
16
|
+
|
|
17
|
+
const uid = prefix => prefix ? `${prefix}-${id++}` : "" + id++;
|
|
18
|
+
|
|
19
|
+
exports.uid = uid;
|
|
20
|
+
|
|
21
|
+
const getDisplayName = Comp => "string" == typeof Comp ? Comp : Comp ? Comp.displayName || Comp.name : "";
|
|
22
|
+
|
|
23
|
+
exports.getDisplayName = getDisplayName;
|
|
24
|
+
|
|
25
|
+
const typeOfComponent = (component, customTypeKey = "__TYPE") => (null == component ? void 0 : component.props) && component.props[customTypeKey] || "string" == typeof (null == component ? void 0 : component.type) && component.type || (null == component ? void 0 : component.type) && "symbol" == typeof component.type && "Symbol(react.fragment)" === component.type.toString() && "react.fragment" || "function" == typeof (null == component ? void 0 : component.type) && component.type || "object" == typeof (null == component ? void 0 : component.type) && "Symbol(react.forward_ref)" === component.type.$$typeof.toString() && "react.forward_ref" || "string" == typeof component && "string" || "function" == typeof component && "function" || void 0;
|
|
26
|
+
|
|
27
|
+
exports.typeOfComponent = typeOfComponent;
|
|
28
|
+
|
|
29
|
+
const toArray = children => {
|
|
30
|
+
let result = [];
|
|
31
|
+
return react_1.default.Children.forEach(children, (child => {
|
|
32
|
+
(0, vutils_1.isNil)(child) || ((0, react_is_1.isFragment)(child) ? result = result.concat((0,
|
|
33
|
+
exports.toArray)(child.props.children)) : result.push(child));
|
|
34
|
+
})), result;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports.toArray = toArray;
|
|
38
|
+
|
|
39
|
+
const findAllByType = (children, type) => {
|
|
40
|
+
const result = [];
|
|
41
|
+
let types = [];
|
|
42
|
+
return types = (0, vutils_1.isArray)(type) ? type.map((t => (0, exports.getDisplayName)(t))) : [ (0,
|
|
43
|
+
exports.getDisplayName)(type) ], (0, exports.toArray)(children).forEach((child => {
|
|
44
|
+
const childType = (0, exports.getDisplayName)((0, exports.typeOfComponent)(child));
|
|
45
|
+
-1 !== types.indexOf(childType) && result.push(child);
|
|
46
|
+
})), result;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.findAllByType = findAllByType;
|
|
50
|
+
|
|
51
|
+
const findChildByType = (children, type) => {
|
|
52
|
+
const result = (0, exports.findAllByType)(children, type);
|
|
53
|
+
return null == result ? void 0 : result[0];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.findChildByType = findChildByType;
|
|
57
|
+
//# sourceMappingURL=util.js.map
|
package/cjs/util.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["util.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAuF;AACvF,kDAAyC;AACzC,uCAAsC;AAEtC,IAAI,EAAE,GAAG,CAAC,CAAC;AAEJ,MAAM,GAAG,GAAG,CAAC,MAAe,EAAE,EAAE;IACrC,IAAI,MAAM,EAAE;QACV,OAAO,GAAG,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC;KAC5B;IAED,OAAO,GAAG,EAAE,EAAE,EAAE,CAAC;AACnB,CAAC,CAAC;AANW,QAAA,GAAG,OAMd;AAOK,MAAM,cAAc,GAAG,CAAC,IAAS,EAAE,EAAE;IAC1C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IACD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IACD,OAAO,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,IAAI,CAAC;AACvC,CAAC,CAAC;AARW,QAA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AG,CAAC,CAAC,CAAC;AACrB,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B","file":"util.js","sourcesContent":["import { isNil, isArray, isString, isFunction, isPlainObject } from '@visactor/vutils';\nimport React, { ReactNode } from 'react';\nimport { isFragment } from 'react-is';\n\nlet id = 0;\n\nexport const uid = (prefix?: string) => {\n if (prefix) {\n return `${prefix}-${id++}`;\n }\n\n return `${id++}`;\n};\n\n/**\n * Get the display name of a component\n * @param {Object} Comp Specified Component\n * @return {String} Display name of Component\n */\nexport const getDisplayName = (Comp: any) => {\n if (typeof Comp === 'string') {\n return Comp;\n }\n if (!Comp) {\n return '';\n }\n return Comp.displayName || Comp.name;\n};\n\nexport const typeOfComponent = (component: any, customTypeKey = '__TYPE'): string => {\n return (\n (component?.props && component.props[customTypeKey]) ||\n (typeof component?.type === 'string' && component.type) ||\n (component?.type &&\n typeof component.type === 'symbol' &&\n component.type.toString() === 'Symbol(react.fragment)' &&\n 'react.fragment') ||\n (typeof component?.type === 'function' && component.type) ||\n (typeof component?.type === 'object' &&\n component.type.$$typeof.toString() === 'Symbol(react.forward_ref)' &&\n 'react.forward_ref') ||\n (typeof component === 'string' && 'string') ||\n (typeof component === 'function' && 'function') ||\n undefined\n );\n};\n\nexport const toArray = <T = ReactNode, TC = ReactNode>(children: T): TC[] => {\n let result: TC[] = [];\n\n React.Children.forEach(children, child => {\n if (isNil(child)) return;\n\n if (isFragment(child)) {\n result = result.concat(toArray(child.props.children));\n } else {\n result.push(child as unknown as TC);\n }\n });\n\n return result;\n};\n\n/*\n * Find and return all matched children by type. `type` can be a React element class or\n * string\n */\nexport const findAllByType = <T extends React.ReactNode, TC = unknown>(\n children: React.ReactNode,\n type: TC | TC[]\n): T[] => {\n const result: T[] = [];\n let types: string[] = [];\n\n if (isArray(type)) {\n types = type.map(t => getDisplayName(t));\n } else {\n types = [getDisplayName(type)];\n }\n\n toArray(children).forEach(child => {\n const childType = getDisplayName(typeOfComponent(child));\n\n if (types.indexOf(childType) !== -1) {\n result.push(child as T);\n }\n });\n\n return result;\n};\n/*\n * Return the first matched child by type, return null otherwise.\n * `type` can be a React element class or string.\n */\nexport const findChildByType = <T extends React.ReactNode, TC = unknown>(children: React.ReactNode, type: TC): T => {\n const result = findAllByType<T, TC>(children, type);\n\n return result?.[0];\n};\n"]}
|
package/esm/VChart.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BaseChartProps } from './charts/BaseChart';
|
|
2
|
+
export type VChartProps = Omit<BaseChartProps, 'container'>;
|
|
3
|
+
export declare const VChart: import("react").ForwardRefExoticComponent<import("./containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
package/esm/VChart.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["VChart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjE,MAAM,CAAC,MAAM,MAAM,GAAG,WAAW,CAAc,QAAQ,CAAC,CAAC","file":"VChart.js","sourcesContent":["import { BaseChartProps, createChart } from './charts/BaseChart';\n\nexport type VChartProps = Omit<BaseChartProps, 'container'>;\n\nexport const VChart = createChart<VChartProps>('VChart');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IAreaChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface AreaChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IAreaChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const AreaChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/AreaChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAiB,WAAW,EAAE,MAAM,CAAC,CAAC","file":"AreaChart.js","sourcesContent":["import { IAreaChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface AreaChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IAreaChartSpec, 'type'> {}\n\nexport const AreaChart = createChart<AreaChartProps>('AreaChart', 'area');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IBarChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface BarChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IBarChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const BarChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/BarChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ1D,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAgB,UAAU,EAAE,KAAK,CAAC,CAAC","file":"BarChart.js","sourcesContent":["import { IBarChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface BarChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IBarChartSpec, 'type'> {\n //\n}\n\nexport const BarChart = createChart<BarChartProps>('BarChart', 'bar');\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import VChart, { IData, IInitOption } from '@visactor/vchart';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ContainerProps } from '../containers/withContainer';
|
|
4
|
+
import { EventsProps } from '../eventsUtils';
|
|
5
|
+
export type ChartOptions = Omit<IInitOption, 'dom'>;
|
|
6
|
+
export interface BaseChartProps extends EventsProps {
|
|
7
|
+
type?: string;
|
|
8
|
+
container?: HTMLDivElement;
|
|
9
|
+
spec?: any;
|
|
10
|
+
data?: IData;
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
options?: ChartOptions;
|
|
14
|
+
onReady?: (instance: VChart, isInitial: boolean) => void;
|
|
15
|
+
}
|
|
16
|
+
type Props = React.PropsWithChildren<BaseChartProps>;
|
|
17
|
+
export declare const createChart: <T extends Props>(componentName: string, type?: string, callback?: (props: T) => T) => React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<any>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import VChart from "@visactor/vchart";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useEffect, useRef, useImperativeHandle } from "react";
|
|
4
|
+
|
|
5
|
+
import withContainer from "../containers/withContainer";
|
|
6
|
+
|
|
7
|
+
import RootChartContext from "../context/chart";
|
|
8
|
+
|
|
9
|
+
import { isEqual, pickWithout } from "@visactor/vutils";
|
|
10
|
+
|
|
11
|
+
import ViewContext from "../context/view";
|
|
12
|
+
|
|
13
|
+
import { toArray } from "../util";
|
|
14
|
+
|
|
15
|
+
import { REACT_PRIVATE_PROPS } from "../constants";
|
|
16
|
+
|
|
17
|
+
import { bindEventsToChart, CHART_EVENTS_KEYS, CHART_EVENTS } from "../eventsUtils";
|
|
18
|
+
|
|
19
|
+
const notSpecKeys = [ ...REACT_PRIVATE_PROPS, ...CHART_EVENTS_KEYS, "spec", "container", "options" ], BaseChart = React.forwardRef(((props, ref) => {
|
|
20
|
+
const [updateId, setUpdateId] = useState(0), chartContext = useRef({
|
|
21
|
+
specFromChildren: {}
|
|
22
|
+
});
|
|
23
|
+
useImperativeHandle(ref, (() => chartContext.current.chart));
|
|
24
|
+
const hasSpec = !!props.spec, [view, setView] = useState(null), isUnmount = useRef(!1), prevSpec = useRef(pickWithout(props, notSpecKeys)), eventsBinded = React.useRef(null), parseSpec = props => hasSpec && props.spec ? props.spec : Object.assign(Object.assign({}, prevSpec.current), chartContext.current.specFromChildren), handleChartRender = () => {
|
|
25
|
+
const newView = chartContext.current.chart.getCompiler().getVGrammarView();
|
|
26
|
+
newView === view || isUnmount.current || (setUpdateId(updateId + 1), props.onReady && props.onReady(chartContext.current.chart, 0 === updateId)),
|
|
27
|
+
setView(newView);
|
|
28
|
+
};
|
|
29
|
+
return useEffect((() => {
|
|
30
|
+
if (!chartContext.current.chart) return (props => {
|
|
31
|
+
const cs = new VChart(parseSpec(props), Object.assign(Object.assign({}, props.options), {
|
|
32
|
+
autoFit: !0,
|
|
33
|
+
mode: "desktop-browser",
|
|
34
|
+
dom: props.container
|
|
35
|
+
}));
|
|
36
|
+
chartContext.current = Object.assign(Object.assign({}, chartContext.current), {
|
|
37
|
+
chart: cs
|
|
38
|
+
});
|
|
39
|
+
})(props), chartContext.current.chart && chartContext.current.chart.renderAsync().then(handleChartRender),
|
|
40
|
+
bindEventsToChart(chartContext.current.chart, props, null, CHART_EVENTS), chartContext.current = Object.assign(Object.assign({}, chartContext.current), {
|
|
41
|
+
isChildrenUpdated: !1
|
|
42
|
+
}), void (eventsBinded.current = props);
|
|
43
|
+
if (bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS),
|
|
44
|
+
hasSpec) return void (isEqual(eventsBinded.current.spec, props.spec) || chartContext.current.chart.updateSpec(parseSpec(props)).then(handleChartRender));
|
|
45
|
+
const newSpec = pickWithout(props, notSpecKeys);
|
|
46
|
+
isEqual(newSpec, prevSpec.current) && !chartContext.current.isChildrenUpdated || (prevSpec.current = newSpec,
|
|
47
|
+
chartContext.current.chart.updateSpec(parseSpec(props)).then(handleChartRender)),
|
|
48
|
+
chartContext.current = Object.assign(Object.assign({}, chartContext.current), {
|
|
49
|
+
isChildrenUpdated: !1
|
|
50
|
+
});
|
|
51
|
+
}), [ props ]), useEffect((() => () => {
|
|
52
|
+
chartContext && (chartContext.current.chart && chartContext.current.chart.release(),
|
|
53
|
+
chartContext.current = null), isUnmount.current = !0;
|
|
54
|
+
}), []), React.createElement(RootChartContext.Provider, {
|
|
55
|
+
value: chartContext.current
|
|
56
|
+
}, React.createElement(ViewContext.Provider, {
|
|
57
|
+
value: view
|
|
58
|
+
}, toArray(props.children).map(((child, index) => {
|
|
59
|
+
var _a, _b, _c;
|
|
60
|
+
return React.createElement(React.Fragment, {
|
|
61
|
+
key: null !== (_c = null !== (_b = null === (_a = null == child ? void 0 : child.props) || void 0 === _a ? void 0 : _a.id) && void 0 !== _b ? _b : null == child ? void 0 : child.id) && void 0 !== _c ? _c : `child-${index}`
|
|
62
|
+
}, React.cloneElement(child, {
|
|
63
|
+
updateId: updateId
|
|
64
|
+
}));
|
|
65
|
+
}))));
|
|
66
|
+
}));
|
|
67
|
+
|
|
68
|
+
export const createChart = (componentName, type, callback) => {
|
|
69
|
+
const Com = withContainer(BaseChart, componentName, (props => (props.type = type,
|
|
70
|
+
callback ? callback(props) : type ? Object.assign(Object.assign({}, props), {
|
|
71
|
+
type: type
|
|
72
|
+
}) : props)));
|
|
73
|
+
return Com.displayName = componentName, Com;
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=BaseChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/BaseChart.tsx"],"names":[],"mappings":"AAAA,OAAO,MAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,aAAiC,MAAM,6BAA6B,CAAC;AAC5E,OAAO,gBAAsC,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAe,iBAAiB,E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,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,CAAC,OAAO;QACpD,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,IAC9B,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;;YAC5C,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,MAAA,MAAA,MAAC,KAAa,aAAb,KAAK,uBAAL,KAAK,CAAU,KAAK,0CAAE,EAAE,mCAAK,KAAa,aAAb,KAAK,uBAAL,KAAK,CAAU,EAAE,mCAAI,SAAS,KAAK,EAAE,IACrF,KAAK,CAAC,YAAY,CAAC,KAAqB,EAAE;gBACzC,QAAQ,EAAE,QAAQ;aACnB,CAAC,CACa,CAClB,CAAC;QACJ,CAAC,CAAC,CACmB,CACG,CAC7B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAkB,aAAqB,EAAE,IAAa,EAAE,QAA0B,EAAE,EAAE;IAC/G,MAAM,GAAG,GAAG,aAAa,CAAoB,SAAgB,EAAE,aAAa,EAAE,CAAC,KAAU,EAAE,EAAE;QAC3F,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QAElB,IAAI,QAAQ,EAAE;YACZ,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;SACxB;QAED,IAAI,IAAI,EAAE;YACR,uCAAY,KAAK,KAAE,IAAI,IAAG;SAC3B;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,OAAO,GAAG,CAAC;AACb,CAAC,CAAC","file":"BaseChart.js","sourcesContent":["import VChart, { IData, IInitOption } from '@visactor/vchart';\nimport React, { useState, useEffect, useRef, useImperativeHandle } from 'react';\nimport withContainer, { ContainerProps } from '../containers/withContainer';\nimport RootChartContext, { ChartContextType } from '../context/chart';\nimport type { IView } from '@visactor/vgrammar';\nimport { isEqual, pickWithout } from '@visactor/vutils';\nimport ViewContext from '../context/view';\nimport { toArray } from '../util';\nimport { REACT_PRIVATE_PROPS } from '../constants';\nimport { IMarkElement } from '../components';\nimport { bindEventsToChart, EventsProps, CHART_EVENTS_KEYS, CHART_EVENTS } from '../eventsUtils';\n\nexport type ChartOptions = Omit<IInitOption, 'dom'>;\n\nexport interface BaseChartProps extends EventsProps {\n type?: string;\n /** 上层container */\n container?: HTMLDivElement;\n /**\n * used only by <VChart />\n */\n spec?: any;\n /** 数据 */\n data?: IData;\n /** 画布宽度 */\n width?: number;\n /** 画布高度 */\n height?: number;\n /** 图表配置 */\n options?: ChartOptions;\n\n /** 图表渲染完成事件 */\n onReady?: (instance: VChart, isInitial: boolean) => void;\n}\n\ntype Props = React.PropsWithChildren<BaseChartProps>;\n\nconst notSpecKeys = [...REACT_PRIVATE_PROPS, ...CHART_EVENTS_KEYS, 'spec', 'container', 'options'];\n\nconst BaseChart: React.FC<Props> = React.forwardRef((props, ref) => {\n const [updateId, setUpdateId] = useState<number>(0);\n const chartContext = useRef<ChartContextType>({\n specFromChildren: {}\n });\n\n useImperativeHandle(ref, () => chartContext.current.chart);\n\n const hasSpec = !!props.spec;\n const [view, setView] = useState<IView>(null);\n const isUnmount = useRef<boolean>(false);\n const prevSpec = useRef(pickWithout(props, notSpecKeys));\n const eventsBinded = React.useRef<BaseChartProps>(null);\n\n const parseSpec = (props: Props) => {\n if (hasSpec && props.spec) {\n return props.spec;\n }\n\n return {\n ...prevSpec.current,\n ...chartContext.current.specFromChildren\n };\n };\n\n const createChart = (props: Props) => {\n const cs = new VChart(parseSpec(props), {\n ...props.options,\n autoFit: true,\n mode: 'desktop-browser',\n dom: props.container\n });\n chartContext.current = { ...chartContext.current, chart: cs };\n };\n\n const handleChartRender = () => {\n const newView = chartContext.current.chart.getCompiler().getVGrammarView();\n if (newView !== view && !isUnmount.current) {\n setUpdateId(updateId + 1);\n if (props.onReady) {\n props.onReady(chartContext.current.chart, updateId === 0);\n }\n }\n setView(newView);\n };\n\n const renderChart = () => {\n if (chartContext.current.chart) {\n // eslint-disable-next-line promise/catch-or-return\n chartContext.current.chart.renderAsync().then(handleChartRender);\n }\n };\n\n useEffect(() => {\n if (!chartContext.current.chart) {\n createChart(props);\n renderChart();\n bindEventsToChart(chartContext.current.chart, props, null, CHART_EVENTS);\n chartContext.current = {\n ...chartContext.current,\n isChildrenUpdated: false\n };\n eventsBinded.current = props;\n return;\n }\n\n bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);\n\n if (hasSpec) {\n if (!isEqual(eventsBinded.current.spec, props.spec)) {\n // eslint-disable-next-line promise/catch-or-return\n chartContext.current.chart.updateSpec(parseSpec(props)).then(handleChartRender);\n }\n return;\n }\n\n const newSpec = pickWithout(props, notSpecKeys);\n\n if (!isEqual(newSpec, prevSpec.current) || chartContext.current.isChildrenUpdated) {\n prevSpec.current = newSpec;\n // eslint-disable-next-line promise/catch-or-return\n chartContext.current.chart.updateSpec(parseSpec(props)).then(handleChartRender);\n }\n chartContext.current = {\n ...chartContext.current,\n isChildrenUpdated: false\n };\n }, [props]);\n\n useEffect(() => {\n return () => {\n if (chartContext) {\n if (chartContext.current.chart) {\n chartContext.current.chart.release();\n }\n chartContext.current = null;\n }\n isUnmount.current = true;\n };\n }, []);\n\n return (\n <RootChartContext.Provider value={chartContext.current}>\n <ViewContext.Provider value={view}>\n {toArray(props.children).map((child, index) => {\n return (\n <React.Fragment key={(child as any)?.props?.id ?? (child as any)?.id ?? `child-${index}`}>\n {React.cloneElement(child as IMarkElement, {\n updateId: updateId\n })}\n </React.Fragment>\n );\n })}\n </ViewContext.Provider>\n </RootChartContext.Provider>\n );\n});\n\nexport const createChart = <T extends Props>(componentName: string, type?: string, callback?: (props: T) => T) => {\n const Com = withContainer<ContainerProps, T>(BaseChart as any, componentName, (props: any) => {\n props.type = type;\n\n if (callback) {\n return callback(props);\n }\n\n if (type) {\n return { ...props, type };\n }\n return props;\n });\n Com.displayName = componentName;\n return Com;\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IBoxPlotChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface BoxPlotChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IBoxPlotChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const BoxPlotChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/BoxPlotChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAoB,cAAc,EAAE,SAAS,CAAC,CAAC","file":"BoxPlotChart.js","sourcesContent":["import { IBoxPlotChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface BoxPlotChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IBoxPlotChartSpec, 'type'> {}\n\nexport const BoxPlotChart = createChart<BoxPlotChartProps>('BoxPlotChart', 'boxPlot');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ICircularProgressChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface CircularProgressChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<ICircularProgressChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const CircularProgressChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/CircularProgressChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAC9C,uBAAuB,EACvB,kBAAkB,CACnB,CAAC","file":"CircularProgressChart.js","sourcesContent":["import { ICircularProgressChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface CircularProgressChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<ICircularProgressChartSpec, 'type'> {}\n\nexport const CircularProgressChart = createChart<CircularProgressChartProps>(\n 'CircularProgressChart',\n 'circularProgress'\n);\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ICommonChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface CommonChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<ICommonChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const CommonChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/CommonChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAmB,aAAa,EAAE,QAAQ,CAAC,CAAC","file":"CommonChart.js","sourcesContent":["import { ICommonChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface CommonChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<ICommonChartSpec, 'type'> {}\n\nexport const CommonChart = createChart<CommonChartProps>('CommonChart', 'common');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IFunnelChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface FunnelChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IFunnelChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const FunnelChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/FunnelChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAmB,aAAa,EAAE,QAAQ,CAAC,CAAC","file":"FunnelChart.js","sourcesContent":["import { IFunnelChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface FunnelChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IFunnelChartSpec, 'type'> {}\n\nexport const FunnelChart = createChart<FunnelChartProps>('FunnelChart', 'funnel');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IHistogramChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface HistogramChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IHistogramChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const HistogramChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|