We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ee134 commit e40ea53Copy full SHA for e40ea53
src/helpers/helpers.dom.ts
@@ -211,11 +211,11 @@ export function retinaScale(
211
forceStyle?: boolean
212
): boolean | void {
213
const pixelRatio = forceRatio || 1;
214
- const deviceHeight = Math.floor(chart.height * pixelRatio);
215
- const deviceWidth = Math.floor(chart.width * pixelRatio);
+ const deviceHeight = round1(chart.height * pixelRatio);
+ const deviceWidth = round1(chart.width * pixelRatio);
216
217
- (chart as PrivateChart).height = Math.floor(chart.height);
218
- (chart as PrivateChart).width = Math.floor(chart.width);
+ (chart as PrivateChart).height = round1(chart.height);
+ (chart as PrivateChart).width = round1(chart.width);
219
220
const canvas = chart.canvas;
221
0 commit comments