@fanciers/echarts-react 0.0.7 → 0.0.8
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 +4 -2
- package/dist/index.mjs +5 -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, 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
|
|
@@ -30,6 +30,7 @@ declare const GraphChart: ChartComponentType<GraphSeriesOption>;
|
|
|
30
30
|
declare const HeatmapChart: ChartComponentType<HeatmapSeriesOption>;
|
|
31
31
|
declare const LineChart: ChartComponentType<GridComponentOption | LineSeriesOption>;
|
|
32
32
|
declare const PieChart: ChartComponentType<PieSeriesOption>;
|
|
33
|
+
declare const RadarChart: ChartComponentType<RadarSeriesOption>;
|
|
33
34
|
declare const ScatterChart: ChartComponentType<GridComponentOption | ScatterSeriesOption>;
|
|
34
35
|
declare const SankeyChart: ChartComponentType<SankeySeriesOption>;
|
|
35
36
|
declare const SunburstChart: ChartComponentType<SunburstSeriesOption>;
|
|
@@ -47,6 +48,7 @@ declare const MarkLine: (props: ComposeOption<MarkLineComponentOption>) => null;
|
|
|
47
48
|
declare const MarkPoint: (props: ComposeOption<MarkPointComponentOption>) => null;
|
|
48
49
|
declare const Matrix: (props: ComposeOption<MatrixComponentOption>) => null;
|
|
49
50
|
declare const Polar: (props: ComposeOption<PolarComponentOption>) => null;
|
|
51
|
+
declare const Radar: (props: ComposeOption<RadarComponentOption>) => null;
|
|
50
52
|
declare const SingleAxis: (props: ComposeOption<SingleAxisComponentOption>) => null;
|
|
51
53
|
declare const Timeline: (props: ComposeOption<TimelineComponentOption>) => null;
|
|
52
54
|
declare const Title: (props: ComposeOption<TitleComponentOption>) => null;
|
|
@@ -57,4 +59,4 @@ declare const VisualMap: (props: ComposeOption<VisualMapComponentOption>) => nul
|
|
|
57
59
|
//#region src/features.d.ts
|
|
58
60
|
declare function AxisBreak(): null;
|
|
59
61
|
//#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 };
|
|
62
|
+
export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, 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, 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";
|
|
@@ -80,6 +80,7 @@ const GraphChart = /*#__PURE__*/ defineChart([GraphChart$1]);
|
|
|
80
80
|
const HeatmapChart = /*#__PURE__*/ defineChart([HeatmapChart$1]);
|
|
81
81
|
const LineChart = /*#__PURE__*/ defineChart([LineChart$1, GridComponent]);
|
|
82
82
|
const PieChart = /*#__PURE__*/ defineChart([PieChart$1]);
|
|
83
|
+
const RadarChart = /*#__PURE__*/ defineChart([RadarChart$1]);
|
|
83
84
|
const ScatterChart = /*#__PURE__*/ defineChart([ScatterChart$1, GridComponent]);
|
|
84
85
|
const SankeyChart = /*#__PURE__*/ defineChart([SankeyChart$1]);
|
|
85
86
|
const SunburstChart = /*#__PURE__*/ defineChart([SunburstChart$1]);
|
|
@@ -109,6 +110,7 @@ const MarkLine = /*#__PURE__*/ defineComponent(MarkLineComponent);
|
|
|
109
110
|
const MarkPoint = /*#__PURE__*/ defineComponent(MarkPointComponent);
|
|
110
111
|
const Matrix = /*#__PURE__*/ defineComponent(MatrixComponent);
|
|
111
112
|
const Polar = /*#__PURE__*/ defineComponent(PolarComponent);
|
|
113
|
+
const Radar = /*#__PURE__*/ defineComponent(RadarComponent);
|
|
112
114
|
const SingleAxis = /*#__PURE__*/ defineComponent(SingleAxisComponent);
|
|
113
115
|
const Timeline = /*#__PURE__*/ defineComponent(TimelineComponent);
|
|
114
116
|
const Title = /*#__PURE__*/ defineComponent(TitleComponent);
|
|
@@ -124,4 +126,4 @@ function AxisBreak() {
|
|
|
124
126
|
return null;
|
|
125
127
|
}
|
|
126
128
|
//#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 };
|
|
129
|
+
export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, 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.8",
|
|
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
|
}
|