Skip to content

Commit

Permalink
Merge pull request #109 from neftaly/patch-1
Browse files Browse the repository at this point in the history
Add note regarding widthCallback
  • Loading branch information
spite authored Sep 17, 2020
2 parents ed4dac4 + 12df1d1 commit 168f9b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ function Line({ points, width, color }) {
}
```

Dynamic line widths can be set along each point using the `widthCallback` prop.
```jsx
<meshLine attach='geometry' points={points} widthCallback={pointWidth => pointWidth * Math.random()} />
```

### TODO ###

* Better miters
Expand Down

0 comments on commit 168f9b2

Please sign in to comment.