@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
package/README.md
ADDED
package/cjs/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/cjs/VChart.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["VChart.tsx"],"names":[],"mappings":";;;AAAA,kDAAiE;AAIpD,QAAA,MAAM,GAAG,IAAA,uBAAW,EAAc,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,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.AreaChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.AreaChart = (0, BaseChart_1.createChart)("AreaChart", "area");
|
|
10
|
+
//# sourceMappingURL=AreaChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/AreaChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,SAAS,GAAG,IAAA,uBAAW,EAAiB,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,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.BarChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.BarChart = (0, BaseChart_1.createChart)("BarChart", "bar");
|
|
10
|
+
//# sourceMappingURL=BarChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/BarChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAQ7C,QAAA,QAAQ,GAAG,IAAA,uBAAW,EAAgB,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,94 @@
|
|
|
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
|
+
}), __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", {
|
|
16
|
+
enumerable: !0,
|
|
17
|
+
value: v
|
|
18
|
+
});
|
|
19
|
+
} : function(o, v) {
|
|
20
|
+
o.default = v;
|
|
21
|
+
}), __importStar = this && this.__importStar || function(mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (null != mod) for (var k in mod) "default" !== k && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding(result, mod, k);
|
|
25
|
+
return __setModuleDefault(result, mod), result;
|
|
26
|
+
}, __importDefault = this && this.__importDefault || function(mod) {
|
|
27
|
+
return mod && mod.__esModule ? mod : {
|
|
28
|
+
default: mod
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
Object.defineProperty(exports, "__esModule", {
|
|
33
|
+
value: !0
|
|
34
|
+
}), exports.createChart = void 0;
|
|
35
|
+
|
|
36
|
+
const vchart_1 = __importDefault(require("@visactor/vchart")), react_1 = __importStar(require("react")), withContainer_1 = __importDefault(require("../containers/withContainer")), chart_1 = __importDefault(require("../context/chart")), vutils_1 = require("@visactor/vutils"), view_1 = __importDefault(require("../context/view")), util_1 = require("../util"), constants_1 = require("../constants"), eventsUtils_1 = require("../eventsUtils"), notSpecKeys = [ ...constants_1.REACT_PRIVATE_PROPS, ...eventsUtils_1.CHART_EVENTS_KEYS, "spec", "container", "options" ], BaseChart = react_1.default.forwardRef(((props, ref) => {
|
|
37
|
+
const [updateId, setUpdateId] = (0, react_1.useState)(0), chartContext = (0, react_1.useRef)({
|
|
38
|
+
specFromChildren: {}
|
|
39
|
+
});
|
|
40
|
+
(0, react_1.useImperativeHandle)(ref, (() => chartContext.current.chart));
|
|
41
|
+
const hasSpec = !!props.spec, [view, setView] = (0, react_1.useState)(null), isUnmount = (0,
|
|
42
|
+
react_1.useRef)(!1), prevSpec = (0, react_1.useRef)((0, vutils_1.pickWithout)(props, notSpecKeys)), eventsBinded = react_1.default.useRef(null), parseSpec = props => hasSpec && props.spec ? props.spec : Object.assign(Object.assign({}, prevSpec.current), chartContext.current.specFromChildren), handleChartRender = () => {
|
|
43
|
+
const newView = chartContext.current.chart.getCompiler().getVGrammarView();
|
|
44
|
+
newView === view || isUnmount.current || (setUpdateId(updateId + 1), props.onReady && props.onReady(chartContext.current.chart, 0 === updateId)),
|
|
45
|
+
setView(newView);
|
|
46
|
+
};
|
|
47
|
+
return (0, react_1.useEffect)((() => {
|
|
48
|
+
if (!chartContext.current.chart) return (props => {
|
|
49
|
+
const cs = new vchart_1.default(parseSpec(props), Object.assign(Object.assign({}, props.options), {
|
|
50
|
+
autoFit: !0,
|
|
51
|
+
mode: "desktop-browser",
|
|
52
|
+
dom: props.container
|
|
53
|
+
}));
|
|
54
|
+
chartContext.current = Object.assign(Object.assign({}, chartContext.current), {
|
|
55
|
+
chart: cs
|
|
56
|
+
});
|
|
57
|
+
})(props), chartContext.current.chart && chartContext.current.chart.renderAsync().then(handleChartRender),
|
|
58
|
+
(0, eventsUtils_1.bindEventsToChart)(chartContext.current.chart, props, null, eventsUtils_1.CHART_EVENTS),
|
|
59
|
+
chartContext.current = Object.assign(Object.assign({}, chartContext.current), {
|
|
60
|
+
isChildrenUpdated: !1
|
|
61
|
+
}), void (eventsBinded.current = props);
|
|
62
|
+
if ((0, eventsUtils_1.bindEventsToChart)(chartContext.current.chart, props, eventsBinded.current, eventsUtils_1.CHART_EVENTS),
|
|
63
|
+
hasSpec) return void ((0, vutils_1.isEqual)(eventsBinded.current.spec, props.spec) || chartContext.current.chart.updateSpec(parseSpec(props)).then(handleChartRender));
|
|
64
|
+
const newSpec = (0, vutils_1.pickWithout)(props, notSpecKeys);
|
|
65
|
+
(0, vutils_1.isEqual)(newSpec, prevSpec.current) && !chartContext.current.isChildrenUpdated || (prevSpec.current = newSpec,
|
|
66
|
+
chartContext.current.chart.updateSpec(parseSpec(props)).then(handleChartRender)),
|
|
67
|
+
chartContext.current = Object.assign(Object.assign({}, chartContext.current), {
|
|
68
|
+
isChildrenUpdated: !1
|
|
69
|
+
});
|
|
70
|
+
}), [ props ]), (0, react_1.useEffect)((() => () => {
|
|
71
|
+
chartContext && (chartContext.current.chart && chartContext.current.chart.release(),
|
|
72
|
+
chartContext.current = null), isUnmount.current = !0;
|
|
73
|
+
}), []), react_1.default.createElement(chart_1.default.Provider, {
|
|
74
|
+
value: chartContext.current
|
|
75
|
+
}, react_1.default.createElement(view_1.default.Provider, {
|
|
76
|
+
value: view
|
|
77
|
+
}, (0, util_1.toArray)(props.children).map(((child, index) => {
|
|
78
|
+
var _a, _b, _c;
|
|
79
|
+
return react_1.default.createElement(react_1.default.Fragment, {
|
|
80
|
+
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}`
|
|
81
|
+
}, react_1.default.cloneElement(child, {
|
|
82
|
+
updateId: updateId
|
|
83
|
+
}));
|
|
84
|
+
}))));
|
|
85
|
+
})), createChart = (componentName, type, callback) => {
|
|
86
|
+
const Com = (0, withContainer_1.default)(BaseChart, componentName, (props => (props.type = type,
|
|
87
|
+
callback ? callback(props) : type ? Object.assign(Object.assign({}, props), {
|
|
88
|
+
type: type
|
|
89
|
+
}) : props)));
|
|
90
|
+
return Com.displayName = componentName, Com;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
exports.createChart = createChart;
|
|
94
|
+
//# sourceMappingURL=BaseChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/BaseChart.tsx"],"names":[],"mappings":"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","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,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.BoxPlotChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.BoxPlotChart = (0, BaseChart_1.createChart)("BoxPlotChart", "boxPlot");
|
|
10
|
+
//# sourceMappingURL=BoxPlotChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/BoxPlotChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,YAAY,GAAG,IAAA,uBAAW,EAAoB,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,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.CircularProgressChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.CircularProgressChart = (0, BaseChart_1.createChart)("CircularProgressChart", "circularProgress");
|
|
10
|
+
//# sourceMappingURL=CircularProgressChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/CircularProgressChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,qBAAqB,GAAG,IAAA,uBAAW,EAC9C,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,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.CommonChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.CommonChart = (0, BaseChart_1.createChart)("CommonChart", "common");
|
|
10
|
+
//# sourceMappingURL=CommonChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/CommonChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,WAAW,GAAG,IAAA,uBAAW,EAAmB,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,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.FunnelChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.FunnelChart = (0, BaseChart_1.createChart)("FunnelChart", "funnel");
|
|
10
|
+
//# sourceMappingURL=FunnelChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/FunnelChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,WAAW,GAAG,IAAA,uBAAW,EAAmB,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>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.HistogramChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.HistogramChart = (0, BaseChart_1.createChart)("HistogramChart", "histogram");
|
|
10
|
+
//# sourceMappingURL=HistogramChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/HistogramChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,cAAc,GAAG,IAAA,uBAAW,EAAsB,gBAAgB,EAAE,WAAW,CAAC,CAAC","file":"HistogramChart.js","sourcesContent":["import { IHistogramChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface HistogramChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IHistogramChartSpec, 'type'> {}\n\nexport const HistogramChart = createChart<HistogramChartProps>('HistogramChart', 'histogram');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ILineChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface LineChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<ILineChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const LineChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.LineChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.LineChart = (0, BaseChart_1.createChart)("LineChart", "line");
|
|
10
|
+
//# sourceMappingURL=LineChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/LineChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,SAAS,GAAG,IAAA,uBAAW,EAAiB,WAAW,EAAE,MAAM,CAAC,CAAC","file":"LineChart.js","sourcesContent":["import { ILineChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface LineChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<ILineChartSpec, 'type'> {}\n\nexport const LineChart = createChart<LineChartProps>('LineChart', 'line');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ILinearProgressChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface LinearProgressChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<ILinearProgressChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const LinearProgressChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.LinearProgressChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.LinearProgressChart = (0, BaseChart_1.createChart)("LinearProgressChart", "linearProgress");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/LinearProgressChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,mBAAmB,GAAG,IAAA,uBAAW,EAA2B,qBAAqB,EAAE,gBAAgB,CAAC,CAAC","file":"LinearProgressChart.js","sourcesContent":["import { ILinearProgressChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface LinearProgressChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<ILinearProgressChartSpec, 'type'> {}\n\nexport const LinearProgressChart = createChart<LinearProgressChartProps>('LinearProgressChart', 'linearProgress');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IMapChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface MapChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IMapChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const MapChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.MapChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.MapChart = (0, BaseChart_1.createChart)("MapChart", "map");
|
|
10
|
+
//# sourceMappingURL=MapChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/MapChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,QAAQ,GAAG,IAAA,uBAAW,EAAgB,UAAU,EAAE,KAAK,CAAC,CAAC","file":"MapChart.js","sourcesContent":["import { IMapChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface MapChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IMapChartSpec, 'type'> {}\n\nexport const MapChart = createChart<MapChartProps>('MapChart', 'map');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPieChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface PieChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IPieChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const PieChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.PieChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.PieChart = (0, BaseChart_1.createChart)("PieChart", "pie");
|
|
10
|
+
//# sourceMappingURL=PieChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/PieChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,QAAQ,GAAG,IAAA,uBAAW,EAAgB,UAAU,EAAE,KAAK,CAAC,CAAC","file":"PieChart.js","sourcesContent":["import { IPieChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface PieChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IPieChartSpec, 'type'> {}\n\nexport const PieChart = createChart<PieChartProps>('PieChart', 'pie');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IRadarChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface RadarChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IRadarChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const RadarChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.RadarChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.RadarChart = (0, BaseChart_1.createChart)("RadarChart", "radar");
|
|
10
|
+
//# sourceMappingURL=RadarChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/RadarChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,UAAU,GAAG,IAAA,uBAAW,EAAkB,YAAY,EAAE,OAAO,CAAC,CAAC","file":"RadarChart.js","sourcesContent":["import { IRadarChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface RadarChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IRadarChartSpec, 'type'> {}\n\nexport const RadarChart = createChart<RadarChartProps>('RadarChart', 'radar');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IRangeColumnChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface RangeColumnChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IRangeColumnChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const RangeColumnChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.RangeColumnChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.RangeColumnChart = (0, BaseChart_1.createChart)("RangeColumnChart", "rangeColumn");
|
|
10
|
+
//# sourceMappingURL=RangeColumnChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/RangeColumnChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,gBAAgB,GAAG,IAAA,uBAAW,EAAwB,kBAAkB,EAAE,aAAa,CAAC,CAAC","file":"RangeColumnChart.js","sourcesContent":["import { IRangeColumnChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface RangeColumnChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IRangeColumnChartSpec, 'type'> {}\n\nexport const RangeColumnChart = createChart<RangeColumnChartProps>('RangeColumnChart', 'rangeColumn');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IRoseChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface RoseChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IRoseChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const RoseChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.RoseChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.RoseChart = (0, BaseChart_1.createChart)("RoseChart", "rose");
|
|
10
|
+
//# sourceMappingURL=RoseChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/RoseChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,SAAS,GAAG,IAAA,uBAAW,EAAiB,WAAW,EAAE,MAAM,CAAC,CAAC","file":"RoseChart.js","sourcesContent":["import { IRoseChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface RoseChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IRoseChartSpec, 'type'> {}\n\nexport const RoseChart = createChart<RoseChartProps>('RoseChart', 'rose');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IScatterChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface ScatterChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IScatterChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const ScatterChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.ScatterChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.ScatterChart = (0, BaseChart_1.createChart)("ScatterChart", "scatter");
|
|
10
|
+
//# sourceMappingURL=ScatterChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/ScatterChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,YAAY,GAAG,IAAA,uBAAW,EAAoB,cAAc,EAAE,SAAS,CAAC,CAAC","file":"ScatterChart.js","sourcesContent":["import { IScatterChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface ScatterChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IScatterChartSpec, 'type'> {}\n\nexport const ScatterChart = createChart<ScatterChartProps>('ScatterChart', 'scatter');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ISequenceChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface SequenceChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<ISequenceChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const SequenceChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.SequenceChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.SequenceChart = (0, BaseChart_1.createChart)("SequenceChart", "sequence");
|
|
10
|
+
//# sourceMappingURL=SequenceChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/SequenceChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,aAAa,GAAG,IAAA,uBAAW,EAAqB,eAAe,EAAE,UAAU,CAAC,CAAC","file":"SequenceChart.js","sourcesContent":["import { ISequenceChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface SequenceChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<ISequenceChartSpec, 'type'> {}\n\nexport const SequenceChart = createChart<SequenceChartProps>('SequenceChart', 'sequence');\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IWordCloudChartSpec } from '@visactor/vchart';
|
|
2
|
+
import { BaseChartProps } from './BaseChart';
|
|
3
|
+
export interface WordCloudChartProps extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>, Omit<IWordCloudChartSpec, 'type'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const WordCloudChart: import("react").ForwardRefExoticComponent<import("../containers/withContainer").ContainerProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.WordCloudChart = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseChart_1 = require("./BaseChart");
|
|
8
|
+
|
|
9
|
+
exports.WordCloudChart = (0, BaseChart_1.createChart)("WordCloudChart", "wordCloud");
|
|
10
|
+
//# sourceMappingURL=WordCloudChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["charts/WordCloudChart.tsx"],"names":[],"mappings":";;;AACA,2CAA0D;AAM7C,QAAA,cAAc,GAAG,IAAA,uBAAW,EAAsB,gBAAgB,EAAE,WAAW,CAAC,CAAC","file":"WordCloudChart.js","sourcesContent":["import { IWordCloudChartSpec } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface WordCloudChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type'>,\n Omit<IWordCloudChartSpec, 'type'> {}\n\nexport const WordCloudChart = createChart<WordCloudChartProps>('WordCloudChart', 'wordCloud');\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { AreaChart } from './AreaChart';
|
|
2
|
+
export { BarChart } from './BarChart';
|
|
3
|
+
export { LineChart } from './LineChart';
|
|
4
|
+
export { ScatterChart } from './ScatterChart';
|
|
5
|
+
export { PieChart } from './PieChart';
|
|
6
|
+
export { RoseChart } from './RoseChart';
|
|
7
|
+
export { RadarChart } from './RadarChart';
|
|
8
|
+
export { MapChart } from './MapChart';
|
|
9
|
+
export { HistogramChart } from './HistogramChart';
|
|
10
|
+
export { WordCloudChart } from './WordCloudChart';
|
|
11
|
+
export { FunnelChart } from './FunnelChart';
|
|
12
|
+
export { BoxPlotChart } from './BoxPlotChart';
|
|
13
|
+
export { CircularProgressChart } from './CircularProgressChart';
|
|
14
|
+
export { LinearProgressChart } from './LinearProgressChart';
|
|
15
|
+
export { RangeColumnChart } from './RangeColumnChart';
|
|
16
|
+
export { CommonChart } from './CommonChart';
|