Skip to content

Commit

Permalink
docs(readme): adds missing properties for nodeSvgShape example (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrem committed Mar 15, 2020
1 parent c27c954 commit d0bbe8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -171,7 +171,9 @@ const myTreeData = [
keyC: 'val C',
},
nodeSvgShape: {
shape: 'circle',
shapeProps: {
r: 10,
fill: 'blue',
},
},
Expand Down Expand Up @@ -204,7 +206,6 @@ const myTreeData = [
...

```
In the above, "Parent Node" will only be blue, but it will keep the default size and geometrical shape. "Inner Node", however, will completely change to a red rectangle with the given dimensions. Omitting `shape`, will keep node's default appearance.

## Styling
The tree's `styles` prop may be used to override any of the tree's default styling.
Expand Down

0 comments on commit d0bbe8d

Please sign in to comment.