d3-mitch-tree
d3-mitch-tree copied to clipboard
Bug: vertical and horizontal spacing is not respected if orientation is 'topToBottom'
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
-
I'm submitting a ...
- [ x] bug report
-
What is the current behavior?
If I specify the vertical and horizontal spacing this way:
var treePlugin = new d3.mitchTree.boxedTree()
...
.getNodeSettings()
.setSizingMode('nodesize')
.setVerticalSpacing(100)
.setHorizontalSpacing(50)
.back()
.initialize();
it works nice if the orientation is the default 'leftToRight'. If I change it to 'topToBottom' it is not respected at all. That is a big drawback for my use case.
-
What is the expected behavior? Values for the spacing and margin should be respected in each orientation.
-
Please tell us about your environment:
- Version: 1.1.2
- Browser: [Chrome | Safari]
- OS: Mac Catalina 10.15.4
Do you have a tip, how I could fix this Problem maybe?