Skip to content

Conversation

@Kerr-wang0213
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


王柯心 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.

data: {nodes, edges, layers, direction}
});

this.canvas.draw({nodes, edges, layers: {layers: treeData.layers, class: BaseLayers, visible: true }, direction: "row"}, () => {
Copy link
Collaborator

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}
Copy link
Collaborator

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 //避障贝塞尔曲线
Copy link
Collaborator

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来画线。

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

Successfully merging this pull request may close these issues.

3 participants