Skip to content

新增一个节点,如何配置默认的边的样式 #2074

Answered by NewByVector
xiazhaohui asked this question in Q&A
Discussion options

You must be logged in to vote

默认的边是指从节点拖拽出来的边吗,如果是的话,可以配置如下:

new Graph({
  connecting: {
    createEdge() {
      return new Shape.Edge({
        attrs: {}
      })
    }
  }
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xiazhaohui
Comment options

Answer selected by NewByVector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants