import { getDarkBrushConfig, getDarkColor, getDarkCrosshairRect, getDarkLabel, getDarkLegend, getDarkPivotChartGridConfig } from "../common/index.js";
import { getDarkTooltip } from "../common/tooltip.js";
import { getDarkBandAxis, getDarkLinearAxis } from "../common/axes.js";
import { getDarkAnnotation } from "../common/annotaion.js";
const getBarTheme = ()=>{
    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 baseConfig = {
        backgroundColor: 'transparent',
        color: getDarkColor(),
        label: getDarkLabel(),
        legend: getDarkLegend(),
        tooltip: getDarkTooltip(),
        brush: getDarkBrushConfig()
    };
    return {
        ...baseConfig,
        xAxis: linearAxis,
        yAxis: barBandAxis,
        crosshairRect: crosshairRect,
        stackCornerRadius: [
            0,
            4,
            4,
            0
        ],
        pivotGrid: getDarkPivotChartGridConfig(),
        annotation: getDarkAnnotation()
    };
};
const getBarParallelTheme = ()=>getBarTheme();
const getBarPercentTheme = ()=>getBarTheme();
export { getBarParallelTheme, getBarPercentTheme, getBarTheme };

//# sourceMappingURL=bar.js.map