netjsongraph.js icon indicating copy to clipboard operation
netjsongraph.js copied to clipboard

[draft] Add node/link selection feature

Open mwarning opened this issue 7 months ago • 2 comments

Select a node or link while holding the CTRL key. This code works but needs proper integration and better highlight colors for the map view. It is meant to serve as an inspiration on how to implement this feature.

A bug was also fixed: The on 'click' event handler may only be installed once, otherwise it will called for every time the renderer is initialized (when switching between graph and map).

Checklist

  • [x] I have read the OpenWISP Contributing Guidelines.
  • [x] I have manually tested the changes proposed in this pull request.
  • [ ] I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • [ ] I have updated the documentation.

Reference to Existing Issue

Closes #.

Please open a new issue if there isn't an existing issue yet.

Description of Changes

Please describe these changes.

Screenshot

out.webm

mwarning avatar May 05 '25 16:05 mwarning

@mwarning is this directed at #163?

nemesifier avatar May 08 '25 23:05 nemesifier

@nemesifier yes, it is directed towards that ticket.

mwarning avatar May 09 '25 12:05 mwarning