function _alignPixel(chart, pixel, width) {
    const devicePixelRatio = chart.currentDevicePixelRatio;
    const halfWidth = width !== 0 ? Math.max(width / 2, 0.5) : 0;
    return Math.round((pixel - halfWidth) * devicePixelRatio) / devicePixelRatio + halfWidth;
}
Returns the aligned pixel value to avoid anti-aliasing blur
@param chart - The chart instance.
@param pixel - A pixel value.
@param width - The width of the element.
@returns The aligned pixel value.
@private