Commit 8b3a2d4
fix(library): keep a bend lane the user dragged close to a stub, don't snap it clear
Root cause of diagram 87's "drag jumps back": after the release preserved the dragged
lane, the final `pushLanesClearOfStubs` pass enforced a 30px clearance between any lane
and a parallel stub and shoved the lane straight back to the clearance line — so dragging
the down-run of a narrow U to 15px from the up-stub snapped it from 665 back to 650.
That clearance exists to keep a FRESH route from stair-stepping through a sliver next to a
stub. It must not override geometry the user placed: a lane the stored/dragged route
already has on THIS side of the stub is theirs, even a deliberately narrow U. Push now
fires only for a lane with no stored side yet, or one that FLIPPED across the stub to the
far side; a same-side stored lane is kept.
diagram 87: the dragged lane now sticks at 665 (was snapping to 650); dragging it all the
way onto the stub still folds and collapses the U. Unit test covers the narrow-U lane;
1527 unit + quality gate, node-move re-projection, fresh-bend, interactions, reset,
anchoring, live-reflow e2e green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0d160b7 commit 8b3a2d4
2 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1999 | 1999 | | |
2000 | 2000 | | |
2001 | 2001 | | |
2002 | | - | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
2003 | 2008 | | |
2004 | 2009 | | |
2005 | 2010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
843 | 864 | | |
844 | 865 | | |
845 | 866 | | |
| |||
0 commit comments