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

How to style only the paths with children? #55

Closed rrrichard closed 5 years ago

rrrichard commented 5 years ago

Been trying to generate a tree style that looks like this where only the path with children gets colored red Screenshot 2019-10-10 at 15 04 13

I'm trying to use this example of slot node to color the path but I am unable to isolate the paths that have children. Also how do I access the d path coordinates that is generated? Screenshot 2019-10-10 at 14 51 15

David-Desmaisons commented 5 years ago

@rrrichard the link part of the svg is drawn by the component without possibility of customization.

I will have to think at an API to hiligth a path but I am not what I could be.

rrrichard commented 5 years ago

@David-Desmaisons no worries, thank you.