Repository navigation
feat(web): improve knowledge graph layout and interaction - #179
Draft
shixiaogaoya wants to merge 1 commit into
Draft
shixiaogaoya wants to merge 1 commit into
shixiaogaoya wants to merge 1 commit into
Conversation
引入力导向布局、语义缩放和邻域视图,增强滚轮缩放与列表节点定位,改善连线摘要、标签切换及按压反馈。保留已合并的中文化,为新增控件补齐中英文翻译。 验证:web typecheck、75 项测试及生产构建通过;180 节点演示图谱的中英文切换、列表居中放大和连线摘要经浏览器实测。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dense graphs are difficult to navigate when the initial overview is small, dragging does not retain placement, and selecting a memory in the list does not reveal its node. This adds a continuous force layout and clearer navigation while preserving the existing Chinese and English workspace.
Only
web/changes are included; backend code, storage, and graph data formats are unchanged.Validation
cd web && npm run typecheckcd web && npm run test— 75 tests passed across 9 files.cd web && npm run buildgit diff --cached --checkRegression coverage includes force cooldown and element synchronization, drag/wheel interactions, pinned positions, semantic zoom, connection inspection, selection label transitions, Back/Forward focus reset, list navigation, and theme/language changes without replacing the graph instance.