react-native-chart-kit
Version:
Beautiful React Native charts for dashboards, reports, and data-rich mobile apps.
26 lines • 1.03 kB
TypeScript
import { type ChartBoxes, type LayoutDebugModel } from "../../../core/index";
import type { LineChartYAxisLabelModel } from "./axisLabels";
import type { LineChartLegendRenderItem } from "./types";
import type { XLabelLayoutItem } from "./xLabels";
type TextMeasurer = (text: string) => {
height: number;
width: number;
};
type LineChartDebugTooltipRect = {
height: number;
width: number;
x: number;
y: number;
};
export type BuildLineChartDebugLayoutModelOptions = {
boxes: ChartBoxes;
legendItems?: LineChartLegendRenderItem[] | undefined;
measureYLabel?: TextMeasurer | undefined;
tooltip?: LineChartDebugTooltipRect | undefined;
xLabels: XLabelLayoutItem[];
yAxisLabelFontSize: number;
yLabels: LineChartYAxisLabelModel[];
};
export declare const buildLineChartDebugLayoutModel: ({ boxes, legendItems, measureYLabel, tooltip, xLabels, yAxisLabelFontSize, yLabels }: BuildLineChartDebugLayoutModelOptions) => LayoutDebugModel;
export {};
//# sourceMappingURL=debugLayout.d.ts.map