const verticalCrosshairRect = (spec, context)=>{
    const result = {
        ...spec
    };
    const { advancedVSeed, vseed } = context;
    const { chartType } = vseed;
    const config = advancedVSeed.config?.[chartType]?.crosshairRect;
    if (!config) return result;
    if (!result.crosshair) result.crosshair = {};
    const visible = config.visible || true;
    const rectColor = config.rectColor || void 0;
    const labelColor = config.labelColor || void 0;
    const labelVisible = config.labelVisible || false;
    const labelBackgroundColor = config.labelBackgroundColor || void 0;
    const crosshair = result.crosshair;
    crosshair.xField = {
        visible,
        line: {
            type: 'rect',
            style: {
                lineWidth: 0,
                opacity: 0.2,
                fill: rectColor
            }
        },
        label: {
            visible: labelVisible,
            labelBackground: {
                visible: labelVisible,
                style: {
                    fill: labelBackgroundColor
                }
            },
            style: {
                fill: labelColor
            }
        }
    };
    return result;
};
export { verticalCrosshairRect };

//# sourceMappingURL=verticalCrosshairRect.js.map