@fanciers/echarts-react 0.0.3 → 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, CalendarComponentOption, ComposeOption, DataZoomComponentOption, DatasetComponentOption, GeoComponentOption, GraphicComponentOption, GridComponentOption, LegendComponentOption, MarkAreaComponentOption, MarkLineComponentOption, MarkPointComponentOption, MatrixComponentOption, PolarComponentOption, ScatterSeriesOption, 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,9 +27,12 @@ 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>;
32
- declare const ScatterChart: ChartComponentType<ScatterSeriesOption>;
35
+ declare const ScatterChart: ChartComponentType<GridComponentOption | ScatterSeriesOption>;
33
36
  //#endregion
34
37
  //#region src/components.d.ts
35
38
  declare const Brush: (props: ComposeOption<BrushComponentOption>) => null;
@@ -44,6 +47,7 @@ declare const MarkLine: (props: ComposeOption<MarkLineComponentOption>) => null;
44
47
  declare const MarkPoint: (props: ComposeOption<MarkPointComponentOption>) => null;
45
48
  declare const Matrix: (props: ComposeOption<MatrixComponentOption>) => null;
46
49
  declare const Polar: (props: ComposeOption<PolarComponentOption>) => null;
50
+ declare const SingleAxis: (props: ComposeOption<SingleAxisComponentOption>) => null;
47
51
  declare const Timeline: (props: ComposeOption<TimelineComponentOption>) => null;
48
52
  declare const Title: (props: ComposeOption<TitleComponentOption>) => null;
49
53
  declare const Toolbox: (props: ComposeOption<ToolboxComponentOption>) => null;
@@ -53,4 +57,4 @@ declare const VisualMap: (props: ComposeOption<VisualMapComponentOption>) => nul
53
57
  //#region src/features.d.ts
54
58
  declare function AxisBreak(): null;
55
59
  //#endregion
56
- export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, Geo, Graphic, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, ScatterChart, 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, ScatterChart as ScatterChart$1 } from "echarts/charts";
4
- import { BrushComponent, CalendarComponent, 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,9 +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]);
82
- const ScatterChart = /* @__PURE__ */ defineChart([ScatterChart$1]);
85
+ const ScatterChart = /* @__PURE__ */ defineChart([ScatterChart$1, GridComponent]);
83
86
 
84
87
  //#endregion
85
88
  //#region src/components.tsx
@@ -107,6 +110,7 @@ const MarkLine = /* @__PURE__ */ defineComponent(MarkLineComponent);
107
110
  const MarkPoint = /* @__PURE__ */ defineComponent(MarkPointComponent);
108
111
  const Matrix = /* @__PURE__ */ defineComponent(MatrixComponent);
109
112
  const Polar = /* @__PURE__ */ defineComponent(PolarComponent);
113
+ const SingleAxis = /* @__PURE__ */ defineComponent(SingleAxisComponent);
110
114
  const Timeline = /* @__PURE__ */ defineComponent(TimelineComponent);
111
115
  const Title = /* @__PURE__ */ defineComponent(TitleComponent);
112
116
  const Toolbox = /* @__PURE__ */ defineComponent(ToolboxComponent);
@@ -123,4 +127,4 @@ function AxisBreak() {
123
127
  }
124
128
 
125
129
  //#endregion
126
- export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, Geo, Graphic, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, ScatterChart, 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.3",
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.3",
30
+ "@rsbuild/core": "^1.5.4",
31
31
  "@rsbuild/plugin-react": "^1.4.0",
32
- "@storybook/addon-docs": "^9.1.4",
33
- "@storybook/react": "^9.1.4",
32
+ "@storybook/addon-docs": "^9.1.5",
33
+ "@storybook/react": "^9.1.5",
34
34
  "@types/node": "^24.3.1",
35
35
  "@types/react": "^19.1.12",
36
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.4",
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",