victory-native
Version:
A charting library for React Native with a focus on performance and customization.
13 lines (12 loc) • 551 B
TypeScript
import type { SkFont } from "@shopify/react-native-skia";
export type TextLayout = {
lines: string[];
width: number;
height: number;
fontSize: number;
lineHeight: number;
};
export type TextLayoutDimensions = Pick<TextLayout, "width" | "height" | "fontSize" | "lineHeight">;
export declare const getTextLines: (text: string) => string[];
export declare const getTextLayout: (text: string, font?: SkFont | null) => TextLayout;
export declare const getMaxTextLayout: (labels: string[], font?: SkFont | null) => TextLayoutDimensions;