Skip to content

如何实现节点多选 #1866

Answered by bcakmakoglu
ddeerdevil asked this question in Q&A
Jun 6, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

@ddeerdevil
Assuming what @OldFarmer86 says is correct and that is your question you have two options and you set both of them to null effectively disabling multi selection through interactions.

  1. selectionKeyCode - you can set this to either a key, key combination or just true:
    1.1. Using a key or key combination will activate the selection box which you can then draw by using a click+drag action
    1.2. Using true will signal that this key is always active, allowing you to draw the selection box without an additional key press and just by click+drag actions
  2. multiSelectionKeyCode allows you to select multiple elements by keeping the key pressed and clicking each element (node/edge) you want …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@OldFarmer86
Comment options

@bcakmakoglu
Comment options

Answer selected by ddeerdevil
@ddeerdevil
Comment options

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