@fanciers/echarts-react 0.0.5 → 0.0.7
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 +4 -2
- package/package.json +3 -3
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, 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, 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
|
|
@@ -31,6 +31,8 @@ declare const HeatmapChart: ChartComponentType<HeatmapSeriesOption>;
|
|
|
31
31
|
declare const LineChart: ChartComponentType<GridComponentOption | LineSeriesOption>;
|
|
32
32
|
declare const PieChart: ChartComponentType<PieSeriesOption>;
|
|
33
33
|
declare const ScatterChart: ChartComponentType<GridComponentOption | ScatterSeriesOption>;
|
|
34
|
+
declare const SankeyChart: ChartComponentType<SankeySeriesOption>;
|
|
35
|
+
declare const SunburstChart: ChartComponentType<SunburstSeriesOption>;
|
|
34
36
|
//#endregion
|
|
35
37
|
//#region src/components.d.ts
|
|
36
38
|
declare const Brush: (props: ComposeOption<BrushComponentOption>) => null;
|
|
@@ -55,4 +57,4 @@ declare const VisualMap: (props: ComposeOption<VisualMapComponentOption>) => nul
|
|
|
55
57
|
//#region src/features.d.ts
|
|
56
58
|
declare function AxisBreak(): null;
|
|
57
59
|
//#endregion
|
|
58
|
-
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 };
|
|
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CanvasRenderer, SVGRenderer } from "echarts/renderers";
|
|
2
2
|
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 } from "echarts/charts";
|
|
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
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";
|
|
@@ -81,6 +81,8 @@ const HeatmapChart = /*#__PURE__*/ defineChart([HeatmapChart$1]);
|
|
|
81
81
|
const LineChart = /*#__PURE__*/ defineChart([LineChart$1, GridComponent]);
|
|
82
82
|
const PieChart = /*#__PURE__*/ defineChart([PieChart$1]);
|
|
83
83
|
const ScatterChart = /*#__PURE__*/ defineChart([ScatterChart$1, GridComponent]);
|
|
84
|
+
const SankeyChart = /*#__PURE__*/ defineChart([SankeyChart$1]);
|
|
85
|
+
const SunburstChart = /*#__PURE__*/ defineChart([SunburstChart$1]);
|
|
84
86
|
//#endregion
|
|
85
87
|
//#region src/components.tsx
|
|
86
88
|
function defineComponent(ext) {
|
|
@@ -122,4 +124,4 @@ function AxisBreak() {
|
|
|
122
124
|
return null;
|
|
123
125
|
}
|
|
124
126
|
//#endregion
|
|
125
|
-
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 };
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanciers/echarts-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "ECharts <3 React",
|
|
5
5
|
"author": "Tmk <i@tmk.im>",
|
|
6
6
|
"keywords": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@storybook/addon-docs": "10.4.3",
|
|
36
36
|
"@storybook/react": "10.4.3",
|
|
37
37
|
"@storybook/react-vite": "10.4.3",
|
|
38
|
-
"@types/node": "^25.9.
|
|
38
|
+
"@types/node": "^25.9.3",
|
|
39
39
|
"@types/react": "^19.2.17",
|
|
40
40
|
"@types/react-dom": "^19.2.3",
|
|
41
41
|
"react": "^19.2.7",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"tsdown": "^0.22.2",
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
47
|
"vite": "8.0.16",
|
|
48
|
-
"vitest": "^4.1.
|
|
48
|
+
"vitest": "^4.1.9"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=18.0.0",
|