We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
业务场景:在节点中存在parent node会包含其他节点,因此parent节点宽高不定。 问题:在parent节点已经调用fit修改size的情况下,再次调用dag布局,布局结果仍然认为parent节点的宽高为初始宽高(即普通节点宽高)
https://codesandbox.io/embed/gifted-glade-8lfdrm?fontsize=14&hidenavigation=1&theme=dark
尝试方案:
期望:dag布局是否能对大小不同节点进行自动布局?如果不支持的话,有其他方案可以代替吗?
No response
no others
The text was updated successfully, but these errors were encountered:
dagre 布局是支持不同尺寸节点布局的。需要设置一下 nodeSize: [w, h] 属性。
nodeSize: [w, h]
Sorry, something went wrong.
感谢回复,在sandbox的示例中,节点6设置了width和height,但是仍然可能存在遮挡问题~
另外想请教一下,如果存在childNode时,直接使用dag布局可以达到parentNode和其内部都能自动完成dag吗?
非常感谢!
哈喽,感谢回复,时隔一年我再次尝试nodeSize属性,还是没有成功🤦♀️ 不管是在节点中添加nodeSize: [w, h] 还是nodeSize: {w, h}的布局结果都和未添加前相同。 请问一下相关文档可以在哪里找到呢?非常感谢!
同问,请问有解决方案吗
No branches or pull requests
Describe the bug
业务场景:在节点中存在parent node会包含其他节点,因此parent节点宽高不定。
问题:在parent节点已经调用fit修改size的情况下,再次调用dag布局,布局结果仍然认为parent节点的宽高为初始宽高(即普通节点宽高)
Your Example Website or App
https://codesandbox.io/embed/gifted-glade-8lfdrm?fontsize=14&hidenavigation=1&theme=dark
Steps to Reproduce the Bug or Issue
尝试方案:
Expected behavior
期望:dag布局是否能对大小不同节点进行自动布局?如果不支持的话,有其他方案可以代替吗?
Screenshots or Videos
No response
Platform
Additional context
no others
The text was updated successfully, but these errors were encountered: