Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(webui): enhance network visualization in network.html #1196

Merged
merged 6 commits into from
Jun 16, 2024

Conversation

skrashevich
Copy link
Contributor

Commit Summary:

  • www/network.html: The visualization implementation using the vis library in network.html was significantly enhanced. Changes include introducing physics settings and layout configurations, handling data fetching within a function to update the network graph periodically, and utilizing error handling for fetch operations. The periodic update functionality with intervals was added to keep the visualization current. A new variable network was introduced to manage states, supported by better positioning and responsive design adjustments.

  • internal/streams/dot.go: The label function was refactored to use strings.Builder for constructing the output string, enhancing performance and readability. Previously concatenated strings were replaced with builder's WriteString method.

Dependency Note:
This commit should best be merged after #1195, although it does not strictly depend on it.

feat(network): add periodic data fetching and network update
@AlexxIT AlexxIT added the doubt label Jun 16, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Jun 16, 2024

Network pan and zoom doesn't stored. And also sometimes networks moves down by 1 pixel on each update.

@AlexxIT AlexxIT merged commit ba34855 into AlexxIT:master Jun 16, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Jun 16, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants