Skip to content

Commit

Permalink
Destructure
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Jan 17, 2020
1 parent 5b8ec53 commit 3a26df0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/helpers/helpers.dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ export function getMaximumHeight(domNode) {

export function retinaScale(chart, forceRatio) {
const pixelRatio = chart.currentDevicePixelRatio = forceRatio || (typeof window !== 'undefined' && window.devicePixelRatio) || 1;
const canvas = chart.canvas;
const height = chart.height;
const width = chart.width;
const {canvas, width, height} = chart;

canvas.height = height * pixelRatio;
canvas.width = width * pixelRatio;
Expand Down

0 comments on commit 3a26df0

Please sign in to comment.