David-Desmaisons / Vue.D3.tree

Vue component to display tree based on D3.js layout.
https://david-desmaisons.github.io/Vue.D3.tree/tree
MIT License
877 stars 136 forks source link

node Radius vs text #38

Closed akhchan99 closed 5 years ago

akhchan99 commented 5 years ago

On the demo, change the radius of the node doesn't take effect reactively (new radius only updated when the tree is collapsed then expanded.

And when the radius is large (like 10 in the demo), it covered the Text, are there anyway to adjust the spacing between the node and text.

David-Desmaisons commented 5 years ago

1) Currently radius is reactive 2) Use nodeTextMagin and leafTextMargin props to adjust margin