@mui/x-charts
Version:
The community edition of MUI X Charts components.
11 lines • 611 B
TypeScript
/**
* Return the vertical/horizontal alignment for a tick label at a given position.
* @param px The normalized x position to the axis line (between -1 and 1).
* @param py The normalized y position to the axis line (between -1 and 1).
* @param tickLabelPosition The position of the tick label relative to the axis line.
* @returns The vertical and horizontal alignment for the tick label.
*/
export declare function getLabelTransform(px: number, py: number, tickLabelPosition: 'center' | 'after' | 'before'): {
verticalAlign: 'start' | 'middle' | 'end';
horizontalAlign: 'start' | 'middle' | 'end';
};