import { getDarkBrushConfig, getDarkColor, getDarkCrosshairLine, getDarkCrosshairRect, getDarkLabel, getDarkLegend, getDarkPivotChartGridConfig, getDarkPlayer } from "../common/index.js";
import { getDarkTooltip } from "../common/tooltip.js";
import { getDarkBandAxis, getDarkLinearAxis } from "../common/axes.js";
import { getDarkAnnotation } from "../common/annotaion.js";
import { getDarkRegressionLine } from "../common/regressionLine.js";
const getRaceBarTheme = ()=>{
    const linearAxis = getDarkLinearAxis();
    const bandAxis = getDarkBandAxis();
    const barBandAxis = {
        ...bandAxis,
        labelAutoHide: false,
        labelAutoHideGap: 1,
        labelAutoLimit: false,
        labelAutoLimitLength: void 0,
        labelAutoRotate: false,
        labelAutoRotateAngleRange: [
            0,
            -45,
            -90
        ]
    };
    const crosshairRect = getDarkCrosshairRect();
    const player = getDarkPlayer();
    const baseConfig = {
        backgroundColor: 'transparent',
        color: getDarkColor(),
        label: getDarkLabel(),
        legend: getDarkLegend(),
        tooltip: getDarkTooltip(),
        brush: getDarkBrushConfig()
    };
    return {
        ...baseConfig,
        legend: {
            ...baseConfig.legend,
            enable: false
        },
        xAxis: linearAxis,
        yAxis: barBandAxis,
        crosshairRect: crosshairRect,
        stackCornerRadius: [
            0,
            4,
            4,
            0
        ],
        pivotGrid: getDarkPivotChartGridConfig(),
        annotation: getDarkAnnotation(),
        player
    };
};
const getRaceColumnTheme = ()=>{
    const linearAxis = getDarkLinearAxis();
    const bandAxis = getDarkBandAxis();
    const crosshairRect = getDarkCrosshairRect();
    const player = getDarkPlayer();
    const baseConfig = {
        backgroundColor: 'transparent',
        color: getDarkColor(),
        label: getDarkLabel(),
        legend: getDarkLegend(),
        tooltip: getDarkTooltip(),
        brush: getDarkBrushConfig()
    };
    return {
        ...baseConfig,
        legend: {
            ...baseConfig.legend,
            enable: false
        },
        xAxis: bandAxis,
        yAxis: linearAxis,
        crosshairRect: crosshairRect,
        stackCornerRadius: [
            4,
            4,
            0,
            0
        ],
        pivotGrid: getDarkPivotChartGridConfig(),
        annotation: getDarkAnnotation(),
        player,
        regressionLine: getDarkRegressionLine()
    };
};
const getRaceScatterTheme = ()=>{
    const linearAxis = getDarkLinearAxis();
    const crosshairLine = getDarkCrosshairLine();
    const player = getDarkPlayer();
    const baseConfig = {
        backgroundColor: 'transparent',
        color: getDarkColor(),
        label: getDarkLabel(),
        legend: getDarkLegend(),
        tooltip: getDarkTooltip(),
        brush: getDarkBrushConfig()
    };
    return {
        ...baseConfig,
        legend: {
            ...baseConfig.legend,
            enable: false
        },
        crosshairLine,
        sizeRange: [
            8,
            24
        ],
        xAxis: {
            ...linearAxis,
            max: true,
            line: {
                ...linearAxis.line,
                visible: true
            }
        },
        yAxis: {
            ...linearAxis,
            max: true,
            line: {
                ...linearAxis.line,
                visible: true
            }
        },
        label: {
            ...baseConfig.label,
            showValue: false,
            showValuePercent: false
        },
        pivotGrid: getDarkPivotChartGridConfig(),
        annotation: getDarkAnnotation(),
        regressionLine: getDarkRegressionLine(),
        player
    };
};
export { getRaceBarTheme, getRaceColumnTheme, getRaceScatterTheme };

//# sourceMappingURL=race.js.map