-
Notifications
You must be signed in to change notification settings - Fork 607
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
Kedor layout master #854
base: master
Are you sure you want to change the base?
Kedor layout master #854
Conversation
王柯心 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
plugins/layout/README.md
Outdated
data: {nodes, edges, layers, direction} | ||
}); | ||
|
||
this.canvas.draw({nodes, edges, layers: {layers: treeData.layers, class: BaseLayers, visible: true }, direction: "row"}, () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
layer的结构最好跟nodes和edges一样,还有class需要大些。direction在布局中统一用"LR"和“TB”,这样更加专业一些
root: dom, //canvas的根节点(必传) | ||
layout: { | ||
type: kedrovizLayout, | ||
options: {rankdir: 'TB', visible: true, Class: BaseLayers} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
layout: kedrovizLayout,
layoutOptions: {rankdir: 'TB', visible: true, Class: BaseLayers}
draggable: true, //节点可拖动(选填) | ||
linkable: true, //节点可连接(选填) | ||
disLinkable: true, //节点可取消连接(选填) | ||
avoidPoints: obstacleAvoidancePoints //避障贝塞尔曲线 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我建议把“ obstacleAvoidancePoints”改个名称,例如canvas.drawPath,类似edge中的calcPath,然后drawPath写在小蝴蝶最基础的baseCanvas中,假如有这个方法就会用这个方法画线,假如没有就会用edge中的calcPath来画线。
No description provided.