Skip to content

Commit

Permalink
docs: add devicePixelRatios to SHARED_IMGIX_AND_SOURCE_PROP_TYPES (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceprofeta authored Jan 28, 2022
1 parent 3fe633b commit 067e752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ Disable generation of variable `q` parameters when rendering a fixed-size image.

##### srcSetOptions :: object

Allows customizing the behavior of the srcset generation. Valid options are `widths`, `widthTolerance`, `minWidth`, and `maxWidth`. See [@imgix/js-core](https://github.com/imgix/js-core#imgixclientbuildsrcsetpath-params-options) for documentation of these options.
Allows customizing the behavior of the srcset generation. Valid options are `widths`, `widthTolerance`, `minWidth`, `maxWidth`, and `devicePixelRatios`. See [@imgix/js-core](https://github.com/imgix/js-core#imgixclientbuildsrcsetpath-params-options) for documentation of these options.

#### Picture Props

Expand Down
1 change: 1 addition & 0 deletions src/react-imgix.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const SHARED_IMGIX_AND_SOURCE_PROP_TYPES = Object.assign(
widthTolerance: PropTypes.number,
minWidth: PropTypes.number,
maxWidth: PropTypes.number,
devicePixelRatios: PropTypes.arrayOf(PropTypes.number),
}),
}
);
Expand Down

0 comments on commit 067e752

Please sign in to comment.