Skip to content

Improve WebUI net tab - preserve selected nodes and edges on data reload#1205

Merged
AlexxIT merged 2 commits intoAlexxIT:masterfrom
skrashevich:fix-keep-netmap-selections
Feb 24, 2025
Merged

Improve WebUI net tab - preserve selected nodes and edges on data reload#1205
AlexxIT merged 2 commits intoAlexxIT:masterfrom
skrashevich:fix-keep-netmap-selections

Conversation

@skrashevich
Copy link
Collaborator

This commit introduces new features aimed at enhancing the user interaction with network visualizations on a web page. Specifically, the update allows both nodes and edges to be selected within the network visualization tool. The JavaScript code updates involve:

  1. Declaring variables to capture the selected nodes and edges using getSelectedNodes() and getSelectedEdges() methods.
  2. Updating the network data with these selected nodes and edges using selectNodes() and selectEdges() methods.

@AlexxIT AlexxIT self-assigned this Feb 24, 2025
@AlexxIT AlexxIT merged commit 1ab05e5 into AlexxIT:master Feb 24, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 24, 2025

Thanks! It's better to check what you write.
Any manipulation with edges doesn't work and resets the node positions.
Saving the selected node works well.

@AlexxIT AlexxIT added this to the v1.9.9 milestone Feb 24, 2025
@AlexxIT AlexxIT changed the title fix(network): preserve selected nodes and edges on data reload Improve WebUI net tab - preserve selected nodes and edges on data reload Mar 10, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Mar 10, 2025

@skrashevich skrashevich deleted the fix-keep-netmap-selections branch September 6, 2025 12:16
57Darling02 pushed a commit to 57Darling02/go2nvr that referenced this pull request Feb 17, 2026
…ctions

fix(network): preserve selected nodes and edges on data reload
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.

2 participants