@fanciers/echarts-react 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +5 -2
- package/dist/index.mjs +6 -3
- package/package.json +21 -18
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CanvasRenderer, SVGRenderer } from "echarts/renderers";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import * as echarts from "echarts/core";
|
|
4
|
-
import { BarSeriesOption, BrushComponentOption, CalendarComponentOption, ComposeOption, DataZoomComponentOption, DatasetComponentOption, EffectScatterSeriesOption, GeoComponentOption, GraphSeriesOption, GraphicComponentOption, GridComponentOption, HeatmapSeriesOption, LegendComponentOption, LineSeriesOption, MarkAreaComponentOption, MarkLineComponentOption, MarkPointComponentOption, MatrixComponentOption, PieSeriesOption, PolarComponentOption, SankeySeriesOption, ScatterSeriesOption, SingleAxisComponentOption, SunburstSeriesOption, TimelineComponentOption, TitleComponentOption, ToolboxComponentOption, TooltipComponentOption, VisualMapComponentOption } from "echarts";
|
|
4
|
+
import { BarSeriesOption, BrushComponentOption, CalendarComponentOption, ComposeOption, DataZoomComponentOption, DatasetComponentOption, EffectScatterSeriesOption, FunnelSeriesOption, GeoComponentOption, GraphSeriesOption, GraphicComponentOption, GridComponentOption, HeatmapSeriesOption, LegendComponentOption, LineSeriesOption, MarkAreaComponentOption, MarkLineComponentOption, MarkPointComponentOption, MatrixComponentOption, PieSeriesOption, PolarComponentOption, RadarComponentOption, RadarSeriesOption, SankeySeriesOption, ScatterSeriesOption, SingleAxisComponentOption, SunburstSeriesOption, TimelineComponentOption, TitleComponentOption, ToolboxComponentOption, TooltipComponentOption, VisualMapComponentOption } from "echarts";
|
|
5
5
|
import { ComponentOption } from "echarts/types/src/util/types.js";
|
|
6
6
|
|
|
7
7
|
//#region src/shared.d.ts
|
|
@@ -26,10 +26,12 @@ interface ChartComponentType<in T extends ComponentOption = any> {
|
|
|
26
26
|
}
|
|
27
27
|
declare const BarChart: ChartComponentType<BarSeriesOption | GridComponentOption>;
|
|
28
28
|
declare const EffectScatterChart: ChartComponentType<GridComponentOption | EffectScatterSeriesOption>;
|
|
29
|
+
declare const FunnelChart: ChartComponentType<FunnelSeriesOption>;
|
|
29
30
|
declare const GraphChart: ChartComponentType<GraphSeriesOption>;
|
|
30
31
|
declare const HeatmapChart: ChartComponentType<HeatmapSeriesOption>;
|
|
31
32
|
declare const LineChart: ChartComponentType<GridComponentOption | LineSeriesOption>;
|
|
32
33
|
declare const PieChart: ChartComponentType<PieSeriesOption>;
|
|
34
|
+
declare const RadarChart: ChartComponentType<RadarSeriesOption>;
|
|
33
35
|
declare const ScatterChart: ChartComponentType<GridComponentOption | ScatterSeriesOption>;
|
|
34
36
|
declare const SankeyChart: ChartComponentType<SankeySeriesOption>;
|
|
35
37
|
declare const SunburstChart: ChartComponentType<SunburstSeriesOption>;
|
|
@@ -47,6 +49,7 @@ declare const MarkLine: (props: ComposeOption<MarkLineComponentOption>) => null;
|
|
|
47
49
|
declare const MarkPoint: (props: ComposeOption<MarkPointComponentOption>) => null;
|
|
48
50
|
declare const Matrix: (props: ComposeOption<MatrixComponentOption>) => null;
|
|
49
51
|
declare const Polar: (props: ComposeOption<PolarComponentOption>) => null;
|
|
52
|
+
declare const Radar: (props: ComposeOption<RadarComponentOption>) => null;
|
|
50
53
|
declare const SingleAxis: (props: ComposeOption<SingleAxisComponentOption>) => null;
|
|
51
54
|
declare const Timeline: (props: ComposeOption<TimelineComponentOption>) => null;
|
|
52
55
|
declare const Title: (props: ComposeOption<TitleComponentOption>) => null;
|
|
@@ -57,4 +60,4 @@ declare const VisualMap: (props: ComposeOption<VisualMapComponentOption>) => nul
|
|
|
57
60
|
//#region src/features.d.ts
|
|
58
61
|
declare function AxisBreak(): null;
|
|
59
62
|
//#endregion
|
|
60
|
-
export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, Geo, GraphChart, Graphic, HeatmapChart, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, SankeyChart, ScatterChart, SingleAxis, SunburstChart, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
|
|
63
|
+
export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, FunnelChart, Geo, GraphChart, Graphic, HeatmapChart, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, Radar, RadarChart, SVGRenderer, SankeyChart, ScatterChart, SingleAxis, SunburstChart, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CanvasRenderer, SVGRenderer } from "echarts/renderers";
|
|
2
|
+
import { BarChart as BarChart$1, EffectScatterChart as EffectScatterChart$1, FunnelChart as FunnelChart$1, GraphChart as GraphChart$1, HeatmapChart as HeatmapChart$1, LineChart as LineChart$1, PieChart as PieChart$1, RadarChart as RadarChart$1, SankeyChart as SankeyChart$1, ScatterChart as ScatterChart$1, SunburstChart as SunburstChart$1 } from "echarts/charts";
|
|
3
|
+
import { BrushComponent, CalendarComponent, DataZoomComponent, DatasetComponent, GeoComponent, GraphicComponent, GridComponent, LegendComponent, MarkAreaComponent, MarkLineComponent, MarkPointComponent, MatrixComponent, PolarComponent, RadarComponent, SingleAxisComponent, TimelineComponent, TitleComponent, ToolboxComponent, TooltipComponent, TransformComponent, VisualMapComponent } from "echarts/components";
|
|
2
4
|
import React from "react";
|
|
3
|
-
import { BarChart as BarChart$1, EffectScatterChart as EffectScatterChart$1, GraphChart as GraphChart$1, HeatmapChart as HeatmapChart$1, LineChart as LineChart$1, PieChart as PieChart$1, SankeyChart as SankeyChart$1, ScatterChart as ScatterChart$1, SunburstChart as SunburstChart$1 } from "echarts/charts";
|
|
4
|
-
import { BrushComponent, CalendarComponent, DataZoomComponent, DatasetComponent, GeoComponent, GraphicComponent, GridComponent, LegendComponent, MarkAreaComponent, MarkLineComponent, MarkPointComponent, MatrixComponent, PolarComponent, SingleAxisComponent, TimelineComponent, TitleComponent, ToolboxComponent, TooltipComponent, TransformComponent, VisualMapComponent } from "echarts/components";
|
|
5
5
|
import * as echarts from "echarts/core";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { AxisBreak as AxisBreak$1 } from "echarts/features";
|
|
@@ -76,10 +76,12 @@ function defineChart(ext) {
|
|
|
76
76
|
}
|
|
77
77
|
const BarChart = /*#__PURE__*/ defineChart([BarChart$1, GridComponent]);
|
|
78
78
|
const EffectScatterChart = /*#__PURE__*/ defineChart([EffectScatterChart$1, GridComponent]);
|
|
79
|
+
const FunnelChart = /*#__PURE__*/ defineChart([FunnelChart$1]);
|
|
79
80
|
const GraphChart = /*#__PURE__*/ defineChart([GraphChart$1]);
|
|
80
81
|
const HeatmapChart = /*#__PURE__*/ defineChart([HeatmapChart$1]);
|
|
81
82
|
const LineChart = /*#__PURE__*/ defineChart([LineChart$1, GridComponent]);
|
|
82
83
|
const PieChart = /*#__PURE__*/ defineChart([PieChart$1]);
|
|
84
|
+
const RadarChart = /*#__PURE__*/ defineChart([RadarChart$1]);
|
|
83
85
|
const ScatterChart = /*#__PURE__*/ defineChart([ScatterChart$1, GridComponent]);
|
|
84
86
|
const SankeyChart = /*#__PURE__*/ defineChart([SankeyChart$1]);
|
|
85
87
|
const SunburstChart = /*#__PURE__*/ defineChart([SunburstChart$1]);
|
|
@@ -109,6 +111,7 @@ const MarkLine = /*#__PURE__*/ defineComponent(MarkLineComponent);
|
|
|
109
111
|
const MarkPoint = /*#__PURE__*/ defineComponent(MarkPointComponent);
|
|
110
112
|
const Matrix = /*#__PURE__*/ defineComponent(MatrixComponent);
|
|
111
113
|
const Polar = /*#__PURE__*/ defineComponent(PolarComponent);
|
|
114
|
+
const Radar = /*#__PURE__*/ defineComponent(RadarComponent);
|
|
112
115
|
const SingleAxis = /*#__PURE__*/ defineComponent(SingleAxisComponent);
|
|
113
116
|
const Timeline = /*#__PURE__*/ defineComponent(TimelineComponent);
|
|
114
117
|
const Title = /*#__PURE__*/ defineComponent(TitleComponent);
|
|
@@ -124,4 +127,4 @@ function AxisBreak() {
|
|
|
124
127
|
return null;
|
|
125
128
|
}
|
|
126
129
|
//#endregion
|
|
127
|
-
export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, Geo, GraphChart, Graphic, HeatmapChart, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, SankeyChart, ScatterChart, SingleAxis, SunburstChart, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
|
|
130
|
+
export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, FunnelChart, Geo, GraphChart, Graphic, HeatmapChart, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, Radar, RadarChart, SVGRenderer, SankeyChart, ScatterChart, SingleAxis, SunburstChart, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
|
package/package.json
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanciers/echarts-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "ECharts <3 React",
|
|
5
|
-
"author": "Tmk <i@tmk.im>",
|
|
6
5
|
"keywords": [
|
|
6
|
+
"chart",
|
|
7
|
+
"component",
|
|
7
8
|
"echarts",
|
|
8
9
|
"react",
|
|
9
|
-
"component",
|
|
10
|
-
"chart",
|
|
11
10
|
"visualization"
|
|
12
11
|
],
|
|
12
|
+
"homepage": "https://tmkx.github.io/echarts-react",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"author": "Tmk <i@tmk.im>",
|
|
15
|
+
"repository": {
|
|
16
|
+
"url": "https://github.com/tmkx/echarts-react.git"
|
|
17
|
+
},
|
|
16
18
|
"files": [
|
|
17
19
|
"dist"
|
|
18
20
|
],
|
|
21
|
+
"type": "module",
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"main": "./dist/index.mjs",
|
|
24
|
+
"typings": "./dist/index.d.mts",
|
|
19
25
|
"exports": {
|
|
20
26
|
".": {
|
|
21
27
|
"types": "./dist/index.d.mts",
|
|
22
28
|
"default": "./dist/index.mjs"
|
|
23
29
|
}
|
|
24
30
|
},
|
|
25
|
-
"main": "./dist/index.mjs",
|
|
26
|
-
"typings": "./dist/index.d.mts",
|
|
27
|
-
"homepage": "https://tmkx.github.io/echarts-react",
|
|
28
|
-
"repository": {
|
|
29
|
-
"url": "https://github.com/tmkx/echarts-react.git"
|
|
30
|
-
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"echarts": "^6.1.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@storybook/addon-docs": "10.4.
|
|
36
|
-
"@storybook/react": "10.4.
|
|
37
|
-
"@storybook/react-vite": "10.4.
|
|
35
|
+
"@storybook/addon-docs": "^10.4.6",
|
|
36
|
+
"@storybook/react": "^10.4.6",
|
|
37
|
+
"@storybook/react-vite": "^10.4.6",
|
|
38
38
|
"@types/node": "^25.9.3",
|
|
39
39
|
"@types/react": "^19.2.17",
|
|
40
40
|
"@types/react-dom": "^19.2.3",
|
|
41
|
+
"oxfmt": "^0.55.0",
|
|
41
42
|
"react": "^19.2.7",
|
|
42
43
|
"react-dom": "^19.2.7",
|
|
43
|
-
"storybook": "10.4.
|
|
44
|
+
"storybook": "^10.4.6",
|
|
44
45
|
"swr": "^2.4.1",
|
|
45
|
-
"tsdown": "^0.22.
|
|
46
|
+
"tsdown": "^0.22.3",
|
|
46
47
|
"typescript": "^6.0.3",
|
|
47
|
-
"vite": "8.0.16",
|
|
48
|
+
"vite": "^8.0.16",
|
|
48
49
|
"vitest": "^4.1.9"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
@@ -53,6 +54,8 @@
|
|
|
53
54
|
},
|
|
54
55
|
"scripts": {
|
|
55
56
|
"dev": "storybook dev",
|
|
57
|
+
"fmt": "oxfmt",
|
|
58
|
+
"fmt:check": "oxfmt --check",
|
|
56
59
|
"test": "vitest",
|
|
57
60
|
"lint": "tsc --noEmit"
|
|
58
61
|
}
|