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
// if an edge goes from right to right for example (sourcePosition === targetPosition) and the distance between source.x and target.x is less than the offset, the added point and the gapped source/target will overlap. This leads to a weird edge path. To avoid this we add a gapOffset to the source/target
126
+
if(diff<=offset){
127
+
constgapOffset=Math.min(offset-1,offset-diff)
128
+
if(sourceDir[dirAccessor]===currDir){
129
+
sourceGapOffset[dirAccessor]=gapOffset
130
+
}else{
131
+
targetGapOffset[dirAccessor]=gapOffset
132
+
}
133
+
}
134
+
}
135
+
122
136
// these are conditions for handling mixed handle positions like Right -> Bottom for example
// if an edge goes from right to right for example (sourcePosition === targetPosition) and the distance between source.x and target.x is less than the offset, the added point and the gapped source/target will overlap. This leads to a weird edge path. To avoid this we add a gapOffset to the source/target
0 commit comments