UNPKG

2.3 kBTypeScriptView Raw
1import withLegend, { LegendProps } from './withLegend';
2import LegendView from './legendView';
3export { LegendProps, withLegend, LegendView };
4declare const _default: {
5 new <IProps extends LegendProps = LegendProps>(props: any): {
6 legendStyle: import("@antv/f-engine").GroupStyleProps;
7 itemWidth: Number;
8 getOriginItems(): any;
9 getItems(): any;
10 setItems(items: any): void;
11 getMaxItemBox(node: any): {
12 width: number;
13 height: number;
14 };
15 _init(): void;
16 updateCoord(): void;
17 willMount(): void;
18 didMount(): void;
19 willUpdate(): void;
20 _onclick: (item: any) => void;
21 render(): import("@antv/f-engine").JSX.Element;
22 props: IProps & import("../../chart").ChartChildProps<import("../../chart/Data").DataRecord>;
23 state: import("@antv/f-engine").IState;
24 context: import("@antv/f-engine").IContext;
25 refs: {
26 [key: string]: import("@antv/f-engine/es/component").default<import("@antv/f-engine").IProps, import("@antv/f-engine").IState>;
27 };
28 updater: import("@antv/f-engine/es/component/updater").Updater<import("@antv/f-engine").IState>;
29 container: import("@antv/g-lite").Group;
30 layout: import("@antv/f-engine").LayoutProps;
31 children: import("@antv/f-engine/es/canvas/vnode").VNode | import("@antv/f-engine/es/canvas/vnode").VNode[];
32 isMounted: boolean;
33 animate: boolean;
34 animator: import("@antv/f-engine/es/canvas/render/animator").default;
35 destroyed: boolean;
36 _vNode: import("@antv/f-engine/es/canvas/vnode").VNode;
37 shouldUpdate(_nextProps: IProps & import("../../chart").ChartChildProps<import("../../chart/Data").DataRecord>): boolean;
38 willReceiveProps(_props: IProps & import("../../chart").ChartChildProps<import("../../chart/Data").DataRecord>, _context?: import("@antv/f-engine").IContext): void;
39 didUpdate(): void;
40 willUnmount(): void;
41 didUnmount(): void;
42 setState(partialState: import("@antv/f-engine").IState, callback?: () => void): void;
43 forceUpdate(callback?: () => void): void;
44 setAnimate(animate: boolean): void;
45 destroy(): void;
46 };
47};
48export default _default;