新增一个节点,如何配置默认的边的样式 #2074
Answered
by
NewByVector
xiazhaohui
asked this question in
Q&A
-
手动添加一个新节点,如何配置默认的边的样式,类似设置默认的链接桩那种
|
Beta Was this translation helpful? Give feedback.
Answered by
NewByVector
May 5, 2022
Replies: 1 comment 1 reply
-
默认的边是指从节点拖拽出来的边吗,如果是的话,可以配置如下: new Graph({
connecting: {
createEdge() {
return new Shape.Edge({
attrs: {}
})
}
}
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
NewByVector
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
默认的边是指从节点拖拽出来的边吗,如果是的话,可以配置如下: