From 9be8758d16d541d4b0aefc560c9788aaba1a6601 Mon Sep 17 00:00:00 2001 From: Jannick Garthen Date: Sun, 23 Sep 2018 16:56:18 +0200 Subject: [PATCH] docs(ViewportProvider): add missing dimension properties --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9cb3093..4ffa643 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,14 @@ interface IProps { const Component = ({ scroll, dimensions }: IProps) => ( <> -
Dimension width: ${dimensions.width}
-
Dimension height: ${dimensions.height}
+
Dimension (inner)width: ${dimensions.width}
+
Dimension (inner)height: ${dimensions.height}
+
Dimension outerWidth: ${dimensions.outerWidth}
+
Dimension outerHeight: ${dimensions.outerHeight}
+
Dimension clientWidth: ${dimensions.clientWidth}
+
Dimension clientHeight: ${dimensions.clientHeight}
+
Dimension documentWidth: ${dimensions.documentWidth}
+
Dimension documentHeight: ${dimensions.documentHeight}
Scroll X: {scroll.x}
Scroll Y: {scroll.y}
Scroll last turning point X: {scroll.xTurn}