1 | import React from 'react';
|
2 | import { Plot } from '@antv/g2plot/lib/core/plot';
|
3 | interface VisibleText {
|
4 | visible?: boolean;
|
5 | text: string;
|
6 | }
|
7 | interface BasePlotOptions {
|
8 | |
9 |
|
10 |
|
11 | onGetG2Instance?: (chart: Plot<any>) => void;
|
12 | errorContent?: React.ReactNode;
|
13 | |
14 |
|
15 |
|
16 | events?: Record<string, Function>;
|
17 | |
18 |
|
19 |
|
20 | readonly title?: React.ReactNode | VisibleText;
|
21 | |
22 |
|
23 |
|
24 | readonly description?: React.ReactNode | VisibleText;
|
25 | |
26 |
|
27 |
|
28 | forceFit?: boolean;
|
29 | |
30 |
|
31 |
|
32 |
|
33 | isMaterial?: boolean;
|
34 | }
|
35 | export { BasePlotOptions };
|
36 | declare function createPlot<IPlotConfig extends Record<string, any>>(PlotClass: any, name: string, transCfg?: Function): React.ForwardRefExoticComponent<React.PropsWithoutRef<IPlotConfig> & React.RefAttributes<any>>;
|
37 | export default createPlot;
|