const stackCornerRadius_stackCornerRadius = (spec, context)=>{
    const { advancedVSeed, vseed } = context;
    const { chartType } = vseed;
    const stackCornerRadius = advancedVSeed.config?.[chartType]?.stackCornerRadius;
    const { datasetReshapeInfo } = advancedVSeed;
    const { foldInfo } = datasetReshapeInfo[0];
    if ('dualAxis' === chartType && 'bar' !== spec.type) return spec;
    return {
        ...spec,
        stackCornerRadius: (_, datum)=>{
            if (datum[foldInfo.measureValue] > 0) return stackCornerRadius;
            return 0;
        }
    };
};
export { stackCornerRadius_stackCornerRadius as stackCornerRadius };

//# sourceMappingURL=stackCornerRadius.js.map