blowfish/assets/lib/mermaid/diagrams/xychart/chartBuilder/components/axis/bandAxis.d.ts
2024-03-07 20:32:21 +00:00

12 lines
638 B
TypeScript

import type { TextDimensionCalculator } from '../../textDimensionCalculator.js';
import { BaseAxis } from './baseAxis.js';
import type { XYChartAxisThemeConfig, XYChartAxisConfig } from '../../interfaces.js';
export declare class BandAxis extends BaseAxis {
private scale;
private categories;
constructor(axisConfig: XYChartAxisConfig, axisThemeConfig: XYChartAxisThemeConfig, categories: string[], title: string, textDimensionCalculator: TextDimensionCalculator);
setRange(range: [number, number]): void;
recalculateScale(): void;
getTickValues(): (string | number)[];
getScaleValue(value: string): number;
}