Skip to content

Commit

Permalink
docs(ViewportProvider): add missing dimension properties
Browse files Browse the repository at this point in the history
  • Loading branch information
garthenweb committed Sep 23, 2018
1 parent 06d2bfd commit 9be8758
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ interface IProps {

const Component = ({ scroll, dimensions }: IProps) => (
<>
<div>Dimension width: ${dimensions.width}</div>
<div>Dimension height: ${dimensions.height}</div>
<div>Dimension (inner)width: ${dimensions.width}</div>
<div>Dimension (inner)height: ${dimensions.height}</div>
<div>Dimension outerWidth: ${dimensions.outerWidth}</div>
<div>Dimension outerHeight: ${dimensions.outerHeight}</div>
<div>Dimension clientWidth: ${dimensions.clientWidth}</div>
<div>Dimension clientHeight: ${dimensions.clientHeight}</div>
<div>Dimension documentWidth: ${dimensions.documentWidth}</div>
<div>Dimension documentHeight: ${dimensions.documentHeight}</div>
<div>Scroll X: {scroll.x}</div>
<div>Scroll Y: {scroll.y}</div>
<div>Scroll last turning point X: {scroll.xTurn}</div>
Expand Down

0 comments on commit 9be8758

Please sign in to comment.