@fanciers/echarts-react 0.0.2 → 0.0.4

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.ts CHANGED
@@ -2,7 +2,7 @@ import { CanvasRenderer, SVGRenderer } from "echarts/renderers";
2
2
  import React from "react";
3
3
  import { LineSeriesOption, PieSeriesOption } from "echarts/charts";
4
4
  import * as echarts from "echarts/core";
5
- import { BarSeriesOption, BrushComponentOption, ComposeOption, DataZoomComponentOption, DatasetComponentOption, GeoComponentOption, GraphicComponentOption, GridComponentOption, LegendComponentOption, MarkAreaComponentOption, MarkLineComponentOption, MarkPointComponentOption, MatrixComponentOption, PolarComponentOption, TimelineComponentOption, TitleComponentOption, ToolboxComponentOption, TooltipComponentOption, VisualMapComponentOption } from "echarts";
5
+ import { BarSeriesOption, BrushComponentOption, CalendarComponentOption, ComposeOption, DataZoomComponentOption, DatasetComponentOption, EffectScatterSeriesOption, GeoComponentOption, GraphSeriesOption, GraphicComponentOption, GridComponentOption, HeatmapSeriesOption, LegendComponentOption, MarkAreaComponentOption, MarkLineComponentOption, MarkPointComponentOption, MatrixComponentOption, PolarComponentOption, ScatterSeriesOption, SingleAxisComponentOption, TimelineComponentOption, TitleComponentOption, ToolboxComponentOption, TooltipComponentOption, VisualMapComponentOption } from "echarts";
6
6
  import { ComponentOption } from "echarts/types/src/util/types.js";
7
7
 
8
8
  //#region src/shared.d.ts
@@ -27,11 +27,16 @@ interface ChartComponentType<T extends ComponentOption> {
27
27
  ext: EChartExt;
28
28
  }
29
29
  declare const BarChart: ChartComponentType<BarSeriesOption | GridComponentOption>;
30
+ declare const EffectScatterChart: ChartComponentType<GridComponentOption | EffectScatterSeriesOption>;
31
+ declare const GraphChart: ChartComponentType<GraphSeriesOption>;
32
+ declare const HeatmapChart: ChartComponentType<HeatmapSeriesOption>;
30
33
  declare const LineChart: ChartComponentType<GridComponentOption | LineSeriesOption>;
31
34
  declare const PieChart: ChartComponentType<PieSeriesOption>;
35
+ declare const ScatterChart: ChartComponentType<GridComponentOption | ScatterSeriesOption>;
32
36
  //#endregion
33
37
  //#region src/components.d.ts
34
38
  declare const Brush: (props: ComposeOption<BrushComponentOption>) => null;
39
+ declare const Calendar: (props: ComposeOption<CalendarComponentOption>) => null;
35
40
  declare const Dataset: (props: ComposeOption<DatasetComponentOption>) => null;
36
41
  declare const DataZoom: (props: ComposeOption<DataZoomComponentOption>) => null;
37
42
  declare const Geo: (props: ComposeOption<GeoComponentOption>) => null;
@@ -42,6 +47,7 @@ declare const MarkLine: (props: ComposeOption<MarkLineComponentOption>) => null;
42
47
  declare const MarkPoint: (props: ComposeOption<MarkPointComponentOption>) => null;
43
48
  declare const Matrix: (props: ComposeOption<MatrixComponentOption>) => null;
44
49
  declare const Polar: (props: ComposeOption<PolarComponentOption>) => null;
50
+ declare const SingleAxis: (props: ComposeOption<SingleAxisComponentOption>) => null;
45
51
  declare const Timeline: (props: ComposeOption<TimelineComponentOption>) => null;
46
52
  declare const Title: (props: ComposeOption<TitleComponentOption>) => null;
47
53
  declare const Toolbox: (props: ComposeOption<ToolboxComponentOption>) => null;
@@ -51,4 +57,4 @@ declare const VisualMap: (props: ComposeOption<VisualMapComponentOption>) => nul
51
57
  //#region src/features.d.ts
52
58
  declare function AxisBreak(): null;
53
59
  //#endregion
