victory-native
Version:
A charting library for React Native with a focus on performance and customization.
18 lines (17 loc) • 690 B
TypeScript
import type { SkFont } from "@shopify/react-native-skia";
import type { AxisTitle, AxisTitlePosition } from "../../types";
import { type TextLayout } from "../../utils/textLayout";
export declare const DEFAULT_AXIS_TITLE_OFFSET = 4;
export type AxisTitleLayout = TextLayout & {
text: string;
font?: SkFont | null;
color?: string;
offset: number;
position: AxisTitlePosition;
hasContent: boolean;
};
export declare const getAxisTitleLayout: ({ title, font, }: {
title?: AxisTitle;
font?: SkFont | null;
}) => AxisTitleLayout;
export declare const getRotatedYAxisTitleBaselineY: ({ height, fontSize, }: Pick<AxisTitleLayout, "height" | "fontSize">) => number;