Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,dabeng,想缩进节点间距,有方法可以实现吗?(make adjacent nodes closely,needs help,3Q!) #487

Open
benyaiba opened this issue Jun 6, 2019 · 1 comment

Comments

@benyaiba
Copy link

benyaiba commented Jun 6, 2019

你好,dabeng。
我想生成树结构时,如果相邻节点没有子节点的时候,动态的靠近,缩减间距。
例如,把A,BC的位置向D靠近。
有什么方法可以实现?谢谢!

--English--
Hello, dabeng.
If adjacent nodes do not have sub-nodes, can i do something to make adjacent nodes closely?
For example, close A and BC to D.
What should I going to do? Thank you!

2019-06-06-10-00-27

@benyaiba benyaiba changed the title 你好,dabeng,想缩进节点间距,有方法可以实现吗? 你好,dabeng,想缩进节点间距,有方法可以实现吗?(make adjacent nodes closely,needs help,3Q!) Jun 6, 2019
@dabeng
Copy link
Owner

dabeng commented Jun 15, 2019

@benyaiba , 您好,非常了解您的需求,但是水平方向展开的orgchart很难实现您目前的诉求,因为orgchart的基本实现原理是用嵌套的table结构模拟树状的组织结构图,td代表节点,td的border代表节点间的连线。正是由于这种机制的限制,使得缩紧节点间距变成一个非常艰巨的任务 😭 。但是目前还是有一些节省空间的折中的方案的,请参考#61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants