/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import type { IChartData, IChartPoint, IChartRenderOptions, IChartTheme } from "../interface"; export declare const PAD = 24; export declare const TITLE_HEIGHT = 40; export declare const LABEL_FONT = 13; export declare const TICK_FONT = 12; export declare const TICK_COUNT = 4; export declare const BAR_RADIUS = 4; export declare const MAX_LABEL = 14; export declare const DEFAULT_BACKGROUND = "#ffffff"; export declare const DEFAULT_TEXT_COLOR = "#111827"; /** * Colors derived from the chart background and text color so grids, axes and * secondary labels stay readable on light and dark surfaces alike. */ export declare function chartTheme(data: IChartData): IChartTheme; export interface IPlotBox { x: number; y: number; width: number; height: number; } export declare function esc(value: string | number): string; export declare function num(value: number): string; export declare function formatValue(value: number): string; export declare function truncate(label: string, max?: number): string; export declare function pointColor(point: IChartPoint, index: number, options: IChartRenderOptions): string; export declare function niceStep(rawStep: number): number; export declare function ticks(points: IChartPoint[]): number[]; export declare function textWidth(text: string, fontSize: number): number; export declare function plotBox(data: IChartData, margin: IPlotBox): IPlotBox; export declare function svgOpen(data: IChartData, options: IChartRenderOptions): string; export declare function svgClose(): string; export declare function renderTitle(data: IChartData, theme: IChartTheme): string; export declare function roundedBarPath(x: number, y: number, width: number, height: number, radius: number, side: 'top' | 'right'): string; export declare function valuePill(cx: number, cy: number, value: number, color: string, theme: IChartTheme): string;