const defaultRegressionLineColor = (datum, ctx, opt)=>{
    const parentNode = opt.mark?._product?.parent;
    if (parentNode?.attribute?.data) return parentNode.attribute.data.color;
};
const defaultRegressionLineLabelX = (datum, ctx, opt)=>{
    const parentNode = opt.mark?._product?.parent;
    if (parentNode?.attribute?.data?.linePoints) {
        const points = parentNode.attribute.data.linePoints;
        return points[points.length - 1]?.x;
    }
};
const defaultRegressionLineLabelY = (datum, ctx, opt)=>{
    const parentNode = opt.mark?._product?.parent;
    if (parentNode?.attribute?.data?.linePoints) {
        const points = parentNode.attribute.data.linePoints;
        return points[points.length - 1]?.y;
    }
};
export { defaultRegressionLineColor, defaultRegressionLineLabelX, defaultRegressionLineLabelY };

//# sourceMappingURL=common.js.map