Skip to content

如何用鼠标点击的方式在画布上任意两点创建直线? #2009

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

You must be logged in to vote
graph.addEdge({
  source: [0, 0],
  target: [100, 100]
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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