@fanciers/echarts-react 0.0.6 → 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 +5 -2
- package/dist/index.mjs +6 -3
- package/package.json +23 -20
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, 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,7 +30,9 @@ 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>;
|
|
35
|
+
declare const SankeyChart: ChartComponentType<SankeySeriesOption>;
|
|
34
36
|
declare const SunburstChart: ChartComponentType<SunburstSeriesOption>;
|
|
35
37
|
//#endregion
|
|
36
38
|
//#region src/components.d.ts
|
|
@@ -46,6 +48,7 @@ declare const MarkLine: (props: ComposeOption<MarkLineComponentOption>) => null;
|
|
|
46
48
|
declare const MarkPoint: (props: ComposeOption<MarkPointComponentOption>) => null;
|
|
47
49
|
declare const Matrix: (props: ComposeOption<MatrixComponentOption>) => null;
|
|
48
50
|
declare const Polar: (props: ComposeOption<PolarComponentOption>) => null;
|
|
51
|
+
declare const Radar: (props: ComposeOption<RadarComponentOption>) => null;
|
|
49
52
|
declare const SingleAxis: (props: ComposeOption<SingleAxisComponentOption>) => null;
|
|
50
53
|
declare const Timeline: (props: ComposeOption<TimelineComponentOption>) => null;
|
|
51
54
|
declare const Title: (props: ComposeOption<TitleComponentOption>) => null;
|
|
@@ -56,4 +59,4 @@ declare const VisualMap: (props: ComposeOption<VisualMapComponentOption>) => nul
|
|
|
56
59
|
//#region src/features.d.ts
|
|
57
60
|
declare function AxisBreak(): null;
|
|
58
61
|
//#endregion
|
|
59
|
-
export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, Geo, GraphChart, Graphic, HeatmapChart, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, 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, 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,7 +80,9 @@ 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]);
|
|
85
|
+
const SankeyChart = /*#__PURE__*/ defineChart([SankeyChart$1]);
|
|
84
86
|
const SunburstChart = /*#__PURE__*/ defineChart([SunburstChart$1]);
|
|
85
87
|
//#endregion
|
|
86
88
|
//#region src/components.tsx
|
|
@@ -108,6 +110,7 @@ const MarkLine = /*#__PURE__*/ defineComponent(MarkLineComponent);
|
|
|
108
110
|
const MarkPoint = /*#__PURE__*/ defineComponent(MarkPointComponent);
|
|
109
111
|
const Matrix = /*#__PURE__*/ defineComponent(MatrixComponent);
|
|
110
112
|
const Polar = /*#__PURE__*/ defineComponent(PolarComponent);
|
|
113
|
+
const Radar = /*#__PURE__*/ defineComponent(RadarComponent);
|
|
111
114
|
const SingleAxis = /*#__PURE__*/ defineComponent(SingleAxisComponent);
|
|
112
115
|
const Timeline = /*#__PURE__*/ defineComponent(TimelineComponent);
|
|
113
116
|
const Title = /*#__PURE__*/ defineComponent(TitleComponent);
|
|
@@ -123,4 +126,4 @@ function AxisBreak() {
|
|
|
123
126
|
return null;
|
|
124
127
|
}
|
|
125
128
|
//#endregion
|
|
126
|
-
export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, Geo, GraphChart, Graphic, HeatmapChart, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, 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,51 +1,52 @@
|
|
|
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.
|
|
38
|
-
"@types/node": "^25.9.
|
|
35
|
+
"@storybook/addon-docs": "^10.4.6",
|
|
36
|
+
"@storybook/react": "^10.4.6",
|
|
37
|
+
"@storybook/react-vite": "^10.4.6",
|
|
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
|
-
"vitest": "^4.1.
|
|
48
|
+
"vite": "^8.0.16",
|
|
49
|
+
"vitest": "^4.1.9"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"react": ">=18.0.0",
|
|
@@ -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
|
}
|