Skip to content

Commit 2fc0860

Browse files
committed
feat: add brush component
1 parent dfc7755 commit 2fc0860

File tree

3 files changed

+460
-2
lines changed

3 files changed

+460
-2
lines changed

src/components.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type {
2+
BrushComponentOption,
23
ComposeOption,
34
DatasetComponentOption,
45
DataZoomComponentOption,
@@ -15,6 +16,7 @@ import type {
1516
VisualMapComponentOption,
1617
} from 'echarts';
1718
import {
19+
BrushComponent,
1820
DatasetComponent,
1921
DataZoomComponent,
2022
GraphicComponent,
@@ -50,6 +52,8 @@ function defineComponent<T extends ComponentOption>(ext: EChartExt) {
5052
};
5153
}
5254

55+
export const Brush = /*#__PURE__*/ defineComponent<BrushComponentOption>([BrushComponent]);
56+
5357
export const Dataset = /*#__PURE__*/ defineComponent<DatasetComponentOption>([DatasetComponent, TransformComponent]);
5458

5559
export const DataZoom = /*#__PURE__*/ defineComponent<DataZoomComponentOption>([DataZoomComponent]);

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export { CanvasRenderer, SVGRenderer } from 'echarts/renderers';
22
export { BarChart, LineChart, PieChart } from './charts.js';
33
export {
4+
Brush,
45
Dataset,
56
DataZoom,
67
Graphic,

0 commit comments

Comments
 (0)