fix(connection): restore connection handler mxGraph behavior#1025
Open
LOUISNOYEZ wants to merge 1 commit intomaxGraph:mainfrom
Open
fix(connection): restore connection handler mxGraph behavior#1025LOUISNOYEZ wants to merge 1 commit intomaxGraph:mainfrom
LOUISNOYEZ wants to merge 1 commit intomaxGraph:mainfrom
Conversation
delete preview edge entryX and entryY style properties when hovering a cell without without hovering a specific target connection point.
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 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 |
|
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.



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