@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
21 lines (20 loc) • 661 B
TypeScript
import { PieChartProps } from './interfaces';
interface Dimension {
innerRadius: number;
outerRadius: number;
padding: number;
paddingLabels: number;
innerLabelPadding: number;
}
export declare const dimensionsBySize: Record<NonNullable<PieChartProps['size']>, Dimension>;
export declare const defaultDetails: (i18nStrings: PieChartProps.I18nStrings) => (datum: PieChartProps.Datum, dataSum: number) => ({
key: string;
value: number;
} | {
key: string;
value: string;
})[];
export declare const balanceLabelNodes: (nodes: NodeListOf<SVGGElement>, markers: Array<{
endY: number;
}>, leftSide: boolean) => void;
export {};