openwisp / openwisp-network-topology

Network topology collector and visualizer. Collects network topology data from dynamic mesh routing protocols or other popular networking software like OpenVPN, allows to visualize the network graph, save daily snapshots that can be viewed in the future and more.
https://openwisp.io/docs/dev/network-topology/
BSD 3-Clause "New" or "Revised" License
170 stars 65 forks source link

[fix] Fix visualizer quirks with big topologies #176 #194

Closed pandafy closed 1 year ago

pandafy commented 1 year ago

The previous patch in #176 did an asynchronous request to fetch NetJSONGraph data. If the request promise didn't resovle before initialization of the graph (i.e. it took a long time for a response), then the graph was initialized with the default graphConfig. This caused the logic added to disable layoutAnimation to become obsolete. This patch fixes this issue by updating graphConfig in NetJSONGraph.onLoad.

Related to #176

coveralls commented 1 year ago

Coverage Status

Coverage: 99.328%. Remained the same when pulling f2bce5f7bb5219ffaa1b4e9507be61ec3dac73ef on issues/164-network-topology into 4310967dd3ed89fa6ad12765e36afa882d42c8b5 on master.