import { getFunnelLightLabel, getLightBrushConfig, getLightColor, getLightColorLegend, getLightCrosshairLine, getLightCrosshairRect, getLightLabel, getLightLegend, getLightPivotChartGridConfig, getLightPlayer, getLightTableConfig } from "../common/index.js";
import { getLightTooltip } from "../common/tooltip.js";
import { getLightBandAxis, getLightLinearAxis } from "../common/axes.js";
import { getLightAnnotation } from "../common/annotaion.js";
import { getLightFunnelTransformTheme } from "../common/funnelTransform.js";
import { getLightHeatmapCellTheme } from "../common/heatmapCell.js";
import { getLightRegressionLine } from "../common/regressionLine.js";
import { getLightBoxPlotStyle, getLightOutlierStyle } from "../common/boxPlot.js";
const lightTheme = ()=>{
    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 crosshairLine = getLightCrosshairLine();
    const crosshairRect = getLightCrosshairRect();
    const baseConfig = {
        backgroundColor: 'transparent',
        color: getLightColor(),
        label: getLightLabel(),
        legend: getLightLegend(),
        tooltip: getLightTooltip(),
        brush: getLightBrushConfig()
    };
    const tableConfig = getLightTableConfig();
    const player = getLightPlayer();
    return {
        config: {
            table: tableConfig,
            pivotTable: tableConfig,
            line: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairLine,
                player,
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation()
            },
            column: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairRect,
                player,
                stackCornerRadius: [
                    4,
                    4,
                    0,
                    0
                ],
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation(),
                regressionLine: getLightRegressionLine()
            },
            columnParallel: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairRect,
                player,
                stackCornerRadius: [
                    4,
                    4,
                    0,
                    0
                ],
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation()
            },
            columnPercent: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: {
                    ...linearAxis
                },
                player,
                crosshairRect,
                stackCornerRadius: [
                    4,
                    4,
                    0,
                    0
                ],
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation()
            },
            bar: {
                ...baseConfig,
                xAxis: linearAxis,
                yAxis: barBandAxis,
                crosshairRect,
                player,
                stackCornerRadius: [
                    0,
                    4,
                    4,
                    0
                ],
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation()
            },
            barParallel: {
                ...baseConfig,
                xAxis: linearAxis,
                yAxis: barBandAxis,
                crosshairRect,
                stackCornerRadius: [
                    0,
                    4,
                    4,
                    0
                ],
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation()
            },
            barPercent: {
                ...baseConfig,
                xAxis: {
                    ...linearAxis
                },
                yAxis: barBandAxis,
                crosshairRect,
                player,
                stackCornerRadius: [
                    0,
                    4,
                    4,
                    0
                ],
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation()
            },
            area: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: linearAxis,
                crosshairLine,
                player,
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation()
            },
            areaPercent: {
                ...baseConfig,
                xAxis: bandAxis,
                yAxis: {
                    ...linearAxis
                },
                player,
                crosshairLine,
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation()
            },
            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
                },
                player,
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation(),
                regressionLine: getLightRegressionLine()
            },
            dualAxis: {
                ...baseConfig,
                xAxis: bandAxis,
                primaryYAxis: linearAxis,
                secondaryYAxis: {
                    ...linearAxis,
                    grid: {
                        visible: false
                    }
                },
                crosshairRect,
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation()
            },
            pie: {
                ...baseConfig,
                label: {
                    ...baseConfig.label,
                    showValuePercent: true,
                    labelLayout: 'arc',
                    showDimension: true
                },
                player,
                pivotGrid: getLightPivotChartGridConfig()
            },
            donut: {
                ...baseConfig,
                label: {
                    ...baseConfig.label,
                    showValuePercent: true,
                    labelLayout: 'arc',
                    showDimension: true
                },
                player,
                pivotGrid: getLightPivotChartGridConfig()
            },
            radar: {
                ...baseConfig,
                player,
                pivotGrid: getLightPivotChartGridConfig()
            },
            rose: {
                ...baseConfig,
                label: {
                    ...baseConfig.label,
                    showValuePercent: true,
                    showDimension: true
                },
                player,
                pivotGrid: getLightPivotChartGridConfig()
            },
            roseParallel: {
                ...baseConfig,
                label: {
                    ...baseConfig.label,
                    showValuePercent: true,
                    showDimension: true
                },
                player,
                pivotGrid: getLightPivotChartGridConfig()
            },
            funnel: {
                ...baseConfig,
                label: getFunnelLightLabel(),
                transform: getLightFunnelTransformTheme(),
                player,
                pivotGrid: getLightPivotChartGridConfig()
            },
            heatmap: {
                ...baseConfig,
                legend: getLightColorLegend(),
                xAxis: bandAxis,
                yAxis: bandAxis,
                label: {
                    ...baseConfig.label,
                    labelColorSmartInvert: true
                },
                player,
                cell: getLightHeatmapCellTheme(),
                pivotGrid: getLightPivotChartGridConfig()
            },
            histogram: {
                ...baseConfig,
                xAxis: linearAxis,
                yAxis: linearAxis,
                crosshairRect,
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation(),
                regressionLine: getLightRegressionLine()
            },
            boxPlot: {
                ...baseConfig,
                xAxis: linearAxis,
                yAxis: linearAxis,
                crosshairRect,
                pivotGrid: getLightPivotChartGridConfig(),
                annotation: getLightAnnotation(),
                boxPlotStyle: getLightBoxPlotStyle(),
                outlierStyle: getLightOutlierStyle()
            }
        }
    };
};
export { lightTheme };

//# sourceMappingURL=light.js.map