import { getDarkBrushConfig, getDarkColor, getDarkColorLegend, getDarkCrosshairLine, getDarkCrosshairRect, getDarkLabel, getDarkLegend, getDarkPivotChartGridConfig, getDarkPlayer, getDarkTableConfig, getFunnelDarkLabel } from "../common/index.js";
import { getDarkTooltip } from "../common/tooltip.js";
import { getDarkBandAxis, getDarkLinearAxis } from "../common/axes.js";
import { getDarkAnnotation } from "../common/annotaion.js";
import { getDarkFunnelTransformTheme } from "../common/funnelTransform.js";
import { getDarkHeatmapCellTheme } from "../common/heatmapCell.js";
import { getDarkRegressionLine } from "../common/regressionLine.js";
import { getDarkBoxPlotStyle, getDarkOutlierStyle } from "../common/boxPlot.js";
const darkTheme = ()=>{
    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 crosshairLine = getDarkCrosshairLine();
    const crosshairRect = getDarkCrosshairRect();
    const baseConfig = {
        backgroundColor: 'transparent',
        color: getDarkColor(),
        label: getDarkLabel(),
        legend: getDarkLegend(),
        tooltip: getDarkTooltip(),
        brush: getDarkBrushConfig()
    };
    const player = getDarkPlayer();
    const tableConfig = getDarkTableConfig();
    return {
        config: {
            table: tableConfig,
            pivotTable: tableConfig,
            line: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairLine: crosshairLine,
                player,
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation()
            },
            column: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairRect: crosshairRect,
                stackCornerRadius: [
                    4,
                    4,
                    0,
                    0
                ],
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                player,
                regressionLine: getDarkRegressionLine()
            },
            columnParallel: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairRect: crosshairRect,
                stackCornerRadius: [
                    4,
                    4,
                    0,
                    0
                ],
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                player
            },
            columnPercent: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairRect: crosshairRect,
                stackCornerRadius: [
                    4,
                    4,
                    0,
                    0
                ],
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                player
            },
            bar: {
                ...baseConfig,
                xAxis: linearAxis,
                yAxis: barBandAxis,
                crosshairRect: crosshairRect,
                stackCornerRadius: [
                    0,
                    4,
                    4,
                    0
                ],
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                player
            },
            barParallel: {
                ...baseConfig,
                xAxis: linearAxis,
                yAxis: barBandAxis,
                crosshairRect: crosshairRect,
                stackCornerRadius: [
                    0,
                    4,
                    4,
                    0
                ],
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                player
            },
            barPercent: {
                ...baseConfig,
                xAxis: linearAxis,
                yAxis: barBandAxis,
                crosshairRect: crosshairRect,
                stackCornerRadius: [
                    0,
                    4,
                    4,
                    0
                ],
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                player
            },
            area: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairLine: crosshairLine,
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                player
            },
            areaPercent: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairLine: crosshairLine,
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                player
            },
            scatter: {
                ...baseConfig,
                crosshairLine,
                sizeRange: [
                    8,
                    24
                ],
                xAxis: {
                    ...linearAxis,
                    line: {
                        ...linearAxis.line,
                        visible: true
                    }
                },
                yAxis: {
                    ...linearAxis,
                    line: {
                        ...linearAxis.line,
                        visible: true
                    }
                },
                label: {
                    ...baseConfig.label,
                    showValue: false,
                    showValuePercent: false
                },
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                regressionLine: getDarkRegressionLine(),
                player
            },
            dualAxis: {
                ...baseConfig,
                xAxis: bandAxis,
                primaryYAxis: linearAxis,
                secondaryYAxis: {
                    ...linearAxis,
                    grid: {
                        visible: false
                    }
                },
                crosshairRect,
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation()
            },
            pie: {
                ...baseConfig,
                label: {
                    ...baseConfig.label,
                    showValuePercent: true,
                    labelLayout: 'arc',
                    showDimension: true
                },
                pivotGrid: getDarkPivotChartGridConfig(),
                player
            },
            donut: {
                ...baseConfig,
                label: {
                    ...baseConfig.label,
                    showValuePercent: true,
                    labelLayout: 'arc',
                    showDimension: true
                },
                pivotGrid: getDarkPivotChartGridConfig(),
                player
            },
            radar: {
                ...baseConfig,
                pivotGrid: getDarkPivotChartGridConfig(),
                player
            },
            rose: {
                ...baseConfig,
                label: {
                    ...baseConfig.label,
                    showValuePercent: true,
                    showDimension: true
                },
                pivotGrid: getDarkPivotChartGridConfig(),
                player
            },
            roseParallel: {
                ...baseConfig,
                label: {
                    ...baseConfig.label,
                    showValuePercent: true,
                    showDimension: true
                },
                pivotGrid: getDarkPivotChartGridConfig(),
                player
            },
            funnel: {
                ...baseConfig,
                label: getFunnelDarkLabel(),
                transform: getDarkFunnelTransformTheme(),
                pivotGrid: getDarkPivotChartGridConfig(),
                player
            },
            heatmap: {
                ...baseConfig,
                legend: getDarkColorLegend(),
                xAxis: bandAxis,
                yAxis: bandAxis,
                label: {
                    ...baseConfig.label,
                    labelColorSmartInvert: true
                },
                player,
                cell: getDarkHeatmapCellTheme(),
                pivotGrid: getDarkPivotChartGridConfig()
            },
            histogram: {
                ...baseConfig,
                xAxis: linearAxis,
                yAxis: linearAxis,
                crosshairRect: crosshairRect,
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                regressionLine: getDarkRegressionLine()
            },
            boxPlot: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairRect: crosshairRect,
                pivotGrid: getDarkPivotChartGridConfig(),
                annotation: getDarkAnnotation(),
                boxPlotStyle: getDarkBoxPlotStyle(),
                outlierStyle: getDarkOutlierStyle()
            }
        }
    };
};
export { darkTheme };

//# sourceMappingURL=dark.js.map