@lunit/oui
Version:
Lunit Oncology UI components
24 lines (23 loc) • 889 B
TypeScript
import type { VictoryStructuredData } from './Histogram.types';
/**
* Creates an array of data points for the histogram chart.
*
* @param sourceData - The source data array.
* @returns An array of data points for the histogram chart.
*/
export declare function makeHistoDataArray(sourceData: number[]): VictoryStructuredData;
/**
* Returns the border radius for a tab button based on its index and the total number of tabs.
*
* @param idx - The index of the tab button.
* @param max - The total number of tab buttons.
* @returns The border radius for the tab button.
*/
export declare function doBorderRadius(idx: number, max: number): string;
/**
* Calculates the font size for a tab button based on its label.
*
* @param text - The label of the tab button.
* @returns The font size for the tab button.
*/
export declare const calculateFontSize: (text: string) => number;