mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix up connectors snapping
This commit is contained in:
parent
52554e8357
commit
7abee4889d
|
@ -236,8 +236,8 @@
|
||||||
oIndex = 1;
|
oIndex = 1;
|
||||||
so = [];
|
so = [];
|
||||||
to = [];
|
to = [];
|
||||||
so[index] = params.sourcePos[index] > targetPos[index] ? -1 : 1;
|
so[index] = 1; //params.sourcePos[index] > targetPos[index] ? -1 : 1; // always default to orienting right
|
||||||
to[index] = -1;//params.sourcePos[index] > targetPos[index] ? 1 : -1; // always default to orienting right
|
to[index] = -1;//params.sourcePos[index] > targetPos[index] ? 1 : -1; // always default to orienting left
|
||||||
so[oIndex] = 0;
|
so[oIndex] = 0;
|
||||||
to[oIndex] = 0;
|
to[oIndex] = 0;
|
||||||
}
|
}
|
||||||
|
@ -526,10 +526,6 @@
|
||||||
midy = paintInfo.startStubY + ((paintInfo.endStubY - paintInfo.startStubY) * midpoint);
|
midy = paintInfo.startStubY + ((paintInfo.endStubY - paintInfo.startStubY) * midpoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (diffX < 0 && diffX > (-1 * loopbackVerticalLength) && Math.abs(diffY) < loopbackVerticalLength) {
|
|
||||||
midy = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
var orientations = {x: [0, 1], y: [1, 0]},
|
var orientations = {x: [0, 1], y: [1, 0]},
|
||||||
lineCalculators = {
|
lineCalculators = {
|
||||||
perpendicular: function (axis) {
|
perpendicular: function (axis) {
|
||||||
|
|
Loading…
Reference in a new issue