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
|`orientation`|`string` (enum) |`horizontal``vertical`||`horizontal`|`horizontal` - Tree expands left-to-right. <br /><br /> `vertical` - Tree expands top-to-bottom. |
84
-
|`translate`|`object`|||`{x: 0, y: 0}`| Translates the graph along the x/y axis by the specified amount of pixels (avoids the graph being stuck in the top left canvas corner). |
85
-
|`pathFunc`|`string` (enum) |`diagonal``elbow`||`diagonal`|`diagonal` - Renders smooth, curved edges between parent-child nodes. <br /><br /> `elbow` - Renders sharp edges at right angles between parent-child nodes. |
86
-
|`collapsible`|`bool`|||`true`| Toggles ability to collapse/expand the tree's nodes by clicking them. |
87
-
|`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. |
88
-
|`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. |
89
-
|`zoomable`|`bool`|||`true`| Toggles ability to zoom in/out on the Tree by scaling it according to `props.scaleExtent`. |
90
-
|`scaleExtent`|`object`|`{min: 0..n, max: 0..n}`||`{min: 0.1, max: 1}`| Sets the minimum/maximum extent to which the tree can be scaled if `props.zoomable` is true. |
|`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. |
93
-
|`styles`|`object`| see [Styling](#styling)||`Node`/`Link` CSS files | Overrides and/or enhances the tree's default styling. |
|`orientation`|`string` (enum) |`horizontal``vertical`||`horizontal`|`horizontal` - Tree expands left-to-right. <br /><br /> `vertical` - Tree expands top-to-bottom. |
84
+
|`translate`|`object`|||`{x: 0, y: 0}`| Translates the graph along the x/y axis by the specified amount of pixels (avoids the graph being stuck in the top left canvas corner). |
85
+
|`pathFunc`|`string` (enum) |`diagonal``elbow`||`diagonal`|`diagonal` - Renders smooth, curved edges between parent-child nodes. <br /><br /> `elbow` - Renders sharp edges at right angles between parent-child nodes. |
86
+
|`collapsible`|`bool`|||`true`| Toggles ability to collapse/expand the tree's nodes by clicking them. |
87
+
|`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. |
88
+
|`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. |
89
+
|`zoomable`|`bool`|||`true`| Toggles ability to zoom in/out on the Tree by scaling it according to `props.scaleExtent`. |
90
+
|`scaleExtent`|`object`|`{min: 0..n, max: 0..n}`||`{min: 0.1, max: 1}`| Sets the minimum/maximum extent to which the tree can be scaled if `props.zoomable` is true. |
91
+
|`nodeSize`|`object`|`{x: 0..n, y: 0..n}`||`{x: 140, y: 140}`| Sets a fixed size for each node. <br /><br /> This does not affect node circle sizes, circle sizes are handled by the `circleRadius` prop. |
92
+
|`separation`|`object`|`{siblings: 0..n, nonSiblings: 0..n}`||`{siblings: 1, nonSiblings: 2}`| Sets separation between neighbouring nodes, differentiating between siblings (same parent) and non-siblings. |
93
+
|`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. |
94
+
|`styles`|`object`| see [Styling](#styling)||`Node`/`Link` CSS files | Overrides and/or enhances the tree's default styling. |
0 commit comments