From 12df1d1d685f16dcceb93bccf3f89adf421ebda4 Mon Sep 17 00:00:00 2001 From: Neftaly Hernandez Date: Thu, 17 Sep 2020 15:14:37 +1200 Subject: [PATCH] Add note regarding widthCallback closes #108 --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 088faf3..6ea72d7 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,11 @@ function Line({ points, width, color }) { } ``` +Dynamic line widths can be set along each point using the `widthCallback` prop. +```jsx + pointWidth * Math.random()} /> +``` + ### TODO ### * Better miters