const regionPadding = (spec, context)=>{
    const chartConfig = context.advancedVSeed.config?.[context.vseed.chartType];
    const padding = chartConfig?.regionPadding;
    if (null == padding || !Array.isArray(spec.region)) return spec;
    const region = spec.region;
    if (0 === region.length) return spec;
    return {
        ...spec,
        region: [
            {
                ...region[0],
                padding
            },
            ...region.slice(1)
        ]
    };
};
export { regionPadding };

//# sourceMappingURL=regionPadding.js.map