fix(connection): restore connection handler mxGraph behavior#1025
fix(connection): restore connection handler mxGraph behavior#1025LOUISNOYEZ wants to merge 3 commits intomaxGraph:mainfrom
Conversation
delete preview edge entryX and entryY style properties when hovering a cell without without hovering a specific target connection point.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughWhen no connection Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
ℹ️ I have been looking at the entryX/entryY properties. entryX is "The connection point in relative horizontal coordinates of an edge with its target terminal." maxGraph/packages/core/src/view/mixin/ConnectionsMixin.ts Lines 160 to 168 in 24357a7 |
|



PR Checklist
maxGraph, and you are assigned to the issue.packages/core/_tests_or a new or altered Storybook story inpackages/html/stories(an existing story may also demonstrate the change).Overview
Restore connection handler mxgraph behavior.
Delete preview edge
entryXandentryYstyle properties when hovering a cell without without hovering a specific target connection point instead of setting them to 0. Currently, the connection preview entry position snaps to the top left corner of cell shapes, which is not intended behavior.Bug description
Demonstration using the Anchor story
connection_preview_wrong.mp4
connection_preview_right.mp4
Analysis
The behavior change was introduced in commit 648e324 where the connection handler file was changed from
maxGraph/packages/core/src/view/connection/ConnectionHandler.ts
Lines 1497 to 1503 in 0453da2
to
maxGraph/packages/core/src/view/connection/ConnectionHandler.ts
Lines 1491 to 1497 in 648e324
Which remains to this day. Fixing the issue consists in reverting to the original code.
Notes
updateEdgeStatemethod has not been overriden.Keywords
closes #841
Summary by CodeRabbit
Bug Fixes
Documentation