import { buildLabel } from "./label.js";
import { DUAL_AXIS_LABEL_Z_INDEX } from "../../../../utils/constant.js";
const labelDualAxis = (options)=>(spec, context)=>{
        const result = {
            ...spec
        };
        const { advancedVSeed, vseed } = context;
        const { encoding } = advancedVSeed;
        const { chartType } = advancedVSeed;
        const baseConfig = advancedVSeed.config[chartType];
        result.label = buildLabel(baseConfig.label, vseed.measures, vseed.dimensions, advancedVSeed.dimensions, advancedVSeed.measures, encoding, [
            options.foldInfo
        ], advancedVSeed?.locale);
        result.label.zIndex = DUAL_AXIS_LABEL_Z_INDEX;
        return result;
    };
export { labelDualAxis };

//# sourceMappingURL=labelDualAxis.js.map