You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,8 @@ class MyComponent extends Component {
83
83
|`collapsible`|`bool`|||`true`| Toggles ability to collapse/expand the tree's nodes by clicking them. |
84
84
|`initialDepth`|`number`|`0..n`||`undefined`| Sets the maximum node depth to which the tree is expanded on its initial render. <br /> Tree renders to full depth if prop is omitted. |
85
85
|`depthFactor`|`number`|`-n..0..n`||`undefined`| Ensures the tree takes up a fixed amount of space (`node.y = node.depth * depthFactor`), regardless of tree depth. <br /> **TIP**: Negative values invert the tree's direction. |
86
+
|`zoomable`|`bool`|||`true`| Toggles ability to zoom in/out on the Tree by scaling it according to `props.scaleExtent`. |
87
+
|`scaleExtent`|`object`|||`{min: 0.1, max: 1}`| Sets the minimum/maximum extent to which the tree can be scaled if `props.zoomable` is true. |
86
88
|`transitionDuration`|`number`|`0..n`||`500`| Sets the animation duration (in ms) of each expansion/collapse of a tree node. <br /><br /> Set this to `0` to deactivate animations completely. |
0 commit comments