react-spectrum-charts-capstone-venn
Version:
Declarative library for composing Spectrum visualizations in React.
24 lines • 1.07 kB
TypeScript
import { FC } from 'react';
import { BigNumberProps, RscChartProps } from '../../../types';
import './BigNumber.css';
declare const BigNumber: FC<BigNumberProps>;
/**
* There are props such as rscChartProps that we don't want exposed externally.
* We take the props from the external big number components and pass them to this internal component
* alongside some additional props we add ourselves based on the RscChartProps so we can render the sparkline using an RSC line chart.
*/
declare const BigNumberInternal: FC<BigNumberProps & {
rscChartProps: RscChartProps;
}>;
type BigNumberSize = 'small' | 'medium' | 'large' | 'x-large';
export declare function getBigNumberSize(chartWidth: number, chartHeight: number): BigNumberSize;
export declare function getBigNumberChartDimensions(bigNumberSize: BigNumberSize): {
cHeight: number;
cWidth: number;
};
export declare function getFontSize(bigNumberSize: BigNumberSize): {
labelSize: string;
valueSize: string;
};
export { BigNumber, BigNumberInternal };
//# sourceMappingURL=BigNumber.d.ts.map