All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.diagrams.xychart.chartBuilder.components.axis.baseAxis.d.ts Maven / Gradle / Ivy

Go to download

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

The newest version!
import type { BoundingRect, Dimension, DrawableElem, Point, XYChartAxisConfig, XYChartAxisThemeConfig } from '../../interfaces.js';
import type { TextDimensionCalculator } from '../../textDimensionCalculator.js';
import type { Axis, AxisPosition } from './index.js';
export declare abstract class BaseAxis implements Axis {
    protected axisConfig: XYChartAxisConfig;
    protected title: string;
    protected textDimensionCalculator: TextDimensionCalculator;
    protected axisThemeConfig: XYChartAxisThemeConfig;
    protected boundingRect: BoundingRect;
    protected axisPosition: AxisPosition;
    private range;
    protected showTitle: boolean;
    protected showLabel: boolean;
    protected showTick: boolean;
    protected showAxisLine: boolean;
    protected outerPadding: number;
    protected titleTextHeight: number;
    protected labelTextHeight: number;
    constructor(axisConfig: XYChartAxisConfig, title: string, textDimensionCalculator: TextDimensionCalculator, axisThemeConfig: XYChartAxisThemeConfig);
    setRange(range: [number, number]): void;
    getRange(): [number, number];
    setAxisPosition(axisPosition: AxisPosition): void;
    abstract getScaleValue(value: number | string): number;
    abstract recalculateScale(): void;
    abstract getTickValues(): (string | number)[];
    getTickDistance(): number;
    getAxisOuterPadding(): number;
    private getLabelDimension;
    recalculateOuterPaddingToDrawBar(): void;
    private calculateSpaceIfDrawnHorizontally;
    private calculateSpaceIfDrawnVertical;
    calculateSpace(availableSpace: Dimension): Dimension;
    setBoundingBoxXY(point: Point): void;
    private getDrawableElementsForLeftAxis;
    private getDrawableElementsForBottomAxis;
    private getDrawableElementsForTopAxis;
    getDrawableElements(): DrawableElem[];
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy