You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an edge from or to another edge, the preview shows incorrect terminal points:
The start point is always fixed to one end of the edge, instead of matching the click position
The end point also snaps to an endpoint, instead of following the cursor
Once the edge is finalized, the points are correct. But during the preview, the edge shape is misleading and seems to "jump" between preview and final rendering.
✅ No issue when connecting from/to vertices
❌ Problem only occurs when connecting from/to edges
Describe the bug
When creating an edge from or to another edge, the preview shows incorrect terminal points:
Once the edge is finalized, the points are correct. But during the preview, the edge shape is misleading and seems to "jump" between preview and final rendering.
✅ No issue when connecting from/to vertices
❌ Problem only occurs when connecting from/to edges
This is very similar to what was reported in #841
To Reproduce
Expected behavior
The preview should reflect the final geometry:
Screenshots
Problem in maxGraph
maxgraph_pr-893_edge_wrong_points_while_creating.mp4
This was working in mxGraph 4.2.2. See https://jgraph.github.io/mxgraph/javascript/examples/wires.html
mxGraph_wires_example_working_edge_preview.mp4
Environment
maxGraphversion or commit:74e44bcc(bug exists since a long time)