import { pick } from "remeda";
import { replaceNullToUndefined } from "../../../../utils/index.js";
const columnConfig = (advancedVSeed, context)=>{
    const { vseed } = context;
    const { chartType } = vseed;
    const result = {
        ...advancedVSeed
    };
    const pickedConfig = pick(vseed, [
        'backgroundColor',
        'color',
        'label',
        'legend',
        'regionPadding',
        'tooltip',
        'xAxis',
        'yAxis',
        'crosshairRect',
        'stackCornerRadius',
        'barMaxWidth',
        'barGapInGroup',
        'brush',
        'dimensionLinkage',
        'player',
        'animation'
    ]);
    const config = replaceNullToUndefined(pickedConfig);
    result.config = {
        ...result.config,
        [chartType]: {
            ...config
        }
    };
    return result;
};
export { columnConfig };

//# sourceMappingURL=column.js.map