Skip to content

feat: add force-directed layout parameter settings and fix drag-stop simulation bug#705

Open
ismism-learner wants to merge 2 commits into
graphif:masterfrom
ismism-learner:feat/force-directed
Open

feat: add force-directed layout parameter settings and fix drag-stop simulation bug#705
ismism-learner wants to merge 2 commits into
graphif:masterfrom
ismism-learner:feat/force-directed

Conversation

@ismism-learner
Copy link
Copy Markdown
Contributor

Summary

  • Add 7 adjustable force-directed parameters (link distance, strength, collision, velocity decay, convergence threshold, max move per frame, min distance) to Settings UI
  • Replace hardcoded constants in forceDirectedLayout with real-time Settings getters for live parameter adjustment
  • Fix bug where dragging nodes would prematurely stop the force simulation
  • Add translations for all new settings in 5 languages (en, id, zh_CN, zh_TW, zh_TWC)
  • Add Toggle Force-Directed option to the right-click context menu

Changes

  • New file: app/src/core/service/controlService/autoLayoutEngine/forceDirectedLayout.tsx
  • Modified: Settings schema, SettingsIcons, ControllerEntityClickSelectAndMove, locale files, settings UI

…simulation bug

- Add 7 adjustable force-directed parameters (link distance, strength, collision, velocity decay, etc.) to Settings UI
- Replace hardcoded constants in forceDirectedLayout with real-time Settings getters
- Fix bug where dragging nodes would prematurely stop the force simulation
- Add translations for all new settings in 5 languages
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.

1 participant