1 | import { Ref, Component } from '@antv/f-engine';
|
2 | import { Category } from '../../attr';
|
3 | import CoordController from '../../controller/coord';
|
4 | import { Data, DataRecord } from '../../chart/Data';
|
5 | import { CoordProps } from '../../chart/Coord';
|
6 | export interface ColorAttrObject {
|
7 | field: string;
|
8 | range?: any[];
|
9 | callback?: (value: any) => any;
|
10 | }
|
11 | export interface SunburstProps<TRecord extends DataRecord = DataRecord> {
|
12 | data: Data<TRecord>;
|
13 | coord?: CoordProps;
|
14 | color?: any[] | ColorAttrObject;
|
15 | value?: string;
|
16 | sort?: boolean;
|
17 | onClick?: (ev: any) => void;
|
18 | }
|
19 | declare const _default: (View: any) => {
|
20 | new <TRecord extends DataRecord = DataRecord, IProps extends SunburstProps<TRecord> = SunburstProps<TRecord>>(props: IProps, context: any): {
|
21 | coord: CoordController;
|
22 | color: Category;
|
23 | triggerRef: Ref[];
|
24 | willMount(): void;
|
25 | didMount(): void;
|
26 | _mapping(children: any): void;
|
27 | sunburst(): any;
|
28 | render(): import("@antv/f-engine").JSX.Element;
|
29 | props: IProps;
|
30 | state: import("@antv/f-engine").IState;
|
31 | context: import("@antv/f-engine").IContext;
|
32 | refs: {
|
33 | [key: string]: Component<import("@antv/f-engine").IProps, import("@antv/f-engine").IState>;
|
34 | };
|
35 | updater: import("@antv/f-engine/es/component/updater").Updater<import("@antv/f-engine").IState>;
|
36 | container: import("@antv/g-lite").Group;
|
37 | layout: import("@antv/f-engine").LayoutProps;
|
38 | children: import("@antv/f-engine/es/canvas/vnode").VNode | import("@antv/f-engine/es/canvas/vnode").VNode[];
|
39 | isMounted: boolean;
|
40 | animate: boolean;
|
41 | animator: import("@antv/f-engine/es/canvas/render/animator").default;
|
42 | destroyed: boolean;
|
43 | _vNode: import("@antv/f-engine/es/canvas/vnode").VNode;
|
44 | shouldUpdate(_nextProps: IProps): boolean;
|
45 | willReceiveProps(_props: IProps, _context?: import("@antv/f-engine").IContext): void;
|
46 | willUpdate(): void;
|
47 | didUpdate(): void;
|
48 | willUnmount(): void;
|
49 | didUnmount(): void;
|
50 | setState(partialState: import("@antv/f-engine").IState, callback?: () => void): void;
|
51 | forceUpdate(callback?: () => void): void;
|
52 | setAnimate(animate: boolean): void;
|
53 | destroy(): void;
|
54 | };
|
55 | };
|
56 | export default _default;
|