/*! * chartjs-plugin-outlabels4 v1.0.7 * https://github.com/gagiD/chartjs-plugin-outlabels4 * (c) 2025 gagiD * @license MIT */ import { Chart, ChartDataset, Scriptable, ScriptableAndScriptableOptions, ScriptableChartContext, FontSpec, ChartType, Plugin } from 'chart.js'; interface OutLabelsContext { chart: Chart<'doughnut'>; dataIndex: number; dataset: ChartDataset<'doughnut', number[]>; labels: string[]; datasetIndex: number; value: number; percent: number; } type TRBL = { top: number; right: number; bottom: number; left: number; }; type FontOptions = FontSpec & { resizable?: boolean; minSize?: number; maxSize?: number; }; type OutLabelsOptions = { display?: Scriptable; text?: Scriptable; textAlign?: string; color?: string; borderRadius?: number; borderWidth?: number; lineWidth?: number; length?: number; percentPrecision?: number; valuePrecision?: number; padding?: number | TRBL; font?: ScriptableAndScriptableOptions, ScriptableChartContext>; backgroundColor?: Scriptable; borderColor?: Scriptable; lineColor?: Scriptable; }; declare module 'chart.js' { interface PluginOptionsByType { outlabels?: OutLabelsOptions; } } declare type OutLabelsPlugin = Plugin<'doughnut' | 'pie', OutLabelsOptions>; declare const OutLabelsPlugin: OutLabelsPlugin; export { OutLabelsPlugin as default }; //# sourceMappingURL=index.d.ts.map