54
- export { AxisBreak, BarChart, Brush, CanvasRenderer, DataZoom, Dataset, Geo, Graphic, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
60
+ export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, Geo, GraphChart, Graphic, HeatmapChart, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, ScatterChart, SingleAxis, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { CanvasRenderer, SVGRenderer } from "echarts/renderers";
2
2
  import React from "react";
3
- import { BarChart as BarChart$1, LineChart as LineChart$1, PieChart as PieChart$1 } from "echarts/charts";
4
- import { BrushComponent, DataZoomComponent, DatasetComponent, GeoComponent, GraphicComponent, GridComponent, LegendComponent, MarkAreaComponent, MarkLineComponent, MarkPointComponent, MatrixComponent, PolarComponent, TimelineComponent, TitleComponent, ToolboxComponent, TooltipComponent, TransformComponent, VisualMapComponent } from "echarts/components";
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 } 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";
@@ -77,8 +77,12 @@ function defineChart(ext) {
77
77
  return ChartComponent;
78
78
  }
79
79
  const BarChart = /* @__PURE__ */ defineChart([BarChart$1, GridComponent]);
80
+ const EffectScatterChart = /* @__PURE__ */ defineChart([EffectScatterChart$1, GridComponent]);
81
+ const GraphChart = /* @__PURE__ */ defineChart([GraphChart$1]);
82
+ const HeatmapChart = /* @__PURE__ */ defineChart([HeatmapChart$1]);
80
83
  const LineChart = /* @__PURE__ */ defineChart([LineChart$1, GridComponent]);
81
84
  const PieChart = /* @__PURE__ */ defineChart([PieChart$1]);
85
+ const ScatterChart = /* @__PURE__ */ defineChart([ScatterChart$1, GridComponent]);
82
86
 
83
87
  //#endregion
84
88
  //#region src/components.tsx
@@ -95,6 +99,7 @@ function defineComponent(ext) {
95
99
  };
96
100
  }
97
101
  const Brush = /* @__PURE__ */ defineComponent([BrushComponent]);
102
+ const Calendar = /* @__PURE__ */ defineComponent([CalendarComponent]);
98
103
  const Dataset = /* @__PURE__ */ defineComponent([DatasetComponent, TransformComponent]);
99
104
  const DataZoom = /* @__PURE__ */ defineComponent([DataZoomComponent]);
100
105
  const Geo = /* @__PURE__ */ defineComponent([GeoComponent]);
@@ -105,6 +110,7 @@ const MarkLine = /* @__PURE__ */ defineComponent(MarkLineComponent);
105
110
  const MarkPoint = /* @__PURE__ */ defineComponent(MarkPointComponent);
106
111
  const Matrix = /* @__PURE__ */ defineComponent(MatrixComponent);
107
112
  const Polar = /* @__PURE__ */ defineComponent(PolarComponent);
113
+ const SingleAxis = /* @__PURE__ */ defineComponent(SingleAxisComponent);
108
114
  const Timeline = /* @__PURE__ */ defineComponent(TimelineComponent);
109
115
  const Title = /* @__PURE__ */ defineComponent(TitleComponent);
110
116
  const Toolbox = /* @__PURE__ */ defineComponent(ToolboxComponent);
@@ -121,4 +127,4 @@ function AxisBreak() {
121
127
  }
122
128
 
123
129
  //#endregion
124
- export { AxisBreak, BarChart, Brush, CanvasRenderer, DataZoom, Dataset, Geo, Graphic, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
130
+ export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, EffectScatterChart, Geo, GraphChart, Graphic, HeatmapChart, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, ScatterChart, SingleAxis, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanciers/echarts-react",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "ECharts <3 React",
5
5
  "author": "Tmk <i@tmk.im>",
6
6
  "keywords": [
@@ -27,17 +27,17 @@
27
27
  "url": "https://github.com/tmkx/echarts-react.git"
28
28
  },
29
29
  "devDependencies": {
30
- "@rsbuild/core": "^1.5.1",
31
- "@rsbuild/plugin-react": "^1.3.5",
32
- "@storybook/addon-docs": "^9.1.3",
33
- "@storybook/react": "^9.1.3",
34
- "@types/node": "^24.3.0",
30
+ "@rsbuild/core": "^1.5.4",
31
+ "@rsbuild/plugin-react": "^1.4.0",
32
+ "@storybook/addon-docs": "^9.1.5",
33
+ "@storybook/react": "^9.1.5",
34
+ "@types/node": "^24.3.1",
35
35
  "@types/react": "^19.1.12",
36
- "@types/react-dom": "^19.1.8",
36
+ "@types/react-dom": "^19.1.9",
37
37
  "echarts": "^6.0.0",
38
38
  "react": "^19.1.1",
39
39
  "react-dom": "^19.1.1",
40
- "storybook": "^9.1.3",
40
+ "storybook": "^9.1.5",
41
41
  "storybook-react-rsbuild": "^2.1.0",
42
42
  "swr": "^2.3.6",
43
43
  "tsdown": "^0.14.2",