victory-native
Version:
A charting library for React Native with a focus on performance and customization.
11 lines (10 loc) • 651 B
TypeScript
import type { SkFont } from "@shopify/react-native-skia";
import type { AxisLabelMeasureArgs, AxisLabelMeasurement, AxisLabelRenderer } from "../../types";
export type AxisLabelLayout<Label> = AxisLabelMeasureArgs<Label> & Required<AxisLabelMeasurement> & {
lines: string[];
};
export declare const getAxisLabelLayout: <Label>({ axis, orientation, value, text, index, font, labelRenderer, }: AxisLabelMeasureArgs<Label> & {
font?: SkFont | null;
labelRenderer?: AxisLabelRenderer<Label>;
}) => AxisLabelLayout<Label>;
export declare const getMaxAxisLabelLayout: <Label>(labels: AxisLabelLayout<Label>[]) => Required<AxisLabelMeasurement>;