ErikGartner / dTree

A library for visualizing data trees with multiple parents, such as family trees. Built on top of D3.
https://treehouse.gartner.io/ErikGartner/58e58be650453b6d49d7
MIT License
521 stars 139 forks source link

Apply apply depth offset #101

Closed dangvanthanh closed 4 years ago

dangvanthanh commented 4 years ago

HI @ErikGartner

In your code below. Why use code in here? In my opinion, the code isn't necessary.

https://github.com/ErikGartner/dTree/blob/a0736a8dcace99cc4b85b7c7cc48449b81185927/src/dtree.js#L82-L95

ErikGartner commented 4 years ago

It's used to move a sub-tree down by depthOffset number of levels. I use it several of my trees.