import { FontSpec, Scriptable, ScriptableAndScriptableOptions, ScriptableChartContext, } from 'chart.js' import OutLabelsContext from './OutLabelsContext' export type TRBL = { top: number right: number bottom: number left: number } export type FontOptions = FontSpec & { resizable?: boolean minSize?: number maxSize?: number } export 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< Partial, ScriptableChartContext > backgroundColor?: Scriptable borderColor?: Scriptable lineColor?: Scriptable }