@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
24 lines (23 loc) • 1.04 kB
TypeScript
/// <reference types="hoist-non-react-statics" />
import React from 'react';
import PieRingBaseStyleService from '../../../../base-pandora-visualization/services/chart-style/charts/pie/ring-base';
import PieChartStore from '../store';
interface IInnerTextProps {
store: PieChartStore;
}
declare class InnerText extends React.Component<IInnerTextProps, any> {
chartStyleService: PieRingBaseStyleService;
getTopLeft: (center: [number, number]) => {
top: number;
left: number;
};
formatValue(value: number, total: number): any;
getValue: (series: {
value: number;
}, total: number) => any;
getTotalValue(total: number): any;
getTitle: (name: string) => string | number;
render(): React.JSX.Element;
}
declare const _default: React.ComponentClass<IInnerTextProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<IInnerTextProps, any> & typeof InnerText) | (React.FunctionComponent<IInnerTextProps> & typeof InnerText), {}>;
export default _default;