Skip to content

Commit

Permalink
feat(pie): get default pixel ratio from window if available
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Nov 5, 2020
1 parent e9898ae commit ff242a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/pie/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ export const defaultProps = {
legends: [],

role: 'img',

pixelRatio: window && window.devicePixelRatio ? window.devicePixelRatio : 1,
}

0 comments on commit ff242a9

Please sign in to comment.