import { getLightBrushConfig, getLightColor, getLightCrosshairLine, getLightCrosshairRect, getLightLabel, getLightLegend, getLightPivotChartGridConfig, getLightPlayer } from "../common/index.js";
import { getLightTooltip } from "../common/tooltip.js";
import { getLightAnnotation } from "../common/annotaion.js";
import { getLightBandAxis, getLightLinearAxis } from "../common/axes.js";
import { getLightRegressionLine } from "../common/regressionLine.js";
const getRaceBarTheme = ()=>{
    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 player = getLightPlayer();
    const baseConfig = {
        backgroundColor: 'transparent',
        color: getLightColor(),
        label: getLightLabel(),
        legend: getLightLegend(),
        tooltip: getLightTooltip(),
        brush: getLightBrushConfig()
    };
    return {
        ...baseConfig,
        legend: {
            ...baseConfig.legend,
            enable: false
        },
        xAxis: {
            ...linearAxis,
            animation: {
                duration: player.interval,
                easing: 'linear'
            },
            nice: false
        },
        yAxis: {
            ...barBandAxis,
            animation: {
                duration: player.interval ? 0.6 * player.interval : void 0,
                easing: 'cubicInOut'
            }
        },
        crosshairRect,
        player,
        stackCornerRadius: [
            0,
            4,
            4,
            0
        ],
        pivotGrid: getLightPivotChartGridConfig(),
        annotation: getLightAnnotation()
    };
};
const getRaceColumnTheme = ()=>{
    const linearAxis = getLightLinearAxis();
    const bandAxis = getLightBandAxis();
    const crosshairRect = getLightCrosshairRect();
    const player = getLightPlayer();
    const baseConfig = {
        backgroundColor: 'transparent',
        color: getLightColor(),
        label: getLightLabel(),
        legend: getLightLegend(),
        tooltip: getLightTooltip(),
        brush: getLightBrushConfig()
    };
    return {
        ...baseConfig,
        legend: {
            ...baseConfig.legend,
            enable: false
        },
        xAxis: {
            ...bandAxis,
            animation: {
                duration: player.interval ? 0.6 * player.interval : void 0,
                easing: 'cubicInOut'
            }
        },
        yAxis: {
            ...linearAxis,
            animation: {
                duration: player.interval,
                easing: 'linear'
            },
            nice: false
        },
        crosshairRect,
        player,
        stackCornerRadius: [
            4,
            4,
            0,
            0
        ],
        pivotGrid: getLightPivotChartGridConfig(),
        annotation: getLightAnnotation(),
        regressionLine: getLightRegressionLine()
    };
};
const getRaceScatterTheme = ()=>{
    const linearAxis = getLightLinearAxis();
    const crosshairLine = getLightCrosshairLine();
    const player = getLightPlayer();
    const baseConfig = {
        backgroundColor: 'transparent',
        color: getLightColor(),
        label: getLightLabel(),
        legend: getLightLegend(),
        tooltip: getLightTooltip(),
        brush: getLightBrushConfig()
    };
    return {
        ...baseConfig,
        legend: {
            ...baseConfig.legend,
            enable: false
        },
        crosshairLine,
        sizeRange: [
            8,
            24
        ],
        xAxis: {
            ...linearAxis,
            max: true,
            animation: {
                duration: player.interval ? 0.6 * player.interval : void 0,
                easing: 'cubicInOut'
            },
            line: {
                ...linearAxis.line,
                visible: true
            }
        },
        yAxis: {
            ...linearAxis,
            max: true,
            animation: {
                duration: player.interval ? 0.6 * player.interval : void 0,
                easing: 'cubicInOut'
            },
            line: {
                ...linearAxis.line,
                visible: true
            }
        },
        label: {
            ...baseConfig.label,
            showValue: false,
            showValuePercent: false
        },
        player,
        pivotGrid: getLightPivotChartGridConfig(),
        annotation: getLightAnnotation(),
        regressionLine: getLightRegressionLine()
    };
};
export { getRaceBarTheme, getRaceColumnTheme, getRaceScatterTheme };

//# sourceMappingURL=race.js.map