Skip to content

Commit d0bbe8d

Browse files
committed
docs(readme): adds missing properties for nodeSvgShape example (#282)
1 parent c27c954 commit d0bbe8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ const myTreeData = [
171171
keyC: 'val C',
172172
},
173173
nodeSvgShape: {
174+
shape: 'circle',
174175
shapeProps: {
176+
r: 10,
175177
fill: 'blue',
176178
},
177179
},
@@ -204,7 +206,6 @@ const myTreeData = [
204206
...
205207

206208
```
207-
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.
208209

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

0 commit comments

Comments
 (0)