victory-native
Version:
A charting library for React Native with a focus on performance and customization.
10 lines (9 loc) • 669 B
TypeScript
import { type SkParagraphStyle, type SkTextStyle, type SkTypefaceFontProvider } from "@shopify/react-native-skia";
import type { AxisLabelMeasureArgs, AxisLabelRenderer } from "../../types";
export type CreateParagraphLabelRendererOptions<Label = unknown> = {
paragraphStyle?: SkParagraphStyle;
textStyle?: SkTextStyle;
typefaceFontProvider?: SkTypefaceFontProvider | null;
maxWidth?: number | ((args: AxisLabelMeasureArgs<Label>) => number);
};
export declare const createParagraphLabelRenderer: <Label = unknown>({ paragraphStyle, textStyle, typefaceFontProvider, maxWidth, }?: CreateParagraphLabelRendererOptions<Label>) => AxisLabelRenderer<Label>;