import { getLightBrushConfig, getLightColor, getLightCrosshairRect, getLightLabel, getLightLegend, getLightPivotChartGridConfig } from "../common/index.js";
import { getLightTooltip } from "../common/tooltip.js";
import { getLightAnnotation } from "../common/annotaion.js";
import { getLightBandAxis, getLightLinearAxis } from "../common/axes.js";
const getBarTheme = ()=>{
    const linearAxis = getLightLinearAxis();
    const bandAxis = getLightBandAxis();
    const barBandAxis = {
        ...bandAxis,
        labelAutoHide: false,
        labelAutoHideGap: 1,
        labelAutoLimit: false,
        labelAutoLimitLength: void 0,
        labelAutoRotate: false,
        labelAutoRotateAngleRange: [
            0,
            -45,
            -90
        ]
    };
    const crosshairRect = getLightCrosshairRect();
    const baseConfig = {
        backgroundColor: 'transparent',
        color: getLightColor(),
        label: getLightLabel(),
        legend: getLightLegend(),
        tooltip: getLightTooltip(),
        brush: getLightBrushConfig()
    };
    return {
        ...baseConfig,
        xAxis: linearAxis,
        yAxis: barBandAxis,
        crosshairRect,
        stackCornerRadius: [
            0,
            4,
            4,
            0
        ],
        pivotGrid: getLightPivotChartGridConfig(),
        annotation: getLightAnnotation()
    };
};
const getBarParallelTheme = ()=>getBarTheme();
const getBarPercentTheme = ()=>getBarTheme();
export { getBarParallelTheme, getBarPercentTheme, getBarTheme };

//# sourceMappingURL=bar.js.map